@osfactory/otel-hook 0.13.2 → 0.14.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 (46) hide show
  1. package/README.md +57 -0
  2. package/dist/{adapter-DyCb7y1N.d.ts → adapter-But5fFCk.d.ts} +9 -2
  3. package/dist/cli.js +628 -73
  4. package/dist/cli.js.map +1 -1
  5. package/dist/config.d.ts +30 -4
  6. package/dist/config.js +161 -9
  7. package/dist/config.js.map +1 -1
  8. package/dist/{destinations-C4sSKjDO.d.ts → destinations-2KrcRslo.d.ts} +92 -2
  9. package/dist/{export-destinations-BjRXDots.d.ts → export-destinations-8tNkIC8a.d.ts} +110 -10
  10. package/dist/{filesystem-store-B3CpiIRl.d.ts → filesystem-store-Z8XgDtFj.d.ts} +1 -1
  11. package/dist/{hook-CKLpgrYP.d.ts → hook-D7XABd4f.d.ts} +19 -5
  12. package/dist/index.d.ts +14 -14
  13. package/dist/index.js +626 -72
  14. package/dist/index.js.map +1 -1
  15. package/dist/install.d.ts +4 -4
  16. package/dist/install.js.map +1 -1
  17. package/dist/integration.d.ts +9 -9
  18. package/dist/integration.js +555 -65
  19. package/dist/integration.js.map +1 -1
  20. package/dist/lifecycle.d.ts +1 -1
  21. package/dist/lifecycle.js +1 -1
  22. package/dist/lifecycle.js.map +1 -1
  23. package/dist/{memory-B3r6sZtC.d.ts → memory-gipZUiXP.d.ts} +1 -1
  24. package/dist/{payload-DLK7QaBB.d.ts → payload-DWdx9yk3.d.ts} +1 -1
  25. package/dist/{ports-DhpSDIkp.d.ts → ports-qZTwK-z2.d.ts} +22 -2
  26. package/dist/privacy.d.ts +2 -2
  27. package/dist/privacy.js +42 -1
  28. package/dist/privacy.js.map +1 -1
  29. package/dist/providers.d.ts +9 -9
  30. package/dist/providers.js +22 -5
  31. package/dist/providers.js.map +1 -1
  32. package/dist/{registry-DM-4YvIA.d.ts → registry-D9rmMYxw.d.ts} +2 -2
  33. package/dist/runtime.d.ts +24 -9
  34. package/dist/runtime.js +282 -30
  35. package/dist/runtime.js.map +1 -1
  36. package/dist/{schema-CD61uW99.d.ts → schema-oRsbo7WO.d.ts} +45 -0
  37. package/dist/{service-CbI9CObT.d.ts → service-DySC7KQM.d.ts} +6 -1
  38. package/dist/state.d.ts +3 -3
  39. package/dist/state.js.map +1 -1
  40. package/dist/telemetry.d.ts +6 -5
  41. package/dist/telemetry.js +304 -17
  42. package/dist/telemetry.js.map +1 -1
  43. package/dist/testing.d.ts +8 -8
  44. package/dist/testing.js +185 -10
  45. package/dist/testing.js.map +1 -1
  46. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { E as ExporterPolicy } from './schema-CD61uW99.js';
2
+ import { a as ContentMode } from './policy-CimmCfRp.js';
3
+ import { E as ExporterPolicy } from './schema-oRsbo7WO.js';
3
4
 
4
5
  /**
5
6
  * Export destinations: one batch, several OTLP endpoints.
@@ -38,6 +39,34 @@ declare const exportSignalSchema: z.ZodEnum<{
38
39
  metrics: "metrics";
39
40
  }>;
40
41
  type ExportSignal = z.infer<typeof exportSignalSchema>;
42
+ declare const MAX_DESTINATION_SCOPES = 64;
43
+ declare const MAX_SCOPE_REPOSITORIES = 256;
44
+ /** Every repository, as a scope's `repositories`. */
45
+ declare const ALL_REPOSITORIES = "*";
46
+ /**
47
+ * What one destination receives for a set of repositories.
48
+ *
49
+ * A scope can only *restrict* what the destination would otherwise get: its
50
+ * signals are intersected with the destination's, its content mode can only
51
+ * lower the disclosure the installation's `privacy.contentMode` produced, and
52
+ * `includeSessionId: false` only removes `session.id` from metric points.
53
+ */
54
+ declare const destinationScopeSchema: z.ZodObject<{
55
+ repositories: z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodReadonly<z.ZodArray<z.ZodString>>]>;
56
+ signals: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
57
+ traces: "traces";
58
+ logs: "logs";
59
+ metrics: "metrics";
60
+ }>>>>;
61
+ contentMode: z.ZodOptional<z.ZodEnum<{
62
+ raw: "raw";
63
+ omit: "omit";
64
+ mask: "mask";
65
+ redact: "redact";
66
+ }>>;
67
+ includeSessionId: z.ZodOptional<z.ZodBoolean>;
68
+ }, z.core.$strict>;
69
+ type DestinationScopeConfig = z.infer<typeof destinationScopeSchema>;
41
70
  declare const exportDestinationSchema: z.ZodObject<{
42
71
  name: z.ZodString;
43
72
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -56,6 +85,21 @@ declare const exportDestinationSchema: z.ZodObject<{
56
85
  logs: "logs";
57
86
  metrics: "metrics";
58
87
  }>>>>;
88
+ scopes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
89
+ repositories: z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodReadonly<z.ZodArray<z.ZodString>>]>;
90
+ signals: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
91
+ traces: "traces";
92
+ logs: "logs";
93
+ metrics: "metrics";
94
+ }>>>>;
95
+ contentMode: z.ZodOptional<z.ZodEnum<{
96
+ raw: "raw";
97
+ omit: "omit";
98
+ mask: "mask";
99
+ redact: "redact";
100
+ }>>;
101
+ includeSessionId: z.ZodOptional<z.ZodBoolean>;
102
+ }, z.core.$strict>>>>;
59
103
  }, z.core.$strict>;
60
104
  type ExportDestinationConfig = z.infer<typeof exportDestinationSchema>;
61
105
  /** Signals a destination receives when it does not list any: never metrics. */
@@ -78,6 +122,21 @@ declare const exportDestinationsSchema: z.ZodReadonly<z.ZodArray<z.ZodObject<{
78
122
  logs: "logs";
79
123
  metrics: "metrics";
80
124
  }>>>>;
125
+ scopes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
126
+ repositories: z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodReadonly<z.ZodArray<z.ZodString>>]>;
127
+ signals: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
128
+ traces: "traces";
129
+ logs: "logs";
130
+ metrics: "metrics";
131
+ }>>>>;
132
+ contentMode: z.ZodOptional<z.ZodEnum<{
133
+ raw: "raw";
134
+ omit: "omit";
135
+ mask: "mask";
136
+ redact: "redact";
137
+ }>>;
138
+ includeSessionId: z.ZodOptional<z.ZodBoolean>;
139
+ }, z.core.$strict>>>>;
81
140
  }, z.core.$strict>>>;
82
141
  /**
83
142
  * Bounds on each destination's retry spool, per signal.
@@ -121,7 +180,30 @@ type ExportDestination = {
121
180
  readonly metrics: boolean;
122
181
  };
123
182
  readonly headers: Readonly<Record<string, string>>;
183
+ /** Per-repository filter; absent sends every record (see {@link destinationScopeSchema}). */
184
+ readonly scopes?: readonly DestinationScope[];
185
+ };
186
+ /** Signal flags, as a destination or a scope holds them. */
187
+ type SignalFlags = {
188
+ readonly traces: boolean;
189
+ readonly logs: boolean;
190
+ readonly metrics: boolean;
191
+ };
192
+ /** One scope as the runtime applies it: keys normalized, signals already intersected. */
193
+ type DestinationScope = {
194
+ /** Normalized repository keys, or every repository. */
195
+ readonly repositories: typeof ALL_REPOSITORIES | ReadonlySet<string>;
196
+ readonly signals: SignalFlags;
197
+ readonly contentMode?: ContentMode;
198
+ readonly includeSessionId: boolean;
124
199
  };
