cotal-ai 0.165.2 → 0.165.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.
Files changed (29) hide show
  1. package/dist/execution-store.js +1 -1
  2. package/dist/execution-transaction.js +1 -1
  3. package/dist/run.js +5 -2
  4. package/package.json +19 -19
  5. package/seeded-connectors/_shared/docs-bundle.bin +0 -0
  6. package/seeded-connectors/_shared/docs-index.bin +0 -0
  7. package/seeded-connectors/_shared/placements.json +2 -2
  8. package/seeded-connectors/claude/dist/index.js +1 -1
  9. package/seeded-connectors/claude/dist/mcp.cjs +2 -2
  10. package/seeded-connectors/claude/package.json +1 -1
  11. package/seeded-connectors/codex/dist/host.js +2 -2
  12. package/seeded-connectors/codex/dist/index.js +1 -1
  13. package/seeded-connectors/codex/dist/personal.js +2 -2
  14. package/seeded-connectors/codex/package.json +1 -1
  15. package/seeded-connectors/hermes/dist/index.js +1 -1
  16. package/seeded-connectors/hermes/dist/launch.js +2 -2
  17. package/seeded-connectors/hermes/package.json +1 -1
  18. package/seeded-connectors/hermes/plugin/cotal/_sidecar/standalone.cjs +2 -2
  19. package/seeded-connectors/jcode/dist/host.js +2 -2
  20. package/seeded-connectors/jcode/dist/index.js +1 -1
  21. package/seeded-connectors/jcode/dist/mcp.js +1 -1
  22. package/seeded-connectors/jcode/package.json +1 -1
  23. package/seeded-connectors/opencode/dist/index.js +1 -1
  24. package/seeded-connectors/opencode/dist/plugin/index.js +2 -2
  25. package/seeded-connectors/opencode/package.json +1 -1
  26. package/seeded-connectors/pi/dist/index.js +2 -2
  27. package/seeded-connectors/pi/dist/standalone.js +2 -2
  28. package/seeded-connectors/pi/package.json +1 -1
  29. package/seeded-connectors/web/package.json +1 -1
@@ -36,7 +36,7 @@ export function retainExecutionGeneration(installedRoot, verifiedSource) {
36
36
  accessSync(dirname(dirname(installedRoot)), constants.W_OK);
37
37
  }
38
38
  catch {
39
- throw new Error(`installation is not writable; use the owning command: npm install -g --prefix ${dirname(dirname(dirname(installedRoot)))} cotal-ai@latest`);
39
+ throw new Error(`installation is not writable; have an administrator run: sudo npm install -g --prefix '${dirname(dirname(dirname(installedRoot))).replace(/'/g, "'\\''")}' cotal-ai@latest; then run cotal update as your normal account, without sudo`);
40
40
  }
41
41
  const store = executionStore(installedRoot), shared = executionShared(installedRoot);
42
42
  if (!lstatSync(store, { throwIfNoEntry: false })) {
@@ -20,7 +20,7 @@ export function assertExecutionDestination(installed) {
20
20
  accessSync(path, constants.W_OK);
21
21
  }
22
22
  catch {
23
- throw new Error(`installation is not writable; use the owning command: npm install -g --prefix ${dirname(dirname(dirname(installed)))} cotal-ai@latest`);
23
+ throw new Error(`installation is not writable; have an administrator run: sudo npm install -g --prefix '${dirname(dirname(dirname(installed))).replace(/'/g, "'\\''")}' cotal-ai@latest; then run cotal update as your normal account, without sudo`);
24
24
  }
25
25
  selectExecutionProgram(installed);
26
26
  }
package/dist/run.js CHANGED
@@ -57,7 +57,7 @@ registry.provide({ provides: commands("__service-unit"), load: () => import("@co
57
57
  registry.provide({ provides: commands("daemon"), load: importing("daemon", "auth") });
58
58
  // The dispatch module reads the command word as `runCli` will, and loads no command. A word a
59
59
  // provider declares imports that provider's surfaces; any other word imports them all.
60
- const { commandWord, runCli, stdoutError } = await import("@cotal-ai/cli/dispatch");
60
+ const { commandWord, completeFileWrites, runCli, stdoutError } = await import("@cotal-ai/cli/dispatch");
61
61
  const { executionIdentity } = await import("@cotal-ai/workspace");
62
62
  const identity = executionIdentity();
63
63
  if (identity && identity.logicalEntry === identity.loadedEntry) {
@@ -80,8 +80,11 @@ if (word === "update")
80
80
  // or a shell's process substitution (`source <(cotal completion script bash)`). Node otherwise turns the
81
81
  // closed-pipe write into a fatal unhandled 'error' event with a stack trace. Mirror SIGPIPE: exit
82
82
  // 0. A command that must close something first, such as a chat session, owns stdout's errors while
83
- // it runs, and this listener stands down for it. Registered before any command can write.
83
+ // it runs, and this listener stands down for it. Registered before any command can write. A stdout
84
+ // redirected to a file writes each chunk whole or fails into this listener, so a file-size limit or
85
+ // a full disk cannot cut an export short and still exit 0.
84
86
  process.stdout.on("error", stdoutError);
87
+ completeFileWrites();
85
88
  // The four agent connectors (claude/opencode/hermes/pi) are NOT imported here: they are removable,
86
89
  // install-seeded `cotal ext` plugins loaded through the manifest, exactly like a third-party
87
90
  // connector (and like the `@cotal-ai/orca` runtime already is). `runCli` seeds them on first run and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cotal-ai",
3
- "version": "0.165.2",
3
+ "version": "0.165.3",
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": [
@@ -37,28 +37,28 @@
37
37
  "node": ">=22.10"
38
38
  },
39
39
  "dependencies": {
40
- "@cotal-ai/auth": "0.165.2",
41
- "@cotal-ai/cli": "0.165.2",
42
- "@cotal-ai/connector-core": "0.165.2",
43
- "@cotal-ai/core": "0.165.2",
44
- "@cotal-ai/delivery": "0.165.2",
45
- "@cotal-ai/manager": "0.165.2",
46
- "@cotal-ai/registry": "0.165.2",
47
- "@cotal-ai/runtime": "0.165.2",
48
- "@cotal-ai/seat": "0.165.2",
49
- "@cotal-ai/workspace": "0.165.2",
40
+ "@cotal-ai/auth": "0.165.3",
41
+ "@cotal-ai/cli": "0.165.3",
42
+ "@cotal-ai/connector-core": "0.165.3",
43
+ "@cotal-ai/core": "0.165.3",
44
+ "@cotal-ai/delivery": "0.165.3",
45
+ "@cotal-ai/manager": "0.165.3",
46
+ "@cotal-ai/registry": "0.165.3",
47
+ "@cotal-ai/runtime": "0.165.3",
48
+ "@cotal-ai/seat": "0.165.3",
49
+ "@cotal-ai/workspace": "0.165.3",
50
50
  "jose": "^6.2.3"
51
51
  },
52
52
  "devDependencies": {
53
- "@cotal-ai/connector-claude-code": "0.165.2",
54
- "@cotal-ai/connector-codex": "0.165.2",
55
- "@cotal-ai/connector-hermes": "0.165.2",
56
- "@cotal-ai/connector-jcode": "0.165.2",
57
- "@cotal-ai/connector-opencode": "0.165.2",
58
- "@cotal-ai/linear": "0.165.2",
59
- "@cotal-ai/pi": "0.165.2",
53
+ "@cotal-ai/connector-claude-code": "0.165.3",
54
+ "@cotal-ai/connector-codex": "0.165.3",
55
+ "@cotal-ai/connector-hermes": "0.165.3",
56
+ "@cotal-ai/connector-jcode": "0.165.3",
57
+ "@cotal-ai/connector-opencode": "0.165.3",
58
+ "@cotal-ai/linear": "0.165.3",
59
+ "@cotal-ai/pi": "0.165.3",
60
60
  "@cotal-ai/smoke-kit": "0.0.0",
61
- "@cotal-ai/web": "0.165.2",
61
+ "@cotal-ai/web": "0.165.3",
62
62
  "@nats-io/jetstream": "3.4.0",
63
63
  "@nats-io/transport-node": "3.4.0",
64
64
  "typescript": "^5.9.3"
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "v": 1,
3
3
  "files": {
4
- "docs-bundle.bin": "cf0851b1133d367944f1c36e96653b41239034a28720a6ab7379611d10f9bb47",
5
- "docs-index.bin": "d65563139abd6c5ffa146d970422dcd68450f0b97150a7fbbbad5829385f98ae"
4
+ "docs-bundle.bin": "98f08e9bc08a7e7ed3474ea56fe54c95bb7ab4d6c98b6f774bde7a2672c6f225",
5
+ "docs-index.bin": "c326709f9f9b7b9e1608d1cf55bdc59bf097742a181c14b34f0ca11fc88b492b"
6
6
  },
7
7
  "placements": {
8
8
  "claude": [