@node9/proxy 2.7.2 → 2.7.3

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/cli.js CHANGED
@@ -15152,11 +15152,14 @@ function scanCodexHistory(startDate, onProgress, onLine) {
15152
15152
  }
15153
15153
  }
15154
15154
  }
15155
- result.totalCostUSD += codexSessionCost(model, {
15156
- input: lastTotalInput,
15157
- cached: lastTotalCached,
15158
- output: lastTotalOutput
15159
- });
15155
+ const withinWindow = !startDate || startTime !== "" && new Date(startTime) >= startDate;
15156
+ if (withinWindow) {
15157
+ result.totalCostUSD += codexSessionCost(model, {
15158
+ input: lastTotalInput,
15159
+ cached: lastTotalCached,
15160
+ output: lastTotalOutput
15161
+ });
15162
+ }
15160
15163
  result.loopFindings.push(...detectLoops(sessionCalls, projLabel, sessionId, "codex"));
15161
15164
  }
15162
15165
  return result;
package/dist/cli.mjs CHANGED
@@ -15156,11 +15156,14 @@ function scanCodexHistory(startDate, onProgress, onLine) {
15156
15156
  }
15157
15157
  }
15158
15158
  }
15159
- result.totalCostUSD += codexSessionCost(model, {
15160
- input: lastTotalInput,
15161
- cached: lastTotalCached,
15162
- output: lastTotalOutput
15163
- });
15159
+ const withinWindow = !startDate || startTime !== "" && new Date(startTime) >= startDate;
15160
+ if (withinWindow) {
15161
+ result.totalCostUSD += codexSessionCost(model, {
15162
+ input: lastTotalInput,
15163
+ cached: lastTotalCached,
15164
+ output: lastTotalOutput
15165
+ });
15166
+ }
15164
15167
  result.loopFindings.push(...detectLoops(sessionCalls, projLabel, sessionId, "codex"));
15165
15168
  }
15166
15169
  return result;
@@ -5829,11 +5829,14 @@ function scanCodexHistory(startDate, onProgress, onLine) {
5829
5829
  }
5830
5830
  }
5831
5831
  }
5832
- result.totalCostUSD += codexSessionCost(model, {
5833
- input: lastTotalInput,
5834
- cached: lastTotalCached,
5835
- output: lastTotalOutput
5836
- });
5832
+ const withinWindow = !startDate || startTime !== "" && new Date(startTime) >= startDate;
5833
+ if (withinWindow) {
5834
+ result.totalCostUSD += codexSessionCost(model, {
5835
+ input: lastTotalInput,
5836
+ cached: lastTotalCached,
5837
+ output: lastTotalOutput
5838
+ });
5839
+ }
5837
5840
  result.loopFindings.push(...detectLoops(sessionCalls, projLabel, sessionId, "codex"));
5838
5841
  }
5839
5842
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node9/proxy",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "description": "The Sudo Command for AI Agents. Execution Security for Claude Code, Codex, Gemini, Cursor, Opencode, Pi, and any MCP server.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",