@tangle-network/agent-runtime 0.82.0 → 0.83.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/README.md +4 -0
- package/dist/agent.d.ts +5 -3
- package/dist/agent.js +7 -7
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop.d.ts +3 -2
- package/dist/analyst-loop.js +2 -2
- package/dist/{chunk-A7LZR5DT.js → chunk-4WXGK6GV.js} +2 -2
- package/dist/chunk-4WXGK6GV.js.map +1 -0
- package/dist/{chunk-UZ5SODU7.js → chunk-5IBQAPVB.js} +1 -1
- package/dist/chunk-5IBQAPVB.js.map +1 -0
- package/dist/{chunk-5JAUQZQA.js → chunk-7LO5GMAO.js} +1 -1
- package/dist/chunk-7LO5GMAO.js.map +1 -0
- package/dist/{chunk-H7IBHAFT.js → chunk-BZF3KQ6G.js} +1 -1
- package/dist/chunk-BZF3KQ6G.js.map +1 -0
- package/dist/{chunk-WIR4HOOJ.js → chunk-DPEUKJRO.js} +1 -1
- package/dist/chunk-DPEUKJRO.js.map +1 -0
- package/dist/{chunk-DJQFJEOD.js → chunk-J3N6GODQ.js} +2 -2
- package/dist/chunk-J3N6GODQ.js.map +1 -0
- package/dist/{chunk-GRAGM4MC.js → chunk-NURIQBJQ.js} +1 -1
- package/dist/chunk-NURIQBJQ.js.map +1 -0
- package/dist/{chunk-JYURIKPF.js → chunk-QDVLTRCP.js} +4 -4
- package/dist/chunk-QDVLTRCP.js.map +1 -0
- package/dist/{chunk-FNMGYYSS.js → chunk-SGKPNBXE.js} +1 -1
- package/dist/chunk-SGKPNBXE.js.map +1 -0
- package/dist/{chunk-CO2KBPRE.js → chunk-SSA6OERV.js} +6 -6
- package/dist/chunk-SSA6OERV.js.map +1 -0
- package/dist/{chunk-SRGV56W4.js → chunk-UD4BHQMI.js} +2 -2
- package/dist/{chunk-SRGV56W4.js.map → chunk-UD4BHQMI.js.map} +1 -1
- package/dist/{chunk-KSGHI53L.js → chunk-UJ3ONGHR.js} +6 -6
- package/dist/chunk-UJ3ONGHR.js.map +1 -0
- package/dist/{chunk-LWGVVP2C.js → chunk-VNOOH22O.js} +2 -2
- package/dist/chunk-VNOOH22O.js.map +1 -0
- package/dist/{chunk-NBV35BR6.js → chunk-YEJR7IXO.js} +1 -1
- package/dist/chunk-YEJR7IXO.js.map +1 -0
- package/dist/{chunk-C2FZ6GR6.js → chunk-YPA5MLVE.js} +2 -2
- package/dist/chunk-YPA5MLVE.js.map +1 -0
- package/dist/{coordination-BI9tpcmF.d.ts → coordination-CuDLO8wj.d.ts} +53 -32
- package/dist/environment-provider.d.ts +2 -2
- package/dist/environment-provider.js +1 -1
- package/dist/{improvement-adapter-CioiEE2z.d.ts → improvement-adapter-CDR8QNVM.d.ts} +3 -0
- package/dist/index.d.ts +163 -49
- package/dist/index.js +43 -13
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +14 -8
- package/dist/intelligence.js +1 -1
- package/dist/intelligence.js.map +1 -1
- package/dist/{kb-gate-CuzMYGYM.d.ts → kb-gate-CwHO0vz6.d.ts} +4 -2
- package/dist/lifecycle.d.ts +2 -2
- package/dist/lifecycle.js +3 -3
- package/dist/{local-harness-DU7yV6mG.d.ts → local-harness-sI0S_XNA.d.ts} +2 -1
- package/dist/{loop-runner-bin-CBkLsyFg.d.ts → loop-runner-bin-hQDUL8Ld.d.ts} +28 -13
- package/dist/loop-runner-bin.d.ts +7 -7
- package/dist/loop-runner-bin.js +10 -10
- package/dist/loops.d.ts +102 -45
- package/dist/loops.js +7 -7
- package/dist/mcp/bin.js +8 -8
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +44 -38
- package/dist/mcp/index.js +11 -11
- package/dist/mcp/index.js.map +1 -1
- package/dist/{mcp-serve-verifier-BvMAV_8U.d.ts → mcp-serve-verifier-FL7-ZEb_.d.ts} +8 -3
- package/dist/{openai-tools-B-3v06BE.d.ts → openai-tools-BnrOmGjN.d.ts} +7 -4
- package/dist/platform.d.ts +4 -0
- package/dist/platform.js.map +1 -1
- package/dist/profiles.d.ts +36 -23
- package/dist/profiles.js +2 -2
- package/dist/profiles.js.map +1 -1
- package/dist/{router-client-D6Ocf4jG.d.ts → router-client-r8y_VFVM.d.ts} +1 -0
- package/dist/{substrate-rNj6TDc3.d.ts → substrate-DO2GHNg2.d.ts} +5 -3
- package/dist/{types-By9LXllv.d.ts → types-Driepl87.d.ts} +3 -2
- package/dist/{types-BF-MEsQB.d.ts → types-ESeMOj94.d.ts} +26 -11
- package/dist/{worktree-fanout-D9Z2dMS9.d.ts → worktree-fanout-D6xR2CIA.d.ts} +16 -10
- package/dist/{worktree-harness-Dx8XULW3.d.ts → worktree-harness-CX_McRLp.d.ts} +11 -8
- package/package.json +1 -1
- package/dist/chunk-5JAUQZQA.js.map +0 -1
- package/dist/chunk-A7LZR5DT.js.map +0 -1
- package/dist/chunk-C2FZ6GR6.js.map +0 -1
- package/dist/chunk-CO2KBPRE.js.map +0 -1
- package/dist/chunk-DJQFJEOD.js.map +0 -1
- package/dist/chunk-FNMGYYSS.js.map +0 -1
- package/dist/chunk-GRAGM4MC.js.map +0 -1
- package/dist/chunk-H7IBHAFT.js.map +0 -1
- package/dist/chunk-JYURIKPF.js.map +0 -1
- package/dist/chunk-KSGHI53L.js.map +0 -1
- package/dist/chunk-LWGVVP2C.js.map +0 -1
- package/dist/chunk-NBV35BR6.js.map +0 -1
- package/dist/chunk-UZ5SODU7.js.map +0 -1
- package/dist/chunk-WIR4HOOJ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpToolsForRuntimeMcp,
|
|
3
3
|
mcpToolsForRuntimeMcpSubset
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J3N6GODQ.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_ROUTER_BASE_URL,
|
|
7
7
|
cleanModelId,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveChatModel,
|
|
10
10
|
resolveRouterBaseUrl,
|
|
11
11
|
validateChatModelId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NURIQBJQ.js";
|
|
13
13
|
import {
|
|
14
14
|
DELEGATED_LOOP_MODES,
|
|
15
15
|
auditLoopRunner,
|
|
@@ -20,16 +20,16 @@ import {
|
|
|
20
20
|
runLoopRunnerCli,
|
|
21
21
|
selfImproveLoopRunner,
|
|
22
22
|
worktreeLoopRunner
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-UJ3ONGHR.js";
|
|
24
|
+
import "./chunk-SGKPNBXE.js";
|
|
25
|
+
import "./chunk-QDVLTRCP.js";
|
|
26
26
|
import {
|
|
27
27
|
assertModelAllowed,
|
|
28
28
|
composeRuntimeHooks,
|
|
29
29
|
defineRuntimeHooks,
|
|
30
30
|
notifyRuntimeDecisionPoint,
|
|
31
31
|
notifyRuntimeHookEvent
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-SSA6OERV.js";
|
|
33
33
|
import {
|
|
34
34
|
INTELLIGENCE_WIRE_VERSION,
|
|
35
35
|
buildLoopOtelSpans,
|
|
@@ -37,9 +37,9 @@ import {
|
|
|
37
37
|
createOtelExporter,
|
|
38
38
|
exportEvalRuns,
|
|
39
39
|
loopEventToOtelSpan
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-UD4BHQMI.js";
|
|
41
|
+
import "./chunk-BZF3KQ6G.js";
|
|
42
|
+
import "./chunk-YPA5MLVE.js";
|
|
43
43
|
import "./chunk-4J6RBI3K.js";
|
|
44
44
|
import {
|
|
45
45
|
agenticGenerator,
|
|
@@ -47,8 +47,8 @@ import {
|
|
|
47
47
|
mcpBuildPrompt,
|
|
48
48
|
mcpServeVerifier,
|
|
49
49
|
toolBuildPrompt
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-VNOOH22O.js";
|
|
51
|
+
import "./chunk-7LO5GMAO.js";
|
|
52
52
|
import {
|
|
53
53
|
AgentEvalError,
|
|
54
54
|
BackendTransportError,
|
|
@@ -59,8 +59,8 @@ import {
|
|
|
59
59
|
RuntimeRunStateError,
|
|
60
60
|
SessionMismatchError,
|
|
61
61
|
ValidationError
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-YEJR7IXO.js";
|
|
63
|
+
import "./chunk-DPEUKJRO.js";
|
|
64
64
|
import "./chunk-DGUM43GV.js";
|
|
65
65
|
|
|
66
66
|
// src/sessions.ts
|
|
@@ -2093,6 +2093,35 @@ function decideKnowledgeReadiness(report, options = {}) {
|
|
|
2093
2093
|
};
|
|
2094
2094
|
}
|
|
2095
2095
|
|
|
2096
|
+
// src/resolve-agent-backend.ts
|
|
2097
|
+
function resolveAgentBackend(opts) {
|
|
2098
|
+
switch (opts.kind) {
|
|
2099
|
+
case "router":
|
|
2100
|
+
case "tcloud":
|
|
2101
|
+
case "cli-bridge": {
|
|
2102
|
+
const passthrough = {};
|
|
2103
|
+
if (opts.tools !== void 0) passthrough.tools = opts.tools;
|
|
2104
|
+
if (opts.toolChoice !== void 0) passthrough.toolChoice = opts.toolChoice;
|
|
2105
|
+
if (opts.responseFormat !== void 0) passthrough.responseFormat = opts.responseFormat;
|
|
2106
|
+
if (opts.fetchImpl !== void 0) passthrough.fetchImpl = opts.fetchImpl;
|
|
2107
|
+
if (opts.retry !== void 0) passthrough.retry = opts.retry;
|
|
2108
|
+
return createOpenAICompatibleBackend({
|
|
2109
|
+
apiKey: opts.apiKey,
|
|
2110
|
+
baseUrl: opts.baseUrl,
|
|
2111
|
+
model: opts.model,
|
|
2112
|
+
kind: opts.label ?? opts.kind,
|
|
2113
|
+
...passthrough
|
|
2114
|
+
});
|
|
2115
|
+
}
|
|
2116
|
+
case "sandbox": {
|
|
2117
|
+
if (!opts.sandboxBackend) {
|
|
2118
|
+
throw new Error("resolveAgentBackend: kind 'sandbox' requires opts.sandboxBackend");
|
|
2119
|
+
}
|
|
2120
|
+
return opts.sandboxBackend();
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2096
2125
|
// src/run.ts
|
|
2097
2126
|
import {
|
|
2098
2127
|
acquisitionPlansForKnowledgeGaps,
|
|
@@ -3512,6 +3541,7 @@ export {
|
|
|
3512
3541
|
readinessServerSentEvent,
|
|
3513
3542
|
reflectiveGenerator,
|
|
3514
3543
|
researchLoopRunner,
|
|
3544
|
+
resolveAgentBackend,
|
|
3515
3545
|
resolveChatModel,
|
|
3516
3546
|
resolveRouterBaseUrl,
|
|
3517
3547
|
runAgentTask,
|