@integrity-labs/agt-cli 0.28.344 → 0.28.345

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.
@@ -39573,15 +39573,20 @@ var FRESH_HEARTBEAT_THRESHOLD_MS = 2 * 60 * 1e3;
39573
39573
  // ../core/dist/claude-code-usage/banner-parser.js
39574
39574
  var SEP = /[\s·\-–—]+/.source;
39575
39575
  var SUBJECT = /(?:You(?:['’]ve|\s+have)?\s+)?/.source;
39576
- var RESET_DATE = /[A-Za-z]{3,9}\s+\d{1,2}(?:\s*,\s*\d{1,2}(?::\d{2})?\s*(?:am|pm)(?:\s*\(?UTC\)?)?)?/.source;
39576
+ var TIME_OF_DAY = /\d{1,2}(?::\d{2})?\s*(?:am|pm)(?:\s*\(?UTC\)?)?/.source;
39577
+ var RESET_DATE = `(?:[A-Za-z]{3,9}\\s+\\d{1,2}(?:\\s*,\\s*${TIME_OF_DAY})?|${TIME_OF_DAY})`;
39577
39578
  var BANNER_PATTERNS = [
39578
39579
  // Percentage form — pct in group 1, reset in group 2.
39579
39580
  new RegExp(`${SUBJECT}used\\s+(\\d{1,3})%\\s+of\\s+your\\s+weekly\\s+limit${SEP}resets\\s+(${RESET_DATE})`, "i"),
39580
- // Saturated form (ENG-5434) — no pct, reset in group 1. Wrapped to keep
39581
- // the per-pattern shape consistent with the percentage form: the parser
39582
- // checks group 1 for a digit string and treats a missing one as pct=100.
39583
- new RegExp(`${SUBJECT}hit\\s+your\\s+limit${SEP}resets\\s+(${RESET_DATE})`, "i")
39581
+ // Saturated form (ENG-5434, extended by ENG-7904) — no pct, reset in group 1.
39582
+ // An optional qualifier word ("weekly", "5-hour", …) may sit between "your"
39583
+ // and "limit"; matching it keeps the parser resilient to CC's phrasing drift.
39584
+ // Wrapped to keep the per-pattern shape consistent with the percentage form:
39585
+ // the parser checks group 1 for a digit string and treats a missing one as
39586
+ // pct=100.
39587
+ new RegExp(`${SUBJECT}hit\\s+your\\s+(?:[a-z0-9-]+\\s+)?limit${SEP}resets\\s+(${RESET_DATE})`, "i")
39584
39588
  ];
39589
+ var MS_PER_DAY = 24 * 60 * 60 * 1e3;
39585
39590
 
39586
39591
  // ../core/dist/kanban/state-machine.js
39587
39592
  var KANBAN_STATUSES = [