200
+ /** Resolve configured scopes against the destination's own signals. */
201
+ declare const resolveDestinationScopes: (scopes: readonly DestinationScopeConfig[], destinationSignals: SignalFlags) => readonly DestinationScope[];
202
+ /**
203
+ * The scope a repository key falls in: the first that lists it (or lists `*`).
204
+ * `undefined` — not sent — for a record with no repository key, or one no scope lists.
205
+ */
206
+ declare const matchDestinationScope: (scopes: readonly DestinationScope[], repositoryKey: string | undefined) => DestinationScope | undefined;
125
207
  /** Whether a configuration uses the destination list at all. */
126
208
  declare const hasConfiguredDestinations: (exporter: ExporterPolicy) => boolean;
127
209
  /**
@@ -171,9 +253,17 @@ type DestinationDescription = {
171
253
  readonly headerNames: readonly string[];
172
254
  /** Environment variables this destination's headers reference. */
173
255
  readonly headerVariables: readonly string[];
256
+ /** Per-repository filter, as configured (repositories normalized); absent when unscoped. */
257
+ readonly scopes?: readonly DestinationScopeDescription[];
258
+ };
259
+ type DestinationScopeDescription = {
260
+ readonly repositories: typeof ALL_REPOSITORIES | readonly string[];
261
+ readonly signals: readonly ExportSignal[];
262
+ readonly contentMode?: ContentMode;
263
+ readonly includeSessionId: boolean;
174
264
  };
175
265
  declare const endpointOrigin: (endpoint: string | undefined) => string | undefined;
176
266
  /** Every configured destination, disabled ones included, for `doctor` and snapshots. */
177
267
  declare const describeExportDestinations: (exporter: ExporterPolicy) => readonly DestinationDescription[];
178
268
 
179
- export { DEFAULT_DESTINATION_NAME as D, type ExportDestination as E, HEADER_ENV_REFERENCE_PREFIX as H, MAX_DESTINATION_HEADERS as M, type ResolvedDestinationHeaders as R, type SpoolPolicy as S, DEFAULT_DESTINATION_SIGNALS as a, DEFAULT_SPOOL_POLICY as b, DESTINATION_NAME_PATTERN as c, type DestinationDescription as d, type ExportDestinationConfig as e, type ExportSignal as f, type HeaderValueReference as g, MAX_EXPORT_DESTINATIONS as h, describeExportDestinations as i, effectiveSpoolPolicy as j, endpointOrigin as k, exportDestinationSchema as l, exportDestinationsSchema as m, exportSignalSchema as n, hasConfiguredDestinations as o, parseHeaderValueReference as p, resolveExportDestinations as q, resolveDestinationHeaders as r, spoolPolicySchema as s };
269
+ export { ALL_REPOSITORIES as A, resolveExportDestinations as B, spoolPolicySchema as C, DEFAULT_DESTINATION_NAME as D, type ExportDestination as E, HEADER_ENV_REFERENCE_PREFIX as H, MAX_DESTINATION_HEADERS as M, type ResolvedDestinationHeaders as R, type SignalFlags as S, DEFAULT_DESTINATION_SIGNALS as a, DEFAULT_SPOOL_POLICY as b, DESTINATION_NAME_PATTERN as c, type DestinationDescription as d, type DestinationScope as e, type DestinationScopeConfig as f, type DestinationScopeDescription as g, type ExportDestinationConfig as h, type ExportSignal as i, type HeaderValueReference as j, MAX_DESTINATION_SCOPES as k, MAX_EXPORT_DESTINATIONS as l, MAX_SCOPE_REPOSITORIES as m, type SpoolPolicy as n, describeExportDestinations as o, destinationScopeSchema as p, effectiveSpoolPolicy as q, endpointOrigin as r, exportDestinationSchema as s, exportDestinationsSchema as t, exportSignalSchema as u, hasConfiguredDestinations as v, matchDestinationScope as w, parseHeaderValueReference as x, resolveDestinationHeaders as y, resolveDestinationScopes as z };
@@ -1,6 +1,7 @@
1
- import { E as ExportDestination } from './destinations-C4sSKjDO.js';
2
- import { E as ExporterPolicy } from './schema-CD61uW99.js';
3
- import { C as Clock, d as Logger, l as TelemetrySink } from './ports-DhpSDIkp.js';
1
+ import { e as DestinationScope, E as ExportDestination } from './destinations-2KrcRslo.js';
2
+ import { E as ExporterPolicy } from './schema-oRsbo7WO.js';
3
+ import { b as CanonicalEvent, e as CanonicalEventType } from './events-fcomX6d5.js';
4
+ import { C as Clock, d as Logger, m as TelemetrySink } from './ports-qZTwK-z2.js';
4
5
  import { Attributes } from '@opentelemetry/api';
5
6
  import { S as StoreNamespace } from './keys-Dej5bN3L.js';
6
7
  import { n as SpanCorrelationResolver, m as SpanCorrelation, k as MetricPoint } from './metric-model-B4lIuk6i.js';
@@ -8,9 +9,9 @@ import { ExportResult, InstrumentationScope } from '@opentelemetry/core';
8
9
  import { Resource } from '@opentelemetry/resources';
9
10
  import { ReadableLogRecord } from '@opentelemetry/sdk-logs';
10
11
  import { b as ContentFact } from './content-M9xIKG7h.js';
11
- import { b as CanonicalEvent, e as CanonicalEventType } from './events-fcomX6d5.js';
12
12
  import { DeliveryHealthSnapshot } from './diagnostics.js';
13
13
  import { OtelHookErrorInfo } from './errors.js';
14
+ import { a as ContentMode } from './policy-CimmCfRp.js';
14
15
 
