@harness-engineering/core 0.21.1 → 0.21.2

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.ts 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-D20x48U9.js';
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.js';
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.js';
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.js';
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
- name: string;
598
597
  version: string;
598
+ name: string;
599
599
  include: string[];
600
600
  keywords: string[];
601
- layers?: Record<string, string[]> | undefined;
602
601
  description?: string | undefined;
602
+ layers?: Record<string, 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
- name: string;
612
611
  version: string;
612
+ name: string;
613
613
  include: string[];
614
- layers?: Record<string, string[]> | undefined;
615
614
  description?: string | undefined;
615
+ layers?: Record<string, 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
- name: string;
751
750
  version: string;
751
+ name: string;
752
752
  include: string[];
753
753
  keywords: string[];
754
- layers?: Record<string, string[]> | undefined;
755
754
  description?: string | undefined;
755
+ layers?: Record<string, 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
- name: string;
765
764
  version: string;
765
+ name: string;
766
766
  include: string[];
767
- layers?: Record<string, string[]> | undefined;
768
767
  description?: string | undefined;
768
+ layers?: Record<string, 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
- name: string;
875
874
  version: string;
875
+ name: string;
876
876
  manifest: {
877
- name: string;
878
877
  version: string;
878
+ name: string;
879
879
  include: string[];
880
880
  keywords: string[];
881
- layers?: Record<string, string[]> | undefined;
882
881
  description?: string | undefined;
882
+ layers?: Record<string, 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
- name: string;
918
917
  version: string;
918
+ name: string;
919
919
  manifest: {
920
- name: string;
921
920
  version: string;
921
+ name: string;
922
922
  include: string[];
923
- layers?: Record<string, string[]> | undefined;
924
923
  description?: string | undefined;
924
+ layers?: Record<string, 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
- source: string;
974
973
  version: string;
974
+ source: 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
- source: string;
982
981
  version: string;
982
+ source: 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
- source: string;
1002
1001
  version: string;
1002
+ source: 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
- source: string;
1010
1009
  version: string;
1010
+ source: 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
- source: string;
1020
1019
  version: string;
1020
+ source: 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
- source: string;
1032
1031
  version: string;
1032
+ source: 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
- source: string;
1044
1043
  version: string;
1044
+ source: 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
- source: string;
1056
1055
  version: string;
1056
+ source: string;
1057
1057
  installedAt: string;
1058
1058
  contributions?: Record<string, unknown> | null | undefined;
1059
1059
  resolved?: string | undefined;
@@ -1728,25 +1728,21 @@ declare class EntropyAnalyzer {
1728
1728
  */
1729
1729
  declare function buildSnapshot(config: EntropyConfig): Promise<Result<CodebaseSnapshot, EntropyError>>;
1730
1730
 
1731
- /**
1732
- * Detect documentation drift in a codebase.
1733
- * When graphDriftData is provided, uses graph-derived edges instead of snapshot-based analysis.
1734
- */
1735
- declare function detectDocDrift(snapshot: CodebaseSnapshot, config?: Partial<DriftConfig>, graphDriftData?: {
1731
+ type GraphDriftData = {
1736
1732
  staleEdges: Array<{
1737
1733
  docNodeId: string;
1738
1734
  codeNodeId: string;
1739
1735
  edgeType: string;
1740
1736
  }>;
1741
1737
  missingTargets: string[];
1742
- }): Promise<Result<DriftReport, EntropyError>>;
1743
-
1738
+ };
1744
1739
  /**
1745
- * Detect dead code in a codebase snapshot.
1746
- * Analyzes exports, files, imports, and internal symbols to find unused code.
1747
- * When graphDeadCodeData is provided, uses graph-derived reachability instead of snapshot-based BFS.
1740
+ * Detect documentation drift in a codebase.
1741
+ * When graphDriftData is provided, uses graph-derived edges instead of snapshot-based analysis.
1748
1742
  */
1749
- declare function detectDeadCode(snapshot: CodebaseSnapshot, graphDeadCodeData?: {
1743
+ declare function detectDocDrift(snapshot: CodebaseSnapshot, config?: Partial<DriftConfig>, graphDriftData?: GraphDriftData): Promise<Result<DriftReport, EntropyError>>;
1744
+
1745
+ type GraphDeadCodeData = {
1750
1746
  reachableNodeIds: Set<string> | string[];
1751
1747
  unreachableNodes: Array<{
1752
1748
  id: string;
@@ -1754,7 +1750,8 @@ declare function detectDeadCode(snapshot: CodebaseSnapshot, graphDeadCodeData?:
1754
1750
  name: string;
1755
1751
  path?: string;
1756
1752
  }>;
1757
- }): Promise<Result<DeadCodeReport, EntropyError>>;
1753
+ };
1754
+ declare function detectDeadCode(snapshot: CodebaseSnapshot, graphDeadCodeData?: GraphDeadCodeData): Promise<Result<DeadCodeReport, EntropyError>>;
1758
1755
 
1759
1756
  /**
1760
1757
  * Detect pattern violations across a codebase
@@ -1924,12 +1921,12 @@ declare const PatternConfigSchema: z.ZodObject<{
1924
1921
  match: z.ZodString;
1925
1922
  convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
1926
1923
  }, "strip", z.ZodTypeAny, {
1927
- match: string;
1928
1924
  type: "naming";
1925
+ match: string;
1929
1926
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
1930
1927
  }, {
1931
- match: string;
1932
1928
  type: "naming";
1929
+ match: string;
1933
1930
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
1934
1931
  }>, z.ZodObject<{
1935
1932
  type: z.ZodLiteral<"max-exports">;
@@ -1961,10 +1958,10 @@ declare const PatternConfigSchema: z.ZodObject<{
1961
1958
  }>]>;
1962
1959
  message: z.ZodOptional<z.ZodString>;
1963
1960
  }, "strip", z.ZodTypeAny, {
1961
+ severity: "error" | "warning";
1962
+ description: string;
1964
1963
  files: string[];
1965
1964
  name: string;
1966
- description: string;
1967
- severity: "error" | "warning";
1968
1965
  rule: {
1969
1966
  type: "must-export";
1970
1967
  names: string[];
@@ -1982,8 +1979,8 @@ declare const PatternConfigSchema: z.ZodObject<{
1982
1979
  type: "no-import";
1983
1980
  from: string;
1984
1981
  } | {
1985
- match: string;
1986
1982
  type: "naming";
1983
+ match: string;
1987
1984
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
1988
1985
  } | {
1989
1986
  type: "max-exports";
@@ -1997,10 +1994,10 @@ declare const PatternConfigSchema: z.ZodObject<{
1997
1994
  };
1998
1995
  message?: string | undefined;
1999
1996
  }, {
1997
+ severity: "error" | "warning";
1998
+ description: string;
2000
1999
  files: string[];
2001
2000
  name: string;
2002
- description: string;
2003
- severity: "error" | "warning";
2004
2001
  rule: {
2005
2002
  type: "must-export";
2006
2003
  names: string[];
@@ -2018,8 +2015,8 @@ declare const PatternConfigSchema: z.ZodObject<{
2018
2015
  type: "no-import";
2019
2016
  from: string;
2020
2017
  } | {
2021
- match: string;
2022
2018
  type: "naming";
2019
+ match: string;
2023
2020
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2024
2021
  } | {
2025
2022
  type: "max-exports";
@@ -2037,10 +2034,10 @@ declare const PatternConfigSchema: z.ZodObject<{
2037
2034
  ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2038
2035
  }, "strip", z.ZodTypeAny, {
2039
2036
  patterns: {
2037
+ severity: "error" | "warning";
2038
+ description: string;
2040
2039
  files: string[];
2041
2040
  name: string;
2042
- description: string;
2043
- severity: "error" | "warning";
2044
2041
  rule: {
2045
2042
  type: "must-export";
2046
2043
  names: string[];
@@ -2058,8 +2055,8 @@ declare const PatternConfigSchema: z.ZodObject<{
2058
2055
  type: "no-import";
2059
2056
  from: string;
2060
2057
  } | {
2061
- match: string;
2062
2058
  type: "naming";
2059
+ match: string;
2063
2060
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2064
2061
  } | {
2065
2062
  type: "max-exports";
@@ -2077,10 +2074,10 @@ declare const PatternConfigSchema: z.ZodObject<{
2077
2074
  ignoreFiles?: string[] | undefined;
2078
2075
  }, {
2079
2076
  patterns: {
2077
+ severity: "error" | "warning";
2078
+ description: string;
2080
2079
  files: string[];
2081
2080
  name: string;
2082
- description: string;
2083
- severity: "error" | "warning";
2084
2081
  rule: {
2085
2082
  type: "must-export";
2086
2083
  names: string[];
@@ -2098,8 +2095,8 @@ declare const PatternConfigSchema: z.ZodObject<{
2098
2095
  type: "no-import";
2099
2096
  from: string;
2100
2097
  } | {
2101
- match: string;
2102
2098
  type: "naming";
2099
+ match: string;
2103
2100
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2104
2101
  } | {
2105
2102
  type: "max-exports";
@@ -2218,12 +2215,12 @@ declare const EntropyConfigSchema: z.ZodObject<{
2218
2215
  match: z.ZodString;
2219
2216
  convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
2220
2217
  }, "strip", z.ZodTypeAny, {
2221
- match: string;
2222
2218
  type: "naming";
2219
+ match: string;
2223
2220
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2224
2221
  }, {
2225
- match: string;
2226
2222
  type: "naming";
2223
+ match: string;
2227
2224
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2228
2225
  }>, z.ZodObject<{
2229
2226
  type: z.ZodLiteral<"max-exports">;
@@ -2255,10 +2252,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2255
2252
  }>]>;
2256
2253
  message: z.ZodOptional<z.ZodString>;
2257
2254
  }, "strip", z.ZodTypeAny, {
2255
+ severity: "error" | "warning";
2256
+ description: string;
2258
2257
  files: string[];
2259
2258
  name: string;
2260
- description: string;
2261
- severity: "error" | "warning";
2262
2259
  rule: {
2263
2260
  type: "must-export";
2264
2261
  names: string[];
@@ -2276,8 +2273,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2276
2273
  type: "no-import";
2277
2274
  from: string;
2278
2275
  } | {
2279
- match: string;
2280
2276
  type: "naming";
2277
+ match: string;
2281
2278
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2282
2279
  } | {
2283
2280
  type: "max-exports";
@@ -2291,10 +2288,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2291
2288
  };
2292
2289
  message?: string | undefined;
2293
2290
  }, {
2291
+ severity: "error" | "warning";
2292
+ description: string;
2294
2293
  files: string[];
2295
2294
  name: string;
2296
- description: string;
2297
- severity: "error" | "warning";
2298
2295
  rule: {
2299
2296
  type: "must-export";
2300
2297
  names: string[];
@@ -2312,8 +2309,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2312
2309
  type: "no-import";
2313
2310
  from: string;
2314
2311
  } | {
2315
- match: string;
2316
2312
  type: "naming";
2313
+ match: string;
2317
2314
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2318
2315
  } | {
2319
2316
  type: "max-exports";
@@ -2331,10 +2328,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2331
2328
  ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2332
2329
  }, "strip", z.ZodTypeAny, {
2333
2330
  patterns: {
2331
+ severity: "error" | "warning";
2332
+ description: string;
2334
2333
  files: string[];
2335
2334
  name: string;
2336
- description: string;
2337
- severity: "error" | "warning";
2338
2335
  rule: {
2339
2336
  type: "must-export";
2340
2337
  names: string[];
@@ -2352,8 +2349,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2352
2349
  type: "no-import";
2353
2350
  from: string;
2354
2351
  } | {
2355
- match: string;
2356
2352
  type: "naming";
2353
+ match: string;
2357
2354
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2358
2355
  } | {
2359
2356
  type: "max-exports";
@@ -2371,10 +2368,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2371
2368
  ignoreFiles?: string[] | undefined;
2372
2369
  }, {
2373
2370
  patterns: {
2371
+ severity: "error" | "warning";
2372
+ description: string;
2374
2373
  files: string[];
2375
2374
  name: string;
2376
- description: string;
2377
- severity: "error" | "warning";
2378
2375
  rule: {
2379
2376
  type: "must-export";
2380
2377
  names: string[];
@@ -2392,8 +2389,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2392
2389
  type: "no-import";
2393
2390
  from: string;
2394
2391
  } | {
2395
- match: string;
2396
2392
  type: "naming";
2393
+ match: string;
2397
2394
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2398
2395
  } | {
2399
2396
  type: "max-exports";
@@ -2427,10 +2424,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2427
2424
  } | undefined;
2428
2425
  patterns?: boolean | {
2429
2426
  patterns: {
2427
+ severity: "error" | "warning";
2428
+ description: string;
2430
2429
  files: string[];
2431
2430
  name: string;
2432
- description: string;
2433
- severity: "error" | "warning";
2434
2431
  rule: {
2435
2432
  type: "must-export";
2436
2433
  names: string[];
@@ -2448,8 +2445,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2448
2445
  type: "no-import";
2449
2446
  from: string;
2450
2447
  } | {
2451
- match: string;
2452
2448
  type: "naming";
2449
+ match: string;
2453
2450
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2454
2451
  } | {
2455
2452
  type: "max-exports";
@@ -2483,10 +2480,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2483
2480
  } | undefined;
2484
2481
  patterns?: boolean | {
2485
2482
  patterns: {
2483
+ severity: "error" | "warning";
2484
+ description: string;
2486
2485
  files: string[];
2487
2486
  name: string;
2488
- description: string;
2489
- severity: "error" | "warning";
2490
2487
  rule: {
2491
2488
  type: "must-export";
2492
2489
  names: string[];
@@ -2504,8 +2501,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2504
2501
  type: "no-import";
2505
2502
  from: string;
2506
2503
  } | {
2507
- match: string;
2508
2504
  type: "naming";
2505
+ match: string;
2509
2506
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2510
2507
  } | {
2511
2508
  type: "max-exports";
@@ -2545,10 +2542,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2545
2542
  } | undefined;
2546
2543
  patterns?: boolean | {
2547
2544
  patterns: {
2545
+ severity: "error" | "warning";
2546
+ description: string;
2548
2547
  files: string[];
2549
2548
  name: string;
2550
- description: string;
2551
- severity: "error" | "warning";
2552
2549
  rule: {
2553
2550
  type: "must-export";
2554
2551
  names: string[];
@@ -2566,8 +2563,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2566
2563
  type: "no-import";
2567
2564
  from: string;
2568
2565
  } | {
2569
- match: string;
2570
2566
  type: "naming";
2567
+ match: string;
2571
2568
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2572
2569
  } | {
2573
2570
  type: "max-exports";
@@ -2609,10 +2606,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2609
2606
  } | undefined;
2610
2607
  patterns?: boolean | {
2611
2608
  patterns: {
2609
+ severity: "error" | "warning";
2610
+ description: string;
2612
2611
  files: string[];
2613
2612
  name: string;
2614
- description: string;
2615
- severity: "error" | "warning";
2616
2613
  rule: {
2617
2614
  type: "must-export";
2618
2615
  names: string[];
@@ -2630,8 +2627,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2630
2627
  type: "no-import";
2631
2628
  from: string;
2632
2629
  } | {
2633
- match: string;
2634
2630
  type: "naming";
2631
+ match: string;
2635
2632
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2636
2633
  } | {
2637
2634
  type: "max-exports";
@@ -2796,6 +2793,7 @@ declare class CriticalPathResolver {
2796
2793
  resolve(graphData?: GraphCriticalPathData): Promise<CriticalPathSet>;
2797
2794
  private scanAnnotations;
2798
2795
  private walkDir;
2796
+ private resolveFunctionName;
2799
2797
  private scanFile;
2800
2798
  }
2801
2799
 
@@ -3235,6 +3233,8 @@ declare class ModuleSizeCollector implements Collector {
3235
3233
  declare class DepDepthCollector implements Collector {
3236
3234
  readonly category: "dependency-depth";
3237
3235
  getRules(config: ArchConfig, _rootDir: string): ConstraintRule[];
3236
+ private buildImportGraph;
3237
+ private buildModuleMap;
3238
3238
  collect(config: ArchConfig, rootDir: string): Promise<MetricResult[]>;
3239
3239
  }
3240
3240
 
@@ -3333,21 +3333,6 @@ declare class ArchBaselineManager {
3333
3333
 
3334
3334
  declare function diff(current: MetricResult[], baseline: ArchBaseline): ArchDiffResult;
3335
3335
 
3336
- /**
3337
- * Resolve effective thresholds for a given scope.
3338
- *
3339
- * When scope is 'project' or has no matching module entry, returns
3340
- * project-wide thresholds. Otherwise, merges project thresholds
3341
- * with module-level overrides (module wins per-category).
3342
- *
3343
- * For object-valued thresholds (e.g. coupling: { maxFanIn, maxFanOut }),
3344
- * performs a shallow merge at the category level:
3345
- * project { maxFanIn: 10, maxFanOut: 8 } + module { maxFanOut: 5 }
3346
- * => { maxFanIn: 10, maxFanOut: 5 }
3347
- *
3348
- * When either side is a scalar, the module value replaces the project
3349
- * value entirely (no merge across scalar/object boundaries).
3350
- */
3351
3336
  declare function resolveThresholds(scope: string, config: ArchConfig): ThresholdConfig;
3352
3337
 
3353
3338
  declare const CategorySnapshotSchema: z.ZodObject<{
@@ -3384,7 +3369,7 @@ declare const TimelineSnapshotSchema: z.ZodObject<{
3384
3369
  violationCount: number;
3385
3370
  }>>;
3386
3371
  }, "strip", z.ZodTypeAny, {
3387
- metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3372
+ metrics: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
3388
3373
  value: number;
3389
3374
  violationCount: number;
3390
3375
  }>>;
@@ -3392,7 +3377,7 @@ declare const TimelineSnapshotSchema: z.ZodObject<{
3392
3377
  commitHash: string;
3393
3378
  stabilityScore: number;
3394
3379
  }, {
3395
- metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3380
+ metrics: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
3396
3381
  value: number;
3397
3382
  violationCount: number;
3398
3383
  }>>;
@@ -3424,7 +3409,7 @@ declare const TimelineFileSchema: z.ZodObject<{
3424
3409
  violationCount: number;
3425
3410
  }>>;
3426
3411
  }, "strip", z.ZodTypeAny, {
3427
- metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3412
+ metrics: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
3428
3413
  value: number;
3429
3414
  violationCount: number;
3430
3415
  }>>;
@@ -3432,7 +3417,7 @@ declare const TimelineFileSchema: z.ZodObject<{
3432
3417
  commitHash: string;
3433
3418
  stabilityScore: number;
3434
3419
  }, {
3435
- metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3420
+ metrics: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
3436
3421
  value: number;
3437
3422
  violationCount: number;
3438
3423
  }>>;
@@ -3443,7 +3428,7 @@ declare const TimelineFileSchema: z.ZodObject<{
3443
3428
  }, "strip", z.ZodTypeAny, {
3444
3429
  version: 1;
3445
3430
  snapshots: {
3446
- metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3431
+ metrics: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
3447
3432
  value: number;
3448
3433
  violationCount: number;
3449
3434
  }>>;
@@ -3454,7 +3439,7 @@ declare const TimelineFileSchema: z.ZodObject<{
3454
3439
  }, {
3455
3440
  version: 1;
3456
3441
  snapshots: {
3457
- metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3442
+ metrics: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
3458
3443
  value: number;
3459
3444
  violationCount: number;
3460
3445
  }>>;
@@ -3474,13 +3459,13 @@ declare const TrendLineSchema: z.ZodObject<{
3474
3459
  /** Direction indicator */
3475
3460
  direction: z.ZodEnum<["improving", "stable", "declining"]>;
3476
3461
  }, "strip", z.ZodTypeAny, {
3477
- direction: "improving" | "stable" | "declining";
3478
3462
  delta: number;
3463
+ direction: "improving" | "stable" | "declining";
3479
3464
  current: number;
3480
3465
  previous: number;
3481
3466
  }, {
3482
- direction: "improving" | "stable" | "declining";
3483
3467
  delta: number;
3468
+ direction: "improving" | "stable" | "declining";
3484
3469
  current: number;
3485
3470
  previous: number;
3486
3471
  }>;
@@ -3497,13 +3482,13 @@ declare const TrendResultSchema: z.ZodObject<{
3497
3482
  /** Direction indicator */
3498
3483
  direction: z.ZodEnum<["improving", "stable", "declining"]>;
3499
3484
  }, "strip", z.ZodTypeAny, {
3500
- direction: "improving" | "stable" | "declining";
3501
3485
  delta: number;
3486
+ direction: "improving" | "stable" | "declining";
3502
3487
  current: number;
3503
3488
  previous: number;
3504
3489
  }, {
3505
- direction: "improving" | "stable" | "declining";
3506
3490
  delta: number;
3491
+ direction: "improving" | "stable" | "declining";
3507
3492
  current: number;
3508
3493
  previous: number;
3509
3494
  }>;
@@ -3518,13 +3503,13 @@ declare const TrendResultSchema: z.ZodObject<{
3518
3503
  /** Direction indicator */
3519
3504
  direction: z.ZodEnum<["improving", "stable", "declining"]>;
3520
3505
  }, "strip", z.ZodTypeAny, {
3521
- direction: "improving" | "stable" | "declining";
3522
3506
  delta: number;
3507
+ direction: "improving" | "stable" | "declining";
3523
3508
  current: number;
3524
3509
  previous: number;
3525
3510
  }, {
3526
- direction: "improving" | "stable" | "declining";
3527
3511
  delta: number;
3512
+ direction: "improving" | "stable" | "declining";
3528
3513
  current: number;
3529
3514
  previous: number;
3530
3515
  }>>;
@@ -3536,14 +3521,14 @@ declare const TrendResultSchema: z.ZodObject<{
3536
3521
  }, "strip", z.ZodTypeAny, {
3537
3522
  from: string;
3538
3523
  stability: {
3539
- direction: "improving" | "stable" | "declining";
3540
3524
  delta: number;
3525
+ direction: "improving" | "stable" | "declining";
3541
3526
  current: number;
3542
3527
  previous: number;
3543
3528
  };
3544
- categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3545
- direction: "improving" | "stable" | "declining";
3529
+ categories: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
3546
3530
  delta: number;
3531
+ direction: "improving" | "stable" | "declining";
3547
3532
  current: number;
3548
3533
  previous: number;
3549
3534
  }>>;
@@ -3552,14 +3537,14 @@ declare const TrendResultSchema: z.ZodObject<{
3552
3537
  }, {
3553
3538
  from: string;
3554
3539
  stability: {
3555
- direction: "improving" | "stable" | "declining";
3556
3540
  delta: number;
3541
+ direction: "improving" | "stable" | "declining";
3557
3542
  current: number;
3558
3543
  previous: number;
3559
3544
  };
3560
- categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
3561
- direction: "improving" | "stable" | "declining";
3545
+ categories: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
3562
3546
  delta: number;
3547
+ direction: "improving" | "stable" | "declining";
3563
3548
  current: number;
3564
3549
  previous: number;
3565
3550
  }>>;
@@ -3662,8 +3647,8 @@ declare const CategoryForecastSchema: z.ZodObject<{
3662
3647
  }>;
3663
3648
  direction: z.ZodEnum<["improving", "stable", "declining"]>;
3664
3649
  }, "strip", z.ZodTypeAny, {
3650
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3665
3651
  direction: "improving" | "stable" | "declining";
3666
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3667
3652
  threshold: number;
3668
3653
  current: number;
3669
3654
  projectedValue4w: number;
@@ -3678,8 +3663,8 @@ declare const CategoryForecastSchema: z.ZodObject<{
3678
3663
  dataPoints: number;
3679
3664
  };
3680
3665
  }, {
3666
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3681
3667
  direction: "improving" | "stable" | "declining";
3682
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3683
3668
  threshold: number;
3684
3669
  current: number;
3685
3670
  projectedValue4w: number;
@@ -3740,7 +3725,7 @@ declare const SpecImpactEstimateSchema: z.ZodObject<{
3740
3725
  newDependencies: number;
3741
3726
  phaseCount: number;
3742
3727
  };
3743
- deltas?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
3728
+ deltas?: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
3744
3729
  }, {
3745
3730
  specPath: string;
3746
3731
  featureName: string;
@@ -3750,7 +3735,7 @@ declare const SpecImpactEstimateSchema: z.ZodObject<{
3750
3735
  newDependencies: number;
3751
3736
  phaseCount: number;
3752
3737
  };
3753
- deltas?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
3738
+ deltas?: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
3754
3739
  }>;
3755
3740
  type SpecImpactEstimate = z.infer<typeof SpecImpactEstimateSchema>;
3756
3741
  declare const ContributingFeatureSchema: z.ZodObject<{
@@ -3758,12 +3743,12 @@ declare const ContributingFeatureSchema: z.ZodObject<{
3758
3743
  specPath: z.ZodString;
3759
3744
  delta: z.ZodNumber;
3760
3745
  }, "strip", z.ZodTypeAny, {
3761
- name: string;
3762
3746
  delta: number;
3747
+ name: string;
3763
3748
  specPath: string;
3764
3749
  }, {
3765
- name: string;
3766
3750
  delta: number;
3751
+ name: string;
3767
3752
  specPath: string;
3768
3753
  }>;
3769
3754
  declare const AdjustedForecastSchema: z.ZodObject<{
@@ -3794,8 +3779,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
3794
3779
  }>;
3795
3780
  direction: z.ZodEnum<["improving", "stable", "declining"]>;
3796
3781
  }, "strip", z.ZodTypeAny, {
3782
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3797
3783
  direction: "improving" | "stable" | "declining";
3798
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3799
3784
  threshold: number;
3800
3785
  current: number;
3801
3786
  projectedValue4w: number;
@@ -3810,8 +3795,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
3810
3795
  dataPoints: number;
3811
3796
  };
3812
3797
  }, {
3798
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3813
3799
  direction: "improving" | "stable" | "declining";
3814
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3815
3800
  threshold: number;
3816
3801
  current: number;
3817
3802
  projectedValue4w: number;
@@ -3853,8 +3838,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
3853
3838
  }>;
3854
3839
  direction: z.ZodEnum<["improving", "stable", "declining"]>;
3855
3840
  }, "strip", z.ZodTypeAny, {
3841
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3856
3842
  direction: "improving" | "stable" | "declining";
3857
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3858
3843
  threshold: number;
3859
3844
  current: number;
3860
3845
  projectedValue4w: number;
@@ -3869,8 +3854,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
3869
3854
  dataPoints: number;
3870
3855
  };
3871
3856
  }, {
3857
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3872
3858
  direction: "improving" | "stable" | "declining";
3873
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3874
3859
  threshold: number;
3875
3860
  current: number;
3876
3861
  projectedValue4w: number;
@@ -3890,18 +3875,18 @@ declare const AdjustedForecastSchema: z.ZodObject<{
3890
3875
  specPath: z.ZodString;
3891
3876
  delta: z.ZodNumber;
3892
3877
  }, "strip", z.ZodTypeAny, {
3893
- name: string;
3894
3878
  delta: number;
3879
+ name: string;
3895
3880
  specPath: string;
3896
3881
  }, {
3897
- name: string;
3898
3882
  delta: number;
3883
+ name: string;
3899
3884
  specPath: string;
3900
3885
  }>, "many">;
3901
3886
  }, "strip", z.ZodTypeAny, {
3902
3887
  baseline: {
3888
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3903
3889
  direction: "improving" | "stable" | "declining";
3904
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3905
3890
  threshold: number;
3906
3891
  current: number;
3907
3892
  projectedValue4w: number;
@@ -3917,8 +3902,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
3917
3902
  };
3918
3903
  };
3919
3904
  adjusted: {
3905
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3920
3906
  direction: "improving" | "stable" | "declining";
3921
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3922
3907
  threshold: number;
3923
3908
  current: number;
3924
3909
  projectedValue4w: number;
@@ -3934,14 +3919,14 @@ declare const AdjustedForecastSchema: z.ZodObject<{
3934
3919
  };
3935
3920
  };
3936
3921
  contributingFeatures: {
3937
- name: string;
3938
3922
  delta: number;
3923
+ name: string;
3939
3924
  specPath: string;
3940
3925
  }[];
3941
3926
  }, {
3942
3927
  baseline: {
3928
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3943
3929
  direction: "improving" | "stable" | "declining";
3944
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3945
3930
  threshold: number;
3946
3931
  current: number;
3947
3932
  projectedValue4w: number;
@@ -3957,8 +3942,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
3957
3942
  };
3958
3943
  };
