@tangle-network/agent-runtime 0.264.0 → 0.271.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{activation-Bx4kfVU3.d.ts → activation-BrJmwTLB.d.ts} +4 -4
  2. package/dist/{activation-DHFdvps3.js → activation-DGbFPGR3.js} +2 -2
  3. package/dist/{activation-DHFdvps3.js.map → activation-DGbFPGR3.js.map} +1 -1
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-Bz-H17bC.js → coordination-driver-iBGMKDvB.js} +90 -50
  7. package/dist/coordination-driver-iBGMKDvB.js.map +1 -0
  8. package/dist/{delegate-CwbWhX5W.js → delegate-DOqUvaIz.js} +3 -3
  9. package/dist/delegate-DOqUvaIz.js.map +1 -0
  10. package/dist/durable.d.ts +5 -4
  11. package/dist/durable.js +3 -3
  12. package/dist/durable.js.map +1 -1
  13. package/dist/{graph-5NrpTg0h.js → graph-DnMcepkN.js} +12 -7
  14. package/dist/graph-DnMcepkN.js.map +1 -0
  15. package/dist/{improvement-cycle-WRWcFyuO.js → improvement-cycle-1IyRJo5h.js} +9 -9
  16. package/dist/improvement-cycle-1IyRJo5h.js.map +1 -0
  17. package/dist/{index-9wXpbjbX.d.ts → index-CL1dduJd.d.ts} +123 -73
  18. package/dist/index.d.ts +7 -7
  19. package/dist/index.js +7 -7
  20. package/dist/intelligence.d.ts +9 -3
  21. package/dist/intelligence.js +11 -5
  22. package/dist/intelligence.js.map +1 -1
  23. package/dist/kernel.d.ts +4 -4
  24. package/dist/kernel.js +9 -9
  25. package/dist/{loop-runner-bin-DC1Lm0nM.js → loop-runner-bin-BPZ9tt1W.js} +3 -3
  26. package/dist/{loop-runner-bin-DC1Lm0nM.js.map → loop-runner-bin-BPZ9tt1W.js.map} +1 -1
  27. package/dist/{loop-runner-bin-DPewOZMn.d.ts → loop-runner-bin-O_vM1w8Y.d.ts} +3 -3
  28. package/dist/loop-runner-bin.d.ts +1 -1
  29. package/dist/loop-runner-bin.js +1 -1
  30. package/dist/mcp/bin.js +3 -3
  31. package/dist/mcp/index.d.ts +12 -6
  32. package/dist/mcp/index.js +7 -7
  33. package/dist/mcp/memory-bin.js +1 -1
  34. package/dist/{memory-server-Cn8LbAxO.js → memory-server-DXQ8IxGR.js} +2 -2
  35. package/dist/{memory-server-Cn8LbAxO.js.map → memory-server-DXQ8IxGR.js.map} +1 -1
  36. package/dist/{openai-tools-ByTMUJcD.d.ts → openai-tools-DWHxpwx2.d.ts} +2 -2
  37. package/dist/profiles.d.ts +2 -2
  38. package/dist/{provision-supervisor-BZ6_uBGR.js → provision-supervisor-Cy8pqE95.js} +4 -4
  39. package/dist/{provision-supervisor-BZ6_uBGR.js.map → provision-supervisor-Cy8pqE95.js.map} +1 -1
  40. package/dist/{runtime-CUZC75EX.js → runtime-DVjIH1eo.js} +1160 -18
  41. package/dist/runtime-DVjIH1eo.js.map +1 -0
  42. package/dist/{server-KpdpN627.js → server-CN9vzbSe.js} +4 -4
  43. package/dist/{server-KpdpN627.js.map → server-CN9vzbSe.js.map} +1 -1
  44. package/dist/{stream-agent-turn-D1zelVx6.d.ts → stream-agent-turn-DbEsKgb_.d.ts} +200 -3
  45. package/dist/{structural-rollout-D17I5CwF.js → structural-rollout-I92sIfNl.js} +2 -2
  46. package/dist/{structural-rollout-D17I5CwF.js.map → structural-rollout-I92sIfNl.js.map} +1 -1
  47. package/dist/{substrate-qQphD9f0.d.ts → substrate-CbC03Vzo.d.ts} +2 -2
  48. package/dist/{supervise-_DTVHXPC.js → supervise-DJ_1i9vj.js} +85 -30
  49. package/dist/supervise-DJ_1i9vj.js.map +1 -0
  50. package/dist/{supervisor-C26k7X5-.js → supervisor-Cvd5mf7x.js} +1276 -488
  51. package/dist/supervisor-Cvd5mf7x.js.map +1 -0
  52. package/dist/testing.d.ts +2 -2
  53. package/dist/testing.js +14 -14
  54. package/dist/testing.js.map +1 -1
  55. package/dist/{tool-server-x9NEhvHZ.js → tool-server-Dqer2M4_.js} +30 -12
  56. package/dist/tool-server-Dqer2M4_.js.map +1 -0
  57. package/dist/tui/index.d.ts +1 -1
  58. package/dist/tui/index.js +1 -1
  59. package/dist/{types-BV14WTyW.d.ts → types-Bo7z5aG5.d.ts} +311 -75
  60. package/package.json +3 -2
  61. package/dist/coordination-driver-Bz-H17bC.js.map +0 -1
  62. package/dist/delegate-CwbWhX5W.js.map +0 -1
  63. package/dist/graph-5NrpTg0h.js.map +0 -1
  64. package/dist/improvement-cycle-WRWcFyuO.js.map +0 -1
  65. package/dist/runtime-CUZC75EX.js.map +0 -1
  66. package/dist/supervise-_DTVHXPC.js.map +0 -1
  67. package/dist/supervisor-C26k7X5-.js.map +0 -1
  68. package/dist/tool-server-x9NEhvHZ.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Bi as LoopTokenUsage, C as ExecutorToolCall, Da as RuntimeStreamEvent, Dn as TraceSource, Ei as ExecCtx, In as ExecutorProgress, Ji as SandboxClient, X as Scope, Y as Runtime, Zi as Validator, _a as BackendErrorDetail, b as ExecutorRegistry, f as ExecutorCancellation, g as ExecutorFactory, ga as AgentTaskStatus, mt as UsageEvent, p as ExecutorCancellationRequest, rt as Spend, s as DefaultVerdict, y as ExecutorProgressEvent } from "./types-BV14WTyW.js";
