@sechroom/cli 2026.7.8 → 2026.7.9

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 +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5641,11 +5641,12 @@ function parseTranscript(path) {
5641
5641
  if (obj.message?.model) model = obj.message.model;
5642
5642
  }
5643
5643
  if (tokensIn === 0 && tokensOut === 0) return null;
5644
- return { tokensIn, tokensOut, contextUsed, contextWindow: windowFor(model) };
5644
+ return { tokensIn, tokensOut, contextUsed, contextWindow: windowFor(model, contextUsed) };
5645
5645
  }
5646
- function windowFor(model) {
5646
+ function windowFor(model, contextUsed = 0) {
5647
5647
  const m = model.toLowerCase();
5648
- return m.includes("[1m]") || m.includes("-1m") ? 1e6 : 2e5;
5648
+ if (m.includes("[1m]") || m.includes("-1m")) return 1e6;
5649
+ return contextUsed > 2e5 ? 1e6 : 2e5;
5649
5650
  }
5650
5651
  async function readStdin2() {
5651
5652
  if (process.stdin.isTTY) return "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sechroom/cli",
3
- "version": "2026.7.8",
3
+ "version": "2026.7.9",
4
4
  "description": "Sechroom CLI — a thin, generated client over the Sechroom HTTP API. An agent/human surface alongside MCP.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",