@osfactory/otel-hook 0.3.0 → 0.4.1

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 (43) hide show
  1. package/dist/{adapter-DXpNtnaf.d.ts → adapter-BgqtlADe.d.ts} +10 -3
  2. package/dist/cli.js +1001 -487
  3. package/dist/cli.js.map +1 -1
  4. package/dist/{events-VxBnDFaO.d.ts → events-C3h3GvHj.d.ts} +58 -0
  5. package/dist/{filesystem-store-J8jjDMTh.d.ts → filesystem-store-BAq3VGVv.d.ts} +1 -1
  6. package/dist/{hook-_mlO3akA.d.ts → hook-CQiNa88Q.d.ts} +12 -4
  7. package/dist/index.d.ts +13 -12
  8. package/dist/index.js +1127 -599
  9. package/dist/index.js.map +1 -1
  10. package/dist/install.d.ts +5 -4
  11. package/dist/install.js +99 -68
  12. package/dist/install.js.map +1 -1
  13. package/dist/integration.d.ts +15 -8
  14. package/dist/integration.js +505 -121
  15. package/dist/integration.js.map +1 -1
  16. package/dist/lifecycle.d.ts +3 -3
  17. package/dist/lifecycle.js +23 -2
  18. package/dist/lifecycle.js.map +1 -1
  19. package/dist/{memory-DXVBc8V9.d.ts → memory-kflYgZbg.d.ts} +2 -2
  20. package/dist/model.d.ts +2 -1
  21. package/dist/model.js +79 -41
  22. package/dist/model.js.map +1 -1
  23. package/dist/{otlp-log-sink-DTSa0KRF.d.ts → otlp-log-sink-BZIgYPKN.d.ts} +3 -3
  24. package/dist/{payload-BWV5-4n3.d.ts → payload-DpyU8F-z.d.ts} +1 -1
  25. package/dist/{ports-Q8x0ODhs.d.ts → ports-B_iwJQPQ.d.ts} +20 -2
  26. package/dist/providers.d.ts +27 -9
  27. package/dist/providers.js +664 -452
  28. package/dist/providers.js.map +1 -1
  29. package/dist/{registry-Dqr3VNmT.d.ts → registry-BSBS8t7S.d.ts} +1 -1
  30. package/dist/runtime.d.ts +87 -11
  31. package/dist/runtime.js +379 -67
  32. package/dist/runtime.js.map +1 -1
  33. package/dist/{semconv-CIU-2kGO.d.ts → semconv-BeUPQ7_q.d.ts} +1 -1
  34. package/dist/state.d.ts +4 -4
  35. package/dist/state.js.map +1 -1
  36. package/dist/target-8RfaVxp8.d.ts +83 -0
  37. package/dist/telemetry.d.ts +6 -6
  38. package/dist/telemetry.js +86 -10
  39. package/dist/telemetry.js.map +1 -1
  40. package/dist/testing.d.ts +14 -7
  41. package/dist/testing.js +814 -492
  42. package/dist/testing.js.map +1 -1
  43. package/package.json +4 -1
@@ -1,11 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  import { OtelHookErrorInfo } from './errors.js';
3
- import { w as UsageTemporality, b as CanonicalEvent, e as CanonicalEventType } from './events-VxBnDFaO.js';
3
+ import { w as UsageTemporality, b as CanonicalEvent, e as CanonicalEventType } from './events-C3h3GvHj.js';
4
4
  import { I as IdentityClaim, d as InvocationIdentity } from './identity-BrVBs901.js';
5
- import { R as ResolvedProviderId, g as ProviderId, h as SourceTransport } from './primitives-CJ8-rn-f.js';
5
+ import { T as TargetHint } from './target-8RfaVxp8.js';
6
+ import { R as ResolvedProviderId, g as ProviderId, h as SourceTransport, d as EventId } from './primitives-CJ8-rn-f.js';
6
7
  import { e as PrivacyLimits } from './policy-CimmCfRp.js';
7
8
  import { P as PrivacyService } from './service-CbI9CObT.js';
8
- import { C as Clock, I as IdGenerator, c as Logger } from './ports-Q8x0ODhs.js';
9
+ import { C as Clock, I as IdGenerator, d as Logger } from './ports-B_iwJQPQ.js';
9
10
  import { A as AttributionOutcome, a as AttributionReason } from './taxonomy-DwhTtuWd.js';
10
11
 
11
12
  /** Raw input offered to adapters. `payload` is `unknown` on purpose. */
@@ -190,6 +191,12 @@ type ProviderParseResult = {
190
191
  readonly status: "parsed";
191
192
  readonly events: readonly CanonicalEvent[];
192
193
  readonly warnings?: readonly string[];
194
+ /**
195
+ * Where tool events pointed, keyed by event id (ADR 0008). The one
196
+ * canonical value that carries local paths: the core resolves each into
197
+ * the event's `target` and discards it. Use `EventFactory.targetHints()`.
198
+ */
199
+ readonly targetHints?: ReadonlyMap<EventId, TargetHint>;
193
200
  }
194
201
  /** The input was recognized but carries no telemetry. Not an error. */
195
202
  | {