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/dist/web/index.html
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>
|
|
6
|
+
<title>agents-deck</title>
|
|
7
7
|
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='84' font-size='84'%3E%E2%97%89%3C/text%3E%3C/svg%3E" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-uANyTzBq.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-DGqLVo1U.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-dag",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Live
|
|
3
|
+
"version": "1.18.0",
|
|
4
|
+
"description": "Live deck of Claude Code and Codex agents — watch parallel subagents fork, call tools, and return on one calm canvas.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
+
"agents-deck": "bin/agent-dag.js",
|
|
7
8
|
"agent-dag": "bin/agent-dag.js"
|
|
8
9
|
},
|
|
9
10
|
"files": [
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"hooks",
|
|
38
39
|
"observability",
|
|
39
40
|
"dag",
|
|
41
|
+
"deck",
|
|
40
42
|
"graph",
|
|
41
43
|
"live"
|
|
42
44
|
],
|
|
@@ -44,12 +46,12 @@
|
|
|
44
46
|
"license": "MIT",
|
|
45
47
|
"repository": {
|
|
46
48
|
"type": "git",
|
|
47
|
-
"url": "git+https://github.com/BarganConstantin/
|
|
49
|
+
"url": "git+https://github.com/BarganConstantin/agents-deck.git"
|
|
48
50
|
},
|
|
49
51
|
"bugs": {
|
|
50
|
-
"url": "https://github.com/BarganConstantin/
|
|
52
|
+
"url": "https://github.com/BarganConstantin/agents-deck/issues"
|
|
51
53
|
},
|
|
52
|
-
"homepage": "https://github.com/BarganConstantin/
|
|
54
|
+
"homepage": "https://github.com/BarganConstantin/agents-deck#readme",
|
|
53
55
|
"dependencies": {
|
|
54
56
|
"open": "^10.1.0"
|
|
55
57
|
},
|
package/src/server/index.mjs
CHANGED
|
@@ -57,9 +57,9 @@ async function maybeRotatePersistFile() {
|
|
|
57
57
|
try { await unlink(oldPath); } catch {}
|
|
58
58
|
const { rename } = await import("node:fs/promises");
|
|
59
59
|
await rename(persistPath, oldPath);
|
|
60
|
-
console.log(`
|
|
60
|
+
console.log(`agents-deck: rotated ${persistPath} (${(s.size / 1024 / 1024).toFixed(0)}MB → ${oldPath})`);
|
|
61
61
|
} catch (err) {
|
|
62
|
-
console.error("
|
|
62
|
+
console.error("agents-deck: persist rotation failed:", err && err.message ? err.message : err);
|
|
63
63
|
} finally {
|
|
64
64
|
rotateInProgress = false;
|
|
65
65
|
}
|
|
@@ -725,13 +725,27 @@ function codexObjToPayload(obj, sid, cwd) {
|
|
|
725
725
|
try { input = JSON.parse(pl.arguments); } catch {}
|
|
726
726
|
return { ...base, hook_event_name: "PreToolUse", tool_name: pl.name ?? "tool", tool_input: input, tool_use_id: pl.call_id, model };
|
|
727
727
|
}
|
|
728
|
-
if (pl.type === "
|
|
729
|
-
return { ...base, hook_event_name: "
|
|
728
|
+
if (pl.type === "custom_tool_call") {
|
|
729
|
+
return { ...base, hook_event_name: "PreToolUse", tool_name: pl.name ?? "tool", tool_input: { patch: pl.input }, tool_use_id: pl.call_id, model };
|
|
730
|
+
}
|
|
731
|
+
if (pl.type === "function_call_output" || pl.type === "custom_tool_call_output") {
|
|
732
|
+
const tool_response = pl.output != null ? parseCodexOutput(pl.output) : undefined;
|
|
733
|
+
return { ...base, hook_event_name: "PostToolUse", tool_use_id: pl.call_id, tool_response, model };
|
|
730
734
|
}
|
|
731
735
|
}
|
|
732
736
|
return null;
|
|
733
737
|
}
|
|
734
738
|
|
|
739
|
+
function parseCodexOutput(raw) {
|
|
740
|
+
if (typeof raw !== "string") return raw;
|
|
741
|
+
try {
|
|
742
|
+
const o = JSON.parse(raw);
|
|
743
|
+
return (o && typeof o.output === "string") ? o.output : raw;
|
|
744
|
+
} catch {
|
|
745
|
+
return raw;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
735
749
|
function emitCodexEvent(payload) {
|
|
736
750
|
pushEvent(payload, "codex");
|
|
737
751
|
}
|
|
@@ -1087,9 +1101,9 @@ if (import.meta.url === pathToFileURL(process.argv[1]).href) {
|
|
|
1087
1101
|
startServer({ port }).then(s => {
|
|
1088
1102
|
const addr = s.address();
|
|
1089
1103
|
const p = typeof addr === "object" && addr ? addr.port : port;
|
|
1090
|
-
console.log(`
|
|
1104
|
+
console.log(`agents-deck server: http://127.0.0.1:${p}`);
|
|
1091
1105
|
}).catch(e => {
|
|
1092
|
-
console.error("
|
|
1106
|
+
console.error("agents-deck server failed:", e.message);
|
|
1093
1107
|
process.exit(1);
|
|
1094
1108
|
});
|
|
1095
1109
|
}
|