@webority/ensemble 0.5.14 → 0.5.15

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/bin/ensemble.js CHANGED
@@ -146,6 +146,19 @@ async function status(args) {
146
146
  }
147
147
  core.log('• run `ensemble hooks` to (re)wire hooks+MCP for all detected engines');
148
148
  const res = await core.request('GET', api.replace(/\/$/, '') + '/api/bus/who', { 'X-Ensemble-Machine-Token': t });
149
+ // Runtime freshness: the Console advertises its version in X-Ensemble-Version; compare it to the
150
+ // installed binary so drift is visible here instead of only surfacing later as a bus 500.
151
+ const installed = core.readInstalledVersion() || '(unknown)';
152
+ const serverVer = res.headers && res.headers['x-ensemble-version'];
153
+ if (serverVer) {
154
+ const parts = (v) => String(v).split('.').map((n) => parseInt(n, 10) || 0);
155
+ const behind = (() => { const a = parts(installed), b = parts(serverVer); for (let i = 0; i < 3; i++) { const d = (a[i] || 0) - (b[i] || 0); if (d) return d < 0; } return false; })();
156
+ core.log('• runtime version: ' + installed + (behind
157
+ ? ' ⚠ Console expects ' + serverVer + ' — run: ensemble install'
158
+ : ' ✓ current (Console ' + serverVer + ')'));
159
+ } else {
160
+ core.log('• runtime version: ' + installed + ' (cli ' + core.PKG_VERSION + ')');
161
+ }
149
162
  if (res.status === 200) {
150
163
  const mbx = JSON.parse(res.body);
151
164
  core.log('✓ connected — ' + mbx.length + ' mailbox(es) (label / focus / engine):');
package/lib/core.js CHANGED
@@ -41,7 +41,7 @@ function request(method, url, headers, body) {
41
41
  const req = https.request(u, { method, headers }, (res) => {
42
42
  let data = '';
43
43
  res.on('data', (c) => (data += c));
44
- res.on('end', () => resolve({ status: res.statusCode, body: data }));
44
+ res.on('end', () => resolve({ status: res.statusCode, body: data, headers: res.headers }));
45
45
  });
46
46
  req.on('error', reject);
47
47
  if (body) req.write(body);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ensemble",
3
- "version": "0.5.14",
3
+ "version": "0.5.15",
4
4
  "description": "Connect this machine to Ensemble — runs the local agent runner and wires the ensemble session bus so your coding sessions talk (per-org, isolated).",
5
5
  "bin": {
6
6
  "ensemble": "bin/ensemble.js"
@@ -12,11 +12,11 @@
12
12
  "node": ">=18"
13
13
  },
14
14
  "optionalDependencies": {
15
- "@webority/ensemble-darwin-arm64": "0.5.14",
16
- "@webority/ensemble-darwin-x64": "0.5.14",
17
- "@webority/ensemble-linux-arm64": "0.5.14",
18
- "@webority/ensemble-linux-x64": "0.5.14",
19
- "@webority/ensemble-win-x64": "0.5.14"
15
+ "@webority/ensemble-darwin-arm64": "0.5.15",
16
+ "@webority/ensemble-darwin-x64": "0.5.15",
17
+ "@webority/ensemble-linux-arm64": "0.5.15",
18
+ "@webority/ensemble-linux-x64": "0.5.15",
19
+ "@webority/ensemble-win-x64": "0.5.15"
20
20
  },
21
21
  "files": [
22
22
  "bin",
@@ -33,7 +33,7 @@
33
33
  "ai-agents",
34
34
  "claude-code",
35
35
  "codex",
36
- "control-plane",
36
+ "console",
37
37
  "agent-runner"
38
38
  ],
39
39
  "repository": {