worclaude 2.5.1 → 2.6.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/src/index.js CHANGED
@@ -10,6 +10,8 @@ import { restoreCommand } from './commands/restore.js';
10
10
  import { diffCommand } from './commands/diff.js';
11
11
  import { deleteCommand } from './commands/delete.js';
12
12
  import { doctorCommand } from './commands/doctor.js';
13
+ import { scanCommand } from './commands/scan.js';
14
+ import { setupStateCommand } from './commands/setup-state.js';
13
15
 
14
16
  const program = new Command();
15
17
 
@@ -62,4 +64,41 @@ program
62
64
  .option('--json', 'Output results as JSON')
63
65
  .action((options) => doctorCommand(options));
64
66
 
67
+ program
68
+ .command('scan')
69
+ .description('Scan project for detectable facts (writes .claude/cache/detection-report.json)')
70
+ .option('--path <dir>', 'Project root to scan', process.cwd())
71
+ .option('--json', 'Print the detection report as JSON to stdout')
72
+ .option('--quiet', 'Suppress human-readable summary (still writes the report file)')
73
+ .action((options) => scanCommand(options));
74
+
75
+ const setupState = program
76
+ .command('setup-state')
77
+ .description('Inspect or mutate the /setup state file (.claude/cache/setup-state.json)');
78
+
79
+ setupState
80
+ .command('show')
81
+ .description('Print the state file as JSON, or "no state" if absent')
82
+ .option('--path <dir>', 'Project root', process.cwd())
83
+ .action((options) => setupStateCommand('show', options));
84
+
85
+ setupState
86
+ .command('save')
87
+ .description('Read a JSON state from stdin, validate, and persist')
88
+ .option('--stdin', 'Read JSON from stdin (required)')
89
+ .option('--path <dir>', 'Project root', process.cwd())
90
+ .action((options) => setupStateCommand('save', options));
91
+
92
+ setupState
93
+ .command('reset')
94
+ .description('Delete the state file (idempotent)')
95
+ .option('--path <dir>', 'Project root', process.cwd())
96
+ .action((options) => setupStateCommand('reset', options));
97
+
98
+ setupState
99
+ .command('resume-info')
100
+ .description('Print state/age/staleness summary, or "no state" if absent')
101
+ .option('--path <dir>', 'Project root', process.cwd())
102
+ .action((options) => setupStateCommand('resume-info', options));
103
+
65
104
  program.parse();