@tangle-network/agent-runtime 0.323.0 → 0.325.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-DpipXGti.js → activation--9-iyGR8.js} +3 -3
- package/dist/{activation-DpipXGti.js.map → activation--9-iyGR8.js.map} +1 -1
- package/dist/{activation-D4hHi27J.d.ts → activation-Q3CJgiCu.d.ts} +2 -2
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/{bundle-Cw-QdGmH.js → bundle-BJJmfEsw.js} +2 -2
- package/dist/{bundle-Cw-QdGmH.js.map → bundle-BJJmfEsw.js.map} +1 -1
- package/dist/candidate-execution/index.js +5 -5
- package/dist/{coordination-driver-COSL19sL.js → coordination-driver-DkkUVe9g.js} +271 -156
- package/dist/coordination-driver-DkkUVe9g.js.map +1 -0
- package/dist/{delegate-silSKPSB.js → delegate-BDsaIl2K.js} +2 -2
- package/dist/{delegate-silSKPSB.js.map → delegate-BDsaIl2K.js.map} +1 -1
- package/dist/{durable-file-DWQA4ooo.js → durable-file-B_eJr6Mb.js} +40 -8
- package/dist/durable-file-B_eJr6Mb.js.map +1 -0
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +70 -40
- package/dist/durable.js.map +1 -1
- package/dist/graph-Cuz6Ubzd.js +348 -0
- package/dist/graph-Cuz6Ubzd.js.map +1 -0
- package/dist/{graph-registry-BuJbzTzF.js → graph-registry-DAI6KNXB.js} +19 -34
- package/dist/graph-registry-DAI6KNXB.js.map +1 -0
- package/dist/{improvement-cycle-BeN9wahG.js → improvement-cycle-B5Z8cHKx.js} +10 -10
- package/dist/{improvement-cycle-BeN9wahG.js.map → improvement-cycle-B5Z8cHKx.js.map} +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +3 -3
- package/dist/intelligence.js +7 -7
- package/dist/jsonl-file-DBv31uPi.js +206 -0
- package/dist/jsonl-file-DBv31uPi.js.map +1 -0
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +13 -13
- package/dist/{loop-runner-bin-DkhIbFBp.js → loop-runner-bin-C16VR9cI.js} +3 -3
- package/dist/{loop-runner-bin-DkhIbFBp.js.map → loop-runner-bin-C16VR9cI.js.map} +1 -1
- package/dist/{loop-runner-bin-Bsux_MGx.d.ts → loop-runner-bin-Co7JKSwi.d.ts} +2 -2
- 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 +3 -3
- package/dist/mcp/index.js +6 -6
- package/dist/{model-policy-CNe257pB.js → model-policy-CyCUwHed.js} +2 -2
- package/dist/model-policy-CyCUwHed.js.map +1 -0
- package/dist/{openai-tools-e02ABKl0.d.ts → openai-tools-CbgZrQJ_.d.ts} +2 -2
- package/dist/{prepare-CFQLx9e3.js → prepare-DpavgJT8.js} +4 -4
- package/dist/{prepare-CFQLx9e3.js.map → prepare-DpavgJT8.js.map} +1 -1
- package/dist/{profile-BTbpdL9h.js → profile-ZS7_KLwK.js} +2 -2
- package/dist/{profile-BTbpdL9h.js.map → profile-ZS7_KLwK.js.map} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/profiles.js +1 -1
- package/dist/{protected-model-port-f1N2f0Uq.js → protected-model-port-BLyyfL3l.js} +4 -4
- package/dist/{protected-model-port-f1N2f0Uq.js.map → protected-model-port-BLyyfL3l.js.map} +1 -1
- package/dist/{protected-redaction-DylCC_ot.js → protected-redaction-DFCeo4vg.js} +2 -2
- package/dist/{protected-redaction-DylCC_ot.js.map → protected-redaction-DFCeo4vg.js.map} +1 -1
- package/dist/{provision-supervisor-DdWu6mqu.js → provision-supervisor-4BoHpGFJ.js} +7 -7
- package/dist/{provision-supervisor-DdWu6mqu.js.map → provision-supervisor-4BoHpGFJ.js.map} +1 -1
- package/dist/{run-layout-DSCWdbX2.js → run-layout-Cu8H7aeh.js} +2 -2
- package/dist/{run-layout-DSCWdbX2.js.map → run-layout-Cu8H7aeh.js.map} +1 -1
- package/dist/{runtime-DhPIc7XV.js → runtime-B9X_U-aV.js} +84 -80
- package/dist/runtime-B9X_U-aV.js.map +1 -0
- package/dist/{search-executor-BS-WJpti.js → search-executor-C-b4NaFl.js} +13 -5
- package/dist/search-executor-C-b4NaFl.js.map +1 -0
- package/dist/{server-CEDOUOdz.js → server-CcHaXgUT.js} +4 -4
- package/dist/{server-CEDOUOdz.js.map → server-CcHaXgUT.js.map} +1 -1
- package/dist/{supervise-CwWI7kIk.js → supervise-BlaB4CeL.js} +739 -22
- package/dist/supervise-BlaB4CeL.js.map +1 -0
- package/dist/{supervisor-CSKkm-e1.js → supervisor-fq4JGynd.js} +10940 -10787
- package/dist/supervisor-fq4JGynd.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +14 -14
- package/dist/{top-app-DaiR4LXM.js → top-app-BaMw1W2z.js} +2 -2
- package/dist/{top-app-DaiR4LXM.js.map → top-app-BaMw1W2z.js.map} +1 -1
- package/dist/tui/bin.js +1 -1
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/{index-7h7-L6Tk.d.ts → types-5r334mcg.d.ts} +17425 -17267
- package/dist/{workspace-streams-DFAhW7hF.js → workspace-streams-CcoARX4v.js} +2 -2
- package/dist/{workspace-streams-DFAhW7hF.js.map → workspace-streams-CcoARX4v.js.map} +1 -1
- package/package.json +3 -3
- package/skills/profile-authoring/SKILL.md +1 -1
- package/dist/coordination-driver-COSL19sL.js.map +0 -1
- package/dist/durable-file-DWQA4ooo.js.map +0 -1
- package/dist/graph-DbQ-BXKr.js +0 -805
- package/dist/graph-DbQ-BXKr.js.map +0 -1
- package/dist/graph-registry-BuJbzTzF.js.map +0 -1
- package/dist/model-policy-CNe257pB.js.map +0 -1
- package/dist/runtime-DhPIc7XV.js.map +0 -1
- package/dist/search-executor-BS-WJpti.js.map +0 -1
- package/dist/supervise-CwWI7kIk.js.map +0 -1
- package/dist/supervisor-CSKkm-e1.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $i as
|
|
1
|
+
import { $i as InMemorySpawnJournal, Bi as createSandboxUsageLedger, Ci as executableAgentProfileSnapshot, Da as providerMessageText, Dn as LEAF_CONTINUATION_TASK, Ea as promptOptionsFromAgentTurnInput, Ei as readSandboxOutcome, Fr as harnessInvocation, Ft as createExecutorRegistry, Gn as openSlotGroup, Hi as isSandboxTerminalEvent, Ni as unavailablePauseMs, Oi as awaitAbortable, Pi as unavailableSignalOfFailure, Pt as createExecutor, Qi as InMemoryResultBlobStore, Ri as canonicalStreamEventFromSandboxEvent, Si as unknownMaterializationReceipt, Sr as toOtelAttributes, Ta as promptFromAgentTurnInput, Ti as projectSandboxOutcome, Ui as mapSandboxEvent, Wi as mapSandboxToolEvent, _i as runtimeOwnedExecutorMaterialization, br as padSpanId, di as knownMaterializationReceipt, gi as runtimeOwnedExecutorExecutionBinding, gr as createOtelExporter, hr as createOpenInferenceFileExporter, jt as captureReusableExecutorConfig, ki as runtimeFailureCause, r as createSupervisor, si as authoredProfileDigest, ui as knownExecutionBindingReceipt, v as withDriverExecutor, vr as generateSpanId, xi as unknownExecutionBindingReceipt, xr as padTraceId, yi as runtimeOwnedPendingExecutorMaterialization, zi as createSandboxToolPartState } from "./supervisor-fq4JGynd.js";
|
|
2
2
|
import { i as ConfigError, m as ValidationError, p as SessionMismatchError, r as BackendTransportError } from "./errors-DodWX-cb.js";
|
|
3
|
-
import { L as immutableCandidateValue, Z as isAsyncIterable, q as errorMessage$1, rt as sleep, xt as armDeadlineTimer } from "./workspace-streams-
|
|
4
|
-
import { a as concreteProfileModel, c as profileModelExecutionSettings, g as observedModelMatchesDeclared, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-
|
|
3
|
+
import { L as immutableCandidateValue, Z as isAsyncIterable, q as errorMessage$1, rt as sleep, xt as armDeadlineTimer } from "./workspace-streams-CcoARX4v.js";
|
|
4
|
+
import { a as concreteProfileModel, c as profileModelExecutionSettings, g as observedModelMatchesDeclared, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-CyCUwHed.js";
|
|
5
5
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, renderInputPartsAsText } from "@tangle-network/agent-interface";
|
|
6
6
|
import { CostAccountingIncompleteError, CostCeilingReachedError, costForTokenPricing, costForUsage, makeProposalFinding, scoreKnowledgeReadiness } from "@tangle-network/agent-eval";
|
|
7
7
|
import { createAgentRunOutcomeTracker } from "@tangle-network/sandbox/runtime";
|
|
@@ -564,6 +564,11 @@ async function* streamAgentTurnInternal(backend, input, opts) {
|
|
|
564
564
|
kind: "backend",
|
|
565
565
|
message
|
|
566
566
|
});
|
|
567
|
+
const deadlineExpired = !callerAborted && deadline.signal.aborted;
|
|
568
|
+
const failure = callerAborted || deadlineExpired || sandboxProjection?.failure === void 0 ? runtimeFailureCause(err, {
|
|
569
|
+
signal: opts.signal,
|
|
570
|
+
deadlineExpired
|
|
571
|
+
}) : sandboxProjection.failure;
|
|
567
572
|
yield {
|
|
568
573
|
type: "backend_error",
|
|
569
574
|
task,
|
|
@@ -572,12 +577,14 @@ async function* streamAgentTurnInternal(backend, input, opts) {
|
|
|
572
577
|
message,
|
|
573
578
|
recoverable: !callerAborted,
|
|
574
579
|
error,
|
|
580
|
+
failure,
|
|
575
581
|
timestamp: nowIso()
|
|
576
582
|
};
|
|
577
583
|
yield buildFinalEvent(task, session, acc, {
|
|
578
584
|
status,
|
|
579
585
|
reason: message,
|
|
580
|
-
error
|
|
586
|
+
error,
|
|
587
|
+
failure
|
|
581
588
|
}, turnProvenance(startedAt, opts.timeoutMs, profileDigest, taskDigest, materialization, executionBinding, correlation));
|
|
582
589
|
} finally {
|
|
583
590
|
if (executor) await awaitAbortable(Promise.resolve().then(() => executor.teardown("brutalKill")), deadline.signal).catch(() => void 0);
|
|
@@ -1064,6 +1071,7 @@ function buildFinalEvent(task, session, acc, outcome, provenance) {
|
|
|
1064
1071
|
...provenance
|
|
1065
1072
|
},
|
|
1066
1073
|
...outcome.error ? { error: outcome.error } : {},
|
|
1074
|
+
...outcome.failure ? { failure: outcome.failure } : {},
|
|
1067
1075
|
timestamp: nowIso()
|
|
1068
1076
|
};
|
|
1069
1077
|
}
|
|
@@ -4782,4 +4790,4 @@ function otelSpan(input) {
|
|
|
4782
4790
|
//#endregion
|
|
4783
4791
|
export { createIterableBackend as $, resolveEntrySymbol as A, runAgentic as B, compareCheckOutcomes as C, filterAuthoredAsserts as D, defaultStructuralRolloutPolicy as E, adaptiveRefine as F, observe as G, sampleThenRefine as H, breadthStrategy as I, profileOptimizerModelCall as J, renderReport as K, defineStrategy as L, selectBestIndex as M, structuralRollout as N, modelAuthoredChecks as O, visibleCheckScore as P, streamAgentTurn as Q, depthStrategy as R, canDisplace as S, defaultExtractCandidate as T, ObservationError as U, sample as V, defaultAnalystInstruction as W, strategyAuthorMethod as X, optimizerMethod as Y, collectAgentTurn as Z, sharedWorkerClientName as _, reconcileInterruptedSearchCalls as a, startOrResumeRuntimeSession as at, improveSearchCost as b, searchExecutor as c, taggedLedger as d, createSandboxPromptBackend as et, DEFAULT_SHARED_BOX_RESOURCES as f, sharedBoxRefusal as g, sharedBoxPlacement as h, isSearchEnvironmentFault as i, nowIso as it, sandboxCheckRunner as j, officialChecksFromMeta as k, sharedBoxLane as l, ROUTER_CLIENT_HEADER as m, assertSearchLanes as n, InMemoryRuntimeSessionStore as nt, routerLane as o, touchSession as ot, DEFAULT_SHARED_BOX_WORKERS as p, profileChatClient as q, dedicatedLane as r, newRuntimeSession as rt, searchCallTags as s, SearchEnvironmentFault as t, normalizeBackendStreamEvent as tt, subscriptionLane as u, decideClosedSearch as v, composeCheckSources as w, runtimeShipDecision as x, decideSearchImprovement as y, refine as z };
|
|
4784
4792
|
|
|
4785
|
-
//# sourceMappingURL=search-executor-
|
|
4793
|
+
//# sourceMappingURL=search-executor-C-b4NaFl.js.map
|