3959
3944
  adjusted: {
3945
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3960
3946
  direction: "improving" | "stable" | "declining";
3961
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3962
3947
  threshold: number;
3963
3948
  current: number;
3964
3949
  projectedValue4w: number;
@@ -3974,8 +3959,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
3974
3959
  };
3975
3960
  };
3976
3961
  contributingFeatures: {
3977
- name: string;
3978
3962
  delta: number;
3963
+ name: string;
3979
3964
  specPath: string;
3980
3965
  }[];
3981
3966
  }>;
@@ -3989,14 +3974,14 @@ declare const PredictionWarningSchema: z.ZodObject<{
3989
3974
  contributingFeatures: z.ZodArray<z.ZodString, "many">;
3990
3975
  }, "strip", z.ZodTypeAny, {
3991
3976
  message: string;
3992
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3977
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
3993
3978
  severity: "warning" | "info" | "critical";
3994
3979
  confidence: "high" | "medium" | "low";
3995
3980
  contributingFeatures: string[];
3996
3981
  weeksUntil: number;
3997
3982
  }, {
3998
3983
  message: string;
3999
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
3984
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4000
3985
  severity: "warning" | "info" | "critical";
4001
3986
  confidence: "high" | "medium" | "low";
4002
3987
  contributingFeatures: string[];
@@ -4089,8 +4074,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4089
4074
  }>;