15
16
  type SpoolEnqueueResult = {
16
17
  readonly spooled: true;
@@ -628,15 +629,26 @@ declare const createSignalFanout: (options: SignalFanoutOptions) => SignalFanout
628
629
  *
629
630
  * Memoized on the identity of the `events` array, which is what makes it correct
630
631
  * without a reset: every batch is a distinct array, so a new batch cannot be served
631
- * a previous one's answer, and a retry of the *same* array deliberately is. The
632
- * promise is cached rather than its value, so two callers arriving before the first
632
+ * a previous one's answer, and a retry of the *same* array deliberately is. A
633
+ * scoped destination's share of the batch is served the batch's answer once it
634
+ * is registered with `alias`. The promise is cached rather than its value, so two callers arriving before the first
633
635
  * resolution completes still share it.
634
636
  *
635
637
  * Exported because the one-call-per-batch property is a requirement of the
636
638
  * correlator, not a convenience of the fanout: a host wiring its own pair of sinks
637
639
  * needs to be able to express it too.
638
640
  */
639
- declare const shareCorrelationPerBatch: (correlate: SpanCorrelationResolver) => SpanCorrelationResolver;
641
+ type SharedCorrelationResolver = SpanCorrelationResolver & {
642
+ /**
643
+ * Serve `subset` — a scoped destination's share of `batch`, possibly with
644
+ * content-lowered copies of its events — the answer resolved for `batch`.
645
+ * Correlations are looked up by scope, so the entries for events outside the
646
+ * subset are inert; resolving the subset on its own would record its start
647
+ * edges a second time. A no-op unless `batch` is the batch last resolved.
648
+ */
649
+ alias(subset: readonly CanonicalEvent[], batch: readonly CanonicalEvent[]): void;
650
+ };
651
+ declare const shareCorrelationPerBatch: (correlate: SpanCorrelationResolver) => SharedCorrelationResolver;
640
652
 
641
653
  /**
642
654
  * A batch of metric points a destination could not take, kept for the next
@@ -761,6 +773,67 @@ type OtlpMetricSinkOptions = {
761
773
  };
762
774
  declare const createOtlpMetricSink: (options: OtlpMetricSinkOptions) => OtlpMetricTelemetrySink;
763
775
 
776
+ /** Lowers a content fact's disclosure; the privacy service's `restrictContent`. */
777
+ type ContentRestrictor = (fact: ContentFact, mode: ContentMode) => ContentFact;
778
+ /**
779
+ * Fallback when no privacy service is supplied: anything above `omit` that
780
+ * must be lowered is omitted outright, which is never more than was asked for.
781
+ */
782
+ declare const omitRestrictedContent: ContentRestrictor;
783
+ /**
784
+ * The repository key of the Resource every record of this process is exported
785
+ * under, or `undefined` when it names none.
786
+ */
787
+ declare const resourceRepositoryKey: (attributes: Readonly<Record<string, unknown>>) => string | undefined;
788
+ /** The repository key one event's records carry. */
789
+ declare const eventRepositoryKey: (event: CanonicalEvent, fallbackKey: string | undefined) => string | undefined;
790
+ /** The repository key one metric point carries. */
791
+ declare const pointRepositoryKey: (point: MetricPoint, fallbackKey: string | undefined) => string | undefined;
792
+ /** The event with every content fact it carries disclosed at most at `mode`. */
793
+ declare const restrictEventContent: (event: CanonicalEvent, mode: ContentMode, restrict: ContentRestrictor) => CanonicalEvent;
794
+ /** What one scoped destination is given of a batch, per signal. */
795
+ type ScopedBatch = {
796
+ readonly traces: readonly CanonicalEvent[];
797
+ readonly logs: readonly CanonicalEvent[];
798
+ };
799
+ type RouteEventsOptions = {
800
+ /** Repository key of the exporter Resource, for events with no stamp of their own. */
801
+ readonly resourceRepositoryKey?: string;
802
+ /**
803
+ * Repository key of the session directory's `origin` remote; for events with no
804
+ * stamp of their own, ahead of {@link resourceRepositoryKey}. Never exported.
805
+ */
806
+ readonly workspaceRepositoryKey?: string;
807
+ readonly restrict: ContentRestrictor;
808
+ };
809
+ /**
810
+ * Split a batch for one scoped destination.
811
+ *
812
+ * Each event is judged by its span's end edge when that end is in the same
813
+ * batch (a span belongs to what was in force when it ended), otherwise by its
814
+ * own stamp. When every event passes for both signals unchanged, the batch is
815
+ * returned as the same array for both, so the sinks see one batch.
816
+ */
817
+ declare const routeEventsToScopes: (events: readonly CanonicalEvent[], scopes: readonly DestinationScope[], options: RouteEventsOptions) => ScopedBatch;
818
+ /**
819
+ * Metric points for one scoped destination.
820
+ *
821
+ * `pointsFor(includeSessionId)` yields the callback's points computed with or
822
+ * without `session.id`; each point is taken from the variant its scope asks
823
+ * for, so a scope that drops the session id never receives a per-session
824
+ * series. Points whose repository no scope takes, or whose scope does not take
825
+ * metrics, are dropped — one callback's points can therefore split across
826
+ * destinations.
827
+ */
828
+ declare const routePointsToScopes: (scopes: readonly DestinationScope[], pointsFor: (includeSessionId: boolean) => readonly MetricPoint[] | undefined, options: {
829
+ /** Repository key for points with no stamp of their own (workspace remote, then Resource). */
830
+ readonly fallbackKey: string | undefined;
831
+ /** The installation's `exporter.metrics.includeSessionId`; a scope can only turn it off. */
832
+ readonly includeSessionId: boolean;
833
+ }) => readonly MetricPoint[];
834
+ /** Which `session.id` variants of the metric points a set of scopes needs. */
835
+ declare const sessionIdVariantsFor: (scopes: readonly DestinationScope[], includeSessionId: boolean) => ReadonlySet<boolean>;
836
+
764
837
  /**
765
838
  * Spool queue directories for one destination, below the identity namespace.
766
839
  *
@@ -792,6 +865,16 @@ type ExportDestinationSinks = {
792
865
  /** Hook-derived metrics; a disabled sink unless this destination takes `metrics`. */
793
866
  readonly metrics: OtlpMetricTelemetrySink;
794
867
  readonly metricSpool?: DurableMetricSpool;
868
+ /**
869
+ * Per-repository filter (`exporter.destinations[].scopes`). Absent: this
870
+ * destination is sent every record, exactly as before scopes existed.
871
+ */
872
+ readonly scopes?: readonly DestinationScope[];
873
+ /**
874
+ * Splits a batch by {@link scopes}; present exactly when they are. The workspace
875
+ * key is the batch's `TelemetryEmitOptions.workspaceRepositoryKey`.
876
+ */
877
+ readonly route?: (events: readonly CanonicalEvent[], workspaceRepositoryKey?: string) => ScopedBatch;
795
878
  };
796
879
  /** A destination left out of this invocation, and why — by name only. */
797
880
  type SkippedExportDestination = {
@@ -834,6 +917,12 @@ type ExportDestinationsOptions = {
834
917
  * signal of this call.
835
918
  */
836
919
  readonly endpointHealth?: EndpointHealth;
920
+ /**
921
+ * Lowers content disclosure for a scope's `contentMode` — the privacy
922
+ * service's `restrictContent`. Default: content above the scope's mode is
923
+ * omitted outright.
924
+ */
925
+ readonly restrictContent?: ContentRestrictor;
837
926
  };
838
927
  /**
839
928
  * Build one sink pair per enabled destination.
@@ -846,6 +935,15 @@ declare const createExportDestinationSinks: (options: ExportDestinationsOptions)
846
935
  readonly destinations: readonly ExportDestinationSinks[];
847
936
  readonly skipped: readonly SkippedExportDestination[];
848
937
  };
938
+ type DestinationFanoutOptions = {
939
+ /**
940
+ * The batch's shared correlation resolver (`shareCorrelationPerBatch`), the
941
+ * same one every sink was built with. A scoped destination resolves it over the
942
+ * *whole* batch and aliases its subsets to that answer, so every destination is
943
+ * served one resolution and no destination's filter changes another's span ids.
944
+ */
945
+ readonly correlate?: SharedCorrelationResolver;
946
+ };
849
947
  /**
850
948
  * One canonical batch, every destination, in parallel.
851
949
  *
@@ -860,8 +958,10 @@ declare const createExportDestinationSinks: (options: ExportDestinationsOptions)
860
958
  * and safe to retry; some → `partial`, terminal, because retrying would re-export
861
959
  * to the destinations that already accepted.
862
960
  *
863
- * With one destination this returns that destination's fanout unchanged.
961
+ * With one unscoped destination this returns that destination's fanout unchanged.
962
+ * A scoped destination (`scopes`) is sent only its own subset of each batch,
963
+ * per signal; see `destination-scope.ts`.
864
964
  */
865
- declare const createDestinationFanout: (destinations: readonly ExportDestinationSinks[]) => SignalFanoutSink;
965
+ declare const createDestinationFanout: (destinations: readonly ExportDestinationSinks[], options?: DestinationFanoutOptions) => SignalFanoutSink;
866
966
 
