agent-dag 1.33.26 → 1.33.28

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.
@@ -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-nJ-wQvVW.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-Bl3jQiYb.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.26",
3
+ "version": "1.33.28",
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": {
@@ -37,6 +37,13 @@ const MIME = {
37
37
  const MAX_BUFFER = 2000; // recent events kept for late SSE subscribers
38
38
  const events = []; // ring buffer
39
39
  let nextSeq = 1;
40
+ // Identity of *this* process's seq numbering. nextSeq restarts at 1 on every
41
+ // boot and is re-derived by replaying events.jsonl, so it is monotonic only
42
+ // within one process: rotation (50MB) or /api/clear shortens that log and the
43
+ // next boot starts numbering well below what an already-open tab saw. Stamped
44
+ // on every envelope so a client can tell "counter restarted" apart from "old
45
+ // duplicate" instead of silently dropping the live stream.
46
+ const SEQ_EPOCH = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
40
47
  const sseClients = new Set(); // res handles
41
48
 
42
49
  let persistPath = null; // absolute path to events.jsonl, or null
@@ -862,6 +869,7 @@ function pushEvent(raw, source, opts = {}) {
862
869
  const seq = nextSeq++;
863
870
  const evt = {
864
871
  seq,
872
+ epoch: SEQ_EPOCH,
865
873
  receivedAt: opts.receivedAt ?? Date.now(),
866
874
  source,
867
875
  payload: raw,