@osfactory/otel-hook 0.2.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 (52) hide show
  1. package/dist/{adapter-DIgRACtL.d.ts → adapter-BgqtlADe.d.ts} +12 -5
  2. package/dist/cli.js +1439 -626
  3. package/dist/cli.js.map +1 -1
  4. package/dist/config.d.ts +2 -2
  5. package/dist/config.js +5 -1
  6. package/dist/config.js.map +1 -1
  7. package/dist/{content-CoB7aNP1.d.ts → content-M9xIKG7h.d.ts} +8 -1
  8. package/dist/{events-VxBnDFaO.d.ts → events-C3h3GvHj.d.ts} +58 -0
  9. package/dist/{filesystem-store-J8jjDMTh.d.ts → filesystem-store-BAq3VGVv.d.ts} +1 -1
  10. package/dist/{hook-CGpo-vks.d.ts → hook-CQiNa88Q.d.ts} +13 -5
  11. package/dist/index.d.ts +16 -15
  12. package/dist/index.js +1569 -741
  13. package/dist/index.js.map +1 -1
  14. package/dist/install.d.ts +8 -7
  15. package/dist/install.js +132 -68
  16. package/dist/install.js.map +1 -1
  17. package/dist/integration.d.ts +18 -11
  18. package/dist/integration.js +618 -158
  19. package/dist/integration.js.map +1 -1
  20. package/dist/lifecycle.d.ts +3 -3
  21. package/dist/lifecycle.js +27 -4
  22. package/dist/lifecycle.js.map +1 -1
  23. package/dist/{memory-DXVBc8V9.d.ts → memory-kflYgZbg.d.ts} +2 -2
  24. package/dist/model.d.ts +3 -2
  25. package/dist/model.js +81 -41
  26. package/dist/model.js.map +1 -1
  27. package/dist/{otlp-log-sink-CeIFDDpn.d.ts → otlp-log-sink-BZIgYPKN.d.ts} +4 -4
  28. package/dist/{payload-CHr53E_v.d.ts → payload-DpyU8F-z.d.ts} +1 -1
  29. package/dist/{policy-D1CrlYn3.d.ts → policy-CimmCfRp.d.ts} +1 -1
  30. package/dist/{ports-Q8x0ODhs.d.ts → ports-B_iwJQPQ.d.ts} +20 -2
  31. package/dist/privacy.d.ts +4 -4
  32. package/dist/privacy.js +11 -0
  33. package/dist/privacy.js.map +1 -1
  34. package/dist/providers.d.ts +30 -12
  35. package/dist/providers.js +983 -552
  36. package/dist/providers.js.map +1 -1
  37. package/dist/{registry-BzYmC9OC.d.ts → registry-BSBS8t7S.d.ts} +1 -1
  38. package/dist/runtime.d.ts +88 -12
  39. package/dist/runtime.js +392 -68
  40. package/dist/runtime.js.map +1 -1
  41. package/dist/{semconv-Baoz-0OI.d.ts → semconv-BeUPQ7_q.d.ts} +2 -1
  42. package/dist/{service-j4jEO6cZ.d.ts → service-CbI9CObT.d.ts} +8 -2
  43. package/dist/state.d.ts +4 -4
  44. package/dist/state.js.map +1 -1
  45. package/dist/target-8RfaVxp8.d.ts +83 -0
  46. package/dist/telemetry.d.ts +7 -7
  47. package/dist/telemetry.js +186 -46
  48. package/dist/telemetry.js.map +1 -1
  49. package/dist/testing.d.ts +17 -10
  50. package/dist/testing.js +1149 -593
  51. package/dist/testing.js.map +1 -1
  52. package/package.json +4 -1
package/dist/testing.d.ts CHANGED
@@ -1,19 +1,20 @@
1
1
  import { O as OtelHookConfig, g as OtelHookConfigPatch } from './schema-Cn0-xz8L.js';
2
- import { b as CanonicalEvent } from './events-VxBnDFaO.js';
2
+ import { b as CanonicalEvent } from './events-C3h3GvHj.js';
3
3
  import { I as IdentityClaim, d as InvocationIdentity, S as SourceProvenance } from './identity-BrVBs901.js';
4
- import { P as PrivacyService } from './service-j4jEO6cZ.js';
5
- import { d as ProviderCapabilities, h as ProviderDetection, i as ProviderDetectionInput, e as ProviderContext, l as ProviderIdentityInput, f as ProviderDeliveryClaim, k as ProviderHookResponseInput, j as ProviderHookResponse, P as ProviderAdapter } from './adapter-DIgRACtL.js';
6
- import { P as ProviderRegistry } from './registry-BzYmC9OC.js';
7
- import { c as RecordingTelemetrySink, I as InMemoryStateStore, F as FixedClock, R as RecordingLogger } from './memory-DXVBc8V9.js';
8
- export { e as createDeterministicIdGenerator, f as createFixedClock, g as createInMemoryStateStore, j as createRecordingLogger, k as createRecordingTelemetrySink } from './memory-DXVBc8V9.js';
9
- import { O as OtelHook } from './hook-CGpo-vks.js';
10
- import { I as IdGenerator } from './ports-Q8x0ODhs.js';
4
+ import { P as PrivacyService } from './service-CbI9CObT.js';
5
+ import { d as ProviderCapabilities, h as ProviderDetection, i as ProviderDetectionInput, e as ProviderContext, l as ProviderIdentityInput, f as ProviderDeliveryClaim, k as ProviderHookResponseInput, j as ProviderHookResponse, P as ProviderAdapter } from './adapter-BgqtlADe.js';
6
+ import { P as ProviderRegistry } from './registry-BSBS8t7S.js';
7
+ import { c as RecordingTelemetrySink, I as InMemoryStateStore, F as FixedClock, R as RecordingLogger } from './memory-kflYgZbg.js';
8
+ export { e as createDeterministicIdGenerator, f as createFixedClock, g as createInMemoryStateStore, j as createRecordingLogger, k as createRecordingTelemetrySink } from './memory-kflYgZbg.js';
9
+ import { O as OtelHook } from './hook-CQiNa88Q.js';
10
+ import { I as IdGenerator, W as WorktreeLocator } from './ports-B_iwJQPQ.js';
11
11
  import { z } from 'zod';
12
- import { a as ContentDisclosure, b as ContentFact } from './content-CoB7aNP1.js';
12
+ import { a as ContentDisclosure, b as ContentFact } from './content-M9xIKG7h.js';
13
13
  import './primitives-CJ8-rn-f.js';
14
- import './policy-D1CrlYn3.js';
14
+ import './policy-CimmCfRp.js';
15
15
  import './errors.js';
16
16
  import './taxonomy-DwhTtuWd.js';
17
+ import './target-8RfaVxp8.js';
17
18
 
18
19
  /**
19
20
  * Synthetic hook payload used by the reference adapter.
@@ -132,6 +133,12 @@ type TestHarnessOptions = {
132
133
  readonly ids?: IdGenerator;
133
134
  readonly startMillis?: number;
134
135
  readonly tickMillis?: number;
136
+ /**
137
+ * Worktree resolution for tool targets (ADR 0008). Absent by default, so the
138
+ * harness stays filesystem-free; pass a fake, or the filesystem locator over a
139
+ * temporary directory.
140
+ */
141
+ readonly worktreeLocator?: WorktreeLocator;
135
142
  };
136
143
  type TestHarness = {
137
144
  readonly hook: OtelHook;