azclaude-copilot 0.7.7 → 0.7.8

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.
Files changed (2) hide show
  1. package/bin/copilot.js +6 -11
  2. package/package.json +1 -1
package/bin/copilot.js CHANGED
@@ -27,19 +27,14 @@ const args = process.argv.slice(2);
27
27
  // Catch `npx azclaude-copilot setup` and similar — run the installer instead
28
28
  // Also: no arguments at all → run installer (auto-detect install vs upgrade)
29
29
  const SUBCOMMANDS = ['setup', 'init', 'install', 'doctor', 'upgrade'];
30
- const CLI_FLAGS = ['--update', '--full', '--audit'];
30
+ const CLI_FLAGS = ['--update', '--full', '--audit', '--cli'];
31
31
  const noArgs = args.length === 0 || (args.length === 1 && CLI_FLAGS.includes(args[0]));
32
- if (noArgs || (args[0] && SUBCOMMANDS.includes(args[0].toLowerCase()))) {
33
- const subFlags = args.filter(a => CLI_FLAGS.includes(a));
34
- const subPositional = (noArgs ? [] : args.slice(1)).filter(a => !CLI_FLAGS.includes(a));
35
- const subDir = path.resolve(subPositional[0] || '.');
36
- if (!noArgs) console.log(`\n Running AZCLAUDE installer on ${subDir}...${subFlags.length ? ' (' + subFlags.join(' ') + ')' : ''}\n`);
32
+ // --cli <value> means "install for this CLI" — route to installer
33
+ const hasCliFlag = args.includes('--cli');
34
+ if (noArgs || hasCliFlag || (args[0] && SUBCOMMANDS.includes(args[0].toLowerCase()))) {
37
35
  const cliPath = path.join(__dirname, 'cli.js');
38
- const isDoctor = !noArgs && args[0].toLowerCase() === 'doctor';
39
- const subArgs = isDoctor
40
- ? [cliPath, subDir, '--doctor', ...subFlags]
41
- : [cliPath, subDir, ...subFlags];
42
- const r = spawnSync('node', subArgs, { cwd: subDir, stdio: 'inherit' });
36
+ // Pass all args through to cli.js it handles --cli stripping internally
37
+ const r = spawnSync('node', [cliPath, ...args], { cwd: process.cwd(), stdio: 'inherit' });
43
38
  process.exit(r.status || 0);
44
39
  }
45
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azclaude-copilot",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "description": "AI coding environment — 40 commands, 10 skills, 15 agents, real-time visualizer, memory, reflexes, evolution. Install: npx azclaude-copilot@latest, then open Claude Code.",
5
5
  "bin": {
6
6
  "azclaude": "bin/cli.js",