@tangle-network/agent-runtime 0.59.0 → 0.61.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/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -2
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/{chunk-IN7WHMGZ.js → chunk-5V343QPB.js} +47 -7
- package/dist/chunk-5V343QPB.js.map +1 -0
- package/dist/chunk-7IXF3VUJ.js +59 -0
- package/dist/chunk-7IXF3VUJ.js.map +1 -0
- package/dist/{chunk-ZWGEA722.js → chunk-AU5MCNHO.js} +2 -2
- package/dist/chunk-IBRJTG7O.js +475 -0
- package/dist/chunk-IBRJTG7O.js.map +1 -0
- package/dist/{chunk-MMDIORZY.js → chunk-Q5R33I7Y.js} +4 -23
- package/dist/chunk-Q5R33I7Y.js.map +1 -0
- package/dist/{chunk-45D64J7B.js → chunk-VCOT7XEQ.js} +190 -99
- package/dist/chunk-VCOT7XEQ.js.map +1 -0
- package/dist/coder-DD5J5Onk.d.ts +52 -0
- package/dist/coordination-k29badiX.d.ts +381 -0
- package/dist/{delegates-C94qchkz.d.ts → delegates-CWMv_rKL.d.ts} +649 -21
- package/dist/index.d.ts +9 -6
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +1 -1
- package/dist/{loop-runner-bin-Noz7P-mS.d.ts → loop-runner-bin-Bqt0hiNY.d.ts} +46 -12
- package/dist/loop-runner-bin.d.ts +7 -4
- package/dist/loop-runner-bin.js +4 -4
- package/dist/loops.d.ts +7 -6
- package/dist/loops.js +17 -6
- package/dist/mcp/bin.js +10 -10
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +12 -12
- package/dist/mcp/index.js +7 -7
- package/dist/{openai-tools-d4GKwgya.d.ts → openai-tools-CA2N3-Ak.d.ts} +1 -1
- package/dist/profiles.d.ts +7 -9
- package/dist/profiles.js +5 -7
- package/dist/profiles.js.map +1 -1
- package/dist/{run-loop-CcqfR_gy.d.ts → run-loop-D3PwlG7J.d.ts} +1 -1
- package/dist/runtime.d.ts +30 -1046
- package/dist/runtime.js +17 -6
- package/dist/{types-CUzjRFZ3.d.ts → types-Crxftafi.d.ts} +2 -2
- package/dist/workflow.d.ts +2 -2
- package/dist/workflow.js +1 -2
- package/dist/workflow.js.map +1 -1
- package/dist/worktree-fanout-CBULEoVe.d.ts +1098 -0
- package/package.json +2 -2
- package/dist/chunk-45D64J7B.js.map +0 -1
- package/dist/chunk-4FEUFYOY.js +0 -282
- package/dist/chunk-4FEUFYOY.js.map +0 -1
- package/dist/chunk-7QYOXFCD.js +0 -293
- package/dist/chunk-7QYOXFCD.js.map +0 -1
- package/dist/chunk-IN7WHMGZ.js.map +0 -1
- package/dist/chunk-MMDIORZY.js.map +0 -1
- package/dist/coder-CybltHEm.d.ts +0 -163
- package/dist/coordination-Biw19JzN.d.ts +0 -944
- /package/dist/{chunk-ZWGEA722.js.map → chunk-AU5MCNHO.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { AgentProfile, AgentEvalError, KnowledgeReadinessReport, RunRecord, ControlEvalResult, KnowledgeRequirement } from '@tangle-network/agent-eval';
|
|
2
2
|
export { AgentEvalError, AgentEvalErrorCode, ConfigError, ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, DataAcquisitionPlan, JudgeError, KnowledgeReadinessReport, KnowledgeRequirement, NotFoundError, RunRecord, ValidationError } from '@tangle-network/agent-eval';
|
|
3
|
-
import { h as AgentBackendInput, i as AgentExecutionBackend, c as OpenAIChatTool, j as OpenAIChatToolChoice, k as AgentBackendContext, R as RuntimeStreamEvent, K as KnowledgeReadinessDecision, l as RunAgentTaskOptions, m as AgentTaskRunResult, n as RunAgentTaskStreamOptions, o as AgentRuntimeEvent, p as AgentTaskStatus, q as RuntimeSessionStore, r as RuntimeSession } from './types-
|
|
4
|
-
export { s as AgentAdapter, t as AgentKnowledgeProvider, u as AgentRuntimeEventSink, v as AgentTaskContext, w as AgentTaskSpec, B as BackendErrorDetail, x as RuntimeRunHandle, y as RuntimeRunPersistenceAdapter, z as RuntimeRunRow, C as startRuntimeRun } from './types-
|
|
3
|
+
import { h as AgentBackendInput, i as AgentExecutionBackend, c as OpenAIChatTool, j as OpenAIChatToolChoice, k as AgentBackendContext, R as RuntimeStreamEvent, K as KnowledgeReadinessDecision, l as RunAgentTaskOptions, m as AgentTaskRunResult, n as RunAgentTaskStreamOptions, o as AgentRuntimeEvent, p as AgentTaskStatus, q as RuntimeSessionStore, r as RuntimeSession } from './types-Crxftafi.js';
|
|
4
|
+
export { s as AgentAdapter, t as AgentKnowledgeProvider, u as AgentRuntimeEventSink, v as AgentTaskContext, w as AgentTaskSpec, B as BackendErrorDetail, x as RuntimeRunHandle, y as RuntimeRunPersistenceAdapter, z as RuntimeRunRow, C as startRuntimeRun } from './types-Crxftafi.js';
|
|
5
5
|
import { Scenario, ProfileDispatchFn } from '@tangle-network/agent-eval/campaign';
|
|
6
|
-
export { C as CoderLoopRunnerOptions, D as DELEGATED_LOOP_MODES, a as DelegatedLoopMode, b as DelegatedLoopRegistry, c as DelegatedLoopResult, d as DelegatedLoopRunner, L as LoopRunnerCliArgs, e as LoopRunnerCliResult, R as ResearchLoopResult, f as ResearchLoopRunnerOptions, g as RunDelegatedLoopOptions, V as VetoedFact, h as auditLoopRunner, i as coderLoopRunner, j as isDelegatedLoopMode, p as parseLoopRunnerArgv, r as researchLoopRunner, k as
|
|
7
|
-
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from './openai-tools-
|
|
8
|
-
export {
|
|
6
|
+
export { C as CoderLoopRunnerOptions, D as DELEGATED_LOOP_MODES, a as DelegatedLoopMode, b as DelegatedLoopRegistry, c as DelegatedLoopResult, d as DelegatedLoopRunner, L as LoopRunnerCliArgs, e as LoopRunnerCliResult, R as ResearchLoopResult, f as ResearchLoopRunnerOptions, g as RunDelegatedLoopOptions, V as VetoedFact, W as WorktreeLoopRunnerOptions, h as auditLoopRunner, i as coderLoopRunner, j as isDelegatedLoopMode, p as parseLoopRunnerArgv, r as researchLoopRunner, k as runDelegatedLoop, l as runLoopRunnerCli, s as selfImproveLoopRunner, w as worktreeLoopRunner } from './loop-runner-bin-Bqt0hiNY.js';
|
|
7
|
+
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from './openai-tools-CA2N3-Ak.js';
|
|
8
|
+
export { aU as EvalRunEvent, aV as EvalRunGeneration, aW as EvalRunsExportConfig, aX as EvalRunsExportResult, aY as INTELLIGENCE_WIRE_VERSION, aZ as LoopSpanNode, a_ as OtelAttribute, a$ as OtelExportConfig, b0 as OtelExporter, b1 as OtelSpan, b2 as buildLoopOtelSpans, b3 as buildLoopSpanNodes, b4 as createOtelExporter, b5 as exportEvalRuns, b6 as loopEventToOtelSpan } from './delegates-CWMv_rKL.js';
|
|
9
9
|
import { R as RuntimeHooks } from './runtime-hooks-C7JwKb9E.js';
|
|
10
10
|
export { b as RuntimeDecisionEvidenceRef, c as RuntimeDecisionKind, d as RuntimeDecisionPoint, e as RuntimeHookContext, f as RuntimeHookErrorContext, a as RuntimeHookEvent, g as RuntimeHookPhase, h as RuntimeHookTarget, i as composeRuntimeHooks, j as defineRuntimeHooks, n as notifyRuntimeDecisionPoint, k as notifyRuntimeHookEvent } from './runtime-hooks-C7JwKb9E.js';
|
|
11
11
|
import '@tangle-network/sandbox';
|
|
12
12
|
import '@tangle-network/agent-eval/contract';
|
|
13
13
|
import './types-p8dWBIXL.js';
|
|
14
14
|
import './kb-gate-CuzMYGYM.js';
|
|
15
|
-
import './
|
|
15
|
+
import './worktree-fanout-CBULEoVe.js';
|
|
16
|
+
import './local-harness-BE_h8szs.js';
|
|
17
|
+
import 'node:child_process';
|
|
18
|
+
import './coder-DD5J5Onk.js';
|
|
16
19
|
import './substrate-CUgk7F7s.js';
|
|
17
20
|
|
|
18
21
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpToolsForRuntimeMcp,
|
|
3
3
|
mcpToolsForRuntimeMcpSubset
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AU5MCNHO.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_ROUTER_BASE_URL,
|
|
7
7
|
cleanModelId,
|
|
@@ -17,21 +17,21 @@ import {
|
|
|
17
17
|
isDelegatedLoopMode,
|
|
18
18
|
parseLoopRunnerArgv,
|
|
19
19
|
researchLoopRunner,
|
|
20
|
-
reviewLoopRunner,
|
|
21
20
|
runDelegatedLoop,
|
|
22
21
|
runLoopRunnerCli,
|
|
23
|
-
selfImproveLoopRunner
|
|
24
|
-
|
|
22
|
+
selfImproveLoopRunner,
|
|
23
|
+
worktreeLoopRunner
|
|
24
|
+
} from "./chunk-5V343QPB.js";
|
|
25
25
|
import "./chunk-FNMGYYSS.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-IBRJTG7O.js";
|
|
27
|
+
import "./chunk-7IXF3VUJ.js";
|
|
27
28
|
import "./chunk-P5OKDSLB.js";
|
|
28
29
|
import {
|
|
29
30
|
composeRuntimeHooks,
|
|
30
31
|
defineRuntimeHooks,
|
|
31
32
|
notifyRuntimeDecisionPoint,
|
|
32
33
|
notifyRuntimeHookEvent
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-7QYOXFCD.js";
|
|
34
|
+
} from "./chunk-VCOT7XEQ.js";
|
|
35
35
|
import "./chunk-WIR4HOOJ.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentEvalError,
|
|
@@ -3331,7 +3331,6 @@ export {
|
|
|
3331
3331
|
researchLoopRunner,
|
|
3332
3332
|
resolveChatModel,
|
|
3333
3333
|
resolveRouterBaseUrl,
|
|
3334
|
-
reviewLoopRunner,
|
|
3335
3334
|
runAgentTask,
|
|
3336
3335
|
runAgentTaskStream,
|
|
3337
3336
|
runConversation,
|
|
@@ -3351,6 +3350,7 @@ export {
|
|
|
3351
3350
|
startRuntimeRun,
|
|
3352
3351
|
streamToolLoop,
|
|
3353
3352
|
turnId,
|
|
3354
|
-
validateChatModelId
|
|
3353
|
+
validateChatModelId,
|
|
3354
|
+
worktreeLoopRunner
|
|
3355
3355
|
};
|
|
3356
3356
|
//# sourceMappingURL=index.js.map
|
package/dist/intelligence.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as LoopTraceEvent } from './types-
|
|
1
|
+
import { d as LoopTraceEvent } from './types-Crxftafi.js';
|
|
2
2
|
import { AgentProfileMcpServer } from '@tangle-network/sandbox';
|
|
3
3
|
import { T as ToolSpec } from './router-client-30Y_pca8.js';
|
|
4
4
|
import '@tangle-network/agent-eval';
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
4
|
+
import { D as DelegateCodeArgs, C as CoderReviewer, a as DetachedWinnerSelection, B as Budget, b as CoderOutput } from './delegates-CWMv_rKL.js';
|
|
5
5
|
import { F as FactCandidate, C as CreateKbGateOptions } from './kb-gate-CuzMYGYM.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { S as SandboxClient } from './types-Crxftafi.js';
|
|
7
|
+
import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions, b as WorktreePatchArtifact } from './worktree-fanout-CBULEoVe.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @experimental
|
|
@@ -69,24 +69,58 @@ interface CoderLoopRunnerOptions {
|
|
|
69
69
|
sandboxClient: SandboxClient;
|
|
70
70
|
/** What to build — the delegate args (goal, repoRoot, variants, config, …). */
|
|
71
71
|
args: DelegateCodeArgs;
|
|
72
|
-
/** Adversarial reviewer.
|
|
72
|
+
/** Adversarial reviewer. Pass one to run `review` mode (an approval gate over the candidate). */
|
|
73
73
|
reviewer?: CoderReviewer;
|
|
74
74
|
/** Winner-selection strategy. Default `highest-score`. */
|
|
75
|
-
winnerSelection?:
|
|
75
|
+
winnerSelection?: DetachedWinnerSelection;
|
|
76
76
|
/** Harnesses for `variants > 1` fanout. */
|
|
77
77
|
fanoutHarnesses?: string[];
|
|
78
78
|
}
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* @experimental Build a `code`/`review`-mode runner over the sandbox-session coder delegate. Pass a
|
|
81
|
+
* `reviewer` to run `review` mode — an approval gate over the validated candidate.
|
|
82
|
+
*/
|
|
80
83
|
declare function coderLoopRunner(options: CoderLoopRunnerOptions): DelegatedLoopRunner<CoderOutput>;
|
|
84
|
+
/** @experimental Options for the local-repo `code` runner over the GENERIC recursive path. */
|
|
85
|
+
interface WorktreeLoopRunnerOptions {
|
|
86
|
+
/** Absolute path to the local git checkout each worktree is cut from. */
|
|
87
|
+
repoRoot: string;
|
|
88
|
+
/** The instruction handed to every authored harness (composed under each profile's systemPrompt). */
|
|
89
|
+
taskPrompt: string;
|
|
90
|
+
/** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */
|
|
91
|
+
harnesses: ReadonlyArray<AuthoredHarness>;
|
|
92
|
+
/** Conserved budget pool bounding the fanout (equal-k holds by construction). */
|
|
93
|
+
budget: Budget;
|
|
94
|
+
/** Shell command run in each worktree to derive the tests-PASS signal. */
|
|
95
|
+
testCmd?: string;
|
|
96
|
+
/** Shell command run in each worktree to derive the typecheck-PASS signal. */
|
|
97
|
+
typecheckCmd?: string;
|
|
98
|
+
/** Which verification signals the deliverable REQUIRES present-and-passing (default none). */
|
|
99
|
+
require?: ReadonlyArray<'tests' | 'typecheck'>;
|
|
100
|
+
/** Diff-size cap (lines). */
|
|
101
|
+
maxDiffLines?: number;
|
|
102
|
+
/** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */
|
|
103
|
+
forbiddenPaths?: string[];
|
|
104
|
+
/** Winner-selection strategy among gated candidates. Default `highest-score`. */
|
|
105
|
+
winnerStrategy?: WinnerStrategy;
|
|
106
|
+
/** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */
|
|
107
|
+
runGit?: WorktreeFanoutOptions['runGit'];
|
|
108
|
+
runHarness?: WorktreeFanoutOptions['runHarness'];
|
|
109
|
+
runCommand?: WorktreeFanoutOptions['runCommand'];
|
|
110
|
+
}
|
|
81
111
|
/**
|
|
82
112
|
* @experimental
|
|
83
113
|
*
|
|
84
|
-
* `
|
|
85
|
-
*
|
|
114
|
+
* `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a
|
|
115
|
+
* `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through
|
|
116
|
+
* `runPersonified` on the keystone Supervisor. This is the local-repo counterpart to
|
|
117
|
+
* {@link coderLoopRunner} (which drives the in-box harness over a `SandboxClient`): no `runLoop`
|
|
118
|
+
* driver, no role-coupled delegate — the harness list is the fanout, the gate is `patchDelivered`,
|
|
119
|
+
* the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback
|
|
120
|
+
* would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning
|
|
121
|
+
* patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).
|
|
86
122
|
*/
|
|
87
|
-
declare function
|
|
88
|
-
reviewer: CoderReviewer;
|
|
89
|
-
}): DelegatedLoopRunner<CoderOutput>;
|
|
123
|
+
declare function worktreeLoopRunner(options: WorktreeLoopRunnerOptions): DelegatedLoopRunner<WorktreePatchArtifact>;
|
|
90
124
|
/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */
|
|
91
125
|
interface VetoedFact {
|
|
92
126
|
candidate: FactCandidate;
|
|
@@ -172,4 +206,4 @@ declare function parseLoopRunnerArgv(argv: string[]): {
|
|
|
172
206
|
config?: string;
|
|
173
207
|
};
|
|
174
208
|
|
|
175
|
-
export { type CoderLoopRunnerOptions as C, DELEGATED_LOOP_MODES as D, type LoopRunnerCliArgs as L, type ResearchLoopResult as R, type VetoedFact as V, type DelegatedLoopMode as a, type DelegatedLoopRegistry as b, type DelegatedLoopResult as c, type DelegatedLoopRunner as d, type LoopRunnerCliResult as e, type ResearchLoopRunnerOptions as f, type RunDelegatedLoopOptions as g, auditLoopRunner as h, coderLoopRunner as i, isDelegatedLoopMode as j,
|
|
209
|
+
export { type CoderLoopRunnerOptions as C, DELEGATED_LOOP_MODES as D, type LoopRunnerCliArgs as L, type ResearchLoopResult as R, type VetoedFact as V, type WorktreeLoopRunnerOptions as W, type DelegatedLoopMode as a, type DelegatedLoopRegistry as b, type DelegatedLoopResult as c, type DelegatedLoopRunner as d, type LoopRunnerCliResult as e, type ResearchLoopRunnerOptions as f, type RunDelegatedLoopOptions as g, auditLoopRunner as h, coderLoopRunner as i, isDelegatedLoopMode as j, runDelegatedLoop as k, runLoopRunnerCli as l, parseLoopRunnerArgv as p, researchLoopRunner as r, selfImproveLoopRunner as s, worktreeLoopRunner as w };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv,
|
|
2
|
+
export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, l as runLoopRunnerCli } from './loop-runner-bin-Bqt0hiNY.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-CybltHEm.js';
|
|
7
|
+
import './delegates-CWMv_rKL.js';
|
|
9
8
|
import '@tangle-network/sandbox';
|
|
10
|
-
import './types-CUzjRFZ3.js';
|
|
11
9
|
import './runtime-hooks-C7JwKb9E.js';
|
|
10
|
+
import './types-Crxftafi.js';
|
|
11
|
+
import './coder-DD5J5Onk.js';
|
|
12
12
|
import './substrate-CUgk7F7s.js';
|
|
13
13
|
import './kb-gate-CuzMYGYM.js';
|
|
14
|
+
import './worktree-fanout-CBULEoVe.js';
|
|
15
|
+
import './local-harness-BE_h8szs.js';
|
|
16
|
+
import 'node:child_process';
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseLoopRunnerArgv,
|
|
4
4
|
runLoopRunnerCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5V343QPB.js";
|
|
6
6
|
import "./chunk-FNMGYYSS.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-IBRJTG7O.js";
|
|
8
|
+
import "./chunk-7IXF3VUJ.js";
|
|
8
9
|
import "./chunk-P5OKDSLB.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-7QYOXFCD.js";
|
|
10
|
+
import "./chunk-VCOT7XEQ.js";
|
|
11
11
|
import "./chunk-WIR4HOOJ.js";
|
|
12
12
|
import "./chunk-VLF5RHEQ.js";
|
|
13
13
|
import "./chunk-GLMFBUKT.js";
|
package/dist/loops.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
|
|
2
|
-
export { AgenticOptions, AgenticRunResult, AgenticSurface, AgenticTask, AgenticTool, AnytimeReport, AnytimeStrategySummary, AnytimeTaskCurve, ArtifactHandle,
|
|
2
|
+
export { AgenticOptions, AgenticRunResult, AgenticSurface, AgenticTask, AgenticTool, AnytimeReport, AnytimeStrategySummary, AnytimeTaskCurve, ArtifactHandle, AuditIntentInput, AuditIntentOptions, AuthorStrategyOptions, AuthoredProfile, AuthoredStrategy, BenchmarkCell, BenchmarkConfig, BenchmarkLift, BenchmarkReport, BenchmarkStrategySummary, BenchmarkTaskRow, BridgeSeam, BudgetPool, BudgetReadout, ChampionPick, ChampionPolicy, CheckpointCapableBox, CliSeam, CliWorktreeSeam, CompletionAnalyst, CompletionEvidence, CompletionPolicy, CompletionVerdict, CoordinationDriverOptions, CoordinationMcpHandle, CreateScopeAnalystOptions, CriuCapableClient, Deliverable, DriverChat, DriverMessage, DriverToolCall, DriverTurn, Environment, EvolutionArchiveNode, EvolutionAuthor, EvolutionBandInfo, EvolutionCandidate, EvolutionGeneration, EvolutionReport, ExecutorConfig, FileCorpus, FileResultBlobStore, FileSpawnJournal, ForkCapableBox, GitWorkspaceOptions, HarvestCorpusOptions, HarvestFailure, HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, Inbox, InboxMessage, IntentAudit, LoopDispatchOptions, LoopOptionsForDispatch, McpEndpoint, McpEnvironmentOptions, NestedScopeSeam, Observation, ObserveInput, ObserveOptions, OpenSandboxRunOptions, PromotionGateOptions, PromotionVerdict, RegistryAnalyzeProjection, ReservationTicket, RouterSeam, RouterToolsSeam, RunAgenticOptions, SandboxCapabilities, SandboxLineage, SandboxLineageHandle, SandboxRun, SandboxSeam, SessionCapableBox, SessionMessageLike, SessionTraceBox, Shell, ShotPersona, ShotSpec, Strategy, StrategyCtx, StrategyEvolutionConfig, StrategyResult, SurfaceScore, ToolPartDecoder, ToolStepInput, TraceSource, TrajectoryAnalysis, TurnResult, UsageSink, VerifierEnvironmentOptions, WatchTraceOptions, WaterfallCollector, WaterfallReport, WaterfallSpan, Workspace, WorkspaceCommit, WorkspaceRun, acquireSandbox, adaptiveRefine, analyzeTrace, anytimeReport, asAuthoredProfile, assertStrategyContract, assertTraceDerivedFindings, auditIntent, authorStrategy, authoredWorker, breadthDriver, buildSteerContext, builtinShapes, cliWorktreeExecutor, completionAuthorizes, contentAddress, coordinationDriverAgent, createBudgetPool, createExecutor, createExecutorRegistry, createInbox, createMcpEnvironment, createPartsTraceSource, createPushTraceSource, createRootHandle, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, decodeAnthropicPart, decodeOpenAiPart, decodeOpencodePart, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultToolDetectors, definePersona, defineStrategy, depthDriver, deterministicCompletion, discriminatingMeans, driverChild, driverExecutorFactory, driverRuntime, equalKOnCost, extractLlmCallEvent, fanout, flatWidenGate, 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, routerDriverChat, runAgentic, runBenchmark, runInWorkspace, runPersonified, runStrategyEvolution, sample, sampleThenRefine, sandboxSessionTraceSource, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervisorSkill, toToolSpan, toolPartDecoders, trajectoryReport, verify, watchTrace, widen, withDriverExecutor } from './runtime.js';
|
|
3
|
+
export { d as AssertTraceDerivedFindings, A as AuthoredHarness, u as CoderCheckConstraints, v as CoderCheckInput, g as CombinatorShape, c as Corpus, l as CorpusFilter, C as CorpusRecord, w as DefinePersona, D as DefinePersonaInput, t as DeliverableSpec, E as EqualKArm, x as EqualKOnCost, q as EqualKOnCostOptions, r as EqualKVerdict, y as Fanout, F as FanoutOptions, z as FanoutSynthesis, j as FanoutWinnerSelector, B as FlatWidenGate, p as LoopShape, G as LoopUntil, L as LoopUntilSpec, H as LoopUntilState, O as Outcome, I as Panel, J as PanelJudge, P as PanelSpec, K as PanelVerdict, M as PatchDeliverableOptions, m as Persona, N as PersonaContext, Q as PersonaExecutors, U as Pipeline, i as PipelineStage, X as RenderCorpusToInstructions, R as RenderCorpusToInstructionsOptions, Y as RunPersonified, n as RunPersonifiedOptions, f as ScopeAnalyst, S as ScopeAnalyzeInput, h as ScopeWidenGate, Z as ShapeBudget, _ as ShapeContext, o as ShapeRegistry, e as SteerContext, $ as TrajectoryNode, s as TrajectoryReport, a0 as TrajectoryReportFn, T as TrajectoryReportOptions, a1 as Verify, V as VerifySpec, a2 as Widen, a3 as WidenDecision, a4 as WidenLineage, k as WidenSpec, W as WinnerStrategy, a5 as WorktreeCliExecutorOptions, a6 as WorktreeCommandResult, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a7 as countDiffLines, a8 as createWorktreeCliExecutor, a9 as gateOnDeliverable, aa as isNonEmptyPatch, ab as patchDelivered, ac as runCoderChecks, ad as touchedPathsFromPatch, ae as touchesSecretPath, af as worktreeFanout } from './worktree-fanout-CBULEoVe.js';
|
|
3
4
|
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
|
-
export { R as RunLoopOptions, c as createSandboxForSpec, d as defaultSelectWinner, r as runLoop } from './run-loop-
|
|
5
|
-
export {
|
|
6
|
-
export { A as
|
|
5
|
+
export { R as RunLoopOptions, c as createSandboxForSpec, d as defaultSelectWinner, r as runLoop } from './run-loop-D3PwlG7J.js';
|
|
6
|
+
export { B as BusEvent, p as BusRecord, q as BusStats, E as EventBus, P as PublishOptions, r as createEventBus } from './coordination-k29badiX.js';
|
|
7
|
+
export { A as Agent, h as AgentSpec, B as Budget, n as Executor, bc as ExecutorContext, b9 as ExecutorFactory, E as ExecutorRegistry, bd as ExecutorResult, be as Handle, N as NodeId, bf as NodeSnapshot, bg as NodeStatus, bh as Restart, g as ResultBlobStore, j as RootHandle, bi as RootSignal, bj as Runtime, S as Scope, l as Settled, b7 as SpawnEvent, i as SpawnJournal, bk as SpawnOpts, m as Spend, k as SupervisedResult, bb as Supervisor, bl as SupervisorOpts, b8 as TreeView, ba as UsageEvent, bm as WidenGate } from './delegates-CWMv_rKL.js';
|
|
8
|
+
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, e as LoopSandboxPlacement, Q as LoopStartedPayload, T as LoopTeardownFailedPayload, f as LoopTokenUsage, g as LoopTraceEmitter, d as LoopTraceEvent, L as LoopWinner, O as OutputAdapter, S as SandboxClient, U as ValidationCtx, V as Validator } from './types-Crxftafi.js';
|
|
7
9
|
export { DefaultVerdict } from '@tangle-network/agent-eval';
|
|
8
10
|
import './runtime-hooks-C7JwKb9E.js';
|
|
9
11
|
import '@tangle-network/agent-eval/campaign';
|
|
10
12
|
import './types-p8dWBIXL.js';
|
|
11
|
-
import './coder-CybltHEm.js';
|
|
12
13
|
import './local-harness-BE_h8szs.js';
|
|
13
14
|
import 'node:child_process';
|
|
14
15
|
import '@tangle-network/agent-eval/pipelines';
|
|
15
|
-
import './
|
|
16
|
+
import './coder-DD5J5Onk.js';
|
|
16
17
|
import './substrate-CUgk7F7s.js';
|
package/dist/loops.js
CHANGED
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
buildSteerContext,
|
|
20
20
|
builtinShapes,
|
|
21
21
|
cliWorktreeExecutor,
|
|
22
|
-
coderDeliverable,
|
|
23
22
|
completionAuthorizes,
|
|
24
23
|
contentAddress,
|
|
25
24
|
coordinationDriverAgent,
|
|
25
|
+
countDiffLines,
|
|
26
26
|
createBudgetPool,
|
|
27
27
|
createEventBus,
|
|
28
28
|
createExecutor,
|
|
@@ -65,6 +65,7 @@ import {
|
|
|
65
65
|
harvestCorpus,
|
|
66
66
|
inlineSandboxClient,
|
|
67
67
|
isDriverSpec,
|
|
68
|
+
isNonEmptyPatch,
|
|
68
69
|
jjWorkspace,
|
|
69
70
|
localShell,
|
|
70
71
|
loopDispatch,
|
|
@@ -74,6 +75,7 @@ import {
|
|
|
74
75
|
observe,
|
|
75
76
|
openSandboxRun,
|
|
76
77
|
panel,
|
|
78
|
+
patchDelivered,
|
|
77
79
|
pickChampion,
|
|
78
80
|
pipeline,
|
|
79
81
|
printBenchmarkReport,
|
|
@@ -93,6 +95,7 @@ import {
|
|
|
93
95
|
routerToolLoop,
|
|
94
96
|
runAgentic,
|
|
95
97
|
runBenchmark,
|
|
98
|
+
runCoderChecks,
|
|
96
99
|
runInWorkspace,
|
|
97
100
|
runLoop,
|
|
98
101
|
runPersonified,
|
|
@@ -101,6 +104,7 @@ import {
|
|
|
101
104
|
sampleThenRefine,
|
|
102
105
|
sandboxSessionTraceSource,
|
|
103
106
|
selectChampion,
|
|
107
|
+
selectValidWinner,
|
|
104
108
|
sentinelCompletion,
|
|
105
109
|
serveCoordinationMcp,
|
|
106
110
|
settledToIteration,
|
|
@@ -110,14 +114,15 @@ import {
|
|
|
110
114
|
supervisorSkill,
|
|
111
115
|
toToolSpan,
|
|
112
116
|
toolPartDecoders,
|
|
117
|
+
touchedPathsFromPatch,
|
|
118
|
+
touchesSecretPath,
|
|
113
119
|
trajectoryReport,
|
|
114
120
|
verify,
|
|
115
121
|
watchTrace,
|
|
116
122
|
widen,
|
|
117
123
|
withDriverExecutor,
|
|
118
|
-
|
|
119
|
-
} from "./chunk-
|
|
120
|
-
import "./chunk-7QYOXFCD.js";
|
|
124
|
+
worktreeFanout
|
|
125
|
+
} from "./chunk-VCOT7XEQ.js";
|
|
121
126
|
import "./chunk-WIR4HOOJ.js";
|
|
122
127
|
import {
|
|
123
128
|
extractLlmCallEvent,
|
|
@@ -147,10 +152,10 @@ export {
|
|
|
147
152
|
buildSteerContext,
|
|
148
153
|
builtinShapes,
|
|
149
154
|
cliWorktreeExecutor,
|
|
150
|
-
coderDeliverable,
|
|
151
155
|
completionAuthorizes,
|
|
152
156
|
contentAddress,
|
|
153
157
|
coordinationDriverAgent,
|
|
158
|
+
countDiffLines,
|
|
154
159
|
createBudgetPool,
|
|
155
160
|
createEventBus,
|
|
156
161
|
createExecutor,
|
|
@@ -194,6 +199,7 @@ export {
|
|
|
194
199
|
harvestCorpus,
|
|
195
200
|
inlineSandboxClient,
|
|
196
201
|
isDriverSpec,
|
|
202
|
+
isNonEmptyPatch,
|
|
197
203
|
jjWorkspace,
|
|
198
204
|
localShell,
|
|
199
205
|
loopDispatch,
|
|
@@ -204,6 +210,7 @@ export {
|
|
|
204
210
|
observe,
|
|
205
211
|
openSandboxRun,
|
|
206
212
|
panel,
|
|
213
|
+
patchDelivered,
|
|
207
214
|
pickChampion,
|
|
208
215
|
pipeline,
|
|
209
216
|
printBenchmarkReport,
|
|
@@ -223,6 +230,7 @@ export {
|
|
|
223
230
|
routerToolLoop,
|
|
224
231
|
runAgentic,
|
|
225
232
|
runBenchmark,
|
|
233
|
+
runCoderChecks,
|
|
226
234
|
runInWorkspace,
|
|
227
235
|
runLoop,
|
|
228
236
|
runPersonified,
|
|
@@ -231,6 +239,7 @@ export {
|
|
|
231
239
|
sampleThenRefine,
|
|
232
240
|
sandboxSessionTraceSource,
|
|
233
241
|
selectChampion,
|
|
242
|
+
selectValidWinner,
|
|
234
243
|
sentinelCompletion,
|
|
235
244
|
serveCoordinationMcp,
|
|
236
245
|
settledToIteration,
|
|
@@ -240,11 +249,13 @@ export {
|
|
|
240
249
|
supervisorSkill,
|
|
241
250
|
toToolSpan,
|
|
242
251
|
toolPartDecoders,
|
|
252
|
+
touchedPathsFromPatch,
|
|
253
|
+
touchesSecretPath,
|
|
243
254
|
trajectoryReport,
|
|
244
255
|
verify,
|
|
245
256
|
watchTrace,
|
|
246
257
|
widen,
|
|
247
258
|
withDriverExecutor,
|
|
248
|
-
|
|
259
|
+
worktreeFanout
|
|
249
260
|
};
|
|
250
261
|
//# sourceMappingURL=loops.js.map
|
package/dist/mcp/bin.js
CHANGED
|
@@ -3,15 +3,18 @@ import {
|
|
|
3
3
|
createPropagatingTraceEmitter,
|
|
4
4
|
detectExecutor,
|
|
5
5
|
readTraceContextFromEnv
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-Q5R33I7Y.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveRouterBaseUrl
|
|
9
9
|
} from "../chunk-GRAGM4MC.js";
|
|
10
10
|
import {
|
|
11
11
|
coderTaskFromArgs,
|
|
12
|
-
|
|
12
|
+
detachedSessionDelegate,
|
|
13
13
|
settleDetachedCoderTurn
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-IBRJTG7O.js";
|
|
15
|
+
import {
|
|
16
|
+
coderTaskToPrompt
|
|
17
|
+
} from "../chunk-7IXF3VUJ.js";
|
|
15
18
|
import {
|
|
16
19
|
DEFAULT_SANDBOX_BASE_URL
|
|
17
20
|
} from "../chunk-XRYEZPR6.js";
|
|
@@ -26,10 +29,7 @@ import {
|
|
|
26
29
|
parseDetachedSessionRef,
|
|
27
30
|
runDetachedTurn,
|
|
28
31
|
runLoop
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import {
|
|
31
|
-
coderProfile
|
|
32
|
-
} from "../chunk-7QYOXFCD.js";
|
|
32
|
+
} from "../chunk-VCOT7XEQ.js";
|
|
33
33
|
import "../chunk-WIR4HOOJ.js";
|
|
34
34
|
import "../chunk-VLF5RHEQ.js";
|
|
35
35
|
import "../chunk-GLMFBUKT.js";
|
|
@@ -117,14 +117,14 @@ async function main() {
|
|
|
117
117
|
`
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
|
-
const coderDelegate = wantCoder && executor ?
|
|
120
|
+
const coderDelegate = wantCoder && executor ? detachedSessionDelegate({
|
|
121
121
|
executor,
|
|
122
122
|
fanoutHarnesses,
|
|
123
123
|
maxConcurrency,
|
|
124
124
|
traceEmitter
|
|
125
125
|
}) : void 0;
|
|
126
126
|
const researcherSupport = wantResearcher && executor ? await loadResearcherSupport(executor, maxConcurrency, traceEmitter) : void 0;
|
|
127
|
-
const detachedDispatch = Boolean(process.env.AGENT_RUNTIME_DELEGATION_STATE_FILE?.trim()) && process.env.AGENT_RUNTIME_DELEGATION_DETACHED !== "0" && Boolean(process.env.TANGLE_API_KEY) && (executor?.placement === "sibling" || executor?.placement === "fleet");
|
|
127
|
+
const detachedDispatch = process.env.MCP_ENABLE_DETACHED_RESUME === "1" && Boolean(process.env.AGENT_RUNTIME_DELEGATION_STATE_FILE?.trim()) && process.env.AGENT_RUNTIME_DELEGATION_DETACHED !== "0" && Boolean(process.env.TANGLE_API_KEY) && (executor?.placement === "sibling" || executor?.placement === "fleet");
|
|
128
128
|
if (detachedDispatch) {
|
|
129
129
|
process.stderr.write(
|
|
130
130
|
"agent-runtime-mcp: detached dispatch enabled \u2014 single-variant delegations resume across restarts\n"
|
|
@@ -198,7 +198,7 @@ function buildResumeDriver(args) {
|
|
|
198
198
|
buildMessage(record) {
|
|
199
199
|
if (record.profile === "coder") {
|
|
200
200
|
const task = coderTaskFromArgs(record.args);
|
|
201
|
-
return
|
|
201
|
+
return coderTaskToPrompt(task);
|
|
202
202
|
}
|
|
203
203
|
if (record.profile === "researcher" && args.researcherResume) {
|
|
204
204
|
return args.researcherResume.message(record.args);
|