@whisperr/wizard 0.2.1 → 0.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 +48 -10
- package/dist/index.js +1094 -104
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,42 +1,80 @@
|
|
|
1
1
|
# @whisperr/wizard
|
|
2
2
|
|
|
3
|
-
Integrate Whisperr into your app with one command.
|
|
3
|
+
Integrate [Whisperr](https://whisperr.net) into your app with one command.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npx @whisperr/wizard
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Run it in your project's root. The wizard detects your
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Run it in your project's root. The wizard detects your stack, signs you in,
|
|
10
|
+
**maps your codebase, plans every event placement, shows you the plan, and
|
|
11
|
+
wires it in** — then verifies the build, watches for your first event, and
|
|
12
|
+
hands you a clean diff to review and commit.
|
|
12
13
|
|
|
13
|
-
##
|
|
14
|
+
## How it works
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
The wizard is an agentic integrator with a planner/editor split:
|
|
17
|
+
|
|
18
|
+
1. **Map** — a read-only pass charts your repo: entry points, end-user vs
|
|
19
|
+
admin auth flows, billing surfaces, existing analytics wrappers.
|
|
20
|
+
2. **Plan** — a reasoning model decides, per event, exactly where it belongs
|
|
21
|
+
(`file @ anchor`) with the properties available in scope — or says
|
|
22
|
+
honestly that it doesn't exist on this surface.
|
|
23
|
+
3. **Review the plan** — you see every placement before a single line
|
|
24
|
+
changes, and pick what gets wired.
|
|
25
|
+
4. **Wire** — a fast editor model executes the approved plan mechanically.
|
|
26
|
+
5. **Verify** — placements are scanned back out of the diff, your build/lint
|
|
27
|
+
command runs, and failures get one automatic repair pass. Every event ends
|
|
28
|
+
the run as `✓ wired @ file` or `○ skipped — reason`.
|
|
29
|
+
|
|
30
|
+
Multi-surface aware: run it in your web app, then your mobile app, then your
|
|
31
|
+
backend — the wizard knows what each surface already covers and never
|
|
32
|
+
re-proposes what another run wired.
|
|
33
|
+
|
|
34
|
+
## Supported stacks
|
|
35
|
+
|
|
36
|
+
Next.js · Web (JS/TS) · React Native · Flutter · Swift · Node · Python · PHP
|
|
19
37
|
|
|
20
38
|
## Requirements
|
|
21
39
|
|
|
22
40
|
- Node.js 18.17+
|
|
23
|
-
- A Whisperr account with onboarding completed
|
|
41
|
+
- A Whisperr account with onboarding completed (or use `--offline` to demo)
|
|
24
42
|
|
|
25
43
|
## Usage
|
|
26
44
|
|
|
27
45
|
```bash
|
|
28
46
|
# in your project root
|
|
29
47
|
npx @whisperr/wizard
|
|
48
|
+
|
|
49
|
+
# or point it somewhere
|
|
50
|
+
npx @whisperr/wizard path/to/app
|
|
30
51
|
```
|
|
31
52
|
|
|
32
53
|
Options:
|
|
33
54
|
|
|
34
55
|
```
|
|
56
|
+
--offline Demo run with a mock manifest — no account or browser needed
|
|
57
|
+
--force Proceed without a clean git tree (disables the safe undo)
|
|
35
58
|
--api <url> Point at a specific Whisperr API (advanced)
|
|
59
|
+
--model <id> Override the editor model (WHISPERR_WIZARD_MODEL)
|
|
36
60
|
-h, --help Show help
|
|
37
61
|
-v, --version Show version
|
|
38
62
|
```
|
|
39
63
|
|
|
64
|
+
Environment knobs: `WHISPERR_WIZARD_PLANNER_MODEL`,
|
|
65
|
+
`WHISPERR_WIZARD_BUDGET_USD` (default 25), `WHISPERR_WIZARD_EFFORT`.
|
|
66
|
+
|
|
67
|
+
## Safety
|
|
68
|
+
|
|
69
|
+
- **Clean-tree contract** — the wizard requires a clean git working tree and
|
|
70
|
+
gives you a one-command revert; your code is never uncommitted-mixed with
|
|
71
|
+
its changes.
|
|
72
|
+
- **Restricted agent sandbox** — the agent cannot read secret material
|
|
73
|
+
(`.env*`, keys, credentials) and can only run an allowlisted set of package
|
|
74
|
+
-manager commands. Details in [SECURITY.md](./SECURITY.md).
|
|
75
|
+
- **Nothing merges itself** — the wizard's output is a working-tree diff for
|
|
76
|
+
you to review and commit.
|
|
77
|
+
|
|
40
78
|
---
|
|
41
79
|
|
|
42
80
|
Whisperr — predict churn, automate interventions, recover revenue.
|