@tangle-network/agent-runtime 0.209.0 → 0.211.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 (52) hide show
  1. package/README.md +4 -0
  2. package/dist/{activation-Cjhm5Tds.js → activation-CJv8QcDd.js} +2 -2
  3. package/dist/{activation-Cjhm5Tds.js.map → activation-CJv8QcDd.js.map} +1 -1
  4. package/dist/{activation-tFdeirCa.d.ts → activation-r96R8a7k.d.ts} +2 -2
  5. package/dist/agent.d.ts +1 -1
  6. package/dist/agent.js +2 -2
  7. package/dist/{coordination-driver-C-hPz1zy.js → coordination-driver-urko7YZs.js} +2 -2
  8. package/dist/{coordination-driver-C-hPz1zy.js.map → coordination-driver-urko7YZs.js.map} +1 -1
  9. package/dist/{delegate-CB4CkJdV.js → delegate-BjIVctXq.js} +2 -2
  10. package/dist/{delegate-CB4CkJdV.js.map → delegate-BjIVctXq.js.map} +1 -1
  11. package/dist/durable.d.ts +20 -3
  12. package/dist/durable.js +20 -3
  13. package/dist/durable.js.map +1 -1
  14. package/dist/{graph-Ud2-Ytos.js → graph--JG8qLeG.js} +3 -3
  15. package/dist/{graph-Ud2-Ytos.js.map → graph--JG8qLeG.js.map} +1 -1
  16. package/dist/{improvement-cycle-B7ia6rTj.js → improvement-cycle-Djgc_dBQ.js} +3 -3
  17. package/dist/{improvement-cycle-B7ia6rTj.js.map → improvement-cycle-Djgc_dBQ.js.map} +1 -1
  18. package/dist/{index-0p5DiJoy.d.ts → index-BxIucF40.d.ts} +12 -2
  19. package/dist/index.d.ts +4 -4
  20. package/dist/index.js +7 -7
  21. package/dist/intelligence.d.ts +2 -2
  22. package/dist/intelligence.js +3 -3
  23. package/dist/kernel.d.ts +3 -3
  24. package/dist/kernel.js +8 -8
  25. package/dist/{loop-runner-bin-q-xGzEK9.d.ts → loop-runner-bin-Bz0RR-dg.d.ts} +3 -3
  26. package/dist/{loop-runner-bin-B30d3Yla.js → loop-runner-bin-Cj4QWoqD.js} +3 -3
  27. package/dist/{loop-runner-bin-B30d3Yla.js.map → loop-runner-bin-Cj4QWoqD.js.map} +1 -1
  28. package/dist/loop-runner-bin.d.ts +1 -1
  29. package/dist/loop-runner-bin.js +1 -1
  30. package/dist/mcp/bin.js +3 -3
  31. package/dist/mcp/index.d.ts +2 -2
  32. package/dist/mcp/index.js +4 -4
  33. package/dist/{provision-supervisor-C-nLaaQ_.js → provision-supervisor-D5vktn4-.js} +3 -3
  34. package/dist/{provision-supervisor-C-nLaaQ_.js.map → provision-supervisor-D5vktn4-.js.map} +1 -1
  35. package/dist/{redact-va_1mmv8.js → redact-CRUkFMwc.js} +6140 -6086
  36. package/dist/redact-CRUkFMwc.js.map +1 -0
  37. package/dist/{runtime-D0_b9wFH.js → runtime-BgaUFhvJ.js} +8 -8
  38. package/dist/{runtime-D0_b9wFH.js.map → runtime-BgaUFhvJ.js.map} +1 -1
  39. package/dist/{server-pq1x3C2i.js → server-CcvW0Y4S.js} +3 -3
  40. package/dist/{server-pq1x3C2i.js.map → server-CcvW0Y4S.js.map} +1 -1
  41. package/dist/{stream-agent-turn-BaKYHbHg.d.ts → stream-agent-turn-B7YnjmXV.d.ts} +417 -364
  42. package/dist/{structural-rollout-BaYBLUeI.js → structural-rollout-D8YEA37L.js} +2 -2
  43. package/dist/{structural-rollout-BaYBLUeI.js.map → structural-rollout-D8YEA37L.js.map} +1 -1
  44. package/dist/{supervise-CMWpmY_1.js → supervise-MA1BHLo5.js} +7 -3
  45. package/dist/supervise-MA1BHLo5.js.map +1 -0
  46. package/dist/testing.d.ts +2 -2
  47. package/dist/testing.js +12 -12
  48. package/dist/tui/index.d.ts +1 -1
  49. package/dist/tui/index.js +1 -1
  50. package/package.json +1 -1
  51. package/dist/redact-va_1mmv8.js.map +0 -1
  52. package/dist/supervise-CMWpmY_1.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { $ as bridgeAdmissionRefusal, $r as inheritRuntimeOwnedExecutorAttestation, $t as spendFromUsageEvents, A as consumeScopeRetainedOwnerResult, Ar as assertProfileMaterialization, Br as renderUnsupported, Ct as createInbox, Fn as RunCancellationReason, Fr as promptControlProfileMaterialization, Hr as unsupportedProfileDimensions, Ir as promptModelProfileMaterialization, M as scopeRetainedOwnerContext, Mn as zeroSpend, Mr as defineProfileMaterializationContract, N as scopeRetainedOwnerPriorSpend, Nn as registerRetainedExecutorPreparation, Nr as fullProfileMaterialization, P as scopeRetainedOwnerResult, Pn as retainedExecutorSeamKey, Pr as profileMaterializationAxes$1, Q as bindReusableExecutorExecutionId, S as scopeOwnerExecutorNodeContext, Wr as worktreeCliProfileMaterialization, X as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Xr as attestRuntimeOwnedScopeOwner, Xt as contentAddress, Z as teardownExecutor, Zt as assertValidBudget, _ as deriveNodeExecutionIdentity, _n as resolveAgentEnvironmentProvider, _r as withBudgetResources, a as createSupervisor, ai as runtimeOwnedDriveHarnessProviderEvidence, ar as generateSpanId, b as recordScopeOwnerMaterialization, ci as runtimeOwnedExecutorProviderEvidence, ct as snapshotExecutorConfig, d as driverChild, et as bridgeModelRouteRefusal, f as driverExecutorFactory, gi as detachedSnapshot, gr as resourceTelemetry, h as beginScopeOwnerAttempt, hr as addResourceSpend, i as createRootHandle, ii as recordRuntimeOwnedDriveHarnessProviderEvidence, j as prepareScopeRetainedOwnerTask, jn as unmeteredSpend, jr as controlProfileMaterialization, l as runFinalizer, li as runtimeOwnedPendingExecutorMaterialization, lr as toOtelAttributes, nr as createOtelExporter, nt as bridgeStopSignalKey, o as bestDelivered, oi as runtimeOwnedExecutorExecutionBinding, ot as createExecutor, p as isDriverSpec, ri as providerAttemptEvidence, rt as captureReusableExecutorConfig, si as runtimeOwnedExecutorMaterialization, tt as bridgeRuntimeAttachmentsKey, u as runTree, ui as runtimeOwnedScopeOwnerRuntime, un as routerBrain, ut as WORKER_TRACE_PROPAGATION, v as meterRuntimeOwnedAccounting, x as restoreScopeOwnerAcceptedExecution, y as meterRuntimeOwnedProviderAttempt, yn as addSpend } from "./redact-va_1mmv8.js";
