driftdetect 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/bin/drift.js +15 -1
  2. package/dist/bin/drift.js.map +1 -1
  3. package/dist/commands/boundaries.d.ts.map +1 -0
  4. package/dist/commands/boundaries.js +602 -0
  5. package/dist/commands/boundaries.js.map +1 -0
  6. package/dist/commands/dna/export.d.ts.map +1 -0
  7. package/dist/commands/dna/export.js +91 -0
  8. package/dist/commands/dna/export.js.map +1 -0
  9. package/dist/commands/dna/gene.d.ts.map +1 -0
  10. package/dist/commands/dna/gene.js +96 -0
  11. package/dist/commands/dna/gene.js.map +1 -0
  12. package/dist/commands/dna/index.d.ts.map +1 -0
  13. package/dist/commands/dna/index.js +25 -0
  14. package/dist/commands/dna/index.js.map +1 -0
  15. package/dist/commands/dna/mutations.d.ts.map +1 -0
  16. package/dist/commands/dna/mutations.js +111 -0
  17. package/dist/commands/dna/mutations.js.map +1 -0
  18. package/dist/commands/dna/playbook.d.ts.map +1 -0
  19. package/dist/commands/dna/playbook.js +67 -0
  20. package/dist/commands/dna/playbook.js.map +1 -0
  21. package/dist/commands/dna/scan.d.ts.map +1 -0
  22. package/dist/commands/dna/scan.js +117 -0
  23. package/dist/commands/dna/scan.js.map +1 -0
  24. package/dist/commands/dna/status.d.ts.map +1 -0
  25. package/dist/commands/dna/status.js +106 -0
  26. package/dist/commands/dna/status.js.map +1 -0
  27. package/dist/commands/index.d.ts.map +1 -1
  28. package/dist/commands/index.js +4 -0
  29. package/dist/commands/index.js.map +1 -1
  30. package/dist/commands/parser.d.ts.map +1 -0
  31. package/dist/commands/parser.js +521 -0
  32. package/dist/commands/parser.js.map +1 -0
  33. package/dist/commands/scan.d.ts.map +1 -1
  34. package/dist/commands/scan.js +118 -3
  35. package/dist/commands/scan.js.map +1 -1
  36. package/dist/commands/trends.d.ts.map +1 -0
  37. package/dist/commands/trends.js +115 -0
  38. package/dist/commands/trends.js.map +1 -0
  39. package/dist/commands/watch.js +2 -2
  40. package/dist/commands/watch.js.map +1 -1
  41. package/dist/services/boundary-scanner.d.ts.map +1 -0
  42. package/dist/services/boundary-scanner.js +374 -0
  43. package/dist/services/boundary-scanner.js.map +1 -0
  44. package/dist/services/contract-scanner.d.ts.map +1 -1
  45. package/dist/services/contract-scanner.js +49 -1
  46. package/dist/services/contract-scanner.js.map +1 -1
  47. package/dist/services/scanner-service.d.ts.map +1 -1
  48. package/dist/services/scanner-service.js +32 -1
  49. package/dist/services/scanner-service.js.map +1 -1
  50. package/package.json +6 -6
  51. package/dist/bin/drift.d.ts +0 -11
  52. package/dist/commands/approve.d.ts +0 -18
  53. package/dist/commands/check.d.ts +0 -39
  54. package/dist/commands/dashboard.d.ts +0 -16
  55. package/dist/commands/export.d.ts +0 -16
  56. package/dist/commands/files.d.ts +0 -15
  57. package/dist/commands/ignore.d.ts +0 -18
  58. package/dist/commands/index.d.ts +0 -18
  59. package/dist/commands/init.d.ts +0 -19
  60. package/dist/commands/report.d.ts +0 -20
  61. package/dist/commands/scan.d.ts +0 -29
  62. package/dist/commands/status.d.ts +0 -18
  63. package/dist/commands/watch.d.ts +0 -13
  64. package/dist/commands/where.d.ts +0 -15
  65. package/dist/git/hooks.d.ts +0 -108
  66. package/dist/git/index.d.ts +0 -6
  67. package/dist/git/staged-files.d.ts +0 -41
  68. package/dist/index.d.ts +0 -17
  69. package/dist/reporters/github-reporter.d.ts +0 -13
  70. package/dist/reporters/gitlab-reporter.d.ts +0 -16
  71. package/dist/reporters/index.d.ts +0 -9
  72. package/dist/reporters/json-reporter.d.ts +0 -13
  73. package/dist/reporters/text-reporter.d.ts +0 -13
  74. package/dist/reporters/types.d.ts +0 -42
  75. package/dist/services/contract-scanner.d.ts +0 -35
  76. package/dist/services/scanner-service.d.ts +0 -166
  77. package/dist/types/index.d.ts +0 -24
  78. package/dist/ui/index.d.ts +0 -11
  79. package/dist/ui/progress.d.ts +0 -115
  80. package/dist/ui/prompts.d.ts +0 -91
  81. package/dist/ui/spinner.d.ts +0 -109
  82. package/dist/ui/table.d.ts +0 -118
