@andrian.yablonskyy/thub-common 1.0.16 → 1.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrian.yablonskyy/thub-common",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Shared job-spec schema, state enums and a thin API client used by the Agent and Client",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -37,7 +37,13 @@ const jobSpecSchema = {
37
37
  // group (§13.1, `thub run --group <id>`) — a third targeting
38
38
  // dimension alongside type/labels. Omitted: any matching resource
39
39
  // in any (or no) group is eligible, same as before groups existed.
40
- group: { type: 'string', minLength: 1 }
40
+ group: { type: 'string', minLength: 1 },
41
+ // Pins the job to one specific Client (`thub run --client <name|id>`):
42
+ // it's queued for that resource alone and waits for it even if other
43
+ // matching resources are idle. Accepts a resource name or id; the
44
+ // Coordinator resolves it to the resource id at submission time, so
45
+ // a later rename of the Client doesn't orphan the queued job.
46
+ client: { type: 'string', minLength: 1 }
41
47
  }
42
48
  },
43
49
  firmware: {