@andrian.yablonskyy/thub-agent 1.0.17 → 1.0.18

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
@@ -48,6 +48,7 @@ Key options for `thub run`:
48
48
  | `--type hw\|sw` | Required resource type. |
49
49
  | `--board <name>` / `--label <l>` | Required labels (repeatable). |
50
50
  | `--group <groupId>` | Restrict scheduling to resources that are members of this group. Falls back to `THUB_GROUP` / `thub config set group <id>`. |
51
+ | `--client <name\|id>` | Run on this specific Client (resource name or id) only; the job waits in that Client's queue even if other matching resources are idle. |
51
52
  | `--user <name>` | Free-text job owner — a label, not an identity. Falls back to `THUB_USER` / `thub config set user <name>`. |
52
53
  | `--image <url>` | Firmware/build image URL, fetched by the Client. |
53
54
  | `--sha256 <hex>` | Expected sha256 of `--image`; the Client verifies it before flashing/running. |
package/README.pdf ADDED
Binary file
package/config.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "url": "https://coord.yablonskyy.com",
3
3
  "token": "",
4
- // "token": "agt_MfGJmisWNuj-JRLArBwAPrVYP6DcsCR2HAtuloB_fkA",
5
4
  "group": "",
6
5
  "user": ""
7
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrian.yablonskyy/thub-agent",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
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/cli.js CHANGED
@@ -69,6 +69,11 @@ program
69
69
  'Restrict scheduling to resources that are members of this group (§13.1). ' +
70
70
  'Overrides THUB_GROUP / config file; leave unset for an unconstrained run.'
71
71
  )
72
+ .option(
73
+ '--client <nameOrId>',
74
+ 'Run on this specific Client (resource name or id) only; the job waits in that Client\'s queue ' +
75
+ 'even if other matching resources are idle.'
76
+ )
72
77
  .option(
73
78
  '--user <name>',
74
79
  'Free-text job owner, shown on the Client and the dashboard to tell whose job is whose ' +
@@ -108,7 +113,7 @@ program
108
113
  user = resolveUser({ user: opts.user }),
109
114
 
110
115
  spec = {
111
- target: { type: opts.type, labels, ...(group ? { group } : {}) },
116
+ target: { type: opts.type, labels, ...(group ? { group } : {}), ...(opts.client ? { client: opts.client } : {}) },
112
117
  firmware: { url: opts.image, ...(opts.sha256 ? { sha256: opts.sha256 } : {}) },
113
118
  tests: { url: opts.tests, suite: opts.suite, args: opts.arg },
114
119
  timeoutSec: parseDurationSec(opts.timeout),