cotal-ai 0.164.10 → 0.164.12
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/cotal.js +10 -3
- package/dist/daemon/update-entry.js +6 -4
- 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 +4 -4
- package/seeded-connectors/claude/package.json +1 -1
- package/seeded-connectors/codex/dist/host.js +4 -4
- package/seeded-connectors/codex/dist/index.js +1 -1
- package/seeded-connectors/codex/dist/personal.js +4 -4
- package/seeded-connectors/codex/package.json +1 -1
- package/seeded-connectors/hermes/dist/index.js +1 -1
- package/seeded-connectors/hermes/dist/launch.js +4 -4
- package/seeded-connectors/hermes/package.json +1 -1
- package/seeded-connectors/hermes/plugin/cotal/_sidecar/standalone.cjs +4 -4
- package/seeded-connectors/jcode/dist/host.js +4 -4
- 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 +4 -4
- package/seeded-connectors/opencode/package.json +1 -1
- package/seeded-connectors/pi/dist/index.js +4 -4
- package/seeded-connectors/pi/dist/standalone.js +4 -4
- package/seeded-connectors/pi/package.json +1 -1
- package/seeded-connectors/web/package.json +1 -1
package/dist/cotal.js
CHANGED
|
@@ -162,6 +162,12 @@ export function selectExecutionProgram(root) {
|
|
|
162
162
|
return { root: selected, entry: join(selected, "dist", "cotal-program.js"), retained: true };
|
|
163
163
|
}
|
|
164
164
|
const executionStarted = Symbol.for("cotal.execution.started");
|
|
165
|
+
/** Whether Node was started on this file. Both sides go through the native canonical path, because
|
|
166
|
+
* Node keeps a Windows extended-length (`\\?\`) or short-name spelling in `argv[1]` and not in the
|
|
167
|
+
* module URL. */
|
|
168
|
+
function startedHere() {
|
|
169
|
+
return !!process.argv[1] && realpathSync.native(process.argv[1]) === realpathSync.native(fileURLToPath(import.meta.url));
|
|
170
|
+
}
|
|
165
171
|
/** Explicit CLI delegation for a wrapper that imports the bootstrap rather than launching it. */
|
|
166
172
|
export function startExecutionProgram() {
|
|
167
173
|
if (Reflect.get(globalThis, executionStarted))
|
|
@@ -176,15 +182,16 @@ export function startExecutionProgram() {
|
|
|
176
182
|
process.exitCode = 1;
|
|
177
183
|
}
|
|
178
184
|
if (selected) {
|
|
185
|
+
const direct = startedHere();
|
|
179
186
|
if (!import.meta.url.endsWith(".ts"))
|
|
180
187
|
Object.defineProperty(globalThis, Symbol.for("cotal.execution.identity"), {
|
|
181
|
-
value: Object.freeze({ logicalEntry: fileURLToPath(import.meta.url), launchEntry:
|
|
188
|
+
value: Object.freeze({ logicalEntry: fileURLToPath(import.meta.url), launchEntry: direct ? resolve(process.argv[1]) : fileURLToPath(import.meta.url), loadedEntry: join(selected.root, "dist", "cotal.js") }),
|
|
182
189
|
configurable: false, writable: false,
|
|
183
190
|
});
|
|
184
|
-
if (selected.retained || !
|
|
191
|
+
if (selected.retained || !direct)
|
|
185
192
|
process.argv[1] = join(selected.root, "dist", "cotal.js");
|
|
186
193
|
void import(pathToFileURL(selected.entry).href);
|
|
187
194
|
}
|
|
188
195
|
}
|
|
189
|
-
if (
|
|
196
|
+
if (startedHere())
|
|
190
197
|
startExecutionProgram();
|
|
@@ -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 !==
|
|
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,
|
|
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 ===
|
|
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.
|
|
3
|
+
"version": "0.164.12",
|
|
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.12",
|
|
37
|
+
"@cotal-ai/cli": "0.164.12",
|
|
38
|
+
"@cotal-ai/connector-core": "0.164.12",
|
|
39
|
+
"@cotal-ai/core": "0.164.12",
|
|
40
|
+
"@cotal-ai/delivery": "0.164.12",
|
|
41
|
+
"@cotal-ai/manager": "0.164.12",
|
|
42
|
+
"@cotal-ai/registry": "0.164.12",
|
|
43
|
+
"@cotal-ai/runtime": "0.164.12",
|
|
44
|
+
"@cotal-ai/seat": "0.164.12",
|
|
45
|
+
"@cotal-ai/workspace": "0.164.12",
|
|
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.12",
|
|
50
|
+
"@cotal-ai/connector-codex": "0.164.12",
|
|
51
|
+
"@cotal-ai/connector-hermes": "0.164.12",
|
|
52
|
+
"@cotal-ai/connector-jcode": "0.164.12",
|
|
53
|
+
"@cotal-ai/connector-opencode": "0.164.12",
|
|
54
|
+
"@cotal-ai/linear": "0.164.12",
|
|
55
|
+
"@cotal-ai/pi": "0.164.12",
|
|
56
56
|
"@cotal-ai/smoke-kit": "0.0.0",
|
|
57
|
-
"@cotal-ai/web": "0.164.
|
|
57
|
+
"@cotal-ai/web": "0.164.12",
|
|
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": "38105406da940ded06f4eb82b82584599f6f3400a3828458bd3aeadccb0bd86c",
|
|
5
|
+
"docs-index.bin": "783ce501856a81604238b07174237d06d0180e6ac2da58d2ff08feaddc7e7945"
|
|
6
6
|
},
|
|
7
7
|
"placements": {
|
|
8
8
|
"claude": [
|