cotal-ai 0.4.0 → 0.5.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 +9 -0
  2. package/package.json +8 -8
package/dist/cotal.js CHANGED
@@ -14,6 +14,15 @@ import "@cotal-ai/connector-hermes"; // registers the `hermes` connector (Nous R
14
14
  import "@cotal-ai/cmux"; // opt into the cmux integration — registers the `cmux` runtime + TerminalLayout providers
15
15
  import { claudeConnector } from "@cotal-ai/connector-claude-code";
16
16
  import { registry } from "@cotal-ai/core";
17
+ // A CLI must exit quietly when its stdout is closed early — piped to `head`, a pager that quits,
18
+ // or a shell's process substitution (`source <(cotal completion bash)`). Node otherwise turns the
19
+ // closed-pipe write into a fatal unhandled 'error' event with a stack trace. Mirror SIGPIPE: exit
20
+ // 0. Registered before any command can write.
21
+ process.stdout.on("error", (e) => {
22
+ if (e.code === "EPIPE")
23
+ process.exit(0);
24
+ throw e;
25
+ });
17
26
  // The manager's default agent type is "cotal"; make it a real Claude coder so a bare
18
27
  // cotal_spawn / `cotal start --name x` (no --agent) brings up a Claude Code session.
19
28
  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.5.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,13 @@
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/cli": "0.5.0",
30
+ "@cotal-ai/cmux": "0.5.0",
31
+ "@cotal-ai/connector-claude-code": "0.5.0",
32
+ "@cotal-ai/connector-hermes": "0.5.0",
33
+ "@cotal-ai/core": "0.5.0",
34
+ "@cotal-ai/connector-opencode": "0.5.0",
35
+ "@cotal-ai/manager": "0.5.0"
36
36
  },
37
37
  "files": [
38
38
  "dist",