@tangle-network/agent-runtime 0.81.1 → 0.82.0
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/agent.js +3 -3
- package/dist/{chunk-35WXYO26.js → chunk-A7LZR5DT.js} +2 -2
- package/dist/{chunk-VHJDS6OR.js → chunk-CO2KBPRE.js} +2 -2
- package/dist/{chunk-EAGRBFQF.js → chunk-DJQFJEOD.js} +2 -2
- package/dist/{chunk-D6GIWPKD.js → chunk-JYURIKPF.js} +49 -2
- package/dist/chunk-JYURIKPF.js.map +1 -0
- package/dist/{chunk-OUGNIHDZ.js → chunk-KSGHI53L.js} +3 -3
- package/dist/{chunk-BPS254IE.js → chunk-SRGV56W4.js} +2 -2
- package/dist/{chunk-BPS254IE.js.map → chunk-SRGV56W4.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/intelligence.js +1 -1
- package/dist/loop-runner-bin.js +4 -4
- package/dist/loops.d.ts +51 -1
- package/dist/loops.js +5 -3
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-D6GIWPKD.js.map +0 -1
- /package/dist/{chunk-35WXYO26.js.map → chunk-A7LZR5DT.js.map} +0 -0
- /package/dist/{chunk-VHJDS6OR.js.map → chunk-CO2KBPRE.js.map} +0 -0
- /package/dist/{chunk-EAGRBFQF.js.map → chunk-DJQFJEOD.js.map} +0 -0
- /package/dist/{chunk-OUGNIHDZ.js.map → chunk-KSGHI53L.js.map} +0 -0
package/dist/agent.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-JYURIKPF.js";
|
|
2
2
|
import {
|
|
3
3
|
createSandboxForSpec
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-CO2KBPRE.js";
|
|
5
|
+
import "./chunk-SRGV56W4.js";
|
|
6
6
|
import "./chunk-H7IBHAFT.js";
|
|
7
7
|
import {
|
|
8
8
|
mapSandboxEvent
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildLoopOtelSpans,
|
|
3
3
|
createOtelExporter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SRGV56W4.js";
|
|
5
5
|
|
|
6
6
|
// src/mcp/trace-propagation.ts
|
|
7
7
|
function readTraceContextFromEnv() {
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
createPropagatingTraceEmitter,
|
|
50
50
|
traceContextToEnv
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=chunk-
|
|
52
|
+
//# sourceMappingURL=chunk-A7LZR5DT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildLoopSpanNodes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SRGV56W4.js";
|
|
4
4
|
import {
|
|
5
5
|
addTokenUsage,
|
|
6
6
|
deleteBoxSafe,
|
|
@@ -6590,4 +6590,4 @@ export {
|
|
|
6590
6590
|
createInProcessTransport,
|
|
6591
6591
|
serveCoordinationMcp
|
|
6592
6592
|
};
|
|
6593
|
-
//# sourceMappingURL=chunk-
|
|
6593
|
+
//# sourceMappingURL=chunk-CO2KBPRE.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
DELEGATION_STATUS_DESCRIPTION,
|
|
9
9
|
DELEGATION_STATUS_INPUT_SCHEMA,
|
|
10
10
|
DELEGATION_STATUS_TOOL_NAME
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CO2KBPRE.js";
|
|
12
12
|
|
|
13
13
|
// src/mcp/openai-tools.ts
|
|
14
14
|
function buildTool(name, description, parameters) {
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
mcpToolsForRuntimeMcp,
|
|
46
46
|
mcpToolsForRuntimeMcpSubset
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-DJQFJEOD.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InMemoryResultBlobStore,
|
|
3
3
|
InMemorySpawnJournal,
|
|
4
|
+
createExecutor,
|
|
4
5
|
createExecutorRegistry,
|
|
5
6
|
createSandboxLineage,
|
|
6
7
|
createSupervisor,
|
|
@@ -14,7 +15,7 @@ import {
|
|
|
14
15
|
settledToIteration,
|
|
15
16
|
supervise,
|
|
16
17
|
withDriverExecutor
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CO2KBPRE.js";
|
|
18
19
|
import {
|
|
19
20
|
addTokenUsage,
|
|
20
21
|
isAbortError,
|
|
@@ -2219,6 +2220,51 @@ function promotionGate(opts) {
|
|
|
2219
2220
|
};
|
|
2220
2221
|
}
|
|
2221
2222
|
|
|
2223
|
+
// src/runtime/resolve-sandbox-client.ts
|
|
2224
|
+
function resolveSandboxClient(opts) {
|
|
2225
|
+
switch (opts.backend) {
|
|
2226
|
+
case "sandbox": {
|
|
2227
|
+
if (!opts.sandboxClient) {
|
|
2228
|
+
throw new Error("resolveSandboxClient: backend 'sandbox' requires opts.sandboxClient");
|
|
2229
|
+
}
|
|
2230
|
+
return opts.sandboxClient;
|
|
2231
|
+
}
|
|
2232
|
+
case "bridge": {
|
|
2233
|
+
const bridge = opts.bridge;
|
|
2234
|
+
if (!bridge?.bearer || !bridge.model) {
|
|
2235
|
+
throw new Error(
|
|
2236
|
+
"resolveSandboxClient: backend 'bridge' requires bridge.bearer and bridge.model"
|
|
2237
|
+
);
|
|
2238
|
+
}
|
|
2239
|
+
return inlineSandboxClient(
|
|
2240
|
+
createExecutor({
|
|
2241
|
+
backend: "bridge",
|
|
2242
|
+
bridgeUrl: bridge.url ?? "http://127.0.0.1:3355",
|
|
2243
|
+
bridgeBearer: bridge.bearer,
|
|
2244
|
+
model: bridge.model,
|
|
2245
|
+
timeoutMs: bridge.timeoutMs
|
|
2246
|
+
})
|
|
2247
|
+
);
|
|
2248
|
+
}
|
|
2249
|
+
case "router": {
|
|
2250
|
+
const router = opts.router;
|
|
2251
|
+
if (!router?.baseUrl || !router.key || !router.model) {
|
|
2252
|
+
throw new Error(
|
|
2253
|
+
"resolveSandboxClient: backend 'router' requires router.baseUrl, router.key and router.model"
|
|
2254
|
+
);
|
|
2255
|
+
}
|
|
2256
|
+
return inlineSandboxClient(
|
|
2257
|
+
createExecutor({
|
|
2258
|
+
backend: "router",
|
|
2259
|
+
routerBaseUrl: router.baseUrl,
|
|
2260
|
+
routerKey: router.key,
|
|
2261
|
+
model: router.model
|
|
2262
|
+
})
|
|
2263
|
+
);
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2222
2268
|
// src/runtime/run-benchmark.ts
|
|
2223
2269
|
import { pairedBootstrap as pairedBootstrap2, paretoFrontier } from "@tangle-network/agent-eval";
|
|
2224
2270
|
|
|
@@ -4663,6 +4709,7 @@ export {
|
|
|
4663
4709
|
trajectoryReport,
|
|
4664
4710
|
equalKOnCost,
|
|
4665
4711
|
promotionGate,
|
|
4712
|
+
resolveSandboxClient,
|
|
4666
4713
|
depthStrategy,
|
|
4667
4714
|
breadthStrategy,
|
|
4668
4715
|
sample,
|
|
@@ -4704,4 +4751,4 @@ export {
|
|
|
4704
4751
|
computeFindingId,
|
|
4705
4752
|
makeFinding2 as makeFinding
|
|
4706
4753
|
};
|
|
4707
|
-
//# sourceMappingURL=chunk-
|
|
4754
|
+
//# sourceMappingURL=chunk-JYURIKPF.js.map
|