@tangle-network/agent-runtime 0.322.1 → 0.322.4

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 (53) hide show
  1. package/dist/{activation-CZGz2kuu.d.ts → activation-Bw6S7lI1.d.ts} +2 -2
  2. package/dist/{activation-CBv_0LUh.js → activation-ClHYiUF-.js} +2 -2
  3. package/dist/{activation-CBv_0LUh.js.map → activation-ClHYiUF-.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-C2Zm5lU4.js → coordination-driver-xq1y2G6E.js} +2 -2
  7. package/dist/{coordination-driver-C2Zm5lU4.js.map → coordination-driver-xq1y2G6E.js.map} +1 -1
  8. package/dist/{delegate-BV7AVmbB.js → delegate-C9dMTZ8s.js} +2 -2
  9. package/dist/{delegate-BV7AVmbB.js.map → delegate-C9dMTZ8s.js.map} +1 -1
  10. package/dist/durable.d.ts +1 -1
  11. package/dist/durable.js +2 -2
  12. package/dist/{graph-CH3YiPog.js → graph-DLgIEaDB.js} +4 -4
  13. package/dist/{graph-CH3YiPog.js.map → graph-DLgIEaDB.js.map} +1 -1
  14. package/dist/{improvement-cycle-CD1h5GSM.js → improvement-cycle-C0N4tt1G.js} +3 -3
  15. package/dist/{improvement-cycle-CD1h5GSM.js.map → improvement-cycle-C0N4tt1G.js.map} +1 -1
  16. package/dist/{index-CGNQWpge.d.ts → index-BE5-_p0B.d.ts} +8 -1
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +7 -7
  19. package/dist/intelligence.d.ts +2 -2
  20. package/dist/intelligence.js +22 -6
  21. package/dist/intelligence.js.map +1 -1
  22. package/dist/kernel.d.ts +1 -1
  23. package/dist/kernel.js +8 -8
  24. package/dist/{loop-runner-bin-CFxE376A.js → loop-runner-bin-B4QRhI5z.js} +3 -3
  25. package/dist/{loop-runner-bin-CFxE376A.js.map → loop-runner-bin-B4QRhI5z.js.map} +1 -1
  26. package/dist/{loop-runner-bin-C_jaLCUO.d.ts → loop-runner-bin-DeT99QWD.d.ts} +2 -2
  27. package/dist/loop-runner-bin.d.ts +1 -1
  28. package/dist/loop-runner-bin.js +1 -1
  29. package/dist/mcp/bin.js +3 -3
  30. package/dist/mcp/index.d.ts +2 -2
  31. package/dist/mcp/index.js +4 -4
  32. package/dist/{openai-tools-D1PDoBOz.d.ts → openai-tools-C80KeWl4.d.ts} +2 -2
  33. package/dist/profiles.d.ts +1 -1
  34. package/dist/{provision-supervisor-ftJZhqBU.js → provision-supervisor-C40ye4h2.js} +3 -3
  35. package/dist/{provision-supervisor-ftJZhqBU.js.map → provision-supervisor-C40ye4h2.js.map} +1 -1
  36. package/dist/{runtime-EiTCboO2.js → runtime-zv5GK0m4.js} +8 -8
  37. package/dist/{runtime-EiTCboO2.js.map → runtime-zv5GK0m4.js.map} +1 -1
  38. package/dist/{search-executor-ECJ2TmC-.js → search-executor-BtJktjPt.js} +2 -2
  39. package/dist/{search-executor-ECJ2TmC-.js.map → search-executor-BtJktjPt.js.map} +1 -1
  40. package/dist/{server-C2k5wX4k.js → server-DNnLa4KU.js} +3 -3
  41. package/dist/{server-C2k5wX4k.js.map → server-DNnLa4KU.js.map} +1 -1
  42. package/dist/{supervise-BjrRk-AN.js → supervise-DLezpJcp.js} +15 -4
  43. package/dist/supervise-DLezpJcp.js.map +1 -0
  44. package/dist/{supervisor-BMMdI4T-.js → supervisor-dlufUXys.js} +45 -4
  45. package/dist/supervisor-dlufUXys.js.map +1 -0
  46. package/dist/testing.d.ts +1 -1
  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 +2 -2
  51. package/skills/profile-authoring/SKILL.md +3 -3
  52. package/dist/supervise-BjrRk-AN.js.map +0 -1
  53. package/dist/supervisor-BMMdI4T-.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { $i as runtimeOwnedExecutorProviderEvidence, A as scopeOwnerExecutorNodeContext, Ai as promptControlProfileMaterialization, An as resolveAgentEnvironmentProvider, Ar as persistHarnessTranscript, At as captureReusableExecutorConfig, B as consumeScopeRetainedOwnerResult, C as deriveNodeExecutionIdentity, Ct as createContinuationKeeper, D as recordScopeOwnerMaterialization, Di as defineProfileMaterializationContract, Dr as runAbortable, E as recordScopeOwnerDriverAttempt, Ei as controlProfileMaterialization, Er as linkAbort, F as seatExecutionProfile, Fi as renderUnsupported, Fn as retainedExecutorSeamKey, Ft as snapshotExecutorConfig, G as scopeRetainedOwnerContext, H as prepareScopeRetainedOwnerSeatSwitch, I as abandonScopeRetainedOwnerInvocation, J as scopeRetainedOwnerResourceReader, Ji as providerAttemptEvidence, Jn as isNoEntError, Jt as createActivityLog, K as scopeRetainedOwnerJournalRoot, L as beginScopeRetainedOwnerDrive, Li as unsupportedProfileDimensions, M as SeatChain, N as SeatChainExhaustedError, Nt as createExecutor, O as recordScopeOwnerPause, Oi as fullProfileMaterialization, P as authoredSeatStages, Pn as registerRetainedExecutorPreparation, Pr as contentAddress, Qi as runtimeOwnedExecutorMaterialization, Qr as createOtelExporter, R as bindScopeRetainedOwnerEnvironmentId, St as checkVerdictOf, T as meterRuntimeOwnedProviderAttempt, U as prepareScopeRetainedOwnerTask, V as noteScopeRetainedOwnerCoordination, Vi as attestRuntimeOwnedScopeOwner, Vt as WORKER_TRACE_PROPAGATION, W as reconcileScopeRetainedOwnerEnvironment, Wi as inheritRuntimeOwnedExecutorAttestation, X as scopeRetainedOwnerResult, Xi as runtimeOwnedDriveHarnessProviderEvidence, Xn as readCommittedJsonLines, Xt as createInbox, Y as scopeRetainedOwnerRestorePoint, Yi as recordRuntimeOwnedDriveHarnessProviderEvidence, Yn as prepareJsonlAppend, Z as scopeRetainedOwnerTurnEnded, Zi as runtimeOwnedExecutorExecutionBinding, _ as isDriverSpec, an as isLiveNodeStatus, b as assertRecursiveReservationPolicy, c as runTree, cn as bridgeModelRouteRefusal, cr as meterUsageEvent, dr as spendFromUsageTotals, ea as runtimeOwnedPendingExecutorMaterialization, ei as generateSpanId, f as runDriverWithRetry, fr as bridgeRuntimeAttachmentsKey, g as driverExecutorFactory, gt as CONTINUATIONS_DIR, h as driverChild, i as bestDelivered, ii as toOtelAttributes, it as providerVisibleProfile, ji as promptModelProfileMaterialization, jr as readHarnessTranscript, k as restoreScopeOwnerAcceptedExecution, ki as profileMaterializationAxes$1, kt as bindReusableExecutorExecutionId, lr as newUsageTotals, mr as errMessage, mt as gateOnDeliverable, n as createRootHandle, nt as coordinationMcpAlias, or as assertValidBudget, p as summarizeDriverAttempts, pr as bridgeStopSignalKey, q as scopeRetainedOwnerPriorSpend, r as createSupervisor, rr as executorFailure, rt as coordinationProfileToolPrefix, s as runFinalizer, sa as detachedSnapshot, sn as bridgeAdmissionRefusal, ta as runtimeOwnedScopeOwnerRuntime, tr as parseWorkerToolTraceArtifact, u as HarnessTurnFailedError, vt as CheckUnavailableError, w as meterRuntimeOwnedAccounting, wi as assertProfileMaterialization, wn as routerBrain, wr as RunCancellationReason, x as beginScopeOwnerAttempt, xt as bestComposite, yt as admitContinuationPolicy, z as bindScopeRetainedOwnerProvider, zi as worktreeCliProfileMaterialization, zt as createRouterTranscript } from "./supervisor-BMMdI4T-.js";