1
+ import { An as TraceSource, C as ExecutorToolCall, Da as AgentTaskStatus, Li as ExecCtx, Oa as BackendErrorDetail, Ra as RuntimeStreamEvent, X as Scope, Y as Runtime, Zi as LoopTokenUsage, aa as SandboxClient, b as ExecutorRegistry, ca as Validator, f as ExecutorCancellation, g as ExecutorFactory, gt as UsageEvent, kr as UnavailablePausePolicy, p as ExecutorCancellationRequest, rt as Spend, s as DefaultVerdict, y as ExecutorProgressEvent, zn as ExecutorProgress } from "./types-Bo7z5aG5.js";
2
2
  import { t as AgentCandidateArtifactPort } from "./types-CuXu5zuS.js";
3
3
  import { AgentCandidateWorkspaceSnapshotEvidence, AgentProfile, AgentProfileMcpServer, AgentProfileValidationResult, HarnessType, ReasoningEffort, StreamEvent } from "@tangle-network/agent-interface";
4
4
  import { AgentRunOutcome } from "@tangle-network/sandbox/runtime";
@@ -47,11 +47,29 @@ declare function resolveRedactor(redact: Redactor | false | undefined): Redactor
47
47
  *
48
48
  * @experimental
49
49
  */
50
+ /**
51
+ * MCP tool annotations (protocol 2025-03-26 and later). Hints a client reads
52
+ * before calling, for example to run a read-only tool without confirmation.
53
+ * They describe the tool; they do not enforce anything. @experimental
54
+ */
55
+ interface McpToolAnnotations {
56
+ title?: string;
57
+ /** The tool does not modify its environment. */
58
+ readOnlyHint?: boolean;
59
+ /** The tool may perform destructive updates. Meaningful only when not read-only. */
60
+ destructiveHint?: boolean;
61
+ /** Repeating a call with the same arguments has no additional effect. */
62
+ idempotentHint?: boolean;
63
+ /** The tool may reach entities outside its own data, such as the web. */
64
+ openWorldHint?: boolean;
65
+ }
50
66
  /** A callable MCP tool exposed by either stdio server. @experimental */
51
67
  interface McpToolDescriptor {
52
68
  name: string;
53
69
  description: string;
54
70
  inputSchema: Record<string, unknown>;
71
+ /** Published in `tools/list` when present. */
72
+ annotations?: McpToolAnnotations;
55
73
  handler: (raw: unknown) => Promise<unknown>;
56
74
  }
57
75
  /** Stdio-shaped transport used by the shared JSON-RPC server implementation. @experimental */
