@tangle-network/agent-runtime 0.93.2 → 0.94.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.
Files changed (80) hide show
  1. package/README.md +4 -3
  2. package/dist/agent.d.ts +1 -1
  3. package/dist/agent.js +5 -6
  4. package/dist/agent.js.map +1 -1
  5. package/dist/{agentic-generator-B8oeE2Yv.d.ts → agentic-generator-D9ZmAuiL.d.ts} +1 -1
  6. package/dist/analyst-loop.d.ts +1 -1
  7. package/dist/candidate-execution/index.d.ts +10 -3
  8. package/dist/candidate-execution/index.js +9 -3
  9. package/dist/{chunk-6K5CI33W.js → chunk-D336OZHK.js} +1232 -19
  10. package/dist/chunk-D336OZHK.js.map +1 -0
  11. package/dist/{chunk-TU73X3I6.js → chunk-HPCJBBLS.js} +2 -2
  12. package/dist/chunk-ISTDY47H.js +849 -0
  13. package/dist/chunk-ISTDY47H.js.map +1 -0
  14. package/dist/{chunk-RTVVH2KL.js → chunk-JEP2WM24.js} +2 -2
  15. package/dist/{chunk-Z7K5BPKZ.js → chunk-K7OPNHU4.js} +2 -2
  16. package/dist/{chunk-OX3QRJOA.js → chunk-KHLE3C5G.js} +281 -251
  17. package/dist/chunk-KHLE3C5G.js.map +1 -0
  18. package/dist/{chunk-XDSWWUKE.js → chunk-MZH4HORF.js} +6 -29
  19. package/dist/chunk-MZH4HORF.js.map +1 -0
  20. package/dist/chunk-PJNGPWTA.js +634 -0
  21. package/dist/chunk-PJNGPWTA.js.map +1 -0
  22. package/dist/{chunk-X5KJKS33.js → chunk-RTSZNYXM.js} +3 -3
  23. package/dist/{chunk-WGR6QJ5H.js → chunk-SJHFJOCY.js} +8 -161
  24. package/dist/chunk-SJHFJOCY.js.map +1 -0
  25. package/dist/{chunk-2BQMAZAB.js → chunk-URMJTSXB.js} +1378 -28
  26. package/dist/chunk-URMJTSXB.js.map +1 -0
  27. package/dist/{chunk-3D2RHC4K.js → chunk-WIPGQ4GT.js} +1 -1
  28. package/dist/{chunk-3D2RHC4K.js.map → chunk-WIPGQ4GT.js.map} +1 -1
  29. package/dist/{chunk-R5GWDTM3.js → chunk-ZEYAT33L.js} +2 -2
  30. package/dist/{completion-gate-BLaiN0-X.d.ts → completion-gate-BAj3dXeW.d.ts} +14 -2
  31. package/dist/{coordination-DxJ83oZA.d.ts → coordination-B3ZuApR_.d.ts} +7 -5
  32. package/dist/environment-provider.d.ts +2 -2
  33. package/dist/{improve-DDhQaaJT.d.ts → improve-r8SvIxYv.d.ts} +13 -16
  34. package/dist/index.d.ts +39 -110
  35. package/dist/index.js +92 -36
  36. package/dist/index.js.map +1 -1
  37. package/dist/intelligence.d.ts +24 -7
  38. package/dist/intelligence.js +114 -20
  39. package/dist/intelligence.js.map +1 -1
  40. package/dist/knowledge.d.ts +7 -7
  41. package/dist/knowledge.js +5 -5
  42. package/dist/lifecycle.d.ts +3 -3
  43. package/dist/lifecycle.js +2 -2
  44. package/dist/{local-harness-dcD5WTTr.d.ts → local-harness-B7bNuNJw.d.ts} +49 -1
  45. package/dist/{loop-runner-bin-kKUNGLyV.d.ts → loop-runner-bin-D4bMIxmB.d.ts} +2 -2
  46. package/dist/loop-runner-bin.d.ts +6 -6
  47. package/dist/loop-runner-bin.js +6 -7
  48. package/dist/loops.d.ts +457 -18
  49. package/dist/loops.js +39 -41
  50. package/dist/mcp/bin.js +5 -5
  51. package/dist/mcp/index.d.ts +10 -10
  52. package/dist/mcp/index.js +9 -8
  53. package/dist/{mcp-serve-verifier-Bg4C3p5S.d.ts → mcp-serve-verifier-BuXjaZDE.d.ts} +1 -1
  54. package/dist/{openai-tools-E3woykz9.d.ts → openai-tools-D0ZSRCC6.d.ts} +1 -1
  55. package/dist/{prepare-DiVGKcwS.d.ts → prepare-BKxAiUcH.d.ts} +1 -1
  56. package/dist/profiles.d.ts +1 -1
  57. package/dist/{sanitize-C9go6tXj.d.ts → sanitize-C2jicjNf.d.ts} +1 -1
  58. package/dist/{supervise-T2pazU3G.d.ts → supervise-DTNcLDl2.d.ts} +4 -4
  59. package/dist/{types-DAdIm4AC.d.ts → types-Bb-CqxJH.d.ts} +5 -2
  60. package/dist/{types-B00NtbCs.d.ts → types-DWA64rbJ.d.ts} +1 -1
  61. package/dist/{worktree-fanout-BUb2Ag02.d.ts → worktree-fanout-IMKqdV_E.d.ts} +244 -244
  62. package/package.json +4 -4
  63. package/skills/build-with-agent-runtime/SKILL.md +1 -1
  64. package/dist/chunk-2BQMAZAB.js.map +0 -1
  65. package/dist/chunk-6K5CI33W.js.map +0 -1
  66. package/dist/chunk-FDJ7AHXG.js +0 -1229
  67. package/dist/chunk-FDJ7AHXG.js.map +0 -1
  68. package/dist/chunk-J2K6WIG6.js +0 -2172
  69. package/dist/chunk-J2K6WIG6.js.map +0 -1
  70. package/dist/chunk-OX3QRJOA.js.map +0 -1
  71. package/dist/chunk-PX6SXX3M.js +0 -146
  72. package/dist/chunk-PX6SXX3M.js.map +0 -1
  73. package/dist/chunk-WGR6QJ5H.js.map +0 -1
  74. package/dist/chunk-XDSWWUKE.js.map +0 -1
  75. package/dist/structural-rollout-DHGDbhvR.d.ts +0 -446
  76. /package/dist/{chunk-TU73X3I6.js.map → chunk-HPCJBBLS.js.map} +0 -0
  77. /package/dist/{chunk-RTVVH2KL.js.map → chunk-JEP2WM24.js.map} +0 -0
  78. /package/dist/{chunk-Z7K5BPKZ.js.map → chunk-K7OPNHU4.js.map} +0 -0
  79. /package/dist/{chunk-X5KJKS33.js.map → chunk-RTSZNYXM.js.map} +0 -0
  80. /package/dist/{chunk-R5GWDTM3.js.map → chunk-ZEYAT33L.js.map} +0 -0
