cotal-ai 0.164.7 → 0.164.8
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/dist/daemon/auto-update.js +11 -7
- package/dist/daemon/command.js +4 -5
- package/dist/update-notice.js +2 -2
- package/package.json +19 -19
- package/seeded-connectors/_shared/docs-bundle.bin +0 -0
- package/seeded-connectors/_shared/docs-index.bin +0 -0
- package/seeded-connectors/_shared/placements.json +2 -2
- package/seeded-connectors/claude/dist/index.js +1 -1
- package/seeded-connectors/claude/dist/mcp.cjs +2 -2
- package/seeded-connectors/claude/package.json +1 -1
- package/seeded-connectors/codex/dist/host.js +2 -2
- package/seeded-connectors/codex/dist/index.js +1 -1
- package/seeded-connectors/codex/dist/personal.js +2 -2
- package/seeded-connectors/codex/package.json +1 -1
- package/seeded-connectors/hermes/dist/index.js +1 -1
- package/seeded-connectors/hermes/dist/launch.js +2 -2
- package/seeded-connectors/hermes/package.json +1 -1
- package/seeded-connectors/hermes/plugin/cotal/_sidecar/standalone.cjs +2 -2
- package/seeded-connectors/jcode/dist/host.js +2 -2
- package/seeded-connectors/jcode/dist/index.js +1 -1
- package/seeded-connectors/jcode/dist/mcp.js +1 -1
- package/seeded-connectors/jcode/package.json +1 -1
- package/seeded-connectors/opencode/dist/index.js +1 -1
- package/seeded-connectors/opencode/dist/plugin/index.js +2 -2
- package/seeded-connectors/opencode/package.json +1 -1
- package/seeded-connectors/pi/dist/index.js +2 -2
- package/seeded-connectors/pi/dist/standalone.js +2 -2
- package/seeded-connectors/pi/package.json +1 -1
- package/seeded-connectors/web/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { readFileSync, existsSync, closeSync, ftruncateSync } from "node:fs";
|
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { openPrivateAppend, writeSecretFileAtomic } from "@cotal-ai/core";
|
|
6
|
-
import { checkForUpdate, homeCotalDir, newerUpdate, readUpdateCheck, readUpdateRecovery, readUpdateSettings, UPDATE_DAY_MS, UPDATE_HOUR_MS } from "@cotal-ai/workspace";
|
|
6
|
+
import { checkForUpdate, homeCotalDir, newerUpdate, readUpdateCheck, readUpdateRecovery, readUpdateSettings, recoveryDisposition, UPDATE_DAY_MS, UPDATE_HOUR_MS } from "@cotal-ai/workspace";
|
|
7
7
|
import { cleanLaunchUpdate, startLaunchUpdate } from "./update-launchd.js";
|
|
8
8
|
/** Schedule only the existing updater. Manager preparation holds its native empty-seat admission fence. */
|
|
9
9
|
export function automaticUpdates(host) {
|
|
@@ -46,8 +46,10 @@ export function automaticUpdates(host) {
|
|
|
46
46
|
automatic = ["linux", "darwin"].includes(process.platform) && !desktop && settings.auto && process.env.COTAL_NO_UPDATE_CHECK !== "1" && host.eligible();
|
|
47
47
|
const recovery = readUpdateRecovery();
|
|
48
48
|
if (recovery) {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
const decision = recoveryDisposition(recovery);
|
|
50
|
+
if (decision.action !== "retire")
|
|
51
|
+
automatic = false;
|
|
52
|
+
reason = `automatic updates ${decision.action === "retire" ? "can resume" : "paused"}: installed ${recovery.installed}; ${recovery.reason}; ${decision.instruction}`;
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
catch (error) {
|
|
@@ -81,7 +83,9 @@ export function automaticUpdates(host) {
|
|
|
81
83
|
}
|
|
82
84
|
const settings = readUpdateSettings();
|
|
83
85
|
const cached = process.env.COTAL_NO_UPDATE_CHECK !== "1" && (settings.auto || settings.notify) ? await checkForUpdate() : readUpdateCheck();
|
|
84
|
-
|
|
86
|
+
const recovery = readUpdateRecovery();
|
|
87
|
+
const retiring = recovery !== undefined && recoveryDisposition(recovery).action === "retire";
|
|
88
|
+
if (closed || !retiring && Date.now() < state.next)
|
|
85
89
|
return;
|
|
86
90
|
if (desktop) {
|
|
87
91
|
state = { ...state, next: Date.now() + UPDATE_DAY_MS + Math.random() * UPDATE_HOUR_MS };
|
|
@@ -99,17 +103,17 @@ export function automaticUpdates(host) {
|
|
|
99
103
|
}
|
|
100
104
|
if (state.version !== cached.latest)
|
|
101
105
|
state = { version: cached.latest, failures: 0, result: "new release observed", next: 0 };
|
|
102
|
-
if (state.failures >= 2) {
|
|
106
|
+
if (!retiring && state.failures >= 2) {
|
|
103
107
|
state = { ...state, result: `version ${cached.latest} failed twice; waiting for a newer version or manual update`, next: Date.now() + UPDATE_DAY_MS };
|
|
104
108
|
persist();
|
|
105
109
|
return;
|
|
106
110
|
}
|
|
107
|
-
if (!newerUpdate(cached.latest, host.version)) {
|
|
111
|
+
if (!retiring && !newerUpdate(cached.latest, host.version)) {
|
|
108
112
|
state = { ...state, result: "up to date", next: Date.now() + UPDATE_DAY_MS + Math.random() * UPDATE_HOUR_MS };
|
|
109
113
|
persist();
|
|
110
114
|
return;
|
|
111
115
|
}
|
|
112
|
-
if (Date.now() - (cached.firstSeenAt ?? Date.now()) < UPDATE_HOUR_MS) {
|
|
116
|
+
if (!retiring && Date.now() - (cached.firstSeenAt ?? Date.now()) < UPDATE_HOUR_MS) {
|
|
113
117
|
state = { ...state, result: "waiting for release hold", next: (cached.firstSeenAt ?? Date.now()) + UPDATE_HOUR_MS };
|
|
114
118
|
persist();
|
|
115
119
|
return;
|
package/dist/daemon/command.js
CHANGED
|
@@ -25,7 +25,7 @@ import { readFileSync, realpathSync } from "node:fs";
|
|
|
25
25
|
import { dirname, isAbsolute, join } from "node:path";
|
|
26
26
|
import { fileURLToPath } from "node:url";
|
|
27
27
|
import { registry } from "@cotal-ai/core";
|
|
28
|
-
import { CommandFailure, codeSpan, homeCotalDir, keptCatalogCredentials,
|
|
28
|
+
import { CommandFailure, codeSpan, homeCotalDir, keptCatalogCredentials, jsonFlag, plainFlag, presentationOf, recordOperationContext, renderReport, writeResult } from "@cotal-ai/workspace";
|
|
29
29
|
import { openLoginBrowser, isDiscoveryName, resolveDiscoveryLogin } from "@cotal-ai/workspace";
|
|
30
30
|
import { chooseAccountChoice, IdpConfigurationError, normalizeIdpUrl } from "@cotal-ai/auth";
|
|
31
31
|
import { EndpointRefusal, defaultPeerUid, defaultPeerPid, checkDir, daemonPaths, daemonPathsFor } from "./endpoint.js";
|
|
@@ -522,10 +522,9 @@ async function setupUnderClosure(args) {
|
|
|
522
522
|
}
|
|
523
523
|
async function serve(args) {
|
|
524
524
|
const { recoverInterruptedUpdate } = await import("@cotal-ai/cli/update");
|
|
525
|
-
//
|
|
526
|
-
//
|
|
527
|
-
|
|
528
|
-
if (readUpdateRecovery()?.phase !== "paused" && await recoverInterruptedUpdate())
|
|
525
|
+
// Unusable abandoned records retire under the updater lock. Unknown owners remain paused
|
|
526
|
+
// without blocking startup. A valid snapshot whose restoration failed still waits for repair.
|
|
527
|
+
if (await recoverInterruptedUpdate(undefined, true))
|
|
529
528
|
throw new Error("interrupted update restored the previous installation; restart the daemon with the restored CLI");
|
|
530
529
|
const { paths, home } = resolveTarget(args);
|
|
531
530
|
let running;
|
package/dist/update-notice.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
import { checkForUpdate, newerUpdate, readUpdateCheck, readUpdateRecovery, readUpdateSettings, UPDATE_DAY_MS, UPDATE_HOUR_MS } from "@cotal-ai/workspace";
|
|
4
|
+
import { checkForUpdate, newerUpdate, readUpdateCheck, readUpdateRecovery, readUpdateSettings, recoveryDisposition, UPDATE_DAY_MS, UPDATE_HOUR_MS } from "@cotal-ai/workspace";
|
|
5
5
|
/** The detached worker holds no terminal and has a bounded registry read. */
|
|
6
6
|
export async function updateCheckWorker() {
|
|
7
7
|
try {
|
|
@@ -26,7 +26,7 @@ export function installUpdateNotice(argv, current) {
|
|
|
26
26
|
}
|
|
27
27
|
const recovery = readUpdateRecovery();
|
|
28
28
|
const remedy = existsSync(fileURLToPath(new URL("../desktop-runtime.json", import.meta.url))) ? "Update the desktop app with its signed platform installer." : "Run `cotal update --self`.";
|
|
29
|
-
const message = recovery ? `Cotal update needs repair (installed ${recovery.installed}, previous ${recovery.previous})
|
|
29
|
+
const message = recovery ? `Cotal update needs repair (installed ${recovery.installed}, previous ${recovery.previous}). ${recoveryDisposition(recovery).instruction}` : cached?.latest && newerUpdate(cached.latest, current) ? `Cotal update available: ${current} -> ${cached.latest}. ${remedy}` : undefined;
|
|
30
30
|
if (message)
|
|
31
31
|
process.once("exit", () => process.stderr.write(`${message}\n`));
|
|
32
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cotal-ai",
|
|
3
|
-
"version": "0.164.
|
|
3
|
+
"version": "0.164.8",
|
|
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.
|
|
37
|
-
"@cotal-ai/cli": "0.164.
|
|
38
|
-
"@cotal-ai/connector-core": "0.164.
|
|
39
|
-
"@cotal-ai/core": "0.164.
|
|
40
|
-
"@cotal-ai/delivery": "0.164.
|
|
41
|
-
"@cotal-ai/manager": "0.164.
|
|
42
|
-
"@cotal-ai/registry": "0.164.
|
|
43
|
-
"@cotal-ai/runtime": "0.164.
|
|
44
|
-
"@cotal-ai/seat": "0.164.
|
|
45
|
-
"@cotal-ai/workspace": "0.164.
|
|
36
|
+
"@cotal-ai/auth": "0.164.8",
|
|
37
|
+
"@cotal-ai/cli": "0.164.8",
|
|
38
|
+
"@cotal-ai/connector-core": "0.164.8",
|
|
39
|
+
"@cotal-ai/core": "0.164.8",
|
|
40
|
+
"@cotal-ai/delivery": "0.164.8",
|
|
41
|
+
"@cotal-ai/manager": "0.164.8",
|
|
42
|
+
"@cotal-ai/registry": "0.164.8",
|
|
43
|
+
"@cotal-ai/runtime": "0.164.8",
|
|
44
|
+
"@cotal-ai/seat": "0.164.8",
|
|
45
|
+
"@cotal-ai/workspace": "0.164.8",
|
|
46
46
|
"jose": "^6.2.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@cotal-ai/connector-claude-code": "0.164.
|
|
50
|
-
"@cotal-ai/connector-codex": "0.164.
|
|
51
|
-
"@cotal-ai/connector-hermes": "0.164.
|
|
52
|
-
"@cotal-ai/connector-jcode": "0.164.
|
|
53
|
-
"@cotal-ai/connector-opencode": "0.164.
|
|
54
|
-
"@cotal-ai/linear": "0.164.
|
|
55
|
-
"@cotal-ai/pi": "0.164.
|
|
49
|
+
"@cotal-ai/connector-claude-code": "0.164.8",
|
|
50
|
+
"@cotal-ai/connector-codex": "0.164.8",
|
|
51
|
+
"@cotal-ai/connector-hermes": "0.164.8",
|
|
52
|
+
"@cotal-ai/connector-jcode": "0.164.8",
|
|
53
|
+
"@cotal-ai/connector-opencode": "0.164.8",
|
|
54
|
+
"@cotal-ai/linear": "0.164.8",
|
|
55
|
+
"@cotal-ai/pi": "0.164.8",
|
|
56
56
|
"@cotal-ai/smoke-kit": "0.0.0",
|
|
57
|
-
"@cotal-ai/web": "0.164.
|
|
57
|
+
"@cotal-ai/web": "0.164.8",
|
|
58
58
|
"@nats-io/jetstream": "^3.4.0",
|
|
59
59
|
"@nats-io/transport-node": "^3.4.0",
|
|
60
60
|
"typescript": "^5.9.3"
|
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"v": 1,
|
|
3
3
|
"files": {
|
|
4
|
-
"docs-bundle.bin": "
|
|
5
|
-
"docs-index.bin": "
|
|
4
|
+
"docs-bundle.bin": "09af1e922349560f6491bd4ec46869c109fe48f1113d8499cac3623d6a6abdf2",
|
|
5
|
+
"docs-index.bin": "cbc7f3f2f73e90c02d87d0c61be6b59f67ebfa81ca946d3f997218a03442ffab"
|
|
6
6
|
},
|
|
7
7
|
"placements": {
|
|
8
8
|
"claude": [
|