@blockrun/clawrouter 0.11.11 → 0.11.12
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/README.md +1 -1
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/update.sh +33 -23
package/dist/index.js
CHANGED
|
@@ -5771,7 +5771,8 @@ async function proxyRequest(req, res, apiBase, payFetch, options, routerOpts, de
|
|
|
5771
5771
|
};
|
|
5772
5772
|
}
|
|
5773
5773
|
const lastAssistantMsg = [...parsedMessages].reverse().find((m) => m.role === "assistant");
|
|
5774
|
-
const
|
|
5774
|
+
const assistantToolCalls = lastAssistantMsg?.tool_calls;
|
|
5775
|
+
const toolCallNames = Array.isArray(assistantToolCalls) ? assistantToolCalls.map((tc) => tc.function?.name).filter((n) => Boolean(n)) : void 0;
|
|
5775
5776
|
const contentHash = hashRequestContent(prompt, toolCallNames);
|
|
5776
5777
|
const shouldEscalate = sessionStore.recordRequestHash(effectiveSessionId, contentHash);
|
|
5777
5778
|
if (shouldEscalate) {
|