aiblueprint-cli 1.4.4 → 1.4.11
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 +66 -36
- package/dist/cli.js +908 -1044
- package/package.json +7 -2
- package/claude-code-config/scripts/command-validator/dist/cli.js +0 -544
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ The easiest way to get started is by installing AIBlueprint as a Claude Code plu
|
|
|
63
63
|
### What Gets Installed
|
|
64
64
|
|
|
65
65
|
The `aibp-base` plugin includes:
|
|
66
|
+
|
|
66
67
|
- ✅ **16 Custom Commands** - `/commit`, `/create-pull-request`, `/deep-code-analysis`, etc.
|
|
67
68
|
- ✅ **3 Specialized Agents** - explore-codebase, Snipper, websearch
|
|
68
69
|
- ✅ **Security Hooks** - Command validation and TypeScript processing
|
|
@@ -88,12 +89,14 @@ The `aibp-base` plugin includes:
|
|
|
88
89
|
### Plugin vs CLI Tool
|
|
89
90
|
|
|
90
91
|
**Plugin Installation (Recommended)**:
|
|
92
|
+
|
|
91
93
|
- ✅ Automatic updates via marketplace
|
|
92
94
|
- ✅ No CLI tool installation needed
|
|
93
95
|
- ✅ Direct integration with Claude Code
|
|
94
96
|
- ✅ Easy to manage and update
|
|
95
97
|
|
|
96
98
|
**CLI Tool Installation**:
|
|
99
|
+
|
|
97
100
|
- ✅ More control over installation
|
|
98
101
|
- ✅ Custom folder locations
|
|
99
102
|
- ✅ Interactive feature selection
|
|
@@ -135,13 +138,13 @@ bunx aiblueprint-cli@latest claude-code setup # Creates .claude/ in project roo
|
|
|
135
138
|
|
|
136
139
|
### Main Commands
|
|
137
140
|
|
|
138
|
-
| Command
|
|
139
|
-
|
|
140
|
-
| `bunx aiblueprint-cli@latest claude-code setup`
|
|
141
|
-
| `bunx aiblueprint-cli@latest claude-code symlink`
|
|
142
|
-
| `bunx aiblueprint-cli@latest claude-code statusline`
|
|
143
|
-
| `bunx aiblueprint-cli@latest claude-code add hook <type>`
|
|
144
|
-
| `bunx aiblueprint-cli@latest claude-code add commands [name]` | List or install commands
|
|
141
|
+
| Command | Description | Options |
|
|
142
|
+
| ------------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
143
|
+
| `bunx aiblueprint-cli@latest claude-code setup` | Interactive setup with feature selection | `-f, --folder <path>` (alias for --claudeCodeFolder), `--claudeCodeFolder <path>`, `--codexFolder <path>`, `--openCodeFolder <path>`, `--factoryAiFolder <path>`, `-s, --skip` |
|
|
144
|
+
| `bunx aiblueprint-cli@latest claude-code symlink` | Create symlinks between CLI tools (Codex, OpenCode, FactoryAI) | `--claudeCodeFolder <path>`, `--codexFolder <path>`, `--openCodeFolder <path>`, `--factoryAiFolder <path>` |
|
|
145
|
+
| `bunx aiblueprint-cli@latest claude-code statusline` | Setup custom statusline with git status, costs, and token usage | `-f, --folder <path>` |
|
|
146
|
+
| `bunx aiblueprint-cli@latest claude-code add hook <type>` | Install specific hook | `-f, --folder <path>` |
|
|
147
|
+
| `bunx aiblueprint-cli@latest claude-code add commands [name]` | List or install commands | `-f, --folder <path>` |
|
|
145
148
|
|
|
146
149
|
### Command Examples
|
|
147
150
|
|
|
@@ -183,17 +186,20 @@ The CLI intelligently determines where to install configurations:
|
|
|
183
186
|
## ✨ Available Features
|
|
184
187
|
|
|
185
188
|
### 🛡️ Shell Shortcuts
|
|
189
|
+
|
|
186
190
|
- **`cc`** - Claude Code with permissions skipped (`claude --dangerously-skip-permissions`)
|
|
187
191
|
- **`ccc`** - Claude Code with continue mode (`claude --dangerously-skip-permissions -c`)
|
|
188
192
|
- Platform support: macOS (`.zshenv`), Linux (`.bashrc`/`.zshrc`)
|
|
189
193
|
|
|
190
194
|
### 🔒 Command Validation
|
|
195
|
+
|
|
191
196
|
- **700+ line security system** protecting against dangerous bash commands
|
|
192
197
|
- **Real-time validation** before command execution via PreToolUse hooks
|
|
193
198
|
- **Smart detection** of privilege escalation, destructive operations, and command injection
|
|
194
199
|
- **Comprehensive logging** to `~/.claude/security.log` with severity levels
|
|
195
200
|
|
|
196
201
|
### 📊 Custom Statusline
|
|
202
|
+
|
|
197
203
|
- **Git integration** - Branch status, changes, and repository info
|
|
198
204
|
- **Cost tracking** - Session costs, daily limits, and token usage via ccusage
|
|
199
205
|
- **Real-time updates** - Command-triggered statusline refresh
|
|
@@ -203,17 +209,20 @@ The CLI intelligently determines where to install configurations:
|
|
|
203
209
|
### 🤖 AIBlueprint Commands (16 Available)
|
|
204
210
|
|
|
205
211
|
**Development Workflow**
|
|
212
|
+
|
|
206
213
|
- `commit` - Fast conventional commits with immediate push
|
|
207
214
|
- `create-pull-request` - Auto-generated PR creation with templates
|
|
208
215
|
- `fix-pr-comments` - Systematic PR review comment resolution
|
|
209
216
|
- `run-tasks` - Execute GitHub issues with full EPCT workflow
|
|
210
217
|
|
|
211
218
|
**Code Analysis & Research**
|
|
219
|
+
|
|
212
220
|
- `deep-code-analysis` - Comprehensive codebase investigation with research
|
|
213
221
|
- `explain-architecture` - Pattern analysis with ASCII diagrams
|
|
214
222
|
- `cleanup-context` - Memory optimization and duplicate removal
|
|
215
223
|
|
|
216
224
|
**Utilities & Automation**
|
|
225
|
+
|
|
217
226
|
- `claude-memory` - Context management for long sessions
|
|
218
227
|
- `watch-ci` - Automated CI/CD monitoring and failure fixing
|
|
219
228
|
- `prompt-command` / `prompt-agent` - Template creation utilities
|
|
@@ -226,11 +235,13 @@ The CLI intelligently determines where to install configurations:
|
|
|
226
235
|
- **websearch** (yellow) - Quick web research with authoritative sources
|
|
227
236
|
|
|
228
237
|
### 🔊 Notification Sounds
|
|
238
|
+
|
|
229
239
|
- **Finish sound** - Audio alert for completed operations (macOS afplay)
|
|
230
240
|
- **Need-human sound** - Audio alert for attention requests
|
|
231
241
|
- **Volume control** - Configurable audio levels
|
|
232
242
|
|
|
233
243
|
### 🔗 Symlink Management
|
|
244
|
+
|
|
234
245
|
- **Multi-tool integration** - Create symlinks between Claude Code, Codex, OpenCode, and FactoryAI
|
|
235
246
|
- **Interactive selection** - Choose source, content type (commands/agents), and destinations
|
|
236
247
|
- **Smart validation** - Prevents overwriting non-symlink directories and validates paths
|
|
@@ -258,13 +269,23 @@ The CLI automatically manages your `~/.claude/settings.json` with:
|
|
|
258
269
|
"PreToolUse": [
|
|
259
270
|
{
|
|
260
271
|
"matcher": "Bash",
|
|
261
|
-
"hooks": [
|
|
272
|
+
"hooks": [
|
|
273
|
+
{
|
|
274
|
+
"type": "command",
|
|
275
|
+
"command": "bun ~/.claude/scripts/validate-command.js"
|
|
276
|
+
}
|
|
277
|
+
]
|
|
262
278
|
}
|
|
263
279
|
],
|
|
264
280
|
"PostToolUse": [
|
|
265
281
|
{
|
|
266
282
|
"matcher": "Edit|Write|MultiEdit",
|
|
267
|
-
"hooks": [
|
|
283
|
+
"hooks": [
|
|
284
|
+
{
|
|
285
|
+
"type": "command",
|
|
286
|
+
"command": "bun ~/.claude/hooks/hook-post-file.ts"
|
|
287
|
+
}
|
|
288
|
+
]
|
|
268
289
|
}
|
|
269
290
|
]
|
|
270
291
|
}
|
|
@@ -285,59 +306,59 @@ The CLI automatically manages your `~/.claude/settings.json` with:
|
|
|
285
306
|
<details>
|
|
286
307
|
<summary><strong>Development Workflow (4 commands)</strong></summary>
|
|
287
308
|
|
|
288
|
-
| Command
|
|
289
|
-
|
|
290
|
-
| `commit`
|
|
291
|
-
| `create-pull-request` | `Bash(git :*)`, `Bash(gh :*)` | PR creation with auto-generated descriptions
|
|
292
|
-
| `fix-pr-comments`
|
|
293
|
-
| `run-tasks`
|
|
309
|
+
| Command | Tools | Purpose |
|
|
310
|
+
| --------------------- | ----------------------------- | ---------------------------------------------- |
|
|
311
|
+
| `commit` | `Bash(git :*)` | Quick conventional commits with immediate push |
|
|
312
|
+
| `create-pull-request` | `Bash(git :*)`, `Bash(gh :*)` | PR creation with auto-generated descriptions |
|
|
313
|
+
| `fix-pr-comments` | `Bash(gh :*)`, `Read`, `Edit` | Systematic PR review resolution |
|
|
314
|
+
| `run-tasks` | `Bash(gh :*)`, `Bash(git :*)` | GitHub issue execution with EPCT |
|
|
294
315
|
|
|
295
316
|
</details>
|
|
296
317
|
|
|
297
318
|
<details>
|
|
298
319
|
<summary><strong>Analysis & Research (2 commands)</strong></summary>
|
|
299
320
|
|
|
300
|
-
| Command
|
|
301
|
-
|
|
302
|
-
| `deep-code-analysis`
|
|
303
|
-
| `explain-architecture` | `Read`, `Glob`, `Grep`, `Task`
|
|
321
|
+
| Command | Tools | Purpose |
|
|
322
|
+
| ---------------------- | --------------------------------------- | ------------------------------------ |
|
|
323
|
+
| `deep-code-analysis` | `Task`, `WebSearch`, `mcp__context7__*` | Comprehensive codebase investigation |
|
|
324
|
+
| `explain-architecture` | `Read`, `Glob`, `Grep`, `Task` | Architectural pattern analysis |
|
|
304
325
|
|
|
305
326
|
</details>
|
|
306
327
|
|
|
307
328
|
<details>
|
|
308
329
|
<summary><strong>Maintenance & Optimization (2 commands)</strong></summary>
|
|
309
330
|
|
|
310
|
-
| Command
|
|
311
|
-
|
|
331
|
+
| Command | Tools | Purpose |
|
|
332
|
+
| ----------------- | -------------------------------- | ------------------------ |
|
|
312
333
|
| `cleanup-context` | `TodoWrite`, `MultiEdit`, `Glob` | Memory bank optimization |
|
|
313
|
-
| `watch-ci`
|
|
334
|
+
| `watch-ci` | `Bash(gh :*)`, `Bash(sleep :*)` | Automated CI monitoring |
|
|
314
335
|
|
|
315
336
|
</details>
|
|
316
337
|
|
|
317
338
|
<details>
|
|
318
339
|
<summary><strong>Utilities (8 commands)</strong></summary>
|
|
319
340
|
|
|
320
|
-
| Command
|
|
321
|
-
|
|
322
|
-
| `claude-memory`
|
|
323
|
-
| `epct`
|
|
324
|
-
| `prompt-command` | `Read`, `Write`, `Edit`
|
|
325
|
-
| `prompt-agent`
|
|
341
|
+
| Command | Tools | Purpose |
|
|
342
|
+
| ---------------- | ------------------------------- | ---------------------------------- |
|
|
343
|
+
| `claude-memory` | `Read`, `Write`, `Edit`, `Glob` | CLAUDE.md file management |
|
|
344
|
+
| `epct` | `Task` | Explore-Plan-Code-Test methodology |
|
|
345
|
+
| `prompt-command` | `Read`, `Write`, `Edit` | Command template creation |
|
|
346
|
+
| `prompt-agent` | `Read`, `Write`, `Edit` | Agent template creation |
|
|
326
347
|
|
|
327
348
|
</details>
|
|
328
349
|
|
|
329
350
|
### Hooks Available
|
|
330
351
|
|
|
331
|
-
| Hook
|
|
332
|
-
|
|
352
|
+
| Hook | Language | Purpose | Triggers |
|
|
353
|
+
| ---------------------- | -------------- | --------------------------- | ---------------------------------- |
|
|
333
354
|
| `post-edit-typescript` | TypeScript/Bun | File processing after edits | Edit, Write, MultiEdit on .ts/.tsx |
|
|
334
355
|
|
|
335
356
|
### Scripts & Utilities
|
|
336
357
|
|
|
337
|
-
| Script
|
|
338
|
-
|
|
339
|
-
| `validate-command.js`
|
|
340
|
-
| `statusline-ccusage.sh` | Bash
|
|
358
|
+
| Script | Language | Purpose |
|
|
359
|
+
| ----------------------- | -------------- | ------------------------------------- |
|
|
360
|
+
| `validate-command.js` | Bun/JavaScript | Security validation for bash commands |
|
|
361
|
+
| `statusline-ccusage.sh` | Bash | Git status and usage tracking display |
|
|
341
362
|
|
|
342
363
|
## 🎯 Installation Targets
|
|
343
364
|
|
|
@@ -352,6 +373,7 @@ bunx aiblueprint-cli@latest claude-code setup
|
|
|
352
373
|
```
|
|
353
374
|
|
|
354
375
|
**Benefits:**
|
|
376
|
+
|
|
355
377
|
- Project-specific configurations
|
|
356
378
|
- Team collaboration ready
|
|
357
379
|
- Version control friendly
|
|
@@ -368,6 +390,7 @@ bunx aiblueprint-cli@latest claude-code setup
|
|
|
368
390
|
```
|
|
369
391
|
|
|
370
392
|
**Benefits:**
|
|
393
|
+
|
|
371
394
|
- System-wide configurations
|
|
372
395
|
- Works across all projects
|
|
373
396
|
- Persistent settings
|
|
@@ -388,6 +411,7 @@ bunx aiblueprint-cli@latest claude-code setup --folder /opt/claude-config
|
|
|
388
411
|
The security system protects against dangerous operations:
|
|
389
412
|
|
|
390
413
|
**Critical Commands Blocked:**
|
|
414
|
+
|
|
391
415
|
- `rm -rf` (with path validation)
|
|
392
416
|
- `dd`, `mkfs`, `fdisk` (disk operations)
|
|
393
417
|
- `chmod 777`, `chown -R` (permission changes)
|
|
@@ -395,6 +419,7 @@ The security system protects against dangerous operations:
|
|
|
395
419
|
- `sudo` operations (privilege escalation)
|
|
396
420
|
|
|
397
421
|
**Security Logging:**
|
|
422
|
+
|
|
398
423
|
```json
|
|
399
424
|
{
|
|
400
425
|
"timestamp": "2024-01-15T10:30:00.000Z",
|
|
@@ -406,6 +431,7 @@ The security system protects against dangerous operations:
|
|
|
406
431
|
```
|
|
407
432
|
|
|
408
433
|
**Safe Paths Allowed:**
|
|
434
|
+
|
|
409
435
|
- `./`, `~/`, relative paths
|
|
410
436
|
- `node_modules/`, `.git/`, common safe directories
|
|
411
437
|
- Temporary directories (`/tmp/`, `/var/tmp/`)
|
|
@@ -488,15 +514,18 @@ bun run dev claude-code setup --folder ./test-config
|
|
|
488
514
|
## 📋 Requirements
|
|
489
515
|
|
|
490
516
|
### System Requirements
|
|
517
|
+
|
|
491
518
|
- **Runtime**: Node.js 16+ or Bun
|
|
492
519
|
- **Platform**: macOS (full support), Linux (partial), Windows (limited)
|
|
493
520
|
- **Dependencies**: Git (for repository detection)
|
|
494
521
|
|
|
495
522
|
### Claude Code Requirements
|
|
523
|
+
|
|
496
524
|
- **Claude Code**: Latest version installed
|
|
497
525
|
- **Permissions**: Ability to modify `~/.claude/settings.json`
|
|
498
526
|
|
|
499
527
|
### Optional Dependencies
|
|
528
|
+
|
|
500
529
|
- **bun**: Enhanced script execution and hooks
|
|
501
530
|
- **ccusage**: Advanced statusline with cost tracking
|
|
502
531
|
- **gh CLI**: GitHub integration for PR/issue commands
|
|
@@ -563,6 +592,7 @@ aiblueprint claude-code pro sync
|
|
|
563
592
|
```
|
|
564
593
|
|
|
565
594
|
**Features:**
|
|
595
|
+
|
|
566
596
|
- 🔍 **Diff Analysis** - Compares your local config with the latest premium version
|
|
567
597
|
- 📝 **Categorized Changes** - Shows NEW and MODIFIED items separately
|
|
568
598
|
- ✅ **Selective Update** - Choose exactly which files/folders to update
|
|
@@ -578,6 +608,6 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
578
608
|
|
|
579
609
|
---
|
|
580
610
|
|
|
581
|
-
**Created by AIBlueprint** - Enhancing Claude Code for modern development workflows
|
|
611
|
+
**Created by AIBlueprint** - Enhancing Claude Code for modern development workflows!
|
|
582
612
|
|
|
583
|
-
Need help? [Open an issue](https://github.com/melvynx/aiblueprint/issues) or check our [documentation](https://docs.aiblueprint.dev).
|
|
613
|
+
Need help? [Open an issue](https://github.com/melvynx/aiblueprint/issues) or check our [documentation](https://docs.aiblueprint.dev).
|