@tangle-network/agent-runtime 0.135.3 → 0.137.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-n_QCjFyg.js → activation-BHoMDzMv.js} +2 -2
- package/dist/{activation-n_QCjFyg.js.map → activation-BHoMDzMv.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-Cl5xwuKl.js → authoring-rEOOEWn6.js} +2 -2
- package/dist/{authoring-Cl5xwuKl.js.map → authoring-rEOOEWn6.js.map} +1 -1
- package/dist/{graph-NKOjYL1z.js → graph-yaEG0ZiR.js} +2 -2
- package/dist/{graph-NKOjYL1z.js.map → graph-yaEG0ZiR.js.map} +1 -1
- package/dist/{improvement-cycle-B8KrGlT4.js → improvement-cycle-BeVj-EGJ.js} +3 -3
- package/dist/{improvement-cycle-B8KrGlT4.js.map → improvement-cycle-BeVj-EGJ.js.map} +1 -1
- package/dist/{index-CP1RvdOw.d.ts → index-CcP87vSG.d.ts} +3 -3
- package/dist/{index-DjPLpg7-.d.ts → index-DBuSUP9J.d.ts} +61 -44
- package/dist/index.d.ts +5 -5
- 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 +7 -7
- package/dist/{knowledge-_7FWqPwl.js → knowledge-C1TcOBf6.js} +3 -3
- package/dist/{knowledge-_7FWqPwl.js.map → knowledge-C1TcOBf6.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-DndNkp6D.d.ts → loop-runner-bin-Bfl9tm0R.d.ts} +2 -2
- package/dist/{loop-runner-bin-CnlVnCM1.js → loop-runner-bin-DhUWzpNp.js} +3 -3
- package/dist/{loop-runner-bin-CnlVnCM1.js.map → loop-runner-bin-DhUWzpNp.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 +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-o7jw10Fn.js → openai-tools-K38wcStR.js} +2 -2
- package/dist/{openai-tools-o7jw10Fn.js.map → openai-tools-K38wcStR.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{redact--KfuCwwo.d.ts → redact-BwEdhuVH.d.ts} +2 -2
- package/dist/{runtime-WugWo__W.d.ts → runtime-DhPCNvuH.d.ts} +207 -23
- package/dist/{runtime-BQTE0RJS.js → runtime-yCuqlhou.js} +6 -6
- package/dist/{runtime-BQTE0RJS.js.map → runtime-yCuqlhou.js.map} +1 -1
- package/dist/{structural-rollout-keBf4YEc.js → structural-rollout-2Z6J5ttt.js} +2 -2
- package/dist/{structural-rollout-keBf4YEc.js.map → structural-rollout-2Z6J5ttt.js.map} +1 -1
- package/dist/{supervise-CVP9ku5U.js → supervise-to2ynnCG.js} +105 -8
- package/dist/supervise-to2ynnCG.js.map +1 -0
- package/dist/{supervisor-mZ9Glkz7.js → supervisor-BfJNS2Z3.js} +394 -13
- package/dist/supervisor-BfJNS2Z3.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +11 -11
- package/package.json +10 -10
- package/dist/supervise-CVP9ku5U.js.map +0 -1
- package/dist/supervisor-mZ9Glkz7.js.map +0 -1
|
@@ -1,10 +1,197 @@
|
|
|
1
1
|
import { E as SandboxClient, i as ExecCtx, k as Validator } from "./types-BBwGSiAj.js";
|
|
2
|
-
import { Q as UsageEvent, U as Spend, d as ExecutorFactory, gn as ExecutorProgress, ln as TraceSource, m as ExecutorRegistry } from "./types-BCkweg3w.js";
|
|
2
|
+
import { I as Scope, Q as UsageEvent, U as Spend, d as ExecutorFactory, gn as ExecutorProgress, ln as TraceSource, m as ExecutorRegistry } from "./types-BCkweg3w.js";
|
|
3
3
|
import { i as AgentEnvironmentProvider, o as AgentEnvironmentProviderRegistry, w as ProviderExecutorOptions } from "./environment-provider-DA8LqBV-.js";
|
|
4
4
|
import { AgentProfile, AgentProfileMcpServer, HarnessType, ReasoningEffort } from "@tangle-network/agent-interface";
|
|
5
5
|
import { WorkspacePlanReceipt } from "@tangle-network/agent-profile-materialize";
|
|
6
6
|
import { ChildProcess } from "node:child_process";
|
|
7
7
|
import { BackendType, SandboxEvent } from "@tangle-network/sandbox";
|
|
8
|
+
//#region src/mcp/protocol.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Shared wire contracts for the in-process stdio MCP servers.
|
|
11
|
+
*
|
|
12
|
+
* Keeping these types in one module prevents the delegation and generic tool
|
|
13
|
+
* servers from accepting subtly different JSON-RPC messages.
|
|
14
|
+
*
|
|
15
|
+
* @experimental
|
|
16
|
+
*/
|
|
17
|
+
/** A callable MCP tool exposed by either stdio server. @experimental */
|
|
18
|
+
interface McpToolDescriptor {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
inputSchema: Record<string, unknown>;
|
|
22
|
+
handler: (raw: unknown) => Promise<unknown>;
|
|
23
|
+
}
|
|
24
|
+
/** Stdio-shaped transport used by the shared JSON-RPC server implementation. @experimental */
|
|
25
|
+
interface McpTransport {
|
|
26
|
+
input: NodeJS.ReadableStream;
|
|
27
|
+
output: NodeJS.WritableStream;
|
|
28
|
+
}
|
|
29
|
+
/** One JSON-RPC 2.0 request or notification. @experimental */
|
|
30
|
+
interface JsonRpcMessage {
|
|
31
|
+
jsonrpc: '2.0';
|
|
32
|
+
id?: number | string | null;
|
|
33
|
+
method: string;
|
|
34
|
+
params?: unknown;
|
|
35
|
+
}
|
|
36
|
+
/** One JSON-RPC 2.0 response. @experimental */
|
|
37
|
+
interface JsonRpcResponse {
|
|
38
|
+
jsonrpc: '2.0';
|
|
39
|
+
id: number | string | null;
|
|
40
|
+
result?: unknown;
|
|
41
|
+
error?: {
|
|
42
|
+
code: number;
|
|
43
|
+
message: string;
|
|
44
|
+
data?: unknown;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/runtime/supervise/peer-mail.d.ts
|
|
49
|
+
/**
|
|
50
|
+
* What one envelope IS, typed so a reader can act on it without parsing prose.
|
|
51
|
+
*
|
|
52
|
+
* - `ask` — request a fact the sender lacks; expects an `answer`.
|
|
53
|
+
* - `tell` — share a result; MUST carry evidence refs.
|
|
54
|
+
* - `challenge` — dispute a peer's claim; MUST cite the refs of the claim it disputes.
|
|
55
|
+
* - `answer` — reply to an `ask` or a `challenge`.
|
|
56
|
+
*/
|
|
57
|
+
type PeerMailKind = 'ask' | 'tell' | 'challenge' | 'answer';
|
|
58
|
+
/** One admitted peer message. `threadId` is the root mail's id; `depth` is 0 for a root mail and
|
|
59
|
+
* one more than its parent for a reply, which is what the reply-depth cap counts. */
|
|
60
|
+
interface PeerMailEnvelope {
|
|
61
|
+
readonly mailId: string;
|
|
62
|
+
readonly threadId: string;
|
|
63
|
+
readonly depth: number;
|
|
64
|
+
/** The bound sender — resolved from the capability, never from a tool argument. */
|
|
65
|
+
readonly from: string;
|
|
66
|
+
readonly to: string;
|
|
67
|
+
readonly kind: PeerMailKind;
|
|
68
|
+
readonly subject: string;
|
|
69
|
+
readonly body: string;
|
|
70
|
+
/** Evidence the receiver can re-check for itself. Required for `tell` and `challenge`. */
|
|
71
|
+
readonly evidenceRefs: ReadonlyArray<string>;
|
|
72
|
+
/** The mail id this replies to. Never a coordination question id — a peer cannot address the
|
|
73
|
+
* parent's answer channel. */
|
|
74
|
+
readonly replyTo?: string;
|
|
75
|
+
readonly at: number;
|
|
76
|
+
}
|
|
77
|
+
/** Why an attempt did not reach a sibling. Each value is a fact the sender can read and act on. */
|
|
78
|
+
type PeerMailRefusal = 'sender-unbound' | 'self-addressed' | 'send-quota-exhausted' | 'mailbox-full' | 'thread-depth-exceeded' | 'thread-stopped' | 'unknown-reply-target' | 'evidence-required' | 'subject-too-large' | 'body-too-large' | 'forged-authority' | 'unknown-worker' | 'already-settled' | 'worker-has-no-inbox' | 'scope-stopped' | 'runtime-error';
|
|
79
|
+
type PeerMailOutcome = 'delivered' | PeerMailRefusal;
|
|
80
|
+
/** The audit record for one attempt — published whether it delivered or was refused, because a
|
|
81
|
+
* refused attempt is exactly what a parent auditing a channel needs to see. */
|
|
82
|
+
interface PeerMailEvent {
|
|
83
|
+
readonly envelope: PeerMailEnvelope;
|
|
84
|
+
readonly delivered: boolean;
|
|
85
|
+
readonly outcome: PeerMailOutcome;
|
|
86
|
+
/** Canonical digest of the exact admitted body, so a later claim can name the bytes it read. */
|
|
87
|
+
readonly bodyDigest: string;
|
|
88
|
+
readonly error?: string;
|
|
89
|
+
}
|
|
90
|
+
/** Hard bounds. Every one fails closed with a refusal the sender can read. */
|
|
91
|
+
interface PeerMailLimits {
|
|
92
|
+
/** Mail one worker may attempt to send for the whole run. */
|
|
93
|
+
readonly maxSentPerWorker: number;
|
|
94
|
+
/** Mail one worker may receive for the whole run. */
|
|
95
|
+
readonly maxInboxPerWorker: number;
|
|
96
|
+
/** Total admitted body bytes one worker may receive for the whole run. */
|
|
97
|
+
readonly maxInboxBytesPerWorker: number;
|
|
98
|
+
/** Maximum reply depth; a root mail is depth 0, so `2` allows ask → answer → answer. */
|
|
99
|
+
readonly maxThreadDepth: number;
|
|
100
|
+
readonly maxBodyBytes: number;
|
|
101
|
+
readonly maxSubjectBytes: number;
|
|
102
|
+
}
|
|
103
|
+
/** Bounds chosen so a peer channel cannot become the dominant cost of a run: eight sends and
|
|
104
|
+
* sixteen receives per worker, 32 KiB of received body, and a reply chain that terminates. */
|
|
105
|
+
declare const DEFAULT_PEER_MAIL_LIMITS: PeerMailLimits;
|
|
106
|
+
/**
|
|
107
|
+
* Phrases that mark the run's AUTHORITY in a folded prompt. A peer that writes one of these is
|
|
108
|
+
* trying to speak as the supervisor, so intake refuses the envelope outright.
|
|
109
|
+
*
|
|
110
|
+
* The render-time fence in the inbox is the second half of this defence and neither half is
|
|
111
|
+
* sufficient alone: a fence loses to a body that closes it, and an intake filter loses to a body
|
|
112
|
+
* that invents a new authority phrase. Together they make forgery mechanically detectable and give
|
|
113
|
+
* the standing prompt one concrete boundary to bind to. Neither makes a model OBEY a boundary.
|
|
114
|
+
*/
|
|
115
|
+
declare const AUTHORITY_MARKERS: ReadonlyArray<string>;
|
|
116
|
+
/** The wire property carrying an envelope to a worker inbox. Deliberately its OWN discriminant:
|
|
117
|
+
* reusing `steer`/`answer` would let a peer mint a message on the parent's channels. */
|
|
118
|
+
declare const PEER_MAIL_WIRE_KEY = "mail";
|
|
119
|
+
/** The tool names a mail capability endpoint serves. It serves NOTHING else. */
|
|
120
|
+
declare const peerMailVerbNames: readonly ["send_mail", "read_mail"];
|
|
121
|
+
/** What a worker sees when it reads its own mailbox. */
|
|
122
|
+
interface PeerMailReadout {
|
|
123
|
+
/** The reading worker's own id, so a worker can address a reply correctly. */
|
|
124
|
+
readonly you: string;
|
|
125
|
+
/** Every envelope admitted to this worker so far, oldest first. */
|
|
126
|
+
readonly inbox: ReadonlyArray<PeerMailEnvelope>;
|
|
127
|
+
/** Live siblings this worker may write to (itself excluded). Without this a worker knows no
|
|
128
|
+
* peer's id and the channel is unusable. */
|
|
129
|
+
readonly peers: ReadonlyArray<{
|
|
130
|
+
readonly workerId: string;
|
|
131
|
+
readonly label: string;
|
|
132
|
+
}>;
|
|
133
|
+
readonly sent: number;
|
|
134
|
+
/** Sends still allowed, or `null` when this run set no send quota. */
|
|
135
|
+
readonly sendQuotaLeft: number | null;
|
|
136
|
+
readonly limits: PeerMailLimits;
|
|
137
|
+
}
|
|
138
|
+
interface PeerMailSendInput {
|
|
139
|
+
readonly to: unknown;
|
|
140
|
+
readonly kind: unknown;
|
|
141
|
+
readonly subject: unknown;
|
|
142
|
+
readonly body: unknown;
|
|
143
|
+
readonly evidenceRefs?: unknown;
|
|
144
|
+
readonly replyTo?: unknown;
|
|
145
|
+
}
|
|
146
|
+
interface PeerMailbox {
|
|
147
|
+
readonly limits: PeerMailLimits;
|
|
148
|
+
/**
|
|
149
|
+
* Publish the base URL of the capability listener once it has a port. Until it is set no spawn
|
|
150
|
+
* receives a mail endpoint: a capability nobody can reach is not worth handing out, and a URL
|
|
151
|
+
* built from an unassigned port would be a lie.
|
|
152
|
+
*/
|
|
153
|
+
setEndpoint(baseUrl: string): void;
|
|
154
|
+
/** Mint (idempotently, per assignment) the capability URL for one spawn. Undefined before the
|
|
155
|
+
* listener has published its endpoint. */
|
|
156
|
+
mintCapability(assignmentId: string): string | undefined;
|
|
157
|
+
/** Bind a minted capability to the concrete worker the spawn produced. Until this runs the
|
|
158
|
+
* capability can send nothing. */
|
|
159
|
+
bindCapability(assignmentId: string, workerId: string): void;
|
|
160
|
+
/** Resolve the capability path segment carried in a request URL. */
|
|
161
|
+
hasCapability(capabilityId: string): boolean;
|
|
162
|
+
/** The two tools a single capability serves, with the sender closed over. */
|
|
163
|
+
tools(capabilityId: string): McpToolDescriptor[];
|
|
164
|
+
send(capabilityId: string, input: PeerMailSendInput): Promise<PeerMailEvent>;
|
|
165
|
+
read(capabilityId: string): PeerMailReadout;
|
|
166
|
+
/** The parent's control: refuse every further mail on one thread. Returns false when the thread
|
|
167
|
+
* was already stopped. Mail already delivered is not recalled — this stops the next reply. */
|
|
168
|
+
stopThread(threadId: string): boolean;
|
|
169
|
+
/** Every attempt in order — delivered and refused alike. */
|
|
170
|
+
history(): ReadonlyArray<PeerMailEvent>;
|
|
171
|
+
}
|
|
172
|
+
interface PeerMailboxOptions {
|
|
173
|
+
readonly scope: Scope<unknown>;
|
|
174
|
+
/** Publish one attempt as a coordination event. Awaited, so a durable subscriber commits the
|
|
175
|
+
* record before the sender learns the outcome. */
|
|
176
|
+
readonly publish: (event: PeerMailEvent) => Promise<void>;
|
|
177
|
+
readonly limits?: Partial<PeerMailLimits>;
|
|
178
|
+
readonly now?: () => number;
|
|
179
|
+
}
|
|
180
|
+
/** True when `text` carries a phrase reserved for the run's authority. Case-insensitive, because
|
|
181
|
+
* the render is read by a model and case is not what distinguishes an instruction. */
|
|
182
|
+
declare function claimsAuthority(text: string): boolean;
|
|
183
|
+
/** True when `value` is an envelope this runtime produced. The worker inbox parses with this, so a
|
|
184
|
+
* malformed or partial wire object is discarded rather than rendered as a peer message. */
|
|
185
|
+
declare function isPeerMailEnvelope(value: unknown): value is PeerMailEnvelope;
|
|
186
|
+
/** Create the run's post office. One per manager scope; the manager's siblings are its addresses. */
|
|
187
|
+
declare function createPeerMailbox(opts: PeerMailboxOptions): PeerMailbox;
|
|
188
|
+
/**
|
|
189
|
+
* The two tools ONE capability serves. `capabilityId` is closed over and `from` is not a parameter,
|
|
190
|
+
* so the endpoint a worker holds can only ever speak as that worker. The descriptions carry the
|
|
191
|
+
* authority rule, because the receiving model reads them as part of the channel's contract.
|
|
192
|
+
*/
|
|
193
|
+
declare function peerMailTools(mailbox: PeerMailbox, capabilityId: string): McpToolDescriptor[];
|
|
194
|
+
//#endregion
|
|
8
195
|
//#region src/runtime/router-retry-policy.d.ts
|
|
9
196
|
/** Exact retry controls accepted at `AgentProfile.model.metadata.retry`. */
|
|
10
197
|
interface RouterRetryPolicy {
|
|
@@ -584,25 +771,8 @@ interface ResolvedMcpServerLaunch {
|
|
|
584
771
|
declare function resolveMcpServerLaunch(server: AgentProfileMcpServer, keys: KeyProvider | undefined, label: string): Promise<ResolvedMcpServerLaunch>;
|
|
585
772
|
//#endregion
|
|
586
773
|
//#region src/runtime/supervise/inbox.d.ts
|
|
587
|
-
/**
|
|
588
|
-
|
|
589
|
-
* The worker-side receive end of the down-leg: a per-worker inbox an executor exposes as
|
|
590
|
-
* `Executor.deliver`. The driver's `steer_agent` / `answer_question` land here,
|
|
591
|
-
* and the worker's agent loop drains them at two points (Drew's two delivery modes):
|
|
592
|
-
*
|
|
593
|
-
* - QUEUED (default): the message accumulates and is FLUSHED at the next step boundary — folded
|
|
594
|
-
* into the conversation before the next think. A worker is also forced to flush BEFORE it may
|
|
595
|
-
* settle, so it can never finish while a steer/answer it never read is still pending.
|
|
596
|
-
* - FORCEFUL (`interrupt: true`): trips `freshInterrupt()`'s signal so the loop can abort its
|
|
597
|
-
* in-flight turn immediately, then re-plan with the message folded in — breaking the worker out
|
|
598
|
-
* of a wrong path mid-task instead of waiting for it to finish the step.
|
|
599
|
-
*
|
|
600
|
-
* `deliver` never throws — a malformed message is ignored and returns `false`, so no caller can
|
|
601
|
-
* report delivery for bytes this inbox discarded.
|
|
602
|
-
*
|
|
603
|
-
* @experimental
|
|
604
|
-
*/
|
|
605
|
-
interface InboxMessage {
|
|
774
|
+
/** A message from the run's AUTHORITY — the parent driver. These two kinds carry instruction. */
|
|
775
|
+
interface AuthorityInboxMessage {
|
|
606
776
|
readonly kind: 'steer' | 'answer';
|
|
607
777
|
readonly text: string;
|
|
608
778
|
/** Forceful messages abort the in-flight turn; queued ones wait for the boundary flush. */
|
|
@@ -610,6 +780,16 @@ interface InboxMessage {
|
|
|
610
780
|
/** Present for an `answer` — the question id it resolves. */
|
|
611
781
|
readonly questionId?: string;
|
|
612
782
|
}
|
|
783
|
+
/** A message from a SIBLING worker. Information, never instruction — the parent stays the only
|
|
784
|
+
* authority over this worker's task. */
|
|
785
|
+
interface PeerInboxMessage {
|
|
786
|
+
readonly kind: 'mail';
|
|
787
|
+
readonly text: string;
|
|
788
|
+
/** Always false. Peer mail is queued by construction; see this file's header. */
|
|
789
|
+
readonly interrupt: false;
|
|
790
|
+
readonly envelope: PeerMailEnvelope;
|
|
791
|
+
}
|
|
792
|
+
type InboxMessage = AuthorityInboxMessage | PeerInboxMessage;
|
|
613
793
|
interface Inbox {
|
|
614
794
|
/** The `Executor.deliver` implementation. Returns false when the raw message is malformed and
|
|
615
795
|
* therefore was not queued; callers must not acknowledge a message this inbox discarded. */
|
|
@@ -617,13 +797,17 @@ interface Inbox {
|
|
|
617
797
|
/** Remove and return all pending messages (the flush). */
|
|
618
798
|
drain(): InboxMessage[];
|
|
619
799
|
pending(): number;
|
|
800
|
+
/** Pending messages from the run's AUTHORITY only. This is what the pre-settle fence counts:
|
|
801
|
+
* a worker may not finish while a steer or answer it never read is queued, but peer mail must
|
|
802
|
+
* never be able to hold a finished worker open. */
|
|
803
|
+
pendingAuthority(): number;
|
|
620
804
|
/** Open a fresh per-turn interrupt signal; a later forceful `deliver` aborts it. The loop links
|
|
621
805
|
* this into the signal it passes to its inference call, then re-plans when it fires. */
|
|
622
806
|
freshInterrupt(): AbortSignal;
|
|
623
807
|
/** Render drained messages as ONE operator turn to fold into the worker's conversation. */
|
|
624
808
|
fold(messages: ReadonlyArray<InboxMessage>): string;
|
|
625
809
|
}
|
|
626
|
-
/** Create the worker-side inbox for the down-leg: the driver's `steer_agent` / `answer_question` messages queue here and the worker's loop drains them at step boundaries and before settle. */
|
|
810
|
+
/** Create the worker-side inbox for the down-leg: the driver's `steer_agent` / `answer_question` messages and a sibling's peer mail queue here, and the worker's loop drains them at step boundaries and before settle. */
|
|
627
811
|
declare function createInbox(): Inbox;
|
|
628
812
|
//#endregion
|
|
629
813
|
//#region src/runtime/supervise/sandbox-session.d.ts
|
|
@@ -977,5 +1161,5 @@ declare function createExecutor(config: ExecutorConfig): ExecutorFactory<unknown
|
|
|
977
1161
|
*/
|
|
978
1162
|
declare function createExecutorRegistry(): ExecutorRegistry;
|
|
979
1163
|
//#endregion
|
|
980
|
-
export {
|
|
981
|
-
//# sourceMappingURL=runtime-
|
|
1164
|
+
export { WorktreeHandle as $, resolveSecretEnv as A, JsonRpcResponse as At, LOCAL_HARNESSES as B, PeerInboxMessage as C, PeerMailboxOptions as Ct, envKeyProvider as D, peerMailTools as Dt, ResolvedMcpServerLaunch as E, isPeerMailEnvelope as Et, WorktreeProfileMaterializationReceipt as F, localHarnessExecutable as G, LocalHarnessResult as H, CodexExecutionEvidence as I, CreateWorktreeOptions as J, parseCodexTokenUsage as K, CodexExecutionPolicy as L, WorktreeCheckRunner as M, McpTransport as Mt, WorktreeCommandResult as N, mcpSecretEnvMetadataKey as O, peerMailVerbNames as Ot, WorktreeHarnessResult as P, RemoveWorktreeOptions as Q, CodexTokenUsage as R, InboxMessage as S, PeerMailbox as St, KeyProvider as T, createPeerMailbox as Tt, RunLocalHarnessOptions as U, LocalHarness as V, harnessSupportsReasoningEffort as W, DiffResult as X, DiffOptions as Y, GitRunner as Z, SteerableSandboxArgs as _, PeerMailLimits as _t, CliWorktreeSeam as a, ToolLoopCallContext as at, AuthorityInboxMessage as b, PeerMailRefusal as bt, RouterSeam as c, ToolLoopCompactionOptions as ct, SandboxSeam as d, AUTHORITY_MARKERS as dt, captureWorktreeDiff as et, cliWorktreeExecutor as f, DEFAULT_PEER_MAIL_LIMITS as ft, SandboxSteeringOptions as g, PeerMailKind as gt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as h, PeerMailEvent as ht, CliWorktreeBridgeSeam as i, ToolSpec as it, secretEnvOfMcpServer as j, McpToolDescriptor as jt, resolveMcpServerLaunch as k, JsonRpcMessage as kt, RouterToolsSeam as l, ToolLoopMessageRecord as lt, createExecutorRegistry as m, PeerMailEnvelope as mt, BridgeSeam as n, removeWorktree as nt, ExecutorConfig as o, ToolLoopChat as ot, createExecutor as p, PEER_MAIL_WIRE_KEY as pt, runLocalHarness as q, CliSeam as r, RouterTransportConfig as rt, ProviderSeam as s, ToolLoopCompaction as st, BridgeModelCredential as t, createWorktree as tt, SandboxLeafOut as u, ToolLoopToolCall as ut, SteerableSandboxSession as v, PeerMailOutcome as vt, createInbox as w, claimsAuthority as wt, Inbox as x, PeerMailSendInput as xt, createSteerableSandboxSession as y, PeerMailReadout as yt, DEFAULT_LOCAL_HARNESS as z };
|
|
1165
|
+
//# sourceMappingURL=runtime-DhPCNvuH.d.ts.map
|
|
@@ -6,13 +6,13 @@ import { i as redactProtectedValue, r as redactProtectedReason } from "./protect
|
|
|
6
6
|
import { a as notifySandboxEventObserver, c as parseCanonicalTransportEvent, s as extractTransportEventIdentity } from "./sandbox-events-CA2amHoA.js";
|
|
7
7
|
import { c as profileProviderModel, i as concreteModelId, s as profileModelExecutionSettings, t as assertExecutableAgentProfile } from "./model-policy-UTTc9Z-A.js";
|
|
8
8
|
import { E as executableAgentSpecSnapshot, T as executableAgentProfileSnapshot } from "./materialization-BP5zspr2.js";
|
|
9
|
-
import { E as rollingDispatch, I as createExecutor, L as createExecutorRegistry,
|
|
9
|
+
import { E as rollingDispatch, I as createExecutor, L as createExecutorRegistry, _t as runBrainLoop, ft as runAgentRounds, g as settledToIteration, gt as routerBrain, l as withDriverExecutor, mt as probeSandboxCapabilities, n as createSupervisor, pt as createSandboxLineage, q as createPushTraceSource, ut as defaultSelectWinner, vt as canonicalObservedModel, z as createWorktreeCliExecutor } from "./supervisor-BfJNS2Z3.js";
|
|
10
10
|
import "./environment-provider-CLNVqp6H.js";
|
|
11
11
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-C7iJOWm3.js";
|
|
12
|
-
import { C as observe, O as strategyAuthorMethod, T as profileChatClient, b as sample, v as refine, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-
|
|
13
|
-
import { It as gateOnDeliverable, Lt as mapExecutorResult, n as supervise } from "./supervise-
|
|
14
|
-
import "./authoring-
|
|
15
|
-
import "./graph-
|
|
12
|
+
import { C as observe, O as strategyAuthorMethod, T as profileChatClient, b as sample, v as refine, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-2Z6J5ttt.js";
|
|
13
|
+
import { It as gateOnDeliverable, Lt as mapExecutorResult, n as supervise } from "./supervise-to2ynnCG.js";
|
|
14
|
+
import "./authoring-rEOOEWn6.js";
|
|
15
|
+
import "./graph-yaEG0ZiR.js";
|
|
16
16
|
import { CODING_HARNESSES, InMemoryTraceStore, OUTPUT_VALUE, benjaminiHochberg, buildTrajectory, computeFindingId as computeFindingId$1, confidenceInterval, expandProfileAxes, makeFinding as makeFinding$1, pairedBootstrap, paretoFrontier, wilcoxonSignedRank, wilson } from "@tangle-network/agent-eval";
|
|
17
17
|
import { heldoutSignificance, runProfileMatrix } from "@tangle-network/agent-eval/campaign";
|
|
18
18
|
import { AgentEnvironmentCapabilitiesSchema, AgentExactRunControlRefSchema, AgentNativeContextContinuationResultSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, AgentTurnResultSchema, InteractionAcknowledgementSchema, InteractionResponseCommandSchema, NativeContextBoundaryProofSchema, NativeContextContinuationRequestSchema, RuntimeEventEnvelopeSchema, agentNativeContextContinuationResultMatchesRequest, agentProfileSchema, agentRunCancellationAcknowledgementMatchesRequest, agentRunCancellationRequestDigest, canonicalAgentProfileDigest, canonicalCandidateDigest, nativeContextContinuationTurnDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
@@ -6672,4 +6672,4 @@ function tail(s) {
|
|
|
6672
6672
|
//#endregion
|
|
6673
6673
|
export { FileCorpus as $, pickChampion as A, renderLeaderboardMarkdown as At, runBenchmark as B, envKeyProvider as Bt, analyzeTrace as C, completionAuthorizes as Ct, chatWorkerSeam as D, leaderboard as Dt, chatTransportExecutor as E, stopSentinel as Et, strategyAuthorContract as F, McpSpawnFault as Ft, promotionGate as G, recoverRetainedRun as H, resolveMcpServerLaunch as Ht, strategyAuthorSystemPrompt as I, connectStdioMcp as It, definePersona as J, equalKOnCost as K, SandboxRunAbortError as L, materializeLocalMcp as Lt, selectChampion as M, renderPairwiseMarkdown as Mt, assertStrategyContract as N, auditIntent as Nt, createChatSessionStore as O, pairwiseSignificance as Ot, authorStrategy as P, defaultAuditorInstruction as Pt, registerShape as Q, openSandboxRun as R, createMcpEnvironment as Rt, withUntrackedArtifacts as S, superviseDispatch as St, runCoderChecks as T, sentinelCompletion as Tt, startRetainedRun as U, resolveSecretEnv as Ut, reconnectRetainedRun as V, mcpSecretEnvMetadataKey as Vt, startRetainedRunInEnvironment as W, secretEnvOfMcpServer as Wt, builtinShapes as X, runPersonified as Y, createShapeRegistry as Z, VERIFY_TAIL_CHARS as _, resolveSandboxClient as _t, localShell as a, panel as at, settledWorkerOut as b, loopCampaignDispatch as bt, createVerifierEnvironment as c, verify as ct, harvestSurfaceDiffs as d, buildSteerContext as dt, InMemoryCorpus as et, failuresAnalyst as f, createScopeAnalyst as ft, NOTE_MAX_CHARS as g, defineLeaderboard as gt, EVIDENCE_MAX_CHARS as h, harvestCorpus as ht, jjWorkspace as i, loopUntil as it, runStrategyEvolution as j, renderLeaderboardSvg as jt, discriminatingMeans as k, renderLeaderboardHtml as kt, boxSurfaceReader as l, widen as lt, worktreeFanout as m, inProcessSandboxClient as mt, makeFinding$1 as n, fanout as nt, runInWorkspace as o, pipeline as ot, superviseSurface as p, registryScopeAnalyst as pt, trajectoryReport as q, gitWorkspace as r, flatWidenGate as rt, createWaterfallCollector as s, selectValidWinner as st, computeFindingId$1 as t, renderCorpusToInstructions as tt, fsSurfaceReader as u, assertTraceDerivedFindings as ut, closingWorkerNote as v, localSandboxClient as vt, patchDelivered as w, deterministicCompletion as wt, copyUntrackedIntoClone as x, loopDispatch as xt, composeWorkerEvidence as y, inlineSandboxClient as yt, printBenchmarkReport as z, sanitizeMcpToolSchema as zt };
|
|
6674
6674
|
|
|
6675
|
-
//# sourceMappingURL=runtime-
|
|
6675
|
+
//# sourceMappingURL=runtime-yCuqlhou.js.map
|