4090
4075
  direction: z.ZodEnum<["improving", "stable", "declining"]>;
4091
4076
  }, "strip", z.ZodTypeAny, {
4077
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4092
4078
  direction: "improving" | "stable" | "declining";
4093
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4094
4079
  threshold: number;
4095
4080
  current: number;
4096
4081
  projectedValue4w: number;
@@ -4105,8 +4090,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4105
4090
  dataPoints: number;
4106
4091
  };
4107
4092
  }, {
4093
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4108
4094
  direction: "improving" | "stable" | "declining";
4109
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4110
4095
  threshold: number;
4111
4096
  current: number;
4112
4097
  projectedValue4w: number;
@@ -4148,8 +4133,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4148
4133
  }>;
4149
4134
  direction: z.ZodEnum<["improving", "stable", "declining"]>;
4150
4135
  }, "strip", z.ZodTypeAny, {
4136
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4151
4137
  direction: "improving" | "stable" | "declining";
4152
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4153
4138
  threshold: number;
4154
4139
  current: number;
4155
4140
  projectedValue4w: number;
@@ -4164,8 +4149,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4164
4149
  dataPoints: number;
4165
4150
  };
4166
4151
  }, {
4152
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4167
4153
  direction: "improving" | "stable" | "declining";
4168
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4169
4154
  threshold: number;
4170
4155
  current: number;
4171
4156
  projectedValue4w: number;
@@ -4185,18 +4170,18 @@ declare const PredictionResultSchema: z.ZodObject<{
4185
4170
  specPath: z.ZodString;
4186
4171
  delta: z.ZodNumber;
4187
4172
  }, "strip", z.ZodTypeAny, {
4188
- name: string;
4189
4173
  delta: number;
4174
+ name: string;
4190
4175
  specPath: string;
4191
4176
  }, {
4192
- name: string;
4193
4177
  delta: number;
4178
+ name: string;
4194
4179
  specPath: string;
4195
4180
  }>, "many">;
4196
4181
  }, "strip", z.ZodTypeAny, {
4197
4182
  baseline: {
4183
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4198
4184
  direction: "improving" | "stable" | "declining";
4199
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4200
4185
  threshold: number;
4201
4186
  current: number;
4202
4187
  projectedValue4w: number;
@@ -4212,8 +4197,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4212
4197
  };
4213
4198
  };
