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/CHANGELOG.md +36 -0
- package/package.json +4 -2
- package/src/commands/scan.js +126 -0
- package/src/commands/setup-state.js +113 -0
- package/src/core/project-scanner/detectors/ci.js +51 -0
- package/src/core/project-scanner/detectors/deployment.js +32 -0
- package/src/core/project-scanner/detectors/env-variables.js +78 -0
- package/src/core/project-scanner/detectors/external-apis.js +45 -0
- package/src/core/project-scanner/detectors/frameworks.js +56 -0
- package/src/core/project-scanner/detectors/language.js +131 -0
- package/src/core/project-scanner/detectors/linting.js +58 -0
- package/src/core/project-scanner/detectors/monorepo.js +93 -0
- package/src/core/project-scanner/detectors/orm.js +72 -0
- package/src/core/project-scanner/detectors/package-manager.js +57 -0
- package/src/core/project-scanner/detectors/readme.js +123 -0
- package/src/core/project-scanner/detectors/scripts.js +128 -0
- package/src/core/project-scanner/detectors/spec-docs.js +110 -0
- package/src/core/project-scanner/detectors/testing.js +88 -0
- package/src/core/project-scanner/index.js +126 -0
- package/src/core/project-scanner/manifests.js +120 -0
- package/src/core/remover.js +1 -0
- package/src/core/scaffolder.js +1 -0
- package/src/core/setup-state.js +213 -0
- package/src/index.js +39 -0
- package/templates/commands/setup.md +512 -113
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();
|