@@ -993,6 +1011,22 @@ interface ProviderExecutorOptions {
993
1011
  profileForCreate?: (profile: AgentProfile) => AgentProfile;
994
1012
  /** Map the task while retaining the kernel's canonical prompt mapping by default. */
995
1013
  taskToTurn?: (task: unknown, specProfile: AgentProfile, defaultTurn: AgentTurnInput) => AgentTurnInput;
1014
+ /**
1015
+ * How a supervised leaf waits out an upstream that cannot serve now.
1016
+ *
1017
+ * When the model provider refuses a leaf's turn for capacity (a quota, a rate limit, an
1018
+ * overload, or the router's own refused credential; see `upstreamUnavailableSignal`), the leaf
1019
+ * keeps its environment, pauses, and continues in the same environment and session with a
1020
+ * short instruction to pick up where it stopped. The pause starts at `unavailablePauseMs`
1021
+ * (15 s) and doubles to `maxUnavailablePauseMs` (5 min), the same rule a driver follows. Only
1022
+ * the leaf's deadline, cancellation and budget end it. Each pause is journaled as a `paused`
1023
+ * spawn event, and each continuation as the node's next `execution-input`.
1024
+ *
1025
+ * Applies to a retained execution under a Scope, the path a supervised leaf takes on a provider
1026
+ * that declares `retainedControl`, and not with `workspaceRetention`. `false` ends the execution
1027
+ * on the refused turn.
1028
+ */
1029
+ unavailablePause?: UnavailablePausePolicy | false;
996
1030
  }