867
- export { createSignalFanout as $, type SignalFanoutSink as A, type SkippedExportDestination as B, type ContentWithholdingReason as C, type DurableLogSpool as D, type ExportDestinationSinks as E, type SpoolBatch as F, type SpoolDrainResult as G, type SpoolDropCounts as H, type SpoolDropReason as I, type SpoolEnqueueResult as J, type SpoolOverflowPolicy as K, LOG_MAPPING_VERSION as L, MAX_LOG_BODY_CHARACTERS as M, NO_LOG_CONTENT as N, type OtlpLogSinkOptions as O, type SpoolSendOutcome as P, type SpoolStats as Q, canonicalEventsToLogRecords as R, type SerializedLogRecord as S, createDestinationFanout as T, createExportDestinationSinks as U, createFileDurableLogSpool as V, createFileDurableMetricSpool as W, createFileDurableSpool as X, createOtlpLogSink as Y, createOtlpMetricSink as Z, createOtlpTraceSink as _, type DurableLogSpoolOptions as a, describeLogsDeliverability as a0, describeMetricsDeliverability as a1, exporterPolicyForDestination as a2, logSignalOf as a3, logSignalsForLifecycleEvents as a4, resolveLogsEndpoint as a5, resolveMetricsEndpoint as a6, shareCorrelationPerBatch as a7, spoolQueueNamesFor as a8, validateMetricSpoolBatch as a9, type DurableMetricSpool as b, type DurableMetricSpoolOptions as c, type DurableSpool as d, type DurableSpoolOptions as e, type ExportDestinationsOptions as f, LOG_SIGNALS as g, type LogContentPolicy as h, type LogMappingOptions as i, type LogMappingResult as j, type LogSignal as k, type LogSpoolBatch as l, type LogsDeliverability as m, MAX_LOG_RECORDS_PER_BATCH as n, MAX_LOG_RECORDS_PER_EVENT as o, MCP_TOOL_NAME_PATTERN as p, type MetricExportResult as q, type MetricSpoolBatch as r, type MetricsDeliverability as s, type OtlpLogTelemetrySink as t, type OtlpMetricSinkOptions as u, type OtlpMetricTelemetrySink as v, type OtlpTelemetrySink as w, type OtlpTraceSinkOptions as x, type SerializedSpan as y, type SignalFanoutOptions as z };
967
+ export { createFileDurableMetricSpool as $, type SerializedLogRecord as A, type SerializedSpan as B, type ContentRestrictor as C, type DestinationFanoutOptions as D, type ExportDestinationSinks as E, type SharedCorrelationResolver as F, type SignalFanoutOptions as G, type SignalFanoutSink as H, type SkippedExportDestination as I, type SpoolBatch as J, type SpoolDrainResult as K, LOG_MAPPING_VERSION as L, MAX_LOG_BODY_CHARACTERS as M, NO_LOG_CONTENT as N, type OtlpLogSinkOptions as O, type SpoolDropCounts as P, type SpoolDropReason as Q, type RouteEventsOptions as R, type ScopedBatch as S, type SpoolEnqueueResult as T, type SpoolOverflowPolicy as U, type SpoolSendOutcome as V, type SpoolStats as W, canonicalEventsToLogRecords as X, createDestinationFanout as Y, createExportDestinationSinks as Z, createFileDurableLogSpool as _, type ContentWithholdingReason as a, createFileDurableSpool as a0, createOtlpLogSink as a1, createOtlpMetricSink as a2, createOtlpTraceSink as a3, createSignalFanout as a4, describeLogsDeliverability as a5, describeMetricsDeliverability as a6, eventRepositoryKey as a7, exporterPolicyForDestination as a8, logSignalOf as a9, logSignalsForLifecycleEvents as aa, omitRestrictedContent as ab, pointRepositoryKey as ac, resolveLogsEndpoint as ad, resolveMetricsEndpoint as ae, resourceRepositoryKey as af, restrictEventContent as ag, routeEventsToScopes as ah, routePointsToScopes as ai, sessionIdVariantsFor as aj, shareCorrelationPerBatch as ak, spoolQueueNamesFor as al, validateMetricSpoolBatch as am, type DurableLogSpool as b, type DurableLogSpoolOptions as c, type DurableMetricSpool as d, type DurableMetricSpoolOptions as e, type DurableSpool as f, type DurableSpoolOptions as g, type ExportDestinationsOptions as h, LOG_SIGNALS as i, type LogContentPolicy as j, type LogMappingOptions as k, type LogMappingResult as l, type LogSignal as m, type LogSpoolBatch as n, type LogsDeliverability as o, MAX_LOG_RECORDS_PER_BATCH as p, MAX_LOG_RECORDS_PER_EVENT as q, MCP_TOOL_NAME_PATTERN as r, type MetricExportResult as s, type MetricSpoolBatch as t, type MetricsDeliverability as u, type OtlpLogTelemetrySink as v, type OtlpMetricSinkOptions as w, type OtlpMetricTelemetrySink as x, type OtlpTelemetrySink as y, type OtlpTraceSinkOptions as z };
@@ -1,4 +1,4 @@
1
- import { j as StateStore, C as Clock, d as Logger } from './ports-DhpSDIkp.js';
1
+ import { j as StateStore, C as Clock, d as Logger } from './ports-qZTwK-z2.js';
2
2
  import { S as StoreNamespace } from './keys-Dej5bN3L.js';
3
3
 
4
4
  /**
@@ -1,13 +1,13 @@
1
1
  import { z } from 'zod';
2
- import { O as OtelHookConfig } from './schema-CD61uW99.js';
2
+ import { O as OtelHookConfig } from './schema-oRsbo7WO.js';
3
3
  import { OtelHookErrorInfo } from './errors.js';
4
4
  import { b as CanonicalEvent, I as UsageTemporality, f as CanonicalUsage } from './events-fcomX6d5.js';
5
5
  import { I as IdentityClaim, W as WorkspaceIdentity, d as InvocationIdentity } from './identity-BrVBs901.js';
6
6
  import { h as SourceTransport, R as ResolvedProviderId, c as DetectionConfidence, d as EventId } from './primitives-CJ8-rn-f.js';
7
- import { P as PrivacyService } from './service-CbI9CObT.js';
8
- import { b as DeliveryIdentifierSupport, f as ProviderDeliveryClaim, j as ProviderHookResponse } from './adapter-DyCb7y1N.js';
9
- import { P as ProviderRegistry } from './registry-DM-4YvIA.js';
10
- import { I as IdGenerator, l as TelemetrySink, j as StateStore, C as Clock, d as Logger, W as WorktreeLocator, P as PayloadEnricher, S as SessionContextReader } from './ports-DhpSDIkp.js';
7
+ import { P as PrivacyService } from './service-DySC7KQM.js';
8
+ import { b as DeliveryIdentifierSupport, f as ProviderDeliveryClaim, j as ProviderHookResponse } from './adapter-But5fFCk.js';
9
+ import { P as ProviderRegistry } from './registry-D9rmMYxw.js';
10
+ import { I as IdGenerator, m as TelemetrySink, j as StateStore, C as Clock, d as Logger, W as WorktreeLocator, P as PayloadEnricher, S as SessionContextReader } from './ports-qZTwK-z2.js';
11
11
  import { A as AttributionOutcome, a as AttributionReason } from './taxonomy-DwhTtuWd.js';
12
12
 
13
13
  /**
@@ -224,6 +224,13 @@ type HookIngestOutcome = {
224
224
  readonly dropped: number;
225
225
  readonly hookResponse: ProviderHookResponse;
226
226
  readonly diagnostics: readonly OtelHookErrorInfo[];
227
+ /**
228
+ * Repository key of the session workspace's `origin` remote, when
229
+ * `routeByWorkspaceRepository` asked for it and one was found. Routing only —
230
+ * what the batch's records were routed by when no context stamp named a
231
+ * repository; never exported. The metrics of this callback route by it too.
232
+ */
233
+ readonly workspaceRepositoryKey?: string;
227
234
  };
228
235
  type HookIngestOptions = {
229
236
  /**
@@ -298,6 +305,13 @@ type OtelHookDependencies = {
298
305
  * implementation is `createDirectorySessionContextReader`.
299
306
  */
300
307
  readonly sessionContext?: SessionContextReader;
308
+ /**
309
+ * Read the `origin` remote of the session directory's repository through the
310
+ * {@link worktreeLocator}, and hand its key to the sink as
311
+ * `TelemetryEmitOptions.workspaceRepositoryKey`. Set when a destination has
312
+ * scopes; off, nothing extra is read.
313
+ */
314
+ readonly routeByWorkspaceRepository?: boolean;
301
315
  };
