@tangle-network/agent-runtime 0.48.0 → 0.50.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 +79 -15
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/{chunk-656G2XCL.js → chunk-BKAIVNFA.js} +3 -3
- package/dist/{chunk-IW2LMLK6.js → chunk-CM2IK7VS.js} +913 -152
- package/dist/chunk-CM2IK7VS.js.map +1 -0
- package/dist/{chunk-VR4JIC5H.js → chunk-ML4IXGTV.js} +2 -2
- package/dist/{chunk-TJS7S3HJ.js → chunk-NDM5VXZW.js} +19 -8
- package/dist/chunk-NDM5VXZW.js.map +1 -0
- package/dist/chunk-OM3YNZIW.js +978 -0
- package/dist/chunk-OM3YNZIW.js.map +1 -0
- package/dist/{chunk-JNPK46YH.js → chunk-RHW75JW5.js} +498 -350
- package/dist/chunk-RHW75JW5.js.map +1 -0
- package/dist/{coder-CVZNGbyg.d.ts → coder-_YCf3BAK.d.ts} +2 -2
- package/dist/{driver-DYU2sgHr.d.ts → driver-DLI1io57.d.ts} +1 -1
- package/dist/index.d.ts +34 -9
- package/dist/index.js +117 -27
- package/dist/index.js.map +1 -1
- package/dist/kb-gate-CHAyt4aI.d.ts +1571 -0
- package/dist/{loop-runner-bin-DEm4roYF.d.ts → loop-runner-bin-DFUNgpeK.d.ts} +4 -4
- package/dist/loop-runner-bin.d.ts +5 -5
- package/dist/loop-runner-bin.js +3 -3
- package/dist/loops.d.ts +6 -6
- package/dist/loops.js +17 -1
- package/dist/mcp/bin.js +206 -29
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +41 -177
- package/dist/mcp/index.js +40 -6
- package/dist/mcp/index.js.map +1 -1
- package/dist/openai-tools-D4HLDWgw.d.ts +45 -0
- package/dist/platform.js +2 -2
- package/dist/platform.js.map +1 -1
- package/dist/profiles.d.ts +2 -2
- package/dist/{run-loop-DvD4aGiE.d.ts → run-loop-BIineL1T.d.ts} +1 -1
- package/dist/runtime.d.ts +403 -24
- package/dist/runtime.js +17 -1
- package/dist/{types-BpDfCPUp.d.ts → types-5MGt5KTY.d.ts} +1 -1
- package/dist/{types-nBMuollC.d.ts → types-BEQsBhOE.d.ts} +1 -1
- package/dist/workflow.d.ts +2 -2
- package/dist/workflow.js +1 -1
- package/package.json +6 -5
- package/dist/chunk-IW2LMLK6.js.map +0 -1
- package/dist/chunk-JNPK46YH.js.map +0 -1
- package/dist/chunk-LX66I3SC.js +0 -218
- package/dist/chunk-LX66I3SC.js.map +0 -1
- package/dist/chunk-TJS7S3HJ.js.map +0 -1
- package/dist/kb-gate-51BlLlVM.d.ts +0 -529
- package/dist/otel-export-EzfsVUhh.d.ts +0 -191
- /package/dist/{chunk-656G2XCL.js.map → chunk-BKAIVNFA.js.map} +0 -0
- /package/dist/{chunk-VR4JIC5H.js.map → chunk-ML4IXGTV.js.map} +0 -0
package/dist/runtime.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
InMemorySpawnJournal,
|
|
8
8
|
acquireSandbox,
|
|
9
9
|
adaptiveRefine,
|
|
10
|
+
anytimeReport,
|
|
10
11
|
assertStrategyContract,
|
|
11
12
|
assertTraceDerivedFindings,
|
|
12
13
|
auditIntent,
|
|
@@ -29,6 +30,7 @@ import {
|
|
|
29
30
|
createShapeRegistry,
|
|
30
31
|
createSupervisor,
|
|
31
32
|
createVerifierEnvironment,
|
|
33
|
+
createWaterfallCollector,
|
|
32
34
|
defaultAnalystInstruction,
|
|
33
35
|
defaultAuditorInstruction,
|
|
34
36
|
defaultSelectWinner,
|
|
@@ -36,6 +38,7 @@ import {
|
|
|
36
38
|
defineStrategy,
|
|
37
39
|
depthDriver,
|
|
38
40
|
deterministicCompletion,
|
|
41
|
+
discriminatingMeans,
|
|
39
42
|
equalKOnCost,
|
|
40
43
|
fanout,
|
|
41
44
|
flatWidenGate,
|
|
@@ -50,6 +53,7 @@ import {
|
|
|
50
53
|
observe,
|
|
51
54
|
openSandboxRun,
|
|
52
55
|
panel,
|
|
56
|
+
pickChampion,
|
|
53
57
|
pipeline,
|
|
54
58
|
printBenchmarkReport,
|
|
55
59
|
probeSandboxCapabilities,
|
|
@@ -57,10 +61,14 @@ import {
|
|
|
57
61
|
refine,
|
|
58
62
|
registerShape,
|
|
59
63
|
renderAnalyses,
|
|
64
|
+
renderAnytimeTable,
|
|
60
65
|
renderCorpusToInstructions,
|
|
61
66
|
renderReport,
|
|
62
67
|
replaySpawnTree,
|
|
63
68
|
reportLoopUsage,
|
|
69
|
+
routerChatWithTools,
|
|
70
|
+
routerChatWithUsage,
|
|
71
|
+
routerToolLoop,
|
|
64
72
|
runAgentic,
|
|
65
73
|
runBenchmark,
|
|
66
74
|
runLoop,
|
|
@@ -77,7 +85,7 @@ import {
|
|
|
77
85
|
trajectoryReport,
|
|
78
86
|
verify,
|
|
79
87
|
widen
|
|
80
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-CM2IK7VS.js";
|
|
81
89
|
import {
|
|
82
90
|
extractLlmCallEvent,
|
|
83
91
|
mapSandboxEvent
|
|
@@ -92,6 +100,7 @@ export {
|
|
|
92
100
|
InMemorySpawnJournal,
|
|
93
101
|
acquireSandbox,
|
|
94
102
|
adaptiveRefine,
|
|
103
|
+
anytimeReport,
|
|
95
104
|
assertStrategyContract,
|
|
96
105
|
assertTraceDerivedFindings,
|
|
97
106
|
auditIntent,
|
|
@@ -114,6 +123,7 @@ export {
|
|
|
114
123
|
createShapeRegistry,
|
|
115
124
|
createSupervisor,
|
|
116
125
|
createVerifierEnvironment,
|
|
126
|
+
createWaterfallCollector,
|
|
117
127
|
defaultAnalystInstruction,
|
|
118
128
|
defaultAuditorInstruction,
|
|
119
129
|
defaultSelectWinner,
|
|
@@ -121,6 +131,7 @@ export {
|
|
|
121
131
|
defineStrategy,
|
|
122
132
|
depthDriver,
|
|
123
133
|
deterministicCompletion,
|
|
134
|
+
discriminatingMeans,
|
|
124
135
|
equalKOnCost,
|
|
125
136
|
extractLlmCallEvent,
|
|
126
137
|
fanout,
|
|
@@ -137,6 +148,7 @@ export {
|
|
|
137
148
|
observe,
|
|
138
149
|
openSandboxRun,
|
|
139
150
|
panel,
|
|
151
|
+
pickChampion,
|
|
140
152
|
pipeline,
|
|
141
153
|
printBenchmarkReport,
|
|
142
154
|
probeSandboxCapabilities,
|
|
@@ -144,10 +156,14 @@ export {
|
|
|
144
156
|
refine,
|
|
145
157
|
registerShape,
|
|
146
158
|
renderAnalyses,
|
|
159
|
+
renderAnytimeTable,
|
|
147
160
|
renderCorpusToInstructions,
|
|
148
161
|
renderReport,
|
|
149
162
|
replaySpawnTree,
|
|
150
163
|
reportLoopUsage,
|
|
164
|
+
routerChatWithTools,
|
|
165
|
+
routerChatWithUsage,
|
|
166
|
+
routerToolLoop,
|
|
151
167
|
runAgentic,
|
|
152
168
|
runBenchmark,
|
|
153
169
|
runLoop,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefaultVerdict } from '@tangle-network/agent-eval';
|
|
2
2
|
import { AgentProfile, BackendType } from '@tangle-network/sandbox';
|
|
3
3
|
import { R as RuntimeHooks } from './runtime-hooks-C7JwKb9E.js';
|
|
4
|
-
import {
|
|
4
|
+
import { d as LoopTokenUsage } from './types-BEQsBhOE.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @experimental
|
|
@@ -1096,4 +1096,4 @@ interface ExecCtx {
|
|
|
1096
1096
|
parentSpanId?: string;
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
|
-
export { type AgentRunSpec as A, type BackendErrorDetail as B,
|
|
1099
|
+
export { type AgentRunSpec as A, type BackendErrorDetail as B, startRuntimeRun as C, type Driver as D, type ExecCtx as E, type LoopDecisionPayload as F, type LoopEndedPayload as G, type LoopIterationDispatchPayload as H, type Iteration as I, type LoopIterationEndedPayload as J, type KnowledgeReadinessDecision as K, type LoopWinner as L, type LoopIterationStartedPayload as M, type LoopPlanDescription as N, type OutputAdapter as O, type LoopPlanPayload as P, type LoopStartedPayload as Q, type RuntimeStreamEvent as R, type SandboxClient as S, type LoopTeardownFailedPayload as T, type ValidationCtx as U, type Validator as V, type LoopLineageOptions as a, type LoopResult as b, type OpenAIChatTool as c, type LoopTokenUsage as d, type LoopSandboxPlacement as e, type LoopTraceEmitter as f, type LoopTraceEvent as g, type AgentBackendInput as h, type AgentExecutionBackend as i, type OpenAIChatToolChoice as j, type AgentBackendContext as k, type RunAgentTaskOptions as l, type AgentTaskRunResult as m, type RunAgentTaskStreamOptions as n, type AgentRuntimeEvent as o, type AgentTaskStatus as p, type RuntimeSessionStore as q, type RuntimeSession as r, type AgentAdapter as s, type AgentKnowledgeProvider as t, type AgentRuntimeEventSink as u, type AgentTaskContext as v, type AgentTaskSpec as w, type RuntimeRunHandle as x, type RuntimeRunPersistenceAdapter as y, type RuntimeRunRow as z };
|
package/dist/workflow.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentProfile, CreateSandboxOptions, PromptOptions, TaskOptions, SandboxEvent } from '@tangle-network/sandbox';
|
|
2
|
-
import { S as SandboxClient, O as OutputAdapter,
|
|
3
|
-
import { R as RunLoopOptions } from './run-loop-
|
|
2
|
+
import { S as SandboxClient, O as OutputAdapter, e as LoopSandboxPlacement, b as LoopResult } from './types-BEQsBhOE.js';
|
|
3
|
+
import { R as RunLoopOptions } from './run-loop-BIineL1T.js';
|
|
4
4
|
import '@tangle-network/agent-eval';
|
|
5
5
|
import './runtime-hooks-C7JwKb9E.js';
|
|
6
6
|
|
package/dist/workflow.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
|
|
5
5
|
"homepage": "https://github.com/tangle-network/agent-runtime#readme",
|
|
6
6
|
"repository": {
|
|
@@ -95,14 +95,14 @@
|
|
|
95
95
|
"test:watch": "vitest",
|
|
96
96
|
"lint": "biome check src tests examples",
|
|
97
97
|
"lint:fix": "biome check --write src tests examples",
|
|
98
|
-
"typecheck": "tsc --noEmit",
|
|
98
|
+
"typecheck": "tsc --noEmit && pnpm run typecheck:examples",
|
|
99
99
|
"typecheck:examples": "tsc --noEmit -p tsconfig.examples.json",
|
|
100
100
|
"verify:package": "node scripts/verify-package-exports.mjs"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@biomejs/biome": "^2.4.0",
|
|
104
104
|
"@tangle-network/agent-eval": "^0.89.0",
|
|
105
|
-
"@tangle-network/sandbox": "^0.
|
|
105
|
+
"@tangle-network/sandbox": "^0.6.0",
|
|
106
106
|
"@types/node": "^25.6.0",
|
|
107
107
|
"playwright": "^1.40.0",
|
|
108
108
|
"tsup": "^8.0.0",
|
|
@@ -112,7 +112,8 @@
|
|
|
112
112
|
"pnpm": {
|
|
113
113
|
"minimumReleaseAge": 4320,
|
|
114
114
|
"minimumReleaseAgeExclude": [
|
|
115
|
-
"@tangle-network/agent-eval"
|
|
115
|
+
"@tangle-network/agent-eval",
|
|
116
|
+
"@tangle-network/sandbox"
|
|
116
117
|
],
|
|
117
118
|
"onlyBuiltDependencies": [
|
|
118
119
|
"esbuild"
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
"peerDependencies": {
|
|
127
128
|
"@tangle-network/agent-eval": ">=0.83.0 <1.0.0",
|
|
128
129
|
"@tangle-network/agent-knowledge": ">=1.3.0 <2.0.0",
|
|
129
|
-
"@tangle-network/sandbox": ">=0.1.2 <0.
|
|
130
|
+
"@tangle-network/sandbox": ">=0.1.2 <0.7.0",
|
|
130
131
|
"playwright": "^1.40.0"
|
|
131
132
|
},
|
|
132
133
|
"peerDependenciesMeta": {
|