4214
4199
  adjusted: {
4200
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4215
4201
  direction: "improving" | "stable" | "declining";
4216
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4217
4202
  threshold: number;
4218
4203
  current: number;
4219
4204
  projectedValue4w: number;
@@ -4229,14 +4214,14 @@ declare const PredictionResultSchema: z.ZodObject<{
4229
4214
  };
4230
4215
  };
4231
4216
  contributingFeatures: {
4232
- name: string;
4233
4217
  delta: number;
4218
+ name: string;
4234
4219
  specPath: string;
4235
4220
  }[];
4236
4221
  }, {
4237
4222
  baseline: {
4223
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4238
4224
  direction: "improving" | "stable" | "declining";
4239
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4240
4225
  threshold: number;
4241
4226
  current: number;
4242
4227
  projectedValue4w: number;
@@ -4252,8 +4237,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4252
4237
  };
4253
4238
  };
4254
4239
  adjusted: {
4240
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4255
4241
  direction: "improving" | "stable" | "declining";
4256
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4257
4242
  threshold: number;
4258
4243
  current: number;
4259
4244
  projectedValue4w: number;
@@ -4269,8 +4254,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4269
4254
  };
4270
4255
  };
4271
4256
  contributingFeatures: {
4272
- name: string;
4273
4257
  delta: number;
4258
+ name: string;
4274
4259
  specPath: string;
4275
4260
  }[];
