omniagent 0.1.11 → 0.1.12

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.
@@ -343,7 +343,7 @@ function parseClaudeLines(lines) {
343
343
  continue;
344
344
  }
345
345
  if (line.startsWith("Current week")) {
346
- section = "currentWeek";
346
+ section = shouldParseClaudeWeeklySection(line, values) ? "currentWeek" : "";
347
347
  continue;
348
348
  }
349
349
  if (!section) {
@@ -368,6 +368,13 @@ function parseClaudeLines(lines) {
368
368
  }
369
369
  return values;
370
370
  }
371
+ function shouldParseClaudeWeeklySection(line, values) {
372
+ const sectionLabel = line.toLowerCase();
373
+ if (/\([^)]*\bonly\)/.test(sectionLabel)) {
374
+ return false;
375
+ }
376
+ return !values.currentWeekUsed || sectionLabel.includes("all models");
377
+ }
371
378
  function formatRaw(used, resets) {
372
379
  if (!used) {
373
380
  return "";
package/dist/cli.js CHANGED
@@ -1322,7 +1322,7 @@ const claudeTarget = {
1322
1322
  timeoutMs: 6e4
1323
1323
  },
1324
1324
  extract: async (context) => {
1325
- const { extractClaudeUsage } = await import("./claude-C0SMAkM3.js");
1325
+ const { extractClaudeUsage } = await import("./claude-Blr7YqBx.js");
1326
1326
  return extractClaudeUsage(context);
1327
1327
  }
1328
1328
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omniagent",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Unified agent configuration CLI that compiles canonical agent configs to multiple runtimes.",
5
5
  "type": "module",
6
6
  "bin": {