codeam-cli 1.4.23 → 1.4.24

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 +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
115
115
  // package.json
116
116
  var package_default = {
117
117
  name: "codeam-cli",
118
- version: "1.4.23",
118
+ version: "1.4.24",
119
119
  description: "Remote control Claude Code from your mobile device",
120
120
  main: "dist/index.js",
121
121
  bin: {
@@ -1699,6 +1699,8 @@ async function start() {
1699
1699
  const historySvc = new HistoryService(pluginId, cwd);
1700
1700
  let capturingQuota = false;
1701
1701
  let quotaBuffer = "";
1702
+ let turnCount = 0;
1703
+ const USAGE_FETCH_INTERVAL = 5;
1702
1704
  function fetchQuotaUsage() {
1703
1705
  capturingQuota = true;
1704
1706
  quotaBuffer = "";
@@ -1725,7 +1727,10 @@ async function start() {
1725
1727
  }, (reset) => {
1726
1728
  historySvc.setRateLimitReset(reset);
1727
1729
  }, () => {
1728
- fetchQuotaUsage();
1730
+ turnCount++;
1731
+ if (turnCount % USAGE_FETCH_INTERVAL === 1) {
1732
+ fetchQuotaUsage();
1733
+ }
1729
1734
  });
1730
1735
  function sendPrompt(prompt) {
1731
1736
  outputSvc.newTurn();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.4.23",
3
+ "version": "1.4.24",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {