agent-dag 1.17.0 → 1.18.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 +8 -6
- package/bin/agent-dag.js +9 -9
- package/dist/web/assets/index-uANyTzBq.js +62 -0
- package/dist/web/index.html +2 -2
- package/package.json +7 -5
- package/src/server/index.mjs +20 -6
- package/dist/web/assets/index-DqX-Cmxy.js +0 -62
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# agents-deck
|
|
2
2
|
|
|
3
|
-
Live
|
|
3
|
+
Live deck of Claude Code **and OpenAI Codex** agents. Watch parallel subagents fork, call tools, and return — all on one calm canvas.
|
|
4
|
+
|
|
5
|
+
> Formerly **agent-dag**. The old name still works — `agents-deck` and `agent-dag` are published as the same package, and the `agent-dag` command remains a built-in alias.
|
|
4
6
|
|
|
5
7
|
## Run
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
npx
|
|
10
|
+
npx agents-deck
|
|
9
11
|
```
|
|
10
12
|
|
|
11
13
|
Opens http://127.0.0.1:4317 (or a random port in 4318–4400 if 4317 is taken). Start a Claude Code **or Codex** session in any directory and watch the graph fill in. Both providers render side by side on the same canvas; the model chip on each node tells them apart (e.g. `Opus 4.8`, `GPT-5.5`).
|
|
@@ -22,7 +24,7 @@ Opens http://127.0.0.1:4317 (or a random port in 4318–4400 if 4317 is taken).
|
|
|
22
24
|
--no-codex Skip Codex capture (Claude only)
|
|
23
25
|
--history <path> Override events log file (default: ~/.claude/agent-dag/events.jsonl)
|
|
24
26
|
--no-persist RAM-only mode, no log file
|
|
25
|
-
--uninstall Remove
|
|
27
|
+
--uninstall Remove agents-deck hooks from ~/.claude/settings.json
|
|
26
28
|
-h, --help Show help
|
|
27
29
|
```
|
|
28
30
|
|
|
@@ -38,7 +40,7 @@ Opens http://127.0.0.1:4317 (or a random port in 4318–4400 if 4317 is taken).
|
|
|
38
40
|
|
|
39
41
|
Two providers, two capture paths — both stream to the same server, which pushes events to the browser over SSE.
|
|
40
42
|
|
|
41
|
-
**Claude Code** — `
|
|
43
|
+
**Claude Code** — `agents-deck` registers a hook script in `~/.claude/settings.json` for these events:
|
|
42
44
|
|
|
43
45
|
`SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `SubagentStart`, `SubagentStop`, `Stop`, `SessionEnd`, `Notification`.
|
|
44
46
|
|
|
@@ -49,7 +51,7 @@ The hook forwards the event JSON to the running server.
|
|
|
49
51
|
## Uninstall
|
|
50
52
|
|
|
51
53
|
```bash
|
|
52
|
-
npx
|
|
54
|
+
npx agents-deck --uninstall
|
|
53
55
|
```
|
|
54
56
|
|
|
55
57
|
Removes all hooks from `~/.claude/settings.json`.
|
package/bin/agent-dag.js
CHANGED
|
@@ -24,13 +24,13 @@ if (flags.uninstall) {
|
|
|
24
24
|
const { uninstallHooks, hasCodexInstalled } = await import(pathToFileURL(join(PKG_ROOT, "src/server/installer.mjs")).href);
|
|
25
25
|
const claude = await uninstallHooks({ provider: "claude" });
|
|
26
26
|
console.log(claude.changed
|
|
27
|
-
? `
|
|
28
|
-
: "
|
|
27
|
+
? `agents-deck: hooks removed from ${claude.settingsPath}`
|
|
28
|
+
: "agents-deck: no Claude hooks to remove");
|
|
29
29
|
if (hasCodexInstalled()) {
|
|
30
30
|
const codex = await uninstallHooks({ provider: "codex" });
|
|
31
31
|
console.log(codex.changed
|
|
32
|
-
? `
|
|
33
|
-
: "
|
|
32
|
+
? `agents-deck: hooks removed from ${codex.settingsPath}`
|
|
33
|
+
: "agents-deck: no Codex hooks to remove");
|
|
34
34
|
}
|
|
35
35
|
process.exit(0);
|
|
36
36
|
}
|
|
@@ -59,7 +59,7 @@ const wantCodex = flags.noCodex
|
|
|
59
59
|
|
|
60
60
|
const WEB_DIST = join(PKG_ROOT, "dist", "web", "index.html");
|
|
61
61
|
if (!existsSync(WEB_DIST)) {
|
|
62
|
-
console.error("
|
|
62
|
+
console.error("agents-deck: ui not built. run `npm run build` (or `pnpm build`) first.");
|
|
63
63
|
process.exit(1);
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -88,7 +88,7 @@ async function printBanner() {
|
|
|
88
88
|
|
|
89
89
|
// Each entry: [rendered string with ANSI, visible char count, left-border color, right-border color]
|
|
90
90
|
const rows = [
|
|
91
|
-
{ l: ` ${C.bCyan}${C.bold}◉${C.reset} ${C.white}${C.bold}
|
|
91
|
+
{ l: ` ${C.bCyan}${C.bold}◉${C.reset} ${C.white}${C.bold}agents-deck${C.reset} ${C.dim}v${PKG_VERSION}${C.reset}`, vis: 19 + PKG_VERSION.length, lc: C.blue, rc: C.blue },
|
|
92
92
|
{ l: ` ${C.dim}live DAG · Claude Code + Codex${C.reset}`, vis: 32, lc: C.magenta, rc: C.magenta },
|
|
93
93
|
{ l: ` ${C.yellow}watch agents fork ${C.cyan}→${C.reset} ${C.green}tools fire${C.reset}`, vis: 34, lc: C.bMag, rc: C.bMag },
|
|
94
94
|
];
|
|
@@ -206,10 +206,10 @@ function parseArgs(args) {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
function printHelp() {
|
|
209
|
-
process.stdout.write(`
|
|
209
|
+
process.stdout.write(`agents-deck — live deck of Claude Code + Codex agents
|
|
210
210
|
|
|
211
211
|
Usage:
|
|
212
|
-
|
|
212
|
+
agents-deck [options]
|
|
213
213
|
|
|
214
214
|
Options:
|
|
215
215
|
-p, --port <number> Preferred port (default: 4317; falls back to random 4318–4400)
|
|
@@ -221,7 +221,7 @@ Options:
|
|
|
221
221
|
--no-persist Don't write or replay events log (RAM-only)
|
|
222
222
|
--codex Force-enable Codex capture even if ~/.codex/ missing
|
|
223
223
|
--no-codex Skip Codex capture (Claude only)
|
|
224
|
-
--uninstall Remove
|
|
224
|
+
--uninstall Remove agents-deck Claude hook entries
|
|
225
225
|
-h, --help Show this help
|
|
226
226
|
`);
|
|
227
227
|
}
|