@tangle-network/agent-app 4.0.29 → 4.0.31
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/chat-routes/index.js +5 -5
- package/dist/{chunk-RK2VCJQW.js → chunk-5L3X42ES.js} +2 -2
- package/dist/{chunk-LSUJ2RIC.js → chunk-AG5Q273U.js} +2 -2
- package/dist/{chunk-WXK2AKRZ.js → chunk-DSFMSRWT.js} +11 -9
- package/dist/chunk-DSFMSRWT.js.map +1 -0
- package/dist/{chunk-7TZX2KSH.js → chunk-G3W3EIP4.js} +11 -4
- package/dist/chunk-G3W3EIP4.js.map +1 -0
- package/dist/{chunk-H7NMUXNZ.js → chunk-JLKH2VYF.js} +5 -4
- package/dist/chunk-JLKH2VYF.js.map +1 -0
- package/dist/preset-cloudflare/index.js +1 -1
- package/dist/public-consultation/index.js +4 -4
- package/dist/runtime/index.js +3 -3
- package/dist/runtime/router-turn.js +2 -2
- package/dist/sandbox/index.js +2 -2
- package/dist/turn-trace/index.js +1 -1
- package/dist/turn-trace/recorder.d.ts +2 -1
- package/package.json +1 -1
- package/dist/chunk-7TZX2KSH.js.map +0 -1
- package/dist/chunk-H7NMUXNZ.js.map +0 -1
- package/dist/chunk-WXK2AKRZ.js.map +0 -1
- /package/dist/{chunk-RK2VCJQW.js.map → chunk-5L3X42ES.js.map} +0 -0
- /package/dist/{chunk-LSUJ2RIC.js.map → chunk-AG5Q273U.js.map} +0 -0
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
formatServerTiming,
|
|
44
44
|
nextCallIndex
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-JLKH2VYF.js";
|
|
46
46
|
import {
|
|
47
47
|
fail,
|
|
48
48
|
isRuntimeAuthRefreshDenied,
|
|
@@ -123,8 +123,15 @@ function createPromptTrace(trace, parent, meta) {
|
|
|
123
123
|
const status = String(state?.status ?? part?.status ?? "");
|
|
124
124
|
const ranMs = (asNum(asRec(state?.time)?.end) ?? NaN) - (asNum(asRec(state?.time)?.start) ?? NaN);
|
|
125
125
|
if (!tools.has(id) && (status === "completed" || status === "error") && ranMs >= 0) {
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
return void tools.set(id, trace.record(
|
|
127
|
+
"tool.call",
|
|
128
|
+
"tool",
|
|
129
|
+
Math.max(startedAt, now - ranMs),
|
|
130
|
+
now,
|
|
131
|
+
toolAttrs(id, String(part?.tool ?? "tool")),
|
|
132
|
+
generation ?? prompt,
|
|
133
|
+
status === "error" ? "tool_error" : void 0
|
|
134
|
+
));
|
|
128
135
|
}
|
|
129
136
|
startTool(id, String(part?.tool ?? "tool"));
|
|
130
137
|
if (status === "completed" || status === "error") tools.get(id)?.end(void 0, status === "error" ? "tool_error" : void 0);
|
|
@@ -4393,4 +4400,4 @@ export {
|
|
|
4393
4400
|
deleteSecret,
|
|
4394
4401
|
mintSandboxScopedToken
|
|
4395
4402
|
};
|
|
4396
|
-
//# sourceMappingURL=chunk-
|
|
4403
|
+
//# sourceMappingURL=chunk-G3W3EIP4.js.map
|