1
+ import { $ as captureReusableExecutorConfig, $r as inheritRuntimeOwnedExecutorAttestation, $t as bridgeRuntimeAttachmentsKey, A as consumeScopeRetainedOwnerResult, Ar as assertProfileMaterialization, Bn as registerRetainedExecutorPreparation, Br as renderUnsupported, Ct as contentAddress, Dt as WORKER_TRACE_PROPAGATION, Et as spendFromUsageEvents, Fn as resourceTelemetry, Fr as promptControlProfileMaterialization, Hn as RunCancellationReason, Hr as unsupportedProfileDimensions, In as withBudgetResources, Ir as promptModelProfileMaterialization, It as createInbox, Jt as bridgeModelRouteRefusal, M as scopeRetainedOwnerContext, Mn as unmeteredSpend, Mr as defineProfileMaterializationContract, N as scopeRetainedOwnerPriorSpend, Nn as zeroSpend, Nr as fullProfileMaterialization, P as scopeRetainedOwnerResult, Pn as addResourceSpend, Pr as profileMaterializationAxes$1, Q as bindReusableExecutorExecutionId, S as scopeOwnerExecutorNodeContext, Vn as retainedExecutorSeamKey, Wr as worktreeCliProfileMaterialization, X as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Xr as attestRuntimeOwnedScopeOwner, Z as teardownExecutor, _ as deriveNodeExecutionIdentity, a as createSupervisor, ai as runtimeOwnedDriveHarnessProviderEvidence, ar as createOtelExporter, b as recordScopeOwnerMaterialization, bn as addSpend, ci as runtimeOwnedExecutorProviderEvidence, cr as generateSpanId, d as driverChild, dn as routerBrain, en as bridgeStopSignalKey, f as driverExecutorFactory, fr as toOtelAttributes, gi as detachedSnapshot, h as beginScopeOwnerAttempt, i as createRootHandle, ii as recordRuntimeOwnedDriveHarnessProviderEvidence, it as snapshotExecutorConfig, j as prepareScopeRetainedOwnerTask, jr as controlProfileMaterialization, l as runFinalizer, li as runtimeOwnedPendingExecutorMaterialization, nt as createExecutor, o as bestDelivered, oi as runtimeOwnedExecutorExecutionBinding, p as isDriverSpec, qt as bridgeAdmissionRefusal, ri as providerAttemptEvidence, si as runtimeOwnedExecutorMaterialization, u as runTree, ui as runtimeOwnedScopeOwnerRuntime, v as meterRuntimeOwnedAccounting, vn as resolveAgentEnvironmentProvider, wt as assertValidBudget, x as restoreScopeOwnerAcceptedExecution, y as meterRuntimeOwnedProviderAttempt } from "./redact-CRUkFMwc.js";
2
2
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError, r as BackendTransportError, t as AgentEvalError } from "./errors-DodWX-cb.js";
3
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
4
  import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
