@harness-engineering/core 0.19.0 → 0.21.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/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Result, SessionSectionName, SessionEntry, SessionSections, WorkflowStep, WorkflowStepResult, Workflow, WorkflowResult, SkillLifecycleHooks, SkillContext, SkillResult, TurnContext, CICheckName, CIFailOnSeverity, CICheckReport, Roadmap, FeatureStatus, RoadmapFeature, ExternalTicket, ExternalTicketState, TrackerSyncConfig, SyncResult, ModelPricing, UsageRecord, DailyUsage, SessionUsage } from '@harness-engineering/types';
2
2
  export * from '@harness-engineering/types';
3
3
  import { z } from 'zod';
4
- import { C as Collector, A as ArchConfig, a as ConstraintRule, M as MetricResult, b as ArchMetricCategory, c as ArchBaseline, d as ArchDiffResult, T as ThresholdConfig } from './matchers-Dj1t5vpg.mjs';
5
- export { e as ArchBaselineSchema, f as ArchConfigSchema, g as ArchDiffResultSchema, h as ArchHandle, i as ArchMetricCategorySchema, j as ArchitectureOptions, k as CategoryBaseline, l as CategoryBaselineSchema, m as CategoryRegression, n as CategoryRegressionSchema, o as ConstraintRuleSchema, p as MetricResultSchema, q as ThresholdConfigSchema, V as Violation, r as ViolationSchema, s as archMatchers, t as archModule, u as architecture } from './matchers-Dj1t5vpg.mjs';
4
+ import { C as Collector, A as ArchConfig, a as ConstraintRule, M as MetricResult, b as ArchMetricCategory, c as ArchBaseline, d as ArchDiffResult, T as ThresholdConfig } from './matchers-D20x48U9.mjs';
5
+ export { e as ArchBaselineSchema, f as ArchConfigSchema, g as ArchDiffResultSchema, h as ArchHandle, i as ArchMetricCategorySchema, j as ArchitectureOptions, k as CategoryBaseline, l as CategoryBaselineSchema, m as CategoryRegression, n as CategoryRegressionSchema, o as ConstraintRuleSchema, p as MetricResultSchema, q as ThresholdConfigSchema, V as Violation, r as ViolationSchema, s as archMatchers, t as archModule, u as architecture } from './matchers-D20x48U9.mjs';
6
6
  import Parser from 'web-tree-sitter';
7
7
 
8
8
  /**
@@ -594,12 +594,12 @@ declare const ManifestSchema: z.ZodObject<{
594
594
  schema: string;
595
595
  }>, "many">>;
596
596
  }, "strip", z.ZodTypeAny, {
597
- version: string;
598
597
  name: string;
598
+ version: string;
599
599
  include: string[];
600
600
  keywords: string[];
601
- description?: string | undefined;
602
601
  layers?: Record<string, string[]> | undefined;
602
+ description?: string | undefined;
603
603
  minHarnessVersion?: string | undefined;
604
604
  boundaries?: {
605
605
  name: string;
@@ -608,11 +608,11 @@ declare const ManifestSchema: z.ZodObject<{
608
608
  schema: string;
609
609
  }[] | undefined;
610
610
  }, {
611
- version: string;
612
611
  name: string;
612
+ version: string;
613
613
  include: string[];
614
- description?: string | undefined;
615
614
  layers?: Record<string, string[]> | undefined;
615
+ description?: string | undefined;
616
616
  minHarnessVersion?: string | undefined;
617
617
  keywords?: string[] | undefined;
618
618
  boundaries?: {
@@ -747,12 +747,12 @@ declare const BundleSchema: z.ZodObject<{
747
747
  schema: string;
748
748
  }>, "many">>;
749
749
  }, "strip", z.ZodTypeAny, {
750
- version: string;
751
750
  name: string;
751
+ version: string;
752
752
  include: string[];
753
753
  keywords: string[];
754
- description?: string | undefined;
755
754
  layers?: Record<string, string[]> | undefined;
755
+ description?: string | undefined;
756
756
  minHarnessVersion?: string | undefined;
757
757
  boundaries?: {
758
758
  name: string;
@@ -761,11 +761,11 @@ declare const BundleSchema: z.ZodObject<{
761
761
  schema: string;
762
762
  }[] | undefined;
763
763
  }, {
764
- version: string;
765
764
  name: string;
765
+ version: string;
766
766
  include: string[];
767
- description?: string | undefined;
768
767
  layers?: Record<string, string[]> | undefined;
768
+ description?: string | undefined;
769
769
  minHarnessVersion?: string | undefined;
770
770
  keywords?: string[] | undefined;
771
771
  boundaries?: {
@@ -871,15 +871,15 @@ declare const BundleSchema: z.ZodObject<{
871
871
  }>;
872
872
  contributions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
873
873
  }, "strip", z.ZodTypeAny, {
874
- version: string;
875
874
  name: string;
875
+ version: string;
876
876
  manifest: {
877
- version: string;
878
877
  name: string;
878
+ version: string;
879
879
  include: string[];
880
880
  keywords: string[];
881
- description?: string | undefined;
882
881
  layers?: Record<string, string[]> | undefined;
882
+ description?: string | undefined;
883
883
  minHarnessVersion?: string | undefined;
884
884
  boundaries?: {
885
885
  name: string;
@@ -914,14 +914,14 @@ declare const BundleSchema: z.ZodObject<{
914
914
  minHarnessVersion?: string | undefined;
915
915
  contributions?: Record<string, unknown> | undefined;
916
916
  }, {
917
- version: string;
918
917
  name: string;
918
+ version: string;
919
919
  manifest: {
920
- version: string;
921
920
  name: string;
921
+ version: string;
922
922
  include: string[];
923
- description?: string | undefined;
924
923
  layers?: Record<string, string[]> | undefined;
924
+ description?: string | undefined;
925
925
  minHarnessVersion?: string | undefined;
926
926
  keywords?: string[] | undefined;
927
927
  boundaries?: {
@@ -970,16 +970,16 @@ declare const LockfilePackageSchema: z.ZodObject<{
970
970
  integrity: z.ZodOptional<z.ZodString>;
971
971
  provenance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
972
972
  }, "strip", z.ZodTypeAny, {
973
- version: string;
974
973
  source: string;
974
+ version: string;
975
975
  installedAt: string;
976
976
  contributions?: Record<string, unknown> | null | undefined;
977
977
  resolved?: string | undefined;
978
978
  integrity?: string | undefined;
979
979
  provenance?: string[] | undefined;
980
980
  }, {
981
- version: string;
982
981
  source: string;
982
+ version: string;
983
983
  installedAt: string;
984
984
  contributions?: Record<string, unknown> | null | undefined;
985
985
  resolved?: string | undefined;
@@ -998,16 +998,16 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
998
998
  integrity: z.ZodOptional<z.ZodString>;
999
999
  provenance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1000
1000
  }, "strip", z.ZodTypeAny, {
1001
- version: string;
1002
1001
  source: string;
1002
+ version: string;
1003
1003
  installedAt: string;
1004
1004
  contributions?: Record<string, unknown> | null | undefined;
1005
1005
  resolved?: string | undefined;
1006
1006
  integrity?: string | undefined;
1007
1007
  provenance?: string[] | undefined;
1008
1008
  }, {
1009
- version: string;
1010
1009
  source: string;
1010
+ version: string;
1011
1011
  installedAt: string;
1012
1012
  contributions?: Record<string, unknown> | null | undefined;
1013
1013
  resolved?: string | undefined;
@@ -1016,8 +1016,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
1016
1016
  }>>;
1017
1017
  }, "strip", z.ZodTypeAny, {
1018
1018
  packages: Record<string, {
1019
- version: string;
1020
1019
  source: string;
1020
+ version: string;
1021
1021
  installedAt: string;
1022
1022
  contributions?: Record<string, unknown> | null | undefined;
1023
1023
  resolved?: string | undefined;
@@ -1028,8 +1028,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
1028
1028
  lockfileVersion?: 1 | undefined;
1029
1029
  }, {
1030
1030
  packages: Record<string, {
1031
- version: string;
1032
1031
  source: string;
1032
+ version: string;
1033
1033
  installedAt: string;
1034
1034
  contributions?: Record<string, unknown> | null | undefined;
1035
1035
  resolved?: string | undefined;
@@ -1040,8 +1040,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
1040
1040
  lockfileVersion?: 1 | undefined;
1041
1041
  }>, {
1042
1042
  packages: Record<string, {
1043
- version: string;
1044
1043
  source: string;
1044
+ version: string;
1045
1045
  installedAt: string;
1046
1046
  contributions?: Record<string, unknown> | null | undefined;
1047
1047
  resolved?: string | undefined;
@@ -1052,8 +1052,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
1052
1052
  lockfileVersion?: 1 | undefined;
1053
1053
  }, {
1054
1054
  packages: Record<string, {
1055
- version: string;
1056
1055
  source: string;
1056
+ version: string;
1057
1057
  installedAt: string;
1058
1058
  contributions?: Record<string, unknown> | null | undefined;
1059
1059
  resolved?: string | undefined;
@@ -1924,12 +1924,12 @@ declare const PatternConfigSchema: z.ZodObject<{
1924
1924
  match: z.ZodString;
1925
1925
  convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
1926
1926
  }, "strip", z.ZodTypeAny, {
1927
- type: "naming";
1928
1927
  match: string;
1928
+ type: "naming";
1929
1929
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
1930
1930
  }, {
1931
- type: "naming";
1932
1931
  match: string;
1932
+ type: "naming";
1933
1933
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
1934
1934
  }>, z.ZodObject<{
1935
1935
  type: z.ZodLiteral<"max-exports">;
@@ -1961,10 +1961,10 @@ declare const PatternConfigSchema: z.ZodObject<{
1961
1961
  }>]>;
1962
1962
  message: z.ZodOptional<z.ZodString>;
1963
1963
  }, "strip", z.ZodTypeAny, {
1964
- severity: "error" | "warning";
1965
- description: string;
1966
1964
  files: string[];
1967
1965
  name: string;
1966
+ description: string;
1967
+ severity: "error" | "warning";
1968
1968
  rule: {
1969
1969
  type: "must-export";
1970
1970
  names: string[];
@@ -1982,8 +1982,8 @@ declare const PatternConfigSchema: z.ZodObject<{
1982
1982
  type: "no-import";
1983
1983
  from: string;
1984
1984
  } | {
1985
- type: "naming";
1986
1985
  match: string;
1986
+ type: "naming";
1987
1987
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
1988
1988
  } | {
1989
1989
  type: "max-exports";
@@ -1997,10 +1997,10 @@ declare const PatternConfigSchema: z.ZodObject<{
1997
1997
  };
1998
1998
  message?: string | undefined;
1999
1999
  }, {
2000
- severity: "error" | "warning";
2001
- description: string;
2002
2000
  files: string[];
2003
2001
  name: string;
2002
+ description: string;
2003
+ severity: "error" | "warning";
2004
2004
  rule: {
2005
2005
  type: "must-export";
2006
2006
  names: string[];
@@ -2018,8 +2018,8 @@ declare const PatternConfigSchema: z.ZodObject<{
2018
2018
  type: "no-import";
2019
2019
  from: string;
2020
2020
  } | {
2021
- type: "naming";
2022
2021
  match: string;
2022
+ type: "naming";
2023
2023
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2024
2024
  } | {
2025
2025
  type: "max-exports";
@@ -2037,10 +2037,10 @@ declare const PatternConfigSchema: z.ZodObject<{
2037
2037
  ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2038
2038
  }, "strip", z.ZodTypeAny, {
2039
2039
  patterns: {
2040
- severity: "error" | "warning";
2041
- description: string;
2042
2040
  files: string[];
2043
2041
  name: string;
2042
+ description: string;
2043
+ severity: "error" | "warning";
2044
2044
  rule: {
2045
2045
  type: "must-export";
2046
2046
  names: string[];
@@ -2058,8 +2058,8 @@ declare const PatternConfigSchema: z.ZodObject<{
2058
2058
  type: "no-import";
2059
2059
  from: string;
2060
2060
  } | {
2061
- type: "naming";
2062
2061
  match: string;
2062
+ type: "naming";
2063
2063
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2064
2064
  } | {
2065
2065
  type: "max-exports";
@@ -2077,10 +2077,10 @@ declare const PatternConfigSchema: z.ZodObject<{
2077
2077
  ignoreFiles?: string[] | undefined;
2078
2078
  }, {
2079
2079
  patterns: {
2080
- severity: "error" | "warning";
2081
- description: string;
2082
2080
  files: string[];
2083
2081
  name: string;
2082
+ description: string;
2083
+ severity: "error" | "warning";
2084
2084
  rule: {
2085
2085
  type: "must-export";
2086
2086
  names: string[];
@@ -2098,8 +2098,8 @@ declare const PatternConfigSchema: z.ZodObject<{
2098
2098
  type: "no-import";
2099
2099
  from: string;
2100
2100
  } | {
2101
- type: "naming";
2102
2101
  match: string;
2102
+ type: "naming";
2103
2103
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2104
2104
  } | {
2105
2105
  type: "max-exports";
@@ -2218,12 +2218,12 @@ declare const EntropyConfigSchema: z.ZodObject<{
2218
2218
  match: z.ZodString;
2219
2219
  convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
2220
2220
  }, "strip", z.ZodTypeAny, {
2221
- type: "naming";
2222
2221
  match: string;
2222
+ type: "naming";
2223
2223
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2224
2224
  }, {
2225
- type: "naming";
2226
2225
  match: string;
2226
+ type: "naming";
2227
2227
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2228
2228
  }>, z.ZodObject<{
2229
2229
  type: z.ZodLiteral<"max-exports">;
@@ -2255,10 +2255,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2255
2255
  }>]>;
2256
2256
  message: z.ZodOptional<z.ZodString>;
2257
2257
  }, "strip", z.ZodTypeAny, {
2258
- severity: "error" | "warning";
2259
- description: string;
2260
2258
  files: string[];
2261
2259
  name: string;
2260
+ description: string;
2261
+ severity: "error" | "warning";
2262
2262
  rule: {
2263
2263
  type: "must-export";
2264
2264
  names: string[];
@@ -2276,8 +2276,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2276
2276
  type: "no-import";
2277
2277
  from: string;
2278
2278
  } | {
2279
- type: "naming";
2280
2279
  match: string;
2280
+ type: "naming";
2281
2281
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2282
2282
  } | {
2283
2283
  type: "max-exports";
@@ -2291,10 +2291,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2291
2291
  };
2292
2292
  message?: string | undefined;
2293
2293
  }, {
2294
- severity: "error" | "warning";
2295
- description: string;
2296
2294
  files: string[];
2297
2295
  name: string;
2296
+ description: string;
2297
+ severity: "error" | "warning";
2298
2298
  rule: {
2299
2299
  type: "must-export";
2300
2300
  names: string[];
@@ -2312,8 +2312,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2312
2312
  type: "no-import";
2313
2313
  from: string;
2314
2314
  } | {
2315
- type: "naming";
2316
2315
  match: string;
2316
+ type: "naming";
2317
2317
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2318
2318
  } | {
2319
2319
  type: "max-exports";
@@ -2331,10 +2331,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2331
2331
  ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2332
2332
  }, "strip", z.ZodTypeAny, {
2333
2333
  patterns: {
2334
- severity: "error" | "warning";
2335
- description: string;
2336
2334
  files: string[];
2337
2335
  name: string;
2336
+ description: string;
2337
+ severity: "error" | "warning";
2338
2338
  rule: {
2339
2339
  type: "must-export";
2340
2340
  names: string[];
@@ -2352,8 +2352,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2352
2352
  type: "no-import";
2353
2353
  from: string;
2354
2354
  } | {
2355
- type: "naming";
2356
2355
  match: string;
2356
+ type: "naming";
2357
2357
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2358
2358
  } | {
2359
2359
  type: "max-exports";
@@ -2371,10 +2371,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2371
2371
  ignoreFiles?: string[] | undefined;
2372
2372
  }, {
2373
2373
  patterns: {
2374
- severity: "error" | "warning";
2375
- description: string;
2376
2374
  files: string[];
2377
2375
  name: string;
2376
+ description: string;
2377
+ severity: "error" | "warning";
2378
2378
  rule: {
2379
2379
  type: "must-export";
2380
2380
  names: string[];
@@ -2392,8 +2392,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2392
2392
  type: "no-import";
2393
2393
  from: string;
2394
2394
  } | {
2395
- type: "naming";
2396
2395
  match: string;
2396
+ type: "naming";
2397
2397
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2398
2398
  } | {
2399
2399
  type: "max-exports";
@@ -2427,10 +2427,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2427
2427
  } | undefined;
2428
2428
  patterns?: boolean | {
2429
2429
  patterns: {
2430
- severity: "error" | "warning";
2431
- description: string;
2432
2430
  files: string[];
2433
2431
  name: string;
2432
+ description: string;
2433
+ severity: "error" | "warning";
2434
2434
  rule: {
2435
2435
  type: "must-export";
2436
2436
  names: string[];
@@ -2448,8 +2448,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2448
2448
  type: "no-import";
2449
2449
  from: string;
2450
2450
  } | {
2451
- type: "naming";
2452
2451
  match: string;
2452
+ type: "naming";
2453
2453
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2454
2454
  } | {
2455
2455
  type: "max-exports";
@@ -2483,10 +2483,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2483
2483
  } | undefined;
2484
2484
  patterns?: boolean | {
2485
2485
  patterns: {
2486
- severity: "error" | "warning";
2487
- description: string;
2488
2486
  files: string[];
2489
2487
  name: string;
2488
+ description: string;
2489
+ severity: "error" | "warning";
2490
2490
  rule: {
2491
2491
  type: "must-export";
2492
2492
  names: string[];
@@ -2504,8 +2504,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2504
2504
  type: "no-import";
2505
2505
  from: string;
2506
2506
  } | {
2507
- type: "naming";
2508
2507
  match: string;
2508
+ type: "naming";
2509
2509
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2510
2510
  } | {
2511
2511
  type: "max-exports";
@@ -2545,10 +2545,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2545
2545
  } | undefined;
2546
2546
  patterns?: boolean | {
2547
2547
  patterns: {
2548
- severity: "error" | "warning";
2549
- description: string;
2550
2548
  files: string[];
2551
2549
  name: string;
2550
+ description: string;
2551
+ severity: "error" | "warning";
2552
2552
  rule: {
2553
2553
  type: "must-export";
2554
2554
  names: string[];
@@ -2566,8 +2566,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2566
2566
  type: "no-import";
2567
2567
  from: string;
2568
2568
  } | {
2569
- type: "naming";
2570
2569
  match: string;
2570
+ type: "naming";
2571
2571
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2572
2572
  } | {
2573
2573
  type: "max-exports";
@@ -2609,10 +2609,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2609
2609
  } | undefined;
2610
2610
  patterns?: boolean | {
2611
2611
  patterns: {
2612
- severity: "error" | "warning";
2613
- description: string;
2614
2612
  files: string[];
2615
2613
  name: string;
2614
+ description: string;
2615
+ severity: "error" | "warning";
2616
2616
  rule: {
2617
2617
  type: "must-export";
2618
2618
  names: string[];
@@ -2630,8 +2630,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2630
2630
  type: "no-import";
2631
2631
  from: string;
2632
2632
  } | {
2633
- type: "naming";
2634
2633
  match: string;
2634
+ type: "naming";
2635
2635
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2636
2636
  } | {
2637
2637
  type: "max-exports";
@@ -2680,7 +2680,7 @@ interface BaselinesFile {
2680
2680
  updatedFrom: string;
2681
2681
  benchmarks: Record<string, Baseline>;
2682
2682
  }
2683
- interface RegressionResult {
2683
+ interface RegressionResult$1 {
2684
2684
  benchmark: string;
2685
2685
  current: BenchmarkResult;
2686
2686
  baseline: Baseline;
@@ -2691,7 +2691,7 @@ interface RegressionResult {
2691
2691
  withinNoise: boolean;
2692
2692
  }
2693
2693
  interface RegressionReport {
2694
- regressions: RegressionResult[];
2694
+ regressions: RegressionResult$1[];
2695
2695
  improvements: Array<{
2696
2696
  benchmark: string;
2697
2697
  improvementPct: number;
@@ -3350,6 +3350,1269 @@ declare function diff(current: MetricResult[], baseline: ArchBaseline): ArchDiff
3350
3350
  */
