azclaude-copilot 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -437,7 +437,7 @@ azclaude-copilot/
437
437
  ├── DOCS.md <- full user guide
438
438
  ├── SECURITY.md <- security policy + architecture
439
439
  ├── tests/
440
- │ └── test-features.sh ← 1037 tests
440
+ │ └── test-features.sh ← 1039 tests
441
441
  ```
442
442
 
443
443
  ---
@@ -463,11 +463,11 @@ The runner is stateless. These files ARE the state.
463
463
 
464
464
  ## Verified
465
465
 
466
- 1037 tests. Every template, command, capability, agent, and CLI feature verified.
466
+ 1039 tests. Every template, command, capability, agent, and CLI feature verified.
467
467
 
468
468
  ```bash
469
469
  bash tests/test-features.sh
470
- # Results: 1037 passed, 0 failed, 1037 total
470
+ # Results: 1039 passed, 0 failed, 1039 total
471
471
  ```
472
472
 
473
473
  ---
package/bin/copilot.js CHANGED
@@ -21,6 +21,21 @@ const { spawnSync } = require('child_process');
21
21
  // ── Args ─────────────────────────────────────────────────────────────────────
22
22
 
23
23
  const args = process.argv.slice(2);
24
+
25
+ // ── Subcommand routing ──────────────────────────────────────────────────────
26
+ // Catch `npx azclaude-copilot setup` and similar — run the installer instead
27
+ const SUBCOMMANDS = ['setup', 'init', 'install', 'doctor'];
28
+ if (args[0] && SUBCOMMANDS.includes(args[0].toLowerCase())) {
29
+ const subDir = path.resolve(args[1] || '.');
30
+ console.log(`\n Running AZCLAUDE installer on ${subDir}...\n`);
31
+ const cliPath = path.join(__dirname, 'cli.js');
32
+ const subArgs = args[0].toLowerCase() === 'doctor'
33
+ ? [cliPath, subDir, '--doctor']
34
+ : [cliPath, subDir];
35
+ const r = spawnSync('node', subArgs, { cwd: subDir, stdio: 'inherit' });
36
+ process.exit(r.status || 0);
37
+ }
38
+
24
39
  const projectDir = path.resolve(args[0] || '.');
25
40
  const intentArg = args[1] || '';
26
41
  const maxSessions = parseInt(args[2] || '20', 10);
@@ -31,11 +46,14 @@ if (args.includes('--help') || args.includes('-h')) {
31
46
 
32
47
  Usage:
33
48
  npx azclaude-copilot <project-dir> <intent> [max-sessions]
49
+ npx azclaude-copilot setup [dir] # install AZCLAUDE into project
50
+ npx azclaude-copilot doctor [dir] # run health check
34
51
 
35
52
  Examples:
36
53
  npx azclaude-copilot . "Build a REST API with auth"
37
54
  npx azclaude-copilot . intent.md 30
38
55
  npx azclaude-copilot . # resume existing project
56
+ npx azclaude-copilot setup # install templates + commands
39
57
 
40
58
  Options:
41
59
  --help, -h Show this help
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azclaude-copilot",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Autonomous product builder. Describe once, AZCLAUDE builds it across sessions — planning, implementing, testing, evolving, deploying. Zero human input.",
5
5
  "bin": {
6
6
  "azclaude": "./bin/cli.js",