@tangle-network/agent-runtime 0.103.1 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +5 -5
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/{chunk-TUSOOIDV.js → chunk-2QJSNOGK.js} +2 -2
- package/dist/{chunk-ZOYN3JR5.js → chunk-2UABGGUB.js} +3 -3
- package/dist/{chunk-6WZZXQV5.js → chunk-2X65HYMI.js} +1 -1
- package/dist/chunk-2X65HYMI.js.map +1 -0
- package/dist/{chunk-AAN2MB2X.js → chunk-3PPVCS75.js} +3 -3
- package/dist/chunk-3PPVCS75.js.map +1 -0
- package/dist/{chunk-EAQ5YRRY.js → chunk-5HNDYWUT.js} +39 -22
- package/dist/chunk-5HNDYWUT.js.map +1 -0
- package/dist/{chunk-3LJF5XSE.js → chunk-ATDFUJYI.js} +6 -6
- package/dist/chunk-ATDFUJYI.js.map +1 -0
- package/dist/{chunk-LFM4JBRW.js → chunk-FJI3EXU3.js} +46 -5
- package/dist/chunk-FJI3EXU3.js.map +1 -0
- package/dist/{chunk-5AITUUHO.js → chunk-HAO4CXHP.js} +2 -2
- package/dist/{chunk-M6MD6JBS.js → chunk-KRBFHMV6.js} +429 -1
- package/dist/chunk-KRBFHMV6.js.map +1 -0
- package/dist/{chunk-AYU35OTU.js → chunk-PZZKQVQV.js} +1 -1
- package/dist/chunk-PZZKQVQV.js.map +1 -0
- package/dist/{chunk-QYCKIV6C.js → chunk-STJEHM5F.js} +2 -2
- package/dist/{completion-gate-DLINnrkM.d.ts → completion-gate-Bv47cOnn.d.ts} +2 -2
- package/dist/{coordination-DTehA977.d.ts → coordination-CxtzMxSM.d.ts} +27 -27
- package/dist/environment-provider.d.ts +18 -7
- package/dist/environment-provider.js +3 -1
- package/dist/{improve-B40dRu0X.d.ts → improve--2A0gK1-.d.ts} +10 -4
- package/dist/index.d.ts +13 -13
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +46 -9
- package/dist/intelligence.js +117 -20
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.d.ts +5 -5
- package/dist/knowledge.js +7 -7
- package/dist/{loop-runner-bin-DhIXsLAd.d.ts → loop-runner-bin-DUOGtvOl.d.ts} +3 -3
- package/dist/loop-runner-bin.d.ts +5 -5
- package/dist/loop-runner-bin.js +6 -6
- package/dist/loops.d.ts +66 -41
- package/dist/loops.js +9 -5
- package/dist/mcp/bin.js +4 -4
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/index.js +10 -10
- package/dist/mcp/index.js.map +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/primeintellect/index.js.map +1 -1
- package/dist/profiles.d.ts +6 -6
- package/dist/profiles.js.map +1 -1
- package/dist/{structural-rollout-BFPIy3iw.d.ts → structural-rollout-C4mabf87.d.ts} +3 -3
- package/dist/{supervise-Cp8bNcJi.d.ts → supervise-7q9F5brx.d.ts} +3 -3
- package/dist/testing.js +8 -8
- package/dist/testing.js.map +1 -1
- package/dist/{types-DK11_O4L.d.ts → types-BCoemcXU.d.ts} +4 -4
- package/dist/{types-lZTE_LBd.d.ts → types-CvNwMzQt.d.ts} +4 -4
- package/dist/{worktree-fanout-DiiJWjJO.d.ts → worktree-fanout-WsOzt8qu.d.ts} +5 -5
- package/package.json +3 -3
- package/dist/chunk-3LJF5XSE.js.map +0 -1
- package/dist/chunk-6WZZXQV5.js.map +0 -1
- package/dist/chunk-AAN2MB2X.js.map +0 -1
- package/dist/chunk-AYU35OTU.js.map +0 -1
- package/dist/chunk-EAQ5YRRY.js.map +0 -1
- package/dist/chunk-LFM4JBRW.js.map +0 -1
- package/dist/chunk-M6MD6JBS.js.map +0 -1
- /package/dist/{chunk-TUSOOIDV.js.map → chunk-2QJSNOGK.js.map} +0 -0
- /package/dist/{chunk-ZOYN3JR5.js.map → chunk-2UABGGUB.js.map} +0 -0
- /package/dist/{chunk-5AITUUHO.js.map → chunk-HAO4CXHP.js.map} +0 -0
- /package/dist/{chunk-QYCKIV6C.js.map → chunk-STJEHM5F.js.map} +0 -0
package/dist/knowledge.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { PromoteKnowledgeCandidateOptions, RagKnowledgeUpdateResult, KnowledgeRe
|
|
|
2
2
|
import { b as AgentImprovementActivationResultStore, c as AgentImprovementActivationTransition, a as AgentImprovementActivationReconciliation } from './activation-Cm-9MMX1.js';
|
|
3
3
|
import { AgentCandidateKnowledge, AgentCandidateCapturedArtifact, AgentCandidateBundle } from '@tangle-network/agent-interface';
|
|
4
4
|
import { b as AgentCandidateOutputArtifactPort } from './types-Cbp72qyu.js';
|
|
5
|
-
import { E as ExecutorConfig } from './coordination-
|
|
6
|
-
import { g as SuperviseOptions, a as SupervisorProfile } from './supervise-
|
|
7
|
-
import { B as Budget, e as SupervisedResult } from './types-
|
|
8
|
-
import { D as DeliverableSpec } from './completion-gate-
|
|
5
|
+
import { E as ExecutorConfig } from './coordination-CxtzMxSM.js';
|
|
6
|
+
import { g as SuperviseOptions, a as SupervisorProfile } from './supervise-7q9F5brx.js';
|
|
7
|
+
import { B as Budget, e as SupervisedResult } from './types-CvNwMzQt.js';
|
|
8
|
+
import { D as DeliverableSpec } from './completion-gate-Bv47cOnn.js';
|
|
9
9
|
import '@tangle-network/agent-eval';
|
|
10
10
|
import './substrate-Dyiqmd3o.js';
|
|
11
|
-
import './types-
|
|
11
|
+
import './types-BCoemcXU.js';
|
|
12
12
|
import '@tangle-network/sandbox';
|
|
13
13
|
import './types-BwoZWq-i.js';
|
|
14
14
|
import './sanitize-DEbPNtyI.js';
|
package/dist/knowledge.js
CHANGED
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
knowledgeReadinessDeliverable,
|
|
9
9
|
runKnowledgeImprovementJob,
|
|
10
10
|
runSupervisedKnowledgeUpdate
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2UABGGUB.js";
|
|
12
12
|
import "./chunk-5QOB7H74.js";
|
|
13
13
|
import "./chunk-B7K7V22Y.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-HAO4CXHP.js";
|
|
15
|
+
import "./chunk-FJI3EXU3.js";
|
|
16
16
|
import "./chunk-SBTWKPVR.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-5HNDYWUT.js";
|
|
18
18
|
import "./chunk-DPEUKJRO.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-STJEHM5F.js";
|
|
20
20
|
import "./chunk-UPWGXKXB.js";
|
|
21
21
|
import "./chunk-2VZYRB55.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-2X65HYMI.js";
|
|
23
23
|
import "./chunk-ISPWRSEC.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-KRBFHMV6.js";
|
|
25
25
|
import "./chunk-3MDZX7YU.js";
|
|
26
26
|
import "./chunk-FD2MBMOH.js";
|
|
27
27
|
import "./chunk-M22PL4GH.js";
|
|
@@ -2,8 +2,8 @@ import { Scenario } from '@tangle-network/agent-eval/campaign';
|
|
|
2
2
|
import { SelfImproveOptions, SelfImproveResult } from '@tangle-network/agent-eval/contract';
|
|
3
3
|
import { R as RunAnalystLoopOpts, a as RunAnalystLoopResult } from './types-CmYCMbFT.js';
|
|
4
4
|
import { F as FactCandidate, C as CreateKbGateOptions } from './kb-gate-CwHO0vz6.js';
|
|
5
|
-
import { B as Budget } from './types-
|
|
6
|
-
import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions, b as WorktreePatchArtifact } from './worktree-fanout-
|
|
5
|
+
import { B as Budget } from './types-CvNwMzQt.js';
|
|
6
|
+
import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions, b as WorktreePatchArtifact } from './worktree-fanout-WsOzt8qu.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
@@ -98,7 +98,7 @@ interface WorktreeLoopRunnerOptions {
|
|
|
98
98
|
* `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through
|
|
99
99
|
* `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box
|
|
100
100
|
* harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no
|
|
101
|
-
* `
|
|
101
|
+
* `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is
|
|
102
102
|
* `patchDelivered`,
|
|
103
103
|
* the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback
|
|
104
104
|
* would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, k as runLoopRunnerCli } from './loop-runner-bin-
|
|
2
|
+
export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, k as runLoopRunnerCli } from './loop-runner-bin-DUOGtvOl.js';
|
|
3
3
|
import '@tangle-network/agent-eval/campaign';
|
|
4
4
|
import '@tangle-network/agent-eval/contract';
|
|
5
5
|
import './types-CmYCMbFT.js';
|
|
6
6
|
import '@tangle-network/agent-eval';
|
|
7
7
|
import './kb-gate-CwHO0vz6.js';
|
|
8
|
-
import './types-
|
|
8
|
+
import './types-CvNwMzQt.js';
|
|
9
9
|
import '@tangle-network/agent-interface';
|
|
10
10
|
import '@tangle-network/sandbox';
|
|
11
|
-
import './types-
|
|
11
|
+
import './types-BCoemcXU.js';
|
|
12
12
|
import './types-BwoZWq-i.js';
|
|
13
|
-
import './worktree-fanout-
|
|
14
|
-
import './completion-gate-
|
|
13
|
+
import './worktree-fanout-WsOzt8qu.js';
|
|
14
|
+
import './completion-gate-Bv47cOnn.js';
|
|
15
15
|
import '@tangle-network/agent-profile-materialize';
|
|
16
16
|
import './local-harness-CtK9dSny.js';
|
|
17
17
|
import 'node:child_process';
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseLoopRunnerArgv,
|
|
4
4
|
runLoopRunnerCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3PPVCS75.js";
|
|
6
6
|
import "./chunk-SGKPNBXE.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-ATDFUJYI.js";
|
|
8
8
|
import "./chunk-Q2JSAVQ3.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5HNDYWUT.js";
|
|
10
10
|
import "./chunk-DPEUKJRO.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-STJEHM5F.js";
|
|
12
12
|
import "./chunk-UPWGXKXB.js";
|
|
13
13
|
import "./chunk-2VZYRB55.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-2X65HYMI.js";
|
|
15
15
|
import "./chunk-ISPWRSEC.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-KRBFHMV6.js";
|
|
17
17
|
import "./chunk-3MDZX7YU.js";
|
|
18
18
|
import "./chunk-FD2MBMOH.js";
|
|
19
19
|
import "./chunk-M22PL4GH.js";
|
package/dist/loops.d.ts
CHANGED
|
@@ -2,27 +2,27 @@ import { ChatClient, RunRecord, HarnessType, AgentProfile, MaximumCharge, Analys
|
|
|
2
2
|
export { AnalystFinding, DefaultVerdict, computeFindingId, makeFinding } from '@tangle-network/agent-eval';
|
|
3
3
|
import { SandboxEvent, SandboxInstance, CreateSandboxOptions, PromptOptions, TaskOptions } from '@tangle-network/sandbox';
|
|
4
4
|
export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
|
|
5
|
-
import { b as ResultBlobStore, c as SpawnJournal, N as NodeId, l as SpawnEvent, m as TreeView, P as PendingWait, a as Settled, E as ExecutorFactory, A as Agent, B as Budget, S as Scope, e as SupervisedResult, g as Spend, U as UsageEvent, n as SpawnOpts, i as ExecutorRegistry, d as WaitProbeRegistry, o as Supervisor, T as TraceSource } from './types-
|
|
6
|
-
export { p as ActivityLog, q as ActivityNote, h as AgentSpec, D as DEFAULT_STALL_AFTER_MS, f as Executor, r as ExecutorContext, k as ExecutorProgress, s as ExecutorResult, t as ResumedWork, R as Runtime, u as ScopeProgressInput, v as SessionTraceBox, w as SupervisorOpts, x as WaitOutcome, y as WaitProbe, z as WaitRejection, C as WaitSpec, F as WidenGate, W as WorkerProgress, G as createActivityLog, H as createPushTraceSource, I as createWaitProbes, J as decodeToolPart, K as isWaitOutcome, L as pollFor, M as readWorkerProgress, O as sandboxSessionTraceSource, Q as timerAt, V as validateWaitSpec, X as waitUntil } from './types-
|
|
7
|
-
import { M as MakeWorkerAgent, A as AnalystRegistry, W as WorkerWatchOptions, o as CoordinationTools, n as CoordinationEvent, at as QuestionPolicy, E as ExecutorConfig } from './coordination-
|
|
8
|
-
export { bi as BusEvent, bj as BusRecord, bk as BusStats, bl as DEFAULT_SANDBOX_STEERING_MAX_TURNS, bm as EventBus, bn as Inbox, bo as InboxMessage, bp as PI_RUNTIME, bq as PiSeam, br as ProviderSeam, bs as PublishOptions, bt as SandboxSteeringOptions, bu as SteerableSandboxSession, bv as WatchTraceOptions, bw as cliWorktreeExecutor, bx as createEventBus, by as createExecutor, bz as createExecutorRegistry, bA as createInbox, bB as createSteerableSandboxSession, bC as defaultToolDetectors, bD as piExecutor, bE as piSeamKey, bF as watchTrace } from './coordination-
|
|
9
|
-
import { R as RuntimeHooks, I as Iteration,
|
|
10
|
-
export { x as LoopDecisionPayload, y as LoopEndedPayload, z as LoopIterationDispatchPayload, B as LoopIterationEndedPayload, C as LoopIterationStartedPayload, F as LoopPlanDescription, G as LoopPlanPayload, b as LoopSandboxPlacement, H as LoopStartedPayload, J as LoopTeardownFailedPayload, t as LoopTraceEmitter, c as LoopTraceEvent, K as MountManifestEntry, N as RunProvenance,
|
|
5
|
+
import { b as ResultBlobStore, c as SpawnJournal, N as NodeId, l as SpawnEvent, m as TreeView, P as PendingWait, a as Settled, E as ExecutorFactory, A as Agent, B as Budget, S as Scope, e as SupervisedResult, g as Spend, U as UsageEvent, n as SpawnOpts, i as ExecutorRegistry, d as WaitProbeRegistry, o as Supervisor, T as TraceSource } from './types-CvNwMzQt.js';
|
|
6
|
+
export { p as ActivityLog, q as ActivityNote, h as AgentSpec, D as DEFAULT_STALL_AFTER_MS, f as Executor, r as ExecutorContext, k as ExecutorProgress, s as ExecutorResult, t as ResumedWork, R as Runtime, u as ScopeProgressInput, v as SessionTraceBox, w as SupervisorOpts, x as WaitOutcome, y as WaitProbe, z as WaitRejection, C as WaitSpec, F as WidenGate, W as WorkerProgress, G as createActivityLog, H as createPushTraceSource, I as createWaitProbes, J as decodeToolPart, K as isWaitOutcome, L as pollFor, M as readWorkerProgress, O as sandboxSessionTraceSource, Q as timerAt, V as validateWaitSpec, X as waitUntil } from './types-CvNwMzQt.js';
|
|
7
|
+
import { M as MakeWorkerAgent, A as AnalystRegistry, W as WorkerWatchOptions, o as CoordinationTools, n as CoordinationEvent, at as QuestionPolicy, E as ExecutorConfig } from './coordination-CxtzMxSM.js';
|
|
8
|
+
export { bi as BusEvent, bj as BusRecord, bk as BusStats, bl as DEFAULT_SANDBOX_STEERING_MAX_TURNS, bm as EventBus, bn as Inbox, bo as InboxMessage, bp as PI_RUNTIME, bq as PiSeam, br as ProviderSeam, bs as PublishOptions, bt as SandboxSteeringOptions, bu as SteerableSandboxSession, bv as WatchTraceOptions, bw as cliWorktreeExecutor, bx as createEventBus, by as createExecutor, bz as createExecutorRegistry, bA as createInbox, bB as createSteerableSandboxSession, bC as defaultToolDetectors, bD as piExecutor, bE as piSeamKey, bF as watchTrace } from './coordination-CxtzMxSM.js';
|
|
9
|
+
import { R as RuntimeHooks, I as Iteration, a as SandboxClient, D as Driver, A as AgentRunSpec, O as OutputAdapter, V as Validator, E as ExecCtx, u as LoopWinner, v as LoopLineageOptions, w as LoopResult, L as LoopTokenUsage, M as MountRecorder } from './types-BCoemcXU.js';
|
|
10
|
+
export { x as LoopDecisionPayload, y as LoopEndedPayload, z as LoopIterationDispatchPayload, B as LoopIterationEndedPayload, C as LoopIterationStartedPayload, F as LoopPlanDescription, G as LoopPlanPayload, b as LoopSandboxPlacement, H as LoopStartedPayload, J as LoopTeardownFailedPayload, t as LoopTraceEmitter, c as LoopTraceEvent, K as MountManifestEntry, N as RunProvenance, S as SelectionReceipt, P as ValidationCtx } from './types-BCoemcXU.js';
|
|
11
11
|
import { RunProfileMatrixResult, Scenario, ProfileDispatchFn, JudgeConfig, RunProfileMatrixOptions, DispatchFn } from '@tangle-network/agent-eval/campaign';
|
|
12
|
-
export { AgentEnvironmentProviderRef, AgentEnvironmentProviderRegistry, ProviderAsSandboxClientOptions, ProviderExecutorOptions, SandboxClientProviderOptions, createAgentEnvironmentProviderRegistry, providerAsExecutor, providerAsSandboxClient, resolveAgentEnvironmentProvider, sandboxClientAsProvider } from './environment-provider.js';
|
|
13
|
-
import { c as CorpusRecord, C as Corpus, S as ScopeAnalyzeInput, d as AssertTraceDerivedFindings, O as Outcome, e as SteerContext, f as ScopeAnalyst, F as FanoutOptions, g as CombinatorShape, h as ScopeWidenGate, L as LoopUntilSpec, P as PanelSpec, i as PipelineStage, W as WinnerStrategy, j as FanoutWinnerSelector, V as VerifySpec, k as WidenSpec, l as CorpusFilter, R as RenderCorpusToInstructionsOptions, D as DefinePersonaInput, m as Persona, n as RunPersonifiedOptions, o as ShapeRegistry, p as LoopShape, E as EqualKArm, q as EqualKOnCostOptions, r as EqualKVerdict, T as TrajectoryReportOptions, s as TrajectoryReport } from './worktree-fanout-
|
|
14
|
-
export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a3 as createWorktreeCliExecutor, a4 as patchDelivered, a5 as worktreeFanout } from './worktree-fanout-
|
|
12
|
+
export { AgentEnvironmentProviderRef, AgentEnvironmentProviderRegistry, CreateTangleSandboxExactProcessProviderOptions, ProviderAsSandboxClientOptions, ProviderExecutorOptions, SandboxClientProviderOptions, createAgentEnvironmentProviderRegistry, createTangleSandboxExactProcessProvider, providerAsExecutor, providerAsSandboxClient, resolveAgentEnvironmentProvider, sandboxClientAsProvider } from './environment-provider.js';
|
|
13
|
+
import { c as CorpusRecord, C as Corpus, S as ScopeAnalyzeInput, d as AssertTraceDerivedFindings, O as Outcome, e as SteerContext, f as ScopeAnalyst, F as FanoutOptions, g as CombinatorShape, h as ScopeWidenGate, L as LoopUntilSpec, P as PanelSpec, i as PipelineStage, W as WinnerStrategy, j as FanoutWinnerSelector, V as VerifySpec, k as WidenSpec, l as CorpusFilter, R as RenderCorpusToInstructionsOptions, D as DefinePersonaInput, m as Persona, n as RunPersonifiedOptions, o as ShapeRegistry, p as LoopShape, E as EqualKArm, q as EqualKOnCostOptions, r as EqualKVerdict, T as TrajectoryReportOptions, s as TrajectoryReport } from './worktree-fanout-WsOzt8qu.js';
|
|
14
|
+
export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a3 as createWorktreeCliExecutor, a4 as patchDelivered, a5 as worktreeFanout } from './worktree-fanout-WsOzt8qu.js';
|
|
15
15
|
import { AgentProfileMcpServer, AgentProfile as AgentProfile$1, AgentProfileSecurityPolicy } from '@tangle-network/agent-interface';
|
|
16
|
-
import { A as AgenticSurface, a as AgenticTask, b as AgenticOptions, c as Strategy, d as ArtifactHandle, e as SurfaceScore, f as AgenticTool } from './structural-rollout-
|
|
17
|
-
export { g as AgenticRunResult, C as CheckExecChannel, h as CheckOutcome, i as CheckRunContext, j as CheckRunner, k as CheckSource, l as CheckSourceCtx, m as CorpusReadbackOptions, R as RepairStop, n as RunAgenticOptions, o as ShotPersona, p as ShotSpec, q as StrategyCtx, r as StrategyResult, s as StructuralRolloutConfig, S as StructuralRolloutPolicy, t as StructuralRolloutResult, V as VisibleCheck, u as adaptiveRefine, v as breadthStrategy, w as canDisplace, x as compareCheckOutcomes, y as composeCheckSources, z as defaultExtractCandidate, B as defaultStructuralRolloutPolicy, D as defineStrategy, E as depthStrategy, F as filterAuthoredAsserts, G as modelAuthoredChecks, H as officialChecksFromMeta, I as refine, J as resolveEntrySymbol, K as runAgentic, L as sample, M as sampleThenRefine, N as sandboxCheckRunner, O as selectBestIndex, P as structuralRollout, Q as visibleCheckScore } from './structural-rollout-
|
|
16
|
+
import { A as AgenticSurface, a as AgenticTask, b as AgenticOptions, c as Strategy, d as ArtifactHandle, e as SurfaceScore, f as AgenticTool } from './structural-rollout-C4mabf87.js';
|
|
17
|
+
export { g as AgenticRunResult, C as CheckExecChannel, h as CheckOutcome, i as CheckRunContext, j as CheckRunner, k as CheckSource, l as CheckSourceCtx, m as CorpusReadbackOptions, R as RepairStop, n as RunAgenticOptions, o as ShotPersona, p as ShotSpec, q as StrategyCtx, r as StrategyResult, s as StructuralRolloutConfig, S as StructuralRolloutPolicy, t as StructuralRolloutResult, V as VisibleCheck, u as adaptiveRefine, v as breadthStrategy, w as canDisplace, x as compareCheckOutcomes, y as composeCheckSources, z as defaultExtractCandidate, B as defaultStructuralRolloutPolicy, D as defineStrategy, E as depthStrategy, F as filterAuthoredAsserts, G as modelAuthoredChecks, H as officialChecksFromMeta, I as refine, J as resolveEntrySymbol, K as runAgentic, L as sample, M as sampleThenRefine, N as sandboxCheckRunner, O as selectBestIndex, P as structuralRollout, Q as visibleCheckScore } from './structural-rollout-C4mabf87.js';
|
|
18
18
|
import { b as AnalystRegistryLike } from './types-CmYCMbFT.js';
|
|
19
19
|
import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-DEbPNtyI.js';
|
|
20
20
|
export { j as RouterChatResult, k as RouterChatToolsResult, l as RouterToolCall, m as RouterToolLoopResult, n as ToolLoopCompaction, b as ToolSpec, r as routerBrain, o as routerChatWithTools, p as routerChatWithUsage, q as routerToolLoop } from './sanitize-DEbPNtyI.js';
|
|
21
21
|
import { R as RuntimeStreamEvent, c as AgentExecutionBackend, f as AgentTaskStatus, B as BackendErrorDetail } from './types-BwoZWq-i.js';
|
|
22
|
-
import { D as DeliverableSpec } from './completion-gate-
|
|
23
|
-
export { g as WorktreeCommandResult, h as WorktreeProfileMaterializationReceipt, i as gateOnDeliverable } from './completion-gate-
|
|
24
|
-
import { S as StopRule, a as SupervisorProfile } from './supervise-
|
|
25
|
-
export { A as AllWorkersStalledOptions, D as DriveHarness, N as NoProgressForOptions, P as PlateauOptions, b as ProgressSample, c as ProgressTracker, d as ProgressTrackerOptions, e as ProgressView, f as StopDecision, g as SuperviseOptions, h as SupervisorAgentDeps, i as allOf, j as allWorkersStalled, k as anyOf, l as createProgressTracker, n as noProgressFor, p as plateau, s as sampleFromSettled, m as supervise, o as supervisorAgent, w as workerFromBackend } from './supervise-
|
|
22
|
+
import { D as DeliverableSpec } from './completion-gate-Bv47cOnn.js';
|
|
23
|
+
export { g as WorktreeCommandResult, h as WorktreeProfileMaterializationReceipt, i as gateOnDeliverable } from './completion-gate-Bv47cOnn.js';
|
|
24
|
+
import { S as StopRule, a as SupervisorProfile } from './supervise-7q9F5brx.js';
|
|
25
|
+
export { A as AllWorkersStalledOptions, D as DriveHarness, N as NoProgressForOptions, P as PlateauOptions, b as ProgressSample, c as ProgressTracker, d as ProgressTrackerOptions, e as ProgressView, f as StopDecision, g as SuperviseOptions, h as SupervisorAgentDeps, i as allOf, j as allWorkersStalled, k as anyOf, l as createProgressTracker, n as noProgressFor, p as plateau, s as sampleFromSettled, m as supervise, o as supervisorAgent, w as workerFromBackend } from './supervise-7q9F5brx.js';
|
|
26
26
|
import { stuckLoopView, toolWasteView } from '@tangle-network/agent-eval/pipelines';
|
|
27
27
|
export { AgentEnvironment, AgentEnvironmentCapabilities, AgentEnvironmentEvent, AgentEnvironmentProvider, AgentEnvironmentQuery, AgentEnvironmentStatus, AgentEnvironmentSummary, AgentProfileRef, AgentSession, AgentSessionRef, AgentSessionStatus, AgentTurnInput, AgentTurnResult, CheckpointRef, CheckpointRequest, CreateAgentEnvironmentInput, ExecRequest, ExecResult, ForkRequest, PlacementInfo, ResourceRequest, WorkspaceRequest } from '@tangle-network/agent-interface/environment-provider';
|
|
28
28
|
import './substrate-Dyiqmd3o.js';
|
|
@@ -948,7 +948,7 @@ interface InProcessSandboxClientOptions {
|
|
|
948
948
|
}
|
|
949
949
|
/**
|
|
950
950
|
* Adapt a single `onPrompt(prompt, ctx)` callback into a `SandboxClient` for
|
|
951
|
-
* `
|
|
951
|
+
* `runAgentRounds` / `openSandboxRun`. Returns a PROPERLY-TYPED `SandboxClient`: the
|
|
952
952
|
* lone `SandboxInstance` cast (object literal → `declare class`) lives inside
|
|
953
953
|
* this function, so call sites stay cast-free.
|
|
954
954
|
*
|
|
@@ -957,7 +957,7 @@ interface InProcessSandboxClientOptions {
|
|
|
957
957
|
declare function inProcessSandboxClient(options: InProcessSandboxClientOptions): SandboxClient;
|
|
958
958
|
|
|
959
959
|
/**
|
|
960
|
-
* Adapt an `ExecutorFactory` into a `SandboxClient` for `
|
|
960
|
+
* Adapt an `ExecutorFactory` into a `SandboxClient` for `runAgentRounds`. The factory is
|
|
961
961
|
* instantiated fresh per `streamPrompt` (mirrors the per-spawn executor lifecycle):
|
|
962
962
|
* run once on the prompt, emit the terminal result event, tear down.
|
|
963
963
|
*/
|
|
@@ -1062,7 +1062,7 @@ declare function localSandboxClient(opts: LocalSandboxClientOptions): SandboxCli
|
|
|
1062
1062
|
|
|
1063
1063
|
/**
|
|
1064
1064
|
*
|
|
1065
|
-
* `
|
|
1065
|
+
* `runAgentRounds` — the topology-agnostic kernel built atop the sandbox SDK.
|
|
1066
1066
|
*
|
|
1067
1067
|
* Each iteration:
|
|
1068
1068
|
* 1. `driver.plan(task, history)` → N tasks (1 = refine, N = fanout, 0 = stop)
|
|
@@ -1087,7 +1087,7 @@ declare function localSandboxClient(opts: LocalSandboxClientOptions): SandboxCli
|
|
|
1087
1087
|
*/
|
|
1088
1088
|
|
|
1089
1089
|
/** @experimental */
|
|
1090
|
-
interface
|
|
1090
|
+
interface RunAgentRoundsOptions<Task, Output, Decision> {
|
|
1091
1091
|
driver: Driver<Task, Output, Decision>;
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Single agent spec — every iteration uses this profile. Mutually
|
|
@@ -1152,11 +1152,36 @@ interface RunLoopOptions<Task, Output, Decision> {
|
|
|
1152
1152
|
lineage?: LoopLineageOptions;
|
|
1153
1153
|
}
|
|
1154
1154
|
/**
|
|
1155
|
-
* The round-synchronous
|
|
1155
|
+
* The round-synchronous MULTI-AGENT kernel: each round `driver.plan()` fans N tasks
|
|
1156
|
+
* out to N sandboxes (bounded concurrency), parses + validates each output, and folds
|
|
1157
|
+
* the round's results through `driver.decide` — fanout → validate → vote/select →
|
|
1158
|
+
* refine, repeated until the driver says stop. One call spans many agent sessions.
|
|
1159
|
+
*
|
|
1160
|
+
* Not to be confused with `runToolLoop` / `streamToolLoop` (package root entry): those
|
|
1161
|
+
* run ONE chat turn against ONE model, dispatching the tool calls that turn emits and
|
|
1162
|
+
* folding the results back in until the model stops calling tools. No sandboxes, no
|
|
1163
|
+
* rounds, no winner selection.
|
|
1156
1164
|
*
|
|
1157
1165
|
* @experimental
|
|
1158
1166
|
*/
|
|
1159
|
-
declare function
|
|
1167
|
+
declare function runAgentRounds<Task, Output, Decision>(options: RunAgentRoundsOptions<Task, Output, Decision>): Promise<LoopResult<Task, Output, Decision>>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Pre-rename name for {@link runAgentRounds}; identical function, kept so existing
|
|
1170
|
+
* call sites keep working.
|
|
1171
|
+
*
|
|
1172
|
+
* @deprecated Use {@link runAgentRounds}. The clearer name says what it is: the
|
|
1173
|
+
* multi-agent fanout/vote/refine kernel over sandboxes, NOT the one-turn tool loop
|
|
1174
|
+
* (`runToolLoop` / `streamToolLoop`, package root entry). `runLoop` shipped on `/loops`
|
|
1175
|
+
* next to `routerToolLoop`, which made the two read as variants of one thing. The alias
|
|
1176
|
+
* is removed in the next major.
|
|
1177
|
+
*/
|
|
1178
|
+
declare const runLoop: typeof runAgentRounds;
|
|
1179
|
+
/**
|
|
1180
|
+
* Pre-rename name for {@link RunAgentRoundsOptions}.
|
|
1181
|
+
*
|
|
1182
|
+
* @deprecated Use {@link RunAgentRoundsOptions}. Removed in the next major.
|
|
1183
|
+
*/
|
|
1184
|
+
type RunLoopOptions<Task, Output, Decision> = RunAgentRoundsOptions<Task, Output, Decision>;
|
|
1160
1185
|
/**
|
|
1161
1186
|
* The kernel's winner argmax — best-valid-score, ties broken by earliest index,
|
|
1162
1187
|
* falling back to the best-scoring non-errored output when none is valid. Exported
|
|
@@ -1167,9 +1192,9 @@ declare function runLoop<Task, Output, Decision>(options: RunLoopOptions<Task, O
|
|
|
1167
1192
|
declare function defaultSelectWinner<Task, Output>(iterations: Iteration<Task, Output>[]): LoopWinner<Task, Output> | undefined;
|
|
1168
1193
|
|
|
1169
1194
|
/**
|
|
1170
|
-
* `loopDispatch` — turn `
|
|
1195
|
+
* `loopDispatch` — turn `runAgentRounds` into an agent-eval campaign dispatch.
|
|
1171
1196
|
*
|
|
1172
|
-
* Without this adapter a consumer wiring `
|
|
1197
|
+
* Without this adapter a consumer wiring `runAgentRounds` into `runProfileMatrix` /
|
|
1173
1198
|
* `runCampaign` has to, by hand, every time: (a) build an `ExecCtx` with a
|
|
1174
1199
|
* sandbox client, (b) adapt the campaign `DispatchContext.trace` into a
|
|
1175
1200
|
* `LoopTraceEmitter` (or lose all loop trace correlation), and (c) remember to
|
|
@@ -1195,12 +1220,12 @@ declare function defaultSelectWinner<Task, Output>(iterations: Iteration<Task, O
|
|
|
1195
1220
|
* inversion.
|
|
1196
1221
|
*/
|
|
1197
1222
|
|
|
1198
|
-
/**
|
|
1199
|
-
type LoopOptionsForDispatch<Task, Output, Decision> = Omit<
|
|
1223
|
+
/** runAgentRounds options minus the `ctx` (loopDispatch builds the ctx). */
|
|
1224
|
+
type LoopOptionsForDispatch<Task, Output, Decision> = Omit<RunAgentRoundsOptions<Task, Output, Decision>, 'ctx'>;
|
|
1200
1225
|
interface LoopDispatchOptions<Task, Output, Decision, TScenario extends Scenario, TArtifact> {
|
|
1201
|
-
/** Sandbox client used for every cell's `
|
|
1226
|
+
/** Sandbox client used for every cell's `runAgentRounds`. Supplied once. */
|
|
1202
1227
|
sandboxClient: SandboxClient;
|
|
1203
|
-
/** Build the per-cell
|
|
1228
|
+
/** Build the per-cell runAgentRounds options from the scenario (+ profile, when
|
|
1204
1229
|
* used with `runProfileMatrix`). */
|
|
1205
1230
|
toLoopOptions: (scenario: TScenario, profile: AgentProfile) => LoopOptionsForDispatch<Task, Output, Decision>;
|
|
1206
1231
|
/** Map the finished loop to the artifact the judges score. Default:
|
|
@@ -1219,11 +1244,11 @@ interface LoopDispatchOptions<Task, Output, Decision, TScenario extends Scenario
|
|
|
1219
1244
|
/** Resolve the model actually served from the completed loop. */
|
|
1220
1245
|
resolveCostModel?: (result: LoopResult<Task, Output, Decision>, scenario: TScenario, profile: AgentProfile) => string | undefined;
|
|
1221
1246
|
}
|
|
1222
|
-
/** Options for adapting plain agent-eval campaign scenarios into runtime `
|
|
1247
|
+
/** Options for adapting plain agent-eval campaign scenarios into runtime `runAgentRounds` cells. */
|
|
1223
1248
|
interface LoopCampaignDispatchOptions<Task, Output, Decision, TScenario extends Scenario, TArtifact> {
|
|
1224
|
-
/** Sandbox client used for every campaign cell's `
|
|
1249
|
+
/** Sandbox client used for every campaign cell's `runAgentRounds`. */
|
|
1225
1250
|
sandboxClient: SandboxClient;
|
|
1226
|
-
/** Build the per-cell
|
|
1251
|
+
/** Build the per-cell runAgentRounds options from the campaign scenario. */
|
|
1227
1252
|
toLoopOptions: (scenario: TScenario) => LoopOptionsForDispatch<Task, Output, Decision>;
|
|
1228
1253
|
/** Map the finished loop to the artifact the campaign judges score. */
|
|
1229
1254
|
toArtifact?: (result: LoopResult<Task, Output, Decision>) => TArtifact;
|
|
@@ -1244,7 +1269,7 @@ interface LoopCampaignDispatchOptions<Task, Output, Decision, TScenario extends
|
|
|
1244
1269
|
declare function loopCampaignDispatch<Task, Output, Decision, TScenario extends Scenario, TArtifact>(opts: LoopCampaignDispatchOptions<Task, Output, Decision, TScenario, TArtifact>): DispatchFn<TScenario, TArtifact>;
|
|
1245
1270
|
/**
|
|
1246
1271
|
* Adapter for `runProfileMatrix` (profile is an axis). Returns a
|
|
1247
|
-
* `ProfileDispatchFn` that runs `
|
|
1272
|
+
* `ProfileDispatchFn` that runs `runAgentRounds` per (profile, scenario) cell and
|
|
1248
1273
|
* reports usage automatically.
|
|
1249
1274
|
*/
|
|
1250
1275
|
declare function loopDispatch<Task, Output, Decision, TScenario extends Scenario, TArtifact>(opts: LoopDispatchOptions<Task, Output, Decision, TScenario, TArtifact>): ProfileDispatchFn<TScenario, TArtifact>;
|
|
@@ -1839,16 +1864,16 @@ interface PromotionVerdict {
|
|
|
1839
1864
|
declare function promotionGate(opts: PromotionGateOptions): PromotionVerdict;
|
|
1840
1865
|
|
|
1841
1866
|
/**
|
|
1842
|
-
* Bridge a finished `
|
|
1867
|
+
* Bridge a finished `runAgentRounds` into an agent-eval campaign / profile-matrix
|
|
1843
1868
|
* dispatch.
|
|
1844
1869
|
*
|
|
1845
1870
|
* `runProfileMatrix` (and `runCampaign`) run the backend-integrity guard over
|
|
1846
1871
|
* the token usage a dispatch reports through `ctx.cost`. A dispatch that wraps
|
|
1847
|
-
* `
|
|
1872
|
+
* `runAgentRounds` must forward the loop's cost AND token usage, or the guard reads
|
|
1848
1873
|
* the run as a stub and throws. `reportLoopUsage` is that one line:
|
|
1849
1874
|
*
|
|
1850
1875
|
* const dispatch: ProfileDispatchFn<S, A> = async (profile, scenario, ctx) => {
|
|
1851
|
-
* const result = await
|
|
1876
|
+
* const result = await runAgentRounds({ ...optsFor(profile, scenario), ctx: loopCtx })
|
|
1852
1877
|
* reportLoopUsage(ctx, result)
|
|
1853
1878
|
* return result.winner?.output as A
|
|
1854
1879
|
* }
|
|
@@ -1872,7 +1897,7 @@ declare function reportLoopUsage<Task, Output, Decision>(cost: UsageSink, result
|
|
|
1872
1897
|
|
|
1873
1898
|
/**
|
|
1874
1899
|
* The product-facing backend selector: one call picks the execution transport a
|
|
1875
|
-
* `
|
|
1900
|
+
* `runAgentRounds` (or any consumer that drives a `SandboxClient`) runs on, from the
|
|
1876
1901
|
* package a product already depends on. It is pure sugar over the existing
|
|
1877
1902
|
* primitives — `createExecutor({ backend })` + `inlineSandboxClient` — and adds
|
|
1878
1903
|
* ZERO transport code (the node:http cli-bridge transport lives in `bridgeExecutor`).
|
|
@@ -2162,7 +2187,7 @@ declare function mapSandboxEvent(event: SandboxEvent, opts?: {
|
|
|
2162
2187
|
/**
|
|
2163
2188
|
*
|
|
2164
2189
|
* `SandboxLineage` — the backend-blind owner of box + session handles for a
|
|
2165
|
-
* single `
|
|
2190
|
+
* single `runAgentRounds` invocation. It exists so `run-loop.ts` never references a
|
|
2166
2191
|
* backend (Docker / Firecracker): the lineage turns "continue this session" and
|
|
2167
2192
|
* "fork this branch" into capability-gated sandbox-SDK calls and degrades to
|
|
2168
2193
|
* fresh boxes when a capability is absent.
|
|
@@ -2337,7 +2362,7 @@ interface SessionCapableBox {
|
|
|
2337
2362
|
* reconnect/replay (the SDK + platform own per-session buffering + `Last-Event-ID`);
|
|
2338
2363
|
* no fork verb (platform CRIU is probe-gated and currently absent — fork lives in
|
|
2339
2364
|
* `SandboxLineage.fork` behind the capability probe, surfaced only if it returns).
|
|
2340
|
-
* It is also distinct from `
|
|
2365
|
+
* It is also distinct from `runAgentRounds`: `runAgentRounds` is the multi-round, driver-driven
|
|
2341
2366
|
* kernel (fresh box per round, events deliverable); this is a SINGLE rollout +
|
|
2342
2367
|
* artifact-or-events deliverable + resume over ONE persistent box.
|
|
2343
2368
|
*/
|
|
@@ -2593,7 +2618,7 @@ declare function materializeLocalMcp(profile: AgentProfile$1, opts?: Materialize
|
|
|
2593
2618
|
* `(task, text) => ({ ...task, prompt: text })`.
|
|
2594
2619
|
*
|
|
2595
2620
|
* They consume nothing the loop kernel does not already give `plan()`/`decide()`
|
|
2596
|
-
* — `
|
|
2621
|
+
* — `runAgentRounds` requires no change. A benchmark picks a driver by name and the
|
|
2597
2622
|
* kernel does the rest.
|
|
2598
2623
|
*
|
|
2599
2624
|
* @experimental
|
|
@@ -3616,7 +3641,7 @@ declare function delegate<Out = unknown>(intent: string, opts?: DelegateOptions<
|
|
|
3616
3641
|
* level. How many workers may be spawned-but-not-settled at once; `spawn_agent` fails closed
|
|
3617
3642
|
* with `error: 'max-live-workers'` past it. Unset by default ⇒ NO cap at this layer.
|
|
3618
3643
|
* 2. `SandboxLineage`'s `maxConcurrency` / `DEFAULT_FORK_CONCURRENCY = 4`
|
|
3619
|
-
* (`src/runtime/sandbox-lineage.ts`) — kernel level. How many BOXES one `
|
|
3644
|
+
* (`src/runtime/sandbox-lineage.ts`) — kernel level. How many BOXES one `runAgentRounds` fork wave
|
|
3620
3645
|
* provisions at once. It bounds a single leaf's fanout, not the supervisor's worker count.
|
|
3621
3646
|
* 3. A host's own live-box governor (e.g. loops' `ComputeGovernor`, `maxSandboxes = 4`) — fleet
|
|
3622
3647
|
* level. How many sandboxes may exist across the whole host process.
|
|
@@ -3877,7 +3902,7 @@ interface ScopeArgs {
|
|
|
3877
3902
|
/** Injected clock — keeps the journal `at` timestamp deterministic in tests. */
|
|
3878
3903
|
readonly now?: () => number;
|
|
3879
3904
|
/** Lifecycle stream sink. `spawn` emits `agent.spawn`, `next` emits `agent.child` — the
|
|
3880
|
-
* SAME stream `
|
|
3905
|
+
* SAME stream `runAgentRounds`/`tool-loop` feed, so the recursive tree is ONE observable stream
|
|
3881
3906
|
* (the topology viewer reads it). Undefined ⇒ the journal stays the only record. */
|
|
3882
3907
|
readonly hooks?: RuntimeHooks;
|
|
3883
3908
|
/**
|
|
@@ -4136,4 +4161,4 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
|
|
|
4136
4161
|
commitOnInvalid?: boolean;
|
|
4137
4162
|
}): Promise<WorkspaceRun<T>>;
|
|
4138
4163
|
|
|
4139
|
-
export { Agent, AgentRunSpec, type AgentTurnBackend, type AgentTurnUsage, AgenticOptions, AgenticSurface, AgenticTask, AgenticTool, AnalystRegistry, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ApplyContinuation, ArtifactHandle, AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredProfile, type AuthoredStrategy, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, Budget, type BudgetPool, type BudgetReadout, type ChampionPick, type ChampionPolicy, type CheckpointCapableBox, type CollectedAgentTurn, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, type ConcurrencyCaps, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DefinedLeaderboard, type DelegateOptions, type Deliverable, DeliverableSpec, type DispatchReport, type DispatchStopReason, type DispatchUnit, Driver, type DriverAgentOptions, type DumbDriverOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, ExecutorFactory, ExecutorRegistry, FanoutOptions, FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type IntentAudit, type Interval, Iteration, type KeyProvider, type Leaderboard, type LeaderboardBenchScore, type LeaderboardBenchTask, type LeaderboardBenchmarkAdapter, type LeaderboardFlagSpec, type LeaderboardIterationInfo, type LeaderboardOptions, type LeaderboardRow, type LeaderboardRunContext, type LeaderboardScenario, type LeaderboardScore, type LeaderboardSpec, type LocalMcpMaterialization, type LocalSandboxClientOptions, type LoopCampaignDispatchOptions, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, MakeWorkerAgent, type MaterializeLocalMcpOptions, type McpEndpoint, type McpEnvironmentOptions, McpSpawnFault, type McpToolDescriptor, MountRecorder, type NaiveDriverOptions, NodeId, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, Outcome, OutputAdapter, type PairwiseOptions, type PairwiseVerdict, PanelSpec, PendingWait, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, type ResolveSandboxClientOptions, ResultBlobStore, type RollingDispatchOptions, RouterConfig, type RunContext, RunPersonifiedOptions, type SandboxCapabilities, SandboxClient, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, type SandboxToolPartState, Scope, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, type SessionCapableBox, Settled, ShapeRegistry, type Shell, SpawnEvent, SpawnJournal, SpawnOpts, Spend, type StdioMcpConnection, type StdioMcpServerSpec, SteerContext, type SteeringDecision, StopRule, Strategy, type StrategyEvolutionConfig, type StreamAgentTurnOptions, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, SupervisedResult, Supervisor, SupervisorProfile, SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, ToolLoopChat, ToolLoopCompactionOptions, TraceSource, type TrajectoryAnalysis, TrajectoryReport, TrajectoryReportOptions, TreeView, type TurnResult, UsageEvent, type UsageSink, Validator, type VerifierEnvironmentOptions, VerifySpec, WaitProbeRegistry, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, WidenSpec, WinnerStrategy, type Workspace, type WorkspaceCommit, type WorkspaceRun, acquireSandbox, analyzeTrace, anytimeReport, areaUnderCurve, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, bestSoFar, buildSteerContext, builtinShapes, collectAgentTurn, completionAuthorizes, connectStdioMcp, contentAddress, createBudgetPool, createFileRunContext, createInMemoryRunContext, createMcpEnvironment, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defineLeaderboard, definePersona, delegate, deterministicCompletion, discriminatingMeans, driverAgent, dumbDriver, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, finalizeBestDelivered, flatWidenGate, freeSlots, gitWorkspace, harvestCorpus, inProcessSandboxClient, inlineSandboxClient, jjWorkspace, leaderboard, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, naiveDriver, observe, openSandboxRun, pairwiseSignificance, panel, pendingWaits, pickChampion, pipeline, plateauLength, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, queueOf, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, reportLoopUsage, resolveSandboxClient, resolveSecretEnv, rollingDispatch, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, streamAgentTurn, sumSandboxUsage, superviseSurface, supervisorInstructions, trajectoryReport, verify, widen };
|
|
4164
|
+
export { Agent, AgentRunSpec, type AgentTurnBackend, type AgentTurnUsage, AgenticOptions, AgenticSurface, AgenticTask, AgenticTool, AnalystRegistry, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ApplyContinuation, ArtifactHandle, AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredProfile, type AuthoredStrategy, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, Budget, type BudgetPool, type BudgetReadout, type ChampionPick, type ChampionPolicy, type CheckpointCapableBox, type CollectedAgentTurn, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, type ConcurrencyCaps, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DefinedLeaderboard, type DelegateOptions, type Deliverable, DeliverableSpec, type DispatchReport, type DispatchStopReason, type DispatchUnit, Driver, type DriverAgentOptions, type DumbDriverOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, ExecutorFactory, ExecutorRegistry, FanoutOptions, FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type IntentAudit, type Interval, Iteration, type KeyProvider, type Leaderboard, type LeaderboardBenchScore, type LeaderboardBenchTask, type LeaderboardBenchmarkAdapter, type LeaderboardFlagSpec, type LeaderboardIterationInfo, type LeaderboardOptions, type LeaderboardRow, type LeaderboardRunContext, type LeaderboardScenario, type LeaderboardScore, type LeaderboardSpec, type LocalMcpMaterialization, type LocalSandboxClientOptions, type LoopCampaignDispatchOptions, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, MakeWorkerAgent, type MaterializeLocalMcpOptions, type McpEndpoint, type McpEnvironmentOptions, McpSpawnFault, type McpToolDescriptor, MountRecorder, type NaiveDriverOptions, NodeId, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, Outcome, OutputAdapter, type PairwiseOptions, type PairwiseVerdict, PanelSpec, PendingWait, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, type ResolveSandboxClientOptions, ResultBlobStore, type RollingDispatchOptions, RouterConfig, type RunAgentRoundsOptions, type RunContext, type RunLoopOptions, RunPersonifiedOptions, type SandboxCapabilities, SandboxClient, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, type SandboxToolPartState, Scope, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, type SessionCapableBox, Settled, ShapeRegistry, type Shell, SpawnEvent, SpawnJournal, SpawnOpts, Spend, type StdioMcpConnection, type StdioMcpServerSpec, SteerContext, type SteeringDecision, StopRule, Strategy, type StrategyEvolutionConfig, type StreamAgentTurnOptions, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, SupervisedResult, Supervisor, SupervisorProfile, SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, ToolLoopChat, ToolLoopCompactionOptions, TraceSource, type TrajectoryAnalysis, TrajectoryReport, TrajectoryReportOptions, TreeView, type TurnResult, UsageEvent, type UsageSink, Validator, type VerifierEnvironmentOptions, VerifySpec, WaitProbeRegistry, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, WidenSpec, WinnerStrategy, type Workspace, type WorkspaceCommit, type WorkspaceRun, acquireSandbox, analyzeTrace, anytimeReport, areaUnderCurve, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, bestSoFar, buildSteerContext, builtinShapes, collectAgentTurn, completionAuthorizes, connectStdioMcp, contentAddress, createBudgetPool, createFileRunContext, createInMemoryRunContext, createMcpEnvironment, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defineLeaderboard, definePersona, delegate, deterministicCompletion, discriminatingMeans, driverAgent, dumbDriver, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, finalizeBestDelivered, flatWidenGate, freeSlots, gitWorkspace, harvestCorpus, inProcessSandboxClient, inlineSandboxClient, jjWorkspace, leaderboard, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, naiveDriver, observe, openSandboxRun, pairwiseSignificance, panel, pendingWaits, pickChampion, pipeline, plateauLength, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, queueOf, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, reportLoopUsage, resolveSandboxClient, resolveSecretEnv, rollingDispatch, runAgentRounds, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, streamAgentTurn, sumSandboxUsage, superviseSurface, supervisorInstructions, trajectoryReport, verify, widen };
|
package/dist/loops.js
CHANGED
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
verify,
|
|
81
81
|
widen,
|
|
82
82
|
worktreeFanout
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-ATDFUJYI.js";
|
|
84
84
|
import "./chunk-Q2JSAVQ3.js";
|
|
85
85
|
import {
|
|
86
86
|
DEFAULT_SANDBOX_STEERING_MAX_TURNS,
|
|
@@ -128,6 +128,7 @@ import {
|
|
|
128
128
|
queueOf,
|
|
129
129
|
renderAnytimeTable,
|
|
130
130
|
rollingDispatch,
|
|
131
|
+
runAgentRounds,
|
|
131
132
|
runLoop,
|
|
132
133
|
sampleFromSettled,
|
|
133
134
|
sandboxSessionTraceSource,
|
|
@@ -137,7 +138,7 @@ import {
|
|
|
137
138
|
supervisorInstructions,
|
|
138
139
|
watchTrace,
|
|
139
140
|
workerFromBackend
|
|
140
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-5HNDYWUT.js";
|
|
141
142
|
import "./chunk-DPEUKJRO.js";
|
|
142
143
|
import {
|
|
143
144
|
adaptiveRefine,
|
|
@@ -164,7 +165,7 @@ import {
|
|
|
164
165
|
selectBestIndex,
|
|
165
166
|
structuralRollout,
|
|
166
167
|
visibleCheckScore
|
|
167
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-STJEHM5F.js";
|
|
168
169
|
import "./chunk-UPWGXKXB.js";
|
|
169
170
|
import "./chunk-2VZYRB55.js";
|
|
170
171
|
import {
|
|
@@ -187,7 +188,7 @@ import {
|
|
|
187
188
|
timerAt,
|
|
188
189
|
validateWaitSpec,
|
|
189
190
|
waitUntil
|
|
190
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-2X65HYMI.js";
|
|
191
192
|
import {
|
|
192
193
|
FileResultBlobStore,
|
|
193
194
|
FileSpawnJournal,
|
|
@@ -200,11 +201,12 @@ import {
|
|
|
200
201
|
} from "./chunk-ISPWRSEC.js";
|
|
201
202
|
import {
|
|
202
203
|
createAgentEnvironmentProviderRegistry,
|
|
204
|
+
createTangleSandboxExactProcessProvider,
|
|
203
205
|
providerAsExecutor,
|
|
204
206
|
providerAsSandboxClient,
|
|
205
207
|
resolveAgentEnvironmentProvider,
|
|
206
208
|
sandboxClientAsProvider
|
|
207
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-KRBFHMV6.js";
|
|
208
210
|
import "./chunk-3MDZX7YU.js";
|
|
209
211
|
import {
|
|
210
212
|
createSandboxToolPartState,
|
|
@@ -274,6 +276,7 @@ export {
|
|
|
274
276
|
createShapeRegistry,
|
|
275
277
|
createSteerableSandboxSession,
|
|
276
278
|
createSupervisor,
|
|
279
|
+
createTangleSandboxExactProcessProvider,
|
|
277
280
|
createVerifierEnvironment,
|
|
278
281
|
createWaitProbes,
|
|
279
282
|
createWaterfallCollector,
|
|
@@ -371,6 +374,7 @@ export {
|
|
|
371
374
|
routerChatWithTools,
|
|
372
375
|
routerChatWithUsage,
|
|
373
376
|
routerToolLoop,
|
|
377
|
+
runAgentRounds,
|
|
374
378
|
runAgentic,
|
|
375
379
|
runBenchmark,
|
|
376
380
|
runInWorkspace,
|
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-PZZKQVQV.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveRouterBaseUrl
|
|
7
7
|
} from "../chunk-NURIQBJQ.js";
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
DelegationTaskQueue,
|
|
10
10
|
FileDelegationStore,
|
|
11
11
|
createMcpServer
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-5HNDYWUT.js";
|
|
13
13
|
import "../chunk-DPEUKJRO.js";
|
|
14
14
|
import "../chunk-2VZYRB55.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-2X65HYMI.js";
|
|
16
16
|
import "../chunk-ISPWRSEC.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-KRBFHMV6.js";
|
|
18
18
|
import "../chunk-3MDZX7YU.js";
|
|
19
19
|
import "../chunk-M22PL4GH.js";
|
|
20
20
|
import "../chunk-YEJR7IXO.js";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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, 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-
|
|
1
|
+
import { a as SandboxClient, b as LoopSandboxPlacement } from '../types-BCoemcXU.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-CxtzMxSM.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-CxtzMxSM.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-Bv47cOnn.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-Bv47cOnn.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-CvNwMzQt.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
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createPropagatingTraceEmitter,
|
|
6
6
|
readTraceContextFromEnv,
|
|
7
7
|
traceContextToEnv
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-PZZKQVQV.js";
|
|
9
9
|
import {
|
|
10
10
|
MEMORY_FILE_ENV,
|
|
11
11
|
MEMORY_ITEMS_ENV,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
mcpToolsForRuntimeMcp,
|
|
22
22
|
mcpToolsForRuntimeMcpSubset
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-2QJSNOGK.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-ATDFUJYI.js";
|
|
32
32
|
import "../chunk-Q2JSAVQ3.js";
|
|
33
33
|
import {
|
|
34
34
|
DELEGATE_DESCRIPTION,
|
|
@@ -69,15 +69,15 @@ import {
|
|
|
69
69
|
createSandboxForSpec,
|
|
70
70
|
eventToSnapshot,
|
|
71
71
|
hashIdempotencyInput,
|
|
72
|
-
|
|
72
|
+
runAgentRounds,
|
|
73
73
|
validateDelegateArgs,
|
|
74
74
|
validateDelegateFeedbackArgs,
|
|
75
75
|
validateDelegateUiAuditArgs,
|
|
76
76
|
validateDelegationHistoryArgs,
|
|
77
77
|
validateDelegationStatusArgs
|
|
78
|
-
} from "../chunk-
|
|
78
|
+
} from "../chunk-5HNDYWUT.js";
|
|
79
79
|
import "../chunk-DPEUKJRO.js";
|
|
80
|
-
import "../chunk-
|
|
80
|
+
import "../chunk-STJEHM5F.js";
|
|
81
81
|
import "../chunk-UPWGXKXB.js";
|
|
82
82
|
import "../chunk-2VZYRB55.js";
|
|
83
83
|
import {
|
|
@@ -88,9 +88,9 @@ import {
|
|
|
88
88
|
removeWorktree,
|
|
89
89
|
runLocalHarness,
|
|
90
90
|
runWorktreeHarness
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-2X65HYMI.js";
|
|
92
92
|
import "../chunk-ISPWRSEC.js";
|
|
93
|
-
import "../chunk-
|
|
93
|
+
import "../chunk-KRBFHMV6.js";
|
|
94
94
|
import {
|
|
95
95
|
deleteBoxSafe,
|
|
96
96
|
sleep,
|
|
@@ -883,7 +883,7 @@ function detachedSessionDelegate(options) {
|
|
|
883
883
|
ctx.report({ iteration: 1, phase: "completed" });
|
|
884
884
|
return chosen3;
|
|
885
885
|
}
|
|
886
|
-
const result2 = await
|
|
886
|
+
const result2 = await runAgentRounds({
|
|
887
887
|
driver: singleShotDriver,
|
|
888
888
|
agentRun: agentRunSpec,
|
|
889
889
|
output,
|
|
@@ -914,7 +914,7 @@ function detachedSessionDelegate(options) {
|
|
|
914
914
|
...options.fanoutModels ? { models: options.fanoutModels.slice(0, variants) } : {}
|
|
915
915
|
});
|
|
916
916
|
const agentRuns = fanout.agentRuns.slice(0, variants);
|
|
917
|
-
const result = await
|
|
917
|
+
const result = await runAgentRounds({
|
|
918
918
|
driver: fanout.driver,
|
|
919
919
|
agentRuns,
|
|
920
920
|
output: fanout.output,
|