cyberlegion 0.1.0 → 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/bin/cyberlegion.mjs +2 -1
- package/dist/cli.d.mts +12 -1
- package/dist/cli.mjs +328 -265
- package/dist/index.d.mts +105 -286
- package/dist/index.mjs +4 -28
- package/dist/watch-BZmEAqUo.mjs +1791 -0
- package/package.json +7 -5
- package/readme.md +35 -30
- package/dist/watch-BuYsdwhx.mjs +0 -1609
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cyberlegion",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Harness-agnostic agent session spawning
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Harness-agnostic agent session spawning and messaging over the filesystem",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
7
7
|
"claude-code",
|
|
8
8
|
"cursor",
|
|
9
9
|
"codex",
|
|
10
10
|
"inter-agent",
|
|
11
|
-
"dispatch",
|
|
12
11
|
"tmux"
|
|
13
12
|
],
|
|
14
13
|
"repository": {
|
|
@@ -34,7 +33,8 @@
|
|
|
34
33
|
"dist"
|
|
35
34
|
],
|
|
36
35
|
"dependencies": {
|
|
37
|
-
"commander": "^14.0.3"
|
|
36
|
+
"commander": "^14.0.3",
|
|
37
|
+
"cyber-mux": "0.3.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^24.10.1",
|
|
@@ -52,8 +52,10 @@
|
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsdown",
|
|
55
|
+
"check:metaphor-free": "tsx src/check-metaphor-free.ts",
|
|
56
|
+
"check:spec": "sdd-check-specs",
|
|
55
57
|
"dev": "tsx src/cli.ts",
|
|
56
|
-
"test": "
|
|
58
|
+
"test": "vitest run src",
|
|
57
59
|
"test:watch": "vitest",
|
|
58
60
|
"typecheck": "tsc --noEmit"
|
|
59
61
|
}
|
package/readme.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/cyberlegion)
|
|
4
4
|
[](LICENSE)
|
|
5
5
|
|
|
6
|
-
Harness-agnostic, MCP-free agent session spawning
|
|
6
|
+
Harness-agnostic, MCP-free agent session spawning and messaging over the filesystem (Claude Code, Cursor, Codex).
|
|
7
7
|
|
|
8
|
-
The CLI is pure mechanism — dumb hands a routing layer composes. It never decides *how* to reach a peer (warm-peer session vs cold subagent vs run-inline); it just spawns
|
|
8
|
+
The CLI is pure mechanism — dumb hands a routing layer composes. It never decides *how* to reach a peer (warm-peer session vs cold subagent vs run-inline); it just spawns and messages, and the routing brain composes those primitives (spawn a peer + await its mail, or run a cold subagent and take its Task result). State lives under a shared hub root (`$CYBERLEGION_ROOT`, else the global hub).
|
|
9
9
|
|
|
10
10
|
## Usage
|
|
11
11
|
|
|
@@ -23,24 +23,19 @@ npx cyberlegion@0.1.0 <command>
|
|
|
23
23
|
|
|
24
24
|
## Commands
|
|
25
25
|
|
|
26
|
-
###
|
|
26
|
+
### unit — self-identify, discover peers, and manage session lifecycle
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
npx cyberlegion
|
|
30
|
-
npx cyberlegion
|
|
31
|
-
npx cyberlegion
|
|
32
|
-
npx cyberlegion
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
npx cyberlegion
|
|
39
|
-
npx cyberlegion session list # list live peer sessions
|
|
40
|
-
npx cyberlegion session focus <ref> # move input focus to a peer's session
|
|
41
|
-
npx cyberlegion session nudge <ref> # ring a peer's session (doorbell)
|
|
42
|
-
npx cyberlegion session read <ref> # scrape a peer's session screen
|
|
43
|
-
npx cyberlegion session close <id> # tear down worktree + session, reap state
|
|
29
|
+
npx cyberlegion unit register --handle scout # register/refresh this session
|
|
30
|
+
npx cyberlegion unit register --standing --handle homa # mint a standing, session-independent owner inbox
|
|
31
|
+
npx cyberlegion unit whoami # print your own identity
|
|
32
|
+
npx cyberlegion unit who # list addressable peers / live peer sessions
|
|
33
|
+
npx cyberlegion unit prune # mark dead agents exited and sweep
|
|
34
|
+
npx cyberlegion unit spawn --agent reviewer # launch a peer in its own git worktree (tmux/herdr)
|
|
35
|
+
npx cyberlegion unit focus <ref> # move input focus to a peer's session
|
|
36
|
+
npx cyberlegion unit nudge <ref> # ring a peer's session (doorbell)
|
|
37
|
+
npx cyberlegion unit read <ref> # scrape a peer's session screen
|
|
38
|
+
npx cyberlegion unit close <id> # tear down worktree + session, reap state
|
|
44
39
|
```
|
|
45
40
|
|
|
46
41
|
### mail — durable inter-agent messaging
|
|
@@ -56,14 +51,6 @@ npx cyberlegion mail watch # stream new matching mail
|
|
|
56
51
|
npx cyberlegion mail hook # emit the harness hook injection payload (JSON)
|
|
57
52
|
```
|
|
58
53
|
|
|
59
|
-
### dispatch — delegate work and await a result
|
|
60
|
-
|
|
61
|
-
```sh
|
|
62
|
-
npx cyberlegion dispatch prep # allocate id + brief + result slot (spawns nothing)
|
|
63
|
-
npx cyberlegion dispatch channel --agent worker --wait # prep + spawn + await the reply
|
|
64
|
-
npx cyberlegion dispatch collect <id> # read + validate a subagent's result file
|
|
65
|
-
```
|
|
66
|
-
|
|
67
54
|
### agent — resolve reusable agent definitions
|
|
68
55
|
|
|
69
56
|
Reads definitions under `.agents/agents/`.
|
|
@@ -75,12 +62,30 @@ npx cyberlegion agent resolve <name> # emit the full machine pay
|
|
|
75
62
|
npx cyberlegion agent path <name> # print the resolved def file path
|
|
76
63
|
```
|
|
77
64
|
|
|
78
|
-
###
|
|
65
|
+
### mux — multiplexer diagnostics
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
npx cyberlegion mux doctor # probe harness, multiplexer, hub root, self-id
|
|
69
|
+
npx cyberlegion mux mode # report the detected session-backend mode
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### init — onboarding
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
npx cyberlegion init # wire the mail-surfacing hook into a harness config
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### attach — the human's read-pane
|
|
79
|
+
|
|
80
|
+
```sh
|
|
81
|
+
npx cyberlegion attach # bind this pane as the hub's main (owner) pane
|
|
82
|
+
npx cyberlegion attach --show # print the bound main pane
|
|
83
|
+
npx cyberlegion attach --clear # unbind the main pane
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### admin — hub-state maintenance
|
|
79
87
|
|
|
80
88
|
```sh
|
|
81
|
-
npx cyberlegion admin install # wire the mail-surfacing hook into a harness config
|
|
82
|
-
npx cyberlegion admin doctor # probe harness, multiplexer, hub root, self-id
|
|
83
|
-
npx cyberlegion admin mode # report the detected session-backend mode
|
|
84
89
|
npx cyberlegion admin migrate # merge one hub root state into another
|
|
85
90
|
```
|
|
86
91
|
|