cotal-ai 0.4.0 → 0.6.0

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 (2) hide show
  1. package/dist/cotal.js +10 -0
  2. package/package.json +9 -8
package/dist/cotal.js CHANGED
@@ -8,12 +8,22 @@
8
8
  */
9
9
  import { runCli } from "@cotal-ai/cli"; // self-registers up / down / join / watch / spawn / console / setup
10
10
  import "@cotal-ai/manager"; // self-registers supervise / cmux / start / stop / ps / attach
11
+ import "@cotal-ai/delivery"; // self-registers `deliver` — the server-side Plane-3 delivery daemon
11
12
  import "@cotal-ai/connector-claude-code"; // registers the `claude` connector that spawn / start resolve
12
13
  import "@cotal-ai/connector-opencode"; // registers the `opencode` connector (native in-process plugin)
13
14
  import "@cotal-ai/connector-hermes"; // registers the `hermes` connector (Nous Research gateway as a mesh peer)
14
15
  import "@cotal-ai/cmux"; // opt into the cmux integration — registers the `cmux` runtime + TerminalLayout providers
15
16
  import { claudeConnector } from "@cotal-ai/connector-claude-code";
16
17
  import { registry } from "@cotal-ai/core";
18
+ // A CLI must exit quietly when its stdout is closed early — piped to `head`, a pager that quits,
19
+ // or a shell's process substitution (`source <(cotal completion bash)`). Node otherwise turns the
20
+ // closed-pipe write into a fatal unhandled 'error' event with a stack trace. Mirror SIGPIPE: exit
21
+ // 0. Registered before any command can write.
22
+ process.stdout.on("error", (e) => {
23
+ if (e.code === "EPIPE")
24
+ process.exit(0);
25
+ throw e;
26
+ });
17
27
  // The manager's default agent type is "cotal"; make it a real Claude coder so a bare
18
28
  // cotal_spawn / `cotal start --name x` (no --agent) brings up a Claude Code session.
19
29
  registry.register({ ...claudeConnector, name: "cotal" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cotal-ai",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
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": [
@@ -26,13 +26,14 @@
26
26
  "node": ">=20"
27
27
  },
28
28
  "dependencies": {
29
- "@cotal-ai/cli": "0.4.0",
30
- "@cotal-ai/connector-claude-code": "0.4.0",
31
- "@cotal-ai/core": "0.4.0",
32
- "@cotal-ai/cmux": "0.4.0",
33
- "@cotal-ai/manager": "0.4.0",
34
- "@cotal-ai/connector-hermes": "0.4.0",
35
- "@cotal-ai/connector-opencode": "0.4.0"
29
+ "@cotal-ai/connector-claude-code": "0.6.0",
30
+ "@cotal-ai/cli": "0.6.0",
31
+ "@cotal-ai/connector-hermes": "0.6.0",
32
+ "@cotal-ai/cmux": "0.6.0",
33
+ "@cotal-ai/connector-opencode": "0.6.0",
34
+ "@cotal-ai/core": "0.6.0",
35
+ "@cotal-ai/delivery": "0.6.0",
36
+ "@cotal-ai/manager": "0.6.0"
36
37
  },
37
38
  "files": [
38
39
  "dist",