@andrian.yablonskyy/thub-agent 1.0.1 → 1.0.3

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
@@ -14,7 +14,7 @@ npx -y @andrian.yablonskyy/thub-agent run --type sw --image "$IMAGE_URL" --tests
14
14
 
15
15
  ## Configuration
16
16
 
17
- Read from flags, then environment (`THUB_URL`, `THUB_TOKEN`, `THUB_GROUP`, `THUB_USER`), then `~/.config/thub/config.json`, then a bundled default. `url`/`token` are required by the time a command actually talks to the Coordinator; `group`/`user` are optional everywhere.
17
+ Read from flags, then environment (`THUB_URL`, `THUB_TOKEN`, `THUB_GROUP`, `THUB_USER`), then `~/.config/thub/agent.json`, then a bundled default. `url`/`token` are required by the time a command actually talks to the Coordinator; `group`/`user` are optional everywhere.
18
18
 
19
19
  ```bash
20
20
  thub config set url https://thub.example.com
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrian.yablonskyy/thub-agent",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
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"
package/src/config.js CHANGED
@@ -18,8 +18,8 @@ const fs = require('node:fs'),
18
18
  path = require('node:path');
19
19
 
20
20
  // §7: "Configuration is read from flags, then environment (THUB_URL,
21
- // THUB_TOKEN), then ~/.config/thub/config.json."
22
- const CONFIG_PATH = path.join(os.homedir(), '.config', 'thub', 'config.json'),
21
+ // THUB_TOKEN), then ~/.config/thub/agent.json."
22
+ const CONFIG_PATH = path.join(os.homedir(), '.config', 'thub', 'agent.json'),
23
23
 
24
24
  // Bundled with the package as a last-resort default, below the user's own
25
25
  // config file, so `thub` has something to fall back on before `config set`