agent-dag 1.30.7 → 1.30.8
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 +17 -0
- package/bin/agent-dag.js +18 -0
- package/dist/web/assets/index-1i-Vckvo.js +66 -0
- package/dist/web/assets/index-CEAcuttN.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/src/server/index.mjs +17 -1
- package/src/server/self-update.mjs +179 -0
- package/dist/web/assets/index-BHfNMFBX.css +0 -1
- package/dist/web/assets/index-LYGlqJEO.js +0 -66
package/README.md
CHANGED
|
@@ -27,6 +27,7 @@ No config. No install step. Ctrl+C to stop.
|
|
|
27
27
|
- **Persistent replay** — events survive restarts; the log at `~/.claude/agent-dag/events.jsonl` replays the last session on open
|
|
28
28
|
- **Workspace filter** — `--scope` limits capture to the current directory; `--workspace <path>` for any subtree
|
|
29
29
|
- **Zero trust step for Codex** — no hook install, no `/hooks` trust prompt; the server tails `~/.codex/sessions/` directly
|
|
30
|
+
- **Version drift warning** — Node caches modules at startup, so a deck upgraded while running keeps executing the old code. The topbar says so, and points at the restart or the upgrade command
|
|
30
31
|
|
|
31
32
|
## How it works
|
|
32
33
|
|
|
@@ -62,6 +63,22 @@ agents-deck [options]
|
|
|
62
63
|
-h, --help Show this help
|
|
63
64
|
```
|
|
64
65
|
|
|
66
|
+
Environment:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
AGENT_DAG_PORT Default port, same as -p
|
|
70
|
+
CODEX_HOME Override ~/.codex
|
|
71
|
+
AGENTS_DECK_NO_INSTALL=1 Never install or update claude-swap / ccusage,
|
|
72
|
+
and don't ask npm about newer agents-deck releases
|
|
73
|
+
AGENTS_DECK_NO_UPDATE_CHECK=1 Don't ask npm about releases, but keep everything else
|
|
74
|
+
AGENTS_DECK_NO_FRESHEN=1 Never nudge claude-swap to collect usage early
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The update check is one ~20-byte GET to `registry.npmjs.org`, at most once a day,
|
|
78
|
+
and it never installs anything. Being told to restart after an upgrade is local
|
|
79
|
+
only — no network involved — and cannot be turned off, because a deck running
|
|
80
|
+
superseded code is a bug you cannot see any other way.
|
|
81
|
+
|
|
65
82
|
## Uninstall
|
|
66
83
|
|
|
67
84
|
```bash
|
package/bin/agent-dag.js
CHANGED
|
@@ -201,6 +201,24 @@ if (process.env.AGENTS_DECK_NO_INSTALL !== "1") {
|
|
|
201
201
|
else if (cu.state === "installing") process.stdout.write(` ${C.green}✓${C.reset} ccusage ${C.dim}installing in background${C.reset}\n`);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
// A newer release on npm, said once, in the place the upgrade gets typed.
|
|
205
|
+
// Started here and collected below so the lookup overlaps the rest of boot, and
|
|
206
|
+
// hard-capped so a slow registry cannot delay the server — the answer is
|
|
207
|
+
// usually already cached in ~/.agents-deck/.self-update-check anyway. It has to
|
|
208
|
+
// resolve BEFORE the pulse indicator starts writing over the last line.
|
|
209
|
+
const selfCheck = import(pathToFileURL(join(PKG_ROOT, "src/server/self-update.mjs")).href)
|
|
210
|
+
.then(m => m.versionReport({ running: PKG_VERSION, pkgRoot: PKG_ROOT }))
|
|
211
|
+
.catch(() => null);
|
|
212
|
+
const upgrade = await Promise.race([
|
|
213
|
+
selfCheck.then(r => r?.notice?.kind === "upgrade" ? r : null),
|
|
214
|
+
new Promise(r => setTimeout(() => r(null), 1200)),
|
|
215
|
+
]);
|
|
216
|
+
if (upgrade) {
|
|
217
|
+
process.stdout.write(
|
|
218
|
+
` ${C.yellow}↑${C.reset} update ${C.dim}v${upgrade.notice.to} available — ${C.reset}${C.yellow}${upgrade.command}${C.reset}\n`,
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
|
|
204
222
|
sp = spinner("starting server…");
|
|
205
223
|
const server = await startServer({ port, persist, workspace, codex: wantCodex }).catch(err => {
|
|
206
224
|
sp.stop(false, `server failed: ${err.message}`);
|