@tsplc/agent 0.4.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/cli.js +1103 -152
- package/dist/cli.js.map +24 -14
- package/dist/client.js +19 -4
- package/dist/client.js.map +4 -4
- package/dist/index.js +372 -128
- package/dist/index.js.map +14 -12
- package/package.json +5 -5
- package/src/agent.ts +63 -7
- package/src/cli.ts +93 -12
- package/src/client.ts +6 -1
- package/src/codesys.ts +61 -1
- package/src/deploy.ts +37 -1
- package/src/index.ts +1 -0
- package/src/instance.ts +102 -0
- package/src/login.ts +7 -0
- package/src/maintenance.ts +313 -0
- package/src/operations.ts +17 -1
- package/src/processes.ts +24 -0
- package/src/protocol.ts +19 -1
- package/src/server-process.ts +195 -40
- package/src/service.ts +206 -0
- package/src/state.ts +10 -1
- package/src/upgrade.ts +149 -0
package/README.md
CHANGED
|
@@ -7,7 +7,11 @@ The plant agent behind `tsplc deploy`. It runs on a PC in the controller's netwo
|
|
|
7
7
|
```sh
|
|
8
8
|
bun add --global @tsplc/agent
|
|
9
9
|
tsplc-agent setup
|
|
10
|
-
|
|
10
|
+
tsplc-agent secrets set TSPLC_AGENT_TOKEN
|
|
11
|
+
# In a PowerShell opened as administrator: runs the agent at boot and restarts it if it exits
|
|
12
|
+
tsplc-agent service install --listen 100.101.102.103:4850 --server-health http://127.0.0.1:4841/health
|
|
13
|
+
# Later, to update it without stopping the line's server
|
|
14
|
+
tsplc-agent upgrade
|
|
11
15
|
```
|
|
12
16
|
|
|
13
17
|
See the [plant agent guide](https://github.com/rip-technologies/tsplc/tree/master/docs/guides/plant.md). MIT licensed.
|