@osfactory/otel-hook 0.13.1 → 0.14.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 (41) hide show
  1. package/README.md +94 -3
  2. package/dist/{adapter-DyCb7y1N.d.ts → adapter-D5R8lhfl.d.ts} +1 -1
  3. package/dist/cli.js +1240 -200
  4. package/dist/cli.js.map +1 -1
  5. package/dist/config.d.ts +32 -4
  6. package/dist/config.js +200 -14
  7. package/dist/config.js.map +1 -1
  8. package/dist/{destinations-DvqsPulb.d.ts → destinations-2KrcRslo.d.ts} +92 -2
  9. package/dist/{export-destinations-DUeQKr_C.d.ts → export-destinations-DvoH4QOe.d.ts} +135 -11
  10. package/dist/{hook-D5imE0Qc.d.ts → hook-DVK8Don-.d.ts} +4 -4
  11. package/dist/index.d.ts +11 -11
  12. package/dist/index.js +1262 -228
  13. package/dist/index.js.map +1 -1
  14. package/dist/install.d.ts +3 -3
  15. package/dist/install.js +1 -0
  16. package/dist/install.js.map +1 -1
  17. package/dist/integration.d.ts +16 -9
  18. package/dist/integration.js +1298 -205
  19. package/dist/integration.js.map +1 -1
  20. package/dist/lifecycle.js +1 -1
  21. package/dist/lifecycle.js.map +1 -1
  22. package/dist/{payload-CdDKeRpH.d.ts → payload-D4r71EL-.d.ts} +18 -2
  23. package/dist/privacy.d.ts +2 -2
  24. package/dist/privacy.js +42 -1
  25. package/dist/privacy.js.map +1 -1
  26. package/dist/providers.d.ts +94 -9
  27. package/dist/providers.js +300 -2
  28. package/dist/providers.js.map +1 -1
  29. package/dist/{registry-BKQhhIO3.d.ts → registry-DOJh9mzB.d.ts} +2 -2
  30. package/dist/runtime.d.ts +5 -5
  31. package/dist/runtime.js +151 -5
  32. package/dist/runtime.js.map +1 -1
  33. package/dist/{schema-SpFM6YQY.d.ts → schema-oRsbo7WO.d.ts} +77 -3
  34. package/dist/{service-CbI9CObT.d.ts → service-DySC7KQM.d.ts} +6 -1
  35. package/dist/telemetry.d.ts +5 -4
  36. package/dist/telemetry.js +1076 -476
  37. package/dist/telemetry.js.map +1 -1
  38. package/dist/testing.d.ts +5 -5
  39. package/dist/testing.js +178 -21
  40. package/dist/testing.js.map +1 -1
  41. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- import { O as OtelHookConfig } from './schema-SpFM6YQY.js';
1
+ import { O as OtelHookConfig } from './schema-oRsbo7WO.js';
2
2
  import { OverallHealth } from './diagnostics.js';
3
3
  import { OtelHookErrorInfo } from './errors.js';
4
4
  import { DeliveryClaimOutcome, UsageAccumulatorSnapshot, LifecycleCleanupReport, CallbackDeduplicator, UsageAccumulator, SpanCorrelator, MetricSeriesStore, LifecycleJanitor } from './lifecycle.js';
5
- import { P as PrivacyService } from './service-CbI9CObT.js';
6
- import { P as ProviderRegistry } from './registry-BKQhhIO3.js';
7
- import { a as DeliveryOrigin, c as DeliveryUnavailableReason, H as HookIngestInput, e as HookIngestOutcome, U as UsageObservation, O as OtelHook } from './hook-D5imE0Qc.js';
5
+ import { P as PrivacyService } from './service-DySC7KQM.js';
6
+ import { P as ProviderRegistry } from './registry-DOJh9mzB.js';
7
+ import { a as DeliveryOrigin, c as DeliveryUnavailableReason, H as HookIngestInput, e as HookIngestOutcome, U as UsageObservation, O as OtelHook } from './hook-DVK8Don-.js';
8
8
  import { C as Clock, I as IdGenerator, d as Logger, W as WorktreeLocator, P as PayloadEnricher, S as SessionContextReader } from './ports-DhpSDIkp.js';
9
9
  import { F as FilesystemStateStore } from './filesystem-store-B3CpiIRl.js';
10
- import { w as OtlpTelemetrySink, t as OtlpLogTelemetrySink, d as DurableSpool, D as DurableLogSpool, E as ExportDestinationSinks, B as SkippedExportDestination } from './export-destinations-DUeQKr_C.js';
10
+ import { y as OtlpTelemetrySink, v as OtlpLogTelemetrySink, f as DurableSpool, b as DurableLogSpool, E as ExportDestinationSinks, I as SkippedExportDestination } from './export-destinations-DvoH4QOe.js';
11
11
  import 'zod';
12
12
  import './primitives-CJ8-rn-f.js';
13
13
  import './taxonomy-DwhTtuWd.js';
@@ -19,10 +19,10 @@ import '@opentelemetry/resources';
19
19
  import '@opentelemetry/sdk-trace';
20
20
  import './content-M9xIKG7h.js';
21
21
  import './policy-CimmCfRp.js';
22
- import './adapter-DyCb7y1N.js';
22
+ import './adapter-D5R8lhfl.js';
23
23
  import './identity-BrVBs901.js';
24
24
  import './keys-Dej5bN3L.js';
25
- import './destinations-DvqsPulb.js';
25
+ import './destinations-2KrcRslo.js';
26
26
  import '@opentelemetry/sdk-logs';
27
27
 
28
28
  /**
@@ -323,10 +323,17 @@ type HookRuntimeOptions = {
323
323
  /**
324
324
  * Payload enrichers run before the adapter parses (see `PayloadEnricher`).
325
325
  * When absent, the configuration decides: `providers.claudeCode.readTranscriptUsage`
326
- * adds the Claude Code transcript-usage enricher, and nothing else is added.
327
- * Pass `[]` to run none regardless of configuration.
326
+ * adds the Claude Code transcript-usage enricher, `providers.codex.readRolloutUsage`
327
+ * the Codex rollout-usage enricher, and nothing else is added. Pass `[]` to run
328
+ * none regardless of configuration.
328
329
  */
329
330
  readonly payloadEnrichers?: readonly PayloadEnricher[];
331
+ /**
332
+ * `$CODEX_HOME/sessions`, where the Codex rollout-usage enricher looks a
333
+ * rollout up by session id when a payload names no `transcript_path`. Absent,
334
+ * such payloads get no usage. The runtime never derives it from the environment.
335
+ */
336
+ readonly codexSessionsRoot?: string;
330
337
  /**
331
338
  * Reads session context files (`docs/session-context.md`). When absent, the
332
339
  * configuration decides: `sessionContext.dir` adds the directory reader, and