@tangle-network/agent-runtime 0.56.1 → 0.58.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.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/{chunk-EXIV2C72.js → chunk-E2L6PG5F.js} +59 -79
- package/dist/chunk-E2L6PG5F.js.map +1 -0
- package/dist/{chunk-G4NIVG34.js → chunk-ISVIQDIX.js} +4 -3
- package/dist/chunk-ISVIQDIX.js.map +1 -0
- package/dist/{chunk-4H2FML7G.js → chunk-MDFZSPHA.js} +950 -230
- package/dist/chunk-MDFZSPHA.js.map +1 -0
- package/dist/{chunk-F5XQA43K.js → chunk-VAGARXI5.js} +2 -2
- package/dist/{chunk-6XKXWA7H.js → chunk-ZGPQY6Z3.js} +2 -2
- package/dist/{coder-COuOK8h8.d.ts → coder-CybltHEm.d.ts} +1 -1
- package/dist/{coordination-DWNGqygr.d.ts → coordination-BydGBQCZ.d.ts} +164 -4
- package/dist/{delegates-D9o5_VFj.d.ts → delegates-C94qchkz.d.ts} +8 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4 -4
- package/dist/intelligence.d.ts +1 -1
- package/dist/{loop-runner-bin-CN2Se3jB.d.ts → loop-runner-bin-Noz7P-mS.d.ts} +3 -3
- package/dist/loop-runner-bin.d.ts +4 -4
- package/dist/loop-runner-bin.js +3 -3
- package/dist/loops.d.ts +7 -6
- package/dist/loops.js +31 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +20 -82
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-CoeLQ7Uo.d.ts → openai-tools-d4GKwgya.d.ts} +1 -1
- package/dist/profiles.d.ts +2 -2
- package/dist/{run-loop-DluzfJ2h.d.ts → run-loop-CcqfR_gy.d.ts} +1 -1
- package/dist/runtime.d.ts +336 -67
- package/dist/runtime.js +31 -1
- package/dist/{types-C8rNlxfV.d.ts → types-CUzjRFZ3.d.ts} +1 -1
- package/dist/workflow.d.ts +2 -2
- package/dist/workflow.js +1 -1
- package/package.json +2 -2
- package/skills/loop-writer/SKILL.md +1 -1
- package/skills/supervise/SKILL.md +1 -1
- package/dist/chunk-4H2FML7G.js.map +0 -1
- package/dist/chunk-EXIV2C72.js.map +0 -1
- package/dist/chunk-G4NIVG34.js.map +0 -1
- /package/dist/{chunk-F5XQA43K.js.map → chunk-VAGARXI5.js.map} +0 -0
- /package/dist/{chunk-6XKXWA7H.js.map → chunk-ZGPQY6Z3.js.map} +0 -0
package/dist/runtime.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
InMemorySpawnJournal,
|
|
8
8
|
acquireSandbox,
|
|
9
9
|
adaptiveRefine,
|
|
10
|
+
analyzeTrace,
|
|
10
11
|
anytimeReport,
|
|
11
12
|
asAuthoredProfile,
|
|
12
13
|
assertStrategyContract,
|
|
@@ -23,9 +24,13 @@ import {
|
|
|
23
24
|
contentAddress,
|
|
24
25
|
coordinationDriverAgent,
|
|
25
26
|
createBudgetPool,
|
|
27
|
+
createEventBus,
|
|
26
28
|
createExecutor,
|
|
27
29
|
createExecutorRegistry,
|
|
30
|
+
createInbox,
|
|
28
31
|
createMcpEnvironment,
|
|
32
|
+
createPartsTraceSource,
|
|
33
|
+
createPushTraceSource,
|
|
29
34
|
createRootHandle,
|
|
30
35
|
createSandboxForSpec,
|
|
31
36
|
createSandboxLineage,
|
|
@@ -36,9 +41,14 @@ import {
|
|
|
36
41
|
createVerifierEnvironment,
|
|
37
42
|
createWaterfallCollector,
|
|
38
43
|
createWorktreeCliExecutor,
|
|
44
|
+
decodeAnthropicPart,
|
|
45
|
+
decodeOpenAiPart,
|
|
46
|
+
decodeOpencodePart,
|
|
47
|
+
decodeToolPart,
|
|
39
48
|
defaultAnalystInstruction,
|
|
40
49
|
defaultAuditorInstruction,
|
|
41
50
|
defaultSelectWinner,
|
|
51
|
+
defaultToolDetectors,
|
|
42
52
|
definePersona,
|
|
43
53
|
defineStrategy,
|
|
44
54
|
depthDriver,
|
|
@@ -79,6 +89,7 @@ import {
|
|
|
79
89
|
reportLoopUsage,
|
|
80
90
|
routerChatWithTools,
|
|
81
91
|
routerChatWithUsage,
|
|
92
|
+
routerDriverChat,
|
|
82
93
|
routerToolLoop,
|
|
83
94
|
runAgentic,
|
|
84
95
|
runBenchmark,
|
|
@@ -88,6 +99,7 @@ import {
|
|
|
88
99
|
runStrategyEvolution,
|
|
89
100
|
sample,
|
|
90
101
|
sampleThenRefine,
|
|
102
|
+
sandboxSessionTraceSource,
|
|
91
103
|
selectChampion,
|
|
92
104
|
sentinelCompletion,
|
|
93
105
|
serveCoordinationMcp,
|
|
@@ -96,12 +108,15 @@ import {
|
|
|
96
108
|
stopSentinel,
|
|
97
109
|
strategyAuthorContract,
|
|
98
110
|
supervisorSkill,
|
|
111
|
+
toToolSpan,
|
|
112
|
+
toolPartDecoders,
|
|
99
113
|
trajectoryReport,
|
|
100
114
|
verify,
|
|
115
|
+
watchTrace,
|
|
101
116
|
widen,
|
|
102
117
|
withDriverExecutor,
|
|
103
118
|
worktreeCoderFanout
|
|
104
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-MDFZSPHA.js";
|
|
105
120
|
import "./chunk-7QYOXFCD.js";
|
|
106
121
|
import "./chunk-WIR4HOOJ.js";
|
|
107
122
|
import {
|
|
@@ -120,6 +135,7 @@ export {
|
|
|
120
135
|
InMemorySpawnJournal,
|
|
121
136
|
acquireSandbox,
|
|
122
137
|
adaptiveRefine,
|
|
138
|
+
analyzeTrace,
|
|
123
139
|
anytimeReport,
|
|
124
140
|
asAuthoredProfile,
|
|
125
141
|
assertStrategyContract,
|
|
@@ -136,9 +152,13 @@ export {
|
|
|
136
152
|
contentAddress,
|
|
137
153
|
coordinationDriverAgent,
|
|
138
154
|
createBudgetPool,
|
|
155
|
+
createEventBus,
|
|
139
156
|
createExecutor,
|
|
140
157
|
createExecutorRegistry,
|
|
158
|
+
createInbox,
|
|
141
159
|
createMcpEnvironment,
|
|
160
|
+
createPartsTraceSource,
|
|
161
|
+
createPushTraceSource,
|
|
142
162
|
createRootHandle,
|
|
143
163
|
createSandboxForSpec,
|
|
144
164
|
createSandboxLineage,
|
|
@@ -149,9 +169,14 @@ export {
|
|
|
149
169
|
createVerifierEnvironment,
|
|
150
170
|
createWaterfallCollector,
|
|
151
171
|
createWorktreeCliExecutor,
|
|
172
|
+
decodeAnthropicPart,
|
|
173
|
+
decodeOpenAiPart,
|
|
174
|
+
decodeOpencodePart,
|
|
175
|
+
decodeToolPart,
|
|
152
176
|
defaultAnalystInstruction,
|
|
153
177
|
defaultAuditorInstruction,
|
|
154
178
|
defaultSelectWinner,
|
|
179
|
+
defaultToolDetectors,
|
|
155
180
|
definePersona,
|
|
156
181
|
defineStrategy,
|
|
157
182
|
depthDriver,
|
|
@@ -194,6 +219,7 @@ export {
|
|
|
194
219
|
reportLoopUsage,
|
|
195
220
|
routerChatWithTools,
|
|
196
221
|
routerChatWithUsage,
|
|
222
|
+
routerDriverChat,
|
|
197
223
|
routerToolLoop,
|
|
198
224
|
runAgentic,
|
|
199
225
|
runBenchmark,
|
|
@@ -203,6 +229,7 @@ export {
|
|
|
203
229
|
runStrategyEvolution,
|
|
204
230
|
sample,
|
|
205
231
|
sampleThenRefine,
|
|
232
|
+
sandboxSessionTraceSource,
|
|
206
233
|
selectChampion,
|
|
207
234
|
sentinelCompletion,
|
|
208
235
|
serveCoordinationMcp,
|
|
@@ -211,8 +238,11 @@ export {
|
|
|
211
238
|
stopSentinel,
|
|
212
239
|
strategyAuthorContract,
|
|
213
240
|
supervisorSkill,
|
|
241
|
+
toToolSpan,
|
|
242
|
+
toolPartDecoders,
|
|
214
243
|
trajectoryReport,
|
|
215
244
|
verify,
|
|
245
|
+
watchTrace,
|
|
216
246
|
widen,
|
|
217
247
|
withDriverExecutor,
|
|
218
248
|
worktreeCoderFanout
|
|
@@ -1097,4 +1097,4 @@ interface ExecCtx {
|
|
|
1097
1097
|
parentSpanId?: string;
|
|
1098
1098
|
}
|
|
1099
1099
|
|
|
1100
|
-
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
|
|
1100
|
+
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 LoopTraceEvent as d, type LoopTokenUsage as e, type LoopSandboxPlacement as f, type LoopTraceEmitter 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, f as LoopSandboxPlacement, b as LoopResult } from './types-
|
|
3
|
-
import { R as RunLoopOptions } from './run-loop-
|
|
2
|
+
import { S as SandboxClient, O as OutputAdapter, f as LoopSandboxPlacement, b as LoopResult } from './types-CUzjRFZ3.js';
|
|
3
|
+
import { R as RunLoopOptions } from './run-loop-CcqfR_gy.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.58.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": {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@biomejs/biome": "^2.4.15",
|
|
109
|
-
"@tangle-network/agent-eval": "^0.
|
|
109
|
+
"@tangle-network/agent-eval": "^0.93.0",
|
|
110
110
|
"@tangle-network/sandbox": "^0.6.0",
|
|
111
111
|
"@types/node": "^25.9.3",
|
|
112
112
|
"playwright": "^1.61.0",
|
|
@@ -110,7 +110,7 @@ const result = await createSupervisor<Task, Output>().run(driver, task, supervis
|
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
When the driver lives in a sandbox, expose the same verbs through
|
|
113
|
-
`createCoordinationTools`: `spawn_worker`, `
|
|
113
|
+
`createCoordinationTools`: `spawn_worker`, `await_event`, `observe_worker`,
|
|
114
114
|
`steer_worker`, `list_questions`, `answer_question`, `ask_parent`, `stop`, and
|
|
115
115
|
optional analyst tools.
|
|
116
116
|
|
|
@@ -15,7 +15,7 @@ You are a supervisor. You do NOT do the work yourself — you design and drive s
|
|
|
15
15
|
- `skills` — the skill files the worker should carry (by name), OR `systemPrompt` — rich, specific instructions for this sub-task.
|
|
16
16
|
- `model` — the model best suited to this sub-task (optional).
|
|
17
17
|
Write the instructions a power user would write — never a one-liner. **Never spawn a worker with an empty profile.** The quality of the worker is the quality of the profile you author.
|
|
18
|
-
3. **Await** each worker with `
|
|
18
|
+
3. **Await** each worker with `await_event`. Its result reports `valid: true` only if the worker's deployable check passed.
|
|
19
19
|
4. **On failure**, author a *new* worker whose profile names the specific failure and how to fix it — never blindly retry the same profile.
|
|
20
20
|
5. **Stop** (reply with no tool call) once the work is delivered. Only a delivered (`valid: true`) worker counts; you cannot declare done yourself.
|
|
21
21
|
|