-
Notifications
You must be signed in to change notification settings - Fork 292
Expand file tree
/
Copy pathinit.ts
More file actions
662 lines (589 loc) · 21.1 KB
/
Copy pathinit.ts
File metadata and controls
662 lines (589 loc) · 21.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
import path from 'path';
import os from 'os';
import { checkbox, select } from '@inquirer/prompts';
import { platformSelectPrompt } from './platform-select-prompt.js';
import {
PLATFORMS,
getPlatformSkillsDir,
type Platform,
} from '../../platform/install/platforms.js';
import {
detectPlatforms,
hasSkills,
getBaseDir,
type InstallScope,
} from '../../platform/install/detect.js';
import { upsertProjectInstallation } from '../../platform/install/project-registry.js';
import type { InstallMode } from '../../platform/install/types.js';
import {
copyCometSkillsForPlatform,
copyCometRulesForPlatform,
installCometHooksForPlatform,
createWorkingDirs,
mergeProjectConfig,
} from '../../domains/skill/platform-install.js';
import { LANGUAGES, type LanguageConfig } from '../../domains/skill/languages.js';
import { installOpenSpec, isCommandAvailable } from '../../domains/integrations/openspec.js';
import { installSuperpowersForPlatforms } from '../../domains/integrations/superpowers.js';
import {
hasCodegraphProjectIndex,
installCodegraph,
resolveCodegraphCommand,
} from '../../domains/integrations/codegraph.js';
import { printVersionInfo } from '../../platform/version/version.js';
import { printCometBanner } from '../cli/comet-banner.js';
import { t, type TranslationKey } from './i18n.js';
import { detectInstalledCometTargets } from './update.js';
type InitOptions = {
yes?: boolean;
skipExisting?: boolean;
overwrite?: boolean;
json?: boolean;
scope?: InstallScope;
language?: string;
installMode?: InstallMode;
};
type InstallStatus = 'installed' | 'skipped' | 'failed';
type ComponentAction = 'overwrite' | 'skip' | 'install' | 'reuse';
type BulkOverwriteChoice = 'overwrite-all' | 'skip-all' | 'choose';
interface PlatformResult {
platform: Platform;
openspec: InstallStatus;
superpowers: InstallStatus;
comet: InstallStatus;
codegraph: InstallStatus;
}
type ComponentPlan = {
osAction: ComponentAction;
spAction: ComponentAction;
cmAction: ComponentAction;
};
async function selectScope(options: InitOptions, lang: string): Promise<InstallScope> {
if (options.scope) return options.scope;
if (options.yes) return 'project';
return select({
message: t(lang, 'installScope'),
choices: [
{ name: t(lang, 'scopeProject'), value: 'project' as const },
{ name: t(lang, 'scopeGlobal'), value: 'global' as const },
],
});
}
async function selectLanguage(options: InitOptions): Promise<LanguageConfig> {
if (options.language) {
return LANGUAGES.find((l) => l.id === options.language) ?? LANGUAGES[0];
}
if (options.yes) return LANGUAGES[0];
const langId = await select({
message: t('en', 'languagePrompt'),
choices: LANGUAGES.map((lang) => ({ name: lang.name, value: lang.id })),
});
return LANGUAGES.find((l) => l.id === langId) ?? LANGUAGES[0];
}
async function selectInstallMode(options: InitOptions, lang: string): Promise<InstallMode> {
if (options.installMode) return options.installMode;
if (options.yes) return 'copy';
return select({
message: t(lang, 'installMode'),
choices: [
{ name: t(lang, 'installModeCopy'), value: 'copy' as const },
{ name: t(lang, 'installModeSymlink'), value: 'symlink' as const },
],
});
}
async function selectPlatforms(
detected: Set<string>,
options: InitOptions,
lang: string,
): Promise<string[]> {
const choices = PLATFORMS.map((p) => ({
name: `${p.name}${detected.has(p.id) ? ` (${t(lang, 'detected')})` : ''}`,
summaryName: p.name,
value: p.id,
checked: detected.has(p.id),
}));
if (options.yes) {
const selected = [...detected];
return selected.length > 0 ? selected : PLATFORMS.map((p) => p.id);
}
return platformSelectPrompt({
message: t(lang, 'selectPlatforms'),
choices,
selectedLabel: t(lang, 'selectedPlatforms'),
emptyLabel: t(lang, 'noneSelected'),
requiredErrorLabel: t(lang, 'selectPlatformsRequired'),
required: true,
});
}
async function promptOverwriteChoice(
componentName: string,
platformName: string,
lang: string,
): Promise<'overwrite' | 'skip'> {
return select({
message: `${componentName} ${t(lang, 'alreadyExists')} ${platformName}. ${t(lang, 'overwriteChoice')}`,
choices: [
{ name: t(lang, 'overwrite'), value: 'overwrite' as const },
{ name: t(lang, 'skip'), value: 'skip' as const },
],
});
}
async function promptBulkOverwriteChoice(
platformName: string,
components: string[],
lang: string,
): Promise<BulkOverwriteChoice> {
return select({
message: `${platformName} ${t(lang, 'bulkOverwrite')} ${components.join(', ')}. ${t(lang, 'overwriteChoice')}`,
choices: [
{ name: t(lang, 'overwriteAll'), value: 'overwrite-all' as const },
{ name: t(lang, 'skipAll'), value: 'skip-all' as const },
{ name: t(lang, 'choosePer'), value: 'choose' as const },
],
});
}
function applyBulkOverwriteChoice<T extends ComponentPlan>(
plan: T,
choice: Exclude<BulkOverwriteChoice, 'choose'>,
hasExisting?: { os?: boolean; sp?: boolean; cm?: boolean },
): T {
const action = choice === 'overwrite-all' ? 'overwrite' : 'skip';
const shouldApply = (actionState: ComponentAction, exists?: boolean) =>
actionState === 'install' && (hasExisting === undefined || exists === true);
return {
...plan,
osAction: shouldApply(plan.osAction, hasExisting?.os) ? action : plan.osAction,
spAction: shouldApply(plan.spAction, hasExisting?.sp) ? action : plan.spAction,
cmAction: shouldApply(plan.cmAction, hasExisting?.cm) ? action : plan.cmAction,
};
}
function resolveAction(
hasExisting: boolean,
options: InitOptions,
): 'overwrite' | 'skip' | 'install' {
if (!hasExisting) return 'install';
if (options.overwrite) return 'overwrite';
if (options.skipExisting) return 'skip';
if (options.yes) return 'skip';
return 'install';
}
function resolveCometAction(hasExisting: boolean, options: InitOptions): ComponentAction {
if (hasExisting && options.yes && !options.overwrite && !options.skipExisting) return 'reuse';
return resolveAction(hasExisting, options);
}
type NpmDepId = 'openspec' | 'superpowers' | 'codegraph';
interface NpmDepState {
id: NpmDepId;
installed: boolean;
}
async function selectNpmDeps(
projectPath: string,
spPlatformIds: string[],
options: InitOptions,
lang: string,
): Promise<Set<NpmDepId>> {
const openSpecInstalled = isCommandAvailable('openspec');
const codegraphInstalled =
hasCodegraphProjectIndex(projectPath) || resolveCodegraphCommand() !== null;
const superpowersInstalled = spPlatformIds.length === 0 ? true : undefined;
const states: NpmDepState[] = [
{ id: 'openspec', installed: openSpecInstalled },
{ id: 'superpowers', installed: Boolean(superpowersInstalled) },
{ id: 'codegraph', installed: codegraphInstalled },
];
const depLabel: Record<NpmDepId, (installed: boolean) => string> = {
openspec: (installed) =>
installed ? t(lang, 'npmDepOpenSpecInstalled') : t(lang, 'npmDepOpenSpec'),
superpowers: (installed) =>
installed ? t(lang, 'npmDepSuperpowersInstalled') : t(lang, 'npmDepSuperpowers'),
codegraph: (installed) =>
installed ? t(lang, 'npmDepCodegraphInstalled') : t(lang, 'npmDepCodegraph'),
};
const depHint: Partial<Record<NpmDepId, string>> = {
superpowers: t(lang, 'npmDepSuperpowersHint'),
};
const choices = states.map(({ id, installed }) => {
const choice: {
name: string;
value: NpmDepId;
checked: boolean;
description?: string;
} = {
name: depLabel[id](installed),
value: id,
checked: !installed,
};
if (depHint[id]) {
choice.description = depHint[id];
}
return choice;
});
if (options.yes) {
return new Set(states.filter((s) => !s.installed).map((s) => s.id));
}
const selected = await checkbox({
message: t(lang, 'selectNpmDeps'),
choices,
});
return new Set(selected as NpmDepId[]);
}
function hasFailure(r: PlatformResult): boolean {
return (
r.openspec === 'failed' ||
r.superpowers === 'failed' ||
r.comet === 'failed' ||
r.codegraph === 'failed'
);
}
function hasInstall(r: PlatformResult): boolean {
return (
r.openspec === 'installed' ||
r.superpowers === 'installed' ||
r.comet === 'installed' ||
r.codegraph === 'installed'
);
}
function isAllSkipped(r: PlatformResult): boolean {
return (
r.openspec === 'skipped' &&
r.superpowers === 'skipped' &&
r.comet === 'skipped' &&
r.codegraph === 'skipped'
);
}
function displaySummary(results: PlatformResult[], scope: InstallScope, lang: string): void {
const scopeLabel = scope === 'global' ? os.homedir() : 'project';
const componentStatuses: Array<[keyof Omit<PlatformResult, 'platform'>, string]> = [
['openspec', 'OpenSpec'],
['superpowers', 'Superpowers'],
['comet', 'Comet'],
['codegraph', 'CodeGraph'],
];
const failedDetails = (result: PlatformResult) =>
componentStatuses
.filter(([key]) => result[key] === 'failed')
.map(([, label]) => `${label} ${t(lang, 'failedStatus')}`)
.join(', ');
console.log(`\n ${t(lang, 'setupComplete')} (scope: ${scopeLabel})\n`);
// A platform with both installed and failed components is shown as failed,
// not both. Use priority: failed > installed > skipped.
const failed = results.filter(hasFailure);
const installed = results.filter((r) => !hasFailure(r) && hasInstall(r));
const skipped = results.filter(isAllSkipped);
if (installed.length > 0) {
console.log(` ${t(lang, 'installed')}`);
for (const r of installed) {
console.log(` ${r.platform.name} -> ${getPlatformSkillsDir(r.platform, scope)}/skills/`);
}
}
if (skipped.length > 0) {
console.log(` ${t(lang, 'skippedLabel')} ${skipped.map((r) => r.platform.name).join(', ')}`);
}
if (failed.length > 0) {
console.log(` ${t(lang, 'failedLabel')}`);
for (const r of failed) {
console.log(` ${r.platform.name} (${failedDetails(r)})`);
}
}
if (scope === 'project') {
console.log(`\n ${t(lang, 'workingDirs')}`);
}
console.log(`\n ${t(lang, 'getStarted')}`);
console.log(` ${t(lang, 'getStartedComet')}`);
console.log(` ${t(lang, 'getStartedHotfix')}`);
console.log(` ${t(lang, 'getStartedTweak')}\n`);
}
export async function initCommand(targetPath: string, options: InitOptions = {}): Promise<void> {
const projectPath = path.resolve(targetPath);
const log = options.json ? () => undefined : console.log;
await printCometBanner({ enabled: !options.json });
if (!options.json) {
await printVersionInfo(log);
}
const language = await selectLanguage(options);
const lang = language.id;
log(` ${t(lang, 'settingUp')} ${projectPath}\n`);
const detected = await detectPlatforms(projectPath);
const scope = await selectScope(options, lang);
const installMode = await selectInstallMode(options, lang);
const selectedPlatformIds = await selectPlatforms(detected, options, lang);
if (selectedPlatformIds.length === 0) {
if (options.json) {
console.log(
JSON.stringify(
{
projectPath,
scope,
language: language.id,
selectedPlatforms: [],
results: [],
},
null,
2,
),
);
return;
}
log(`\n ${t(lang, 'noPlatforms')}\n`);
return;
}
const selectedPlatforms = PLATFORMS.filter((p) => selectedPlatformIds.includes(p.id));
const baseDir = getBaseDir(scope, projectPath);
type PlatformPlan = ComponentPlan & {
platform: Platform;
hasOS: boolean;
hasSP: boolean;
hasCM: boolean;
};
const plans: PlatformPlan[] = [];
for (const platform of selectedPlatforms) {
const hasOS = await hasSkills(baseDir, platform, 'openspec', selectedPlatforms, scope);
const hasSP = await hasSkills(baseDir, platform, 'superpowers', selectedPlatforms, scope);
const hasCM = await hasSkills(baseDir, platform, 'comet', selectedPlatforms, scope);
let osAction = resolveAction(hasOS, options);
let spAction = resolveAction(hasSP, options);
let cmAction = resolveCometAction(hasCM, options);
if (!options.yes) {
const existingComponents = [
hasOS && osAction === 'install' ? 'OpenSpec' : null,
hasSP && spAction === 'install' ? 'Superpowers' : null,
hasCM && cmAction === 'install' ? 'Comet' : null,
].filter((component): component is string => Boolean(component));
if (existingComponents.length > 1) {
const bulkChoice = await promptBulkOverwriteChoice(platform.name, existingComponents, lang);
if (bulkChoice !== 'choose') {
({ osAction, spAction, cmAction } = applyBulkOverwriteChoice(
{ osAction, spAction, cmAction },
bulkChoice,
{ os: hasOS, sp: hasSP, cm: hasCM },
));
}
}
if (osAction === 'install' && hasOS) {
osAction = await promptOverwriteChoice('OpenSpec', platform.name, lang);
}
if (spAction === 'install' && hasSP) {
spAction = await promptOverwriteChoice('Superpowers', platform.name, lang);
}
if (cmAction === 'install' && hasCM) {
cmAction = await promptOverwriteChoice('Comet', platform.name, lang);
}
}
plans.push({ platform, osAction, spAction, cmAction, hasOS, hasSP, hasCM });
}
const osToolIds = Array.from(
new Set(plans.filter((p) => p.osAction !== 'skip').map((p) => p.platform.openspecToolId)),
);
const spPlatformIds = plans.filter((p) => p.spAction !== 'skip').map((p) => p.platform.id);
// OpenCode-compatible platforms reuse the opencode OpenSpec tool id; mirror
// the opencode output into their platform-specific config directories.
const selectedPlatformIdsForOs = plans
.filter((p) => p.osAction !== 'skip')
.map((p) => p.platform.id);
const mirrorOpenCodePlatformIds = selectedPlatformIdsForOs.filter((id) =>
['zcode', 'mimocode'].includes(id),
);
const selectedNpmDeps = await selectNpmDeps(projectPath, spPlatformIds, options, lang);
const shouldInstallOpenSpecCli = selectedNpmDeps.has('openspec');
const shouldInstallSuperpowers = selectedNpmDeps.has('superpowers');
const shouldInstallCodegraphCli = selectedNpmDeps.has('codegraph');
let osGlobalStatus: InstallStatus = 'skipped';
if (osToolIds.length > 0) {
log(`\n ${t(lang, 'installingOS')} ${osToolIds.join(', ')}`);
osGlobalStatus = await installOpenSpec(
projectPath,
osToolIds,
scope,
shouldInstallOpenSpecCli,
mirrorOpenCodePlatformIds,
);
if (osGlobalStatus === 'skipped' && !shouldInstallOpenSpecCli) {
log(` OpenSpec: ${t(lang, 'osSkippedNoCli')}`);
} else {
log(` OpenSpec: ${osGlobalStatus}`);
}
} else {
log(`\n OpenSpec: ${t(lang, 'allSkipped')}`);
}
let spGlobalStatus: InstallStatus = 'skipped';
if (spPlatformIds.length > 0) {
if (!shouldInstallSuperpowers) {
log(`\n Superpowers: ${t(lang, 'spSkippedByUser')}`);
} else {
log(`\n ${t(lang, 'installingSP')} ${spPlatformIds.join(', ')}`);
spGlobalStatus = await installSuperpowersForPlatforms(
projectPath,
scope,
spPlatformIds,
true,
);
log(` Superpowers: ${spGlobalStatus}`);
}
} else {
log(`\n Superpowers: ${t(lang, 'allSkipped')}`);
}
const results: PlatformResult[] = [];
for (const plan of plans) {
const { platform, cmAction } = plan;
const platformSkillsDir = getPlatformSkillsDir(platform, scope);
const skillsPath =
installMode === 'symlink'
? `via .comet/skills/ in ${platformSkillsDir}/skills/`
: `${scope === 'global' ? '~/' : ''}${platformSkillsDir}/skills/`;
let cmStatus: InstallStatus = 'skipped';
let cometComponentInstalled = false;
let skillFailed = false;
if (cmAction !== 'skip') {
const { copied, failed } = await copyCometSkillsForPlatform(
baseDir,
platform,
cmAction === 'overwrite',
language.skillsDir,
scope,
installMode,
);
skillFailed = failed > 0;
cmStatus = failed > 0 ? 'failed' : copied > 0 ? 'installed' : 'skipped';
cometComponentInstalled = copied > 0;
if (cmAction === 'reuse' && copied === 0 && failed === 0) {
log(` Comet -> ${platform.name}: reused (${t(lang, 'alreadyExists')})`);
} else {
log(
` Comet -> ${platform.name}: ${cmStatus} (${copied} files${
failed > 0 ? `, ${failed} failed` : ''
}) -> ${skillsPath}`,
);
}
} else {
log(` Comet -> ${platform.name}: skipped (${t(lang, 'alreadyExists')})`);
}
if (cmAction !== 'skip' && !skillFailed) {
try {
const { copied: ruleCopied, failed: ruleFailed } = await copyCometRulesForPlatform(
baseDir,
platform,
cmAction === 'overwrite',
language.id,
scope,
);
cometComponentInstalled ||= ruleCopied > 0;
if (ruleCopied > 0) {
log(` Comet rules -> ${platform.name}: ${ruleCopied} ${t(lang, 'rulesInstalled')}`);
}
if (ruleFailed > 0) {
cmStatus = 'failed';
log(` Comet rules -> ${platform.name}: ${t(lang, 'rulesFailed')} (${ruleFailed})`);
}
} catch (err) {
cmStatus = 'failed';
log(
` Comet rules -> ${platform.name}: ${t(lang, 'rulesFailed')} (${(err as Error).message})`,
);
}
}
if (cmAction !== 'skip' && !skillFailed) {
try {
const { status, reason } = await installCometHooksForPlatform(baseDir, platform, scope);
cometComponentInstalled ||= status === 'installed';
if (status === 'installed') {
log(` Comet hooks -> ${platform.name}: ${t(lang, 'hooksInstalled')}`);
} else if (status === 'failed') {
cmStatus = 'failed';
log(` Comet hooks -> ${platform.name}: ${t(lang, 'hooksFailed')} (${reason})`);
} else if (reason && platform.supportsHooks) {
log(` Comet hooks -> ${platform.name}: ${t(lang, 'hooksSkipped')} (${reason})`);
}
} catch (err) {
cmStatus = 'failed';
log(
` Comet hooks -> ${platform.name}: ${t(lang, 'hooksFailed')} (${(err as Error).message})`,
);
}
}
if (cmAction !== 'skip' && cmStatus !== 'failed') {
cmStatus = cometComponentInstalled ? 'installed' : 'skipped';
}
results.push({
platform,
openspec: osToolIds.includes(platform.openspecToolId) ? osGlobalStatus : 'skipped',
superpowers: plan.spAction !== 'skip' ? spGlobalStatus : 'skipped',
comet: cmStatus,
codegraph: 'skipped',
});
}
const codegraphAlreadyIndexed = hasCodegraphProjectIndex(projectPath);
// JSON mode never installs CodeGraph interactively (matches pre-i18n behavior).
// If the project already has a .codegraph/ index, skip.
// Otherwise, only install when the user selected codegraph in the npm-deps prompt.
const shouldInstallCodegraph =
!options.json && !codegraphAlreadyIndexed && shouldInstallCodegraphCli;
if (shouldInstallCodegraph) {
log(`\n ${t(lang, 'installingCG')}`);
const cgGlobalStatus = await installCodegraph(projectPath, scope, true);
log(` CodeGraph: ${cgGlobalStatus}`);
for (const r of results) {
r.codegraph = cgGlobalStatus;
}
} else if (!options.json && codegraphAlreadyIndexed) {
log('\n CodeGraph: skipped (existing .codegraph index detected)');
} else if (!options.json) {
log(`\n CodeGraph: ${t(lang, 'cgSkippedByUser')}`);
}
if (scope === 'project') {
await createWorkingDirs(projectPath, language.artifactLanguage);
const projectTargets = await detectInstalledCometTargets(projectPath, { scopes: ['project'] });
const successfulCometPlatforms = new Set(
results
.filter(
(result) =>
result.comet !== 'failed' &&
plans.some(
(plan) => plan.platform.id === result.platform.id && plan.cmAction !== 'skip',
),
)
.map((result) => result.platform.id),
);
const completeProjectTargets = projectTargets.filter((target) =>
successfulCometPlatforms.has(target.platform.id),
);
if (completeProjectTargets.length > 0) {
await upsertProjectInstallation(
projectPath,
completeProjectTargets.map((target) => ({
platform: target.platform.id,
language: target.language,
})),
'init',
);
}
} else {
await mergeProjectConfig(baseDir, language.artifactLanguage);
}
if (options.json) {
console.log(
JSON.stringify(
{
projectPath,
scope,
language: language.id,
selectedPlatforms: selectedPlatformIds,
results: results.map((result) => ({
platform: result.platform.id,
platformName: result.platform.name,
openspec: result.openspec,
superpowers: result.superpowers,
comet: result.comet,
codegraph: result.codegraph,
})),
workingDirsCreated: scope === 'project',
},
null,
2,
),
);
return;
}
displaySummary(results, scope, lang);
}
export { applyBulkOverwriteChoice };
export type { TranslationKey };