autotel-genai 0.3.1 → 0.3.3

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 (88) hide show
  1. package/README.md +105 -4
  2. package/dist/agent/index.cjs +2 -2
  3. package/dist/agent/index.d.cts +2 -2
  4. package/dist/agent/index.d.ts +2 -2
  5. package/dist/agent/index.js +2 -1
  6. package/dist/{agent-2GmZ6vDV.cjs → agent-CnXNAj9B.cjs} +268 -176
  7. package/dist/{agent-2GmZ6vDV.cjs.map → agent-CnXNAj9B.cjs.map} +1 -1
  8. package/dist/{agent-DthMDQbW.js → agent-oCfaqmYw.js} +331 -146
  9. package/dist/agent-oCfaqmYw.js.map +1 -0
  10. package/dist/{agent-security-N6nE3V3A.d.ts → agent-security-BHdP6ZPG.d.cts} +9 -1
  11. package/dist/agent-security-BHdP6ZPG.d.cts.map +1 -0
  12. package/dist/{agent-security-N6nE3V3A.d.cts → agent-security-BHdP6ZPG.d.ts} +9 -1
  13. package/dist/agent-security-BHdP6ZPG.d.ts.map +1 -0
  14. package/dist/agent-security-CUDUKOEK.js +215 -0
  15. package/dist/agent-security-CUDUKOEK.js.map +1 -0
  16. package/dist/{agent-security-BhUTos0B.cjs → agent-security-kfpXuwL4.cjs} +58 -24
  17. package/dist/{agent-security-BhUTos0B.cjs.map → agent-security-kfpXuwL4.cjs.map} +1 -1
  18. package/dist/ai-sdk-bridge.cjs +42 -8
  19. package/dist/ai-sdk-bridge.cjs.map +1 -1
  20. package/dist/ai-sdk-bridge.d.cts +42 -1
  21. package/dist/ai-sdk-bridge.d.cts.map +1 -1
  22. package/dist/ai-sdk-bridge.d.ts +42 -1
  23. package/dist/ai-sdk-bridge.d.ts.map +1 -1
  24. package/dist/ai-sdk-bridge.js +41 -9
  25. package/dist/ai-sdk-bridge.js.map +1 -1
  26. package/dist/{attributes-dxuRzqXC.cjs → attributes-BSunBoIR.cjs} +4 -4
  27. package/dist/{attributes-dxuRzqXC.cjs.map → attributes-BSunBoIR.cjs.map} +1 -1
  28. package/dist/{attributes-DU-PmLqZ.js → attributes-DCv1cxKZ.js} +4 -4
  29. package/dist/{attributes-DU-PmLqZ.js.map → attributes-DCv1cxKZ.js.map} +1 -1
  30. package/dist/cost.cjs +14 -8
  31. package/dist/cost.cjs.map +1 -1
  32. package/dist/cost.js +14 -8
  33. package/dist/cost.js.map +1 -1
  34. package/dist/events.cjs +33 -17
  35. package/dist/events.cjs.map +1 -1
  36. package/dist/events.js +33 -17
  37. package/dist/events.js.map +1 -1
  38. package/dist/guard.cjs +0 -0
  39. package/dist/guard.cjs.map +1 -1
  40. package/dist/guard.js +0 -0
  41. package/dist/guard.js.map +1 -1
  42. package/dist/index-BIa0Pptp.d.cts +534 -0
  43. package/dist/index-BIa0Pptp.d.cts.map +1 -0
  44. package/dist/{index-DyghHy5i.d.cts → index-CjhfLhNX.d.cts} +33 -2
  45. package/dist/{index-DyghHy5i.d.cts.map → index-CjhfLhNX.d.cts.map} +1 -1
  46. package/dist/index-D64JGbkf.d.ts +534 -0
  47. package/dist/index-D64JGbkf.d.ts.map +1 -0
  48. package/dist/{index-Dxt0bm0M.d.ts → index-DvdkwGf7.d.ts} +33 -2
  49. package/dist/{index-Dxt0bm0M.d.ts.map → index-DvdkwGf7.d.ts.map} +1 -1
  50. package/dist/index.cjs +9 -3
  51. package/dist/index.d.cts +5 -5
  52. package/dist/index.d.ts +5 -5
  53. package/dist/index.js +5 -5
  54. package/dist/metrics.cjs +12 -5
  55. package/dist/metrics.cjs.map +1 -1
  56. package/dist/metrics.js +12 -5
  57. package/dist/metrics.js.map +1 -1
  58. package/dist/observer/index.cjs +6 -2
  59. package/dist/observer/index.d.cts +2 -2
  60. package/dist/observer/index.d.ts +2 -2
  61. package/dist/observer/index.js +2 -2
  62. package/dist/observer-BoQNdbkg.cjs +1163 -0
  63. package/dist/observer-BoQNdbkg.cjs.map +1 -0
  64. package/dist/observer-Ckha9xGv.js +1116 -0
  65. package/dist/observer-Ckha9xGv.js.map +1 -0
  66. package/dist/streaming.cjs +27 -14
  67. package/dist/streaming.cjs.map +1 -1
  68. package/dist/streaming.js +27 -14
  69. package/dist/streaming.js.map +1 -1
  70. package/dist/trace.cjs +20 -8
  71. package/dist/trace.cjs.map +1 -1
  72. package/dist/trace.js +20 -8
  73. package/dist/trace.js.map +1 -1
  74. package/package.json +3 -3
  75. package/skills/autotel-genai/SKILL.md +25 -3
  76. package/dist/agent-DthMDQbW.js.map +0 -1
  77. package/dist/agent-security-N6nE3V3A.d.cts.map +0 -1
  78. package/dist/agent-security-N6nE3V3A.d.ts.map +0 -1
  79. package/dist/context-B2wjX3O1.js +0 -73
  80. package/dist/context-B2wjX3O1.js.map +0 -1
  81. package/dist/index-CGHFYLGQ.d.cts +0 -262
  82. package/dist/index-CGHFYLGQ.d.cts.map +0 -1
  83. package/dist/index-CIkLg2LA.d.ts +0 -262
  84. package/dist/index-CIkLg2LA.d.ts.map +0 -1
  85. package/dist/observer-2SKgcQI_.js +0 -613
  86. package/dist/observer-2SKgcQI_.js.map +0 -1
  87. package/dist/observer-BbhXgZBA.cjs +0 -570
  88. package/dist/observer-BbhXgZBA.cjs.map +0 -1