1
+ import { $i as runtimeOwnedExecutorMaterialization, A as scopeOwnerExecutorNodeContext, Ai as promptControlProfileMaterialization, An as resolveAgentEnvironmentProvider, Ar as persistHarnessTranscript, At as captureReusableExecutorConfig, B as consumeScopeRetainedOwnerResult, C as deriveNodeExecutionIdentity, Ct as createContinuationKeeper, D as recordScopeOwnerMaterialization, Di as defineProfileMaterializationContract, Dr as runAbortable, E as recordScopeOwnerDriverAttempt, Ei as controlProfileMaterialization, Er as linkAbort, F as seatExecutionProfile, Fi as renderUnsupported, Fn as retainedExecutorSeamKey, Ft as snapshotExecutorConfig, G as scopeRetainedOwnerContext, Gi as inheritRuntimeOwnedExecutorAttestation, H as prepareScopeRetainedOwnerSeatSwitch, Hi as authoredAgentIdentity, I as abandonScopeRetainedOwnerInvocation, J as scopeRetainedOwnerResourceReader, Jn as isNoEntError, Jt as createActivityLog, K as scopeRetainedOwnerJournalRoot, L as beginScopeRetainedOwnerDrive, Li as unsupportedProfileDimensions, M as SeatChain, N as SeatChainExhaustedError, Nt as createExecutor, O as recordScopeOwnerPause, Oi as fullProfileMaterialization, P as authoredSeatStages, Pn as registerRetainedExecutorPreparation, Pr as contentAddress, Qi as runtimeOwnedExecutorExecutionBinding, Qr as createOtelExporter, R as bindScopeRetainedOwnerEnvironmentId, St as checkVerdictOf, T as meterRuntimeOwnedProviderAttempt, U as prepareScopeRetainedOwnerTask, V as noteScopeRetainedOwnerCoordination, Vi as attestRuntimeOwnedScopeOwner, Vt as WORKER_TRACE_PROPAGATION, W as reconcileScopeRetainedOwnerEnvironment, X as scopeRetainedOwnerResult, Xi as recordRuntimeOwnedDriveHarnessProviderEvidence, Xn as readCommittedJsonLines, Xt as createInbox, Y as scopeRetainedOwnerRestorePoint, Yi as providerAttemptEvidence, Yn as prepareJsonlAppend, Z as scopeRetainedOwnerTurnEnded, Zi as runtimeOwnedDriveHarnessProviderEvidence, _ as isDriverSpec, an as isLiveNodeStatus, b as assertRecursiveReservationPolicy, c as runTree, ca as detachedSnapshot, cn as bridgeModelRouteRefusal, cr as meterUsageEvent, dr as spendFromUsageTotals, ea as runtimeOwnedExecutorProviderEvidence, ei as generateSpanId, f as runDriverWithRetry, fr as bridgeRuntimeAttachmentsKey, g as driverExecutorFactory, gt as CONTINUATIONS_DIR, h as driverChild, i as bestDelivered, ii as toOtelAttributes, it as providerVisibleProfile, ji as promptModelProfileMaterialization, jr as readHarnessTranscript, k as restoreScopeOwnerAcceptedExecution, ki as profileMaterializationAxes$1, kt as bindReusableExecutorExecutionId, lr as newUsageTotals, mr as errMessage, mt as gateOnDeliverable, n as createRootHandle, na as runtimeOwnedScopeOwnerRuntime, nt as coordinationMcpAlias, or as assertValidBudget, p as summarizeDriverAttempts, pr as bridgeStopSignalKey, q as scopeRetainedOwnerPriorSpend, r as createSupervisor, rr as executorFailure, rt as coordinationProfileToolPrefix, s as runFinalizer, sn as bridgeAdmissionRefusal, ta as runtimeOwnedPendingExecutorMaterialization, tr as parseWorkerToolTraceArtifact, u as HarnessTurnFailedError, vt as CheckUnavailableError, w as meterRuntimeOwnedAccounting, wi as assertProfileMaterialization, wn as routerBrain, wr as RunCancellationReason, x as beginScopeOwnerAttempt, xt as bestComposite, yt as admitContinuationPolicy, z as bindScopeRetainedOwnerProvider, zi as worktreeCliProfileMaterialization, zt as createRouterTranscript } from "./supervisor-dlufUXys.js";
2
2
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DodWX-cb.js";
3
3
  import { Dt as teardownSurfaces, Et as teardownExecutor, V as addSpend, Z as isAsyncIterable$1, ct as withTimeout, dt as addResourceSpend, lt as zeroSpend, mt as withBudgetResources, pt as resourceTelemetry, q as errorMessage, rt as sleep, st as unmeteredSpend, yt as DEFAULT_SUCCESSFUL_SHUTDOWN_MS } from "./workspace-streams-DFAhW7hF.js";
