@tangle-network/agent-runtime 0.117.0 → 0.119.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 (80) hide show
  1. package/README.md +2 -0
  2. package/dist/{activation-BZ2FyX0O.js → activation-DdIpwQ0k.js} +3 -3
  3. package/dist/{activation-BZ2FyX0O.js.map → activation-DdIpwQ0k.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +3 -3
  6. package/dist/candidate-execution/index.d.ts +2 -2
  7. package/dist/candidate-execution/index.js +4 -4
  8. package/dist/{candidate-execution-PX61zXd2.js → candidate-execution-DDkSRPjY.js} +4 -4
  9. package/dist/{candidate-execution-PX61zXd2.js.map → candidate-execution-DDkSRPjY.js.map} +1 -1
  10. package/dist/{environment-provider-CTZjdIUg.d.ts → environment-provider-Bh4nX2qt.d.ts} +9 -1
  11. package/dist/{environment-provider-CzcEyRL7.js → environment-provider-Cr75N-rU.js} +2 -2
  12. package/dist/{environment-provider-CzcEyRL7.js.map → environment-provider-Cr75N-rU.js.map} +1 -1
  13. package/dist/environment-provider.d.ts +1 -1
  14. package/dist/environment-provider.js +1 -1
  15. package/dist/{improvement-cycle-Bcqz8rZI.js → improvement-cycle-zjR-MXwK.js} +7 -7
  16. package/dist/improvement-cycle-zjR-MXwK.js.map +1 -0
  17. package/dist/{index-X2YwyWkc.d.ts → index-B3bHsVLw.d.ts} +2 -2
  18. package/dist/{index-BHSYaWrC.d.ts → index-BLsKcxNd.d.ts} +3 -3
  19. package/dist/{index-DPWJxSRa.d.ts → index-CGADWaa_.d.ts} +20 -165
  20. package/dist/{index-BTUG4Xln.d.ts → index-I35151Fr.d.ts} +9 -9
  21. package/dist/index.d.ts +8 -8
  22. package/dist/index.js +12 -12
  23. package/dist/index.js.map +1 -1
  24. package/dist/intelligence.d.ts +4 -4
  25. package/dist/intelligence.js +6 -6
  26. package/dist/kernel.d.ts +4 -4
  27. package/dist/kernel.js +8 -7
  28. package/dist/{knowledge-CDlrayRc.js → knowledge-I1e9zQGj.js} +5 -5
  29. package/dist/{knowledge-CDlrayRc.js.map → knowledge-I1e9zQGj.js.map} +1 -1
  30. package/dist/knowledge.d.ts +1 -1
  31. package/dist/knowledge.js +1 -1
  32. package/dist/{local-harness-t6cDWDQ2.d.ts → local-harness-BIajef4A.d.ts} +29 -7
  33. package/dist/{loop-runner-bin-oyL7it5O.d.ts → loop-runner-bin-BeG9vTdE.d.ts} +3 -3
  34. package/dist/{loop-runner-bin-BxhhDtmG.js → loop-runner-bin-L996YVPS.js} +3 -3
  35. package/dist/{loop-runner-bin-BxhhDtmG.js.map → loop-runner-bin-L996YVPS.js.map} +1 -1
  36. package/dist/loop-runner-bin.d.ts +1 -1
  37. package/dist/loop-runner-bin.js +1 -1
  38. package/dist/mcp/bin.js +2 -2
  39. package/dist/mcp/bin.js.map +1 -1
  40. package/dist/mcp/index.d.ts +5 -5
  41. package/dist/mcp/index.js +8 -13
  42. package/dist/mcp/index.js.map +1 -1
  43. package/dist/{openai-tools-CO9X36zy.js → openai-tools-CvFEzw6f.js} +2 -2
  44. package/dist/{openai-tools-CO9X36zy.js.map → openai-tools-CvFEzw6f.js.map} +1 -1
  45. package/dist/{prepare-BbI6qGOW.js → prepare-DpV6np9e.js} +44 -34
  46. package/dist/{prepare-BbI6qGOW.js.map → prepare-DpV6np9e.js.map} +1 -1
  47. package/dist/primeintellect/index.d.ts +1 -1
  48. package/dist/{protected-model-port-B0yXMpLL.d.ts → protected-model-port-CoJOiINX.d.ts} +2 -2
  49. package/dist/{protected-model-port-COnyZfML.js → protected-model-port-vQLBRoAQ.js} +2 -2
  50. package/dist/{protected-model-port-COnyZfML.js.map → protected-model-port-vQLBRoAQ.js.map} +1 -1
  51. package/dist/{redact-BEtQtvd6.d.ts → redact-PQzmE1Jn.d.ts} +4 -4
  52. package/dist/run-layout-C2FGmZ3v.js +158 -0
  53. package/dist/run-layout-C2FGmZ3v.js.map +1 -0
  54. package/dist/{runtime-Ce39zfqn.js → runtime-D4e3GP5K.js} +7 -142
  55. package/dist/runtime-D4e3GP5K.js.map +1 -0
  56. package/dist/{spawn-journal-B_mu_oH2.js → spawn-journal-IeXpidO2.js} +2 -2
  57. package/dist/{spawn-journal-B_mu_oH2.js.map → spawn-journal-IeXpidO2.js.map} +1 -1
  58. package/dist/{structural-rollout-DLwW69R4.js → structural-rollout-DQHO3b2Y.js} +3 -3
  59. package/dist/{structural-rollout-DLwW69R4.js.map → structural-rollout-DQHO3b2Y.js.map} +1 -1
  60. package/dist/{supervise-U7_K5yuV.js → supervise-Cq50UT5-.js} +289 -1084
  61. package/dist/supervise-Cq50UT5-.js.map +1 -0
  62. package/dist/{supervisor-CAXiCKnX.js → supervisor-CpT9yAxL.js} +113 -35
  63. package/dist/supervisor-CpT9yAxL.js.map +1 -0
  64. package/dist/testing.js +10 -10
  65. package/dist/top-app-5unxqovu.js +1088 -0
  66. package/dist/top-app-5unxqovu.js.map +1 -0
  67. package/dist/tui/bin.d.ts +1 -0
  68. package/dist/tui/bin.js +19 -0
  69. package/dist/tui/bin.js.map +1 -0
  70. package/dist/tui/index.d.ts +209 -0
  71. package/dist/tui/index.js +2 -0
  72. package/dist/{util-Cc9g9Y-o.js → util-MVgdwuIS.js} +2 -2
  73. package/dist/{util-Cc9g9Y-o.js.map → util-MVgdwuIS.js.map} +1 -1
  74. package/dist/{workspace-archive-CqPIijFA.js → workspace-archive-B4SkNJjw.js} +2 -2
  75. package/dist/{workspace-archive-CqPIijFA.js.map → workspace-archive-B4SkNJjw.js.map} +1 -1
  76. package/package.json +8 -2
  77. package/dist/improvement-cycle-Bcqz8rZI.js.map +0 -1
  78. package/dist/runtime-Ce39zfqn.js.map +0 -1
  79. package/dist/supervise-U7_K5yuV.js.map +0 -1
  80. package/dist/supervisor-CAXiCKnX.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { C as AgentCandidateExecutionClaim, F as AgentCandidateExecutionTerminalResult, M as AgentCandidateExecutionRecoveryEvidence, N as AgentCandidateExecutionStageResult, O as AgentCandidateExecutionFinishResult, S as AgentCandidateExecutionAttemptRef, T as AgentCandidateExecutionClaimStore, j as AgentCandidateExecutionPhaseResult, k as AgentCandidateExecutionLease, w as AgentCandidateExecutionClaimResult, x as AgentCandidateExecutionAttemptRecord } from "./protected-model-port-B0yXMpLL.js";
1
+ import { C as AgentCandidateExecutionClaim, F as AgentCandidateExecutionTerminalResult, M as AgentCandidateExecutionRecoveryEvidence, N as AgentCandidateExecutionStageResult, O as AgentCandidateExecutionFinishResult, S as AgentCandidateExecutionAttemptRef, T as AgentCandidateExecutionClaimStore, j as AgentCandidateExecutionPhaseResult, k as AgentCandidateExecutionLease, w as AgentCandidateExecutionClaimResult, x as AgentCandidateExecutionAttemptRecord } from "./protected-model-port-CoJOiINX.js";
2
2
  import { B as VerifiedAgentCandidate, O as AgentCandidateVerificationPorts, P as PreparedAgentCandidateExecution, a as AgentCandidateExecutionPorts, b as AgentCandidateOutputPurpose, c as AgentCandidateExecutorPort, k as AgentCandidateWorkspacePort, p as AgentCandidateExecutorWorkspaceFile, y as AgentCandidateOutputArtifactPort } from "./types-BaIpb0XT.js";
3
3
  import { TraceStore } from "@tangle-network/agent-eval";
4
4
  import { CodeSurface } from "@tangle-network/agent-eval/campaign";
@@ -190,4 +190,4 @@ declare function captureAgentCandidateWorkspaceFiles(input: readonly AgentCandid
190
190
  declare function createAgentCandidateWorkspacePort(options?: CreateAgentCandidateWorkspacePortOptions): AgentCandidateWorkspacePort;
191
191
  //#endregion
192
192
  export { AgentCandidateCodeSurfaceSource as C, AgentCandidateBundleInput as D, buildAgentCandidateBundle as E, sealAgentCandidateBundle as O, AgentCandidateCodeSource as S, BuildAgentCandidateBundleInput as T, exactProcessProviderAsCandidateExecutor as _, captureAgentCandidateWorkspace as a, FileAgentCandidateExecutionClaimStore as b, AGENT_CANDIDATE_EXECUTION_SUPPORT as c, recoverExpiredAgentCandidateExecution as d, persistCandidateOutputArtifact as f, ExactProcessCandidateExecutorOptions as g, candidateKnowledgeExecutionPaths as h, CreateAgentCandidateWorkspacePortOptions as i, verifyAgentCandidateBundle as l, CANDIDATE_KNOWLEDGE_ROOT_ENV as m, CaptureAgentCandidateWorkspaceOptions as n, captureAgentCandidateWorkspaceFiles as o, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV as p, CapturedAgentCandidateWorkspace as r, createAgentCandidateWorkspacePort as s, AgentCandidateWorkspaceArchiveLimits as t, RecoverExpiredAgentCandidateOptions as u, DisposePreparedAgentCandidateOptions as v, AgentCandidateProfileSource as w, FileAgentCandidateExecutionClaimStoreOptions as x, disposePreparedAgentCandidateExecution as y };
193
- //# sourceMappingURL=index-X2YwyWkc.d.ts.map
193
+ //# sourceMappingURL=index-B3bHsVLw.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Q as SuperviseOptions, gl as ExecutorConfig, lf as DeliverableSpec, pt as SupervisorProfile } from "./index-DPWJxSRa.js";
2
- import { Ct as SupervisedResult, z as Budget } from "./environment-provider-CTZjdIUg.js";
1
+ import { Q as SuperviseOptions, Zd as DeliverableSpec, pt as SupervisorProfile, yl as ExecutorConfig } from "./index-CGADWaa_.js";
2
+ import { Ct as SupervisedResult, z as Budget } from "./environment-provider-Bh4nX2qt.js";
3
3
  import { y as AgentCandidateOutputArtifactPort } from "./types-BaIpb0XT.js";
4
4
  import { i as AgentImprovementActivationTransition, n as AgentImprovementActivationResultStore, t as AgentImprovementActivationReconciliation } from "./activation-DyWB0K6E.js";
5
5
  import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge } from "@tangle-network/agent-interface";
@@ -137,4 +137,4 @@ declare function runKnowledgeImprovementJob(options: RunKnowledgeImprovementJobO
137
137
  declare function buildKnowledgeImprovementExperimentBundles(bundle: AgentCandidateBundle, knowledge: KnowledgeImprovementCandidatePair): KnowledgeImprovementExperimentBundles;
138
138
  //#endregion
139
139
  export { KnowledgeImprovementActivationExecutor as C, CreateKnowledgeImprovementActivationExecutorOptions as S, SupervisedKnowledgeUpdater as _, KnowledgeImprovementJobResult as a, knowledgeReadinessDeliverable as b, createAgentKnowledgeReadinessCheck as c, KnowledgeReadinessCheckInput as d, KnowledgeReadinessCheckResult as f, SupervisedKnowledgeUpdateResult as g, SupervisedKnowledgeUpdateOptions as h, KnowledgeImprovementJobMeasurement as i, runKnowledgeImprovementJob as l, SupervisedKnowledgeUpdateInput as m, KnowledgeImprovementCandidatePair as n, RunKnowledgeImprovementJobOptions as o, RESEARCH_SUPERVISOR_SYSTEM_PROMPT as p, KnowledgeImprovementExperimentBundles as r, buildKnowledgeImprovementExperimentBundles as s, AgentKnowledgeReadinessCheckOptions as t, KnowledgeReadinessCheck as u, createSupervisedKnowledgeUpdater as v, createKnowledgeImprovementActivationExecutor as w, runSupervisedKnowledgeUpdate as x, formatSupervisedKnowledgeTask as y };
140
- //# sourceMappingURL=index-BHSYaWrC.d.ts.map
140
+ //# sourceMappingURL=index-BLsKcxNd.d.ts.map
@@ -2,9 +2,9 @@ import { d as AgentTaskStatus, f as BackendErrorDetail, i as AgentExecutionBacke
2
2
  import { n as AnalystRegistryLike } from "./types-zWfqDjeL.js";
3
3
  import { l as RuntimeHooks } from "./runtime-hooks-sbRpjStq.js";
4
4
  import { C as MountRecorder, D as SelectionReceipt, E as SandboxClient, a as Iteration, b as LoopTraceEvent, d as LoopLineageOptions, i as ExecCtx, k as Validator, m as LoopResult, r as Driver, t as AgentRunSpec, w as OutputAdapter, x as LoopWinner, y as LoopTraceEmitter } from "./types-DnNGJ5Gz.js";
5
- import { B as DefaultVerdict, Cn as WaitProbeRegistry, Ct as SupervisedResult, Et as TreeView, Fn as TraceSource, H as Executor, Hn as ExecutorProgress, I as Agent, K as ExecutorFactory, L as AgentExecutionRef, Nt as WorkerTraceResolver, Ot as UsageEvent, R as AgentSpec, Rt as TraceContext, St as SteerableRootHandle, V as ExecutionBindingReceipt, Wn as WorkerProgress, Xt as OtelExporter, Y as ExecutorRegistry, Yt as OtelExportConfig, _t as SpawnJournal, at as ProfileMaterializationReceipt, bn as PendingWait, ct as ResumedKeyState, gt as SpawnEvent, ht as Settled, i as AgentEnvironmentProvider, jt as WorkerTraceEvidence, mt as Scope, nt as NodeId, o as AgentEnvironmentProviderRegistry, pt as Runtime, rt as NodeSnapshot, st as ResultBlobStore, tt as NodeExecutionIdentity, ut as RootHandle, vt as SpawnOpts, w as ProviderExecutorOptions, wt as Supervisor, xt as Spend, z as Budget } from "./environment-provider-CTZjdIUg.js";
5
+ import { B as DefaultVerdict, Cn as WaitProbeRegistry, Ct as SupervisedResult, Et as TreeView, Fn as TraceSource, H as Executor, Hn as ExecutorProgress, I as Agent, K as ExecutorFactory, L as AgentExecutionRef, Nt as WorkerTraceResolver, Ot as UsageEvent, R as AgentSpec, Rt as TraceContext, St as SteerableRootHandle, V as ExecutionBindingReceipt, Wn as WorkerProgress, Xt as OtelExporter, Y as ExecutorRegistry, Yt as OtelExportConfig, _t as SpawnJournal, at as ProfileMaterializationReceipt, bn as PendingWait, ct as ResumedKeyState, gt as SpawnEvent, ht as Settled, i as AgentEnvironmentProvider, jt as WorkerTraceEvidence, mt as Scope, nt as NodeId, o as AgentEnvironmentProviderRegistry, pt as Runtime, rt as NodeSnapshot, st as ResultBlobStore, tt as NodeExecutionIdentity, ut as RootHandle, vt as SpawnOpts, w as ProviderExecutorOptions, wt as Supervisor, xt as Spend, z as Budget } from "./environment-provider-Bh4nX2qt.js";
6
6
  import { o as UiLens, r as UiFinding, s as CoderTask } from "./substrate-BcnuSHXm.js";
7
- import { S as ToolLoopCompactionOptions, b as ToolLoopChat, c as runLocalHarness, d as RouterConfig, i as LocalHarness, m as ToolSpec, n as CodexExecutionPolicy, r as CodexTokenUsage } from "./local-harness-t6cDWDQ2.js";
7
+ import { E as ToolLoopCompactionOptions, f as runLocalHarness, h as RouterConfig, n as CodexExecutionPolicy, o as LocalHarness, r as CodexTokenUsage, v as ToolSpec, w as ToolLoopChat } from "./local-harness-BIajef4A.js";
8
8
  import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, AgentProfile, AnalystFinding, AnalystFinding as AnalystFinding$1, AnalystFinding as AnalystFinding$2, AnalystRunInputs, ChatClient, ConfigError, DetectorSignal, HarnessType, JudgeError, MaximumCharge, NotFoundError, ProposalFinding, RankTestMethod, RunRecord, StreamingDetector, ToolSpan, TraceAnalysisStore, ValidationError, buildTrajectory, computeFindingId as computeFindingId$1, makeFinding as makeFinding$1 } from "@tangle-network/agent-eval";
9
9
  import { DispatchFn, JudgeConfig, ProfileDispatchFn, RunProfileMatrixOptions, RunProfileMatrixResult, Scenario } from "@tangle-network/agent-eval/campaign";
10
10
  import { AGENT_PROFILE_MATERIALIZATION_AXES, AgentProfile as AgentProfile$1, AgentProfile as AgentProfile$2, AgentProfile as AgentProfile$3, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePrompt, AgentProfileResources, AgentProfileSecurityPolicy, CanonicalAgentProfileMaterializationAxis, Sha256Digest, profileMaterializationAxes } from "@tangle-network/agent-interface";
@@ -1886,164 +1886,6 @@ type WorktreeCheckRunner = (opts: {
1886
1886
  output: string;
1887
1887
  }>;
1888
1888
  //#endregion
1889
- //#region src/runtime/supervise/pi-mcp.d.ts
1890
- /** The pi extension that gives pi MCP at all. Everything here is gated on it being loadable. */
1891
- declare const PI_MCP_ADAPTER = "pi-mcp-adapter";
1892
- /** Overrides adapter detection for installs whose path does not carry the adapter's name. */
1893
- declare const PI_MCP_ADAPTER_ENV = "AGENT_RUNTIME_PI_MCP_ADAPTER";
1894
- /** The adapter-registered flag that names this run's config file (`pi-mcp-adapter` `index.ts:252`). */
1895
- declare const PI_MCP_CONFIG_FLAG = "--mcp-config";
1896
- /** What the caller must call once pi has exited, and where the config landed. */
1897
- interface PiMcpMount {
1898
- /** Absolute path of the file passed to `--mcp-config`. Unique to this worker execution. */
1899
- configPath: string;
1900
- /** Server names actually written, post-filter — never the raw `profile.mcp` keys. */
1901
- serverNames: string[];
1902
- /** Remove the private config directory. Idempotent; safe to call on any exit path. */
1903
- cleanup(): void;
1904
- }
1905
- /**
1906
- * What pi was actually given, as opposed to what the profile declared. This is the observable that
1907
- * makes rule 2 above honest: `adapterInjected` is `true` exactly when this module added an extension
1908
- * the caller did not ask for, because without it the MCP servers the caller DID ask for could not
1909
- * have mounted.
1910
- */
1911
- interface PiMcpReceipt {
1912
- /** Server names written into `configPath`, in declaration order. */
1913
- servers: string[];
1914
- /** Absolute path of the mounted config. */
1915
- configPath: string;
1916
- /** `extensions.pi.load` entries as pi received them, resolved to absolute entry files. */
1917
- extensions: string[];
1918
- /** True when `pi-mcp-adapter` was absent from an explicit `load` array and was added here. */
1919
- adapterInjected: boolean;
1920
- }
1921
- /** Everything `piExecutor` needs between "profile in hand" and "pi spawned". */
1922
- interface PiMcpPreparation {
1923
- /** Extra argv for `pi`, in flag order: extension flags first, then `--mcp-config <path>`. */
1924
- args: string[];
1925
- /** Present only when at least one usable MCP server was declared. */
1926
- mount: PiMcpMount | null;
1927
- /** Present only when a mount happened — the derived-versus-declared record. */
1928
- receipt: PiMcpReceipt | undefined;
1929
- }
1930
- /**
1931
- * True when pi can actually consume MCP config — i.e. `pi-mcp-adapter` is installed. Ported from
1932
- * cli-bridge `pi.ts:189`: an env override first (for vendored installs whose path does not carry the
1933
- * adapter's name), then the npm install directory, then a scan of `settings.json` `packages` in
1934
- * which a local-path entry is resolved by reading the target's `package.json` `name`. An
1935
- * unreadable or absent `settings.json` reports "not detected"; it never throws and never assumes.
1936
- */
1937
- declare function piMcpAdapterAvailable(): boolean;
1938
- /**
1939
- * Build the canonical `{ mcpServers }` body the adapter reads, from `AgentProfile.mcp`.
1940
- *
1941
- * Every server is written with `directTools: true` (`pi-mcp-adapter` types.ts:351), which
1942
- * registers its tools as NATIVE pi tools instead of hiding them behind the generic `mcp` tool.
1943
- * Without it an agent must discover its own verbs before it can use them — connect to the server,
1944
- * then describe each tool — and a measured run spent 58 turns and 639,632 input tokens doing that
1945
- * before it could delegate once. A profile that declares an MCP server is asking for its tools,
1946
- * not for a directory it has to browse.
1947
- *
1948
- * This is cli-bridge's `buildCanonicalMcpServers`
1949
- * (`/home/drew/code/cli-bridge/src/backends/profile-support.ts:253`) reproduced field for field and
1950
- * in the same key order — same drop of `enabled:false`, same stdio-versus-remote decision
1951
- * (`isStdioMcpSpec`, `profile-support.ts:177`), same `{command, args, env}` and `{type, url,
1952
- * headers}` bodies, same silent drop of an entry with nothing to connect to. For any server both
1953
- * input types can express, the emitted JSON is byte-identical.
1954
- *
1955
- * The two input types are not the same type, so three differences remain and each is a field one
1956
- * side cannot express:
1957
- *
1958
- * 1. **`cwd` (emitted here, absent there).** `AgentProfileLocalMcpServer` has `cwd`; cli-bridge's
1959
- * `McpServerSpec` (`src/backends/types.ts:53`) has no such field, so it can never emit one. The
1960
- * adapter honors it (`pi-mcp-adapter` `types.ts:325`, `ServerEntry.cwd`), so dropping it would
1961
- * silently discard a declared setting. It is emitted where cli-bridge emits `timeout`.
1962
- * 2. **`timeout` (emitted there, absent here).** `AgentProfileMcpServer` has no timeout field, so
1963
- * there is nothing to emit. (The adapter's own knob is `requestTimeoutMs`, not `timeout`.)
1964
- * 3. **A `url` with no declared transport.** cli-bridge DROPS it — its remote branch requires an
1965
- * explicit `spec.type` — even though its own `McpServerSpec` docstring says "http is implied if
1966
- * `url` is set" (`types.ts:53-56`). `transport` is optional on `AgentProfileRemoteMcpServer`, so
1967
- * dropping such a server here would be exactly the silent-drop bug this module exists to fix.
1968
- * We honor the documented convention and emit `type: 'http'`.
1969
- *
1970
- * `sse` is ACCEPTED and forwarded verbatim, as cli-bridge forwards it. The adapter connects a URL
1971
- * server by probing StreamableHTTP and falling back to `SSEClientTransport` when the probe fails
1972
- * (`pi-mcp-adapter` `server-manager.ts:765`), so an SSE-only endpoint does connect. Its
1973
- * `ServerEntry` (`types.ts:319`) carries no transport discriminator at all, which means the `type`
1974
- * key is inert to the adapter either way — but it is what cli-bridge writes, and a config file that
1975
- * round-trips the caller's declared transport is the one that stays readable by both.
1976
- */
1977
- declare function buildPiMcpServers(mcp: Record<string, AgentProfileMcpServer> | undefined): Record<string, Record<string, unknown>>;
1978
- /** Where one worker execution's private config directory is created, and what it is called. */
1979
- interface PiMcpMountOptions {
1980
- /**
1981
- * The worker's own working directory (`PiSeam.cwd`). Omit when the seam names none: the config
1982
- * then lands in the OS temp directory. It is NEVER written into `process.cwd()` — the operator's
1983
- * own working directory is not a scratch space for a worker's config.
1984
- */
1985
- cwd?: string;
1986
- /**
1987
- * The executor's per-execution run id, folded into the directory name so a directory that somehow
1988
- * survives names the worker that left it. Uniqueness is NOT taken from this — `mkdtemp` provides
1989
- * it — because two workers built from one factory in the same millisecond share a run id stem.
1990
- */
1991
- runId: string;
1992
- }
1993
- /**
1994
- * The one call `piExecutor` makes before spawning pi: decide what pi must be told, fail loud if it
1995
- * cannot work, then mount.
1996
- *
1997
- * Order matters and is the point:
1998
- *
1999
- * 1. Canonicalize `profile.mcp` first, so the adapter gate keys off servers that would ACTUALLY be
2000
- * written — a block of `enabled:false` entries must not trip it.
2001
- * 2. If any server survives and `pi-mcp-adapter` is not installed, throw. No file has been written
2002
- * and pi has not been spawned.
2003
- * 3. Lower `extensions.pi.load` (which may itself throw on an unresolvable extension) — still before
2004
- * any file exists.
2005
- * 4. Only then create this execution's private config directory and emit `--mcp-config`.
2006
- *
2007
- * A profile with no usable MCP server is a pure no-op: no adapter check, no directory, no flags, no
2008
- * throw. `extensions.pi.load` on its own still produces flags, because reproducible ablation arms
2009
- * need them whether or not MCP is involved.
2010
- *
2011
- * The caller MUST call `mount.cleanup()` on every exit path — settle, throw, abort, timeout, and
2012
- * spawn failure — so the directory does not outlive the worker that owns it.
2013
- */
2014
- declare function preparePiMcp(profile: AgentProfile$1 | undefined, options: PiMcpMountOptions): PiMcpPreparation;
2015
- //#endregion
2016
- //#region src/runtime/supervise/pi-executor.d.ts
2017
- /** The runtime name `piExecutor` registers under. */
2018
- declare const PI_RUNTIME: Runtime;
2019
- /** Seam key the registry threads a `PiSeam` through (`ExecutorContext.seams['pi']`). */
2020
- declare const piSeamKey = "pi";
2021
- /** How to launch pi in its out-of-process RPC mode, and how long to wait on it. */
2022
- interface PiSeam {
2023
- /** The pi executable (default `'pi'`). Anything on PATH or an absolute path. */
2024
- bin?: string;
2025
- /** Extra args appended after `--mode rpc`. `--provider` / `--model` are added from `model`. */
2026
- args?: ReadonlyArray<string>;
2027
- /** `provider/model` or just `model` — split on the first `/` into pi's two flags. */
2028
- model?: string;
2029
- cwd?: string;
2030
- env?: Record<string, string>;
2031
- /** Wall-clock ceiling for one `prompt` (the wait for `agent_settled`). Omit = no timeout. */
2032
- turnTimeoutMs?: number;
2033
- /** Newest-last activity window `progress()` reports. Default 12. */
2034
- activityWindow?: number;
2035
- }
2036
- /** Build the `Executor` for one pi worker. Registered as runtime `'pi'`. */
2037
- declare const piExecutor: ExecutorFactory<unknown>;
2038
- /** What one pi run reports about the terminal assistant turn, plus any derived MCP mount. */
2039
- interface PiExecutorOutput {
2040
- content: string;
2041
- turns: number;
2042
- /** Present only when `profile.mcp` declared at least one usable server. Records what pi was
2043
- * actually given — including an extension this executor added that the profile did not list. */
2044
- mcp?: PiMcpReceipt;
2045
- }
2046
- //#endregion
2047
1889
  //#region src/runtime/supervise/inbox.d.ts
2048
1890
  /**
2049
1891
  *
@@ -2259,6 +2101,8 @@ interface BridgeSeam {
2259
2101
  /** Per-resume-turn inference cap before the worker settles on its last output.
2260
2102
  * Mirrors `routerToolsInlineExecutor.maxTurns`; default 200 (runaway backstop). */
2261
2103
  maxTurns?: number;
2104
+ /** Newest-last activity window `progress()` reports. Default 12 (matches `PiSeam`). */
2105
+ activityWindow?: number;
2262
2106
  }
2263
2107
  /** Generic environment provider executor config. External packages implement
2264
2108
  * `AgentEnvironmentProvider`; this built-in wrapper lets `createExecutor`
@@ -2331,8 +2175,6 @@ type ExecutorConfig = ({
2331
2175
  } & CliWorktreeSeam) | ({
2332
2176
  backend: 'provider';
2333
2177
  } & ProviderSeam) | ({
2334
- backend: 'pi';
2335
- } & PiSeam) | ({
2336
2178
  backend: 'sandbox';
2337
2179
  harness?: BackendType;
2338
2180
  } & SandboxSeam);
@@ -7369,12 +7211,25 @@ declare function supervisorRunDir(rootDir: string, id: string): string;
7369
7211
  * here anymore.
7370
7212
  */
7371
7213
  declare function legacySupervisorRunDir(rootDir: string, id: string): string;
7214
+ /**
7215
+ * The pre-rename runs root (`<root>/.loops/supervisor`). Only readers that ENUMERATE historical
7216
+ * runs need this — the per-id form is {@link legacySupervisorRunDir}. Nothing writes here.
7217
+ */
7218
+ declare function legacySupervisorRunsRoot(rootDir: string): string;
7372
7219
  /** A worker label reduced to a safe filename stem. Empty labels get a stable fallback. */
7373
7220
  declare function safeWorkerFile(label: string): string;
7221
+ /** The directory holding every per-worker file of one run (inboxes and control-event logs). */
7222
+ declare function supervisorWorkersDir(eventDir: string): string;
7374
7223
  /** The durable inbox file for one worker of one run. */
7375
7224
  declare function workerInboxFile(rootDir: string, supervisorId: string, worker: string): string;
7376
7225
  /** Same, addressed from an already-known run directory (the reader's usual entry point). */
7377
7226
  declare function workerInboxFileFromEventDir(eventDir: string, worker: string): string;
7227
+ /**
7228
+ * The best-effort control-event log for one worker (`workers/<label>.ndjson`) — delivery
7229
+ * bookkeeping for steers, plus whatever lifecycle events a writer chooses to append. Distinct from
7230
+ * the inbox: the inbox is the durable down-leg queue, this is the record of what happened to it.
7231
+ */
7232
+ declare function workerControlLogFile(eventDir: string, worker: string): string;
7378
7233
  /**
7379
7234
  * Durably append one steer request to a worker's inbox and log the delivery attempt.
7380
7235
  *
@@ -8214,7 +8069,7 @@ interface AuthoredHarness {
8214
8069
  /** The supervisor-authored `AgentProfile` (systemPrompt + model reach the harness via §1.5). */
8215
8070
  profile: AgentProfile$1;
8216
8071
  /** Which local harness CLI drives this leaf. */
8217
- harness: 'claude' | 'codex' | 'opencode';
8072
+ harness: LocalHarness;
8218
8073
  /** Require measured usage from this leaf. Budgeted supervision refuses the default unmetered
8219
8074
  * local-CLI mode; set false only when the selected runner actually returns token usage. */
8220
8075
  budgetExempt?: WorktreeCliExecutorOptions['budgetExempt'];
@@ -8338,5 +8193,5 @@ interface VerifierEnvironmentOptions {
8338
8193
  /** Any checkable task as an `Environment`, no tool surface required: the artifact is the worker's answer and the domain is one deployable `check` over it. */
8339
8194
  declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
8340
8195
  //#endregion
8341
- export { SuperviseRegistry as $, LoopDispatchOptions as $a, McpServer as $c, CoderOutput as $d, renderCorpusToInstructions as $i, DiffResult as $l, authoredWorker as $n, Pipeline as $o, strategyAuthorContract as $r, LeaderboardOptions as $s, effectiveConcurrency as $t, DelegateCodeArgs as $u, GitWorkspaceOptions as A, AgenticTask as Aa, AuthorizeDownMessage as Ac, DELEGATION_TRACE_MAX_SPANS as Ad, DefineProfileMaterializationContractOptions as Af, extractLlmCallEvent as Ai, InboxMessage as Al, SupervisorFinalizer as An, observe as Ao, AgentTurnUsage as Ar, DefinedLeaderboard as As, writeWorkerSteer as At, createSiblingSandboxExecutor as Au, analyzeTrace as B, StrategyMessage as Ba, DownMessageEvent as Bc, DelegationStore as Bd, promptControlProfileMaterialization as Bf, resolveSandboxClient as Bi, PiMcpMount as Bl, PriorCoordination as Bn, EqualKVerdict as Bo, EvolutionCandidate as Br, defineLeaderboard as Bs, createWorktreeCliExecutor as Bt, parseDetachedSessionRef as Bu, closingWorkerNote as C, BenchmarkTaskRow as Ca, renderAnytimeTable as Cc, FeedbackRefersTo as Cd, pendingWaits as Cf, ForkCapableBox as Ci, createExecutorRegistry as Cl, createProgressTracker as Cn, HarvestFailure as Co, officialChecksFromMeta as Cr, PersonaContext as Cs, legacySupervisorRunDir as Ct, detachedSessionDelegate as Cu, UntrackedCopyStats as D, AgenticOptions as Da, createWaterfallCollector as Dc, UiAuditorDelegationOutput as Dd, AgentProfileMaterializationAxis as Df, createSandboxLineage as Di, SteerableSandboxSession as Dl, DeliveredOutput as Dn, ObserveInput as Do, structuralRollout as Dr, ShapeBudget as Ds, supervisorRunsRoot as Dt, FleetWorkspaceExecutorOptions as Du, CopyOptions as E, runBenchmark as Ea, WaterfallSpan as Ec, UiAuditLensFilter as Ed, AGENT_PROFILE_MATERIALIZATION_AXES as Ef, SessionCapableBox as Ei, SteerableSandboxArgs as El, sampleFromSettled as En, Observation as Eo, selectBestIndex as Er, RunPersonifiedOptions as Es, supervisorRunDir as Et, FleetHandle as Eu, gitWorkspace as F, ShotPersona as Fa, CoordinationToolsOptions as Fc, capDelegationTrace as Fd, assertProfileMaterialization as Ff, SandboxCapabilities as Fi, piExecutor as Fl, runTree as Fn, CorpusFilter as Fo, ChampionPick as Fr, LeaderboardIterationInfo as Fs, createInMemoryRunContext as Ft, DriveTurnTick as Fu, workerTraceAnalysisStore as G, breadthStrategy as Ga, QuestionOption as Gc, AgentEvalErrorCode as Gd, sandboxActProfileMaterialization as Gf, trajectoryReport as Gi, piMcpAdapterAvailable as Gl, ReservationTicket as Gn, FlatWidenGate as Go, discriminatingMeans as Gr, completionAuthorizes as Gs, createSupervisorSpanRecorder as Gt, DelegationResumeDriver as Gu, WorkerToolTraceArtifact as H, StrategyShotResult as Ha, Question as Hc, FileDelegationStoreOptions as Hd, promptOnlyProfileMaterialization as Hf, PromotionVerdict as Hi, PiMcpPreparation as Hl, BudgetPoolRestore as Hn, FanoutOptions as Ho, EvolutionReport as Hr, CompletionEvidence as Hs, SupervisorSpanOptions as Ht, DelegationArgs as Hu, jjWorkspace as I, ShotSpec as Ia, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as Ic, composeLoopTraceEmitters as Id, controlProfileMaterialization as If, probeSandboxCapabilities as Ii, piSeamKey as Il, CoordinationDeliveryEvidence as In, CorpusRecord as Io, ChampionPolicy as Ir, LeaderboardRunContext as Is, PatchDeliverableOptions as It, RunDetachedTurnOptions as Iu, AuthorizedSpawn as J, refine as Ja, QuestionUrgency as Jc, JudgeError as Jd, registerShape as Ji, WorktreeCommandResult as Jl, AuthoredProfile as Jn, LoopUntilState as Jo, selectChampion as Jr, stopSentinel as Js, ConcurrencyCaps as Jt, DelegationTaskQueue as Ju, createRootHandle as K, defineStrategy as Ka, QuestionPolicy as Kc, BackendTransportError as Kd, validateProfileMaterialization as Kf, builtinShapes as Ki, preparePiMcp as Kl, createBudgetPool as Kn, LoopUntil as Ko, pickChampion as Kr, deterministicCompletion as Ks, assertModelAllowed as Kt, DelegationResumeTick as Ku, localShell as L, Strategy as La, DownMessageAuthorizationInput as Lc, createDelegationTraceCollector as Ld, defineProfileMaterializationContract as Lf, AcquireOptions as Li, PI_MCP_ADAPTER as Ll, CoordinationLog as Ln, EqualKArm as Lo, EvolutionArchiveNode as Lr, LeaderboardScenario as Ls, patchDelivered as Lt, createDetachedTurnResumeDriver as Lu, Workspace as M, ArtifactHandle as Ma, ContinuationInstruction as Mc, DelegationTraceCollector as Md, ProfileMaterializationContract as Mf, mapSandboxToolEvent as Mi, PI_RUNTIME as Ml, collectDelivered as Mn, AssertTraceDerivedFindings as Mo, StreamAgentTurnOptions as Mr, LeaderboardBenchTask as Ms, InMemoryRunContextOptions as Mt, DetachedTurn as Mu, WorkspaceCommit as N, CorpusReadbackOptions as Na, CoordinationEvent as Nc, DelegationTraceSpan as Nd, ProfileMaterializationIssue as Nf, sumSandboxUsage as Ni, PiExecutorOutput as Nl, pickBestDelivered as Nn, CombinatorShape as No, collectAgentTurn as Nr, LeaderboardBenchmarkAdapter as Ns, RunContext as Nt, DetachedTurnResumeDriverOptions as Nu, copyUntrackedIntoClone as O, AgenticRunResult as Oa, AnalystFindingEvent as Oc, CappedDelegationTrace as Od, AssertProfileMaterializationOptions as Of, SandboxToolPartState as Oi, createSteerableSandboxSession as Ol, FinalizeContext as On, ObserveOptions as Oo, visibleCheckScore as Or, ShapeContext as Os, workerInboxFile as Ot, SiblingSandboxExecutorOptions as Ou, WorkspaceRun as P, RunAgenticOptions as Pa, CoordinationTools as Pc, buildDelegationTraceSpans as Pd, ValidateProfileMaterializationOptions as Pf, CriuCapableClient as Pi, PiSeam as Pl, runFinalizer as Pn, Corpus as Po, streamAgentTurn as Pr, LeaderboardFlagSpec as Ps, createFileRunContext as Pt, DriveTurnCapableBox as Pu, SuperviseOptions as Q, LoopCampaignDispatchOptions as Qa, createCoordinationTools as Qc, ValidationError as Qd, InMemoryCorpus as Qi, DiffOptions as Ql, assessAuthoredProfile as Qn, PanelVerdict as Qo, authorStrategy as Qr, Leaderboard as Qs, RollingDispatchOptions as Qt, hashIdempotencyInput as Qu, runInWorkspace as R, StrategyArtifacts as Ra, DownMessageDeliveryAttempt as Rc, DelegationPersistenceError as Rd, fullProfileMaterialization as Rf, acquireSandbox as Ri, PI_MCP_ADAPTER_ENV as Rl, CoordinationOwnerId as Rn, EqualKOnCost as Ro, EvolutionAuthor as Rr, LeaderboardScore as Rs, WorktreeCliExecutorOptions as Rt, detachedTurnEvents as Ru, WorkerEvidenceInput as S, BenchmarkStrategySummary as Sa, plateauLength as Sc, FeedbackRating as Sd, materializeTreeView as Sf, CheckpointCapableBox as Si, createExecutor as Sl, anyOf as Sn, HarvestCorpusOptions as So, modelAuthoredChecks as Sr, Persona as Ss, WorkerSteerRequest as St, coderTaskFromArgs as Su, settledWorkerOut as T, printBenchmarkReport as Ta, WaterfallReport as Tc, ResearchSource as Td, contentAddress as Tf, SandboxLineageHandle as Ti, SandboxSteeringOptions as Tl, plateau as Tn, harvestCorpus as To, sandboxCheckRunner as Tr, RunPersonified as Ts, safeWorkerFile as Tt, DelegationExecutor as Tu, captureWorkerTraceEvidence as U, SurfaceScore as Ua, QuestionDecision as Uc, InMemoryDelegationStore as Ud, promptResourceProfileMaterialization as Uf, promotionGate as Ui, PiMcpReceipt as Ul, BudgetReadout as Un, FanoutSynthesis as Uo, ReproductionCheck as Ur, CompletionPolicy as Us, SupervisorSpanOutcome as Ut, DelegationRecord as Uu, WORKER_TOOL_TRACE_SCHEMA_VERSION as V, StrategyResult as Va, MakeWorkerAgent as Vc, FileDelegationStore as Vd, promptModelProfileMaterialization as Vf, PromotionGateOptions as Vi, PiMcpMountOptions as Vl, BudgetPool as Vn, Fanout as Vo, EvolutionGeneration as Vr, CompletionAnalyst as Vs, SupervisorSpanAttributes as Vt, runDetachedTurn as Vu, parseWorkerToolTraceArtifact as W, adaptiveRefine as Wa, QuestionLevel as Wc, AgentEvalError$1 as Wd, renderProfileMaterializationIssues as Wf, equalKOnCost as Wi, buildPiMcpServers as Wl, ReservationRejection as Wn, FanoutWinnerSelector as Wo, StrategyEvolutionConfig as Wr, CompletionVerdict as Ws, SupervisorSpanRecorder as Wt, DelegationResumeContext as Wu, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as X, sample as Xa, WorkerSpawnContext as Xc, PlannerError as Xd, runPersonified as Xi, WorktreeProfileMaterializationReceipt as Xl, ProfileRichnessThresholds as Xn, PanelJudge as Xo, AuthoredStrategy as Xr, GroupOf as Xs, DispatchStopReason as Xt, SubmitInput as Xu, AuthorizedSpawnContext as Y, runAgentic as Ya, SettledWorker as Yc, NotFoundError as Yd, definePersona as Yi, WorktreeHarnessResult as Yl, ProfileRichness as Yn, Panel as Yo, AuthorStrategyOptions as Yr, AxisScoresOf as Ys, DispatchReport as Yt, DelegationTaskQueueOptions as Yu, DeliverableResolutionInput as Z, sampleThenRefine as Za, WorkerWatchOptions as Zc, RuntimeRunStateError as Zd, FileCorpus as Zi, CreateWorktreeOptions as Zl, asAuthoredProfile as Zn, PanelSpec as Zo, assertStrategyContract as Zr, Interval as Zs, DispatchUnit as Zt, SubmitOutput as Zu, WorktreeFanoutOptions as _, sanitizeMcpToolSchema as _a, AnytimeStrategySummary as _c, DelegationProgress as _d, SpawnForestInDoubtNode as _f, OpenSandboxRunPromptOptions as _i, ProviderSeam as _l, ProgressView as _n, inlineSandboxClient as _o, compareCheckOutcomes as _r, WinnerStrategy as _s, resolveSupervisorProfile as _t, DelegateRunCtx as _u, SandboxInstance$1 as a, selectValidWinner as aa, leaderboard as ac, DelegateResearchConfig as ad, createEventBus as af, naiveDriver as ai, DELEGATE_TOOL_NAME as al, delegate as an, defaultSelectWinner as ao, CheckOutcome as ar, ScopeWidenGate as as, DriveHarnessOwnerContext as at, removeWorktree as au, NOTE_MAX_CHARS as b, BenchmarkLift as ba, areaUnderCurve as bc, DelegationStatusArgs as bd, SpawnForestTree as bf, TurnResult as bi, SandboxSeam as bl, allOf as bn, InProcessSandboxClientOptions as bo, defaultStructuralRolloutPolicy as br, LoopShape as bs, createScope as bt, SettleDetachedCoderTurnOptions as bu, VerifierEnvironmentOptions as c, CreateScopeAnalystOptions as ca, renderLeaderboardMarkdown as cc, DelegateUiAuditConfig as cd, watchTrace as cf, McpSpawnFault as ci, DelegateHandlerOptions as cl, DriverAgentOptions as cn, LocalSandboxClientOptions as co, CheckSource as cr, TrajectoryReport as cs, ResolveSupervisorTools as ct, McpToolDescriptor$1 as cu, SuperviseSurfaceResult as d, buildSteerContext as da, AuditIntentInput as dc, DelegationError as dd, FileResultBlobStore as df, StdioMcpServerSpec as di, validateDelegateArgs as dl, AllWorkersStalledOptions as dn, ResolvedMcpServerLaunch as do, StructuralRolloutConfig as dr, Verify as ds, SupervisorNodeContext as dt, FeedbackStore as du, fanout as ea, LeaderboardRow as ec, DelegateCodeConfig as ed, BusEvent as ef, ApplyContinuation as ei, McpServerOptions as el, freeSlots as en, LoopOptionsForDispatch as eo, canonicalizeAuthoredProfile as er, PipelineStage as es, SuperviseRegistryTable as et, GitRunner as eu, SurfaceWorkerConfig as f, createScopeAnalyst as fa, AuditIntentOptions as fc, DelegationFeedbackSnapshot as fd, FileSpawnJournal as ff, connectStdioMcp as fi, BridgeSeam as fl, NoProgressForOptions as fn, envKeyProvider as fo, StructuralRolloutMessage as fr, VerifySpec as fs, SupervisorNodeContextSeed as ft, InMemoryFeedbackStore as fu, AuthoredHarness as g, createMcpEnvironment as ga, AnytimeReport as gc, DelegationProfile as gd, SpawnForestEvent as gf, OpenSandboxRunOptions as gi, ExecutorConfig as gl, ProgressTrackerOptions as gn, secretEnvOfMcpServer as go, canDisplace as gr, WidenSpec as gs, assertCoordinationBinding as gt, CoderReviewer as gu, superviseSurface as h, McpEnvironmentOptions as ha, defaultAuditorInstruction as hc, DelegationHistoryResult as hd, SpawnForest as hf, OpenSandboxRunBeforeStartContext as hi, CliWorktreeSeam as hl, ProgressTracker as hn, resolveSecretEnv as ho, VisibleCheck as hr, WidenLineage as hs, SupervisorToolInvocationContext as ht, CoderReview as hu, SandboxEvent$1 as i, pipeline as ia, ScoreOf as ic, DelegateResearchArgs as id, PublishOptions as if, dumbDriver as ii, DELEGATE_INPUT_SCHEMA as il, defaultDelegateBudget as in, RunLoopOptions as io, CheckExecChannel as ir, ScopeAnalyzeInput as is, DriveHarness as it, createWorktree as iu, Shell as j, AgenticTool as ja, AuthorizedDownMessage as jc, DelegationTraceCaps as jd, KnownAgentProfileMaterializationAxis as jf, mapSandboxEvent as ji, createInbox as jl, bestDelivered as jn, renderReport as jo, CollectedAgentTurn as jr, LeaderboardBenchScore as js, InMemoryRunContext as jt, DetachedSessionRefParts as ju, withUntrackedArtifacts as k, AgenticSurface as ka, AnalystRegistry as kc, DELEGATION_TRACE_MAX_BYTES as kd, CanonicalAgentProfileMaterializationAxis as kf, createSandboxToolPartState as ki, Inbox as kl, FinalizerSettled as kn, defaultAnalystInstruction as ko, AgentTurnBackend as kr, ShapeRegistry as ks, workerInboxFileFromEventDir as kt, createFleetWorkspaceExecutor as ku, createVerifierEnvironment as l, RegistryAnalyzeProjection as la, renderLeaderboardSvg as lc, DelegateUiAuditResult as ld, DeliverableSpec as lf, McpToolDescriptor as li, DelegateResult as ll, driverAgent as ln, localSandboxClient as lo, CheckSourceCtx as lr, TrajectoryReportFn as ls, ResolvedSupervisorProfile as lt, McpTransport as lu, failuresAnalyst as m, McpEndpoint as ma, auditIntent as mc, DelegationHistoryEntry as md, InMemorySpawnJournal as mf, Deliverable as mi, CliWorktreeBridgeSeam as ml, ProgressSample as mn, resolveMcpServerLaunch as mo, StructuralRolloutResult as mr, WidenDecision as ms, SupervisorToolDescriptor as mt, CoderDelegate as mu, AnalystFinding$1 as n, loopUntil as na, PairwiseVerdict as nc, DelegateFeedbackArgs as nd, BusStats as nf, NaiveDriverOptions as ni, createMcpServer as nl, rollingDispatch as nn, loopDispatch as no, profileRichnessFinding as nr, RenderCorpusToInstructionsOptions as ns, workerFromBackend as nt, WorktreeHandle as nu, computeFindingId$1 as o, verify as oa, pairwiseSignificance as oc, DelegateResearchResult as od, WatchTraceOptions as of, LocalMcpMaterialization as oi, DelegateArgs as ol, CoordinationMcpHandle as on, runAgentRounds as oo, CheckRunContext as or, SteerContext as os, ObserveSupervisorNodeEvent as ot, JsonRpcMessage as ou, SurfaceWorkerOut as p, registryScopeAnalyst as pa, IntentAudit as pc, DelegationHistoryArgs as pd, InMemoryResultBlobStore as pf, materializeLocalMcp as pi, CliSeam as pl, PlateauOptions as pn, mcpSecretEnvMetadataKey as po, StructuralRolloutPolicy as pr, Widen as ps, SupervisorProfile as pt, eventToSnapshot as pu, createSupervisor as q, depthStrategy as qa, QuestionRecord as qc, ConfigError as qd, worktreeCliProfileMaterialization as qf, createShapeRegistry as qi, WorktreeCheckRunner as ql, spendFromUsageEvents as qn, LoopUntilSpec as qo, runStrategyEvolution as qr, sentinelCompletion as qs, assertProfileModelsAllowed as qt, DelegationRunContext as qu, CreateSandboxOptions$1 as r, panel as ra, ProfileKeyOf as rc, DelegateFeedbackResult as rd, EventBus as rf, SteeringDecision as ri, DELEGATE_DESCRIPTION as rl, DelegateOptions as rn, RunAgentRoundsOptions as ro, supervisorInstructions as rr, ScopeAnalyst as rs, CoordinationBinding as rt, captureWorktreeDiff as ru, makeFinding$1 as s, widen as sa, renderLeaderboardHtml as sc, DelegateUiAuditArgs as sd, defaultToolDetectors as sf, MaterializeLocalMcpOptions as si, DelegateError as sl, serveCoordinationMcp as sn, runLoop as so, CheckRunner as sr, TrajectoryNode as ss, ResolveDriveHarness as st, JsonRpcResponse as su, AgentProfile$2 as t, flatWidenGate as ta, PairwiseOptions as tc, DelegateCodeResult as td, BusRecord as tf, DumbDriverOptions as ti, createInProcessTransport as tl, queueOf as tn, loopCampaignDispatch as to, defaultProfileRichnessThresholds as tr, RenderCorpusToInstructions as ts, supervise as tt, RemoveWorktreeOptions as tu, SuperviseSurfaceOptions as u, assertTraceDerivedFindings as ua, renderPairwiseMarkdown as uc, DelegateUiAuditRoute as ud, gateOnDeliverable as uf, StdioMcpConnection as ui, createDelegateHandler as ul, finalizeBestDelivered as un, KeyProvider as uo, RepairStop as ur, TrajectoryReportOptions as us, SupervisorAgentDeps as ut, FeedbackEvent as uu, worktreeFanout as v, BenchmarkCell as va, AnytimeTaskCurve as vc, DelegationResultPayload as vd, SpawnForestMissingTree as vf, SandboxRun as vi, RouterSeam as vl, StopDecision as vn, InProcessOnPrompt as vo, composeCheckSources as vr, DefinePersona as vs, supervisorAgent as vt, DetachedSessionDelegateOptions as vu, composeWorkerEvidence as w, Environment as wa, WaterfallCollector as wc, ResearchOutputShape as wd, replaySpawnTree as wf, SandboxLineage as wi, DEFAULT_SANDBOX_STEERING_MAX_TURNS as wl, noProgressFor as wn, HarvestReport as wo, resolveEntrySymbol as wr, PersonaExecutors as ws, readWorkerSteerRequests as wt, settleDetachedCoderTurn as wu, VERIFY_TAIL_CHARS as x, BenchmarkReport as xa, bestSoFar as xc, DelegationStatusResult as xd, loadSpawnForest as xf, openSandboxRun as xi, cliWorktreeExecutor as xl, allWorkersStalled as xn, inProcessSandboxClient as xo, filterAuthoredAsserts as xr, Outcome as xs, settledToIteration as xt, UiAuditorDelegate as xu, EVIDENCE_MAX_CHARS as y, BenchmarkConfig as ya, anytimeReport as yc, DelegationStatus as yd, SpawnForestNode as yf, SandboxRunAbortError as yi, RouterToolsSeam as yl, StopRule as yn, InProcessPromptCtx as yo, defaultExtractCandidate as yr, DefinePersonaInput as ys, ScopeArgs as yt, DetachedWinnerSelection as yu, TrajectoryAnalysis as z, StrategyCtx as za, DownMessageDeliveryOutcome as zc, DelegationStateCorruptError as zd, profileMaterializationAxes as zf, ResolveSandboxClientOptions as zi, PI_MCP_CONFIG_FLAG as zl, FileCoordinationLog as zn, EqualKOnCostOptions as zo, EvolutionBandInfo as zr, LeaderboardSpec as zs, WorktreePatchArtifact as zt, formatDetachedSessionRef as zu };
8342
- //# sourceMappingURL=index-DPWJxSRa.d.ts.map
8196
+ export { SuperviseRegistry as $, sample as $a, WorkerSpawnContext as $c, FileResultBlobStore as $d, runPersonified as $i, FeedbackStore as $l, ProfileRichnessThresholds as $n, PanelJudge as $o, AuthoredStrategy as $r, GroupOf as $s, DispatchStopReason as $t, DelegationError as $u, GitWorkspaceOptions as A, AgenticOptions as Aa, createWaterfallCollector as Ac, FileDelegationStoreOptions as Ad, promptOnlyProfileMaterialization as Af, createSandboxLineage as Ai, SteerableSandboxSession as Al, DeliveredOutput as An, ObserveInput as Ao, structuralRollout as Ar, ShapeBudget as As, workerControlLogFile as At, DelegationArgs as Au, analyzeTrace as B, Strategy as Ba, DownMessageAuthorizationInput as Bc, ValidationError as Bd, AcquireOptions as Bi, DiffOptions as Bl, CoordinationLog as Bn, EqualKArm as Bo, EvolutionArchiveNode as Br, LeaderboardScenario as Bs, patchDelivered as Bt, hashIdempotencyInput as Bu, closingWorkerNote as C, BenchmarkLift as Ca, areaUnderCurve as Cc, capDelegationTrace as Cd, assertProfileMaterialization as Cf, TurnResult as Ci, SandboxSeam as Cl, allOf as Cn, InProcessSandboxClientOptions as Co, defaultStructuralRolloutPolicy as Cr, LoopShape as Cs, legacySupervisorRunDir as Ct, DriveTurnTick as Cu, UntrackedCopyStats as D, Environment as Da, WaterfallCollector as Dc, DelegationStateCorruptError as Dd, profileMaterializationAxes as Df, SandboxLineage as Di, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Dl, noProgressFor as Dn, HarvestReport as Do, resolveEntrySymbol as Dr, PersonaExecutors as Ds, supervisorRunDir as Dt, formatDetachedSessionRef as Du, CopyOptions as E, BenchmarkTaskRow as Ea, renderAnytimeTable as Ec, DelegationPersistenceError as Ed, fullProfileMaterialization as Ef, ForkCapableBox as Ei, createExecutorRegistry as El, createProgressTracker as En, HarvestFailure as Eo, officialChecksFromMeta as Er, PersonaContext as Es, safeWorkerFile as Et, detachedTurnEvents as Eu, gitWorkspace as F, ArtifactHandle as Fa, ContinuationInstruction as Fc, ConfigError as Fd, worktreeCliProfileMaterialization as Ff, mapSandboxToolEvent as Fi, WorktreeCheckRunner as Fl, collectDelivered as Fn, AssertTraceDerivedFindings as Fo, StreamAgentTurnOptions as Fr, LeaderboardBenchTask as Fs, InMemoryRunContextOptions as Ft, DelegationRunContext as Fu, workerTraceAnalysisStore as G, StrategyShotResult as Ga, Question as Gc, EventBus as Gd, PromotionVerdict as Gi, captureWorktreeDiff as Gl, BudgetPoolRestore as Gn, FanoutOptions as Go, EvolutionReport as Gr, CompletionEvidence as Gs, SupervisorSpanOptions as Gt, DelegateFeedbackResult as Gu, WorkerToolTraceArtifact as H, StrategyCtx as Ha, DownMessageDeliveryOutcome as Hc, BusEvent as Hd, ResolveSandboxClientOptions as Hi, GitRunner as Hl, FileCoordinationLog as Hn, EqualKOnCostOptions as Ho, EvolutionBandInfo as Hr, LeaderboardSpec as Hs, WorktreePatchArtifact as Ht, DelegateCodeConfig as Hu, jjWorkspace as I, CorpusReadbackOptions as Ia, CoordinationEvent as Ic, JudgeError as Id, sumSandboxUsage as Ii, WorktreeCommandResult as Il, pickBestDelivered as In, CombinatorShape as Io, collectAgentTurn as Ir, LeaderboardBenchmarkAdapter as Is, RunContext as It, DelegationTaskQueue as Iu, AuthorizedSpawn as J, breadthStrategy as Ja, QuestionOption as Jc, WatchTraceOptions as Jd, trajectoryReport as Ji, JsonRpcMessage as Jl, ReservationTicket as Jn, FlatWidenGate as Jo, discriminatingMeans as Jr, completionAuthorizes as Js, createSupervisorSpanRecorder as Jt, DelegateResearchResult as Ju, createRootHandle as K, SurfaceScore as Ka, QuestionDecision as Kc, PublishOptions as Kd, promotionGate as Ki, createWorktree as Kl, BudgetReadout as Kn, FanoutSynthesis as Ko, ReproductionCheck as Kr, CompletionPolicy as Ks, SupervisorSpanOutcome as Kt, DelegateResearchArgs as Ku, localShell as L, RunAgenticOptions as La, CoordinationTools as Lc, NotFoundError as Ld, CriuCapableClient as Li, WorktreeHarnessResult as Ll, runFinalizer as Ln, Corpus as Lo, streamAgentTurn as Lr, LeaderboardFlagSpec as Ls, createFileRunContext as Lt, DelegationTaskQueueOptions as Lu, Workspace as M, AgenticSurface as Ma, AnalystRegistry as Mc, AgentEvalError$1 as Md, renderProfileMaterializationIssues as Mf, createSandboxToolPartState as Mi, Inbox as Ml, FinalizerSettled as Mn, defaultAnalystInstruction as Mo, AgentTurnBackend as Mr, ShapeRegistry as Ms, workerInboxFileFromEventDir as Mt, DelegationResumeContext as Mu, WorkspaceCommit as N, AgenticTask as Na, AuthorizeDownMessage as Nc, AgentEvalErrorCode as Nd, sandboxActProfileMaterialization as Nf, extractLlmCallEvent as Ni, InboxMessage as Nl, SupervisorFinalizer as Nn, observe as No, AgentTurnUsage as Nr, DefinedLeaderboard as Ns, writeWorkerSteer as Nt, DelegationResumeDriver as Nu, copyUntrackedIntoClone as O, printBenchmarkReport as Oa, WaterfallReport as Oc, DelegationStore as Od, promptControlProfileMaterialization as Of, SandboxLineageHandle as Oi, SandboxSteeringOptions as Ol, plateau as On, harvestCorpus as Oo, sandboxCheckRunner as Or, RunPersonified as Os, supervisorRunsRoot as Ot, parseDetachedSessionRef as Ou, WorkspaceRun as P, AgenticTool as Pa, AuthorizedDownMessage as Pc, BackendTransportError as Pd, validateProfileMaterialization as Pf, mapSandboxEvent as Pi, createInbox as Pl, bestDelivered as Pn, renderReport as Po, CollectedAgentTurn as Pr, LeaderboardBenchScore as Ps, InMemoryRunContext as Pt, DelegationResumeTick as Pu, SuperviseOptions as Q, runAgentic as Qa, SettledWorker as Qc, gateOnDeliverable as Qd, definePersona as Qi, FeedbackEvent as Ql, ProfileRichness as Qn, Panel as Qo, AuthorStrategyOptions as Qr, AxisScoresOf as Qs, DispatchReport as Qt, DelegateUiAuditRoute as Qu, runInWorkspace as R, ShotPersona as Ra, CoordinationToolsOptions as Rc, PlannerError as Rd, SandboxCapabilities as Ri, WorktreeProfileMaterializationReceipt as Rl, runTree as Rn, CorpusFilter as Ro, ChampionPick as Rr, LeaderboardIterationInfo as Rs, createInMemoryRunContext as Rt, SubmitInput as Ru, WorkerEvidenceInput as S, BenchmarkConfig as Sa, anytimeReport as Sc, buildDelegationTraceSpans as Sd, ValidateProfileMaterializationOptions as Sf, SandboxRunAbortError as Si, RouterToolsSeam as Sl, StopRule as Sn, InProcessPromptCtx as So, defaultExtractCandidate as Sr, DefinePersonaInput as Ss, WorkerSteerRequest as St, DriveTurnCapableBox as Su, settledWorkerOut as T, BenchmarkStrategySummary as Ta, plateauLength as Tc, createDelegationTraceCollector as Td, defineProfileMaterializationContract as Tf, CheckpointCapableBox as Ti, createExecutor as Tl, anyOf as Tn, HarvestCorpusOptions as To, modelAuthoredChecks as Tr, Persona as Ts, readWorkerSteerRequests as Tt, createDetachedTurnResumeDriver as Tu, captureWorkerTraceEvidence as U, StrategyMessage as Ua, DownMessageEvent as Uc, BusRecord as Ud, resolveSandboxClient as Ui, RemoveWorktreeOptions as Ul, PriorCoordination as Un, EqualKVerdict as Uo, EvolutionCandidate as Ur, defineLeaderboard as Us, createWorktreeCliExecutor as Ut, DelegateCodeResult as Uu, WORKER_TOOL_TRACE_SCHEMA_VERSION as V, StrategyArtifacts as Va, DownMessageDeliveryAttempt as Vc, CoderOutput as Vd, acquireSandbox as Vi, DiffResult as Vl, CoordinationOwnerId as Vn, EqualKOnCost as Vo, EvolutionAuthor as Vr, LeaderboardScore as Vs, WorktreeCliExecutorOptions as Vt, DelegateCodeArgs as Vu, parseWorkerToolTraceArtifact as W, StrategyResult as Wa, MakeWorkerAgent as Wc, BusStats as Wd, PromotionGateOptions as Wi, WorktreeHandle as Wl, BudgetPool as Wn, Fanout as Wo, EvolutionGeneration as Wr, CompletionAnalyst as Ws, SupervisorSpanAttributes as Wt, DelegateFeedbackArgs as Wu, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as X, depthStrategy as Xa, QuestionRecord as Xc, watchTrace as Xd, createShapeRegistry as Xi, McpToolDescriptor$1 as Xl, spendFromUsageEvents as Xn, LoopUntilSpec as Xo, runStrategyEvolution as Xr, sentinelCompletion as Xs, assertProfileModelsAllowed as Xt, DelegateUiAuditConfig as Xu, AuthorizedSpawnContext as Y, defineStrategy as Ya, QuestionPolicy as Yc, defaultToolDetectors as Yd, builtinShapes as Yi, JsonRpcResponse as Yl, createBudgetPool as Yn, LoopUntil as Yo, pickChampion as Yr, deterministicCompletion as Ys, assertModelAllowed as Yt, DelegateUiAuditArgs as Yu, DeliverableResolutionInput as Z, refine as Za, QuestionUrgency as Zc, DeliverableSpec as Zd, registerShape as Zi, McpTransport as Zl, AuthoredProfile as Zn, LoopUntilState as Zo, selectChampion as Zr, stopSentinel as Zs, ConcurrencyCaps as Zt, DelegateUiAuditResult as Zu, WorktreeFanoutOptions as _, McpEndpoint as _a, auditIntent as _c, DELEGATION_TRACE_MAX_BYTES as _d, CanonicalAgentProfileMaterializationAxis as _f, Deliverable as _i, CliWorktreeBridgeSeam as _l, ProgressSample as _n, resolveMcpServerLaunch as _o, StructuralRolloutResult as _r, WidenDecision as _s, resolveSupervisorProfile as _t, createFleetWorkspaceExecutor as _u, SandboxInstance$1 as a, loopUntil as aa, PairwiseVerdict as ac, DelegationProgress as ad, SpawnForestInDoubtNode as af, NaiveDriverOptions as ai, createMcpServer as al, rollingDispatch as an, loopDispatch as ao, profileRichnessFinding as ar, RenderCorpusToInstructionsOptions as as, DriveHarnessOwnerContext as at, DelegateRunCtx as au, NOTE_MAX_CHARS as b, sanitizeMcpToolSchema as ba, AnytimeStrategySummary as bc, DelegationTraceCollector as bd, ProfileMaterializationContract as bf, OpenSandboxRunPromptOptions as bi, ProviderSeam as bl, ProgressView as bn, inlineSandboxClient as bo, compareCheckOutcomes as br, WinnerStrategy as bs, createScope as bt, DetachedTurn as bu, VerifierEnvironmentOptions as c, selectValidWinner as ca, leaderboard as cc, DelegationStatusArgs as cd, SpawnForestTree as cf, naiveDriver as ci, DELEGATE_TOOL_NAME as cl, delegate as cn, defaultSelectWinner as co, CheckOutcome as cr, ScopeWidenGate as cs, ResolveSupervisorTools as ct, SettleDetachedCoderTurnOptions as cu, SuperviseSurfaceResult as d, CreateScopeAnalystOptions as da, renderLeaderboardMarkdown as dc, FeedbackRefersTo as dd, pendingWaits as df, McpSpawnFault as di, DelegateHandlerOptions as dl, DriverAgentOptions as dn, LocalSandboxClientOptions as do, CheckSource as dr, TrajectoryReport as ds, SupervisorNodeContext as dt, detachedSessionDelegate as du, FileCorpus as ea, Interval as ec, DelegationFeedbackSnapshot as ed, FileSpawnJournal as ef, assertStrategyContract as ei, WorkerWatchOptions as el, DispatchUnit as en, sampleThenRefine as eo, asAuthoredProfile as er, PanelSpec as es, SuperviseRegistryTable as et, InMemoryFeedbackStore as eu, SurfaceWorkerConfig as f, RegistryAnalyzeProjection as fa, renderLeaderboardSvg as fc, ResearchOutputShape as fd, replaySpawnTree as ff, McpToolDescriptor as fi, DelegateResult as fl, driverAgent as fn, localSandboxClient as fo, CheckSourceCtx as fr, TrajectoryReportFn as fs, SupervisorNodeContextSeed as ft, settleDetachedCoderTurn as fu, AuthoredHarness as g, registryScopeAnalyst as ga, IntentAudit as gc, CappedDelegationTrace as gd, AssertProfileMaterializationOptions as gf, materializeLocalMcp as gi, CliSeam as gl, PlateauOptions as gn, mcpSecretEnvMetadataKey as go, StructuralRolloutPolicy as gr, Widen as gs, assertCoordinationBinding as gt, SiblingSandboxExecutorOptions as gu, superviseSurface as h, createScopeAnalyst as ha, AuditIntentOptions as hc, UiAuditorDelegationOutput as hd, AgentProfileMaterializationAxis as hf, connectStdioMcp as hi, BridgeSeam as hl, NoProgressForOptions as hn, envKeyProvider as ho, StructuralRolloutMessage as hr, VerifySpec as hs, SupervisorToolInvocationContext as ht, FleetWorkspaceExecutorOptions as hu, SandboxEvent$1 as i, flatWidenGate as ia, PairwiseOptions as ic, DelegationProfile as id, SpawnForestEvent as if, DumbDriverOptions as ii, createInProcessTransport as il, queueOf as in, loopCampaignDispatch as io, defaultProfileRichnessThresholds as ir, RenderCorpusToInstructions as is, DriveHarness as it, CoderReviewer as iu, Shell as j, AgenticRunResult as ja, AnalystFindingEvent as jc, InMemoryDelegationStore as jd, promptResourceProfileMaterialization as jf, SandboxToolPartState as ji, createSteerableSandboxSession as jl, FinalizeContext as jn, ObserveOptions as jo, visibleCheckScore as jr, ShapeContext as js, workerInboxFile as jt, DelegationRecord as ju, withUntrackedArtifacts as k, runBenchmark as ka, WaterfallSpan as kc, FileDelegationStore as kd, promptModelProfileMaterialization as kf, SessionCapableBox as ki, SteerableSandboxArgs as kl, sampleFromSettled as kn, Observation as ko, selectBestIndex as kr, RunPersonifiedOptions as ks, supervisorWorkersDir as kt, runDetachedTurn as ku, createVerifierEnvironment as l, verify as la, pairwiseSignificance as lc, DelegationStatusResult as ld, loadSpawnForest as lf, LocalMcpMaterialization as li, DelegateArgs as ll, CoordinationMcpHandle as ln, runAgentRounds as lo, CheckRunContext as lr, SteerContext as ls, ResolvedSupervisorProfile as lt, UiAuditorDelegate as lu, failuresAnalyst as m, buildSteerContext as ma, AuditIntentInput as mc, UiAuditLensFilter as md, AGENT_PROFILE_MATERIALIZATION_AXES as mf, StdioMcpServerSpec as mi, validateDelegateArgs as ml, AllWorkersStalledOptions as mn, ResolvedMcpServerLaunch as mo, StructuralRolloutConfig as mr, Verify as ms, SupervisorToolDescriptor as mt, FleetHandle as mu, AnalystFinding$1 as n, renderCorpusToInstructions as na, LeaderboardOptions as nc, DelegationHistoryEntry as nd, InMemorySpawnJournal as nf, strategyAuthorContract as ni, McpServer as nl, effectiveConcurrency as nn, LoopDispatchOptions as no, authoredWorker as nr, Pipeline as ns, workerFromBackend as nt, CoderDelegate as nu, computeFindingId$1 as o, panel as oa, ProfileKeyOf as oc, DelegationResultPayload as od, SpawnForestMissingTree as of, SteeringDecision as oi, DELEGATE_DESCRIPTION as ol, DelegateOptions as on, RunAgentRoundsOptions as oo, supervisorInstructions as or, ScopeAnalyst as os, ObserveSupervisorNodeEvent as ot, DetachedSessionDelegateOptions as ou, SurfaceWorkerOut as p, assertTraceDerivedFindings as pa, renderPairwiseMarkdown as pc, ResearchSource as pd, contentAddress as pf, StdioMcpConnection as pi, createDelegateHandler as pl, finalizeBestDelivered as pn, KeyProvider as po, RepairStop as pr, TrajectoryReportOptions as ps, SupervisorProfile as pt, DelegationExecutor as pu, createSupervisor as q, adaptiveRefine as qa, QuestionLevel as qc, createEventBus as qd, equalKOnCost as qi, removeWorktree as ql, ReservationRejection as qn, FanoutWinnerSelector as qo, StrategyEvolutionConfig as qr, CompletionVerdict as qs, SupervisorSpanRecorder as qt, DelegateResearchConfig as qu, CreateSandboxOptions$1 as r, fanout as ra, LeaderboardRow as rc, DelegationHistoryResult as rd, SpawnForest as rf, ApplyContinuation as ri, McpServerOptions as rl, freeSlots as rn, LoopOptionsForDispatch as ro, canonicalizeAuthoredProfile as rr, PipelineStage as rs, CoordinationBinding as rt, CoderReview as ru, makeFinding$1 as s, pipeline as sa, ScoreOf as sc, DelegationStatus as sd, SpawnForestNode as sf, dumbDriver as si, DELEGATE_INPUT_SCHEMA as sl, defaultDelegateBudget as sn, RunLoopOptions as so, CheckExecChannel as sr, ScopeAnalyzeInput as ss, ResolveDriveHarness as st, DetachedWinnerSelection as su, AgentProfile$2 as t, InMemoryCorpus as ta, Leaderboard as tc, DelegationHistoryArgs as td, InMemoryResultBlobStore as tf, authorStrategy as ti, createCoordinationTools as tl, RollingDispatchOptions as tn, LoopCampaignDispatchOptions as to, assessAuthoredProfile as tr, PanelVerdict as ts, supervise as tt, eventToSnapshot as tu, SuperviseSurfaceOptions as u, widen as ua, renderLeaderboardHtml as uc, FeedbackRating as ud, materializeTreeView as uf, MaterializeLocalMcpOptions as ui, DelegateError as ul, serveCoordinationMcp as un, runLoop as uo, CheckRunner as ur, TrajectoryNode as us, SupervisorAgentDeps as ut, coderTaskFromArgs as uu, worktreeFanout as v, McpEnvironmentOptions as va, defaultAuditorInstruction as vc, DELEGATION_TRACE_MAX_SPANS as vd, DefineProfileMaterializationContractOptions as vf, OpenSandboxRunBeforeStartContext as vi, CliWorktreeSeam as vl, ProgressTracker as vn, resolveSecretEnv as vo, VisibleCheck as vr, WidenLineage as vs, supervisorAgent as vt, createSiblingSandboxExecutor as vu, composeWorkerEvidence as w, BenchmarkReport as wa, bestSoFar as wc, composeLoopTraceEmitters as wd, controlProfileMaterialization as wf, openSandboxRun as wi, cliWorktreeExecutor as wl, allWorkersStalled as wn, inProcessSandboxClient as wo, filterAuthoredAsserts as wr, Outcome as ws, legacySupervisorRunsRoot as wt, RunDetachedTurnOptions as wu, VERIFY_TAIL_CHARS as x, BenchmarkCell as xa, AnytimeTaskCurve as xc, DelegationTraceSpan as xd, ProfileMaterializationIssue as xf, SandboxRun as xi, RouterSeam as xl, StopDecision as xn, InProcessOnPrompt as xo, composeCheckSources as xr, DefinePersona as xs, settledToIteration as xt, DetachedTurnResumeDriverOptions as xu, EVIDENCE_MAX_CHARS as y, createMcpEnvironment as ya, AnytimeReport as yc, DelegationTraceCaps as yd, KnownAgentProfileMaterializationAxis as yf, OpenSandboxRunOptions as yi, ExecutorConfig as yl, ProgressTrackerOptions as yn, secretEnvOfMcpServer as yo, canDisplace as yr, WidenSpec as ys, ScopeArgs as yt, DetachedSessionRefParts as yu, TrajectoryAnalysis as z, ShotSpec as za, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as zc, RuntimeRunStateError as zd, probeSandboxCapabilities as zi, CreateWorktreeOptions as zl, CoordinationDeliveryEvidence as zn, CorpusRecord as zo, ChampionPolicy as zr, LeaderboardRunContext as zs, PatchDeliverableOptions as zt, SubmitOutput as zu };
8197
+ //# sourceMappingURL=index-CGADWaa_.d.ts.map
@@ -1,15 +1,15 @@
1
1
  import { _ as RunAgentTaskOptions, b as RuntimeSessionStore, g as OpenAIChatToolChoice, h as OpenAIChatTool, i as AgentExecutionBackend, l as AgentTaskRunResult, m as OpenAIChatResponseFormat, n as AgentBackendContext, p as KnowledgeReadinessDecision, r as AgentBackendInput, v as RunAgentTaskStreamOptions, x as RuntimeStreamEvent, y as RuntimeSession } from "./types-C9j4qg6l.js";
2
2
  import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
3
3
  import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
4
- import { pr as StructuralRolloutPolicy, qd as ConfigError } from "./index-DPWJxSRa.js";
4
+ import { Fd as ConfigError, gr as StructuralRolloutPolicy } from "./index-CGADWaa_.js";
5
5
  import "./types-DnNGJ5Gz.js";
6
- import { fn as RuntimeTelemetryOptions } from "./environment-provider-CTZjdIUg.js";
7
- import { b as ToolLoopChat, c as runLocalHarness, i as LocalHarness } from "./local-harness-t6cDWDQ2.js";
8
- import "./index-X2YwyWkc.js";
6
+ import { fn as RuntimeTelemetryOptions } from "./environment-provider-Bh4nX2qt.js";
7
+ import { f as runLocalHarness, o as LocalHarness, w as ToolLoopChat } from "./local-harness-BIajef4A.js";
8
+ import "./index-B3bHsVLw.js";
9
9
  import "./index-Efjb3nrQ.js";
10
- import { H as CandidateGenerator, L as Verifier, a as ImproveCandidateValidationInput, j as ReadonlyAgentProfile, p as ImproveMethodFactory, t as Redactor } from "./redact-BEtQtvd6.js";
11
- import "./index-BHSYaWrC.js";
12
- import "./loop-runner-bin-oyL7it5O.js";
10
+ import { H as CandidateGenerator, L as Verifier, a as ImproveCandidateValidationInput, j as ReadonlyAgentProfile, p as ImproveMethodFactory, t as Redactor } from "./redact-PQzmE1Jn.js";
11
+ import "./index-BLsKcxNd.js";
12
+ import "./loop-runner-bin-BeG9vTdE.js";
13
13
  import "./openai-tools-B68JaOCx.js";
14
14
  import { ControlBudget as ControlBudget$1, ControlDecision as ControlDecision$1, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult as ControlRunResult$1, ControlStep as ControlStep$1, DataAcquisitionPlan as DataAcquisitionPlan$1, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement as KnowledgeRequirement$1, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
15
15
  import { GepaOptimizationMethodConfig, SkillOptOptimizationMethodConfig } from "@tangle-network/agent-eval/campaign";
@@ -150,7 +150,7 @@ interface DriverLoopGeneratorOptions {
150
150
  * `ToolLoopChat`, same seam as `driverAgent`): `routerBrain(cfg)` in production, a scripted
151
151
  * mock in tests. */
152
152
  brain: ToolLoopChat;
153
- /** Local coding harness the driver's worker sessions run in the worktree. Default `claude`. */
153
+ /** Local coding harness the driver's worker sessions run in the worktree. Default `claude-code`. */
154
154
  harness?: LocalHarness;
155
155
  /** Per-worker-session wall-clock timeout (ms). Default = `runLocalHarness` default (5m). */
156
156
  timeoutMs?: number;
@@ -542,4 +542,4 @@ declare function readinessServerSentEvent(report: KnowledgeReadinessReport, opti
542
542
  declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
543
543
  //#endregion
544
544
  export { McpServeSpec as $, resolveRouterBaseUrl as A, RawTraceDistillerOptions as B, DEFAULT_ROUTER_BASE_URL as C, cleanModelId as D, RouterEnv as E, parseRolloutPolicy as F, strategyAuthorMethod as G, buildDriverSystem as H, serializeRolloutPolicy as I, OfficialOptimizerUnavailableError as J, OfficialGepaOptions as K, structuralRolloutPolicyFromProfile as L, ROLLOUT_POLICY_EXTENSION as M, applyRolloutPolicyToProfile as N, getModels as O, normalizeRolloutPolicy as P, officialSkillOpt as Q, ReflectiveGeneratorOptions as R, ChatModelValidation as S, ResolvedChatModel as T, optimizerMethod as U, rawTraceDistiller as V, researchDriverNote as W, OfficialSkillOptOptions as X, OfficialSensitiveCandidateInput as Y, officialGepa as Z, AgentBackendKind as _, ControlStep$1 as a, mcpBuildPrompt as at, decideKnowledgeReadiness as b, KnowledgeRequirement$1 as c, createIterableBackend as ct, readinessServerSentEvent as d, mcpServeVerifier as et, runtimeStreamServerSentEvent as f, runAgentTaskStream as g, runAgentTask as h, ControlRunResult$1 as i, findingLines as it, validateChatModelId as j, resolveChatModel as k, RunRecord$1 as l, createOpenAICompatibleBackend as lt, applyRunRecordDefaults as m, ControlDecision$1 as n, driverLoopGenerator as nt, DataAcquisitionPlan$1 as o, toolBuildPrompt as ot, InMemoryRuntimeSessionStore as p, OfficialOptimizerContextOptions as q, ControlEvalResult$1 as r, BuildPromptFindingsInput as rt, KnowledgeReadinessReport$1 as s, BackendRetryPolicy as st, ControlBudget$1 as t, DriverLoopGeneratorOptions as tt, ServerSentEventOptions as u, createSandboxPromptBackend as ut, ResolveAgentBackendOptions as v, ModelInfo as w, ChatModelCandidate as x, resolveAgentBackend as y, reflectiveGenerator as z };
545
- //# sourceMappingURL=index-BTUG4Xln.d.ts.map
545
+ //# sourceMappingURL=index-I35151Fr.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { _ as RunAgentTaskOptions, a as AgentKnowledgeProvider, b as RuntimeSessionStore, c as AgentTaskContext, d as AgentTaskStatus, f as BackendErrorDetail, g as OpenAIChatToolChoice, h as OpenAIChatTool, i as AgentExecutionBackend, l as AgentTaskRunResult, m as OpenAIChatResponseFormat, n as AgentBackendContext, o as AgentRuntimeEvent, p as KnowledgeReadinessDecision, r as AgentBackendInput, s as AgentRuntimeEventSink, t as AgentAdapter, u as AgentTaskSpec, v as RunAgentTaskStreamOptions, x as RuntimeStreamEvent, y as RuntimeSession } from "./types-C9j4qg6l.js";
2
- import { An as SupervisorFinalizer, Gd as AgentEvalErrorCode, Jd as JudgeError, Kd as BackendTransportError, Nc as CoordinationEvent, On as FinalizeContext, Qd as ValidationError, Wd as AgentEvalError, Xd as PlannerError, Yd as NotFoundError, Zd as RuntimeRunStateError, kc as AnalystRegistry, qd as ConfigError, ql as WorktreeCheckRunner } from "./index-DPWJxSRa.js";
2
+ import { Bd as ValidationError, Fd as ConfigError, Fl as WorktreeCheckRunner, Ic as CoordinationEvent, Id as JudgeError, Ld as NotFoundError, Mc as AnalystRegistry, Md as AgentEvalError, Nd as AgentEvalErrorCode, Nn as SupervisorFinalizer, Pd as BackendTransportError, Rd as PlannerError, jn as FinalizeContext, zd as RuntimeRunStateError } from "./index-CGADWaa_.js";
3
3
  import { a as RuntimeHookErrorContext, c as RuntimeHookTarget, d as defineRuntimeHooks, f as notifyRuntimeDecisionPoint, i as RuntimeHookContext, l as RuntimeHooks, n as RuntimeDecisionKind, o as RuntimeHookEvent, p as notifyRuntimeHookEvent, r as RuntimeDecisionPoint, s as RuntimeHookPhase, t as RuntimeDecisionEvidenceRef, u as composeRuntimeHooks } from "./runtime-hooks-sbRpjStq.js";
4
4
  import { A as RuntimeRunCompleteInput, F as RuntimeRunRow, I as RuntimeRunStatus, L as startRuntimeRun, M as RuntimeRunHandle, N as RuntimeRunOptions, P as RuntimeRunPersistenceAdapter, j as RuntimeRunCost, m as LoopResult, r as Driver } from "./types-DnNGJ5Gz.js";
5
- import { $t as buildLoopOtelSpans, Ct as SupervisedResult, Gt as EvalRunsExportResult, H as Executor, Ht as EvalRunEvent, Jt as OtelAttribute, Kt as INTELLIGENCE_WIRE_VERSION, Mt as WorkerTraceUnavailableReason, Qt as RuntimeEventOtelOptions, R as AgentSpec, Ut as EvalRunGeneration, Wt as EvalRunsExportConfig, Xt as OtelExporter, Y as ExecutorRegistry, Yt as OtelExportConfig, Zt as OtelSpan, _n as sanitizeAgentRuntimeEvent, an as generateSpanId, cn as RuntimeEventCollector, dn as RuntimeStreamEventSummary, en as buildLoopSpanNodes, fn as RuntimeTelemetryOptions, gn as createRuntimeStreamEventCollector, hn as createRuntimeEventCollector, ht as Settled, in as exportEvalRuns, jt as WorkerTraceEvidence, ln as RuntimeStreamEventCollector, mn as SanitizedKnowledgeRequirement, mt as Scope, nn as createOpenInferenceFileExporter, on as loopEventToOtelSpan, pn as SanitizedKnowledgeReadinessReport, qt as LoopSpanNode, rn as createOtelExporter, sn as toOtelAttributes, tn as buildRuntimeEventOtelSpans, un as RuntimeStreamEventSink, vn as sanitizeKnowledgeReadinessReport, wt as Supervisor, xt as Spend, yn as sanitizeRuntimeStreamEvent, z as Budget } from "./environment-provider-CTZjdIUg.js";
6
- import { C as AgentCandidateCodeSurfaceSource, D as AgentCandidateBundleInput, E as buildAgentCandidateBundle, O as sealAgentCandidateBundle, S as AgentCandidateCodeSource, T as BuildAgentCandidateBundleInput, _ as exactProcessProviderAsCandidateExecutor, a as captureAgentCandidateWorkspace, b as FileAgentCandidateExecutionClaimStore, c as AGENT_CANDIDATE_EXECUTION_SUPPORT, d as recoverExpiredAgentCandidateExecution, f as persistCandidateOutputArtifact, g as ExactProcessCandidateExecutorOptions, h as candidateKnowledgeExecutionPaths, i as CreateAgentCandidateWorkspacePortOptions, l as verifyAgentCandidateBundle, m as CANDIDATE_KNOWLEDGE_ROOT_ENV, n as CaptureAgentCandidateWorkspaceOptions, o as captureAgentCandidateWorkspaceFiles, p as CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, r as CapturedAgentCandidateWorkspace, s as createAgentCandidateWorkspacePort, t as AgentCandidateWorkspaceArchiveLimits, u as RecoverExpiredAgentCandidateOptions, v as DisposePreparedAgentCandidateOptions, w as AgentCandidateProfileSource, x as FileAgentCandidateExecutionClaimStoreOptions, y as disposePreparedAgentCandidateExecution } from "./index-X2YwyWkc.js";
7
- import { A as AgentCandidateExecutionPhase, B as AgentCandidatePreparationEvidence, C as AgentCandidateExecutionClaim, D as AgentCandidateExecutionFailureClass, E as AgentCandidateExecutionCleanupHandles, F as AgentCandidateExecutionTerminalResult, I as AgentCandidateRetryRejection, L as InMemoryAgentCandidateExecutionClaimStore, M as AgentCandidateExecutionRecoveryEvidence, N as AgentCandidateExecutionStageResult, O as AgentCandidateExecutionFinishResult, P as AgentCandidateExecutionTerminalRecord, R as InMemoryAgentCandidateExecutionClaimStoreOptions, S as AgentCandidateExecutionAttemptRef, T as AgentCandidateExecutionClaimStore, _ as PrepareAgentCandidateExecutionOptions, a as AgentCandidateModelGrantSettleInput, b as executePreparedAgentCandidate, c as agentCandidateProfileAsAgentProfile, d as freezeGenericAgentCandidateProfile, f as omitUndefinedObjectFields, g as parseExactCandidateProfile, h as parseExactAgentProfileDiff, i as AgentCandidateModelGrantReserveInput, j as AgentCandidateExecutionPhaseResult, k as AgentCandidateExecutionLease, l as applyExactAgentProfileDiff, m as parseExactAgentProfile, n as AgentCandidateModelGrantClient, o as CreateProtectedAgentCandidateModelPortOptions, r as AgentCandidateModelGrantReservation, s as createProtectedAgentCandidateModelPort, t as AgentCandidateModelGrantActivateInput, u as assertCandidateProfileBinding, v as prepareAgentCandidateExecution, w as AgentCandidateExecutionClaimResult, x as AgentCandidateExecutionAttemptRecord, y as ExecutePreparedAgentCandidateOptions, z as candidateExecutionClaim } from "./protected-model-port-B0yXMpLL.js";
5
+ import { $t as buildLoopOtelSpans, Ct as SupervisedResult, Gt as EvalRunsExportResult, H as Executor, Ht as EvalRunEvent, Jt as OtelAttribute, Kt as INTELLIGENCE_WIRE_VERSION, Mt as WorkerTraceUnavailableReason, Qt as RuntimeEventOtelOptions, R as AgentSpec, Ut as EvalRunGeneration, Wt as EvalRunsExportConfig, Xt as OtelExporter, Y as ExecutorRegistry, Yt as OtelExportConfig, Zt as OtelSpan, _n as sanitizeAgentRuntimeEvent, an as generateSpanId, cn as RuntimeEventCollector, dn as RuntimeStreamEventSummary, en as buildLoopSpanNodes, fn as RuntimeTelemetryOptions, gn as createRuntimeStreamEventCollector, hn as createRuntimeEventCollector, ht as Settled, in as exportEvalRuns, jt as WorkerTraceEvidence, ln as RuntimeStreamEventCollector, mn as SanitizedKnowledgeRequirement, mt as Scope, nn as createOpenInferenceFileExporter, on as loopEventToOtelSpan, pn as SanitizedKnowledgeReadinessReport, qt as LoopSpanNode, rn as createOtelExporter, sn as toOtelAttributes, tn as buildRuntimeEventOtelSpans, un as RuntimeStreamEventSink, vn as sanitizeKnowledgeReadinessReport, wt as Supervisor, xt as Spend, yn as sanitizeRuntimeStreamEvent, z as Budget } from "./environment-provider-Bh4nX2qt.js";
6
+ import { C as AgentCandidateCodeSurfaceSource, D as AgentCandidateBundleInput, E as buildAgentCandidateBundle, O as sealAgentCandidateBundle, S as AgentCandidateCodeSource, T as BuildAgentCandidateBundleInput, _ as exactProcessProviderAsCandidateExecutor, a as captureAgentCandidateWorkspace, b as FileAgentCandidateExecutionClaimStore, c as AGENT_CANDIDATE_EXECUTION_SUPPORT, d as recoverExpiredAgentCandidateExecution, f as persistCandidateOutputArtifact, g as ExactProcessCandidateExecutorOptions, h as candidateKnowledgeExecutionPaths, i as CreateAgentCandidateWorkspacePortOptions, l as verifyAgentCandidateBundle, m as CANDIDATE_KNOWLEDGE_ROOT_ENV, n as CaptureAgentCandidateWorkspaceOptions, o as captureAgentCandidateWorkspaceFiles, p as CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, r as CapturedAgentCandidateWorkspace, s as createAgentCandidateWorkspacePort, t as AgentCandidateWorkspaceArchiveLimits, u as RecoverExpiredAgentCandidateOptions, v as DisposePreparedAgentCandidateOptions, w as AgentCandidateProfileSource, x as FileAgentCandidateExecutionClaimStoreOptions, y as disposePreparedAgentCandidateExecution } from "./index-B3bHsVLw.js";
7
+ import { A as AgentCandidateExecutionPhase, B as AgentCandidatePreparationEvidence, C as AgentCandidateExecutionClaim, D as AgentCandidateExecutionFailureClass, E as AgentCandidateExecutionCleanupHandles, F as AgentCandidateExecutionTerminalResult, I as AgentCandidateRetryRejection, L as InMemoryAgentCandidateExecutionClaimStore, M as AgentCandidateExecutionRecoveryEvidence, N as AgentCandidateExecutionStageResult, O as AgentCandidateExecutionFinishResult, P as AgentCandidateExecutionTerminalRecord, R as InMemoryAgentCandidateExecutionClaimStoreOptions, S as AgentCandidateExecutionAttemptRef, T as AgentCandidateExecutionClaimStore, _ as PrepareAgentCandidateExecutionOptions, a as AgentCandidateModelGrantSettleInput, b as executePreparedAgentCandidate, c as agentCandidateProfileAsAgentProfile, d as freezeGenericAgentCandidateProfile, f as omitUndefinedObjectFields, g as parseExactCandidateProfile, h as parseExactAgentProfileDiff, i as AgentCandidateModelGrantReserveInput, j as AgentCandidateExecutionPhaseResult, k as AgentCandidateExecutionLease, l as applyExactAgentProfileDiff, m as parseExactAgentProfile, n as AgentCandidateModelGrantClient, o as CreateProtectedAgentCandidateModelPortOptions, r as AgentCandidateModelGrantReservation, s as createProtectedAgentCandidateModelPort, t as AgentCandidateModelGrantActivateInput, u as assertCandidateProfileBinding, v as prepareAgentCandidateExecution, w as AgentCandidateExecutionClaimResult, x as AgentCandidateExecutionAttemptRecord, y as ExecutePreparedAgentCandidateOptions, z as candidateExecutionClaim } from "./protected-model-port-CoJOiINX.js";
8
8
  import { A as CANDIDATE_TRACE_ENV, B as VerifiedAgentCandidate, C as AgentCandidateProtectedModelSettlement, D as AgentCandidateTaskExecution, E as AgentCandidateRunFinalization, F as PreparedAgentCandidateInstruction, I as PreparedAgentCandidateKnowledge, L as PreparedAgentCandidateLaunch, M as CanonicalCandidateDocument, N as PersistedTaskOutcomeEvidence, O as AgentCandidateVerificationPorts, P as PreparedAgentCandidateExecution, R as PreparedAgentCandidateTrace, S as AgentCandidateProtectedModelReservation, T as AgentCandidateRepositoryPort, V as VerifiedAgentCandidateTaskOutcome, _ as AgentCandidateModelLimits, a as AgentCandidateExecutionPorts, b as AgentCandidateOutputPurpose, c as AgentCandidateExecutorPort, d as AgentCandidateExecutorStopRequest, f as AgentCandidateExecutorTaskOutcomeCapture, g as AgentCandidateMemoryResetResult, h as AgentCandidateMemoryPort, i as AgentCandidateContainerPort, j as CANDIDATE_TRACE_TAGS, k as AgentCandidateWorkspacePort, l as AgentCandidateExecutorProfileFile, m as AgentCandidateExecutorWorkspaceInput, n as AgentCandidateBenchmarkGraderIdentity, o as AgentCandidateExecutorFinalCapture, p as AgentCandidateExecutorWorkspaceFile, r as AgentCandidateBenchmarkGraderPort, s as AgentCandidateExecutorMemoryCapture, t as AgentCandidateArtifactPort, u as AgentCandidateExecutorRequest, v as AgentCandidateModelPort, w as AgentCandidateProtectedRunCapture, x as AgentCandidateProtectedModelActivation, y as AgentCandidateOutputArtifactPort, z as ResolvedAgentCandidateContainer } from "./types-BaIpb0XT.js";
9
9
  import { $ as sleep, A as RunConversationOptions, B as buildForwardHeaders, C as ConversationResult, D as HaltPredicate, E as HaltContext, F as InMemoryConversationJournal, G as CircuitBreakerState, H as readDepth, I as DEFAULT_MAX_DEPTH, J as RetryBackoff, K as CircuitOpenError, L as FORWARD_HEADERS, M as ConversationJournal, N as ConversationJournalEntry, O as HaltReason, P as FileConversationJournal, Q as makePerAttemptSignal, R as ForwardHeaderName, S as ConversationPolicy, T as ConversationTurn, U as BackendCallPolicy, V as isDepthExceeded, W as CircuitBreakerConfig, X as computeBackoff, Y as RetryableErrorPredicate, Z as defaultIsRetryable, _ as createConversationBackend, a as RunPersonaConfig, b as ConversationDriveState, c as runPersonaDispatch, d as D1DatabaseLike, f as D1StmtLike, g as defineConversation, h as d1ToSqlAdapter, i as PersonaDriver, j as TurnOrder, k as HaltSignal, l as runConversation, m as SqlConversationJournal, n as turnId, o as RunPersonaConversationOptions, p as SqlAdapter, q as DeadlineExceededError, r as PersonaConversationResult, s as runPersonaConversation, t as slugifySpeaker, u as runConversationStream, v as AuthSource, w as ConversationStreamEvent, x as ConversationParticipant, y as Conversation, z as PropagatedHeaders } from "./index-Efjb3nrQ.js";
10
- import { $ as McpServeSpec, A as resolveRouterBaseUrl, B as RawTraceDistillerOptions, C as DEFAULT_ROUTER_BASE_URL, D as cleanModelId, E as RouterEnv, F as parseRolloutPolicy, G as strategyAuthorMethod, H as buildDriverSystem, I as serializeRolloutPolicy, J as OfficialOptimizerUnavailableError, K as OfficialGepaOptions, L as structuralRolloutPolicyFromProfile, M as ROLLOUT_POLICY_EXTENSION, N as applyRolloutPolicyToProfile, O as getModels, P as normalizeRolloutPolicy, Q as officialSkillOpt, R as ReflectiveGeneratorOptions, S as ChatModelValidation, T as ResolvedChatModel, U as optimizerMethod, V as rawTraceDistiller, W as researchDriverNote, X as OfficialSkillOptOptions, Y as OfficialSensitiveCandidateInput, Z as officialGepa, _ as AgentBackendKind, a as ControlStep, at as mcpBuildPrompt, b as decideKnowledgeReadiness, c as KnowledgeRequirement, ct as createIterableBackend, d as readinessServerSentEvent, et as mcpServeVerifier, f as runtimeStreamServerSentEvent, g as runAgentTaskStream, h as runAgentTask, i as ControlRunResult, it as findingLines, j as validateChatModelId, k as resolveChatModel, l as RunRecord, lt as createOpenAICompatibleBackend, m as applyRunRecordDefaults, n as ControlDecision, nt as driverLoopGenerator, o as DataAcquisitionPlan, ot as toolBuildPrompt, p as InMemoryRuntimeSessionStore, q as OfficialOptimizerContextOptions, r as ControlEvalResult, rt as BuildPromptFindingsInput, s as KnowledgeReadinessReport, st as BackendRetryPolicy, t as ControlBudget, tt as DriverLoopGeneratorOptions, u as ServerSentEventOptions, ut as createSandboxPromptBackend, v as ResolveAgentBackendOptions, w as ModelInfo, x as ChatModelCandidate, y as resolveAgentBackend, z as reflectiveGenerator } from "./index-BTUG4Xln.js";
11
- import { A as DeepReadonly, B as commandVerifier, C as ImproveResult, D as ImprovementCandidate, E as ImproveSurface, F as AgenticGeneratorShotExecution, H as CandidateGenerator, I as AgenticGeneratorShotReceipt, L as Verifier, M as AGENTIC_PROFILE_RESOURCE_ROOT, N as AgenticGeneratorOptions, O as ImprovementCodeCandidate, P as AgenticGeneratorShotDisposition, R as VerifyResult, S as ImproveProfileSurface, T as ImproveSkillsOptions, V as defaultBuildPrompt, _ as ImproveMethodSource, a as ImproveCandidateValidationInput, b as ImproveProfileAgent, c as ImproveCodeResult, d as ImproveLineage, f as ImproveMethodContext, g as ImproveMethodResult, h as ImproveMethodOptions, i as improve, j as ReadonlyAgentProfile, k as ImprovementProfileCandidate, l as ImproveCodeRunOptions, m as ImproveMethodLineage, o as ImproveCandidateValidator, p as ImproveMethodFactory, s as ImproveCodeOptions, u as ImproveCost, v as ImproveOptimizationRunOptions, w as ImproveScenarioPartitions, x as ImproveProfileComponents, y as ImproveOptions, z as agenticGenerator } from "./redact-BEtQtvd6.js";
12
- import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-BHSYaWrC.js";
13
- import { _ as researchLoopRunner, a as DELEGATED_LOOP_MODES, c as DelegatedLoopResult, d as ResearchLoopRunnerOptions, f as RunDelegatedLoopOptions, g as isDelegatedLoopMode, h as auditLoopRunner, i as runLoopRunnerCli, l as DelegatedLoopRunner, m as WorktreeLoopRunnerOptions, n as LoopRunnerCliResult, o as DelegatedLoopMode, p as VetoedFact, r as parseLoopRunnerArgv, s as DelegatedLoopRegistry, t as LoopRunnerCliArgs, u as ResearchLoopResult, v as runDelegatedLoop, y as worktreeLoopRunner } from "./loop-runner-bin-oyL7it5O.js";
10
+ import { $ as McpServeSpec, A as resolveRouterBaseUrl, B as RawTraceDistillerOptions, C as DEFAULT_ROUTER_BASE_URL, D as cleanModelId, E as RouterEnv, F as parseRolloutPolicy, G as strategyAuthorMethod, H as buildDriverSystem, I as serializeRolloutPolicy, J as OfficialOptimizerUnavailableError, K as OfficialGepaOptions, L as structuralRolloutPolicyFromProfile, M as ROLLOUT_POLICY_EXTENSION, N as applyRolloutPolicyToProfile, O as getModels, P as normalizeRolloutPolicy, Q as officialSkillOpt, R as ReflectiveGeneratorOptions, S as ChatModelValidation, T as ResolvedChatModel, U as optimizerMethod, V as rawTraceDistiller, W as researchDriverNote, X as OfficialSkillOptOptions, Y as OfficialSensitiveCandidateInput, Z as officialGepa, _ as AgentBackendKind, a as ControlStep, at as mcpBuildPrompt, b as decideKnowledgeReadiness, c as KnowledgeRequirement, ct as createIterableBackend, d as readinessServerSentEvent, et as mcpServeVerifier, f as runtimeStreamServerSentEvent, g as runAgentTaskStream, h as runAgentTask, i as ControlRunResult, it as findingLines, j as validateChatModelId, k as resolveChatModel, l as RunRecord, lt as createOpenAICompatibleBackend, m as applyRunRecordDefaults, n as ControlDecision, nt as driverLoopGenerator, o as DataAcquisitionPlan, ot as toolBuildPrompt, p as InMemoryRuntimeSessionStore, q as OfficialOptimizerContextOptions, r as ControlEvalResult, rt as BuildPromptFindingsInput, s as KnowledgeReadinessReport, st as BackendRetryPolicy, t as ControlBudget, tt as DriverLoopGeneratorOptions, u as ServerSentEventOptions, ut as createSandboxPromptBackend, v as ResolveAgentBackendOptions, w as ModelInfo, x as ChatModelCandidate, y as resolveAgentBackend, z as reflectiveGenerator } from "./index-I35151Fr.js";
11
+ import { A as DeepReadonly, B as commandVerifier, C as ImproveResult, D as ImprovementCandidate, E as ImproveSurface, F as AgenticGeneratorShotExecution, H as CandidateGenerator, I as AgenticGeneratorShotReceipt, L as Verifier, M as AGENTIC_PROFILE_RESOURCE_ROOT, N as AgenticGeneratorOptions, O as ImprovementCodeCandidate, P as AgenticGeneratorShotDisposition, R as VerifyResult, S as ImproveProfileSurface, T as ImproveSkillsOptions, V as defaultBuildPrompt, _ as ImproveMethodSource, a as ImproveCandidateValidationInput, b as ImproveProfileAgent, c as ImproveCodeResult, d as ImproveLineage, f as ImproveMethodContext, g as ImproveMethodResult, h as ImproveMethodOptions, i as improve, j as ReadonlyAgentProfile, k as ImprovementProfileCandidate, l as ImproveCodeRunOptions, m as ImproveMethodLineage, o as ImproveCandidateValidator, p as ImproveMethodFactory, s as ImproveCodeOptions, u as ImproveCost, v as ImproveOptimizationRunOptions, w as ImproveScenarioPartitions, x as ImproveProfileComponents, y as ImproveOptions, z as agenticGenerator } from "./redact-PQzmE1Jn.js";
12
+ import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-BLsKcxNd.js";
13
+ import { _ as researchLoopRunner, a as DELEGATED_LOOP_MODES, c as DelegatedLoopResult, d as ResearchLoopRunnerOptions, f as RunDelegatedLoopOptions, g as isDelegatedLoopMode, h as auditLoopRunner, i as runLoopRunnerCli, l as DelegatedLoopRunner, m as WorktreeLoopRunnerOptions, n as LoopRunnerCliResult, o as DelegatedLoopMode, p as VetoedFact, r as parseLoopRunnerArgv, s as DelegatedLoopRegistry, t as LoopRunnerCliArgs, u as ResearchLoopResult, v as runDelegatedLoop, y as worktreeLoopRunner } from "./loop-runner-bin-BeG9vTdE.js";
14
14
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-B68JaOCx.js";
15
15
  export { AGENTIC_PROFILE_RESOURCE_ROOT, AGENT_CANDIDATE_EXECUTION_SUPPORT, type AgentAdapter, type AgentBackendContext, type AgentBackendInput, type AgentBackendKind, type AgentCandidateArtifactPort, type AgentCandidateBenchmarkGraderIdentity, type AgentCandidateBenchmarkGraderPort, type AgentCandidateBundleInput, type AgentCandidateCodeSource, type AgentCandidateCodeSurfaceSource, type AgentCandidateContainerPort, type AgentCandidateExecutionAttemptRecord, type AgentCandidateExecutionAttemptRef, type AgentCandidateExecutionClaim, type AgentCandidateExecutionClaimResult, type AgentCandidateExecutionClaimStore, type AgentCandidateExecutionCleanupHandles, type AgentCandidateExecutionFailureClass, type AgentCandidateExecutionFinishResult, type AgentCandidateExecutionLease, type AgentCandidateExecutionPhase, type AgentCandidateExecutionPhaseResult, type AgentCandidateExecutionPorts, type AgentCandidateExecutionRecoveryEvidence, type AgentCandidateExecutionStageResult, type AgentCandidateExecutionTerminalRecord, type AgentCandidateExecutionTerminalResult, type AgentCandidateExecutorFinalCapture, type AgentCandidateExecutorMemoryCapture, type AgentCandidateExecutorPort, type AgentCandidateExecutorProfileFile, type AgentCandidateExecutorRequest, type AgentCandidateExecutorStopRequest, type AgentCandidateExecutorTaskOutcomeCapture, type AgentCandidateExecutorWorkspaceFile, type AgentCandidateExecutorWorkspaceInput, type AgentCandidateMemoryPort, type AgentCandidateMemoryResetResult, type AgentCandidateModelGrantActivateInput, type AgentCandidateModelGrantClient, type AgentCandidateModelGrantReservation, type AgentCandidateModelGrantReserveInput, type AgentCandidateModelGrantSettleInput, type AgentCandidateModelLimits, type AgentCandidateModelPort, type AgentCandidateOutputArtifactPort, type AgentCandidateOutputPurpose, type AgentCandidatePreparationEvidence, type AgentCandidateProfileSource, type AgentCandidateProtectedModelActivation, type AgentCandidateProtectedModelReservation, type AgentCandidateProtectedModelSettlement, type AgentCandidateProtectedRunCapture, type AgentCandidateRepositoryPort, type AgentCandidateRetryRejection, type AgentCandidateRunFinalization, type AgentCandidateTaskExecution, type AgentCandidateVerificationPorts, type AgentCandidateWorkspaceArchiveLimits, type AgentCandidateWorkspacePort, AgentEvalError, type AgentEvalErrorCode, type AgentExecutionBackend, type AgentKnowledgeProvider, type AgentKnowledgeReadinessCheckOptions, type AgentRuntimeEvent, type AgentRuntimeEventSink, type AgentSpec, type AgentTaskContext, type AgentTaskRunResult, type AgentTaskSpec, type AgentTaskStatus, type AgenticGeneratorOptions, type AgenticGeneratorShotDisposition, type AgenticGeneratorShotExecution, type AgenticGeneratorShotReceipt, type AnalystRegistry, type AuthSource, type BackendCallPolicy, type BackendErrorDetail, type BackendRetryPolicy, BackendTransportError, type Budget, type BuildAgentCandidateBundleInput, type BuildPromptFindingsInput, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, CANDIDATE_KNOWLEDGE_ROOT_ENV, CANDIDATE_TRACE_ENV, CANDIDATE_TRACE_TAGS, type CandidateGenerator, type CanonicalCandidateDocument, type CaptureAgentCandidateWorkspaceOptions, type CapturedAgentCandidateWorkspace, type ChatModelCandidate, type ChatModelValidation, type CircuitBreakerConfig, CircuitBreakerState, CircuitOpenError, ConfigError, type ControlBudget, type ControlDecision, type ControlEvalResult, type ControlRunResult, type ControlStep, type Conversation, type ConversationDriveState, type ConversationJournal, type ConversationJournalEntry, type ConversationParticipant, type ConversationPolicy, type ConversationResult, type ConversationStreamEvent, type ConversationTurn, type CoordinationEvent, type CreateAgentCandidateWorkspacePortOptions, type CreateKnowledgeImprovementActivationExecutorOptions, type CreateProtectedAgentCandidateModelPortOptions, type D1DatabaseLike, type D1StmtLike, DEFAULT_MAX_DEPTH, DEFAULT_ROUTER_BASE_URL, DELEGATED_LOOP_MODES, type DataAcquisitionPlan, DeadlineExceededError, type DeepReadonly, type DelegatedLoopMode, type DelegatedLoopRegistry, type DelegatedLoopResult, type DelegatedLoopRunner, type DisposePreparedAgentCandidateOptions, type Driver, type DriverLoopGeneratorOptions, type EvalRunEvent, type EvalRunGeneration, type EvalRunsExportConfig, type EvalRunsExportResult, type ExactProcessCandidateExecutorOptions, type ExecutePreparedAgentCandidateOptions, type Executor, type ExecutorRegistry, FORWARD_HEADERS, FileAgentCandidateExecutionClaimStore, type FileAgentCandidateExecutionClaimStoreOptions, FileConversationJournal, type FinalizeContext, type ForwardHeaderName, type HaltContext, type HaltPredicate, type HaltReason, type HaltSignal, INTELLIGENCE_WIRE_VERSION, type ImproveCandidateValidationInput, type ImproveCandidateValidator, type ImproveCodeOptions, type ImproveCodeResult, type ImproveCodeRunOptions, type ImproveCost, type ImproveLineage, type ImproveMethodContext, type ImproveMethodFactory, type ImproveMethodLineage, type ImproveMethodOptions, type ImproveMethodResult, type ImproveMethodSource, type ImproveOptimizationRunOptions, type ImproveOptions, type ImproveProfileAgent, type ImproveProfileComponents, type ImproveProfileSurface, type ImproveResult, type ImproveScenarioPartitions, type ImproveSkillsOptions, type ImproveSurface, type ImprovementCandidate, type ImprovementCodeCandidate, type ImprovementProfileCandidate, InMemoryAgentCandidateExecutionClaimStore, type InMemoryAgentCandidateExecutionClaimStoreOptions, InMemoryConversationJournal, InMemoryRuntimeSessionStore, JudgeError, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, type KnowledgeReadinessDecision, type KnowledgeReadinessReport, type KnowledgeRequirement, type LoopResult, type LoopRunnerCliArgs, type LoopRunnerCliResult, type LoopSpanNode, type McpServeSpec, type ModelInfo, NotFoundError, type OfficialGepaOptions, type OfficialOptimizerContextOptions, OfficialOptimizerUnavailableError, type OfficialSensitiveCandidateInput, type OfficialSkillOptOptions, type OpenAIChatResponseFormat, type OpenAIChatTool, type OpenAIChatToolChoice, type OtelAttribute, type OtelExportConfig, type OtelExporter, type OtelSpan, type PersistedTaskOutcomeEvidence, type PersonaConversationResult, type PersonaDriver, PlannerError, type PrepareAgentCandidateExecutionOptions, type PreparedAgentCandidateExecution, type PreparedAgentCandidateInstruction, type PreparedAgentCandidateKnowledge, type PreparedAgentCandidateLaunch, type PreparedAgentCandidateTrace, type PropagatedHeaders, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, ROLLOUT_POLICY_EXTENSION, type RawTraceDistillerOptions, type ReadonlyAgentProfile, type RecoverExpiredAgentCandidateOptions, type ReflectiveGeneratorOptions, type ResearchLoopResult, type ResearchLoopRunnerOptions, type ResolveAgentBackendOptions, type ResolvedAgentCandidateContainer, type ResolvedChatModel, type RetryBackoff, type RetryableErrorPredicate, type RouterEnv, type RunAgentTaskOptions, type RunAgentTaskStreamOptions, type RunConversationOptions, type RunDelegatedLoopOptions, type RunKnowledgeImprovementJobOptions, type RunPersonaConfig, type RunPersonaConversationOptions, type RunRecord, type RuntimeDecisionEvidenceRef, type RuntimeDecisionKind, type RuntimeDecisionPoint, type RuntimeEventCollector, type RuntimeEventOtelOptions, type RuntimeHookContext, type RuntimeHookErrorContext, type RuntimeHookEvent, type RuntimeHookPhase, type RuntimeHookTarget, type RuntimeHooks, type RuntimeRunCompleteInput, type RuntimeRunCost, type RuntimeRunHandle, type RuntimeRunOptions, type RuntimeRunPersistenceAdapter, type RuntimeRunRow, RuntimeRunStateError, type RuntimeRunStatus, type RuntimeSession, type RuntimeSessionStore, type RuntimeStreamEvent, type RuntimeStreamEventCollector, type RuntimeStreamEventSink, type RuntimeStreamEventSummary, type RuntimeTelemetryOptions, type SanitizedKnowledgeReadinessReport, type SanitizedKnowledgeRequirement, type Scope, type ServerSentEventOptions, type Settled, type Spend, type SqlAdapter, SqlConversationJournal, type SupervisedKnowledgeUpdateInput, type SupervisedKnowledgeUpdateOptions, type SupervisedKnowledgeUpdateResult, type SupervisedKnowledgeUpdater, type SupervisedResult, type Supervisor, type SupervisorFinalizer, type TurnOrder, ValidationError, type VerifiedAgentCandidate, type VerifiedAgentCandidateTaskOutcome, type Verifier, type VerifyResult, type VetoedFact, type WorkerTraceEvidence, type WorkerTraceUnavailableReason, type WorktreeCheckRunner, type WorktreeLoopRunnerOptions, agentCandidateProfileAsAgentProfile, agenticGenerator, applyExactAgentProfileDiff, applyRolloutPolicyToProfile, applyRunRecordDefaults, assertCandidateProfileBinding, auditLoopRunner, buildAgentCandidateBundle, buildDriverSystem, buildForwardHeaders, buildKnowledgeImprovementExperimentBundles, buildLoopOtelSpans, buildLoopSpanNodes, buildRuntimeEventOtelSpans, candidateExecutionClaim, candidateKnowledgeExecutionPaths, captureAgentCandidateWorkspace, captureAgentCandidateWorkspaceFiles, cleanModelId, commandVerifier, composeRuntimeHooks, computeBackoff, createAgentCandidateWorkspacePort, createAgentKnowledgeReadinessCheck, createConversationBackend, createIterableBackend, createKnowledgeImprovementActivationExecutor, createOpenAICompatibleBackend, createOpenInferenceFileExporter, createOtelExporter, createProtectedAgentCandidateModelPort, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, createSupervisedKnowledgeUpdater, d1ToSqlAdapter, decideKnowledgeReadiness, defaultBuildPrompt, defaultIsRetryable, defineConversation, defineRuntimeHooks, disposePreparedAgentCandidateExecution, driverLoopGenerator, exactProcessProviderAsCandidateExecutor, executePreparedAgentCandidate, exportEvalRuns, findingLines, formatSupervisedKnowledgeTask, freezeGenericAgentCandidateProfile, generateSpanId, getModels, improve, isDelegatedLoopMode, isDepthExceeded, knowledgeReadinessDeliverable, loopEventToOtelSpan, makePerAttemptSignal, mcpBuildPrompt, mcpServeVerifier, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, normalizeRolloutPolicy, notifyRuntimeDecisionPoint, notifyRuntimeHookEvent, officialGepa, officialSkillOpt, omitUndefinedObjectFields, optimizerMethod, parseExactAgentProfile, parseExactAgentProfileDiff, parseExactCandidateProfile, parseLoopRunnerArgv, parseRolloutPolicy, persistCandidateOutputArtifact, prepareAgentCandidateExecution, rawTraceDistiller, readDepth, readinessServerSentEvent, recoverExpiredAgentCandidateExecution, reflectiveGenerator, researchDriverNote, researchLoopRunner, resolveAgentBackend, resolveChatModel, resolveRouterBaseUrl, runAgentTask, runAgentTaskStream, runConversation, runConversationStream, runDelegatedLoop, runKnowledgeImprovementJob, runLoopRunnerCli, runPersonaConversation, runPersonaDispatch, runSupervisedKnowledgeUpdate, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, sealAgentCandidateBundle, serializeRolloutPolicy, sleep, slugifySpeaker, startRuntimeRun, strategyAuthorMethod, structuralRolloutPolicyFromProfile, toOtelAttributes, toolBuildPrompt, turnId, validateChatModelId, verifyAgentCandidateBundle, worktreeLoopRunner };
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { a as JudgeError, c as RuntimeRunStateError, i as ConfigError, o as NotFoundError, r as BackendTransportError, s as PlannerError, t as AgentEvalError, u as ValidationError } from "./errors-DEAvWQPy.js";
2
2
  import { a as InMemoryRuntimeSessionStore, c as startOrResumeRuntimeSession, i as normalizeBackendStreamEvent, l as touchSession, n as createOpenAICompatibleBackend, r as createSandboxPromptBackend, s as nowIso, t as createIterableBackend } from "./backends-CiOCyRHb.js";
3
- import { $ as parseExactAgentProfile, G as agentCandidateProfileAsAgentProfile, K as applyExactAgentProfileDiff, S as CANDIDATE_TRACE_TAGS, X as freezeGenericAgentCandidateProfile, Z as omitUndefinedObjectFields, _ as candidateExecutionClaim, a as persistCandidateOutputArtifact, c as CANDIDATE_KNOWLEDGE_ROOT_ENV, et as parseExactAgentProfileDiff, f as verifyAgentCandidateBundle, h as InMemoryAgentCandidateExecutionClaimStore, l as candidateKnowledgeExecutionPaths, n as executePreparedAgentCandidate, q as assertCandidateProfileBinding, rt as canonicalCandidateDigest, s as CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, t as prepareAgentCandidateExecution, tt as parseExactCandidateProfile, u as AGENT_CANDIDATE_EXECUTION_SUPPORT, x as CANDIDATE_TRACE_ENV } from "./prepare-BbI6qGOW.js";
4
- import { i as sealAgentCandidateBundle, n as captureAgentCandidateWorkspaceFiles, r as createAgentCandidateWorkspacePort, t as captureAgentCandidateWorkspace } from "./workspace-archive-CqPIijFA.js";
5
- import { i as buildAgentCandidateBundle, n as disposePreparedAgentCandidateExecution, r as FileAgentCandidateExecutionClaimStore, t as recoverExpiredAgentCandidateExecution } from "./candidate-execution-PX61zXd2.js";
6
- import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-COnyZfML.js";
3
+ import { $ as parseExactAgentProfile, G as agentCandidateProfileAsAgentProfile, K as applyExactAgentProfileDiff, S as CANDIDATE_TRACE_TAGS, X as freezeGenericAgentCandidateProfile, Z as omitUndefinedObjectFields, _ as candidateExecutionClaim, a as persistCandidateOutputArtifact, c as CANDIDATE_KNOWLEDGE_ROOT_ENV, et as parseExactAgentProfileDiff, f as verifyAgentCandidateBundle, h as InMemoryAgentCandidateExecutionClaimStore, l as candidateKnowledgeExecutionPaths, n as executePreparedAgentCandidate, q as assertCandidateProfileBinding, rt as canonicalCandidateDigest, s as CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, t as prepareAgentCandidateExecution, tt as parseExactCandidateProfile, u as AGENT_CANDIDATE_EXECUTION_SUPPORT, x as CANDIDATE_TRACE_ENV } from "./prepare-DpV6np9e.js";
4
+ import { i as sealAgentCandidateBundle, n as captureAgentCandidateWorkspaceFiles, r as createAgentCandidateWorkspacePort, t as captureAgentCandidateWorkspace } from "./workspace-archive-B4SkNJjw.js";
5
+ import { i as buildAgentCandidateBundle, n as disposePreparedAgentCandidateExecution, r as FileAgentCandidateExecutionClaimStore, t as recoverExpiredAgentCandidateExecution } from "./candidate-execution-DDkSRPjY.js";
6
+ import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-vQLBRoAQ.js";
7
7
  import { C as makePerAttemptSignal, S as defaultIsRetryable, _ as readDepth, a as FileConversationJournal, b as DeadlineExceededError, c as createConversationBackend, d as slugifySpeaker, f as turnId, g as isDepthExceeded, h as buildForwardHeaders, i as d1ToSqlAdapter, l as runConversation, m as FORWARD_HEADERS, n as runPersonaDispatch, o as InMemoryConversationJournal, p as DEFAULT_MAX_DEPTH, r as SqlConversationJournal, s as defineConversation, t as runPersonaConversation, u as runConversationStream, v as CircuitBreakerState, w as sleep, x as computeBackoff, y as CircuitOpenError } from "./conversation-BpLQZGPH.js";
8
- import { A as loopEventToOtelSpan, C as buildLoopSpanNodes, D as exportEvalRuns, E as createOtelExporter, F as sanitizeKnowledgeReadinessReport, I as sanitizeRuntimeStreamEvent, Lt as runLocalHarness, M as createRuntimeEventCollector, N as createRuntimeStreamEventCollector, P as sanitizeAgentRuntimeEvent, S as buildLoopOtelSpans, T as createOpenInferenceFileExporter, j as toOtelAttributes, k as generateSpanId, pt as runBrainLoop, w as buildRuntimeEventOtelSpans, x as INTELLIGENCE_WIRE_VERSION } from "./supervisor-CAXiCKnX.js";
9
- import { D as researchDriverNote, E as optimizerMethod, O as strategyAuthorMethod, T as buildDriverSystem } from "./structural-rollout-DLwW69R4.js";
10
- import { A as improve, B as agenticGenerator, F as normalizeRolloutPolicy, G as summarizeFindings, H as defaultBuildPrompt, I as parseRolloutPolicy, K as worktreeChangedPaths, L as serializeRolloutPolicy, M as rawTraceDistiller, N as ROLLOUT_POLICY_EXTENSION, P as applyRolloutPolicyToProfile, R as structuralRolloutPolicyFromProfile, U as rawTraceEvidenceProblem, V as commandVerifier, W as requiresRawTraceEvidence, j as withMethodRuntimeControls, z as AGENTIC_PROFILE_RESOURCE_ROOT } from "./improvement-cycle-Bcqz8rZI.js";
8
+ import { A as loopEventToOtelSpan, C as buildLoopSpanNodes, D as exportEvalRuns, E as createOtelExporter, F as sanitizeKnowledgeReadinessReport, I as sanitizeRuntimeStreamEvent, M as createRuntimeEventCollector, N as createRuntimeStreamEventCollector, P as sanitizeAgentRuntimeEvent, S as buildLoopOtelSpans, T as createOpenInferenceFileExporter, Wt as runLocalHarness, gt as runBrainLoop, j as toOtelAttributes, k as generateSpanId, w as buildRuntimeEventOtelSpans, x as INTELLIGENCE_WIRE_VERSION } from "./supervisor-CpT9yAxL.js";
9
+ import { D as researchDriverNote, E as optimizerMethod, O as strategyAuthorMethod, T as buildDriverSystem } from "./structural-rollout-DQHO3b2Y.js";
10
+ import { A as improve, B as agenticGenerator, F as normalizeRolloutPolicy, G as summarizeFindings, H as defaultBuildPrompt, I as parseRolloutPolicy, K as worktreeChangedPaths, L as serializeRolloutPolicy, M as rawTraceDistiller, N as ROLLOUT_POLICY_EXTENSION, P as applyRolloutPolicyToProfile, R as structuralRolloutPolicyFromProfile, U as rawTraceEvidenceProblem, V as commandVerifier, W as requiresRawTraceEvidence, j as withMethodRuntimeControls, z as AGENTIC_PROFILE_RESOURCE_ROOT } from "./improvement-cycle-zjR-MXwK.js";
11
11
  import { i as notifyRuntimeHookEvent, n as defineRuntimeHooks, r as notifyRuntimeDecisionPoint, t as composeRuntimeHooks } from "./runtime-hooks-C7iJOWm3.js";
12
- import { Ft as McpSpawnFault, It as connectStdioMcp } from "./runtime-Ce39zfqn.js";
12
+ import { Dt as McpSpawnFault, Ot as connectStdioMcp } from "./runtime-D4e3GP5K.js";
13
13
  import { n as defaultRedactorIdentityMaterial, r as resolveRedactor, t as defaultRedactor } from "./redact-D-u-rrcn.js";
14
- import { a as createSupervisedKnowledgeUpdater, c as runSupervisedKnowledgeUpdate, i as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, l as createKnowledgeImprovementActivationExecutor, n as createAgentKnowledgeReadinessCheck, o as formatSupervisedKnowledgeTask, r as runKnowledgeImprovementJob, s as knowledgeReadinessDeliverable, t as buildKnowledgeImprovementExperimentBundles } from "./knowledge-CDlrayRc.js";
15
- import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-BxhhDtmG.js";
16
- import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-CO9X36zy.js";
14
+ import { a as createSupervisedKnowledgeUpdater, c as runSupervisedKnowledgeUpdate, i as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, l as createKnowledgeImprovementActivationExecutor, n as createAgentKnowledgeReadinessCheck, o as formatSupervisedKnowledgeTask, r as runKnowledgeImprovementJob, s as knowledgeReadinessDeliverable, t as buildKnowledgeImprovementExperimentBundles } from "./knowledge-I1e9zQGj.js";
15
+ import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-L996YVPS.js";
16
+ import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-CvFEzw6f.js";
17
17
  import { a as resolveRouterBaseUrl, i as resolveChatModel, n as cleanModelId, o as validateChatModelId, r as getModels, t as DEFAULT_ROUTER_BASE_URL } from "./model-resolution-Btd9iIKV.js";
18
18
  import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
19
19
  import { gepaOptimizationMethod, skillOptOptimizationMethod } from "@tangle-network/agent-eval/campaign";
@@ -122,7 +122,7 @@ const readFileDefaultBytes = 8192;
122
122
  const researchResultMaxChars = 8e3;
123
123
  /** Driver→worker `CandidateGenerator`: an LLM driver on the canonical tool-loop authors, observes, rates, and steers coding-harness sessions in the worktree until the verifier passes or the session budget is spent. */
124
124
  function driverLoopGenerator(opts) {
125
- const harness = opts.harness ?? "claude";
125
+ const harness = opts.harness ?? "claude-code";
126
126
  const buildPrompt = opts.buildPrompt ?? defaultBuildPrompt;
127
127
  const run = opts.runHarness ?? runLocalHarness;
128
128
  const changed = opts.changedPaths ?? worktreeChangedPaths;