c8ctl-plugin-nano 1.69.1 → 1.69.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c8ctl-plugin-nano",
3
- "version": "1.69.1",
3
+ "version": "1.69.3",
4
4
  "type": "module",
5
5
  "description": "c8ctl plugin to start, inspect, and stop a local Nano BPM (nanobpmn) cluster",
6
6
  "main": "c8ctl-plugin.js",
@@ -76,12 +76,12 @@
76
76
  },
77
77
  "optionalDependencies": {
78
78
  "node-pty": "^1.0.0",
79
- "@nanobpm/c8ctl-plugin-nano-darwin-arm64": "1.69.1",
80
- "@nanobpm/c8ctl-plugin-nano-darwin-x64": "1.69.1",
81
- "@nanobpm/c8ctl-plugin-nano-linux-x64": "1.69.1",
82
- "@nanobpm/c8ctl-plugin-nano-linux-arm64": "1.69.1",
83
- "@nanobpm/c8ctl-plugin-nano-linux-armv7": "1.69.1",
84
- "@nanobpm/c8ctl-plugin-nano-linux-armv6": "1.69.1",
85
- "@nanobpm/c8ctl-plugin-nano-win32-x64": "1.69.1"
79
+ "@nanobpm/c8ctl-plugin-nano-darwin-arm64": "1.69.3",
80
+ "@nanobpm/c8ctl-plugin-nano-darwin-x64": "1.69.3",
81
+ "@nanobpm/c8ctl-plugin-nano-linux-x64": "1.69.3",
82
+ "@nanobpm/c8ctl-plugin-nano-linux-arm64": "1.69.3",
83
+ "@nanobpm/c8ctl-plugin-nano-linux-armv7": "1.69.3",
84
+ "@nanobpm/c8ctl-plugin-nano-linux-armv6": "1.69.3",
85
+ "@nanobpm/c8ctl-plugin-nano-win32-x64": "1.69.3"
86
86
  }
87
87
  }
package/work-channel.mjs CHANGED
@@ -93,7 +93,7 @@ export function redactAgenticUrl(url) {
93
93
  * breaking older peers"), so the visibility page can surface `capability.jobs`
94
94
  * without any wire-contract change.
95
95
  *
96
- * @param {{ cognition?: string, weight?: number, family?: string, host?: string }} capability
96
+ * @param {{ cognition?: string, weight?: number, family?: string, host?: string, harnessProtocol?: number }} capability
97
97
  * @param {readonly string[]} jobs
98
98
  * @returns {object}
99
99
  */
@@ -104,6 +104,12 @@ function presenceCapability(capability, jobs) {
104
104
  if (typeof capability.weight === 'number' && Number.isFinite(capability.weight)) out.weight = capability.weight;
105
105
  if (typeof capability.family === 'string' && capability.family !== '') out.family = capability.family;
106
106
  if (typeof capability.host === 'string' && capability.host !== '') out.host = capability.host;
107
+ // Harness-protocol version (issue #272): nano-workforce (#802) flags a worker
108
+ // that advertises no protocol as "stale harness". Forward it on the REGISTER
109
+ // capability frame so the visibility page grades this worker current.
110
+ if (typeof capability.harnessProtocol === 'number' && Number.isInteger(capability.harnessProtocol)) {
111
+ out.harnessProtocol = capability.harnessProtocol;
112
+ }
107
113
  }
108
114
  out.jobs = Array.isArray(jobs) ? jobs.map(String) : [];
109
115
  return out;
@@ -135,7 +141,7 @@ function presenceCapability(capability, jobs) {
135
141
  * @param {object} opts
136
142
  * @param {string} opts.instance stable worker instance id (the worker name) carried on every presence frame
137
143
  * @param {string} opts.host the worker's host label
138
- * @param {{ cognition?: string, weight?: number, family?: string, host?: string }} [opts.capability] declared enrolment capability
144
+ * @param {{ cognition?: string, weight?: number, family?: string, host?: string, harnessProtocol?: number }} [opts.capability] declared enrolment capability
139
145
  * @param {() => readonly string[]} [opts.listJobKeys] reads the live jobKey set from the worker's activeJobs map
140
146
  * @param {string} opts.url the app's HTTP(S) base URL (the channel is served same-port at `/agentic`)
141
147
  * @param {string} opts.token ADR 0028 identity token