@tangle-network/agent-runtime 0.179.0 → 0.180.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 (63) hide show
  1. package/dist/{activation-C-FAeybF.js → activation-BNd8DB7m.js} +2 -2
  2. package/dist/{activation-C-FAeybF.js.map → activation-BNd8DB7m.js.map} +1 -1
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/{authoring-kLYzRjsB.js → authoring-UTj7_GAd.js} +2 -2
  6. package/dist/{authoring-kLYzRjsB.js.map → authoring-UTj7_GAd.js.map} +1 -1
  7. package/dist/conversation.d.ts +1 -1
  8. package/dist/{coordination-driver-BeLF1j7n.js → coordination-driver-CZdORo2F.js} +2 -2
  9. package/dist/{coordination-driver-BeLF1j7n.js.map → coordination-driver-CZdORo2F.js.map} +1 -1
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +1 -1
  12. package/dist/{environment-provider-BGCU0IRa.d.ts → environment-provider-BG0Lll6Y.d.ts} +2 -2
  13. package/dist/environment-provider.d.ts +1 -1
  14. package/dist/{graph-CZFWujWS.js → graph-lskY1sph.js} +2 -2
  15. package/dist/{graph-CZFWujWS.js.map → graph-lskY1sph.js.map} +1 -1
  16. package/dist/graph.d.ts +3 -3
  17. package/dist/graph.js +3 -3
  18. package/dist/{improvement-cycle-CADEjVOB.js → improvement-cycle-CwPaVYsD.js} +3 -3
  19. package/dist/{improvement-cycle-CADEjVOB.js.map → improvement-cycle-CwPaVYsD.js.map} +1 -1
  20. package/dist/{index-DNXW665W.d.ts → index-C_5ADJEz.d.ts} +2 -2
  21. package/dist/{index-lu9HFbv5.d.ts → index-C_xAZx46.d.ts} +4 -4
  22. package/dist/{index-DhnWuHkN.d.ts → index-W1pLy7b2.d.ts} +5 -5
  23. package/dist/index.d.ts +7 -7
  24. package/dist/index.js +7 -7
  25. package/dist/intelligence.d.ts +4 -4
  26. package/dist/intelligence.js +3 -3
  27. package/dist/kernel.d.ts +5 -5
  28. package/dist/kernel.js +8 -8
  29. package/dist/{knowledge-BZvQ7Pca.js → knowledge-oEjtVYZK.js} +3 -3
  30. package/dist/{knowledge-BZvQ7Pca.js.map → knowledge-oEjtVYZK.js.map} +1 -1
  31. package/dist/knowledge.d.ts +1 -1
  32. package/dist/knowledge.js +1 -1
  33. package/dist/{loop-runner-bin-BnSUNv5h.d.ts → loop-runner-bin-Byrn0ovS.d.ts} +3 -3
  34. package/dist/{loop-runner-bin-CeMD66qH.js → loop-runner-bin-C6ppaK7_.js} +3 -3
  35. package/dist/{loop-runner-bin-CeMD66qH.js.map → loop-runner-bin-C6ppaK7_.js.map} +1 -1
  36. package/dist/loop-runner-bin.d.ts +1 -1
  37. package/dist/loop-runner-bin.js +1 -1
  38. package/dist/mcp/bin.js +3 -3
  39. package/dist/mcp/index.d.ts +3 -3
  40. package/dist/mcp/index.js +5 -5
  41. package/dist/{openai-tools-CQq1fhJ0.js → openai-tools-NgZyaVWA.js} +2 -2
  42. package/dist/{openai-tools-CQq1fhJ0.js.map → openai-tools-NgZyaVWA.js.map} +1 -1
  43. package/dist/primeintellect/index.d.ts +1 -1
  44. package/dist/{provision-supervisor-C_o4UH8c.js → provision-supervisor-C2qAsvwJ.js} +55 -32
  45. package/dist/provision-supervisor-C2qAsvwJ.js.map +1 -0
  46. package/dist/{redact-GpYsFenv.d.ts → redact-Td4Z49qK.d.ts} +3 -3
  47. package/dist/{runtime-oGfkncdd.d.ts → runtime-BcJkcqyq.d.ts} +3 -3
  48. package/dist/{runtime-BblXWn4d.js → runtime-CFttcekr.js} +8 -8
  49. package/dist/{runtime-BblXWn4d.js.map → runtime-CFttcekr.js.map} +1 -1
  50. package/dist/{stream-agent-turn-esfjghd9.d.ts → stream-agent-turn-BJcmeOjJ.d.ts} +2 -2
  51. package/dist/{structural-rollout-D4uIcI7I.js → structural-rollout-wSlpkkiV.js} +2 -2
  52. package/dist/{structural-rollout-D4uIcI7I.js.map → structural-rollout-wSlpkkiV.js.map} +1 -1
  53. package/dist/{supervise-Ckj6Ewdi.js → supervise-CSvq9RSA.js} +3 -3
  54. package/dist/{supervise-Ckj6Ewdi.js.map → supervise-CSvq9RSA.js.map} +1 -1
  55. package/dist/{supervisor--tj9JsFo.js → supervisor-wgifgrsR.js} +17 -12
  56. package/dist/{supervisor--tj9JsFo.js.map → supervisor-wgifgrsR.js.map} +1 -1
  57. package/dist/testing.d.ts +2 -2
  58. package/dist/testing.js +12 -12
  59. package/dist/tui/index.d.ts +1 -1
  60. package/dist/tui/index.js +1 -1
  61. package/dist/{types-CPpvwwTx.d.ts → types-CuObZjDz.d.ts} +6 -1
  62. package/package.json +1 -1
  63. package/dist/provision-supervisor-C_o4UH8c.js.map +0 -1