package/dist/loops.js CHANGED
@@ -2,16 +2,21 @@ import {
2
2
  FileCorpus,
3
3
  InMemoryCorpus,
4
4
  SandboxRunAbortError,
5
+ adaptiveRefine,
5
6
  analyzeTrace,
6
7
  anytimeReport,
7
8
  assertStrategyContract,
8
9
  assertTraceDerivedFindings,
9
10
  auditIntent,
10
11
  authorStrategy,
12
+ breadthStrategy,
11
13
  buildSteerContext,
12
14
  builtinShapes,
15
+ canDisplace,
13
16
  collectAgentTurn,
17
+ compareCheckOutcomes,
14
18
  completionAuthorizes,
19
+ composeCheckSources,
15
20
  computeFindingId,
16
21
  createMcpEnvironment,
17
22
  createPushTraceSource,
@@ -20,16 +25,22 @@ import {
20
25
  createVerifierEnvironment,
21
26
  createWaterfallCollector,
22
27
  decodeToolPart,
28
+ defaultAnalystInstruction,
23
29
  defaultAuditorInstruction,
30
+ defaultExtractCandidate,
31
+ defaultStructuralRolloutPolicy,
24
32
  defaultToolDetectors,
25
33
  defineLeaderboard,
26
34
  definePersona,
35
+ defineStrategy,
36
+ depthStrategy,
27
37
  deterministicCompletion,
28
38
  discriminatingMeans,
29
39
  dumbDriver,
30
40
  equalKOnCost,
31
41
  failuresAnalyst,
32
42
  fanout,
43
+ filterAuthoredAsserts,
33
44
  flatWidenGate,
34
45
  gitWorkspace,
35
46
  harvestCorpus,
@@ -42,7 +53,10 @@ import {
42
53
  loopDispatch,
43
54
  loopUntil,
44
55
  makeFinding,
56
+ modelAuthoredChecks,
45
57
  naiveDriver,
58
+ observe,
59
+ officialChecksFromMeta,
46
60
  openSandboxRun,
47
61
  pairwiseSignificance,
48
62
  panel,
@@ -51,6 +65,7 @@ import {
51
65
  pipeline,
52
66
  printBenchmarkReport,
53
67
  promotionGate,
68
+ refine,
54
69
  registerShape,
55
70
  registryScopeAnalyst,
56
71
  renderAnytimeTable,
@@ -59,64 +74,50 @@ import {
59
74
  renderLeaderboardMarkdown,
60
75
  renderLeaderboardSvg,
61
76
  renderPairwiseMarkdown,
77
+ renderReport,
62
78
  reportLoopUsage,
79
+ resolveEntrySymbol,
63
80
  resolveSandboxClient,
81
+ runAgentic,
64
82
  runBenchmark,
65
83
  runInWorkspace,
66
84
  runPersonified,
67
85
  runStrategyEvolution,
86
+ sample,
87
+ sampleThenRefine,
88
+ sandboxCheckRunner,
68
89
  sandboxSessionTraceSource,
90
+ selectBestIndex,
69
91
  selectChampion,
70
92
  selectValidWinner,
71
93
  sentinelCompletion,
72
94
  stopSentinel,
73
95
  strategyAuthorContract,
74
96
  streamAgentTurn,
97
+ structuralRollout,
75
98
  superviseSurface,
76
99
  trajectoryReport,
77
100
  verify,
101
+ visibleCheckScore,
78
102
  watchTrace,
79
103
  widen,
80
104
  worktreeFanout
81
- } from "./chunk-6K5CI33W.js";
82
- import {
83
- adaptiveRefine,
84
- breadthStrategy,
85
- canDisplace,
86
- compareCheckOutcomes,
87
- composeCheckSources,
88
- defaultAnalystInstruction,
89
- defaultExtractCandidate,
90
- defaultStructuralRolloutPolicy,
91
- defineStrategy,
92
- depthStrategy,
93
- filterAuthoredAsserts,
94
- modelAuthoredChecks,
95
- observe,
96
- officialChecksFromMeta,
97
- refine,
98
- renderReport,
99
- resolveEntrySymbol,
100
- runAgentic,
101
- sample,
102
- sampleThenRefine,
103
- sandboxCheckRunner,
104
- selectBestIndex,
105
- structuralRollout,
106
- visibleCheckScore
107
- } from "./chunk-FDJ7AHXG.js";
105
+ } from "./chunk-D336OZHK.js";
108
106
  import {
109
107
  acquireSandbox,
110
108
  asAuthoredProfile,
111
109
  assessAuthoredProfile,
112
110
  authoredWorker,
113
111
  cliWorktreeExecutor,
112
+ createBudgetPool,
114
113
  createEventBus,
115
114
  createExecutor,
116
115
  createExecutorRegistry,
117
116
  createInMemoryRunContext,
118
117
  createInbox,
119
118
  createSandboxLineage,
119
+ createScope,
120
+ createSupervisor,
120
121
  createWorktreeCliExecutor,
121
122
  defaultDelegateBudget,
122
123
  defaultProfileRichnessThresholds,
@@ -127,31 +128,28 @@ import {
127
128
  gateOnDeliverable,
128
129
  probeSandboxCapabilities,
129
130
  profileRichnessFinding,
131
+ routerBrain,
132
+ routerChatWithTools,
133
+ routerChatWithUsage,
134
+ routerToolLoop,
130
135
  runLoop,
131
136
  serveCoordinationMcp,
137
+ settledToIteration,
138
+ spendFromUsageEvents,
132
139
  supervise,
133
140
  supervisorAgent,
134
141
  supervisorInstructions,
135
142
  workerFromBackend
136
- } from "./chunk-2BQMAZAB.js";
143
+ } from "./chunk-URMJTSXB.js";
137
144
  import "./chunk-DPEUKJRO.js";
138
145
  import {
139
- assertModelAllowed,
140
- createBudgetPool,
141
- createScope,
142
- createSupervisor,
143
- routerBrain,
144
- routerChatWithTools,
145
- routerChatWithUsage,
146
- routerToolLoop,
147
- settledToIteration,
148
- spendFromUsageEvents
149
- } from "./chunk-J2K6WIG6.js";
146
+ assertModelAllowed
147
+ } from "./chunk-ISTDY47H.js";
150
148
  import {
151
149
  InMemoryResultBlobStore,
152
150
  InMemorySpawnJournal,
153
151
  contentAddress
154
- } from "./chunk-3D2RHC4K.js";
152
+ } from "./chunk-WIPGQ4GT.js";
155
153
  import {
156
154
  createAgentEnvironmentProviderRegistry,
157
155
  providerAsExecutor,
@@ -167,7 +165,7 @@ import {
167
165
  mapSandboxToolEvent,
168
166
  sumSandboxUsage
169
167
  } from "./chunk-FVJ7M3DA.js";
170
- import "./chunk-PX6SXX3M.js";
168
+ import "./chunk-PJNGPWTA.js";
171
169
  import "./chunk-YEJR7IXO.js";
172
170
  import "./chunk-DGUM43GV.js";
173
171
  export {
package/dist/mcp/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readTraceContextFromEnv
4
- } from "../chunk-R5GWDTM3.js";
4
+ } from "../chunk-ZEYAT33L.js";
5
5
  import {
6
6
  resolveRouterBaseUrl
7
7
  } from "../chunk-NURIQBJQ.js";
@@ -9,14 +9,14 @@ import {
9
9
  DelegationTaskQueue,
10
10
  FileDelegationStore,
11
11
  createMcpServer
12
- } from "../chunk-2BQMAZAB.js";
12
+ } from "../chunk-URMJTSXB.js";
13
13
  import "../chunk-DPEUKJRO.js";
14
- import "../chunk-J2K6WIG6.js";
15
- import "../chunk-3D2RHC4K.js";
14
+ import "../chunk-ISTDY47H.js";
15
+ import "../chunk-WIPGQ4GT.js";
16
16
  import "../chunk-VSWBYWFK.js";
17
17
  import "../chunk-3MDZX7YU.js";
18
18
  import "../chunk-FVJ7M3DA.js";
19
- import "../chunk-PX6SXX3M.js";
19
+ import "../chunk-PJNGPWTA.js";
20
20
  import "../chunk-YEJR7IXO.js";
21
21
  import "../chunk-DGUM43GV.js";
22
22
 
@@ -1,18 +1,18 @@
1
- import { S as SandboxClient, f as LoopSandboxPlacement } from '../types-B00NtbCs.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-DxJ83oZA.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, W as DelegationResumeContext, X as DelegationResumeDriver, Y as DelegationResumeTick, Z as DelegationRunContext, _ as DelegationStateCorruptError, $ as DelegationStatus, a0 as DelegationStore, a1 as DelegationTaskQueueOptions, a2 as DelegationTraceCaps, a3 as DelegationTraceCollector, a4 as DelegationTraceSpan, a5 as DetachedSessionDelegateOptions, a6 as DetachedSessionRefParts, a7 as DetachedTurn, a8 as DetachedTurnResumeDriverOptions, a9 as DetachedWinnerSelection, aa as DriveTurnCapableBox, ab as DriveTurnTick, ac as FeedbackEvent, ad as FeedbackRating, ae as FeedbackRefersTo, af as FileDelegationStore, ag as FileDelegationStoreOptions, ah as FleetWorkspaceExecutorOptions, ai as InMemoryDelegationStore, aj as InMemoryFeedbackStore, ak as JsonRpcMessage, al as JsonRpcResponse, M as MakeWorkerAgent, am as McpServer, an as McpServerOptions, ao as McpToolDescriptor, ap as McpTransport, aq as Question, ar as QuestionDecision, as as QuestionPolicy, at as QuestionRecord, au as ResearchOutputShape, av as ResearchSource, aw as RunDetachedTurnOptions, ax as SettleDetachedCoderTurnOptions, ay as SettledWorker, az as SiblingSandboxExecutorOptions, aA as SubmitInput, aB as SubmitOutput, aC as TraceContext, aD as UiAuditorDelegationOutput, aE as buildDelegationTraceSpans, aF as capDelegationTrace, aG as coderTaskFromArgs, aH as composeLoopTraceEmitters, aI as createCoordinationTools, aJ as createDelegateHandler, aK as createDelegationTraceCollector, aL as createDetachedTurnResumeDriver, aM as createFleetWorkspaceExecutor, aN as createInProcessTransport, aO as createMcpServer, aP as createPropagatingTraceEmitter, aQ as createSiblingSandboxExecutor, aR as detachedSessionDelegate, aS as detachedTurnEvents, aT as eventToSnapshot, aU as formatDetachedSessionRef, aV as hashIdempotencyInput, aW as parseDetachedSessionRef, aX as readTraceContextFromEnv, aY as runDetachedTurn, aZ as settleDetachedCoderTurn, a_ as traceContextToEnv, a$ as validateDelegateArgs } from '../coordination-DxJ83oZA.js';
4
- import { L as LocalHarness, r as runLocalHarness } from '../local-harness-dcD5WTTr.js';
5
- export { a as LocalHarnessResult, R as RunLocalHarnessOptions } from '../local-harness-dcD5WTTr.js';
6
- import { G as GitRunner } from '../completion-gate-BLaiN0-X.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-BLaiN0-X.js';
1
+ import { S as SandboxClient, e as LoopSandboxPlacement } from '../types-DWA64rbJ.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-B3ZuApR_.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, W as DelegationResumeContext, X as DelegationResumeDriver, Y as DelegationResumeTick, Z as DelegationRunContext, _ as DelegationStateCorruptError, $ as DelegationStatus, a0 as DelegationStore, a1 as DelegationTaskQueueOptions, a2 as DelegationTraceCaps, a3 as DelegationTraceCollector, a4 as DelegationTraceSpan, a5 as DetachedSessionDelegateOptions, a6 as DetachedSessionRefParts, a7 as DetachedTurn, a8 as DetachedTurnResumeDriverOptions, a9 as DetachedWinnerSelection, aa as DriveTurnCapableBox, ab as DriveTurnTick, ac as FeedbackEvent, ad as FeedbackRating, ae as FeedbackRefersTo, af as FileDelegationStore, ag as FileDelegationStoreOptions, ah as FleetWorkspaceExecutorOptions, ai as InMemoryDelegationStore, aj as InMemoryFeedbackStore, ak as JsonRpcMessage, al as JsonRpcResponse, M as MakeWorkerAgent, am as McpServer, an as McpServerOptions, ao as McpToolDescriptor, ap as McpTransport, aq as Question, ar as QuestionDecision, as as QuestionPolicy, at as QuestionRecord, au as ResearchOutputShape, av as ResearchSource, aw as RunDetachedTurnOptions, ax as SettleDetachedCoderTurnOptions, ay as SettledWorker, az as SiblingSandboxExecutorOptions, aA as SubmitInput, aB as SubmitOutput, aC as TraceContext, aD as UiAuditorDelegationOutput, aE as buildDelegationTraceSpans, aF as capDelegationTrace, aG as coderTaskFromArgs, aH as composeLoopTraceEmitters, aI as createCoordinationTools, aJ as createDelegateHandler, aK as createDelegationTraceCollector, aL as createDetachedTurnResumeDriver, aM as createFleetWorkspaceExecutor, aN as createInProcessTransport, aO as createMcpServer, aP as createPropagatingTraceEmitter, aQ as createSiblingSandboxExecutor, aR as detachedSessionDelegate, aS as detachedTurnEvents, aT as eventToSnapshot, aU as formatDetachedSessionRef, aV as hashIdempotencyInput, aW as parseDetachedSessionRef, aX as readTraceContextFromEnv, aY as runDetachedTurn, aZ as settleDetachedCoderTurn, a_ as traceContextToEnv, a$ as validateDelegateArgs } from '../coordination-B3ZuApR_.js';
4
+ import { L as LocalHarness, r as runLocalHarness } from '../local-harness-B7bNuNJw.js';
5
+ export { b as CodexExecutionEvidence, a as CodexExecutionPolicy, C as CodexTokenUsage, c as LocalHarnessResult, R as RunLocalHarnessOptions, p as parseCodexTokenUsage } from '../local-harness-B7bNuNJw.js';
6
+ import { G as GitRunner } from '../completion-gate-BAj3dXeW.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-BAj3dXeW.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
- export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-E3woykz9.js';
9
+ export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-D0ZSRCC6.js';
10
10
  import { AnalystFinding } from '@tangle-network/agent-eval';
11
11
  import { U as UiLens } from '../substrate-DO2GHNg2.js';
12
12
  import '@tangle-network/sandbox';
13
- import '../types-DAdIm4AC.js';
13
+ import '../types-Bb-CqxJH.js';
14
14
  import '@tangle-network/agent-interface';
15
- import '../sanitize-C9go6tXj.js';
15
+ import '../sanitize-C2jicjNf.js';
16
16
  import '../environment-provider.js';
17
17
  import '@tangle-network/agent-interface/environment-provider';
18
18
  import 'node:child_process';
package/dist/mcp/index.js CHANGED
@@ -5,11 +5,11 @@ import {
5
5
  createPropagatingTraceEmitter,
6
6
  readTraceContextFromEnv,
7
7
  traceContextToEnv
8
- } from "../chunk-R5GWDTM3.js";
8
+ } from "../chunk-ZEYAT33L.js";
9
9
  import {
10
10
  mcpToolsForRuntimeMcp,
11
11
  mcpToolsForRuntimeMcpSubset
12
- } from "../chunk-Z7K5BPKZ.js";
12
+ } from "../chunk-K7OPNHU4.js";
13
13
  import {
14
14
  createKbGate
15
15
  } from "../chunk-SGKPNBXE.js";
@@ -17,8 +17,7 @@ import {
17
17
  assertTraceDerivedFindings,
18
18
  runCoderChecks,
19
19
  selectValidWinner
20
- } from "../chunk-6K5CI33W.js";
21
- import "../chunk-FDJ7AHXG.js";
20
+ } from "../chunk-D336OZHK.js";
22
21
  import {
23
22
  DELEGATE_DESCRIPTION,
24
23
  DELEGATE_FEEDBACK_DESCRIPTION,
@@ -68,10 +67,10 @@ import {
68
67
  validateDelegateUiAuditArgs,
69
68
  validateDelegationHistoryArgs,
70
69
  validateDelegationStatusArgs
71
- } from "../chunk-2BQMAZAB.js";
70
+ } from "../chunk-URMJTSXB.js";
72
71
  import "../chunk-DPEUKJRO.js";
73
- import "../chunk-J2K6WIG6.js";
74
- import "../chunk-3D2RHC4K.js";
72
+ import "../chunk-ISTDY47H.js";
73
+ import "../chunk-WIPGQ4GT.js";
75
74
  import "../chunk-VSWBYWFK.js";
76
75
  import {
77
76
  deleteBoxSafe,
@@ -81,8 +80,9 @@ import {
81
80
  } from "../chunk-3MDZX7YU.js";
82
81
  import "../chunk-FVJ7M3DA.js";
83
82
  import {
83
+ parseCodexTokenUsage,
84
84
  runLocalHarness
85
- } from "../chunk-PX6SXX3M.js";
85
+ } from "../chunk-PJNGPWTA.js";
86
86
  import {
87
87
  ValidationError
88
88
  } from "../chunk-YEJR7IXO.js";
@@ -1238,6 +1238,7 @@ export {
1238
1238
  makeCheckRunner,
1239
1239
  mcpToolsForRuntimeMcp,
1240
1240
  mcpToolsForRuntimeMcpSubset,
1241
+ parseCodexTokenUsage,
1241
1242
  parseDetachedSessionRef,
1242
1243
  readTraceContextFromEnv,
1243
1244
  removeWorktree,
@@ -1,4 +1,4 @@
1
- import { V as Verifier } from './agentic-generator-B8oeE2Yv.js';
1
+ import { V as Verifier } from './agentic-generator-D9ZmAuiL.js';
2
2
 
3
3
  /**
4
4
  * `mcpServeVerifier` — the intrinsic verifier for a built MCP server: the
@@ -1,4 +1,4 @@
1
- import { O as OpenAIChatTool } from './types-B00NtbCs.js';
1
+ import { O as OpenAIChatTool } from './types-DWA64rbJ.js';
2
2
 
3
3
  /**
4
4
  *
@@ -715,4 +715,4 @@ interface PrepareAgentCandidateExecutionOptions {
715
715
  /** Materializes a verified candidate into one immutable evaluator-owned execution plan. */
716
716
  declare function prepareAgentCandidateExecution(candidate: VerifiedAgentCandidate, task: AgentCandidateTaskExecution, ports: AgentCandidateExecutionPorts, options?: PrepareAgentCandidateExecutionOptions): Promise<PreparedAgentCandidateExecution>;
717
717
 
718
- export { InMemoryAgentCandidateExecutionClaimStore as $, type AgentCandidateTaskExecution as A, type AgentCandidateExecutorProfileFile as B, type AgentCandidateExecutorRequest as C, type AgentCandidateExecutorStopRequest as D, type ExecutePreparedAgentCandidateOptions as E, type AgentCandidateExecutorTaskOutcomeCapture as F, type AgentCandidateExecutorWorkspaceFile as G, type AgentCandidateExecutorWorkspaceInput as H, type AgentCandidateMemoryPort as I, type AgentCandidateMemoryResetResult as J, type AgentCandidateModelLimits as K, type AgentCandidateModelPort as L, type AgentCandidateOutputArtifactPort as M, type AgentCandidateOutputPurpose as N, type AgentCandidateProtectedModelActivation as O, type PrepareAgentCandidateExecutionOptions as P, type AgentCandidateProtectedModelCall as Q, type AgentCandidateProtectedModelReservation as R, type AgentCandidateProtectedModelSettlement as S, type AgentCandidateProtectedRunCapture as T, type AgentCandidateRepositoryPort as U, type AgentCandidateRetryRejection as V, type AgentCandidateVerificationPorts as W, type AgentCandidateWorkspacePort as X, CANDIDATE_TRACE_ENV as Y, CANDIDATE_TRACE_TAGS as Z, type CanonicalCandidateDocument as _, type AgentCandidateExecutionPorts as a, type PreparedAgentCandidateExecution as a0, type PreparedAgentCandidateInstruction as a1, type PreparedAgentCandidateLaunch as a2, type PreparedAgentCandidateTrace as a3, type ResolvedAgentCandidateContainer as a4, type VerifiedAgentCandidate as a5, type VerifiedAgentCandidateTaskOutcome as a6, executePreparedAgentCandidate as a7, prepareAgentCandidateExecution as a8, sealAgentCandidateBundle as a9, type AgentCandidateRunFinalization as b, type AgentCandidateBundleInput as c, type AgentCandidateArtifactPort as d, type AgentCandidateBenchmarkGraderIdentity as e, type AgentCandidateBenchmarkGraderPort as f, type AgentCandidateContainerPort as g, type AgentCandidateExecutionAttemptRecord as h, type AgentCandidateExecutionAttemptRef as i, type AgentCandidateExecutionClaim as j, type AgentCandidateExecutionClaimResult as k, type AgentCandidateExecutionClaimStore as l, type AgentCandidateExecutionCleanupHandles as m, type AgentCandidateExecutionFailureClass as n, type AgentCandidateExecutionFinishResult as o, type AgentCandidateExecutionLease as p, type AgentCandidateExecutionPhase as q, type AgentCandidateExecutionPhaseResult as r, type AgentCandidateExecutionRecoveryEvidence as s, type AgentCandidateExecutionStageResult as t, type AgentCandidateExecutionTerminalRecord as u, type AgentCandidateExecutionTerminalResult as v, type AgentCandidateExecutionUsage as w, type AgentCandidateExecutorFinalCapture as x, type AgentCandidateExecutorMemoryCapture as y, type AgentCandidateExecutorPort as z };
718
+ export { InMemoryAgentCandidateExecutionClaimStore as $, type AgentCandidateBundleInput as A, type AgentCandidateExecutorProfileFile as B, type AgentCandidateExecutorRequest as C, type AgentCandidateExecutorStopRequest as D, type ExecutePreparedAgentCandidateOptions as E, type AgentCandidateExecutorTaskOutcomeCapture as F, type AgentCandidateExecutorWorkspaceFile as G, type AgentCandidateExecutorWorkspaceInput as H, type AgentCandidateMemoryPort as I, type AgentCandidateMemoryResetResult as J, type AgentCandidateModelLimits as K, type AgentCandidateModelPort as L, type AgentCandidateOutputArtifactPort as M, type AgentCandidateOutputPurpose as N, type AgentCandidateProtectedModelActivation as O, type PrepareAgentCandidateExecutionOptions as P, type AgentCandidateProtectedModelCall as Q, type AgentCandidateProtectedModelReservation as R, type AgentCandidateProtectedModelSettlement as S, type AgentCandidateProtectedRunCapture as T, type AgentCandidateRepositoryPort as U, type AgentCandidateRetryRejection as V, type AgentCandidateVerificationPorts as W, type AgentCandidateWorkspacePort as X, CANDIDATE_TRACE_ENV as Y, CANDIDATE_TRACE_TAGS as Z, type CanonicalCandidateDocument as _, type AgentCandidateTaskExecution as a, type PreparedAgentCandidateExecution as a0, type PreparedAgentCandidateInstruction as a1, type PreparedAgentCandidateLaunch as a2, type PreparedAgentCandidateTrace as a3, type ResolvedAgentCandidateContainer as a4, type VerifiedAgentCandidate as a5, type VerifiedAgentCandidateTaskOutcome as a6, executePreparedAgentCandidate as a7, prepareAgentCandidateExecution as a8, sealAgentCandidateBundle as a9, type AgentCandidateExecutionPorts as b, type AgentCandidateRunFinalization as c, type AgentCandidateArtifactPort as d, type AgentCandidateBenchmarkGraderIdentity as e, type AgentCandidateBenchmarkGraderPort as f, type AgentCandidateContainerPort as g, type AgentCandidateExecutionAttemptRecord as h, type AgentCandidateExecutionAttemptRef as i, type AgentCandidateExecutionClaim as j, type AgentCandidateExecutionClaimResult as k, type AgentCandidateExecutionClaimStore as l, type AgentCandidateExecutionCleanupHandles as m, type AgentCandidateExecutionFailureClass as n, type AgentCandidateExecutionFinishResult as o, type AgentCandidateExecutionLease as p, type AgentCandidateExecutionPhase as q, type AgentCandidateExecutionPhaseResult as r, type AgentCandidateExecutionRecoveryEvidence as s, type AgentCandidateExecutionStageResult as t, type AgentCandidateExecutionTerminalRecord as u, type AgentCandidateExecutionTerminalResult as v, type AgentCandidateExecutionUsage as w, type AgentCandidateExecutorFinalCapture as x, type AgentCandidateExecutorMemoryCapture as y, type AgentCandidateExecutorPort as z };
@@ -1,7 +1,7 @@
1
1
  import { a as UiFinding, U as UiLens } from './substrate-DO2GHNg2.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-DO2GHNg2.js';
3
3
  import { AgentProfile, SandboxEvent } from '@tangle-network/sandbox';
4
- import { V as Validator, e as AgentRunSpec, d as OutputAdapter, D as Driver, S as SandboxClient } from './types-B00NtbCs.js';
4
+ import { V as Validator, d as AgentRunSpec, c as OutputAdapter, D as Driver, S as SandboxClient } from './types-DWA64rbJ.js';
5
5
  import { AgentProfile as AgentProfile$1 } from '@tangle-network/agent-interface';
6
6
  import '@tangle-network/agent-eval';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { ControlEvalResult, KnowledgeReadinessReport, KnowledgeRequirement } from '@tangle-network/agent-eval';
2
- import { A as AgentRuntimeEvent, b as RuntimeStreamEvent, c as AgentTaskStatus } from './types-B00NtbCs.js';
2
+ import { A as AgentRuntimeEvent, a as RuntimeStreamEvent, b as AgentTaskStatus } from './types-DWA64rbJ.js';
3
3
 
4
4
  /**
5
5
  * THE canonical agentic tool-loop. One inference turn → run any requested tools → fold the
@@ -1,7 +1,7 @@
1
- import { S as Scope, a as ResultBlobStore, B as Budget, A as Agent, b as SupervisedResult } from './types-DAdIm4AC.js';
2
- import { M as MakeWorkerAgent, A as AnalystRegistry, E as ExecutorConfig } from './coordination-DxJ83oZA.js';
3
- import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-C9go6tXj.js';
4
- import { D as DeliverableSpec } from './completion-gate-BLaiN0-X.js';
1
+ import { S as Scope, a as ResultBlobStore, B as Budget, A as Agent, b as SupervisedResult } from './types-Bb-CqxJH.js';
2
+ import { M as MakeWorkerAgent, A as AnalystRegistry, E as ExecutorConfig } from './coordination-B3ZuApR_.js';
3
+ import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-C2jicjNf.js';
4
+ import { D as DeliverableSpec } from './completion-gate-BAj3dXeW.js';
5
5
 
6
6
  /** The supervisor's profile — the subset of an `AgentProfile` that selects + shapes its brain.
7
7
  * `harness` is the backend-as-data discriminant; `systemPrompt` is the standing instruction. */
@@ -1,7 +1,7 @@
1
1
  import { DefaultVerdict } from '@tangle-network/agent-eval';
2
2
  import { AgentProfile } from '@tangle-network/agent-interface';
3
3
  import { BackendType } from '@tangle-network/sandbox';
4
- import { L as LoopTokenUsage, R as RuntimeHooks } from './types-B00NtbCs.js';
4
+ import { L as LoopTokenUsage, R as RuntimeHooks } from './types-DWA64rbJ.js';
5
5
 
6
6
  /**
7
7
  *
@@ -200,6 +200,9 @@ interface Budget {
200
200
  interface Spend {
201
201
  iterations: number;
202
202
  tokens: LoopTokenUsage;
203
+ /** Dollar accounting is known unless explicitly false. A false value must not be treated as $0
204
+ * when enforcing a dollar-denominated comparison or limit. */
205
+ usdKnown?: boolean;
203
206
  usd: number;
204
207
  ms: number;
205
208
  }
