codeam-cli 1.4.29 → 1.4.30

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -116,7 +116,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
116
116
  // package.json
117
117
  var package_default = {
118
118
  name: "codeam-cli",
119
- version: "1.4.29",
119
+ version: "1.4.30",
120
120
  description: "Remote control Claude Code from your mobile device",
121
121
  main: "dist/index.js",
122
122
  bin: {
@@ -1773,10 +1773,12 @@ except Exception:sys.exit(0)
1773
1773
  setTimeout(() => {
1774
1774
  proc.stdin?.write("/usage\r");
1775
1775
  setTimeout(() => {
1776
- const clean = output.replace(/\x1B\[[^@-~]*[@-~]/g, "").replace(/[\x00-\x1F\x7F]/g, "");
1777
- const weekMatch = clean.match(/current\s+week[^]*?(\d+)%\s*used/i);
1776
+ const clean = output.replace(/\x1B\[[^@-~]*[@-~]/g, "").replace(/[\x00-\x1F\x7F]/g, " ").replace(/\s+/g, " ");
1777
+ console.error("[quota-debug] output length:", output.length, "clean snippet:", clean.slice(0, 500));
1778
+ const weekMatch = clean.match(/(\d+)%\s*used/i) || clean.match(/(\d+)\s*%/);
1778
1779
  if (weekMatch) {
1779
1780
  historySvc.setQuotaPercent(parseInt(weekMatch[1], 10));
1781
+ console.error("[quota-debug] matched quotaPercent:", weekMatch[1]);
1780
1782
  }
1781
1783
  const resetMatch = clean.match(/resets\s+(.+?)(?:\s*\(|$)/im);
1782
1784
  if (resetMatch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.4.29",
3
+ "version": "1.4.30",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {