@tangle-network/agent-runtime 0.55.0 → 0.56.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.
Files changed (47) hide show
  1. package/dist/agent.js +3 -1
  2. package/dist/agent.js.map +1 -1
  3. package/dist/{chunk-KADIJAD4.js → chunk-3BI6PSP3.js} +75 -60
  4. package/dist/chunk-3BI6PSP3.js.map +1 -0
  5. package/dist/{chunk-2BDXWZUC.js → chunk-5ZOYQWEB.js} +2 -2
  6. package/dist/chunk-5ZOYQWEB.js.map +1 -0
  7. package/dist/{chunk-KJH62YEK.js → chunk-A265AJ2Q.js} +2 -2
  8. package/dist/{chunk-A73RADPB.js → chunk-GFDCNQRO.js} +6 -6
  9. package/dist/chunk-GFDCNQRO.js.map +1 -0
  10. package/dist/{chunk-H2KWSZAN.js → chunk-GLMFBUKT.js} +27 -6
  11. package/dist/chunk-GLMFBUKT.js.map +1 -0
  12. package/dist/{chunk-ZMPQEPQ7.js → chunk-UIQTCS6H.js} +10 -89
  13. package/dist/chunk-UIQTCS6H.js.map +1 -0
  14. package/dist/{chunk-JTH2FPCK.js → chunk-ZADWPBOE.js} +392 -11
  15. package/dist/chunk-ZADWPBOE.js.map +1 -0
  16. package/dist/{coder-CEkUFv8h.d.ts → coder-CdsknxGF.d.ts} +54 -2
  17. package/dist/{coordination-BMzskrUR.d.ts → coordination-CfMk-RpQ.d.ts} +81 -2
  18. package/dist/{delegates-BPLIl8EC.d.ts → delegates-htF7l_H6.d.ts} +19 -1
  19. package/dist/improvement.d.ts +1 -1
  20. package/dist/improvement.js +1 -1
  21. package/dist/index.d.ts +3 -3
  22. package/dist/index.js +6 -5
  23. package/dist/index.js.map +1 -1
  24. package/dist/{local-harness-KrdFTY5R.d.ts → local-harness-BE_h8szs.d.ts} +11 -0
  25. package/dist/{loop-runner-bin-BGpVVyXp.d.ts → loop-runner-bin-C4YyFGdT.d.ts} +2 -2
  26. package/dist/loop-runner-bin.d.ts +3 -3
  27. package/dist/loop-runner-bin.js +5 -4
  28. package/dist/loops.d.ts +6 -4
  29. package/dist/loops.js +13 -3
  30. package/dist/mcp/bin.js +7 -7
  31. package/dist/mcp/index.d.ts +8 -87
  32. package/dist/mcp/index.js +11 -11
  33. package/dist/profiles.d.ts +1 -1
  34. package/dist/profiles.js +4 -2
  35. package/dist/profiles.js.map +1 -1
  36. package/dist/runtime.d.ts +281 -5
  37. package/dist/runtime.js +13 -3
  38. package/dist/workflow.js +3 -1
  39. package/dist/workflow.js.map +1 -1
  40. package/package.json +1 -1
  41. package/dist/chunk-2BDXWZUC.js.map +0 -1
  42. package/dist/chunk-A73RADPB.js.map +0 -1
  43. package/dist/chunk-H2KWSZAN.js.map +0 -1
  44. package/dist/chunk-JTH2FPCK.js.map +0 -1
  45. package/dist/chunk-KADIJAD4.js.map +0 -1
  46. package/dist/chunk-ZMPQEPQ7.js.map +0 -1
  47. /package/dist/{chunk-KJH62YEK.js.map → chunk-A265AJ2Q.js.map} +0 -0
@@ -27,6 +27,17 @@ interface RunLocalHarnessOptions {
27
27
  cwd: string;
28
28
  /** Prompt forwarded as the harness CLI's task argument. */
29
29
  taskPrompt: string;
30
+ /**
31
+ * Pre-built command + args (e.g. from `harnessInvocation` so the full authored
32
+ * `AgentProfile` — systemPrompt + model — reaches the harness). When set it OVERRIDES the
33
+ * default prompt-only `buildArgs(taskPrompt)` path; `command` defaults to the harness's
34
+ * default binary when only `args` is supplied. When absent the legacy prompt-only shape
35
+ * is used unchanged.
36
+ */
37
+ invocation?: {
38
+ command?: string;
39
+ args: ReadonlyArray<string>;
40
+ };
30
41
  /** Wall-clock kill deadline (ms). Default 5 min. Subprocess SIGTERMed on expiry. */
31
42
  timeoutMs?: number;
32
43
  /** Caller cancellation. SIGTERM is sent on abort. */
@@ -1,9 +1,9 @@
1
1
  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-p8dWBIXL.js';
4
- import { D as DelegateCodeArgs, C as CoderReviewer, a as CoderWinnerSelection } from './delegates-BPLIl8EC.js';
4
+ import { D as DelegateCodeArgs, C as CoderReviewer, a as CoderWinnerSelection } from './delegates-htF7l_H6.js';
5
5
  import { F as FactCandidate, C as CreateKbGateOptions } from './kb-gate-CuzMYGYM.js';
6
- import { C as CoderOutput } from './coder-CEkUFv8h.js';
6
+ import { C as CoderOutput } from './coder-CdsknxGF.js';
7
7
  import { S as SandboxClient } from './types-C8rNlxfV.js';
8
8
 
9
9
  /**
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, m as runLoopRunnerCli } from './loop-runner-bin-BGpVVyXp.js';
2
+ export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, m as runLoopRunnerCli } from './loop-runner-bin-C4YyFGdT.js';
3
3
  import '@tangle-network/agent-eval/campaign';
4
4
  import '@tangle-network/agent-eval/contract';
5
5
  import './types-p8dWBIXL.js';
6
6
  import '@tangle-network/agent-eval';
7
- import './delegates-BPLIl8EC.js';
8
- import './coder-CEkUFv8h.js';
7
+ import './delegates-htF7l_H6.js';
8
+ import './coder-CdsknxGF.js';
9
9
  import '@tangle-network/sandbox';
10
10
  import './types-C8rNlxfV.js';
11
11
  import './runtime-hooks-C7JwKb9E.js';
@@ -2,14 +2,15 @@
2
2
  import {
3
3
  parseLoopRunnerArgv,
4
4
  runLoopRunnerCli
5
- } from "./chunk-2BDXWZUC.js";
5
+ } from "./chunk-5ZOYQWEB.js";
6
6
  import "./chunk-FNMGYYSS.js";
7
- import "./chunk-A73RADPB.js";
8
- import "./chunk-KADIJAD4.js";
7
+ import "./chunk-GFDCNQRO.js";
9
8
  import "./chunk-P5OKDSLB.js";
10
- import "./chunk-JTH2FPCK.js";
9
+ import "./chunk-ZADWPBOE.js";
10
+ import "./chunk-3BI6PSP3.js";
11
11
  import "./chunk-WIR4HOOJ.js";
12
12
  import "./chunk-VLF5RHEQ.js";
13
+ import "./chunk-GLMFBUKT.js";
13
14
  import "./chunk-G3RGMA7C.js";
14
15
  import "./chunk-DGUM43GV.js";
15
16
  export {
package/dist/loops.d.ts CHANGED
@@ -1,13 +1,15 @@
1
1
  export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
2
- export { AgenticOptions, AgenticRunResult, AgenticSurface, AgenticTask, AgenticTool, AnytimeReport, AnytimeStrategySummary, AnytimeTaskCurve, ArtifactHandle, AssertTraceDerivedFindings, AuditIntentInput, AuditIntentOptions, AuthorStrategyOptions, AuthoredProfile, AuthoredStrategy, BenchmarkCell, BenchmarkConfig, BenchmarkLift, BenchmarkReport, BenchmarkStrategySummary, BenchmarkTaskRow, BridgeSeam, BudgetPool, BudgetReadout, ChampionPick, ChampionPolicy, CheckpointCapableBox, CliSeam, CombinatorShape, CompletionAnalyst, CompletionEvidence, CompletionPolicy, CompletionVerdict, CoordinationDriverOptions, CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, CreateScopeAnalystOptions, CriuCapableClient, DefinePersona, DefinePersonaInput, Deliverable, DeliverableSpec, DriverChat, DriverMessage, DriverToolCall, DriverTurn, Environment, EqualKArm, EqualKOnCost, EqualKOnCostOptions, EqualKVerdict, EvolutionArchiveNode, EvolutionAuthor, EvolutionBandInfo, EvolutionCandidate, EvolutionGeneration, EvolutionReport, ExecutorConfig, Fanout, FanoutOptions, FanoutSynthesis, FileCorpus, FileResultBlobStore, FileSpawnJournal, FlatWidenGate, ForkCapableBox, GitWorkspaceOptions, HarvestCorpusOptions, HarvestFailure, HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, IntentAudit, LoopDispatchOptions, LoopOptionsForDispatch, LoopShape, LoopUntil, LoopUntilSpec, LoopUntilState, McpEndpoint, McpEnvironmentOptions, NestedScopeSeam, Observation, ObserveInput, ObserveOptions, OpenSandboxRunOptions, Outcome, Panel, PanelJudge, PanelSpec, PanelVerdict, Persona, PersonaContext, PersonaExecutors, Pipeline, PipelineStage, PromotionGateOptions, PromotionVerdict, RegistryAnalyzeProjection, RenderCorpusToInstructions, RenderCorpusToInstructionsOptions, ReservationTicket, RouterSeam, RouterToolsSeam, RunAgenticOptions, RunPersonified, RunPersonifiedOptions, SandboxCapabilities, SandboxLineage, SandboxLineageHandle, SandboxRun, SandboxSeam, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, SessionCapableBox, ShapeBudget, ShapeContext, ShapeRegistry, Shell, ShotPersona, ShotSpec, SteerContext, Strategy, StrategyCtx, StrategyEvolutionConfig, StrategyResult, SurfaceScore, TrajectoryNode, TrajectoryReport, TrajectoryReportFn, TrajectoryReportOptions, TurnResult, UsageSink, VerifierEnvironmentOptions, Verify, VerifySpec, WaterfallCollector, WaterfallReport, WaterfallSpan, Widen, WidenDecision, WidenLineage, WidenSpec, Workspace, WorkspaceCommit, WorkspaceRun, acquireSandbox, adaptiveRefine, anytimeReport, asAuthoredProfile, assertStrategyContract, assertTraceDerivedFindings, auditIntent, authorStrategy, authoredWorker, breadthDriver, buildSteerContext, builtinShapes, completionAuthorizes, contentAddress, coordinationDriverAgent, createBudgetPool, createExecutor, createExecutorRegistry, createMcpEnvironment, createRootHandle, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, defaultAnalystInstruction, defaultAuditorInstruction, definePersona, defineStrategy, depthDriver, deterministicCompletion, discriminatingMeans, driverChild, driverExecutorFactory, driverRuntime, equalKOnCost, extractLlmCallEvent, fanout, flatWidenGate, gateOnDeliverable, gitWorkspace, harvestCorpus, inlineSandboxClient, isDriverSpec, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, materializeTreeView, nestedScopeSeamKey, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, replaySpawnTree, reportLoopUsage, runAgentic, runBenchmark, runInWorkspace, runPersonified, runStrategyEvolution, sample, sampleThenRefine, selectChampion, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervisorSkill, trajectoryReport, verify, widen, withDriverExecutor } from './runtime.js';
2
+ export { AgenticOptions, AgenticRunResult, AgenticSurface, AgenticTask, AgenticTool, AnytimeReport, AnytimeStrategySummary, AnytimeTaskCurve, ArtifactHandle, AssertTraceDerivedFindings, AuditIntentInput, AuditIntentOptions, AuthorStrategyOptions, AuthoredCoderHarness, AuthoredProfile, AuthoredStrategy, BenchmarkCell, BenchmarkConfig, BenchmarkLift, BenchmarkReport, BenchmarkStrategySummary, BenchmarkTaskRow, BridgeSeam, BudgetPool, BudgetReadout, ChampionPick, ChampionPolicy, CheckpointCapableBox, CliSeam, CliWorktreeSeam, CoderDeliverableOptions, CoderWinnerStrategy, CombinatorShape, CompletionAnalyst, CompletionEvidence, CompletionPolicy, CompletionVerdict, CoordinationDriverOptions, CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, CreateScopeAnalystOptions, CriuCapableClient, DefinePersona, DefinePersonaInput, Deliverable, DeliverableSpec, DriverChat, DriverMessage, DriverToolCall, DriverTurn, Environment, EqualKArm, EqualKOnCost, EqualKOnCostOptions, EqualKVerdict, EvolutionArchiveNode, EvolutionAuthor, EvolutionBandInfo, EvolutionCandidate, EvolutionGeneration, EvolutionReport, ExecutorConfig, Fanout, FanoutOptions, FanoutSynthesis, FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, FlatWidenGate, ForkCapableBox, GitWorkspaceOptions, HarvestCorpusOptions, HarvestFailure, HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, IntentAudit, LoopDispatchOptions, LoopOptionsForDispatch, LoopShape, LoopUntil, LoopUntilSpec, LoopUntilState, McpEndpoint, McpEnvironmentOptions, NestedScopeSeam, Observation, ObserveInput, ObserveOptions, OpenSandboxRunOptions, Outcome, Panel, PanelJudge, PanelSpec, PanelVerdict, Persona, PersonaContext, PersonaExecutors, Pipeline, PipelineStage, PromotionGateOptions, PromotionVerdict, RegistryAnalyzeProjection, RenderCorpusToInstructions, RenderCorpusToInstructionsOptions, ReservationTicket, RouterSeam, RouterToolsSeam, RunAgenticOptions, RunPersonified, RunPersonifiedOptions, SandboxCapabilities, SandboxLineage, SandboxLineageHandle, SandboxRun, SandboxSeam, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, SessionCapableBox, ShapeBudget, ShapeContext, ShapeRegistry, Shell, ShotPersona, ShotSpec, SteerContext, Strategy, StrategyCtx, StrategyEvolutionConfig, StrategyResult, SurfaceScore, TrajectoryNode, TrajectoryReport, TrajectoryReportFn, TrajectoryReportOptions, TurnResult, UsageSink, VerifierEnvironmentOptions, Verify, VerifySpec, WaterfallCollector, WaterfallReport, WaterfallSpan, Widen, WidenDecision, WidenLineage, WidenSpec, Workspace, WorkspaceCommit, WorkspaceRun, WorktreeCliExecutorOptions, WorktreeCoderFanoutOptions, WorktreeCommandResult, WorktreePatchArtifact, acquireSandbox, adaptiveRefine, anytimeReport, asAuthoredProfile, assertStrategyContract, assertTraceDerivedFindings, auditIntent, authorStrategy, authoredWorker, breadthDriver, buildSteerContext, builtinShapes, cliWorktreeExecutor, coderDeliverable, completionAuthorizes, contentAddress, coordinationDriverAgent, createBudgetPool, createExecutor, createExecutorRegistry, createMcpEnvironment, createRootHandle, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, createWorktreeCliExecutor, defaultAnalystInstruction, defaultAuditorInstruction, definePersona, defineStrategy, depthDriver, deterministicCompletion, discriminatingMeans, driverChild, driverExecutorFactory, driverRuntime, equalKOnCost, extractLlmCallEvent, fanout, flatWidenGate, gateOnDeliverable, gitWorkspace, harvestCorpus, inlineSandboxClient, isDriverSpec, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, materializeTreeView, nestedScopeSeamKey, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, replaySpawnTree, reportLoopUsage, runAgentic, runBenchmark, runInWorkspace, runPersonified, runStrategyEvolution, sample, sampleThenRefine, selectChampion, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervisorSkill, trajectoryReport, verify, widen, withDriverExecutor, worktreeCoderFanout } from './runtime.js';
3
3
  export { a as RouterChatResult, b as RouterChatToolsResult, R as RouterConfig, c as RouterToolCall, d as RouterToolLoopResult, T as ToolSpec, r as routerChatWithTools, e as routerChatWithUsage, f as routerToolLoop } from './router-client-30Y_pca8.js';
4
4
  export { R as RunLoopOptions, c as createSandboxForSpec, d as defaultSelectWinner, r as runLoop } from './run-loop-DluzfJ2h.js';
5
- export { t as Agent, s as AgentSpec, B as Budget, z as Executor, G as ExecutorContext, y as ExecutorFactory, E as ExecutorRegistry, H as ExecutorResult, K as Handle, N as NodeId, L as NodeSnapshot, O as NodeStatus, P as Restart, R as ResultBlobStore, u as RootHandle, V as RootSignal, W as Runtime, x as Scope, r as Settled, q as SpawnEvent, p as SpawnJournal, X as SpawnOpts, w as Spend, v as SupervisedResult, D as Supervisor, Y as SupervisorOpts, T as TreeView, U as UsageEvent, Z as WidenGate } from './coordination-BMzskrUR.js';
5
+ export { z as Agent, y as AgentSpec, B as Budget, U as Executor, Y as ExecutorContext, P as ExecutorFactory, E as ExecutorRegistry, Z as ExecutorResult, _ as Handle, N as NodeId, $ as NodeSnapshot, a0 as NodeStatus, a1 as Restart, u as ResultBlobStore, H as RootHandle, a2 as RootSignal, a3 as Runtime, O as Scope, x as Settled, w as SpawnEvent, v as SpawnJournal, a4 as SpawnOpts, L as Spend, K as SupervisedResult, X as Supervisor, a5 as SupervisorOpts, T as TreeView, V as UsageEvent, a6 as WidenGate } from './coordination-CfMk-RpQ.js';
6
6
  export { A as AgentRunSpec, D as Driver, E as ExecCtx, I as Iteration, F as LoopDecisionPayload, G as LoopEndedPayload, H as LoopIterationDispatchPayload, J as LoopIterationEndedPayload, M as LoopIterationStartedPayload, a as LoopLineageOptions, N as LoopPlanDescription, P as LoopPlanPayload, b as LoopResult, f as LoopSandboxPlacement, Q as LoopStartedPayload, T as LoopTeardownFailedPayload, d as LoopTokenUsage, g as LoopTraceEmitter, e as LoopTraceEvent, L as LoopWinner, O as OutputAdapter, S as SandboxClient, U as ValidationCtx, V as Validator } from './types-C8rNlxfV.js';
7
7
  export { DefaultVerdict } from '@tangle-network/agent-eval';
8
8
  import './runtime-hooks-C7JwKb9E.js';
9
9
  import '@tangle-network/agent-eval/campaign';
10
10
  import './types-p8dWBIXL.js';
11
- import './delegates-BPLIl8EC.js';
12
- import './coder-CEkUFv8h.js';
11
+ import './coder-CdsknxGF.js';
12
+ import './local-harness-BE_h8szs.js';
13
+ import 'node:child_process';
14
+ import './delegates-htF7l_H6.js';
13
15
  import './substrate-CUgk7F7s.js';
package/dist/loops.js CHANGED
@@ -17,6 +17,8 @@ import {
17
17
  breadthDriver,
18
18
  buildSteerContext,
19
19
  builtinShapes,
20
+ cliWorktreeExecutor,
21
+ coderDeliverable,
20
22
  completionAuthorizes,
21
23
  contentAddress,
22
24
  coordinationDriverAgent,
@@ -33,6 +35,7 @@ import {
33
35
  createSupervisor,
34
36
  createVerifierEnvironment,
35
37
  createWaterfallCollector,
38
+ createWorktreeCliExecutor,
36
39
  defaultAnalystInstruction,
37
40
  defaultAuditorInstruction,
38
41
  defaultSelectWinner,
@@ -96,13 +99,16 @@ import {
96
99
  trajectoryReport,
97
100
  verify,
98
101
  widen,
99
- withDriverExecutor
100
- } from "./chunk-JTH2FPCK.js";
102
+ withDriverExecutor,
103
+ worktreeCoderFanout
104
+ } from "./chunk-ZADWPBOE.js";
105
+ import "./chunk-3BI6PSP3.js";
101
106
  import "./chunk-WIR4HOOJ.js";
102
107
  import {
103
108
  extractLlmCallEvent,
104
109
  mapSandboxEvent
105
110
  } from "./chunk-VLF5RHEQ.js";
111
+ import "./chunk-GLMFBUKT.js";
106
112
  import "./chunk-G3RGMA7C.js";
107
113
  import "./chunk-DGUM43GV.js";
108
114
  export {
@@ -124,6 +130,8 @@ export {
124
130
  breadthDriver,
125
131
  buildSteerContext,
126
132
  builtinShapes,
133
+ cliWorktreeExecutor,
134
+ coderDeliverable,
127
135
  completionAuthorizes,
128
136
  contentAddress,
129
137
  coordinationDriverAgent,
@@ -140,6 +148,7 @@ export {
140
148
  createSupervisor,
141
149
  createVerifierEnvironment,
142
150
  createWaterfallCollector,
151
+ createWorktreeCliExecutor,
143
152
  defaultAnalystInstruction,
144
153
  defaultAuditorInstruction,
145
154
  defaultSelectWinner,
@@ -205,6 +214,7 @@ export {
205
214
  trajectoryReport,
206
215
  verify,
207
216
  widen,
208
- withDriverExecutor
217
+ withDriverExecutor,
218
+ worktreeCoderFanout
209
219
  };
210
220
  //# sourceMappingURL=loops.js.map
package/dist/mcp/bin.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createPropagatingTraceEmitter,
4
4
  detectExecutor,
5
5
  readTraceContextFromEnv
6
- } from "../chunk-ZMPQEPQ7.js";
6
+ } from "../chunk-UIQTCS6H.js";
7
7
  import {
8
8
  resolveRouterBaseUrl
9
9
  } from "../chunk-GRAGM4MC.js";
@@ -11,11 +11,7 @@ import {
11
11
  coderTaskFromArgs,
12
12
  createDefaultCoderDelegate,
13
13
  settleDetachedCoderTurn
14
- } from "../chunk-A73RADPB.js";
15
- import {
16
- coderProfile
17
- } from "../chunk-KADIJAD4.js";
18
- import "../chunk-H2KWSZAN.js";
14
+ } from "../chunk-GFDCNQRO.js";
19
15
  import {
20
16
  DEFAULT_SANDBOX_BASE_URL
21
17
  } from "../chunk-XRYEZPR6.js";
@@ -30,9 +26,13 @@ import {
30
26
  parseDetachedSessionRef,
31
27
  runDetachedTurn,
32
28
  runLoop
33
- } from "../chunk-JTH2FPCK.js";
29
+ } from "../chunk-ZADWPBOE.js";
30
+ import {
31
+ coderProfile
32
+ } from "../chunk-3BI6PSP3.js";
34
33
  import "../chunk-WIR4HOOJ.js";
35
34
  import "../chunk-VLF5RHEQ.js";
35
+ import "../chunk-GLMFBUKT.js";
36
36
  import "../chunk-G3RGMA7C.js";
37
37
  import "../chunk-DGUM43GV.js";
38
38
 
@@ -1,18 +1,18 @@
1
1
  import { S as SandboxClient, f as LoopSandboxPlacement } from '../types-C8rNlxfV.js';
2
- import { F as FleetHandle, f as DelegationExecutor, d as DelegationTaskQueue, e as CoderDelegate, D as DelegateCodeArgs, g as DelegateCodeResult, h as DelegateFeedbackResult, b as DelegateFeedbackArgs, i as ResearchSource, R as ResearcherDelegate, j as DelegateResearchArgs, k as DelegateResearchResult, U as UiAuditorDelegate, l as DelegateUiAuditArgs, m as DelegateUiAuditResult, n as DelegationHistoryResult, o as DelegationHistoryArgs, p as DelegationStatusResult, q as DelegationStatusArgs } from '../delegates-BPLIl8EC.js';
3
- export { r as CappedDelegationTrace, s as CoderReview, C as CoderReviewer, a as CoderWinnerSelection, t as CreateDefaultCoderDelegateOptions, u as DELEGATION_TRACE_MAX_BYTES, v as DELEGATION_TRACE_MAX_SPANS, w as DelegateCodeConfig, x as DelegateResearchConfig, y as DelegateRunCtx, z as DelegateUiAuditConfig, A as DelegateUiAuditRoute, B as DelegationError, c as DelegationFeedbackSnapshot, E as DelegationHistoryEntry, G as DelegationPersistenceError, H as DelegationProfile, I as DelegationProgress, J as DelegationRecord, K as DelegationResultPayload, L as DelegationResumeContext, M as DelegationResumeDriver, N as DelegationResumeTick, O as DelegationRunContext, P as DelegationStateCorruptError, Q as DelegationStatus, S as DelegationStore, V as DelegationTaskQueueOptions, W as DelegationTraceCaps, X as DelegationTraceCollector, Y as DelegationTraceSpan, Z as DetachedSessionRefParts, _ as DetachedTurn, $ as DriveTurnCapableBox, a0 as DriveTurnResumeDriverOptions, a1 as DriveTurnTick, a2 as FeedbackRating, a3 as FeedbackRefersTo, a4 as FileDelegationStore, a5 as FileDelegationStoreOptions, a6 as FleetWorkspaceExecutorOptions, a7 as InMemoryDelegationStore, a8 as ResearchOutputShape, a9 as RunDetachedTurnOptions, aa as SettleDetachedCoderTurnOptions, ab as SiblingSandboxExecutorOptions, ac as SubmitInput, ad as SubmitOutput, T as TraceContext, ae as UiAuditorDelegationOutput, af as buildDelegationTraceSpans, ag as capDelegationTrace, ah as coderTaskFromArgs, ai as composeLoopTraceEmitters, aj as createDefaultCoderDelegate, ak as createDelegationTraceCollector, al as createDriveTurnResumeDriver, am as createFleetWorkspaceExecutor, an as createPropagatingTraceEmitter, ao as createSiblingSandboxExecutor, ap as detachedTurnEvents, aq as formatDetachedSessionRef, ar as hashIdempotencyInput, as as parseDetachedSessionRef, at as readTraceContextFromEnv, au as runDetachedTurn, av as settleDetachedCoderTurn, aw as traceContextToEnv } from '../delegates-BPLIl8EC.js';
2
+ import { F as FleetHandle, f as DelegationExecutor, d as DelegationTaskQueue, e as CoderDelegate, D as DelegateCodeArgs, g as DelegateCodeResult, h as DelegateFeedbackResult, b as DelegateFeedbackArgs, i as ResearchSource, R as ResearcherDelegate, j as DelegateResearchArgs, k as DelegateResearchResult, U as UiAuditorDelegate, l as DelegateUiAuditArgs, m as DelegateUiAuditResult, n as DelegationHistoryResult, o as DelegationHistoryArgs, p as DelegationStatusResult, q as DelegationStatusArgs } from '../delegates-htF7l_H6.js';
3
+ export { r as CappedDelegationTrace, s as CoderReview, C as CoderReviewer, a as CoderWinnerSelection, t as CreateDefaultCoderDelegateOptions, u as DELEGATION_TRACE_MAX_BYTES, v as DELEGATION_TRACE_MAX_SPANS, w as DelegateCodeConfig, x as DelegateResearchConfig, y as DelegateRunCtx, z as DelegateUiAuditConfig, A as DelegateUiAuditRoute, B as DelegationError, c as DelegationFeedbackSnapshot, E as DelegationHistoryEntry, G as DelegationPersistenceError, H as DelegationProfile, I as DelegationProgress, J as DelegationRecord, K as DelegationResultPayload, L as DelegationResumeContext, M as DelegationResumeDriver, N as DelegationResumeTick, O as DelegationRunContext, P as DelegationStateCorruptError, Q as DelegationStatus, S as DelegationStore, V as DelegationTaskQueueOptions, W as DelegationTraceCaps, X as DelegationTraceCollector, Y as DelegationTraceSpan, Z as DetachedSessionRefParts, _ as DetachedTurn, $ as DriveTurnCapableBox, a0 as DriveTurnResumeDriverOptions, a1 as DriveTurnTick, a2 as FeedbackRating, a3 as FeedbackRefersTo, a4 as FileDelegationStore, a5 as FileDelegationStoreOptions, a6 as FleetWorkspaceExecutorOptions, a7 as InMemoryDelegationStore, a8 as ResearchOutputShape, a9 as RunDetachedTurnOptions, aa as SettleDetachedCoderTurnOptions, ab as SiblingSandboxExecutorOptions, ac as SubmitInput, ad as SubmitOutput, T as TraceContext, ae as UiAuditorDelegationOutput, af as buildDelegationTraceSpans, ag as capDelegationTrace, ah as coderTaskFromArgs, ai as composeLoopTraceEmitters, aj as createDefaultCoderDelegate, ak as createDelegationTraceCollector, al as createDriveTurnResumeDriver, am as createFleetWorkspaceExecutor, an as createPropagatingTraceEmitter, ao as createSiblingSandboxExecutor, ap as detachedTurnEvents, aq as formatDetachedSessionRef, ar as hashIdempotencyInput, as as parseDetachedSessionRef, at as readTraceContextFromEnv, au as runDetachedTurn, av as settleDetachedCoderTurn, aw as traceContextToEnv } from '../delegates-htF7l_H6.js';
4
4
  export { B as BuildDelegationMcpServerOptions, C as ComposeProductionAgentProfileOptions, D as DELEGATION_MCP_SERVER_KEY, b as buildDelegationMcpServer, c as composeProductionAgentProfile } from '../delegation-profile-Bvfro2m1.js';
5
- import { F as FeedbackStore } from '../coordination-BMzskrUR.js';
6
- export { A as AnalystRegistry, C as CoordinationEvent, a as CoordinationTools, b as CoordinationToolsOptions, c as FeedbackEvent, I as InMemoryFeedbackStore, J as JsonRpcMessage, d as JsonRpcResponse, M as MakeWorkerAgent, e as McpServer, f as McpServerOptions, g as McpToolDescriptor, h as McpTransport, Q as Question, i as QuestionDecision, j as QuestionPolicy, k as QuestionRecord, S as SettledWorker, l as createCoordinationTools, m as createInProcessTransport, n as createMcpServer, o as eventToSnapshot } from '../coordination-BMzskrUR.js';
7
- import { L as LocalHarness, r as runLocalHarness } from '../local-harness-KrdFTY5R.js';
8
- export { a as LocalHarnessResult, R as RunLocalHarnessOptions } from '../local-harness-KrdFTY5R.js';
5
+ import { G as GitRunner, F as FeedbackStore } from '../coordination-CfMk-RpQ.js';
6
+ export { A as AnalystRegistry, C as CoordinationEvent, a as CoordinationTools, b as CoordinationToolsOptions, c as CreateWorktreeOptions, D as DiffOptions, d as DiffResult, e as FeedbackEvent, I as InMemoryFeedbackStore, J as JsonRpcMessage, f as JsonRpcResponse, M as MakeWorkerAgent, g as McpServer, h as McpServerOptions, i as McpToolDescriptor, j as McpTransport, Q as Question, k as QuestionDecision, l as QuestionPolicy, m as QuestionRecord, R as RemoveWorktreeOptions, S as SettledWorker, W as WorktreeHandle, n as captureWorktreeDiff, o as createCoordinationTools, p as createInProcessTransport, q as createMcpServer, r as createWorktree, s as eventToSnapshot, t as removeWorktree } from '../coordination-CfMk-RpQ.js';
7
+ import { L as LocalHarness, r as runLocalHarness } from '../local-harness-BE_h8szs.js';
8
+ export { a as LocalHarnessResult, R as RunLocalHarnessOptions } from '../local-harness-BE_h8szs.js';
9
9
  export { C as CreateKbGateOptions, F as FactCandidate, a as FactJudge, b as FactJudgeVerdict, K as KbGateResult, c as createKbGate } from '../kb-gate-CuzMYGYM.js';
10
10
  export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-CoeLQ7Uo.js';
11
11
  import { AnalystFinding } from '@tangle-network/agent-eval';
12
12
  import { a as UiLens } from '../substrate-CUgk7F7s.js';
13
13
  import '@tangle-network/sandbox';
14
14
  import '../runtime-hooks-C7JwKb9E.js';
15
- import '../coder-CEkUFv8h.js';
15
+ import '../coder-CdsknxGF.js';
16
16
  import 'node:child_process';
17
17
 
18
18
  /**
@@ -51,85 +51,6 @@ interface DetectExecutorArgs {
51
51
  */
52
52
  declare function detectExecutor(args: DetectExecutorArgs): Promise<DelegationExecutor>;
53
53
 
54
- /**
55
- * @experimental
56
- *
57
- * Git worktree helpers for the in-process delegation executor. Each
58
- * delegation runs in its own worktree so multiple parallel harness
59
- * subprocesses (claude / codex / opencode in a 3-way fanout) don't clobber
60
- * each other's edits on the shared workspace.
61
- *
62
- * Worktrees live under `<repoRoot>/.coder-variants/<runId>/`. After the
63
- * harness exits + the diff is captured, the worktree is removed.
64
- *
65
- * All operations spawn `git` via `child_process.spawn` synchronously
66
- * (via a `runGit` helper). Stays narrow on purpose: no working-tree
67
- * staging, no commits, no rebases.
68
- */
69
- /** @experimental */
70
- interface WorktreeHandle {
71
- /** Absolute path to the worktree directory. */
72
- path: string;
73
- /** SHA the worktree was created at. */
74
- baseSha: string;
75
- /** Branch name created for this worktree (typically `delegate/<runId>`). */
76
- branch: string;
77
- }
78
- /** @experimental */
79
- interface CreateWorktreeOptions {
80
- /** Absolute path to the main git checkout. */
81
- repoRoot: string;
82
- /** Unique id for the worktree path + branch. Use the delegation run id. */
83
- runId: string;
84
- /** Parent directory the worktree lives under. Defaults to `.coder-variants`. */
85
- variantsDir?: string;
86
- /** Override the base ref (default `HEAD`). */
87
- baseRef?: string;
88
- /** Test seam — inject a custom git runner. */
89
- runGit?: GitRunner;
90
- }
91
- /** @experimental */
92
- interface DiffOptions {
93
- /** Worktree to diff. */
94
- worktree: WorktreeHandle;
95
- /** What to compare against. Default `worktree.baseSha`. */
96
- baseRef?: string;
97
- /** Test seam. */
98
- runGit?: GitRunner;
99
- }
100
- /** @experimental */
101
- interface DiffResult {
102
- patch: string;
103
- stats: {
104
- filesChanged: number;
105
- insertions: number;
106
- deletions: number;
107
- };
108
- }
109
- /** @experimental */
110
- interface RemoveWorktreeOptions {
111
- worktree: WorktreeHandle;
112
- repoRoot: string;
113
- /** Force removal even if dirty (default true; the loser of a fanout has uncommitted changes). */
114
- force?: boolean;
115
- /** Test seam. */
116
- runGit?: GitRunner;
117
- }
118
- /** Pluggable git runner (sync) — replaceable in tests. */
119
- type GitRunner = (args: ReadonlyArray<string>, opts: {
120
- cwd: string;
121
- }) => {
122
- stdout: string;
123
- stderr: string;
124
- exitCode: number;
125
- };
126
- /** @experimental */
127
- declare function createWorktree(options: CreateWorktreeOptions): Promise<WorktreeHandle>;
128
- /** @experimental */
129
- declare function captureWorktreeDiff(options: DiffOptions): Promise<DiffResult>;
130
- /** @experimental */
131
- declare function removeWorktree(options: RemoveWorktreeOptions): Promise<void>;
132
-
133
54
  /**
134
55
  * @experimental
135
56
  *
@@ -749,4 +670,4 @@ interface DelegationStatusHandlerOptions {
749
670
  /** @experimental */
750
671
  declare function createDelegationStatusHandler(options: DelegationStatusHandlerOptions): (raw: unknown) => Promise<DelegationStatusResult>;
751
672
 
752
- export { type Check, type CheckRunnerOptions, CoderDelegate, type CreateWorktreeOptions, DELEGATE_CODE_DESCRIPTION, DELEGATE_CODE_INPUT_SCHEMA, DELEGATE_CODE_TOOL_NAME, DELEGATE_FEEDBACK_DESCRIPTION, DELEGATE_FEEDBACK_INPUT_SCHEMA, DELEGATE_FEEDBACK_TOOL_NAME, DELEGATE_RESEARCH_DESCRIPTION, DELEGATE_RESEARCH_INPUT_SCHEMA, DELEGATE_RESEARCH_TOOL_NAME, DELEGATE_UI_AUDIT_DESCRIPTION, DELEGATE_UI_AUDIT_INPUT_SCHEMA, DELEGATE_UI_AUDIT_TOOL_NAME, DELEGATION_HISTORY_DESCRIPTION, DELEGATION_HISTORY_INPUT_SCHEMA, DELEGATION_HISTORY_TOOL_NAME, DELEGATION_STATUS_DESCRIPTION, DELEGATION_STATUS_INPUT_SCHEMA, DELEGATION_STATUS_TOOL_NAME, DelegateCodeArgs, DelegateCodeResult, DelegateFeedbackArgs, DelegateFeedbackResult, DelegateResearchArgs, DelegateResearchResult, DelegateUiAuditArgs, DelegateUiAuditResult, DelegationExecutor, DelegationHistoryArgs, DelegationHistoryResult, DelegationStatusArgs, DelegationStatusResult, DelegationTaskQueue, type DetectExecutorArgs, type DiffOptions, type DiffResult, FeedbackStore, FleetHandle, type GitRunner, type InProcessExecutorDescribePlacement, type InProcessExecutorOptions, LocalHarness, type RemoveWorktreeOptions, ResearchSource, ResearcherDelegate, UiAuditorDelegate, type WorktreeHandle, captureWorktreeDiff, createDelegateCodeHandler, createDelegateFeedbackHandler, createDelegateResearchHandler, createDelegateUiAuditHandler, createDelegationHistoryHandler, createDelegationStatusHandler, createInProcessExecutor, createWorktree, defaultChecks, detectExecutor, liftFindings, makeCheckRunner, removeWorktree, renderTrace, runCheck, runLocalHarness, validateDelegateCodeArgs, validateDelegateFeedbackArgs, validateDelegateResearchArgs, validateDelegateUiAuditArgs, validateDelegationHistoryArgs, validateDelegationStatusArgs };
673
+ export { type Check, type CheckRunnerOptions, CoderDelegate, DELEGATE_CODE_DESCRIPTION, DELEGATE_CODE_INPUT_SCHEMA, DELEGATE_CODE_TOOL_NAME, DELEGATE_FEEDBACK_DESCRIPTION, DELEGATE_FEEDBACK_INPUT_SCHEMA, DELEGATE_FEEDBACK_TOOL_NAME, DELEGATE_RESEARCH_DESCRIPTION, DELEGATE_RESEARCH_INPUT_SCHEMA, DELEGATE_RESEARCH_TOOL_NAME, DELEGATE_UI_AUDIT_DESCRIPTION, DELEGATE_UI_AUDIT_INPUT_SCHEMA, DELEGATE_UI_AUDIT_TOOL_NAME, DELEGATION_HISTORY_DESCRIPTION, DELEGATION_HISTORY_INPUT_SCHEMA, DELEGATION_HISTORY_TOOL_NAME, DELEGATION_STATUS_DESCRIPTION, DELEGATION_STATUS_INPUT_SCHEMA, DELEGATION_STATUS_TOOL_NAME, DelegateCodeArgs, DelegateCodeResult, DelegateFeedbackArgs, DelegateFeedbackResult, DelegateResearchArgs, DelegateResearchResult, DelegateUiAuditArgs, DelegateUiAuditResult, DelegationExecutor, DelegationHistoryArgs, DelegationHistoryResult, DelegationStatusArgs, DelegationStatusResult, DelegationTaskQueue, type DetectExecutorArgs, FeedbackStore, FleetHandle, GitRunner, type InProcessExecutorDescribePlacement, type InProcessExecutorOptions, LocalHarness, ResearchSource, ResearcherDelegate, UiAuditorDelegate, createDelegateCodeHandler, createDelegateFeedbackHandler, createDelegateResearchHandler, createDelegateUiAuditHandler, createDelegationHistoryHandler, createDelegationStatusHandler, createInProcessExecutor, defaultChecks, detectExecutor, liftFindings, makeCheckRunner, renderTrace, runCheck, runLocalHarness, validateDelegateCodeArgs, validateDelegateFeedbackArgs, validateDelegateResearchArgs, validateDelegateUiAuditArgs, validateDelegationHistoryArgs, validateDelegationStatusArgs };
package/dist/mcp/index.js CHANGED
@@ -1,17 +1,14 @@
1
1
  import {
2
- captureWorktreeDiff,
3
2
  createInProcessExecutor,
4
3
  createPropagatingTraceEmitter,
5
- createWorktree,
6
4
  detectExecutor,
7
5
  readTraceContextFromEnv,
8
- removeWorktree,
9
6
  traceContextToEnv
10
- } from "../chunk-ZMPQEPQ7.js";
7
+ } from "../chunk-UIQTCS6H.js";
11
8
  import {
12
9
  mcpToolsForRuntimeMcp,
13
10
  mcpToolsForRuntimeMcpSubset
14
- } from "../chunk-KJH62YEK.js";
11
+ } from "../chunk-A265AJ2Q.js";
15
12
  import {
16
13
  createKbGate
17
14
  } from "../chunk-FNMGYYSS.js";
