@contractspec/lib.observability 1.62.0 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @contractspec/lib.observability
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - a09bafc: feat: optimize performance
8
+
9
+ ### Patch Changes
10
+
11
+ - 7f3203a: fix: make workspace test runs resilient when packages have no tests
12
+
13
+ Updates package test scripts to pass cleanly when no matching test files exist:
14
+ - Uses `bun test --pass-with-no-tests` in Bun-based packages that currently ship without test files.
15
+ - Uses `jest --passWithNoTests` for the UI kit web package.
16
+ - Adds `.vscode-test.mjs` for `vscode-contractspec` so VS Code extension test runs have an explicit config and stop failing on missing default configuration.
17
+
18
+ This keeps `turbo run test` deterministic across the monorepo while preserving existing test execution behavior where tests are present.
19
+
20
+ - Updated dependencies [a09bafc]
21
+ - Updated dependencies [f152678]
22
+ - Updated dependencies [7f3203a]
23
+ - @contractspec/lib.contracts-integrations@2.0.0
24
+ - @contractspec/lib.contracts-spec@2.0.0
25
+ - @contractspec/lib.lifecycle@2.0.0
26
+
3
27
  ## 1.62.0
4
28
 
5
29
  ### Minor Changes
@@ -22,7 +46,7 @@
22
46
  ### Patch Changes
23
47
 
24
48
  - Updated dependencies [374fd71]
25
- - @contractspec/lib.contracts@1.61.0
49
+ - @contractspec/lib.contracts-spec@1.61.0
26
50
  - @contractspec/lib.lifecycle@1.61.0
27
51
 
28
52
  ## 1.60.0
@@ -34,7 +58,7 @@
34
58
  ### Patch Changes
35
59
 
36
60
  - Updated dependencies
37
- - @contractspec/lib.contracts@1.60.0
61
+ - @contractspec/lib.contracts-spec@1.60.0
38
62
  - @contractspec/lib.lifecycle@1.60.0
39
63
 
40
64
  ## 1.59.0
@@ -46,7 +70,7 @@
46
70
  ### Patch Changes
47
71
 
48
72
  - Updated dependencies [1a0cf44]
49
- - @contractspec/lib.contracts@1.59.0
73
+ - @contractspec/lib.contracts-spec@1.59.0
50
74
  - @contractspec/lib.lifecycle@1.59.0
51
75
 
52
76
  ## 1.58.0
@@ -59,7 +83,7 @@
59
83
 
60
84
  - Updated dependencies [d1f0fd0]
61
85
  - Updated dependencies [4355a9e]
62
- - @contractspec/lib.contracts@1.58.0
86
+ - @contractspec/lib.contracts-spec@1.58.0
63
87
  - @contractspec/lib.lifecycle@1.58.0
64
88
 
65
89
  ## 1.57.0
@@ -78,7 +102,7 @@
78
102
  - Updated dependencies [4651e06]
79
103
  - Updated dependencies [ad9d10a]
80
104
  - Updated dependencies [11a5a05]
81
- - @contractspec/lib.contracts@1.57.0
105
+ - @contractspec/lib.contracts-spec@1.57.0
82
106
  - @contractspec/lib.lifecycle@1.57.0
83
107
 
84
108
  ## 1.56.1
@@ -14,4 +14,3 @@ export declare class AlertManager {
14
14
  constructor(options: AlertManagerOptions);
15
15
  notify(signal: AnomalySignal, analysis: RootCauseAnalysis): Promise<void>;
16
16
  }
17
- //# sourceMappingURL=alert-manager.d.ts.map
@@ -19,4 +19,3 @@ export declare class AnomalyDetector {
19
19
  private relativeDelta;
20
20
  private relativeDrop;
21
21
  }
22
- //# sourceMappingURL=anomaly-detector.d.ts.map
@@ -20,4 +20,3 @@ export declare class BaselineCalculator {
20
20
  getSnapshot(): BaselineSnapshot;
21
21
  private mix;
22
22
  }
23
- //# sourceMappingURL=baseline-calculator.d.ts.map
@@ -16,4 +16,3 @@ export declare class RootCauseAnalyzer {
16
16
  constructor(lookbackMs?: number);
17
17
  analyze(signal: AnomalySignal, deployments: DeploymentEvent[]): RootCauseAnalysis;
18
18
  }
19
- //# sourceMappingURL=root-cause-analyzer.d.ts.map
package/dist/index.d.ts CHANGED
@@ -13,4 +13,3 @@ export { BaselineCalculator } from './anomaly/baseline-calculator';
13
13
  export { AnomalyDetector, type AnomalySignal, type AnomalyThresholds, } from './anomaly/anomaly-detector';
14
14
  export { RootCauseAnalyzer, type RootCauseAnalysis, } from './anomaly/root-cause-analyzer';
15
15
  export { AlertManager } from './anomaly/alert-manager';
16
- //# sourceMappingURL=index.d.ts.map
@@ -54,4 +54,3 @@ export declare class IntentAggregator {
54
54
  private aggregateMetrics;
55
55
  private buildSequences;
56
56
  }
