@tangle-network/agent-runtime 0.102.2 → 0.103.1
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 +73 -10
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +5 -5
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/candidate-execution/index.d.ts +5 -41
- package/dist/candidate-execution/index.js +8 -6
- package/dist/{chunk-QCXD7NHM.js → chunk-3LJF5XSE.js} +79 -334
- package/dist/chunk-3LJF5XSE.js.map +1 -0
- package/dist/{chunk-3DW5DEKQ.js → chunk-5AITUUHO.js} +3 -3
- package/dist/{chunk-SQ3ZJH3Y.js → chunk-6WZZXQV5.js} +467 -23
- package/dist/chunk-6WZZXQV5.js.map +1 -0
- package/dist/{chunk-SCOHHMKU.js → chunk-AAN2MB2X.js} +3 -3
- package/dist/{chunk-KSM6GFHP.js → chunk-B7K7V22Y.js} +2 -2
- package/dist/{chunk-ZUCUAFVF.js → chunk-EAQ5YRRY.js} +1382 -62
- package/dist/chunk-EAQ5YRRY.js.map +1 -0
- package/dist/chunk-ISPWRSEC.js +408 -0
- package/dist/chunk-ISPWRSEC.js.map +1 -0
- package/dist/{chunk-7FJJUC73.js → chunk-LFM4JBRW.js} +29 -6
- package/dist/{chunk-7FJJUC73.js.map → chunk-LFM4JBRW.js.map} +1 -1
- package/dist/{chunk-ROILMKDL.js → chunk-QYCKIV6C.js} +3 -3
- package/dist/{chunk-LJLG734E.js → chunk-SBTWKPVR.js} +10 -11
- package/dist/{chunk-LJLG734E.js.map → chunk-SBTWKPVR.js.map} +1 -1
- package/dist/{chunk-CK76OZPM.js → chunk-SNSMRT6H.js} +56 -386
- package/dist/chunk-SNSMRT6H.js.map +1 -0
- package/dist/{chunk-EKUMRQNR.js → chunk-TUSOOIDV.js} +2 -2
- package/dist/{chunk-J6V6DWWS.js → chunk-ZOYN3JR5.js} +5 -5
- package/dist/{chunk-377GOJHJ.js → chunk-ZXICDSAK.js} +333 -4
- package/dist/chunk-ZXICDSAK.js.map +1 -0
- package/dist/{completion-gate-C6dhVN-N.d.ts → completion-gate-DLINnrkM.d.ts} +1 -1
- package/dist/{coordination-D9l_YmwW.d.ts → coordination-DTehA977.d.ts} +250 -8
- package/dist/environment-provider.d.ts +2 -2
- package/dist/index.d.ts +12 -12
- package/dist/index.js +17 -15
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +26 -8
- package/dist/intelligence.js +24 -7
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.d.ts +6 -6
- package/dist/knowledge.js +9 -9
- package/dist/{loop-runner-bin-PnWslIw4.d.ts → loop-runner-bin-DhIXsLAd.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +5 -5
- package/dist/loop-runner-bin.js +6 -6
- package/dist/loops.d.ts +305 -148
- package/dist/loops.js +82 -14
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/index.js +6 -6
- package/dist/profiles.d.ts +1 -1
- package/dist/{profile-DbfaMTdk.d.ts → protected-model-port-DzkUY3HQ.d.ts} +41 -3
- package/dist/{structural-rollout-D7xik9XR.d.ts → structural-rollout-BFPIy3iw.d.ts} +3 -3
- package/dist/supervise-Cp8bNcJi.d.ts +379 -0
- package/dist/testing.js +10 -10
- package/dist/testing.js.map +1 -1
- package/dist/{types-CWqfCO8s.d.ts → types-Cbp72qyu.d.ts} +1 -1
- package/dist/{types-CLat4bT9.d.ts → types-DK11_O4L.d.ts} +1 -1
- package/dist/types-lZTE_LBd.d.ts +957 -0
- package/dist/{worktree-fanout-DsIR4d6w.d.ts → worktree-fanout-DiiJWjJO.d.ts} +17 -5
- package/package.json +5 -4
- package/skills/build-with-agent-runtime/SKILL.md +7 -5
- package/skills/generate-eval/SKILL.md +45 -52
- package/skills/loop-writer/SKILL.md +79 -147
- package/skills/supervise/SKILL.md +33 -14
- package/dist/chunk-377GOJHJ.js.map +0 -1
- package/dist/chunk-CK76OZPM.js.map +0 -1
- package/dist/chunk-IMSNJSXH.js +0 -73
- package/dist/chunk-IMSNJSXH.js.map +0 -1
- package/dist/chunk-QCXD7NHM.js.map +0 -1
- package/dist/chunk-SQ3ZJH3Y.js.map +0 -1
- package/dist/chunk-ZUCUAFVF.js.map +0 -1
- package/dist/supervise-BQdNAXtK.d.ts +0 -131
- package/dist/types-D870JlH0.d.ts +0 -500
- /package/dist/{chunk-3DW5DEKQ.js.map → chunk-5AITUUHO.js.map} +0 -0
- /package/dist/{chunk-SCOHHMKU.js.map → chunk-AAN2MB2X.js.map} +0 -0
- /package/dist/{chunk-KSM6GFHP.js.map → chunk-B7K7V22Y.js.map} +0 -0
- /package/dist/{chunk-ROILMKDL.js.map → chunk-QYCKIV6C.js.map} +0 -0
- /package/dist/{chunk-EKUMRQNR.js.map → chunk-TUSOOIDV.js.map} +0 -0
- /package/dist/{chunk-J6V6DWWS.js.map → chunk-ZOYN3JR5.js.map} +0 -0
package/dist/loops.js
CHANGED
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
McpSpawnFault,
|
|
5
5
|
SandboxRunAbortError,
|
|
6
6
|
analyzeTrace,
|
|
7
|
-
anytimeReport,
|
|
8
7
|
assertStrategyContract,
|
|
9
8
|
assertTraceDerivedFindings,
|
|
10
9
|
auditIntent,
|
|
@@ -16,14 +15,11 @@ import {
|
|
|
16
15
|
computeFindingId,
|
|
17
16
|
connectStdioMcp,
|
|
18
17
|
createMcpEnvironment,
|
|
19
|
-
createPushTraceSource,
|
|
20
18
|
createScopeAnalyst,
|
|
21
19
|
createShapeRegistry,
|
|
22
20
|
createVerifierEnvironment,
|
|
23
21
|
createWaterfallCollector,
|
|
24
|
-
decodeToolPart,
|
|
25
22
|
defaultAuditorInstruction,
|
|
26
|
-
defaultToolDetectors,
|
|
27
23
|
defineLeaderboard,
|
|
28
24
|
definePersona,
|
|
29
25
|
deterministicCompletion,
|
|
@@ -59,7 +55,6 @@ import {
|
|
|
59
55
|
promotionGate,
|
|
60
56
|
registerShape,
|
|
61
57
|
registryScopeAnalyst,
|
|
62
|
-
renderAnytimeTable,
|
|
63
58
|
renderCorpusToInstructions,
|
|
64
59
|
renderLeaderboardHtml,
|
|
65
60
|
renderLeaderboardMarkdown,
|
|
@@ -72,7 +67,6 @@ import {
|
|
|
72
67
|
runInWorkspace,
|
|
73
68
|
runPersonified,
|
|
74
69
|
runStrategyEvolution,
|
|
75
|
-
sandboxSessionTraceSource,
|
|
76
70
|
sanitizeMcpToolSchema,
|
|
77
71
|
secretEnvOfMcpServer,
|
|
78
72
|
selectChampion,
|
|
@@ -84,40 +78,66 @@ import {
|
|
|
84
78
|
superviseSurface,
|
|
85
79
|
trajectoryReport,
|
|
86
80
|
verify,
|
|
87
|
-
watchTrace,
|
|
88
81
|
widen,
|
|
89
82
|
worktreeFanout
|
|
90
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-3LJF5XSE.js";
|
|
91
84
|
import "./chunk-Q2JSAVQ3.js";
|
|
92
85
|
import {
|
|
86
|
+
DEFAULT_SANDBOX_STEERING_MAX_TURNS,
|
|
87
|
+
PI_RUNTIME,
|
|
93
88
|
acquireSandbox,
|
|
89
|
+
allOf,
|
|
90
|
+
allWorkersStalled,
|
|
91
|
+
anyOf,
|
|
92
|
+
anytimeReport,
|
|
93
|
+
areaUnderCurve,
|
|
94
94
|
asAuthoredProfile,
|
|
95
95
|
assessAuthoredProfile,
|
|
96
96
|
authoredWorker,
|
|
97
|
+
bestSoFar,
|
|
97
98
|
cliWorktreeExecutor,
|
|
98
99
|
createEventBus,
|
|
99
100
|
createExecutor,
|
|
100
101
|
createExecutorRegistry,
|
|
102
|
+
createFileRunContext,
|
|
101
103
|
createInMemoryRunContext,
|
|
102
104
|
createInbox,
|
|
105
|
+
createProgressTracker,
|
|
106
|
+
createPushTraceSource,
|
|
103
107
|
createSandboxLineage,
|
|
108
|
+
createSteerableSandboxSession,
|
|
104
109
|
createWorktreeCliExecutor,
|
|
110
|
+
decodeToolPart,
|
|
105
111
|
defaultDelegateBudget,
|
|
106
112
|
defaultProfileRichnessThresholds,
|
|
107
113
|
defaultSelectWinner,
|
|
114
|
+
defaultToolDetectors,
|
|
108
115
|
delegate,
|
|
109
116
|
driverAgent,
|
|
117
|
+
effectiveConcurrency,
|
|
110
118
|
finalizeBestDelivered,
|
|
119
|
+
freeSlots,
|
|
111
120
|
gateOnDeliverable,
|
|
121
|
+
noProgressFor,
|
|
122
|
+
piExecutor,
|
|
123
|
+
piSeamKey,
|
|
124
|
+
plateau,
|
|
125
|
+
plateauLength,
|
|
112
126
|
probeSandboxCapabilities,
|
|
113
127
|
profileRichnessFinding,
|
|
128
|
+
queueOf,
|
|
129
|
+
renderAnytimeTable,
|
|
130
|
+
rollingDispatch,
|
|
114
131
|
runLoop,
|
|
132
|
+
sampleFromSettled,
|
|
133
|
+
sandboxSessionTraceSource,
|
|
115
134
|
serveCoordinationMcp,
|
|
116
135
|
supervise,
|
|
117
136
|
supervisorAgent,
|
|
118
137
|
supervisorInstructions,
|
|
138
|
+
watchTrace,
|
|
119
139
|
workerFromBackend
|
|
120
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-EAQ5YRRY.js";
|
|
121
141
|
import "./chunk-DPEUKJRO.js";
|
|
122
142
|
import {
|
|
123
143
|
adaptiveRefine,
|
|
@@ -144,26 +164,40 @@ import {
|
|
|
144
164
|
selectBestIndex,
|
|
145
165
|
structuralRollout,
|
|
146
166
|
visibleCheckScore
|
|
147
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-QYCKIV6C.js";
|
|
148
168
|
import "./chunk-UPWGXKXB.js";
|
|
149
169
|
import "./chunk-2VZYRB55.js";
|
|
150
170
|
import {
|
|
171
|
+
DEFAULT_STALL_AFTER_MS,
|
|
151
172
|
assertModelAllowed,
|
|
173
|
+
createActivityLog,
|
|
152
174
|
createBudgetPool,
|
|
153
175
|
createScope,
|
|
154
176
|
createSupervisor,
|
|
177
|
+
createWaitProbes,
|
|
178
|
+
isWaitOutcome,
|
|
179
|
+
pollFor,
|
|
180
|
+
readWorkerProgress,
|
|
155
181
|
routerBrain,
|
|
156
182
|
routerChatWithTools,
|
|
157
183
|
routerChatWithUsage,
|
|
158
184
|
routerToolLoop,
|
|
159
185
|
settledToIteration,
|
|
160
|
-
spendFromUsageEvents
|
|
161
|
-
|
|
186
|
+
spendFromUsageEvents,
|
|
187
|
+
timerAt,
|
|
188
|
+
validateWaitSpec,
|
|
189
|
+
waitUntil
|
|
190
|
+
} from "./chunk-6WZZXQV5.js";
|
|
162
191
|
import {
|
|
192
|
+
FileResultBlobStore,
|
|
193
|
+
FileSpawnJournal,
|
|
163
194
|
InMemoryResultBlobStore,
|
|
164
195
|
InMemorySpawnJournal,
|
|
165
|
-
contentAddress
|
|
166
|
-
|
|
196
|
+
contentAddress,
|
|
197
|
+
materializeTreeView,
|
|
198
|
+
pendingWaits,
|
|
199
|
+
replaySpawnTree
|
|
200
|
+
} from "./chunk-ISPWRSEC.js";
|
|
167
201
|
import {
|
|
168
202
|
createAgentEnvironmentProviderRegistry,
|
|
169
203
|
providerAsExecutor,
|
|
@@ -181,16 +215,25 @@ import {
|
|
|
181
215
|
} from "./chunk-M22PL4GH.js";
|
|
182
216
|
import "./chunk-YEJR7IXO.js";
|
|
183
217
|
export {
|
|
218
|
+
DEFAULT_SANDBOX_STEERING_MAX_TURNS,
|
|
219
|
+
DEFAULT_STALL_AFTER_MS,
|
|
184
220
|
FileCorpus,
|
|
221
|
+
FileResultBlobStore,
|
|
222
|
+
FileSpawnJournal,
|
|
185
223
|
InMemoryCorpus,
|
|
186
224
|
InMemoryResultBlobStore,
|
|
187
225
|
InMemorySpawnJournal,
|
|
188
226
|
McpSpawnFault,
|
|
227
|
+
PI_RUNTIME,
|
|
189
228
|
SandboxRunAbortError,
|
|
190
229
|
acquireSandbox,
|
|
191
230
|
adaptiveRefine,
|
|
231
|
+
allOf,
|
|
232
|
+
allWorkersStalled,
|
|
192
233
|
analyzeTrace,
|
|
234
|
+
anyOf,
|
|
193
235
|
anytimeReport,
|
|
236
|
+
areaUnderCurve,
|
|
194
237
|
asAuthoredProfile,
|
|
195
238
|
assertModelAllowed,
|
|
196
239
|
assertStrategyContract,
|
|
@@ -199,6 +242,7 @@ export {
|
|
|
199
242
|
auditIntent,
|
|
200
243
|
authorStrategy,
|
|
201
244
|
authoredWorker,
|
|
245
|
+
bestSoFar,
|
|
202
246
|
breadthStrategy,
|
|
203
247
|
buildSteerContext,
|
|
204
248
|
builtinShapes,
|
|
@@ -211,22 +255,27 @@ export {
|
|
|
211
255
|
computeFindingId,
|
|
212
256
|
connectStdioMcp,
|
|
213
257
|
contentAddress,
|
|
258
|
+
createActivityLog,
|
|
214
259
|
createAgentEnvironmentProviderRegistry,
|
|
215
260
|
createBudgetPool,
|
|
216
261
|
createEventBus,
|
|
217
262
|
createExecutor,
|
|
218
263
|
createExecutorRegistry,
|
|
264
|
+
createFileRunContext,
|
|
219
265
|
createInMemoryRunContext,
|
|
220
266
|
createInbox,
|
|
221
267
|
createMcpEnvironment,
|
|
268
|
+
createProgressTracker,
|
|
222
269
|
createPushTraceSource,
|
|
223
270
|
createSandboxLineage,
|
|
224
271
|
createSandboxToolPartState,
|
|
225
272
|
createScope,
|
|
226
273
|
createScopeAnalyst,
|
|
227
274
|
createShapeRegistry,
|
|
275
|
+
createSteerableSandboxSession,
|
|
228
276
|
createSupervisor,
|
|
229
277
|
createVerifierEnvironment,
|
|
278
|
+
createWaitProbes,
|
|
230
279
|
createWaterfallCollector,
|
|
231
280
|
createWorktreeCliExecutor,
|
|
232
281
|
decodeToolPart,
|
|
@@ -247,6 +296,7 @@ export {
|
|
|
247
296
|
discriminatingMeans,
|
|
248
297
|
driverAgent,
|
|
249
298
|
dumbDriver,
|
|
299
|
+
effectiveConcurrency,
|
|
250
300
|
envKeyProvider,
|
|
251
301
|
equalKOnCost,
|
|
252
302
|
extractLlmCallEvent,
|
|
@@ -255,11 +305,13 @@ export {
|
|
|
255
305
|
filterAuthoredAsserts,
|
|
256
306
|
finalizeBestDelivered,
|
|
257
307
|
flatWidenGate,
|
|
308
|
+
freeSlots,
|
|
258
309
|
gateOnDeliverable,
|
|
259
310
|
gitWorkspace,
|
|
260
311
|
harvestCorpus,
|
|
261
312
|
inProcessSandboxClient,
|
|
262
313
|
inlineSandboxClient,
|
|
314
|
+
isWaitOutcome,
|
|
263
315
|
jjWorkspace,
|
|
264
316
|
leaderboard,
|
|
265
317
|
localSandboxClient,
|
|
@@ -271,23 +323,33 @@ export {
|
|
|
271
323
|
mapSandboxEvent,
|
|
272
324
|
mapSandboxToolEvent,
|
|
273
325
|
materializeLocalMcp,
|
|
326
|
+
materializeTreeView,
|
|
274
327
|
mcpSecretEnvMetadataKey,
|
|
275
328
|
modelAuthoredChecks,
|
|
276
329
|
naiveDriver,
|
|
330
|
+
noProgressFor,
|
|
277
331
|
observe,
|
|
278
332
|
officialChecksFromMeta,
|
|
279
333
|
openSandboxRun,
|
|
280
334
|
pairwiseSignificance,
|
|
281
335
|
panel,
|
|
282
336
|
patchDelivered,
|
|
337
|
+
pendingWaits,
|
|
338
|
+
piExecutor,
|
|
339
|
+
piSeamKey,
|
|
283
340
|
pickChampion,
|
|
284
341
|
pipeline,
|
|
342
|
+
plateau,
|
|
343
|
+
plateauLength,
|
|
344
|
+
pollFor,
|
|
285
345
|
printBenchmarkReport,
|
|
286
346
|
probeSandboxCapabilities,
|
|
287
347
|
profileRichnessFinding,
|
|
288
348
|
promotionGate,
|
|
289
349
|
providerAsExecutor,
|
|
290
350
|
providerAsSandboxClient,
|
|
351
|
+
queueOf,
|
|
352
|
+
readWorkerProgress,
|
|
291
353
|
refine,
|
|
292
354
|
registerShape,
|
|
293
355
|
registryScopeAnalyst,
|
|
@@ -298,11 +360,13 @@ export {
|
|
|
298
360
|
renderLeaderboardSvg,
|
|
299
361
|
renderPairwiseMarkdown,
|
|
300
362
|
renderReport,
|
|
363
|
+
replaySpawnTree,
|
|
301
364
|
reportLoopUsage,
|
|
302
365
|
resolveAgentEnvironmentProvider,
|
|
303
366
|
resolveEntrySymbol,
|
|
304
367
|
resolveSandboxClient,
|
|
305
368
|
resolveSecretEnv,
|
|
369
|
+
rollingDispatch,
|
|
306
370
|
routerBrain,
|
|
307
371
|
routerChatWithTools,
|
|
308
372
|
routerChatWithUsage,
|
|
@@ -314,6 +378,7 @@ export {
|
|
|
314
378
|
runPersonified,
|
|
315
379
|
runStrategyEvolution,
|
|
316
380
|
sample,
|
|
381
|
+
sampleFromSettled,
|
|
317
382
|
sampleThenRefine,
|
|
318
383
|
sandboxCheckRunner,
|
|
319
384
|
sandboxClientAsProvider,
|
|
@@ -336,9 +401,12 @@ export {
|
|
|
336
401
|
superviseSurface,
|
|
337
402
|
supervisorAgent,
|
|
338
403
|
supervisorInstructions,
|
|
404
|
+
timerAt,
|
|
339
405
|
trajectoryReport,
|
|
406
|
+
validateWaitSpec,
|
|
340
407
|
verify,
|
|
341
408
|
visibleCheckScore,
|
|
409
|
+
waitUntil,
|
|
342
410
|
watchTrace,
|
|
343
411
|
widen,
|
|
344
412
|
workerFromBackend,
|
package/dist/mcp/bin.js
CHANGED
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
DelegationTaskQueue,
|
|
10
10
|
FileDelegationStore,
|
|
11
11
|
createMcpServer
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-EAQ5YRRY.js";
|
|
13
13
|
import "../chunk-DPEUKJRO.js";
|
|
14
14
|
import "../chunk-2VZYRB55.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-6WZZXQV5.js";
|
|
16
|
+
import "../chunk-ISPWRSEC.js";
|
|
17
17
|
import "../chunk-M6MD6JBS.js";
|
|
18
18
|
import "../chunk-3MDZX7YU.js";
|
|
19
19
|
import "../chunk-M22PL4GH.js";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as SandboxClient, b as LoopSandboxPlacement } from '../types-
|
|
2
|
-
import { F as FleetHandle, D as DelegationExecutor, a as DelegationTaskQueue, b as FeedbackStore, c as DelegateFeedbackResult, d as DelegateFeedbackArgs, U as UiAuditorDelegate, e as DelegateUiAuditArgs, f as DelegateUiAuditResult, g as DelegationHistoryResult, h as DelegationHistoryArgs, i as DelegationStatusResult, j as DelegationStatusArgs } from '../coordination-
|
|
3
|
-
export { A as AnalystRegistry, C as CappedDelegationTrace, k as CoderDelegate, l as CoderReview, m as CoderReviewer, n as CoordinationEvent, o as CoordinationTools, p as CoordinationToolsOptions, q as DELEGATE_DESCRIPTION, r as DELEGATE_INPUT_SCHEMA, s as DELEGATE_TOOL_NAME, t as DELEGATION_TRACE_MAX_BYTES, u as DELEGATION_TRACE_MAX_SPANS, v as DelegateArgs, w as DelegateCodeArgs, x as DelegateCodeConfig, y as DelegateCodeResult, z as DelegateHandlerOptions, B as DelegateResearchArgs, G as DelegateResearchConfig, H as DelegateResearchResult, I as DelegateResult, J as DelegateRunCtx, K as DelegateUiAuditConfig, L as DelegateUiAuditRoute, N as DelegationError, O as DelegationFeedbackSnapshot, P as DelegationHistoryEntry, Q as DelegationPersistenceError, R as DelegationProfile, S as DelegationProgress, T as DelegationRecord, V as DelegationResultPayload,
|
|
1
|
+
import { S as SandboxClient, b as LoopSandboxPlacement } from '../types-DK11_O4L.js';
|
|
2
|
+
import { F as FleetHandle, D as DelegationExecutor, a as DelegationTaskQueue, b as FeedbackStore, c as DelegateFeedbackResult, d as DelegateFeedbackArgs, U as UiAuditorDelegate, e as DelegateUiAuditArgs, f as DelegateUiAuditResult, g as DelegationHistoryResult, h as DelegationHistoryArgs, i as DelegationStatusResult, j as DelegationStatusArgs } from '../coordination-DTehA977.js';
|
|
3
|
+
export { A as AnalystRegistry, C as CappedDelegationTrace, k as CoderDelegate, l as CoderReview, m as CoderReviewer, n as CoordinationEvent, o as CoordinationTools, p as CoordinationToolsOptions, q as DELEGATE_DESCRIPTION, r as DELEGATE_INPUT_SCHEMA, s as DELEGATE_TOOL_NAME, t as DELEGATION_TRACE_MAX_BYTES, u as DELEGATION_TRACE_MAX_SPANS, v as DelegateArgs, w as DelegateCodeArgs, x as DelegateCodeConfig, y as DelegateCodeResult, z as DelegateHandlerOptions, B as DelegateResearchArgs, G as DelegateResearchConfig, H as DelegateResearchResult, I as DelegateResult, J as DelegateRunCtx, K as DelegateUiAuditConfig, L as DelegateUiAuditRoute, N as DelegationError, O as DelegationFeedbackSnapshot, P as DelegationHistoryEntry, Q as DelegationPersistenceError, R as DelegationProfile, S as DelegationProgress, T as DelegationRecord, V as DelegationResultPayload, X as DelegationResumeContext, Y as DelegationResumeDriver, Z as DelegationResumeTick, _ as DelegationRunContext, $ as DelegationStateCorruptError, a0 as DelegationStatus, a1 as DelegationStore, a2 as DelegationTaskQueueOptions, a3 as DelegationTraceCaps, a4 as DelegationTraceCollector, a5 as DelegationTraceSpan, a6 as DetachedSessionDelegateOptions, a7 as DetachedSessionRefParts, a8 as DetachedTurn, a9 as DetachedTurnResumeDriverOptions, aa as DetachedWinnerSelection, ab as DriveTurnCapableBox, ac as DriveTurnTick, ad as FeedbackEvent, ae as FeedbackRating, af as FeedbackRefersTo, ag as FileDelegationStore, ah as FileDelegationStoreOptions, ai as FleetWorkspaceExecutorOptions, aj as InMemoryDelegationStore, ak as InMemoryFeedbackStore, al as JsonRpcMessage, am as JsonRpcResponse, M as MakeWorkerAgent, an as McpServer, ao as McpServerOptions, ap as McpToolDescriptor, aq as McpTransport, ar as Question, as as QuestionDecision, at as QuestionPolicy, au as QuestionRecord, av as ResearchOutputShape, aw as ResearchSource, ax as RunDetachedTurnOptions, ay as SettleDetachedCoderTurnOptions, az as SettledWorker, aA as SiblingSandboxExecutorOptions, aB as SubmitInput, aC as SubmitOutput, aD as TraceContext, aE as UiAuditorDelegationOutput, aF as buildDelegationTraceSpans, aG as capDelegationTrace, aH as coderTaskFromArgs, aI as composeLoopTraceEmitters, aJ as createCoordinationTools, aK as createDelegateHandler, aL as createDelegationTraceCollector, aM as createDetachedTurnResumeDriver, aN as createFleetWorkspaceExecutor, aO as createInProcessTransport, aP as createMcpServer, aQ as createPropagatingTraceEmitter, aR as createSiblingSandboxExecutor, aS as detachedSessionDelegate, aT as detachedTurnEvents, aU as eventToSnapshot, aV as formatDetachedSessionRef, aW as hashIdempotencyInput, aX as parseDetachedSessionRef, aY as readTraceContextFromEnv, aZ as runDetachedTurn, a_ as settleDetachedCoderTurn, a$ as traceContextToEnv, b0 as validateDelegateArgs } from '../coordination-DTehA977.js';
|
|
4
4
|
import { L as LocalHarness, r as runLocalHarness } from '../local-harness-CtK9dSny.js';
|
|
5
5
|
export { a as CodexExecutionEvidence, c as CodexExecutionPolicy, C as CodexTokenUsage, b as LocalHarnessResult, R as RunLocalHarnessOptions, p as parseCodexTokenUsage } from '../local-harness-CtK9dSny.js';
|
|
6
|
-
import { G as GitRunner } from '../completion-gate-
|
|
7
|
-
export { C as CreateWorktreeOptions, b as DiffOptions, c as DiffResult, R as RemoveWorktreeOptions, d as WorktreeHandle, e as captureWorktreeDiff, f as createWorktree, r as removeWorktree } from '../completion-gate-
|
|
6
|
+
import { G as GitRunner } from '../completion-gate-DLINnrkM.js';
|
|
7
|
+
export { C as CreateWorktreeOptions, b as DiffOptions, c as DiffResult, R as RemoveWorktreeOptions, d as WorktreeHandle, e as captureWorktreeDiff, f as createWorktree, r as removeWorktree } from '../completion-gate-DLINnrkM.js';
|
|
8
8
|
export { C as CreateKbGateOptions, F as FactCandidate, a as FactJudge, b as FactJudgeVerdict, K as KbGateResult, c as createKbGate } from '../kb-gate-CwHO0vz6.js';
|
|
9
9
|
import { AgentProfileMcpServer } from '@tangle-network/agent-interface';
|
|
10
10
|
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-fnj6SRVg.js';
|
|
@@ -12,7 +12,7 @@ import { AnalystFinding } from '@tangle-network/agent-eval';
|
|
|
12
12
|
import { a as UiLens } from '../substrate-Dyiqmd3o.js';
|
|
13
13
|
import '@tangle-network/sandbox';
|
|
14
14
|
import '../types-BwoZWq-i.js';
|
|
15
|
-
import '../types-
|
|
15
|
+
import '../types-lZTE_LBd.js';
|
|
16
16
|
import '../sanitize-DEbPNtyI.js';
|
|
17
17
|
import '../environment-provider.js';
|
|
18
18
|
import '@tangle-network/agent-interface/environment-provider';
|
package/dist/mcp/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
mcpToolsForRuntimeMcp,
|
|
22
22
|
mcpToolsForRuntimeMcpSubset
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-TUSOOIDV.js";
|
|
24
24
|
import {
|
|
25
25
|
createKbGate
|
|
26
26
|
} from "../chunk-SGKPNBXE.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
assertTraceDerivedFindings,
|
|
29
29
|
runCoderChecks,
|
|
30
30
|
selectValidWinner
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-3LJF5XSE.js";
|
|
32
32
|
import "../chunk-Q2JSAVQ3.js";
|
|
33
33
|
import {
|
|
34
34
|
DELEGATE_DESCRIPTION,
|
|
@@ -75,9 +75,9 @@ import {
|
|
|
75
75
|
validateDelegateUiAuditArgs,
|
|
76
76
|
validateDelegationHistoryArgs,
|
|
77
77
|
validateDelegationStatusArgs
|
|
78
|
-
} from "../chunk-
|
|
78
|
+
} from "../chunk-EAQ5YRRY.js";
|
|
79
79
|
import "../chunk-DPEUKJRO.js";
|
|
80
|
-
import "../chunk-
|
|
80
|
+
import "../chunk-QYCKIV6C.js";
|
|
81
81
|
import "../chunk-UPWGXKXB.js";
|
|
82
82
|
import "../chunk-2VZYRB55.js";
|
|
83
83
|
import {
|
|
@@ -88,8 +88,8 @@ import {
|
|
|
88
88
|
removeWorktree,
|
|
89
89
|
runLocalHarness,
|
|
90
90
|
runWorktreeHarness
|
|
91
|
-
} from "../chunk-
|
|
92
|
-
import "../chunk-
|
|
91
|
+
} from "../chunk-6WZZXQV5.js";
|
|
92
|
+
import "../chunk-ISPWRSEC.js";
|
|
93
93
|
import "../chunk-M6MD6JBS.js";
|
|
94
94
|
import {
|
|
95
95
|
deleteBoxSafe,
|
package/dist/profiles.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { U as UiFinding, a as UiLens } from './substrate-Dyiqmd3o.js';
|
|
2
2
|
export { C as CoderTask, b as UI_FINDING_SEVERITIES, c as UI_LENSES, d as UiFindingScreenshot, e as UiFindingSeverity, f as coderTaskToPrompt } from './substrate-Dyiqmd3o.js';
|
|
3
3
|
import { AgentProfile, SandboxEvent } from '@tangle-network/sandbox';
|
|
4
|
-
import { V as Validator, A as AgentRunSpec, O as OutputAdapter, D as Driver, S as SandboxClient } from './types-
|
|
4
|
+
import { V as Validator, A as AgentRunSpec, O as OutputAdapter, D as Driver, S as SandboxClient } from './types-DK11_O4L.js';
|
|
5
5
|
import { AgentProfile as AgentProfile$1 } from '@tangle-network/agent-interface';
|
|
6
6
|
import '@tangle-network/agent-eval';
|
|
7
7
|
import './types-BwoZWq-i.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TraceStore } from '@tangle-network/agent-eval';
|
|
2
|
-
import { AgentCandidateArtifactRef, AgentCandidateAttemptPolicy, Sha256Digest, AgentCandidateResolvedModel, AgentCandidateFixedSpend, AgentProfile, AgentProfileDiff, AgentCandidateProfilePlanEvidence, AgentCandidateProfileActivation } from '@tangle-network/agent-interface';
|
|
3
|
-
import { A as AgentCandidateExecutorPort, a as AgentCandidateBenchmarkGraderPort, b as AgentCandidateOutputArtifactPort, P as PreparedAgentCandidateExecution, c as AgentCandidateRunFinalization, V as VerifiedAgentCandidate, d as AgentCandidateTaskExecution, e as AgentCandidateExecutionPorts } from './types-
|
|
2
|
+
import { AgentCandidateArtifactRef, AgentCandidateAttemptPolicy, Sha256Digest, AgentCandidateResolvedModel, AgentCandidateFixedSpend, AgentProfile, AgentCandidateProfile, AgentProfileDiff, AgentCandidateProfilePlanEvidence, AgentCandidateProfileActivation } from '@tangle-network/agent-interface';
|
|
3
|
+
import { A as AgentCandidateExecutorPort, a as AgentCandidateBenchmarkGraderPort, b as AgentCandidateOutputArtifactPort, P as PreparedAgentCandidateExecution, c as AgentCandidateRunFinalization, V as VerifiedAgentCandidate, d as AgentCandidateTaskExecution, e as AgentCandidateExecutionPorts, f as AgentCandidateModelPort, g as AgentCandidateProtectedModelReservation, h as AgentCandidateProtectedModelActivation, i as AgentCandidateProtectedModelSettlement } from './types-Cbp72qyu.js';
|
|
4
4
|
|
|
5
5
|
interface AgentCandidatePreparationEvidence {
|
|
6
6
|
readonly executionPlan: AgentCandidateArtifactRef;
|
|
@@ -223,6 +223,8 @@ declare function prepareAgentCandidateExecution(candidate: VerifiedAgentCandidat
|
|
|
223
223
|
|
|
224
224
|
/** Parse and check every native file hash plus both canonical document digests. */
|
|
225
225
|
declare function parseAgentCandidateProfileActivation(input: unknown, expectedProfilePlanDigest?: AgentCandidateProfilePlanEvidence['digest']): AgentCandidateProfileActivation;
|
|
226
|
+
/** Prove the measured generic profile and sealed candidate profile describe the same behavior. */
|
|
227
|
+
declare function assertCandidateProfileBinding(measuredInput: AgentProfile, bundled: AgentCandidateProfile): void;
|
|
226
228
|
/** Parse a complete profile without silently discarding unsupported fields. */
|
|
227
229
|
declare function parseExactAgentProfile(input: unknown, label: string): AgentProfile;
|
|
228
230
|
/** Parse a profile diff without silently discarding unsupported fields. */
|
|
@@ -230,4 +232,40 @@ declare function parseExactAgentProfileDiff(input: unknown, label: string): Agen
|
|
|
230
232
|
/** Apply one exact diff and reject any value that cannot be preserved canonically. */
|
|
231
233
|
declare function applyExactAgentProfileDiff(baseInput: unknown, diffInput: unknown, label: string): AgentProfile;
|
|
232
234
|
|
|
233
|
-
|
|
235
|
+
type AgentCandidateModelGrantReserveInput = Parameters<AgentCandidateModelPort['reserveGrant']>[0];
|
|
236
|
+
type AgentCandidateModelGrantActivateInput = Parameters<AgentCandidateModelPort['activateGrant']>[0];
|
|
237
|
+
type AgentCandidateModelGrantSettleInput = Parameters<AgentCandidateModelPort['settleGrant']>[0];
|
|
238
|
+
/** Secret-free response from the service's reservation endpoint. */
|
|
239
|
+
type AgentCandidateModelGrantReservation = AgentCandidateProtectedModelReservation;
|
|
240
|
+
/**
|
|
241
|
+
* Narrow transport contract for a service that owns scoped model credentials
|
|
242
|
+
* and the authoritative per-call usage ledger.
|
|
243
|
+
*
|
|
244
|
+
* An HTTP client can bind these methods to control-plane endpoints. Keeping
|
|
245
|
+
* transport out of the runtime prevents parent credentials, endpoint paths,
|
|
246
|
+
* and retry policy from becoming part of the portable candidate contract.
|
|
247
|
+
*/
|
|
248
|
+
interface AgentCandidateModelGrantClient {
|
|
249
|
+
reserve(input: AgentCandidateModelGrantReserveInput): Promise<AgentCandidateModelGrantReservation>;
|
|
250
|
+
activate(input: AgentCandidateModelGrantActivateInput): Promise<AgentCandidateProtectedModelActivation>;
|
|
251
|
+
settle(input: AgentCandidateModelGrantSettleInput): Promise<AgentCandidateProtectedModelSettlement>;
|
|
252
|
+
}
|
|
253
|
+
interface CreateProtectedAgentCandidateModelPortOptions {
|
|
254
|
+
client: AgentCandidateModelGrantClient;
|
|
255
|
+
/** Catalog/snapshot resolution stays separate from credential issuance. */
|
|
256
|
+
resolveModel: AgentCandidateModelPort['resolve'];
|
|
257
|
+
/** The only public DNS name candidate processes may reach for inference. */
|
|
258
|
+
gatewayDomain: string;
|
|
259
|
+
/** Exact environment names the activation endpoint must return, no more or fewer. */
|
|
260
|
+
activationEnvNames: readonly string[];
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Bind a protected model-grant service to the immutable candidate runtime.
|
|
264
|
+
*
|
|
265
|
+
* The service remains the authority for expiry, admission, revocation, and
|
|
266
|
+
* metering. This adapter independently checks every response before allowing
|
|
267
|
+
* it to cross into candidate execution or durable receipt finalization.
|
|
268
|
+
*/
|
|
269
|
+
declare function createProtectedAgentCandidateModelPort(options: CreateProtectedAgentCandidateModelPortOptions): AgentCandidateModelPort;
|
|
270
|
+
|
|
271
|
+
export { type AgentCandidateExecutionClaimStore as A, parseExactAgentProfile as B, type CreateProtectedAgentCandidateModelPortOptions as C, parseExactAgentProfileDiff as D, type ExecutePreparedAgentCandidateOptions as E, prepareAgentCandidateExecution as F, InMemoryAgentCandidateExecutionClaimStore as I, type PrepareAgentCandidateExecutionOptions as P, type AgentCandidateExecutionAttemptRecord as a, type AgentCandidateExecutionAttemptRef as b, type AgentCandidateExecutionClaim as c, type AgentCandidateExecutionClaimResult as d, type AgentCandidateExecutionCleanupHandles as e, type AgentCandidateExecutionFailureClass as f, type AgentCandidateExecutionFinishResult as g, type AgentCandidateExecutionLease as h, type AgentCandidateExecutionPhase as i, type AgentCandidateExecutionPhaseResult as j, type AgentCandidateExecutionRecoveryEvidence as k, type AgentCandidateExecutionStageResult as l, type AgentCandidateExecutionTerminalRecord as m, type AgentCandidateExecutionTerminalResult as n, type AgentCandidateModelGrantActivateInput as o, parseAgentCandidateProfileActivation as p, type AgentCandidateModelGrantClient as q, type AgentCandidateModelGrantReservation as r, type AgentCandidateModelGrantReserveInput as s, type AgentCandidateModelGrantSettleInput as t, type AgentCandidatePreparationEvidence as u, type AgentCandidateRetryRejection as v, applyExactAgentProfileDiff as w, assertCandidateProfileBinding as x, createProtectedAgentCandidateModelPort as y, executePreparedAgentCandidate as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RuntimeHooks, a as SelectionReceipt } from './types-
|
|
2
|
-
import { C as Corpus, O as Outcome } from './worktree-fanout-
|
|
3
|
-
import { A as Agent, B as Budget, S as Scope } from './types-
|
|
1
|
+
import { R as RuntimeHooks, a as SelectionReceipt } from './types-DK11_O4L.js';
|
|
2
|
+
import { C as Corpus, O as Outcome } from './worktree-fanout-DiiJWjJO.js';
|
|
3
|
+
import { A as Agent, B as Budget, S as Scope } from './types-lZTE_LBd.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The general agentic primitive — sequential (depth) and parallel (breadth) over a shared,
|