997
1031
  /** Adapt an environment provider into an `ExecutorFactory` for `createExecutor`.
998
1032
  *
@@ -1251,6 +1285,162 @@ interface SandboxLeafOut {
1251
1285
  outcome?: AgentRunOutcome;
1252
1286
  }
1253
1287
  //#endregion
1288
+ //#region src/runtime/shared-box.d.ts
1289
+ /**
1290
+ * The most workers one default box carries at once.
1291
+ *
1292
+ * It keeps a worker count that the 512-task pids limit of a Tangle box can hold with headroom
1293
+ * for the sidecar's own processes and the workers' tool shells: 118 idle tasks plus 8 workers at
1294
+ * about 34 tasks each is 390. Memory is not the binding limit: 8 workers used about 4 GB in a
1295
+ * 16 GB box. Raise it only for a box whose pids limit was raised with it.
1296
+ */
1297
+ declare const DEFAULT_SHARED_BOX_WORKERS = 8;
1298
+ /** The box shape the default placement creates: memory for 8 workers at about 0.5 GB each plus
1299
+ * the sidecar, and 4 cores, because the workers wait on the model most of the time. */
1300
+ declare const DEFAULT_SHARED_BOX_RESOURCES: Readonly<{
1301
+ cpuCores: 4;
1302
+ memoryMB: 8192;
1303
+ }>;
1304
+ /** The request header the router records as a usage row's `clientName`. */
1305
+ declare const ROUTER_CLIENT_HEADER = "x-tangle-client";
1306
+ /**
1307
+ * The router client name of the worker that runs supervised node `nodeId`.
1308
+ *
1309
+ * The node id is already in the spawn journal, so a keeper joins a router row to a node without
1310
+ * a new record: the row whose `clientName` is `agent-runtime-node/<nodeId>` is that node's spend.
1311
+ */
1312
+ declare function sharedWorkerClientName(nodeId: string): string;
1313
+ /** The Sandbox box surface a shared box uses. The Sandbox SDK's `SandboxInstance` satisfies it. */
1314
+ interface SharedBoxHandle {
1315
+ readonly id: string;
1316
+ exec(command: string, options?: {
1317
+ timeoutMs?: number;
1318
+ }): Promise<{
1319
+ exitCode?: number | null;
1320
+ stdout?: string;
1321
+ stderr?: string;
1322
+ }>;
1323
+ readonly fs: {
1324
+ read(path: string): Promise<string>;
1325
+ write(path: string, content: string): Promise<unknown>;
1326
+ };
1327
+ readonly process: {
1328
+ spawnExact(executable: string, args: readonly string[], options?: {
1329
+ cwd?: string;
1330
+ env?: Record<string, string>;
1331
+ timeoutMs?: number;
1332
+ }): Promise<SharedBoxProcess>;
1333
+ list(): Promise<ReadonlyArray<{
1334
+ pid: number;
1335
+ command?: string;
1336
+ cwd?: string;
1337
+ }>>;
1338
+ get(pid: number): Promise<SharedBoxProcess | null>;
1339
+ };
1340
+ delete(): Promise<unknown>;
1341
+ }
1342
+ /** One process in a shared box, as the Sandbox SDK's process manager returns it. */
1343
+ interface SharedBoxProcess {
1344
+ readonly pid: number;
1345
+ wait(): Promise<number>;
1346
+ kill(signal?: 'SIGTERM' | 'SIGKILL', options?: {
1347
+ tree?: boolean;
1348
+ }): Promise<void>;
1349
+ stdout(): AsyncIterable<string>;
1350
+ stderr(): AsyncIterable<string>;
1351
+ }
1352
+ /** Options for {@link sharedBoxPlacement}. */
1353
+ interface SharedBoxPlacementOptions {
1354
+ /** The Sandbox client that creates and deletes the shared boxes. */
1355
+ client: SandboxClient;
1356
+ /**
1357
+ * Create options for every shared box: resources, egress, secrets, lifetime and billing.
1358
+ * Runtime owns `backend`, so the box's sidecar never serves a worker turn.
1359
+ */
1360
+ box?: Omit<CreateSandboxOptions, 'backend'>;
1361
+ /** The most workers one box carries at once. Defaults to {@link DEFAULT_SHARED_BOX_WORKERS}. */
1362
+ workersPerBox?: number;
1363
+ /** Absolute directory in each box that holds one directory per worker. */
1364
+ workerRoot?: string;
1365
+ /** First wait before repeating a Sandbox call that failed transiently; doubles per attempt. */
1366
+ retryDelayMs?: number;
1367
+ /**
1368
+ * How a worker waits out a model provider that cannot serve now: a quota, a rate limit, an
1369
+ * overload, or the router's own refused credential (`unavailableSignalOfFailure`). The worker
1370
+ * pauses 15 s, doubling to 5 min, the rule a driver and a dedicated leaf follow, then continues
1371
+ * its own opencode session in its own directory. Only cancellation, the turn's `timeoutMs` and
1372
+ * the node's deadline and budget, which abort the turn, end the pauses. `false` ends the turn on
1373
+ * the refused run.
1374
+ */
1375
+ unavailablePause?: UnavailablePausePolicy | false;
1376
+ }
1377
+ /** Counts that show how the pool placed its workers. */
1378
+ interface SharedBoxStats {
1379
+ readonly boxesCreated: number;
1380
+ readonly boxesLive: number;
1381
+ readonly workersPlaced: number;
1382
+ readonly workersLive: number;
1383
+ /** The most workers any one box carried at the same time. */
1384
+ readonly peakWorkersPerBox: number;
1385
+ /** Every box this pool created, with the workers it served. */
1386
+ readonly boxes: ReadonlyArray<{
1387
+ readonly id: string;
1388
+ readonly workersServed: number;
1389
+ readonly deleted: boolean;
1390
+ /** Milliseconds from the create request to a box that runs processes. */
1391
+ readonly createMs: number;
1392
+ }>;
1393
+ }
1394
+ /** What {@link SharedBoxPlacement.close} did to each box. */
1395
+ interface SharedBoxCloseReceipt {
1396
+ readonly boxId: string;
1397
+ readonly deleted: boolean;
1398
+ readonly error?: string;
1399
+ }
1400
+ /** Who a shared worker is, for the router rows its model calls leave on the box's key. */
1401
+ interface SharedWorkerIdentity {
1402
+ /** The supervised node the worker runs. Absent for a worker outside a supervised tree. */
1403
+ readonly nodeId?: string;
1404
+ }
1405
+ /** A shared-box placement: the provider Runtime uses for a profile the placement accepts. */
1406
+ interface SharedBoxPlacement {
1407
+ /**
1408
+ * The environment provider that places one accepted worker in a shared box. A worker with a
1409
+ * `nodeId` sends `x-tangle-client: agent-runtime-node/<nodeId>` on its router calls; without
1410
+ * one, its calls carry no client name and stay charged to the box.
1411
+ */
1412
+ providerFor(worker?: SharedWorkerIdentity): AgentEnvironmentProvider;
1413
+ /** Public identity of this placement, recorded on every execution it serves. */
1414
+ readonly identity: {
1415
+ readonly id: string;
1416
+ readonly digest: string;
1417
+ };
1418
+ /** Why a shared box cannot carry this profile, or `undefined` when it can. */
1419
+ refusal(profile: AgentProfile): string | undefined;
1420
+ stats(): SharedBoxStats;
1421
+ /** Delete every box this placement created and still holds. Call it when the run settles. */
1422
+ close(): Promise<ReadonlyArray<SharedBoxCloseReceipt>>;
1423
+ }
1424
+ /**
1425
+ * Why a shared box cannot carry `profile`, or `undefined` when it can.
1426
+ *
1427
+ * A shared box carries a profile whose whole behavior reaches an opencode process through its own
1428
+ * working directory, its own configuration and the box's own model credential. Everything else
1429
+ * keeps a dedicated box: another harness, a model the box credential cannot reach, a replaced
1430
+ * system prompt, MCP servers, connections, hooks, subagents, extensions, tool grants, and any
1431
+ * resource the materializer does not lower into the worker's directory.
1432
+ */
1433
+ declare function sharedBoxRefusal(profile: AgentProfile): string | undefined;
1434
+ /**
1435
+ * Place accepted workers as processes in a pool of shared Sandbox boxes.
1436
+ *
1437
+ * The pool fills a box before it creates the next one and deletes a box when its last worker
1438
+ * releases it. Runtime reaches this placement through `createExecutor({ backend: 'provider',
1439
+ * shared })`: a profile that {@link SharedBoxPlacement.refusal} accepts runs here, and every other
1440
+ * profile keeps the dedicated provider.
1441
+ */
1442
+ declare function sharedBoxPlacement(options: SharedBoxPlacementOptions): SharedBoxPlacement;
1443
+ //#endregion
1254
1444
  //#region src/runtime/harness-usage.d.ts
