@tangle-network/agent-runtime 0.132.12 → 0.133.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.
Files changed (87) hide show
  1. package/README.md +20 -7
  2. package/dist/{activation-hdn3WMct.js → activation-B4nhh8w3.js} +3 -3
  3. package/dist/{activation-hdn3WMct.js.map → activation-B4nhh8w3.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/{analyst-loop-CBiT-ev1.js → analyst-loop-C189F6v8.js} +2 -2
  7. package/dist/{analyst-loop-CBiT-ev1.js.map → analyst-loop-C189F6v8.js.map} +1 -1
  8. package/dist/analyst-loop.js +1 -1
  9. package/dist/{authoring-D8uh1TYA.js → authoring-Dt5lGaM7.js} +2 -2
  10. package/dist/{authoring-D8uh1TYA.js.map → authoring-Dt5lGaM7.js.map} +1 -1
  11. package/dist/candidate-execution/index.js +4 -4
  12. package/dist/{candidate-execution-DUefVdnW.js → candidate-execution-BUhnNcyt.js} +4 -4
  13. package/dist/{candidate-execution-DUefVdnW.js.map → candidate-execution-BUhnNcyt.js.map} +1 -1
  14. package/dist/{conversation-BiII3X_6.js → conversation-CiO00rgm.js} +4 -4
  15. package/dist/{conversation-BiII3X_6.js.map → conversation-CiO00rgm.js.map} +1 -1
  16. package/dist/conversation.js +1 -1
  17. package/dist/{environment-provider-CkSDxRZd.d.ts → environment-provider-BnioYoPQ.d.ts} +3 -3
  18. package/dist/environment-provider.d.ts +1 -1
  19. package/dist/{errors-DEAvWQPy.js → errors-DRoXIc7E.js} +45 -2
  20. package/dist/errors-DRoXIc7E.js.map +1 -0
  21. package/dist/{graph-BJy5vrLu.js → graph-CEFPJQRh.js} +4 -4
  22. package/dist/{graph-BJy5vrLu.js.map → graph-CEFPJQRh.js.map} +1 -1
  23. package/dist/{improvement-cycle-BmphH2sT.js → improvement-cycle-Bf9V8cj8.js} +9 -9
  24. package/dist/{improvement-cycle-BmphH2sT.js.map → improvement-cycle-Bf9V8cj8.js.map} +1 -1
  25. package/dist/{index-CWnUn15M.d.ts → index-BzP_EK1N.d.ts} +236 -90
  26. package/dist/{index-DHwZyU_t.d.ts → index-Cw0RMLao.d.ts} +3 -3
  27. package/dist/index.d.ts +6 -6
  28. package/dist/index.js +15 -15
  29. package/dist/intelligence.d.ts +3 -3
  30. package/dist/intelligence.js +5 -5
  31. package/dist/kernel.d.ts +4 -4
  32. package/dist/kernel.js +10 -10
  33. package/dist/{knowledge-DQSjOQQi.js → knowledge-Dj7e4Pg8.js} +7 -7
  34. package/dist/{knowledge-DQSjOQQi.js.map → knowledge-Dj7e4Pg8.js.map} +1 -1
  35. package/dist/knowledge.d.ts +1 -1
  36. package/dist/knowledge.js +1 -1
  37. package/dist/{loop-runner-bin-Dp1Ntpo5.js → loop-runner-bin-DJDMsJus.js} +5 -5
  38. package/dist/{loop-runner-bin-Dp1Ntpo5.js.map → loop-runner-bin-DJDMsJus.js.map} +1 -1
  39. package/dist/{loop-runner-bin-C-u6nlIN.d.ts → loop-runner-bin-rmUSJ0jy.d.ts} +2 -2
  40. package/dist/loop-runner-bin.d.ts +1 -1
  41. package/dist/loop-runner-bin.js +1 -1
  42. package/dist/{materialization-JR_nN_oT.js → materialization-BkL7gRP6.js} +4 -4
  43. package/dist/{materialization-JR_nN_oT.js.map → materialization-BkL7gRP6.js.map} +1 -1
  44. package/dist/mcp/bin.js +4 -4
  45. package/dist/mcp/index.d.ts +2 -2
  46. package/dist/mcp/index.js +8 -8
  47. package/dist/mcp/memory-bin.js +1 -1
  48. package/dist/{memory-server-eD2baiRO.js → memory-server-CblxrUKT.js} +3 -3
  49. package/dist/{memory-server-eD2baiRO.js.map → memory-server-CblxrUKT.js.map} +1 -1
  50. package/dist/{model-policy-mWSoToiQ.js → model-policy-Bv1DU2fw.js} +2 -2
  51. package/dist/{model-policy-mWSoToiQ.js.map → model-policy-Bv1DU2fw.js.map} +1 -1
  52. package/dist/{openai-tools-Cmu2MzOW.js → openai-tools-MB5xyj1D.js} +2 -2
  53. package/dist/{openai-tools-Cmu2MzOW.js.map → openai-tools-MB5xyj1D.js.map} +1 -1
  54. package/dist/{prepare-BQ82nG06.js → prepare-DggAvkbq.js} +2 -2
  55. package/dist/{prepare-BQ82nG06.js.map → prepare-DggAvkbq.js.map} +1 -1
  56. package/dist/primeintellect/index.d.ts +1 -1
  57. package/dist/profiles.js +1 -1
  58. package/dist/{protected-model-port-BAOj4gQN.js → protected-model-port-BpQeW-0j.js} +2 -2
  59. package/dist/{protected-model-port-BAOj4gQN.js.map → protected-model-port-BpQeW-0j.js.map} +1 -1
  60. package/dist/{redact-DMqkOZNV.d.ts → redact-BTKr5YLO.d.ts} +2 -2
  61. package/dist/{researcher-CYmr4VJy.js → researcher-BiWSFLi6.js} +3 -3
  62. package/dist/{researcher-CYmr4VJy.js.map → researcher-BiWSFLi6.js.map} +1 -1
  63. package/dist/{runtime-CIVruNqK.d.ts → runtime-BRErB7lm.d.ts} +2 -2
  64. package/dist/{runtime-DBwRWL38.js → runtime-DtRTgm3B.js} +152 -21
  65. package/dist/{runtime-DBwRWL38.js.map → runtime-DtRTgm3B.js.map} +1 -1
  66. package/dist/{snapshot-CXiiuHhL.js → snapshot-DY6VGliG.js} +2 -2
  67. package/dist/{snapshot-CXiiuHhL.js.map → snapshot-DY6VGliG.js.map} +1 -1
  68. package/dist/{spawn-journal-Cd5L-Ie9.js → spawn-journal-CNg5-D9p.js} +3 -3
  69. package/dist/{spawn-journal-Cd5L-Ie9.js.map → spawn-journal-CNg5-D9p.js.map} +1 -1
  70. package/dist/{stream-agent-turn-Bo5ZSAUR.js → stream-agent-turn-B4Mvk5G-.js} +4 -4
  71. package/dist/{stream-agent-turn-Bo5ZSAUR.js.map → stream-agent-turn-B4Mvk5G-.js.map} +1 -1
  72. package/dist/{structural-rollout-BDzH9eZs.js → structural-rollout-OPAUocq7.js} +9 -11
  73. package/dist/structural-rollout-OPAUocq7.js.map +1 -0
  74. package/dist/{supervise-B8BYfxEw.js → supervise-Da_e1GgK.js} +8 -8
  75. package/dist/{supervise-B8BYfxEw.js.map → supervise-Da_e1GgK.js.map} +1 -1
  76. package/dist/{supervisor-DnA7FWmf.js → supervisor-BwU40H4n.js} +7 -7
  77. package/dist/supervisor-BwU40H4n.js.map +1 -0
  78. package/dist/testing.d.ts +2 -2
  79. package/dist/testing.js +12 -12
  80. package/dist/{tool-server-Gs3VvfSK.js → tool-server-VvSK1K3X.js} +2 -2
  81. package/dist/{tool-server-Gs3VvfSK.js.map → tool-server-VvSK1K3X.js.map} +1 -1
  82. package/dist/{workspace-archive-CGcXL3zA.js → workspace-archive-Cm3rtP4F.js} +2 -2
  83. package/dist/{workspace-archive-CGcXL3zA.js.map → workspace-archive-Cm3rtP4F.js.map} +1 -1
  84. package/package.json +1 -1
  85. package/dist/errors-DEAvWQPy.js.map +0 -1
  86. package/dist/structural-rollout-BDzH9eZs.js.map +0 -1
  87. package/dist/supervisor-DnA7FWmf.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { c as RuntimeRunStateError, r as BackendTransportError, u as ValidationError } from "./errors-DEAvWQPy.js";
2
- import { t as detachedSnapshot } from "./snapshot-CXiiuHhL.js";
3
- import { _ as captureWorkerTraceEvidence, c as replaySpawnTree, f as attestNestedDriverTreeOwner, h as runtimeOwnedNestedDriverTreeRoot, m as nestedDriverTreeRoot, o as materializeTreeView, p as driverRuntime, s as pendingWaits, x as contentAddress } from "./spawn-journal-Cd5L-Ie9.js";
1
+ import { f as ValidationError, r as BackendTransportError, u as RuntimeRunStateError } from "./errors-DRoXIc7E.js";
2
+ import { t as detachedSnapshot } from "./snapshot-DY6VGliG.js";
3
+ import { _ as captureWorkerTraceEvidence, c as replaySpawnTree, f as attestNestedDriverTreeOwner, h as runtimeOwnedNestedDriverTreeRoot, m as nestedDriverTreeRoot, o as materializeTreeView, p as driverRuntime, s as pendingWaits, x as contentAddress } from "./spawn-journal-CNg5-D9p.js";
4
4
  import { c as randomUuid, d as throwAbort, f as throwIfAborted, l as sleep, m as zeroTokenUsage, n as cloneTokenUsage, o as mapWithConcurrency, p as withTimeout, r as deleteBoxSafe, s as randomSuffix, t as addTokenUsage, u as stringifySafe } from "./util-Dr--8wAL.js";
5
5
  import { a as notifySandboxEventObserver, n as extractLlmCallEvent } from "./sandbox-events-vIwmuPdl.js";
6
- import { a as concreteProfileModel, l as resolveRouterRetryPolicy, o as profileBridgeWireModel, s as profileModelExecutionSettings, t as assertExecutableAgentProfile, u as agentHarness } from "./model-policy-mWSoToiQ.js";
7
- import { _ as runtimeOwnedScopeOwnerRuntime, a as authoredProfileDigest, b as executableAgentProfileSnapshot, c as knownExecutionBindingReceipt, f as runtimeOwnedDeferredExecutorRuntime, g as runtimeOwnedPendingExecutorMaterialization, h as runtimeOwnedExecutorMaterialization, l as knownMaterializationReceipt, m as runtimeOwnedExecutorExecutionBinding, n as attestRuntimeOwnedExecutor, o as finalizeRuntimeOwnedPendingExecutor, r as attestRuntimeOwnedPendingExecutor, t as attestRuntimeOwnedDeferredExecutor, u as newExecutionAttemptId, v as unknownExecutionBindingReceipt, x as executableAgentSpecSnapshot, y as unknownMaterializationReceipt } from "./materialization-JR_nN_oT.js";
6
+ import { a as concreteProfileModel, l as resolveRouterRetryPolicy, o as profileBridgeWireModel, s as profileModelExecutionSettings, t as assertExecutableAgentProfile, u as agentHarness } from "./model-policy-Bv1DU2fw.js";
7
+ import { _ as runtimeOwnedScopeOwnerRuntime, a as authoredProfileDigest, b as executableAgentProfileSnapshot, c as knownExecutionBindingReceipt, f as runtimeOwnedDeferredExecutorRuntime, g as runtimeOwnedPendingExecutorMaterialization, h as runtimeOwnedExecutorMaterialization, l as knownMaterializationReceipt, m as runtimeOwnedExecutorExecutionBinding, n as attestRuntimeOwnedExecutor, o as finalizeRuntimeOwnedPendingExecutor, r as attestRuntimeOwnedPendingExecutor, t as attestRuntimeOwnedDeferredExecutor, u as newExecutionAttemptId, v as unknownExecutionBindingReceipt, x as executableAgentSpecSnapshot, y as unknownMaterializationReceipt } from "./materialization-BkL7gRP6.js";
8
8
  import { i as resolveAgentEnvironmentProvider, n as providerAsExecutor, r as providerAsSandboxClient } from "./environment-provider-mDsjfGjY.js";
9
9
  import { i as notifyRuntimeHookEvent } from "./runtime-hooks-C7iJOWm3.js";
10
10
  import { estimateCost, isModelPriced } from "@tangle-network/agent-eval";
@@ -3959,7 +3959,7 @@ function isRetryable(err) {
3959
3959
  if (!err || typeof err !== "object") return false;
3960
3960
  const e = err;
3961
3961
  const status = e.status ?? e.statusCode;
3962
- if (typeof status === "number" && RETRYABLE_HTTP.has(status)) return true;
3962
+ if (typeof status === "number") return RETRYABLE_HTTP.has(status) || status >= 500;
3963
3963
  const name = e.name ?? "";
3964
3964
  if (name === "TimeoutError" || name === "ServerError" || name === "NetworkError") return true;
3965
3965
  const msg = e.message ?? "";
@@ -12280,4 +12280,4 @@ function isNonEmptySpend(s) {
12280
12280
  //#endregion
12281
12281
  export { runAgentRounds as $, bindReusableExecutorExecutionId as A, captureWorktreeDiff as At, workerTraceHeaders as B, assertProfileMaterialization as Bt, queueOf as C, createRuntimeEventCollector as Ct, assertValidBudget as D, sanitizeRuntimeStreamEvent as Dt, teardownExecutor as E, sanitizeKnowledgeReadinessReport as Et, snapshotExecutorConfig as F, harnessSupportsReasoningEffort as Ft, decodeToolPart as G, promptControlProfileMaterialization as Gt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as H, defineProfileMaterializationContract as Ht, createWorktreeCliExecutor as I, localHarnessExecutable as It, createActivityLog as J, promptResourceProfileMaterialization as Jt, sandboxSessionTraceSource as K, promptModelProfileMaterialization as Kt, WORKER_TRACE_PROPAGATION as L, parseCodexTokenUsage as Lt, cliWorktreeExecutor as M, removeWorktree as Mt, createExecutor as N, DEFAULT_LOCAL_HARNESS as Nt, createBudgetPool as O, runSettledCommand as Ot, createExecutorRegistry as P, LOCAL_HARNESSES as Pt, defaultSelectWinner as Q, worktreeCliProfileMaterialization as Qt, readWorkerTraceContext as R, CodexExecutionDiagnosticError as Rt, freeSlots as S, toOtelAttributes as St, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as T, sanitizeAgentRuntimeEvent as Tt, createSteerableSandboxSession as U, fullProfileMaterialization as Ut, workerTraceSeamKey as V, controlProfileMaterialization as Vt, createPushTraceSource as W, profileMaterializationAxes$1 as Wt, createInbox as X, sandboxActProfileMaterialization as Xt, readWorkerProgress as Y, renderProfileMaterializationIssues as Yt, createSandboxForSpec as Z, validateProfileMaterialization as Zt, pollFor as _, flatOtelSpan as _t, pickBestDelivered as a, observedModelMatchesDeclared as at, waitUntil as b, padSpanId as bt, driverChild as c, readTraceContextFromEnv as ct, deriveNodeExecutionIdentity as d, buildLoopOtelSpans as dt, createSandboxLineage as et, recordScopeOwnerMaterialization as f, buildLoopSpanNodes as ft, isWaitOutcome as g, exportEvalRuns as gt, createWaitProbes as h, createOtelExporter as ht, collectDelivered as i, runBrainLoop as it, captureReusableExecutorConfig as j, createWorktree as jt, spendFromUsageEvents as k, runWorktreeHarness as kt, withDriverExecutor as l, traceContextToEnv as lt, settledToIteration as m, createOpenInferenceFileExporter as mt, createSupervisor as n, acquireSandbox as nt, runFinalizer as o, createPropagatingTraceEmitter as ot, scopeOwnerExecutorNodeContext as p, buildRuntimeEventOtelSpans as pt, DEFAULT_STALL_AFTER_MS as q, promptOnlyProfileMaterialization as qt, bestDelivered as r, routerBrain as rt, runTree as s, mergeTraceEnv as st, createRootHandle as t, probeSandboxCapabilities as tt, createScope as u, INTELLIGENCE_WIRE_VERSION as ut, timerAt as v, generateSpanId as vt, rollingDispatch as w, createRuntimeStreamEventCollector as wt, effectiveConcurrency as x, padTraceId as xt, validateWaitSpec as y, loopEventToOtelSpan as yt, workerTraceEnv as z, AGENT_PROFILE_MATERIALIZATION_AXES as zt };
12282
12282
 
12283
- //# sourceMappingURL=supervisor-DnA7FWmf.js.map
12283
+ //# sourceMappingURL=supervisor-BwU40H4n.js.map