@sechroom/cli 2026.7.7 → 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.
- package/dist/index.js +4 -3
- 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
|
-
|
|
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