1255
1445
  /**
1256
1446
  * One harness's own token-usage report for one turn, in the runtime's field names.
@@ -1862,6 +2052,13 @@ interface ProviderSeam extends ProviderExecutorOptions {
1862
2052
  * creation and session semantics.
1863
2053
  */
1864
2054
  steering?: SandboxSteeringOptions;
2055
+ /**
2056
+ * Place each worker whose profile a shared box can carry as its own process in a pool of shared
2057
+ * boxes, and keep a dedicated environment from `provider` for every other profile. Build it with
2058
+ * `sharedBoxPlacement`. A manager never uses it: its coordination credential is create-time
2059
+ * environment that every co-tenant of a shared box could read.
2060
+ */
2061
+ shared?: SharedBoxPlacement;
1865
2062
  }
1866
2063
  /**
1867
2064
  * Router seam WITH tool use — the tool-using router backend. Same direct
@@ -2072,5 +2269,5 @@ declare function streamAgentTurn(backend: AgentTurnBackend, input: AgentTurnInpu
2072
2269
  */
2073
2270
  declare function collectAgentTurn(stream: AsyncIterable<RuntimeStreamEvent>): Promise<CollectedAgentTurn>;
2074
2271
  //#endregion
2075
- export { decodeHarnessUsage as $, JsonRpcResponse as $n, ProviderPlacement as $t, createInbox as A, ToolLoopCompaction as An, CreateAgentEnvironmentInput$1 as At, secretEnvOfMcpServer as B, PeerMailLimits as Bn, ResourceRequest as Bt, SteerableSandboxArgs as C, localHarnessExecutable as Cn, AgentProfileRef$1 as Ct, Inbox as D, ToolSpec as Dn, AgentTurnResult$2 as Dt, AuthorityInboxMessage as E, RouterTransportConfig as En, AgentSessionStatus$1 as Et, ResolvedMcpServerLaunch as F, DEFAULT_PEER_MAIL_LIMITS as Fn, PlacementInfo as Ft, CodexRolloutStoreRef as G, PeerMailbox as Gn, providerAsSandboxClient as Gt, CodexRolloutIdentity as H, PeerMailReadout as Hn, WorkspaceRequest as Ht, envKeyProvider as I, PEER_MAIL_WIRE_KEY as In, ProviderAsSandboxClientOptions as It, addHarnessUsage as J, createPeerMailbox as Jn, CreateTangleSandboxExactProcessProviderOptions as Jt, CodexRolloutTurn as K, PeerMailboxOptions as Kn, resolveAgentEnvironmentProvider as Kt, mcpSecretEnvMetadataKey as L, PeerMailEnvelope as Ln, ProviderExecutorOptions as Lt, BridgeModelCredential as M, ToolLoopMessageRecord as Mn, ExecRequest as Mt, BridgeSeam as N, ToolLoopToolCall as Nn, ExecResult as Nt, InboxMessage as O, ToolLoopCallContext as On, CheckpointRef as Ot, KeyProvider as P, AUTHORITY_MARKERS as Pn, ForkRequest as Pt, HarnessUsage as Q, JsonRpcMessage as Qn, ProviderWorkspaceRetentionPort as Qt, resolveMcpServerLaunch as R, PeerMailEvent as Rn, ProviderLeafOut as Rt, SandboxSteeringOptions as S, harnessSupportsReasoningEffort as Sn, AgentEnvironmentSummary as St, createSteerableSandboxSession as T, runLocalHarness as Tn, AgentSessionRef as Tt, CodexRolloutSession as U, PeerMailRefusal as Un, createAgentEnvironmentProviderRegistry as Ut, CodexForkBoundary as V, PeerMailOutcome as Vn, SandboxClientProviderOptions as Vt, CodexRolloutStoreReader as W, PeerMailSendInput as Wn, providerAsExecutor as Wt, harnessUsageIsEmpty as X, peerMailTools as Xn, createTangleSandboxExactProcessProvider as Xt, createCodexRolloutStoreReader as Y, isPeerMailEnvelope as Yn, SandboxControlClient as Yt, readCodexRolloutSession as Z, peerMailVerbNames as Zn, ProviderWorkspaceRetentionContext as Zt, cliInPlaceExecutor as _, DEFAULT_LOCAL_HARNESS as _n, AgentEnvironmentProvider$1 as _t, StreamAgentTurnOptions as a, CreateWorktreeOptions as an, assertSandboxServedModel as at, createExecutorRegistry as b, LocalHarnessResult as bn, AgentEnvironmentQuery as bt, CliInPlaceSeam as c, GitRunner as cn, extractLlmCallEvent as ct, CliWorktreeSeam as d, captureWorktreeDiff as dn, sandboxEventServedBackend as dt, InPlaceHarnessResult as en, McpToolDescriptor as er, SandboxLeafOut as et, ExecutorConfig as f, createWorktree as fn, sandboxProgressEvents as ft, SandboxSeam as g, CodexTokenUsage as gn, AgentEnvironmentEvent$1 as gt, RouterToolsSeam as h, CodexExecutionPolicy as hn, AgentEnvironmentCapabilities$1 as ht, CollectedAgentTurn as i, WorktreeProfileMaterializationReceipt as in, resolveRedactor as ir, SandboxUsageLedger as it, BridgeHarnessStore as j, ToolLoopCompactionOptions as jn, DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS as jt, PeerInboxMessage as k, ToolLoopChat as kn, CheckpointRequest as kt, CliSeam as l, RemoveWorktreeOptions as ln, mapSandboxEvent as lt, RouterSeam as m, CodexExecutionEvidence as mn, AgentEnvironment$1 as mt, AgentTurnInput$1 as n, WorktreeCommandResult as nn, Redactor as nr, SandboxServedBackend as nt, collectAgentTurn as o, DiffOptions as on, createSandboxToolPartState as ot, ProviderSeam as p, removeWorktree as pn, sumSandboxUsage as pt, CodexStoreDelta as q, claimsAuthority as qn, sandboxClientAsProvider as qt, AgentTurnUsage as r, WorktreeHarnessResult as rn, defaultRedactor as rr, SandboxToolPartState as rt, streamAgentTurn as s, DiffResult as sn, createSandboxUsageLedger as st, AgentTurnBackend as t, WorktreeCheckRunner as tn, McpTransport as tr, SandboxOutputMarker as tt, CliWorktreeBridgeSeam as u, WorktreeHandle as un, mapSandboxToolEvent as ut, cliWorktreeExecutor as v, LOCAL_HARNESSES as vn, AgentEnvironmentProviderRef as vt, SteerableSandboxSession as w, parseCodexTokenUsage as wn, AgentSession as wt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as x, RunLocalHarnessOptions as xn, AgentEnvironmentStatus as xt, createExecutor as y, LocalHarness as yn, AgentEnvironmentProviderRegistry as yt, resolveSecretEnv as z, PeerMailKind as zn, ProviderPromptOptions as zt };
2076
- //# sourceMappingURL=stream-agent-turn-D1zelVx6.d.ts.map
2272
+ export { decodeHarnessUsage as $, PeerMailLimits as $n, ResourceRequest as $t, createInbox as A, DEFAULT_LOCAL_HARNESS as An, AgentEnvironmentProvider$1 as At, secretEnvOfMcpServer as B, ToolSpec as Bn, AgentTurnResult$2 as Bt, SteerableSandboxArgs as C, WorktreeHandle as Cn, mapSandboxToolEvent as Ct, Inbox as D, CodexExecutionEvidence as Dn, AgentEnvironment$1 as Dt, AuthorityInboxMessage as E, removeWorktree as En, sumSandboxUsage as Et, ResolvedMcpServerLaunch as F, harnessSupportsReasoningEffort as Fn, AgentEnvironmentSummary as Ft, CodexRolloutStoreRef as G, ToolLoopMessageRecord as Gn, ExecRequest as Gt, CodexRolloutIdentity as H, ToolLoopChat as Hn, CheckpointRequest as Ht, envKeyProvider as I, localHarnessExecutable as In, AgentProfileRef$1 as It, addHarnessUsage as J, DEFAULT_PEER_MAIL_LIMITS as Jn, PlacementInfo as Jt, CodexRolloutTurn as K, ToolLoopToolCall as Kn, ExecResult as Kt, mcpSecretEnvMetadataKey as L, parseCodexTokenUsage as Ln, AgentSession as Lt, BridgeModelCredential as M, LocalHarness as Mn, AgentEnvironmentProviderRegistry as Mt, BridgeSeam as N, LocalHarnessResult as Nn, AgentEnvironmentQuery as Nt, InboxMessage as O, CodexExecutionPolicy as On, AgentEnvironmentCapabilities$1 as Ot, KeyProvider as P, RunLocalHarnessOptions as Pn, AgentEnvironmentStatus as Pt, HarnessUsage as Q, PeerMailKind as Qn, ProviderPromptOptions as Qt, resolveMcpServerLaunch as R, runLocalHarness as Rn, AgentSessionRef as Rt, SandboxSteeringOptions as S, RemoveWorktreeOptions as Sn, mapSandboxEvent as St, createSteerableSandboxSession as T, createWorktree as Tn, sandboxProgressEvents as Tt, CodexRolloutSession as U, ToolLoopCompaction as Un, CreateAgentEnvironmentInput$1 as Ut, CodexForkBoundary as V, ToolLoopCallContext as Vn, CheckpointRef as Vt, CodexRolloutStoreReader as W, ToolLoopCompactionOptions as Wn, DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS as Wt, harnessUsageIsEmpty as X, PeerMailEnvelope as Xn, ProviderExecutorOptions as Xt, createCodexRolloutStoreReader as Y, PEER_MAIL_WIRE_KEY as Yn, ProviderAsSandboxClientOptions as Yt, readCodexRolloutSession as Z, PeerMailEvent as Zn, ProviderLeafOut as Zt, cliInPlaceExecutor as _, WorktreeProfileMaterializationReceipt as _n, defaultRedactor as _r, SandboxUsageLedger as _t, StreamAgentTurnOptions as a, resolveAgentEnvironmentProvider as an, PeerMailboxOptions as ar, SharedBoxPlacement as at, createExecutorRegistry as b, DiffResult as bn, createSandboxUsageLedger as bt, CliInPlaceSeam as c, SandboxControlClient as cn, isPeerMailEnvelope as cr, SharedBoxStats as ct, CliWorktreeSeam as d, ProviderWorkspaceRetentionPort as dn, JsonRpcMessage as dr, sharedBoxRefusal as dt, SandboxClientProviderOptions as en, PeerMailOutcome as er, DEFAULT_SHARED_BOX_RESOURCES as et, ExecutorConfig as f, ProviderPlacement as fn, JsonRpcResponse as fr, sharedWorkerClientName as ft, SandboxSeam as g, WorktreeHarnessResult as gn, Redactor as gr, SandboxToolPartState as gt, RouterToolsSeam as h, WorktreeCommandResult as hn, McpTransport as hr, SandboxServedBackend as ht, CollectedAgentTurn as i, providerAsSandboxClient as in, PeerMailbox as ir, SharedBoxHandle as it, BridgeHarnessStore as j, LOCAL_HARNESSES as jn, AgentEnvironmentProviderRef as jt, PeerInboxMessage as k, CodexTokenUsage as kn, AgentEnvironmentEvent$1 as kt, CliSeam as l, createTangleSandboxExactProcessProvider as ln, peerMailTools as lr, SharedWorkerIdentity as lt, RouterSeam as m, WorktreeCheckRunner as mn, McpToolDescriptor as mr, SandboxOutputMarker as mt, AgentTurnInput$1 as n, createAgentEnvironmentProviderRegistry as nn, PeerMailRefusal as nr, ROUTER_CLIENT_HEADER as nt, collectAgentTurn as o, sandboxClientAsProvider as on, claimsAuthority as or, SharedBoxPlacementOptions as ot, ProviderSeam as p, InPlaceHarnessResult as pn, McpToolAnnotations as pr, SandboxLeafOut as pt, CodexStoreDelta as q, AUTHORITY_MARKERS as qn, ForkRequest as qt, AgentTurnUsage as r, providerAsExecutor as rn, PeerMailSendInput as rr, SharedBoxCloseReceipt as rt, streamAgentTurn as s, CreateTangleSandboxExactProcessProviderOptions as sn, createPeerMailbox as sr, SharedBoxProcess as st, AgentTurnBackend as t, WorkspaceRequest as tn, PeerMailReadout as tr, DEFAULT_SHARED_BOX_WORKERS as tt, CliWorktreeBridgeSeam as u, ProviderWorkspaceRetentionContext as un, peerMailVerbNames as ur, sharedBoxPlacement as ut, cliWorktreeExecutor as v, CreateWorktreeOptions as vn, resolveRedactor as vr, assertSandboxServedModel as vt, SteerableSandboxSession as w, captureWorktreeDiff as wn, sandboxEventServedBackend as wt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as x, GitRunner as xn, extractLlmCallEvent as xt, createExecutor as y, DiffOptions as yn, createSandboxToolPartState as yt, resolveSecretEnv as z, RouterTransportConfig as zn, AgentSessionStatus$1 as zt };
2273
+ //# sourceMappingURL=stream-agent-turn-DbEsKgb_.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Ai as projectSandboxOutcome, Ei as executableAgentProfileSnapshot, Fi as createSandboxUsageLedger, Li as isSandboxTerminalEvent, Ni as canonicalStreamEventFromSandboxEvent, Pi as createSandboxToolPartState, Ri as mapSandboxEvent, Si as runtimeOwnedPendingExecutorMaterialization, Ti as unknownMaterializationReceipt, Tt as InMemorySpawnJournal, _a as providerMessageText, bi as runtimeOwnedExecutorMaterialization, fa as armDeadlineTimer, ft as captureReusableExecutorConfig, ga as promptOptionsFromAgentTurnInput, gt as createExecutorRegistry, ha as promptFromAgentTurnInput, ht as createExecutor, ji as readSandboxOutcome, jn as observedModelMatchesDeclared, mi as knownMaterializationReceipt, n as createSupervisor, pi as knownExecutionBindingReceipt, ua as awaitAbortable, ui as authoredProfileDigest, wi as unknownExecutionBindingReceipt, wt as InMemoryResultBlobStore, y as withDriverExecutor, yi as runtimeOwnedExecutorExecutionBinding, zi as mapSandboxToolEvent } from "./supervisor-C26k7X5-.js";
1
+ import { Ai as runtimeOwnedExecutorMaterialization, Bi as projectSandboxOutcome, Ci as knownExecutionBindingReceipt, Da as providerMessageText, Ea as promptOptionsFromAgentTurnInput, Et as InMemorySpawnJournal, Fi as unknownMaterializationReceipt, Gi as createSandboxUsageLedger, Ii as executableAgentProfileSnapshot, In as observedModelMatchesDeclared, Ji as mapSandboxEvent, Mi as runtimeOwnedPendingExecutorMaterialization, Pi as unknownExecutionBindingReceipt, Sa as armDeadlineTimer, Ta as promptFromAgentTurnInput, Tt as InMemoryResultBlobStore, Ui as canonicalStreamEventFromSandboxEvent, Vi as readSandboxOutcome, Wi as createSandboxToolPartState, Yi as mapSandboxToolEvent, _t as createExecutorRegistry, b as withDriverExecutor, ba as awaitAbortable, bi as authoredProfileDigest, gt as createExecutor, ki as runtimeOwnedExecutorExecutionBinding, pt as captureReusableExecutorConfig, qi as isSandboxTerminalEvent, r as createSupervisor, wi as knownMaterializationReceipt } from "./supervisor-Cvd5mf7x.js";
2
2
  import { m as ValidationError, p as SessionMismatchError, r as BackendTransportError } from "./errors-DodWX-cb.js";
