@tangle-network/agent-runtime 0.55.0 → 0.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +3 -1
- package/dist/agent.js.map +1 -1
- package/dist/{chunk-JTH2FPCK.js → chunk-4H2FML7G.js} +392 -11
- package/dist/chunk-4H2FML7G.js.map +1 -0
- package/dist/{chunk-2BDXWZUC.js → chunk-6XKXWA7H.js} +2 -2
- package/dist/chunk-6XKXWA7H.js.map +1 -0
- package/dist/{chunk-KADIJAD4.js → chunk-7QYOXFCD.js} +75 -60
- package/dist/chunk-7QYOXFCD.js.map +1 -0
- package/dist/{chunk-ZMPQEPQ7.js → chunk-EXIV2C72.js} +10 -89
- package/dist/chunk-EXIV2C72.js.map +1 -0
- package/dist/{chunk-KJH62YEK.js → chunk-F5XQA43K.js} +2 -2
- package/dist/{chunk-A73RADPB.js → chunk-G4NIVG34.js} +6 -6
- package/dist/chunk-G4NIVG34.js.map +1 -0
- package/dist/{chunk-H2KWSZAN.js → chunk-GLMFBUKT.js} +27 -6
- package/dist/chunk-GLMFBUKT.js.map +1 -0
- package/dist/{coder-CEkUFv8h.d.ts → coder-COuOK8h8.d.ts} +51 -2
- package/dist/{coordination-BMzskrUR.d.ts → coordination-DWNGqygr.d.ts} +81 -2
- package/dist/{delegates-BPLIl8EC.d.ts → delegates-D9o5_VFj.d.ts} +17 -1
- package/dist/improvement.d.ts +1 -1
- package/dist/improvement.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/{local-harness-KrdFTY5R.d.ts → local-harness-BE_h8szs.d.ts} +11 -0
- package/dist/{loop-runner-bin-BGpVVyXp.d.ts → loop-runner-bin-CN2Se3jB.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +3 -3
- package/dist/loop-runner-bin.js +5 -4
- package/dist/loops.d.ts +6 -4
- package/dist/loops.js +13 -3
- package/dist/mcp/bin.js +7 -7
- package/dist/mcp/index.d.ts +8 -87
- package/dist/mcp/index.js +11 -11
- package/dist/profiles.d.ts +1 -1
- package/dist/profiles.js +4 -2
- package/dist/profiles.js.map +1 -1
- package/dist/runtime.d.ts +281 -5
- package/dist/runtime.js +13 -3
- package/dist/workflow.js +3 -1
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2BDXWZUC.js.map +0 -1
- package/dist/chunk-A73RADPB.js.map +0 -1
- package/dist/chunk-H2KWSZAN.js.map +0 -1
- package/dist/chunk-JTH2FPCK.js.map +0 -1
- package/dist/chunk-KADIJAD4.js.map +0 -1
- package/dist/chunk-ZMPQEPQ7.js.map +0 -1
- /package/dist/{chunk-KJH62YEK.js.map → chunk-F5XQA43K.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-
|
|
4
|
+
import { D as DelegateCodeArgs, C as CoderReviewer, a as CoderWinnerSelection } from './delegates-D9o5_VFj.js';
|
|
5
5
|
import { F as FactCandidate, C as CreateKbGateOptions } from './kb-gate-CuzMYGYM.js';
|
|
6
|
-
import { C as CoderOutput } from './coder-
|
|
6
|
+
import { C as CoderOutput } from './coder-COuOK8h8.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-
|
|
2
|
+
export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, m as runLoopRunnerCli } from './loop-runner-bin-CN2Se3jB.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-
|
|
8
|
-
import './coder-
|
|
7
|
+
import './delegates-D9o5_VFj.js';
|
|
8
|
+
import './coder-COuOK8h8.js';
|
|
9
9
|
import '@tangle-network/sandbox';
|
|
10
10
|
import './types-C8rNlxfV.js';
|
|
11
11
|
import './runtime-hooks-C7JwKb9E.js';
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseLoopRunnerArgv,
|
|
4
4
|
runLoopRunnerCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6XKXWA7H.js";
|
|
6
6
|
import "./chunk-FNMGYYSS.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-KADIJAD4.js";
|
|
7
|
+
import "./chunk-G4NIVG34.js";
|
|
9
8
|
import "./chunk-P5OKDSLB.js";
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-4H2FML7G.js";
|
|
10
|
+
import "./chunk-7QYOXFCD.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 {
|
|
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-DWNGqygr.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 './
|
|
12
|
-
import './
|
|
11
|
+
import './coder-COuOK8h8.js';
|
|
12
|
+
import './local-harness-BE_h8szs.js';
|
|
13
|
+
import 'node:child_process';
|
|
14
|
+
import './delegates-D9o5_VFj.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
|
-
|
|
102
|
+
withDriverExecutor,
|
|
103
|
+
worktreeCoderFanout
|
|
104
|
+
} from "./chunk-4H2FML7G.js";
|
|
105
|
+
import "./chunk-7QYOXFCD.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-
|
|
6
|
+
} from "../chunk-EXIV2C72.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-
|
|
15
|
-
import {
|
|
16
|
-
coderProfile
|
|
17
|
-
} from "../chunk-KADIJAD4.js";
|
|
18
|
-
import "../chunk-H2KWSZAN.js";
|
|
14
|
+
} from "../chunk-G4NIVG34.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-
|
|
29
|
+
} from "../chunk-4H2FML7G.js";
|
|
30
|
+
import {
|
|
31
|
+
coderProfile
|
|
32
|
+
} from "../chunk-7QYOXFCD.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
|
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-D9o5_VFj.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-D9o5_VFj.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-
|
|
6
|
-
export { A as AnalystRegistry, C as CoordinationEvent, a as CoordinationTools, b as CoordinationToolsOptions, c as FeedbackEvent, I as InMemoryFeedbackStore, J as JsonRpcMessage,
|
|
7
|
-
import { L as LocalHarness, r as runLocalHarness } from '../local-harness-
|
|
8
|
-
export { a as LocalHarnessResult, R as RunLocalHarnessOptions } from '../local-harness-
|
|
5
|
+
import { G as GitRunner, F as FeedbackStore } from '../coordination-DWNGqygr.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-DWNGqygr.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-
|
|
15
|
+
import '../coder-COuOK8h8.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,
|
|
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-
|
|
7
|
+
} from "../chunk-EXIV2C72.js";
|
|
11
8
|
import {
|
|
12
9
|
mcpToolsForRuntimeMcp,
|
|
13
10
|
mcpToolsForRuntimeMcpSubset
|
|
14
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-F5XQA43K.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-
|
|
25
|
-
import "../chunk-KADIJAD4.js";
|
|
26
|
-
import {
|
|
27
|
-
runLocalHarness
|
|
28
|
-
} from "../chunk-H2KWSZAN.js";
|
|
21
|
+
} from "../chunk-G4NIVG34.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-
|
|
84
|
+
} from "../chunk-4H2FML7G.js";
|
|
85
|
+
import "../chunk-7QYOXFCD.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
|
|
package/dist/profiles.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CoderOutput,
|
|
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-COuOK8h8.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
|
-
|
|
7
|
+
multiHarnessCoderFanout,
|
|
8
|
+
runCoderChecks
|
|
9
|
+
} from "./chunk-7QYOXFCD.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
|