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 +2 -1
- package/dist/cotal.js +11 -2
- package/package.json +9 -9
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 #
|
|
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 `
|
|
21
|
-
const argv = process.argv.
|
|
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.
|
|
4
|
-
"description": "Cotal — lateral agent coordination over NATS. Run `npx cotal-ai` for
|
|
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.
|
|
30
|
-
"@cotal-ai/
|
|
31
|
-
"@cotal-ai/
|
|
32
|
-
"@cotal-ai/connector-hermes": "0.
|
|
33
|
-
"@cotal-ai/
|
|
34
|
-
"@cotal-ai/
|
|
35
|
-
"@cotal-ai/
|
|
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",
|