codeam-cli 1.4.28 → 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.
- package/dist/index.js +10 -8
- 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.
|
|
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: {
|
|
@@ -1761,7 +1761,7 @@ except Exception:sys.exit(0)
|
|
|
1761
1761
|
quotaFetchInProgress = false;
|
|
1762
1762
|
return;
|
|
1763
1763
|
}
|
|
1764
|
-
const proc = (0, import_child_process3.spawn)(python, [helperPath, claudeCmd, "--
|
|
1764
|
+
const proc = (0, import_child_process3.spawn)(python, [helperPath, claudeCmd, "--tools", ""], {
|
|
1765
1765
|
stdio: ["pipe", "pipe", "ignore"],
|
|
1766
1766
|
cwd: process.cwd(),
|
|
1767
1767
|
env: { ...process.env, TERM: "dumb", COLUMNS: "120", LINES: "30" }
|
|
@@ -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
|
-
|
|
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) {
|
|
@@ -1791,8 +1793,8 @@ except Exception:sys.exit(0)
|
|
|
1791
1793
|
} catch {
|
|
1792
1794
|
}
|
|
1793
1795
|
quotaFetchInProgress = false;
|
|
1794
|
-
},
|
|
1795
|
-
},
|
|
1796
|
+
}, 5e3);
|
|
1797
|
+
}, 8e3);
|
|
1796
1798
|
proc.on("exit", () => {
|
|
1797
1799
|
quotaFetchInProgress = false;
|
|
1798
1800
|
});
|
|
@@ -1801,7 +1803,7 @@ except Exception:sys.exit(0)
|
|
|
1801
1803
|
proc.kill();
|
|
1802
1804
|
} catch {
|
|
1803
1805
|
}
|
|
1804
|
-
},
|
|
1806
|
+
}, 2e4);
|
|
1805
1807
|
}
|
|
1806
1808
|
const outputSvc = new OutputService(session.id, pluginId, (conversationId) => {
|
|
1807
1809
|
historySvc.setCurrentConversationId(conversationId);
|
|
@@ -1967,7 +1969,7 @@ except Exception:sys.exit(0)
|
|
|
1967
1969
|
}, 2e3);
|
|
1968
1970
|
setTimeout(() => {
|
|
1969
1971
|
fetchQuotaUsage();
|
|
1970
|
-
},
|
|
1972
|
+
}, 5e3);
|
|
1971
1973
|
}
|
|
1972
1974
|
|
|
1973
1975
|
// src/commands/pair.ts
|