@sniper.ai/cli 2.0.0 → 3.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/README.md +28 -56
- package/dist/index.js +2799 -1258
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@sniper.ai/cli)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
CLI tool for scaffolding and managing [SNIPER](https://
|
|
6
|
+
CLI tool for scaffolding and managing [SNIPER](https://sniperai.dev/)-enabled projects.
|
|
7
7
|
|
|
8
8
|
## What is SNIPER?
|
|
9
9
|
|
|
@@ -18,14 +18,12 @@ npm install -g @sniper.ai/cli
|
|
|
18
18
|
# 2. Initialize SNIPER in your project
|
|
19
19
|
sniper init
|
|
20
20
|
|
|
21
|
-
# 3. (Optional)
|
|
22
|
-
sniper
|
|
21
|
+
# 3. (Optional) Install a language plugin
|
|
22
|
+
sniper plugin install @sniper.ai/plugin-typescript
|
|
23
23
|
|
|
24
|
-
# 4. Run the lifecycle
|
|
25
|
-
/sniper-
|
|
26
|
-
/sniper-
|
|
27
|
-
/sniper-solve # Phase 3: Epic Sharding & Stories
|
|
28
|
-
/sniper-sprint # Phase 4: Implementation Sprint
|
|
24
|
+
# 4. Run the lifecycle in Claude Code
|
|
25
|
+
/sniper-flow # Auto-detect and run appropriate protocol
|
|
26
|
+
/sniper-flow --protocol full # Or specify a protocol explicitly
|
|
29
27
|
```
|
|
30
28
|
|
|
31
29
|
## Installation
|
|
@@ -54,83 +52,57 @@ Show the current lifecycle phase, artifact state, and team status.
|
|
|
54
52
|
sniper status
|
|
55
53
|
```
|
|
56
54
|
|
|
57
|
-
### `sniper
|
|
55
|
+
### `sniper migrate`
|
|
58
56
|
|
|
59
|
-
|
|
57
|
+
Migrate a v2 SNIPER configuration to the v3 format.
|
|
60
58
|
|
|
61
59
|
```bash
|
|
62
|
-
sniper
|
|
60
|
+
sniper migrate
|
|
63
61
|
```
|
|
64
62
|
|
|
65
|
-
### `sniper
|
|
63
|
+
### `sniper plugin install/remove/list`
|
|
66
64
|
|
|
67
|
-
|
|
65
|
+
Manage language plugins (TypeScript, Python, Go).
|
|
68
66
|
|
|
69
67
|
```bash
|
|
70
|
-
sniper
|
|
68
|
+
sniper plugin install @sniper.ai/plugin-typescript
|
|
69
|
+
sniper plugin remove @sniper.ai/plugin-typescript
|
|
70
|
+
sniper plugin list
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
### `sniper
|
|
73
|
+
### `sniper knowledge`
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
Manage domain knowledge files for MCP-based retrieval.
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
sniper
|
|
78
|
+
sniper knowledge
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
### `sniper
|
|
81
|
+
### `sniper workspace`
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
Manage SNIPER workspaces for multi-repo orchestration.
|
|
84
84
|
|
|
85
85
|
```bash
|
|
86
|
-
sniper
|
|
86
|
+
sniper workspace
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
## Slash Commands (Claude Code)
|
|
90
90
|
|
|
91
91
|
Once SNIPER is initialized, these slash commands are available inside Claude Code. They drive the agent team lifecycle.
|
|
92
92
|
|
|
93
|
-
### Lifecycle
|
|
94
|
-
|
|
95
|
-
| Command | Description |
|
|
96
|
-
|---------|-------------|
|
|
97
|
-
| `/sniper-init` | Initialize SNIPER in a new or existing project |
|
|
98
|
-
| `/sniper-discover` | Phase 1: Discovery and analysis (parallel team) |
|
|
99
|
-
| `/sniper-plan` | Phase 2: Planning and architecture (parallel team with coordination) |
|
|
100
|
-
| `/sniper-solve` | Phase 3: Epic sharding and story creation (single agent) |
|
|
101
|
-
| `/sniper-sprint` | Phase 4: Implementation sprint (parallel team) |
|
|
102
|
-
| `/sniper-review` | Run review gate for the current phase |
|
|
103
|
-
| `/sniper-status` | Show lifecycle status and artifact state |
|
|
104
|
-
|
|
105
|
-
### Extended
|
|
106
|
-
|
|
107
|
-
| Command | Description |
|
|
108
|
-
|---------|-------------|
|
|
109
|
-
| `/sniper-feature` | Incremental feature lifecycle |
|
|
110
|
-
| `/sniper-ingest` | Codebase ingestion (parallel team) |
|
|
111
|
-
| `/sniper-doc` | Generate or update project documentation (parallel team) |
|
|
112
|
-
| `/sniper-debug` | Production debugging (phased investigation) |
|
|
113
|
-
| `/sniper-audit` | Audit: refactoring, review, and QA |
|
|
114
|
-
|
|
115
|
-
### Workspace
|
|
116
|
-
|
|
117
93
|
| Command | Description |
|
|
118
94
|
|---------|-------------|
|
|
119
|
-
| `/sniper-
|
|
120
|
-
| `/sniper-
|
|
121
|
-
| `/sniper-
|
|
122
|
-
| `/sniper-
|
|
95
|
+
| `/sniper-flow` | Execute a SNIPER protocol (auto-detects scope or use `--protocol <name>`) |
|
|
96
|
+
| `/sniper-flow-headless` | Execute a protocol non-interactively for CI/CD environments |
|
|
97
|
+
| `/sniper-init` | Initialize SNIPER v3 in a new or existing project |
|
|
98
|
+
| `/sniper-review` | Manually trigger a review gate for the current phase |
|
|
99
|
+
| `/sniper-status` | Show current protocol progress and cost |
|
|
123
100
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
| Command | Description |
|
|
127
|
-
|---------|-------------|
|
|
128
|
-
| `/sniper-compose` | Compose a spawn prompt from persona layers |
|
|
129
|
-
| `/sniper-memory` | Manage agent memory (conventions, anti-patterns, decisions) |
|
|
101
|
+
`/sniper-flow` is the core execution engine. It runs any of the 7 protocols: `full`, `feature`, `patch`, `ingest`, `explore`, `refactor`, `hotfix`.
|
|
130
102
|
|
|
131
103
|
## How It Works
|
|
132
104
|
|
|
133
|
-
The CLI reads framework content from `@sniper.ai/core` and scaffolds it into your project's `.sniper/` directory. This gives Claude Code access to
|
|
105
|
+
The CLI reads framework content from `@sniper.ai/core` and scaffolds it into your project's `.sniper/` directory. This gives Claude Code access to agents, protocols, templates, and slash commands that drive the SNIPER lifecycle.
|
|
134
106
|
|
|
135
107
|
## Tech Stack
|
|
136
108
|
|
|
@@ -150,7 +122,7 @@ pnpm build # Production build
|
|
|
150
122
|
|
|
151
123
|
## Documentation
|
|
152
124
|
|
|
153
|
-
Full documentation is available at [
|
|
125
|
+
Full documentation is available at [sniperai.dev](https://sniperai.dev/).
|
|
154
126
|
|
|
155
127
|
## License
|
|
156
128
|
|