cotal-ai 0.164.10 → 0.164.11

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.
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  import { createInterface } from "node:readline/promises";
5
5
  import { registry } from "@cotal-ai/core";
6
- import { update, updateRuntime, localUpdateManagers, readManagerContinuity, updateManagerPin } from "@cotal-ai/cli/update";
6
+ import { update, updateRuntime, installedCliVersion, localUpdateManagers, readManagerContinuity, updateManagerPin } from "@cotal-ai/cli/update";
7
7
  import { withIdpSessionDir, withRemoteExchangeRetry } from "@cotal-ai/auth";
8
8
  import { brokerAddressKey, assertRecordIdentity, CommandFailure, homeCotalDir, readUpdateRecovery, claimUpdateClosureAccess, resolveControlTarget } from "@cotal-ai/workspace";
9
9
  import { askManager } from "@cotal-ai/workspace/control";
@@ -251,6 +251,8 @@ const composed = { ...command, async run(args) {
251
251
  // asked for from here would stop this process with the rest of the service.
252
252
  if (process.env.COTAL_AUTO_UPDATE === "1")
253
253
  return;
254
+ // This process keeps the release it loaded. The daemon must run the release now installed.
255
+ const expectedVersion = installedCliVersion();
254
256
  const paths = daemonPaths();
255
257
  const current = await queryDaemon({ paths });
256
258
  if (!current.ok)
@@ -264,12 +266,12 @@ const composed = { ...command, async run(args) {
264
266
  console.log(`machine daemon: ${installation.installed} runs Cotal ${current.result.version}; another installation was left running`);
265
267
  return;
266
268
  }
267
- if (current.result.version !== updateRuntime.version()) {
269
+ if (current.result.version !== expectedVersion) {
268
270
  const hosted = (current.result.managers ?? []).some((manager) => manager.pid !== undefined);
269
271
  if (hosted)
270
272
  await managerViaDaemon({ paths }, { op: "managers-prepare-restart" });
271
273
  try {
272
- await restartInstalled(paths, undefined, false, updateRuntime.version(), detail => console.log(`machine daemon: ${detail}`));
274
+ await restartInstalled(paths, undefined, false, expectedVersion, detail => console.log(`machine daemon: ${detail}`));
273
275
  }
274
276
  catch (error) {
275
277
  if (hosted && process.platform !== "win32") {
@@ -285,7 +287,7 @@ const composed = { ...command, async run(args) {
285
287
  for (;;) {
286
288
  try {
287
289
  const reply = await queryDaemon({ paths });
288
- if (reply.ok && reply.result.version === updateRuntime.version() && hostedSpaces.every((space) => reply.result.managers?.some((manager) => manager.space === space && manager.state === "answering")))
290
+ if (reply.ok && reply.result.version === expectedVersion && hostedSpaces.every((space) => reply.result.managers?.some((manager) => manager.space === space && manager.state === "answering")))
289
291
  return;
290
292
  }
291
293
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cotal-ai",
3
- "version": "0.164.10",
3
+ "version": "0.164.11",
4
4
  "description": "Cotal — lateral agent coordination over NATS. Run `npx cotal-ai` for the CLI.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -33,28 +33,28 @@
33
33
  "node": ">=22.10"
34
34
  },
35
35
  "dependencies": {
36
- "@cotal-ai/auth": "0.164.10",
37
- "@cotal-ai/cli": "0.164.10",
38
- "@cotal-ai/connector-core": "0.164.10",
39
- "@cotal-ai/core": "0.164.10",
40
- "@cotal-ai/delivery": "0.164.10",
41
- "@cotal-ai/manager": "0.164.10",
42
- "@cotal-ai/registry": "0.164.10",
43
- "@cotal-ai/runtime": "0.164.10",
44
- "@cotal-ai/seat": "0.164.10",
45
- "@cotal-ai/workspace": "0.164.10",
36
+ "@cotal-ai/auth": "0.164.11",
37
+ "@cotal-ai/cli": "0.164.11",
38
+ "@cotal-ai/connector-core": "0.164.11",
39
+ "@cotal-ai/core": "0.164.11",
40
+ "@cotal-ai/delivery": "0.164.11",
41
+ "@cotal-ai/manager": "0.164.11",
42
+ "@cotal-ai/registry": "0.164.11",
43
+ "@cotal-ai/runtime": "0.164.11",
44
+ "@cotal-ai/seat": "0.164.11",
45
+ "@cotal-ai/workspace": "0.164.11",
46
46
  "jose": "^6.2.3"
47
47
  },
48
48
  "devDependencies": {
49
- "@cotal-ai/connector-claude-code": "0.164.10",
50
- "@cotal-ai/connector-codex": "0.164.10",
51
- "@cotal-ai/connector-hermes": "0.164.10",
52
- "@cotal-ai/connector-jcode": "0.164.10",
53
- "@cotal-ai/connector-opencode": "0.164.10",
54
- "@cotal-ai/linear": "0.164.10",
55
- "@cotal-ai/pi": "0.164.10",
49
+ "@cotal-ai/connector-claude-code": "0.164.11",
50
+ "@cotal-ai/connector-codex": "0.164.11",
51
+ "@cotal-ai/connector-hermes": "0.164.11",
52
+ "@cotal-ai/connector-jcode": "0.164.11",
53
+ "@cotal-ai/connector-opencode": "0.164.11",
54
+ "@cotal-ai/linear": "0.164.11",
55
+ "@cotal-ai/pi": "0.164.11",
56
56
  "@cotal-ai/smoke-kit": "0.0.0",
57
- "@cotal-ai/web": "0.164.10",
57
+ "@cotal-ai/web": "0.164.11",
58
58
  "@nats-io/jetstream": "^3.4.0",
59
59
  "@nats-io/transport-node": "^3.4.0",
60
60
  "typescript": "^5.9.3"
@@ -2,7 +2,7 @@
2
2
  "v": 1,
3
3
  "files": {
4
4
  "docs-bundle.bin": "8232e4d298503afe48f06a87e8eddaf80ac1301012afe3491d6b786c1edae110",
5
- "docs-index.bin": "9283e5c36878781d2b42c387a48c30360b36c09abf17d808f604050a833e2f38"
5
+ "docs-index.bin": "298f21437af69081bf8d2eb6acfae09bca0558b1886df69c34bf9277ba42a193"
6
6
  },
7
7
  "placements": {
8
8
  "claude": [