@tangle-network/agent-app 4.0.30 → 4.0.32
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-GHBQUZYG.js → chunk-DSFMSRWT.js} +4 -4
- 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/platform/agent-spend.d.ts +2 -1
- package/dist/platform/delegated-keys.d.ts +2 -1
- package/dist/platform/index.js +47 -23
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/platform-busy.d.ts +17 -0
- package/dist/preset-cloudflare/index.js +1 -1
- package/dist/public-consultation/index.d.ts +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-RK2VCJQW.js.map → chunk-5L3X42ES.js.map} +0 -0
- /package/dist/{chunk-LSUJ2RIC.js.map → chunk-AG5Q273U.js.map} +0 -0
- /package/dist/{chunk-GHBQUZYG.js.map → chunk-DSFMSRWT.js.map} +0 -0
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "../chunk-UFR4BXCC.js";
|
|
44
44
|
import {
|
|
45
45
|
runProtectedRouterTurn
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-5L3X42ES.js";
|
|
47
47
|
import {
|
|
48
48
|
HYBRID_TURN_GUIDANCE,
|
|
49
49
|
INTENT_LINE_HISTORY_MESSAGES,
|
|
@@ -74,14 +74,14 @@ import {
|
|
|
74
74
|
turnPromptText,
|
|
75
75
|
valueRedactor,
|
|
76
76
|
withProducerStream
|
|
77
|
-
} from "../chunk-
|
|
77
|
+
} from "../chunk-DSFMSRWT.js";
|
|
78
78
|
import "../chunk-SBHFMDR7.js";
|
|
79
79
|
import "../chunk-H6BRJU5M.js";
|
|
80
80
|
import "../chunk-4DBHC63F.js";
|
|
81
81
|
import "../chunk-RN4WPTBH.js";
|
|
82
82
|
import "../chunk-MM6RLOXF.js";
|
|
83
83
|
import "../chunk-M4QITAQV.js";
|
|
84
|
-
import "../chunk-
|
|
84
|
+
import "../chunk-G3W3EIP4.js";
|
|
85
85
|
import "../chunk-F4TUZYMX.js";
|
|
86
86
|
import {
|
|
87
87
|
redactErrorMessage
|
|
@@ -187,9 +187,9 @@ import "../chunk-S5SRJJQG.js";
|
|
|
187
187
|
import "../chunk-GD4ONMKJ.js";
|
|
188
188
|
import "../chunk-UGWQLQDS.js";
|
|
189
189
|
import "../chunk-R32MULDK.js";
|
|
190
|
-
import "../chunk-
|
|
190
|
+
import "../chunk-AG5Q273U.js";
|
|
191
191
|
import "../chunk-D6UJEOZQ.js";
|
|
192
|
-
import "../chunk-
|
|
192
|
+
import "../chunk-JLKH2VYF.js";
|
|
193
193
|
import "../chunk-KSLTD4FI.js";
|
|
194
194
|
import {
|
|
195
195
|
sniffMimeFromName
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRouterTurn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AG5Q273U.js";
|
|
4
4
|
|
|
5
5
|
// src/runtime/protected-model.ts
|
|
6
6
|
var GATEWAY_ORIGIN = "https://candidate-router.tangle.tools";
|
|
@@ -217,4 +217,4 @@ export {
|
|
|
217
217
|
createRouterProtectedModelPort,
|
|
218
218
|
runProtectedRouterTurn
|
|
219
219
|
};
|
|
220
|
-
//# sourceMappingURL=chunk-
|
|
220
|
+
//# sourceMappingURL=chunk-5L3X42ES.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
nextCallIndex,
|
|
6
6
|
tracedModelFetch,
|
|
7
7
|
turnTraceId
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JLKH2VYF.js";
|
|
9
9
|
import {
|
|
10
10
|
normalizeModelId
|
|
11
11
|
} from "./chunk-KSLTD4FI.js";
|
|
@@ -1104,4 +1104,4 @@ export {
|
|
|
1104
1104
|
composeRouterTurnPrompt,
|
|
1105
1105
|
runRouterTurn
|
|
1106
1106
|
};
|
|
1107
|
-
//# sourceMappingURL=chunk-
|
|
1107
|
+
//# sourceMappingURL=chunk-AG5Q273U.js.map
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
sandboxRunFailureDetail,
|
|
31
31
|
streamSandboxPrompt,
|
|
32
32
|
turnStorageBindings
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-G3W3EIP4.js";
|
|
34
34
|
import {
|
|
35
35
|
redactErrorMessage
|
|
36
36
|
} from "./chunk-MH74DY2I.js";
|
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
composeRouterTurnPromptSections,
|
|
147
147
|
narratesBefore,
|
|
148
148
|
runRouterTurn
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-AG5Q273U.js";
|
|
150
150
|
import {
|
|
151
151
|
createIntelligenceTurnTraceReader,
|
|
152
152
|
createIntelligenceTurnTraceSink,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
formatServerTiming,
|
|
155
155
|
otlpTraceId,
|
|
156
156
|
turnTraceId
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-JLKH2VYF.js";
|
|
158
158
|
import {
|
|
159
159
|
readSandboxBinaryBytes,
|
|
160
160
|
statSandboxFileSize
|
|
@@ -3747,4 +3747,4 @@ export {
|
|
|
3747
3747
|
createChatTurnRoutes,
|
|
3748
3748
|
streamChatRouteAsSandboxEvents
|
|
3749
3749
|
};
|
|
3750
|
-
//# sourceMappingURL=chunk-
|
|
3750
|
+
//# sourceMappingURL=chunk-DSFMSRWT.js.map
|
|
@@ -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
|