4276
4261
  }>>;
@@ -4283,24 +4268,24 @@ declare const PredictionResultSchema: z.ZodObject<{
4283
4268
  contributingFeatures: z.ZodArray<z.ZodString, "many">;
4284
4269
  }, "strip", z.ZodTypeAny, {
4285
4270
  message: string;
4286
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4271
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4287
4272
  severity: "warning" | "info" | "critical";
4288
4273
  confidence: "high" | "medium" | "low";
4289
4274
  contributingFeatures: string[];
4290
4275
  weeksUntil: number;
4291
4276
  }, {
4292
4277
  message: string;
4293
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4278
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4294
4279
  severity: "warning" | "info" | "critical";
4295
4280
  confidence: "high" | "medium" | "low";
4296
4281
  contributingFeatures: string[];
4297
4282
  weeksUntil: number;
4298
4283
  }>, "many">;
4299
4284
  }, "strip", z.ZodTypeAny, {
4300
- categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
4285
+ categories: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
4301
4286
  baseline: {
4287
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4302
4288
  direction: "improving" | "stable" | "declining";
4303
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4304
4289
  threshold: number;
4305
4290
  current: number;
4306
4291
  projectedValue4w: number;
@@ -4316,8 +4301,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4316
4301
  };
4317
4302
  };