@@ -10636,7 +10636,7 @@ function boundedChildDeadlineAt(parentDeadlineAtMs, childDeadlineMs, nowMs) {
10636
10636
  * only when no execution deadline exists. The losing promise stays observed. */
10637
10637
  async function teardownExecutor(executor, grace, deadlineAtMs, now) {
10638
10638
  const work = Promise.resolve(executor.teardown(grace));
10639
- const requestedWaitMs = grace === "infinity" ? void 0 : grace === "brutalKill" ? TEARDOWN_ACKNOWLEDGEMENT_MS : grace + TEARDOWN_ACKNOWLEDGEMENT_MS;
10639
+ const requestedWaitMs = grace === "infinity" ? void 0 : grace === "brutalKill" ? executor.teardownTimeoutMs ?? TEARDOWN_ACKNOWLEDGEMENT_MS : grace + TEARDOWN_ACKNOWLEDGEMENT_MS;
10640
10640
  const deadlineWaitMs = deadlineAtMs === void 0 ? void 0 : Math.max(0, deadlineAtMs - now()) + TEARDOWN_ACKNOWLEDGEMENT_MS;
10641
10641
  const waitMs = requestedWaitMs === void 0 ? deadlineWaitMs : deadlineWaitMs === void 0 ? requestedWaitMs : Math.min(requestedWaitMs, deadlineWaitMs);
10642
10642
  let receipt;
@@ -11442,25 +11442,30 @@ function createRetainedRunHandle(environment, session, initialControlRef, capabi
11442
11442
  }
11443
11443
  //#endregion
11444
11444
  //#region src/runtime/retained-run-start.ts
11445
+ const MAX_RETAINED_IDENTITY_BYTES = 128;
11445
11446
  /**
11446
11447
  * Mint deterministic dispatch coordinates from the two caller-supplied keys.
11447
11448
  * The same `(idempotencyKey, turnId)` pair yields the same coordinates in
11448
11449
  * every process, so a pre-dispatch admission record always names the exact
11449
- * session and execution the dispatch will request. Format is readable, not
11450
- * hashed, following `deriveExecutionId`: components are URL-encoded so
11451
- * delimiters inside caller keys cannot collapse distinct pairs, and the
11452
- * result stays inside the 256-byte identifier bound.
11450
+ * session and execution the dispatch will request. Short inputs keep a
11451
+ * readable URL-encoded identity. Long inputs use a full SHA-256 digest so
11452
+ * provider storage layers never receive an overlong composite identifier.
11453
11453
  */
11454
11454
  function mintRetainedIdentity(idempotencyKey, turnId) {
11455
11455
  const base = `${encodeURIComponent(idempotencyKey)}:${encodeURIComponent(turnId)}`;
11456
- const sessionId = `retained-session:${base}`;
11457
- const executionId = `retained-execution:${base}`;
11458
- if (executionId.length > 256) throw new RangeError("minted retained identity must not exceed 256 bytes");
11456
+ const digest = canonicalCandidateDigest({
11457
+ kind: "retained-identity.v1",
11458
+ base
11459
+ }).slice(7);
11459
11460
  return {
11460
- sessionId,
11461
- executionId
11461
+ sessionId: boundedRetainedIdentity("retained-session", base, digest),
11462
+ executionId: boundedRetainedIdentity("retained-execution", base, digest)
11462
11463
  };
11463
11464
  }
11465
+ function boundedRetainedIdentity(prefix, base, digest) {
11466
+ const readable = `${prefix}:${base}`;
11467
+ return readable.length <= MAX_RETAINED_IDENTITY_BYTES ? readable : `${prefix}:${digest}`;
11468
+ }
11464
11469
  /**
11465
11470
  * Dispatch one detached, replayable run and return only after exact durable
11466
11471
  * coordinates are confirmed by the provider and persisted by the caller.
@@ -15447,6 +15452,6 @@ function isNonEmptySpend(s) {
15447
15452
  return s.iterations > 0 || s.tokens.input > 0 || s.tokens.output > 0 || s.usd > 0 || s.ms > 0 || s.tokensKnown === false || s.usdKnown === false;
15448
15453
  }
15449
15454
  //#endregion
15450
- export { bridgeRuntimeAttachmentsKey as $, buildRuntimeEventOtelSpans as $t, readWorkerInteractiveBinding as A, profileMaterializationAxes$1 as An, isLiveNodeStatus as At, retainedCreateMaterial as B, worktreeCliProfileMaterialization as Bn, probeSandboxCapabilities as Bt, timerAt as C, parseCodexTokenUsage as Cn, DEFAULT_PEER_MAIL_LIMITS as Ct, readWorkerInteractiveAdmissions as D, controlProfileMaterialization as Dn, isPeerMailEnvelope as Dt, interactiveAdmissionSeamKey as E, assertProfileMaterialization as En, createPeerMailbox as Et, startRetainedInteractiveRun as F, renderProfileMaterializationIssues as Fn, createSandboxForSpec as Ft, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as G, observedModelMatchesDeclared as Gt, freeSlots as H, routerBrain as Ht, reconnectRetainedRun as I, renderUnsupported as In, defaultSelectWinner as It, createBudgetPool as J, readTraceContextFromEnv as Jt, teardownExecutor as K, createPropagatingTraceEmitter as Kt, recoverRetainedRun as L, sandboxActProfileMaterialization as Ln, isTerminalDecision as Lt, workerInteractiveBindingsDir as M, promptModelProfileMaterialization as Mn, createInPlaceCliExecutor as Mt, reconnectRetainedInteractiveRun as N, promptOnlyProfileMaterialization as Nn, taskToPrompt as Nt, workerInteractiveAdmissionFile as O, defineProfileMaterializationContract as On, peerMailTools as Ot, recoverRetainedInteractiveRun as P, promptResourceProfileMaterialization as Pn, TERMINAL_DECISIONS as Pt, bridgeModelRouteRefusal as Q, buildLoopSpanNodes as Qt, startRetainedRun as R, unsupportedProfileDimensions as Rn, runAgentRounds as Rt, pollFor as S, localHarnessExecutable as Sn, AUTHORITY_MARKERS as St, waitUntil as T, AGENT_PROFILE_MATERIALIZATION_AXES as Tn, claimsAuthority as Tt, queueOf as U, runBrainLoop as Ut, effectiveConcurrency as V, acquireSandbox as Vt, rollingDispatch as W, canonicalObservedModel as Wt, bindReusableExecutorExecutionId as X, INTELLIGENCE_WIRE_VERSION as Xt, spendFromUsageEvents as Y, traceContextToEnv as Yt, bridgeAdmissionRead as Z, buildLoopOtelSpans as Zt, recordScopeOwnerMaterialization as _, createWorktree as _n, sandboxSessionTraceSource as _t, uncertainSpawnBudgets as a, loopEventToOtelSpan as an, createExecutorRegistry as at, createWaitProbes as b, LOCAL_HARNESSES as bn, readWorkerProgress as bt, pickBestDelivered as c, toOtelAttributes as cn, WORKER_TRACE_PROPAGATION as ct, driverChild as d, sanitizeAgentRuntimeEvent as dn, workerTraceHeaders as dt, createOpenInferenceFileExporter as en, bridgeStopSignalKey as et, withDriverExecutor as f, sanitizeKnowledgeReadinessReport as fn, workerTraceSeamKey as ft, meterRuntimeOwnedProviderAttempt as g, captureWorktreeDiff as gn, decodeToolPart as gt, meterRuntimeOwnedAccounting as h, runWorktreeHarness as hn, createPushTraceSource as ht, sumMeasuredSpendFromEvents as i, generateSpanId as in, createExecutor as it, workerInteractiveBindingFile as j, promptControlProfileMaterialization as jn, isTerminalNodeStatus as jt, attachWorker as k, fullProfileMaterialization as kn, peerMailVerbNames as kt, runFinalizer as l, createRuntimeEventCollector as ln, readWorkerTraceContext as lt, deriveNodeExecutionIdentity as m, runSettledCommand as mn, createSteerableSandboxSession as mt, createSupervisor as n, exportEvalRuns as nn, cliInPlaceExecutor as nt, bestDelivered as o, padSpanId as on, snapshotExecutorConfig as ot, createScope as p, sanitizeRuntimeStreamEvent as pn, DEFAULT_SANDBOX_STEERING_MAX_TURNS as pt, assertValidBudget as q, mergeTraceEnv as qt, maxSeqOf as r, flatOtelSpan as rn, cliWorktreeExecutor as rt, collectDelivered as s, padTraceId as sn, createWorktreeCliExecutor as st, createRootHandle as t, createOtelExporter as tn, captureReusableExecutorConfig as tt, runTree as u, createRuntimeStreamEventCollector as un, workerTraceEnv as ut, scopeOwnerExecutorNodeContext as v, removeWorktree as vn, DEFAULT_STALL_AFTER_MS as vt, validateWaitSpec as w, CodexExecutionDiagnosticError as wn, PEER_MAIL_WIRE_KEY as wt, isWaitOutcome as x, harnessSupportsReasoningEffort as xn, createInbox as xt, settledToIteration as y, DEFAULT_LOCAL_HARNESS as yn, createActivityLog as yt, startRetainedRunInEnvironment as z, validateProfileMaterialization as zn, createSandboxLineage as zt };
15455
+ export { bridgeModelRouteRefusal as $, buildLoopSpanNodes as $t, readWorkerInteractiveBinding as A, fullProfileMaterialization as An, peerMailVerbNames as At, retainedCreateMaterial as B, validateProfileMaterialization as Bn, createSandboxLineage as Bt, timerAt as C, localHarnessExecutable as Cn, AUTHORITY_MARKERS as Ct, readWorkerInteractiveAdmissions as D, assertProfileMaterialization as Dn, createPeerMailbox as Dt, interactiveAdmissionSeamKey as E, AGENT_PROFILE_MATERIALIZATION_AXES as En, claimsAuthority as Et, startRetainedInteractiveRun as F, promptResourceProfileMaterialization as Fn, TERMINAL_DECISIONS as Ft, rollingDispatch as G, canonicalObservedModel as Gt, effectiveConcurrency as H, acquireSandbox as Ht, reconnectRetainedRun as I, renderProfileMaterializationIssues as In, createSandboxForSpec as It, assertValidBudget as J, mergeTraceEnv as Jt, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as K, observedModelMatchesDeclared as Kt, recoverRetainedRun as L, renderUnsupported as Ln, defaultSelectWinner as Lt, workerInteractiveBindingsDir as M, promptControlProfileMaterialization as Mn, isTerminalNodeStatus as Mt, reconnectRetainedInteractiveRun as N, promptModelProfileMaterialization as Nn, createInPlaceCliExecutor as Nt, workerInteractiveAdmissionFile as O, controlProfileMaterialization as On, isPeerMailEnvelope as Ot, recoverRetainedInteractiveRun as P, promptOnlyProfileMaterialization as Pn, taskToPrompt as Pt, bridgeAdmissionRead as Q, buildLoopOtelSpans as Qt, startRetainedRun as R, sandboxActProfileMaterialization as Rn, isTerminalDecision as Rt, pollFor as S, harnessSupportsReasoningEffort as Sn, createInbox as St, waitUntil as T, CodexExecutionDiagnosticError as Tn, PEER_MAIL_WIRE_KEY as Tt, freeSlots as U, routerBrain as Ut, destroyInteractiveEnvironment as V, worktreeCliProfileMaterialization as Vn, probeSandboxCapabilities as Vt, queueOf as W, runBrainLoop as Wt, spendFromUsageEvents as X, traceContextToEnv as Xt, createBudgetPool as Y, readTraceContextFromEnv as Yt, bindReusableExecutorExecutionId as Z, INTELLIGENCE_WIRE_VERSION as Zt, recordScopeOwnerMaterialization as _, captureWorktreeDiff as _n, decodeToolPart as _t, uncertainSpawnBudgets as a, generateSpanId as an, createExecutor as at, createWaitProbes as b, DEFAULT_LOCAL_HARNESS as bn, createActivityLog as bt, pickBestDelivered as c, padTraceId as cn, createWorktreeCliExecutor as ct, driverChild as d, createRuntimeStreamEventCollector as dn, workerTraceEnv as dt, buildRuntimeEventOtelSpans as en, bridgeRuntimeAttachmentsKey as et, withDriverExecutor as f, sanitizeAgentRuntimeEvent as fn, workerTraceHeaders as ft, meterRuntimeOwnedProviderAttempt as g, runWorktreeHarness as gn, createPushTraceSource as gt, meterRuntimeOwnedAccounting as h, runSettledCommand as hn, createSteerableSandboxSession as ht, sumMeasuredSpendFromEvents as i, flatOtelSpan as in, cliWorktreeExecutor as it, workerInteractiveBindingFile as j, profileMaterializationAxes$1 as jn, isLiveNodeStatus as jt, attachWorker as k, defineProfileMaterializationContract as kn, peerMailTools as kt, runFinalizer as l, toOtelAttributes as ln, WORKER_TRACE_PROPAGATION as lt, deriveNodeExecutionIdentity as m, sanitizeRuntimeStreamEvent as mn, DEFAULT_SANDBOX_STEERING_MAX_TURNS as mt, createSupervisor as n, createOtelExporter as nn, captureReusableExecutorConfig as nt, bestDelivered as o, loopEventToOtelSpan as on, createExecutorRegistry as ot, createScope as p, sanitizeKnowledgeReadinessReport as pn, workerTraceSeamKey as pt, teardownExecutor as q, createPropagatingTraceEmitter as qt, maxSeqOf as r, exportEvalRuns as rn, cliInPlaceExecutor as rt, collectDelivered as s, padSpanId as sn, snapshotExecutorConfig as st, createRootHandle as t, createOpenInferenceFileExporter as tn, bridgeStopSignalKey as tt, runTree as u, createRuntimeEventCollector as un, readWorkerTraceContext as ut, scopeOwnerExecutorNodeContext as v, createWorktree as vn, sandboxSessionTraceSource as vt, validateWaitSpec as w, parseCodexTokenUsage as wn, DEFAULT_PEER_MAIL_LIMITS as wt, isWaitOutcome as x, LOCAL_HARNESSES as xn, readWorkerProgress as xt, settledToIteration as y, removeWorktree as yn, DEFAULT_STALL_AFTER_MS as yt, startRetainedRunInEnvironment as z, unsupportedProfileDimensions as zn, runAgentRounds as zt };
15451
15456
 
15452
- //# sourceMappingURL=supervisor--tj9JsFo.js.map
15457
+ //# sourceMappingURL=supervisor-wgifgrsR.js.map