@tangle-network/agent-runtime 0.161.0 → 0.163.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 (65) hide show
  1. package/dist/{activation-DaUNBcZw.js → activation-DxGP0h_p.js} +2 -2
  2. package/dist/{activation-DaUNBcZw.js.map → activation-DxGP0h_p.js.map} +1 -1
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/{authoring-DDRliHit.js → authoring-kO7vE_c9.js} +2 -2
  6. package/dist/{authoring-DDRliHit.js.map → authoring-kO7vE_c9.js.map} +1 -1
  7. package/dist/{conversation-DLYKdh6W.js → conversation-7XGKoDM6.js} +3 -3
  8. package/dist/{conversation-DLYKdh6W.js.map → conversation-7XGKoDM6.js.map} +1 -1
  9. package/dist/conversation.d.ts +1 -1
  10. package/dist/conversation.js +1 -1
  11. package/dist/durable.d.ts +2 -2
  12. package/dist/durable.js +1 -1
  13. package/dist/{environment-provider-BobKk46F.d.ts → environment-provider-BXFFK_rZ.d.ts} +2 -2
  14. package/dist/environment-provider.d.ts +1 -1
  15. package/dist/{executable-spec-7ovS7PBo.js → executable-spec-CkGvdPds.js} +17 -5
  16. package/dist/executable-spec-CkGvdPds.js.map +1 -0
  17. package/dist/{graph-DWUz1caU.js → graph-COikUkrj.js} +2 -2
  18. package/dist/{graph-DWUz1caU.js.map → graph-COikUkrj.js.map} +1 -1
  19. package/dist/graph.d.ts +467 -0
  20. package/dist/graph.js +1203 -0
  21. package/dist/graph.js.map +1 -0
  22. package/dist/{improvement-cycle-oUBE1Pzg.js → improvement-cycle-dGtgX1vr.js} +4 -4
  23. package/dist/{improvement-cycle-oUBE1Pzg.js.map → improvement-cycle-dGtgX1vr.js.map} +1 -1
  24. package/dist/{index-5B7TlTSi.d.ts → index-CbyKCjR7.d.ts} +5 -5
  25. package/dist/{index-CT7Cmz66.d.ts → index-CykKDPnB.d.ts} +4 -4
  26. package/dist/{index-CLt9zpuD.d.ts → index-OFOvnNc2.d.ts} +2 -2
  27. package/dist/index.d.ts +7 -7
  28. package/dist/index.js +9 -9
  29. package/dist/intelligence.d.ts +4 -4
  30. package/dist/intelligence.js +3 -3
  31. package/dist/kernel.d.ts +5 -5
  32. package/dist/kernel.js +7 -7
  33. package/dist/{knowledge-BBfx7pSo.js → knowledge-CZT8ahp6.js} +3 -3
  34. package/dist/{knowledge-BBfx7pSo.js.map → knowledge-CZT8ahp6.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-CjRjwtal.js → loop-runner-bin-CIjmKf7v.js} +3 -3
  38. package/dist/{loop-runner-bin-CjRjwtal.js.map → loop-runner-bin-CIjmKf7v.js.map} +1 -1
  39. package/dist/{loop-runner-bin-DRX6EDIy.d.ts → loop-runner-bin-DrN092ew.d.ts} +3 -3
  40. package/dist/loop-runner-bin.d.ts +1 -1
  41. package/dist/loop-runner-bin.js +1 -1
  42. package/dist/mcp/bin.js +3 -3
  43. package/dist/mcp/index.d.ts +3 -3
  44. package/dist/mcp/index.js +4 -4
  45. package/dist/{openai-tools-CLb9RqXL.js → openai-tools-DG779Z6S.js} +2 -2
  46. package/dist/{openai-tools-CLb9RqXL.js.map → openai-tools-DG779Z6S.js.map} +1 -1
  47. package/dist/primeintellect/index.d.ts +1 -1
  48. package/dist/{redact-0AK8JmHW.d.ts → redact-DL_ZtFvR.d.ts} +3 -3
  49. package/dist/{runtime-CyVJSWzN.js → runtime-BT00zfIS.js} +8 -8
  50. package/dist/{runtime-CyVJSWzN.js.map → runtime-BT00zfIS.js.map} +1 -1
  51. package/dist/{runtime-BzY66cd6.d.ts → runtime-CCbeY1KO.d.ts} +3 -3
  52. package/dist/{stream-agent-turn-FRZAuXAL.js → stream-agent-turn-CKIpCbSq.js} +2 -2
  53. package/dist/{stream-agent-turn-FRZAuXAL.js.map → stream-agent-turn-CKIpCbSq.js.map} +1 -1
  54. package/dist/{stream-agent-turn-jaaFaSXM.d.ts → stream-agent-turn-Dx2YrEWW.d.ts} +2 -2
  55. package/dist/{structural-rollout-JEhoJUjC.js → structural-rollout-DAenyNls.js} +4 -4
  56. package/dist/{structural-rollout-JEhoJUjC.js.map → structural-rollout-DAenyNls.js.map} +1 -1
  57. package/dist/{supervise-DE-GFNKg.js → supervise-Di6xvnOL.js} +2 -2
  58. package/dist/{supervise-DE-GFNKg.js.map → supervise-Di6xvnOL.js.map} +1 -1
  59. package/dist/{supervisor-ZlQy5Fwl.js → supervisor-DmWq4vkU.js} +15 -2
  60. package/dist/{supervisor-ZlQy5Fwl.js.map → supervisor-DmWq4vkU.js.map} +1 -1
  61. package/dist/testing.d.ts +2 -2
  62. package/dist/testing.js +11 -11
  63. package/dist/{types-BBXdSns1.d.ts → types-C2l1jaos.d.ts} +14 -8
  64. package/package.json +6 -1
  65. package/dist/executable-spec-7ovS7PBo.js.map +0 -1
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $t as RunGraphTestOptions, Ao as supervisorAgentWithTestBrain, Mn as driverAgent, co as SuperviseTestOptions, jn as DriverAgentOptions, rn as runGraphWithTestBrain, uo as superviseWithTestBrain, xo as SupervisorAgentTestDeps } from "./index-5B7TlTSi.js";
2
- import { _t as ToolLoopChat, gt as ToolLoopCallContext } from "./runtime-BzY66cd6.js";
1
+ import { $t as RunGraphTestOptions, Ao as supervisorAgentWithTestBrain, Mn as driverAgent, co as SuperviseTestOptions, jn as DriverAgentOptions, rn as runGraphWithTestBrain, uo as superviseWithTestBrain, xo as SupervisorAgentTestDeps } from "./index-CbyKCjR7.js";
2
+ import { _t as ToolLoopChat, gt as ToolLoopCallContext } from "./runtime-CCbeY1KO.js";
3
3
  import { AgentImprovementProposal, AgentProfile, AgentProfileImprovementMeasuredComparison, SandboxSizePreset } from "@tangle-network/agent-interface";
