@andrian.yablonskyy/thub-agent 1.0.9 → 1.0.11

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 CHANGED
@@ -34,8 +34,13 @@ thub cancel <jobId> Cancel a job
34
34
  thub resources List resources and their status
35
35
  thub jobs [--mine] [--state <s>] List recent jobs
36
36
  thub config set <key> <value> Save coordinator URL / token / default group / default user locally
37
+ thub check-update Compare this Agent with the latest published version
38
+ thub self-update [--to <x.y.z>] Update this Agent with npm i -g
39
+ thub --version
37
40
  ```
38
41
 
42
+ **Self-update.** An admin can request an update for this agent (or all agents) on the Coordinator's Agents page. The next command that talks to the Coordinator then installs it with `npm i -g` (retrying through `sudo` on an interactive terminal) and re-runs itself on the new version. If the install fails — e.g. no permission in CI — it prints the manual command and carries on with the current version; a run never fails because of an update. Set `THUB_NO_SELF_UPDATE=1` to opt out.
43
+
39
44
  Key options for `thub run`:
40
45
 
41
46
  | Option | Description |
package/config.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "url": "https://coord.yablonskyy.com",
3
3
  "token": "",
4
+ // "token": "agt_MfGJmisWNuj-JRLArBwAPrVYP6DcsCR2HAtuloB_fkA",
4
5
  "group": "",
5
6
  "user": ""
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrian.yablonskyy/thub-agent",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "TestHub Agent CLI — the single entry point CI/CD and developers use to submit and follow test jobs",
5
5
  "bin": {
6
6
  "thub": "./src/cli.js"