@tangle-network/agent-runtime 0.113.1 → 0.114.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 (63) hide show
  1. package/dist/{activation-UZ1JenNv.js → activation-DlKl7-1o.js} +3 -3
  2. package/dist/{activation-UZ1JenNv.js.map → activation-DlKl7-1o.js.map} +1 -1
  3. package/dist/agent.d.ts +18 -7
  4. package/dist/agent.js +123 -64
  5. package/dist/agent.js.map +1 -1
  6. package/dist/candidate-execution/index.js +4 -4
  7. package/dist/{candidate-execution-Co3sRC_7.js → candidate-execution-CfpJrd3o.js} +4 -4
  8. package/dist/{candidate-execution-Co3sRC_7.js.map → candidate-execution-CfpJrd3o.js.map} +1 -1
  9. package/dist/{environment-provider-BsHpW4Dp.js → environment-provider-CCaEhA-l.js} +38 -4
  10. package/dist/environment-provider-CCaEhA-l.js.map +1 -0
  11. package/dist/{environment-provider-DG-cSx89.d.ts → environment-provider-Cygthiy3.d.ts} +40 -1
  12. package/dist/environment-provider.d.ts +1 -1
  13. package/dist/environment-provider.js +1 -1
  14. package/dist/{improvement-cycle-C3CrNfcy.js → improvement-cycle-vLye8pYb.js} +4 -4
  15. package/dist/{improvement-cycle-C3CrNfcy.js.map → improvement-cycle-vLye8pYb.js.map} +1 -1
  16. package/dist/{index-Cr7QlEUL.d.ts → index-BLf-SZ2b.d.ts} +6 -6
  17. package/dist/{index-zMAqz53v.d.ts → index-D-lNUfea.d.ts} +147 -9
  18. package/dist/{index-B6WclhZI.d.ts → index-YpvLKzIX.d.ts} +3 -3
  19. package/dist/index.d.ts +7 -7
  20. package/dist/index.js +11 -11
  21. package/dist/intelligence.d.ts +3 -3
  22. package/dist/intelligence.js +5 -5
  23. package/dist/kernel.d.ts +4 -4
  24. package/dist/kernel.js +7 -7
  25. package/dist/{knowledge-GAJFl_gz.js → knowledge-BTsA9n6L.js} +5 -5
  26. package/dist/{knowledge-GAJFl_gz.js.map → knowledge-BTsA9n6L.js.map} +1 -1
  27. package/dist/knowledge.d.ts +1 -1
  28. package/dist/knowledge.js +1 -1
  29. package/dist/{local-harness-Ce1emWJE.d.ts → local-harness-BnB1E9nM.d.ts} +82 -2
  30. package/dist/{loop-runner-bin-Cba5tsdb.d.ts → loop-runner-bin-Cg_8UKZR.d.ts} +3 -3
  31. package/dist/{loop-runner-bin-DvLdFo38.js → loop-runner-bin-CuBMmlMJ.js} +3 -3
  32. package/dist/{loop-runner-bin-DvLdFo38.js.map → loop-runner-bin-CuBMmlMJ.js.map} +1 -1
  33. package/dist/loop-runner-bin.d.ts +1 -1
  34. package/dist/loop-runner-bin.js +1 -1
  35. package/dist/mcp/bin.js +1 -1
  36. package/dist/mcp/index.d.ts +2 -2
  37. package/dist/mcp/index.js +4 -4
  38. package/dist/{openai-tools-DftmzKLc.js → openai-tools-VAbzps5G.js} +2 -2
  39. package/dist/{openai-tools-DftmzKLc.js.map → openai-tools-VAbzps5G.js.map} +1 -1
  40. package/dist/{prepare-BKVdOn0w.js → prepare-BHQBb02e.js} +2 -2
  41. package/dist/{prepare-BKVdOn0w.js.map → prepare-BHQBb02e.js.map} +1 -1
  42. package/dist/primeintellect/index.d.ts +1 -1
  43. package/dist/{protected-model-port-BtldAE9j.js → protected-model-port-DqAH1Z2M.js} +2 -2
  44. package/dist/{protected-model-port-BtldAE9j.js.map → protected-model-port-DqAH1Z2M.js.map} +1 -1
  45. package/dist/{redact-xZvPu9qe.d.ts → redact-BRaHUFMf.d.ts} +2 -2
  46. package/dist/{runtime-DlSPFm9o.js → runtime-DQ5seHEu.js} +8 -5
  47. package/dist/runtime-DQ5seHEu.js.map +1 -0
  48. package/dist/{spawn-journal-DLhnom3e.js → spawn-journal-DCPbicXB.js} +2 -1
  49. package/dist/{spawn-journal-DLhnom3e.js.map → spawn-journal-DCPbicXB.js.map} +1 -1
  50. package/dist/{structural-rollout-R_ZqFaB5.js → structural-rollout-C7vF83fV.js} +3 -3
  51. package/dist/{structural-rollout-R_ZqFaB5.js.map → structural-rollout-C7vF83fV.js.map} +1 -1
  52. package/dist/{supervise-BDvAFOTM.js → supervise-tdxMJYem.js} +476 -31
  53. package/dist/supervise-tdxMJYem.js.map +1 -0
  54. package/dist/{supervisor-DS278ICs.js → supervisor-DKqolBGI.js} +232 -22
  55. package/dist/supervisor-DKqolBGI.js.map +1 -0
  56. package/dist/testing.js +9 -9
  57. package/dist/{workspace-archive-CYYxZyA7.js → workspace-archive-DXzJq7WP.js} +2 -2
  58. package/dist/{workspace-archive-CYYxZyA7.js.map → workspace-archive-DXzJq7WP.js.map} +1 -1
  59. package/package.json +1 -1
  60. package/dist/environment-provider-BsHpW4Dp.js.map +0 -1
  61. package/dist/runtime-DlSPFm9o.js.map +0 -1
  62. package/dist/supervise-BDvAFOTM.js.map +0 -1
  63. package/dist/supervisor-DS278ICs.js.map +0 -1