4318
4303
  adjusted: {
4304
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4319
4305
  direction: "improving" | "stable" | "declining";
4320
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4321
4306
  threshold: number;
4322
4307
  current: number;
4323
4308
  projectedValue4w: number;
@@ -4333,8 +4318,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4333
4318
  };
4334
4319
  };
4335
4320
  contributingFeatures: {
4336
- name: string;
4337
4321
  delta: number;
4322
+ name: string;
4338
4323
  specPath: string;
4339
4324
  }[];
4340
4325
  }>>;
@@ -4354,17 +4339,17 @@ declare const PredictionResultSchema: z.ZodObject<{
4354
4339
  };
4355
4340
  warnings: {
4356
4341
  message: string;
4357
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4342
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4358
4343
  severity: "warning" | "info" | "critical";
4359
4344
  confidence: "high" | "medium" | "low";
4360
4345
  contributingFeatures: string[];
4361
4346
  weeksUntil: number;
4362
4347
  }[];
4363
4348
  }, {
4364
- categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
4349
+ categories: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
4365
4350
  baseline: {
4351
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4366
4352
  direction: "improving" | "stable" | "declining";
4367
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4368
4353
  threshold: number;
4369
4354
  current: number;
4370
4355
  projectedValue4w: number;
@@ -4380,8 +4365,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4380
4365
  };
4381
4366
  };
