@link-assistant/hive-mind 1.50.14 → 1.50.15

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @link-assistant/hive-mind
2
2
 
3
+ ## 1.50.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 7cecf09: Fix auto-resume reset time parsing when usage-limit output includes a month/day prefix such as `Apr 17, 4:00 AM`.
8
+
3
9
  ## 1.50.14
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@link-assistant/hive-mind",
3
- "version": "1.50.14",
3
+ "version": "1.50.15",
4
4
  "description": "AI-powered issue solver and hive mind for collaborative problem solving",
5
5
  "main": "src/hive.mjs",
6
6
  "type": "module",
@@ -371,10 +371,12 @@ export const parseUrlComponents = issueUrl => {
371
371
  export const parseResetTime = timeStr => {
372
372
  // Normalize and parse time formats like:
373
373
  // "5:30am", "11:45pm", "12:16 PM", "07:05 Am", "5am", "5 AM"
374
+ // Also accepts date+time forms like "Apr 17, 4:00 AM" and ignores the date portion.
374
375
  const normalized = (timeStr || '').toString().trim();
376
+ const timePortion = normalized.replace(/^(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:t(?:ember)?)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s+\d{1,2},\s+/i, '');
375
377
 
376
378
  // Accept both HH:MM am/pm and HH am/pm
377
- let match = normalized.match(/^(\d{1,2})(?::(\d{2}))?\s*([ap]m)$/i);
379
+ let match = timePortion.match(/^(\d{1,2})(?::(\d{2}))?\s*([ap]m)$/i);
378
380
  if (!match) {
379
381
  throw new Error(`Invalid time format: ${timeStr}`);
380
382
  }