57
- //# sourceMappingURL=aggregator.d.ts.map
@@ -25,4 +25,3 @@ export declare class IntentDetector {
25
25
  detectFromMetrics(current: AggregatedOperationMetrics[], previous?: AggregatedOperationMetrics[]): IntentSignal[];
26
26
  detectSequentialIntents(sequences: OperationSequence[]): IntentSignal[];
27
27
  }
28
- //# sourceMappingURL=detector.d.ts.map
@@ -14,4 +14,3 @@ export declare class Logger {
14
14
  error(message: string, meta?: Record<string, unknown>): void;
15
15
  }
16
16
  export declare const logger: Logger;
17
- //# sourceMappingURL=index.d.ts.map
@@ -9,4 +9,3 @@ export declare const standardMetrics: {
9
9
  operationErrors: Counter<import("@opentelemetry/api").Attributes>;
10
10
  workflowDuration: Histogram<import("@opentelemetry/api").Attributes>;
11
11
  };
12
- //# sourceMappingURL=index.d.ts.map
@@ -33,4 +33,3 @@ export declare class EvolutionPipeline {
33
33
  run(): Promise<void>;
34
34
  private emit;
35
35
  }
36
- //# sourceMappingURL=evolution-pipeline.d.ts.map
@@ -37,4 +37,3 @@ export declare class LifecycleKpiPipeline {
37
37
  on(listener: (event: LifecyclePipelineEvent) => void): void;
38
38
  private ensureStageCounters;
39
39
  }
40
- //# sourceMappingURL=lifecycle-pipeline.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { AnalyticsReader, DateRangeInput } from '@contractspec/lib.contracts/integrations/providers/analytics';
1
+ import type { AnalyticsReader, DateRangeInput } from '@contractspec/lib.contracts-integrations';
2
2
  import type { AggregatedOperationMetrics, OperationSequence, TelemetrySample } from '../intent/aggregator';
3
3
  export interface ReadTelemetrySamplesInput {
4
4
  operations?: {
@@ -24,4 +24,3 @@ export declare class PosthogBaselineReader {
24
24
  private readTopErrors;
25
25
  private queryHogQL;
26
26
  }
27
- //# sourceMappingURL=posthog-baseline-reader.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { AnalyticsProvider } from '@contractspec/lib.contracts/integrations/providers/analytics';
1
+ import type { AnalyticsProvider } from '@contractspec/lib.contracts-integrations';
2
2
  import type { IntentAggregatorSnapshot, TelemetrySample } from '../intent/aggregator';
3
3
  export interface PosthogTelemetryProviderOptions {
4
4
  eventPrefix?: string;
@@ -12,4 +12,3 @@ export declare class PosthogTelemetryProvider {
12
12
  captureSample(sample: TelemetrySample): Promise<void>;
13
13
  captureSnapshot(snapshot: IntentAggregatorSnapshot): Promise<void>;
14
14
  }
15
- //# sourceMappingURL=posthog-telemetry.d.ts.map
@@ -2,4 +2,3 @@ import { type Span, type Tracer } from '@opentelemetry/api';
2
2
  export declare function getTracer(name?: string): Tracer;
3
3
  export declare function traceAsync<T>(name: string, fn: (span: Span) => Promise<T>, tracerName?: string): Promise<T>;
4
4
  export declare function traceSync<T>(name: string, fn: (span: Span) => T, tracerName?: string): T;
5
- //# sourceMappingURL=index.d.ts.map
@@ -12,4 +12,3 @@ export interface TracingMiddlewareOptions {
12
12
  actorResolver?: (req: Request) => string | undefined;
13
13
  }
14
14
  export declare function createTracingMiddleware(options?: TracingMiddlewareOptions): (req: Request, next: () => Promise<Response>) => Promise<Response>;
15
- //# sourceMappingURL=middleware.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.observability",
3
- "version": "1.62.0",
3
+ "version": "2.0.0",
4
4
  "description": "OpenTelemetry-based observability primitives",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -22,21 +22,22 @@
22
22
  "lint": "bun lint:fix",
23
23
  "lint:fix": "eslint src --fix",
24
24
  "lint:check": "eslint src",
25
- "test": "bun test",
25
+ "test": "bun test --pass-with-no-tests",
26
26
  "prebuild": "contractspec-bun-build prebuild",
27
27
  "typecheck": "tsc --noEmit"
28
28
  },
29
29
  "dependencies": {
30
- "@contractspec/lib.lifecycle": "1.62.0",
31
- "@contractspec/lib.contracts": "1.62.0"
30
+ "@contractspec/lib.lifecycle": "2.0.0",
31
+ "@contractspec/lib.contracts-spec": "2.0.0",
32
+ "@contractspec/lib.contracts-integrations": "2.0.0"
32
33
  },
33
34
  "peerDependencies": {
34
35
  "@opentelemetry/api": "*"
35
36
  },
36
37
  "devDependencies": {
37
- "@contractspec/tool.typescript": "1.62.0",
38
+ "@contractspec/tool.typescript": "2.0.0",
38
39
  "typescript": "^5.9.3",
39
- "@contractspec/tool.bun": "1.61.0"
40
+ "@contractspec/tool.bun": "2.0.0"
40
41
  },
41
42
  "exports": {
42
43
  ".": {