@tangle-network/agent-runtime 0.271.0 → 0.273.3
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-DGbFPGR3.js → activation-Cx2dKA_l.js} +2 -2
- package/dist/{activation-DGbFPGR3.js.map → activation-Cx2dKA_l.js.map} +1 -1
- package/dist/{activation-BrJmwTLB.d.ts → activation-IfDlhR3J.d.ts} +2 -2
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/candidate-execution/index.js +2 -2
- package/dist/{coordination-driver-iBGMKDvB.js → coordination-driver-CkcW4dxU.js} +155 -80
- package/dist/coordination-driver-CkcW4dxU.js.map +1 -0
- package/dist/{delegate-DOqUvaIz.js → delegate-Dvb1-mE-.js} +2 -2
- package/dist/{delegate-DOqUvaIz.js.map → delegate-Dvb1-mE-.js.map} +1 -1
- package/dist/durable.d.ts +3 -572
- package/dist/durable.js +92 -18
- package/dist/durable.js.map +1 -1
- package/dist/{graph-DnMcepkN.js → graph-C69Uxtzt.js} +14 -8
- package/dist/graph-C69Uxtzt.js.map +1 -0
- package/dist/{improvement-cycle-1IyRJo5h.js → improvement-cycle-CO2HRCQq.js} +4 -4
- package/dist/{improvement-cycle-1IyRJo5h.js.map → improvement-cycle-CO2HRCQq.js.map} +1 -1
- package/dist/{index-CL1dduJd.d.ts → index-D2ipSqkP.d.ts} +4318 -3102
- package/dist/index.d.ts +6 -450
- package/dist/index.js +14 -11
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +3 -3
- package/dist/intelligence.js +5 -5
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-bin-BPZ9tt1W.js → loop-runner-bin-B9MIq9O7.js} +3 -3
- package/dist/{loop-runner-bin-BPZ9tt1W.js.map → loop-runner-bin-B9MIq9O7.js.map} +1 -1
- package/dist/{loop-runner-bin-O_vM1w8Y.d.ts → loop-runner-bin-ThlwVkvo.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 +5 -5
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-DWHxpwx2.d.ts → openai-tools-Bb0mAr5z.d.ts} +2 -2
- package/dist/{prepare-oHUQdC5-.js → prepare-DVlvGP7V.js} +2 -2
- package/dist/{prepare-oHUQdC5-.js.map → prepare-DVlvGP7V.js.map} +1 -1
- package/dist/profiles.d.ts +2 -2
- package/dist/{protected-model-port-DqF0qDU6.js → protected-model-port-BrWgsCnl.js} +2 -2
- package/dist/{protected-model-port-DqF0qDU6.js.map → protected-model-port-BrWgsCnl.js.map} +1 -1
- package/dist/{protected-redaction--F3v1oo8.js → protected-redaction-DylCC_ot.js} +14 -20
- package/dist/protected-redaction-DylCC_ot.js.map +1 -0
- package/dist/{provision-supervisor-Cy8pqE95.js → provision-supervisor-BKAvsDtP.js} +3 -3
- package/dist/{provision-supervisor-Cy8pqE95.js.map → provision-supervisor-BKAvsDtP.js.map} +1 -1
- package/dist/{runtime-DVjIH1eo.js → runtime-CHxXrUeZ.js} +2079 -1441
- package/dist/runtime-CHxXrUeZ.js.map +1 -0
- package/dist/{server-CN9vzbSe.js → server-2OeFrEVG.js} +3 -3
- package/dist/{server-CN9vzbSe.js.map → server-2OeFrEVG.js.map} +1 -1
- package/dist/{stream-agent-turn-DbEsKgb_.d.ts → stream-agent-turn-ewm3BZAp.d.ts} +15 -16
- package/dist/{structural-rollout-I92sIfNl.js → structural-rollout-DCUprNpH.js} +2 -2
- package/dist/{structural-rollout-I92sIfNl.js.map → structural-rollout-DCUprNpH.js.map} +1 -1
- package/dist/{substrate-CbC03Vzo.d.ts → substrate-VKjmrksz.d.ts} +2 -2
- package/dist/{supervise-DJ_1i9vj.js → supervise-Dej5aSDa.js} +211 -48
- package/dist/supervise-Dej5aSDa.js.map +1 -0
- package/dist/{supervisor-Cvd5mf7x.js → supervisor-DdKPGluv.js} +952 -221
- package/dist/supervisor-DdKPGluv.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +60 -60
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-Bo7z5aG5.d.ts → types-DMRc3jru.d.ts} +356 -64
- package/package.json +5 -5
- package/dist/coordination-driver-iBGMKDvB.js.map +0 -1
- package/dist/graph-DnMcepkN.js.map +0 -1
- package/dist/protected-redaction--F3v1oo8.js.map +0 -1
- package/dist/runtime-DVjIH1eo.js.map +0 -1
- package/dist/supervise-DJ_1i9vj.js.map +0 -1
- package/dist/supervisor-Cvd5mf7x.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { An as TraceSource, C as ExecutorToolCall,
|
|
1
|
+
import { An as TraceSource, C as ExecutorToolCall, Cr as UnavailablePausePolicy, Ja as BackendErrorDetail, Oa as Validator, Ta as SandboxClient, X as Scope, Y as Runtime, _a as LoopTokenUsage, b as ExecutorRegistry, f as ExecutorCancellation, g as ExecutorFactory, gt as UsageEvent, io as RuntimeStreamEvent, p as ExecutorCancellationRequest, qa as AgentTaskStatus, ra as ExecCtx, rt as Spend, s as DefaultVerdict, y as ExecutorProgressEvent, zn as ExecutorProgress } from "./types-DMRc3jru.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";
|
|
@@ -8,15 +8,16 @@ import { BackendType, CreateSandboxOptions, PromptOptions, Sandbox, SandboxEvent
|
|
|
8
8
|
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$2, CheckpointRef, CheckpointRequest, CreateAgentEnvironmentInput, CreateAgentEnvironmentInput as CreateAgentEnvironmentInput$1, ExecRequest, ExecResult, ForkRequest, PlacementInfo, ResourceRequest, WorkspaceRequest } from "@tangle-network/agent-interface/environment-provider";
|
|
9
9
|
//#region src/redact.d.ts
|
|
10
10
|
/**
|
|
11
|
+
* Redaction for values that may leave the Runtime process. The built-in
|
|
12
|
+
* redactor is agent-eval's redaction core (`@tangle-network/agent-eval/traces`,
|
|
13
|
+
* default profile): credentials found by field name or value shape are
|
|
14
|
+
* replaced whole, email, card, SSN and phone values in place, and token counts
|
|
15
|
+
* such as `inputTokens` or `max_tokens` are kept. A customer with
|
|
16
|
+
* domain-specific PII supplies their own `redact` hook.
|
|
11
17
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* PII supplies their own `redact` hook.
|
|
16
|
-
*
|
|
17
|
-
* This is intentionally narrower than `src/sanitize.ts` (which redacts the
|
|
18
|
-
* runtime's *event envelope* field-by-field): here the value is opaque
|
|
19
|
-
* customer payload, so the scrub is value-shaped, not schema-shaped.
|
|
18
|
+
* This is narrower than `src/sanitize.ts`, which drops fields of the runtime's
|
|
19
|
+
* *event envelope* unless the caller opts in: here the value is opaque customer
|
|
20
|
+
* payload, so the scrub is value-shaped, not schema-shaped.
|
|
20
21
|
*
|
|
21
22
|
* @experimental
|
|
22
23
|
*/
|
|
@@ -24,17 +25,15 @@ import { AgentEnvironment, AgentEnvironment as AgentEnvironment$1, AgentEnvironm
|
|
|
24
25
|
* must not throw on cyclic input (the default tolerates cycles). */
|
|
25
26
|
type Redactor = (value: unknown) => unknown;
|
|
26
27
|
/**
|
|
27
|
-
* The built-in redactor.
|
|
28
|
-
*
|
|
29
|
-
* Cycle-safe (a seen-set short-circuits self-referential payloads to
|
|
30
|
-
* `'[circular]'`), depth-bounded, and total — never throws on customer input.
|
|
28
|
+
* The built-in redactor. Cycle-safe, depth-bounded and total: it never throws
|
|
29
|
+
* on customer input and never mutates it.
|
|
31
30
|
*/
|
|
32
31
|
declare function defaultRedactor(value: unknown): unknown;
|
|
33
32
|
/**
|
|
34
33
|
* Resolve the redactor a client uses. A caller-supplied hook handles
|
|
35
34
|
* domain-specific values first, then the built-in scrubber still removes
|
|
36
|
-
*
|
|
37
|
-
*
|
|
35
|
+
* credentials and personal data. Returning `false` is the explicit opt-out for
|
|
36
|
+
* already-reviewed public values.
|
|
38
37
|
*/
|
|
39
38
|
declare function resolveRedactor(redact: Redactor | false | undefined): Redactor;
|
|
40
39
|
//#endregion
|
|
@@ -2270,4 +2269,4 @@ declare function streamAgentTurn(backend: AgentTurnBackend, input: AgentTurnInpu
|
|
|
2270
2269
|
declare function collectAgentTurn(stream: AsyncIterable<RuntimeStreamEvent>): Promise<CollectedAgentTurn>;
|
|
2271
2270
|
//#endregion
|
|
2272
2271
|
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-
|
|
2272
|
+
//# sourceMappingURL=stream-agent-turn-ewm3BZAp.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ba as promptOptionsFromAgentTurnInput, Ia as armDeadlineTimer, Ji as unknownExecutionBindingReceipt, Ki as runtimeOwnedPendingExecutorMaterialization, Li as knownExecutionBindingReceipt, M as withDriverExecutor, Ot as createExecutor, Pa as awaitAbortable, Pi as authoredProfileDigest, Ri as knownMaterializationReceipt, Rt as InMemoryResultBlobStore, Tt as captureReusableExecutorConfig, Ui as runtimeOwnedExecutorExecutionBinding, Va as providerMessageText, Wi as runtimeOwnedExecutorMaterialization, Xi as executableAgentProfileSnapshot, Yi as unknownMaterializationReceipt, Yn as observedModelMatchesDeclared, aa as createSandboxUsageLedger, ca as mapSandboxEvent, ea as projectSandboxOutcome, ia as createSandboxToolPartState, kt as createExecutorRegistry, la as mapSandboxToolEvent, r as createSupervisor, ra as canonicalStreamEventFromSandboxEvent, sa as isSandboxTerminalEvent, ta as readSandboxOutcome, za as promptFromAgentTurnInput, zt as InMemorySpawnJournal } from "./supervisor-DdKPGluv.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-DCUprNpH.js.map
|