4
4
  import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-CNe257pB.js";
5
5
  import { n as assertNoSymlinkDescendant } from "./durable-file-DWQA4ooo.js";
6
6
  import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
7
- import { C as createFileRunContext, F as createCoordinationToolsForManager, N as coordinationVerbNames, O as applyRunCancellation, T as withRunContext, c as refreshedWake, g as progressStop, h as plateau, k as watchRunCancellation, l as resolveWakePolicy, n as createSteerAcknowledger, o as composeWakeInput, p as createProgressTracker, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as createInMemoryRunContext } from "./coordination-driver-C2Zm5lU4.js";
7
+ import { C as createFileRunContext, F as createCoordinationToolsForManager, N as coordinationVerbNames, O as applyRunCancellation, T as withRunContext, c as refreshedWake, g as progressStop, h as plateau, k as watchRunCancellation, l as resolveWakePolicy, n as createSteerAcknowledger, o as composeWakeInput, p as createProgressTracker, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as createInMemoryRunContext } from "./coordination-driver-xq1y2G6E.js";
8
8
  import { r as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-Dqer2M4_.js";
9
9
  import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-DSCWdbX2.js";
10
10
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
@@ -14,7 +14,7 @@ import { closeSync, constants, fsyncSync, openSync, writeSync } from "node:fs";
14
14
  import { dirname, resolve } from "node:path";
15
15
  import { mkdir } from "node:fs/promises";
16
16
  import { isMaterializerHarness } from "@tangle-network/agent-profile-materialize";
17
- import { ATTR } from "@tangle-network/agent-trace-contract";
17
+ import { ATTR, agentIdentityAttributes } from "@tangle-network/agent-trace-contract";
18
18
  import { createServer } from "node:http";
19
19
  import { withProfileKb } from "@tangle-network/agent-interface/profile-kb";
20
20
  //#region src/mcp/tools/coordination-request-context.ts
@@ -967,6 +967,8 @@ function createSupervisorSpanRecorder(opts) {
967
967
  "tangle.sessionId": opts.runId,
968
968
  ...opts.attributes ?? {}
969
969
  };
970
+ const rootIdentity = agentIdentityAttributes(opts.agentIdentity);
971
+ const identityOf = /* @__PURE__ */ new Map([[opts.runId, rootIdentity]]);
970
972
  /** Node id → its open span. Seeded with the run id ⇒ the root span, because a depth-0 spawn's
971
973
  * `parentId` is the run id itself and every deeper spawn's is a real node id. */
972
974
  const open = /* @__PURE__ */ new Map();
@@ -1022,6 +1024,9 @@ function createSupervisorSpanRecorder(opts) {
1022
1024
  "tangle.supervise.node.kind": "agent",
1023
1025
  "tangle.supervise.tree.root": event.runId
1024
1026
  };
1027
+ const identity = agentIdentityAttributes(record(p.agent));
1028
+ identityOf.set(childId, identity);
1029
+ Object.assign(attrs, identity);
1025
1030
  if (event.parentId) attrs["tangle.supervise.node.parent_id"] = event.parentId;
1026
1031
  if (runtime) attrs["tangle.supervise.node.runtime"] = runtime;
1027
1032
  if (typeof p.depth === "number") attrs["tangle.supervise.node.depth"] = p.depth;
@@ -1084,6 +1089,7 @@ function createSupervisorSpanRecorder(opts) {
1084
1089
  const parentSpanId = parent.spanId;
1085
1090
  const attrs = {
1086
1091
  ...base,
1092
+ ...identityOf.get(parentId ?? opts.runId) ?? {},
1087
1093
  [ATTR.parentConfidence]: parent.confidence,
1088
1094
  [ATTR.spanKind]: "LLM",
1089
1095
  "inference.observation_kind": "LLM",
@@ -1145,6 +1151,7 @@ function createSupervisorSpanRecorder(opts) {
1145
1151
  open.clear();
1146
1152
  emit(span(rootSpanId, opts.parentSpanId, "supervisor.run", rootStartMs, endMs, {
1147
1153
  ...rootAttrs(base, opts.agentName ?? "supervisor", outcome),
1154
+ ...rootIdentity,
1148
1155
  ...opts.parentSpanId ? { [ATTR.parentConfidence]: "explicit" } : {}
1149
1156
  }, rootStatus(outcome), rootMessage(outcome)));
1150
1157
  } catch {}
@@ -4806,6 +4813,10 @@ function superviseInternal(profile, task, opts, testBrain) {
4806
4813
  runId,
4807
4814
  namespace: runNamespace,
4808
4815
  ...options.otel,
4816
+ agentIdentity: {
4817
+ ...options.otel.agentIdentity,
4818
+ ...authoredAgentIdentity(canonicalProfile, rootExecution.identity.profileDigest)
4819
+ },
4809
4820
  now
4810
4821
  }) : void 0;
4811
4822
  const recorder = spans;
@@ -4927,4 +4938,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
4927
4938
  //#endregion
4928
4939
  export { readRootStreamReceipt as _, superviseWithTestBrain as a, createSupervisorSpanRecorder as b, resolveWorkerSpawnRetry as c, assertCoordinationBinding as d, resolveSupervisorProfile as f, readRootStream as g, ROOT_STREAM_FILE as h, superviseRootProfile as i, retryPreSpawnRefusals as l, supervisorAgentWithTestBrain as m, profileGuidanceComposer as n, workerFromBackend as o, supervisorAgent as p, supervise as r, isPreSpawnExecutorFailure as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, withWorkerSpawnRetry as u, UNPROVEN_CONTINUITY as v, serveCoordinationMcp as x, composeReentryTask as y };
4929
4940
 
4930
- //# sourceMappingURL=supervise-BjrRk-AN.js.map
4941
+ //# sourceMappingURL=supervise-DLezpJcp.js.map