0.0.103 • Published 10 days ago

@openiap/nodeagent v0.0.103

Weekly downloads
-
License
MPL-2.0
Repository
-
Last release
10 days ago

Package for handling packages. Used to run packakes in docker, native on the os as a daemon, and in user desktop with assistant

npm i @openiap/nodeagent

run as

to install on linux/macos

npx -y @openiap/nodeagent

On windows, make sure you are running as local system. This is due to, the service will be running as local system as well. So then NPX script needs access to the same locations as the service will be running as ( and have the same envoriment variables ) You can do that by downloading PSTools and running psexec

PsExec.exe -s -i cmd.exe

and in the new window that opens, just follow the guides for linux/mac, for instance, for installing the servvice, run

npx -y @openiap/nodeagent

Run this to clean npx cache

npm cache clean --force
npx clear-npx-cache

test running in console

npx -y @openiap/nodeagent -service

To remove service

npx -y @openiap/nodeagent -uninstall

To remove service, and remove from system

npx -y @openiap/nodeagent -uninstall
npx clear-npx-cache

To re-install service

npx -y @openiap/nodeagent -uninstall
npx clear-npx-cache
npx -y @openiap/nodeagent

To proxy a port from another agent, you first supply the agentname and next the port name. You define the port name when you publish the package, (see ports)

npx @openiap/nodeagent agent1:web

When a package gets published from vs.code it should have these fields in your package.json

    "openiap": {
        "language": "nodejs",
        "typescript": true,
        "daemon": false,
        "chromium": false
    }
  • language - tell the agent what runtime to use when executing the code
  • typescript - not used at the moment, but is intented to be used when typescrip has not been compiles and is run using node-ts
  • daemon - is used by the agent and openflow to determine if this is a never ending process ( like something listning on a port, or waiting on events )
  • chromium - used by openflow to control what packages to show for an agent. Will only allow this package to run on agents that has an chrome or chromium browser.

ports

You can also add a map of ports you will be listening on

    "openiap": {
        "ports": [
            {"port": 3000, "portname": "web", "protocol": "TCP", "web": true}
        ]
    }

if port is left empty, and random free port will be used. If port is already in use, a new free port number will be used, and injected as an envoriment variable into the host using the portname So in above example an envoriment variable named "web" will contain the value of the port the package should use.

protocol and web is not used right now.

  • protocol is used when support for UDP has been added.
  • web is intented to be used when agents gets support for sharing the same port between multiple packages using a common webserver.
0.0.103

10 days ago

0.0.102

30 days ago

0.0.101

1 month ago

0.0.100

2 months ago

0.0.97

2 months ago

0.0.98

2 months ago

0.0.99

2 months ago

0.0.95

3 months ago

0.0.96

3 months ago

0.0.94

3 months ago

0.0.93

3 months ago

0.0.91

4 months ago

0.0.92

4 months ago

0.0.84

8 months ago

0.0.85

8 months ago

0.0.86

8 months ago

0.0.87

8 months ago

0.0.88

7 months ago

0.0.89

5 months ago

0.0.80

8 months ago

0.0.81

8 months ago

0.0.82

8 months ago

0.0.83

8 months ago

0.0.73

8 months ago

0.0.74

8 months ago

0.0.75

8 months ago

0.0.76

8 months ago

0.0.77

8 months ago

0.0.78

8 months ago

0.0.79

8 months ago

0.0.70

9 months ago

0.0.71

9 months ago

0.0.72

9 months ago

0.0.62

9 months ago

0.0.63

9 months ago

0.0.64

9 months ago

0.0.65

9 months ago

0.0.66

9 months ago

0.0.67

9 months ago

0.0.68

9 months ago

0.0.69

9 months ago

0.0.60

9 months ago

0.0.61

9 months ago

0.0.59

9 months ago

0.0.51

9 months ago

0.0.52

9 months ago

0.0.53

9 months ago

0.0.54

9 months ago

0.0.55

9 months ago

0.0.56

9 months ago

0.0.58

9 months ago

0.0.90

5 months ago

0.0.50

9 months ago

0.0.48

10 months ago

0.0.49

9 months ago

0.0.47

10 months ago

0.0.45

1 year ago

0.0.44

1 year ago

0.0.43

1 year ago

0.0.42

1 year ago

0.0.41

1 year ago

0.0.40

1 year ago

0.0.39

1 year ago

0.0.38

1 year ago

0.0.37

1 year ago

0.0.36

1 year ago

0.0.35

1 year ago

0.0.34

1 year ago

0.0.33

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago