@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.
- package/README.md +4 -3
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +5 -6
- package/dist/agent.js.map +1 -1
- package/dist/{agentic-generator-B8oeE2Yv.d.ts → agentic-generator-D9ZmAuiL.d.ts} +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/candidate-execution/index.d.ts +10 -3
- package/dist/candidate-execution/index.js +9 -3
- package/dist/{chunk-6K5CI33W.js → chunk-D336OZHK.js} +1232 -19
- package/dist/chunk-D336OZHK.js.map +1 -0
- package/dist/{chunk-TU73X3I6.js → chunk-HPCJBBLS.js} +2 -2
- package/dist/chunk-ISTDY47H.js +849 -0
- package/dist/chunk-ISTDY47H.js.map +1 -0
- package/dist/{chunk-RTVVH2KL.js → chunk-JEP2WM24.js} +2 -2
- package/dist/{chunk-Z7K5BPKZ.js → chunk-K7OPNHU4.js} +2 -2
- package/dist/{chunk-OX3QRJOA.js → chunk-KHLE3C5G.js} +281 -251
- package/dist/chunk-KHLE3C5G.js.map +1 -0
- package/dist/{chunk-XDSWWUKE.js → chunk-MZH4HORF.js} +6 -29
- package/dist/chunk-MZH4HORF.js.map +1 -0
- package/dist/chunk-PJNGPWTA.js +634 -0
- package/dist/chunk-PJNGPWTA.js.map +1 -0
- package/dist/{chunk-X5KJKS33.js → chunk-RTSZNYXM.js} +3 -3
- package/dist/{chunk-WGR6QJ5H.js → chunk-SJHFJOCY.js} +8 -161
- package/dist/chunk-SJHFJOCY.js.map +1 -0
- package/dist/{chunk-2BQMAZAB.js → chunk-URMJTSXB.js} +1378 -28
- package/dist/chunk-URMJTSXB.js.map +1 -0
- package/dist/{chunk-3D2RHC4K.js → chunk-WIPGQ4GT.js} +1 -1
- package/dist/{chunk-3D2RHC4K.js.map → chunk-WIPGQ4GT.js.map} +1 -1
- package/dist/{chunk-R5GWDTM3.js → chunk-ZEYAT33L.js} +2 -2
- package/dist/{completion-gate-BLaiN0-X.d.ts → completion-gate-BAj3dXeW.d.ts} +14 -2
- package/dist/{coordination-DxJ83oZA.d.ts → coordination-B3ZuApR_.d.ts} +7 -5
- package/dist/environment-provider.d.ts +2 -2
- package/dist/{improve-DDhQaaJT.d.ts → improve-r8SvIxYv.d.ts} +13 -16
- package/dist/index.d.ts +39 -110
- package/dist/index.js +92 -36
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +24 -7
- package/dist/intelligence.js +114 -20
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.d.ts +7 -7
- package/dist/knowledge.js +5 -5
- package/dist/lifecycle.d.ts +3 -3
- package/dist/lifecycle.js +2 -2
- package/dist/{local-harness-dcD5WTTr.d.ts → local-harness-B7bNuNJw.d.ts} +49 -1
- package/dist/{loop-runner-bin-kKUNGLyV.d.ts → loop-runner-bin-D4bMIxmB.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +6 -6
- package/dist/loop-runner-bin.js +6 -7
- package/dist/loops.d.ts +457 -18
- package/dist/loops.js +39 -41
- package/dist/mcp/bin.js +5 -5
- package/dist/mcp/index.d.ts +10 -10
- package/dist/mcp/index.js +9 -8
- package/dist/{mcp-serve-verifier-Bg4C3p5S.d.ts → mcp-serve-verifier-BuXjaZDE.d.ts} +1 -1
- package/dist/{openai-tools-E3woykz9.d.ts → openai-tools-D0ZSRCC6.d.ts} +1 -1
- package/dist/{prepare-DiVGKcwS.d.ts → prepare-BKxAiUcH.d.ts} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{sanitize-C9go6tXj.d.ts → sanitize-C2jicjNf.d.ts} +1 -1
- package/dist/{supervise-T2pazU3G.d.ts → supervise-DTNcLDl2.d.ts} +4 -4
- package/dist/{types-DAdIm4AC.d.ts → types-Bb-CqxJH.d.ts} +5 -2
- package/dist/{types-B00NtbCs.d.ts → types-DWA64rbJ.d.ts} +1 -1
- package/dist/{worktree-fanout-BUb2Ag02.d.ts → worktree-fanout-IMKqdV_E.d.ts} +244 -244
- package/package.json +4 -4
- package/skills/build-with-agent-runtime/SKILL.md +1 -1
- package/dist/chunk-2BQMAZAB.js.map +0 -1
- package/dist/chunk-6K5CI33W.js.map +0 -1
- package/dist/chunk-FDJ7AHXG.js +0 -1229
- package/dist/chunk-FDJ7AHXG.js.map +0 -1
- package/dist/chunk-J2K6WIG6.js +0 -2172
- package/dist/chunk-J2K6WIG6.js.map +0 -1
- package/dist/chunk-OX3QRJOA.js.map +0 -1
- package/dist/chunk-PX6SXX3M.js +0 -146
- package/dist/chunk-PX6SXX3M.js.map +0 -1
- package/dist/chunk-WGR6QJ5H.js.map +0 -1
- package/dist/chunk-XDSWWUKE.js.map +0 -1
- package/dist/structural-rollout-DHGDbhvR.d.ts +0 -446
- /package/dist/{chunk-TU73X3I6.js.map → chunk-HPCJBBLS.js.map} +0 -0
- /package/dist/{chunk-RTVVH2KL.js.map → chunk-JEP2WM24.js.map} +0 -0
- /package/dist/{chunk-Z7K5BPKZ.js.map → chunk-K7OPNHU4.js.map} +0 -0
- /package/dist/{chunk-X5KJKS33.js.map → chunk-RTSZNYXM.js.map} +0 -0
- /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-
|
|
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-
|
|
143
|
+
} from "./chunk-URMJTSXB.js";
|
|
137
144
|
import "./chunk-DPEUKJRO.js";
|
|
138
145
|
import {
|
|
139
|
-
assertModelAllowed
|
|
140
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
12
|
+
} from "../chunk-URMJTSXB.js";
|
|
13
13
|
import "../chunk-DPEUKJRO.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
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-
|
|
19
|
+
import "../chunk-PJNGPWTA.js";
|
|
20
20
|
import "../chunk-YEJR7IXO.js";
|
|
21
21
|
import "../chunk-DGUM43GV.js";
|
|
22
22
|
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { S as SandboxClient,
|
|
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, 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-
|
|
4
|
-
import { L as LocalHarness, r as runLocalHarness } from '../local-harness-
|
|
5
|
-
export { a as LocalHarnessResult, R as RunLocalHarnessOptions } from '../local-harness-
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
+
import '../types-Bb-CqxJH.js';
|
|
14
14
|
import '@tangle-network/agent-interface';
|
|
15
|
-
import '../sanitize-
|
|
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-
|
|
8
|
+
} from "../chunk-ZEYAT33L.js";
|
|
9
9
|
import {
|
|
10
10
|
mcpToolsForRuntimeMcp,
|
|
11
11
|
mcpToolsForRuntimeMcpSubset
|
|
12
|
-
} from "../chunk-
|
|
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-
|
|
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-
|
|
70
|
+
} from "../chunk-URMJTSXB.js";
|
|
72
71
|
import "../chunk-DPEUKJRO.js";
|
|
73
|
-
import "../chunk-
|
|
74
|
-
import "../chunk-
|
|
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-
|
|
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,
|
|
@@ -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
|
|
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 };
|
package/dist/profiles.d.ts
CHANGED
|
@@ -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,
|
|
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,
|
|
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-
|
|
2
|
-
import { M as MakeWorkerAgent, A as AnalystRegistry, E as ExecutorConfig } from './coordination-
|
|
3
|
-
import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-
|
|
4
|
-
import { D as DeliverableSpec } from './completion-gate-
|
|
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-
|
|
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,
|
|
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
|
|
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 };
|