3351
3351
  declare function resolveThresholds(scope: string, config: ArchConfig): ThresholdConfig;
3352
3352
 
3353
+ declare const CategorySnapshotSchema: z.ZodObject<{
3354
+ /** Aggregate metric value (e.g., violation count, avg complexity) */
3355
+ value: z.ZodNumber;
3356
+ /** Count of violations in this category */
3357
+ violationCount: z.ZodNumber;
3358
+ }, "strip", z.ZodTypeAny, {
3359
+ value: number;
3360
+ violationCount: number;
3361
+ }, {
3362
+ value: number;
3363
+ violationCount: number;
3364
+ }>;
3365
+ type CategorySnapshot = z.infer<typeof CategorySnapshotSchema>;
3366
+ declare const TimelineSnapshotSchema: z.ZodObject<{
3367
+ /** ISO 8601 timestamp of capture */
3368
+ capturedAt: z.ZodString;
3369
+ /** Git commit hash at capture time */
3370
+ commitHash: z.ZodString;
3371
+ /** Composite stability score (0-100, higher is healthier) */
3372
+ stabilityScore: z.ZodNumber;
3373
+ /** Per-category metric aggregates */
3374
+ metrics: z.ZodRecord<z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>, z.ZodObject<{
3375
+ /** Aggregate metric value (e.g., violation count, avg complexity) */
3376
+ value: z.ZodNumber;
3377
+ /** Count of violations in this category */
3378
+ violationCount: z.ZodNumber;
3379
+ }, "strip", z.ZodTypeAny, {
3380
+ value: number;
3381
+ violationCount: number;
3382
+ }, {
3383
+ value: number;
3384
+ violationCount: number;
3385
+ }>>;
3386
+ }, "strip", z.ZodTypeAny, {
3387
+ metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3388
+ value: number;
3389
+ violationCount: number;
3390
+ }>>;
3391
+ capturedAt: string;
3392
+ commitHash: string;
3393
+ stabilityScore: number;
3394
+ }, {
3395
+ metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3396
+ value: number;
3397
+ violationCount: number;
3398
+ }>>;
3399
+ capturedAt: string;
3400
+ commitHash: string;
3401
+ stabilityScore: number;
3402
+ }>;
3403
+ type TimelineSnapshot = z.infer<typeof TimelineSnapshotSchema>;
3404
+ declare const TimelineFileSchema: z.ZodObject<{
3405
+ version: z.ZodLiteral<1>;
3406
+ snapshots: z.ZodArray<z.ZodObject<{
3407
+ /** ISO 8601 timestamp of capture */
3408
+ capturedAt: z.ZodString;
3409
+ /** Git commit hash at capture time */
3410
+ commitHash: z.ZodString;
3411
+ /** Composite stability score (0-100, higher is healthier) */
3412
+ stabilityScore: z.ZodNumber;
3413
+ /** Per-category metric aggregates */
3414
+ metrics: z.ZodRecord<z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>, z.ZodObject<{
3415
+ /** Aggregate metric value (e.g., violation count, avg complexity) */
3416
+ value: z.ZodNumber;
3417
+ /** Count of violations in this category */
3418
+ violationCount: z.ZodNumber;
3419
+ }, "strip", z.ZodTypeAny, {
3420
+ value: number;
3421
+ violationCount: number;
3422
+ }, {
3423
+ value: number;
3424
+ violationCount: number;
3425
+ }>>;
3426
+ }, "strip", z.ZodTypeAny, {
3427
+ metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3428
+ value: number;
3429
+ violationCount: number;
3430
+ }>>;
3431
+ capturedAt: string;
3432
+ commitHash: string;
3433
+ stabilityScore: number;
3434
+ }, {
3435
+ metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3436
+ value: number;
3437
+ violationCount: number;
3438
+ }>>;
3439
+ capturedAt: string;
3440
+ commitHash: string;
3441
+ stabilityScore: number;
3442
+ }>, "many">;
3443
+ }, "strip", z.ZodTypeAny, {
3444
+ version: 1;
3445
+ snapshots: {
3446
+ metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3447
+ value: number;
3448
+ violationCount: number;
3449
+ }>>;
3450
+ capturedAt: string;
3451
+ commitHash: string;
3452
+ stabilityScore: number;
3453
+ }[];
3454
+ }, {
3455
+ version: 1;
3456
+ snapshots: {
3457
+ metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3458
+ value: number;
3459
+ violationCount: number;
3460
+ }>>;
3461
+ capturedAt: string;
3462
+ commitHash: string;
3463
+ stabilityScore: number;
3464
+ }[];
3465
+ }>;
3466
+ type TimelineFile = z.infer<typeof TimelineFileSchema>;
3467
+ declare const TrendLineSchema: z.ZodObject<{
3468
+ /** Current value */
3469
+ current: z.ZodNumber;
3470
+ /** Previous value (from comparison snapshot) */
3471
+ previous: z.ZodNumber;
3472
+ /** Absolute delta (current - previous) */
3473
+ delta: z.ZodNumber;
3474
+ /** Direction indicator */
3475
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
3476
+ }, "strip", z.ZodTypeAny, {
3477
+ direction: "improving" | "stable" | "declining";
3478
+ delta: number;
3479
+ current: number;
3480
+ previous: number;
3481
+ }, {
3482
+ direction: "improving" | "stable" | "declining";
3483
+ delta: number;
3484
+ current: number;
3485
+ previous: number;
3486
+ }>;
3487
+ type TrendLine = z.infer<typeof TrendLineSchema>;
3488
+ declare const TrendResultSchema: z.ZodObject<{
3489
+ /** Overall stability trend */
3490
+ stability: z.ZodObject<{
3491
+ /** Current value */
3492
+ current: z.ZodNumber;
3493
+ /** Previous value (from comparison snapshot) */
3494
+ previous: z.ZodNumber;
3495
+ /** Absolute delta (current - previous) */
3496
+ delta: z.ZodNumber;
3497
+ /** Direction indicator */
3498
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
3499
+ }, "strip", z.ZodTypeAny, {
3500
+ direction: "improving" | "stable" | "declining";
3501
+ delta: number;
3502
+ current: number;
3503
+ previous: number;
3504
+ }, {
3505
+ direction: "improving" | "stable" | "declining";
3506
+ delta: number;
3507
+ current: number;
3508
+ previous: number;
3509
+ }>;
3510
+ /** Per-category trends */
3511
+ categories: z.ZodRecord<z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>, z.ZodObject<{
3512
+ /** Current value */
3513
+ current: z.ZodNumber;
3514
+ /** Previous value (from comparison snapshot) */
3515
+ previous: z.ZodNumber;
3516
+ /** Absolute delta (current - previous) */
3517
+ delta: z.ZodNumber;
3518
+ /** Direction indicator */
3519
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
3520
+ }, "strip", z.ZodTypeAny, {
3521
+ direction: "improving" | "stable" | "declining";
3522
+ delta: number;
3523
+ current: number;
3524
+ previous: number;
3525
+ }, {
3526
+ direction: "improving" | "stable" | "declining";
3527
+ delta: number;
3528
+ current: number;
3529
+ previous: number;
3530
+ }>>;
3531
+ /** Number of snapshots analyzed */
3532
+ snapshotCount: z.ZodNumber;
3533
+ /** Time range covered */
3534
+ from: z.ZodString;
3535
+ to: z.ZodString;
3536
+ }, "strip", z.ZodTypeAny, {
3537
+ from: string;
3538
+ stability: {
3539
+ direction: "improving" | "stable" | "declining";
3540
+ delta: number;
3541
+ current: number;
3542
+ previous: number;
3543
+ };
3544
+ categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3545
+ direction: "improving" | "stable" | "declining";
3546
+ delta: number;
3547
+ current: number;
3548
+ previous: number;
3549
+ }>>;
3550
+ snapshotCount: number;
3551
+ to: string;
3552
+ }, {
3553
+ from: string;
3554
+ stability: {
3555
+ direction: "improving" | "stable" | "declining";
3556
+ delta: number;
3557
+ current: number;
3558
+ previous: number;
3559
+ };
3560
+ categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3561
+ direction: "improving" | "stable" | "declining";
3562
+ delta: number;
3563
+ current: number;
3564
+ previous: number;
3565
+ }>>;
3566
+ snapshotCount: number;
3567
+ to: string;
3568
+ }>;
3569
+ type TrendResult = z.infer<typeof TrendResultSchema>;
3570
+ /**
3571
+ * Reasonable ceiling per category for normalizing health scores.
3572
+ * health = max(0, 1 - (value / threshold))
3573
+ * Categories at or above threshold get health = 0.
3574
+ */
3575
+ declare const DEFAULT_STABILITY_THRESHOLDS: Record<ArchMetricCategory, number>;
3576
+
3577
+ declare class TimelineManager {
3578
+ private readonly timelinePath;
3579
+ constructor(rootDir: string);
3580
+ /**
3581
+ * Load timeline from disk.
3582
+ * Returns empty TimelineFile if file does not exist or is invalid.
3583
+ */
3584
+ load(): TimelineFile;
3585
+ /**
3586
+ * Save timeline to disk using atomic write (temp file + rename).
3587
+ * Creates parent directories if they do not exist.
3588
+ */
3589
+ save(timeline: TimelineFile): void;
3590
+ /**
3591
+ * Capture a new snapshot from current metric results.
3592
+ * Aggregates MetricResult[] by category, computes stability score,
3593
+ * appends to timeline (or replaces if same commitHash), and saves.
3594
+ */
3595
+ capture(results: MetricResult[], commitHash: string): TimelineSnapshot;
3596
+ /**
3597
+ * Compute trends between snapshots over a window.
3598
+ * @param options.last - Number of recent snapshots to analyze (default: 10)
3599
+ * @param options.since - ISO date string to filter snapshots from
3600
+ */
3601
+ trends(options?: {
3602
+ last?: number;
3603
+ since?: string;
3604
+ }): TrendResult;
3605
+ /**
3606
+ * Compute composite stability score from category metrics.
3607
+ * Equal weight across all categories. Score is 0-100 (higher = healthier).
3608
+ * health = max(0, 1 - (value / threshold)) per category.
3609
+ */
3610
+ computeStabilityScore(metrics: Record<ArchMetricCategory, CategorySnapshot>, thresholds?: Record<ArchMetricCategory, number>): number;
3611
+ private aggregateByCategory;
3612
+ private buildTrendLine;
3613
+ private buildCategoryTrends;
3614
+ private emptyTrendResult;
3615
+ }
3616
+
3617
+ declare const ConfidenceTierSchema: z.ZodEnum<["high", "medium", "low"]>;
3618
+ type ConfidenceTier = z.infer<typeof ConfidenceTierSchema>;
3619
+ declare const RegressionResultSchema: z.ZodObject<{
3620
+ slope: z.ZodNumber;
3621
+ intercept: z.ZodNumber;
3622
+ rSquared: z.ZodNumber;
3623
+ dataPoints: z.ZodNumber;
3624
+ }, "strip", z.ZodTypeAny, {
3625
+ slope: number;
3626
+ intercept: number;
3627
+ rSquared: number;
3628
+ dataPoints: number;
3629
+ }, {
3630
+ slope: number;
3631
+ intercept: number;
3632
+ rSquared: number;
3633
+ dataPoints: number;
3634
+ }>;
3635
+ type RegressionResult = z.infer<typeof RegressionResultSchema>;
3636
+ declare const DirectionSchema: z.ZodEnum<["improving", "stable", "declining"]>;
3637
+ type Direction = z.infer<typeof DirectionSchema>;
3638
+ declare const CategoryForecastSchema: z.ZodObject<{
3639
+ category: z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>;
3640
+ current: z.ZodNumber;
3641
+ threshold: z.ZodNumber;
3642
+ projectedValue4w: z.ZodNumber;
3643
+ projectedValue8w: z.ZodNumber;
3644
+ projectedValue12w: z.ZodNumber;
3645
+ thresholdCrossingWeeks: z.ZodNullable<z.ZodNumber>;
3646
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
3647
+ regression: z.ZodObject<{
3648
+ slope: z.ZodNumber;
3649
+ intercept: z.ZodNumber;
3650
+ rSquared: z.ZodNumber;
3651
+ dataPoints: z.ZodNumber;
3652
+ }, "strip", z.ZodTypeAny, {
3653
+ slope: number;
3654
+ intercept: number;
3655
+ rSquared: number;
3656
+ dataPoints: number;
3657
+ }, {
3658
+ slope: number;
3659
+ intercept: number;
3660
+ rSquared: number;
3661
+ dataPoints: number;
3662
+ }>;
3663
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
3664
+ }, "strip", z.ZodTypeAny, {
3665
+ direction: "improving" | "stable" | "declining";
3666
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3667
+ threshold: number;
3668
+ current: number;
3669
+ projectedValue4w: number;
3670
+ projectedValue8w: number;
3671
+ projectedValue12w: number;
3672
+ thresholdCrossingWeeks: number | null;
3673
+ confidence: "high" | "medium" | "low";
3674
+ regression: {
3675
+ slope: number;
3676
+ intercept: number;
3677
+ rSquared: number;
3678
+ dataPoints: number;
3679
+ };
3680
+ }, {
3681
+ direction: "improving" | "stable" | "declining";
3682
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3683
+ threshold: number;
3684
+ current: number;
3685
+ projectedValue4w: number;
3686
+ projectedValue8w: number;
3687
+ projectedValue12w: number;
3688
+ thresholdCrossingWeeks: number | null;
3689
+ confidence: "high" | "medium" | "low";
3690
+ regression: {
3691
+ slope: number;
3692
+ intercept: number;
3693
+ rSquared: number;
3694
+ dataPoints: number;
3695
+ };
3696
+ }>;
3697
+ type CategoryForecast = z.infer<typeof CategoryForecastSchema>;
3698
+ declare const SpecImpactSignalsSchema: z.ZodObject<{
3699
+ newFileCount: z.ZodNumber;
3700
+ affectedLayers: z.ZodArray<z.ZodString, "many">;
3701
+ newDependencies: z.ZodNumber;
3702
+ phaseCount: z.ZodNumber;
3703
+ }, "strip", z.ZodTypeAny, {
3704
+ newFileCount: number;
3705
+ affectedLayers: string[];
3706
+ newDependencies: number;
3707
+ phaseCount: number;
3708
+ }, {
3709
+ newFileCount: number;
3710
+ affectedLayers: string[];
3711
+ newDependencies: number;
3712
+ phaseCount: number;
3713
+ }>;
3714
+ declare const SpecImpactEstimateSchema: z.ZodObject<{
3715
+ specPath: z.ZodString;
3716
+ featureName: z.ZodString;
3717
+ signals: z.ZodObject<{
3718
+ newFileCount: z.ZodNumber;
3719
+ affectedLayers: z.ZodArray<z.ZodString, "many">;
3720
+ newDependencies: z.ZodNumber;
3721
+ phaseCount: z.ZodNumber;
3722
+ }, "strip", z.ZodTypeAny, {
3723
+ newFileCount: number;
3724
+ affectedLayers: string[];
3725
+ newDependencies: number;
3726
+ phaseCount: number;
3727
+ }, {
3728
+ newFileCount: number;
3729
+ affectedLayers: string[];
3730
+ newDependencies: number;
3731
+ phaseCount: number;
3732
+ }>;
3733
+ deltas: z.ZodOptional<z.ZodRecord<z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>, z.ZodNumber>>;
3734
+ }, "strip", z.ZodTypeAny, {
3735
+ specPath: string;
3736
+ featureName: string;
3737
+ signals: {
3738
+ newFileCount: number;
3739
+ affectedLayers: string[];
3740
+ newDependencies: number;
3741
+ phaseCount: number;
3742
+ };
3743
+ deltas?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
3744
+ }, {
3745
+ specPath: string;
3746
+ featureName: string;
3747
+ signals: {
3748
+ newFileCount: number;
3749
+ affectedLayers: string[];
3750
+ newDependencies: number;
3751
+ phaseCount: number;
3752
+ };
3753
+ deltas?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
3754
+ }>;
3755
+ type SpecImpactEstimate = z.infer<typeof SpecImpactEstimateSchema>;
3756
+ declare const ContributingFeatureSchema: z.ZodObject<{
3757
+ name: z.ZodString;
3758
+ specPath: z.ZodString;
3759
+ delta: z.ZodNumber;
3760
+ }, "strip", z.ZodTypeAny, {
3761
+ name: string;
3762
+ delta: number;
3763
+ specPath: string;
3764
+ }, {
3765
+ name: string;
3766
+ delta: number;
3767
+ specPath: string;
3768
+ }>;
3769
+ declare const AdjustedForecastSchema: z.ZodObject<{
3770
+ baseline: z.ZodObject<{
3771
+ category: z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>;
3772
+ current: z.ZodNumber;
3773
+ threshold: z.ZodNumber;
3774
+ projectedValue4w: z.ZodNumber;
3775
+ projectedValue8w: z.ZodNumber;
3776
+ projectedValue12w: z.ZodNumber;
3777
+ thresholdCrossingWeeks: z.ZodNullable<z.ZodNumber>;
3778
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
3779
+ regression: z.ZodObject<{
3780
+ slope: z.ZodNumber;
3781
+ intercept: z.ZodNumber;
3782
+ rSquared: z.ZodNumber;
3783
+ dataPoints: z.ZodNumber;
3784
+ }, "strip", z.ZodTypeAny, {
3785
+ slope: number;
3786
+ intercept: number;
3787
+ rSquared: number;
3788
+ dataPoints: number;
3789
+ }, {
3790
+ slope: number;
3791
+ intercept: number;
3792
+ rSquared: number;
3793
+ dataPoints: number;
3794
+ }>;
3795
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
3796
+ }, "strip", z.ZodTypeAny, {
3797
+ direction: "improving" | "stable" | "declining";
3798
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3799
+ threshold: number;
3800
+ current: number;
3801
+ projectedValue4w: number;
3802
+ projectedValue8w: number;
3803
+ projectedValue12w: number;
3804
+ thresholdCrossingWeeks: number | null;
3805
+ confidence: "high" | "medium" | "low";
3806
+ regression: {
3807
+ slope: number;
3808
+ intercept: number;
3809
+ rSquared: number;
3810
+ dataPoints: number;
3811
+ };
3812
+ }, {
3813
+ direction: "improving" | "stable" | "declining";
3814
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3815
+ threshold: number;
3816
+ current: number;
3817
+ projectedValue4w: number;
3818
+ projectedValue8w: number;
3819
+ projectedValue12w: number;
3820
+ thresholdCrossingWeeks: number | null;
3821
+ confidence: "high" | "medium" | "low";
3822
+ regression: {
3823
+ slope: number;
3824
+ intercept: number;
3825
+ rSquared: number;
3826
+ dataPoints: number;
3827
+ };
3828
+ }>;
3829
+ adjusted: z.ZodObject<{
3830
+ category: z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>;
3831
+ current: z.ZodNumber;
3832
+ threshold: z.ZodNumber;
3833
+ projectedValue4w: z.ZodNumber;
3834
+ projectedValue8w: z.ZodNumber;
3835
+ projectedValue12w: z.ZodNumber;
3836
+ thresholdCrossingWeeks: z.ZodNullable<z.ZodNumber>;
3837
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
3838
+ regression: z.ZodObject<{
3839
+ slope: z.ZodNumber;
3840
+ intercept: z.ZodNumber;
3841
+ rSquared: z.ZodNumber;
3842
+ dataPoints: z.ZodNumber;
3843
+ }, "strip", z.ZodTypeAny, {
3844
+ slope: number;
3845
+ intercept: number;
3846
+ rSquared: number;
3847
+ dataPoints: number;
3848
+ }, {
3849
+ slope: number;
3850
+ intercept: number;
3851
+ rSquared: number;
3852
+ dataPoints: number;
3853
+ }>;
3854
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
3855
+ }, "strip", z.ZodTypeAny, {
3856
+ direction: "improving" | "stable" | "declining";
3857
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3858
+ threshold: number;
3859
+ current: number;
3860
+ projectedValue4w: number;
3861
+ projectedValue8w: number;
3862
+ projectedValue12w: number;
3863
+ thresholdCrossingWeeks: number | null;
3864
+ confidence: "high" | "medium" | "low";
3865
+ regression: {
3866
+ slope: number;
3867
+ intercept: number;
3868
+ rSquared: number;
3869
+ dataPoints: number;
3870
+ };
3871
+ }, {
3872
+ direction: "improving" | "stable" | "declining";
3873
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3874
+ threshold: number;
3875
+ current: number;
3876
+ projectedValue4w: number;
3877
+ projectedValue8w: number;
3878
+ projectedValue12w: number;
3879
+ thresholdCrossingWeeks: number | null;
3880
+ confidence: "high" | "medium" | "low";
3881
+ regression: {
3882
+ slope: number;
3883
+ intercept: number;
3884
+ rSquared: number;
3885
+ dataPoints: number;
3886
+ };
3887
+ }>;
3888
+ contributingFeatures: z.ZodArray<z.ZodObject<{
3889
+ name: z.ZodString;
3890
+ specPath: z.ZodString;
3891
+ delta: z.ZodNumber;
3892
+ }, "strip", z.ZodTypeAny, {
3893
+ name: string;
3894
+ delta: number;
3895
+ specPath: string;
3896
+ }, {
3897
+ name: string;
3898
+ delta: number;
3899
+ specPath: string;
3900
+ }>, "many">;
3901
+ }, "strip", z.ZodTypeAny, {
3902
+ baseline: {
3903
+ direction: "improving" | "stable" | "declining";
3904
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3905
+ threshold: number;
3906
+ current: number;
3907
+ projectedValue4w: number;
3908
+ projectedValue8w: number;
3909
+ projectedValue12w: number;
3910
+ thresholdCrossingWeeks: number | null;
3911
+ confidence: "high" | "medium" | "low";
3912
+ regression: {
3913
+ slope: number;
3914
+ intercept: number;
3915
+ rSquared: number;
3916
+ dataPoints: number;
3917
+ };
3918
+ };
3919
+ adjusted: {
3920
+ direction: "improving" | "stable" | "declining";
3921
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3922
+ threshold: number;
3923
+ current: number;
3924
+ projectedValue4w: number;
3925
+ projectedValue8w: number;
3926
+ projectedValue12w: number;
3927
+ thresholdCrossingWeeks: number | null;
3928
+ confidence: "high" | "medium" | "low";
3929
+ regression: {
3930
+ slope: number;
3931
+ intercept: number;
3932
+ rSquared: number;
3933
+ dataPoints: number;
3934
+ };
3935
+ };
3936
+ contributingFeatures: {
3937
+ name: string;
3938
+ delta: number;
3939
+ specPath: string;
3940
+ }[];
3941
+ }, {
3942
+ baseline: {
3943
+ direction: "improving" | "stable" | "declining";
3944
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3945
+ threshold: number;
3946
+ current: number;
3947
+ projectedValue4w: number;
3948
+ projectedValue8w: number;
3949
+ projectedValue12w: number;
3950
+ thresholdCrossingWeeks: number | null;
3951
+ confidence: "high" | "medium" | "low";
3952
+ regression: {
3953
+ slope: number;
3954
+ intercept: number;
3955
+ rSquared: number;
3956
+ dataPoints: number;
3957
+ };
3958
+ };
3959
+ adjusted: {
3960
+ direction: "improving" | "stable" | "declining";
3961
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3962
+ threshold: number;
3963
+ current: number;
3964
+ projectedValue4w: number;
3965
+ projectedValue8w: number;
3966
+ projectedValue12w: number;
3967
+ thresholdCrossingWeeks: number | null;
3968
+ confidence: "high" | "medium" | "low";
3969
+ regression: {
3970
+ slope: number;
3971
+ intercept: number;
3972
+ rSquared: number;
3973
+ dataPoints: number;
3974
+ };
3975
+ };
3976
+ contributingFeatures: {
3977
+ name: string;
3978
+ delta: number;
3979
+ specPath: string;
3980
+ }[];
3981
+ }>;
3982
+ type AdjustedForecast = z.infer<typeof AdjustedForecastSchema>;
3983
+ declare const PredictionWarningSchema: z.ZodObject<{
3984
+ severity: z.ZodEnum<["critical", "warning", "info"]>;
3985
+ category: z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>;
3986
+ message: z.ZodString;
3987
+ weeksUntil: z.ZodNumber;
3988
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
3989
+ contributingFeatures: z.ZodArray<z.ZodString, "many">;
3990
+ }, "strip", z.ZodTypeAny, {
3991
+ message: string;
3992
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3993
+ severity: "warning" | "info" | "critical";
3994
+ confidence: "high" | "medium" | "low";
3995
+ contributingFeatures: string[];
3996
+ weeksUntil: number;
3997
+ }, {
3998
+ message: string;
3999
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4000
+ severity: "warning" | "info" | "critical";
4001
+ confidence: "high" | "medium" | "low";
4002
+ contributingFeatures: string[];
4003
+ weeksUntil: number;
4004
+ }>;
4005
+ type PredictionWarning = z.infer<typeof PredictionWarningSchema>;
4006
+ declare const StabilityForecastSchema: z.ZodObject<{
4007
+ current: z.ZodNumber;
4008
+ projected4w: z.ZodNumber;
4009
+ projected8w: z.ZodNumber;
4010
+ projected12w: z.ZodNumber;
4011
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
4012
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
4013
+ }, "strip", z.ZodTypeAny, {
4014
+ direction: "improving" | "stable" | "declining";
4015
+ current: number;
4016
+ confidence: "high" | "medium" | "low";
4017
+ projected4w: number;
4018
+ projected8w: number;
4019
+ projected12w: number;
4020
+ }, {
4021
+ direction: "improving" | "stable" | "declining";
4022
+ current: number;
4023
+ confidence: "high" | "medium" | "low";
4024
+ projected4w: number;
4025
+ projected8w: number;
4026
+ projected12w: number;
4027
+ }>;
4028
+ type StabilityForecast = z.infer<typeof StabilityForecastSchema>;
4029
+ declare const PredictionResultSchema: z.ZodObject<{
4030
+ generatedAt: z.ZodString;
4031
+ snapshotsUsed: z.ZodNumber;
4032
+ timelineRange: z.ZodObject<{
4033
+ from: z.ZodString;
4034
+ to: z.ZodString;
4035
+ }, "strip", z.ZodTypeAny, {
4036
+ from: string;
4037
+ to: string;
4038
+ }, {
4039
+ from: string;
4040
+ to: string;
4041
+ }>;
4042
+ stabilityForecast: z.ZodObject<{
4043
+ current: z.ZodNumber;
4044
+ projected4w: z.ZodNumber;
4045
+ projected8w: z.ZodNumber;
4046
+ projected12w: z.ZodNumber;
4047
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
4048
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
4049
+ }, "strip", z.ZodTypeAny, {
4050
+ direction: "improving" | "stable" | "declining";
4051
+ current: number;
4052
+ confidence: "high" | "medium" | "low";
4053
+ projected4w: number;
4054
+ projected8w: number;
4055
+ projected12w: number;
4056
+ }, {
4057
+ direction: "improving" | "stable" | "declining";
4058
+ current: number;
4059
+ confidence: "high" | "medium" | "low";
4060
+ projected4w: number;
4061
+ projected8w: number;
4062
+ projected12w: number;
4063
+ }>;
4064
+ categories: z.ZodRecord<z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>, z.ZodObject<{
4065
+ baseline: z.ZodObject<{
4066
+ category: z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>;
4067
+ current: z.ZodNumber;
4068
+ threshold: z.ZodNumber;
4069
+ projectedValue4w: z.ZodNumber;
4070
+ projectedValue8w: z.ZodNumber;
4071
+ projectedValue12w: z.ZodNumber;
4072
+ thresholdCrossingWeeks: z.ZodNullable<z.ZodNumber>;
4073
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
4074
+ regression: z.ZodObject<{
4075
+ slope: z.ZodNumber;
4076
+ intercept: z.ZodNumber;
4077
+ rSquared: z.ZodNumber;
4078
+ dataPoints: z.ZodNumber;
4079
+ }, "strip", z.ZodTypeAny, {
4080
+ slope: number;
4081
+ intercept: number;
4082
+ rSquared: number;
4083
+ dataPoints: number;
4084
+ }, {
4085
+ slope: number;
4086
+ intercept: number;
4087
+ rSquared: number;
4088
+ dataPoints: number;
4089
+ }>;
4090
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
4091
+ }, "strip", z.ZodTypeAny, {
4092
+ direction: "improving" | "stable" | "declining";
4093
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4094
+ threshold: number;
4095
+ current: number;
4096
+ projectedValue4w: number;
4097
+ projectedValue8w: number;
4098
+ projectedValue12w: number;
4099
+ thresholdCrossingWeeks: number | null;
4100
+ confidence: "high" | "medium" | "low";
4101
+ regression: {
4102
+ slope: number;
4103
+ intercept: number;
4104
+ rSquared: number;
4105
+ dataPoints: number;
4106
+ };
4107
+ }, {
4108
+ direction: "improving" | "stable" | "declining";
4109
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4110
+ threshold: number;
4111
+ current: number;
4112
+ projectedValue4w: number;
4113
+ projectedValue8w: number;
4114
+ projectedValue12w: number;
4115
+ thresholdCrossingWeeks: number | null;
4116
+ confidence: "high" | "medium" | "low";
4117
+ regression: {
4118
+ slope: number;
4119
+ intercept: number;
4120
+ rSquared: number;
4121
+ dataPoints: number;
4122
+ };
4123
+ }>;
4124
+ adjusted: z.ZodObject<{
4125
+ category: z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>;
4126
+ current: z.ZodNumber;
4127
+ threshold: z.ZodNumber;
4128
+ projectedValue4w: z.ZodNumber;
4129
+ projectedValue8w: z.ZodNumber;
4130
+ projectedValue12w: z.ZodNumber;
4131
+ thresholdCrossingWeeks: z.ZodNullable<z.ZodNumber>;
4132
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
4133
+ regression: z.ZodObject<{
4134
+ slope: z.ZodNumber;
4135
+ intercept: z.ZodNumber;
4136
+ rSquared: z.ZodNumber;
4137
+ dataPoints: z.ZodNumber;
4138
+ }, "strip", z.ZodTypeAny, {
4139
+ slope: number;
4140
+ intercept: number;
4141
+ rSquared: number;
4142
+ dataPoints: number;
4143
+ }, {
4144
+ slope: number;
4145
+ intercept: number;
4146
+ rSquared: number;
4147
+ dataPoints: number;
4148
+ }>;
4149
+ direction: z.ZodEnum<["improving", "stable", "declining"]>;
4150
+ }, "strip", z.ZodTypeAny, {
4151
+ direction: "improving" | "stable" | "declining";
4152
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4153
+ threshold: number;
4154
+ current: number;
4155
+ projectedValue4w: number;
4156
+ projectedValue8w: number;
4157
+ projectedValue12w: number;
4158
+ thresholdCrossingWeeks: number | null;
4159
+ confidence: "high" | "medium" | "low";
4160
+ regression: {
4161
+ slope: number;
4162
+ intercept: number;
4163
+ rSquared: number;
4164
+ dataPoints: number;
4165
+ };
4166
+ }, {
4167
+ direction: "improving" | "stable" | "declining";
4168
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4169
+ threshold: number;
4170
+ current: number;
4171
+ projectedValue4w: number;
4172
+ projectedValue8w: number;
4173
+ projectedValue12w: number;
4174
+ thresholdCrossingWeeks: number | null;
4175
+ confidence: "high" | "medium" | "low";
4176
+ regression: {
4177
+ slope: number;
4178
+ intercept: number;
4179
+ rSquared: number;
4180
+ dataPoints: number;
4181
+ };
4182
+ }>;
4183
+ contributingFeatures: z.ZodArray<z.ZodObject<{
4184
+ name: z.ZodString;
4185
+ specPath: z.ZodString;
4186
+ delta: z.ZodNumber;
4187
+ }, "strip", z.ZodTypeAny, {
4188
+ name: string;
4189
+ delta: number;
4190
+ specPath: string;
4191
+ }, {
4192
+ name: string;
4193
+ delta: number;
4194
+ specPath: string;
4195
+ }>, "many">;
4196
+ }, "strip", z.ZodTypeAny, {
4197
+ baseline: {
4198
+ direction: "improving" | "stable" | "declining";
4199
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4200
+ threshold: number;
4201
+ current: number;
4202
+ projectedValue4w: number;
4203
+ projectedValue8w: number;
4204
+ projectedValue12w: number;
4205
+ thresholdCrossingWeeks: number | null;
4206
+ confidence: "high" | "medium" | "low";
4207
+ regression: {
4208
+ slope: number;
4209
+ intercept: number;
4210
+ rSquared: number;
4211
+ dataPoints: number;
4212
+ };
4213
+ };
4214
+ adjusted: {
4215
+ direction: "improving" | "stable" | "declining";
4216
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4217
+ threshold: number;
4218
+ current: number;
4219
+ projectedValue4w: number;
4220
+ projectedValue8w: number;
4221
+ projectedValue12w: number;
4222
+ thresholdCrossingWeeks: number | null;
4223
+ confidence: "high" | "medium" | "low";
4224
+ regression: {
4225
+ slope: number;
4226
+ intercept: number;
4227
+ rSquared: number;
4228
+ dataPoints: number;
4229
+ };
4230
+ };
4231
+ contributingFeatures: {
4232
+ name: string;
4233
+ delta: number;
4234
+ specPath: string;
4235
+ }[];
4236
+ }, {
4237
+ baseline: {
4238
+ direction: "improving" | "stable" | "declining";
4239
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4240
+ threshold: number;
4241
+ current: number;
4242
+ projectedValue4w: number;
4243
+ projectedValue8w: number;
4244
+ projectedValue12w: number;
4245
+ thresholdCrossingWeeks: number | null;
4246
+ confidence: "high" | "medium" | "low";
4247
+ regression: {
4248
+ slope: number;
4249
+ intercept: number;
4250
+ rSquared: number;
4251
+ dataPoints: number;
4252
+ };
4253
+ };
4254
+ adjusted: {
4255
+ direction: "improving" | "stable" | "declining";
4256
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4257
+ threshold: number;
4258
+ current: number;
4259
+ projectedValue4w: number;
4260
+ projectedValue8w: number;
4261
+ projectedValue12w: number;
4262
+ thresholdCrossingWeeks: number | null;
4263
+ confidence: "high" | "medium" | "low";
4264
+ regression: {
4265
+ slope: number;
4266
+ intercept: number;
4267
+ rSquared: number;
4268
+ dataPoints: number;
4269
+ };
4270
+ };
4271
+ contributingFeatures: {
4272
+ name: string;
4273
+ delta: number;
4274
+ specPath: string;
4275
+ }[];
4276
+ }>>;
4277
+ warnings: z.ZodArray<z.ZodObject<{
4278
+ severity: z.ZodEnum<["critical", "warning", "info"]>;
4279
+ category: z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>;
4280
+ message: z.ZodString;
4281
+ weeksUntil: z.ZodNumber;
4282
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
4283
+ contributingFeatures: z.ZodArray<z.ZodString, "many">;
4284
+ }, "strip", z.ZodTypeAny, {
4285
+ message: string;
4286
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4287
+ severity: "warning" | "info" | "critical";
4288
+ confidence: "high" | "medium" | "low";
4289
+ contributingFeatures: string[];
4290
+ weeksUntil: number;
4291
+ }, {
4292
+ message: string;
4293
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4294
+ severity: "warning" | "info" | "critical";
4295
+ confidence: "high" | "medium" | "low";
4296
+ contributingFeatures: string[];
4297
+ weeksUntil: number;
4298
+ }>, "many">;
4299
+ }, "strip", z.ZodTypeAny, {
4300
+ categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
4301
+ baseline: {
4302
+ direction: "improving" | "stable" | "declining";
4303
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4304
+ threshold: number;
4305
+ current: number;
4306
+ projectedValue4w: number;
4307
+ projectedValue8w: number;
4308
+ projectedValue12w: number;
4309
+ thresholdCrossingWeeks: number | null;
4310
+ confidence: "high" | "medium" | "low";
4311
+ regression: {
4312
+ slope: number;
4313
+ intercept: number;
4314
+ rSquared: number;
4315
+ dataPoints: number;
4316
+ };
4317
+ };
4318
+ adjusted: {
4319
+ direction: "improving" | "stable" | "declining";
4320
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4321
+ threshold: number;
4322
+ current: number;
4323
+ projectedValue4w: number;
4324
+ projectedValue8w: number;
4325
+ projectedValue12w: number;
4326
+ thresholdCrossingWeeks: number | null;
4327
+ confidence: "high" | "medium" | "low";
4328
+ regression: {
4329
+ slope: number;
4330
+ intercept: number;
4331
+ rSquared: number;
4332
+ dataPoints: number;
4333
+ };
4334
+ };
4335
+ contributingFeatures: {
4336
+ name: string;
4337
+ delta: number;
4338
+ specPath: string;
4339
+ }[];
4340
+ }>>;
4341
+ generatedAt: string;
4342
+ snapshotsUsed: number;
4343
+ timelineRange: {
4344
+ from: string;
4345
+ to: string;
4346
+ };
4347
+ stabilityForecast: {
4348
+ direction: "improving" | "stable" | "declining";
4349
+ current: number;
4350
+ confidence: "high" | "medium" | "low";
4351
+ projected4w: number;
4352
+ projected8w: number;
4353
+ projected12w: number;
4354
+ };
4355
+ warnings: {
4356
+ message: string;
4357
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4358
+ severity: "warning" | "info" | "critical";
4359
+ confidence: "high" | "medium" | "low";
4360
+ contributingFeatures: string[];
4361
+ weeksUntil: number;
4362
+ }[];
4363
+ }, {
4364
+ categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
4365
+ baseline: {
4366
+ direction: "improving" | "stable" | "declining";
4367
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4368
+ threshold: number;
4369
+ current: number;
4370
+ projectedValue4w: number;
4371
+ projectedValue8w: number;
4372
+ projectedValue12w: number;
4373
+ thresholdCrossingWeeks: number | null;
4374
+ confidence: "high" | "medium" | "low";
4375
+ regression: {
4376
+ slope: number;
4377
+ intercept: number;
4378
+ rSquared: number;
4379
+ dataPoints: number;
4380
+ };
4381
+ };
4382
+ adjusted: {
4383
+ direction: "improving" | "stable" | "declining";
4384
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4385
+ threshold: number;
4386
+ current: number;
4387
+ projectedValue4w: number;
4388
+ projectedValue8w: number;
4389
+ projectedValue12w: number;
4390
+ thresholdCrossingWeeks: number | null;
4391
+ confidence: "high" | "medium" | "low";
4392
+ regression: {
4393
+ slope: number;
4394
+ intercept: number;
4395
+ rSquared: number;
4396
+ dataPoints: number;
4397
+ };
4398
+ };
4399
+ contributingFeatures: {
4400
+ name: string;
4401
+ delta: number;
4402
+ specPath: string;
4403
+ }[];
4404
+ }>>;
4405
+ generatedAt: string;
4406
+ snapshotsUsed: number;
4407
+ timelineRange: {
4408
+ from: string;
4409
+ to: string;
4410
+ };
4411
+ stabilityForecast: {
4412
+ direction: "improving" | "stable" | "declining";
4413
+ current: number;
4414
+ confidence: "high" | "medium" | "low";
4415
+ projected4w: number;
4416
+ projected8w: number;
4417
+ projected12w: number;
4418
+ };
4419
+ warnings: {
4420
+ message: string;
4421
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4422
+ severity: "warning" | "info" | "critical";
4423
+ confidence: "high" | "medium" | "low";
4424
+ contributingFeatures: string[];
4425
+ weeksUntil: number;
4426
+ }[];
4427
+ }>;
4428
+ type PredictionResult = z.infer<typeof PredictionResultSchema>;
4429
+ declare const PredictionOptionsSchema: z.ZodObject<{
4430
+ horizon: z.ZodDefault<z.ZodNumber>;
4431
+ includeRoadmap: z.ZodDefault<z.ZodBoolean>;
4432
+ categories: z.ZodOptional<z.ZodArray<z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>, "many">>;
4433
+ thresholds: z.ZodOptional<z.ZodRecord<z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>, z.ZodNumber>>;
4434
+ }, "strip", z.ZodTypeAny, {
4435
+ horizon: number;
4436
+ includeRoadmap: boolean;
4437
+ thresholds?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
4438
+ categories?: ("complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth")[] | undefined;
4439
+ }, {
4440
+ thresholds?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
4441
+ categories?: ("complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth")[] | undefined;
4442
+ horizon?: number | undefined;
4443
+ includeRoadmap?: boolean | undefined;
4444
+ }>;
4445
+ type PredictionOptions = z.infer<typeof PredictionOptionsSchema>;
4446
+
4447
+ /**
4448
+ * Pure math module for weighted linear regression.
4449
+ * No harness type dependencies — independently testable with synthetic data.
4450
+ */
4451
+ interface DataPoint {
4452
+ t: number;
4453
+ value: number;
4454
+ weight: number;
4455
+ }
4456
+ interface RegressionFit {
4457
+ slope: number;
4458
+ intercept: number;
4459
+ rSquared: number;
4460
+ dataPoints: number;
4461
+ }
4462
+ /**
4463
+ * Weighted least squares linear regression.
4464
+ * Fits y = slope * t + intercept, minimizing weighted sum of squared residuals.
4465
+ */
4466
+ declare function weightedLinearRegression(points: DataPoint[]): RegressionFit;
4467
+ /**
4468
+ * Assign recency weights to a time-ordered series of values.
4469
+ * Newest value gets weight 1.0, each older value is multiplied by decay.
4470
+ *
4471
+ * @param values - Time-ordered array of { t, value } (oldest first)
4472
+ * @param decay - Weight decay factor per step (default: 0.85)
4473
+ * @returns DataPoint array with recency weights assigned
4474
+ */
4475
+ declare function applyRecencyWeights(values: Array<{
4476
+ t: number;
4477
+ value: number;
4478
+ }>, decay?: number): DataPoint[];
4479
+ /**
4480
+ * Project a value at future time t using a regression fit.
4481
+ *
4482
+ * @param fit - The regression fit (slope + intercept)
4483
+ * @param t - The time to project to
4484
+ * @returns Projected value
4485
+ */
4486
+ declare function projectValue(fit: RegressionFit, t: number): number;
4487
+ /**
4488
+ * Calculate weeks until projected value crosses a threshold.
4489
+ *
4490
+ * @param fit - The regression fit
4491
+ * @param currentT - Current time point (weeks from first snapshot)
4492
+ * @param threshold - The threshold value to cross
4493
+ * @returns Weeks until crossing, or null if slope <= 0 (improving/stable) or already crossed
4494
+ */
4495
+ declare function weeksUntilThreshold(fit: RegressionFit, currentT: number, threshold: number): number | null;
4496
+ /**
4497
+ * Classify confidence based on R-squared and data point count.
4498
+ *
4499
+ * High: R-squared >= 0.7 AND 5+ data points
4500
+ * Medium: R-squared >= 0.4 AND 3+ data points
4501
+ * Low: anything else
4502
+ *
4503
+ * @param rSquared - Goodness of fit (0-1)
4504
+ * @param dataPoints - Number of data points used
4505
+ * @returns Confidence tier
4506
+ */
4507
+ declare function classifyConfidence(rSquared: number, dataPoints: number): 'high' | 'medium' | 'low';
4508
+
4509
+ /** Configurable coefficients for signal-to-delta mapping */
4510
+ interface EstimatorCoefficients {
4511
+ newFileModuleSize?: number;
4512
+ newFileComplexity?: number;
4513
+ layerViolation?: number;
4514
+ depCoupling?: number;
4515
+ depDepth?: number;
4516
+ phaseComplexity?: number;
4517
+ }
4518
+ /**
4519
+ * SpecImpactEstimator: mechanical extraction of structural signals from spec files.
4520
+ * Applies configurable coefficients to produce per-category metric deltas.
4521
+ *
4522
+ * No LLM dependency -- deterministic, auditable extraction.
4523
+ */
4524
+ declare class SpecImpactEstimator {
4525
+ private readonly rootDir;
4526
+ private readonly coefficients;
4527
+ private readonly layerNames;
4528
+ constructor(rootDir: string, coefficients?: EstimatorCoefficients);
4529
+ /**
4530
+ * Estimate impact of a single spec file.
4531
+ * @param specPath - Relative path from rootDir to the spec file.
4532
+ */
4533
+ estimate(specPath: string): SpecImpactEstimate;
4534
+ /**
4535
+ * Estimate impact for all planned features that have specs.
4536
+ * Skips features with null specs or specs that don't exist on disk.
4537
+ */
4538
+ estimateAll(features: Array<{
4539
+ name: string;
4540
+ spec: string | null;
4541
+ }>): SpecImpactEstimate[];
4542
+ /**
4543
+ * Count file paths in Technical Design sections that don't exist on disk.
4544
+ * Looks for paths in code blocks (```) under ## Technical Design.
4545
+ */
4546
+ private extractNewFileCount;
4547
+ /**
4548
+ * Match layer names from harness.config.json mentioned in the spec.
4549
+ * Returns deduplicated array of matched layer names.
4550
+ */
4551
+ private extractAffectedLayers;
4552
+ /**
4553
+ * Count dependency-related keywords: "import", "depend" (covers depends/dependency),
4554
+ * "package" in dependency context.
4555
+ */
4556
+ private extractNewDependencies;
4557
+ /**
4558
+ * Count H3/H4 headings under "Implementation" or "Implementation Order" sections.
4559
+ */
4560
+ private extractPhaseCount;
4561
+ private computeDeltas;
4562
+ private loadLayerNames;
4563
+ private escapeRegex;
4564
+ }
4565
+
4566
+ /**
4567
+ * PredictionEngine: orchestrates weighted regression over timeline snapshots
4568
+ * to produce per-category forecasts and warnings.
4569
+ *
4570
+ * Supports roadmap-aware adjusted forecasts via SpecImpactEstimator.
4571
+ */
4572
+ declare class PredictionEngine {
4573
+ private readonly rootDir;
4574
+ private readonly timelineManager;
4575
+ private readonly estimator;
4576
+ constructor(rootDir: string, timelineManager: TimelineManager, estimator: SpecImpactEstimator | null);
4577
+ /**
4578
+ * Produce a PredictionResult with per-category forecasts and warnings.
4579
+ * Throws if fewer than 3 snapshots are available.
4580
+ */
4581
+ predict(options?: Partial<PredictionOptions>): PredictionResult;
4582
+ private resolveOptions;
4583
+ private resolveThresholds;
4584
+ /**
4585
+ * Extract time series for a single category from snapshots.
4586
+ * Returns array of { t (weeks from first), value } sorted oldest first.
4587
+ */
4588
+ private extractTimeSeries;
4589
+ /**
4590
+ * Produce a CategoryForecast for a single category using regression.
4591
+ */
4592
+ private forecastCategory;
4593
+ private classifyDirection;
4594
+ private zeroForecast;
4595
+ /**
4596
+ * Generate warnings based on severity rules from spec:
4597
+ * - critical: threshold crossing <= 4w, confidence high or medium
4598
+ * - warning: threshold crossing <= 8w, confidence high or medium
4599
+ * - info: threshold crossing <= 12w, any confidence
4600
+ */
4601
+ private generateWarnings;
4602
+ /**
4603
+ * Compute composite stability forecast by projecting per-category values
4604
+ * forward and computing stability scores at each horizon.
4605
+ */
4606
+ private computeStabilityForecast;
4607
+ private buildMetricsFromForecasts;
4608
+ private medianConfidence;
4609
+ /**
4610
+ * Load roadmap features, estimate spec impacts via the estimator.
4611
+ * Returns null if estimator is null or includeRoadmap is false.
4612
+ */
4613
+ private computeSpecImpacts;
4614
+ }
4615
+
3353
4616
  declare const FailureEntrySchema: z.ZodObject<{
3354
4617
  date: z.ZodString;
3355
4618
  skill: z.ZodString;
@@ -3357,13 +4620,13 @@ declare const FailureEntrySchema: z.ZodObject<{
3357
4620
  description: z.ZodString;
3358
4621
  }, "strip", z.ZodTypeAny, {
3359
4622
  type: string;
3360
- date: string;
3361
4623
  description: string;
4624
+ date: string;
3362
4625
  skill: string;
3363
4626
  }, {
3364
4627
  type: string;
3365
- date: string;
3366
4628
  description: string;
4629
+ date: string;
3367
4630
  skill: string;
3368
4631
  }>;
3369
4632
  type FailureEntry = z.infer<typeof FailureEntrySchema>;
@@ -3426,14 +4689,14 @@ declare const GateResultSchema: z.ZodObject<{
3426
4689
  output: z.ZodOptional<z.ZodString>;
3427
4690
  duration: z.ZodOptional<z.ZodNumber>;
3428
4691
  }, "strip", z.ZodTypeAny, {
3429
- passed: boolean;
3430
4692
  name: string;
4693
+ passed: boolean;
3431
4694
  command: string;
3432
4695
  output?: string | undefined;
3433
4696
  duration?: number | undefined;
3434
4697
  }, {
3435
- passed: boolean;
3436
4698
  name: string;
4699
+ passed: boolean;
3437
4700
  command: string;
3438
4701
  output?: string | undefined;
3439
4702
  duration?: number | undefined;
@@ -3441,8 +4704,8 @@ declare const GateResultSchema: z.ZodObject<{
3441
4704
  }, "strip", z.ZodTypeAny, {
3442
4705
  passed: boolean;
3443
4706
  checks: {
3444
- passed: boolean;
3445
4707
  name: string;
4708
+ passed: boolean;
3446
4709
  command: string;
3447
4710
  output?: string | undefined;
3448
4711
  duration?: number | undefined;
@@ -3450,8 +4713,8 @@ declare const GateResultSchema: z.ZodObject<{
3450
4713
  }, {
3451
4714
  passed: boolean;
3452
4715
  checks: {
3453
- passed: boolean;
3454
4716
  name: string;
4717
+ passed: boolean;
3455
4718
  command: string;
3456
4719
  output?: string | undefined;
3457
4720
  duration?: number | undefined;
@@ -3514,13 +4777,13 @@ declare const HarnessStateSchema: z.ZodObject<{
3514
4777
  description: z.ZodString;
3515
4778
  status: z.ZodEnum<["open", "resolved"]>;
3516
4779
  }, "strip", z.ZodTypeAny, {
3517
- status: "resolved" | "open";
3518
4780
  id: string;
3519
4781
  description: string;
3520
- }, {
3521
4782
  status: "resolved" | "open";
4783
+ }, {
3522
4784
  id: string;
3523
4785
  description: string;
4786
+ status: "resolved" | "open";
3524
4787
  }>, "many">>;
3525
4788
  progress: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["pending", "in_progress", "complete"]>>>;
3526
4789
  lastSession: z.ZodOptional<z.ZodObject<{
@@ -3546,9 +4809,9 @@ declare const HarnessStateSchema: z.ZodObject<{
3546
4809
  decision: string;
3547
4810
  }[];
3548
4811
  blockers: {
3549
- status: "resolved" | "open";
3550
4812
  id: string;
3551
4813
  description: string;
4814
+ status: "resolved" | "open";
3552
4815
  }[];
3553
4816
  schemaVersion: 1;
3554
4817
  position: {
@@ -3570,9 +4833,9 @@ declare const HarnessStateSchema: z.ZodObject<{
3570
4833
  decision: string;
3571
4834
  }[] | undefined;
3572
4835
  blockers?: {
3573
- status: "resolved" | "open";
3574
4836
  id: string;
3575
4837
  description: string;
4838
+ status: "resolved" | "open";
3576
4839
  }[] | undefined;
3577
4840
  position?: {
3578
4841
  task?: string | undefined;
@@ -4109,9 +5372,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
4109
5372
  } | undefined;
4110
5373
  }>>;
4111
5374
  }, "strip", z.ZodTypeAny, {
5375
+ rules: Record<string, "error" | "warning" | "info" | "off">;
4112
5376
  enabled: boolean;
4113
5377
  strict: boolean;
4114
- rules: Record<string, "error" | "warning" | "info" | "off">;
4115
5378
  exclude: string[];
4116
5379
  external?: {
4117
5380
  semgrep?: {
@@ -4123,9 +5386,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
4123
5386
  } | undefined;
4124
5387
  } | undefined;
4125
5388
  }, {
5389
+ rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
4126
5390
  enabled?: boolean | undefined;
4127
5391
  strict?: boolean | undefined;
4128
- rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
4129
5392
  exclude?: string[] | undefined;
4130
5393
  external?: {
4131
5394
  semgrep?: {
@@ -5215,7 +6478,7 @@ declare class GitHubIssuesSyncAdapter implements TrackerSyncAdapter {
5215
6478
  * Mutates `roadmap` in-place (stores new externalIds).
5216
6479
  * Never throws -- errors collected per-feature.
5217
6480
  */
5218
- declare function syncToExternal(roadmap: Roadmap, adapter: TrackerSyncAdapter, _config: TrackerSyncConfig): Promise<SyncResult>;
6481
+ declare function syncToExternal(roadmap: Roadmap, adapter: TrackerSyncAdapter, config: TrackerSyncConfig, prefetchedTickets?: ExternalTicketState[]): Promise<SyncResult>;
5219
6482
  /**
5220
6483
  * Pull execution fields (assignee, status) from external service.
5221
6484
  * - External assignee wins over local assignee
@@ -5224,7 +6487,7 @@ declare function syncToExternal(roadmap: Roadmap, adapter: TrackerSyncAdapter, _
5224
6487
  * Mutates `roadmap` in-place.
5225
6488
  * Never throws -- errors collected per-feature.
5226
6489
  */
5227
- declare function syncFromExternal(roadmap: Roadmap, adapter: TrackerSyncAdapter, config: TrackerSyncConfig, options?: ExternalSyncOptions): Promise<SyncResult>;
6490
+ declare function syncFromExternal(roadmap: Roadmap, adapter: TrackerSyncAdapter, config: TrackerSyncConfig, options?: ExternalSyncOptions, prefetchedTickets?: ExternalTicketState[]): Promise<SyncResult>;
5228
6491
  /**
5229
6492
  * Full bidirectional sync: read roadmap, push, pull, write back.
5230
6493
  * Serialized by in-process mutex.
@@ -5283,12 +6546,12 @@ declare const QuestionSchema: z.ZodObject<{
5283
6546
  default: z.ZodOptional<z.ZodString>;
5284
6547
  }, "strip", z.ZodTypeAny, {
5285
6548
  text: string;
5286
- options?: string[] | undefined;
5287
6549
  default?: string | undefined;
6550
+ options?: string[] | undefined;
5288
6551
  }, {
5289
6552
  text: string;
5290
- options?: string[] | undefined;
5291
6553
  default?: string | undefined;
6554
+ options?: string[] | undefined;
5292
6555
  }>;
5293
6556
  declare const ConfirmationSchema: z.ZodObject<{
5294
6557
  text: z.ZodString;
@@ -5332,12 +6595,12 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
5332
6595
  default: z.ZodOptional<z.ZodString>;
5333
6596
  }, "strip", z.ZodTypeAny, {
5334
6597
  text: string;
5335
- options?: string[] | undefined;
5336
6598
  default?: string | undefined;
6599
+ options?: string[] | undefined;
5337
6600
  }, {
5338
6601
  text: string;
5339
- options?: string[] | undefined;
5340
6602
  default?: string | undefined;
6603
+ options?: string[] | undefined;
5341
6604
  }>>;
5342
6605
  confirmation: z.ZodOptional<z.ZodObject<{
5343
6606
  text: z.ZodString;
@@ -5377,8 +6640,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
5377
6640
  stream?: string | undefined;
5378
6641
  question?: {
5379
6642
  text: string;
5380
- options?: string[] | undefined;
5381
6643
  default?: string | undefined;
6644
+ options?: string[] | undefined;
5382
6645
  } | undefined;
5383
6646
  confirmation?: {
5384
6647
  text: string;
@@ -5398,8 +6661,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
5398
6661
  stream?: string | undefined;
5399
6662
  question?: {
5400
6663
  text: string;
5401
- options?: string[] | undefined;
5402
6664
  default?: string | undefined;
6665
+ options?: string[] | undefined;
5403
6666
  } | undefined;
5404
6667
  confirmation?: {
5405
6668
  text: string;
@@ -5664,4 +6927,4 @@ declare function parseCCRecords(): UsageRecord[];
5664
6927
  */
5665
6928
  declare const VERSION = "0.15.0";
5666
6929
 
5667
- export { AGENT_DESCRIPTORS, ARCHITECTURE_DESCRIPTOR, type AST, type ActionContext, type ActionEvent, type ActionEventHandler, type ActionEventType, type ActionResult, type ActionSink, type ActionTracker, type ActionType, type AgentAction, AgentActionEmitter, type AgentExecutor, type AgentMapLink, type AgentMapSection, type AgentMapValidation, type AgentProcess, type AgentReviewResult, type AgentType, type AgentsMapConfig, ArchBaseline, ArchBaselineManager, ArchConfig, ArchDiffResult, ArchMetricCategory, BUG_DETECTION_DESCRIPTOR, type BaseError, type Baseline, BaselineManager, type BaselinesFile, type BenchmarkResult, type BenchmarkRunOptions, BenchmarkRunner, type BlueprintData, BlueprintGenerator, type BlueprintModule, type BlueprintOptions, type BoundaryDefinition, type BoundaryValidation, type BoundaryValidator, type BoundaryViolation, type BrokenLink, type BudgetedLearningsOptions, type Bundle, type BundleConstraints, BundleConstraintsSchema, BundleSchema, CACHE_TTL_MS, COMPLIANCE_DESCRIPTOR, type ChangeType, type ChangedFile, ChecklistBuilder, type CircularDependency, CircularDepsCollector, type CircularDepsResult, type CleanupFinding, type CodeBlock, type CodeChanges, type CodePattern, type CodeReference, type CodeSymbol, type CodebaseSnapshot, Collector, type CommentedCodeBlock, type CommitFormat, type CommitHistoryEntry, type CommitValidation, ComplexityCollector, type ComplexityConfig, type ComplexityReport, type ComplexityThresholds, type ComplexityViolation, type ConfigError, type ConfigPattern, type Confirmation, ConfirmationSchema, type ConflictReport, ConsoleSink, type ConstraintError, type ConstraintNodeStore, ConstraintRule, type Content, ContentPipeline, type ContextBundle, type ContextError, type ContextFile, type ContextFilterResult, type ContextScopeOptions, type Contributions, ContributionsSchema, type Convention, CouplingCollector, type CouplingConfig, type CouplingReport, type CouplingThresholds, type CouplingViolation, type CoverageOptions, type CoverageReport, type CriticalPathEntry, CriticalPathResolver, type CriticalPathSet, type CustomRule, type CustomRuleResult, DEFAULT_PROVIDER_TIERS, DEFAULT_SECURITY_CONFIG, DEFAULT_STATE, DEFAULT_STREAM_INDEX, DESTRUCTIVE_BASH, type DeadCodeConfig, type DeadCodeReport, type DeadExport, type DeadFile, type DeadInternal, type DeduplicateFindingsOptions, DepDepthCollector, type DependencyEdge, type DependencyGraph, type DependencyValidation, type DependencyViolation, type DetectStaleResult, type DiffInfo, type DocumentationDrift, type DocumentationFile, type DocumentationGap, type DriftConfig, type DriftReport, EXTENSION_MAP, type EligibilityResult, type EmitEventInput, type EmitEventOptions, type EmitEventResult, type EmitInteractionInput, EmitInteractionInputSchema, EntropyAnalyzer, type EntropyConfig, EntropyConfigSchema, type EntropyError, type EntropyReport, type EventType, type EvidenceCoverageReport, ExclusionSet, type ExecutorHealth, type Export, type ExportMap, type ExternalSyncOptions, type FailureEntry, FailureEntrySchema, type FallbackPricingFile, type FanOutOptions, type FeedbackAgentConfig, type FeedbackConfig, type FeedbackError$1 as FeedbackError, type FileCategory, FileSink, type FindingSeverity, type Fix, type FixConfig, type FixResult, type FixType, ForbiddenImportCollector, type ForbiddenImportViolation, type ForbiddenPattern, type GateConfig, GateConfigSchema, type GateResult, GateResultSchema, type GenerationSection, type GitHubInlineComment, GitHubIssuesSyncAdapter, type GraphAdapter, type GraphComplexityData, type GraphCouplingData, type GraphCoverageData, type GraphCriticalPathData, type GraphDependencyData, type GraphHarnessCheckData, type GraphImpactData, type Handoff, HandoffSchema, type HarnessState, HarnessStateSchema, type HealthCheckResult, type Hotspot, type HotspotContext, type Import, type InjectionFinding, type InjectionPattern, type InjectionSeverity, type InlineReference, type IntegrityReport, type InteractionType, InteractionTypeSchema, type InternalSymbol, type JSDocComment, LITELLM_PRICING_URL, type LanguageParser, type Layer, type LayerConfig, LayerViolationCollector, type LearningPattern, type LearningsFrontmatter, type LearningsIndexEntry, type LiteLLMModelEntry, type LiteLLMPricingData, type LoadEventsOptions, type Lockfile, type LockfilePackage, LockfilePackageSchema, LockfileSchema, type LogEntry, type LogFilter, type Manifest, ManifestSchema, type MechanicalCheckOptions, type MechanicalCheckResult, type MechanicalCheckStatus, type MechanicalFinding, type MergeResult, type Metric, MetricResult, type ModelProvider, type ModelTier, type ModelTierConfig, type ModuleDependency, ModuleSizeCollector, NoOpExecutor, NoOpSink, NoOpTelemetryAdapter, type OrphanedDep, type OutlineResult, type ParseError, type ParsedFile, type PatternConfig, PatternConfigSchema, type PatternMatch, type PatternReport, type PatternViolation, type PeerReview, type PeerReviewOptions, type PilotScoringOptions, type PipelineContext, type PipelineFlags, type PipelineOptions, type PipelineResult, type PrMetadata, type PricingCacheFile, type PricingDataset, type PriorReview, ProjectScanner, type PromoteResult, type ProviderDefaults, type PruneResult, type Question, QuestionSchema, REQUIRED_SECTIONS, type ReachabilityNode, RegressionDetector, type RegressionReport, type RegressionResult, type ReviewAgentDescriptor, type ReviewAssessment, type ReviewChecklist, type ReviewComment, type ReviewContext, type ReviewDomain, type ReviewFinding, type ReviewItem, type ReviewOutputOptions, type ReviewPipelineResult, type ReviewStrength, type RuleOverride, RuleRegistry, type RunCIChecksInput, type RunPipelineOptions, SECURITY_DESCRIPTOR, STALENESS_WARNING_DAYS, STATUS_RANK, type SafetyLevel, type ScanConfigFileResult, type ScanConfigFinding, type ScanConfigResult, type ScanResult, type ScoredCandidate, type SearchMatch, type SearchResult, type SecurityCategory, type SecurityConfidence, type SecurityConfig, SecurityConfigSchema, type SecurityFinding, type SecurityRule, SecurityScanner, type SecuritySeverity, type SelfReviewConfig, type SessionSummaryData, SharableBoundaryConfigSchema, SharableForbiddenImportSchema, SharableLayerSchema, SharableSecurityRulesSchema, type SizeBudgetConfig, type SizeBudgetReport, type SizeBudgetViolation, type SkillEvent, SkillEventSchema, type SkillExecutor, type SourceFile, type Span, type SpanEvent, type StaleConstraint, type StepExecutor, type StreamIndex, StreamIndexSchema, type StreamInfo, StreamInfoSchema, type StructureValidation, type Suggestion, type SuggestionReport, type SupportedLanguage, type SuppressionRecord, type SymbolKind, type SyncChange, type SyncOptions, type TaintCheckResult, type TaintFinding, type TaintState, type TelemetryAdapter, type TelemetryHealth, ThresholdConfig, type TimeRange, type TokenBudget, type TokenBudgetOverrides, type Trace, type TrackerSyncAdapter, type Transition, TransitionSchema, type TurnExecutor, TypeScriptParser, type UnfoldResult, type UnusedImport, type UpdateCheckState, VERSION, type ValidateFindingsOptions, type ValidationError, type WorkflowPhase, addProvenance, agentConfigRules, aggregateByDay, aggregateBySession, analyzeDiff, analyzeLearningPatterns, appendFailure, appendLearning, appendSessionEntry, applyFixes, applyHotspotDowngrade, applySyncChanges, archiveFailures, archiveLearnings, archiveSession, archiveStream, assignFeature, buildDependencyGraph, buildExclusionSet, buildSnapshot, calculateCost, checkDocCoverage, checkEligibility, checkEvidenceCoverage, checkTaint, classifyFinding, clearEventHashCache, clearFailuresCache, clearLearningsCache, clearTaint, computeOverallSeverity, computeScanExitCode, configureFeedback, constraintRuleId, contextBudget, contextFilter, countLearningEntries, createBoundaryValidator, createCommentedCodeFixes, createError, createFixes, createForbiddenImportFixes, createOrphanedDepFixes, createParseError, createSelfReview, createStream, cryptoRules, deduplicateCleanupFindings, deduplicateFindings, deepMergeConstraints, defaultCollectors, defineLayer, deserializationRules, detectChangeType, detectCircularDeps, detectCircularDepsInFiles, detectComplexityViolations, detectCouplingViolations, detectDeadCode, detectDocDrift, detectLanguage, detectPatternViolations, detectSizeBudgetViolations, detectStack, detectStaleConstraints, determineAssessment, diff, emitEvent, executeWorkflow, expressRules, extractBundle, extractIndexEntry, extractMarkdownLinks, extractSections, fanOutReview, formatEventTimeline, formatFindingBlock, formatGitHubComment, formatGitHubSummary, formatOutline, formatTerminalOutput, fullSync, generateAgentsMap, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getInjectionPatterns, getModelPrice, getOutline, getParser, getPhaseCategories, getStreamForBranch, getTaintFilePath, getUpdateNotification, goRules, injectionRules, insecureDefaultsRules, isDuplicateFinding, isRegression, isSmallSuggestion, isUpdateCheckEnabled, listActiveSessions, listStreams, listTaintedSessions, loadBudgetedLearnings, loadEvents, loadFailures, loadHandoff, loadIndexEntries, loadPricingData, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, logAgentAction, mapInjectionFindings, mapSecurityFindings, mapSecuritySeverity, mcpRules, migrateToStreams, networkRules, nodeRules, parseCCRecords, parseDateFromEntry, parseDiff, parseFile, parseFrontmatter, parseHarnessIgnore, parseLiteLLMData, parseManifest, parseRoadmap, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, promoteSessionLearnings, pruneLearnings, reactRules, readCheckState, readCostRecords, readLockfile, readSessionSection, readSessionSections, readTaint, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resetParserCache, resolveFileToLayer, resolveModelTier, resolveReverseStatus, resolveRuleSeverity, resolveSessionDir, resolveStreamPath, resolveThresholds, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scanForInjection, scopeContext, scoreRoadmapCandidates, searchSymbols, secretRules, serializeRoadmap, setActiveStream, sharpEdgesRules, shouldRunCheck, spawnBackgroundCheck, syncConstraintNodes, syncFromExternal, syncRoadmap, syncToExternal, tagUncitedFindings, touchStream, trackAction, unfoldRange, unfoldSymbol, updateSessionEntryStatus, updateSessionIndex, validateAgentsMap, validateBoundaries, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, violationId, writeConfig, writeLockfile, writeSessionSummary, writeTaint, xssRules };
6930
+ export { AGENT_DESCRIPTORS, ARCHITECTURE_DESCRIPTOR, type AST, type ActionContext, type ActionEvent, type ActionEventHandler, type ActionEventType, type ActionResult, type ActionSink, type ActionTracker, type ActionType, type AdjustedForecast, AdjustedForecastSchema, type AgentAction, AgentActionEmitter, type AgentExecutor, type AgentMapLink, type AgentMapSection, type AgentMapValidation, type AgentProcess, type AgentReviewResult, type AgentType, type AgentsMapConfig, ArchBaseline, ArchBaselineManager, ArchConfig, ArchDiffResult, ArchMetricCategory, BUG_DETECTION_DESCRIPTOR, type BaseError, type Baseline, BaselineManager, type BaselinesFile, type BenchmarkResult, type BenchmarkRunOptions, BenchmarkRunner, type BlueprintData, BlueprintGenerator, type BlueprintModule, type BlueprintOptions, type BoundaryDefinition, type BoundaryValidation, type BoundaryValidator, type BoundaryViolation, type BrokenLink, type BudgetedLearningsOptions, type Bundle, type BundleConstraints, BundleConstraintsSchema, BundleSchema, CACHE_TTL_MS, COMPLIANCE_DESCRIPTOR, type CategoryForecast, CategoryForecastSchema, CategorySnapshotSchema, type ChangeType, type ChangedFile, ChecklistBuilder, type CircularDependency, CircularDepsCollector, type CircularDepsResult, type CleanupFinding, type CodeBlock, type CodeChanges, type CodePattern, type CodeReference, type CodeSymbol, type CodebaseSnapshot, Collector, type CommentedCodeBlock, type CommitFormat, type CommitHistoryEntry, type CommitValidation, ComplexityCollector, type ComplexityConfig, type ComplexityReport, type ComplexityThresholds, type ComplexityViolation, type ConfidenceTier, ConfidenceTierSchema, type ConfigError, type ConfigPattern, type Confirmation, ConfirmationSchema, type ConflictReport, ConsoleSink, type ConstraintError, type ConstraintNodeStore, ConstraintRule, type Content, ContentPipeline, type ContextBundle, type ContextError, type ContextFile, type ContextFilterResult, type ContextScopeOptions, ContributingFeatureSchema, type Contributions, ContributionsSchema, type Convention, CouplingCollector, type CouplingConfig, type CouplingReport, type CouplingThresholds, type CouplingViolation, type CoverageOptions, type CoverageReport, type CriticalPathEntry, CriticalPathResolver, type CriticalPathSet, type CustomRule, type CustomRuleResult, DEFAULT_PROVIDER_TIERS, DEFAULT_SECURITY_CONFIG, DEFAULT_STABILITY_THRESHOLDS, DEFAULT_STATE, DEFAULT_STREAM_INDEX, DESTRUCTIVE_BASH, type DataPoint, type DeadCodeConfig, type DeadCodeReport, type DeadExport, type DeadFile, type DeadInternal, type DeduplicateFindingsOptions, DepDepthCollector, type DependencyEdge, type DependencyGraph, type DependencyValidation, type DependencyViolation, type DetectStaleResult, type DiffInfo, type Direction, DirectionSchema, type DocumentationDrift, type DocumentationFile, type DocumentationGap, type DriftConfig, type DriftReport, EXTENSION_MAP, type EligibilityResult, type EmitEventInput, type EmitEventOptions, type EmitEventResult, type EmitInteractionInput, EmitInteractionInputSchema, EntropyAnalyzer, type EntropyConfig, EntropyConfigSchema, type EntropyError, type EntropyReport, type EstimatorCoefficients, type EventType, type EvidenceCoverageReport, ExclusionSet, type ExecutorHealth, type Export, type ExportMap, type ExternalSyncOptions, type FailureEntry, FailureEntrySchema, type FallbackPricingFile, type FanOutOptions, type FeedbackAgentConfig, type FeedbackConfig, type FeedbackError$1 as FeedbackError, type FileCategory, FileSink, type FindingSeverity, type Fix, type FixConfig, type FixResult, type FixType, ForbiddenImportCollector, type ForbiddenImportViolation, type ForbiddenPattern, type GateConfig, GateConfigSchema, type GateResult, GateResultSchema, type GenerationSection, type GitHubInlineComment, GitHubIssuesSyncAdapter, type GraphAdapter, type GraphComplexityData, type GraphCouplingData, type GraphCoverageData, type GraphCriticalPathData, type GraphDependencyData, type GraphHarnessCheckData, type GraphImpactData, type Handoff, HandoffSchema, type HarnessState, HarnessStateSchema, type HealthCheckResult, type Hotspot, type HotspotContext, type Import, type InjectionFinding, type InjectionPattern, type InjectionSeverity, type InlineReference, type IntegrityReport, type InteractionType, InteractionTypeSchema, type InternalSymbol, type JSDocComment, LITELLM_PRICING_URL, type LanguageParser, type Layer, type LayerConfig, LayerViolationCollector, type LearningPattern, type LearningsFrontmatter, type LearningsIndexEntry, type LiteLLMModelEntry, type LiteLLMPricingData, type LoadEventsOptions, type Lockfile, type LockfilePackage, LockfilePackageSchema, LockfileSchema, type LogEntry, type LogFilter, type Manifest, ManifestSchema, type MechanicalCheckOptions, type MechanicalCheckResult, type MechanicalCheckStatus, type MechanicalFinding, type MergeResult, type Metric, MetricResult, type ModelProvider, type ModelTier, type ModelTierConfig, type ModuleDependency, ModuleSizeCollector, NoOpExecutor, NoOpSink, NoOpTelemetryAdapter, type OrphanedDep, type OutlineResult, type ParseError, type ParsedFile, type PatternConfig, PatternConfigSchema, type PatternMatch, type PatternReport, type PatternViolation, type PeerReview, type PeerReviewOptions, type PilotScoringOptions, type PipelineContext, type PipelineFlags, type PipelineOptions, type PipelineResult, type PrMetadata, PredictionEngine, type PredictionOptions, PredictionOptionsSchema, type RegressionResult as PredictionRegressionResult, RegressionResultSchema as PredictionRegressionResultSchema, type PredictionResult, PredictionResultSchema, type PredictionWarning, PredictionWarningSchema, type PricingCacheFile, type PricingDataset, type PriorReview, ProjectScanner, type PromoteResult, type ProviderDefaults, type PruneResult, type Question, QuestionSchema, REQUIRED_SECTIONS, type ReachabilityNode, RegressionDetector, type RegressionFit, type RegressionReport, type RegressionResult$1 as RegressionResult, type ReviewAgentDescriptor, type ReviewAssessment, type ReviewChecklist, type ReviewComment, type ReviewContext, type ReviewDomain, type ReviewFinding, type ReviewItem, type ReviewOutputOptions, type ReviewPipelineResult, type ReviewStrength, type RuleOverride, RuleRegistry, type RunCIChecksInput, type RunPipelineOptions, SECURITY_DESCRIPTOR, STALENESS_WARNING_DAYS, STATUS_RANK, type SafetyLevel, type ScanConfigFileResult, type ScanConfigFinding, type ScanConfigResult, type ScanResult, type ScoredCandidate, type SearchMatch, type SearchResult, type SecurityCategory, type SecurityConfidence, type SecurityConfig, SecurityConfigSchema, type SecurityFinding, type SecurityRule, SecurityScanner, type SecuritySeverity, type SelfReviewConfig, type SessionSummaryData, SharableBoundaryConfigSchema, SharableForbiddenImportSchema, SharableLayerSchema, SharableSecurityRulesSchema, type SizeBudgetConfig, type SizeBudgetReport, type SizeBudgetViolation, type SkillEvent, SkillEventSchema, type SkillExecutor, type SourceFile, type Span, type SpanEvent, type SpecImpactEstimate, SpecImpactEstimateSchema, SpecImpactEstimator, SpecImpactSignalsSchema, type StabilityForecast, StabilityForecastSchema, type StaleConstraint, type StepExecutor, type StreamIndex, StreamIndexSchema, type StreamInfo, StreamInfoSchema, type StructureValidation, type Suggestion, type SuggestionReport, type SupportedLanguage, type SuppressionRecord, type SymbolKind, type SyncChange, type SyncOptions, type TaintCheckResult, type TaintFinding, type TaintState, type TelemetryAdapter, type TelemetryHealth, ThresholdConfig, type TimeRange, type CategorySnapshot as TimelineCategorySnapshot, type TimelineFile, TimelineFileSchema, TimelineManager, type TimelineSnapshot, TimelineSnapshotSchema, type TokenBudget, type TokenBudgetOverrides, type Trace, type TrackerSyncAdapter, type Transition, TransitionSchema, type TrendLine, TrendLineSchema, type TrendResult, TrendResultSchema, type TurnExecutor, TypeScriptParser, type UnfoldResult, type UnusedImport, type UpdateCheckState, VERSION, type ValidateFindingsOptions, type ValidationError, type WorkflowPhase, addProvenance, agentConfigRules, aggregateByDay, aggregateBySession, analyzeDiff, analyzeLearningPatterns, appendFailure, appendLearning, appendSessionEntry, applyFixes, applyHotspotDowngrade, applyRecencyWeights, applySyncChanges, archiveFailures, archiveLearnings, archiveSession, archiveStream, assignFeature, buildDependencyGraph, buildExclusionSet, buildSnapshot, calculateCost, checkDocCoverage, checkEligibility, checkEvidenceCoverage, checkTaint, classifyConfidence, classifyFinding, clearEventHashCache, clearFailuresCache, clearLearningsCache, clearTaint, computeOverallSeverity, computeScanExitCode, configureFeedback, constraintRuleId, contextBudget, contextFilter, countLearningEntries, createBoundaryValidator, createCommentedCodeFixes, createError, createFixes, createForbiddenImportFixes, createOrphanedDepFixes, createParseError, createSelfReview, createStream, cryptoRules, deduplicateCleanupFindings, deduplicateFindings, deepMergeConstraints, defaultCollectors, defineLayer, deserializationRules, detectChangeType, detectCircularDeps, detectCircularDepsInFiles, detectComplexityViolations, detectCouplingViolations, detectDeadCode, detectDocDrift, detectLanguage, detectPatternViolations, detectSizeBudgetViolations, detectStack, detectStaleConstraints, determineAssessment, diff, emitEvent, executeWorkflow, expressRules, extractBundle, extractIndexEntry, extractMarkdownLinks, extractSections, fanOutReview, formatEventTimeline, formatFindingBlock, formatGitHubComment, formatGitHubSummary, formatOutline, formatTerminalOutput, fullSync, generateAgentsMap, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getInjectionPatterns, getModelPrice, getOutline, getParser, getPhaseCategories, getStreamForBranch, getTaintFilePath, getUpdateNotification, goRules, injectionRules, insecureDefaultsRules, isDuplicateFinding, isRegression, isSmallSuggestion, isUpdateCheckEnabled, listActiveSessions, listStreams, listTaintedSessions, loadBudgetedLearnings, loadEvents, loadFailures, loadHandoff, loadIndexEntries, loadPricingData, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, logAgentAction, mapInjectionFindings, mapSecurityFindings, mapSecuritySeverity, mcpRules, migrateToStreams, networkRules, nodeRules, parseCCRecords, parseDateFromEntry, parseDiff, parseFile, parseFrontmatter, parseHarnessIgnore, parseLiteLLMData, parseManifest, parseRoadmap, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, projectValue, promoteSessionLearnings, pruneLearnings, reactRules, readCheckState, readCostRecords, readLockfile, readSessionSection, readSessionSections, readTaint, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resetParserCache, resolveFileToLayer, resolveModelTier, resolveReverseStatus, resolveRuleSeverity, resolveSessionDir, resolveStreamPath, resolveThresholds, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scanForInjection, scopeContext, scoreRoadmapCandidates, searchSymbols, secretRules, serializeRoadmap, setActiveStream, sharpEdgesRules, shouldRunCheck, spawnBackgroundCheck, syncConstraintNodes, syncFromExternal, syncRoadmap, syncToExternal, tagUncitedFindings, touchStream, trackAction, unfoldRange, unfoldSymbol, updateSessionEntryStatus, updateSessionIndex, validateAgentsMap, validateBoundaries, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, violationId, weeksUntilThreshold, weightedLinearRegression, writeConfig, writeLockfile, writeSessionSummary, writeTaint, xssRules };