agent-dag 1.33.18 → 1.33.20
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/dist/web/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
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-DLJMh8ec.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-Cpi89XJ8.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-dag",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.20",
|
|
4
4
|
"description": "Live deck of Claude Code and Codex agents — watch parallel subagents fork, call tools, and return on one calm canvas. Also available as npx ccdeck and npx agent-dag.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/server/index.mjs
CHANGED
|
@@ -86,6 +86,15 @@ const pendingTranscriptReads = new Set(); // sessionId currently being read
|
|
|
86
86
|
const modelLastReadAt = new Map(); // sessionId -> ms timestamp (re-read throttle)
|
|
87
87
|
const MODEL_READ_THROTTLE_MS = 2500;
|
|
88
88
|
|
|
89
|
+
/** The cache entry is `{ rootModel, subsSig }`, but `payload.model` is a
|
|
90
|
+
* model *string* — that is the only shape the client's recursive scanner
|
|
91
|
+
* reads. Returns the root model id, or null when the session resolved
|
|
92
|
+
* only subagent models and has no root model yet. */
|
|
93
|
+
export function cachedModelId(cached) {
|
|
94
|
+
const rootModel = cached?.rootModel;
|
|
95
|
+
return typeof rootModel === "string" && rootModel ? rootModel : null;
|
|
96
|
+
}
|
|
97
|
+
|
|
89
98
|
/** Read the main session JSONL. Returns the root model and any
|
|
90
99
|
* legacy-schema subagent models (older CC versions kept subagent blocks
|
|
91
100
|
* inline with `isSidechain:true` + `parentToolUseID`). Current CC versions
|
|
@@ -846,8 +855,8 @@ function pushEvent(raw, source, opts = {}) {
|
|
|
846
855
|
// Synchronous enrichment: if we already know this session's model, stamp
|
|
847
856
|
// it on the payload so the client's recursive scanner picks it up.
|
|
848
857
|
if (raw && typeof raw === "object" && raw.session_id && !raw.model) {
|
|
849
|
-
const
|
|
850
|
-
if (
|
|
858
|
+
const modelId = cachedModelId(modelBySession.get(raw.session_id));
|
|
859
|
+
if (modelId) raw.model = modelId;
|
|
851
860
|
}
|
|
852
861
|
|
|
853
862
|
const seq = nextSeq++;
|