@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
@@ -2,25 +2,26 @@ import { O as OtelHookConfig } from './schema-Cn0-xz8L.js';
2
2
  import { OverallHealth } from './diagnostics.js';
3
3
  import { OtelHookErrorInfo } from './errors.js';
4
4
  import { DeliveryClaimOutcome, UsageAccumulatorSnapshot, LifecycleCleanupReport, CallbackDeduplicator, UsageAccumulator, SpanCorrelator, LifecycleJanitor } from './lifecycle.js';
5
- import { P as PrivacyService } from './service-j4jEO6cZ.js';
6
- import { P as ProviderRegistry } from './registry-BzYmC9OC.js';
7
- import { a as DeliveryOrigin, c as DeliveryUnavailableReason, H as HookIngestInput, e as HookIngestOutcome, U as UsageObservation, O as OtelHook } from './hook-CGpo-vks.js';
8
- import { C as Clock, I as IdGenerator, c as Logger } from './ports-Q8x0ODhs.js';
9
- import { F as FilesystemStateStore } from './filesystem-store-J8jjDMTh.js';
10
- import { o as OtlpTelemetrySink, n as OtlpLogTelemetrySink, b as DurableSpool, D as DurableLogSpool } from './otlp-log-sink-CeIFDDpn.js';
5
+ import { P as PrivacyService } from './service-CbI9CObT.js';
6
+ import { P as ProviderRegistry } from './registry-BSBS8t7S.js';
7
+ import { a as DeliveryOrigin, c as DeliveryUnavailableReason, H as HookIngestInput, e as HookIngestOutcome, U as UsageObservation, O as OtelHook } from './hook-CQiNa88Q.js';
8
+ import { C as Clock, I as IdGenerator, d as Logger, W as WorktreeLocator } from './ports-B_iwJQPQ.js';
9
+ import { F as FilesystemStateStore } from './filesystem-store-BAq3VGVv.js';
10
+ import { o as OtlpTelemetrySink, n as OtlpLogTelemetrySink, b as DurableSpool, D as DurableLogSpool } from './otlp-log-sink-BZIgYPKN.js';
11
11
  import 'zod';
12
12
  import './primitives-CJ8-rn-f.js';
13
13
  import './taxonomy-DwhTtuWd.js';
14
14
  import '@opentelemetry/api';
15
- import './events-VxBnDFaO.js';
16
- import './semconv-Baoz-0OI.js';
15
+ import './events-C3h3GvHj.js';
16
+ import './semconv-BeUPQ7_q.js';
17
17
  import '@opentelemetry/core';
18
18
  import '@opentelemetry/resources';
19
19
  import '@opentelemetry/sdk-trace';
20
- import './content-CoB7aNP1.js';
21
- import './policy-D1CrlYn3.js';
22
- import './adapter-DIgRACtL.js';
20
+ import './content-M9xIKG7h.js';
21
+ import './policy-CimmCfRp.js';
22
+ import './adapter-BgqtlADe.js';
23
23
  import './identity-BrVBs901.js';
24
+ import './target-8RfaVxp8.js';
24
25
  import './keys-Dej5bN3L.js';
25
26
  import '@opentelemetry/sdk-logs';
26
27
 
@@ -273,6 +274,12 @@ type HookRuntimeOptions = {
273
274
  readonly staleClaimMillis?: number;
274
275
  /** TTL for dedup records specifically. Defaults to `lifecycleMaxAgeMillis`. */
275
276
  readonly deliveryRetentionMillis?: number;
277
+ /**
278
+ * Resolve the git worktree each tool event targeted (ADR 0008). Defaults to a
279
+ * filesystem locator that reads `.git` and `HEAD` without spawning git; pass
280
+ * `null` to disable resolution entirely.
281
+ */
282
+ readonly worktreeLocator?: WorktreeLocator | null;
276
283
  };
277
284
  /**
278
285
  * Smallest stale-claim window that cannot expire while a live process is still