@tangle-network/agent-runtime 0.134.6 → 0.134.7
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-BFGP4ZnG.js → activation-CG9bkirD.js} +2 -2
- package/dist/{activation-BFGP4ZnG.js.map → activation-CG9bkirD.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-CM9sA8yD.js → authoring-CK6iXftK.js} +2 -2
- package/dist/{authoring-CM9sA8yD.js.map → authoring-CK6iXftK.js.map} +1 -1
- package/dist/{graph-ICXhoz8O.js → graph-9KF7mJM3.js} +2 -2
- package/dist/{graph-ICXhoz8O.js.map → graph-9KF7mJM3.js.map} +1 -1
- package/dist/{improvement-cycle-b9IYBOJw.js → improvement-cycle-5XDmxqzr.js} +3 -3
- package/dist/{improvement-cycle-b9IYBOJw.js.map → improvement-cycle-5XDmxqzr.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.js +3 -3
- package/dist/kernel.js +6 -6
- package/dist/{knowledge-Dxa5L4sb.js → knowledge-DWTOug6a.js} +3 -3
- package/dist/{knowledge-Dxa5L4sb.js.map → knowledge-DWTOug6a.js.map} +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-B7yytyZx.js → loop-runner-bin-BCvwX9rk.js} +3 -3
- package/dist/{loop-runner-bin-B7yytyZx.js.map → loop-runner-bin-BCvwX9rk.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-DYTkum5Z.js → openai-tools-ClNr92Bx.js} +2 -2
- package/dist/{openai-tools-DYTkum5Z.js.map → openai-tools-ClNr92Bx.js.map} +1 -1
- package/dist/{runtime-DPhY69h0.js → runtime-CnQ_-DF_.js} +6 -6
- package/dist/{runtime-DPhY69h0.js.map → runtime-CnQ_-DF_.js.map} +1 -1
- package/dist/{structural-rollout-B4ITMlW-.js → structural-rollout-CbQjaMwW.js} +2 -2
- package/dist/{structural-rollout-B4ITMlW-.js.map → structural-rollout-CbQjaMwW.js.map} +1 -1
- package/dist/{supervise-CR8zPmfT.js → supervise-B8Ykk8GO.js} +2 -2
- package/dist/{supervise-CR8zPmfT.js.map → supervise-B8Ykk8GO.js.map} +1 -1
- package/dist/{supervisor-DEEGgN_S.js → supervisor-BU01azdt.js} +27 -2
- package/dist/{supervisor-DEEGgN_S.js.map → supervisor-BU01azdt.js.map} +1 -1
- package/dist/testing.js +11 -11
- package/package.json +1 -1
|
@@ -7951,9 +7951,34 @@ function providerDispatchFromErrorBody(body) {
|
|
|
7951
7951
|
if (typeof error !== "object" || error === null) return void 0;
|
|
7952
7952
|
return error.provider_dispatch === "not_started" ? "not_started" : void 0;
|
|
7953
7953
|
}
|
|
7954
|
+
/**
|
|
7955
|
+
* Recover the upstream HTTP status the bridge reports inside its message text.
|
|
7956
|
+
*
|
|
7957
|
+
* `classifyDriverFailure` already splits a transport failure correctly by status — 408/429/5xx
|
|
7958
|
+
* retryable, other 4xx terminal — but it reads `error.status`, and a bridge stream error carries
|
|
7959
|
+
* the status only as text: `pi assistant turn failed: 400: {"message":"The max_tokens parameter
|
|
7960
|
+
* is illegal ..."}`. With `status` undefined the classifier takes its "unknown, so assume the
|
|
7961
|
+
* upstream had a bad moment" branch, and a malformed request is retried to the attempt ceiling.
|
|
7962
|
+
* Measured: a 400 `invalid_request_error` retried 12 times, and it fails identically every time.
|
|
7963
|
+
*
|
|
7964
|
+
* Anchored to `: <status>: ` so it matches the bridge's own framing and not a status-shaped number
|
|
7965
|
+
* inside a provider's prose. A body that names no status leaves `status` undefined, which keeps
|
|
7966
|
+
* the existing retry-on-unknown behaviour.
|
|
7967
|
+
*/
|
|
7968
|
+
function upstreamStatusFromMessage(message) {
|
|
7969
|
+
const match = message?.match(/: (\d{3}): /);
|
|
7970
|
+
if (!match) return void 0;
|
|
7971
|
+
const status = Number(match[1]);
|
|
7972
|
+
return status >= 100 && status <= 599 ? status : void 0;
|
|
7973
|
+
}
|
|
7954
7974
|
function bridgeUpstreamError(error, prefix) {
|
|
7955
7975
|
const providerDispatch = error.provider_dispatch === "not_started" ? "not_started" : void 0;
|
|
7956
|
-
|
|
7976
|
+
const status = typeof error.status === "number" ? error.status : upstreamStatusFromMessage(error.message);
|
|
7977
|
+
const options = {
|
|
7978
|
+
...providerDispatch === void 0 ? {} : { providerDispatch },
|
|
7979
|
+
...status === void 0 ? {} : { status }
|
|
7980
|
+
};
|
|
7981
|
+
return new BackendTransportError("bridge", `${prefix}: ${error.message ?? error.type ?? "unknown"}`, Object.keys(options).length === 0 ? void 0 : options);
|
|
7957
7982
|
}
|
|
7958
7983
|
function mergeBridgeObservedModel(current, next) {
|
|
7959
7984
|
if (current === void 0 || current === next) return next;
|
|
@@ -12613,4 +12638,4 @@ function isNonEmptySpend(s) {
|
|
|
12613
12638
|
//#endregion
|
|
12614
12639
|
export { createInbox as $, renderProfileMaterializationIssues as $t, createBudgetPool as A, sanitizeKnowledgeReadinessReport as At, WORKER_TRACE_PROPAGATION as B, localHarnessExecutable as Bt, effectiveConcurrency as C, loopEventToOtelSpan as Ct, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as D, createRuntimeEventCollector as Dt, rollingDispatch as E, toOtelAttributes as Et, cliWorktreeExecutor as F, createWorktree as Ft, DEFAULT_SANDBOX_STEERING_MAX_TURNS as G, controlProfileMaterialization as Gt, workerTraceEnv as H, CodexExecutionDiagnosticError as Ht, createExecutor as I, removeWorktree as It, decodeToolPart as J, profileMaterializationAxes$1 as Jt, createSteerableSandboxSession as K, defineProfileMaterializationContract as Kt, createExecutorRegistry as L, DEFAULT_LOCAL_HARNESS as Lt, bindReusableExecutorExecutionId as M, runSettledCommand as Mt, bridgeStopSignalKey as N, runWorktreeHarness as Nt, teardownExecutor as O, createRuntimeStreamEventCollector as Ot, captureReusableExecutorConfig as P, captureWorktreeDiff as Pt, readWorkerProgress as Q, promptResourceProfileMaterialization as Qt, snapshotExecutorConfig as R, LOCAL_HARNESSES as Rt, waitUntil as S, generateSpanId as St, queueOf as T, padTraceId as Tt, workerTraceHeaders as U, AGENT_PROFILE_MATERIALIZATION_AXES as Ut, readWorkerTraceContext as V, parseCodexTokenUsage as Vt, workerTraceSeamKey as W, assertProfileMaterialization as Wt, DEFAULT_STALL_AFTER_MS as X, promptModelProfileMaterialization as Xt, sandboxSessionTraceSource as Y, promptControlProfileMaterialization as Yt, createActivityLog as Z, promptOnlyProfileMaterialization as Zt, createWaitProbes as _, buildRuntimeEventOtelSpans as _t, pickBestDelivered as a, acquireSandbox as at, timerAt as b, exportEvalRuns as bt, driverChild as c, canonicalObservedModel as ct, deriveNodeExecutionIdentity as d, mergeTraceEnv as dt, sandboxActProfileMaterialization as en, createSandboxForSpec as et, meterRuntimeOwnedAccounting as f, readTraceContextFromEnv as ft, settledToIteration as g, buildLoopSpanNodes as gt, scopeOwnerExecutorNodeContext as h, buildLoopOtelSpans as ht, collectDelivered as i, probeSandboxCapabilities as it, spendFromUsageEvents as j, sanitizeRuntimeStreamEvent as jt, assertValidBudget as k, sanitizeAgentRuntimeEvent as kt, withDriverExecutor as l, observedModelMatchesDeclared as lt, recordScopeOwnerMaterialization as m, INTELLIGENCE_WIRE_VERSION as mt, createSupervisor as n, worktreeCliProfileMaterialization as nn, runAgentRounds as nt, runFinalizer as o, routerBrain as ot, meterRuntimeOwnedProviderAttempt as p, traceContextToEnv as pt, createPushTraceSource as q, fullProfileMaterialization as qt, bestDelivered as r, createSandboxLineage as rt, runTree as s, runBrainLoop as st, createRootHandle as t, validateProfileMaterialization as tn, defaultSelectWinner as tt, createScope as u, createPropagatingTraceEmitter as ut, isWaitOutcome as v, createOpenInferenceFileExporter as vt, freeSlots as w, padSpanId as wt, validateWaitSpec as x, flatOtelSpan as xt, pollFor as y, createOtelExporter as yt, createWorktreeCliExecutor as z, harnessSupportsReasoningEffort as zt };
|
|
12615
12640
|
|
|
12616
|
-
//# sourceMappingURL=supervisor-
|
|
12641
|
+
//# sourceMappingURL=supervisor-BU01azdt.js.map
|