3
3
  import { c as profileModelExecutionSettings, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-BbSCSak0.js";
4
4
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, renderInputPartsAsText } from "@tangle-network/agent-interface";
@@ -2870,4 +2870,4 @@ function structuralRollout(config = {}) {
2870
2870
  //#endregion
2871
2871
  export { collectAgentTurn as A, defaultAnalystInstruction as C, profileOptimizerModelCall as D, profileChatClient as E, InMemoryRuntimeSessionStore as F, newRuntimeSession as I, nowIso as L, createIterableBackend as M, createSandboxPromptBackend as N, optimizerMethod as O, normalizeBackendStreamEvent as P, startOrResumeRuntimeSession as R, ObservationError as S, renderReport as T, depthStrategy as _, defaultStructuralRolloutPolicy as a, sample as b, officialChecksFromMeta as c, selectBestIndex as d, structuralRollout as f, defineStrategy as g, breadthStrategy as h, defaultExtractCandidate as i, streamAgentTurn as j, strategyAuthorMethod as k, resolveEntrySymbol as l, adaptiveRefine as m, compareCheckOutcomes as n, filterAuthoredAsserts as o, visibleCheckScore as p, composeCheckSources as r, modelAuthoredChecks as s, canDisplace as t, sandboxCheckRunner as u, refine as v, observe as w, sampleThenRefine as x, runAgentic as y, touchSession as z };
2872
2872
 
2873
- //# sourceMappingURL=structural-rollout-D17I5CwF.js.map
2873
+ //# sourceMappingURL=structural-rollout-I92sIfNl.js.map