@@ -494,4 +497,4 @@ interface WidenGate<Out> {
494
497
  readonly judgeExempt?: boolean;
495
498
  }
496
499
 
497
- export type { Agent as A, Budget as B, ExecutorFactory as E, NodeId as N, Runtime as R, Scope as S, TreeView as T, UsageEvent as U, WidenGate as W, ResultBlobStore as a, SupervisedResult as b, Executor as c, Settled as d, Spend as e, AgentSpec as f, SpawnJournal as g, ExecutorRegistry as h, RootHandle as i, SpawnEvent as j, Supervisor as k, ExecutorContext as l, ExecutorResult as m, SupervisorOpts as n };
500
+ export type { Agent as A, Budget as B, ExecutorFactory as E, NodeId as N, Runtime as R, Scope as S, TreeView as T, UsageEvent as U, WidenGate as W, ResultBlobStore as a, SupervisedResult as b, Executor as c, AgentSpec as d, ExecutorRegistry as e, SpawnJournal as f, RootHandle as g, Settled as h, Spend as i, SpawnEvent as j, Supervisor as k, ExecutorContext as l, ExecutorResult as m, SupervisorOpts as n };
@@ -1308,4 +1308,4 @@ interface ExecCtx {
1308
1308
  parentSpanId?: string;
1309
1309
  }