5
5
  import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-hZREkcfu.js";
6
- import { C as createCoordinationTools, F as watchRunCancellation, M as createInMemoryRunContext, P as applyRunCancellation, S as coordinationVerbNames, c as createProgressTracker, d as progressStop, j as createFileRunContext, r as driverAgent } from "./coordination-driver-C-hPz1zy.js";
6
+ import { C as createCoordinationTools, F as watchRunCancellation, M as createInMemoryRunContext, P as applyRunCancellation, S as coordinationVerbNames, c as createProgressTracker, d as progressStop, j as createFileRunContext, r as driverAgent } from "./coordination-driver-urko7YZs.js";
7
7
  import { t as createStdioToolServer } from "./tool-server-BJbCPhoW.js";
8
8
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
9
9
  import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
@@ -1541,6 +1541,8 @@ function buildSupervisorAgent(profile, deps, testBrain) {
1541
1541
  ...deliver ? { deliver(message) {
1542
1542
  return deliver(message);
1543
1543
  } } : {},
1544
+ traceSource: () => driveHarness.traceSource?.(),
1545
+ progress: () => driveHarness.progress?.(),
1544
1546
  async act(task, scope) {
1545
1547
  const context = nodeContextSeed ? supervisorNodeContext(nodeContextSeed, stableProfile, task, scope) : void 0;
1546
1548
  const priorCoordination = deps.loadPriorCoordination ? await deps.loadPriorCoordination() : deps.priorCoordination;
@@ -2728,6 +2730,8 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
2728
2730
  if (!deliver) return false;
2729
2731
  return deliver.call(activeExecutor, message) !== false;
2730
2732
  };
2733
+ drive.traceSource = () => activeExecutor?.traceSource?.();
2734
+ drive.progress = () => activeExecutor?.progress?.();
2731
2735
  return attestRuntimeOwnedScopeOwner(drive, boundBackend.backend === "provider" ? boundBackend.runtime ?? resolveAgentEnvironmentProvider(boundBackend.provider, boundBackend.registry).name : "cli");
2732
2736
  }
2733
2737
  function isAsyncIterable(value) {
@@ -3535,4 +3539,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
3535
3539
  //#endregion
3536
3540
  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 };
3537
3541
 
3538
- //# sourceMappingURL=supervise-CMWpmY_1.js.map
3542
+ //# sourceMappingURL=supervise-MA1BHLo5.js.map