agent-dag 1.30.1 → 1.30.2
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-DtE3W-dV.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-BLOOP_Fy.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.30.
|
|
3
|
+
"version": "1.30.2",
|
|
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": {
|
|
@@ -65,20 +65,30 @@ let _lastNudge = 0;
|
|
|
65
65
|
/**
|
|
66
66
|
* Whether anything is waiting to be collected.
|
|
67
67
|
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
68
|
+
* Judged per account that actually exists, and an account counts as waiting in
|
|
69
|
+
* three cases:
|
|
70
|
+
*
|
|
71
|
+
* - it has no usage row at all;
|
|
72
|
+
* - it has a row whose fetchedAt is not a number. claude-swap writes a row
|
|
73
|
+
* when an account is added and fills in the numbers when it first polls,
|
|
74
|
+
* so "row exists" is not the same as "has been fetched" — and that is the
|
|
75
|
+
* state a freshly added account sits in. Treating the row's existence as
|
|
76
|
+
* proof of a fetch left a new account reading "never fetched" forever;
|
|
77
|
+
* - its own schedule says the next poll is due.
|
|
78
|
+
*
|
|
79
|
+
* Rows are consulted only for accounts in the store. A removed account leaves
|
|
80
|
+
* its row behind, permanently overdue and impossible to collect because the
|
|
81
|
+
* account is gone — counting those meant something was always due and the
|
|
82
|
+
* collector was asked every minute for the rest of the session.
|
|
74
83
|
*/
|
|
75
84
|
export function collectionDue(rows, slots, now) {
|
|
76
85
|
for (const slot of slots) {
|
|
77
|
-
|
|
86
|
+
const r = rows[slot];
|
|
87
|
+
if (!r) return true; // never seen
|
|
88
|
+
if (typeof r.fetchedAt !== "number") return true; // seen, never fetched
|
|
89
|
+
if (typeof r.nextPollAt === "number" && r.nextPollAt * 1000 <= now) return true;
|
|
78
90
|
}
|
|
79
|
-
return
|
|
80
|
-
typeof r?.nextPollAt === "number" && r.nextPollAt * 1000 <= now
|
|
81
|
-
);
|
|
91
|
+
return false;
|
|
82
92
|
}
|
|
83
93
|
|
|
84
94
|
function nudgeCollector(rows, slots, now) {
|