snap-squad 0.1.0 → 0.2.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/README.md +15 -8
- package/dist/cli.js +1 -16
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Snap Squad gives you **ready-to-hire squads trained by builders at CoreAI**. The
|
|
|
18
18
|
npx snap-squad init --type dash
|
|
19
19
|
# → .squad/ created with a speed-focused team
|
|
20
20
|
# → Hook chain (AGENTS.md, CLAUDE.md, copilot-instructions) wired up
|
|
21
|
-
# → Ready
|
|
21
|
+
# → Ready to run squad
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
One command, full squad, zero interview. Built by people who actually ship with Squad.
|
|
@@ -46,19 +46,17 @@ That's it. One command does everything:
|
|
|
46
46
|
2. Picks the right squad preset from your description (`dash` for speed)
|
|
47
47
|
3. Creates the full `.squad/` directory with agents, routing, and decisions
|
|
48
48
|
4. Writes the hook chain (`AGENTS.md`, `CLAUDE.md`, `.github/copilot-instructions.md`)
|
|
49
|
-
5. Runs `squad up` to start your team
|
|
50
49
|
|
|
51
|
-
|
|
50
|
+
**Now open Copilot CLI or VS Code in that folder.** Your AI reads the hook chain and is already squad-aware — it knows the team, follows routing rules, and logs decisions. No other install needed.
|
|
52
51
|
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
squad up
|
|
52
|
+
```bash
|
|
53
|
+
# Copilot CLI — your squad is already active
|
|
54
|
+
ghcs "help me build a REST API"
|
|
57
55
|
```
|
|
58
56
|
|
|
59
57
|
### After Bootstrap: Plain English Works
|
|
60
58
|
|
|
61
|
-
Once snap-squad has run, your AI assistant knows your squad. In Copilot CLI or
|
|
59
|
+
Once snap-squad has run, your AI assistant knows your squad. In Copilot CLI or VS Code:
|
|
62
60
|
|
|
63
61
|
```
|
|
64
62
|
> switch my squad to the sages preset
|
|
@@ -68,6 +66,15 @@ Once snap-squad has run, your AI assistant knows your squad. In Copilot CLI or a
|
|
|
68
66
|
|
|
69
67
|
The generated copilot-instructions teach the assistant how to manage your squad.
|
|
70
68
|
|
|
69
|
+
### Want the Full Squad Runtime?
|
|
70
|
+
|
|
71
|
+
The [Squad CLI](https://github.com/bradygaster/squad) adds interactive shell, triage, hire, and more:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm install -g @bradygaster/squad-cli
|
|
75
|
+
squad
|
|
76
|
+
```
|
|
77
|
+
|
|
71
78
|
### More Examples
|
|
72
79
|
|
|
73
80
|
```bash
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { Command } from 'commander';
|
|
3
3
|
import { existsSync } from 'node:fs';
|
|
4
4
|
import { resolve } from 'node:path';
|
|
5
|
-
import { execSync } from 'node:child_process';
|
|
6
5
|
import chalk from 'chalk';
|
|
7
6
|
import { loadPreset, listPresets } from './registry/loader.js';
|
|
8
7
|
import { generateSquad } from './generator/index.js';
|
|
@@ -21,7 +20,6 @@ program
|
|
|
21
20
|
.option('-n, --name <name>', 'project name')
|
|
22
21
|
.option('-o, --owner <owner>', 'project owner')
|
|
23
22
|
.option('-f, --force', 'overwrite existing .squad/ directory', false)
|
|
24
|
-
.option('--no-up', 'skip running squad up after init')
|
|
25
23
|
.action((descriptionWords, opts) => {
|
|
26
24
|
const targetDir = resolve(opts.dir);
|
|
27
25
|
const squadDir = resolve(targetDir, '.squad');
|
|
@@ -63,20 +61,7 @@ program
|
|
|
63
61
|
for (const file of created) {
|
|
64
62
|
console.log(chalk.dim(` ${file}`));
|
|
65
63
|
}
|
|
66
|
-
|
|
67
|
-
if (opts.up !== false) {
|
|
68
|
-
try {
|
|
69
|
-
execSync('squad --version', { stdio: 'ignore' });
|
|
70
|
-
console.log(chalk.blue(`\n🚀 Running ${chalk.bold('squad up')}...\n`));
|
|
71
|
-
execSync('squad up', { cwd: targetDir, stdio: 'inherit' });
|
|
72
|
-
}
|
|
73
|
-
catch {
|
|
74
|
-
console.log(`\n${chalk.yellow('Note:')} Squad CLI not found. Install it to run your squad:\n`);
|
|
75
|
-
console.log(chalk.dim(' npm install -g @bradygaster/squad-cli'));
|
|
76
|
-
console.log(chalk.dim(` cd ${targetDir}`));
|
|
77
|
-
console.log(chalk.dim(' squad up\n'));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
64
|
+
console.log(`\n${chalk.yellow('Next:')} Open ${chalk.bold('Copilot CLI')} or ${chalk.bold('VS Code')} in this folder — your AI is already squad-aware.\n`);
|
|
80
65
|
});
|
|
81
66
|
program
|
|
82
67
|
.command('list')
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,YAAY,CAAC;KAClB,WAAW,CAAC,0DAA0D,CAAC;KACvE,OAAO,CAAC,OAAO,CAAC,C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