cotal-ai 0.0.1 → 0.3.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 +11 -4
- package/dist/cotal.js +22 -0
- package/package.json +45 -6
package/README.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# cotal-ai
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
lateral peers in a shared pub/sub space
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
The `cotal` CLI for **Cotal** — a standard wire interface for AI agents to coordinate
|
|
4
|
+
as lateral peers in a shared pub/sub space (NATS + JetStream).
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npx cotal-ai # guided first-run setup: NATS, mesh, agent connectors
|
|
8
|
+
npx cotal-ai up # start a local mesh
|
|
9
|
+
npx cotal-ai join --space demo --name you
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Libraries ship as the [`@cotal-ai/*`](https://www.npmjs.com/org/cotal-ai) packages.
|
|
13
|
+
See the [repository](https://github.com/Cotal-AI/Cotal) for docs.
|
package/dist/cotal.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Composition root for the `cotal` operator CLI, published as `cotal-ai`. Importing an
|
|
4
|
+
* implementation self-registers its commands into the shared registry — base mesh commands
|
|
5
|
+
* plus `spawn`/`console` (@cotal-ai/cli) and the manager's control plane + daemon runners
|
|
6
|
+
* (@cotal-ai/manager). The root just picks which surfaces to pull in; `runCli` resolves
|
|
7
|
+
* whatever registered. A new surface (another connector, a control client …) is one more import line.
|
|
8
|
+
*/
|
|
9
|
+
import { runCli } from "@cotal-ai/cli"; // self-registers up / down / join / watch / spawn / console / setup
|
|
10
|
+
import "@cotal-ai/manager"; // self-registers supervise / cmux / start / stop / ps / attach
|
|
11
|
+
import "@cotal-ai/connector-claude-code"; // registers the `claude` connector that spawn / start resolve
|
|
12
|
+
import "@cotal-ai/connector-opencode"; // registers the `opencode` connector (native in-process plugin)
|
|
13
|
+
import "@cotal-ai/connector-hermes"; // registers the `hermes` connector (Nous Research gateway as a mesh peer)
|
|
14
|
+
import "@cotal-ai/cmux"; // opt into the cmux integration — registers the `cmux` runtime + TerminalLayout providers
|
|
15
|
+
import { claudeConnector } from "@cotal-ai/connector-claude-code";
|
|
16
|
+
import { registry } from "@cotal-ai/core";
|
|
17
|
+
// The manager's default agent type is "cotal"; make it a real Claude coder so a bare
|
|
18
|
+
// cotal_spawn / `cotal start --name x` (no --agent) brings up a Claude Code session.
|
|
19
|
+
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"];
|
|
22
|
+
await runCli(registry, argv);
|
package/package.json
CHANGED
|
@@ -1,10 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cotal-ai",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Cotal — lateral agent coordination over NATS. Run `npx cotal-ai` for a guided setup.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"keywords": [
|
|
6
|
+
"keywords": [
|
|
7
|
+
"cotal",
|
|
8
|
+
"agents",
|
|
9
|
+
"multi-agent",
|
|
10
|
+
"nats",
|
|
11
|
+
"jetstream",
|
|
12
|
+
"pubsub",
|
|
13
|
+
"mcp"
|
|
14
|
+
],
|
|
7
15
|
"homepage": "https://github.com/Cotal-AI/Cotal#readme",
|
|
8
|
-
"repository": {
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/Cotal-AI/Cotal.git",
|
|
19
|
+
"directory": "bin"
|
|
20
|
+
},
|
|
21
|
+
"type": "module",
|
|
22
|
+
"bin": {
|
|
23
|
+
"cotal": "./dist/cotal.js"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@cotal-ai/cli": "0.3.0",
|
|
30
|
+
"@cotal-ai/cmux": "0.3.0",
|
|
31
|
+
"@cotal-ai/connector-hermes": "0.3.0",
|
|
32
|
+
"@cotal-ai/core": "0.3.0",
|
|
33
|
+
"@cotal-ai/connector-opencode": "0.3.0",
|
|
34
|
+
"@cotal-ai/connector-claude-code": "0.3.0",
|
|
35
|
+
"@cotal-ai/manager": "0.3.0"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"README.md",
|
|
40
|
+
"LICENSE"
|
|
41
|
+
],
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
47
|
+
"build": "tsc -p tsconfig.json"
|
|
48
|
+
}
|
|
49
|
+
}
|