@tangle-network/agent-runtime 0.157.0 → 0.158.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/{graph-mN5HXKys.js → graph-BGPO6z_u.js} +2 -1
- package/dist/graph-BGPO6z_u.js.map +1 -0
- package/dist/{index-DiLGPhai.d.ts → index-Dto3D25e.d.ts} +7 -1
- package/dist/{index-DLnHBu3V.d.ts → index-W5WVBUlZ.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +2 -2
- package/dist/knowledge.d.ts +1 -1
- package/dist/{loop-runner-bin-BsmAByJ1.d.ts → loop-runner-bin-BEzvqbgg.d.ts} +2 -2
- package/dist/{loop-runner-bin-jnF_gdWU.js → loop-runner-bin-UNn0NLv2.js} +2 -2
- package/dist/{loop-runner-bin-jnF_gdWU.js.map → loop-runner-bin-UNn0NLv2.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/{runtime-DVU0WZUA.js → runtime-CTs2JsG9.js} +2 -2
- package/dist/{runtime-DVU0WZUA.js.map → runtime-CTs2JsG9.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +9 -9
- package/package.json +1 -1
- package/dist/graph-mN5HXKys.js.map +0 -1
package/dist/agent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as SandboxClient, at as RuntimeStreamEvent, t as AgentRunSpec, w as OutputAdapter } from "./types-DpdfZoQ3.js";
|
|
2
2
|
import { a as createSurfaceImprovementProposer, c as SurfaceValidationIssue, d as validateSurfaces, i as SurfaceImprovementEdit, l as renderSurfaceIssues, n as DraftPatchInput, o as AgentSurfaces, r as DraftPatchOutput, s as ResolvedSurface, t as CreateSurfaceImprovementProposerOptions, u as resolveSubjectPath } from "./improvement-adapter-D5gwwoXQ.js";
|
|
3
|
-
import { Sp as worktreeCliProfileMaterialization, _p as promptOnlyProfileMaterialization, ap as DefineProfileMaterializationContractOptions, bp as sandboxActProfileMaterialization, cp as ProfileMaterializationIssue, dp as controlProfileMaterialization, fp as defineProfileMaterializationContract, gp as promptModelProfileMaterialization, hp as promptControlProfileMaterialization, ip as CanonicalAgentProfileMaterializationAxis, lp as ValidateProfileMaterializationOptions, mp as profileMaterializationAxes, np as AgentProfileMaterializationAxis, op as KnownAgentProfileMaterializationAxis, pp as fullProfileMaterialization, rp as AssertProfileMaterializationOptions, sp as ProfileMaterializationContract, tp as AGENT_PROFILE_MATERIALIZATION_AXES, up as assertProfileMaterialization, vp as promptResourceProfileMaterialization, xp as validateProfileMaterialization, yp as renderProfileMaterializationIssues } from "./index-
|
|
3
|
+
import { Sp as worktreeCliProfileMaterialization, _p as promptOnlyProfileMaterialization, ap as DefineProfileMaterializationContractOptions, bp as sandboxActProfileMaterialization, cp as ProfileMaterializationIssue, dp as controlProfileMaterialization, fp as defineProfileMaterializationContract, gp as promptModelProfileMaterialization, hp as promptControlProfileMaterialization, ip as CanonicalAgentProfileMaterializationAxis, lp as ValidateProfileMaterializationOptions, mp as profileMaterializationAxes, np as AgentProfileMaterializationAxis, op as KnownAgentProfileMaterializationAxis, pp as fullProfileMaterialization, rp as AssertProfileMaterializationOptions, sp as ProfileMaterializationContract, tp as AGENT_PROFILE_MATERIALIZATION_AXES, up as assertProfileMaterialization, vp as promptResourceProfileMaterialization, xp as validateProfileMaterialization, yp as renderProfileMaterializationIssues } from "./index-Dto3D25e.js";
|
|
4
4
|
import { AgentProfile, AgentProfileFileMount, AgentProfileMcpServer } from "@tangle-network/agent-interface";
|
|
5
5
|
import { TraceAnalystDefinition } from "@tangle-network/agent-eval";
|
|
6
6
|
import { SandboxEvent } from "@tangle-network/sandbox";
|
package/dist/agent.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as mapSandboxEvent } from "./sandbox-events-BVjstFgb.js";
|
|
2
2
|
import { an as assertProfileMaterialization, cn as fullProfileMaterialization, dn as promptModelProfileMaterialization, fn as promptOnlyProfileMaterialization, gn as sandboxActProfileMaterialization, in as AGENT_PROFILE_MATERIALIZATION_AXES, ln as profileMaterializationAxes, mn as renderProfileMaterializationIssues, mt as createSandboxForSpec, on as controlProfileMaterialization, pn as promptResourceProfileMaterialization, sn as defineProfileMaterializationContract, un as promptControlProfileMaterialization, vn as validateProfileMaterialization, yn as worktreeCliProfileMaterialization } from "./supervisor-ZlQy5Fwl.js";
|
|
3
|
-
import "./runtime-
|
|
3
|
+
import "./runtime-CTs2JsG9.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
6
6
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
package/dist/durable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ao as SuperviseOptions, lo as supervise, wo as SupervisorProfile } from "./index-
|
|
1
|
+
import { ao as SuperviseOptions, lo as supervise, wo as SupervisorProfile } from "./index-Dto3D25e.js";
|
|
2
2
|
import { l as RuntimeHooks, o as RuntimeHookEvent, r as RuntimeDecisionPoint } from "./runtime-hooks-Bj6wJHlH.js";
|
|
3
3
|
import { A as ProviderModelExecutionEvidence, J as SpendGap, K as Spend, O as ProfileMaterializationReceipt, T as NodeId, o as ExecutionBindingReceipt, st as WorkerTraceEvidence } from "./types-BBXdSns1.js";
|
|
4
4
|
//#region src/durable/chat-engine.d.ts
|
|
@@ -426,6 +426,7 @@ function runGraphInternal(graph, opts, brain) {
|
|
|
426
426
|
...opts.watchWorkers ? { watchWorkers: opts.watchWorkers } : {},
|
|
427
427
|
...opts.router ? { router: opts.router } : {},
|
|
428
428
|
...opts.driverBackend ? { driverBackend: opts.driverBackend } : {},
|
|
429
|
+
...opts.resolveSupervisorTools ? { resolveSupervisorTools: opts.resolveSupervisorTools } : {},
|
|
429
430
|
...authorizeMessage ? { authorizeMessage } : {},
|
|
430
431
|
...opts.perWorker ? { perWorker: opts.perWorker } : {},
|
|
431
432
|
...opts.maxTurns !== void 0 ? { maxTurns: opts.maxTurns } : {},
|
|
@@ -473,4 +474,4 @@ function graphTask(graph, root) {
|
|
|
473
474
|
//#endregion
|
|
474
475
|
export { runGraphWithTestBrain as i, defaultEdgeTraversalCap as n, runGraph as r, GraphEdgeCapError as t };
|
|
475
476
|
|
|
476
|
-
//# sourceMappingURL=graph-
|
|
477
|
+
//# sourceMappingURL=graph-BGPO6z_u.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-BGPO6z_u.js","names":[],"sources":["../src/runtime/supervise/graph.ts"],"sourcesContent":["/**\n *\n * `runGraph` — agent graphs: profiles as nodes, registry-backed prompt directives as edges.\n *\n * A topology is PLAIN DATA an agent can author in a few lines: nodes are canonical\n * `AgentProfile`s (the ONLY way a node is described — no role-builder functions), edges are typed\n * values carrying versioned {@link PromptHandle} directives, `deliverable` (termination) and\n * `budget` (one conserved pool) are mandatory. Driver↔worker is the two-node cyclic instance;\n * \"agent 3 analyzes 1 and 2 and reports to 1\" is ONE edge, not a framework.\n *\n * NOT A SECOND SCHEDULER. `runGraph` is an interpretation layer over what already runs:\n * `supervise()` is the execution core — the same `supervisorAgent`/`driverAgent` machinery,\n * `makeWorkerAgent` seam, conserved-pool budget, and deliverable-gated settlement every\n * supervised run uses. (`runAgentRounds` is deliberately NOT the substrate here.) What the graph\n * layer ADDS is exactly what a bespoke driver loop never\n * had:\n *\n * 1. **Node pinning** — a spawn names a node (`profile.name` = node id) and the node's canonical\n * profile is what runs; a driver cannot smuggle capabilities into a worker it did not define.\n * 2. **Observable edges** — every delegates/analyzes traversal lands in an EDGE LEDGER\n * (`delivered | stripped | empty | unpropagated`, with byte counts), in memory on\n * the result AND as `edge` events in the run journal. The motivating incident: a filter\n * silently replaced 1,700-char steering with 241 chars of boilerplate for three rounds and\n * NO artifact said so — an unobservable edge cannot be trusted and its directive cannot be\n * optimized.\n * 3. **Directives as data** — edge text lives in the prompt registry (`<surface>/v<n>`), so every\n * edge is a versioned optimization target, never prose hardcoded in a builder function.\n * 4. **Per-edge traversal caps** — the cyclic-graph backstop. A delegates edge whose cap is\n * exhausted REFUSES further traversals (fail loud), so a cycle cannot spin the pool dry.\n * 5. **Continuity as data** — a delegates edge may declare `continuity: 'resume'`, so each spawn\n * after the node's first re-attaches to its latest SETTLED session (the spawn context hands\n * the executor seam `resume: { ofWorker, sequence }`; the kernel keeps identity, ordering,\n * ledger truth, and the one conserved pool). Every ledger row states how its hop continued:\n * `'fresh' | 'resume'` for spawns, `'steer'` for mid-run deliveries — fresh respawns, session\n * resumes, and live steers are all plain data, each a ledgered fact.\n *\n * ORACLES ARE ENVIRONMENT, NEVER WORKERS. Graders/verifiers must not be spawnable in the graph —\n * a delegates edge to them leaks the rubric. An `analyzes` edge names its analyst in one of two\n * forms: a LENS id from the environment's registry (a pure function over trace evidence), or the\n * id of a graph NODE — a tool-equipped analyst AGENT spawned on each matching settle with the\n * node's pinned profile, whose settle output IS the findings. Either way the oracle doctrine\n * holds: an analyst node can never be a delegates target (refused loudly), so no driver can hand\n * it work, and an id living in both the registry and the nodes is refused as ambiguous.\n *\n * @experimental\n */\n\nimport {\n type AgentProfile,\n agentProfileSchema,\n canonicalCandidateDigest,\n} from '@tangle-network/agent-interface'\nimport { InMemoryResultBlobStore, InMemorySpawnJournal } from '../../durable/spawn-journal'\nimport { ValidationError } from '../../errors'\nimport type {\n AnalystRegistry,\n AnalyzeOnSettleRoute,\n ContinuityMode,\n CoordinationEvent,\n MakeWorkerAgent,\n WorkerWatchOptions,\n} from '../../mcp/tools/coordination'\nimport { composeRuntimeHooks, type RuntimeHooks } from '../../runtime-hooks'\nimport { harnessRunsAgent } from '../harness-role'\nimport type { RouterTransportConfig } from '../router-client'\nimport type { ToolLoopChat } from '../tool-loop'\nimport type { DeliverableSpec } from './completion-gate'\nimport {\n formatPromptHandle,\n kernelPromptRegistry,\n type PromptHandle,\n type PromptRegistry,\n} from './prompt-registry'\nimport type { ExecutorConfig } from './runtime'\nimport {\n type SuperviseOptions,\n supervise,\n superviseWithTestBrain,\n workerFromBackend,\n} from './supervise'\nimport type { Budget, NodeId, ResultBlobStore, SpawnJournal, SupervisedResult } from './types'\n\n// ── The algebra ────────────────────────────────────────────────────────────────\n\n/** A graph node: an id and a canonical `AgentProfile`. The profile is the ONLY way a node is\n * described — its `prompt.systemPrompt` is the standing role (the 0.117 canonical resolution;\n * never a legacy top-level-only reduction), its tools/mcp/resources are its capabilities. */\nexport interface GraphNode {\n readonly id: NodeId\n readonly profile: AgentProfile\n}\n\nexport type GraphEdge =\n /** Work flows down. The delegation directive is DATA → versionable, sweepable, optimizable.\n * Each spawn of `to` by `from` — and each mid-run steer from `from` to a live `to` worker —\n * is one traversal. */\n | {\n readonly kind: 'delegates'\n readonly from: NodeId\n readonly to: NodeId\n readonly directive: PromptHandle\n /** Cyclic-graph backstop: traversals beyond this REFUSE (fail loud). Default\n * {@link defaultEdgeTraversalCap}. */\n readonly maxTraversals?: number\n /** Default continuity for this edge's SPAWN traversals. `'resume'` makes every spawn after\n * the node's first re-attach to its most recent SETTLED worker: a NEW live worker whose\n * spawn context carries `resume: { ofWorker, sequence }` for the executor seam, spending\n * from the same conserved pool — the node's first spawn is effectively `'fresh'`, and a\n * spawn while a prior worker is still live refuses loudly (steer is the live channel).\n * The driver's per-call `spawn_agent` `continuity` argument overrides either way. Omit =\n * `'fresh'` (today's behavior, byte-identical). Caps count resumes exactly like fresh\n * spawns. */\n readonly continuity?: ContinuityMode\n }\n /** Findings flow anywhere: an analyst over N nodes' settled traces, delivered to ONE node.\n * With a LENS analyst the directive wraps the findings for the recipient; with a NODE analyst\n * the directive is the analyst agent's task and the findings are its settle output. */\n | {\n readonly kind: 'analyzes'\n /** The analyst REFERENCE, in one of two forms: a lens id resolved against\n * `RunGraphOptions.analysts` (environment), or the id of a graph NODE with no delegates\n * edge pointing at it — then each matching settle spawns that node's pinned profile as a\n * tool-equipped analyst WORKER (same spawn machinery, conserved budget, trace join) whose\n * task is this edge's directive plus the settled worker's trace evidence and whose settle\n * output is the findings. An id that is both a node and a registry lens is refused. */\n readonly analyst: string\n readonly over: ReadonlyArray<NodeId>\n readonly to: NodeId\n readonly directive: PromptHandle\n /** Observability cap: traversals beyond this are LEDGERED as exhausted (`unpropagated`).\n * Only delegates caps refuse traversal — they are what close the spawn cycle. */\n readonly maxTraversals?: number\n }\n\nexport interface AgentGraph {\n readonly nodes: ReadonlyArray<GraphNode>\n readonly edges: ReadonlyArray<GraphEdge>\n /** Termination is mandatory, not optional: the independent completion oracle. */\n readonly deliverable: DeliverableSpec<unknown>\n /** One conserved pool across the whole graph — cycles without conservation never terminate. */\n readonly budget: Budget\n}\n\n// ── The edge ledger ────────────────────────────────────────────────────────────\n\nexport type EdgeDeliveryOutcome = 'delivered' | 'stripped' | 'empty' | 'unpropagated'\n\n/** How one ledgered hop CONTINUED: a spawn traversal stamps its effective spawn mode\n * (`'fresh'` | `'resume'`), and every mid-run delivery into an already-live recipient — a\n * driver steer leg and every analyzes delivery (routed steer or driver-destined finding) —\n * stamps `'steer'`. Zero ambiguity: every row carries exactly one of the three. */\nexport type TraversalContinuity = ContinuityMode | 'steer'\n\n/** One recorded edge traversal — the in-memory row; the journal twin is the `edge` SpawnEvent. */\nexport interface EdgeTraversal {\n /** Stable edge id: `delegates:<from>-><to>` or `analyzes:<analyst>:<over…>-><to>`. */\n readonly edge: string\n readonly kind: 'delegates' | 'analyzes'\n readonly from: string\n readonly to: string\n /** The resolved directive reference (`<surface>/v<n>`). */\n readonly directive: string\n /** 1-based per-edge ordinal. */\n readonly traversal: number\n readonly outcome: EdgeDeliveryOutcome\n /** How this hop continued — see {@link TraversalContinuity}. */\n readonly continuity: TraversalContinuity\n /** Bytes of directive + payload that actually crossed the edge. */\n readonly bytes: number\n readonly reason?: string\n /** The concrete worker node id, once known. */\n readonly workerId?: string\n}\n\n/** Default per-edge traversal cap — the cyclic-graph backstop when an edge names none. */\nexport const defaultEdgeTraversalCap = 32\n\n/** A delegates edge exhausted its traversal cap and the run produced no winner: the cap, not the\n * task, ended it. Carries the full evidence so failing loud loses nothing. */\nexport class GraphEdgeCapError extends Error {\n readonly exhaustedEdges: ReadonlyArray<string>\n readonly ledger: ReadonlyArray<EdgeTraversal>\n readonly result: SupervisedResult<unknown>\n constructor(\n exhaustedEdges: ReadonlyArray<string>,\n ledger: ReadonlyArray<EdgeTraversal>,\n result: SupervisedResult<unknown>,\n ) {\n super(\n `runGraph: edge traversal cap exhausted on ${exhaustedEdges.join(', ')} and the run ` +\n 'delivered no winner — the cap (the cyclic-graph backstop), not the task, ended this run. ' +\n 'Raise maxTraversals on the edge or fix the cycle; the full edge ledger and the ' +\n 'supervised result ride on this error.',\n )\n this.name = 'GraphEdgeCapError'\n this.exhaustedEdges = exhaustedEdges\n this.ledger = ledger\n this.result = result\n }\n}\n\n// ── Options / result ───────────────────────────────────────────────────────────\n\nexport interface RunGraphOptions {\n /** WHERE worker nodes run — the executor backend. Provide this OR `makeWorkerAgent`. */\n readonly backend?: ExecutorConfig\n /** WHERE the ROOT node's harness brain runs — forwarded to `supervise()` verbatim (see\n * `SuperviseOptions.driverBackend`). Needed when the root node's profile declares an external\n * harness (`codex`, `claude-code`, `opencode`): that root is driven by the harness, not by the\n * router brain, and automatic execution supports a local `bridge`. Unlike `supervise()`, this\n * does NOT default to `backend`: a graph's `backend` places WORKER nodes, so the root driver\n * is selected only by this field. Omit = no harness driver, which is correct for a root whose\n * `profile.harness` is omitted or `cli-base` (that root runs on the router brain). */\n readonly driverBackend?: ExecutorConfig\n /** Leaf-execution override (offline tests / advanced). `runGraph` still owns node pinning,\n * directive delivery, and the edge ledger AROUND this seam — only the leaf `act` is yours. */\n readonly makeWorkerAgent?: MakeWorkerAgent\n /** The driver brain's router substrate (`profile.harness` omitted or `cli-base`). */\n readonly router?: RouterTransportConfig\n /** The ROOT driver's inference seam — a caller-owned `ToolLoopChat` that makes every root\n * model call. Use it when the root's decisions must be caller-owned orchestration (a\n * deterministic conversation driver, a persona loop with its own LLM calls) rather than a\n * router-derived model call. The graph machinery around the seam is unchanged: node pinning,\n * directive delivery, the edge ledger, and the journal twin all run the same shipped path,\n * and the root profile keeps prompt control (`prompt-control-execution` materialization —\n * `systemPrompt`/`instructions` still apply). What moves to the caller with the brain:\n * model selection and provider-identity validation (`expectedModel` cannot be enforced on a\n * call the runtime did not place) and per-turn usage reporting (a brain that reports no\n * usage meters nothing into the pool). Omit = the router brain derived from the root\n * profile — the unchanged default. Mutually exclusive with `driverBackend`, and refused\n * when the root profile declares an external harness (that root is driven BY the harness). */\n readonly brain?: ToolLoopChat\n /** Caller-side runtime hooks (telemetry, policy, product extensions). Composed AFTER the\n * graph's own spawn-binding hook on the SAME event stream — the graph never swallows the\n * seam supervise() exposes. */\n readonly hooks?: RuntimeHooks\n /** The analyst lens registry `analyzes` edges resolve against. ENVIRONMENT — needed only for\n * lens analysts; an analyzes edge naming a graph NODE as its analyst needs no registry. */\n readonly analysts?: AnalystRegistry\n /** Watch every worker's LIVE tool trace with the online detector panel and raise a `finding`\n * on the bus the moment one loops or error-storms — forwarded to `supervise()` verbatim (see\n * `SuperviseOptions.watchWorkers`). Online findings (`analyst: 'online:<detector>'`) are bus\n * events for the driver, not graph edges, so they are never ledgered as traversals. Omit =\n * off (no online watching, no extra events). */\n readonly watchWorkers?: WorkerWatchOptions\n /** Directive registry. Default: the seeded kernel registry (`kernelPromptRegistry()`). */\n readonly registry?: PromptRegistry\n /** The run journal the edge ledger and every spawn/settle ride. Default: in-memory. */\n readonly journal?: SpawnJournal\n readonly blobs?: ResultBlobStore\n readonly runId?: string\n /** Per-child budget reserved from the conserved pool on each spawn. */\n readonly perWorker?: Budget\n readonly maxTurns?: number\n readonly maxLiveWorkers?: number\n /** Resolve product-owned tools from the exact trusted manager context — forwarded to the root's\n * `supervise()` verbatim (see `SuperviseOptions.resolveSupervisorTools`). Without it a declared\n * graph mounts only the coordination MCP, so a root that is supposed to reach a product tool\n * (a claim ledger, a knowledge base) finds nothing and writes its output somewhere ungraded.\n * A graph run and a supervise run mount the same tools when this is set. */\n readonly resolveSupervisorTools?: SuperviseOptions['resolveSupervisorTools']\n /** Product authority over every steer/answer instruction (the filter seam). `runGraph` observes\n * what it CHANGES: a narrowed instruction ledgers its steer traversal as `stripped`. */\n readonly authorizeMessage?: SuperviseOptions['authorizeMessage']\n readonly signal?: AbortSignal\n readonly now?: () => number\n readonly otel?: SuperviseOptions['otel']\n readonly stallAfterMs?: number\n readonly allowedModels?: readonly string[]\n}\n\nexport interface GraphResult<Out = unknown> {\n readonly result: SupervisedResult<Out>\n /** Every edge traversal, in occurrence order — the observable-edge contract. */\n readonly ledger: ReadonlyArray<EdgeTraversal>\n /** Edge ids whose traversal cap was hit — analyzes exhaustion included (observable here, never\n * a refusal). A DELEGATES cap paired with a `no-winner` result THROWS\n * ({@link GraphEdgeCapError}) instead of returning: only delegates caps refuse spawns, so only\n * they can have ended the run. A LIFECYCLE no-winner (`aborted` / `budget-exhausted`) returns\n * normally even with an exhausted delegates cap — the abort or the pool, not the cap, ended\n * that run, and the exhaustion stays observable here. */\n readonly exhaustedEdges: ReadonlyArray<string>\n readonly runId: string\n}\n\n/** `RunGraphOptions` with the brain REQUIRED — the shape the `/testing` entry's\n * `runGraphWithTestBrain` keeps accepting now that `brain` is a production option. */\nexport interface RunGraphTestOptions extends RunGraphOptions {\n readonly brain: ToolLoopChat\n}\n\n// ── Validation ─────────────────────────────────────────────────────────────────\n\ninterface ValidatedGraph {\n readonly root: GraphNode\n readonly workers: ReadonlyMap<NodeId, GraphNode>\n readonly delegatesByWorker: ReadonlyMap<NodeId, Extract<GraphEdge, { kind: 'delegates' }>>\n readonly analyzes: ReadonlyArray<Extract<GraphEdge, { kind: 'analyzes' }>>\n /** Nodes referenced as an analyzes edge's ANALYST (the analyst-agent form): reachable through\n * their analyzes edge (spawned on settle), never through a delegates edge. */\n readonly analystNodes: ReadonlyMap<NodeId, GraphNode>\n}\n\nfunction edgeId(edge: GraphEdge): string {\n return edge.kind === 'delegates'\n ? `delegates:${edge.from}->${edge.to}`\n : `analyzes:${edge.analyst}:${edge.over.join('+')}->${edge.to}`\n}\n\n/** Validate the graph and resolve every directive BEFORE any compute is spent — an invalid\n * topology or an unknown directive is a configuration fault, never a mid-run surprise. */\nfunction validateGraph(\n graph: AgentGraph,\n registry: PromptRegistry,\n analysts: AnalystRegistry | undefined,\n): ValidatedGraph {\n if (!Array.isArray(graph.nodes) || graph.nodes.length === 0) {\n throw new ValidationError('runGraph: graph.nodes must be a non-empty array')\n }\n if (!Array.isArray(graph.edges) || graph.edges.length === 0) {\n throw new ValidationError('runGraph: graph.edges must be a non-empty array')\n }\n if (typeof graph.deliverable?.check !== 'function') {\n throw new ValidationError('runGraph: graph.deliverable is mandatory (termination oracle)')\n }\n if (typeof graph.budget !== 'object' || graph.budget === null) {\n throw new ValidationError('runGraph: graph.budget is mandatory (the conserved pool)')\n }\n const byId = new Map<NodeId, GraphNode>()\n for (const node of graph.nodes) {\n if (typeof node.id !== 'string' || node.id.length === 0) {\n throw new ValidationError('runGraph: every node needs a non-empty string id')\n }\n if (byId.has(node.id)) throw new ValidationError(`runGraph: duplicate node id '${node.id}'`)\n const parsed = agentProfileSchema.safeParse(node.profile)\n if (!parsed.success) {\n throw new ValidationError(\n `runGraph: node '${node.id}' has an invalid AgentProfile: ${parsed.error.message}`,\n )\n }\n // The profile NAME is the node identity everywhere downstream: node pinning resolves a\n // spawn's `profile.name` against node ids, and the coordination layer matches analyst\n // routes (`over`/`to`) against the settled worker's PROFILE NAME. A divergent name would\n // make every analyzes edge touching this node silently never match — refuse it up front.\n if (node.profile.name !== node.id) {\n throw new ValidationError(\n `runGraph: node '${node.id}' has profile.name ${JSON.stringify(node.profile.name)} — ` +\n 'profile.name IS the node identity (node pinning and analyst routing match on it) and ' +\n 'must equal the node id',\n )\n }\n byId.set(node.id, node)\n }\n const requireNode = (id: NodeId, where: string): GraphNode => {\n const node = byId.get(id)\n if (!node) throw new ValidationError(`runGraph: ${where} references unknown node '${id}'`)\n return node\n }\n const delegates = graph.edges.filter(\n (edge): edge is Extract<GraphEdge, { kind: 'delegates' }> => edge.kind === 'delegates',\n )\n const analyzes = graph.edges.filter(\n (edge): edge is Extract<GraphEdge, { kind: 'analyzes' }> => edge.kind === 'analyzes',\n )\n if (delegates.length === 0) {\n throw new ValidationError('runGraph: at least one delegates edge is required (who spawns whom)')\n }\n for (const edge of graph.edges) registry.resolve(edge.directive)\n for (const edge of delegates) {\n requireNode(edge.from, edgeId(edge))\n requireNode(edge.to, edgeId(edge))\n if (edge.from === edge.to) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} delegates to itself — the driver↔worker cycle is the ` +\n 'settle-return loop, not a self-edge',\n )\n }\n // The type admits only 'fresh' | 'resume', but a graph is plain data that often arrives\n // through JSON — refuse a nonsense mode here, never let it reach the spawn tool as a string.\n if (\n edge.continuity !== undefined &&\n edge.continuity !== 'fresh' &&\n edge.continuity !== 'resume'\n ) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} has invalid continuity ${JSON.stringify(edge.continuity)} — ` +\n \"a delegates edge's continuity is 'fresh' or 'resume'\",\n )\n }\n }\n // Root: the one node that delegates and is never delegated TO. P0 executes the star/2-node\n // cyclic family (one driver, N workers); nested driver graphs are the recorded P3 absorption.\n const delegatedTo = new Set(delegates.map((edge) => edge.to))\n const roots = [...new Set(delegates.map((edge) => edge.from))].filter(\n (id) => !delegatedTo.has(id),\n )\n if (roots.length !== 1) {\n throw new ValidationError(\n `runGraph: expected exactly ONE root (a node that delegates and is never delegated to), ` +\n `found ${roots.length === 0 ? 'none — delegates edges form a cycle with no entry' : roots.join(', ')}. ` +\n 'P0 executes driver↔worker(s); nested driver graphs are P3.',\n )\n }\n const root = requireNode(roots[0] as string, 'root resolution')\n for (const edge of delegates) {\n if (edge.from !== root.id) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} delegates from a non-root node — P0 executes one driver over ` +\n 'its workers (the 2-node cyclic case, star-generalized); deeper delegation is P3',\n )\n }\n }\n const analystIds = new Set<string>()\n const analystNodes = new Map<NodeId, GraphNode>()\n for (const edge of analyzes) {\n // Continuity is a delegates-edge axis ONLY: analysts (lens or node) are spawned by the\n // analyst-on-settle machinery, each run a fresh session over settled evidence — an analyzes\n // edge carrying continuity would silently mean nothing, so it is refused as data.\n if ((edge as { continuity?: unknown }).continuity !== undefined) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} carries continuity — analysts are spawned by the analyst ` +\n 'machinery (every analyst run is a fresh session over settled evidence), so ' +\n 'continuity is a delegates-edge axis only',\n )\n }\n // The runner's traversal ledger resolves a finding/steer back to its edge BY ANALYST ID\n // alone, so a second edge sharing an analyst would silently absorb the first edge's\n // traversals (last-registered wins). Multi-edge-per-analyst is not yet supported; refuse it\n // rather than mis-ledger it.\n if (analystIds.has(edge.analyst)) {\n throw new ValidationError(\n `runGraph: two analyzes edges share analyst '${edge.analyst}' — one analyzes edge per ` +\n 'analyst lens (traversals are ledgered by analyst id; a second edge would silently ' +\n \"absorb the first's). Register the lens under a second id for a second edge.\",\n )\n }\n analystIds.add(edge.analyst)\n // The analyst REFERENCE has two forms — a registry lens id or a graph node id — and the id\n // itself is what distinguishes them, so an id living in both is refused as ambiguous rather\n // than silently resolved by precedence.\n const analystNode = byId.get(edge.analyst)\n const inRegistry = analysts?.kinds.some((kind) => kind.id === edge.analyst) === true\n if (analystNode !== undefined && inRegistry) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyst '${edge.analyst}' is BOTH a graph node and a lens in ` +\n 'the analysts registry — the id alone distinguishes the two analyst forms, so this is ' +\n 'ambiguous; rename the node or register the lens under another id',\n )\n }\n if (analystNode !== undefined) {\n // The analyst-AGENT form. Oracle doctrine holds structurally: the analyst node can never\n // receive work — not from the root (a delegates edge to it is refused) and not by being\n // the root (the root delegates by definition).\n if (analystNode.id === root.id) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} names the ROOT as its analyst — the root is the driver; ` +\n 'give the analyst its own node with no delegates edge pointing at it',\n )\n }\n if (delegatedTo.has(analystNode.id)) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} names node '${edge.analyst}' as its analyst, but that node ` +\n 'is a delegates target — oracle doctrine: an analyst is never delegated to. An ' +\n 'analyst NODE is legal only with NO delegates edge pointing at it; give the analyst ' +\n 'its own delegates-free node or pass a lens id from RunGraphOptions.analysts.',\n )\n }\n analystNodes.set(analystNode.id, analystNode)\n } else if (!analysts) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyst '${edge.analyst}' is not a graph node, and no ` +\n 'RunGraphOptions.analysts registry was provided to resolve it as a lens',\n )\n } else if (!inRegistry) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyst '${edge.analyst}' is neither a graph node nor in the ` +\n `analysts registry (known lenses: ${analysts.kinds.map((kind) => kind.id).join(', ') || 'none'})`,\n )\n }\n if (edge.over.length === 0) {\n throw new ValidationError(`runGraph: ${edgeId(edge)} must analyze at least one node`)\n }\n for (const over of edge.over) {\n requireNode(over, edgeId(edge))\n // Analysts observe SETTLED WORKERS, matched by profile name — the root drives and never\n // settles as a worker, so an edge over the root would silently never fire; refuse it.\n if (over === root.id) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyzes the ROOT — analysts observe settled workers, and ` +\n 'the root never settles as one, so this edge would silently never fire; list ' +\n 'delegates-target nodes only',\n )\n }\n }\n requireNode(edge.to, edgeId(edge))\n }\n // Second pass, once every analyst NODE is known: an analyst run's settlement is a FINDING,\n // never a worker settle, so an analyzes edge OVER an analyst node would silently never fire —\n // refuse it rather than let it rot unobserved.\n for (const edge of analyzes) {\n for (const over of edge.over) {\n if (analystNodes.has(over)) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyzes '${over}', which is an analyst node — an analyst ` +\n 'run settles as a finding, never as a worker, so this edge would silently never ' +\n 'fire; analyst nodes are not analyzable',\n )\n }\n }\n }\n const workers = new Map<NodeId, GraphNode>()\n const delegatesByWorker = new Map<NodeId, Extract<GraphEdge, { kind: 'delegates' }>>()\n for (const edge of delegates) {\n if (delegatesByWorker.has(edge.to)) {\n throw new ValidationError(\n `runGraph: node '${edge.to}' is the target of two delegates edges — one delegation ` +\n 'directive per worker node (version the directive instead of forking the edge)',\n )\n }\n delegatesByWorker.set(edge.to, edge)\n workers.set(edge.to, requireNode(edge.to, edgeId(edge)))\n }\n // Every non-root node must be reachable by SOME edge, or it can never run. A worker node is\n // reached by its delegates edge; an analyst node by its analyzes edge (spawned on settle).\n for (const node of graph.nodes) {\n if (node.id !== root.id && !workers.has(node.id) && !analystNodes.has(node.id)) {\n throw new ValidationError(\n `runGraph: node '${node.id}' has no delegates edge to it — an unreachable node never runs`,\n )\n }\n }\n return { root, workers, delegatesByWorker, analyzes, analystNodes }\n}\n\n// ── The runner ─────────────────────────────────────────────────────────────────\n\nconst byteLength = (text: string): number => Buffer.byteLength(text, 'utf8')\n\nfunction stringifyPayload(payload: unknown): string {\n if (typeof payload === 'string') return payload\n try {\n return JSON.stringify(payload) ?? String(payload)\n } catch {\n return String(payload)\n }\n}\n\n/**\n * Execute an {@link AgentGraph}. The root node becomes the supervisor (`supervise()` — the\n * execution core), each worker node is spawnable BY NODE ID (`spawn_agent` with\n * `profile: { name: '<node id>' }`; the node's canonical profile is pinned by the graph), each\n * delegates directive is appended to the worker profile's `prompt.instructions` per traversal,\n * and each analyzes edge becomes an analyst-on-settle route with a real DESTINATION. Every\n * traversal is ledgered and journaled.\n */\nexport function runGraph(graph: AgentGraph, opts: RunGraphOptions): Promise<GraphResult> {\n const { brain, ...runtimeOptions } = opts\n return runGraphInternal(graph, runtimeOptions, brain)\n}\n\n/** Alias for graph tests written before `RunGraphOptions.brain` was production. The production\n * entry accepts the same shape; this wrapper only keeps the `/testing` import path working. */\nexport function runGraphWithTestBrain(\n graph: AgentGraph,\n opts: RunGraphTestOptions,\n): Promise<GraphResult> {\n const { brain, ...runtimeOptions } = opts\n return runGraphInternal(graph, runtimeOptions, brain)\n}\n\nfunction runGraphInternal(\n graph: AgentGraph,\n opts: RunGraphOptions,\n brain?: ToolLoopChat,\n): Promise<GraphResult> {\n const registry = opts.registry ?? kernelPromptRegistry()\n const { root, workers, delegatesByWorker, analyzes, analystNodes } = validateGraph(\n graph,\n registry,\n opts.analysts,\n )\n // A caller brain and a harness driver are two answers to WHO makes the root's calls: refuse\n // the contradiction before any compute, and refuse a harness-driven root outright — the\n // harness IS that root's brain, so a supplied one would be silently ignored downstream.\n if (brain && opts.driverBackend) {\n throw new ValidationError(\n 'runGraph: brain and driverBackend are mutually exclusive — a caller brain makes the root model calls, a driverBackend places a harness that makes its own',\n )\n }\n if (brain && harnessRunsAgent(root.profile.harness)) {\n throw new ValidationError(\n `runGraph: root node '${root.id}' declares harness '${root.profile.harness}', so the harness drives it — a caller brain applies only to a router-brained root (profile.harness omitted or 'cli-base')`,\n )\n }\n if (!opts.backend && !opts.makeWorkerAgent) {\n throw new ValidationError(\n 'runGraph: provide opts.backend (where nodes run) or opts.makeWorkerAgent',\n )\n }\n const journal = opts.journal ?? new InMemorySpawnJournal()\n const blobs = opts.blobs ?? new InMemoryResultBlobStore()\n const runId =\n opts.runId ??\n `graph-${canonicalCandidateDigest(graph.nodes.map((n) => n.id)).slice('sha256:'.length, 'sha256:'.length + 12)}`\n const now = opts.now ?? Date.now\n\n // ── Ledger state ──\n const ledger: EdgeTraversal[] = []\n const journaled = new Set<EdgeTraversal>()\n const traversalCounts = new Map<string, number>()\n const exhausted = new Set<string>()\n // The subset of `exhausted` that REFUSED work. Only a delegates cap closes the spawn cycle, so\n // only it can be the reason a run ended winnerless — an analyzes cap refuses nothing.\n const exhaustedDelegates = new Set<string>()\n const journalWrites: Promise<void>[] = []\n let ledgerSeq = 0\n const appendJournal = (entry: EdgeTraversal, nodeIdForEvent: string): Promise<void> => {\n if (journaled.has(entry)) return Promise.resolve()\n journaled.add(entry)\n const write = journal.appendEvent(runId, {\n kind: 'edge',\n id: nodeIdForEvent,\n edge: { kind: entry.kind, from: entry.from, to: entry.to, directive: entry.directive },\n traversal: entry.traversal,\n outcome: entry.outcome,\n continuity: entry.continuity,\n bytes: entry.bytes,\n ...(entry.reason !== undefined ? { reason: entry.reason } : {}),\n seq: ledgerSeq++,\n at: new Date(now()).toISOString(),\n })\n journalWrites.push(write)\n return write\n }\n const record = (entry: Omit<EdgeTraversal, 'traversal'>, journalNow: boolean): EdgeTraversal => {\n const count = (traversalCounts.get(entry.edge) ?? 0) + 1\n traversalCounts.set(entry.edge, count)\n const row: EdgeTraversal = { ...entry, traversal: count }\n ledger.push(row)\n if (journalNow) void appendJournal(row, row.workerId ?? `graph:${row.to}`)\n return row\n }\n\n // ── Node pinning + delegates spawn traversals (the makeWorkerAgent wrapper) ──\n const makeLeaf =\n opts.makeWorkerAgent ?? workerFromBackend(opts.backend as ExecutorConfig, graph.deliverable)\n const nodeByWorkerId = new Map<string, NodeId>()\n const pendingByAssignment = new Map<string, EdgeTraversal>()\n const graphWorker: MakeWorkerAgent = (authoredProfile, spawnContext) => {\n const requested =\n typeof (authoredProfile as { name?: unknown } | undefined)?.name === 'string'\n ? (authoredProfile as { name: string }).name\n : undefined\n // An analyst-AGENT run: the coordination settle hook — never the driver; the marker is\n // authored by the runtime, not accepted from model arguments — spawns the analyst NODE.\n // Pin the node's canonical profile; the analysis directive travels as the TASK (composed by\n // the coordination layer with the settled worker's trace evidence), so nothing is appended\n // to the profile's instructions here. Its traversal is ledgered on the finding/steer it\n // produces, exactly like a registry analyst's.\n if (spawnContext?.analyst !== undefined) {\n const analystNode = analystNodes.get(spawnContext.analyst)\n if (!analystNode || requested !== analystNode.id) {\n throw new ValidationError(\n `runGraph: analyst run for ${JSON.stringify(spawnContext.analyst)} does not name an ` +\n `analyst node of this graph (analyst nodes: ${[...analystNodes.keys()].join(', ') || 'none'})`,\n )\n }\n return makeLeaf(analystNode.profile, spawnContext)\n }\n const node = requested !== undefined ? workers.get(requested) : undefined\n if (!node) {\n throw new ValidationError(\n `runGraph: spawn_agent named profile ${JSON.stringify(requested)} which is not a worker ` +\n `node of this graph (nodes: ${[...workers.keys()].join(', ')}). Spawn by node id: ` +\n 'profile.name selects the node; the node profile itself is pinned by the graph.',\n )\n }\n const edge = delegatesByWorker.get(node.id) as Extract<GraphEdge, { kind: 'delegates' }>\n const id = edgeId(edge)\n const cap = edge.maxTraversals ?? defaultEdgeTraversalCap\n const used = traversalCounts.get(id) ?? 0\n // The EFFECTIVE spawn mode the coordination layer resolved (per-call override, else this\n // edge's declared default, else fresh) — stamped on the row so the ledger states how each\n // hop continued, never how it was merely configured to.\n const spawnContinuity = spawnContext?.continuity ?? 'fresh'\n if (used >= cap) {\n exhausted.add(id)\n exhaustedDelegates.add(id)\n record(\n {\n edge: id,\n kind: 'delegates',\n from: edge.from,\n to: edge.to,\n directive: formatPromptHandle(edge.directive),\n outcome: 'unpropagated',\n continuity: spawnContinuity,\n bytes: 0,\n reason: `traversal-cap-exhausted (max ${cap})`,\n },\n true,\n )\n throw new ValidationError(\n `runGraph: delegates edge ${id} exhausted its traversal cap (${cap}) — the ` +\n 'cyclic-graph backstop refused this spawn',\n )\n }\n const directiveText = registry.resolve(edge.directive).text\n const taskText = stringifyPayload(spawnContext?.task)\n const bytes = byteLength(directiveText) + byteLength(taskText)\n const row = record(\n {\n edge: id,\n kind: 'delegates',\n from: edge.from,\n to: edge.to,\n directive: formatPromptHandle(edge.directive),\n outcome: bytes === 0 ? 'empty' : 'delivered',\n continuity: spawnContinuity,\n bytes,\n ...(bytes === 0 ? { reason: 'no directive text and no task payload' } : {}),\n },\n false,\n )\n if (spawnContext?.assignmentId !== undefined) {\n pendingByAssignment.set(spawnContext.assignmentId, row)\n } else {\n void appendJournal(row, `graph:${row.to}`)\n }\n // The delegation directive is a STANDING instruction of this traversal: appended to the\n // node's canonical prompt instructions, so the worker runs under node profile + edge\n // directive, and the driver-authored profile contributes ONLY the node selection.\n const pinned: AgentProfile =\n directiveText.length === 0\n ? node.profile\n : {\n ...node.profile,\n prompt: {\n ...(node.profile.prompt ?? {}),\n instructions: [\n ...((node.profile.prompt?.instructions as readonly string[] | undefined) ?? []),\n directiveText,\n ],\n },\n }\n return makeLeaf(pinned, spawnContext)\n }\n\n // ── Analyzes edges → analyst-on-settle routes with destinations ──\n // A LENS edge's directive wraps the findings for the recipient (so a driver-destined lens\n // route carries no directive — it becomes the driver brief below). A NODE edge's directive is\n // the analyst AGENT's task, so it always rides the route, wherever the findings go.\n const routes: Array<string | AnalyzeOnSettleRoute> = analyzes.map((edge) => {\n const analystNode = analystNodes.get(edge.analyst)\n if (analystNode) {\n return {\n kind: edge.analyst,\n over: edge.over,\n agent: analystNode.profile,\n directive: registry.resolve(edge.directive).text,\n ...(edge.to === root.id ? {} : { to: edge.to }),\n }\n }\n return edge.to === root.id\n ? { kind: edge.analyst, over: edge.over }\n : {\n kind: edge.analyst,\n over: edge.over,\n to: edge.to,\n directive: registry.resolve(edge.directive).text,\n }\n })\n // Driver-destined analyzes findings are standing knowledge for the ROOT: the findings arrive\n // as bus events. For a lens edge the directive tells the driver what to do with them; for a\n // node edge the directive already went to the analyst agent as its task.\n const driverAnalyzesBriefs = analyzes\n .filter((edge) => edge.to === root.id)\n .map((edge) =>\n analystNodes.has(edge.analyst)\n ? `Findings from analyst '${edge.analyst}' (a tool-equipped analyst agent node, over: ` +\n `${edge.over.join(', ')}) will arrive as finding events.`\n : `Findings from analyst '${edge.analyst}' (over: ${edge.over.join(', ')}) will arrive as ` +\n `finding events.\\n${registry.resolve(edge.directive).text}`,\n )\n\n // ── Edge continuity defaults, threaded to the spawn tool by node id (= profile name) ──\n const continuityByProfile: Record<string, ContinuityMode> = {}\n for (const [nodeId, edge] of delegatesByWorker) {\n if (edge.continuity !== undefined) continuityByProfile[nodeId] = edge.continuity\n }\n\n // ── The driver graph brief: which nodes it may spawn, by exact name ──\n const workerLines = [...workers.values()].map((node) => {\n const edge = delegatesByWorker.get(node.id) as Extract<GraphEdge, { kind: 'delegates' }>\n const cap = edge.maxTraversals ?? defaultEdgeTraversalCap\n const description =\n typeof node.profile.description === 'string' && node.profile.description.length > 0\n ? ` — ${node.profile.description}`\n : ''\n const continuityNote =\n edge.continuity === 'resume'\n ? \"; continuity: resume — each spawn after the first re-attaches to this node's latest \" +\n 'settled session (spawn again to continue it; steer while it is live)'\n : ''\n return `- '${node.id}'${description} (delegation cap: ${cap} traversals${continuityNote})`\n })\n const graphBrief = [\n 'AGENT GRAPH: you are the driver node of a fixed topology. You may spawn ONLY these worker',\n \"nodes, by EXACT name (spawn_agent with profile: { name: '<node id>' }; the node's full\",\n 'profile is pinned by the graph — any other profile fields you author are ignored):',\n ...workerLines,\n ...(driverAnalyzesBriefs.length > 0 ? ['', ...driverAnalyzesBriefs] : []),\n ].join('\\n')\n const rootProfile: AgentProfile = {\n ...root.profile,\n prompt: {\n ...(root.profile.prompt ?? {}),\n instructions: [\n ...((root.profile.prompt?.instructions as readonly string[] | undefined) ?? []),\n graphBrief,\n ],\n },\n }\n\n // ── Steer + finding observation (delegates steers, analyzes traversals) ──\n // The filter seam: when the caller's authorizeMessage NARROWS an instruction, the delivered\n // bytes differ from the composed bytes — that steer traversal is `stripped` (the VB incident:\n // authored steering silently replaced by boilerplate, byte-indistinguishable downstream).\n const strippedByDigest = new Map<string, { composedBytes: number }>()\n const authorizeMessage: SuperviseOptions['authorizeMessage'] | undefined = opts.authorizeMessage\n ? (input) => {\n const decision = (\n opts.authorizeMessage as NonNullable<SuperviseOptions['authorizeMessage']>\n )(input)\n if (decision.instruction !== input.instruction) {\n strippedByDigest.set(canonicalCandidateDigest(decision.instruction), {\n composedBytes: byteLength(input.instruction),\n })\n }\n return decision\n }\n : undefined\n\n const routedAnalyzesByAnalyst = new Map<string, Extract<GraphEdge, { kind: 'analyzes' }>>()\n const driverAnalyzesByAnalyst = new Map<string, Extract<GraphEdge, { kind: 'analyzes' }>>()\n for (const edge of analyzes) {\n ;(edge.to === root.id ? driverAnalyzesByAnalyst : routedAnalyzesByAnalyst).set(\n edge.analyst,\n edge,\n )\n }\n const analyzesCapReached = (edge: Extract<GraphEdge, { kind: 'analyzes' }>): boolean => {\n const cap = edge.maxTraversals ?? defaultEdgeTraversalCap\n const used = traversalCounts.get(edgeId(edge)) ?? 0\n if (used < cap) return false\n exhausted.add(edgeId(edge))\n return true\n }\n const ledgerAnalyzes = (\n edge: Extract<GraphEdge, { kind: 'analyzes' }>,\n outcome: EdgeDeliveryOutcome,\n bytes: number,\n reason: string | undefined,\n workerId: string | undefined,\n ): void => {\n const capped = analyzesCapReached(edge)\n record(\n {\n edge: edgeId(edge),\n kind: 'analyzes',\n from: edge.over.join('+'),\n to: edge.to,\n directive: formatPromptHandle(edge.directive),\n outcome: capped ? 'unpropagated' : outcome,\n // Every analyzes traversal is a mid-run delivery into an already-live recipient (a\n // routed steer leg, or the finding reaching the live driver) — never a spawn.\n continuity: 'steer',\n bytes,\n ...(capped\n ? {\n reason: `traversal-cap-exhausted (max ${edge.maxTraversals ?? defaultEdgeTraversalCap})`,\n }\n : reason !== undefined\n ? { reason }\n : {}),\n ...(workerId !== undefined ? { workerId } : {}),\n },\n true,\n )\n }\n\n const onCoordinationEvent = async (\n _context: unknown,\n _eventId: unknown,\n recordEnvelope: { readonly event: CoordinationEvent },\n ): Promise<void> => {\n const event = recordEnvelope.event\n if (event.type === 'finding') {\n // A routed edge's traversal is ledgered on its STEER (the delivery); the finding event is\n // its audit copy. A driver-destined edge's traversal IS the finding reaching the bus.\n const edge = driverAnalyzesByAnalyst.get(event.finding.analyst)\n if (!edge) return\n const sourceNode = nodeByWorkerId.get(event.finding.fromWorker)\n if (sourceNode === undefined || !edge.over.includes(sourceNode)) return\n // Absent findings (the analyst returned `undefined` — the producer omits the key so the\n // event stays digestable) contribute ZERO bytes, never the text \"undefined\".\n const findingsText =\n event.finding.findings === undefined ? '' : stringifyPayload(event.finding.findings)\n const directiveBytes = byteLength(registry.resolve(edge.directive).text)\n const empty = findingsText.length === 0\n ledgerAnalyzes(\n edge,\n empty ? 'empty' : 'delivered',\n directiveBytes + byteLength(findingsText),\n empty ? 'analyst returned no findings' : undefined,\n event.finding.fromWorker,\n )\n return\n }\n if (event.type === 'steer') {\n const down = event.down\n if (event.analyst !== undefined) {\n const edge = routedAnalyzesByAnalyst.get(event.analyst)\n if (!edge) return\n ledgerAnalyzes(\n edge,\n down.delivered ? 'delivered' : 'unpropagated',\n byteLength(down.instruction),\n down.delivered ? undefined : down.outcome,\n down.toWorker,\n )\n return\n }\n // A driver-authored steer to a live worker node is a delegates traversal too — the\n // mid-run leg of the same edge (the leg the motivating incident lost).\n const nodeId = nodeByWorkerId.get(down.toWorker)\n if (nodeId === undefined) return\n const edge = delegatesByWorker.get(nodeId)\n if (!edge) return\n const stripped = strippedByDigest.get(down.instructionDigest)\n record(\n {\n edge: edgeId(edge),\n kind: 'delegates',\n from: edge.from,\n to: edge.to,\n directive: formatPromptHandle(edge.directive),\n outcome: !down.delivered ? 'unpropagated' : stripped ? 'stripped' : 'delivered',\n // The mid-run leg of the edge: a delivery into the LIVE worker, never a spawn.\n continuity: 'steer',\n bytes: byteLength(down.instruction),\n ...(!down.delivered\n ? { reason: down.outcome }\n : stripped\n ? { reason: `authorization narrowed ${stripped.composedBytes} composed bytes` }\n : {}),\n workerId: down.toWorker,\n },\n true,\n )\n }\n }\n\n // ── Spawn-hook: bind ledger rows to concrete worker ids, then journal them ──\n const graphHooks = {\n onEvent: (event: {\n target?: string\n phase?: string\n payload?: unknown\n }): void | Promise<void> => {\n if (event.target !== 'agent.spawn' || event.phase !== 'after') return\n const payload = event.payload as { childId?: unknown; assignmentId?: unknown } | undefined\n if (typeof payload?.childId !== 'string' || typeof payload.assignmentId !== 'string') return\n const pending = pendingByAssignment.get(payload.assignmentId)\n if (!pending) return\n pendingByAssignment.delete(payload.assignmentId)\n const bound: EdgeTraversal = { ...pending, workerId: payload.childId }\n ledger[ledger.indexOf(pending)] = bound\n nodeByWorkerId.set(payload.childId, bound.to)\n return appendJournal(bound, payload.childId)\n },\n }\n const hooks = composeRuntimeHooks(graphHooks, opts.hooks)\n\n // Every configuration fault above throws SYNCHRONOUSLY (matching `supervise()`'s own\n // contract); only the run itself is asynchronous.\n const start = async (): Promise<GraphResult> => {\n const superviseOptions = {\n budget: graph.budget,\n deliverable: graph.deliverable,\n makeWorkerAgent: graphWorker,\n journal,\n blobs,\n runId,\n hooks,\n onCoordinationEvent,\n // Lens routes resolve against the registry; agent routes carry their own analyst profile,\n // so a graph whose only analysts are nodes needs no registry at all.\n ...(routes.length > 0\n ? { analyzeOnSettle: routes, ...(opts.analysts ? { analysts: opts.analysts } : {}) }\n : {}),\n ...(Object.keys(continuityByProfile).length > 0 ? { continuityByProfile } : {}),\n ...(opts.watchWorkers ? { watchWorkers: opts.watchWorkers } : {}),\n ...(opts.router ? { router: opts.router } : {}),\n // The root's harness driver. `backend` is NOT forwarded: it already became the worker seam\n // (`makeWorkerAgent` above), so the root driver is an explicit choice, never a side effect\n // of where workers run.\n ...(opts.driverBackend ? { driverBackend: opts.driverBackend } : {}),\n ...(opts.resolveSupervisorTools\n ? { resolveSupervisorTools: opts.resolveSupervisorTools }\n : {}),\n ...(authorizeMessage ? { authorizeMessage } : {}),\n ...(opts.perWorker ? { perWorker: opts.perWorker } : {}),\n ...(opts.maxTurns !== undefined ? { maxTurns: opts.maxTurns } : {}),\n ...(opts.maxLiveWorkers !== undefined ? { maxLiveWorkers: opts.maxLiveWorkers } : {}),\n ...(opts.signal ? { signal: opts.signal } : {}),\n ...(opts.now ? { now: opts.now } : {}),\n ...(opts.otel ? { otel: opts.otel } : {}),\n ...(opts.stallAfterMs !== undefined ? { stallAfterMs: opts.stallAfterMs } : {}),\n ...(opts.allowedModels ? { allowedModels: opts.allowedModels } : {}),\n } satisfies SuperviseOptions\n const result =\n brain === undefined\n ? await supervise(rootProfile, graphTask(graph, root), superviseOptions)\n : await superviseWithTestBrain(rootProfile, graphTask(graph, root), {\n ...superviseOptions,\n brain,\n })\n\n // A spawn row is PROVISIONAL until the `agent.spawn` hook (fired synchronously once a worker\n // exists) binds it to a live worker id. A row still unbound here means the factory ran but no\n // NEW worker went live: the spawn was refused after the factory (identity conflict, runtime\n // floor) or a keyed re-spawn deduplicated to an already-completed result (prepare() runs the\n // factory, no hook fires). Both state the same truth every unpropagated row states — the\n // directive never reached a live worker — so rewrite rather than mint a new outcome. Then\n // settle every journal write, so the ledger's journal twin is complete when this returns.\n for (const pending of pendingByAssignment.values()) {\n const refused: EdgeTraversal = {\n ...pending,\n outcome: 'unpropagated',\n bytes: 0,\n reason: `no-live-worker-bound (spawn refused after the factory, or a keyed re-spawn deduplicated to a completed result; ${pending.bytes} composed bytes never crossed)`,\n }\n ledger[ledger.indexOf(pending)] = refused\n await appendJournal(refused, `graph:${refused.to}`)\n }\n pendingByAssignment.clear()\n await Promise.all(journalWrites)\n\n const exhaustedEdges = Object.freeze([...exhausted])\n const frozenLedger = Object.freeze(ledger.map((row) => Object.freeze({ ...row })))\n // A LIFECYCLE ending (caller abort, exhausted budget) is its own complete explanation: the\n // cap did not end that run even when it was exhausted along the way, and blaming it would\n // misattribute the ending (and turn a caller-initiated abort into a throw). The exhaustion\n // stays observable in `exhaustedEdges` either way.\n const lifecycleEnded =\n result.kind === 'no-winner' &&\n (result.reason === 'aborted' || result.reason === 'budget-exhausted')\n if (result.kind !== 'winner' && !lifecycleEnded && exhaustedDelegates.size > 0) {\n // Fail LOUD: the backstop, not the task, ended this run. The evidence rides on the error.\n // Only DELEGATES caps refuse spawns, so only they can be the cause named here.\n throw new GraphEdgeCapError(Object.freeze([...exhaustedDelegates]), frozenLedger, result)\n }\n return { result, ledger: frozenLedger, exhaustedEdges, runId }\n }\n\n return start()\n}\n\n/** The root task: the graph's own framing. The deliverable (mandatory) is the termination; the\n * task names what the topology exists to produce. */\nfunction graphTask(graph: AgentGraph, root: GraphNode): string {\n const describe = graph.deliverable.describe\n return (\n describe ?? `Deliver the graph's deliverable by driving your worker nodes (root: '${root.id}').`\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+KA,MAAa,0BAA0B;;;AAIvC,IAAa,oBAAb,cAAuC,MAAM;CAC3C;CACA;CACA;CACA,YACE,gBACA,QACA,QACA;EACA,MACE,6CAA6C,eAAe,KAAK,IAAI,EAAE,2NAIzE;EACA,KAAK,OAAO;EACZ,KAAK,iBAAiB;EACtB,KAAK,SAAS;EACd,KAAK,SAAS;CAChB;AACF;AAwGA,SAAS,OAAO,MAAyB;CACvC,OAAO,KAAK,SAAS,cACjB,aAAa,KAAK,KAAK,IAAI,KAAK,OAChC,YAAY,KAAK,QAAQ,GAAG,KAAK,KAAK,KAAK,GAAG,EAAE,IAAI,KAAK;AAC/D;;;AAIA,SAAS,cACP,OACA,UACA,UACgB;CAChB,IAAI,CAAC,MAAM,QAAQ,MAAM,KAAK,KAAK,MAAM,MAAM,WAAW,GACxD,MAAM,IAAI,gBAAgB,iDAAiD;CAE7E,IAAI,CAAC,MAAM,QAAQ,MAAM,KAAK,KAAK,MAAM,MAAM,WAAW,GACxD,MAAM,IAAI,gBAAgB,iDAAiD;CAE7E,IAAI,OAAO,MAAM,aAAa,UAAU,YACtC,MAAM,IAAI,gBAAgB,+DAA+D;CAE3F,IAAI,OAAO,MAAM,WAAW,YAAY,MAAM,WAAW,MACvD,MAAM,IAAI,gBAAgB,0DAA0D;CAEtF,MAAM,uBAAO,IAAI,IAAuB;CACxC,KAAK,MAAM,QAAQ,MAAM,OAAO;EAC9B,IAAI,OAAO,KAAK,OAAO,YAAY,KAAK,GAAG,WAAW,GACpD,MAAM,IAAI,gBAAgB,kDAAkD;EAE9E,IAAI,KAAK,IAAI,KAAK,EAAE,GAAG,MAAM,I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M,SACJ,UAAU,KAAA,IACN,MAAM,UAAU,aAAa,UAAU,OAAO,IAAI,GAAG,gBAAgB,IACrE,MAAM,uBAAuB,aAAa,UAAU,OAAO,IAAI,GAAG;GAChE,GAAG;GACH;EACF,CAAC;EASP,KAAK,MAAM,WAAW,oBAAoB,OAAO,GAAG;GAClD,MAAM,UAAyB;IAC7B,GAAG;IACH,SAAS;IACT,OAAO;IACP,QAAQ,kHAAkH,QAAQ,MAAM;GAC1I;GACA,OAAO,OAAO,QAAQ,OAAO,KAAK;GAClC,MAAM,cAAc,SAAS,SAAS,QAAQ,IAAI;EACpD;EACA,oBAAoB,MAAM;EAC1B,MAAM,QAAQ,IAAI,aAAa;EAE/B,MAAM,iBAAiB,OAAO,OAAO,CAAC,GAAG,SAAS,CAAC;EACnD,MAAM,eAAe,OAAO,OAAO,OAAO,KAAK,QAAQ,OAAO,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;EAKjF,MAAM,iBACJ,OAAO,SAAS,gBACf,OAAO,WAAW,aAAa,OAAO,WAAW;EACpD,IAAI,OAAO,SAAS,YAAY,CAAC,kBAAkB,mBAAmB,OAAO,GAG3E,MAAM,IAAI,kBAAkB,OAAO,OAAO,CAAC,GAAG,kBAAkB,CAAC,GAAG,cAAc,MAAM;EAE1F,OAAO;GAAE;GAAQ,QAAQ;GAAc;GAAgB;EAAM;CAC/D;CAEA,OAAO,MAAM;AACf;;;AAIA,SAAS,UAAU,OAAmB,MAAyB;CAE7D,OADiB,MAAM,YAAY,YAErB,wEAAwE,KAAK,GAAG;AAEhG"}
|
|
@@ -7618,6 +7618,12 @@ interface RunGraphOptions {
|
|
|
7618
7618
|
readonly perWorker?: Budget;
|
|
7619
7619
|
readonly maxTurns?: number;
|
|
7620
7620
|
readonly maxLiveWorkers?: number;
|
|
7621
|
+
/** Resolve product-owned tools from the exact trusted manager context — forwarded to the root's
|
|
7622
|
+
* `supervise()` verbatim (see `SuperviseOptions.resolveSupervisorTools`). Without it a declared
|
|
7623
|
+
* graph mounts only the coordination MCP, so a root that is supposed to reach a product tool
|
|
7624
|
+
* (a claim ledger, a knowledge base) finds nothing and writes its output somewhere ungraded.
|
|
7625
|
+
* A graph run and a supervise run mount the same tools when this is set. */
|
|
7626
|
+
readonly resolveSupervisorTools?: SuperviseOptions['resolveSupervisorTools'];
|
|
7621
7627
|
/** Product authority over every steer/answer instruction (the filter seam). `runGraph` observes
|
|
7622
7628
|
* what it CHANGES: a narrowed instruction ledgers its steer traversal as `stripped`. */
|
|
7623
7629
|
readonly authorizeMessage?: SuperviseOptions['authorizeMessage'];
|
|
@@ -8622,4 +8628,4 @@ interface VerifierEnvironmentOptions {
|
|
|
8622
8628
|
declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
|
|
8623
8629
|
//#endregion
|
|
8624
8630
|
export { WorkerToolTraceArtifact as $, loopDispatch as $a, completionAuthorizes as $c, DELEGATION_TRACE_MAX_SPANS as $d, replaySpawnTree as $f, panel as $i, MakeWorkerAgent as $l, assessAuthoredProfile as $n, SupervisorSpanOptions as $o, StdioMcpServerSpec as $r, FlatWidenGate as $s, RunGraphTestOptions as $t, createSiblingSandboxExecutor as $u, EVIDENCE_MAX_CHARS as A, RunAgenticOptions as Aa, Persona as Ac, DelegateUiAuditArgs as Ad, EventBus as Af, startRetainedInteractiveRun as Ai, plateauLength as Al, serveCoordinationMcp as An, supervisorAgentWithTestBrain as Ao, EvolutionArchiveNode as Ar, HarvestCorpusOptions as As, workerCancellationsDir as At, DelegateResult as Au, withUntrackedArtifacts as B, breadthStrategy as Ba, LeaderboardBenchTask as Bc, DelegationProgress as Bd, FileResultBlobStore as Bf, equalKOnCost as Bi, AuthorizeDownMessage as Bl, chatWorkerSeam as Bn, ProgressTracker as Bo, runStrategyEvolution as Br, AssertTraceDerivedFindings as Bs, PatchDeliverableOptions as Bt, DelegateRunCtx as Bu, SurfaceWorkerOut as C, AgenticOptions as Ca, WidenLineage as Cc, DelegateCodeConfig as Cd, RetainedRunDispatchBindingError as Cf, recoverRetainedRun as Ci, defaultAuditorInstruction as Cl, freeSlots as Cn, SupervisorNodeContextSeed as Co, resolveEntrySymbol as Cr, LocalSandboxClientOptions as Cs, runCancellationFile as Ct, createMcpServer as Cu, AuthoredHarness as D, AgenticTool as Da, DefinePersonaInput as Dc, DelegateResearchArgs as Dd, BusEvent as Df, claimRetainedInteractiveControl as Di, anytimeReport as Dl, defaultDelegateBudget as Dn, assertCoordinationBinding as Do, visibleCheckScore as Dr, InProcessPromptCtx as Ds, supervisorWorkersDir as Dt, DelegateArgs as Du, superviseSurface as E, AgenticTask as Ea, DefinePersona as Ec, DelegateFeedbackResult as Ed, CoderOutput as Ef, ClaimRetainedInteractiveControlOptions as Ei, AnytimeTaskCurve as El, DelegateOptions as En, SupervisorToolInvocationContext as Eo, structuralRollout as Er, InProcessOnPrompt as Es, supervisorRunsRoot as Et, DELEGATE_TOOL_NAME as Eu, composeWorkerEvidence as F, StrategyMessage as Fa, ShapeBudget as Fc, DelegationFeedbackSnapshot as Fd, watchTrace as Ff, promotionGate as Fi, createWaterfallCollector as Fl, ChatSessionStore as Fn, PriorCoordination as Fo, EvolutionReport as Fr, ObserveInput as Fs, InMemoryRunContext as Ft, InMemoryFeedbackStore as Fu, WorkspaceRun as G, sample as Ga, LeaderboardScenario as Gc, FeedbackRating as Gd, SpawnForestEvent as Gf, definePersona as Gi, CoordinationStats as Gl, ReservationRejection as Gn, allOf as Go, authorStrategy as Gr, EqualKArm as Gs, AgentGraph as Gt, coderTaskFromArgs as Gu, Shell as H, depthStrategy as Ha, LeaderboardFlagSpec as Hc, DelegationStatus as Hd, InMemoryResultBlobStore as Hf, builtinShapes as Hi, ContinuationInstruction as Hl, BudgetPool as Hn, ProgressView as Ho, AuthorStrategyOptions as Hr, Corpus as Hs, WorktreeCliExecutorOptions as Ht, DetachedWinnerSelection as Hu, settledWorkerOut as I, StrategyResult as Ia, ShapeContext as Ic, DelegationHistoryArgs as Id, DeliverableSpec as If, profileChatClient as Ii, AnalystFindingEvent as Il, ChatTransportExecutorOptions as In, AllWorkersStalledOptions as Io, ReproductionCheck as Ir, ObserveOptions as Is, InMemoryRunContextOptions as It, eventToSnapshot as Iu, localShell as J, LoopDispatchOptions as Ja, defineLeaderboard as Jc, UiAuditLensFilter as Jd, SpawnForestNode as Jf, InMemoryCorpus as Ji, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as Jl, spendFromUsageEvents as Jn, createProgressTracker as Jo, LocalMcpMaterialization as Jr, EqualKVerdict as Js, GraphEdge as Jt, DelegationExecutor as Ju, gitWorkspace as K, sampleThenRefine as Ka, LeaderboardScore as Kc, FeedbackRefersTo as Kd, SpawnForestInDoubtNode as Kf, runPersonified as Ki, CoordinationTools as Kl, ReservationTicket as Kn, allWorkersStalled as Ko, strategyAuthorContract as Kr, EqualKOnCost as Ks, EdgeDeliveryOutcome as Kt, detachedSessionDelegate as Ku, CopyOptions as L, StrategyShotResult as La, ShapeRegistry as Lc, DelegationHistoryEntry as Ld, ExecutorResultMapping as Lf, profileOptimizerModelCall as Li, AnalystLensOutput as Ll, ChatTransportTool as Ln, NoProgressForOptions as Lo, StrategyEvolutionConfig as Lr, defaultAnalystInstruction as Ls, RunContext as Lt, CoderDelegate as Lu, VERIFY_TAIL_CHARS as M, Strategy as Ma, PersonaExecutors as Mc, DelegateUiAuditResult as Md, createEventBus as Mf, resolveSandboxClient as Mi, WaterfallCollector as Ml, driverAgent as Mn, CoordinationLog as Mo, EvolutionBandInfo as Mr, HarvestReport as Ms, workerInboxFile as Mt, validateDelegateArgs as Mu, WorkerEvidenceInput as N, StrategyArtifacts as Na, RunPersonified as Nc, DelegateUiAuditRoute as Nd, WatchTraceOptions as Nf, PromotionGateOptions as Ni, WaterfallReport as Nl, finalizeBestDelivered as Nn, CoordinationOwnerId as No, EvolutionCandidate as Nr, harvestCorpus as Ns, workerInboxFileFromEventDir as Nt, FeedbackEvent as Nu, WorktreeFanoutOptions as O, ArtifactHandle as Oa, LoopShape as Oc, DelegateResearchConfig as Od, BusRecord as Of, reconnectRetainedInteractiveRun as Oi, areaUnderCurve as Ol, delegate as On, resolveSupervisorProfile as Oo, ChampionPick as Or, InProcessSandboxClientOptions as Os, workerCancelRequestsFile as Ot, DelegateError as Ou, closingWorkerNote as P, StrategyCtx as Pa, RunPersonifiedOptions as Pc, DelegationError as Pd, defaultToolDetectors as Pf, PromotionVerdict as Pi, WaterfallSpan as Pl, ChatCompletionsTransport as Pn, FileCoordinationLog as Po, EvolutionGeneration as Pr, Observation as Ps, writeWorkerSteer as Pt, FeedbackStore as Pu, WORKER_TOOL_TRACE_SCHEMA_VERSION as Q, loopCampaignDispatch as Qa, CompletionVerdict as Qc, DELEGATION_TRACE_MAX_BYTES as Qd, pendingWaits as Qf, loopUntil as Qi, DownMessageEvent as Ql, asAuthoredProfile as Qn, SupervisorSpanAttributes as Qo, StdioMcpConnection as Qr, FanoutWinnerSelector as Qs, RunGraphOptions as Qt, createFleetWorkspaceExecutor as Qu, UntrackedCopyStats as R, SurfaceScore as Ra, DefinedLeaderboard as Rc, DelegationHistoryResult as Rd, gateOnDeliverable as Rf, assertModelAllowed as Ri, AnalystRegistry as Rl, ChatWorkerSeamOptions as Rn, PlateauOptions as Ro, discriminatingMeans as Rr, observe as Rs, createFileRunContext as Rt, CoderReview as Ru, SurfaceWorkerConfig as S, runBenchmark as Sa, WidenDecision as Sc, DelegateCodeArgs as Sd, RetainedRunAdmissionError as Sf, reconnectRetainedRun as Si, auditIntent as Sl, effectiveConcurrency as Sn, SupervisorNodeContext as So, worktreeCliProfileMaterialization as Sp, officialChecksFromMeta as Sr, runAgentRounds as Ss, runCancelRequestFile as St, createInProcessTransport as Su, failuresAnalyst as T, AgenticSurface as Ta, WinnerStrategy as Tc, DelegateFeedbackArgs as Td, ValidationError as Tf, startRetainedRunInEnvironment as Ti, AnytimeStrategySummary as Tl, rollingDispatch as Tn, SupervisorToolDescriptor as To, selectBestIndex as Tr, inlineSandboxClient as Ts, supervisorRunDir as Tt, DELEGATE_INPUT_SCHEMA as Tu, Workspace as U, refine as Ua, LeaderboardIterationInfo as Uc, DelegationStatusArgs as Ud, InMemorySpawnJournal as Uf, createShapeRegistry as Ui, ContinuityMode as Ul, BudgetPoolRestore as Un, StopDecision as Uo, AuthoredStrategy as Ur, CorpusFilter as Us, WorktreePatchArtifact as Ut, SettleDetachedCoderTurnOptions as Uu, GitWorkspaceOptions as V, defineStrategy as Va, LeaderboardBenchmarkAdapter as Vc, DelegationResultPayload as Vd, FileSpawnJournal as Vf, trajectoryReport as Vi, AuthorizedDownMessage as Vl, createChatSessionStore as Vn, ProgressTrackerOptions as Vo, selectChampion as Vr, CombinatorShape as Vs, patchDelivered as Vt, DetachedSessionDelegateOptions as Vu, WorkspaceCommit as W, runAgentic as Wa, LeaderboardRunContext as Wc, DelegationStatusResult as Wd, SpawnForest as Wf, registerShape as Wi, CoordinationEvent as Wl, BudgetReadout as Wn, StopRule as Wo, assertStrategyContract as Wr, CorpusRecord as Ws, createWorktreeCliExecutor as Wt, UiAuditorDelegate as Wu, TrajectoryAnalysis as X, SuperviseDispatchOptions as Xa, CompletionEvidence as Xc, delegationProfiles as Xd, loadSpawnForest as Xf, fanout as Xi, DownMessageDeliveryAttempt as Xl, ProfileRichness as Xn, plateau as Xo, McpSpawnFault as Xr, FanoutOptions as Xs, GraphNode as Xt, FleetWorkspaceExecutorOptions as Xu, runInWorkspace as Y, LoopOptionsForDispatch as Ya, CompletionAnalyst as Yc, UiAuditorDelegationOutput as Yd, SpawnForestTree as Yf, renderCorpusToInstructions as Yi, DownMessageAuthorizationInput as Yl, AuthoredProfile as Yn, noProgressFor as Yo, MaterializeLocalMcpOptions as Yr, Fanout as Ys, GraphEdgeCapError as Yt, FleetHandle as Yu, analyzeTrace as Z, SuperviseOptionsForDispatch as Za, CompletionPolicy as Zc, CappedDelegationTrace as Zd, materializeTreeView as Zf, flatWidenGate as Zi, DownMessageDeliveryOutcome as Zl, ProfileRichnessThresholds as Zn, sampleFromSettled as Zo, McpToolDescriptor as Zr, FanoutSynthesis as Zs, GraphResult as Zt, SiblingSandboxExecutorOptions as Zu, boxSurfaceReader as _, BenchmarkReport as _a, TrajectoryReportFn as _c, DelegationTaskQueue as _d, JudgeError as _f, CriuCapableClient as _i, renderLeaderboardSvg as _l, ConcurrencyCaps as _n, ResolveDriveHarness as _o, promptOnlyProfileMaterialization as _p, composeCheckSources as _r, RunAgentRoundsOptions as _s, readRunCancelRequest as _t, createCoordinationTools as _u, SandboxInstance$1 as a, RegistryAnalyzeProjection as aa, PanelSpec as ac, RunDetachedTurnOptions as ad, composeLoopTraceEmitters as af, OpenSandboxRunPromptOptions as ai, Interval as al, PromptRegistry as an, SuperviseOptions as ao, DefineProfileMaterializationContractOptions as ap, CheckRunContext as ar, FinalizerSettled as as, ScopeArgs as at, QuestionPolicy as au, SuperviseSurfaceOptions as b, Environment as ba, VerifySpec as bc, SubmitOutput as bd, RetainedInteractiveAdmissionError as bf, AcquireOptions as bi, AuditIntentOptions as bl, DispatchUnit as bn, SupervisorAgentDeps as bo, sandboxActProfileMaterialization as bp, filterAuthoredAsserts as br, defaultSelectWinner as bs, readWorkerCancellation as bt, McpServer as bu, VerifierEnvironmentOptions as c, createScopeAnalyst as ca, PipelineStage as cc, formatDetachedSessionRef as cd, DelegationStateCorruptError as cf, TurnResult as ci, LeaderboardRow as cl, createPromptRegistry as cn, SuperviseTestOptions as co, ProfileMaterializationIssue as cp, CheckSourceCtx as cr, collectDelivered as cs, RunCancelRequest as ct, SettledWorker as cu, HarvestSurfaceDiffsOptions as d, McpEnvironmentOptions as da, ScopeAnalyst as dc, DelegationArgs as dd, FileDelegationStoreOptions as df, CheckpointCapableBox as di, ProfileKeyOf as dl, dumbContinuationPassPrompt as dn, workerFromBackend as do, controlProfileMaterialization as dp, StructuralRolloutMessage as dr, DriverAttemptRecord as ds, WorkerCancellation as dt, SpawnRefusal as du, pipeline as ea, LoopUntil as ec, DetachedSessionRefParts as ed, DelegationTraceCaps as ef, connectStdioMcp as ei, deterministicCompletion as el, TraversalContinuity as en, superviseDispatch as eo, contentAddress as ep, defaultProfileRichnessThresholds as er, SupervisorSpanOutcome as es, captureWorkerTraceEvidence as et, Question as eu, SurfaceDiff as f, createMcpEnvironment as fa, ScopeAnalyzeInput as fc, DelegationRecord as fd, InMemoryDelegationStore as ff, ForkCapableBox as fi, ScoreOf as fl, formatPromptHandle as fn, CoordinationBinding as fo, defineProfileMaterializationContract as fp, StructuralRolloutPolicy as fr, DriverAttemptStop as fs, WorkerSteerRequest as ft, SpawnRefusalCause as fu, WatchedSurface as g, BenchmarkLift as ga, TrajectoryReport as gc, DelegationRunContext as gd, ConfigError as gf, createSandboxLineage as gi, renderLeaderboardMarkdown as gl, supervisorPolicyPrompt as gn, ObserveSupervisorNodeEvent as go, promptModelProfileMaterialization as gp, compareCheckOutcomes as gr, classifyDriverFailure as gs, legacySupervisorRunsRoot as gt, canonicalFindingEvent as gu, SurfaceReader as h, BenchmarkConfig as ha, TrajectoryNode as hc, DelegationResumeTick as hd, BackendTransportError as hf, SessionCapableBox as hi, renderLeaderboardHtml as hl, promptHandle as hn, DriveHarnessOwnerContext as ho, promptControlProfileMaterialization as hp, canDisplace as hr, DriverRetryPolicy as hs, legacySupervisorRunDir as ht, WorkerWatchOptions as hu, SandboxEvent$1 as i, CreateScopeAnalystOptions as ia, PanelJudge as ic, DriveTurnTick as id, capDelegationTrace as if, OpenSandboxRunOptions as ii, GroupOf as il, PromptHandle as in, DeliverableResolutionInput as io, CanonicalAgentProfileMaterializationAxis as ip, CheckOutcome as ir, FinalizeContext as is, createSupervisor as it, QuestionOption as iu, NOTE_MAX_CHARS as j, ShotSpec as ja, PersonaContext as jc, DelegateUiAuditConfig as jd, PublishOptions as jf, ResolveSandboxClientOptions as ji, renderAnytimeTable as jl, DriverAgentOptions as jn, CoordinationDeliveryEvidence as jo, EvolutionAuthor as jr, HarvestFailure as js, workerControlLogFile as jt, createDelegateHandler as ju, worktreeFanout as k, CorpusReadbackOptions as ka, Outcome as kc, DelegateResearchResult as kd, BusStats as kf, recoverRetainedInteractiveRun as ki, bestSoFar as kl, CoordinationMcpHandle as kn, supervisorAgent as ko, ChampionPolicy as kr, inProcessSandboxClient as ks, workerCancellationFile as kt, DelegateHandlerOptions as ku, createVerifierEnvironment as l, registryScopeAnalyst as la, RenderCorpusToInstructions as lc, parseDetachedSessionRef as ld, DelegationStore as lf, openSandboxRun as li, PairwiseOptions as ll, delegatesWorkerBriefPrompt as ln, supervise as lo, ValidateProfileMaterializationOptions as lp, RepairStop as lr, pickBestDelivered as ls, RunCancellation as lt, SpawnPreflight as lu, SurfaceReadOutcome as m, BenchmarkCell as ma, SteerContext as mc, DelegationResumeDriver as md, AgentEvalErrorCode as mf, SandboxLineageHandle as mi, pairwiseSignificance as ml, naiveContinuationPrompt as mn, DriveHarness as mo, profileMaterializationAxes$1 as mp, VisibleCheck as mr, DriverProgressMark as ms, cancelWorker as mt, WorkerSpawnContext as mu, AnalystFinding$1 as n, verify as na, LoopUntilState as nc, DetachedTurnResumeDriverOptions as nd, DelegationTraceSpan as nf, Deliverable as ni, stopSentinel as nl, runGraph as nn, AuthorizedSpawnContext as no, AgentProfileMaterializationAxis as np, supervisorInstructions as nr, createSupervisorSpanRecorder as ns, workerTraceAnalysisStore as nt, QuestionEscalationTarget as nu, computeFindingId$1 as o, assertTraceDerivedFindings as oa, PanelVerdict as oc, createDetachedTurnResumeDriver as od, createDelegationTraceCollector as of, SandboxRun as oi, Leaderboard as ol, RegisteredPrompt as on, SuperviseRegistry as oo, KnownAgentProfileMaterializationAxis as op, CheckRunner as or, SupervisorFinalizer as os, createScope as ot, QuestionRecord as ou, SurfaceReadBox as p, sanitizeMcpToolSchema as pa, ScopeWidenGate as pc, DelegationResumeContext as pd, AgentEvalError$1 as pf, SandboxLineage as pi, leaderboard as pl, kernelPromptRegistry as pn, CoordinationVerbs as po, fullProfileMaterialization as pp, StructuralRolloutResult as pr, DriverAttemptsExhaustedError as ps, cancelRun as pt, WorkerResumeContext as pu, jjWorkspace as q, LoopCampaignDispatchOptions as qa, LeaderboardSpec as qc, ResearchOutputShape as qd, SpawnForestMissingTree as qf, FileCorpus as qi, CoordinationToolsOptions as ql, createBudgetPool as qn, anyOf as qo, strategyAuthorSystemPrompt as qr, EqualKOnCostOptions as qs, EdgeTraversal as qt, settleDetachedCoderTurn as qu, CreateSandboxOptions$1 as r, widen as ra, Panel as rc, DriveTurnCapableBox as rd, buildDelegationTraceSpans as rf, OpenSandboxRunBeforeStartContext as ri, AxisScoresOf as rl, runGraphWithTestBrain as rn, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as ro, AssertProfileMaterializationOptions as rp, CheckExecChannel as rr, DeliveredOutput as rs, createRootHandle as rt, QuestionLevel as ru, makeFinding$1 as s, buildSteerContext as sa, Pipeline as sc, detachedTurnEvents as sd, DelegationPersistenceError as sf, SandboxRunAbortError as si, LeaderboardOptions as sl, analyzesFindingsReportPrompt as sn, SuperviseRegistryTable as so, ProfileMaterializationContract as sp, CheckSource as sr, bestDelivered as ss, settledToIteration as st, QuestionUrgency as su, AgentProfile$2 as t, selectValidWinner as ta, LoopUntilSpec as tc, DetachedTurn as td, DelegationTraceCollector as tf, materializeLocalMcp as ti, sentinelCompletion as tl, defaultEdgeTraversalCap as tn, AuthorizedSpawn as to, AGENT_PROFILE_MATERIALIZATION_AXES as tp, profileRichnessFinding as tr, SupervisorSpanRecorder as ts, parseWorkerToolTraceArtifact as tt, QuestionDecision as tu, BoxSurfaceReaderOptions as u, McpEndpoint as ua, RenderCorpusToInstructionsOptions as uc, runDetachedTurn as ud, FileDelegationStore as uf, BranchCapableBox as ui, PairwiseVerdict as ul, dumbContinuationFailPrompt as un, superviseWithTestBrain as uo, assertProfileMaterialization as up, StructuralRolloutConfig as ur, runFinalizer as us, WorkerCancelRequest as ut, SpawnPreflightContext as uu, fsSurfaceReader as v, BenchmarkStrategySummary as va, TrajectoryReportOptions as vc, DelegationTaskQueueOptions as vd, NotFoundError as vf, SandboxCapabilities as vi, renderPairwiseMarkdown as vl, DispatchReport as vn, ResolveSupervisorTools as vo, promptResourceProfileMaterialization as vp, defaultExtractCandidate as vr, TERMINAL_DECISIONS as vs, readRunCancellation as vt, normalizeAnalyzeOnSettle as vu, analystsFromRegistry as w, AgenticRunResult as wa, WidenSpec as wc, DelegateCodeResult as wd, RuntimeRunStateError as wf, startRetainedRun as wi, AnytimeReport as wl, queueOf as wn, SupervisorProfile as wo, sandboxCheckRunner as wr, localSandboxClient as ws, safeWorkerFile as wt, DELEGATE_DESCRIPTION as wu, SuperviseSurfaceResult as x, printBenchmarkReport as xa, Widen as xc, hashIdempotencyInput as xd, RetainedInteractiveBindingError as xf, acquireSandbox as xi, IntentAudit as xl, RollingDispatchOptions as xn, SupervisorAgentTestDeps as xo, validateProfileMaterialization as xp, modelAuthoredChecks as xr, isTerminalDecision as xs, readWorkerSteerRequests as xt, McpServerOptions as xu, harvestSurfaceDiffs as y, BenchmarkTaskRow as ya, Verify as yc, SubmitInput as yd, PlannerError as yf, probeSandboxCapabilities as yi, AuditIntentInput as yl, DispatchStopReason as yn, ResolvedSupervisorProfile as yo, renderProfileMaterializationIssues as yp, defaultStructuralRolloutPolicy as yr, TerminalDecision as ys, readWorkerCancelRequests as yt, questionEscalationTargets as yu, copyUntrackedIntoClone as z, adaptiveRefine as za, LeaderboardBenchScore as zc, DelegationProfile as zd, mapExecutorResult as zf, assertProfileModelsAllowed as zi, AnalyzeOnSettleRoute as zl, chatTransportExecutor as zn, ProgressSample as zo, pickChampion as zr, renderReport as zs, createInMemoryRunContext as zt, CoderReviewer as zu };
|
|
8625
|
-
//# sourceMappingURL=index-
|
|
8631
|
+
//# sourceMappingURL=index-Dto3D25e.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { If as DeliverableSpec, ao as SuperviseOptions, wo as SupervisorProfile } from "./index-
|
|
1
|
+
import { If as DeliverableSpec, ao as SuperviseOptions, wo as SupervisorProfile } from "./index-Dto3D25e.js";
|
|
2
2
|
import { X as SupervisedResult, i as Budget } from "./types-BBXdSns1.js";
|
|
3
3
|
import { o as ExecutorConfig } from "./runtime-BzY66cd6.js";
|
|
4
4
|
import { y as AgentCandidateOutputArtifactPort } from "./types-19ZOddS3.js";
|
|
@@ -135,4 +135,4 @@ declare function runKnowledgeImprovementJob(options: RunKnowledgeImprovementJobO
|
|
|
135
135
|
declare function buildKnowledgeImprovementExperimentBundles(bundle: AgentCandidateBundle, knowledge: KnowledgeImprovementCandidatePair): KnowledgeImprovementExperimentBundles;
|
|
136
136
|
//#endregion
|
|
137
137
|
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 };
|
|
138
|
-
//# sourceMappingURL=index-
|
|
138
|
+
//# sourceMappingURL=index-W5WVBUlZ.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as OpenAIChatToolChoice, A as RuntimeRunCompleteInput, B as AgentBackendInput, F as RuntimeRunRow, G as AgentTaskContext, H as AgentKnowledgeProvider, I as RuntimeRunStatus, J as AgentTaskStatus, K as AgentTaskRunResult, L as startRuntimeRun, M as RuntimeRunHandle, N as RuntimeRunOptions, P as RuntimeRunPersistenceAdapter, Q as OpenAIChatTool, R as AgentAdapter, U as AgentRuntimeEvent, V as AgentExecutionBackend, W as AgentRuntimeEventSink, X as KnowledgeReadinessDecision, Y as BackendErrorDetail, Z as OpenAIChatResponseFormat, at as RuntimeStreamEvent, et as RunAgentTaskOptions, it as RuntimeSessionStore, j as RuntimeRunCost, m as LoopResult, nt as RuntimeCanonicalStreamEvent, q as AgentTaskSpec, r as Driver, rt as RuntimeSession, tt as RunAgentTaskStreamOptions, z as AgentBackendContext } from "./types-DpdfZoQ3.js";
|
|
2
2
|
import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
|
|
3
3
|
import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
|
|
4
|
-
import { Cf as RetainedRunDispatchBindingError, Rl as AnalystRegistry, Sf as RetainedRunAdmissionError, Tf as ValidationError, Wl as CoordinationEvent, _f as JudgeError, bf as RetainedInteractiveAdmissionError, fr as StructuralRolloutPolicy, gf as ConfigError, hf as BackendTransportError, is as FinalizeContext, mf as AgentEvalErrorCode, os as SupervisorFinalizer, pf as AgentEvalError, vf as NotFoundError, wf as RuntimeRunStateError, xf as RetainedInteractiveBindingError, yf as PlannerError } from "./index-
|
|
4
|
+
import { Cf as RetainedRunDispatchBindingError, Rl as AnalystRegistry, Sf as RetainedRunAdmissionError, Tf as ValidationError, Wl as CoordinationEvent, _f as JudgeError, bf as RetainedInteractiveAdmissionError, fr as StructuralRolloutPolicy, gf as ConfigError, hf as BackendTransportError, is as FinalizeContext, mf as AgentEvalErrorCode, os as SupervisorFinalizer, pf as AgentEvalError, vf as NotFoundError, wf as RuntimeRunStateError, xf as RetainedInteractiveBindingError, yf as PlannerError } from "./index-Dto3D25e.js";
|
|
5
5
|
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-Bj6wJHlH.js";
|
|
6
6
|
import { $t as sanitizeRuntimeStreamEvent, A as ProviderModelExecutionEvidence, At as RuntimeEventOtelOptions, B as Settled, Bt as padTraceId, Ct as EvalRunsExportResult, Dt as OtelExportConfig, Et as OtelAttribute, Ft as createOtelExporter, Gt as RuntimeStreamEventSummary, Ht as RuntimeEventCollector, I as RootProviderModelEvidence, It as exportEvalRuns, J as SpendGap, Jt as SanitizedKnowledgeRequirement, K as Spend, Kt as RuntimeTelemetryOptions, Lt as generateSpanId, Mt as buildLoopSpanNodes, Nt as buildRuntimeEventOtelSpans, Ot as OtelExporter, Pt as createOpenInferenceFileExporter, Qt as sanitizeKnowledgeReadinessReport, Rt as loopEventToOtelSpan, St as EvalRunsExportConfig, Tt as LoopSpanNode, Ut as RuntimeStreamEventCollector, Vt as toOtelAttributes, Wt as RuntimeStreamEventSink, X as SupervisedResult, Xt as createRuntimeStreamEventCollector, Yt as createRuntimeEventCollector, Z as Supervisor, Zt as sanitizeAgentRuntimeEvent, _ as ExecutorRegistry, bt as EvalRunEvent, ct as WorkerTraceUnavailableReason, i as Budget, jt as buildLoopOtelSpans, k as ProviderModelAttemptEvidence, kt as OtelSpan, q as SpendChannel, qt as SanitizedKnowledgeReadinessReport, r as AgentSpec, s as Executor, st as WorkerTraceEvidence, wt as INTELLIGENCE_WIRE_VERSION, xt as EvalRunGeneration, z as Scope, zt as padSpanId } from "./types-BBXdSns1.js";
|
|
7
7
|
import { U as WorktreeCheckRunner } from "./runtime-BzY66cd6.js";
|
|
@@ -10,8 +10,8 @@ import { A as AgentCandidateExecutionPhase, B as AgentCandidatePreparationEviden
|
|
|
10
10
|
import { A as AgentCandidateWorkspacePort, B as ResolvedAgentCandidateContainer, C as AgentCandidateProtectedModelSettlement, D as AgentCandidateRunFinalization, E as AgentCandidateRepositoryPort, F as PreparedAgentCandidateExecution, H as VerifiedAgentCandidateTaskOutcome, I as PreparedAgentCandidateInstruction, L as PreparedAgentCandidateKnowledge, M as CANDIDATE_TRACE_TAGS, N as CanonicalCandidateDocument, O as AgentCandidateTaskExecution, P as PersistedTaskOutcomeEvidence, R as PreparedAgentCandidateLaunch, S as AgentCandidateProtectedModelReservation, T as AgentCandidateProtectedRunCapture, V as VerifiedAgentCandidate, _ 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_ENV, k as AgentCandidateVerificationPorts, 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 AgentCandidateProtectedModelSettlementCall, x as AgentCandidateProtectedModelActivation, y as AgentCandidateOutputArtifactPort, z as PreparedAgentCandidateTrace } from "./types-19ZOddS3.js";
|
|
11
11
|
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, et as createProfileExecutionBackend, 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-CLt9zpuD.js";
|
|
12
12
|
import { $ as agenticGenerator, A as ImprovementCandidate, B as ImprovementProfilePopulationLineage, C as ImproveProfileComponents, D as ImproveScenarioPartitions, E as ImproveRuntimeCodeGeneratorOptions, F as ImprovementProfileCandidatePopulationAvailable, G as ReadonlyAgentProfile, H as ImprovementProfilePopulationObservationSource, I as ImprovementProfileCandidatePopulationUnavailable, J as AgenticGeneratorShotDisposition, K as AgenticGeneratorExecutorForWorktree, L as ImprovementProfilePopulationArtifactSource, M as ImprovementMaterializedProfilePopulationCandidate, N as ImprovementProfileCandidate, O as ImproveSkillsOptions, P as ImprovementProfileCandidatePopulation, Q as VerifyResult, R as ImprovementProfilePopulationCandidate, S as ImproveProfileAgent, T as ImproveResult, U as ImprovementRefusedProfilePopulationCandidate, V as ImprovementProfilePopulationLineageNode, W as DeepReadonly, X as AgenticGeneratorShotReceipt, Y as AgenticGeneratorShotExecution, Z as Verifier, _ as ImproveMethodOptions, a as ImproveCandidateValidationInput, b as ImproveOptimizationRunOptions, c as ImproveCodeOptions, d as ImproveCost, et as commandVerifier, f as ImproveCustomCodeGeneratorOptions, g as ImproveMethodLineage, h as ImproveMethodFactory, i as improve, j as ImprovementCodeCandidate, k as ImproveSurface, l as ImproveCodeResult, m as ImproveMethodContext, nt as CandidateGenerator, o as ImproveCandidateValidator, p as ImproveLineage, q as AgenticGeneratorOptions, s as ImproveCodeBaseOptions, t as Redactor, tt as defaultBuildPrompt, u as ImproveCodeRunOptions, v as ImproveMethodResult, w as ImproveProfileSurface, x as ImproveOptions, y as ImproveMethodSource, z as ImprovementProfilePopulationCandidateSource } from "./redact-0AK8JmHW.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-
|
|
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-
|
|
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-W5WVBUlZ.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-BEzvqbgg.js";
|
|
15
15
|
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-wkxQ2aEw.js";
|
|
16
16
|
import { AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
|
|
17
17
|
import { ControlBudget, ControlDecision, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult, ControlStep, DataAcquisitionPlan, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
|
package/dist/index.js
CHANGED
|
@@ -9,10 +9,10 @@ import { At as buildLoopOtelSpans, Bt as padTraceId, Ft as exportEvalRuns, Gt as
|
|
|
9
9
|
import { i as notifyRuntimeHookEvent, n as defineRuntimeHooks, r as notifyRuntimeDecisionPoint, t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
10
10
|
import { D as optimizerMethod, O as strategyAuthorMethod } from "./structural-rollout-Cj58xALQ.js";
|
|
11
11
|
import { B as ROLLOUT_POLICY_EXTENSION, G as structuralRolloutPolicyFromProfile, H as normalizeRolloutPolicy, J as defaultBuildPrompt, K as agenticGenerator, L as improve, R as withMethodRuntimeControls, U as parseRolloutPolicy, V as applyRolloutPolicyToProfile, W as serializeRolloutPolicy, q as commandVerifier, z as rawTraceDistiller } from "./improvement-cycle-BEENaoCb.js";
|
|
12
|
-
import { Bt as McpSpawnFault, Vt as connectStdioMcp } from "./runtime-
|
|
12
|
+
import { Bt as McpSpawnFault, Vt as connectStdioMcp } from "./runtime-CTs2JsG9.js";
|
|
13
13
|
import { n as defaultRedactorIdentityMaterial, r as resolveRedactor, t as defaultRedactor } from "./redact-D-u-rrcn.js";
|
|
14
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-HDCUV1kZ.js";
|
|
15
|
-
import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-
|
|
15
|
+
import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-UNn0NLv2.js";
|
|
16
16
|
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-D1VQ5e9p.js";
|
|
17
17
|
import { agentProfileSchema, canonicalAgentProfileDigest } from "@tangle-network/agent-interface";
|
|
18
18
|
import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
|
package/dist/kernel.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as MountRecorder, D as SelectionReceipt, E as SandboxClient, O as ValidationCtx, S as MountManifestEntry, T as RunProvenance, _ as LoopTeardownFailedPayload, a as Iteration, b as LoopTraceEvent, c as LoopIterationDispatchPayload, d as LoopLineageOptions, f as LoopPlanDescription, g as LoopStartedPayload, h as LoopSandboxPlacement, i as ExecCtx, k as Validator, l as LoopIterationEndedPayload, m as LoopResult, n as DefaultVerdict, o as LoopDecisionPayload, p as LoopPlanPayload, r as Driver, s as LoopEndedPayload, t as AgentRunSpec, u as LoopIterationStartedPayload, v as LoopTokenUsage, w as OutputAdapter, x as LoopWinner, y as LoopTraceEmitter } from "./types-DpdfZoQ3.js";
|
|
2
|
-
import { $ as WorkerToolTraceArtifact, $a as loopDispatch, $c as completionAuthorizes, $f as replaySpawnTree, $i as panel, $l as MakeWorkerAgent, $n as assessAuthoredProfile, $o as SupervisorSpanOptions, $r as StdioMcpServerSpec, $s as FlatWidenGate, A as EVIDENCE_MAX_CHARS, Aa as RunAgenticOptions, Ac as Persona, Af as EventBus, Ai as startRetainedInteractiveRun, Al as plateauLength, An as serveCoordinationMcp, Ar as EvolutionArchiveNode, As as HarvestCorpusOptions, At as workerCancellationsDir, B as withUntrackedArtifacts, Ba as breadthStrategy, Bc as LeaderboardBenchTask, Bf as FileResultBlobStore, Bi as equalKOnCost, Bl as AuthorizeDownMessage, Bn as chatWorkerSeam, Bo as ProgressTracker, Br as runStrategyEvolution, Bs as AssertTraceDerivedFindings, Bt as PatchDeliverableOptions, C as SurfaceWorkerOut, Ca as AgenticOptions, Cc as WidenLineage, Ci as recoverRetainedRun, Cl as defaultAuditorInstruction, Cn as freeSlots, Co as SupervisorNodeContextSeed, Cr as resolveEntrySymbol, Cs as LocalSandboxClientOptions, Ct as runCancellationFile, D as AuthoredHarness, Da as AgenticTool, Dc as DefinePersonaInput, Df as BusEvent, Di as claimRetainedInteractiveControl, Dl as anytimeReport, Dn as defaultDelegateBudget, Do as assertCoordinationBinding, Dr as visibleCheckScore, Ds as InProcessPromptCtx, Dt as supervisorWorkersDir, E as superviseSurface, Ea as AgenticTask, Ec as DefinePersona, Ei as ClaimRetainedInteractiveControlOptions, El as AnytimeTaskCurve, En as DelegateOptions, Eo as SupervisorToolInvocationContext, Er as structuralRollout, Es as InProcessOnPrompt, Et as supervisorRunsRoot, F as composeWorkerEvidence, Fa as StrategyMessage, Fc as ShapeBudget, Ff as watchTrace, Fi as promotionGate, Fl as createWaterfallCollector, Fn as ChatSessionStore, Fo as PriorCoordination, Fr as EvolutionReport, Fs as ObserveInput, Ft as InMemoryRunContext, G as WorkspaceRun, Ga as sample, Gc as LeaderboardScenario, Gf as SpawnForestEvent, Gi as definePersona, Gl as CoordinationStats, Gn as ReservationRejection, Go as allOf, Gr as authorStrategy, Gs as EqualKArm, Gt as AgentGraph, H as Shell, Ha as depthStrategy, Hc as LeaderboardFlagSpec, Hf as InMemoryResultBlobStore, Hi as builtinShapes, Hl as ContinuationInstruction, Hn as BudgetPool, Ho as ProgressView, Hr as AuthorStrategyOptions, Hs as Corpus, Ht as WorktreeCliExecutorOptions, I as settledWorkerOut, Ia as StrategyResult, Ic as ShapeContext, If as DeliverableSpec, Ii as profileChatClient, Il as AnalystFindingEvent, In as ChatTransportExecutorOptions, Io as AllWorkersStalledOptions, Ir as ReproductionCheck, Is as ObserveOptions, It as InMemoryRunContextOptions, J as localShell, Ja as LoopDispatchOptions, Jc as defineLeaderboard, Jf as SpawnForestNode, Ji as InMemoryCorpus, Jl as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, Jn as spendFromUsageEvents, Jo as createProgressTracker, Jr as LocalMcpMaterialization, Js as EqualKVerdict, Jt as GraphEdge, K as gitWorkspace, Ka as sampleThenRefine, Kc as LeaderboardScore, Kf as SpawnForestInDoubtNode, Ki as runPersonified, Kn as ReservationTicket, Ko as allWorkersStalled, Kr as strategyAuthorContract, Ks as EqualKOnCost, Kt as EdgeDeliveryOutcome, L as CopyOptions, La as StrategyShotResult, Lc as ShapeRegistry, Lf as ExecutorResultMapping, Li as profileOptimizerModelCall, Ll as AnalystLensOutput, Ln as ChatTransportTool, Lo as NoProgressForOptions, Lr as StrategyEvolutionConfig, Ls as defaultAnalystInstruction, Lt as RunContext, M as VERIFY_TAIL_CHARS, Ma as Strategy, Mc as PersonaExecutors, Mf as createEventBus, Mi as resolveSandboxClient, Ml as WaterfallCollector, Mo as CoordinationLog, Mr as EvolutionBandInfo, Ms as HarvestReport, Mt as workerInboxFile, N as WorkerEvidenceInput, Na as StrategyArtifacts, Nc as RunPersonified, Nf as WatchTraceOptions, Ni as PromotionGateOptions, Nl as WaterfallReport, Nn as finalizeBestDelivered, No as CoordinationOwnerId, Nr as EvolutionCandidate, Ns as harvestCorpus, Nt as workerInboxFileFromEventDir, O as WorktreeFanoutOptions, Oa as ArtifactHandle, Oc as LoopShape, Of as BusRecord, Oi as reconnectRetainedInteractiveRun, Ol as areaUnderCurve, On as delegate, Oo as resolveSupervisorProfile, Or as ChampionPick, Os as InProcessSandboxClientOptions, Ot as workerCancelRequestsFile, P as closingWorkerNote, Pa as StrategyCtx, Pc as RunPersonifiedOptions, Pf as defaultToolDetectors, Pi as PromotionVerdict, Pl as WaterfallSpan, Pn as ChatCompletionsTransport, Po as FileCoordinationLog, Pr as EvolutionGeneration, Ps as Observation, Pt as writeWorkerSteer, Q as WORKER_TOOL_TRACE_SCHEMA_VERSION, Qa as loopCampaignDispatch, Qc as CompletionVerdict, Qf as pendingWaits, Qi as loopUntil, Ql as DownMessageEvent, Qn as asAuthoredProfile, Qo as SupervisorSpanAttributes, Qr as StdioMcpConnection, Qs as FanoutWinnerSelector, Qt as RunGraphOptions, R as UntrackedCopyStats, Ra as SurfaceScore, Rc as DefinedLeaderboard, Rf as gateOnDeliverable, Ri as assertModelAllowed, Rl as AnalystRegistry, Rn as ChatWorkerSeamOptions, Ro as PlateauOptions, Rr as discriminatingMeans, Rs as observe, Rt as createFileRunContext, S as SurfaceWorkerConfig, Sa as runBenchmark, Sc as WidenDecision, Si as reconnectRetainedRun, Sl as auditIntent, Sn as effectiveConcurrency, So as SupervisorNodeContext, Sr as officialChecksFromMeta, Ss as runAgentRounds, St as runCancelRequestFile, T as failuresAnalyst, Ta as AgenticSurface, Tc as WinnerStrategy, Ti as startRetainedRunInEnvironment, Tl as AnytimeStrategySummary, Tn as rollingDispatch, To as SupervisorToolDescriptor, Tr as selectBestIndex, Ts as inlineSandboxClient, Tt as supervisorRunDir, U as Workspace, Ua as refine, Uc as LeaderboardIterationInfo, Uf as InMemorySpawnJournal, Ui as createShapeRegistry, Ul as ContinuityMode, Un as BudgetPoolRestore, Uo as StopDecision, Ur as AuthoredStrategy, Us as CorpusFilter, Ut as WorktreePatchArtifact, V as GitWorkspaceOptions, Va as defineStrategy, Vc as LeaderboardBenchmarkAdapter, Vf as FileSpawnJournal, Vi as trajectoryReport, Vl as AuthorizedDownMessage, Vn as createChatSessionStore, Vo as ProgressTrackerOptions, Vr as selectChampion, Vs as CombinatorShape, Vt as patchDelivered, W as WorkspaceCommit, Wa as runAgentic, Wc as LeaderboardRunContext, Wf as SpawnForest, Wi as registerShape, Wl as CoordinationEvent, Wn as BudgetReadout, Wo as StopRule, Wr as assertStrategyContract, Ws as CorpusRecord, Wt as createWorktreeCliExecutor, X as TrajectoryAnalysis, Xa as SuperviseDispatchOptions, Xc as CompletionEvidence, Xf as loadSpawnForest, Xi as fanout, Xl as DownMessageDeliveryAttempt, Xn as ProfileRichness, Xo as plateau, Xr as McpSpawnFault, Xs as FanoutOptions, Xt as GraphNode, Y as runInWorkspace, Ya as LoopOptionsForDispatch, Yc as CompletionAnalyst, Yf as SpawnForestTree, Yi as renderCorpusToInstructions, Yl as DownMessageAuthorizationInput, Yn as AuthoredProfile, Yo as noProgressFor, Yr as MaterializeLocalMcpOptions, Ys as Fanout, Yt as GraphEdgeCapError, Z as analyzeTrace, Za as SuperviseOptionsForDispatch, Zc as CompletionPolicy, Zf as materializeTreeView, Zi as flatWidenGate, Zl as DownMessageDeliveryOutcome, Zn as ProfileRichnessThresholds, Zo as sampleFromSettled, Zr as McpToolDescriptor, Zs as FanoutSynthesis, Zt as GraphResult, _ as boxSurfaceReader, _a as BenchmarkReport, _c as TrajectoryReportFn, _i as CriuCapableClient, _l as renderLeaderboardSvg, _n as ConcurrencyCaps, _o as ResolveDriveHarness, _r as composeCheckSources, _s as RunAgentRoundsOptions, _t as readRunCancelRequest, a as SandboxInstance, aa as RegistryAnalyzeProjection, ac as PanelSpec, ai as OpenSandboxRunPromptOptions, al as Interval, an as PromptRegistry, ao as SuperviseOptions, ar as CheckRunContext, as as FinalizerSettled, at as ScopeArgs, b as SuperviseSurfaceOptions, ba as Environment, bc as VerifySpec, bi as AcquireOptions, bl as AuditIntentOptions, bn as DispatchUnit, bo as SupervisorAgentDeps, br as filterAuthoredAsserts, bs as defaultSelectWinner, bt as readWorkerCancellation, c as VerifierEnvironmentOptions, ca as createScopeAnalyst, cc as PipelineStage, ci as TurnResult, cl as LeaderboardRow, cn as createPromptRegistry, cr as CheckSourceCtx, cs as collectDelivered, ct as RunCancelRequest, d as HarvestSurfaceDiffsOptions, da as McpEnvironmentOptions, dc as ScopeAnalyst, di as CheckpointCapableBox, dl as ProfileKeyOf, dn as dumbContinuationPassPrompt, do as workerFromBackend, dr as StructuralRolloutMessage, ds as DriverAttemptRecord, dt as WorkerCancellation, du as SpawnRefusal, ea as pipeline, ec as LoopUntil, ei as connectStdioMcp, el as deterministicCompletion, en as TraversalContinuity, eo as superviseDispatch, ep as contentAddress, er as defaultProfileRichnessThresholds, es as SupervisorSpanOutcome, et as captureWorkerTraceEvidence, f as SurfaceDiff, fa as createMcpEnvironment, fc as ScopeAnalyzeInput, fi as ForkCapableBox, fl as ScoreOf, fn as formatPromptHandle, fo as CoordinationBinding, fr as StructuralRolloutPolicy, fs as DriverAttemptStop, ft as WorkerSteerRequest, fu as SpawnRefusalCause, g as WatchedSurface, ga as BenchmarkLift, gc as TrajectoryReport, gi as createSandboxLineage, gl as renderLeaderboardMarkdown, gn as supervisorPolicyPrompt, go as ObserveSupervisorNodeEvent, gr as compareCheckOutcomes, gs as classifyDriverFailure, gt as legacySupervisorRunsRoot, gu as canonicalFindingEvent, h as SurfaceReader, ha as BenchmarkConfig, hc as TrajectoryNode, hi as SessionCapableBox, hl as renderLeaderboardHtml, hn as promptHandle, ho as DriveHarnessOwnerContext, hr as canDisplace, hs as DriverRetryPolicy, ht as legacySupervisorRunDir, hu as WorkerWatchOptions, i as SandboxEvent, ia as CreateScopeAnalystOptions, ic as PanelJudge, ii as OpenSandboxRunOptions, il as GroupOf, in as PromptHandle, io as DeliverableResolutionInput, ir as CheckOutcome, is as FinalizeContext, it as createSupervisor, j as NOTE_MAX_CHARS, ja as ShotSpec, jc as PersonaContext, jf as PublishOptions, ji as ResolveSandboxClientOptions, jl as renderAnytimeTable, jo as CoordinationDeliveryEvidence, jr as EvolutionAuthor, js as HarvestFailure, jt as workerControlLogFile, k as worktreeFanout, ka as CorpusReadbackOptions, kc as Outcome, kf as BusStats, ki as recoverRetainedInteractiveRun, kl as bestSoFar, kn as CoordinationMcpHandle, ko as supervisorAgent, kr as ChampionPolicy, ks as inProcessSandboxClient, kt as workerCancellationFile, l as createVerifierEnvironment, la as registryScopeAnalyst, lc as RenderCorpusToInstructions, li as openSandboxRun, ll as PairwiseOptions, ln as delegatesWorkerBriefPrompt, lo as supervise, lr as RepairStop, ls as pickBestDelivered, lt as RunCancellation, lu as SpawnPreflight, m as SurfaceReadOutcome, ma as BenchmarkCell, mc as SteerContext, mi as SandboxLineageHandle, ml as pairwiseSignificance, mn as naiveContinuationPrompt, mo as DriveHarness, mr as VisibleCheck, ms as DriverProgressMark, mt as cancelWorker, mu as WorkerSpawnContext, n as AnalystFinding, na as verify, nc as LoopUntilState, ni as Deliverable, nl as stopSentinel, nn as runGraph, no as AuthorizedSpawnContext, nr as supervisorInstructions, ns as createSupervisorSpanRecorder, nt as workerTraceAnalysisStore, o as computeFindingId, oa as assertTraceDerivedFindings, oc as PanelVerdict, oi as SandboxRun, ol as Leaderboard, on as RegisteredPrompt, oo as SuperviseRegistry, or as CheckRunner, os as SupervisorFinalizer, ot as createScope, p as SurfaceReadBox, pa as sanitizeMcpToolSchema, pc as ScopeWidenGate, pi as SandboxLineage, pl as leaderboard, pn as kernelPromptRegistry, po as CoordinationVerbs, pr as StructuralRolloutResult, ps as DriverAttemptsExhaustedError, pt as cancelRun, pu as WorkerResumeContext, q as jjWorkspace, qa as LoopCampaignDispatchOptions, qc as LeaderboardSpec, qf as SpawnForestMissingTree, qi as FileCorpus, qn as createBudgetPool, qo as anyOf, qr as strategyAuthorSystemPrompt, qs as EqualKOnCostOptions, qt as EdgeTraversal, r as CreateSandboxOptions, ra as widen, rc as Panel, ri as OpenSandboxRunBeforeStartContext, rl as AxisScoresOf, ro as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, rr as CheckExecChannel, rs as DeliveredOutput, rt as createRootHandle, s as makeFinding, sa as buildSteerContext, sc as Pipeline, si as SandboxRunAbortError, sl as LeaderboardOptions, sn as analyzesFindingsReportPrompt, so as SuperviseRegistryTable, sr as CheckSource, ss as bestDelivered, st as settledToIteration, t as AgentProfile, ta as selectValidWinner, tc as LoopUntilSpec, ti as materializeLocalMcp, tl as sentinelCompletion, tn as defaultEdgeTraversalCap, to as AuthorizedSpawn, tr as profileRichnessFinding, ts as SupervisorSpanRecorder, tt as parseWorkerToolTraceArtifact, u as BoxSurfaceReaderOptions, ua as McpEndpoint, uc as RenderCorpusToInstructionsOptions, ui as BranchCapableBox, ul as PairwiseVerdict, un as dumbContinuationFailPrompt, ur as StructuralRolloutConfig, us as runFinalizer, ut as WorkerCancelRequest, uu as SpawnPreflightContext, v as fsSurfaceReader, va as BenchmarkStrategySummary, vc as TrajectoryReportOptions, vi as SandboxCapabilities, vl as renderPairwiseMarkdown, vn as DispatchReport, vo as ResolveSupervisorTools, vr as defaultExtractCandidate, vs as TERMINAL_DECISIONS, vt as readRunCancellation, vu as normalizeAnalyzeOnSettle, w as analystsFromRegistry, wa as AgenticRunResult, wc as WidenSpec, wi as startRetainedRun, wl as AnytimeReport, wn as queueOf, wo as SupervisorProfile, wr as sandboxCheckRunner, ws as localSandboxClient, wt as safeWorkerFile, x as SuperviseSurfaceResult, xa as printBenchmarkReport, xc as Widen, xi as acquireSandbox, xl as IntentAudit, xn as RollingDispatchOptions, xr as modelAuthoredChecks, xs as isTerminalDecision, xt as readWorkerSteerRequests, y as harvestSurfaceDiffs, ya as BenchmarkTaskRow, yc as Verify, yi as probeSandboxCapabilities, yl as AuditIntentInput, yn as DispatchStopReason, yo as ResolvedSupervisorProfile, yr as defaultStructuralRolloutPolicy, ys as TerminalDecision, yt as readWorkerCancelRequests, z as copyUntrackedIntoClone, za as adaptiveRefine, zc as LeaderboardBenchScore, zf as mapExecutorResult, zi as assertProfileModelsAllowed, zl as AnalyzeOnSettleRoute, zn as chatTransportExecutor, zo as ProgressSample, zr as pickChampion, zs as renderReport, zt as createInMemoryRunContext } from "./index-DiLGPhai.js";
|
|
2
|
+
import { $ as WorkerToolTraceArtifact, $a as loopDispatch, $c as completionAuthorizes, $f as replaySpawnTree, $i as panel, $l as MakeWorkerAgent, $n as assessAuthoredProfile, $o as SupervisorSpanOptions, $r as StdioMcpServerSpec, $s as FlatWidenGate, A as EVIDENCE_MAX_CHARS, Aa as RunAgenticOptions, Ac as Persona, Af as EventBus, Ai as startRetainedInteractiveRun, Al as plateauLength, An as serveCoordinationMcp, Ar as EvolutionArchiveNode, As as HarvestCorpusOptions, At as workerCancellationsDir, B as withUntrackedArtifacts, Ba as breadthStrategy, Bc as LeaderboardBenchTask, Bf as FileResultBlobStore, Bi as equalKOnCost, Bl as AuthorizeDownMessage, Bn as chatWorkerSeam, Bo as ProgressTracker, Br as runStrategyEvolution, Bs as AssertTraceDerivedFindings, Bt as PatchDeliverableOptions, C as SurfaceWorkerOut, Ca as AgenticOptions, Cc as WidenLineage, Ci as recoverRetainedRun, Cl as defaultAuditorInstruction, Cn as freeSlots, Co as SupervisorNodeContextSeed, Cr as resolveEntrySymbol, Cs as LocalSandboxClientOptions, Ct as runCancellationFile, D as AuthoredHarness, Da as AgenticTool, Dc as DefinePersonaInput, Df as BusEvent, Di as claimRetainedInteractiveControl, Dl as anytimeReport, Dn as defaultDelegateBudget, Do as assertCoordinationBinding, Dr as visibleCheckScore, Ds as InProcessPromptCtx, Dt as supervisorWorkersDir, E as superviseSurface, Ea as AgenticTask, Ec as DefinePersona, Ei as ClaimRetainedInteractiveControlOptions, El as AnytimeTaskCurve, En as DelegateOptions, Eo as SupervisorToolInvocationContext, Er as structuralRollout, Es as InProcessOnPrompt, Et as supervisorRunsRoot, F as composeWorkerEvidence, Fa as StrategyMessage, Fc as ShapeBudget, Ff as watchTrace, Fi as promotionGate, Fl as createWaterfallCollector, Fn as ChatSessionStore, Fo as PriorCoordination, Fr as EvolutionReport, Fs as ObserveInput, Ft as InMemoryRunContext, G as WorkspaceRun, Ga as sample, Gc as LeaderboardScenario, Gf as SpawnForestEvent, Gi as definePersona, Gl as CoordinationStats, Gn as ReservationRejection, Go as allOf, Gr as authorStrategy, Gs as EqualKArm, Gt as AgentGraph, H as Shell, Ha as depthStrategy, Hc as LeaderboardFlagSpec, Hf as InMemoryResultBlobStore, Hi as builtinShapes, Hl as ContinuationInstruction, Hn as BudgetPool, Ho as ProgressView, Hr as AuthorStrategyOptions, Hs as Corpus, Ht as WorktreeCliExecutorOptions, I as settledWorkerOut, Ia as StrategyResult, Ic as ShapeContext, If as DeliverableSpec, Ii as profileChatClient, Il as AnalystFindingEvent, In as ChatTransportExecutorOptions, Io as AllWorkersStalledOptions, Ir as ReproductionCheck, Is as ObserveOptions, It as InMemoryRunContextOptions, J as localShell, Ja as LoopDispatchOptions, Jc as defineLeaderboard, Jf as SpawnForestNode, Ji as InMemoryCorpus, Jl as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, Jn as spendFromUsageEvents, Jo as createProgressTracker, Jr as LocalMcpMaterialization, Js as EqualKVerdict, Jt as GraphEdge, K as gitWorkspace, Ka as sampleThenRefine, Kc as LeaderboardScore, Kf as SpawnForestInDoubtNode, Ki as runPersonified, Kn as ReservationTicket, Ko as allWorkersStalled, Kr as strategyAuthorContract, Ks as EqualKOnCost, Kt as EdgeDeliveryOutcome, L as CopyOptions, La as StrategyShotResult, Lc as ShapeRegistry, Lf as ExecutorResultMapping, Li as profileOptimizerModelCall, Ll as AnalystLensOutput, Ln as ChatTransportTool, Lo as NoProgressForOptions, Lr as StrategyEvolutionConfig, Ls as defaultAnalystInstruction, Lt as RunContext, M as VERIFY_TAIL_CHARS, Ma as Strategy, Mc as PersonaExecutors, Mf as createEventBus, Mi as resolveSandboxClient, Ml as WaterfallCollector, Mo as CoordinationLog, Mr as EvolutionBandInfo, Ms as HarvestReport, Mt as workerInboxFile, N as WorkerEvidenceInput, Na as StrategyArtifacts, Nc as RunPersonified, Nf as WatchTraceOptions, Ni as PromotionGateOptions, Nl as WaterfallReport, Nn as finalizeBestDelivered, No as CoordinationOwnerId, Nr as EvolutionCandidate, Ns as harvestCorpus, Nt as workerInboxFileFromEventDir, O as WorktreeFanoutOptions, Oa as ArtifactHandle, Oc as LoopShape, Of as BusRecord, Oi as reconnectRetainedInteractiveRun, Ol as areaUnderCurve, On as delegate, Oo as resolveSupervisorProfile, Or as ChampionPick, Os as InProcessSandboxClientOptions, Ot as workerCancelRequestsFile, P as closingWorkerNote, Pa as StrategyCtx, Pc as RunPersonifiedOptions, Pf as defaultToolDetectors, Pi as PromotionVerdict, Pl as WaterfallSpan, Pn as ChatCompletionsTransport, Po as FileCoordinationLog, Pr as EvolutionGeneration, Ps as Observation, Pt as writeWorkerSteer, Q as WORKER_TOOL_TRACE_SCHEMA_VERSION, Qa as loopCampaignDispatch, Qc as CompletionVerdict, Qf as pendingWaits, Qi as loopUntil, Ql as DownMessageEvent, Qn as asAuthoredProfile, Qo as SupervisorSpanAttributes, Qr as StdioMcpConnection, Qs as FanoutWinnerSelector, Qt as RunGraphOptions, R as UntrackedCopyStats, Ra as SurfaceScore, Rc as DefinedLeaderboard, Rf as gateOnDeliverable, Ri as assertModelAllowed, Rl as AnalystRegistry, Rn as ChatWorkerSeamOptions, Ro as PlateauOptions, Rr as discriminatingMeans, Rs as observe, Rt as createFileRunContext, S as SurfaceWorkerConfig, Sa as runBenchmark, Sc as WidenDecision, Si as reconnectRetainedRun, Sl as auditIntent, Sn as effectiveConcurrency, So as SupervisorNodeContext, Sr as officialChecksFromMeta, Ss as runAgentRounds, St as runCancelRequestFile, T as failuresAnalyst, Ta as AgenticSurface, Tc as WinnerStrategy, Ti as startRetainedRunInEnvironment, Tl as AnytimeStrategySummary, Tn as rollingDispatch, To as SupervisorToolDescriptor, Tr as selectBestIndex, Ts as inlineSandboxClient, Tt as supervisorRunDir, U as Workspace, Ua as refine, Uc as LeaderboardIterationInfo, Uf as InMemorySpawnJournal, Ui as createShapeRegistry, Ul as ContinuityMode, Un as BudgetPoolRestore, Uo as StopDecision, Ur as AuthoredStrategy, Us as CorpusFilter, Ut as WorktreePatchArtifact, V as GitWorkspaceOptions, Va as defineStrategy, Vc as LeaderboardBenchmarkAdapter, Vf as FileSpawnJournal, Vi as trajectoryReport, Vl as AuthorizedDownMessage, Vn as createChatSessionStore, Vo as ProgressTrackerOptions, Vr as selectChampion, Vs as CombinatorShape, Vt as patchDelivered, W as WorkspaceCommit, Wa as runAgentic, Wc as LeaderboardRunContext, Wf as SpawnForest, Wi as registerShape, Wl as CoordinationEvent, Wn as BudgetReadout, Wo as StopRule, Wr as assertStrategyContract, Ws as CorpusRecord, Wt as createWorktreeCliExecutor, X as TrajectoryAnalysis, Xa as SuperviseDispatchOptions, Xc as CompletionEvidence, Xf as loadSpawnForest, Xi as fanout, Xl as DownMessageDeliveryAttempt, Xn as ProfileRichness, Xo as plateau, Xr as McpSpawnFault, Xs as FanoutOptions, Xt as GraphNode, Y as runInWorkspace, Ya as LoopOptionsForDispatch, Yc as CompletionAnalyst, Yf as SpawnForestTree, Yi as renderCorpusToInstructions, Yl as DownMessageAuthorizationInput, Yn as AuthoredProfile, Yo as noProgressFor, Yr as MaterializeLocalMcpOptions, Ys as Fanout, Yt as GraphEdgeCapError, Z as analyzeTrace, Za as SuperviseOptionsForDispatch, Zc as CompletionPolicy, Zf as materializeTreeView, Zi as flatWidenGate, Zl as DownMessageDeliveryOutcome, Zn as ProfileRichnessThresholds, Zo as sampleFromSettled, Zr as McpToolDescriptor, Zs as FanoutSynthesis, Zt as GraphResult, _ as boxSurfaceReader, _a as BenchmarkReport, _c as TrajectoryReportFn, _i as CriuCapableClient, _l as renderLeaderboardSvg, _n as ConcurrencyCaps, _o as ResolveDriveHarness, _r as composeCheckSources, _s as RunAgentRoundsOptions, _t as readRunCancelRequest, a as SandboxInstance, aa as RegistryAnalyzeProjection, ac as PanelSpec, ai as OpenSandboxRunPromptOptions, al as Interval, an as PromptRegistry, ao as SuperviseOptions, ar as CheckRunContext, as as FinalizerSettled, at as ScopeArgs, b as SuperviseSurfaceOptions, ba as Environment, bc as VerifySpec, bi as AcquireOptions, bl as AuditIntentOptions, bn as DispatchUnit, bo as SupervisorAgentDeps, br as filterAuthoredAsserts, bs as defaultSelectWinner, bt as readWorkerCancellation, c as VerifierEnvironmentOptions, ca as createScopeAnalyst, cc as PipelineStage, ci as TurnResult, cl as LeaderboardRow, cn as createPromptRegistry, cr as CheckSourceCtx, cs as collectDelivered, ct as RunCancelRequest, d as HarvestSurfaceDiffsOptions, da as McpEnvironmentOptions, dc as ScopeAnalyst, di as CheckpointCapableBox, dl as ProfileKeyOf, dn as dumbContinuationPassPrompt, do as workerFromBackend, dr as StructuralRolloutMessage, ds as DriverAttemptRecord, dt as WorkerCancellation, du as SpawnRefusal, ea as pipeline, ec as LoopUntil, ei as connectStdioMcp, el as deterministicCompletion, en as TraversalContinuity, eo as superviseDispatch, ep as contentAddress, er as defaultProfileRichnessThresholds, es as SupervisorSpanOutcome, et as captureWorkerTraceEvidence, f as SurfaceDiff, fa as createMcpEnvironment, fc as ScopeAnalyzeInput, fi as ForkCapableBox, fl as ScoreOf, fn as formatPromptHandle, fo as CoordinationBinding, fr as StructuralRolloutPolicy, fs as DriverAttemptStop, ft as WorkerSteerRequest, fu as SpawnRefusalCause, g as WatchedSurface, ga as BenchmarkLift, gc as TrajectoryReport, gi as createSandboxLineage, gl as renderLeaderboardMarkdown, gn as supervisorPolicyPrompt, go as ObserveSupervisorNodeEvent, gr as compareCheckOutcomes, gs as classifyDriverFailure, gt as legacySupervisorRunsRoot, gu as canonicalFindingEvent, h as SurfaceReader, ha as BenchmarkConfig, hc as TrajectoryNode, hi as SessionCapableBox, hl as renderLeaderboardHtml, hn as promptHandle, ho as DriveHarnessOwnerContext, hr as canDisplace, hs as DriverRetryPolicy, ht as legacySupervisorRunDir, hu as WorkerWatchOptions, i as SandboxEvent, ia as CreateScopeAnalystOptions, ic as PanelJudge, ii as OpenSandboxRunOptions, il as GroupOf, in as PromptHandle, io as DeliverableResolutionInput, ir as CheckOutcome, is as FinalizeContext, it as createSupervisor, j as NOTE_MAX_CHARS, ja as ShotSpec, jc as PersonaContext, jf as PublishOptions, ji as ResolveSandboxClientOptions, jl as renderAnytimeTable, jo as CoordinationDeliveryEvidence, jr as EvolutionAuthor, js as HarvestFailure, jt as workerControlLogFile, k as worktreeFanout, ka as CorpusReadbackOptions, kc as Outcome, kf as BusStats, ki as recoverRetainedInteractiveRun, kl as bestSoFar, kn as CoordinationMcpHandle, ko as supervisorAgent, kr as ChampionPolicy, ks as inProcessSandboxClient, kt as workerCancellationFile, l as createVerifierEnvironment, la as registryScopeAnalyst, lc as RenderCorpusToInstructions, li as openSandboxRun, ll as PairwiseOptions, ln as delegatesWorkerBriefPrompt, lo as supervise, lr as RepairStop, ls as pickBestDelivered, lt as RunCancellation, lu as SpawnPreflight, m as SurfaceReadOutcome, ma as BenchmarkCell, mc as SteerContext, mi as SandboxLineageHandle, ml as pairwiseSignificance, mn as naiveContinuationPrompt, mo as DriveHarness, mr as VisibleCheck, ms as DriverProgressMark, mt as cancelWorker, mu as WorkerSpawnContext, n as AnalystFinding, na as verify, nc as LoopUntilState, ni as Deliverable, nl as stopSentinel, nn as runGraph, no as AuthorizedSpawnContext, nr as supervisorInstructions, ns as createSupervisorSpanRecorder, nt as workerTraceAnalysisStore, o as computeFindingId, oa as assertTraceDerivedFindings, oc as PanelVerdict, oi as SandboxRun, ol as Leaderboard, on as RegisteredPrompt, oo as SuperviseRegistry, or as CheckRunner, os as SupervisorFinalizer, ot as createScope, p as SurfaceReadBox, pa as sanitizeMcpToolSchema, pc as ScopeWidenGate, pi as SandboxLineage, pl as leaderboard, pn as kernelPromptRegistry, po as CoordinationVerbs, pr as StructuralRolloutResult, ps as DriverAttemptsExhaustedError, pt as cancelRun, pu as WorkerResumeContext, q as jjWorkspace, qa as LoopCampaignDispatchOptions, qc as LeaderboardSpec, qf as SpawnForestMissingTree, qi as FileCorpus, qn as createBudgetPool, qo as anyOf, qr as strategyAuthorSystemPrompt, qs as EqualKOnCostOptions, qt as EdgeTraversal, r as CreateSandboxOptions, ra as widen, rc as Panel, ri as OpenSandboxRunBeforeStartContext, rl as AxisScoresOf, ro as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, rr as CheckExecChannel, rs as DeliveredOutput, rt as createRootHandle, s as makeFinding, sa as buildSteerContext, sc as Pipeline, si as SandboxRunAbortError, sl as LeaderboardOptions, sn as analyzesFindingsReportPrompt, so as SuperviseRegistryTable, sr as CheckSource, ss as bestDelivered, st as settledToIteration, t as AgentProfile, ta as selectValidWinner, tc as LoopUntilSpec, ti as materializeLocalMcp, tl as sentinelCompletion, tn as defaultEdgeTraversalCap, to as AuthorizedSpawn, tr as profileRichnessFinding, ts as SupervisorSpanRecorder, tt as parseWorkerToolTraceArtifact, u as BoxSurfaceReaderOptions, ua as McpEndpoint, uc as RenderCorpusToInstructionsOptions, ui as BranchCapableBox, ul as PairwiseVerdict, un as dumbContinuationFailPrompt, ur as StructuralRolloutConfig, us as runFinalizer, ut as WorkerCancelRequest, uu as SpawnPreflightContext, v as fsSurfaceReader, va as BenchmarkStrategySummary, vc as TrajectoryReportOptions, vi as SandboxCapabilities, vl as renderPairwiseMarkdown, vn as DispatchReport, vo as ResolveSupervisorTools, vr as defaultExtractCandidate, vs as TERMINAL_DECISIONS, vt as readRunCancellation, vu as normalizeAnalyzeOnSettle, w as analystsFromRegistry, wa as AgenticRunResult, wc as WidenSpec, wi as startRetainedRun, wl as AnytimeReport, wn as queueOf, wo as SupervisorProfile, wr as sandboxCheckRunner, ws as localSandboxClient, wt as safeWorkerFile, x as SuperviseSurfaceResult, xa as printBenchmarkReport, xc as Widen, xi as acquireSandbox, xl as IntentAudit, xn as RollingDispatchOptions, xr as modelAuthoredChecks, xs as isTerminalDecision, xt as readWorkerSteerRequests, y as harvestSurfaceDiffs, ya as BenchmarkTaskRow, yc as Verify, yi as probeSandboxCapabilities, yl as AuditIntentInput, yn as DispatchStopReason, yo as ResolvedSupervisorProfile, yr as defaultStructuralRolloutPolicy, ys as TerminalDecision, yt as readWorkerCancelRequests, z as copyUntrackedIntoClone, za as adaptiveRefine, zc as LeaderboardBenchScore, zf as mapExecutorResult, zi as assertProfileModelsAllowed, zl as AnalyzeOnSettleRoute, zn as chatTransportExecutor, zo as ProgressSample, zr as pickChampion, zs as renderReport, zt as createInMemoryRunContext } from "./index-Dto3D25e.js";
|
|
3
3
|
import { $ as TreeView, $n as RetainedRunIntentAdmission, A as ProviderModelExecutionEvidence, An as RetainedInteractiveEnvironmentInput, B as Settled, Bn as RetainedInteractiveAdmission, C as NoWinnerError, Cn as ScopeProgressInput, D as NodeStatus, Dn as ReconnectRetainedInteractiveRunOptions, E as NodeSnapshot, En as readWorkerProgress, F as RootMaterialization, Fn as NativeContextContinuationInput, Ft as createOtelExporter, G as SpawnRejection, Gn as RetainedRunAdmissionHook, H as SpawnJournal, Hn as RetainedInteractiveIntentAdmission, I as RootProviderModelEvidence, In as ReconnectRetainedRunOptions, J as SpendGap, Jn as RetainedRunDispatchedAdmission, K as Spend, Kn as RetainedRunCancelOptions, L as RootSignal, Ln as RecoverRetainedRunIntentOptions, M as ResumedKeyState, Mn as RetainedInteractiveStartMaterial, N as ResumedWork, Nn as StartRetainedInteractiveRunOptions, O as ProfileMaterializationReceipt, On as RecoverRetainedInteractiveRunOptions, P as RootHandle, Pn as NativeContextContinuationExecution, Pt as createOpenInferenceFileExporter, Q as SupervisorOpts, Qn as RetainedRunHandle, R as Runtime, Rn as RecoverRetainedRunOptions, S as MaterializedModelIdentity, Sn as ExecutorProgress, T as NodeId, Tn as createActivityLog, U as SpawnOpts, Un as RetainedInteractiveStartedAdmission, V as SpawnEvent, Vn as RetainedInteractiveEnvironmentAdmission, W as SpawnPrior, Wn as RetainedRunAdmission, X as SupervisedResult, Xn as RetainedRunEnvironmentAdmission, Y as SteerableRootHandle, Yn as RetainedRunEffect, Z as Supervisor, Zn as RetainedRunEventOptions, _ as ExecutorRegistry, _n as decodeToolPart, an as WaitSpec, at as WorkerInteractiveSession, b as Handle, bn as ActivityNote, c as ExecutorAccounting, cn as pollFor, ct as WorkerTraceUnavailableReason, d as ExecutorContext, dn as waitUntil, dt as readWorkerTraceContext, en as PendingWait, er as RetainedRunReplayPoint, et as UnconfirmedTeardown, f as ExecutorExecutionBinding, fn as SessionMessageLike, ft as workerTraceEnv, g as ExecutorProgressEvent, gn as createPushTraceSource, h as ExecutorNodeContext, hn as TraceSource, i as Budget, in as WaitRejection, ir as StartRetainedRunOptions, it as WidenGate, j as ResultBlobStore, jn as RetainedInteractiveRunHandle, k as ProviderModelAttemptEvidence, kn as RetainedInteractiveAdmissionHook, l as ExecutorCancellation, ln as timerAt, lt as WorkerTraceResolver, m as ExecutorMaterialization, mn as ToolStepInput, mt as workerTraceSeamKey, n as AgentExecutionRef, nn as WaitProbe, nr as RetainedRunStartMaterial, nt as UsageEvent, o as ExecutionBindingReceipt, on as createWaitProbes, ot as WorkerInteractiveUnavailableReason, p as ExecutorFactory, pn as SessionTraceBox, pt as workerTraceHeaders, q as SpendChannel, qn as RetainedRunCancellation, r as AgentSpec, rn as WaitProbeRegistry, rr as StartRetainedRunInEnvironmentOptions, rt as WaitOpts, s as Executor, sn as isWaitOutcome, st as WorkerTraceEvidence, t as Agent, tn as WaitOutcome, tr as RetainedRunSnapshot, tt as UnknownMaterializationReason, u as ExecutorCancellationRequest, un as validateWaitSpec, ut as WorkerTraceSeamCarrier, v as ExecutorResult, vn as sandboxSessionTraceSource, w as NodeExecutionIdentity, wn as WorkerProgress, x as MaterializedExecutionIdentity, xn as DEFAULT_STALL_AFTER_MS, y as ExecutorToolCall, yn as ActivityLog, z as Scope, zn as RecoverRetainedRunResult } from "./types-BBXdSns1.js";
|
|
4
4
|
import { A as extractLlmCallEvent, At as PeerMailReadout, B as resolveMcpServerLaunch, C as createInbox, Ct as DEFAULT_PEER_MAIL_LIMITS, D as SandboxToolPartState, Dt as PeerMailKind, E as SandboxServedBackend, Et as PeerMailEvent, F as sumSandboxUsage, Ft as claimsAuthority, G as WorktreeHarnessResult, H as secretEnvOfMcpServer, I as KeyProvider, It as createPeerMailbox, K as WorktreeProfileMaterializationReceipt, L as ResolvedMcpServerLaunch, Lt as isPeerMailEnvelope, M as mapSandboxToolEvent, Mt as PeerMailSendInput, N as sandboxEventServedBackend, Nt as PeerMailbox, O as assertSandboxServedModel, Ot as PeerMailLimits, P as sandboxProgressEvents, Pt as PeerMailboxOptions, R as envKeyProvider, Rt as peerMailTools, S as PeerInboxMessage, St as AUTHORITY_MARKERS, T as SandboxOutputMarker, Tt as PeerMailEnvelope, U as WorktreeCheckRunner, V as resolveSecretEnv, W as WorktreeCommandResult, _ as SteerableSandboxSession, _t as ToolLoopChat, a as CliWorktreeSeam, b as Inbox, bt as ToolLoopMessageRecord, c as RouterSeam, d as cliWorktreeExecutor, f as createExecutor, g as SteerableSandboxArgs, gt as ToolLoopCallContext, h as SandboxSteeringOptions, ht as ToolSpec, i as CliWorktreeBridgeSeam, j as mapSandboxEvent, jt as PeerMailRefusal, k as createSandboxToolPartState, kt as PeerMailOutcome, l as RouterToolsSeam, m as DEFAULT_SANDBOX_STEERING_MAX_TURNS, mt as RouterTransportConfig, n as BridgeSeam, o as ExecutorConfig, p as createExecutorRegistry, r as CliSeam, s as ProviderSeam, t as BridgeModelCredential, u as SandboxSeam, v as createSteerableSandboxSession, vt as ToolLoopCompaction, w as SandboxLeafOut, wt as PEER_MAIL_WIRE_KEY, x as InboxMessage, xt as ToolLoopToolCall, y as AuthorityInboxMessage, yt as ToolLoopCompactionOptions, z as mcpSecretEnvMetadataKey, zt as peerMailVerbNames } from "./runtime-BzY66cd6.js";
|
|
5
5
|
import { A as providerAsSandboxClient, C as ProviderAsSandboxClientOptions, D as WorkspaceRequest, E as SandboxClientProviderOptions, F as createTangleSandboxExactProcessProvider, M as sandboxClientAsProvider, N as CreateTangleSandboxExactProcessProviderOptions, O as createAgentEnvironmentProviderRegistry, P as SandboxControlClient, S as PlacementInfo, T as ResourceRequest, _ as CheckpointRequest, a as AgentEnvironmentProviderRef, b as ExecResult, c as AgentEnvironmentStatus, d as AgentSession, f as AgentSessionRef, g as CheckpointRef, h as AgentTurnResult, i as AgentEnvironmentProvider, j as resolveAgentEnvironmentProvider, k as providerAsExecutor, l as AgentEnvironmentSummary, n as AgentEnvironmentCapabilities, o as AgentEnvironmentProviderRegistry, p as AgentSessionStatus, r as AgentEnvironmentEvent, s as AgentEnvironmentQuery, t as AgentEnvironment, u as AgentProfileRef, v as CreateAgentEnvironmentInput, w as ProviderExecutorOptions, x as ForkRequest, y as ExecRequest } from "./environment-provider-BobKk46F.js";
|
package/dist/kernel.js
CHANGED
|
@@ -5,9 +5,9 @@ import { n as assertModelAllowed, r as assertProfileModelsAllowed } from "./mode
|
|
|
5
5
|
import { $ as DEFAULT_STALL_AFTER_MS, A as createBudgetPool, B as createExecutorRegistry, C as effectiveConcurrency, E as rollingDispatch, G as workerTraceEnv, H as createWorktreeCliExecutor, J as DEFAULT_SANDBOX_STEERING_MAX_TURNS, K as workerTraceHeaders, Nt as createOpenInferenceFileExporter, Pt as createOtelExporter, Q as sandboxSessionTraceSource, R as cliWorktreeExecutor, S as waitUntil, T as queueOf, W as readWorkerTraceContext, X as createPushTraceSource, Y as createSteerableSandboxSession, Z as decodeToolPart, _ as createWaitProbes, _t as runAgentRounds, a as pickBestDelivered, at as PEER_MAIL_WIRE_KEY, b as timerAt, bt as acquireSandbox, ct as isPeerMailEnvelope, et as createActivityLog, g as settledToIteration, gt as isTerminalDecision, ht as defaultSelectWinner, i as collectDelivered, it as DEFAULT_PEER_MAIL_LIMITS, j as spendFromUsageEvents, lt as peerMailTools, n as createSupervisor, nt as createInbox, o as runFinalizer, ot as claimsAuthority, pt as TERMINAL_DECISIONS, q as workerTraceSeamKey, r as bestDelivered, rt as AUTHORITY_MARKERS, st as createPeerMailbox, t as createRootHandle, tt as readWorkerProgress, u as createScope, ut as peerMailVerbNames, v as isWaitOutcome, vt as createSandboxLineage, w as freeSlots, x as validateWaitSpec, y as pollFor, yt as probeSandboxCapabilities, z as createExecutor } from "./supervisor-ZlQy5Fwl.js";
|
|
6
6
|
import { a as sandboxClientAsProvider, i as resolveAgentEnvironmentProvider, n as providerAsExecutor, o as createTangleSandboxExactProcessProvider, r as providerAsSandboxClient, t as createAgentEnvironmentProviderRegistry } from "./environment-provider-Bn3652YU.js";
|
|
7
7
|
import { C as observe, E as profileOptimizerModelCall, S as defaultAnalystInstruction, T as profileChatClient, _ as depthStrategy, a as defaultStructuralRolloutPolicy, b as sample, c as officialChecksFromMeta, d as selectBestIndex, f as structuralRollout, g as defineStrategy, h as breadthStrategy, i as defaultExtractCandidate, l as resolveEntrySymbol, m as adaptiveRefine, n as compareCheckOutcomes, o as filterAuthoredAsserts, p as visibleCheckScore, r as composeCheckSources, s as modelAuthoredChecks, t as canDisplace, u as sandboxCheckRunner, v as refine, w as renderReport, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-Cj58xALQ.js";
|
|
8
|
-
import { $ as definePersona, A as discriminatingMeans, At as sentinelCompletion, B as printBenchmarkReport, Bt as McpSpawnFault, C as withUntrackedArtifacts, Ct as localSandboxClient, D as chatTransportExecutor, Dt as superviseDispatch, Et as loopDispatch, F as authorStrategy, Ft as renderLeaderboardMarkdown, G as startRetainedInteractiveRun, Gt as envKeyProvider, H as claimRetainedInteractiveControl, Ht as materializeLocalMcp, I as strategyAuthorContract, It as renderLeaderboardSvg, J as startRetainedRun, Jt as resolveSecretEnv, K as reconnectRetainedRun, Kt as mcpSecretEnvMetadataKey, L as strategyAuthorSystemPrompt, Lt as renderPairwiseMarkdown, M as runStrategyEvolution, Mt as leaderboard, N as selectChampion, Nt as pairwiseSignificance, O as chatWorkerSeam, Ot as completionAuthorizes, P as assertStrategyContract, Pt as renderLeaderboardHtml, Q as trajectoryReport, R as SandboxRunAbortError, Rt as auditIntent, S as copyUntrackedIntoClone, St as resolveSandboxClient, T as patchDelivered, Tt as loopCampaignDispatch, U as reconnectRetainedInteractiveRun, Ut as createMcpEnvironment, V as runBenchmark, Vt as connectStdioMcp, W as recoverRetainedInteractiveRun, Wt as sanitizeMcpToolSchema, X as promotionGate, Y as startRetainedRunInEnvironment, Yt as secretEnvOfMcpServer, Z as equalKOnCost, _ as NOTE_MAX_CHARS, _t as createScopeAnalyst, a as localShell, at as InMemoryCorpus, b as composeWorkerEvidence, bt as harvestCorpus, c as createVerifierEnvironment, ct as flatWidenGate, d as harvestSurfaceDiffs, dt as pipeline, et as runPersonified, f as analystsFromRegistry, ft as selectValidWinner, g as EVIDENCE_MAX_CHARS, gt as buildSteerContext, h as worktreeFanout, ht as assertTraceDerivedFindings, i as jjWorkspace, it as FileCorpus, j as pickChampion, jt as stopSentinel, k as createChatSessionStore, kt as deterministicCompletion, l as boxSurfaceReader, lt as loopUntil, m as superviseSurface, mt as widen, n as makeFinding, nt as createShapeRegistry, o as runInWorkspace, ot as renderCorpusToInstructions, p as failuresAnalyst, pt as verify, q as recoverRetainedRun, qt as resolveMcpServerLaunch, r as gitWorkspace, rt as registerShape, s as createWaterfallCollector, st as fanout, t as computeFindingId, tt as builtinShapes, u as fsSurfaceReader, ut as panel, v as VERIFY_TAIL_CHARS, vt as registryScopeAnalyst, w as analyzeTrace, wt as inlineSandboxClient, x as settledWorkerOut, xt as defineLeaderboard, y as closingWorkerNote, yt as inProcessSandboxClient, z as openSandboxRun, zt as defaultAuditorInstruction } from "./runtime-
|
|
8
|
+
import { $ as definePersona, A as discriminatingMeans, At as sentinelCompletion, B as printBenchmarkReport, Bt as McpSpawnFault, C as withUntrackedArtifacts, Ct as localSandboxClient, D as chatTransportExecutor, Dt as superviseDispatch, Et as loopDispatch, F as authorStrategy, Ft as renderLeaderboardMarkdown, G as startRetainedInteractiveRun, Gt as envKeyProvider, H as claimRetainedInteractiveControl, Ht as materializeLocalMcp, I as strategyAuthorContract, It as renderLeaderboardSvg, J as startRetainedRun, Jt as resolveSecretEnv, K as reconnectRetainedRun, Kt as mcpSecretEnvMetadataKey, L as strategyAuthorSystemPrompt, Lt as renderPairwiseMarkdown, M as runStrategyEvolution, Mt as leaderboard, N as selectChampion, Nt as pairwiseSignificance, O as chatWorkerSeam, Ot as completionAuthorizes, P as assertStrategyContract, Pt as renderLeaderboardHtml, Q as trajectoryReport, R as SandboxRunAbortError, Rt as auditIntent, S as copyUntrackedIntoClone, St as resolveSandboxClient, T as patchDelivered, Tt as loopCampaignDispatch, U as reconnectRetainedInteractiveRun, Ut as createMcpEnvironment, V as runBenchmark, Vt as connectStdioMcp, W as recoverRetainedInteractiveRun, Wt as sanitizeMcpToolSchema, X as promotionGate, Y as startRetainedRunInEnvironment, Yt as secretEnvOfMcpServer, Z as equalKOnCost, _ as NOTE_MAX_CHARS, _t as createScopeAnalyst, a as localShell, at as InMemoryCorpus, b as composeWorkerEvidence, bt as harvestCorpus, c as createVerifierEnvironment, ct as flatWidenGate, d as harvestSurfaceDiffs, dt as pipeline, et as runPersonified, f as analystsFromRegistry, ft as selectValidWinner, g as EVIDENCE_MAX_CHARS, gt as buildSteerContext, h as worktreeFanout, ht as assertTraceDerivedFindings, i as jjWorkspace, it as FileCorpus, j as pickChampion, jt as stopSentinel, k as createChatSessionStore, kt as deterministicCompletion, l as boxSurfaceReader, lt as loopUntil, m as superviseSurface, mt as widen, n as makeFinding, nt as createShapeRegistry, o as runInWorkspace, ot as renderCorpusToInstructions, p as failuresAnalyst, pt as verify, q as recoverRetainedRun, qt as resolveMcpServerLaunch, r as gitWorkspace, rt as registerShape, s as createWaterfallCollector, st as fanout, t as computeFindingId, tt as builtinShapes, u as fsSurfaceReader, ut as panel, v as VERIFY_TAIL_CHARS, vt as registryScopeAnalyst, w as analyzeTrace, wt as inlineSandboxClient, x as settledWorkerOut, xt as defineLeaderboard, y as closingWorkerNote, yt as inProcessSandboxClient, z as openSandboxRun, zt as defaultAuditorInstruction } from "./runtime-CTs2JsG9.js";
|
|
9
9
|
import { At as gateOnDeliverable, Ct as bestSoFar, Dt as createInMemoryRunContext, Et as createFileRunContext, Ft as normalizeAnalyzeOnSettle, Lt as createEventBus, Mt as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, Nt as canonicalFindingEvent, Ot as FileCoordinationLog, Rt as defaultToolDetectors, St as areaUnderCurve, Tt as renderAnytimeTable, X as defaultDelegateBudget, Z as delegate, _ as promptHandle, _t as createProgressTracker, a as assertCoordinationBinding, b as classifyDriverFailure, bt as sampleFromSettled, d as delegatesWorkerBriefPrompt, f as dumbContinuationFailPrompt, g as naiveContinuationPrompt, gt as anyOf, h as kernelPromptRegistry, ht as allWorkersStalled, i as workerFromBackend, jt as mapExecutorResult, kt as createSupervisorSpanRecorder, l as analyzesFindingsReportPrompt, m as formatPromptHandle, mt as allOf, n as supervise, o as resolveSupervisorProfile, p as dumbContinuationPassPrompt, pt as finalizeBestDelivered, s as supervisorAgent, t as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, u as createPromptRegistry, v as supervisorPolicyPrompt, vt as noProgressFor, wt as plateauLength, x as serveCoordinationMcp, xt as anytimeReport, y as DriverAttemptsExhaustedError, yt as plateau, zt as watchTrace } from "./supervise-CqwjiXlX.js";
|
|
10
10
|
import { _ as workerCancellationFile, a as readRunCancelRequest, b as workerInboxFile, c as readWorkerCancellation, d as runCancellationFile, f as safeWorkerFile, g as workerCancelRequestsFile, h as supervisorWorkersDir, i as legacySupervisorRunsRoot, l as readWorkerSteerRequests, m as supervisorRunsRoot, n as cancelWorker, o as readRunCancellation, p as supervisorRunDir, r as legacySupervisorRunDir, s as readWorkerCancelRequests, t as cancelRun, u as runCancelRequestFile, v as workerCancellationsDir, w as writeWorkerSteer, x as workerInboxFileFromEventDir, y as workerControlLogFile } from "./run-layout-C2jgwsCq.js";
|
|
11
11
|
import { a as supervisorInstructions, i as profileRichnessFinding, n as assessAuthoredProfile, r as defaultProfileRichnessThresholds, t as asAuthoredProfile } from "./authoring-rIDPzwYY.js";
|
|
12
|
-
import { n as defaultEdgeTraversalCap, r as runGraph, t as GraphEdgeCapError } from "./graph-
|
|
12
|
+
import { n as defaultEdgeTraversalCap, r as runGraph, t as GraphEdgeCapError } from "./graph-BGPO6z_u.js";
|
|
13
13
|
export { AUTHORITY_MARKERS, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, DEFAULT_AWAIT_EVENT_TIMEOUT_MS, DEFAULT_PEER_MAIL_LIMITS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_STALL_AFTER_MS, DriverAttemptsExhaustedError, EVIDENCE_MAX_CHARS, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, GraphEdgeCapError, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, McpSpawnFault, NOTE_MAX_CHARS, PEER_MAIL_WIRE_KEY, SandboxRunAbortError, TERMINAL_DECISIONS, VERIFY_TAIL_CHARS, WORKER_TOOL_TRACE_SCHEMA_VERSION, acquireSandbox, adaptiveRefine, allOf, allWorkersStalled, analystsFromRegistry, analyzeTrace, analyzesFindingsReportPrompt, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertCoordinationBinding, assertModelAllowed, assertProfileModelsAllowed, assertSandboxServedModel, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, bestDelivered, bestSoFar, boxSurfaceReader, breadthStrategy, buildSteerContext, builtinShapes, canDisplace, cancelRun, cancelWorker, canonicalFindingEvent, captureWorkerTraceEvidence, chatTransportExecutor, chatWorkerSeam, claimRetainedInteractiveControl, claimsAuthority, classifyDriverFailure, cliWorktreeExecutor, closingWorkerNote, collectAgentTurn, collectDelivered, compareCheckOutcomes, completionAuthorizes, composeCheckSources, composeWorkerEvidence, computeFindingId, connectStdioMcp, contentAddress, copyUntrackedIntoClone, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createChatSessionStore, createEventBus, createExecutor, createExecutorRegistry, createFileRunContext, createInMemoryRunContext, createInbox, createMcpEnvironment, createOpenInferenceFileExporter, createOtelExporter, createPeerMailbox, createProgressTracker, createPromptRegistry, createPushTraceSource, createRootHandle, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createShapeRegistry, createSteerableSandboxSession, createSupervisor, createSupervisorSpanRecorder, createTangleSandboxExactProcessProvider, createVerifierEnvironment, createWaitProbes, createWaterfallCollector, createWorktreeCliExecutor, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultEdgeTraversalCap, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defineLeaderboard, definePersona, defineStrategy, delegate, delegatesWorkerBriefPrompt, depthStrategy, deterministicCompletion, discriminatingMeans, dumbContinuationFailPrompt, dumbContinuationPassPrompt, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, filterAuthoredAsserts, finalizeBestDelivered, flatWidenGate, formatPromptHandle, freeSlots, fsSurfaceReader, gateOnDeliverable, gitWorkspace, harvestCorpus, harvestSurfaceDiffs, inProcessSandboxClient, inlineSandboxClient, isPeerMailEnvelope, isTerminalDecision, isWaitOutcome, jjWorkspace, kernelPromptRegistry, leaderboard, legacySupervisorRunDir, legacySupervisorRunsRoot, loadSpawnForest, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapExecutorResult, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, modelAuthoredChecks, naiveContinuationPrompt, noProgressFor, normalizeAnalyzeOnSettle, observe, officialChecksFromMeta, openSandboxRun, pairwiseSignificance, panel, parseWorkerToolTraceArtifact, patchDelivered, peerMailTools, peerMailVerbNames, pendingWaits, pickBestDelivered, pickChampion, pipeline, plateau, plateauLength, pollFor, printBenchmarkReport, probeSandboxCapabilities, profileChatClient, profileOptimizerModelCall, profileRichnessFinding, promotionGate, promptHandle, providerAsExecutor, providerAsSandboxClient, queueOf, readRunCancelRequest, readRunCancellation, readWorkerCancelRequests, readWorkerCancellation, readWorkerProgress, readWorkerSteerRequests, readWorkerTraceContext, reconnectRetainedInteractiveRun, reconnectRetainedRun, recoverRetainedInteractiveRun, recoverRetainedRun, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveMcpServerLaunch, resolveSandboxClient, resolveSecretEnv, resolveSupervisorProfile, rollingDispatch, runAgentRounds, runAgentic, runBenchmark, runCancelRequestFile, runCancellationFile, runFinalizer, runGraph, runInWorkspace, runPersonified, runStrategyEvolution, safeWorkerFile, sample, sampleFromSettled, sampleThenRefine, sandboxCheckRunner, sandboxClientAsProvider, sandboxEventServedBackend, sandboxProgressEvents, sandboxSessionTraceSource, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectBestIndex, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, settledWorkerOut, spendFromUsageEvents, startRetainedInteractiveRun, startRetainedRun, startRetainedRunInEnvironment, stopSentinel, strategyAuthorContract, strategyAuthorSystemPrompt, streamAgentTurn, structuralRollout, sumSandboxUsage, supervise, superviseDispatch, superviseSurface, supervisorAgent, supervisorInstructions, supervisorPolicyPrompt, supervisorRunDir, supervisorRunsRoot, supervisorWorkersDir, timerAt, trajectoryReport, validateWaitSpec, verify, visibleCheckScore, waitUntil, watchTrace, widen, withUntrackedArtifacts, workerCancelRequestsFile, workerCancellationFile, workerCancellationsDir, workerControlLogFile, workerFromBackend, workerInboxFile, workerInboxFileFromEventDir, workerTraceAnalysisStore, workerTraceEnv, workerTraceHeaders, workerTraceSeamKey, worktreeFanout, writeWorkerSteer };
|
package/dist/knowledge.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-W5WVBUlZ.js";
|
|
2
2
|
export { type AgentKnowledgeReadinessCheckOptions, type CreateKnowledgeImprovementActivationExecutorOptions, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, type RunKnowledgeImprovementJobOptions, type SupervisedKnowledgeUpdateInput, type SupervisedKnowledgeUpdateOptions, type SupervisedKnowledgeUpdateResult, type SupervisedKnowledgeUpdater, buildKnowledgeImprovementExperimentBundles, createAgentKnowledgeReadinessCheck, createKnowledgeImprovementActivationExecutor, createSupervisedKnowledgeUpdater, formatSupervisedKnowledgeTask, knowledgeReadinessDeliverable, runKnowledgeImprovementJob, runSupervisedKnowledgeUpdate };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as RunAnalystLoopOpts, f as RunAnalystLoopResult } from "./types-zWfqDjeL.js";
|
|
2
|
-
import { D as AuthoredHarness, O as WorktreeFanoutOptions, Tc as WinnerStrategy, Ut as WorktreePatchArtifact } from "./index-
|
|
2
|
+
import { D as AuthoredHarness, O as WorktreeFanoutOptions, Tc as WinnerStrategy, Ut as WorktreePatchArtifact } from "./index-Dto3D25e.js";
|
|
3
3
|
import { i as Budget } from "./types-BBXdSns1.js";
|
|
4
4
|
import { n as FactCandidate, t as CreateKbGateOptions } from "./kb-gate-C8z2juK8.js";
|
|
5
5
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
@@ -162,4 +162,4 @@ declare function parseLoopRunnerArgv(argv: string[]): {
|
|
|
162
162
|
};
|
|
163
163
|
//#endregion
|
|
164
164
|
export { researchLoopRunner as _, DELEGATED_LOOP_MODES as a, DelegatedLoopResult as c, ResearchLoopRunnerOptions as d, RunDelegatedLoopOptions as f, isDelegatedLoopMode as g, auditLoopRunner as h, runLoopRunnerCli as i, DelegatedLoopRunner as l, WorktreeLoopRunnerOptions as m, LoopRunnerCliResult as n, DelegatedLoopMode as o, VetoedFact as p, parseLoopRunnerArgv as r, DelegatedLoopRegistry as s, LoopRunnerCliArgs as t, ResearchLoopResult as u, runDelegatedLoop as v, worktreeLoopRunner as y };
|
|
165
|
-
//# sourceMappingURL=loop-runner-bin-
|
|
165
|
+
//# sourceMappingURL=loop-runner-bin-BEzvqbgg.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as ConfigError } from "./errors-CDZ8XsVj.js";
|
|
2
2
|
import { B as createExecutorRegistry } from "./supervisor-ZlQy5Fwl.js";
|
|
3
|
-
import { $ as definePersona, et as runPersonified, h as worktreeFanout } from "./runtime-
|
|
3
|
+
import { $ as definePersona, et as runPersonified, h as worktreeFanout } from "./runtime-CTs2JsG9.js";
|
|
4
4
|
import { t as runAnalystLoop } from "./analyst-loop-Bouu53-l.js";
|
|
5
5
|
import { t as createKbGate } from "./kb-gate-DpaSwXVx.js";
|
|
6
6
|
//#region src/loop-runner.ts
|
|
@@ -243,4 +243,4 @@ if (invokedScript && /loop-runner-bin\.(js|ts|mjs)$/.test(invokedScript)) main()
|
|
|
243
243
|
//#endregion
|
|
244
244
|
export { isDelegatedLoopMode as a, worktreeLoopRunner as c, auditLoopRunner as i, runLoopRunnerCli as n, researchLoopRunner as o, DELEGATED_LOOP_MODES as r, runDelegatedLoop as s, parseLoopRunnerArgv as t };
|
|
245
245
|
|
|
246
|
-
//# sourceMappingURL=loop-runner-bin-
|
|
246
|
+
//# sourceMappingURL=loop-runner-bin-UNn0NLv2.js.map
|