@tangle-network/agent-runtime 0.208.1 → 0.209.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/{activation-B86jXbpE.js → activation-Cjhm5Tds.js} +2 -2
- package/dist/{activation-B86jXbpE.js.map → activation-Cjhm5Tds.js.map} +1 -1
- package/dist/{activation-Dan50rKs.d.ts → activation-tFdeirCa.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-D9dbnSA0.js → coordination-driver-C-hPz1zy.js} +33 -6
- package/dist/coordination-driver-C-hPz1zy.js.map +1 -0
- package/dist/{delegate-DP3QsLAy.js → delegate-CB4CkJdV.js} +2 -2
- package/dist/{delegate-DP3QsLAy.js.map → delegate-CB4CkJdV.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +2 -2
- package/dist/{graph-BXa0AN64.js → graph-Ud2-Ytos.js} +3 -3
- package/dist/{graph-BXa0AN64.js.map → graph-Ud2-Ytos.js.map} +1 -1
- package/dist/{improvement-cycle-BFg94oh7.js → improvement-cycle-B7ia6rTj.js} +3 -3
- package/dist/{improvement-cycle-BFg94oh7.js.map → improvement-cycle-B7ia6rTj.js.map} +1 -1
- package/dist/{index-CHkf3b2C.d.ts → index-0p5DiJoy.d.ts} +3 -124
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +3 -3
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-Cv-sYY_b.js → loop-runner-bin-B30d3Yla.js} +3 -3
- package/dist/{loop-runner-bin-Cv-sYY_b.js.map → loop-runner-bin-B30d3Yla.js.map} +1 -1
- package/dist/{loop-runner-bin-BUVcdgNU.d.ts → loop-runner-bin-q-xGzEK9.d.ts} +3 -3
- 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 +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/{provision-supervisor-DARqIVIZ.js → provision-supervisor-C-nLaaQ_.js} +3 -3
- package/dist/{provision-supervisor-DARqIVIZ.js.map → provision-supervisor-C-nLaaQ_.js.map} +1 -1
- package/dist/{redact-DXxGazcg.js → redact-va_1mmv8.js} +256 -35
- package/dist/redact-va_1mmv8.js.map +1 -0
- package/dist/{runtime-DXz65UHu.js → runtime-D0_b9wFH.js} +12 -8
- package/dist/{runtime-DXz65UHu.js.map → runtime-D0_b9wFH.js.map} +1 -1
- package/dist/{server-DLxegwGE.js → server-pq1x3C2i.js} +3 -3
- package/dist/{server-DLxegwGE.js.map → server-pq1x3C2i.js.map} +1 -1
- package/dist/{stream-agent-turn-B3NfR48z.d.ts → stream-agent-turn-BaKYHbHg.d.ts} +161 -20
- package/dist/{structural-rollout-D3Su8Dla.js → structural-rollout-BaYBLUeI.js} +2 -2
- package/dist/{structural-rollout-D3Su8Dla.js.map → structural-rollout-BaYBLUeI.js.map} +1 -1
- package/dist/{supervise-B5kRyFJj.js → supervise-CMWpmY_1.js} +54 -16
- package/dist/supervise-CMWpmY_1.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/package.json +4 -4
- package/dist/coordination-driver-D9dbnSA0.js.map +0 -1
- package/dist/redact-DXxGazcg.js.map +0 -1
- package/dist/supervise-B5kRyFJj.js.map +0 -1
|
@@ -7,6 +7,138 @@ import { ChildProcess } from "node:child_process";
|
|
|
7
7
|
import { WorkspacePlanReceipt } from "@tangle-network/agent-profile-materialize";
|
|
8
8
|
import { BackendType, CreateSandboxOptions, PromptOptions, Sandbox, SandboxEvent, SandboxInstance } from "@tangle-network/sandbox";
|
|
9
9
|
import { AgentEnvironment, AgentEnvironment as AgentEnvironment$1, AgentEnvironmentCapabilities, AgentEnvironmentCapabilities as AgentEnvironmentCapabilities$1, AgentEnvironmentEvent, AgentEnvironmentEvent as AgentEnvironmentEvent$1, AgentEnvironmentProvider, AgentEnvironmentProvider as AgentEnvironmentProvider$1, AgentEnvironmentQuery, AgentEnvironmentStatus, AgentEnvironmentSummary, AgentProfileRef, AgentProfileRef as AgentProfileRef$1, AgentSession, AgentSessionRef, AgentSessionStatus as AgentSessionStatus$1, AgentTurnInput, AgentTurnInput as AgentTurnInput$1, AgentTurnResult as AgentTurnResult$1, AgentTurnResult as AgentTurnResult$2, CheckpointRef, CheckpointRequest, CreateAgentEnvironmentInput, CreateAgentEnvironmentInput as CreateAgentEnvironmentInput$1, ExecRequest, ExecResult, ForkRequest, PlacementInfo, ResourceRequest, WorkspaceRequest } from "@tangle-network/agent-interface/environment-provider";
|
|
10
|
+
//#region src/runtime/supervise/budget.d.ts
|
|
11
|
+
/** Opaque, single-use reservation handle returned by `reserve` and consumed by
|
|
12
|
+
* `reconcile`. Carries the reserved ceilings so reconciliation needs no lookup. */
|
|
13
|
+
interface ReservationTicket {
|
|
14
|
+
readonly id: number;
|
|
15
|
+
readonly reserved: {
|
|
16
|
+
readonly resources?: Budget['resources'];
|
|
17
|
+
readonly tokens: number;
|
|
18
|
+
readonly usd: number;
|
|
19
|
+
readonly iterations: number;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the child's `Budget` actually declared `maxUsd`. `reserved.usd` is `0` for BOTH a
|
|
22
|
+
* child that named no dollar ceiling and one that named `$0`, and the two settle differently:
|
|
23
|
+
* an undeclared ceiling cannot be exceeded, so the child's real dollars are committed as
|
|
24
|
+
* OBSERVED spend, while a declared ceiling of `$0` is a limit whose breach is fail-loud.
|
|
25
|
+
* Optional so an externally constructed ticket stays valid; an absent flag is read as
|
|
26
|
+
* `true` — the strict, fail-closed reading.
|
|
27
|
+
*/
|
|
28
|
+
readonly usdBudgeted?: boolean;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** Post-reservation pool readout — the shape `Scope.budget` exposes. `tokensLeft`,
|
|
32
|
+
* `usdLeft`, and `reservedTokens` reflect committed-but-unsettled reservations;
|
|
33
|
+
* `deadlineMs` is the ABSOLUTE wall-clock deadline (0 when the root set none).
|
|
34
|
+
* `iterationsLeft` is the remaining iteration capacity.
|
|
35
|
+
* `usdCapped` distinguishes a real `usdLeft <= 0` exhaustion from an uncapped pool (which always
|
|
36
|
+
* reads `usdLeft: 0`) — the in-loop guard needs it to bound a usd-capped driver. */
|
|
37
|
+
type BudgetReadout = Readonly<{
|
|
38
|
+
resources?: Readonly<Record<string, {
|
|
39
|
+
unit: string;
|
|
40
|
+
limit: number;
|
|
41
|
+
remaining: number;
|
|
42
|
+
reserved: number;
|
|
43
|
+
committed: number;
|
|
44
|
+
known: boolean;
|
|
45
|
+
}>>;
|
|
46
|
+
tokensLeft: number;
|
|
47
|
+
/**
|
|
48
|
+
* False once the pool has recorded work whose token count was UNREPORTED (a `Spend` with
|
|
49
|
+
* `tokensKnown: false`). `tokensLeft` is then a ceiling on what remains, not a measurement: real
|
|
50
|
+
* consumption is at least the debited amount and possibly more. Reading `tokensLeft` without this
|
|
51
|
+
* flag would present an under-count as an exact balance.
|
|
52
|
+
*/
|
|
53
|
+
tokensKnown: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* False once the pool has charged a REPORTED spend whose prompt-cache split it could not read.
|
|
56
|
+
* The prompt tokens that carried no class were charged in full, and a cached prefix reaches the
|
|
57
|
+
* pool again on every turn that reads it, so the debited amount is an upper bound on
|
|
58
|
+
* newly-presented work rather than a measurement. It is a separate fact from `tokensKnown`: the
|
|
59
|
+
* counts arrived, but their composition did not. A restored uncertain reservation leaves this
|
|
60
|
+
* flag alone — it charges a declared ceiling, which has no composition to misread, and
|
|
61
|
+
* `tokensKnown` already reports that the balance is not a measurement.
|
|
62
|
+
*/
|
|
63
|
+
cacheBreakdownKnown: boolean;
|
|
64
|
+
usdLeft: number;
|
|
65
|
+
usdCapped: boolean;
|
|
66
|
+
/** False once any recorded work reported an unknown dollar cost; the dollar totals are then a
|
|
67
|
+
* lower bound on real spend, not a measurement. */
|
|
68
|
+
usdKnown: boolean;
|
|
69
|
+
iterationsLeft: number;
|
|
70
|
+
deadlineMs: number;
|
|
71
|
+
reservedTokens: number;
|
|
72
|
+
}>;
|
|
73
|
+
/** Why a reservation was refused. `budget-exhausted` means the pool ran out of a channel it
|
|
74
|
+
* budgets; `usd-unbudgeted` means the root declared no dollar ceiling, so a dollar request is
|
|
75
|
+
* unsatisfiable at any amount and the fix is to budget the root, not to ask for less. */
|
|
76
|
+
type ReservationRejection = 'budget-exhausted' | 'usd-unbudgeted';
|
|
77
|
+
/** State recovered from a prior process before new work is admitted. `committed` is measured spend
|
|
78
|
+
* already present in the durable journal. Each `uncertainReservation` is a child that was recorded
|
|
79
|
+
* as started but never recorded as settled: its full declared ceiling is charged conservatively,
|
|
80
|
+
* while the public readout remains explicitly unknown. */
|
|
81
|
+
interface BudgetPoolRestore {
|
|
82
|
+
readonly committed?: Spend;
|
|
83
|
+
readonly uncertainReservations?: ReadonlyArray<Budget>;
|
|
84
|
+
}
|
|
85
|
+
interface BudgetPool {
|
|
86
|
+
/**
|
|
87
|
+
* Atomically reserve a child's full ceiling from the free balance. Fails closed
|
|
88
|
+
* ({ ok: false }) when the pool can't cover standard or named channels — the
|
|
89
|
+
* caller inspects `ok` before `ticket`.
|
|
90
|
+
*/
|
|
91
|
+
reserve(b: Budget): {
|
|
92
|
+
ok: true;
|
|
93
|
+
ticket: ReservationTicket;
|
|
94
|
+
} | {
|
|
95
|
+
ok: false;
|
|
96
|
+
reason: ReservationRejection;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Release a reservation: commit the actual `spent`, refund the unspent remainder
|
|
100
|
+
* to the free pool. Throws on an unknown or already-reconciled ticket (fail loud —
|
|
101
|
+
* a double refund would silently break conservation).
|
|
102
|
+
*/
|
|
103
|
+
reconcile(ticket: ReservationTicket, spent: Spend): void;
|
|
104
|
+
/** Fold a normalized `UsageEvent` stream (or array) into a `Spend`. Tokens via
|
|
105
|
+
* `addTokenUsage`, usd on its own channel, iterations from `'iteration'` events.
|
|
106
|
+
* `ms` is left zero — wall-clock duration is the caller's to record, not the pool's. */
|
|
107
|
+
spendFrom(events: AsyncIterable<UsageEvent> | UsageEvent[]): Promise<Spend>;
|
|
108
|
+
/** The current readout, reflecting all outstanding reservations. */
|
|
109
|
+
readout(): BudgetReadout;
|
|
110
|
+
/**
|
|
111
|
+
* Record OBSERVED spend that did NOT go through reserve/reconcile — the driver's OWN inference
|
|
112
|
+
* (its chat turns), which is real compute but not a spawned child. A direct `free → committed`
|
|
113
|
+
* debit, so `total ≡ free + reserved + committed` is preserved: equal-k counts the driver's
|
|
114
|
+
* tokens and the in-loop budget guard (`readout().tokensLeft`) sees them. `free` may go negative
|
|
115
|
+
* when a run overspends. Unknown enforced resource usage is recorded before throwing.
|
|
116
|
+
* Partial increments defer completeness checks until the invocation reports its terminal spend.
|
|
117
|
+
* The DURABLE record is the journal's `metered` event (written by `Scope.meter`); this debit
|
|
118
|
+
* only makes the live `readout()` reflect driver inference for the in-loop guard.
|
|
119
|
+
*/
|
|
120
|
+
observe(spend: Spend, options?: {
|
|
121
|
+
partial?: boolean;
|
|
122
|
+
}): void;
|
|
123
|
+
/** Fail loud if any reservation is still open — the conserved-pool leak detector. Called at the
|
|
124
|
+
* supervisor's join barrier: once every child has settled, no ticket may remain (a leaked
|
|
125
|
+
* reservation would silently break `total ≡ free + reserved + committed`). */
|
|
126
|
+
assertNoOpenTickets(): void;
|
|
127
|
+
}
|
|
128
|
+
/** Fold a normalized `UsageEvent` array into a `Spend`. Tokens and usd are separate
|
|
129
|
+
* channels; iterations come from `'iteration'` events. Pure; `ms` stays zero (the
|
|
130
|
+
* pool does not read wall-clock). */
|
|
131
|
+
declare function spendFromUsageEvents(events: UsageEvent[]): Spend;
|
|
132
|
+
/**
|
|
133
|
+
* Create a conserved reservation pool from a root `Budget`. `runStartedAtMs` is the WALL-CLOCK
|
|
134
|
+
* instant the run's root was recorded, and it is the only input the deadline is derived from:
|
|
135
|
+
* `runStartedAtMs + root.deadlineMs`, or `0` when the root declares no deadline. The pool holds no
|
|
136
|
+
* clock, so a caller cannot hand it a run-relative one and get a duration back where an instant is
|
|
137
|
+
* expected. A resumed pool passes the ORIGINAL root instant, so restart never slides the limit.
|
|
138
|
+
* The readout is an absolute instant, not a shrinking remainder.
|
|
139
|
+
*/
|
|
140
|
+
declare function createBudgetPool(root: Budget, runStartedAtMs: number, restore?: BudgetPoolRestore): BudgetPool;
|
|
141
|
+
//#endregion
|
|
10
142
|
//#region src/runtime/retained-run-types.d.ts
|
|
11
143
|
/** Cursor plus runtime sequence needed to continue one ordered replay. @stable */
|
|
12
144
|
interface RetainedRunReplayPoint {
|
|
@@ -388,6 +520,7 @@ interface WorkerProgress {
|
|
|
388
520
|
readonly usd: number;
|
|
389
521
|
/** False when observed dollar spend is only a known subtotal, not a complete total. */
|
|
390
522
|
readonly usdKnown?: boolean;
|
|
523
|
+
readonly resources?: Spend['resources'];
|
|
391
524
|
/** Steers delivered but not yet read by the worker. */
|
|
392
525
|
readonly pendingMessages: number;
|
|
393
526
|
/** Newest-last window of tool/turn activity; empty when the executor exposes none. */
|
|
@@ -422,6 +555,7 @@ interface ScopeProgressInput {
|
|
|
422
555
|
readonly tokensKnown?: boolean;
|
|
423
556
|
readonly usd: number;
|
|
424
557
|
readonly usdKnown?: boolean;
|
|
558
|
+
readonly resources?: Spend['resources'];
|
|
425
559
|
}
|
|
426
560
|
/** Fold the scope-derived facts and the executor's optional enrichment into one read. Pure: the
|
|
427
561
|
* caller supplies `now`, so a test can observe a stall without waiting for one. */
|
|
@@ -1454,6 +1588,12 @@ type UsageEvent = {
|
|
|
1454
1588
|
/** Observed output, not accounting. Meters ignore it; the turn projection publishes it. */
|
|
1455
1589
|
kind: 'progress';
|
|
1456
1590
|
progress: ExecutorProgressEvent;
|
|
1591
|
+
} | {
|
|
1592
|
+
kind: 'resource';
|
|
1593
|
+
name: string;
|
|
1594
|
+
unit: string;
|
|
1595
|
+
amount: number;
|
|
1596
|
+
known: boolean;
|
|
1457
1597
|
} | {
|
|
1458
1598
|
kind: 'iteration';
|
|
1459
1599
|
};
|
|
@@ -1651,12 +1791,25 @@ interface ExecutorRegistry {
|
|
|
1651
1791
|
error: string;
|
|
1652
1792
|
};
|
|
1653
1793
|
}
|
|
1794
|
+
/** Caller-defined resource ceiling in non-negative safe-integer units, consistent throughout a tree. */
|
|
1795
|
+
interface ResourceLimit {
|
|
1796
|
+
readonly unit: string;
|
|
1797
|
+
readonly limit: number;
|
|
1798
|
+
}
|
|
1799
|
+
/** Non-negative safe-integer subtotal. False means unknown, even when amount is zero.
|
|
1800
|
+
* Select sufficiently fine units, such as GPU-milliseconds. */
|
|
1801
|
+
interface ResourceSpend {
|
|
1802
|
+
readonly unit: string;
|
|
1803
|
+
readonly amount: number;
|
|
1804
|
+
readonly known: boolean;
|
|
1805
|
+
}
|
|
1654
1806
|
/** A budget envelope on a spawn or the root. All ceilings; the pool reserves against them. */
|
|
1655
1807
|
interface Budget {
|
|
1656
1808
|
readonly maxIterations: number;
|
|
1657
1809
|
readonly maxTokens: number;
|
|
1658
1810
|
readonly maxUsd?: number;
|
|
1659
1811
|
readonly deadlineMs?: number;
|
|
1812
|
+
readonly resources?: Readonly<Record<string, ResourceLimit>>;
|
|
1660
1813
|
}
|
|
1661
1814
|
/**
|
|
1662
1815
|
* Conserved spend, reconciled from the normalized `UsageEvent` stream. Tokens and usd are separate
|
|
@@ -1667,6 +1820,7 @@ interface Budget {
|
|
|
1667
1820
|
* holds the reason.
|
|
1668
1821
|
*/
|
|
1669
1822
|
interface Spend {
|
|
1823
|
+
resources?: Readonly<Record<string, ResourceSpend>>;
|
|
1670
1824
|
iterations: number;
|
|
1671
1825
|
tokens: LoopTokenUsage;
|
|
1672
1826
|
/** Token accounting is known unless explicitly false. A false value marks work that HAPPENED with
|
|
@@ -1975,22 +2129,7 @@ interface Scope<Out> {
|
|
|
1975
2129
|
/** The live tree — reads the in-memory nursery, not the journal. */
|
|
1976
2130
|
readonly view: TreeView;
|
|
1977
2131
|
/** Conserved-pool readouts (post-reservation). */
|
|
1978
|
-
readonly budget:
|
|
1979
|
-
tokensLeft: number;
|
|
1980
|
-
/** `false` once a turn settled without reporting its tokens: `tokensLeft` is then a ceiling,
|
|
1981
|
-
* not a measurement. */
|
|
1982
|
-
tokensKnown: boolean;
|
|
1983
|
-
/** `false` once a charged spend arrived without a readable prompt-cache split. That spend was
|
|
1984
|
-
* charged at its rolled-up prompt total, which counts a cached prefix again on every turn that
|
|
1985
|
-
* reads it, so `tokensLeft` is an upper bound on newly-presented work. */
|
|
1986
|
-
cacheBreakdownKnown: boolean;
|
|
1987
|
-
usdLeft: number;
|
|
1988
|
-
usdCapped: boolean;
|
|
1989
|
-
usdKnown: boolean;
|
|
1990
|
-
iterationsLeft: number;
|
|
1991
|
-
deadlineMs: number;
|
|
1992
|
-
reservedTokens: number;
|
|
1993
|
-
}>;
|
|
2132
|
+
readonly budget: BudgetReadout;
|
|
1994
2133
|
/** One tree-wide view of simultaneous spawned work. Every nested scope reads the same counter;
|
|
1995
2134
|
* the root agent itself is not a spawned worker. `freeSlots` is `null` when no limit is set.
|
|
1996
2135
|
* `unconfirmed` NAMES the settled children whose executor teardown was never acknowledged —
|
|
@@ -2499,7 +2638,7 @@ interface NoWinnerError {
|
|
|
2499
2638
|
stack?: string;
|
|
2500
2639
|
}
|
|
2501
2640
|
/** The accounting channels a usage gap leaves incomplete. */
|
|
2502
|
-
type SpendChannel = 'tokens' | 'usd'
|
|
2641
|
+
type SpendChannel = 'tokens' | 'usd' | `resource:${string}`;
|
|
2503
2642
|
/**
|
|
2504
2643
|
* One journaled node whose usage accounting is incomplete — the named gap behind a `false`
|
|
2505
2644
|
* `tokensKnown`/`usdKnown` on a terminal `spentTotal`. `never-settled`: the spawn is durable but
|
|
@@ -2930,6 +3069,8 @@ type ToolLoopChat = (messages: ReadonlyArray<ToolLoopMessageRecord>, tools: Read
|
|
|
2930
3069
|
output: number;
|
|
2931
3070
|
reasoning?: number;
|
|
2932
3071
|
};
|
|
3072
|
+
/** Caller-measured resource totals for this turn; omission makes enforced dimensions unknown. */
|
|
3073
|
+
resources?: Spend['resources'];
|
|
2933
3074
|
/** Dollar value reported for the turn. It is not billed spend unless provenance says so. */
|
|
2934
3075
|
costUsd?: number;
|
|
2935
3076
|
costProvenance?: 'provider-receipt' | 'billing-receipt' | 'catalog-estimate';
|
|
@@ -2987,7 +3128,7 @@ type ToolLoopCompactionOptions = Omit<ToolLoopCompaction, 'distill'> & {
|
|
|
2987
3128
|
interface RouterTransportConfig {
|
|
2988
3129
|
routerBaseUrl: string;
|
|
2989
3130
|
routerKey: string;
|
|
2990
|
-
/** Injectable OpenAI-compatible transport
|
|
3131
|
+
/** Injectable OpenAI-compatible transport. Optional usage.resources carries measured turn totals. */
|
|
2991
3132
|
complete?: (body: Record<string, unknown>, request?: {
|
|
2992
3133
|
readonly headers: Readonly<Record<string, string>>;
|
|
2993
3134
|
readonly signal?: AbortSignal;
|
|
@@ -4665,5 +4806,5 @@ declare function streamAgentTurn(backend: AgentTurnBackend, input: AgentTurnInpu
|
|
|
4665
4806
|
*/
|
|
4666
4807
|
declare function collectAgentTurn(stream: AsyncIterable<RuntimeStreamEvent>): Promise<CollectedAgentTurn>;
|
|
4667
4808
|
//#endregion
|
|
4668
|
-
export { resolveSecretEnv as $,
|
|
4669
|
-
//# sourceMappingURL=stream-agent-turn-
|
|
4809
|
+
export { resolveSecretEnv as $, RetainedRunCancellation as $a, SanitizedKnowledgeRequirement as $i, Redactor as $n, SteerableRootHandle as $r, WorktreeCommandResult as $t, Inbox as A, createActivityLog as Aa, LoopSpanNode as Ai, ToolLoopToolCall as An, ProfileMaterializationReceipt as Ar, providerAsExecutor as At, createSandboxToolPartState as B, NativeContextContinuationHandle as Ba, createOtelExporter as Bi, PeerMailRefusal as Bn, RootProviderModelEvidence as Br, CodexRolloutSession as Bt, createExecutorRegistry as C, sandboxSessionTraceSource as Ca, readTraceContextFromEnv as Ci, RouterTransportConfig as Cn, MaterializedExecutionIdentity as Cr, ProviderExecutorOptions as Ct, SteerableSandboxSession as D, ExecutorProgress as Da, EvalRunsExportConfig as Di, ToolLoopCompaction as Dn, NodeId as Dr, SandboxClientProviderOptions as Dt, SteerableSandboxArgs as E, DEFAULT_STALL_AFTER_MS as Ea, EvalRunGeneration as Ei, ToolLoopChat as En, NodeExecutionIdentity as Er, ResourceRequest as Et, SandboxOutputMarker as F, RetainedInteractiveEnvironmentInput as Fa, RuntimeEventOtelOptions as Fi, PeerMailEvent as Fn, ResultBlobStore as Fr, SandboxControlClient as Ft, sandboxEventServedBackend as G, RecoverRetainedRunResult as Ga, padTraceId as Gi, createPeerMailbox as Gn, SpawnEvent as Gr, addHarnessUsage as Gt, extractLlmCallEvent as H, ReconnectRetainedRunOptions as Ha, generateSpanId as Hi, PeerMailbox as Hn, Runtime as Hr, CodexRolloutStoreRef as Ht, SandboxServedBackend as I, RetainedInteractiveRunHandle as Ia, buildLoopOtelSpans as Ii, PeerMailKind as In, ResumedKeyState as Ir, createTangleSandboxExactProcessProvider as It, KeyProvider as J, RetainedInteractiveIntentAdmission as Ja, RuntimeStreamEventCollector as Ji, peerMailVerbNames as Jn, SpawnPrior as Jr, readCodexRolloutSession as Jt, sandboxProgressEvents as K, RetainedInteractiveAdmission as Ka, toOtelAttributes as Ki, isPeerMailEnvelope as Kn, SpawnJournal as Kr, createCodexRolloutStoreReader as Kt, SandboxToolPartState as L, RetainedInteractiveStartMaterial as La, buildLoopSpanNodes as Li, PeerMailLimits as Ln, ResumedWork as Lr, ProviderPlacement as Lt, PeerInboxMessage as M, ReconnectRetainedInteractiveRunOptions as Ma, OtelExportConfig as Mi, DEFAULT_PEER_MAIL_LIMITS as Mn, ProviderModelExecutionEvidence as Mr, resolveAgentEnvironmentProvider as Mt, createInbox as N, RecoverRetainedInteractiveRunOptions as Na, OtelExporter as Ni, PEER_MAIL_WIRE_KEY as Nn, ResourceLimit as Nr, sandboxClientAsProvider as Nt, createSteerableSandboxSession as O, ScopeProgressInput as Oa, EvalRunsExportResult as Oi, ToolLoopCompactionOptions as On, NodeSnapshot as Or, WorkspaceRequest as Ot, SandboxLeafOut as P, RetainedInteractiveAdmissionHook as Pa, OtelSpan as Pi, PeerMailEnvelope as Pn, ResourceSpend as Pr, CreateTangleSandboxExactProcessProviderOptions as Pt, resolveMcpServerLaunch as Q, RetainedRunCancelOptions as Qa, SanitizedKnowledgeReadinessReport as Qi, McpTransport as Qn, SpendGap as Qr, WorktreeCheckRunner as Qt, SandboxUsageLedger as R, StartRetainedInteractiveRunOptions as Ra, buildRuntimeEventOtelSpans as Ri, PeerMailOutcome as Rn, RootHandle as Rr, CodexForkBoundary as Rt, createExecutor as S, decodeToolPart as Sa, mergeTraceEnv as Si, runLocalHarness as Sn, Handle as Sr, ProviderAsSandboxClientOptions as St, SandboxSteeringOptions as T, ActivityNote as Ta, EvalRunEvent as Ti, ToolLoopCallContext as Tn, NoWinnerError as Tr, ProviderPromptOptions as Tt, mapSandboxEvent as U, RecoverRetainedRunIntentOptions as Ua, loopEventToOtelSpan as Ui, PeerMailboxOptions as Un, Scope as Ur, CodexRolloutTurn as Ut, createSandboxUsageLedger as V, NativeContextContinuationInput as Va, exportEvalRuns as Vi, PeerMailSendInput as Vn, RootSignal as Vr, CodexRolloutStoreReader as Vt, mapSandboxToolEvent as W, RecoverRetainedRunOptions as Wa, padSpanId as Wi, claimsAuthority as Wn, Settled as Wr, CodexStoreDelta as Wt, envKeyProvider as X, RetainedRunAdmission as Xa, RuntimeStreamEventSummary as Xi, JsonRpcResponse as Xn, Spend as Xr, decodeHarnessUsage as Xt, ResolvedMcpServerLaunch as Y, RetainedInteractiveStartedAdmission as Ya, RuntimeStreamEventSink as Yi, JsonRpcMessage as Yn, SpawnRejection as Yr, HarnessUsage as Yt, mcpSecretEnvMetadataKey as Z, RetainedRunAdmissionHook as Za, RuntimeTelemetryOptions as Zi, McpToolDescriptor as Zn, SpendChannel as Zr, InPlaceHarnessResult as Zt, RouterSeam as _, SessionMessageLike as _a, workerTraceEnv as _i, LocalHarnessResult as _n, createBudgetPool as _o, ExecutorProgressEvent as _r, CreateAgentEnvironmentInput$1 as _t, StreamAgentTurnOptions as a, PendingWait as aa, UnconfirmedTeardown as ai, GitRunner as an, RetainedRunIntentAdmission as ao, Budget as ar, AgentEnvironmentProviderRef as at, cliInPlaceExecutor as b, TraceSource as ba, TraceContext as bi, localHarnessExecutable as bn, ExecutorTeardownWarning as br, ForkRequest as bt, BridgeHarnessStore as c, WaitProbeRegistry as ca, WaitOpts as ci, captureWorktreeDiff as cn, RetainedRunStartMaterial as co, Executor as cr, AgentEnvironmentStatus as ct, CliInPlaceSeam as d, createWaitProbes as da, WorkerInteractiveUnavailableReason as di, CodexExecutionEvidence as dn, StartRetainedRunOptions as do, ExecutorCancellationRequest as dr, AgentSession as dt, createRuntimeEventCollector as ea, SupervisedResult as ei, WorktreeHarnessResult as en, RetainedRunDispatchedAdmission as eo, defaultRedactor as er, secretEnvOfMcpServer as et, CliSeam as f, isWaitOutcome as fa, WorkerTraceEvidence as fi, CodexExecutionPolicy as fn, BudgetPool as fo, ExecutorContext as fr, AgentSessionRef as ft, ProviderSeam as g, waitUntil as ga, readWorkerTraceContext as gi, LocalHarness as gn, ReservationTicket as go, ExecutorNodeContext as gr, CheckpointRequest as gt, ExecutorConfig as h, validateWaitSpec as ha, WorkerTraceSeamCarrier as hi, LOCAL_HARNESSES as hn, ReservationRejection as ho, ExecutorMaterialization as hr, CheckpointRef as ht, CollectedAgentTurn as i, sanitizeRuntimeStreamEvent as ia, TreeView as ii, DiffResult as in, RetainedRunHandle as io, AgentSpec as ir, AgentEnvironmentProvider$1 as it, InboxMessage as j, readWorkerProgress as ja, OtelAttribute as ji, AUTHORITY_MARKERS as jn, ProviderModelAttemptEvidence as jr, providerAsSandboxClient as jt, AuthorityInboxMessage as k, WorkerProgress as ka, INTELLIGENCE_WIRE_VERSION as ki, ToolLoopMessageRecord as kn, NodeStatus as kr, createAgentEnvironmentProviderRegistry as kt, BridgeModelCredential as l, WaitRejection as la, WidenGate as li, createWorktree as ln, RetainedRunTurnInput as lo, ExecutorAccounting as lr, AgentEnvironmentSummary as lt, CliWorktreeSeam as m, timerAt as ma, WorkerTraceResolver as mi, DEFAULT_LOCAL_HARNESS as mn, BudgetReadout as mo, ExecutorFactory as mr, AgentTurnResult$2 as mt, AgentTurnInput$1 as n, sanitizeAgentRuntimeEvent as na, SupervisorOpts as ni, CreateWorktreeOptions as nn, RetainedRunEnvironmentAdmission as no, Agent as nr, AgentEnvironmentCapabilities$1 as nt, collectAgentTurn as o, WaitOutcome as oa, UnknownMaterializationReason as oi, RemoveWorktreeOptions as on, RetainedRunReplayPoint as oo, DefaultVerdict as or, AgentEnvironmentProviderRegistry as ot, CliWorktreeBridgeSeam as p, pollFor as pa, WorkerTraceUnavailableReason as pi, CodexTokenUsage as pn, BudgetPoolRestore as po, ExecutorExecutionBinding as pr, AgentSessionStatus$1 as pt, sumSandboxUsage as q, RetainedInteractiveEnvironmentAdmission as qa, RuntimeEventCollector as qi, peerMailTools as qn, SpawnOpts as qr, harnessUsageIsEmpty as qt, AgentTurnUsage as r, sanitizeKnowledgeReadinessReport as ra, TokenUsageProvenance as ri, DiffOptions as rn, RetainedRunEventOptions as ro, AgentExecutionRef as rr, AgentEnvironmentEvent$1 as rt, streamAgentTurn as s, WaitProbe as sa, UsageEvent as si, WorktreeHandle as sn, RetainedRunSnapshot as so, ExecutionBindingReceipt as sr, AgentEnvironmentQuery as st, AgentTurnBackend as t, createRuntimeStreamEventCollector as ta, Supervisor as ti, WorktreeProfileMaterializationReceipt as tn, RetainedRunEffect as to, resolveRedactor as tr, AgentEnvironment$1 as tt, BridgeSeam as u, WaitSpec as ua, WorkerInteractiveSession as ui, removeWorktree as un, StartRetainedRunInEnvironmentOptions as uo, ExecutorCancellation as ur, AgentProfileRef$1 as ut, RouterToolsSeam as v, SessionTraceBox as va, workerTraceHeaders as vi, RunLocalHarnessOptions as vn, spendFromUsageEvents as vo, ExecutorRegistry as vr, ExecRequest as vt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as w, ActivityLog as wa, traceContextToEnv as wi, ToolSpec as wn, MaterializedModelIdentity as wr, ProviderLeafOut as wt, cliWorktreeExecutor as x, createPushTraceSource as xa, createPropagatingTraceEmitter as xi, parseCodexTokenUsage as xn, ExecutorToolCall as xr, PlacementInfo as xt, SandboxSeam as y, ToolStepInput as ya, workerTraceSeamKey as yi, harnessSupportsReasoningEffort as yn, ExecutorResult as yr, ExecResult as yt, assertSandboxServedModel as z, NativeContextContinuationExecution as za, createOpenInferenceFileExporter as zi, PeerMailReadout as zn, RootMaterialization as zr, CodexRolloutIdentity as zt };
|
|
4810
|
+
//# sourceMappingURL=stream-agent-turn-BaKYHbHg.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ei as mapSandboxToolEvent, Fi as promptOptionsFromAgentTurnInput, Ii as providerMessageText, Ni as awaitAbortable, Pi as promptFromAgentTurnInput, Rt as InMemoryResultBlobStore, Si as createSandboxUsageLedger, Ti as mapSandboxEvent, Zr as authoredProfileDigest, _i as projectSandboxOutcome, a as createSupervisor, bi as canonicalStreamEventFromSandboxEvent, di as unknownExecutionBindingReceipt, ei as knownExecutionBindingReceipt, fi as unknownMaterializationReceipt, li as runtimeOwnedPendingExecutorMaterialization, m as withDriverExecutor, oi as runtimeOwnedExecutorExecutionBinding, ot as createExecutor, pi as executableAgentProfileSnapshot, pn as observedModelMatchesDeclared, rt as captureReusableExecutorConfig, si as runtimeOwnedExecutorMaterialization, st as createExecutorRegistry, ti as knownMaterializationReceipt, vi as readSandboxOutcome, wi as isSandboxTerminalEvent, xi as createSandboxToolPartState, zt as InMemorySpawnJournal } from "./redact-va_1mmv8.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-DKDyr-fc.js";
|
|
4
4
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, renderInputPartsAsText } from "@tangle-network/agent-interface";
|
|
@@ -2864,4 +2864,4 @@ function structuralRollout(config = {}) {
|
|
|
2864
2864
|
//#endregion
|
|
2865
2865
|
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 };
|
|
2866
2866
|
|
|
2867
|
-
//# sourceMappingURL=structural-rollout-
|
|
2867
|
+
//# sourceMappingURL=structural-rollout-BaYBLUeI.js.map
|