@sightmap/sightmap 0.3.1 → 0.5.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 +31 -0
- package/dist/cli/index.js +1198 -0
- package/dist/cli/index.js.map +1 -1
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -182,6 +182,37 @@ Codes are stable, kebab-case, and exported as constants:
|
|
|
182
182
|
|
|
183
183
|
Renames require an SEP. Future SDK ports (Python, Go) MUST emit identical codes for the same conditions.
|
|
184
184
|
|
|
185
|
+
## Initialize a project
|
|
186
|
+
|
|
187
|
+
For a new adopter, the fastest path from zero to a working Sightmap loop is:
|
|
188
|
+
|
|
189
|
+
```sh
|
|
190
|
+
npx @sightmap/sightmap init
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
This detects your framework (React/Next/Vite/RR7), the coding-agent
|
|
194
|
+
harness(es) in use (Claude Code, Codex, Cursor, OpenCode), and any
|
|
195
|
+
Sightmap-aware browser MCP already installed (Subtext today). It then runs
|
|
196
|
+
framework setup (adapter install, `<SightmapProvider>` codemod, codegen) and
|
|
197
|
+
offers two install paths:
|
|
198
|
+
|
|
199
|
+
- **Plugin** (recommended): two copy-paste commands per host. Skills, hooks,
|
|
200
|
+
MCP — all together.
|
|
201
|
+
- **Manual**: writes MCP config + copies skills/hooks into this repo.
|
|
202
|
+
|
|
203
|
+
Pass `--yes` to skip all prompts and accept defaults. Other flags:
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
--plugin / --manual Force install path
|
|
207
|
+
--host <names> Comma-separated: claude-code,codex,cursor,opencode
|
|
208
|
+
--with-browser Force bundled Playwright + sightmap_* browser tools
|
|
209
|
+
--curate-only Force curation-only MCP
|
|
210
|
+
--no-codegen Skip sightmap-react gen
|
|
211
|
+
--no-provider Skip <SightmapProvider> codemod
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
See `docs/superpowers/specs/2026-05-11-sightmap-init-design.md` for the full design.
|
|
215
|
+
|
|
185
216
|
## License
|
|
186
217
|
|
|
187
218
|
MIT.
|