refactor(spec): remove obsolete dimensions and update CLI options

This commit is contained in:
catlog22
2026-02-26 23:19:41 +08:00
parent ffe79d28e2
commit fa8bae52f1
7 changed files with 184 additions and 13 deletions

View File

@@ -302,8 +302,8 @@ export function run(argv: string[]): void {
program
.command('spec [subcommand] [args...]')
.description('Project spec management for conventions and guidelines')
.option('--dimension <dim>', 'Target dimension: specs, roadmap, changelog, personal')
.option('--context <text>', 'Context text for keyword extraction (CLI mode)')
.option('--dimension <dim>', 'Target dimension: specs, personal')
.option('--keywords <text>', 'Keywords for spec matching (CLI mode)')
.option('--stdin', 'Read input from stdin (Hook mode)')
.option('--json', 'Output as JSON')
.action((subcommand, args, options) => specCommand(subcommand, args, options));

View File

@@ -266,7 +266,7 @@ export function filterSpecs(
/**
* Merge loaded spec content by dimension priority.
*
* Dimension priority order: personal(1) < changelog(2) < roadmap(3) < specs(4).
* Dimension priority order: personal(1) < specs(2).
* Within a dimension, specs are ordered by priority weight (critical > high > medium > low).
*
* @param specs - All loaded specs