@@ -2,13 +2,13 @@ import { _ as RunAgentTaskOptions, b as RuntimeSessionStore, g as OpenAIChatTool
2
2
  import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
3
3
  import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
4
4
  import "./types-DnNGJ5Gz.js";
5
- import { xd as ConfigError, zn as StructuralRolloutPolicy } from "./index-zMAqz53v.js";
6
- import { D as RuntimeTelemetryOptions, c as runLocalHarness, i as LocalHarness, y as ToolLoopChat } from "./local-harness-Ce1emWJE.js";
5
+ import { Md as ConfigError, zn as StructuralRolloutPolicy } from "./index-D-lNUfea.js";
6
+ import { O as RuntimeTelemetryOptions, b as ToolLoopChat, c as runLocalHarness, i as LocalHarness } from "./local-harness-BnB1E9nM.js";
7
7
  import "./index-C-FYUuFG.js";
8
8
  import "./index-Efjb3nrQ.js";
9
- import { H as CandidateGenerator, L as Verifier, a as ImproveCandidateValidationInput, j as ReadonlyAgentProfile, p as ImproveMethodFactory, t as Redactor } from "./redact-xZvPu9qe.js";
10
- import "./index-B6WclhZI.js";
11
- import "./loop-runner-bin-Cba5tsdb.js";
9
+ import { H as CandidateGenerator, L as Verifier, a as ImproveCandidateValidationInput, j as ReadonlyAgentProfile, p as ImproveMethodFactory, t as Redactor } from "./redact-BRaHUFMf.js";
10
+ import "./index-YpvLKzIX.js";
11
+ import "./loop-runner-bin-Cg_8UKZR.js";
12
12
  import "./openai-tools-B68JaOCx.js";
13
13
  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";
14
14
  import { GepaOptimizationMethodConfig, SkillOptOptimizationMethodConfig } from "@tangle-network/agent-eval/campaign";
@@ -541,4 +541,4 @@ declare function readinessServerSentEvent(report: KnowledgeReadinessReport, opti
541
541
  declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
542
542
  //#endregion
543
543
  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 };
544
- //# sourceMappingURL=index-Cr7QlEUL.d.ts.map
544
+ //# sourceMappingURL=index-BLf-SZ2b.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 Executor, Bt as ExecutorProgress, H as ExecutorFactory, Ht as WorkerProgress, I as Agent, L as AgentSpec, Nt as TraceSource, Q as ResumedKeyState, R as Budget, U as ExecutorRegistry, Z as ResultBlobStore, at as SpawnEvent, dt as SupervisedResult, et as RootHandle, ft as Supervisor, ht as UsageEvent, i as AgentEnvironmentProvider, it as Settled, mt as TreeView, nt as Runtime, o as AgentEnvironmentProviderRegistry, ot as SpawnJournal, q as NodeId, rt as Scope, st as SpawnOpts, ut as Spend, vt as PendingWait, w as ProviderExecutorOptions, xt as WaitProbeRegistry, z as DefaultVerdict } from "./environment-provider-DG-cSx89.js";
5
+ import { B as Executor, Bt as ExecutorProgress, H as ExecutorFactory, Ht as WorkerProgress, I as Agent, L as AgentSpec, Nt as TraceSource, Q as ResumedKeyState, R as Budget, U as ExecutorRegistry, Z as ResultBlobStore, at as SpawnEvent, dt as SupervisedResult, et as RootHandle, ft as Supervisor, ht as UsageEvent, i as AgentEnvironmentProvider, it as Settled, mt as TreeView, nt as Runtime, o as AgentEnvironmentProviderRegistry, ot as SpawnJournal, q as NodeId, rt as Scope, st as SpawnOpts, ut as Spend, vt as PendingWait, w as ProviderExecutorOptions, xt as WaitProbeRegistry, z as DefaultVerdict } from "./environment-provider-Cygthiy3.js";
6
6
  import { o as UiLens, r as UiFinding, s as CoderTask } from "./substrate-BcnuSHXm.js";
7
- import { D as RuntimeTelemetryOptions, c as runLocalHarness, d as RouterConfig, i as LocalHarness, m as ToolSpec, n as CodexExecutionPolicy, r as CodexTokenUsage, x as ToolLoopCompactionOptions, y as ToolLoopChat } from "./local-harness-Ce1emWJE.js";
7
+ import { O as RuntimeTelemetryOptions, 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-BnB1E9nM.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, 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 { AgentProfile as AgentProfile$1, AgentProfile as AgentProfile$2, AgentProfile as AgentProfile$3, AgentProfileMcpServer, AgentProfileModelHints, AgentProfilePrompt, AgentProfileResources, AgentProfileSecurityPolicy } from "@tangle-network/agent-interface";
@@ -1940,6 +1940,126 @@ type WorktreeCheckRunner = (opts: {
1940
1940
  output: string;
1941
1941
  }>;
1942
1942
  //#endregion
1943
+ //#region src/runtime/supervise/pi-mcp.d.ts
1944
+ /** The pi extension that gives pi MCP at all. Everything here is gated on it being loadable. */
1945
+ declare const PI_MCP_ADAPTER = "pi-mcp-adapter";
1946
+ /** Overrides adapter detection for installs whose path does not carry the adapter's name. */
1947
+ declare const PI_MCP_ADAPTER_ENV = "AGENT_RUNTIME_PI_MCP_ADAPTER";
1948
+ /** The adapter-registered flag that names this run's config file (`pi-mcp-adapter` `index.ts:252`). */
1949
+ declare const PI_MCP_CONFIG_FLAG = "--mcp-config";
1950
+ /** What the caller must call once pi has exited, and where the config landed. */
1951
+ interface PiMcpMount {
1952
+ /** Absolute path of the file passed to `--mcp-config`. Unique to this worker execution. */
1953
+ configPath: string;
1954
+ /** Server names actually written, post-filter — never the raw `profile.mcp` keys. */
1955
+ serverNames: string[];
1956
+ /** Remove the private config directory. Idempotent; safe to call on any exit path. */
1957
+ cleanup(): void;
1958
+ }
1959
+ /**
1960
+ * What pi was actually given, as opposed to what the profile declared. This is the observable that
1961
+ * makes rule 2 above honest: `adapterInjected` is `true` exactly when this module added an extension
1962
+ * the caller did not ask for, because without it the MCP servers the caller DID ask for could not
1963
+ * have mounted.
1964
+ */
1965
+ interface PiMcpReceipt {
1966
+ /** Server names written into `configPath`, in declaration order. */
1967
+ servers: string[];
1968
+ /** Absolute path of the mounted config. */
1969
+ configPath: string;
1970
+ /** `extensions.pi.load` entries as pi received them, resolved to absolute entry files. */
1971
+ extensions: string[];
1972
+ /** True when `pi-mcp-adapter` was absent from an explicit `load` array and was added here. */
1973
+ adapterInjected: boolean;
1974
+ }
1975
+ /** Everything `piExecutor` needs between "profile in hand" and "pi spawned". */
1976
+ interface PiMcpPreparation {
1977
+ /** Extra argv for `pi`, in flag order: extension flags first, then `--mcp-config <path>`. */
1978
+ args: string[];
1979
+ /** Present only when at least one usable MCP server was declared. */
1980
+ mount: PiMcpMount | null;
1981
+ /** Present only when a mount happened — the derived-versus-declared record. */
1982
+ receipt: PiMcpReceipt | undefined;
1983
+ }
1984
+ /**
1985
+ * True when pi can actually consume MCP config — i.e. `pi-mcp-adapter` is installed. Ported from
1986
+ * cli-bridge `pi.ts:189`: an env override first (for vendored installs whose path does not carry the
1987
+ * adapter's name), then the npm install directory, then a scan of `settings.json` `packages` in
1988
+ * which a local-path entry is resolved by reading the target's `package.json` `name`. An
1989
+ * unreadable or absent `settings.json` reports "not detected"; it never throws and never assumes.
1990
+ */
1991
+ declare function piMcpAdapterAvailable(): boolean;
1992
+ /**
1993
+ * Build the canonical `{ mcpServers }` body the adapter reads, from `AgentProfile.mcp`.
1994
+ *
1995
+ * This is cli-bridge's `buildCanonicalMcpServers`
1996
+ * (`/home/drew/code/cli-bridge/src/backends/profile-support.ts:253`) reproduced field for field and
1997
+ * in the same key order — same drop of `enabled:false`, same stdio-versus-remote decision
1998
+ * (`isStdioMcpSpec`, `profile-support.ts:177`), same `{command, args, env}` and `{type, url,
1999
+ * headers}` bodies, same silent drop of an entry with nothing to connect to. For any server both
2000
+ * input types can express, the emitted JSON is byte-identical.
2001
+ *
2002
+ * The two input types are not the same type, so three differences remain and each is a field one
2003
+ * side cannot express:
2004
+ *
2005
+ * 1. **`cwd` (emitted here, absent there).** `AgentProfileLocalMcpServer` has `cwd`; cli-bridge's
2006
+ * `McpServerSpec` (`src/backends/types.ts:53`) has no such field, so it can never emit one. The
2007
+ * adapter honors it (`pi-mcp-adapter` `types.ts:325`, `ServerEntry.cwd`), so dropping it would
2008
+ * silently discard a declared setting. It is emitted where cli-bridge emits `timeout`.
2009
+ * 2. **`timeout` (emitted there, absent here).** `AgentProfileMcpServer` has no timeout field, so
2010
+ * there is nothing to emit. (The adapter's own knob is `requestTimeoutMs`, not `timeout`.)
2011
+ * 3. **A `url` with no declared transport.** cli-bridge DROPS it — its remote branch requires an
2012
+ * explicit `spec.type` — even though its own `McpServerSpec` docstring says "http is implied if
2013
+ * `url` is set" (`types.ts:53-56`). `transport` is optional on `AgentProfileRemoteMcpServer`, so
2014
+ * dropping such a server here would be exactly the silent-drop bug this module exists to fix.
2015
+ * We honor the documented convention and emit `type: 'http'`.
2016
+ *
2017
+ * `sse` is ACCEPTED and forwarded verbatim, as cli-bridge forwards it. The adapter connects a URL
2018
+ * server by probing StreamableHTTP and falling back to `SSEClientTransport` when the probe fails
2019
+ * (`pi-mcp-adapter` `server-manager.ts:765`), so an SSE-only endpoint does connect. Its
2020
+ * `ServerEntry` (`types.ts:319`) carries no transport discriminator at all, which means the `type`
2021
+ * key is inert to the adapter either way — but it is what cli-bridge writes, and a config file that
2022
+ * round-trips the caller's declared transport is the one that stays readable by both.
2023
+ */
2024
+ declare function buildPiMcpServers(mcp: Record<string, AgentProfileMcpServer> | undefined): Record<string, Record<string, unknown>>;
2025
+ /** Where one worker execution's private config directory is created, and what it is called. */
2026
+ interface PiMcpMountOptions {
2027
+ /**
2028
+ * The worker's own working directory (`PiSeam.cwd`). Omit when the seam names none: the config
2029
+ * then lands in the OS temp directory. It is NEVER written into `process.cwd()` — the operator's
2030
+ * own working directory is not a scratch space for a worker's config.
2031
+ */
2032
+ cwd?: string;
2033
+ /**
2034
+ * The executor's per-execution run id, folded into the directory name so a directory that somehow
2035
+ * survives names the worker that left it. Uniqueness is NOT taken from this — `mkdtemp` provides
2036
+ * it — because two workers built from one factory in the same millisecond share a run id stem.
2037
+ */
2038
+ runId: string;
2039
+ }
2040
+ /**
2041
+ * The one call `piExecutor` makes before spawning pi: decide what pi must be told, fail loud if it
2042
+ * cannot work, then mount.
2043
+ *
2044
+ * Order matters and is the point:
2045
+ *
2046
+ * 1. Canonicalize `profile.mcp` first, so the adapter gate keys off servers that would ACTUALLY be
2047
+ * written — a block of `enabled:false` entries must not trip it.
2048
+ * 2. If any server survives and `pi-mcp-adapter` is not installed, throw. No file has been written
2049
+ * and pi has not been spawned.
2050
+ * 3. Lower `extensions.pi.load` (which may itself throw on an unresolvable extension) — still before
2051
+ * any file exists.
2052
+ * 4. Only then create this execution's private config directory and emit `--mcp-config`.
2053
+ *
2054
+ * A profile with no usable MCP server is a pure no-op: no adapter check, no directory, no flags, no
2055
+ * throw. `extensions.pi.load` on its own still produces flags, because reproducible ablation arms
2056
+ * need them whether or not MCP is involved.
2057
+ *
2058
+ * The caller MUST call `mount.cleanup()` on every exit path — settle, throw, abort, timeout, and
2059
+ * spawn failure — so the directory does not outlive the worker that owns it.
2060
+ */
2061
+ declare function preparePiMcp(profile: AgentProfile$1 | undefined, options: PiMcpMountOptions): PiMcpPreparation;
2062
+ //#endregion
1943
2063
  //#region src/runtime/supervise/pi-executor.d.ts
1944
2064
  /** The runtime name `piExecutor` registers under. */
1945
2065
  declare const PI_RUNTIME: Runtime;
@@ -1962,6 +2082,14 @@ interface PiSeam {
1962
2082
  }
1963
2083
  /** Build the `Executor` for one pi worker. Registered as runtime `'pi'`. */
1964
2084
  declare const piExecutor: ExecutorFactory<unknown>;
2085
+ /** What one pi run reports about the terminal assistant turn, plus any derived MCP mount. */
2086
+ interface PiExecutorOutput {
2087
+ content: string;
2088
+ turns: number;
2089
+ /** Present only when `profile.mcp` declared at least one usable server. Records what pi was
2090
+ * actually given — including an extension this executor added that the profile did not list. */
2091
+ mcp?: PiMcpReceipt;
2092
+ }
1965
2093
  //#endregion
1966
2094
  //#region src/runtime/supervise/inbox.d.ts
1967
2095
  /**
@@ -6162,6 +6290,13 @@ interface ReservationTicket {
6162
6290
  * reads `usdLeft: 0`) — the in-loop guard needs it to bound a usd-capped driver. */
6163
6291
  type BudgetReadout = Readonly<{
6164
6292
  tokensLeft: number;
6293
+ /**
6294
+ * False once the pool has recorded work whose token count was UNREPORTED (a `Spend` with
6295
+ * `tokensKnown: false`). `tokensLeft` is then a ceiling on what remains, not a measurement: real
6296
+ * consumption is at least the debited amount and possibly more. Reading `tokensLeft` without this
6297
+ * flag would present an under-count as an exact balance.
6298
+ */
6299
+ tokensKnown?: boolean;
6165
6300
  usdLeft: number;
6166
6301
  usdCapped: boolean;
6167
6302
  deadlineMs: number;
@@ -6659,8 +6794,9 @@ declare function serveCoordinationMcp(opts: {
6659
6794
  * `prompt.instructions` and `resources.instructions`) reach the brain. A full `AgentProfile`'s
6660
6795
  * `tools`, `mcp`, `permissions`, `resources.skills`/`files`, `hooks`, `modes`, `subagents`,
6661
6796
  * `model.provider`, `model.small` and `model.reasoningEffort` are NOT honored here: the router
6662
- * brain is one `ToolLoopChat` over the coordination verbs, and `routerChatWithTools` (its only
6663
- * transport) has no parameter for any of them.
6797
+ * brain is one `ToolLoopChat` over the coordination verbs, and neither of its two tool-calling
6798
+ * transports (`routerChatWithTools` buffered, `streamRouterChatWithTools` when
6799
+ * `RouterConfig.stream` is set) has a parameter for any of them.
6664
6800
  * - HARNESS arm (`harness` set): the WHOLE profile object is handed to `deps.driveHarness`
6665
6801
  * untouched, plus the resolved system prompt as a separate argument. Everything the profile
6666
6802
  * declares is the harness's to materialize; this module changes none of it.
@@ -6688,9 +6824,11 @@ interface SupervisorProfile {
6688
6824
  * stay `undefined` when the profile named none — the caller's fallback (`deps.router.model`,
6689
6825
  * the built-in default supervisor prompt) then applies, and this type cannot hide which happened.
6690
6826
  *
6691
- * There is deliberately no `reasoningEffort` here: the router brain runs on `routerChatWithTools`,
6692
- * which has no `reasoning_effort` parameter, so a field carrying it would be a public promise
6693
- * nothing keeps. `model.reasoningEffort` still reaches the harness arm inside the profile. */
6827
+ * There is deliberately no `reasoningEffort` here: the router brain runs on `chatWithTools` (the
6828
+ * buffered/streamed switch in the router client), and neither transport has a `reasoning_effort`
6829
+ * parameter only the chat-only `routerChatWithUsage` does so a field carrying it would be a
6830
+ * public promise nothing keeps. `model.reasoningEffort` still reaches the harness arm inside the
6831
+ * profile. */
6694
6832
  interface ResolvedSupervisorProfile {
6695
6833
  readonly name: string;
6696
6834
  readonly harness: string | null;
@@ -7707,5 +7845,5 @@ interface VerifierEnvironmentOptions {
7707
7845
  /** 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. */
7708
7846
  declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
7709
7847
  //#endregion
7710
- export { safeWorkerFile as $, ObserveInput as $a, piSeamKey as $c, AgenticOptions as $i, DelegationResumeTick as $l, structuralRollout as $n, ShapeBudget as $o, createSandboxLineage as $r, createWaterfallCollector as $s, createProgressTracker as $t, createOtelExporter as $u, GitWorkspaceOptions as A, RunLoopOptions as Aa, BridgeSeam as Ac, BusStats as Ad, pipeline as Ai, detachedSessionDelegate as Al, CheckExecChannel as An, ScopeAnalyzeInput as Ao, dumbDriver as Ar, ScoreOf as As, ResolvedSupervisorProfile as At, FeedbackRefersTo as Au, analyzeTrace as B, resolveMcpServerLaunch as Ba, createExecutor as Bc, FileSpawnJournal as Bd, McpEndpoint as Bi, DetachedTurnResumeDriverOptions as Bl, StructuralRolloutResult as Bn, WidenDecision as Bo, Deliverable as Br, auditIntent as Bs, finalizeBestDelivered as Bt, EvalRunGeneration as Bu, closingWorkerNote as C, sampleThenRefine as Ca, DELEGATE_INPUT_SCHEMA as Cc, NotFoundError as Cd, FileCorpus as Ci, CoderReviewer as Cl, ProfileRichnessThresholds as Cn, PanelSpec as Co, assertStrategyContract as Cr, Interval as Cs, queueOf as Ct, DelegationProfile as Cu, UntrackedCopyStats as D, loopCampaignDispatch as Da, DelegateResult as Dc, CoderOutput as Dd, flatWidenGate as Di, SettleDetachedCoderTurnOptions as Dl, defaultProfileRichnessThresholds as Dn, RenderCorpusToInstructions as Do, DumbDriverOptions as Dr, PairwiseOptions as Ds, delegate as Dt, DelegationStatusArgs as Du, CopyOptions as E, LoopOptionsForDispatch as Ea, DelegateHandlerOptions as Ec, ValidationError as Ed, fanout as Ei, DetachedWinnerSelection as El, authoredWorker as En, PipelineStage as Eo, ApplyContinuation as Er, LeaderboardRow as Es, defaultDelegateBudget as Et, DelegationStatus as Eu, gitWorkspace as F, localSandboxClient as Fa, ProviderSeam as Fc, defaultToolDetectors as Fd, RegistryAnalyzeProjection as Fi, SiblingSandboxExecutorOptions as Fl, CheckSourceCtx as Fn, TrajectoryReportFn as Fo, McpToolDescriptor as Fr, renderLeaderboardSvg as Fs, supervisorAgent as Ft, TraceContext as Fu, supervise as G, InProcessPromptCtx as Ga, SteerableSandboxSession as Gc, pendingWaits as Gd, BenchmarkConfig as Gi, detachedTurnEvents as Gl, defaultExtractCandidate as Gn, DefinePersonaInput as Go, SandboxRunAbortError as Gr, anytimeReport as Gs, ProgressTracker as Gt, OtelAttribute as Gu, SuperviseOptions as H, secretEnvOfMcpServer as Ha, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Hc, InMemorySpawnJournal as Hd, createMcpEnvironment as Hi, DriveTurnTick as Hl, canDisplace as Hn, WidenSpec as Ho, OpenSandboxRunOptions as Hr, AnytimeReport as Hs, NoProgressForOptions as Ht, EvalRunsExportResult as Hu, jjWorkspace as I, KeyProvider as Ia, RouterSeam as Ic, watchTrace as Id, assertTraceDerivedFindings as Ii, createFleetWorkspaceExecutor as Il, RepairStop as In, TrajectoryReportOptions as Io, StdioMcpConnection as Ir, renderPairwiseMarkdown as Is, CoordinationMcpHandle as It, createPropagatingTraceEmitter as Iu, createScope as J, HarvestCorpusOptions as Ja, InboxMessage as Jc, BenchmarkStrategySummary as Ji, runDetachedTurn as Jl, modelAuthoredChecks as Jn, Persona as Jo, CheckpointCapableBox as Jr, plateauLength as Js, StopDecision as Jt, OtelSpan as Ju, workerFromBackend as K, InProcessSandboxClientOptions as Ka, createSteerableSandboxSession as Kc, replaySpawnTree as Kd, BenchmarkLift as Ki, formatDetachedSessionRef as Kl, defaultStructuralRolloutPolicy as Kn, LoopShape as Ko, TurnResult as Kr, areaUnderCurve as Ks, ProgressTrackerOptions as Kt, OtelExportConfig as Ku, localShell as L, ResolvedMcpServerLaunch as La, RouterToolsSeam as Lc, DeliverableSpec as Ld, buildSteerContext as Li, createSiblingSandboxExecutor as Ll, StructuralRolloutConfig as Ln, Verify as Lo, StdioMcpServerSpec as Lr, AuditIntentInput as Ls, serveCoordinationMcp as Lt, readTraceContextFromEnv as Lu, Workspace as M, runAgentRounds as Ma, CliWorktreeBridgeSeam as Mc, PublishOptions as Md, verify as Mi, DelegationExecutor as Ml, CheckRunContext as Mn, SteerContext as Mo, LocalMcpMaterialization as Mr, pairwiseSignificance as Ms, SupervisorProfile as Mt, ResearchSource as Mu, WorkspaceCommit as N, runLoop as Na, CliWorktreeSeam as Nc, createEventBus as Nd, widen as Ni, FleetHandle as Nl, CheckRunner as Nn, TrajectoryNode as No, MaterializeLocalMcpOptions as Nr, renderLeaderboardHtml as Ns, assertCoordinationBinding as Nt, UiAuditLensFilter as Nu, copyUntrackedIntoClone as O, loopDispatch as Oa, createDelegateHandler as Oc, BusEvent as Od, loopUntil as Oi, UiAuditorDelegate as Ol, profileRichnessFinding as On, RenderCorpusToInstructionsOptions as Oo, NaiveDriverOptions as Or, PairwiseVerdict as Os, CoordinationBinding as Ot, DelegationStatusResult as Ou, WorkspaceRun as P, LocalSandboxClientOptions as Pa, ExecutorConfig as Pc, WatchTraceOptions as Pd, CreateScopeAnalystOptions as Pi, FleetWorkspaceExecutorOptions as Pl, CheckSource as Pn, TrajectoryReport as Po, McpSpawnFault as Pr, renderLeaderboardMarkdown as Ps, resolveSupervisorProfile as Pt, UiAuditorDelegationOutput as Pu, readWorkerSteerRequests as Q, Observation as Qa, piExecutor as Qc, runBenchmark as Qi, DelegationResumeDriver as Ql, selectBestIndex as Qn, RunPersonifiedOptions as Qo, SessionCapableBox as Qr, WaterfallSpan as Qs, anyOf as Qt, buildRuntimeEventOtelSpans as Qu, runInWorkspace as R, envKeyProvider as Ra, SandboxSeam as Rc, gateOnDeliverable as Rd, createScopeAnalyst as Ri, DetachedSessionRefParts as Rl, StructuralRolloutMessage as Rn, VerifySpec as Ro, connectStdioMcp as Rr, AuditIntentOptions as Rs, DriverAgentOptions as Rt, traceContextToEnv as Ru, WorkerEvidenceInput as S, sample as Sa, DELEGATE_DESCRIPTION as Sc, JudgeError as Sd, runPersonified as Si, CoderReview as Sl, ProfileRichness as Sn, PanelJudge as So, AuthoredStrategy as Sr, GroupOf as Ss, freeSlots as St, DelegationHistoryResult as Su, settledWorkerOut as T, LoopDispatchOptions as Ta, DelegateArgs as Tc, RuntimeRunStateError as Td, renderCorpusToInstructions as Ti, DetachedSessionDelegateOptions as Tl, assessAuthoredProfile as Tn, Pipeline as To, strategyAuthorContract as Tr, LeaderboardOptions as Ts, DelegateOptions as Tt, DelegationResultPayload as Tu, SuperviseRegistry as U, inlineSandboxClient as Ua, SandboxSteeringOptions as Uc, contentAddress as Ud, sanitizeMcpToolSchema as Ui, RunDetachedTurnOptions as Ul, compareCheckOutcomes as Un, WinnerStrategy as Uo, OpenSandboxRunPromptOptions as Ur, AnytimeStrategySummary as Us, PlateauOptions as Ut, INTELLIGENCE_WIRE_VERSION as Uu, createSupervisor as V, resolveSecretEnv as Va, createExecutorRegistry as Vc, InMemoryResultBlobStore as Vd, McpEnvironmentOptions as Vi, DriveTurnCapableBox as Vl, VisibleCheck as Vn, WidenLineage as Vo, OpenSandboxRunBeforeStartContext as Vr, defaultAuditorInstruction as Vs, AllWorkersStalledOptions as Vt, EvalRunsExportConfig as Vu, SuperviseRegistryTable as W, InProcessOnPrompt as Wa, SteerableSandboxArgs as Wc, materializeTreeView as Wd, BenchmarkCell as Wi, createDetachedTurnResumeDriver as Wl, composeCheckSources as Wn, DefinePersona as Wo, SandboxRun as Wr, AnytimeTaskCurve as Ws, ProgressSample as Wt, LoopSpanNode as Wu, WorkerSteerRequest as X, HarvestReport as Xa, PI_RUNTIME as Xc, Environment as Xi, DelegationRecord as Xl, resolveEntrySymbol as Xn, PersonaExecutors as Xo, SandboxLineage as Xr, WaterfallCollector as Xs, allOf as Xt, buildLoopOtelSpans as Xu, settledToIteration as Y, HarvestFailure as Ya, createInbox as Yc, BenchmarkTaskRow as Yi, DelegationArgs as Yl, officialChecksFromMeta as Yn, PersonaContext as Yo, ForkCapableBox as Yr, renderAnytimeTable as Ys, StopRule as Yt, RuntimeEventOtelOptions as Yu, legacySupervisorRunDir as Z, harvestCorpus as Za, PiSeam as Zc, printBenchmarkReport as Zi, DelegationResumeContext as Zl, sandboxCheckRunner as Zn, RunPersonified as Zo, SandboxLineageHandle as Zr, WaterfallReport as Zs, allWorkersStalled as Zt, buildLoopSpanNodes as Zu, WorktreeFanoutOptions as _, breadthStrategy as _a, createCoordinationTools as _c, InMemoryDelegationStore as _d, trajectoryReport as _i, FeedbackEvent as _l, ReservationRejection as _n, FlatWidenGate as _o, discriminatingMeans as _r, completionAuthorizes as _s, DispatchReport as _t, DelegateUiAuditRoute as _u, SandboxInstance$1 as a, CorpusReadbackOptions as aa, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as ac, DelegationTraceCaps as ad, sumSandboxUsage as ai, DiffOptions as al, FinalizerSettled as an, CombinatorShape as ao, collectAgentTurn as ar, LeaderboardBenchmarkAdapter as as, InMemoryRunContext as at, hashIdempotencyInput as au, NOTE_MAX_CHARS as b, refine as ba, createInProcessTransport as bc, BackendTransportError as bd, registerShape as bi, eventToSnapshot as bl, spendFromUsageEvents as bn, LoopUntilState as bo, selectChampion as br, stopSentinel as bs, RollingDispatchOptions as bt, DelegationHistoryArgs as bu, VerifierEnvironmentOptions as c, ShotSpec as ca, Question as cc, buildDelegationTraceSpans as cd, probeSandboxCapabilities as ci, RemoveWorktreeOptions as cl, collectDelivered as cn, CorpusRecord as co, ChampionPolicy as cr, LeaderboardRunContext as cs, createFileRunContext as ct, DelegateCodeResult as cu, SuperviseSurfaceResult as d, StrategyCtx as da, QuestionOption as dc, createDelegationTraceCollector as dd, ResolveSandboxClientOptions as di, createWorktree as dl, runTree as dn, EqualKOnCostOptions as do, EvolutionBandInfo as dr, LeaderboardSpec as ds, patchDelivered as dt, DelegateResearchArgs as du, AgenticRunResult as ea, AnalystFindingEvent as ec, exportEvalRuns as ed, SandboxToolPartState as ei, WorktreeCheckRunner as el, noProgressFor as en, ObserveOptions as eo, visibleCheckScore as er, ShapeContext as es, supervisorRunDir as et, DelegationRunContext as eu, SurfaceWorkerConfig as f, StrategyMessage as fa, QuestionPolicy as fc, DelegationPersistenceError as fd, resolveSandboxClient as fi, removeWorktree as fl, CoordinationLog as fn, EqualKVerdict as fo, EvolutionCandidate as fr, defineLeaderboard as fs, WorktreeCliExecutorOptions as ft, DelegateResearchConfig as fu, AuthoredHarness as g, adaptiveRefine as ga, WorkerWatchOptions as gc, FileDelegationStoreOptions as gd, equalKOnCost as gi, McpTransport as gl, BudgetReadout as gn, FanoutWinnerSelector as go, StrategyEvolutionConfig as gr, CompletionVerdict as gs, ConcurrencyCaps as gt, DelegateUiAuditResult as gu, superviseSurface as h, SurfaceScore as ha, SettledWorker as hc, FileDelegationStore as hd, promotionGate as hi, McpToolDescriptor$1 as hl, BudgetPool as hn, FanoutSynthesis as ho, ReproductionCheck as hr, CompletionPolicy as hs, assertModelAllowed as ht, DelegateUiAuditConfig as hu, SandboxEvent$1 as i, ArtifactHandle as ia, CoordinationToolsOptions as ic, DELEGATION_TRACE_MAX_SPANS as id, mapSandboxToolEvent as ii, CreateWorktreeOptions as il, FinalizeContext as in, AssertTraceDerivedFindings as io, StreamAgentTurnOptions as ir, LeaderboardBenchTask as is, writeWorkerSteer as it, SubmitOutput as iu, Shell as j, defaultSelectWinner as ja, CliSeam as jc, EventBus as jd, selectValidWinner as ji, settleDetachedCoderTurn as jl, CheckOutcome as jn, ScopeWidenGate as jo, naiveDriver as jr, leaderboard as js, SupervisorAgentDeps as jt, ResearchOutputShape as ju, withUntrackedArtifacts as k, RunAgentRoundsOptions as ka, validateDelegateArgs as kc, BusRecord as kd, panel as ki, coderTaskFromArgs as kl, supervisorInstructions as kn, ScopeAnalyst as ko, SteeringDecision as kr, ProfileKeyOf as ks, DriveHarness as kt, FeedbackRating as ku, createVerifierEnvironment as l, Strategy as la, QuestionDecision as lc, capDelegationTrace as ld, AcquireOptions as li, WorktreeHandle as ll, pickBestDelivered as ln, EqualKArm as lo, EvolutionArchiveNode as lr, LeaderboardScenario as ls, createInMemoryRunContext as lt, DelegateFeedbackArgs as lu, failuresAnalyst as m, StrategyShotResult as ma, QuestionUrgency as mc, DelegationStore as md, PromotionVerdict as mi, JsonRpcResponse as ml, PriorCoordination as mn, FanoutOptions as mo, EvolutionReport as mr, CompletionEvidence as ms, createWorktreeCliExecutor as mt, DelegateUiAuditArgs as mu, AnalystFinding$1 as n, AgenticTask as na, CoordinationEvent as nc, CappedDelegationTrace as nd, extractLlmCallEvent as ni, WorktreeHarnessResult as nl, sampleFromSettled as nn, observe as no, AgentTurnUsage as nr, DefinedLeaderboard as ns, workerInboxFile as nt, DelegationTaskQueueOptions as nu, computeFindingId$1 as o, RunAgenticOptions as oa, DownMessageEvent as oc, DelegationTraceCollector as od, CriuCapableClient as oi, DiffResult as ol, SupervisorFinalizer as on, Corpus as oo, streamAgentTurn as or, LeaderboardFlagSpec as os, InMemoryRunContextOptions as ot, DelegateCodeArgs as ou, SurfaceWorkerOut as p, StrategyResult as pa, QuestionRecord as pc, DelegationStateCorruptError as pd, PromotionGateOptions as pi, JsonRpcMessage as pl, FileCoordinationLog as pn, Fanout as po, EvolutionGeneration as pr, CompletionAnalyst as ps, WorktreePatchArtifact as pt, DelegateResearchResult as pu, ScopeArgs as q, inProcessSandboxClient as qa, Inbox as qc, BenchmarkReport as qi, parseDetachedSessionRef as ql, filterAuthoredAsserts as qn, Outcome as qo, openSandboxRun as qr, bestSoFar as qs, ProgressView as qt, OtelExporter as qu, CreateSandboxOptions$1 as r, AgenticTool as ra, CoordinationTools as rc, DELEGATION_TRACE_MAX_BYTES as rd, mapSandboxEvent as ri, WorktreeProfileMaterializationReceipt as rl, DeliveredOutput as rn, renderReport as ro, CollectedAgentTurn as rr, LeaderboardBenchScore as rs, workerInboxFileFromEventDir as rt, SubmitInput as ru, makeFinding$1 as s, ShotPersona as sa, MakeWorkerAgent as sc, DelegationTraceSpan as sd, SandboxCapabilities as si, GitRunner as sl, bestDelivered as sn, CorpusFilter as so, ChampionPick as sr, LeaderboardIterationInfo as ss, RunContext as st, DelegateCodeConfig as su, AgentProfile$2 as t, AgenticSurface as ta, AnalystRegistry as tc, loopEventToOtelSpan as td, createSandboxToolPartState as ti, WorktreeCommandResult as tl, plateau as tn, defaultAnalystInstruction as to, AgentTurnBackend as tr, ShapeRegistry as ts, supervisorRunsRoot as tt, DelegationTaskQueue as tu, SuperviseSurfaceOptions as u, StrategyArtifacts as ua, QuestionLevel as uc, composeLoopTraceEmitters as ud, acquireSandbox as ui, captureWorktreeDiff as ul, runFinalizer as un, EqualKOnCost as uo, EvolutionAuthor as ur, LeaderboardScore as us, PatchDeliverableOptions as ut, DelegateFeedbackResult as uu, worktreeFanout as v, defineStrategy as va, McpServer as vc, AgentEvalError$1 as vd, builtinShapes as vi, FeedbackStore as vl, ReservationTicket as vn, LoopUntil as vo, pickChampion as vr, deterministicCompletion as vs, DispatchStopReason as vt, DelegationError as vu, composeWorkerEvidence as w, LoopCampaignDispatchOptions as wa, DELEGATE_TOOL_NAME as wc, PlannerError as wd, InMemoryCorpus as wi, DelegateRunCtx as wl, asAuthoredProfile as wn, PanelVerdict as wo, authorStrategy as wr, Leaderboard as ws, rollingDispatch as wt, DelegationProgress as wu, VERIFY_TAIL_CHARS as x, runAgentic as xa, createMcpServer as xc, ConfigError as xd, definePersona as xi, CoderDelegate as xl, AuthoredProfile as xn, Panel as xo, AuthorStrategyOptions as xr, AxisScoresOf as xs, effectiveConcurrency as xt, DelegationHistoryEntry as xu, EVIDENCE_MAX_CHARS as y, depthStrategy as ya, McpServerOptions as yc, AgentEvalErrorCode as yd, createShapeRegistry as yi, InMemoryFeedbackStore as yl, createBudgetPool as yn, LoopUntilSpec as yo, runStrategyEvolution as yr, sentinelCompletion as ys, DispatchUnit as yt, DelegationFeedbackSnapshot as yu, TrajectoryAnalysis as z, mcpSecretEnvMetadataKey as za, cliWorktreeExecutor as zc, FileResultBlobStore as zd, registryScopeAnalyst as zi, DetachedTurn as zl, StructuralRolloutPolicy as zn, Widen as zo, materializeLocalMcp as zr, IntentAudit as zs, driverAgent as zt, EvalRunEvent as zu };
7711
- //# sourceMappingURL=index-zMAqz53v.d.ts.map
7848
+ export { safeWorkerFile as $, ObserveInput as $a, piExecutor as $c, InMemorySpawnJournal as $d, AgenticOptions as $i, DriveTurnTick as $l, structuralRollout as $n, ShapeBudget as $o, createSandboxLineage as $r, createWaterfallCollector as $s, createProgressTracker as $t, EvalRunsExportResult as $u, GitWorkspaceOptions as A, RunLoopOptions as Aa, BridgeSeam as Ac, AgentEvalErrorCode as Ad, pipeline as Ai, InMemoryFeedbackStore as Al, CheckExecChannel as An, ScopeAnalyzeInput as Ao, dumbDriver as Ar, ScoreOf as As, ResolvedSupervisorProfile as At, DelegationFeedbackSnapshot as Au, analyzeTrace as B, resolveMcpServerLaunch as Ba, createExecutor as Bc, BusRecord as Bd, McpEndpoint as Bi, coderTaskFromArgs as Bl, StructuralRolloutResult as Bn, WidenDecision as Bo, Deliverable as Br, auditIntent as Bs, finalizeBestDelivered as Bt, FeedbackRating as Bu, closingWorkerNote as C, sampleThenRefine as Ca, DELEGATE_INPUT_SCHEMA as Cc, DelegationPersistenceError as Cd, FileCorpus as Ci, removeWorktree as Cl, ProfileRichnessThresholds as Cn, PanelSpec as Co, assertStrategyContract as Cr, Interval as Cs, queueOf as Ct, DelegateResearchConfig as Cu, UntrackedCopyStats as D, loopCampaignDispatch as Da, DelegateResult as Dc, FileDelegationStoreOptions as Dd, flatWidenGate as Di, McpTransport as Dl, defaultProfileRichnessThresholds as Dn, RenderCorpusToInstructions as Do, DumbDriverOptions as Dr, PairwiseOptions as Ds, delegate as Dt, DelegateUiAuditResult as Du, CopyOptions as E, LoopOptionsForDispatch as Ea, DelegateHandlerOptions as Ec, FileDelegationStore as Ed, fanout as Ei, McpToolDescriptor$1 as El, authoredWorker as En, PipelineStage as Eo, ApplyContinuation as Er, LeaderboardRow as Es, defaultDelegateBudget as Et, DelegateUiAuditConfig as Eu, gitWorkspace as F, localSandboxClient as Fa, ProviderSeam as Fc, PlannerError as Fd, RegistryAnalyzeProjection as Fi, DelegateRunCtx as Fl, CheckSourceCtx as Fn, TrajectoryReportFn as Fo, McpToolDescriptor as Fr, renderLeaderboardSvg as Fs, supervisorAgent as Ft, DelegationProgress as Fu, supervise as G, InProcessPromptCtx as Ga, SteerableSandboxSession as Gc, WatchTraceOptions as Gd, BenchmarkConfig as Gi, FleetWorkspaceExecutorOptions as Gl, defaultExtractCandidate as Gn, DefinePersonaInput as Go, SandboxRunAbortError as Gr, anytimeReport as Gs, ProgressTracker as Gt, UiAuditorDelegationOutput as Gu, SuperviseOptions as H, secretEnvOfMcpServer as Ha, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Hc, EventBus as Hd, createMcpEnvironment as Hi, settleDetachedCoderTurn as Hl, canDisplace as Hn, WidenSpec as Ho, OpenSandboxRunOptions as Hr, AnytimeReport as Hs, NoProgressForOptions as Ht, ResearchOutputShape as Hu, jjWorkspace as I, KeyProvider as Ia, RouterSeam as Ic, RuntimeRunStateError as Id, assertTraceDerivedFindings as Ii, DetachedSessionDelegateOptions as Il, RepairStop as In, TrajectoryReportOptions as Io, StdioMcpConnection as Ir, renderPairwiseMarkdown as Is, CoordinationMcpHandle as It, DelegationResultPayload as Iu, createScope as J, HarvestCorpusOptions as Ja, InboxMessage as Jc, DeliverableSpec as Jd, BenchmarkStrategySummary as Ji, createSiblingSandboxExecutor as Jl, modelAuthoredChecks as Jn, Persona as Jo, CheckpointCapableBox as Jr, plateauLength as Js, StopDecision as Jt, readTraceContextFromEnv as Ju, workerFromBackend as K, InProcessSandboxClientOptions as Ka, createSteerableSandboxSession as Kc, defaultToolDetectors as Kd, BenchmarkLift as Ki, SiblingSandboxExecutorOptions as Kl, defaultStructuralRolloutPolicy as Kn, LoopShape as Ko, TurnResult as Kr, areaUnderCurve as Ks, ProgressTrackerOptions as Kt, TraceContext as Ku, localShell as L, ResolvedMcpServerLaunch as La, RouterToolsSeam as Lc, ValidationError as Ld, buildSteerContext as Li, DetachedWinnerSelection as Ll, StructuralRolloutConfig as Ln, Verify as Lo, StdioMcpServerSpec as Lr, AuditIntentInput as Ls, serveCoordinationMcp as Lt, DelegationStatus as Lu, Workspace as M, runAgentRounds as Ma, CliWorktreeBridgeSeam as Mc, ConfigError as Md, verify as Mi, CoderDelegate as Ml, CheckRunContext as Mn, SteerContext as Mo, LocalMcpMaterialization as Mr, pairwiseSignificance as Ms, SupervisorProfile as Mt, DelegationHistoryEntry as Mu, WorkspaceCommit as N, runLoop as Na, CliWorktreeSeam as Nc, JudgeError as Nd, widen as Ni, CoderReview as Nl, CheckRunner as Nn, TrajectoryNode as No, MaterializeLocalMcpOptions as Nr, renderLeaderboardHtml as Ns, assertCoordinationBinding as Nt, DelegationHistoryResult as Nu, copyUntrackedIntoClone as O, loopDispatch as Oa, createDelegateHandler as Oc, InMemoryDelegationStore as Od, loopUntil as Oi, FeedbackEvent as Ol, profileRichnessFinding as On, RenderCorpusToInstructionsOptions as Oo, NaiveDriverOptions as Or, PairwiseVerdict as Os, CoordinationBinding as Ot, DelegateUiAuditRoute as Ou, WorkspaceRun as P, LocalSandboxClientOptions as Pa, ExecutorConfig as Pc, NotFoundError as Pd, CreateScopeAnalystOptions as Pi, CoderReviewer as Pl, CheckSource as Pn, TrajectoryReport as Po, McpSpawnFault as Pr, renderLeaderboardMarkdown as Ps, resolveSupervisorProfile as Pt, DelegationProfile as Pu, readWorkerSteerRequests as Q, Observation as Qa, PiSeam as Qc, InMemoryResultBlobStore as Qd, runBenchmark as Qi, DriveTurnCapableBox as Ql, selectBestIndex as Qn, RunPersonifiedOptions as Qo, SessionCapableBox as Qr, WaterfallSpan as Qs, anyOf as Qt, EvalRunsExportConfig as Qu, runInWorkspace as R, envKeyProvider as Ra, SandboxSeam as Rc, CoderOutput as Rd, createScopeAnalyst as Ri, SettleDetachedCoderTurnOptions as Rl, StructuralRolloutMessage as Rn, VerifySpec as Ro, connectStdioMcp as Rr, AuditIntentOptions as Rs, DriverAgentOptions as Rt, DelegationStatusArgs as Ru, WorkerEvidenceInput as S, sample as Sa, DELEGATE_DESCRIPTION as Sc, createDelegationTraceCollector as Sd, runPersonified as Si, createWorktree as Sl, ProfileRichness as Sn, PanelJudge as So, AuthoredStrategy as Sr, GroupOf as Ss, freeSlots as St, DelegateResearchArgs as Su, settledWorkerOut as T, LoopDispatchOptions as Ta, DelegateArgs as Tc, DelegationStore as Td, renderCorpusToInstructions as Ti, JsonRpcResponse as Tl, assessAuthoredProfile as Tn, Pipeline as To, strategyAuthorContract as Tr, LeaderboardOptions as Ts, DelegateOptions as Tt, DelegateUiAuditArgs as Tu, SuperviseRegistry as U, inlineSandboxClient as Ua, SandboxSteeringOptions as Uc, PublishOptions as Ud, sanitizeMcpToolSchema as Ui, DelegationExecutor as Ul, compareCheckOutcomes as Un, WinnerStrategy as Uo, OpenSandboxRunPromptOptions as Ur, AnytimeStrategySummary as Us, PlateauOptions as Ut, ResearchSource as Uu, createSupervisor as V, resolveSecretEnv as Va, createExecutorRegistry as Vc, BusStats as Vd, McpEnvironmentOptions as Vi, detachedSessionDelegate as Vl, VisibleCheck as Vn, WidenLineage as Vo, OpenSandboxRunBeforeStartContext as Vr, defaultAuditorInstruction as Vs, AllWorkersStalledOptions as Vt, FeedbackRefersTo as Vu, SuperviseRegistryTable as W, InProcessOnPrompt as Wa, SteerableSandboxArgs as Wc, createEventBus as Wd, BenchmarkCell as Wi, FleetHandle as Wl, composeCheckSources as Wn, DefinePersona as Wo, SandboxRun as Wr, AnytimeTaskCurve as Ws, ProgressSample as Wt, UiAuditLensFilter as Wu, WorkerSteerRequest as X, HarvestReport as Xa, PI_RUNTIME as Xc, FileResultBlobStore as Xd, Environment as Xi, DetachedTurn as Xl, resolveEntrySymbol as Xn, PersonaExecutors as Xo, SandboxLineage as Xr, WaterfallCollector as Xs, allOf as Xt, EvalRunEvent as Xu, settledToIteration as Y, HarvestFailure as Ya, createInbox as Yc, gateOnDeliverable as Yd, BenchmarkTaskRow as Yi, DetachedSessionRefParts as Yl, officialChecksFromMeta as Yn, PersonaContext as Yo, ForkCapableBox as Yr, renderAnytimeTable as Ys, StopRule as Yt, traceContextToEnv as Yu, legacySupervisorRunDir as Z, harvestCorpus as Za, PiExecutorOutput as Zc, FileSpawnJournal as Zd, printBenchmarkReport as Zi, DetachedTurnResumeDriverOptions as Zl, sandboxCheckRunner as Zn, RunPersonified as Zo, SandboxLineageHandle as Zr, WaterfallReport as Zs, allWorkersStalled as Zt, EvalRunGeneration as Zu, WorktreeFanoutOptions as _, breadthStrategy as _a, createCoordinationTools as _c, DelegationTraceCollector as _d, trajectoryReport as _i, DiffResult as _l, ReservationRejection as _n, FlatWidenGate as _o, discriminatingMeans as _r, completionAuthorizes as _s, DispatchReport as _t, DelegateCodeArgs as _u, SandboxInstance$1 as a, CorpusReadbackOptions as aa, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as ac, OtelSpan as ad, sumSandboxUsage as ai, PiMcpMountOptions as al, FinalizerSettled as an, CombinatorShape as ao, collectAgentTurn as ar, LeaderboardBenchmarkAdapter as as, InMemoryRunContext as at, runDetachedTurn as au, NOTE_MAX_CHARS as b, refine as ba, createInProcessTransport as bc, capDelegationTrace as bd, registerShape as bi, WorktreeHandle as bl, spendFromUsageEvents as bn, LoopUntilState as bo, selectChampion as br, stopSentinel as bs, RollingDispatchOptions as bt, DelegateFeedbackArgs as bu, VerifierEnvironmentOptions as c, ShotSpec as ca, Question as cc, buildLoopSpanNodes as cd, probeSandboxCapabilities as ci, buildPiMcpServers as cl, collectDelivered as cn, CorpusRecord as co, ChampionPolicy as cr, LeaderboardRunContext as cs, createFileRunContext as ct, DelegationResumeContext as cu, SuperviseSurfaceResult as d, StrategyCtx as da, QuestionOption as dc, exportEvalRuns as dd, ResolveSandboxClientOptions as di, WorktreeCheckRunner as dl, runTree as dn, EqualKOnCostOptions as do, EvolutionBandInfo as dr, LeaderboardSpec as ds, patchDelivered as dt, DelegationRunContext as du, AgenticRunResult as ea, AnalystFindingEvent as ec, INTELLIGENCE_WIRE_VERSION as ed, contentAddress as ef, SandboxToolPartState as ei, piSeamKey as el, noProgressFor as en, ObserveOptions as eo, visibleCheckScore as er, ShapeContext as es, supervisorRunDir as et, RunDetachedTurnOptions as eu, SurfaceWorkerConfig as f, StrategyMessage as fa, QuestionPolicy as fc, loopEventToOtelSpan as fd, resolveSandboxClient as fi, WorktreeCommandResult as fl, CoordinationLog as fn, EqualKVerdict as fo, EvolutionCandidate as fr, defineLeaderboard as fs, WorktreeCliExecutorOptions as ft, DelegationTaskQueue as fu, AuthoredHarness as g, adaptiveRefine as ga, WorkerWatchOptions as gc, DelegationTraceCaps as gd, equalKOnCost as gi, DiffOptions as gl, BudgetReadout as gn, FanoutWinnerSelector as go, StrategyEvolutionConfig as gr, CompletionVerdict as gs, ConcurrencyCaps as gt, hashIdempotencyInput as gu, superviseSurface as h, SurfaceScore as ha, SettledWorker as hc, DELEGATION_TRACE_MAX_SPANS as hd, promotionGate as hi, CreateWorktreeOptions as hl, BudgetPool as hn, FanoutSynthesis as ho, ReproductionCheck as hr, CompletionPolicy as hs, assertModelAllowed as ht, SubmitOutput as hu, SandboxEvent$1 as i, ArtifactHandle as ia, CoordinationToolsOptions as ic, OtelExporter as id, mapSandboxToolEvent as ii, PiMcpMount as il, FinalizeContext as in, AssertTraceDerivedFindings as io, StreamAgentTurnOptions as ir, LeaderboardBenchTask as is, writeWorkerSteer as it, parseDetachedSessionRef as iu, Shell as j, defaultSelectWinner as ja, CliSeam as jc, BackendTransportError as jd, selectValidWinner as ji, eventToSnapshot as jl, CheckOutcome as jn, ScopeWidenGate as jo, naiveDriver as jr, leaderboard as js, SupervisorAgentDeps as jt, DelegationHistoryArgs as ju, withUntrackedArtifacts as k, RunAgentRoundsOptions as ka, validateDelegateArgs as kc, AgentEvalError$1 as kd, panel as ki, FeedbackStore as kl, supervisorInstructions as kn, ScopeAnalyst as ko, SteeringDecision as kr, ProfileKeyOf as ks, DriveHarness as kt, DelegationError as ku, createVerifierEnvironment as l, Strategy as la, QuestionDecision as lc, buildRuntimeEventOtelSpans as ld, AcquireOptions as li, piMcpAdapterAvailable as ll, pickBestDelivered as ln, EqualKArm as lo, EvolutionArchiveNode as lr, LeaderboardScenario as ls, createInMemoryRunContext as lt, DelegationResumeDriver as lu, failuresAnalyst as m, StrategyShotResult as ma, QuestionUrgency as mc, DELEGATION_TRACE_MAX_BYTES as md, PromotionVerdict as mi, WorktreeProfileMaterializationReceipt as ml, PriorCoordination as mn, FanoutOptions as mo, EvolutionReport as mr, CompletionEvidence as ms, createWorktreeCliExecutor as mt, SubmitInput as mu, AnalystFinding$1 as n, AgenticTask as na, CoordinationEvent as nc, OtelAttribute as nd, pendingWaits as nf, extractLlmCallEvent as ni, PI_MCP_ADAPTER_ENV as nl, sampleFromSettled as nn, observe as no, AgentTurnUsage as nr, DefinedLeaderboard as ns, workerInboxFile as nt, detachedTurnEvents as nu, computeFindingId$1 as o, RunAgenticOptions as oa, DownMessageEvent as oc, RuntimeEventOtelOptions as od, CriuCapableClient as oi, PiMcpPreparation as ol, SupervisorFinalizer as on, Corpus as oo, streamAgentTurn as or, LeaderboardFlagSpec as os, InMemoryRunContextOptions as ot, DelegationArgs as ou, SurfaceWorkerOut as p, StrategyResult as pa, QuestionRecord as pc, CappedDelegationTrace as pd, PromotionGateOptions as pi, WorktreeHarnessResult as pl, FileCoordinationLog as pn, Fanout as po, EvolutionGeneration as pr, CompletionAnalyst as ps, WorktreePatchArtifact as pt, DelegationTaskQueueOptions as pu, ScopeArgs as q, inProcessSandboxClient as qa, Inbox as qc, watchTrace as qd, BenchmarkReport as qi, createFleetWorkspaceExecutor as ql, filterAuthoredAsserts as qn, Outcome as qo, openSandboxRun as qr, bestSoFar as qs, ProgressView as qt, createPropagatingTraceEmitter as qu, CreateSandboxOptions$1 as r, AgenticTool as ra, CoordinationTools as rc, OtelExportConfig as rd, replaySpawnTree as rf, mapSandboxEvent as ri, PI_MCP_CONFIG_FLAG as rl, DeliveredOutput as rn, renderReport as ro, CollectedAgentTurn as rr, LeaderboardBenchScore as rs, workerInboxFileFromEventDir as rt, formatDetachedSessionRef as ru, makeFinding$1 as s, ShotPersona as sa, MakeWorkerAgent as sc, buildLoopOtelSpans as sd, SandboxCapabilities as si, PiMcpReceipt as sl, bestDelivered as sn, CorpusFilter as so, ChampionPick as sr, LeaderboardIterationInfo as ss, RunContext as st, DelegationRecord as su, AgentProfile$2 as t, AgenticSurface as ta, AnalystRegistry as tc, LoopSpanNode as td, materializeTreeView as tf, createSandboxToolPartState as ti, PI_MCP_ADAPTER as tl, plateau as tn, defaultAnalystInstruction as to, AgentTurnBackend as tr, ShapeRegistry as ts, supervisorRunsRoot as tt, createDetachedTurnResumeDriver as tu, SuperviseSurfaceOptions as u, StrategyArtifacts as ua, QuestionLevel as uc, createOtelExporter as ud, acquireSandbox as ui, preparePiMcp as ul, runFinalizer as un, EqualKOnCost as uo, EvolutionAuthor as ur, LeaderboardScore as us, PatchDeliverableOptions as ut, DelegationResumeTick as uu, worktreeFanout as v, defineStrategy as va, McpServer as vc, DelegationTraceSpan as vd, builtinShapes as vi, GitRunner as vl, ReservationTicket as vn, LoopUntil as vo, pickChampion as vr, deterministicCompletion as vs, DispatchStopReason as vt, DelegateCodeConfig as vu, composeWorkerEvidence as w, LoopCampaignDispatchOptions as wa, DELEGATE_TOOL_NAME as wc, DelegationStateCorruptError as wd, InMemoryCorpus as wi, JsonRpcMessage as wl, asAuthoredProfile as wn, PanelVerdict as wo, authorStrategy as wr, Leaderboard as ws, rollingDispatch as wt, DelegateResearchResult as wu, VERIFY_TAIL_CHARS as x, runAgentic as xa, createMcpServer as xc, composeLoopTraceEmitters as xd, definePersona as xi, captureWorktreeDiff as xl, AuthoredProfile as xn, Panel as xo, AuthorStrategyOptions as xr, AxisScoresOf as xs, effectiveConcurrency as xt, DelegateFeedbackResult as xu, EVIDENCE_MAX_CHARS as y, depthStrategy as ya, McpServerOptions as yc, buildDelegationTraceSpans as yd, createShapeRegistry as yi, RemoveWorktreeOptions as yl, createBudgetPool as yn, LoopUntilSpec as yo, runStrategyEvolution as yr, sentinelCompletion as ys, DispatchUnit as yt, DelegateCodeResult as yu, TrajectoryAnalysis as z, mcpSecretEnvMetadataKey as za, cliWorktreeExecutor as zc, BusEvent as zd, registryScopeAnalyst as zi, UiAuditorDelegate as zl, StructuralRolloutPolicy as zn, Widen as zo, materializeLocalMcp as zr, IntentAudit as zs, driverAgent as zt, DelegationStatusResult as zu };
7849
+ //# sourceMappingURL=index-D-lNUfea.d.ts.map
@@ -1,5 +1,5 @@
1
- import { R as Budget, dt as SupervisedResult } from "./environment-provider-DG-cSx89.js";
2
- import { H as SuperviseOptions, Ld as DeliverableSpec, Mt as SupervisorProfile, Pc as ExecutorConfig } from "./index-zMAqz53v.js";
1
+ import { R as Budget, dt as SupervisedResult } from "./environment-provider-Cygthiy3.js";
2
+ import { H as SuperviseOptions, Jd as DeliverableSpec, Mt as SupervisorProfile, Pc as ExecutorConfig } from "./index-D-lNUfea.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-B6WclhZI.d.ts.map
140
+ //# sourceMappingURL=index-YpvLKzIX.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
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
2
  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";
3
3
  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";
4
- import { B as Executor, L as AgentSpec, R as Budget, U as ExecutorRegistry, dt as SupervisedResult, ft as Supervisor, it as Settled, rt as Scope, ut as Spend } from "./environment-provider-DG-cSx89.js";
5
- import { $u as createOtelExporter, Bu as EvalRunGeneration, Cd as NotFoundError, Ed as ValidationError, Gu as OtelAttribute, Hu as EvalRunsExportResult, Ju as OtelSpan, Ku as OtelExportConfig, Qu as buildRuntimeEventOtelSpans, Sd as JudgeError, Td as RuntimeRunStateError, Uu as INTELLIGENCE_WIRE_VERSION, Vu as EvalRunsExportConfig, Wu as LoopSpanNode, Xu as buildLoopOtelSpans, Yu as RuntimeEventOtelOptions, Zu as buildLoopSpanNodes, bd as BackendTransportError, ed as exportEvalRuns, el as WorktreeCheckRunner, in as FinalizeContext, nc as CoordinationEvent, on as SupervisorFinalizer, qu as OtelExporter, tc as AnalystRegistry, td as loopEventToOtelSpan, vd as AgentEvalError, wd as PlannerError, xd as ConfigError, yd as AgentEvalErrorCode, zu as EvalRunEvent } from "./index-zMAqz53v.js";
6
- import { A as createRuntimeEventCollector, C as RuntimeEventCollector, D as RuntimeTelemetryOptions, E as RuntimeStreamEventSummary, M as sanitizeAgentRuntimeEvent, N as sanitizeKnowledgeReadinessReport, O as SanitizedKnowledgeReadinessReport, P as sanitizeRuntimeStreamEvent, T as RuntimeStreamEventSink, j as createRuntimeStreamEventCollector, k as SanitizedKnowledgeRequirement, w as RuntimeStreamEventCollector } from "./local-harness-Ce1emWJE.js";
4
+ import { B as Executor, L as AgentSpec, R as Budget, U as ExecutorRegistry, dt as SupervisedResult, ft as Supervisor, it as Settled, rt as Scope, ut as Spend } from "./environment-provider-Cygthiy3.js";
5
+ import { $u as EvalRunsExportResult, Ad as AgentEvalErrorCode, Fd as PlannerError, Id as RuntimeRunStateError, Ld as ValidationError, Md as ConfigError, Nd as JudgeError, Pd as NotFoundError, Qu as EvalRunsExportConfig, Xu as EvalRunEvent, Zu as EvalRunGeneration, ad as OtelSpan, cd as buildLoopSpanNodes, dd as exportEvalRuns, dl as WorktreeCheckRunner, ed as INTELLIGENCE_WIRE_VERSION, fd as loopEventToOtelSpan, id as OtelExporter, in as FinalizeContext, jd as BackendTransportError, kd as AgentEvalError, ld as buildRuntimeEventOtelSpans, nc as CoordinationEvent, nd as OtelAttribute, od as RuntimeEventOtelOptions, on as SupervisorFinalizer, rd as OtelExportConfig, sd as buildLoopOtelSpans, tc as AnalystRegistry, td as LoopSpanNode, ud as createOtelExporter } from "./index-D-lNUfea.js";
6
+ import { A as SanitizedKnowledgeRequirement, D as RuntimeStreamEventSummary, E as RuntimeStreamEventSink, F as sanitizeRuntimeStreamEvent, M as createRuntimeStreamEventCollector, N as sanitizeAgentRuntimeEvent, O as RuntimeTelemetryOptions, P as sanitizeKnowledgeReadinessReport, T as RuntimeStreamEventCollector, j as createRuntimeEventCollector, k as SanitizedKnowledgeReadinessReport, w as RuntimeEventCollector } from "./local-harness-BnB1E9nM.js";
7
7
  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-C-FYUuFG.js";
8
8
  import { A as AgentCandidateExecutionTerminalRecord, C as AgentCandidateExecutionFailureClass, D as AgentCandidateExecutionPhaseResult, E as AgentCandidateExecutionPhase, F as candidateExecutionClaim, I as AgentCandidatePreparationEvidence, M as AgentCandidateRetryRejection, N as InMemoryAgentCandidateExecutionClaimStore, O as AgentCandidateExecutionRecoveryEvidence, P as InMemoryAgentCandidateExecutionClaimStoreOptions, S as AgentCandidateExecutionCleanupHandles, T as AgentCandidateExecutionLease, _ as AgentCandidateExecutionAttemptRecord, a as AgentCandidateModelGrantSettleInput, b as AgentCandidateExecutionClaimResult, c as applyExactAgentProfileDiff, d as parseExactAgentProfile, f as parseExactAgentProfileDiff, g as executePreparedAgentCandidate, h as ExecutePreparedAgentCandidateOptions, i as AgentCandidateModelGrantReserveInput, j as AgentCandidateExecutionTerminalResult, k as AgentCandidateExecutionStageResult, l as assertCandidateProfileBinding, m as prepareAgentCandidateExecution, n as AgentCandidateModelGrantClient, o as CreateProtectedAgentCandidateModelPortOptions, p as PrepareAgentCandidateExecutionOptions, r as AgentCandidateModelGrantReservation, s as createProtectedAgentCandidateModelPort, t as AgentCandidateModelGrantActivateInput, v as AgentCandidateExecutionAttemptRef, w as AgentCandidateExecutionFinishResult, x as AgentCandidateExecutionClaimStore, y as AgentCandidateExecutionClaim } from "./protected-model-port-BP6Z4eau.js";
9
9
  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";
10
10
  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";
11
- 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-Cr7QlEUL.js";
12
- 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-xZvPu9qe.js";
13
- 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-B6WclhZI.js";
14
- 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-Cba5tsdb.js";
11
+ 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-BLf-SZ2b.js";
12
+ 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-BRaHUFMf.js";
13
+ 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-YpvLKzIX.js";
14
+ 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-Cg_8UKZR.js";
15
15
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-B68JaOCx.js";
16
16
  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 WorktreeCheckRunner, type WorktreeLoopRunnerOptions, 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, createOtelExporter, createProtectedAgentCandidateModelPort, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, createSupervisedKnowledgeUpdater, d1ToSqlAdapter, decideKnowledgeReadiness, defaultBuildPrompt, defaultIsRetryable, defineConversation, defineRuntimeHooks, disposePreparedAgentCandidateExecution, driverLoopGenerator, exactProcessProviderAsCandidateExecutor, executePreparedAgentCandidate, exportEvalRuns, findingLines, formatSupervisedKnowledgeTask, getModels, improve, isDelegatedLoopMode, isDepthExceeded, knowledgeReadinessDeliverable, loopEventToOtelSpan, makePerAttemptSignal, mcpBuildPrompt, mcpServeVerifier, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, normalizeRolloutPolicy, notifyRuntimeDecisionPoint, notifyRuntimeHookEvent, officialGepa, officialSkillOpt, optimizerMethod, parseExactAgentProfile, parseExactAgentProfileDiff, 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, toolBuildPrompt, turnId, validateChatModelId, verifyAgentCandidateBundle, worktreeLoopRunner };
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
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, K as applyExactAgentProfileDiff, S as CANDIDATE_TRACE_TAGS, _ 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, u as AGENT_CANDIDATE_EXECUTION_SUPPORT, x as CANDIDATE_TRACE_ENV } from "./prepare-BKVdOn0w.js";
4
- import { i as sealAgentCandidateBundle, n as captureAgentCandidateWorkspaceFiles, r as createAgentCandidateWorkspacePort, t as captureAgentCandidateWorkspace } from "./workspace-archive-CYYxZyA7.js";
5
- import { i as buildAgentCandidateBundle, n as disposePreparedAgentCandidateExecution, r as FileAgentCandidateExecutionClaimStore, t as recoverExpiredAgentCandidateExecution } from "./candidate-execution-Co3sRC_7.js";
6
- import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-BtldAE9j.js";
3
+ import { $ as parseExactAgentProfile, K as applyExactAgentProfileDiff, S as CANDIDATE_TRACE_TAGS, _ 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, u as AGENT_CANDIDATE_EXECUTION_SUPPORT, x as CANDIDATE_TRACE_ENV } from "./prepare-BHQBb02e.js";
4
+ import { i as sealAgentCandidateBundle, n as captureAgentCandidateWorkspaceFiles, r as createAgentCandidateWorkspacePort, t as captureAgentCandidateWorkspace } from "./workspace-archive-DXzJq7WP.js";
5
+ import { i as buildAgentCandidateBundle, n as disposePreparedAgentCandidateExecution, r as FileAgentCandidateExecutionClaimStore, t as recoverExpiredAgentCandidateExecution } from "./candidate-execution-CfpJrd3o.js";
6
+ import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-DqAH1Z2M.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 { P as runLocalHarness, T as runBrainLoop } from "./supervisor-DS278ICs.js";
9
- import { D as researchDriverNote, E as optimizerMethod, O as strategyAuthorMethod, T as buildDriverSystem } from "./structural-rollout-R_ZqFaB5.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-C3CrNfcy.js";
8
+ import { E as runBrainLoop, F as runLocalHarness } from "./supervisor-DKqolBGI.js";
9
+ import { D as researchDriverNote, E as optimizerMethod, O as strategyAuthorMethod, T as buildDriverSystem } from "./structural-rollout-C7vF83fV.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-vLye8pYb.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-DlSPFm9o.js";
12
+ import { Ft as McpSpawnFault, It as connectStdioMcp } from "./runtime-DQ5seHEu.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-GAJFl_gz.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-BTsA9n6L.js";
15
15
  import { a as createOtelExporter, c as loopEventToOtelSpan, d as sanitizeAgentRuntimeEvent, f as sanitizeKnowledgeReadinessReport, i as buildRuntimeEventOtelSpans, l as createRuntimeEventCollector, n as buildLoopOtelSpans, o as exportEvalRuns, p as sanitizeRuntimeStreamEvent, r as buildLoopSpanNodes, t as INTELLIGENCE_WIRE_VERSION, u as createRuntimeStreamEventCollector } from "./otel-export-D34IQW1C.js";
16
- 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-DvLdFo38.js";
17
- import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-DftmzKLc.js";
16
+ 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-CuBMmlMJ.js";
17
+ import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-VAbzps5G.js";
18
18
  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";
19
19
  import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
20
20
  import { gepaOptimizationMethod, skillOptOptimizationMethod } from "@tangle-network/agent-eval/campaign";
@@ -1,11 +1,11 @@
1
1
  import { x as RuntimeStreamEvent } from "./types-C9j4qg6l.js";
2
2
  import { d as RunAnalystLoopOpts, f as RunAnalystLoopResult } from "./types-zWfqDjeL.js";
3
3
  import { b as LoopTraceEvent } from "./types-DnNGJ5Gz.js";
4
- import { a as AgentEnvironmentProviderRef, o as AgentEnvironmentProviderRegistry } from "./environment-provider-DG-cSx89.js";
5
- import { D as RuntimeTelemetryOptions, m as ToolSpec } from "./local-harness-Ce1emWJE.js";
4
+ import { a as AgentEnvironmentProviderRef, o as AgentEnvironmentProviderRegistry } from "./environment-provider-Cygthiy3.js";
5
+ import { O as RuntimeTelemetryOptions, m as ToolSpec } from "./local-harness-BnB1E9nM.js";
6
6
  import { h as ExecutePreparedAgentCandidateOptions, o as CreateProtectedAgentCandidateModelPortOptions, p as PrepareAgentCandidateExecutionOptions, u as parseAgentCandidateProfileActivation, x as AgentCandidateExecutionClaimStore } from "./protected-model-port-BP6Z4eau.js";
7
7
  import { D as AgentCandidateTaskExecution, E as AgentCandidateRunFinalization, a as AgentCandidateExecutionPorts, c as AgentCandidateExecutorPort, r as AgentCandidateBenchmarkGraderPort, y as AgentCandidateOutputArtifactPort } from "./types-BaIpb0XT.js";
8
- import { C as ImproveResult, g as ImproveMethodResult, h as ImproveMethodOptions, n as defaultRedactor, r as resolveRedactor, t as Redactor, w as ImproveScenarioPartitions, y as ImproveOptions } from "./redact-xZvPu9qe.js";
8
+ import { C as ImproveResult, g as ImproveMethodResult, h as ImproveMethodOptions, n as defaultRedactor, r as resolveRedactor, t as Redactor, w as ImproveScenarioPartitions, y as ImproveOptions } from "./redact-BRaHUFMf.js";
9
9
  import { a as AgentImprovementActivationTransitionInput, c as CreateAgentImprovementActivationResultOptions, d as ProfileImprovementActivationTransitionInput, f as SealedCandidateActivationTransitionInput, h as verifyAgentImprovementActivationResult, i as AgentImprovementActivationTransition, l as ExecuteAgentImprovementActivationInput, m as executeAgentImprovementActivation, n as AgentImprovementActivationResultStore, o as AgentProfileImprovementActivationOperation, p as createAgentImprovementActivationResult, r as AgentImprovementActivationTargetPlan, s as AgentProfileImprovementActivationTargetPlan, t as AgentImprovementActivationReconciliation, u as ExecuteAgentImprovementActivationOptions } from "./activation-DyWB0K6E.js";
10
10
  import { CostLedgerHandle, TraceStore } from "@tangle-network/agent-eval";
11
11
  import { OptimizationMethodComparison, OptimizationPackageSource, OptimizationTokenUsage } from "@tangle-network/agent-eval/campaign";
@@ -1,9 +1,9 @@
1
- import { $ as parseExactAgentProfile, K as applyExactAgentProfileDiff, Q as parseAgentCandidateProfileActivation, Z as omitUndefinedObjectFields, rt as canonicalCandidateDigest$1, st as immutableCandidateValue, u as AGENT_CANDIDATE_EXECUTION_SUPPORT } from "./prepare-BKVdOn0w.js";
2
- import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-BtldAE9j.js";
3
- import { D as buildAgentImprovementActivationTargets, E as assertProfileImprovementTargetsShareIdentity, O as isAgentImprovementProfileSurface, _ as AGENT_IMPROVEMENT_PROFILE_SURFACES, a as executeAgentCandidateExperimentCell, b as agentImprovementProfileSurfaceDigest, d as verifyAgentImprovementActivation, f as verifyAgentImprovementProposal, g as optimizationActivationReceiptFromMetadata, h as createOptimizationActivationReceipt, i as createAgentImprovementProposal, k as isAgentProfileMeasuredSurface, l as reviewAgentImprovementProposal, m as verifyCandidateExecutionEvidence, n as createAgentImprovementActivation, o as proposeAgentImprovement, p as verifyAgentImprovementReview, r as createAgentImprovementMeasuredComparison, s as proposeAgentProfileImprovement, t as AgentCandidateExperimentCellExecutionError, u as runAgentCandidateExperiment, v as AGENT_PROFILE_MEASURED_SURFACES, w as agentImprovementTargetProfileDiffs, x as agentImprovementProfileSurfaceInput, y as agentImprovementProfileDiffs } from "./improvement-cycle-C3CrNfcy.js";
1
+ import { $ as parseExactAgentProfile, K as applyExactAgentProfileDiff, Q as parseAgentCandidateProfileActivation, Z as omitUndefinedObjectFields, rt as canonicalCandidateDigest$1, st as immutableCandidateValue, u as AGENT_CANDIDATE_EXECUTION_SUPPORT } from "./prepare-BHQBb02e.js";
2
+ import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-DqAH1Z2M.js";
3
+ import { D as buildAgentImprovementActivationTargets, E as assertProfileImprovementTargetsShareIdentity, O as isAgentImprovementProfileSurface, _ as AGENT_IMPROVEMENT_PROFILE_SURFACES, a as executeAgentCandidateExperimentCell, b as agentImprovementProfileSurfaceDigest, d as verifyAgentImprovementActivation, f as verifyAgentImprovementProposal, g as optimizationActivationReceiptFromMetadata, h as createOptimizationActivationReceipt, i as createAgentImprovementProposal, k as isAgentProfileMeasuredSurface, l as reviewAgentImprovementProposal, m as verifyCandidateExecutionEvidence, n as createAgentImprovementActivation, o as proposeAgentImprovement, p as verifyAgentImprovementReview, r as createAgentImprovementMeasuredComparison, s as proposeAgentProfileImprovement, t as AgentCandidateExperimentCellExecutionError, u as runAgentCandidateExperiment, v as AGENT_PROFILE_MEASURED_SURFACES, w as agentImprovementTargetProfileDiffs, x as agentImprovementProfileSurfaceInput, y as agentImprovementProfileDiffs } from "./improvement-cycle-vLye8pYb.js";
4
4
  import { r as resolveRedactor, t as defaultRedactor } from "./redact-D-u-rrcn.js";
5
- import { n as executeAgentImprovementActivation, r as verifyAgentImprovementActivationResult, t as createAgentImprovementActivationResult } from "./activation-UZ1JenNv.js";
6
- import { i as resolveAgentEnvironmentProvider } from "./environment-provider-BsHpW4Dp.js";
5
+ import { n as executeAgentImprovementActivation, r as verifyAgentImprovementActivationResult, t as createAgentImprovementActivationResult } from "./activation-DlKl7-1o.js";
6
+ import { i as resolveAgentEnvironmentProvider } from "./environment-provider-CCaEhA-l.js";
7
7
  import { a as createOtelExporter, i as buildRuntimeEventOtelSpans, n as buildLoopOtelSpans, s as flatOtelSpan } from "./otel-export-D34IQW1C.js";
8
8
  import { contentHash } from "@tangle-network/agent-eval";
9
9
  import { agentProfileImprovementArmSchema, applyAgentProfileDiff, defineAgentProfilePublicConfig } from "@tangle-network/agent-interface";