Skip to content

Commit f90c7c3

Browse files
authored
refactor(commands): modularize artifact workflow into separate files (#562)
* refactor(commands): modularize artifact workflow into separate files Split the monolithic artifact-workflow.ts into separate modules under src/commands/experimental/: - index.ts: main exports and command registration - status.ts: status display logic - new-change.ts: change creation logic - schemas.ts: Zod schemas - setup.ts: setup command logic - templates.ts: template generation - shared.ts: shared utilities - instructions.ts: instruction generation Also extracted init wizard logic to src/core/init/wizard.ts. * fix(commands): address code review feedback from PR #562 - Fix template source detection using path.relative instead of startsWith to prevent misclassification of paths with shared prefixes - Fix config file log message to show actual file name (config.yaml vs config.yml) - Fix selectedTools option to be honored when provided programmatically
1 parent 9381bd3 commit f90c7c3

12 files changed

Lines changed: 1965 additions & 1756 deletions

File tree

src/cli/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { ShowCommand } from '../commands/show.js';
1515
import { CompletionCommand } from '../commands/completion.js';
1616
import { FeedbackCommand } from '../commands/feedback.js';
1717
import { registerConfigCommand } from '../commands/config.js';
18-
import { registerArtifactWorkflowCommands } from '../commands/artifact-workflow.js';
18+
import { registerArtifactWorkflowCommands } from '../commands/experimental/index.js';
1919
import { registerSchemaCommand } from '../commands/schema.js';
2020
import { maybeShowTelemetryNotice, trackCommand, shutdown } from '../telemetry/index.js';
2121

0 commit comments

Comments
 (0)