agent-dag 1.33.28 → 1.33.29

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-Bl3jQiYb.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-3lEPPb-i.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.28",
3
+ "version": "1.33.29",
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": {
@@ -238,13 +238,15 @@ function stripAnsi(s) {
238
238
  */
239
239
  // Parse "Jun 18, 4:09pm" (local time, no tz) into unix seconds.
240
240
  // Claude shows times in the user's local timezone, so parsing as local is correct.
241
- function parseResetToSec(resetStr) {
241
+ export function parseResetToSec(resetStr) {
242
242
  if (!resetStr) return null;
243
243
  try {
244
244
  const year = new Date().getFullYear();
245
- // "4:09pm" → "4:09 PM" so Date.parse handles it
245
+ // "4:09pm" → "4:09 PM" so Date.parse handles it. Minutes are optional in
246
+ // the CLI's output ("9am"); Date.parse rejects "9 AM", so supply ":00".
246
247
  const norm = resetStr
247
- .replace(/(\d{1,2}:\d{2})(am|pm)/i, "$1 $2")
248
+ .replace(/(\d{1,2})(?::(\d{2}))?\s*(am|pm)/i,
249
+ (_all, h, mm, ampm) => `${h}:${mm ?? "00"} ${ampm}`)
248
250
  .trim();
249
251
  const d = new Date(`${norm} ${year}`);
250
252
  return isNaN(d.getTime()) ? null : Math.floor(d.getTime() / 1000);