4382
4367
  adjusted: {
4368
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4383
4369
  direction: "improving" | "stable" | "declining";
4384
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4385
4370
  threshold: number;
4386
4371
  current: number;
4387
4372
  projectedValue4w: number;
@@ -4397,8 +4382,8 @@ declare const PredictionResultSchema: z.ZodObject<{
4397
4382
  };
4398
4383
  };
4399
4384
  contributingFeatures: {
4400
- name: string;
4401
4385
  delta: number;
4386
+ name: string;
4402
4387
  specPath: string;
4403
4388
  }[];
4404
4389
  }>>;
@@ -4418,7 +4403,7 @@ declare const PredictionResultSchema: z.ZodObject<{
4418
4403
  };
4419
4404
  warnings: {
4420
4405
  message: string;
4421
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
4406
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
4422
4407
  severity: "warning" | "info" | "critical";
4423
4408
  confidence: "high" | "medium" | "low";
4424
4409
  contributingFeatures: string[];
@@ -4434,11 +4419,11 @@ declare const PredictionOptionsSchema: z.ZodObject<{
4434
4419
  }, "strip", z.ZodTypeAny, {
4435
4420
  horizon: number;
4436
4421
  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;
4422
+ thresholds?: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
4423
+ categories?: ("circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth")[] | undefined;
4439
4424
  }, {
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;
4425
+ thresholds?: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
4426
+ categories?: ("circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth")[] | undefined;
4442
4427
  horizon?: number | undefined;
4443
4428
  includeRoadmap?: boolean | undefined;
4444
4429
  }>;
@@ -4579,6 +4564,8 @@ declare class PredictionEngine {
4579
4564
  * Throws if fewer than 3 snapshots are available.
4580
4565
  */
4581
4566
  predict(options?: Partial<PredictionOptions>): PredictionResult;
4567
+ private loadValidatedSnapshots;
4568
+ private computeTimeOffsets;
4582
4569
  private resolveOptions;
4583
4570
  private resolveThresholds;
4584
4571
  private computeBaselines;
@@ -4602,6 +4589,7 @@ declare class PredictionEngine {
4602
4589
  * - info: threshold crossing <= 12w, any confidence
4603
4590
  */
4604
4591
  private generateWarnings;
4592
+ private buildCategoryWarning;
4605
4593
  /**
4606
4594
  * Compute composite stability forecast by projecting per-category values
4607
4595
  * forward and computing stability scores at each horizon.
@@ -4623,13 +4611,13 @@ declare const FailureEntrySchema: z.ZodObject<{
4623
4611
  description: z.ZodString;
4624
4612
  }, "strip", z.ZodTypeAny, {
4625
4613
  type: string;
4626
- description: string;
4627
4614
  date: string;
4615
+ description: string;
4628
4616
  skill: string;
4629
4617
  }, {
4630
4618
  type: string;
4631
- description: string;
4632
4619
  date: string;
4620
+ description: string;
4633
4621
  skill: string;
4634
4622
  }>;
4635
4623
  type FailureEntry = z.infer<typeof FailureEntrySchema>;
@@ -4692,14 +4680,14 @@ declare const GateResultSchema: z.ZodObject<{
4692
4680
  output: z.ZodOptional<z.ZodString>;
4693
4681
  duration: z.ZodOptional<z.ZodNumber>;
4694
4682
  }, "strip", z.ZodTypeAny, {
4695
- name: string;
4696
4683
  passed: boolean;
4684
+ name: string;
4697
4685
  command: string;
4698
4686
  output?: string | undefined;
4699
4687
  duration?: number | undefined;
4700
4688
  }, {
4701
- name: string;
4702
4689
  passed: boolean;
4690
+ name: string;
4703
4691
  command: string;
4704
4692
  output?: string | undefined;
4705
4693
  duration?: number | undefined;
@@ -4707,8 +4695,8 @@ declare const GateResultSchema: z.ZodObject<{
4707
4695
  }, "strip", z.ZodTypeAny, {
4708
4696
  passed: boolean;
4709
4697
  checks: {
4710
- name: string;
4711
4698
  passed: boolean;
4699
+ name: string;
4712
4700
  command: string;
4713
4701
  output?: string | undefined;
4714
4702
  duration?: number | undefined;
@@ -4716,8 +4704,8 @@ declare const GateResultSchema: z.ZodObject<{
4716
4704
  }, {
4717
4705
  passed: boolean;
4718
4706
  checks: {
4719
- name: string;
4720
4707
  passed: boolean;
4708
+ name: string;
4721
4709
  command: string;
4722
4710
  output?: string | undefined;
4723
4711
  duration?: number | undefined;
@@ -4780,13 +4768,13 @@ declare const HarnessStateSchema: z.ZodObject<{
4780
4768
  description: z.ZodString;
4781
4769
  status: z.ZodEnum<["open", "resolved"]>;
4782
4770
  }, "strip", z.ZodTypeAny, {
4771
+ status: "resolved" | "open";
4783
4772
  id: string;
4784
4773
  description: string;
4785
- status: "resolved" | "open";
4786
4774
  }, {
4775
+ status: "resolved" | "open";
4787
4776
  id: string;
4788
4777
  description: string;
4789
- status: "resolved" | "open";
4790
4778
  }>, "many">>;
4791
4779
  progress: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["pending", "in_progress", "complete"]>>>;
4792
4780
  lastSession: z.ZodOptional<z.ZodObject<{
@@ -4812,9 +4800,9 @@ declare const HarnessStateSchema: z.ZodObject<{
4812
4800
  decision: string;
4813
4801
  }[];
4814
4802
  blockers: {
4803
+ status: "resolved" | "open";
4815
4804
  id: string;
4816
4805
  description: string;
4817
- status: "resolved" | "open";
4818
4806
  }[];
4819
4807
  schemaVersion: 1;
4820
4808
  position: {
@@ -4836,9 +4824,9 @@ declare const HarnessStateSchema: z.ZodObject<{
4836
4824
  decision: string;
4837
4825
  }[] | undefined;
4838
4826
  blockers?: {
4827
+ status: "resolved" | "open";
4839
4828
  id: string;
4840
4829
  description: string;
4841
- status: "resolved" | "open";
4842
4830
  }[] | undefined;
4843
4831
  position?: {
4844
4832
  task?: string | undefined;
@@ -5338,6 +5326,12 @@ declare class SecurityScanner {
5338
5326
  scanContent(content: string, filePath: string, startLine?: number): SecurityFinding[];
5339
5327
  scanFile(filePath: string): Promise<SecurityFinding[]>;
5340
5328
  private scanContentForFile;
5329
+ /** Build a finding for a suppression comment that is missing its justification. */
5330
+ private buildSuppressionFinding;
5331
+ /** Check one line against a rule's patterns; return a finding or null. */
5332
+ private matchRuleLine;
5333
+ /** Scan a single line against a resolved rule; push any findings into the array. */
5334
+ private scanLineForRule;
5341
5335
  /**
5342
5336
  * Core scanning loop shared by scanContent and scanContentForFile.
5343
5337
  * Evaluates each rule against each line, handling suppression (FP gate)
@@ -5388,9 +5382,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
5388
5382
  } | undefined;
5389
5383
  }>>;
5390
5384
  }, "strip", z.ZodTypeAny, {
5391
- rules: Record<string, "error" | "warning" | "info" | "off">;
5392
5385
  enabled: boolean;
5393
5386
  strict: boolean;
5387
+ rules: Record<string, "error" | "warning" | "info" | "off">;
5394
5388
  exclude: string[];
5395
5389
  external?: {
5396
5390
  semgrep?: {
@@ -5402,9 +5396,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
5402
5396
  } | undefined;
5403
5397
  } | undefined;
5404
5398
  }, {
5405
- rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
5406
5399
  enabled?: boolean | undefined;
5407
5400
  strict?: boolean | undefined;
5401
+ rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
5408
5402
  exclude?: string[] | undefined;
5409
5403
  external?: {
5410
5404
  semgrep?: {
@@ -6483,6 +6477,9 @@ declare class GitHubIssuesSyncAdapter implements TrackerSyncAdapter {
6483
6477
  createTicket(feature: RoadmapFeature, milestone: string): Promise<Result<ExternalTicket>>;
6484
6478
  updateTicket(externalId: string, changes: Partial<RoadmapFeature>, milestone?: string): Promise<Result<ExternalTicket>>;
6485
6479
  fetchTicketState(externalId: string): Promise<Result<ExternalTicketState>>;
6480
+ private buildLabelsParam;
6481
+ private issueToTicketState;
6482
+ private fetchIssuePage;
6486
6483
  fetchAllTickets(): Promise<Result<ExternalTicketState[]>>;
6487
6484
  assignTicket(externalId: string, assignee: string): Promise<Result<void>>;
6488
6485
  }
@@ -6562,12 +6559,12 @@ declare const QuestionSchema: z.ZodObject<{
6562
6559
  default: z.ZodOptional<z.ZodString>;
6563
6560
  }, "strip", z.ZodTypeAny, {
6564
6561
  text: string;
6565
- default?: string | undefined;
6566
6562
  options?: string[] | undefined;
6563
+ default?: string | undefined;
6567
6564
  }, {
6568
6565
  text: string;
6569
- default?: string | undefined;
6570
6566
  options?: string[] | undefined;
6567
+ default?: string | undefined;
6571
6568
  }>;
6572
6569
  declare const ConfirmationSchema: z.ZodObject<{
6573
6570
  text: z.ZodString;
@@ -6611,12 +6608,12 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
6611
6608
  default: z.ZodOptional<z.ZodString>;
6612
6609
  }, "strip", z.ZodTypeAny, {
6613
6610
  text: string;
6614
- default?: string | undefined;
6615
6611
  options?: string[] | undefined;
6612
+ default?: string | undefined;
6616
6613
  }, {
6617
6614
  text: string;
6618
- default?: string | undefined;
6619
6615
  options?: string[] | undefined;
6616
+ default?: string | undefined;
6620
6617
  }>>;
6621
6618
  confirmation: z.ZodOptional<z.ZodObject<{
6622
6619
  text: z.ZodString;
@@ -6656,8 +6653,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
6656
6653
  stream?: string | undefined;
6657
6654
  question?: {
6658
6655
  text: string;
6659
- default?: string | undefined;
6660
6656
  options?: string[] | undefined;
6657
+ default?: string | undefined;
6661
6658
  } | undefined;
6662
6659
  confirmation?: {
6663
6660
  text: string;
@@ -6677,8 +6674,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
6677
6674
  stream?: string | undefined;
6678
6675
  question?: {
6679
6676
  text: string;
6680
- default?: string | undefined;
6681
6677
  options?: string[] | undefined;
6678
+ default?: string | undefined;
6682
6679
  } | undefined;
6683
6680
  confirmation?: {
6684
6681
  text: string;
@@ -6741,10 +6738,6 @@ declare class BlueprintGenerator {
6741
6738
  generate(data: BlueprintData, options: BlueprintOptions): Promise<void>;
6742
6739
  }
6743
6740
 
6744
- declare class ContentPipeline {
6745
- generateModuleContent(module: BlueprintModule): Promise<Content>;
6746
- }
6747
-
6748
6741
  interface UpdateCheckState {
6749
6742
  lastCheckTime: number;
6750
6743
  latestVersion: string | null;
@@ -6941,6 +6934,6 @@ declare function parseCCRecords(): UsageRecord[];
6941
6934
  * release. Kept only as a fallback for consumers that cannot resolve the CLI
6942
6935
  * package at runtime.
6943
6936
  */
6944
- declare const VERSION = "0.15.0";
6937
+ declare const VERSION = "0.21.1";
6945
6938
 
6946
- 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, computeContentHash, 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, normalizeLearningContent, 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 };
6939
+ 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, 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, computeContentHash, 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, normalizeLearningContent, 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 };