302
316
  /**
303
317
  * Minimal orchestrator wiring detection, identity, parsing, privacy checks,
package/dist/index.d.ts CHANGED
@@ -5,25 +5,25 @@ export { C as CANONICAL_EVENT_TYPES, a as CacheCreationAccounting, b as Canonica
5
5
  export { C as ConsumerAttributes, I as IdentityClaim, a as IdentityClaimFields, b as IdentityConflict, c as IdentityResolution, d as InvocationIdentity, R as ResolveIdentityInput, S as SourceProvenance, U as UNKNOWN_WORKSPACE_ID, W as WorkspaceIdentity, e as WorkspaceKeySource, f as consumerAttributesSchema, i as identityClaimFieldsSchema, g as identityClaimSchema, h as invocationIdentitySchema, r as resolveInvocationIdentity, s as sourceProvenanceSchema, u as unknownWorkspaceIdentity, w as workspaceIdentitySchema, j as workspaceKeySourceSchema } from './identity-BrVBs901.js';
6
6
  export { CreateErrorInfoInput, OtelHookError, OtelHookErrorInfo, createErrorInfo, describeThrown, errorInfoFromThrown, isOtelHookError, otelHookErrorInfoSchema } from './errors.js';
7
7
  export { C as CONTENT_MODE_DISCLOSURE, a as ContentMode, D as DEFAULT_PRIVACY_LIMITS, b as DEFAULT_PRIVACY_POLICY, c as DEFAULT_SECRET_KEY_PATTERNS, d as DEFAULT_SECRET_VALUE_PATTERNS, P as PolicyResolution, e as PrivacyLimits, f as PrivacyPolicy, g as contentModeSchema, p as privacyLimitsSchema, h as privacyPolicySchema, r as resolvePrivacyPolicy } from './policy-CimmCfRp.js';
8
- export { D as DescribeContentInput, a as DescribeStructuredInput, P as PrivacyService, S as SanitizeExtensionsResult, b as SanitizeResult, c as SanitizeStats, d as SanitizedValue, e as createPrivacyService } from './service-CbI9CObT.js';
8
+ export { D as DescribeContentInput, a as DescribeStructuredInput, P as PrivacyService, S as SanitizeExtensionsResult, b as SanitizeResult, c as SanitizeStats, d as SanitizedValue, e as createPrivacyService } from './service-DySC7KQM.js';
9
9
  export { WorkspaceKeyInput, WorkspaceLabels, canonicalizeGitRemote, deriveWorkspaceIdentity } from './privacy.js';
10
- export { CONFIG_SOURCE_PRECEDENCE, ConfigLayer, ConfigProvenance, ConfigResolution, ConfigSource, EMPTY_RESOURCE_ATTRIBUTES, ENVIRONMENT_VARIABLES, EnvironmentConfigResult, EnvironmentRecord, MAX_OTLP_HEADERS, MAX_RESOURCE_ATTRIBUTES, MAX_RESOURCE_ATTRIBUTE_KEY_LENGTH, MAX_RESOURCE_ATTRIBUTE_VALUE_LENGTH, OTLP_ENDPOINT_VARIABLES, OTLP_HEADER_VARIABLES, OtlpSignal, ParsedOtlpHeaders, ParsedResourceAttributes, RESERVED_RESOURCE_ATTRIBUTE_KEYS, RESOURCE_ATTRIBUTE_KEY_PATTERN, RESOURCE_ATTRIBUTE_KEY_REJECTION_DETAIL, ResolvedOtlpHeaders, ResourceAttributeKeyRejection, ResourceAttributeValue, ResourceAttributes, checkResourceAttributeKey, configSourceSchema, describeOtlpHeaderNames, describeResolvedConfig, describeResourceAttributeNames, isReservedResourceAttributeKey, isSecretResourceAttributeKey, mergeOtlpHeaders, otlpSignalEndpointFromBase, parseEnvironmentConfig, parseOtlpHeadersValue, parseResourceAttributesValue, resolveConfig, resolveOtlpHeaders, resourceAttributeValueSchema, resourceAttributesSchema, sanitizeResourceAttributes, unionOtlpHeaderNames } from './config.js';
11
- export { D as DEFAULT_CONFIG, a as DEFAULT_DETECTION_POLICY, b as DEFAULT_DIAGNOSTICS_POLICY, c as DEFAULT_ENDPOINT_DOWN_MILLIS, d as DEFAULT_EXPORTER_POLICY, e as DEFAULT_EXPORT_BUDGET_MILLIS, f as DEFAULT_LOGS_POLICY, g as DEFAULT_METRICS_POLICY, h as DEFAULT_PROVIDERS_POLICY, i as DetectionPolicy, j as DiagnosticsPolicy, E as ExporterPolicy, L as LogsPolicy, M as MetricsPolicy, O as OtelHookConfig, k as OtelHookConfigPatch, P as ProvidersPolicy, S as SessionContextPolicy, l as detectionPolicySchema, m as diagnosticsPolicySchema, n as effectiveExportTimeoutMillis, o as effectiveMetricsPolicy, p as exporterPolicySchema, q as logsPolicySchema, r as metricsPolicySchema, s as otelHookConfigPatchSchema, t as otelHookConfigSchema, u as providersPolicySchema, v as readsClaudeTranscriptUsage, w as readsCodexRolloutUsage, x as sessionContextDir, y as sessionContextPolicySchema } from './schema-CD61uW99.js';
12
- export { D as DEFAULT_DESTINATION_NAME, a as DEFAULT_DESTINATION_SIGNALS, b as DEFAULT_SPOOL_POLICY, c as DESTINATION_NAME_PATTERN, d as DestinationDescription, E as ExportDestination, e as ExportDestinationConfig, f as ExportSignal, H as HEADER_ENV_REFERENCE_PREFIX, g as HeaderValueReference, M as MAX_DESTINATION_HEADERS, h as MAX_EXPORT_DESTINATIONS, R as ResolvedDestinationHeaders, S as SpoolPolicy, i as describeExportDestinations, j as effectiveSpoolPolicy, k as endpointOrigin, l as exportDestinationSchema, m as exportDestinationsSchema, n as exportSignalSchema, o as hasConfiguredDestinations, p as parseHeaderValueReference, r as resolveDestinationHeaders, q as resolveExportDestinations, s as spoolPolicySchema } from './destinations-C4sSKjDO.js';
13
- export { A as AdapterDescription, D as DELIVERY_COMPONENT_PATTERN, a as DELIVERY_GAP_REASON_PATTERN, b as DeliveryIdentifierSupport, M as MAX_DELIVERY_COMPONENTS, c as MAX_DELIVERY_GAPS, P as ProviderAdapter, d as ProviderCapabilities, e as ProviderContext, f as ProviderDeliveryClaim, g as ProviderDeliveryGaps, h as ProviderDetection, i as ProviderDetectionInput, j as ProviderHookResponse, k as ProviderHookResponseInput, l as ProviderIdentityInput, m as ProviderParseInput, n as ProviderParseResult, S as SILENT_HOOK_RESPONSE, o as adapterSupports, p as asProviderId, q as deliveryComponentSchema, r as deliveryGapReasonSchema, s as deliveryIdentifierSupportSchema, t as describeAdapter, u as providerCapabilitiesSchema, v as providerDeliveryClaimSchema, w as providerDeliveryGapsSchema, x as providerDetectionSchema, y as providerHookResponseSchema, z as readDeliveryClaim, B as readDeliveryGap, C as unknownDetection } from './adapter-DyCb7y1N.js';
10
+ export { ATTR_VCS_REPOSITORY_URL_FULL, CONFIG_SOURCE_PRECEDENCE, ConfigLayer, ConfigProvenance, ConfigResolution, ConfigSource, EMPTY_RESOURCE_ATTRIBUTES, ENVIRONMENT_VARIABLES, EnvironmentConfigResult, EnvironmentRecord, MAX_OTLP_HEADERS, MAX_REPOSITORY_REFERENCE_LENGTH, MAX_RESOURCE_ATTRIBUTES, MAX_RESOURCE_ATTRIBUTE_KEY_LENGTH, MAX_RESOURCE_ATTRIBUTE_VALUE_LENGTH, OTLP_ENDPOINT_VARIABLES, OTLP_HEADER_VARIABLES, OtlpSignal, ParsedOtlpHeaders, ParsedResourceAttributes, RESERVED_RESOURCE_ATTRIBUTE_KEYS, RESOURCE_ATTRIBUTE_KEY_PATTERN, RESOURCE_ATTRIBUTE_KEY_REJECTION_DETAIL, ResolvedOtlpHeaders, ResourceAttributeKeyRejection, ResourceAttributeValue, ResourceAttributes, checkResourceAttributeKey, configSourceSchema, describeOtlpHeaderNames, describeResolvedConfig, describeResourceAttributeNames, isReservedResourceAttributeKey, isSecretResourceAttributeKey, mergeOtlpHeaders, normalizeRepositoryKey, otlpSignalEndpointFromBase, parseEnvironmentConfig, parseOtlpHeadersValue, parseResourceAttributesValue, resolveConfig, resolveOtlpHeaders, resourceAttributeValueSchema, resourceAttributesSchema, sanitizeResourceAttributes, unionOtlpHeaderNames } from './config.js';
11
+ export { D as DEFAULT_CONFIG, a as DEFAULT_DETECTION_POLICY, b as DEFAULT_DIAGNOSTICS_POLICY, c as DEFAULT_ENDPOINT_DOWN_MILLIS, d as DEFAULT_EXPORTER_POLICY, e as DEFAULT_EXPORT_BUDGET_MILLIS, f as DEFAULT_LOGS_POLICY, g as DEFAULT_METRICS_POLICY, h as DEFAULT_PROVIDERS_POLICY, i as DetectionPolicy, j as DiagnosticsPolicy, E as ExporterPolicy, L as LogsPolicy, M as MetricsPolicy, O as OtelHookConfig, k as OtelHookConfigPatch, P as ProvidersPolicy, S as SessionContextPolicy, l as detectionPolicySchema, m as diagnosticsPolicySchema, n as effectiveExportTimeoutMillis, o as effectiveMetricsPolicy, p as exporterPolicySchema, q as logsPolicySchema, r as metricsPolicySchema, s as otelHookConfigPatchSchema, t as otelHookConfigSchema, u as providersPolicySchema, v as readsClaudeTranscriptUsage, w as readsCodexRolloutUsage, x as sessionContextDir, y as sessionContextPolicySchema } from './schema-oRsbo7WO.js';
12
+ export { A as ALL_REPOSITORIES, D as DEFAULT_DESTINATION_NAME, a as DEFAULT_DESTINATION_SIGNALS, b as DEFAULT_SPOOL_POLICY, c as DESTINATION_NAME_PATTERN, d as DestinationDescription, e as DestinationScope, f as DestinationScopeConfig, g as DestinationScopeDescription, E as ExportDestination, h as ExportDestinationConfig, i as ExportSignal, H as HEADER_ENV_REFERENCE_PREFIX, j as HeaderValueReference, M as MAX_DESTINATION_HEADERS, k as MAX_DESTINATION_SCOPES, l as MAX_EXPORT_DESTINATIONS, m as MAX_SCOPE_REPOSITORIES, R as ResolvedDestinationHeaders, S as SignalFlags, n as SpoolPolicy, o as describeExportDestinations, p as destinationScopeSchema, q as effectiveSpoolPolicy, r as endpointOrigin, s as exportDestinationSchema, t as exportDestinationsSchema, u as exportSignalSchema, v as hasConfiguredDestinations, w as matchDestinationScope, x as parseHeaderValueReference, y as resolveDestinationHeaders, z as resolveDestinationScopes, B as resolveExportDestinations, C as spoolPolicySchema } from './destinations-2KrcRslo.js';
13
+ export { A as AdapterDescription, D as DELIVERY_COMPONENT_PATTERN, a as DELIVERY_GAP_REASON_PATTERN, b as DeliveryIdentifierSupport, M as MAX_DELIVERY_COMPONENTS, c as MAX_DELIVERY_GAPS, P as ProviderAdapter, d as ProviderCapabilities, e as ProviderContext, f as ProviderDeliveryClaim, g as ProviderDeliveryGaps, h as ProviderDetection, i as ProviderDetectionInput, j as ProviderHookResponse, k as ProviderHookResponseInput, l as ProviderIdentityInput, m as ProviderParseInput, n as ProviderParseResult, S as SILENT_HOOK_RESPONSE, o as adapterSupports, p as asProviderId, q as deliveryComponentSchema, r as deliveryGapReasonSchema, s as deliveryIdentifierSupportSchema, t as describeAdapter, u as providerCapabilitiesSchema, v as providerDeliveryClaimSchema, w as providerDeliveryGapsSchema, x as providerDetectionSchema, y as providerHookResponseSchema, z as readDeliveryClaim, B as readDeliveryGap, C as unknownDetection } from './adapter-But5fFCk.js';
14
14
  export { ANTIGRAVITY_PROMOTION_GATES, ANTIGRAVITY_PROVIDER_MATURITY, AntigravityProviderMaturity, CLAUDE_CODE_CAPABILITIES, CLAUDE_TRANSCRIPT_USAGE_ENRICHER_ID, CODEX_CAPABILITIES, CODEX_ROLLOUT_USAGE_ENRICHER_ID, CURSOR_ADAPTER_VERSION, CURSOR_CAPABILITIES, CanonicalEventDraft, ClaudeCodeAdapterOptions, ClaudeTranscriptRange, ClaudeTranscriptTurn, ClaudeTranscriptUsageEnricherOptions, CodexRolloutSnapshot, CodexRolloutUsageEnricherOptions, CursorAdapterOptions, DEFAULT_CLAUDE_TRANSCRIPT_RANGE_BYTES, DEFAULT_CLAUDE_TRANSCRIPT_RANGE_TIMEOUT_MILLIS, DEFAULT_CLAUDE_TRANSCRIPT_TAIL_BYTES, DEFAULT_CLAUDE_TRANSCRIPT_TIMEOUT_MILLIS, DEFAULT_CODEX_ROLLOUT_RANGE_BYTES, DEFAULT_CODEX_ROLLOUT_SETTLE_MILLIS, DEFAULT_CODEX_ROLLOUT_TAIL_BYTES, DEFAULT_CODEX_ROLLOUT_TIMEOUT_MILLIS, DELIVERY_IDENTIFIER_SUMMARY, DefaultRegistryOptions, EXPERIMENTAL_PROVIDER_IDS, EventFactory, EventFactoryInput, PROVIDER_DESCRIPTORS, ProviderCatalogEntry, ProviderDescriptor, ProviderMaturity, ReadClaudeTranscriptRangeOptions, ReadClaudeTranscriptTurnOptions, attachClaudeTranscriptTurn, createClaudeCodeAdapter, createClaudeTranscriptUsageEnricher, createCodexAdapter, createCodexRolloutUsageEnricher, createCursorAdapter, createDefaultProviderRegistry, createEventFactory, describeProviderCatalog, findProviderDescriptor, isExperimentalProvider, readClaudeTranscriptRange, readClaudeTranscriptTurn, readCodexRolloutUsage } from './providers.js';
15
- export { B as BUILT_IN_PROVIDERS, D as DetectionCandidate, P as ProviderRegistry, R as RegistryDetectionResult, c as createProviderRegistry } from './registry-DM-4YvIA.js';
16
- export { A as ANTIGRAVITY_CAPABILITIES, a as ANTIGRAVITY_HOOK_EVENT_NAMES, b as ANTIGRAVITY_PROVIDER_ID, c as AntigravityAdapterOptions, d as AntigravityHookEventName, C as CLAUDE_CODE_PROVIDER_ID, e as CLAUDE_HOOK_EVENT_NAMES, f as CODEX_ADAPTER_VERSION, g as CODEX_HOOK_EVENT_NAMES, h as CODEX_PROVIDER_ID, i as CURSOR_DECISION_EVENTS, j as CURSOR_HOOK_EVENT_NAMES, k as CURSOR_PROVIDER_ID, l as CURSOR_UNMODELLED_HOOK_EVENT_NAMES, m as ClaudeHookEventName, n as CodexHookEventName, o as CursorHookEventName, D as DEFAULT_GEMINI_CAPABILITIES, G as GEMINI_ADAPTER_VERSION, p as GEMINI_HOOK_EVENT_NAMES, q as GEMINI_PROVIDER_ID, r as GeminiAdapterOptions, s as GeminiHookEventName, t as createAntigravityAdapter, u as createGeminiCliAdapter } from './payload-DLK7QaBB.js';
17
- export { A as AppliedDelivery, C as Clock, E as EventIdSeed, I as IdGenerator, a as InvocationIdSeed, L as LOG_LEVEL_RANK, b as LocatedWorktree, c as LogLevel, d as Logger, P as PayloadEnricher, e as PayloadEnrichment, f as PayloadEnrichmentInput, R as ReadCursor, S as SessionContextReader, g as SessionContextRequest, h as SessionContextSegment, i as StateRecord, j as StateStore, k as StateValue, T as TelemetryEmitResult, l as TelemetrySink, W as WorktreeLocator, m as appliedDeliverySchema, n as logLevelSchema, s as stateRecordSchema, o as stateValueSchema } from './ports-DhpSDIkp.js';
18
- export { D as DeterministicIdOptions, F as FixedClock, a as FixedClockOptions, I as InMemoryStateStore, b as InMemoryStateStoreOptions, L as LogRecord, R as RecordingLogger, c as RecordingTelemetrySink, d as RecordingTelemetrySinkOptions, e as createDeterministicIdGenerator, f as createFixedClock, g as createInMemoryStateStore, h as createNullTelemetrySink, i as createRandomIdGenerator, j as createRecordingLogger, k as createRecordingTelemetrySink, l as createSystemClock } from './memory-B3r6sZtC.js';
19
- export { DEFAULT_SESSION_CONTEXT_BUDGET_MILLIS, DEFAULT_SESSION_CONTEXT_MAX_BYTES, DEFAULT_TARGET_RESOLUTION_BUDGET_MILLIS, DEFAULT_WORKTREE_CACHE_TTL_MILLIS, DirectorySessionContextReaderOptions, FilesystemWorktreeLocatorOptions, MAX_SESSION_CONTEXT_SEGMENTS, MAX_WORKTREE_WALK_DEPTH, ResolveEventTargetsInput, ResolveEventTargetsResult, SESSION_CONTEXT_AGENT_TOOLS, SESSION_CONTEXT_FILE_VERSION, StderrLoggerOptions, createDirectorySessionContextReader, createFilesystemWorktreeLocator, createNullLogger, createStderrLogger, isReservedSessionContextKey, isSessionContextFileName, parseCommonDirFile, parseGitDirFile, parseHeadBranch, parseSessionContextFile, resolveEventTargets, sanitizeSessionContextAttributes, segmentInForce, sessionContextAgentTool, sessionContextFilePath, stampSessionContext } from './runtime.js';
20
- export { C as CumulativeUsageSeries, D as DeliveryDurability, a as DeliveryOrigin, b as DeliveryResolution, c as DeliveryUnavailableReason, H as HookIngestInput, d as HookIngestOptions, e as HookIngestOutcome, O as OtelHook, f as OtelHookDependencies, R as ResolvedDeliveryIdentity, U as UsageObservation, g as UsageScope, h as classifyDurability, i as createOtelHook, j as hostDeliveryIdentity, k as isCommittable, r as resolveDeliveryIdentity, u as usageScopeSchema } from './hook-CKLpgrYP.js';
15
+ export { B as BUILT_IN_PROVIDERS, D as DetectionCandidate, P as ProviderRegistry, R as RegistryDetectionResult, c as createProviderRegistry } from './registry-D9rmMYxw.js';
16
+ export { A as ANTIGRAVITY_CAPABILITIES, a as ANTIGRAVITY_HOOK_EVENT_NAMES, b as ANTIGRAVITY_PROVIDER_ID, c as AntigravityAdapterOptions, d as AntigravityHookEventName, C as CLAUDE_CODE_PROVIDER_ID, e as CLAUDE_HOOK_EVENT_NAMES, f as CODEX_ADAPTER_VERSION, g as CODEX_HOOK_EVENT_NAMES, h as CODEX_PROVIDER_ID, i as CURSOR_DECISION_EVENTS, j as CURSOR_HOOK_EVENT_NAMES, k as CURSOR_PROVIDER_ID, l as CURSOR_UNMODELLED_HOOK_EVENT_NAMES, m as ClaudeHookEventName, n as CodexHookEventName, o as CursorHookEventName, D as DEFAULT_GEMINI_CAPABILITIES, G as GEMINI_ADAPTER_VERSION, p as GEMINI_HOOK_EVENT_NAMES, q as GEMINI_PROVIDER_ID, r as GeminiAdapterOptions, s as GeminiHookEventName, t as createAntigravityAdapter, u as createGeminiCliAdapter } from './payload-DWdx9yk3.js';
17
+ export { A as AppliedDelivery, C as Clock, E as EventIdSeed, I as IdGenerator, a as InvocationIdSeed, L as LOG_LEVEL_RANK, b as LocatedWorktree, c as LogLevel, d as Logger, P as PayloadEnricher, e as PayloadEnrichment, f as PayloadEnrichmentInput, R as ReadCursor, S as SessionContextReader, g as SessionContextRequest, h as SessionContextSegment, i as StateRecord, j as StateStore, k as StateValue, T as TelemetryEmitOptions, l as TelemetryEmitResult, m as TelemetrySink, W as WorktreeLocator, n as appliedDeliverySchema, o as logLevelSchema, s as stateRecordSchema, p as stateValueSchema } from './ports-qZTwK-z2.js';
18
+ export { D as DeterministicIdOptions, F as FixedClock, a as FixedClockOptions, I as InMemoryStateStore, b as InMemoryStateStoreOptions, L as LogRecord, R as RecordingLogger, c as RecordingTelemetrySink, d as RecordingTelemetrySinkOptions, e as createDeterministicIdGenerator, f as createFixedClock, g as createInMemoryStateStore, h as createNullTelemetrySink, i as createRandomIdGenerator, j as createRecordingLogger, k as createRecordingTelemetrySink, l as createSystemClock } from './memory-gipZUiXP.js';
19
+ export { DEFAULT_SESSION_CONTEXT_BUDGET_MILLIS, DEFAULT_SESSION_CONTEXT_MAX_BYTES, DEFAULT_TARGET_RESOLUTION_BUDGET_MILLIS, DEFAULT_WORKTREE_CACHE_TTL_MILLIS, DirectorySessionContextReaderOptions, FilesystemWorktreeLocatorOptions, MAX_SESSION_CONTEXT_SEGMENTS, MAX_WORKTREE_WALK_DEPTH, ResolveEventTargetsInput, ResolveEventTargetsResult, SESSION_CONTEXT_AGENT_TOOLS, SESSION_CONTEXT_FILE_VERSION, StderrLoggerOptions, createDirectorySessionContextReader, createFilesystemWorktreeLocator, createNullLogger, createStderrLogger, isReservedSessionContextKey, isSessionContextFileName, parseCommonDirFile, parseGitDirFile, parseHeadBranch, parseOriginRemoteUrl, parseSessionContextFile, resolveEventTargets, sanitizeSessionContextAttributes, segmentInForce, sessionContextAgentTool, sessionContextFilePath, stampSessionContext } from './runtime.js';
20
+ export { C as CumulativeUsageSeries, D as DeliveryDurability, a as DeliveryOrigin, b as DeliveryResolution, c as DeliveryUnavailableReason, H as HookIngestInput, d as HookIngestOptions, e as HookIngestOutcome, O as OtelHook, f as OtelHookDependencies, R as ResolvedDeliveryIdentity, U as UsageObservation, g as UsageScope, h as classifyDurability, i as createOtelHook, j as hostDeliveryIdentity, k as isCommittable, r as resolveDeliveryIdentity, u as usageScopeSchema } from './hook-D7XABd4f.js';
21
21
  export { CallbackDeduplicator, CallbackDeduplicatorDependencies, DedupCheckResult, DedupCleanupResult, DeliveryClaimOptions, DeliveryClaimOutcome, DeliveryClaimResult, LifecycleCleanupReport, LifecycleJanitor, LifecycleJanitorOptions, LifecycleScope, LifecycleSweepStats, MetricSeriesCleanupResult, MetricSeriesStore, MetricSeriesStoreDependencies, RecordCumulativeOptions, RollupCleanupResult, SPAN_RECORD_VERSION, SpanCleanupResult, SpanCorrelationFacts, SpanCorrelator, SpanCorrelatorDependencies, SpanEndInput, SpanEndOrphanReason, SpanEndResult, SpanStartInput, SpanStartResult, UsageAccumulator, UsageAccumulatorDependencies, UsageAccumulatorKey, UsageAccumulatorSnapshot, createCallbackDeduplicator, createLifecycleJanitor, createMetricSeriesStore, createSpanCorrelator, createUsageAccumulator } from './lifecycle.js';
22
22
  export { S as StoreNamespace } from './keys-Dej5bN3L.js';
23
- export { F as FilesystemStateStore, a as FilesystemStateStoreOptions, L as LockingStateStore, S as StateStoreDependencies, c as createFilesystemStateStore, i as isLockingStateStore, w as withOptionalSessionLock } from './filesystem-store-B3CpiIRl.js';
23
+ export { F as FilesystemStateStore, a as FilesystemStateStoreOptions, L as LockingStateStore, S as StateStoreDependencies, c as createFilesystemStateStore, i as isLockingStateStore, w as withOptionalSessionLock } from './filesystem-store-Z8XgDtFj.js';
24
24
  export { BoundedMemoryStateStore, BoundedMemoryStateStoreOptions, createBoundedMemoryStateStore } from './state.js';
25
25
  export { D as DEFAULT_INSTRUMENTATION_SCOPE, a as DeriveMetricObservationsInput, E as EventTraceIdentity, M as MAX_RECOVERED_START_ATTRIBUTES, b as METRIC_COST_USAGE, c as METRIC_INSTRUMENTS, d as METRIC_OPERATION_DURATION, e as METRIC_SESSIONS, f as METRIC_TOKEN_USAGE, g as METRIC_TOOL_CALLS, h as MetricInstrument, i as MetricInstrumentName, j as MetricObservation, k as MetricPoint, l as MetricsTemporality, O as OPERATION_DURATION_BUCKETS, S as SemanticMappingOptions, m as SpanCorrelation, n as SpanCorrelationResolver, o as SpanDisposition, p as SpanFamily, q as SpanOrphanClassification, r as SpanPairing, s as SpanScopeRef, T as TOKEN_USAGE_BUCKETS, t as TokenType, u as aggregateDeltaPoints, v as canonicalEventTraceIdentities, w as canonicalEventsToReadableSpans, x as deriveMetricObservations, y as parentScopeRefOf, z as spanScopeRefOf, A as startOnlySpanAttributes } from './metric-model-B4lIuk6i.js';
26
- export { C as ContentWithholdingReason, D as DurableLogSpool, a as DurableLogSpoolOptions, b as DurableMetricSpool, c as DurableMetricSpoolOptions, d as DurableSpool, e as DurableSpoolOptions, E as ExportDestinationSinks, f as ExportDestinationsOptions, L as LOG_MAPPING_VERSION, g as LOG_SIGNALS, h as LogContentPolicy, i as LogMappingOptions, j as LogMappingResult, k as LogSignal, l as LogSpoolBatch, m as LogsDeliverability, M as MAX_LOG_BODY_CHARACTERS, n as MAX_LOG_RECORDS_PER_BATCH, o as MAX_LOG_RECORDS_PER_EVENT, p as MCP_TOOL_NAME_PATTERN, q as MetricExportResult, r as MetricSpoolBatch, s as MetricsDeliverability, N as NO_LOG_CONTENT, O as OtlpLogSinkOptions, t as OtlpLogTelemetrySink, u as OtlpMetricSinkOptions, v as OtlpMetricTelemetrySink, w as OtlpTelemetrySink, x as OtlpTraceSinkOptions, S as SerializedLogRecord, y as SerializedSpan, z as SignalFanoutOptions, A as SignalFanoutSink, B as SkippedExportDestination, F as SpoolBatch, G as SpoolDrainResult, H as SpoolDropCounts, I as SpoolDropReason, J as SpoolEnqueueResult, K as SpoolOverflowPolicy, P as SpoolSendOutcome, Q as SpoolStats, R as canonicalEventsToLogRecords, T as createDestinationFanout, U as createExportDestinationSinks, V as createFileDurableLogSpool, W as createFileDurableMetricSpool, X as createFileDurableSpool, Y as createOtlpLogSink, Z as createOtlpMetricSink, _ as createOtlpTraceSink, $ as createSignalFanout, a0 as describeLogsDeliverability, a1 as describeMetricsDeliverability, a2 as exporterPolicyForDestination, a3 as logSignalOf, a4 as logSignalsForLifecycleEvents, a5 as resolveLogsEndpoint, a6 as resolveMetricsEndpoint, a7 as shareCorrelationPerBatch, a8 as spoolQueueNamesFor, a9 as validateMetricSpoolBatch } from './export-destinations-BjRXDots.js';
26
+ export { C as ContentRestrictor, a as ContentWithholdingReason, D as DestinationFanoutOptions, b as DurableLogSpool, c as DurableLogSpoolOptions, d as DurableMetricSpool, e as DurableMetricSpoolOptions, f as DurableSpool, g as DurableSpoolOptions, E as ExportDestinationSinks, h as ExportDestinationsOptions, L as LOG_MAPPING_VERSION, i as LOG_SIGNALS, j as LogContentPolicy, k as LogMappingOptions, l as LogMappingResult, m as LogSignal, n as LogSpoolBatch, o as LogsDeliverability, M as MAX_LOG_BODY_CHARACTERS, p as MAX_LOG_RECORDS_PER_BATCH, q as MAX_LOG_RECORDS_PER_EVENT, r as MCP_TOOL_NAME_PATTERN, s as MetricExportResult, t as MetricSpoolBatch, u as MetricsDeliverability, N as NO_LOG_CONTENT, O as OtlpLogSinkOptions, v as OtlpLogTelemetrySink, w as OtlpMetricSinkOptions, x as OtlpMetricTelemetrySink, y as OtlpTelemetrySink, z as OtlpTraceSinkOptions, R as RouteEventsOptions, S as ScopedBatch, A as SerializedLogRecord, B as SerializedSpan, F as SharedCorrelationResolver, G as SignalFanoutOptions, H as SignalFanoutSink, I as SkippedExportDestination, J as SpoolBatch, K as SpoolDrainResult, P as SpoolDropCounts, Q as SpoolDropReason, T as SpoolEnqueueResult, U as SpoolOverflowPolicy, V as SpoolSendOutcome, W as SpoolStats, X as canonicalEventsToLogRecords, Y as createDestinationFanout, Z as createExportDestinationSinks, _ as createFileDurableLogSpool, $ as createFileDurableMetricSpool, a0 as createFileDurableSpool, a1 as createOtlpLogSink, a2 as createOtlpMetricSink, a3 as createOtlpTraceSink, a4 as createSignalFanout, a5 as describeLogsDeliverability, a6 as describeMetricsDeliverability, a7 as eventRepositoryKey, a8 as exporterPolicyForDestination, a9 as logSignalOf, aa as logSignalsForLifecycleEvents, ab as omitRestrictedContent, ac as pointRepositoryKey, ad as resolveLogsEndpoint, ae as resolveMetricsEndpoint, af as resourceRepositoryKey, ag as restrictEventContent, ah as routeEventsToScopes, ai as routePointsToScopes, aj as sessionIdVariantsFor, ak as shareCorrelationPerBatch, al as spoolQueueNamesFor, am as validateMetricSpoolBatch } from './export-destinations-8tNkIC8a.js';
27
27
  export { isPermanentExportFailure } from './telemetry.js';
28
28
  export { DeliveryHealthSnapshot, DeliverySubsystem, HealthTracker, HealthTrackerOptions, OverallHealth, createHealthTracker, summarizeHealth } from './diagnostics.js';
29
29
  export { DeliveryReport, HookProcessInput, HookProcessOutcome, HookRuntime, HookRuntimeDelivery, HookRuntimeOptions, HookShutdownReport, MetricsReport, UsageRollup, createHookRuntime, minimumStaleClaimMillis } from './integration.js';
@@ -42,6 +42,6 @@ import '@opentelemetry/sdk-logs';
42
42
  *
43
43
  * Updated by `scripts/release/sync-version.mjs` during semantic-release.
44
44
  */
45
- declare const VERSION = "0.13.2";
45
+ declare const VERSION = "0.14.1";
46
46
 
47
47
  export { VERSION };