@tangle-network/agent-runtime 0.195.0 → 0.196.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-DtIbcFOX.js → activation-BxMZybuo.js} +2 -2
- package/dist/{activation-DtIbcFOX.js.map → activation-BxMZybuo.js.map} +1 -1
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +3 -3
- package/dist/{analyst-loop-CSH7P-Bf.js → analyst-loop-BknOQUW5.js} +3 -3
- package/dist/{analyst-loop-CSH7P-Bf.js.map → analyst-loop-BknOQUW5.js.map} +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/analyst-loop.js +1 -1
- package/dist/{authored-code-DzYtiflw.js → authored-code-URmkdgjv.js} +2 -2
- package/dist/{authored-code-DzYtiflw.js.map → authored-code-URmkdgjv.js.map} +1 -1
- package/dist/{conversation-BXPWMOSd.js → conversation-BxJ0SIBM.js} +5 -5
- package/dist/{conversation-BXPWMOSd.js.map → conversation-BxJ0SIBM.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/conversation.js +1 -1
- package/dist/{coordination-driver-iSN-m3VX.js → coordination-driver-zkCrfEbS.js} +6 -6
- package/dist/{coordination-driver-iSN-m3VX.js.map → coordination-driver-zkCrfEbS.js.map} +1 -1
- package/dist/{delegate-DCC2muUd.js → delegate-D7sonS78.js} +3 -3
- package/dist/{delegate-DCC2muUd.js.map → delegate-D7sonS78.js.map} +1 -1
- package/dist/{delegation-status-BlsbSeOB.js → delegation-status-CF4D0NZ_.js} +2 -2
- package/dist/{delegation-status-BlsbSeOB.js.map → delegation-status-CF4D0NZ_.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +3 -3
- package/dist/{environment-provider-Dr-wfnHg.js → environment-provider-1fKZh2zl.js} +111 -13
- package/dist/environment-provider-1fKZh2zl.js.map +1 -0
- package/dist/{environment-provider-adVa6X7a.d.ts → environment-provider-B-I2jlQy.d.ts} +3 -3
- package/dist/environment-provider.d.ts +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{errors-CDZ8XsVj.js → errors-DodWX-cb.js} +9 -1
- package/dist/errors-DodWX-cb.js.map +1 -0
- package/dist/{graph-DghidDx5.js → graph-BuS-NxXD.js} +30 -19
- package/dist/{graph-DghidDx5.js.map → graph-BuS-NxXD.js.map} +1 -1
- package/dist/graph.d.ts +3 -3
- package/dist/graph.js +6 -6
- package/dist/{improve-7VTwse1c.d.ts → improve-DZs0KXhK.d.ts} +3 -3
- package/dist/{improvement-cycle-bTBySunH.js → improvement-cycle-Tw5nYT5R.js} +8 -8
- package/dist/{improvement-cycle-bTBySunH.js.map → improvement-cycle-Tw5nYT5R.js.map} +1 -1
- package/dist/{index-DNx0nWZH.d.ts → index-CYOJsxSg.d.ts} +17 -8
- package/dist/{index-DO6DHgRP.d.ts → index-D9mb6fn2.d.ts} +3 -3
- package/dist/{index-CVD30soi.d.ts → index-ZnxSe6iK.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/intelligence.d.ts +6 -6
- package/dist/intelligence.js +4 -4
- package/dist/{jsonl-file-Bh1Q9nt0.js → jsonl-file-BEpaEYjT.js} +3 -3
- package/dist/{jsonl-file-Bh1Q9nt0.js.map → jsonl-file-BEpaEYjT.js.map} +1 -1
- package/dist/kernel.d.ts +6 -6
- package/dist/kernel.js +12 -12
- package/dist/{knowledge-U8WJ5xCI.js → knowledge-CPzT_Ve7.js} +4 -4
- package/dist/{knowledge-U8WJ5xCI.js.map → knowledge-CPzT_Ve7.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-b4585v9Z.d.ts → loop-runner-bin-DwrSB04m.d.ts} +3 -3
- package/dist/{loop-runner-bin-BU2NACsF.js → loop-runner-bin-XKMc3Ld-.js} +5 -5
- package/dist/{loop-runner-bin-BU2NACsF.js.map → loop-runner-bin-XKMc3Ld-.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/{materialization-vZssF9Nx.js → materialization-Cy0oM8tb.js} +2 -2
- package/dist/{materialization-vZssF9Nx.js.map → materialization-Cy0oM8tb.js.map} +1 -1
- package/dist/mcp/bin.js +4 -4
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/index.js +11 -11
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/{memory-server-Crkevawz.js → memory-server-BR310Weg.js} +3 -3
- package/dist/{memory-server-Crkevawz.js.map → memory-server-BR310Weg.js.map} +1 -1
- package/dist/{model-policy-Wf2MxXJ9.js → model-policy-DKDyr-fc.js} +2 -2
- package/dist/{model-policy-Wf2MxXJ9.js.map → model-policy-DKDyr-fc.js.map} +1 -1
- package/dist/{openai-tools-BDwAdxk5.d.ts → openai-tools-CRQhVT_V.d.ts} +2 -2
- package/dist/{openai-tools-DmvmaG0a.js → openai-tools-DoQ32vpe.js} +2 -2
- package/dist/{openai-tools-DmvmaG0a.js.map → openai-tools-DoQ32vpe.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/profiles.d.ts +2 -2
- package/dist/profiles.js +2 -2
- package/dist/{provision-supervisor-CRPbnJiB.js → provision-supervisor-CpMMShE_.js} +7 -7
- package/dist/{provision-supervisor-CRPbnJiB.js.map → provision-supervisor-CpMMShE_.js.map} +1 -1
- package/dist/{redact-BOU77QfQ.js → redact-Cbl2O-4N.js} +19 -24
- package/dist/redact-Cbl2O-4N.js.map +1 -0
- package/dist/{runtime-B8x43nGP.d.ts → runtime-0xNaV6TJ.d.ts} +9 -6
- package/dist/{runtime-CuNJ0opC.js → runtime-DqRieJ6e.js} +16 -16
- package/dist/{runtime-CuNJ0opC.js.map → runtime-DqRieJ6e.js.map} +1 -1
- package/dist/{sandbox-events-DWeQRWxg.js → sandbox-events-DbC2WKKS.js} +19 -16
- package/dist/sandbox-events-DbC2WKKS.js.map +1 -0
- package/dist/{server-D6XmE1Du.js → server-BjB6ay4N.js} +6 -6
- package/dist/{server-D6XmE1Du.js.map → server-BjB6ay4N.js.map} +1 -1
- package/dist/{stream-agent-turn-DOtEsvCV.js → stream-agent-turn-Dt5mZpc3.js} +6 -6
- package/dist/{stream-agent-turn-DOtEsvCV.js.map → stream-agent-turn-Dt5mZpc3.js.map} +1 -1
- package/dist/{stream-agent-turn-B-gtBlOy.d.ts → stream-agent-turn-urHpmO_Z.d.ts} +3 -3
- package/dist/{structural-rollout-DxEQ77H7.js → structural-rollout-DPbZWgEm.js} +5 -5
- package/dist/{structural-rollout-DxEQ77H7.js.map → structural-rollout-DPbZWgEm.js.map} +1 -1
- package/dist/{substrate-qLePHqvH.d.ts → substrate-B4iT90Zv.d.ts} +2 -2
- package/dist/{supervise-C0V3pZXK.js → supervise-D9aNi8_f.js} +23 -9
- package/dist/supervise-D9aNi8_f.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/{tool-server-DEmLr9YY.js → tool-server-BJbCPhoW.js} +2 -2
- package/dist/{tool-server-DEmLr9YY.js.map → tool-server-BJbCPhoW.js.map} +1 -1
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-B_pNTBjK.d.ts → types-DFLZMaeh.d.ts} +2 -2
- package/dist/{types-BdolQ6Zi.d.ts → types-Q0PMagdm.d.ts} +3 -1
- package/package.json +1 -1
- package/dist/environment-provider-Dr-wfnHg.js.map +0 -1
- package/dist/errors-CDZ8XsVj.js.map +0 -1
- package/dist/redact-BOU77QfQ.js.map +0 -1
- package/dist/sandbox-events-DWeQRWxg.js.map +0 -1
- package/dist/supervise-C0V3pZXK.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as Validator, r as Driver, t as AgentRunSpec, w as OutputAdapter } from "./types-
|
|
1
|
+
import { k as Validator, r as Driver, t as AgentRunSpec, w as OutputAdapter } from "./types-Q0PMagdm.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
//#region src/profiles/coder.d.ts
|
|
4
4
|
/**
|
|
@@ -281,4 +281,4 @@ interface UiFinding {
|
|
|
281
281
|
}
|
|
282
282
|
//#endregion
|
|
283
283
|
export { CoderTask as _, UiFindingSeverity as a, KnowledgeUpdate as c, ResearchSource as d, ResearchTask as f, researcherProfile as g, multiHarnessResearcherFanout as h, UiFindingScreenshot as i, MultiHarnessResearcherFanoutOptions as l, createResearcherValidator as m, UI_LENSES as n, UiLens as o, ResearcherProfileOptions as p, UiFinding as r, KnowledgeItem as s, UI_FINDING_SEVERITIES as t, ResearchOutput as u, coderTaskToPrompt as v };
|
|
284
|
-
//# sourceMappingURL=substrate-
|
|
284
|
+
//# sourceMappingURL=substrate-B4iT90Zv.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as runtimeOwnedScopeOwnerRuntime, D as detachedSnapshot, S as runtimeOwnedPendingExecutorMaterialization, b as runtimeOwnedExecutorMaterialization, d as providerAttemptEvidence, f as recordRuntimeOwnedDriveHarnessProviderEvidence, i as attestRuntimeOwnedScopeOwner, s as inheritRuntimeOwnedExecutorAttestation, v as runtimeOwnedDriveHarnessProviderEvidence, x as runtimeOwnedExecutorProviderEvidence, y as runtimeOwnedExecutorExecutionBinding } from "./materialization-
|
|
2
|
-
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError, r as BackendTransportError, t as AgentEvalError } from "./errors-
|
|
3
|
-
import { a as concreteProfileModel, c as profileModelExecutionSettings, d as agentHarness, f as harnessRunsAgent, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-
|
|
4
|
-
import { $n as assertProfileMaterialization, Et as createInbox, Fn as toOtelAttributes, On as createOtelExporter, Q as assertValidBudget, S as scopeOwnerExecutorNodeContext, X as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Z as teardownExecutor, a as createSupervisor, ar as promptModelProfileMaterialization, at as bridgeStopSignalKey, b as meterRuntimeOwnedProviderAttempt, dn as routerBrain, dr as unsupportedProfileDimensions, dt as snapshotExecutorConfig, en as contentAddress, er as controlProfileMaterialization, et as spendFromUsageEvents, f as runFinalizer, g as beginScopeOwnerAttempt, i as createRootHandle, ir as promptControlProfileMaterialization, it as bridgeRuntimeAttachmentsKey, jn as generateSpanId, l as bestDelivered, lr as renderUnsupported, lt as createExecutor, m as driverChild, nr as fullProfileMaterialization, nt as bridgeAdmissionRefusal, ot as captureReusableExecutorConfig, p as runTree, pr as worktreeCliProfileMaterialization, pt as WORKER_TRACE_PROPAGATION, rr as profileMaterializationAxes$1, rt as bridgeModelRouteRefusal, tr as defineProfileMaterializationContract, tt as bindReusableExecutorExecutionId, v as deriveNodeExecutionIdentity, x as recordScopeOwnerMaterialization, y as meterRuntimeOwnedAccounting } from "./redact-
|
|
5
|
-
import { E as zeroSpend, w as unmeteredSpend } from "./environment-provider-
|
|
1
|
+
import { C as runtimeOwnedScopeOwnerRuntime, D as detachedSnapshot, S as runtimeOwnedPendingExecutorMaterialization, b as runtimeOwnedExecutorMaterialization, d as providerAttemptEvidence, f as recordRuntimeOwnedDriveHarnessProviderEvidence, i as attestRuntimeOwnedScopeOwner, s as inheritRuntimeOwnedExecutorAttestation, v as runtimeOwnedDriveHarnessProviderEvidence, x as runtimeOwnedExecutorProviderEvidence, y as runtimeOwnedExecutorExecutionBinding } from "./materialization-Cy0oM8tb.js";
|
|
2
|
+
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError, r as BackendTransportError, t as AgentEvalError } from "./errors-DodWX-cb.js";
|
|
3
|
+
import { a as concreteProfileModel, c as profileModelExecutionSettings, d as agentHarness, f as harnessRunsAgent, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-DKDyr-fc.js";
|
|
4
|
+
import { $n as assertProfileMaterialization, Et as createInbox, Fn as toOtelAttributes, On as createOtelExporter, Q as assertValidBudget, S as scopeOwnerExecutorNodeContext, X as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Z as teardownExecutor, a as createSupervisor, ar as promptModelProfileMaterialization, at as bridgeStopSignalKey, b as meterRuntimeOwnedProviderAttempt, dn as routerBrain, dr as unsupportedProfileDimensions, dt as snapshotExecutorConfig, en as contentAddress, er as controlProfileMaterialization, et as spendFromUsageEvents, f as runFinalizer, g as beginScopeOwnerAttempt, i as createRootHandle, ir as promptControlProfileMaterialization, it as bridgeRuntimeAttachmentsKey, jn as generateSpanId, l as bestDelivered, lr as renderUnsupported, lt as createExecutor, m as driverChild, nr as fullProfileMaterialization, nt as bridgeAdmissionRefusal, ot as captureReusableExecutorConfig, p as runTree, pr as worktreeCliProfileMaterialization, pt as WORKER_TRACE_PROPAGATION, rr as profileMaterializationAxes$1, rt as bridgeModelRouteRefusal, tr as defineProfileMaterializationContract, tt as bindReusableExecutorExecutionId, v as deriveNodeExecutionIdentity, x as recordScopeOwnerMaterialization, y as meterRuntimeOwnedAccounting } from "./redact-Cbl2O-4N.js";
|
|
5
|
+
import { E as zeroSpend, w as unmeteredSpend } from "./environment-provider-1fKZh2zl.js";
|
|
6
6
|
import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
7
|
-
import { C as createCoordinationTools, M as createInMemoryRunContext, S as coordinationVerbNames, c as createProgressTracker, d as progressStop, j as createFileRunContext, r as driverAgent } from "./coordination-driver-
|
|
7
|
+
import { C as createCoordinationTools, M as createInMemoryRunContext, S as coordinationVerbNames, c as createProgressTracker, d as progressStop, j as createFileRunContext, r as driverAgent } from "./coordination-driver-zkCrfEbS.js";
|
|
8
8
|
import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-B8I_LXN-.js";
|
|
9
|
-
import { t as createStdioToolServer } from "./tool-server-
|
|
9
|
+
import { t as createStdioToolServer } from "./tool-server-BJbCPhoW.js";
|
|
10
10
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { resolve } from "node:path";
|
|
@@ -758,15 +758,29 @@ const DEFAULT_MAX_ATTEMPTS = 8;
|
|
|
758
758
|
const DEFAULT_INITIAL_BACKOFF_MS$1 = 2e3;
|
|
759
759
|
const DEFAULT_MAX_BACKOFF_MS$1 = 3e4;
|
|
760
760
|
/**
|
|
761
|
+
* Bridge error classes the bridge itself never retries: a request that fails identically on
|
|
762
|
+
* every attempt, mapped below 5xx on its HTTP path (`parse_error` 400, the other two 501). On the
|
|
763
|
+
* stream path the same failure arrives with no status at all — a profile that cannot materialize
|
|
764
|
+
* is a `parse_error` — and the status split alone read it as a bad moment and re-drove it to the
|
|
765
|
+
* attempt ceiling.
|
|
766
|
+
*/
|
|
767
|
+
const DETERMINISTIC_BRIDGE_CODES = /* @__PURE__ */ new Set([
|
|
768
|
+
"parse_error",
|
|
769
|
+
"not_configured",
|
|
770
|
+
"capability_denied"
|
|
771
|
+
]);
|
|
772
|
+
/**
|
|
761
773
|
* Classify one driver failure. Runtime's own typed refusals are decisions and stay terminal;
|
|
762
774
|
* anything foreign is an accident and is retryable. A `BackendTransportError` is split by status
|
|
763
775
|
* because the taxonomy already promises consumers may branch on it: a 5xx/429/408 is the upstream
|
|
764
|
-
* having a bad moment, while a 401/404/422 is a request that will fail identically forever.
|
|
776
|
+
* having a bad moment, while a 401/404/422 is a request that will fail identically forever. The
|
|
777
|
+
* bridge's own never-retry classes are terminal whether or not a status rides with them.
|
|
765
778
|
*/
|
|
766
779
|
function classifyDriverFailure(error, signal) {
|
|
767
780
|
if (signal?.aborted) return "terminal";
|
|
768
781
|
if (error instanceof Error && error.name === "AbortError") return "terminal";
|
|
769
782
|
if (error instanceof BackendTransportError) {
|
|
783
|
+
if (error.upstreamCode !== void 0 && DETERMINISTIC_BRIDGE_CODES.has(error.upstreamCode)) return "terminal";
|
|
770
784
|
const status = error.status;
|
|
771
785
|
if (status === void 0) return "transient";
|
|
772
786
|
if (status === 408 || status === 429 || status >= 500) return "transient";
|
|
@@ -3022,4 +3036,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
3022
3036
|
//#endregion
|
|
3023
3037
|
export { serveCoordinationMcp as _, isPreSpawnExecutorFailure as a, mapExecutorResult as b, withWorkerSpawnRetry as c, resolveSupervisorProfile as d, supervisorAgent as f, defaultUnmetContractSteer as g, classifyDriverFailure as h, workerFromBackend as i, assertCoordinationBinding as l, DriverAttemptsExhaustedError as m, supervise as n, resolveWorkerSpawnRetry as o, supervisorAgentWithTestBrain as p, superviseWithTestBrain as r, retryPreSpawnRefusals as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, coordinationProfileToolPrefix as u, createSupervisorSpanRecorder as v, gateOnDeliverable as y };
|
|
3024
3038
|
|
|
3025
|
-
//# sourceMappingURL=supervise-
|
|
3039
|
+
//# sourceMappingURL=supervise-D9aNi8_f.js.map
|