@@ -1,118 +0,0 @@
1
- /**
2
- * Table - Table formatting for output
3
- *
4
- * Provides formatted table output for CLI results.
5
- *
6
- * @requirements 29.1
7
- */
8
- import Table from 'cli-table3';
9
- import type { Severity } from 'driftdetect-core';
10
- /**
11
- * Table style presets
12
- */
13
- export type TableStyle = 'default' | 'compact' | 'borderless' | 'minimal';
14
- /**
15
- * Table configuration options
16
- */
17
- export interface TableOptions {
18
- /** Table headers */
19
- head?: string[];
20
- /** Column widths */
21
- colWidths?: number[];
22
- /** Column alignments */
23
- colAligns?: Array<'left' | 'center' | 'right'>;
24
- /** Table style preset */
25
- style?: TableStyle;
26
- /** Word wrap long content */
27
- wordWrap?: boolean;
28
- }
29
- /**
30
- * Create a formatted table
31
- */
32
- export declare function createTable(options?: TableOptions): Table.Table;
33
- /**
34
- * Format a severity value with color
35
- */
36
- export declare function formatSeverity(severity: Severity): string;
37
- /**
38
- * Format a confidence score with color
39
- */
40
- export declare function formatConfidence(confidence: number): string;
41
- /**
42
- * Format a count with color based on value
43
- */
44
- export declare function formatCount(count: number, threshold?: number): string;
45
- /**
46
- * Format a file path (truncate if too long)
47
- */
48
- export declare function formatPath(path: string, maxLength?: number): string;
49
- /**
50
- * Pattern table row data
51
- */
52
- export interface PatternRow {
53
- id: string;
54
- name: string;
55
- category: string;
56
- confidence: number;
57
- locations: number;
58
- outliers: number;
59
- }
60
- /**
61
- * Create a patterns table
62
- */
63
- export declare function createPatternsTable(patterns: PatternRow[]): string;
64
- /**
65
- * Violation table row data
66
- */
67
- export interface ViolationRow {
68
- severity: Severity;
69
- file: string;
70
- line: number;
71
- message: string;
72
- pattern: string;
73
- }
74
- /**
75
- * Create a violations table
76
- */
77
- export declare function createViolationsTable(violations: ViolationRow[]): string;
78
- /**
79
- * Summary table row data
80
- */
81
- export interface SummaryRow {
82
- label: string;
83
- value: string | number;
84
- }
85
- /**
86
- * Create a summary table
87
- */
88
- export declare function createSummaryTable(rows: SummaryRow[]): string;
89
- /**
90
- * Status summary data
91
- */
92
- export interface StatusSummary {
93
- totalPatterns: number;
94
- approvedPatterns: number;
95
- discoveredPatterns: number;
96
- ignoredPatterns: number;
97
- totalViolations: number;
98
- errors: number;
99
- warnings: number;
100
- }
101
- /**
102
- * Create a status summary table
103
- */
104
- export declare function createStatusTable(summary: StatusSummary): string;
105
- /**
106
- * Category breakdown data
107
- */
108
- export interface CategoryBreakdown {
109
- category: string;
110
- patterns: number;
111
- violations: number;
112
- coverage: number;
113
- }
114
- /**
115
- * Create a category breakdown table
116
- */
117
- export declare function createCategoryTable(categories: CategoryBreakdown[]): string;
118
- //# sourceMappingURL=table.d.ts.map