@buoy-design/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +5 -0
- package/dist/bin.js.map +1 -0
- package/dist/commands/__tests__/ci.test.d.ts +2 -0
- package/dist/commands/__tests__/ci.test.d.ts.map +1 -0
- package/dist/commands/__tests__/ci.test.js +33 -0
- package/dist/commands/__tests__/ci.test.js.map +1 -0
- package/dist/commands/bootstrap.d.ts +3 -0
- package/dist/commands/bootstrap.d.ts.map +1 -0
- package/dist/commands/bootstrap.js +458 -0
- package/dist/commands/bootstrap.js.map +1 -0
- package/dist/commands/build.d.ts +3 -0
- package/dist/commands/build.d.ts.map +1 -0
- package/dist/commands/build.js +314 -0
- package/dist/commands/build.js.map +1 -0
- package/dist/commands/ci.d.ts +24 -0
- package/dist/commands/ci.d.ts.map +1 -0
- package/dist/commands/ci.js +273 -0
- package/dist/commands/ci.js.map +1 -0
- package/dist/commands/ci.logic.d.ts +20 -0
- package/dist/commands/ci.logic.d.ts.map +1 -0
- package/dist/commands/ci.logic.js +28 -0
- package/dist/commands/ci.logic.js.map +1 -0
- package/dist/commands/drift.d.ts +3 -0
- package/dist/commands/drift.d.ts.map +1 -0
- package/dist/commands/drift.js +178 -0
- package/dist/commands/drift.js.map +1 -0
- package/dist/commands/index.d.ts +9 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +9 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +490 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/plugins.d.ts +3 -0
- package/dist/commands/plugins.d.ts.map +1 -0
- package/dist/commands/plugins.js +72 -0
- package/dist/commands/plugins.js.map +1 -0
- package/dist/commands/scan.d.ts +3 -0
- package/dist/commands/scan.d.ts.map +1 -0
- package/dist/commands/scan.js +266 -0
- package/dist/commands/scan.js.map +1 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +205 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +3 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +8 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +67 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/schema.d.ts +1040 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +116 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/detect/frameworks.d.ts +18 -0
- package/dist/detect/frameworks.d.ts.map +1 -0
- package/dist/detect/frameworks.js +168 -0
- package/dist/detect/frameworks.js.map +1 -0
- package/dist/detect/index.d.ts +3 -0
- package/dist/detect/index.d.ts.map +1 -0
- package/dist/detect/index.js +3 -0
- package/dist/detect/index.js.map +1 -0
- package/dist/detect/project-detector.d.ts +61 -0
- package/dist/detect/project-detector.d.ts.map +1 -0
- package/dist/detect/project-detector.js +849 -0
- package/dist/detect/project-detector.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/output/formatters.d.ts +21 -0
- package/dist/output/formatters.d.ts.map +1 -0
- package/dist/output/formatters.js +421 -0
- package/dist/output/formatters.js.map +1 -0
- package/dist/output/index.d.ts +3 -0
- package/dist/output/index.d.ts.map +1 -0
- package/dist/output/index.js +3 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/reporters.d.ts +23 -0
- package/dist/output/reporters.d.ts.map +1 -0
- package/dist/output/reporters.js +147 -0
- package/dist/output/reporters.js.map +1 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +3 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/loader.d.ts +11 -0
- package/dist/plugins/loader.d.ts.map +1 -0
- package/dist/plugins/loader.js +77 -0
- package/dist/plugins/loader.js.map +1 -0
- package/dist/plugins/registry.d.ts +15 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +32 -0
- package/dist/plugins/registry.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DriftSignal, Severity } from '@buoy-design/core';
|
|
2
|
+
export interface CIResult {
|
|
3
|
+
version: string;
|
|
4
|
+
timestamp: string;
|
|
5
|
+
summary: {
|
|
6
|
+
total: number;
|
|
7
|
+
critical: number;
|
|
8
|
+
warning: number;
|
|
9
|
+
info: number;
|
|
10
|
+
};
|
|
11
|
+
topIssues: DriftSignal[];
|
|
12
|
+
exitCode: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function buildCIResult(drifts: DriftSignal[], failOn: Severity | 'none'): CIResult;
|
|
15
|
+
export declare function calculateExitCode(summary: {
|
|
16
|
+
critical: number;
|
|
17
|
+
warning: number;
|
|
18
|
+
info: number;
|
|
19
|
+
}, failOn: Severity | 'none'): number;
|
|
20
|
+
//# sourceMappingURL=ci.logic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci.logic.d.ts","sourceRoot":"","sources":["../../src/commands/ci.logic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE/D,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,WAAW,EAAE,EACrB,MAAM,EAAE,QAAQ,GAAG,MAAM,GACxB,QAAQ,CAiBV;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAC5D,MAAM,EAAE,QAAQ,GAAG,MAAM,GACxB,MAAM,CAMR"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function buildCIResult(drifts, failOn) {
|
|
2
|
+
const summary = {
|
|
3
|
+
total: drifts.length,
|
|
4
|
+
critical: drifts.filter(d => d.severity === 'critical').length,
|
|
5
|
+
warning: drifts.filter(d => d.severity === 'warning').length,
|
|
6
|
+
info: drifts.filter(d => d.severity === 'info').length,
|
|
7
|
+
};
|
|
8
|
+
const exitCode = calculateExitCode(summary, failOn);
|
|
9
|
+
return {
|
|
10
|
+
version: '1.0.0',
|
|
11
|
+
timestamp: new Date().toISOString(),
|
|
12
|
+
summary,
|
|
13
|
+
topIssues: drifts.slice(0, 10),
|
|
14
|
+
exitCode,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export function calculateExitCode(summary, failOn) {
|
|
18
|
+
if (failOn === 'none')
|
|
19
|
+
return 0;
|
|
20
|
+
if (failOn === 'critical' && summary.critical > 0)
|
|
21
|
+
return 1;
|
|
22
|
+
if (failOn === 'warning' && (summary.critical > 0 || summary.warning > 0))
|
|
23
|
+
return 1;
|
|
24
|
+
if (failOn === 'info' && (summary.critical > 0 || summary.warning > 0 || summary.info > 0))
|
|
25
|
+
return 1;
|
|
26
|
+
return 0;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=ci.logic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci.logic.js","sourceRoot":"","sources":["../../src/commands/ci.logic.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AC,IAAI,GAAG,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC;IACrG,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drift.d.ts","sourceRoot":"","sources":["../../src/commands/drift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqBpC,wBAAgB,kBAAkB,IAAI,OAAO,CAuL5C"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
import { loadConfig } from '../config/loader.js';
|
|
3
|
+
import { spinner, success, error, info, warning, header, keyValue, newline, setJsonMode, } from '../output/reporters.js';
|
|
4
|
+
import { formatDriftTable, formatDriftList, formatJson, formatMarkdown, } from '../output/formatters.js';
|
|
5
|
+
export function createDriftCommand() {
|
|
6
|
+
const cmd = new Command('drift')
|
|
7
|
+
.description('Detect and manage design system drift');
|
|
8
|
+
// drift check
|
|
9
|
+
cmd
|
|
10
|
+
.command('check')
|
|
11
|
+
.description('Check for drift in the current project')
|
|
12
|
+
.option('-s, --severity <level>', 'Filter by minimum severity (info, warning, critical)')
|
|
13
|
+
.option('-t, --type <type>', 'Filter by drift type')
|
|
14
|
+
.option('--json', 'Output as JSON')
|
|
15
|
+
.option('--markdown', 'Output as Markdown')
|
|
16
|
+
.option('--compact', 'Compact table output (less detail)')
|
|
17
|
+
.option('-v, --verbose', 'Verbose output')
|
|
18
|
+
.action(async (options) => {
|
|
19
|
+
// Set JSON mode before creating spinner to redirect spinner to stderr
|
|
20
|
+
if (options.json) {
|
|
21
|
+
setJsonMode(true);
|
|
22
|
+
}
|
|
23
|
+
const spin = spinner('Loading configuration...');
|
|
24
|
+
try {
|
|
25
|
+
const { config } = await loadConfig();
|
|
26
|
+
spin.text = 'Scanning for drift...';
|
|
27
|
+
// Import required modules
|
|
28
|
+
const { ReactComponentScanner } = await import('@buoy-design/scanners/git');
|
|
29
|
+
const { SemanticDiffEngine } = await import('@buoy-design/core/analysis');
|
|
30
|
+
// First, scan components
|
|
31
|
+
const sourceComponents = [];
|
|
32
|
+
if (config.sources.react?.enabled) {
|
|
33
|
+
spin.text = 'Scanning React components...';
|
|
34
|
+
const scanner = new ReactComponentScanner({
|
|
35
|
+
projectRoot: process.cwd(),
|
|
36
|
+
include: config.sources.react.include,
|
|
37
|
+
exclude: config.sources.react.exclude,
|
|
38
|
+
designSystemPackage: config.sources.react.designSystemPackage,
|
|
39
|
+
});
|
|
40
|
+
const result = await scanner.scan();
|
|
41
|
+
sourceComponents.push(...result.items);
|
|
42
|
+
}
|
|
43
|
+
spin.text = 'Analyzing drift...';
|
|
44
|
+
// Run semantic diff engine
|
|
45
|
+
const engine = new SemanticDiffEngine();
|
|
46
|
+
const diffResult = engine.analyzeComponents(sourceComponents, {
|
|
47
|
+
checkDeprecated: true,
|
|
48
|
+
checkNaming: true,
|
|
49
|
+
checkDocumentation: true,
|
|
50
|
+
});
|
|
51
|
+
let drifts = diffResult.drifts;
|
|
52
|
+
// Apply filters
|
|
53
|
+
if (options.severity) {
|
|
54
|
+
const severityOrder = {
|
|
55
|
+
info: 0,
|
|
56
|
+
warning: 1,
|
|
57
|
+
critical: 2,
|
|
58
|
+
};
|
|
59
|
+
const minSeverity = severityOrder[options.severity] || 0;
|
|
60
|
+
drifts = drifts.filter(d => severityOrder[d.severity] >= minSeverity);
|
|
61
|
+
}
|
|
62
|
+
if (options.type) {
|
|
63
|
+
drifts = drifts.filter(d => d.type === options.type);
|
|
64
|
+
}
|
|
65
|
+
// Apply ignore rules from config
|
|
66
|
+
for (const ignoreRule of config.drift.ignore) {
|
|
67
|
+
drifts = drifts.filter(d => {
|
|
68
|
+
if (d.type !== ignoreRule.type)
|
|
69
|
+
return true;
|
|
70
|
+
if (!ignoreRule.pattern)
|
|
71
|
+
return false;
|
|
72
|
+
const regex = new RegExp(ignoreRule.pattern);
|
|
73
|
+
return !regex.test(d.source.entityName);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
spin.stop();
|
|
77
|
+
// Output results
|
|
78
|
+
if (options.json) {
|
|
79
|
+
console.log(formatJson({ drifts, summary: getSummary(drifts) }));
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (options.markdown) {
|
|
83
|
+
console.log(formatMarkdown(drifts));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
header('Drift Analysis');
|
|
87
|
+
newline();
|
|
88
|
+
const summary = getSummary(drifts);
|
|
89
|
+
keyValue('Components scanned', String(sourceComponents.length));
|
|
90
|
+
keyValue('Critical', String(summary.critical));
|
|
91
|
+
keyValue('Warning', String(summary.warning));
|
|
92
|
+
keyValue('Info', String(summary.info));
|
|
93
|
+
newline();
|
|
94
|
+
// Use compact table or detailed list
|
|
95
|
+
if (options.compact) {
|
|
96
|
+
console.log(formatDriftTable(drifts));
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
console.log(formatDriftList(drifts));
|
|
100
|
+
}
|
|
101
|
+
newline();
|
|
102
|
+
if (summary.critical > 0) {
|
|
103
|
+
warning(`${summary.critical} critical issues require attention.`);
|
|
104
|
+
}
|
|
105
|
+
else if (drifts.length === 0) {
|
|
106
|
+
success('No drift detected. Your design system is aligned!');
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
info(`Found ${drifts.length} drift signals. Run with --compact for summary view.`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (err) {
|
|
113
|
+
spin.stop();
|
|
114
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
115
|
+
error(`Drift check failed: ${message}`);
|
|
116
|
+
if (options.verbose) {
|
|
117
|
+
console.error(err);
|
|
118
|
+
}
|
|
119
|
+
process.exit(1);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
// drift explain
|
|
123
|
+
// TODO: Implement AI-powered drift explanation with git forensics
|
|
124
|
+
//
|
|
125
|
+
// Implementation steps:
|
|
126
|
+
// 1. Load the drift signal by ID from scan results or cache
|
|
127
|
+
// 2. Fetch git context for the affected file/line:
|
|
128
|
+
// - git blame -L <line>,<line> <file> → who changed it, when, commit hash
|
|
129
|
+
// - git log -1 --format="%s%n%n%b" <hash> → commit message
|
|
130
|
+
// - git show <hash>^:<file> → previous version of the code
|
|
131
|
+
// - git log -p -L <line>,<line>:<file> → full history of this line
|
|
132
|
+
// 3. Try to find associated PR (GitHub API or parse commit message for #123)
|
|
133
|
+
// 4. Build context object matching GitContext schema in @buoy-design/core
|
|
134
|
+
// 5. Send to Claude API with structured prompt:
|
|
135
|
+
// - Drift type and severity
|
|
136
|
+
// - Current vs expected code
|
|
137
|
+
// - Git blame info (who, when, why)
|
|
138
|
+
// - Previous code before drift
|
|
139
|
+
// - Ask for: root cause, impact, fix, prevention
|
|
140
|
+
// 6. Display formatted explanation with actionable next steps
|
|
141
|
+
//
|
|
142
|
+
// See: packages/core/src/models/drift.ts → GitContextSchema
|
|
143
|
+
cmd
|
|
144
|
+
.command('explain <driftId>')
|
|
145
|
+
.description('Get detailed explanation for a drift signal (uses AI + git history)')
|
|
146
|
+
.action(async (driftId) => {
|
|
147
|
+
info('Claude integration not yet implemented.');
|
|
148
|
+
info(`To explain drift: ${driftId}`);
|
|
149
|
+
info('Enable Claude in buoy.config.ts and ensure ANTHROPIC_API_KEY is set.');
|
|
150
|
+
info('');
|
|
151
|
+
info('When implemented, this will:');
|
|
152
|
+
info(' • Analyze git blame to find who introduced the drift');
|
|
153
|
+
info(' • Check commit history for context on why');
|
|
154
|
+
info(' • Use Claude to explain impact and suggest fixes');
|
|
155
|
+
});
|
|
156
|
+
// drift resolve
|
|
157
|
+
cmd
|
|
158
|
+
.command('resolve <driftId>')
|
|
159
|
+
.description('Mark a drift signal as resolved')
|
|
160
|
+
.option('-r, --resolution <type>', 'Resolution type (ignored, fixed, documented)', 'fixed')
|
|
161
|
+
.option('-m, --message <message>', 'Resolution message')
|
|
162
|
+
.action(async (driftId, options) => {
|
|
163
|
+
info(`Marking drift ${driftId} as ${options.resolution}`);
|
|
164
|
+
if (options.message) {
|
|
165
|
+
info(`Reason: ${options.message}`);
|
|
166
|
+
}
|
|
167
|
+
success('Drift resolved (note: persistence not yet implemented)');
|
|
168
|
+
});
|
|
169
|
+
return cmd;
|
|
170
|
+
}
|
|
171
|
+
function getSummary(drifts) {
|
|
172
|
+
return {
|
|
173
|
+
critical: drifts.filter(d => d.severity === 'critical').length,
|
|
174
|
+
warning: drifts.filter(d => d.severity === 'warning').length,
|
|
175
|
+
info: drifts.filter(d => d.severity === 'info').length,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=drift.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drift.js","sourceRoot":"","sources":["../../src/commands/drift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EACL,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,cAAc,GACf,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,kBAAkB;IAChC,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;SAC7B,WAAW,CAAC,uCAAuC,CAAC,CAAC;IAExD,cAAc;IACd,GAAG;SACA,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,wCAAwC,CAAC;SACrD,MAAM,CAAC,wBAAwB,EAAE,sDAAsD,CAAC;SACxF,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC;SACnD,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAAC;SAClC,MAAM,CAAC,YAAY,EAAE,oBAAoB,CAAC;SAC1C,MAAM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J,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { createInitCommand } from './init.js';
|
|
2
|
+
export { createScanCommand } from './scan.js';
|
|
3
|
+
export { createDriftCommand } from './drift.js';
|
|
4
|
+
export { createStatusCommand } from './status.js';
|
|
5
|
+
export { createBootstrapCommand } from './bootstrap.js';
|
|
6
|
+
export { createBuildCommand } from './build.js';
|
|
7
|
+
export { createPluginsCommand } from './plugins.js';
|
|
8
|
+
export { createCICommand } from './ci.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { createInitCommand } from './init.js';
|
|
2
|
+
export { createScanCommand } from './scan.js';
|
|
3
|
+
export { createDriftCommand } from './drift.js';
|
|
4
|
+
export { createStatusCommand } from './status.js';
|
|
5
|
+
export { createBootstrapCommand } from './bootstrap.js';
|
|
6
|
+
export { createBuildCommand } from './build.js';
|
|
7
|
+
export { createPluginsCommand } from './plugins.js';
|
|
8
|
+
export { createCICommand } from './ci.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2WpC,wBAAgB,iBAAiB,IAAI,OAAO,CAwL3C"}
|