cotal-ai 0.3.2 → 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.
package/README.md CHANGED
@@ -4,7 +4,8 @@ The `cotal` CLI for **Cotal** — a standard wire interface for AI agents to coo
4
4
  as lateral peers in a shared pub/sub space (NATS + JetStream).
5
5
 
6
6
  ```bash
7
- npx cotal-ai # guided first-run setup: NATS, mesh, agent connectors
7
+ npx cotal-ai # show CLI help
8
+ npx cotal-ai setup # guided first-run setup: NATS, mesh, agent connectors
8
9
  npx cotal-ai up # start a local mesh
9
10
  npx cotal-ai join --space demo --name you
10
11
  ```
package/dist/cotal.js CHANGED
@@ -14,9 +14,18 @@ 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" });
20
- // Bare `npx cotal-ai` = guided first-run setup; any argument dispatches as usual.
21
- const argv = process.argv.length > 2 ? process.argv.slice(2) : ["setup"];
29
+ // Bare `cotal` prints help; explicit `cotal setup` runs guided setup.
30
+ const argv = process.argv.slice(2);
22
31
  await runCli(registry, argv);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cotal-ai",
3
- "version": "0.3.2",
4
- "description": "Cotal — lateral agent coordination over NATS. Run `npx cotal-ai` for a guided setup.",
3
+ "version": "0.5.0",
4
+ "description": "Cotal — lateral agent coordination over NATS. Run `npx cotal-ai` for the CLI.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
7
7
  "cotal",
@@ -26,13 +26,13 @@
26
26
  "node": ">=20"
27
27
  },
28
28
  "dependencies": {
29
- "@cotal-ai/cli": "0.3.2",
30
- "@cotal-ai/connector-claude-code": "0.3.2",
31
- "@cotal-ai/cmux": "0.3.2",
32
- "@cotal-ai/connector-hermes": "0.3.2",
33
- "@cotal-ai/connector-opencode": "0.3.2",
34
- "@cotal-ai/manager": "0.3.2",
35
- "@cotal-ai/core": "0.3.2"
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",