4
4
  //#region src/testing/index.d.ts
5
5
  /** A proposal produced by Runtime's opaque profile-improvement path. */
package/dist/testing.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { ct as immutableCandidateValue, et as parseExactAgentProfile, it as canonicalCandidateDigest$1, q as applyExactAgentProfileDiff } from "./prepare-VLGnSyav.js";
2
- import { f as verifyAgentImprovementProposal } from "./improvement-cycle-oUBE1Pzg.js";
3
- import { c as supervisorAgentWithTestBrain, ft as driverAgent, r as superviseWithTestBrain } from "./supervise-DE-GFNKg.js";
4
- import { i as runGraphWithTestBrain } from "./graph-DWUz1caU.js";
2
+ import { f as verifyAgentImprovementProposal } from "./improvement-cycle-dGtgX1vr.js";
3
+ import { c as supervisorAgentWithTestBrain, ft as driverAgent, r as superviseWithTestBrain } from "./supervise-Di6xvnOL.js";
4
+ import { i as runGraphWithTestBrain } from "./graph-COikUkrj.js";
5
5
  import { SANDBOX_SIZE_PRESET_NAMES } from "@tangle-network/agent-interface";
6
6
  //#region src/testing/fixtures/agent-improvement-proposal.json
7
7
  var agent_improvement_proposal_default = {
8
8
  changedSurfaces: ["prompt"],
9
- digest: "sha256:098a1531cd850cc38432672d2b08b3ff87a5d1e7b078c745352b7eeb0b59dd67",
9
+ digest: "sha256:eafcd643d8fd6896997b28d1252ec66df9bb4c27e63074aacb1c04a4ed449cec",
10
10
  evaluation: {
11
11
  "decision": {
12
12
  "contributingChecks": [
@@ -4577,7 +4577,7 @@ var agent_improvement_proposal_default = {
4577
4577
  ],
4578
4578
  "metadata": {
4579
4579
  "fixture": "agent-improvement-proposal",
4580
- "runtimeVersion": "0.161.0"
4580
+ "runtimeVersion": "0.163.0"
4581
4581
  },
4582
4582
  "objectives": [
4583
4583
  {
@@ -4688,8 +4688,8 @@ var agent_improvement_proposal_default = {
4688
4688
  "baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
4689
4689
  "candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
4690
4690
  "kind": "agent-eval-loop",
4691
- "recordDigest": "sha256:2b794ca83a99b1870dcc85049482cf2e8d5aab9f135488a5b358c244736e6916",
4692
- "runId": "agent-runtime-0.161.0-proposal-fixture",
4691
+ "recordDigest": "sha256:1c1865b8a29b35e3eaaa415de2ad8404e0c8bc37aee9e536a431f1eb4b1ca2ee",
4692
+ "runId": "agent-runtime-0.163.0-proposal-fixture",
4693
4693
  "schema": "agent-candidate-experiment"
4694
4694
  }
4695
4695
  },
@@ -4712,13 +4712,13 @@ var agent_improvement_proposal_default = {
4712
4712
  }],
4713
4713
  kind: "agent-improvement-proposal",
4714
4714
  proposedAt: "2026-07-10T01:00:00.000Z",
4715
- runId: "agent-runtime-0.161.0-proposal-fixture"
4715
+ runId: "agent-runtime-0.163.0-proposal-fixture"
4716
4716
  };
4717
4717
  //#endregion
4718
4718
  //#region src/testing/fixtures/agent-profile-improvement-proposal.json
4719
4719
  var agent_profile_improvement_proposal_default = {
4720
4720
  changedSurfaces: ["prompt", "skills"],
4721
- digest: "sha256:e801103ecbbf942da324adabfa1ac276c5c6163a1bcd6c07c426da207cc94003",
4721
+ digest: "sha256:3663f940fb52e4bb63dd5ba5b13bd67372cbc1692fe19f08c358b61677abc609",
4722
4722
  evaluation: {
4723
4723
  "decision": {
4724
4724
  "contributingChecks": [
@@ -6352,7 +6352,7 @@ var agent_profile_improvement_proposal_default = {
6352
6352
  ],
6353
6353
  "metadata": {
6354
6354
  "fixture": "agent-profile-improvement-proposal",
6355
- "runtimeVersion": "0.161.0"
6355
+ "runtimeVersion": "0.163.0"
6356
6356
  },
6357
6357
  "objectives": [
6358
6358
  {
@@ -6463,7 +6463,7 @@ var agent_profile_improvement_proposal_default = {
6463
6463
  "baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
6464
6464
  "candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
6465
6465
  "kind": "agent-eval-loop",
6466
- "recordDigest": "sha256:8690d493563d898e7b642d596ab07b5fd882c86c521c8a29e3f10140ce207b26",
6466
+ "recordDigest": "sha256:09b196162a239d406cfe8ae8b8bfafe3ebf5c43eec807fab8d168051f2fa8ecd",
6467
6467
  "runId": "profile-improvement-1",
6468
6468
  "schema": "agent-profile-improvement-experiment"
6469
6469
  }
@@ -1368,10 +1368,13 @@ type UsageEvent = {
1368
1368
  type Runtime = 'router' | 'inline' | 'sandbox' | 'cli' | (string & {});
1369
1369
  /**
1370
1370
  * `AgentProfile` is the complete execution authority. Scope parses and snapshots it before calling
1371
- * any registry, including one that resolves caller-supplied executors and factories. The default
1372
- * registry enforces the same rule when called directly. `AgentSpec.harness` records routing for one
1373
- * concrete run; where a backend consumes both fields, it must agree with `AgentProfile.harness` and
1374
- * cannot fill or override it.
1371
+ * any registry, including one that resolves caller-supplied factories. The default registry
1372
+ * enforces the same rule when called directly. One spec is exempt from the harness-and-model
1373
+ * requirement, never from parsing: a verbatim `executor`, which receives only the task and a
1374
+ * signal and so can be filled from nothing. Its profile names the node and still digests into the
1375
+ * node identity; a leaf whose authority is code (a graph script) carries no model, honestly.
1376
+ * `AgentSpec.harness` records routing for one concrete run; where a backend consumes both fields,
1377
+ * it must agree with `AgentProfile.harness` and cannot fill or override it.
1375
1378
  *
1376
1379
  * Resolution (in `runtime.ts`):
1377
1380
  * - `executorFactory` present → BYO: build it after admission with the live context.
@@ -2084,11 +2087,14 @@ type SpawnEvent = {
2084
2087
  /** The destination node when known (a spawned worker's id), else `graph:<node>`. */
2085
2088
  id: NodeId;
2086
2089
  edge: {
2087
- kind: 'delegates' | 'analyzes';
2090
+ kind: 'delegates' | 'analyzes' | 'data';
2088
2091
  from: string;
2089
2092
  to: string;
2090
- /** The resolved directive reference (`<surface>/v<n>`), never the directive bytes. */
2091
- directive: string;
2093
+ /** The resolved directive reference (`<surface>/v<n>`), never the directive bytes.
2094
+ * Absent on a `data` edge, which carries a port binding instead. */
2095
+ directive?: string;
2096
+ /** `data` edges: the target input port the payload bound to. */
2097
+ port?: string;
2092
2098
  };
2093
2099
  /** 1-based traversal ordinal for THIS edge within the run. */
2094
2100
  traversal: number;
@@ -2430,4 +2436,4 @@ interface WidenGate<Out> {
2430
2436
  }
2431
2437
  //#endregion
2432
2438
  export { TreeView as $, RetainedRunIntentAdmission as $n, sanitizeRuntimeStreamEvent as $t, ProviderModelExecutionEvidence as A, RetainedInteractiveEnvironmentInput as An, RuntimeEventOtelOptions as At, Settled as B, RetainedInteractiveAdmission as Bn, padTraceId as Bt, NoWinnerError as C, ScopeProgressInput as Cn, EvalRunsExportResult as Ct, NodeStatus as D, ReconnectRetainedInteractiveRunOptions as Dn, OtelExportConfig as Dt, NodeSnapshot as E, readWorkerProgress as En, OtelAttribute as Et, RootMaterialization as F, NativeContextContinuationInput as Fn, createOtelExporter as Ft, SpawnRejection as G, RetainedRunAdmissionHook as Gn, RuntimeStreamEventSummary as Gt, SpawnJournal as H, RetainedInteractiveIntentAdmission as Hn, RuntimeEventCollector as Ht, RootProviderModelEvidence as I, ReconnectRetainedRunOptions as In, exportEvalRuns as It, SpendGap as J, RetainedRunDispatchedAdmission as Jn, SanitizedKnowledgeRequirement as Jt, Spend as K, RetainedRunCancelOptions as Kn, RuntimeTelemetryOptions as Kt, RootSignal as L, RecoverRetainedRunIntentOptions as Ln, generateSpanId as Lt, ResumedKeyState as M, RetainedInteractiveStartMaterial as Mn, buildLoopSpanNodes as Mt, ResumedWork as N, StartRetainedInteractiveRunOptions as Nn, buildRuntimeEventOtelSpans as Nt, ProfileMaterializationReceipt as O, RecoverRetainedInteractiveRunOptions as On, OtelExporter as Ot, RootHandle as P, NativeContextContinuationExecution as Pn, createOpenInferenceFileExporter as Pt, SupervisorOpts as Q, RetainedRunHandle as Qn, sanitizeKnowledgeReadinessReport as Qt, Runtime as R, RecoverRetainedRunOptions as Rn, loopEventToOtelSpan as Rt, MaterializedModelIdentity as S, ExecutorProgress as Sn, EvalRunsExportConfig as St, NodeId as T, createActivityLog as Tn, LoopSpanNode as Tt, SpawnOpts as U, RetainedInteractiveStartedAdmission as Un, RuntimeStreamEventCollector as Ut, SpawnEvent as V, RetainedInteractiveEnvironmentAdmission as Vn, toOtelAttributes as Vt, SpawnPrior as W, RetainedRunAdmission as Wn, RuntimeStreamEventSink as Wt, SupervisedResult as X, RetainedRunEnvironmentAdmission as Xn, createRuntimeStreamEventCollector as Xt, SteerableRootHandle as Y, RetainedRunEffect as Yn, createRuntimeEventCollector as Yt, Supervisor as Z, RetainedRunEventOptions as Zn, sanitizeAgentRuntimeEvent as Zt, ExecutorRegistry as _, decodeToolPart as _n, mergeTraceEnv as _t, DefaultVerdict as a, WaitSpec as an, WorkerInteractiveSession as at, Handle as b, ActivityNote as bn, EvalRunEvent as bt, ExecutorAccounting as c, pollFor as cn, WorkerTraceUnavailableReason as ct, ExecutorContext as d, waitUntil as dn, readWorkerTraceContext as dt, PendingWait as en, RetainedRunReplayPoint as er, UnconfirmedTeardown as et, ExecutorExecutionBinding as f, SessionMessageLike as fn, workerTraceEnv as ft, ExecutorProgressEvent as g, createPushTraceSource as gn, createPropagatingTraceEmitter as gt, ExecutorNodeContext as h, TraceSource as hn, TraceContext as ht, Budget as i, WaitRejection as in, StartRetainedRunOptions as ir, WidenGate as it, ResultBlobStore as j, RetainedInteractiveRunHandle as jn, buildLoopOtelSpans as jt, ProviderModelAttemptEvidence as k, RetainedInteractiveAdmissionHook as kn, OtelSpan as kt, ExecutorCancellation as l, timerAt as ln, WorkerTraceResolver as lt, ExecutorMaterialization as m, ToolStepInput as mn, workerTraceSeamKey as mt, AgentExecutionRef as n, WaitProbe as nn, RetainedRunStartMaterial as nr, UsageEvent as nt, ExecutionBindingReceipt as o, createWaitProbes as on, WorkerInteractiveUnavailableReason as ot, ExecutorFactory as p, SessionTraceBox as pn, workerTraceHeaders as pt, SpendChannel as q, RetainedRunCancellation as qn, SanitizedKnowledgeReadinessReport as qt, AgentSpec as r, WaitProbeRegistry as rn, StartRetainedRunInEnvironmentOptions as rr, WaitOpts as rt, Executor as s, isWaitOutcome as sn, WorkerTraceEvidence as st, Agent as t, WaitOutcome as tn, RetainedRunSnapshot as tr, UnknownMaterializationReason as tt, ExecutorCancellationRequest as u, validateWaitSpec as un, WorkerTraceSeamCarrier as ut, ExecutorResult as v, sandboxSessionTraceSource as vn, readTraceContextFromEnv as vt, NodeExecutionIdentity as w, WorkerProgress as wn, INTELLIGENCE_WIRE_VERSION as wt, MaterializedExecutionIdentity as x, DEFAULT_STALL_AFTER_MS as xn, EvalRunGeneration as xt, ExecutorToolCall as y, ActivityLog as yn, traceContextToEnv as yt, Scope as z, RecoverRetainedRunResult as zn, padSpanId as zt };
2433
- //# sourceMappingURL=types-BBXdSns1.d.ts.map
2439
+ //# sourceMappingURL=types-C2l1jaos.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-runtime",
3
- "version": "0.161.0",
3
+ "version": "0.163.0",
4
4
  "description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
5
5
  "homepage": "https://github.com/tangle-network/agent-runtime#readme",
6
6
  "repository": {
@@ -49,6 +49,11 @@
49
49
  "import": "./dist/kernel.js",
50
50
  "default": "./dist/kernel.js"
51
51
  },
52
+ "./graph": {
53
+ "types": "./dist/graph.d.ts",
54
+ "import": "./dist/graph.js",
55
+ "default": "./dist/graph.js"
56
+ },
52
57
  "./environment-provider": {
53
58
  "types": "./dist/environment-provider.d.ts",
54
59
  "import": "./dist/environment-provider.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"executable-spec-7ovS7PBo.js","names":[],"sources":["../src/runtime/sandbox-outcome.ts","../src/runtime/supervise/executable-spec.ts"],"sourcesContent":["import type { AgentRunOutcome } from '@tangle-network/sandbox/runtime'\nimport type { AgentTaskStatus, BackendErrorDetail } from '../types'\nimport type { DefaultVerdict } from './supervise/types'\n\n/** The outcome carried by Runtime-owned Sandbox artifacts. */\nexport interface SandboxOutcomeCarrier {\n outcome?: AgentRunOutcome\n}\n\n/** Runtime's terminal projection of the public Sandbox outcome contract. */\nexport interface SandboxOutcomeProjection {\n status: AgentTaskStatus\n reason: string\n verdict: DefaultVerdict\n error?: BackendErrorDetail\n}\n\n/** Map the public Sandbox outcome to Runtime's stream and verdict vocabulary. */\nexport function projectSandboxOutcome(outcome: AgentRunOutcome): SandboxOutcomeProjection {\n if (outcome.status === 'success') {\n return {\n status: 'completed',\n reason: 'turn completed',\n verdict: { valid: true, score: 1 },\n }\n }\n\n const reason = outcome.error ?? 'Sandbox agent run failed'\n if (outcome.status === 'failed') {\n return {\n status: 'failed',\n reason,\n verdict: { valid: false, score: 0 },\n error: { kind: 'backend', message: reason },\n }\n }\n\n return {\n status: 'blocked',\n reason,\n verdict: { valid: false, score: 0 },\n }\n}\n\n/** Read an outcome that Runtime attached to one of its own executor artifacts. */\nexport function readSandboxOutcome(value: unknown): AgentRunOutcome | undefined {\n if (!value || typeof value !== 'object') return undefined\n const outcome = (value as SandboxOutcomeCarrier).outcome\n if (!outcome || typeof outcome !== 'object') return undefined\n return outcome\n}\n","import { type AgentProfile, agentProfileSchema } from '@tangle-network/agent-interface'\nimport { assertExecutableAgentProfile } from './model-policy'\nimport { detachedSnapshot } from './snapshot'\nimport type { AgentSpec } from './types'\n\n/**\n * Parse one untrusted profile into the exact immutable value execution may consume.\n *\n * Snapshotting before schema parsing reads caller-owned fields once. Snapshotting the parsed\n * result prevents downstream custom code from changing any identity or authority field.\n */\nexport function executableAgentProfileSnapshot(raw: unknown, context: string): AgentProfile {\n const input = detachedSnapshot(raw, `${context}: AgentProfile input`)\n const profile = agentProfileSchema.parse(input)\n assertExecutableAgentProfile(profile, context)\n return detachedSnapshot(profile, `${context}: parsed AgentProfile`)\n}\n\n/** Snapshot an executable spec while retaining trusted callbacks by reference. */\nexport function executableAgentSpecSnapshot(raw: AgentSpec, context: string): AgentSpec {\n const {\n profile: rawProfile,\n harness,\n execution: rawExecution,\n ...runtimeExtensions\n } = raw as AgentSpec & Readonly<Record<string, unknown>>\n const profile = executableAgentProfileSnapshot(rawProfile, context)\n const execution =\n rawExecution === undefined\n ? undefined\n : detachedSnapshot(rawExecution, `${context}: execution attribution`)\n return Object.freeze({\n ...runtimeExtensions,\n profile,\n harness,\n ...(execution === undefined ? {} : { execution }),\n }) as AgentSpec\n}\n"],"mappings":";;;;;AAkBA,SAAgB,sBAAsB,SAAoD;CACxF,IAAI,QAAQ,WAAW,WACrB,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,SAAS;GAAE,OAAO;GAAM,OAAO;EAAE;CACnC;CAGF,MAAM,SAAS,QAAQ,SAAS;CAChC,IAAI,QAAQ,WAAW,UACrB,OAAO;EACL,QAAQ;EACR;EACA,SAAS;GAAE,OAAO;GAAO,OAAO;EAAE;EAClC,OAAO;GAAE,MAAM;GAAW,SAAS;EAAO;CAC5C;CAGF,OAAO;EACL,QAAQ;EACR;EACA,SAAS;GAAE,OAAO;GAAO,OAAO;EAAE;CACpC;AACF;;AAGA,SAAgB,mBAAmB,OAA6C;CAC9E,IAAI,CAAC,SAAS,OAAO,UAAU,UAAU,OAAO,KAAA;CAChD,MAAM,UAAW,MAAgC;CACjD,IAAI,CAAC,WAAW,OAAO,YAAY,UAAU,OAAO,KAAA;CACpD,OAAO;AACT;;;;;;;;;ACvCA,SAAgB,+BAA+B,KAAc,SAA+B;CAC1F,MAAM,QAAQ,iBAAiB,KAAK,GAAG,QAAQ,qBAAqB;CACpE,MAAM,UAAU,mBAAmB,MAAM,KAAK;CAC9C,6BAA6B,SAAS,OAAO;CAC7C,OAAO,iBAAiB,SAAS,GAAG,QAAQ,sBAAsB;AACpE;;AAGA,SAAgB,4BAA4B,KAAgB,SAA4B;CACtF,MAAM,EACJ,SAAS,YACT,SACA,WAAW,cACX,GAAG,sBACD;CACJ,MAAM,UAAU,+BAA+B,YAAY,OAAO;CAClE,MAAM,YACJ,iBAAiB,KAAA,IACb,KAAA,IACA,iBAAiB,cAAc,GAAG,QAAQ,wBAAwB;CACxE,OAAO,OAAO,OAAO;EACnB,GAAG;EACH;EACA;EACA,GAAI,cAAc,KAAA,IAAY,CAAC,IAAI,EAAE,UAAU;CACjD,CAAC;AACH"}