1310
1310
 
1311
- export { type MountRecorder as $, type AgentRuntimeEvent as A, type BackendErrorDetail as B, type RuntimeHookContext as C, type Driver as D, type ExecCtx as E, type RuntimeHookErrorContext as F, type RuntimeHookEvent as G, type RuntimeHookPhase as H, type Iteration as I, type RuntimeHookTarget as J, type KnowledgeReadinessDecision as K, type LoopTokenUsage as L, type RuntimeRunHandle as M, type RuntimeRunPersistenceAdapter as N, type OpenAIChatTool as O, type RuntimeRunRow as P, composeRuntimeHooks as Q, type RuntimeHooks as R, type SandboxClient as S, defineRuntimeHooks as T, notifyRuntimeDecisionPoint as U, type Validator as V, notifyRuntimeHookEvent as W, startRuntimeRun as X, type LoopWinner as Y, type LoopLineageOptions as Z, type LoopResult as _, type SelectionReceipt as a, type LoopDecisionPayload as a0, type LoopEndedPayload as a1, type LoopIterationDispatchPayload as a2, type LoopIterationEndedPayload as a3, type LoopIterationStartedPayload as a4, type LoopPlanDescription as a5, type LoopPlanPayload as a6, type LoopStartedPayload as a7, type LoopTeardownFailedPayload as a8, type MountManifestEntry as a9, type RunProvenance as aa, type ValidationCtx as ab, type RuntimeStreamEvent as b, type AgentTaskStatus as c, type OutputAdapter as d, type AgentRunSpec as e, type LoopSandboxPlacement as f, type LoopTraceEvent as g, type LoopTraceEmitter as h, type AgentBackendInput as i, type OpenAIChatToolChoice as j, type OpenAIChatResponseFormat as k, type AgentExecutionBackend as l, type AgentBackendContext as m, type RunAgentTaskOptions as n, type AgentTaskRunResult as o, type RunAgentTaskStreamOptions 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 RuntimeDecisionEvidenceRef as x, type RuntimeDecisionKind as y, type RuntimeDecisionPoint as z };
1311
+ export { type SelectionReceipt as $, type AgentRuntimeEvent as A, type BackendErrorDetail as B, type RuntimeHookErrorContext as C, type Driver as D, type ExecCtx as E, type RuntimeHookEvent as F, type RuntimeHookPhase as G, type RuntimeHookTarget as H, type Iteration as I, type RuntimeRunHandle as J, type KnowledgeReadinessDecision as K, type LoopTokenUsage as L, type RuntimeRunPersistenceAdapter as M, type RuntimeRunRow as N, type OpenAIChatTool as O, composeRuntimeHooks as P, defineRuntimeHooks as Q, type RuntimeHooks as R, type SandboxClient as S, notifyRuntimeDecisionPoint as T, notifyRuntimeHookEvent as U, type Validator as V, startRuntimeRun as W, type LoopWinner as X, type LoopLineageOptions as Y, type LoopResult as Z, type MountRecorder as _, type RuntimeStreamEvent as a, type LoopDecisionPayload as a0, type LoopEndedPayload as a1, type LoopIterationDispatchPayload as a2, type LoopIterationEndedPayload as a3, type LoopIterationStartedPayload as a4, type LoopPlanDescription as a5, type LoopPlanPayload as a6, type LoopStartedPayload as a7, type LoopTeardownFailedPayload as a8, type MountManifestEntry as a9, type RunProvenance as aa, type ValidationCtx as ab, type AgentTaskStatus as b, type OutputAdapter as c, type AgentRunSpec as d, type LoopSandboxPlacement as e, type LoopTraceEvent as f, type LoopTraceEmitter as g, type AgentBackendInput as h, type OpenAIChatToolChoice as i, type OpenAIChatResponseFormat as j, type AgentExecutionBackend as k, type AgentBackendContext as l, type RunAgentTaskOptions as m, type AgentTaskRunResult as n, type RunAgentTaskStreamOptions as o, type RuntimeSessionStore as p, type RuntimeSession as q, type AgentAdapter as r, type AgentKnowledgeProvider as s, type AgentRuntimeEventSink as t, type AgentTaskContext as u, type AgentTaskSpec as v, type RuntimeDecisionEvidenceRef as w, type RuntimeDecisionKind as x, type RuntimeDecisionPoint as y, type RuntimeHookContext as z };