apero-kit-cli 1.7.1 → 2.1.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/bin/ak.js CHANGED
@@ -1,91 +1,2 @@
1
1
  #!/usr/bin/env node
2
-
3
- import { program } from 'commander';
4
- import chalk from 'chalk';
5
- import { initCommand } from '../src/commands/init.js';
6
- import { addCommand } from '../src/commands/add.js';
7
- import { listCommand } from '../src/commands/list.js';
8
- import { updateCommand } from '../src/commands/update.js';
9
- import { statusCommand } from '../src/commands/status.js';
10
- import { doctorCommand } from '../src/commands/doctor.js';
11
- import { helpCommand } from '../src/commands/help.js';
12
- import { readFileSync } from 'fs';
13
- import { fileURLToPath } from 'url';
14
- import { dirname, join } from 'path';
15
-
16
- const __filename = fileURLToPath(import.meta.url);
17
- const __dirname = dirname(__filename);
18
- const { version: VERSION } = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8'));
19
-
20
- console.log(chalk.cyan.bold('\n Apero Kit CLI') + chalk.gray(` v${VERSION}\n`));
21
-
22
- program
23
- .name('ak')
24
- .description('Scaffold AI agent projects with pre-configured kits')
25
- .version(VERSION);
26
-
27
- // ak init [project-name] --kit <kit-type>
28
- program
29
- .command('init [project-name]')
30
- .description('Initialize a new project with an agent kit')
31
- .option('-k, --kit <type>', 'Kit type (engineer, researcher, designer, minimal, full, custom)')
32
- .option('-t, --target <target>', 'Target folder (claude, opencode, generic)', 'claude')
33
- .option('-s, --source <path>', 'Custom source path for templates')
34
- .option('-f, --force', 'Overwrite existing directory')
35
- .action(initCommand);
36
-
37
- // ak add <type>:<name>
38
- program
39
- .command('add <item>')
40
- .description('Add agent, skill, or command (e.g., ak add skill:databases)')
41
- .option('-s, --source <path>', 'Custom source path')
42
- .option('-p, --path <path>', 'Target project path', '.')
43
- .action(addCommand);
44
-
45
- // ak list [type]
46
- program
47
- .command('list [type]')
48
- .description('List available kits, agents, skills, or commands')
49
- .option('-s, --source <path>', 'Custom source path')
50
- .action(listCommand);
51
-
52
- // ak update
53
- program
54
- .command('update')
55
- .description('Update/sync from source templates')
56
- .option('-s, --source <path>', 'Source path to sync from')
57
- .option('--agents', 'Update only agents')
58
- .option('--skills', 'Update only skills')
59
- .option('--commands', 'Update only commands')
60
- .option('--all', 'Update everything')
61
- .option('-n, --dry-run', 'Show what would be updated without making changes')
62
- .option('-f, --force', 'Force update without confirmation')
63
- .action(updateCommand);
64
-
65
- // ak status
66
- program
67
- .command('status')
68
- .description('Show project status and file changes')
69
- .option('-v, --verbose', 'Show all files')
70
- .action(statusCommand);
71
-
72
- // ak doctor
73
- program
74
- .command('doctor')
75
- .description('Check project health and diagnose issues')
76
- .action(doctorCommand);
77
-
78
- // ak kits - alias
79
- program
80
- .command('kits')
81
- .description('List all available kits')
82
- .action(() => listCommand('kits'));
83
-
84
- // ak help - interactive documentation
85
- program
86
- .command('help')
87
- .description('Open interactive help documentation in browser')
88
- .option('-s, --source <path>', 'Custom source path')
89
- .action(helpCommand);
90
-
91
- program.parse();
2
+ import '../dist/index.js';