package/README.md CHANGED
@@ -68,7 +68,8 @@ export const chat = traceGenAI({
68
68
  | **Trace** | `autotel-genai/trace` | `traceGenAI()`, `recordGenAiResponse/Usage` |
69
69
  | **Guard** | `autotel-genai/guard` | inline cost/token/loop kill-switch — `createGenAiBudget`, `createGenAiGuard`, `parseGuardRules` |
70
70
  | **Streaming** | `autotel-genai/streaming` | TTFC, throughput, inter-chunk distribution — `createStreamTimer`, `recordStreamTiming` |
71
- | **AI SDK** | `autotel-genai/ai-sdk` | Vercel `ai.*` → `gen_ai.*` mapping + cost |
71
+ | **AI SDK** | `autotel-genai/observer` | `autotelTelemetry()` — `registerTelemetry()` integration: live `gen_ai.*` spans + cost + streaming + nested traces + opt-in content. `subscribeAiTelemetry()` — zero-config `ai:telemetry` channel path |
72
+ | **AI SDK (legacy)** | `autotel-genai/ai-sdk` | `ai.*` → `gen_ai.*` mapping + cost for `LegacyOpenTelemetry`/older versions; `autotelEnrich()` for `@ai-sdk/otel` `enrichSpan` |
72
73
  | **Agents** | `autotel-genai/agent` | identity, delegation, policy, audit, privacy, non-repudiation |
73
74
 
74
75
  ### Cost
@@ -201,9 +202,75 @@ It honours spec breaking change #242 (`gen_ai.agent.id` is dropped on internal
201
202
 
202
203
  ### Vercel AI SDK
203
204
 
204
- The current AI SDK (`@ai-sdk/otel`'s `OpenTelemetry` integration) already emits
205
- `gen_ai.*` — nothing to map. For `LegacyOpenTelemetry`/older versions, or to add
206
- cost:
205
+ Register `autotelTelemetry()` once and every `generateText` / `streamText` /
206
+ `embed` call streams a canonical `gen_ai.*` span tree — live, as it runs:
207
+
208
+ ```ts
209
+ import { registerTelemetry } from 'ai';
210
+ import { autotelTelemetry } from 'autotel-genai/observer';
211
+
212
+ registerTelemetry(autotelTelemetry()); // once, at startup
213
+ ```
214
+
215
+ See `apps/example-ai-sdk-observer` for a runnable AI SDK + Ollama demo
216
+ (generateText, tool loop, streamText timing, embeddings).
217
+
218
+ It implements the AI SDK's stable `Telemetry` lifecycle interface (ai v7+), so
219
+ it slots in exactly where `@ai-sdk/otel`'s `OpenTelemetry` does — but it also,
220
+ on every `chat` span:
221
+
222
+ - **prices the call** (`gen_ai.usage.cost.usd`) from `MODEL_PRICING`;
223
+ - records **streaming throughput** (`time_to_first_chunk`, `time_to_finish`,
224
+ `output_tokens_per_second`);
225
+ - keeps token usage on leaf `chat` spans only, so the `invoke_agent` root never
226
+ double-counts.
227
+
228
+ It is push-based and concurrency-safe (every event carries the SDK `callId`),
229
+ and it pulls in **no** dependency on `ai` — the returned object satisfies the
230
+ `Telemetry` interface structurally, so the snippet above type-checks as-is.
231
+ `rerank` has no canonical `gen_ai` operation and is intentionally not mapped.
232
+
233
+ **Nested traces.** It implements the SDK's `executeTool` / `executeLanguageModelCall`
234
+ context runners, so a tool whose `execute` calls `generateText` — and the
235
+ provider's own auto-instrumented HTTP spans — nest under the right span
236
+ automatically.
237
+
238
+ **Content capture (opt-in).** Off by default for privacy. Turn it on to record
239
+ prompts, responses, system instructions, and tool I/O, mapped to the
240
+ [GenAI SemConv message format](#genai-message-format). The SDK's per-call
241
+ `recordInputs` / `recordOutputs` are honored, and `exportContent` lets you redact
242
+ or drop content per event:
243
+
244
+ ```ts
245
+ registerTelemetry(
246
+ autotelTelemetry({
247
+ captureContent: true,
248
+ exportContent: (event) => redact(event), // optional: redact before write
249
+ }),
250
+ );
251
+ ```
252
+
253
+ **Zero-config (no `registerTelemetry`).** Subscribe to the SDK's `ai:telemetry`
254
+ Node tracing channel instead. The SDK publishes operation spans as soon as the
255
+ channel has a subscriber:
256
+
257
+ ```ts
258
+ import { subscribeAiTelemetry } from 'autotel-genai/observer';
259
+
260
+ const unsubscribe = subscribeAiTelemetry(); // once, at startup
261
+ ```
262
+
263
+ The channel path gives you the same `invoke_agent › chat › execute_tool` tree
264
+ with usage and cost, but not the per-call streaming timing (which only the
265
+ lifecycle `onLanguageModelCallEnd` event carries) — prefer
266
+ `registerTelemetry(autotelTelemetry())` when you can.
267
+
268
+ Register globally, or pass per-call via `telemetry.integrations` to scope it to
269
+ one call. For the **legacy** `LegacyOpenTelemetry`/older-version path, or to
270
+ enrich spans another integration already emitted, the attribute bridge maps
271
+ `ai.*` → `gen_ai.*` and adds cost; for versions before the `Telemetry` interface,
272
+ walk the finished result with `observeAiSdkResult` (see
273
+ [Observer](#observer-event-stream--spans)):
207
274
 
208
275
  ```ts
209
276
  import { mapAiSdkAttributes, recordAiSdkCost } from 'autotel-genai/ai-sdk';
@@ -212,6 +279,40 @@ const canonical = mapAiSdkAttributes(span.attributes); // ai.* → gen_ai.*
212
279
  recordAiSdkCost(ctx, span.attributes); // sets gen_ai.usage.cost.usd
213
280
  ```
214
281
 
282
+ #### Already using `@ai-sdk/otel`?
283
+
284
+ Drop `autotelEnrich()` into its `enrichSpan` to stamp autotel provenance and
285
+ promote your `runtimeContext` onto every span:
286
+
287
+ ```ts
288
+ import { OpenTelemetry } from '@ai-sdk/otel';
289
+ import { autotelEnrich } from 'autotel-genai/ai-sdk';
290
+
291
+ registerTelemetry(new OpenTelemetry({ enrichSpan: autotelEnrich() }));
292
+ ```
293
+
294
+ `enrichSpan` **cannot add cost** — the SDK passes it only
295
+ `{ spanType, operationId, callId, runtimeContext }` (no usage, no model), and its
296
+ own attributes win over custom keys. To get `gen_ai.usage.cost.usd` on the model
297
+ span, use `autotelTelemetry()` (it owns span creation). Either way,
298
+ [`autotel-devtools`](../autotel-devtools) prices `gen_ai` spans on render, so cost
299
+ shows there regardless of which integration emitted them.
300
+
301
+ #### Local devtools, one line
302
+
303
+ Point an OTLP exporter at a running `autotel-devtools` receiver and you get a
304
+ live GenAI run view — cost, token breakdown, tool timeline, and a narrated
305
+ "Explain run" walkthrough — that works in production too (unlike
306
+ `@ai-sdk/devtools`, which is dev-only):
307
+
308
+ ```ts
309
+ import { registerTelemetry } from 'ai';
310
+ import { autotelTelemetry } from 'autotel-genai/observer';
311
+
312
+ registerTelemetry(autotelTelemetry()); // → your OTLP pipeline → autotel-devtools
313
+ // npx autotel-devtools → http://localhost:4318
314
+ ```
315
+
215
316
  ### Observer (event-stream → spans)
216
317
 
217
318
  When you instrument a framework that emits its own lifecycle stream (agent
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_agent_security = require('../agent-security-BhUTos0B.cjs');
3
- const require_agent = require('../agent-2GmZ6vDV.cjs');
2
+ const require_agent_security = require('../agent-security-kfpXuwL4.cjs');
3
+ const require_agent = require('../agent-CnXNAj9B.cjs');
4
4
 
5
5
  exports.AGENT_AUDIT_SCHEMA_VERSION = require_agent.AGENT_AUDIT_SCHEMA_VERSION;
6
6
  exports.AGENT_PLAN_RISK_ATTR = require_agent.AGENT_PLAN_RISK_ATTR;
@@ -1,4 +1,4 @@
1
- import { $ as AgentToolCallOptions, A as delegateToAgent, B as AgentDecisionMetadata, C as defineAgentToolCall, D as withAgentToolCall, E as withAgentAction, F as AgentActionFactory, G as AgentIdentityRegistry, H as AgentHandler, I as AgentActionMetadata, J as AgentOutcome, K as AgentIdentityStatus, L as AgentActionOptions, M as flattenAgentAttributes, N as setAgentAttributes, O as DelegateToAgentInput, P as createAgentAuditMetadata, Q as AgentToolCallActionMetadata, R as AgentAiMetadata, S as defineAgentAction, T as recordPolicyDecision, U as AgentIdentity, V as AgentEventKind, W as AgentIdentityRecord, X as AgentSessionMetadata, Y as AgentSessionActionMetadata, Z as AgentSessionStatus, _ as ProvisionAgentIdentityInput, a as AgentPlanRiskVerdict, at as PrivacyProfile, b as createAgentIdentityRegistry, c as recordPlanRiskAssessment, ct as ToolCallMetadata, d as CreateSignedEventEnvelopeOptions, dt as canonicalizeForHash, et as AiLifecycleStage, f as createSignedEventEnvelope, ft as hashPayload, g as sanitizeAuditPayload, h as resolvePrivacyProfile, i as AgentPlanClassifierResult, it as PolicyMetadata, j as recordAgentHandoff, k as RecordAgentHandoffMetadata, l as runAgentPlanClassifier, lt as ToolStatus, m as PrivacyProfileInput, n as AgentPlanClassifier, nt as GovernanceMetadata, o as RecordPlanRiskAssessmentOptions, ot as PrivacyProfileName, p as verifyEventEnvelopeHash, pt as AGENT_AUDIT_SCHEMA_VERSION, q as AgentMetadataInput, r as AgentPlanClassifierInput, rt as PolicyDecision, s as heuristicPlanRiskClassifier, st as ScopedToolDefinition, t as AGENT_PLAN_RISK_ATTR, tt as DelegationContext, u as withScopedTool, ut as HashPayloadOptions, v as RevokeAgentIdentityInput, w as recordDecisionBasis, x as withAgentSession, y as RotateAgentIdentityInput, z as AgentAuditEventEnvelope } from "../index-DyghHy5i.cjs";
1
+ import { $ as AgentToolCallOptions, A as delegateToAgent, B as AgentDecisionMetadata, C as defineAgentToolCall, D as withAgentToolCall, E as withAgentAction, F as AgentActionFactory, G as AgentIdentityRegistry, H as AgentHandler, I as AgentActionMetadata, J as AgentOutcome, K as AgentIdentityStatus, L as AgentActionOptions, M as flattenAgentAttributes, N as setAgentAttributes, O as DelegateToAgentInput, P as createAgentAuditMetadata, Q as AgentToolCallActionMetadata, R as AgentAiMetadata, S as defineAgentAction, T as recordPolicyDecision, U as AgentIdentity, V as AgentEventKind, W as AgentIdentityRecord, X as AgentSessionMetadata, Y as AgentSessionActionMetadata, Z as AgentSessionStatus, _ as ProvisionAgentIdentityInput, a as AgentPlanRiskVerdict, at as PrivacyProfile, b as createAgentIdentityRegistry, c as recordPlanRiskAssessment, ct as ToolCallMetadata, d as CreateSignedEventEnvelopeOptions, dt as canonicalizeForHash, et as AiLifecycleStage, f as createSignedEventEnvelope, ft as hashPayload, g as sanitizeAuditPayload, h as resolvePrivacyProfile, i as AgentPlanClassifierResult, it as PolicyMetadata, j as recordAgentHandoff, k as RecordAgentHandoffMetadata, l as runAgentPlanClassifier, lt as ToolStatus, m as PrivacyProfileInput, n as AgentPlanClassifier, nt as GovernanceMetadata, o as RecordPlanRiskAssessmentOptions, ot as PrivacyProfileName, p as verifyEventEnvelopeHash, pt as AGENT_AUDIT_SCHEMA_VERSION, q as AgentMetadataInput, r as AgentPlanClassifierInput, rt as PolicyDecision, s as heuristicPlanRiskClassifier, st as ScopedToolDefinition, t as AGENT_PLAN_RISK_ATTR, tt as DelegationContext, u as withScopedTool, ut as HashPayloadOptions, v as RevokeAgentIdentityInput, w as recordDecisionBasis, x as withAgentSession, y as RotateAgentIdentityInput, z as AgentAuditEventEnvelope } from "../index-CjhfLhNX.cjs";
2
2
  import { a as TokenUsage, i as ModelPricing } from "../cost-DXTkBUUW.cjs";
3
- import { C as recordPlanStep, D as agentContextFromSpan, E as AgentContext, S as recordMemoryAccess, T as tryRecordHumanApproval, _ as recordActionRiskClass, a as AgentInputProvenance, b as recordHumanApproval, c as AgentSecurityRecordOptions, d as RecordHumanApprovalInput, f as RecordInputProvenanceInput, g as deriveActionRiskClass, h as RecordRenderOutputInput, i as AgentConsentOutcome, l as RecordActiveScopesInput, m as RecordPlanStepInput, n as ActionRiskHints, o as AgentMemoryOperation, p as RecordMemoryAccessInput, r as AgentActionRiskClass, s as AgentOutputFormat, t as AGENT_SECURITY_ATTR, u as RecordControllerInput, v as recordActiveScopes, w as recordRenderOutput, x as recordInputProvenance, y as recordControllerId } from "../agent-security-N6nE3V3A.cjs";
3
+ import { C as recordPlanStep, D as agentContextFromSpan, E as AgentContext, S as recordMemoryAccess, T as tryRecordHumanApproval, _ as recordActionRiskClass, a as AgentInputProvenance, b as recordHumanApproval, c as AgentSecurityRecordOptions, d as RecordHumanApprovalInput, f as RecordInputProvenanceInput, g as deriveActionRiskClass, h as RecordRenderOutputInput, i as AgentConsentOutcome, l as RecordActiveScopesInput, m as RecordPlanStepInput, n as ActionRiskHints, o as AgentMemoryOperation, p as RecordMemoryAccessInput, r as AgentActionRiskClass, s as AgentOutputFormat, t as AGENT_SECURITY_ATTR, u as RecordControllerInput, v as recordActiveScopes, w as recordRenderOutput, x as recordInputProvenance, y as recordControllerId } from "../agent-security-BHdP6ZPG.cjs";
4
4
  export { AGENT_AUDIT_SCHEMA_VERSION, AGENT_PLAN_RISK_ATTR, AGENT_SECURITY_ATTR, type ActionRiskHints, type AgentActionFactory, type AgentActionMetadata, type AgentActionOptions, type AgentActionRiskClass, type AgentAiMetadata, type AgentAuditEventEnvelope, type AgentConsentOutcome, type AgentContext, type AgentDecisionMetadata, type AgentEventKind, type AgentHandler, type AgentIdentity, type AgentIdentityRecord, type AgentIdentityRegistry, type AgentIdentityStatus, type AgentInputProvenance, type AgentMemoryOperation, type AgentMetadataInput, type AgentOutcome, type AgentOutputFormat, type AgentPlanClassifier, type AgentPlanClassifierInput, type AgentPlanClassifierResult, type AgentPlanRiskVerdict, type AgentSecurityRecordOptions, type AgentSessionActionMetadata, type AgentSessionMetadata, type AgentSessionStatus, type AgentToolCallActionMetadata, type AgentToolCallOptions, type AiLifecycleStage, type CreateSignedEventEnvelopeOptions, type DelegateToAgentInput, type DelegationContext, type GovernanceMetadata, type HashPayloadOptions, type ModelPricing, type PolicyDecision, type PolicyMetadata, type PrivacyProfile, type PrivacyProfileInput, type PrivacyProfileName, type ProvisionAgentIdentityInput, type RecordActiveScopesInput, type RecordAgentHandoffMetadata, type RecordControllerInput, type RecordHumanApprovalInput, type RecordInputProvenanceInput, type RecordMemoryAccessInput, type RecordPlanRiskAssessmentOptions, type RecordPlanStepInput, type RecordRenderOutputInput, type RevokeAgentIdentityInput, type RotateAgentIdentityInput, type ScopedToolDefinition, type TokenUsage, type ToolCallMetadata, type ToolStatus, agentContextFromSpan, canonicalizeForHash, createAgentAuditMetadata, createAgentIdentityRegistry, createSignedEventEnvelope, defineAgentAction, defineAgentToolCall, delegateToAgent, deriveActionRiskClass, flattenAgentAttributes, hashPayload, heuristicPlanRiskClassifier, recordActionRiskClass, recordActiveScopes, recordAgentHandoff, recordControllerId, recordDecisionBasis, recordHumanApproval, recordInputProvenance, recordMemoryAccess, recordPlanRiskAssessment, recordPlanStep, recordPolicyDecision, recordRenderOutput, resolvePrivacyProfile, runAgentPlanClassifier, sanitizeAuditPayload, setAgentAttributes, tryRecordHumanApproval, verifyEventEnvelopeHash, withAgentAction, withAgentSession, withAgentToolCall, withScopedTool };
@@ -1,4 +1,4 @@
1
- import { $ as AgentToolCallOptions, A as delegateToAgent, B as AgentDecisionMetadata, C as defineAgentToolCall, D as withAgentToolCall, E as withAgentAction, F as AgentActionFactory, G as AgentIdentityRegistry, H as AgentHandler, I as AgentActionMetadata, J as AgentOutcome, K as AgentIdentityStatus, L as AgentActionOptions, M as flattenAgentAttributes, N as setAgentAttributes, O as DelegateToAgentInput, P as createAgentAuditMetadata, Q as AgentToolCallActionMetadata, R as AgentAiMetadata, S as defineAgentAction, T as recordPolicyDecision, U as AgentIdentity, V as AgentEventKind, W as AgentIdentityRecord, X as AgentSessionMetadata, Y as AgentSessionActionMetadata, Z as AgentSessionStatus, _ as ProvisionAgentIdentityInput, a as AgentPlanRiskVerdict, at as PrivacyProfile, b as createAgentIdentityRegistry, c as recordPlanRiskAssessment, ct as ToolCallMetadata, d as CreateSignedEventEnvelopeOptions, dt as canonicalizeForHash, et as AiLifecycleStage, f as createSignedEventEnvelope, ft as hashPayload, g as sanitizeAuditPayload, h as resolvePrivacyProfile, i as AgentPlanClassifierResult, it as PolicyMetadata, j as recordAgentHandoff, k as RecordAgentHandoffMetadata, l as runAgentPlanClassifier, lt as ToolStatus, m as PrivacyProfileInput, n as AgentPlanClassifier, nt as GovernanceMetadata, o as RecordPlanRiskAssessmentOptions, ot as PrivacyProfileName, p as verifyEventEnvelopeHash, pt as AGENT_AUDIT_SCHEMA_VERSION, q as AgentMetadataInput, r as AgentPlanClassifierInput, rt as PolicyDecision, s as heuristicPlanRiskClassifier, st as ScopedToolDefinition, t as AGENT_PLAN_RISK_ATTR, tt as DelegationContext, u as withScopedTool, ut as HashPayloadOptions, v as RevokeAgentIdentityInput, w as recordDecisionBasis, x as withAgentSession, y as RotateAgentIdentityInput, z as AgentAuditEventEnvelope } from "../index-Dxt0bm0M.js";
1
+ import { $ as AgentToolCallOptions, A as delegateToAgent, B as AgentDecisionMetadata, C as defineAgentToolCall, D as withAgentToolCall, E as withAgentAction, F as AgentActionFactory, G as AgentIdentityRegistry, H as AgentHandler, I as AgentActionMetadata, J as AgentOutcome, K as AgentIdentityStatus, L as AgentActionOptions, M as flattenAgentAttributes, N as setAgentAttributes, O as DelegateToAgentInput, P as createAgentAuditMetadata, Q as AgentToolCallActionMetadata, R as AgentAiMetadata, S as defineAgentAction, T as recordPolicyDecision, U as AgentIdentity, V as AgentEventKind, W as AgentIdentityRecord, X as AgentSessionMetadata, Y as AgentSessionActionMetadata, Z as AgentSessionStatus, _ as ProvisionAgentIdentityInput, a as AgentPlanRiskVerdict, at as PrivacyProfile, b as createAgentIdentityRegistry, c as recordPlanRiskAssessment, ct as ToolCallMetadata, d as CreateSignedEventEnvelopeOptions, dt as canonicalizeForHash, et as AiLifecycleStage, f as createSignedEventEnvelope, ft as hashPayload, g as sanitizeAuditPayload, h as resolvePrivacyProfile, i as AgentPlanClassifierResult, it as PolicyMetadata, j as recordAgentHandoff, k as RecordAgentHandoffMetadata, l as runAgentPlanClassifier, lt as ToolStatus, m as PrivacyProfileInput, n as AgentPlanClassifier, nt as GovernanceMetadata, o as RecordPlanRiskAssessmentOptions, ot as PrivacyProfileName, p as verifyEventEnvelopeHash, pt as AGENT_AUDIT_SCHEMA_VERSION, q as AgentMetadataInput, r as AgentPlanClassifierInput, rt as PolicyDecision, s as heuristicPlanRiskClassifier, st as ScopedToolDefinition, t as AGENT_PLAN_RISK_ATTR, tt as DelegationContext, u as withScopedTool, ut as HashPayloadOptions, v as RevokeAgentIdentityInput, w as recordDecisionBasis, x as withAgentSession, y as RotateAgentIdentityInput, z as AgentAuditEventEnvelope } from "../index-DvdkwGf7.js";
2
2
  import { a as TokenUsage, i as ModelPricing } from "../cost-DXTkBUUW.js";
3
- import { C as recordPlanStep, D as agentContextFromSpan, E as AgentContext, S as recordMemoryAccess, T as tryRecordHumanApproval, _ as recordActionRiskClass, a as AgentInputProvenance, b as recordHumanApproval, c as AgentSecurityRecordOptions, d as RecordHumanApprovalInput, f as RecordInputProvenanceInput, g as deriveActionRiskClass, h as RecordRenderOutputInput, i as AgentConsentOutcome, l as RecordActiveScopesInput, m as RecordPlanStepInput, n as ActionRiskHints, o as AgentMemoryOperation, p as RecordMemoryAccessInput, r as AgentActionRiskClass, s as AgentOutputFormat, t as AGENT_SECURITY_ATTR, u as RecordControllerInput, v as recordActiveScopes, w as recordRenderOutput, x as recordInputProvenance, y as recordControllerId } from "../agent-security-N6nE3V3A.js";
3
+ import { C as recordPlanStep, D as agentContextFromSpan, E as AgentContext, S as recordMemoryAccess, T as tryRecordHumanApproval, _ as recordActionRiskClass, a as AgentInputProvenance, b as recordHumanApproval, c as AgentSecurityRecordOptions, d as RecordHumanApprovalInput, f as RecordInputProvenanceInput, g as deriveActionRiskClass, h as RecordRenderOutputInput, i as AgentConsentOutcome, l as RecordActiveScopesInput, m as RecordPlanStepInput, n as ActionRiskHints, o as AgentMemoryOperation, p as RecordMemoryAccessInput, r as AgentActionRiskClass, s as AgentOutputFormat, t as AGENT_SECURITY_ATTR, u as RecordControllerInput, v as recordActiveScopes, w as recordRenderOutput, x as recordInputProvenance, y as recordControllerId } from "../agent-security-BHdP6ZPG.js";
4
4
  export { AGENT_AUDIT_SCHEMA_VERSION, AGENT_PLAN_RISK_ATTR, AGENT_SECURITY_ATTR, type ActionRiskHints, type AgentActionFactory, type AgentActionMetadata, type AgentActionOptions, type AgentActionRiskClass, type AgentAiMetadata, type AgentAuditEventEnvelope, type AgentConsentOutcome, type AgentContext, type AgentDecisionMetadata, type AgentEventKind, type AgentHandler, type AgentIdentity, type AgentIdentityRecord, type AgentIdentityRegistry, type AgentIdentityStatus, type AgentInputProvenance, type AgentMemoryOperation, type AgentMetadataInput, type AgentOutcome, type AgentOutputFormat, type AgentPlanClassifier, type AgentPlanClassifierInput, type AgentPlanClassifierResult, type AgentPlanRiskVerdict, type AgentSecurityRecordOptions, type AgentSessionActionMetadata, type AgentSessionMetadata, type AgentSessionStatus, type AgentToolCallActionMetadata, type AgentToolCallOptions, type AiLifecycleStage, type CreateSignedEventEnvelopeOptions, type DelegateToAgentInput, type DelegationContext, type GovernanceMetadata, type HashPayloadOptions, type ModelPricing, type PolicyDecision, type PolicyMetadata, type PrivacyProfile, type PrivacyProfileInput, type PrivacyProfileName, type ProvisionAgentIdentityInput, type RecordActiveScopesInput, type RecordAgentHandoffMetadata, type RecordControllerInput, type RecordHumanApprovalInput, type RecordInputProvenanceInput, type RecordMemoryAccessInput, type RecordPlanRiskAssessmentOptions, type RecordPlanStepInput, type RecordRenderOutputInput, type RevokeAgentIdentityInput, type RotateAgentIdentityInput, type ScopedToolDefinition, type TokenUsage, type ToolCallMetadata, type ToolStatus, agentContextFromSpan, canonicalizeForHash, createAgentAuditMetadata, createAgentIdentityRegistry, createSignedEventEnvelope, defineAgentAction, defineAgentToolCall, delegateToAgent, deriveActionRiskClass, flattenAgentAttributes, hashPayload, heuristicPlanRiskClassifier, recordActionRiskClass, recordActiveScopes, recordAgentHandoff, recordControllerId, recordDecisionBasis, recordHumanApproval, recordInputProvenance, recordMemoryAccess, recordPlanRiskAssessment, recordPlanStep, recordPolicyDecision, recordRenderOutput, resolvePrivacyProfile, runAgentPlanClassifier, sanitizeAuditPayload, setAgentAttributes, tryRecordHumanApproval, verifyEventEnvelopeHash, withAgentAction, withAgentSession, withAgentToolCall, withScopedTool };
@@ -1,3 +1,4 @@
1
- import { A as withAgentAction, C as withAgentSession, D as defineAgentToolCall, E as defineAgentAction, F as canonicalizeForHash, I as hashPayload, L as AGENT_AUDIT_SCHEMA_VERSION, M as flattenAgentAttributes, N as setAgentAttributes, O as recordDecisionBasis, P as createAgentAuditMetadata, S as createAgentIdentityRegistry, T as recordAgentHandoff, _ as withScopedTool, a as heuristicPlanRiskClassifier, b as resolvePrivacyProfile, c as recordControllerId, d as recordMemoryAccess, f as recordPlanRiskAssessment, g as tryRecordHumanApproval, h as runAgentPlanClassifier, i as deriveActionRiskClass, j as withAgentToolCall, k as recordPolicyDecision, l as recordHumanApproval, m as recordRenderOutput, n as AGENT_SECURITY_ATTR, o as recordActionRiskClass, p as recordPlanStep, r as agentContextFromSpan, s as recordActiveScopes, t as AGENT_PLAN_RISK_ATTR, u as recordInputProvenance, v as createSignedEventEnvelope, w as delegateToAgent, x as sanitizeAuditPayload, y as verifyEventEnvelopeHash } from "../agent-DthMDQbW.js";
1
+ import { a as recordControllerId, c as recordMemoryAccess, d as tryRecordHumanApproval, i as recordActiveScopes, l as recordPlanStep, n as deriveActionRiskClass, o as recordHumanApproval, p as agentContextFromSpan, r as recordActionRiskClass, s as recordInputProvenance, t as AGENT_SECURITY_ATTR, u as recordRenderOutput } from "../agent-security-CUDUKOEK.js";
2
+ import { C as canonicalizeForHash, S as createAgentAuditMetadata, T as AGENT_AUDIT_SCHEMA_VERSION, _ as recordPolicyDecision, a as withScopedTool, b as flattenAgentAttributes, c as resolvePrivacyProfile, d as withAgentSession, f as delegateToAgent, g as recordDecisionBasis, h as defineAgentToolCall, i as runAgentPlanClassifier, l as sanitizeAuditPayload, m as defineAgentAction, n as heuristicPlanRiskClassifier, o as createSignedEventEnvelope, p as recordAgentHandoff, r as recordPlanRiskAssessment, s as verifyEventEnvelopeHash, t as AGENT_PLAN_RISK_ATTR, u as createAgentIdentityRegistry, v as withAgentAction, w as hashPayload, x as setAgentAttributes, y as withAgentToolCall } from "../agent-oCfaqmYw.js";
2
3
 
3
4
  export { AGENT_AUDIT_SCHEMA_VERSION, AGENT_PLAN_RISK_ATTR, AGENT_SECURITY_ATTR, agentContextFromSpan, canonicalizeForHash, createAgentAuditMetadata, createAgentIdentityRegistry, createSignedEventEnvelope, defineAgentAction, defineAgentToolCall, delegateToAgent, deriveActionRiskClass, flattenAgentAttributes, hashPayload, heuristicPlanRiskClassifier, recordActionRiskClass, recordActiveScopes, recordAgentHandoff, recordControllerId, recordDecisionBasis, recordHumanApproval, recordInputProvenance, recordMemoryAccess, recordPlanRiskAssessment, recordPlanStep, recordPolicyDecision, recordRenderOutput, resolvePrivacyProfile, runAgentPlanClassifier, sanitizeAuditPayload, setAgentAttributes, tryRecordHumanApproval, verifyEventEnvelopeHash, withAgentAction, withAgentSession, withAgentToolCall, withScopedTool };