driftdetect 0.9.31 → 0.9.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/dist/bin/drift.js +1 -1
  2. package/dist/bin/drift.js.map +1 -1
  3. package/dist/commands/approve.d.ts.map +1 -1
  4. package/dist/commands/approve.js +5 -4
  5. package/dist/commands/approve.js.map +1 -1
  6. package/dist/commands/audit.d.ts.map +1 -1
  7. package/dist/commands/audit.js +5 -3
  8. package/dist/commands/audit.js.map +1 -1
  9. package/dist/commands/boundaries.d.ts.map +1 -1
  10. package/dist/commands/boundaries.js +1 -1
  11. package/dist/commands/boundaries.js.map +1 -1
  12. package/dist/commands/callgraph.d.ts.map +1 -1
  13. package/dist/commands/callgraph.js +7 -4
  14. package/dist/commands/callgraph.js.map +1 -1
  15. package/dist/commands/check.d.ts.map +1 -1
  16. package/dist/commands/check.js +11 -7
  17. package/dist/commands/check.js.map +1 -1
  18. package/dist/commands/constants.d.ts.map +1 -1
  19. package/dist/commands/constants.js +1 -1
  20. package/dist/commands/constants.js.map +1 -1
  21. package/dist/commands/constraints.d.ts.map +1 -1
  22. package/dist/commands/constraints.js +7 -4
  23. package/dist/commands/constraints.js.map +1 -1
  24. package/dist/commands/context.d.ts.map +1 -1
  25. package/dist/commands/context.js +1 -1
  26. package/dist/commands/context.js.map +1 -1
  27. package/dist/commands/coupling.d.ts.map +1 -1
  28. package/dist/commands/coupling.js +25 -14
  29. package/dist/commands/coupling.js.map +1 -1
  30. package/dist/commands/cpp.d.ts.map +1 -1
  31. package/dist/commands/cpp.js +3 -3
  32. package/dist/commands/cpp.js.map +1 -1
  33. package/dist/commands/dashboard.d.ts.map +1 -1
  34. package/dist/commands/dashboard.js +1 -1
  35. package/dist/commands/dashboard.js.map +1 -1
  36. package/dist/commands/decisions.d.ts.map +1 -1
  37. package/dist/commands/decisions.js +7 -4
  38. package/dist/commands/decisions.js.map +1 -1
  39. package/dist/commands/dna/export.d.ts.map +1 -1
  40. package/dist/commands/dna/export.js +1 -1
  41. package/dist/commands/dna/export.js.map +1 -1
  42. package/dist/commands/dna/gene.d.ts.map +1 -1
  43. package/dist/commands/dna/gene.js +1 -1
  44. package/dist/commands/dna/gene.js.map +1 -1
  45. package/dist/commands/dna/index.d.ts.map +1 -1
  46. package/dist/commands/dna/index.js +3 -3
  47. package/dist/commands/dna/index.js.map +1 -1
  48. package/dist/commands/dna/mutations.d.ts.map +1 -1
  49. package/dist/commands/dna/mutations.js +17 -9
  50. package/dist/commands/dna/mutations.js.map +1 -1
  51. package/dist/commands/dna/playbook.d.ts.map +1 -1
  52. package/dist/commands/dna/playbook.js +1 -1
  53. package/dist/commands/dna/playbook.js.map +1 -1
  54. package/dist/commands/dna/scan.d.ts.map +1 -1
  55. package/dist/commands/dna/scan.js +7 -4
  56. package/dist/commands/dna/scan.js.map +1 -1
  57. package/dist/commands/dna/status.d.ts.map +1 -1
  58. package/dist/commands/dna/status.js +9 -5
  59. package/dist/commands/dna/status.js.map +1 -1
  60. package/dist/commands/env.d.ts.map +1 -1
  61. package/dist/commands/env.js +1 -1
  62. package/dist/commands/env.js.map +1 -1
  63. package/dist/commands/error-handling.d.ts.map +1 -1
  64. package/dist/commands/error-handling.js +13 -7
  65. package/dist/commands/error-handling.js.map +1 -1
  66. package/dist/commands/export.d.ts.map +1 -1
  67. package/dist/commands/export.js +1 -1
  68. package/dist/commands/export.js.map +1 -1
  69. package/dist/commands/files.d.ts.map +1 -1
  70. package/dist/commands/files.js +1 -1
  71. package/dist/commands/files.js.map +1 -1
  72. package/dist/commands/gate.d.ts.map +1 -1
  73. package/dist/commands/gate.js +4 -3
  74. package/dist/commands/gate.js.map +1 -1
  75. package/dist/commands/go.d.ts.map +1 -1
  76. package/dist/commands/go.js +1 -1
  77. package/dist/commands/go.js.map +1 -1
  78. package/dist/commands/ignore.d.ts.map +1 -1
  79. package/dist/commands/ignore.js +4 -3
  80. package/dist/commands/ignore.js.map +1 -1
  81. package/dist/commands/init.d.ts.map +1 -1
  82. package/dist/commands/init.js +3 -3
  83. package/dist/commands/init.js.map +1 -1
  84. package/dist/commands/java.d.ts.map +1 -1
  85. package/dist/commands/java.js +1 -1
  86. package/dist/commands/java.js.map +1 -1
  87. package/dist/commands/license.d.ts.map +1 -1
  88. package/dist/commands/license.js +3 -2
  89. package/dist/commands/license.js.map +1 -1
  90. package/dist/commands/migrate-storage.d.ts.map +1 -1
  91. package/dist/commands/migrate-storage.js +8 -6
  92. package/dist/commands/migrate-storage.js.map +1 -1
  93. package/dist/commands/next-steps.d.ts.map +1 -1
  94. package/dist/commands/next-steps.js +15 -9
  95. package/dist/commands/next-steps.js.map +1 -1
  96. package/dist/commands/parser.d.ts.map +1 -1
  97. package/dist/commands/parser.js +9 -5
  98. package/dist/commands/parser.js.map +1 -1
  99. package/dist/commands/php.d.ts.map +1 -1
  100. package/dist/commands/php.js +1 -1
  101. package/dist/commands/php.js.map +1 -1
  102. package/dist/commands/projects.d.ts.map +1 -1
  103. package/dist/commands/projects.js +16 -9
  104. package/dist/commands/projects.js.map +1 -1
  105. package/dist/commands/py.d.ts.map +1 -1
  106. package/dist/commands/py.js +1 -1
  107. package/dist/commands/py.js.map +1 -1
  108. package/dist/commands/report.d.ts.map +1 -1
  109. package/dist/commands/report.js +3 -3
  110. package/dist/commands/report.js.map +1 -1
  111. package/dist/commands/rust.d.ts.map +1 -1
  112. package/dist/commands/rust.js +1 -1
  113. package/dist/commands/rust.js.map +1 -1
  114. package/dist/commands/scan.d.ts.map +1 -1
  115. package/dist/commands/scan.js +39 -22
  116. package/dist/commands/scan.js.map +1 -1
  117. package/dist/commands/simulate.d.ts.map +1 -1
  118. package/dist/commands/simulate.js +1 -1
  119. package/dist/commands/simulate.js.map +1 -1
  120. package/dist/commands/skills.d.ts.map +1 -1
  121. package/dist/commands/skills.js +22 -14
  122. package/dist/commands/skills.js.map +1 -1
  123. package/dist/commands/status.d.ts.map +1 -1
  124. package/dist/commands/status.js +1 -1
  125. package/dist/commands/status.js.map +1 -1
  126. package/dist/commands/telemetry.d.ts.map +1 -1
  127. package/dist/commands/telemetry.js +3 -3
  128. package/dist/commands/telemetry.js.map +1 -1
  129. package/dist/commands/test-topology.d.ts.map +1 -1
  130. package/dist/commands/test-topology.js +19 -10
  131. package/dist/commands/test-topology.js.map +1 -1
  132. package/dist/commands/trends.d.ts.map +1 -1
  133. package/dist/commands/trends.js +1 -1
  134. package/dist/commands/trends.js.map +1 -1
  135. package/dist/commands/troubleshoot.d.ts.map +1 -1
  136. package/dist/commands/troubleshoot.js +9 -5
  137. package/dist/commands/troubleshoot.js.map +1 -1
  138. package/dist/commands/ts.d.ts.map +1 -1
  139. package/dist/commands/ts.js +1 -1
  140. package/dist/commands/ts.js.map +1 -1
  141. package/dist/commands/watch.d.ts.map +1 -1
  142. package/dist/commands/watch.js +23 -13
  143. package/dist/commands/watch.js.map +1 -1
  144. package/dist/commands/where.d.ts.map +1 -1
  145. package/dist/commands/where.js +3 -2
  146. package/dist/commands/where.js.map +1 -1
  147. package/dist/commands/wpf.d.ts.map +1 -1
  148. package/dist/commands/wpf.js +1 -1
  149. package/dist/commands/wpf.js.map +1 -1
  150. package/dist/commands/wrappers.d.ts.map +1 -1
  151. package/dist/commands/wrappers.js +4 -4
  152. package/dist/commands/wrappers.js.map +1 -1
  153. package/dist/git/hooks.js +1 -1
  154. package/dist/git/hooks.js.map +1 -1
  155. package/dist/reporters/github-reporter.js +8 -4
  156. package/dist/reporters/github-reporter.js.map +1 -1
  157. package/dist/reporters/gitlab-reporter.d.ts.map +1 -1
  158. package/dist/reporters/gitlab-reporter.js.map +1 -1
  159. package/dist/reporters/text-reporter.d.ts.map +1 -1
  160. package/dist/reporters/text-reporter.js.map +1 -1
  161. package/dist/services/boundary-scanner.d.ts.map +1 -1
  162. package/dist/services/boundary-scanner.js +24 -12
  163. package/dist/services/boundary-scanner.js.map +1 -1
  164. package/dist/services/contract-scanner.d.ts +1 -1
  165. package/dist/services/contract-scanner.d.ts.map +1 -1
  166. package/dist/services/contract-scanner.js +3 -2
  167. package/dist/services/contract-scanner.js.map +1 -1
  168. package/dist/services/scanner-service.d.ts.map +1 -1
  169. package/dist/services/scanner-service.js +90 -53
  170. package/dist/services/scanner-service.js.map +1 -1
  171. package/dist/ui/progress.d.ts.map +1 -1
  172. package/dist/ui/progress.js +1 -1
  173. package/dist/ui/progress.js.map +1 -1
  174. package/dist/ui/prompts.d.ts.map +1 -1
  175. package/dist/ui/prompts.js.map +1 -1
  176. package/dist/ui/spinner.js +1 -1
  177. package/dist/ui/spinner.js.map +1 -1
  178. package/dist/ui/table.d.ts.map +1 -1
  179. package/dist/ui/table.js +1 -1
  180. package/dist/ui/table.js.map +1 -1
  181. package/dist/workers/detector-worker.d.ts.map +1 -1
  182. package/dist/workers/detector-worker.js +12 -6
  183. package/dist/workers/detector-worker.js.map +1 -1
  184. package/package.json +1 -1
  185. package/dist/bin/drift.d.ts +0 -11
  186. package/dist/commands/approve.d.ts +0 -28
  187. package/dist/commands/audit.d.ts +0 -29
  188. package/dist/commands/boundaries.d.ts +0 -20
  189. package/dist/commands/callgraph.d.ts +0 -24
  190. package/dist/commands/check.d.ts +0 -41
  191. package/dist/commands/constants.d.ts +0 -35
  192. package/dist/commands/constraints.d.ts +0 -17
  193. package/dist/commands/context.d.ts +0 -19
  194. package/dist/commands/coupling.d.ts +0 -17
  195. package/dist/commands/cpp.d.ts +0 -22
  196. package/dist/commands/dashboard.d.ts +0 -16
  197. package/dist/commands/decisions.d.ts +0 -19
  198. package/dist/commands/dna/export.d.ts +0 -6
  199. package/dist/commands/dna/gene.d.ts +0 -6
  200. package/dist/commands/dna/index.d.ts +0 -8
  201. package/dist/commands/dna/mutations.d.ts +0 -6
  202. package/dist/commands/dna/playbook.d.ts +0 -6
  203. package/dist/commands/dna/scan.d.ts +0 -6
  204. package/dist/commands/dna/status.d.ts +0 -6
  205. package/dist/commands/env.d.ts +0 -23
  206. package/dist/commands/error-handling.d.ts +0 -15
  207. package/dist/commands/export.d.ts +0 -16
  208. package/dist/commands/files.d.ts +0 -15
  209. package/dist/commands/gate.d.ts +0 -33
  210. package/dist/commands/go.d.ts +0 -21
  211. package/dist/commands/ignore.d.ts +0 -20
  212. package/dist/commands/index.d.ts +0 -50
  213. package/dist/commands/index.js +0 -68
  214. package/dist/commands/index.js.map +0 -1
  215. package/dist/commands/init.d.ts +0 -19
  216. package/dist/commands/java.d.ts +0 -15
  217. package/dist/commands/license.d.ts +0 -12
  218. package/dist/commands/migrate-storage.d.ts +0 -23
  219. package/dist/commands/next-steps.d.ts +0 -15
  220. package/dist/commands/parser.d.ts +0 -20
  221. package/dist/commands/php.d.ts +0 -15
  222. package/dist/commands/projects.d.ts +0 -17
  223. package/dist/commands/py.d.ts +0 -15
  224. package/dist/commands/report.d.ts +0 -22
  225. package/dist/commands/rust.d.ts +0 -21
  226. package/dist/commands/scan.d.ts +0 -45
  227. package/dist/commands/simulate.d.ts +0 -17
  228. package/dist/commands/skills.d.ts +0 -16
  229. package/dist/commands/status.d.ts +0 -20
  230. package/dist/commands/telemetry.d.ts +0 -9
  231. package/dist/commands/test-topology.d.ts +0 -15
  232. package/dist/commands/trends.d.ts +0 -12
  233. package/dist/commands/troubleshoot.d.ts +0 -14
  234. package/dist/commands/ts.d.ts +0 -21
  235. package/dist/commands/watch.d.ts +0 -13
  236. package/dist/commands/where.d.ts +0 -15
  237. package/dist/commands/wpf.d.ts +0 -21
  238. package/dist/commands/wrappers.d.ts +0 -16
  239. package/dist/git/hooks.d.ts +0 -108
  240. package/dist/git/index.d.ts +0 -6
  241. package/dist/git/index.d.ts.map +0 -1
  242. package/dist/git/index.js +0 -6
  243. package/dist/git/index.js.map +0 -1
  244. package/dist/git/staged-files.d.ts +0 -41
  245. package/dist/git/staged-files.d.ts.map +0 -1
  246. package/dist/git/staged-files.js +0 -118
  247. package/dist/git/staged-files.js.map +0 -1
  248. package/dist/index.d.ts +0 -17
  249. package/dist/index.js +0 -24
  250. package/dist/index.js.map +0 -1
  251. package/dist/reporters/github-reporter.d.ts +0 -13
  252. package/dist/reporters/gitlab-reporter.d.ts +0 -16
  253. package/dist/reporters/index.d.ts +0 -9
  254. package/dist/reporters/index.js +0 -9
  255. package/dist/reporters/index.js.map +0 -1
  256. package/dist/reporters/json-reporter.d.ts +0 -13
  257. package/dist/reporters/json-reporter.js +0 -44
  258. package/dist/reporters/json-reporter.js.map +0 -1
  259. package/dist/reporters/text-reporter.d.ts +0 -13
  260. package/dist/reporters/types.d.ts +0 -42
  261. package/dist/reporters/types.js +0 -5
  262. package/dist/reporters/types.js.map +0 -1
  263. package/dist/services/boundary-scanner.d.ts +0 -22
  264. package/dist/services/pattern-service-factory.d.ts +0 -37
  265. package/dist/services/pattern-service-factory.js +0 -41
  266. package/dist/services/pattern-service-factory.js.map +0 -1
  267. package/dist/services/scanner-service.d.ts +0 -237
  268. package/dist/types/index.d.ts +0 -24
  269. package/dist/types/index.d.ts.map +0 -1
  270. package/dist/types/index.js +0 -5
  271. package/dist/types/index.js.map +0 -1
  272. package/dist/ui/index.d.ts +0 -11
  273. package/dist/ui/index.js +0 -15
  274. package/dist/ui/index.js.map +0 -1
  275. package/dist/ui/progress.d.ts +0 -115
  276. package/dist/ui/prompts.d.ts +0 -91
  277. package/dist/ui/spinner.d.ts +0 -109
  278. package/dist/ui/table.d.ts +0 -118
  279. package/dist/workers/detector-worker.d.ts +0 -125