@@ -21,11 +18,7 @@ import {
21
18
  createFleetWorkspaceExecutor,
22
19
  createSiblingSandboxExecutor,
23
20
  settleDetachedCoderTurn
24
- } from "../chunk-A73RADPB.js";
25
- import "../chunk-KADIJAD4.js";
26
- import {
27
- runLocalHarness
28
- } from "../chunk-H2KWSZAN.js";
21
+ } from "../chunk-GFDCNQRO.js";
29
22
  import {
30
23
  DELEGATION_MCP_SERVER_KEY,
31
24
  buildDelegationMcpServer,
@@ -61,6 +54,7 @@ import {
61
54
  assertTraceDerivedFindings,
62
55
  buildDelegationTraceSpans,
63
56
  capDelegationTrace,
57
+ captureWorktreeDiff,
64
58
  composeLoopTraceEmitters,
65
59
  createCoordinationTools,
66
60
  createDelegateCodeHandler,
@@ -73,11 +67,13 @@ import {
73
67
  createDriveTurnResumeDriver,
74
68
  createInProcessTransport,
75
69
  createMcpServer,
70
+ createWorktree,
76
71
  detachedTurnEvents,
77
72
  eventToSnapshot,
78
73
  formatDetachedSessionRef,
79
74
  hashIdempotencyInput,
80
75
  parseDetachedSessionRef,
76
+ removeWorktree,
81
77
  runDetachedTurn,
82
78
  validateDelegateCodeArgs,
83
79
  validateDelegateFeedbackArgs,
@@ -85,9 +81,13 @@ import {
85
81
  validateDelegateUiAuditArgs,
86
82
  validateDelegationHistoryArgs,
87
83
  validateDelegationStatusArgs
88
- } from "../chunk-JTH2FPCK.js";
84
+ } from "../chunk-ZADWPBOE.js";
85
+ import "../chunk-3BI6PSP3.js";
89
86
  import "../chunk-WIR4HOOJ.js";
90
87
  import "../chunk-VLF5RHEQ.js";
88
+ import {
89
+ runLocalHarness
90
+ } from "../chunk-GLMFBUKT.js";
91
91
  import "../chunk-G3RGMA7C.js";
92
92
  import "../chunk-DGUM43GV.js";
93
93
 
@@ -1,4 +1,4 @@
1
- export { C as CoderOutput, a as CoderProfileOptions, b as CoderTask, M as MultiHarnessCoderFanoutOptions, c as coderProfile, d as createCoderValidator, m as multiHarnessCoderFanout } from './coder-CEkUFv8h.js';
1
+ export { a as CoderCheckConstraints, b as CoderCheckInput, C as CoderOutput, c as CoderProfileOptions, d as CoderTask, M as MultiHarnessCoderFanoutOptions, e as coderProfile, f as createCoderValidator, m as multiHarnessCoderFanout, r as runCoderChecks } from './coder-CdsknxGF.js';
2
2
  import { S as SandboxClient, O as OutputAdapter, V as Validator, A as AgentRunSpec } from './types-C8rNlxfV.js';
3
3
  import { a as UiLens, U as UiFinding } from './substrate-CUgk7F7s.js';
4
4
  export { b as UI_FINDING_SEVERITIES, c as UI_LENSES, d as UiFindingScreenshot, e as UiFindingSeverity } from './substrate-CUgk7F7s.js';
package/dist/profiles.js CHANGED
@@ -4,8 +4,9 @@ import {
4
4
  import {
5
5
  coderProfile,
6
6
  createCoderValidator,
7
- multiHarnessCoderFanout
8
- } from "./chunk-KADIJAD4.js";
7
+ multiHarnessCoderFanout,
8
+ runCoderChecks
9
+ } from "./chunk-3BI6PSP3.js";
9
10
  import {
10
11
  UI_FINDING_SEVERITIES,
11
12
  UI_LENSES
@@ -554,6 +555,7 @@ export {
554
555
  formatAuditorPrompt,
555
556
  multiHarnessCoderFanout,
556
557
  parseAuditorEvents,
558
+ runCoderChecks,
557
559
  uiAuditorProfile
558
560
  };
559
561
  //# sourceMappingURL=profiles.js.map