@tangle-network/agent-runtime 0.264.0 → 0.266.1
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/{activation-DHFdvps3.js → activation-BERiJjx5.js} +2 -2
- package/dist/{activation-DHFdvps3.js.map → activation-BERiJjx5.js.map} +1 -1
- package/dist/{activation-Bx4kfVU3.d.ts → activation-VpxSbDKJ.d.ts} +2 -2
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-Bz-H17bC.js → coordination-driver-DdZ-nh_4.js} +73 -39
- package/dist/coordination-driver-DdZ-nh_4.js.map +1 -0
- package/dist/{delegate-CwbWhX5W.js → delegate-Ajx_PVyu.js} +3 -3
- package/dist/delegate-Ajx_PVyu.js.map +1 -0
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +2 -2
- package/dist/{graph-5NrpTg0h.js → graph-CK50N9vG.js} +7 -5
- package/dist/graph-CK50N9vG.js.map +1 -0
- package/dist/{improvement-cycle-WRWcFyuO.js → improvement-cycle-GRPoHLm1.js} +3 -3
- package/dist/{improvement-cycle-WRWcFyuO.js.map → improvement-cycle-GRPoHLm1.js.map} +1 -1
- package/dist/{index-9wXpbjbX.d.ts → index-CU2mlMfc.d.ts} +59 -73
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +3 -3
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-bin-DPewOZMn.d.ts → loop-runner-bin-XKZXM08Q.d.ts} +3 -3
- package/dist/{loop-runner-bin-DC1Lm0nM.js → loop-runner-bin-cC16EPUq.js} +3 -3
- package/dist/{loop-runner-bin-DC1Lm0nM.js.map → loop-runner-bin-cC16EPUq.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +5 -5
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-ByTMUJcD.d.ts → openai-tools-D3ajI_D2.d.ts} +2 -2
- package/dist/profiles.d.ts +2 -2
- package/dist/{provision-supervisor-BZ6_uBGR.js → provision-supervisor-Bf_bPaCv.js} +4 -4
- package/dist/{provision-supervisor-BZ6_uBGR.js.map → provision-supervisor-Bf_bPaCv.js.map} +1 -1
- package/dist/{runtime-CUZC75EX.js → runtime-hOLlAc1i.js} +938 -18
- package/dist/runtime-hOLlAc1i.js.map +1 -0
- package/dist/{server-KpdpN627.js → server-DOb67ohd.js} +3 -3
- package/dist/{server-KpdpN627.js.map → server-DOb67ohd.js.map} +1 -1
- package/dist/{stream-agent-turn-D1zelVx6.d.ts → stream-agent-turn-Gw9hLpBn.d.ts} +182 -3
- package/dist/{structural-rollout-D17I5CwF.js → structural-rollout-DV9YoQF6.js} +2 -2
- package/dist/{structural-rollout-D17I5CwF.js.map → structural-rollout-DV9YoQF6.js.map} +1 -1
- package/dist/{substrate-qQphD9f0.d.ts → substrate-CLt9S9ym.d.ts} +2 -2
- package/dist/{supervise-_DTVHXPC.js → supervise--njTtSL3.js} +77 -27
- package/dist/supervise--njTtSL3.js.map +1 -0
- package/dist/{supervisor-C26k7X5-.js → supervisor-B8UMAXya.js} +990 -401
- package/dist/supervisor-B8UMAXya.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-BV14WTyW.d.ts → types-CrnwLVYQ.d.ts} +204 -34
- package/package.json +2 -2
- package/dist/coordination-driver-Bz-H17bC.js.map +0 -1
- package/dist/delegate-CwbWhX5W.js.map +0 -1
- package/dist/graph-5NrpTg0h.js.map +0 -1
- package/dist/runtime-CUZC75EX.js.map +0 -1
- package/dist/supervise-_DTVHXPC.js.map +0 -1
- package/dist/supervisor-C26k7X5-.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as ExecutorToolCall, Da as BackendErrorDetail, Ea as AgentTaskStatus, Ii as ExecCtx, La as RuntimeStreamEvent, Or as UnavailablePausePolicy, Rn as ExecutorProgress, X as Scope, Xi as LoopTokenUsage, Y as Runtime, b as ExecutorRegistry, f as ExecutorCancellation, g as ExecutorFactory, gt as UsageEvent, ia as SandboxClient, kn as TraceSource, p as ExecutorCancellationRequest, rt as Spend, s as DefaultVerdict, sa as Validator, y as ExecutorProgressEvent } from "./types-CrnwLVYQ.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";
|
|
@@ -993,6 +993,22 @@ interface ProviderExecutorOptions {
|
|
|
993
993
|
profileForCreate?: (profile: AgentProfile) => AgentProfile;
|
|
994
994
|
/** Map the task while retaining the kernel's canonical prompt mapping by default. */
|
|
995
995
|
taskToTurn?: (task: unknown, specProfile: AgentProfile, defaultTurn: AgentTurnInput) => AgentTurnInput;
|
|
996
|
+
/**
|
|
997
|
+
* How a supervised leaf waits out an upstream that cannot serve now.
|
|
998
|
+
*
|
|
999
|
+
* When the model provider refuses a leaf's turn for capacity (a quota, a rate limit, an
|
|
1000
|
+
* overload, or the router's own refused credential; see `upstreamUnavailableSignal`), the leaf
|
|
1001
|
+
* keeps its environment, pauses, and continues in the same environment and session with a
|
|
1002
|
+
* short instruction to pick up where it stopped. The pause starts at `unavailablePauseMs`
|
|
1003
|
+
* (15 s) and doubles to `maxUnavailablePauseMs` (5 min), the same rule a driver follows. Only
|
|
1004
|
+
* the leaf's deadline, cancellation and budget end it. Each pause is journaled as a `paused`
|
|
1005
|
+
* spawn event, and each continuation as the node's next `execution-input`.
|
|
1006
|
+
*
|
|
1007
|
+
* Applies to a retained execution under a Scope, the path a supervised leaf takes on a provider
|
|
1008
|
+
* that declares `retainedControl`, and not with `workspaceRetention`. `false` ends the execution
|
|
1009
|
+
* on the refused turn.
|
|
1010
|
+
*/
|
|
1011
|
+
unavailablePause?: UnavailablePausePolicy | false;
|
|
996
1012
|
}
|
|
997
1013
|
/** Adapt an environment provider into an `ExecutorFactory` for `createExecutor`.
|
|
998
1014
|
*
|
|
@@ -1251,6 +1267,162 @@ interface SandboxLeafOut {
|
|
|
1251
1267
|
outcome?: AgentRunOutcome;
|
|
1252
1268
|
}
|
|
1253
1269
|
//#endregion
|
|
1270
|
+
//#region src/runtime/shared-box.d.ts
|
|
1271
|
+
/**
|
|
1272
|
+
* The most workers one default box carries at once.
|
|
1273
|
+
*
|
|
1274
|
+
* It keeps a worker count that the 512-task pids limit of a Tangle box can hold with headroom
|
|
1275
|
+
* for the sidecar's own processes and the workers' tool shells: 118 idle tasks plus 8 workers at
|
|
1276
|
+
* about 34 tasks each is 390. Memory is not the binding limit: 8 workers used about 4 GB in a
|
|
1277
|
+
* 16 GB box. Raise it only for a box whose pids limit was raised with it.
|
|
1278
|
+
*/
|
|
1279
|
+
declare const DEFAULT_SHARED_BOX_WORKERS = 8;
|
|
1280
|
+
/** The box shape the default placement creates: memory for 8 workers at about 0.5 GB each plus
|
|
1281
|
+
* the sidecar, and 4 cores, because the workers wait on the model most of the time. */
|
|
1282
|
+
declare const DEFAULT_SHARED_BOX_RESOURCES: Readonly<{
|
|
1283
|
+
cpuCores: 4;
|
|
1284
|
+
memoryMB: 8192;
|
|
1285
|
+
}>;
|
|
1286
|
+
/** The request header the router records as a usage row's `clientName`. */
|
|
1287
|
+
declare const ROUTER_CLIENT_HEADER = "x-tangle-client";
|
|
1288
|
+
/**
|
|
1289
|
+
* The router client name of the worker that runs supervised node `nodeId`.
|
|
1290
|
+
*
|
|
1291
|
+
* The node id is already in the spawn journal, so a keeper joins a router row to a node without
|
|
1292
|
+
* a new record: the row whose `clientName` is `agent-runtime-node/<nodeId>` is that node's spend.
|
|
1293
|
+
*/
|
|
1294
|
+
declare function sharedWorkerClientName(nodeId: string): string;
|
|
1295
|
+
/** The Sandbox box surface a shared box uses. The Sandbox SDK's `SandboxInstance` satisfies it. */
|
|
1296
|
+
interface SharedBoxHandle {
|
|
1297
|
+
readonly id: string;
|
|
1298
|
+
exec(command: string, options?: {
|
|
1299
|
+
timeoutMs?: number;
|
|
1300
|
+
}): Promise<{
|
|
1301
|
+
exitCode?: number | null;
|
|
1302
|
+
stdout?: string;
|
|
1303
|
+
stderr?: string;
|
|
1304
|
+
}>;
|
|
1305
|
+
readonly fs: {
|
|
1306
|
+
read(path: string): Promise<string>;
|
|
1307
|
+
write(path: string, content: string): Promise<unknown>;
|
|
1308
|
+
};
|
|
1309
|
+
readonly process: {
|
|
1310
|
+
spawnExact(executable: string, args: readonly string[], options?: {
|
|
1311
|
+
cwd?: string;
|
|
1312
|
+
env?: Record<string, string>;
|
|
1313
|
+
timeoutMs?: number;
|
|
1314
|
+
}): Promise<SharedBoxProcess>;
|
|
1315
|
+
list(): Promise<ReadonlyArray<{
|
|
1316
|
+
pid: number;
|
|
1317
|
+
command?: string;
|
|
1318
|
+
cwd?: string;
|
|
1319
|
+
}>>;
|
|
1320
|
+
get(pid: number): Promise<SharedBoxProcess | null>;
|
|
1321
|
+
};
|
|
1322
|
+
delete(): Promise<unknown>;
|
|
1323
|
+
}
|
|
1324
|
+
/** One process in a shared box, as the Sandbox SDK's process manager returns it. */
|
|
1325
|
+
interface SharedBoxProcess {
|
|
1326
|
+
readonly pid: number;
|
|
1327
|
+
wait(): Promise<number>;
|
|
1328
|
+
kill(signal?: 'SIGTERM' | 'SIGKILL', options?: {
|
|
1329
|
+
tree?: boolean;
|
|
1330
|
+
}): Promise<void>;
|
|
1331
|
+
stdout(): AsyncIterable<string>;
|
|
1332
|
+
stderr(): AsyncIterable<string>;
|
|
1333
|
+
}
|
|
1334
|
+
/** Options for {@link sharedBoxPlacement}. */
|
|
1335
|
+
interface SharedBoxPlacementOptions {
|
|
1336
|
+
/** The Sandbox client that creates and deletes the shared boxes. */
|
|
1337
|
+
client: SandboxClient;
|
|
1338
|
+
/**
|
|
1339
|
+
* Create options for every shared box: resources, egress, secrets, lifetime and billing.
|
|
1340
|
+
* Runtime owns `backend`, so the box's sidecar never serves a worker turn.
|
|
1341
|
+
*/
|
|
1342
|
+
box?: Omit<CreateSandboxOptions, 'backend'>;
|
|
1343
|
+
/** The most workers one box carries at once. Defaults to {@link DEFAULT_SHARED_BOX_WORKERS}. */
|
|
1344
|
+
workersPerBox?: number;
|
|
1345
|
+
/** Absolute directory in each box that holds one directory per worker. */
|
|
1346
|
+
workerRoot?: string;
|
|
1347
|
+
/** First wait before repeating a Sandbox call that failed transiently; doubles per attempt. */
|
|
1348
|
+
retryDelayMs?: number;
|
|
1349
|
+
/**
|
|
1350
|
+
* How a worker waits out a model provider that cannot serve now: a quota, a rate limit, an
|
|
1351
|
+
* overload, or the router's own refused credential (`unavailableSignalOfFailure`). The worker
|
|
1352
|
+
* pauses 15 s, doubling to 5 min, the rule a driver and a dedicated leaf follow, then continues
|
|
1353
|
+
* its own opencode session in its own directory. Only cancellation, the turn's `timeoutMs` and
|
|
1354
|
+
* the node's deadline and budget, which abort the turn, end the pauses. `false` ends the turn on
|
|
1355
|
+
* the refused run.
|
|
1356
|
+
*/
|
|
1357
|
+
unavailablePause?: UnavailablePausePolicy | false;
|
|
1358
|
+
}
|
|
1359
|
+
/** Counts that show how the pool placed its workers. */
|
|
1360
|
+
interface SharedBoxStats {
|
|
1361
|
+
readonly boxesCreated: number;
|
|
1362
|
+
readonly boxesLive: number;
|
|
1363
|
+
readonly workersPlaced: number;
|
|
1364
|
+
readonly workersLive: number;
|
|
1365
|
+
/** The most workers any one box carried at the same time. */
|
|
1366
|
+
readonly peakWorkersPerBox: number;
|
|
1367
|
+
/** Every box this pool created, with the workers it served. */
|
|
1368
|
+
readonly boxes: ReadonlyArray<{
|
|
1369
|
+
readonly id: string;
|
|
1370
|
+
readonly workersServed: number;
|
|
1371
|
+
readonly deleted: boolean;
|
|
1372
|
+
/** Milliseconds from the create request to a box that runs processes. */
|
|
1373
|
+
readonly createMs: number;
|
|
1374
|
+
}>;
|
|
1375
|
+
}
|
|
1376
|
+
/** What {@link SharedBoxPlacement.close} did to each box. */
|
|
1377
|
+
interface SharedBoxCloseReceipt {
|
|
1378
|
+
readonly boxId: string;
|
|
1379
|
+
readonly deleted: boolean;
|
|
1380
|
+
readonly error?: string;
|
|
1381
|
+
}
|
|
1382
|
+
/** Who a shared worker is, for the router rows its model calls leave on the box's key. */
|
|
1383
|
+
interface SharedWorkerIdentity {
|
|
1384
|
+
/** The supervised node the worker runs. Absent for a worker outside a supervised tree. */
|
|
1385
|
+
readonly nodeId?: string;
|
|
1386
|
+
}
|
|
1387
|
+
/** A shared-box placement: the provider Runtime uses for a profile the placement accepts. */
|
|
1388
|
+
interface SharedBoxPlacement {
|
|
1389
|
+
/**
|
|
1390
|
+
* The environment provider that places one accepted worker in a shared box. A worker with a
|
|
1391
|
+
* `nodeId` sends `x-tangle-client: agent-runtime-node/<nodeId>` on its router calls; without
|
|
1392
|
+
* one, its calls carry no client name and stay charged to the box.
|
|
1393
|
+
*/
|
|
1394
|
+
providerFor(worker?: SharedWorkerIdentity): AgentEnvironmentProvider;
|
|
1395
|
+
/** Public identity of this placement, recorded on every execution it serves. */
|
|
1396
|
+
readonly identity: {
|
|
1397
|
+
readonly id: string;
|
|
1398
|
+
readonly digest: string;
|
|
1399
|
+
};
|
|
1400
|
+
/** Why a shared box cannot carry this profile, or `undefined` when it can. */
|
|
1401
|
+
refusal(profile: AgentProfile): string | undefined;
|
|
1402
|
+
stats(): SharedBoxStats;
|
|
1403
|
+
/** Delete every box this placement created and still holds. Call it when the run settles. */
|
|
1404
|
+
close(): Promise<ReadonlyArray<SharedBoxCloseReceipt>>;
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Why a shared box cannot carry `profile`, or `undefined` when it can.
|
|
1408
|
+
*
|
|
1409
|
+
* A shared box carries a profile whose whole behavior reaches an opencode process through its own
|
|
1410
|
+
* working directory, its own configuration and the box's own model credential. Everything else
|
|
1411
|
+
* keeps a dedicated box: another harness, a model the box credential cannot reach, a replaced
|
|
1412
|
+
* system prompt, MCP servers, connections, hooks, subagents, extensions, tool grants, and any
|
|
1413
|
+
* resource the materializer does not lower into the worker's directory.
|
|
1414
|
+
*/
|
|
1415
|
+
declare function sharedBoxRefusal(profile: AgentProfile): string | undefined;
|
|
1416
|
+
/**
|
|
1417
|
+
* Place accepted workers as processes in a pool of shared Sandbox boxes.
|
|
1418
|
+
*
|
|
1419
|
+
* The pool fills a box before it creates the next one and deletes a box when its last worker
|
|
1420
|
+
* releases it. Runtime reaches this placement through `createExecutor({ backend: 'provider',
|
|
1421
|
+
* shared })`: a profile that {@link SharedBoxPlacement.refusal} accepts runs here, and every other
|
|
1422
|
+
* profile keeps the dedicated provider.
|
|
1423
|
+
*/
|
|
1424
|
+
declare function sharedBoxPlacement(options: SharedBoxPlacementOptions): SharedBoxPlacement;
|
|
1425
|
+
//#endregion
|
|
1254
1426
|
//#region src/runtime/harness-usage.d.ts
|
|
1255
1427
|
/**
|
|
1256
1428
|
* One harness's own token-usage report for one turn, in the runtime's field names.
|
|
@@ -1862,6 +2034,13 @@ interface ProviderSeam extends ProviderExecutorOptions {
|
|
|
1862
2034
|
* creation and session semantics.
|
|
1863
2035
|
*/
|
|
1864
2036
|
steering?: SandboxSteeringOptions;
|
|
2037
|
+
/**
|
|
2038
|
+
* Place each worker whose profile a shared box can carry as its own process in a pool of shared
|
|
2039
|
+
* boxes, and keep a dedicated environment from `provider` for every other profile. Build it with
|
|
2040
|
+
* `sharedBoxPlacement`. A manager never uses it: its coordination credential is create-time
|
|
2041
|
+
* environment that every co-tenant of a shared box could read.
|
|
2042
|
+
*/
|
|
2043
|
+
shared?: SharedBoxPlacement;
|
|
1865
2044
|
}
|
|
1866
2045
|
/**
|
|
1867
2046
|
* Router seam WITH tool use — the tool-using router backend. Same direct
|
|
@@ -2072,5 +2251,5 @@ declare function streamAgentTurn(backend: AgentTurnBackend, input: AgentTurnInpu
|
|
|
2072
2251
|
*/
|
|
2073
2252
|
declare function collectAgentTurn(stream: AsyncIterable<RuntimeStreamEvent>): Promise<CollectedAgentTurn>;
|
|
2074
2253
|
//#endregion
|
|
2075
|
-
export { decodeHarnessUsage as $,
|
|
2076
|
-
//# sourceMappingURL=stream-agent-turn-
|
|
2254
|
+
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, resolveRedactor 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, defaultRedactor as gr, SandboxToolPartState as gt, RouterToolsSeam as h, WorktreeCommandResult as hn, Redactor 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, McpTransport 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, McpToolDescriptor 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, 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 };
|
|
2255
|
+
//# sourceMappingURL=stream-agent-turn-Gw9hLpBn.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bi as canonicalStreamEventFromSandboxEvent, Ca as promptOptionsFromAgentTurnInput, Di as runtimeOwnedExecutorMaterialization, Ei as runtimeOwnedExecutorExecutionBinding, Et as InMemorySpawnJournal, Gi as mapSandboxEvent, Hi as createSandboxUsageLedger, Ki as mapSandboxToolEvent, Li as projectSandboxOutcome, Mi as unknownMaterializationReceipt, Ni as executableAgentProfileSnapshot, Nn as observedModelMatchesDeclared, Ri as readSandboxOutcome, Sa as promptFromAgentTurnInput, Tt as InMemoryResultBlobStore, Vi as createSandboxToolPartState, Wi as isSandboxTerminalEvent, _a as awaitAbortable, _i as authoredProfileDigest, _t as createExecutorRegistry, b as withDriverExecutor, bi as knownExecutionBindingReceipt, gt as createExecutor, ji as unknownExecutionBindingReceipt, ki as runtimeOwnedPendingExecutorMaterialization, pt as captureReusableExecutorConfig, r as createSupervisor, wa as providerMessageText, xi as knownMaterializationReceipt, ya as armDeadlineTimer } from "./supervisor-B8UMAXya.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-
|
|
2873
|
+
//# sourceMappingURL=structural-rollout-DV9YoQF6.js.map
|