billion-context 0.1.65-pr.366.215 → 0.1.65-pr.368.218
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 +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50002,11 +50002,20 @@ async function flushAllSessions() {
|
|
|
50002
50002
|
}
|
|
50003
50003
|
|
|
50004
50004
|
// src/compress-tool.ts
|
|
50005
|
+
var REJECT_CATEGORY = {
|
|
50006
|
+
ok: "",
|
|
50007
|
+
"empty-input": "empty-call",
|
|
50008
|
+
"missing-content": "empty-call",
|
|
50009
|
+
"malformed-json": "stream-concat",
|
|
50010
|
+
"truncated": "stream-concat",
|
|
50011
|
+
"no-valid-ranges": "validation",
|
|
50012
|
+
"content-not-array": "validation",
|
|
50013
|
+
"not-object": "validation"
|
|
50014
|
+
};
|
|
50005
50015
|
function parseCompressInput(input, callId) {
|
|
50006
50016
|
const { ranges, diagnostics } = parseCompressArgs(input, { callId });
|
|
50007
50017
|
if (!diagnostics.ok && diagnostics.kind !== "ok") {
|
|
50008
|
-
|
|
50009
|
-
log("warn", `[acp-compress-input] rejected: category=${category} kind=${diagnostics.kind} invalidItems=${diagnostics.invalidItems}${diagnostics.keys ? ` keys=[${diagnostics.keys.join(",")}]` : ""}${diagnostics.length !== void 0 ? ` len=${diagnostics.length}` : ""}${callId ? ` callId=${callId}` : ""}`);
|
|
50018
|
+
log("warn", `[acp-compress-input] rejected: kind=${diagnostics.kind} category=${REJECT_CATEGORY[diagnostics.kind]}${callId ? ` callId=${callId}` : ""} invalidItems=${diagnostics.invalidItems}${diagnostics.keys ? ` keys=[${diagnostics.keys.join(",")}]` : ""}${diagnostics.length !== void 0 ? ` len=${diagnostics.length}` : ""}`);
|
|
50010
50019
|
}
|
|
50011
50020
|
return ranges;
|
|
50012
50021
|
}
|