@@ -1,41 +0,0 @@
1
- /**
2
- * Check Command - drift check
3
- *
4
- * Check for violations against approved patterns.
5
- *
6
- * MIGRATION: Now uses IPatternService for pattern operations.
7
- *
8
- * @requirements 29.3
9
- */
10
- import { Command } from 'commander';
11
- import type { Violation } from 'driftdetect-core';
12
- export interface CheckOptions {
13
- /** Check only staged files */
14
- staged?: boolean;
15
- /** Run in CI mode */
16
- ci?: boolean;
17
- /** Output format */
18
- format?: 'text' | 'json' | 'github' | 'gitlab';
19
- /** Fail threshold (error, warning, none) */
20
- failOn?: 'error' | 'warning' | 'none';
21
- /** Enable verbose output */
22
- verbose?: boolean;
23
- }
24
- export interface CheckResult {
25
- /** Number of violations */
26
- violationCount: number;
27
- /** Number of errors */
28
- errorCount: number;
29
- /** Number of warnings */
30
- warningCount: number;
31
- /** Exit code */
32
- exitCode: number;
33
- /** Violations found */
34
- violations: Violation[];
35
- }
36
- /**
37
- * Determine exit code based on violations and threshold
38
- */
39
- export declare function getExitCode(violations: Violation[], failOn: 'error' | 'warning' | 'none'): number;
40
- export declare const checkCommand: Command;
41
- //# sourceMappingURL=check.d.ts.map
@@ -1,35 +0,0 @@
1
- /**
2
- * Constants Command - drift constants
3
- *
4
- * Analyze constants, enums, and exported values across the codebase.
5
- * Detects hardcoded secrets, inconsistent values, and magic numbers.
6
- *
7
- * @requirements Constant & Enum Extraction Feature
8
- */
9
- import { Command } from 'commander';
10
- import { type ConstantCategory, type ConstantLanguage, type IssueSeverity } from 'driftdetect-core';
11
- export interface ConstantsOptions {
12
- /** Output format */
13
- format?: 'text' | 'json' | 'csv';
14
- /** Filter by category */
15
- category?: ConstantCategory;
16
- /** Filter by language */
17
- language?: ConstantLanguage;
18
- /** Filter by file path */
19
- file?: string;
20
- /** Search by name */
21
- search?: string;
22
- /** Filter by exported status */
23
- exported?: boolean;
24
- /** Minimum severity for secrets */
25
- severity?: IssueSeverity;
26
- /** Limit results */
27
- limit?: number;
28
- /** Enable verbose output */
29
- verbose?: boolean;
30
- }
31
- /**
32
- * Create the constants command with subcommands
33
- */
34
- export declare const constantsCommand: Command;
35
- //# sourceMappingURL=constants.d.ts.map
@@ -1,17 +0,0 @@
1
- /**
2
- * Constraints Command - drift constraints
3
- *
4
- * Manage architectural constraints learned from the codebase.
5
- * Constraints are invariants that MUST be satisfied by code.
6
- */
7
- import { Command } from 'commander';
8
- export interface ConstraintsOptions {
9
- format?: 'text' | 'json';
10
- verbose?: boolean;
11
- category?: string;
12
- status?: string;
13
- limit?: number;
14
- minConfidence?: number;
15
- }
16
- export declare function createConstraintsCommand(): Command;
17
- //# sourceMappingURL=constraints.d.ts.map
@@ -1,19 +0,0 @@
1
- /**
2
- * Context Command - Generate package-scoped AI context
3
- *
4
- * @license Apache-2.0
5
- *
6
- * Generates AI-optimized context for specific packages in a monorepo.
7
- * Minimizes token usage by scoping patterns, constraints, and examples
8
- * to only what's relevant for the target package.
9
- *
10
- * Usage:
11
- * drift context @drift/core # Generate context for a package
12
- * drift context packages/core # By path
13
- * drift context @drift/core --format ai # AI-optimized format
14
- * drift context @drift/core --snippets # Include code snippets
15
- * drift context --list # List all packages
16
- */
17
- import { Command } from 'commander';
18
- export declare const contextCommand: Command;
19
- //# sourceMappingURL=context.d.ts.map
@@ -1,17 +0,0 @@
1
- /**
2
- * Module Coupling Command - drift coupling
3
- *
4
- * Analyze module dependencies, detect cycles, and calculate coupling metrics.
5
- * Based on Robert C. Martin's coupling metrics (Ca, Ce, Instability, Abstractness, Distance).
6
- */
7
- import { Command } from 'commander';
8
- export interface CouplingOptions {
9
- format?: 'text' | 'json';
10
- verbose?: boolean;
11
- limit?: number;
12
- minCoupling?: number;
13
- maxCycleLength?: number;
14
- minSeverity?: 'info' | 'warning' | 'critical';
15
- }
16
- export declare function createCouplingCommand(): Command;
17
- //# sourceMappingURL=coupling.d.ts.map
@@ -1,22 +0,0 @@
1
- /**
2
- * C++ Command - drift cpp
3
- *
4
- * Analyze C++ projects: classes, memory, templates, virtual functions.
5
- *
6
- * @requirements C++ Language Support
7
- * @license Apache-2.0
8
- */
9
- import { Command } from 'commander';
10
- export interface CppOptions {
11
- /** Output format */
12
- format?: 'text' | 'json';
13
- /** Enable verbose output */
14
- verbose?: boolean;
15
- /** Filter by framework */
16
- framework?: string;
17
- }
18
- /**
19
- * Create the C++ command
20
- */
21
- export declare function createCppCommand(): Command;
22
- //# sourceMappingURL=cpp.d.ts.map
@@ -1,16 +0,0 @@
1
- /**
2
- * Dashboard Command - drift dashboard
3
- *
4
- * Launch the local web dashboard for visualizing patterns and violations.
5
- */
6
- import { Command } from 'commander';
7
- export interface DashboardOptions {
8
- /** Port to run the server on */
9
- port?: number;
10
- /** Don't open browser automatically */
11
- noBrowser?: boolean;
12
- /** Enable verbose output */
13
- verbose?: boolean;
14
- }
15
- export declare const dashboardCommand: Command;
16
- //# sourceMappingURL=dashboard.d.ts.map
@@ -1,19 +0,0 @@
1
- /**
2
- * Decision Mining Command - drift decisions
3
- *
4
- * Mine architectural decisions from git history.
5
- * Analyzes commits to discover and synthesize ADRs (Architecture Decision Records).
6
- */
7
- import { Command } from 'commander';
8
- export interface DecisionsOptions {
9
- format?: 'text' | 'json';
10
- verbose?: boolean;
11
- limit?: number;
12
- since?: string;
13
- until?: string;
14
- minConfidence?: string;
15
- category?: string;
16
- status?: string;
17
- }
18
- export declare function createDecisionsCommand(): Command;
19
- //# sourceMappingURL=decisions.d.ts.map
@@ -1,6 +0,0 @@
1
- /**
2
- * DNA Export Command - drift dna export
3
- */
4
- import { Command } from 'commander';
5
- export declare const dnaExportCommand: Command;
6
- //# sourceMappingURL=export.d.ts.map
@@ -1,6 +0,0 @@
1
- /**
2
- * DNA Gene Command - drift dna gene <id>
3
- */
4
- import { Command } from 'commander';
5
- export declare const dnaGeneCommand: Command;
6
- //# sourceMappingURL=gene.d.ts.map
@@ -1,8 +0,0 @@
1
- /**
2
- * DNA Command - drift dna
3
- *
4
- * Styling DNA analysis and management commands.
5
- */
6
- import { Command } from 'commander';
7
- export declare const dnaCommand: Command;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1,6 +0,0 @@
1
- /**
2
- * DNA Mutations Command - drift dna mutations
3
- */
4
- import { Command } from 'commander';
5
- export declare const dnaMutationsCommand: Command;
6
- //# sourceMappingURL=mutations.d.ts.map
@@ -1,6 +0,0 @@
1
- /**
2
- * DNA Playbook Command - drift dna playbook
3
- */
4
- import { Command } from 'commander';
5
- export declare const dnaPlaybookCommand: Command;
6
- //# sourceMappingURL=playbook.d.ts.map
@@ -1,6 +0,0 @@
1
- /**
2
- * DNA Scan Command - drift dna scan
3
- */
4
- import { Command } from 'commander';
5
- export declare const dnaScanCommand: Command;
6
- //# sourceMappingURL=scan.d.ts.map
@@ -1,6 +0,0 @@
1
- /**
2
- * DNA Status Command - drift dna status
3
- */
4
- import { Command } from 'commander';
5
- export declare const dnaStatusCommand: Command;
6
- //# sourceMappingURL=status.d.ts.map
@@ -1,23 +0,0 @@
1
- /**
2
- * Environment Command - drift env
3
- *
4
- * Show environment variable access patterns across the codebase.
5
- * Tracks which code accesses which environment variables/config.
6
- *
7
- * @requirements Environment Variable Detection Feature
8
- */
9
- import { Command } from 'commander';
10
- import { type EnvSensitivity } from 'driftdetect-core';
11
- export interface EnvOptions {
12
- /** Output format */
13
- format?: 'text' | 'json';
14
- /** Enable verbose output */
15
- verbose?: boolean;
16
- /** Filter by sensitivity */
17
- sensitivity?: EnvSensitivity;
18
- }
19
- /**
20
- * Create the env command with subcommands
21
- */
22
- export declare const envCommand: Command;
23
- //# sourceMappingURL=env.d.ts.map
@@ -1,15 +0,0 @@
1
- /**
2
- * Error Handling Command - drift error-handling
3
- *
4
- * Analyze error handling patterns, detect gaps, and find unhandled error paths.
5
- */
6
- import { Command } from 'commander';
7
- import { type ErrorSeverity } from 'driftdetect-core';
8
- export interface ErrorHandlingOptions {
9
- format?: 'text' | 'json';
10
- verbose?: boolean;
11
- limit?: number;
12
- minSeverity?: ErrorSeverity;
13
- }
14
- export declare function createErrorHandlingCommand(): Command;
15
- //# sourceMappingURL=error-handling.d.ts.map
@@ -1,16 +0,0 @@
1
- /**
2
- * Export Command - Export manifest in various formats
3
- *
4
- * Exports the pattern manifest for AI consumption or reporting.
5
- *
6
- * MIGRATION: Now uses IPatternService for pattern operations.
7
- *
8
- * Usage:
9
- * drift export # Export as JSON to stdout
10
- * drift export --format ai-context # Export optimized for LLMs
11
- * drift export --format summary # Human-readable summary
12
- * drift export -o report.md # Write to file
13
- */
14
- import { Command } from 'commander';
15
- export declare const exportCommand: Command;
16
- //# sourceMappingURL=export.d.ts.map
@@ -1,15 +0,0 @@
1
- /**
2
- * Files Command - Show patterns in a file
3
- *
4
- * Show what patterns are found in a specific file.
5
- *
6
- * MIGRATION: Now uses IPatternService for pattern operations.
7
- *
8
- * Usage:
9
- * drift files src/auth/middleware.py
10
- * drift files 'src/api/*.ts'
11
- * drift files --json src/api/
12
- */
13
- import { Command } from 'commander';
14
- export declare const filesCommand: Command;
15
- //# sourceMappingURL=files.d.ts.map
@@ -1,33 +0,0 @@
1
- /**
2
- * Gate Command
3
- *
4
- * @license Apache-2.0
5
- *
6
- * CLI command for running quality gates on code changes.
7
- *
8
- * Usage:
9
- * drift gate # Run with default policy
10
- * drift gate --policy strict # Run with strict policy
11
- * drift gate --format sarif # Output in SARIF format
12
- * drift gate --ci # CI mode with JSON output
13
- */
14
- import { Command } from 'commander';
15
- export interface GateCommandOptions {
16
- policy?: string;
17
- gates?: string;
18
- format?: string;
19
- ci?: boolean;
20
- verbose?: boolean;
21
- dryRun?: boolean;
22
- staged?: boolean;
23
- output?: string;
24
- failOn?: string;
25
- files?: string[];
26
- root?: string;
27
- }
28
- /**
29
- * Create the gate command.
30
- */
31
- export declare function createGateCommand(): Command;
32
- export default createGateCommand;
33
- //# sourceMappingURL=gate.d.ts.map
@@ -1,21 +0,0 @@
1
- /**
2
- * Go Command - drift go
3
- *
4
- * Analyze Go projects: routes, error handling, interfaces, data access.
5
- *
6
- * @requirements Go Language Support
7
- */
8
- import { Command } from 'commander';
9
- export interface GoOptions {
10
- /** Output format */
11
- format?: 'text' | 'json';
12
- /** Enable verbose output */
13
- verbose?: boolean;
14
- /** Filter by framework */
15
- framework?: string;
16
- }
17
- /**
18
- * Create the Go command
19
- */
20
- export declare function createGoCommand(): Command;
21
- //# sourceMappingURL=go.d.ts.map
@@ -1,20 +0,0 @@
1
- /**
2
- * Ignore Command - drift ignore
3
- *
4
- * Ignore a pattern to stop tracking it.
5
- *
6
- * MIGRATION: Now uses IPatternService for pattern operations.
7
- *
8
- * @requirements 29.6
9
- */
10
- import { Command } from 'commander';
11
- export interface IgnoreOptions {
12
- /** Reason for ignoring */
13
- reason?: string;
14
- /** Skip confirmation prompt */
15
- yes?: boolean;
16
- /** Enable verbose output */
17
- verbose?: boolean;
18
- }
19
- export declare const ignoreCommand: Command;
20
- //# sourceMappingURL=ignore.d.ts.map
@@ -1,50 +0,0 @@
1
- /**
2
- * Commands module exports
3
- *
4
- * Exports all CLI commands for registration with Commander.js
5
- */
6
- export { initCommand } from './init.js';
7
- export { scanCommand } from './scan.js';
8
- export { checkCommand } from './check.js';
9
- export { statusCommand } from './status.js';
10
- export { approveCommand } from './approve.js';
11
- export { ignoreCommand } from './ignore.js';
12
- export { reportCommand } from './report.js';
13
- export { exportCommand } from './export.js';
14
- export { whereCommand } from './where.js';
15
- export { filesCommand } from './files.js';
16
- export { watchCommandDef as watchCommand } from './watch.js';
17
- export { dashboardCommand } from './dashboard.js';
18
- export { trendsCommand } from './trends.js';
19
- export { parserCommand } from './parser.js';
20
- export { dnaCommand } from './dna/index.js';
21
- export { boundariesCommand } from './boundaries.js';
22
- export { callgraphCommand } from './callgraph.js';
23
- export { projectsCommand } from './projects.js';
24
- export { skillsCommand } from './skills.js';
25
- export { migrateStorageCommand } from './migrate-storage.js';
26
- export { wrappersCommand } from './wrappers.js';
27
- export { createTestTopologyCommand } from './test-topology.js';
28
- export { createCouplingCommand } from './coupling.js';
29
- export { createErrorHandlingCommand } from './error-handling.js';
30
- export { createDecisionsCommand } from './decisions.js';
31
- export { createConstraintsCommand } from './constraints.js';
32
- export { createSimulateCommand } from './simulate.js';
33
- export { createWpfCommand } from './wpf.js';
34
- export { createGoCommand } from './go.js';
35
- export { createRustCommand } from './rust.js';
36
- export { createCppCommand } from './cpp.js';
37
- export { createTsCommand } from './ts.js';
38
- export { createPyCommand } from './py.js';
39
- export { createJavaCommand } from './java.js';
40
- export { createPhpCommand } from './php.js';
41
- export { envCommand } from './env.js';
42
- export { constantsCommand } from './constants.js';
43
- export { licenseCommand } from './license.js';
44
- export { createGateCommand } from './gate.js';
45
- export { contextCommand } from './context.js';
46
- export { telemetryCommand } from './telemetry.js';
47
- export { auditCommand } from './audit.js';
48
- export { nextStepsCommand } from './next-steps.js';
49
- export { troubleshootCommand } from './troubleshoot.js';
50
- //# sourceMappingURL=index.d.ts.map
@@ -1,68 +0,0 @@
1
- /**
2
- * Commands module exports
3
- *
4
- * Exports all CLI commands for registration with Commander.js
5
- */
6
- export { initCommand } from './init.js';
7
- export { scanCommand } from './scan.js';
8
- export { checkCommand } from './check.js';
9
- export { statusCommand } from './status.js';
10
- export { approveCommand } from './approve.js';
11
- export { ignoreCommand } from './ignore.js';
12
- export { reportCommand } from './report.js';
13
- export { exportCommand } from './export.js';
14
- export { whereCommand } from './where.js';
15
- export { filesCommand } from './files.js';
16
- export { watchCommandDef as watchCommand } from './watch.js';
17
- export { dashboardCommand } from './dashboard.js';
18
- export { trendsCommand } from './trends.js';
19
- export { parserCommand } from './parser.js';
20
- export { dnaCommand } from './dna/index.js';
21
- export { boundariesCommand } from './boundaries.js';
22
- export { callgraphCommand } from './callgraph.js';
23
- export { projectsCommand } from './projects.js';
24
- export { skillsCommand } from './skills.js';
25
- export { migrateStorageCommand } from './migrate-storage.js';
26
- export { wrappersCommand } from './wrappers.js';
27
- // Analysis commands (L5-L7 layers)
28
- export { createTestTopologyCommand } from './test-topology.js';
29
- export { createCouplingCommand } from './coupling.js';
30
- export { createErrorHandlingCommand } from './error-handling.js';
31
- export { createDecisionsCommand } from './decisions.js';
32
- export { createConstraintsCommand } from './constraints.js';
33
- // Speculative Execution Engine
34
- export { createSimulateCommand } from './simulate.js';
35
- // WPF Framework Support
36
- export { createWpfCommand } from './wpf.js';
37
- // Go Language Support
38
- export { createGoCommand } from './go.js';
39
- // Rust Language Support
40
- export { createRustCommand } from './rust.js';
41
- // C++ Language Support
42
- export { createCppCommand } from './cpp.js';
43
- // TypeScript/JavaScript Language Support
44
- export { createTsCommand } from './ts.js';
45
- // Python Language Support
46
- export { createPyCommand } from './py.js';
47
- // Java Language Support
48
- export { createJavaCommand } from './java.js';
49
- // PHP Language Support
50
- export { createPhpCommand } from './php.js';
51
- // Environment Variable Detection
52
- export { envCommand } from './env.js';
53
- // Constants & Enum Analysis
54
- export { constantsCommand } from './constants.js';
55
- // License Management
56
- export { licenseCommand } from './license.js';
57
- // Quality Gates (Enterprise)
58
- export { createGateCommand } from './gate.js';
59
- // Package Context (Monorepo AI context minimization)
60
- export { contextCommand } from './context.js';
61
- // Telemetry Management (Privacy-first, opt-in)
62
- export { telemetryCommand } from './telemetry.js';
63
- // Audit System (Pattern validation and approval workflows)
64
- export { auditCommand } from './audit.js';
65
- // User Guidance Commands
66
- export { nextStepsCommand } from './next-steps.js';
67
- export { troubleshootCommand } from './troubleshoot.js';
68
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"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"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Init Command - drift init
3
- *
4
- * Initialize Drift in a project by creating the .drift/ directory
5
- * and running an initial scan.
6
- *
7
- * @requirements 29.1, 38.1
8
- */
9
- import { Command } from 'commander';
10
- export interface InitOptions {
11
- /** Initialize from Cheatcode2026 scaffold */
12
- fromScaffold?: boolean;
13
- /** Skip interactive prompts */
14
- yes?: boolean;
15
- /** Enable verbose output */
16
- verbose?: boolean;
17
- }
18
- export declare const initCommand: Command;
19
- //# sourceMappingURL=init.d.ts.map
@@ -1,15 +0,0 @@
1
- /**
2
- * Java Command - drift java
3
- *
4
- * Analyze Java projects: routes, error handling, data access, annotations.
5
- *
6
- * @requirements Java Language Support
7
- */
8
- import { Command } from 'commander';
9
- export interface JavaOptions {
10
- format?: 'text' | 'json';
11
- verbose?: boolean;
12
- framework?: string;
13
- }
14
- export declare function createJavaCommand(): Command;
15
- //# sourceMappingURL=java.d.ts.map
@@ -1,12 +0,0 @@
1
- /**
2
- * License Command - drift license
3
- *
4
- * Display license status and available features.
5
- */
6
- import { Command } from 'commander';
7
- export interface LicenseOptions {
8
- /** Output format */
9
- format?: 'text' | 'json';
10
- }
11
- export declare const licenseCommand: Command;
12
- //# sourceMappingURL=license.d.ts.map
@@ -1,23 +0,0 @@
1
- /**
2
- * Migrate Storage Command - drift migrate-storage
3
- *
4
- * Migrates pattern storage from legacy status-based format to unified
5
- * category-based format (Phase 3 of Pattern System Consolidation).
6
- *
7
- * Legacy format:
8
- * .drift/patterns/
9
- * ├── discovered/
10
- * │ ├── api.json
11
- * │ └── security.json
12
- * ├── approved/
13
- * └── ignored/
14
- *
15
- * Unified format:
16
- * .drift/patterns/
17
- * ├── api.json # Contains all statuses
18
- * ├── security.json
19
- * └── ...
20
- */
21
- import { Command } from 'commander';
22
- export declare const migrateStorageCommand: Command;
23
- //# sourceMappingURL=migrate-storage.d.ts.map
@@ -1,15 +0,0 @@
1
- /**
2
- * Next Steps Command - drift next-steps
3
- *
4
- * Analyzes the current project state and recommends the most relevant
5
- * next actions based on project type, patterns found, and current status.
6
- *
7
- * This is the "what should I do next?" command for new users.
8
- */
9
- import { Command } from 'commander';
10
- export interface NextStepsOptions {
11
- format?: 'text' | 'json';
12
- verbose?: boolean;
13
- }
14
- export declare const nextStepsCommand: Command;
15
- //# sourceMappingURL=next-steps.d.ts.map
@@ -1,20 +0,0 @@
1
- /**
2
- * Parser Command - drift parser
3
- *
4
- * Show parser information and diagnostics for drift's language parsers.
5
- * Displays which parsers are available, their capabilities, and allows
6
- * testing parsing on specific files.
7
- *
8
- * @requirements Phase 4 - CLI Integration
9
- */
10
- import { Command } from 'commander';
11
- export interface ParserOptions {
12
- /** Test parsing a specific file */
13
- test?: string;
14
- /** Output format */
15
- format?: 'text' | 'json';
16
- /** Show verbose output */
17
- verbose?: boolean;
18
- }
19
- export declare const parserCommand: Command;
20
- //# sourceMappingURL=parser.d.ts.map
@@ -1,15 +0,0 @@
1
- /**
2
- * PHP Command - drift php
3
- *
4
- * Analyze PHP projects: routes, error handling, data access, traits.
5
- *
6
- * @requirements PHP Language Support
7
- */
8
- import { Command } from 'commander';
9
- export interface PhpOptions {
10
- format?: 'text' | 'json';
11
- verbose?: boolean;
12
- framework?: string;
13
- }
14
- export declare function createPhpCommand(): Command;
15
- //# sourceMappingURL=php.d.ts.map