create-snipara 1.1.0 → 1.3.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 +148 -89
- package/dist/index.js +842 -297
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -1,140 +1,199 @@
|
|
|
1
1
|
# create-snipara
|
|
2
2
|
|
|
3
|
-
One-command setup for **Snipara MCP +
|
|
3
|
+
One-command setup and maintenance CLI for **Snipara MCP + snipara-companion + optional RLM-Runtime**.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npx create-snipara
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
`create-snipara` is the entry point. It bootstraps and maintains a complete local Snipara setup for one project. It does not replace the runtime packages. Instead, it installs and wires them together:
|
|
10
|
+
|
|
11
|
+
- `snipara-mcp` for hosted MCP access
|
|
12
|
+
- `snipara-companion` for local `rlm-hook` workflows
|
|
13
|
+
- `rlm-runtime` for optional local code execution
|
|
14
|
+
- local config, env files, hook scripts, and a project companion pack
|
|
15
|
+
|
|
16
|
+
## Install Profiles
|
|
17
|
+
|
|
18
|
+
The CLI now works around explicit install profiles:
|
|
19
|
+
|
|
20
|
+
| Profile | What it installs | Best for |
|
|
21
|
+
| ------------------ | ----------------------------------------- | ----------------------------------------- |
|
|
22
|
+
| `hosted-only` | MCP config only | SaaS-first setups without local workflows |
|
|
23
|
+
| `hosted-companion` | MCP + `snipara-companion` | Recommended default |
|
|
24
|
+
| `full-stack` | MCP + `snipara-companion` + `rlm-runtime` | Hosted context plus local execution |
|
|
25
|
+
| `runtime-only` | `rlm-runtime` only | Local execution without hosted API |
|
|
26
|
+
|
|
27
|
+
Default profile: `hosted-companion`
|
|
28
|
+
|
|
9
29
|
## What It Does
|
|
10
30
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
31
|
+
- detects local environment and project state
|
|
32
|
+
- installs `snipara-companion` by default for local workflows
|
|
33
|
+
- installs `snipara-mcp` and optional `rlm-runtime`
|
|
34
|
+
- configures `.mcp.json`
|
|
35
|
+
- updates `.env`, `.env.local`, and `.env.example`
|
|
36
|
+
- generates `.snipara/companion/README.md`
|
|
37
|
+
- generates `.snipara/companion/commands.json`
|
|
38
|
+
- generates `.snipara/companion/doctor.json`
|
|
39
|
+
- optionally installs Claude Code hooks
|
|
40
|
+
- supports `doctor`, `repair`, `upgrade`, and `print-config`
|
|
16
41
|
|
|
17
|
-
##
|
|
42
|
+
## Quick Start
|
|
18
43
|
|
|
19
44
|
```bash
|
|
20
45
|
npx create-snipara
|
|
21
46
|
```
|
|
22
47
|
|
|
23
|
-
|
|
48
|
+
The interactive flow now asks for:
|
|
49
|
+
|
|
50
|
+
- install profile
|
|
51
|
+
- project slug
|
|
52
|
+
- optional project id
|
|
53
|
+
- API key type and key when needed
|
|
54
|
+
- AI client
|
|
55
|
+
- whether hooks should be generated
|
|
56
|
+
- optional runtime provider config when `rlm-runtime` is installed
|
|
57
|
+
|
|
58
|
+
## Main Commands
|
|
24
59
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
| **Packages** | Choose what to install |
|
|
60
|
+
### Install or initialize
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npx create-snipara
|
|
64
|
+
npx create-snipara init
|
|
65
|
+
```
|
|
32
66
|
|
|
33
|
-
|
|
67
|
+
### Inspect local setup
|
|
34
68
|
|
|
35
69
|
```bash
|
|
36
|
-
|
|
37
|
-
|
|
70
|
+
npx create-snipara doctor
|
|
71
|
+
```
|
|
38
72
|
|
|
39
|
-
|
|
40
|
-
npx create-snipara --slug my-project
|
|
73
|
+
Writes `.snipara/companion/doctor.json` and validates:
|
|
41
74
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
75
|
+
- local config files
|
|
76
|
+
- companion CLI presence
|
|
77
|
+
- runtime CLI presence
|
|
78
|
+
- environment files
|
|
79
|
+
- hosted MCP reachability when a live API key is available
|
|
46
80
|
|
|
47
|
-
|
|
48
|
-
npx create-snipara -y
|
|
81
|
+
### Repair local setup
|
|
49
82
|
|
|
50
|
-
|
|
51
|
-
npx create-snipara
|
|
83
|
+
```bash
|
|
84
|
+
npx create-snipara repair
|
|
52
85
|
```
|
|
53
86
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"X-API-Key": "rlm_your_key"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"rlm-runtime": {
|
|
69
|
-
"type": "http",
|
|
70
|
-
"url": "http://localhost:8765/mcp",
|
|
71
|
-
"headers": {}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
87
|
+
Rebuilds local project wiring:
|
|
88
|
+
|
|
89
|
+
- `.mcp.json`
|
|
90
|
+
- env files
|
|
91
|
+
- companion pack
|
|
92
|
+
- hooks when relevant
|
|
93
|
+
|
|
94
|
+
### Upgrade local pieces
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
npx create-snipara upgrade
|
|
75
98
|
```
|
|
76
99
|
|
|
77
|
-
|
|
100
|
+
Upgrades installed local components and refreshes the companion pack.
|
|
78
101
|
|
|
79
|
-
|
|
80
|
-
- `snipara-session.sh` - Auto-remembers commits
|
|
81
|
-
- `snipara-compact.sh` - Saves context before compaction
|
|
102
|
+
### Print inferred config
|
|
82
103
|
|
|
83
|
-
|
|
104
|
+
```bash
|
|
105
|
+
npx create-snipara print-config
|
|
106
|
+
npx create-snipara print-config --json
|
|
107
|
+
```
|
|
84
108
|
|
|
85
|
-
|
|
109
|
+
## Common Flags
|
|
86
110
|
|
|
87
111
|
```bash
|
|
88
|
-
|
|
89
|
-
|
|
112
|
+
# Use an explicit install profile
|
|
113
|
+
npx create-snipara --profile hosted-companion
|
|
114
|
+
npx create-snipara --profile full-stack
|
|
115
|
+
|
|
116
|
+
# Runtime-only local execution
|
|
117
|
+
npx create-snipara --runtime-only
|
|
118
|
+
|
|
119
|
+
# Non-interactive setup
|
|
120
|
+
npx create-snipara -y --api-key rlm_xxx --slug my-project
|
|
121
|
+
|
|
122
|
+
# Skip selected layers
|
|
123
|
+
npx create-snipara --skip-companion
|
|
124
|
+
npx create-snipara --skip-mcp
|
|
125
|
+
npx create-snipara --skip-runtime
|
|
126
|
+
npx create-snipara --skip-hooks
|
|
127
|
+
|
|
128
|
+
# Force extra layers during maintenance
|
|
129
|
+
npx create-snipara repair --with-hooks
|
|
130
|
+
npx create-snipara upgrade --with-runtime
|
|
90
131
|
```
|
|
91
132
|
|
|
92
|
-
##
|
|
133
|
+
## Packaging Model
|
|
134
|
+
|
|
135
|
+
The intended split is:
|
|
136
|
+
|
|
137
|
+
- `create-snipara`: install, inspect, repair, and upgrade the local project setup
|
|
138
|
+
- `snipara-companion`: ongoing local runtime workflows through `rlm-hook`
|
|
139
|
+
- `snipara-mcp`: hosted MCP bridge
|
|
140
|
+
- `rlm-runtime`: optional local execution engine
|
|
141
|
+
|
|
142
|
+
This keeps setup and runtime separated while still giving the user one obvious command to start from.
|
|
143
|
+
|
|
144
|
+
## Generated Local Pack
|
|
145
|
+
|
|
146
|
+
After setup, the project gets a local pack at `.snipara/companion/`:
|
|
147
|
+
|
|
148
|
+
- `README.md`: local usage guidance
|
|
149
|
+
- `commands.json`: starter commands for the current project
|
|
150
|
+
- `doctor.json`: most recent validation report
|
|
93
151
|
|
|
94
|
-
|
|
152
|
+
This pack is meant to be the local source of truth for machine-level setup.
|
|
95
153
|
|
|
96
|
-
|
|
97
|
-
2. MCP tools are automatically available
|
|
154
|
+
## API Key Requirements
|
|
98
155
|
|
|
99
|
-
|
|
156
|
+
| Tooling | Snipara API key | LLM API key |
|
|
157
|
+
| ------------------------------------ | -------------------- | ----------- |
|
|
158
|
+
| Hosted MCP queries | Required | Not needed |
|
|
159
|
+
| Memory / planning tools | Required | Not needed |
|
|
160
|
+
| `snipara-companion` hosted workflows | Required | Not needed |
|
|
161
|
+
| `rlm-runtime` `execute_python` MCP | Not needed | Not needed |
|
|
162
|
+
| `rlm run` / `rlm agent` CLI | Optional for context | Required |
|
|
100
163
|
|
|
101
|
-
|
|
102
|
-
2. Config is at `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
164
|
+
## Example Flows
|
|
103
165
|
|
|
104
|
-
###
|
|
166
|
+
### Default recommended setup
|
|
105
167
|
|
|
106
168
|
```bash
|
|
107
|
-
|
|
108
|
-
rlm run --env docker # Run with Docker isolation
|
|
109
|
-
rlm serve # Start MCP server
|
|
110
|
-
rlm visualize # Launch trajectory dashboard
|
|
169
|
+
npx create-snipara --profile hosted-companion
|
|
111
170
|
```
|
|
112
171
|
|
|
113
|
-
|
|
172
|
+
### Full local stack
|
|
114
173
|
|
|
115
|
-
|
|
174
|
+
```bash
|
|
175
|
+
npx create-snipara --profile full-stack
|
|
176
|
+
```
|
|
116
177
|
|
|
117
|
-
|
|
118
|
-
|----------|-------|
|
|
119
|
-
| **Context** | `rlm_context_query`, `rlm_ask`, `rlm_search`, `rlm_sections` |
|
|
120
|
-
| **Planning** | `rlm_plan`, `rlm_decompose`, `rlm_multi_query` |
|
|
121
|
-
| **Memory** | `rlm_remember`, `rlm_recall`, `rlm_memories`, `rlm_forget` |
|
|
122
|
-
| **Execution** | `execute_python`, `rlm_agent_run` (via RLM-Runtime) |
|
|
123
|
-
| **Swarms** | `rlm_swarm_create`, `rlm_claim`, `rlm_task_create` |
|
|
178
|
+
### Repair after a broken workstation or new shell
|
|
124
179
|
|
|
125
|
-
|
|
180
|
+
```bash
|
|
181
|
+
npx create-snipara repair
|
|
182
|
+
npx create-snipara doctor
|
|
183
|
+
```
|
|
126
184
|
|
|
127
|
-
|
|
128
|
-
- Python 3.10+ (for snipara-mcp and rlm-runtime)
|
|
129
|
-
- Docker (optional, for RLM-Runtime isolation)
|
|
185
|
+
### Check what the CLI inferred from this project
|
|
130
186
|
|
|
131
|
-
|
|
187
|
+
```bash
|
|
188
|
+
npx create-snipara print-config --json
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Local Tarball Testing
|
|
132
192
|
|
|
133
|
-
|
|
134
|
-
- **Documentation**: https://snipara.com/docs
|
|
135
|
-
- **Dashboard**: https://snipara.com/dashboard
|
|
136
|
-
- **Support**: hello@snipara.com
|
|
193
|
+
When testing a locally packed tarball, use `npm exec --package` instead of `npx`, for example:
|
|
137
194
|
|
|
138
|
-
|
|
195
|
+
```bash
|
|
196
|
+
npm exec --package ./create-snipara-1.3.0.tgz create-snipara -- --help
|
|
197
|
+
```
|
|
139
198
|
|
|
140
|
-
|
|
199
|
+
This avoids `npx` resolution issues with unpublished tarballs.
|