@tangle-network/agent-runtime 0.308.0 → 0.311.2
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-5Usfsfzr.d.ts → activation-BxR-Im_k.d.ts} +3 -3
- package/dist/{activation-DbnacUhI.js → activation-Dvl9gE_g.js} +3 -3
- package/dist/{activation-DbnacUhI.js.map → activation-Dvl9gE_g.js.map} +1 -1
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/{bundle-E6mbRX2P.js → bundle-BK3XBY6q.js} +2 -2
- package/dist/{bundle-E6mbRX2P.js.map → bundle-BK3XBY6q.js.map} +1 -1
- package/dist/candidate-execution/index.js +5 -5
- package/dist/{coordination-driver-BYIjecHz.js → coordination-driver-CIfgl4Yj.js} +3 -3
- package/dist/{coordination-driver-BYIjecHz.js.map → coordination-driver-CIfgl4Yj.js.map} +1 -1
- package/dist/{delegate-KCK7WdZv.js → delegate-05Ddb4_L.js} +2 -2
- package/dist/{delegate-KCK7WdZv.js.map → delegate-05Ddb4_L.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +4 -4
- package/dist/{graph-BUu0KQVW.js → graph-BNVGyp1P.js} +6 -4
- package/dist/graph-BNVGyp1P.js.map +1 -0
- package/dist/{improvement-cycle-BylwWCcl.js → improvement-cycle-Ig1_rWAw.js} +6 -6
- package/dist/{improvement-cycle-BylwWCcl.js.map → improvement-cycle-Ig1_rWAw.js.map} +1 -1
- package/dist/{index-EibbsKsH.d.ts → index-B0c5PmmO.d.ts} +27 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +3 -3
- package/dist/intelligence.js +7 -7
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +10 -9
- package/dist/{loop-runner-bin-DcF6ZEWi.js → loop-runner-bin-Beh7PECB.js} +3 -3
- package/dist/{loop-runner-bin-DcF6ZEWi.js.map → loop-runner-bin-Beh7PECB.js.map} +1 -1
- package/dist/{loop-runner-bin-jST1hm-z.d.ts → loop-runner-bin-drXESgaI.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 +5 -5
- package/dist/{openai-tools-BuFqhp5i.d.ts → openai-tools-CJHfmFzg.d.ts} +2 -2
- package/dist/{prepare-CulUz6Wm.js → prepare-8A1CAWG8.js} +3 -3
- package/dist/{prepare-CulUz6Wm.js.map → prepare-8A1CAWG8.js.map} +1 -1
- package/dist/{profile-DY9lT3gH.js → profile-BhQShsM1.js} +2 -2
- package/dist/{profile-DY9lT3gH.js.map → profile-BhQShsM1.js.map} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{protected-model-port-BT2iYAsU.js → protected-model-port-ug52OmvB.js} +4 -4
- package/dist/{protected-model-port-BT2iYAsU.js.map → protected-model-port-ug52OmvB.js.map} +1 -1
- package/dist/{provision-supervisor-Cvp4Nm-y.js → provision-supervisor-CfKlAMTb.js} +4 -4
- package/dist/{provision-supervisor-Cvp4Nm-y.js.map → provision-supervisor-CfKlAMTb.js.map} +1 -1
- package/dist/{runtime-Y46Lwt_d.js → runtime-DsnHqwNx.js} +9 -9
- package/dist/{runtime-Y46Lwt_d.js.map → runtime-DsnHqwNx.js.map} +1 -1
- package/dist/{search-executor-BPpfxu9c.js → search-executor-BNLvgp0X.js} +3 -3
- package/dist/{search-executor-BPpfxu9c.js.map → search-executor-BNLvgp0X.js.map} +1 -1
- package/dist/{server-DIrQYUnn.js → server-Bx4d5imQ.js} +4 -4
- package/dist/{server-DIrQYUnn.js.map → server-Bx4d5imQ.js.map} +1 -1
- package/dist/{stream-agent-turn-op3m9IEY.d.ts → stream-agent-turn-fd2XzrTv.d.ts} +2 -2
- package/dist/{substrate-B1VzcyoB.d.ts → substrate-GW6LFx4A.d.ts} +2 -2
- package/dist/{supervise-CmeN8ipv.js → supervise-D6MgxpMI.js} +35 -6
- package/dist/supervise-D6MgxpMI.js.map +1 -0
- package/dist/{supervisor-CSMb8HBU.js → supervisor-WYRLsCp1.js} +75 -9
- package/dist/supervisor-WYRLsCp1.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +14 -14
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-B2IOlN8R.d.ts → types-RlLmOHFR.d.ts} +59 -11
- package/dist/{workspace-streams-DaQceg2p.js → workspace-streams-BEvSX97P.js} +13 -2
- package/dist/workspace-streams-BEvSX97P.js.map +1 -0
- package/package.json +2 -2
- package/skills/profile-authoring/SKILL.md +8 -12
- package/dist/graph-BUu0KQVW.js.map +0 -1
- package/dist/supervise-CmeN8ipv.js.map +0 -1
- package/dist/supervisor-CSMb8HBU.js.map +0 -1
- package/dist/workspace-streams-DaQceg2p.js.map +0 -1
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bt as RunGraphTestOptions, Wt as runGraphWithTestBrain, bc as superviseWithTestBrain, fl as supervisorAgentWithTestBrain, mn as driverAgent, pn as DriverAgentOptions, rl as SupervisorAgentTestDeps, vc as SuperviseTestOptions } from "./index-
|
|
2
|
-
import { Ln as ToolLoopCallContext, Rn as ToolLoopChat } from "./stream-agent-turn-
|
|
1
|
+
import { Bt as RunGraphTestOptions, Wt as runGraphWithTestBrain, bc as superviseWithTestBrain, fl as supervisorAgentWithTestBrain, mn as driverAgent, pn as DriverAgentOptions, rl as SupervisorAgentTestDeps, vc as SuperviseTestOptions } from "./index-B0c5PmmO.js";
|
|
2
|
+
import { Ln as ToolLoopCallContext, Rn as ToolLoopChat } from "./stream-agent-turn-fd2XzrTv.js";
|
|
3
3
|
import { AgentImprovementProposal, AgentProfile, AgentProfileImprovementMeasuredComparison, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
4
4
|
//#region src/testing/index.d.ts
|
|
5
5
|
/** A proposal produced by Runtime's opaque profile-improvement path. */
|
package/dist/testing.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { F as immutableCandidateValue, j as canonicalCandidateDigest$1 } from "./workspace-streams-
|
|
2
|
-
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-
|
|
3
|
-
import { i as applyExactAgentProfileDiff, p as parseExactAgentProfile } from "./profile-
|
|
4
|
-
import { r as driverAgent } from "./coordination-driver-
|
|
5
|
-
import { a as superviseWithTestBrain, m as supervisorAgentWithTestBrain } from "./supervise-
|
|
6
|
-
import { i as runGraphWithTestBrain } from "./graph-
|
|
1
|
+
import { F as immutableCandidateValue, j as canonicalCandidateDigest$1 } from "./workspace-streams-BEvSX97P.js";
|
|
2
|
+
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-Ig1_rWAw.js";
|
|
3
|
+
import { i as applyExactAgentProfileDiff, p as parseExactAgentProfile } from "./profile-BhQShsM1.js";
|
|
4
|
+
import { r as driverAgent } from "./coordination-driver-CIfgl4Yj.js";
|
|
5
|
+
import { a as superviseWithTestBrain, m as supervisorAgentWithTestBrain } from "./supervise-D6MgxpMI.js";
|
|
6
|
+
import { i as runGraphWithTestBrain } from "./graph-BNVGyp1P.js";
|
|
7
7
|
import { SANDBOX_SIZE_PRESET_NAMES, canonicalAgentProfileDigest } from "@tangle-network/agent-interface";
|
|
8
8
|
//#region src/testing/fixtures/agent-improvement-proposal.json
|
|
9
9
|
var agent_improvement_proposal_default = {
|
|
10
10
|
changedSurfaces: ["prompt"],
|
|
11
|
-
digest: "sha256:
|
|
11
|
+
digest: "sha256:ac1bc94d8d1e353c9cb888263f3927c3e29ea1930d308d6c2d2c394a663c2ce0",
|
|
12
12
|
evaluation: {
|
|
13
13
|
"decision": {
|
|
14
14
|
"contributingChecks": [
|
|
@@ -4579,7 +4579,7 @@ var agent_improvement_proposal_default = {
|
|
|
4579
4579
|
],
|
|
4580
4580
|
"metadata": {
|
|
4581
4581
|
"fixture": "agent-improvement-proposal",
|
|
4582
|
-
"runtimeVersion": "0.
|
|
4582
|
+
"runtimeVersion": "0.311.2"
|
|
4583
4583
|
},
|
|
4584
4584
|
"objectives": [
|
|
4585
4585
|
{
|
|
@@ -4690,8 +4690,8 @@ var agent_improvement_proposal_default = {
|
|
|
4690
4690
|
"baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
|
|
4691
4691
|
"candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
|
|
4692
4692
|
"kind": "agent-eval-loop",
|
|
4693
|
-
"recordDigest": "sha256:
|
|
4694
|
-
"runId": "agent-runtime-0.
|
|
4693
|
+
"recordDigest": "sha256:c1909eff8e67a2efccc4206cc84fa62f291a13d0df771b3fe3d8469df0fb3a47",
|
|
4694
|
+
"runId": "agent-runtime-0.311.2-proposal-fixture",
|
|
4695
4695
|
"schema": "agent-candidate-experiment"
|
|
4696
4696
|
}
|
|
4697
4697
|
},
|
|
@@ -4714,13 +4714,13 @@ var agent_improvement_proposal_default = {
|
|
|
4714
4714
|
}],
|
|
4715
4715
|
kind: "agent-improvement-proposal",
|
|
4716
4716
|
proposedAt: "2026-07-10T01:00:00.000Z",
|
|
4717
|
-
runId: "agent-runtime-0.
|
|
4717
|
+
runId: "agent-runtime-0.311.2-proposal-fixture"
|
|
4718
4718
|
};
|
|
4719
4719
|
//#endregion
|
|
4720
4720
|
//#region src/testing/fixtures/agent-profile-improvement-proposal.json
|
|
4721
4721
|
var agent_profile_improvement_proposal_default = {
|
|
4722
4722
|
changedSurfaces: ["prompt", "skills"],
|
|
4723
|
-
digest: "sha256:
|
|
4723
|
+
digest: "sha256:a7ae8a184ce0f4ace1673e5a8f67a828c27d9fc466db30711d522749b54d19f8",
|
|
4724
4724
|
evaluation: {
|
|
4725
4725
|
"decision": {
|
|
4726
4726
|
"contributingChecks": [
|
|
@@ -6354,7 +6354,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6354
6354
|
],
|
|
6355
6355
|
"metadata": {
|
|
6356
6356
|
"fixture": "agent-profile-improvement-proposal",
|
|
6357
|
-
"runtimeVersion": "0.
|
|
6357
|
+
"runtimeVersion": "0.311.2"
|
|
6358
6358
|
},
|
|
6359
6359
|
"objectives": [
|
|
6360
6360
|
{
|
|
@@ -6465,7 +6465,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6465
6465
|
"baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
|
|
6466
6466
|
"candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
|
|
6467
6467
|
"kind": "agent-eval-loop",
|
|
6468
|
-
"recordDigest": "sha256:
|
|
6468
|
+
"recordDigest": "sha256:1eb86e9000c583e67176a7849412c199aa706b4d4e27a63dd1f2f6c3f1110d0a",
|
|
6469
6469
|
"runId": "profile-improvement-1",
|
|
6470
6470
|
"schema": "agent-profile-improvement-experiment"
|
|
6471
6471
|
}
|
package/dist/tui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _t as SupervisorCleanupReceipt, gt as ProvisionedSupervisor, ht as ProvisionSupervisorRequest, mt as ProvisionSupervisorConnection, vt as provisionSupervisor } from "../index-
|
|
1
|
+
import { _t as SupervisorCleanupReceipt, gt as ProvisionedSupervisor, ht as ProvisionSupervisorRequest, mt as ProvisionSupervisorConnection, vt as provisionSupervisor } from "../index-B0c5PmmO.js";
|
|
2
2
|
//#region src/tui/top-app.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* The interactive side of the supervisor-run TUI: a keypress/mouse loop over the frames
|
package/dist/tui/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as provisionSupervisor } from "../provision-supervisor-
|
|
1
|
+
import { t as provisionSupervisor } from "../provision-supervisor-CfKlAMTb.js";
|
|
2
2
|
import { a as renderTopFrameWithLayout, i as renderTopFrame, n as runTopApp, r as loadTopSnapshot, t as renderTopOnce } from "../top-app-DaiR4LXM.js";
|
|
3
3
|
export { loadTopSnapshot, provisionSupervisor, renderTopFrame, renderTopFrameWithLayout, renderTopOnce, runTopApp };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as RuntimeHooks } from "./runtime-hooks-Bj6wJHlH.js";
|
|
2
2
|
import { g as AgentCandidateArtifactPort, l as AgentCandidateWorkspaceArchiveLimits, n as AgentCandidateWorkspaceTree } from "./workspace-streams-CpSmt3zx.js";
|
|
3
|
-
import { AgentCandidateArtifactRef, AgentCandidateWorkspaceSnapshotEvidence, AgentExactRunControlRef, AgentInteractiveSession, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStatus, AgentNativeContextContinuationOptions, AgentNativeContextContinuationResult, AgentProfile, AgentSessionStatus, AgentTurnResult, ChildTaskEvent, ContextTransferRequest, HarnessType, InputPart, InteractionAcknowledgement, InteractionRequest, InteractionResponseCommand, NativeContextBoundaryProof, NativeContextContinuationRequest, NativeContextContinuationTurn, RequestedInteractions, RuntimeEventEnvelope, Sha256Digest, StreamEvent, WorkspaceCheckpointRef, WorkspaceCheckpointRequest } from "@tangle-network/agent-interface";
|
|
3
|
+
import { AgentCandidateArtifactRef, AgentCandidateWorkspaceSnapshotEvidence, AgentExactRunControlRef, AgentInteractiveSession, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStatus, AgentNativeContextContinuationOptions, AgentNativeContextContinuationResult, AgentProfile, AgentSessionStatus, AgentTurnResult, ChildTaskEvent, ContextTransferRequest, HarnessType, InputPart, InteractionAcknowledgement, InteractionRequest, InteractionResponseCommand, NativeContextBoundaryProof, NativeContextContinuationRequest, NativeContextContinuationTurn, ReasoningEffort, RequestedInteractions, RuntimeEventEnvelope, Sha256Digest, StreamEvent, WorkspaceCheckpointRef, WorkspaceCheckpointRequest } from "@tangle-network/agent-interface";
|
|
4
4
|
import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, ConfigError, ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, DataAcquisitionPlan, DefaultVerdict, DefaultVerdict as DefaultVerdict$1, JudgeError, KnowledgeReadinessReport, KnowledgeRequirement, NotFoundError, RunRecord, ToolSpan, TraceAnalysisStore, TraceStore, UserQuestion, ValidationError } from "@tangle-network/agent-eval";
|
|
5
5
|
import { AgentRunOutcome } from "@tangle-network/sandbox/runtime";
|
|
6
6
|
import { BackendType, CreateRequestOptions, CreateSandboxOptions, PromptOptions, SandboxEvent, SandboxInstance } from "@tangle-network/sandbox";
|
|
@@ -1851,6 +1851,28 @@ interface SlotPermit {
|
|
|
1851
1851
|
*/
|
|
1852
1852
|
declare function createWorkerSlots(max?: number): WorkerSlots;
|
|
1853
1853
|
//#endregion
|
|
1854
|
+
//#region src/runtime/supervise/deadline.d.ts
|
|
1855
|
+
/**
|
|
1856
|
+
* What a steerable child's own time box does: a check-in, not a kill. At the child's deadline its
|
|
1857
|
+
* lead's scope delivers {@link DEADLINE_CHECK_IN_MESSAGE} to the child's inbox and keeps it
|
|
1858
|
+
* running; the child is stopped (reason `child deadline exceeded`) only once it then makes no
|
|
1859
|
+
* progress for `idleMs`. The run's own deadline, the budgets and cancellation still stop it at once.
|
|
1860
|
+
* `false` restores the hard kill at the time box. A child that exposes no inbox cannot be told,
|
|
1861
|
+
* so it is stopped at its time box as before.
|
|
1862
|
+
*
|
|
1863
|
+
* Measured 2026-10-07 on Discovery run terraform-dc-tokens-20261007e-codex1: four of 42 directors
|
|
1864
|
+
* were killed at the 90-minute boxes their root set, three of them mid-turn, losing 27, 6 and 91
|
|
1865
|
+
* minutes since their last recorded page, and each successor spent 12 to 19 minutes re-reading
|
|
1866
|
+
* before its first page.
|
|
1867
|
+
*/
|
|
1868
|
+
type DeadlineCheckIn = false | {
|
|
1869
|
+
readonly idleMs?: number;
|
|
1870
|
+
};
|
|
1871
|
+
/** How long a checked-in child may go without progress before it is stopped: 30 min. */
|
|
1872
|
+
declare const DEFAULT_CHECK_IN_IDLE_MS: number;
|
|
1873
|
+
/** The check-in a child receives at its own time box. */
|
|
1874
|
+
declare const DEADLINE_CHECK_IN_MESSAGE: string;
|
|
1875
|
+
//#endregion
|
|
1854
1876
|
//#region src/errors.d.ts
|
|
1855
1877
|
/**
|
|
1856
1878
|
*
|
|
@@ -5595,6 +5617,17 @@ type SpawnEvent = {
|
|
|
5595
5617
|
resumeAt: string;
|
|
5596
5618
|
seq: number;
|
|
5597
5619
|
at: string;
|
|
5620
|
+
} | {
|
|
5621
|
+
/** The root resumed on another model or reasoning effort (`SupervisorOpts.rootModelChange`).
|
|
5622
|
+
* The run keeps its id, recorded identity and settled children; this record says when the
|
|
5623
|
+
* model changed and why. Informational: replay and cost readers skip it. */
|
|
5624
|
+
kind: 'model-changed';
|
|
5625
|
+
id: NodeId;
|
|
5626
|
+
from: RootModel;
|
|
5627
|
+
to: RootModel;
|
|
5628
|
+
reason: string;
|
|
5629
|
+
seq: number;
|
|
5630
|
+
at: string;
|
|
5598
5631
|
} | {
|
|
5599
5632
|
/** A manager's driver turn was refused by an unavailable upstream (an exhausted quota, a
|
|
5600
5633
|
* rate limit, an overload), and the driver paused before re-entering instead of failing.
|
|
@@ -5651,11 +5684,28 @@ interface Supervisor<Task, Out> {
|
|
|
5651
5684
|
interface RecursiveReservationPolicy {
|
|
5652
5685
|
readonly ownerShare: number;
|
|
5653
5686
|
}
|
|
5687
|
+
/** The model a root runs on: its profile's `model.default` and `model.reasoningEffort`. */
|
|
5688
|
+
interface RootModel {
|
|
5689
|
+
readonly model?: string;
|
|
5690
|
+
readonly reasoningEffort?: ReasoningEffort;
|
|
5691
|
+
}
|
|
5692
|
+
/** A resumed root that runs on another model than its recorded profile names. */
|
|
5693
|
+
interface RootModelChange {
|
|
5694
|
+
/** The model the recorded root profile names. */
|
|
5695
|
+
readonly from: RootModel;
|
|
5696
|
+
/** The model the root runs on from this entry. */
|
|
5697
|
+
readonly to: RootModel;
|
|
5698
|
+
readonly reason: string;
|
|
5699
|
+
}
|
|
5654
5700
|
interface SupervisorOpts {
|
|
5655
5701
|
/** The root conserved-pool ceiling (tokens + usd + iterations + deadline). */
|
|
5656
5702
|
readonly budget: Budget;
|
|
5657
5703
|
/** Exact root profile/task identity supplied by the one-call composition surface. */
|
|
5658
5704
|
readonly rootIdentity?: NodeExecutionIdentity;
|
|
5705
|
+
/** The root resumes on another model. `rootIdentity` stays the recorded root's; when the model
|
|
5706
|
+
* differs from the one the run last ran, the journal gains one `model-changed` record. A fresh
|
|
5707
|
+
* run refuses it. */
|
|
5708
|
+
readonly rootModelChange?: RootModelChange;
|
|
5659
5709
|
/** Trusted composition evidence for a root whose `act` drives an external backend. A generic
|
|
5660
5710
|
* root omits it and is durably marked unknown; model-facing Scope never receives this writer. */
|
|
5661
5711
|
readonly rootMaterialization?: RootMaterialization;
|
|
@@ -5680,6 +5730,10 @@ interface SupervisorOpts {
|
|
|
5680
5730
|
/** Opt in to keeping each manager's inference share free of its children's slices. A resumed
|
|
5681
5731
|
* run must use the same policy. */
|
|
5682
5732
|
readonly reservationPolicy?: RecursiveReservationPolicy;
|
|
5733
|
+
/** What a child's own time box does. Default: a check-in (the child is told to save its state and
|
|
5734
|
+
* submit what it has, and is stopped only once it then makes no progress for 30 min); `false`
|
|
5735
|
+
* stops it at the time box. See `deadline.ts` `DeadlineCheckIn`. */
|
|
5736
|
+
readonly deadlineCheckIn?: DeadlineCheckIn;
|
|
5683
5737
|
/**
|
|
5684
5738
|
* OTP intensity breaker: more than `maxRestarts` child restarts within `withinMs`
|
|
5685
5739
|
* trips the supervisor to `no-winner` rather than restarting forever.
|
|
@@ -6119,6 +6173,7 @@ interface RootHandle<Out> {
|
|
|
6119
6173
|
/** Optional for structural compatibility with existing view/signal/abort wrappers. Handles
|
|
6120
6174
|
* minted by `createRootHandle` implement the required form in `SteerableRootHandle`. */
|
|
6121
6175
|
deliver?(msg: unknown): boolean;
|
|
6176
|
+
/** Cancel the live tree. Unsupported signals from older callers throw a validation error. */
|
|
6122
6177
|
signal(msg: RootSignal): void;
|
|
6123
6178
|
abort(reason?: string): void;
|
|
6124
6179
|
/** Phantom: binds the handle to the supervised run's output type. Type-only — never
|
|
@@ -6130,17 +6185,10 @@ interface RootHandle<Out> {
|
|
|
6130
6185
|
interface SteerableRootHandle<Out> extends RootHandle<Out> {
|
|
6131
6186
|
deliver(msg: unknown): boolean;
|
|
6132
6187
|
}
|
|
6133
|
-
/**
|
|
6188
|
+
/** Cancellation of a running root. Send steering or answers through the root's `deliver` inbox. */
|
|
6134
6189
|
type RootSignal = {
|
|
6135
|
-
kind: 'pause';
|
|
6136
|
-
} | {
|
|
6137
|
-
kind: 'resume';
|
|
6138
|
-
} | {
|
|
6139
6190
|
kind: 'cancel';
|
|
6140
6191
|
reason?: string;
|
|
6141
|
-
} | {
|
|
6142
|
-
kind: 'ask';
|
|
6143
|
-
question: string;
|
|
6144
6192
|
};
|
|
6145
6193
|
/**
|
|
6146
6194
|
* The progressive-widening gate (MCTS-PW). Decides whether a settled child is
|
|
@@ -6158,5 +6206,5 @@ interface WidenGate<Out> {
|
|
|
6158
6206
|
readonly judgeExempt?: boolean;
|
|
6159
6207
|
}
|
|
6160
6208
|
//#endregion
|
|
6161
|
-
export {
|
|
6162
|
-
//# sourceMappingURL=types-
|
|
6209
|
+
export { Settled as $, OpenAIChatToolChoice as $a, createBudgetPool as $i, ProviderWorkspaceAttemptProvenance as $n, NotFoundError as $r, RuntimeEventCollector as $t, NodeExecutionIdentity as A, RuntimeRunCompleteInput as Aa, RetainedRunEnvironmentAdmission as Ai, RetainedInteractiveEnvironmentInput as An, ContinuationContext as Ar, workerTraceSeamKey as At, ResultBlobStore as B, AgentBackendInput as Ba, BudgetPool as Bi, ReadableEnvironment as Bn, admitContinuationPolicy as Br, OtelExporter as Bt, ExecutorToolCall as C, MountRecorder as Ca, RetainedInteractiveStartedAdmission as Ci, TeamProgress as Cn, RetainedPendingCause as Cr, WorkerTraceUnavailableReason as Ct, MaterializedExecutionIdentity as D, SelectionReceipt as Da, RetainedRunCancellation as Di, ReconnectRetainedInteractiveRunOptions as Dn, CheckUnavailableError as Dr, readWorkerTraceContext as Dt, HeldEnvironment as E, SandboxClient as Ea, RetainedRunCancelOptions as Ei, readWorkerProgress as En, CheckRead as Er, WorkerTraceSeamCarrier as Et, ProviderModelAttemptEvidence as F, RuntimeRunRow as Fa, RetainedRunSnapshot as Fi, HarnessTranscriptCapture as Fn, ContinuationPanelResult as Fr, traceContextToEnv as Ft, RootMaterialization as G, AgentTaskContext as Ga, ReservationFloor as Gi, HarnessTranscriptReadLimits as Gn, failedItems as Gr, buildRuntimeEventOtelSpans as Gt, ResumedWork as H, AgentKnowledgeProvider as Ha, BudgetReadout as Hi, harnessTranscriptArtifact as Hn, checkVerdictOf as Hr, RuntimeEventOtelOptions as Ht, ProviderModelExecutionEvidence as I, RuntimeRunStatus as Ia, RetainedRunStartMaterial as Ii, HarnessTranscriptEvidence as In, ContinuationPolicy as Ir, LoopSpanNode as It, RootProviderModelEvidence as J, AgentTaskStatus as Ja, ReservationShortfall as Ji, RetainedHarnessTranscriptDescriptor as Jn, AgentEvalError$1 as Jr, generateSpanId as Jt, RootModel as K, AgentTaskRunResult as Ka, ReservationHolder as Ki, HarnessTranscriptReadOptions as Kn, passedItems as Kr, createOpenInferenceFileExporter as Kt, RecursiveReservationPolicy as L, startRuntimeRun as La, RetainedRunTurnInput as Li, HarnessTranscriptFile as Ln, ContinuationProfile as Lr, OtelAttribute as Lt, NodeSnapshot as M, RuntimeRunHandle as Ma, RetainedRunHandle as Mi, RetainedInteractiveStartMaterial as Mn, ContinuationNoteInput as Mr, createPropagatingTraceEmitter as Mt, NodeStatus as N, RuntimeRunOptions as Na, RetainedRunIntentAdmission as Ni, StartRetainedInteractiveRunOptions as Nn, ContinuationPanel as Nr, mergeTraceEnv as Nt, MaterializedModelIdentity as O, ValidationCtx as Oa, RetainedRunDispatchedAdmission as Oi, RecoverRetainedInteractiveRunOptions as On, CheckVerdict as Or, workerTraceEnv as Ot, ProfileMaterializationReceipt as P, RuntimeRunPersistenceAdapter as Pa, RetainedRunReplayPoint as Pi, HarnessTranscriptArtifact as Pn, ContinuationPanelInput as Pr, readTraceContextFromEnv as Pt, Scope as Q, OpenAIChatTool as Qa, ReserveOptions as Qi, ProviderNativeCapturePhase as Qn, JudgeError as Qr, toOtelAttributes as Qt, ResourceLimit as R, AgentAdapter as Ra, StartRetainedRunInEnvironmentOptions as Ri, HarnessTranscriptUnavailable as Rn, PanelFinding as Rr, OtelExportConfig as Rt, ExecutorTeardownWarning as S, MountManifestEntry as Sa, RetainedInteractiveIntentAdmission as Si, ScopeProgressInput as Sn, RetainedChildRecovery as Sr, WorkerTraceEvidence as St, Handle as T, RunProvenance as Ta, RetainedRunAdmissionHook as Ti, createActivityLog as Tn, CONTINUATION_FACTS as Tr, WorkerTraceResolver as Tt, RetainedExecutionState as U, AgentRuntimeEvent as Ua, BudgetReconcileFault as Ui, persistHarnessTranscript as Un, distillFindings as Ur, buildLoopOtelSpans as Ut, ResumedKeyState as V, AgentExecutionBackend as Va, BudgetPoolRestore as Vi, captureHarnessTranscript as Vn, admitFinding as Vr, OtelSpan as Vt, RootHandle as W, AgentRuntimeEventSink as Wa, LeakedReservation as Wi, HarnessTranscriptMetadata as Wn, expandQuestions as Wr, buildLoopSpanNodes as Wt, RootStreamReceipt as X, KnowledgeReadinessDecision as Xa, ReservationTicket as Xi, retainHarnessTranscript as Xn, BackendTransportError as Xr, padSpanId as Xt, RootSignal as Y, BackendErrorDetail as Ya, ReservationStage as Yi, resolveHarnessTranscriptCapture as Yn, AgentEvalErrorCode as Yr, loopEventToOtelSpan as Yt, Runtime as Z, OpenAIChatResponseFormat as Za, ReservationWaitRefused as Zi, ProviderCheckpointCaptureContext as Zn, ConfigError as Zr, padTraceId as Zt, ExecutorMaterialization as _, LoopTeardownFailedPayload as _a, RecoverRetainedRunIntentOptions as _i, sandboxSessionTraceSource as _n, DriverRetryPolicy as _r, UnknownMaterializationReason as _t, BudgetOverspend as a, Iteration as aa, RuntimeRunStateError as ai, SanitizedKnowledgeRequirement as an, RuntimeStreamEvent as ao, ProviderWorkspaceRetentionPort as ar, Spend as at, ExecutorRegistry as b, LoopTraceEvent as ba, RetainedInteractiveAdmission as bi, DEFAULT_STALL_AFTER_MS as bn, upstreamUnavailableSignal as br, WorkerInteractiveSession as bt, EnvironmentTeardownReceipt as c, LoopIterationDispatchPayload as ca, DEFAULT_CHECK_IN_IDLE_MS as ci, sanitizeAgentRuntimeEvent as cn, DriverAttemptsExhaustedError as cr, SteerableRootHandle as ct, ExecutorAccounting as d, LoopLineageOptions as da, WorkerSlots as di, SessionMessageLike as dn, DriverContractState as dr, SupervisedResult as dt, spendFromUsageEvents as ea, PlannerError as ei, RuntimeStreamEventCollector as en, RunAgentTaskOptions as eo, ProviderWorkspaceCaptureProvenance as er, SpawnEvent as et, ExecutorCancellation as f, LoopPlanDescription as fa, createWorkerSlots as fi, SessionTraceBox as fn, DriverFailureClass as fr, Supervisor as ft, ExecutorFactory as g, LoopStartedPayload as ga, ReconnectRetainedRunOptions as gi, decodeToolPart as gn, DriverRepromptRefusal as gr, UnconfirmedTeardown as gt, ExecutorExecutionBinding as h, LoopSandboxPlacement as ha, NativeContextContinuationInput as hi, createPushTraceSource as hn, DriverReentry as hr, TreeView as ht, Budget as i, ExecCtx as ia, RetainedRunDispatchBindingError as ii, SanitizedKnowledgeReadinessReport as in, RuntimeSessionStore as io, ProviderWorkspaceRetentionContext as ir, SpawnRejection as it, NodeId as j, RuntimeRunCost as ja, RetainedRunEventOptions as ji, RetainedInteractiveRunHandle as jn, ContinuationEntry as jr, TraceContext as jt, NoWinnerError as k, Validator as ka, RetainedRunEffect as ki, RetainedInteractiveAdmissionHook as kn, ContinuationAppend as kr, workerTraceHeaders as kt, ExecutionBindingReceipt as l, LoopIterationEndedPayload as la, DeadlineCheckIn as li, sanitizeKnowledgeReadinessReport as ln, DriverBudgetReadout as lr, SubtreeResult as lt, ExecutorContext as m, LoopResult as ma, NativeContextContinuationHandle as mi, TraceSource as mn, DriverProgressMark as mr, TokenUsageProvenance as mt, AgentExecutionRef as n, DefaultVerdict$1 as na, RetainedInteractiveBindingError as ni, RuntimeStreamEventSummary as nn, RuntimeCanonicalStreamEvent as no, ProviderWorkspaceCaptureResult as nr, SpawnOpts as nt, BudgetViolation as o, LoopDecisionPayload as oa, ValidationError as oi, createRuntimeEventCollector as on, DriverAttemptRecord as or, SpendChannel as ot, ExecutorCancellationRequest as p, LoopPlanPayload as pa, NativeContextContinuationExecution as pi, ToolStepInput as pn, DriverLoopRecord as pr, SupervisorOpts as pt, RootModelChange as q, AgentTaskSpec as qa, ReservationRejection as qi, RetainedHarnessTranscriptCapture as qn, verdictFromJudgeScore as qr, createOtelExporter as qt, AgentSpec as r, Driver as ra, RetainedRunAdmissionError as ri, RuntimeTelemetryOptions as rn, RuntimeSession as ro, ProviderWorkspaceEntryMetadata as rr, SpawnPrior as rt, DefaultVerdict as s, LoopEndedPayload as sa, DEADLINE_CHECK_IN_MESSAGE as si, createRuntimeStreamEventCollector as sn, DriverAttemptStop as sr, SpendGap as st, Agent as t, AgentRunSpec as ta, RetainedInteractiveAdmissionError as ti, RuntimeStreamEventSink as tn, RunAgentTaskStreamOptions as to, ProviderWorkspaceCaptureReceipt as tr, SpawnJournal as tt, Executor as u, LoopIterationStartedPayload as ua, SlotPermit as ui, sanitizeRuntimeStreamEvent as un, DriverContinuationRecord as ur, SubtreeSummary as ut, ExecutorNodeContext as v, LoopTokenUsage as va, RecoverRetainedRunOptions as vi, ActivityLog as vn, classifyDriverFailure as vr, UsageEvent as vt, FleetYield as w, OutputAdapter as wa, RetainedRunAdmission as wi, WorkerProgress as wn, AdmittedFinding as wr, WorkspaceCheckpointMarker as wt, ExecutorResult as x, LoopWinner as xa, RetainedInteractiveEnvironmentAdmission as xi, ExecutorProgress as xn, UnavailablePausePolicy as xr, WorkerInteractiveUnavailableReason as xt, ExecutorProgressEvent as y, LoopTraceEmitter as ya, RecoverRetainedRunResult as yi, ActivityNote as yn, summarizeDriverAttempts as yr, WidenGate as yt, ResourceSpend as z, AgentBackendContext as za, StartRetainedRunOptions as zi, HarnessTranscriptUnavailableReason as zn, VerdictSummary as zr, OtelExportStats as zt };
|
|
6210
|
+
//# sourceMappingURL=types-RlLmOHFR.d.ts.map
|
|
@@ -18,6 +18,17 @@ const DEFAULT_SUCCESSFUL_SHUTDOWN_MS = 5e3;
|
|
|
18
18
|
const CHILD_DEADLINE_REASON = "child deadline exceeded";
|
|
19
19
|
/** The abort reason the root's budget deadline cascades to every node. */
|
|
20
20
|
const ROOT_DEADLINE_REASON = "root budget deadline exceeded";
|
|
21
|
+
/** How long a checked-in child may go without progress before it is stopped: 30 min. */
|
|
22
|
+
const DEFAULT_CHECK_IN_IDLE_MS = 30 * 6e4;
|
|
23
|
+
/** The check-in a child receives at its own time box. */
|
|
24
|
+
const DEADLINE_CHECK_IN_MESSAGE = "Check-in: your time box has ended. This is not a stop. Finish the step you are on and start nothing new. Record your current state and every result you have not recorded yet, then call submit_result with what you have now; if the work is not done, mark it incomplete and name what remains. Your lead decides whether to continue you or hand the work on. You keep running while you make progress.";
|
|
25
|
+
/** The idle bound a check-in policy sets, or undefined when time boxes are hard kills. */
|
|
26
|
+
function checkInIdleMs(policy) {
|
|
27
|
+
if (policy === false) return void 0;
|
|
28
|
+
const idleMs = policy?.idleMs ?? 18e5;
|
|
29
|
+
if (!Number.isSafeInteger(idleMs) || idleMs <= 0) throw new ValidationError("deadlineCheckIn.idleMs must be a positive safe integer of milliseconds");
|
|
30
|
+
return idleMs;
|
|
31
|
+
}
|
|
21
32
|
/**
|
|
22
33
|
* How long an abort waits for a manager whose result was already accepted to end the turn that
|
|
23
34
|
* submitted it. Acceptance asks the turn's harness to stop; what remains is the turn's final
|
|
@@ -2207,6 +2218,6 @@ function asError(error) {
|
|
|
2207
2218
|
return error instanceof Error ? error : new Error(String(error));
|
|
2208
2219
|
}
|
|
2209
2220
|
//#endregion
|
|
2210
|
-
export { randomUuid as $, canonicalCandidateBytes$1 as A, addTokenUsage as B, readVerifiedArtifact as C, verifyMaterializedWorkspace as D, verifyMaterializedProfileWorkspace as E, immutableCandidateValue as F, errorMessage as G, cloneSpend as H, omitTopLevelDigest as I, isAbortError as J, fnv1a32Hex as K, sha256Bytes$1 as L, canonicalCandidateDocument as M, deepFreezeCandidate as N, verifyWorkspaceSnapshotArtifacts as O, embeddedCandidateArtifact as P, randomSuffix as Q, verifyCanonicalCandidateDocument as R, readMaterializedWorkspaceFiles as S,
|
|
2221
|
+
export { randomUuid as $, canonicalCandidateBytes$1 as A, addTokenUsage as B, readVerifiedArtifact as C, singleFlightTeardown as Ct, verifyMaterializedWorkspace as D, verifyMaterializedProfileWorkspace as E, immutableCandidateValue as F, errorMessage as G, cloneSpend as H, omitTopLevelDigest as I, isAbortError as J, fnv1a32Hex as K, sha256Bytes$1 as L, canonicalCandidateDocument as M, deepFreezeCandidate as N, verifyWorkspaceSnapshotArtifacts as O, embeddedCandidateArtifact as P, randomSuffix as Q, verifyCanonicalCandidateDocument as R, readMaterializedWorkspaceFiles as S, isDeadlineAbortReason as St, verifyBytes as T, teardownSurfaces as Tt, cloneTokenUsage as U, chargedTokens as V, deleteBoxSafe as W, mapWithConcurrency as X, isAsyncIterable as Y, promptCacheTokenClasses as Z, isWellFormedUnicode as _, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as _t, verifyAgentCandidateWorkspaceArtifacts as a, unmeteredSpend as at, candidateWorkspaceManifest as b, boundedChildDeadlineAt as bt, captureAgentCandidateWorkspaceFiles as c, zeroTokenUsage as ct, persistCandidateOutputArtifact as d, resourceTelemetry as dt, roundBoxMinutes as et, readCandidateGitHubResource as f, withBudgetResources as ft, assertExactObjectKeys as g, DEFAULT_CHECK_IN_IDLE_MS as gt, verifyTaskOutcomePatch as h, DEADLINE_CHECK_IN_MESSAGE as ht, readAgentCandidateWorkspaceArtifactFiles as i, throwIfAborted as it, canonicalCandidateDigest$1 as j, verifiedArtifactChunks as k, createAgentCandidateWorkspacePort as l, addResourceSpend as lt, verifyTaskCheckout as m, CHILD_DEADLINE_REASON as mt, captureAgentCandidateWorkspaceTreeToArtifacts as n, stringifySafe as nt, verifyAgentCandidateWorkspaceTree as o, withTimeout as ot, verifyCandidateCode as p, ACCEPTED_RESULT_GRACE_MS as pt, hasCompleteCacheBreakdown as q, materializeAgentCandidateWorkspaceFromArtifacts as r, throwAbort as rt, captureAgentCandidateWorkspace as s, zeroSpend as st, captureAgentCandidateWorkspaceToArtifacts as t, sleep as tt, verifyAgentCandidateWorkspaceArchive as u, assertResources as ut, WorkspaceScanLimitError as v, ROOT_DEADLINE_REASON as vt, scanMaterializedWorkspaceManifest as w, teardownExecutor as wt, captureMaterializedWorkspace as x, checkInIdleMs as xt, artifactCacheKey as y, armDeadlineTimer as yt, addSpend as z };
|
|
2211
2222
|
|
|
2212
|
-
//# sourceMappingURL=workspace-streams-
|
|
2223
|
+
//# sourceMappingURL=workspace-streams-BEvSX97P.js.map
|