@whisperr/wizard 0.5.3 → 0.5.4
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 -47
- package/dist/index.js +3644 -3796
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -1,80 +1,81 @@
|
|
|
1
1
|
# @whisperr/wizard
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
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.
|
|
10
13
|
|
|
11
|
-
## How
|
|
14
|
+
## How it works
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
2. The Sol primary creates only intervention groups, interventions, events, and direct intervention-event links.
|
|
15
|
-
3. Each accepted item is written to runtime immediately with a stable idempotency key, so the dashboard can show live progress.
|
|
16
|
-
4. Sol installs and configures the stack-specific SDK, then instruments events owned by this project.
|
|
17
|
-
5. The host runs the stack's deterministic build or lint verifier when one is defined, before runtime accepts completion.
|
|
18
|
-
6. An interrupted run resumes from the runtime snapshot and its OpenAI conversation. Missing conversations restart from the same server snapshot without duplicating rows.
|
|
16
|
+
The wizard is an agentic integrator with a planner/editor split:
|
|
19
17
|
|
|
20
|
-
|
|
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`.
|
|
21
29
|
|
|
22
|
-
|
|
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.
|
|
23
33
|
|
|
24
|
-
|
|
34
|
+
## Supported stacks
|
|
25
35
|
|
|
26
|
-
|
|
36
|
+
Next.js · Web (JS/TS) · React Native · Flutter · Swift · Node · Python · PHP
|
|
27
37
|
|
|
28
|
-
|
|
29
|
-
- A completed Whisperr onboarding session
|
|
30
|
-
- A Git repository with a clean working tree for a new run
|
|
38
|
+
## Requirements
|
|
31
39
|
|
|
32
|
-
|
|
40
|
+
- Node.js 18.17+
|
|
41
|
+
- A Whisperr account with onboarding completed (or use `--offline` to demo)
|
|
33
42
|
|
|
34
43
|
## Usage
|
|
35
44
|
|
|
36
45
|
```bash
|
|
46
|
+
# in your project root
|
|
37
47
|
npx @whisperr/wizard
|
|
48
|
+
|
|
49
|
+
# or point it somewhere
|
|
38
50
|
npx @whisperr/wizard path/to/app
|
|
39
51
|
```
|
|
40
52
|
|
|
41
53
|
Options:
|
|
42
54
|
|
|
43
|
-
```
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
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)
|
|
58
|
+
--api <url> Point at a specific Whisperr API (advanced)
|
|
59
|
+
--model <id> Override the editor model (WHISPERR_WIZARD_MODEL)
|
|
47
60
|
-h, --help Show help
|
|
48
61
|
-v, --version Show version
|
|
49
62
|
```
|
|
50
63
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Development overrides:
|
|
54
|
-
|
|
55
|
-
- `WHISPERR_WIZARD_API_BASE`
|
|
56
|
-
- `WHISPERR_WIZARD_OPENAI_BASE`
|
|
57
|
-
- `WHISPERR_WIZARD_PRIMARY_MODEL`
|
|
58
|
-
- `WHISPERR_WIZARD_PRIMARY_EFFORT`
|
|
59
|
-
- `WHISPERR_WIZARD_SERVICE_TIER`
|
|
60
|
-
- `WHISPERR_WIZARD_EXPLORER_MODEL`
|
|
61
|
-
- `WHISPERR_WIZARD_EXPLORER_EFFORT`
|
|
62
|
-
- `WHISPERR_WIZARD_DIRECT_OPENAI_KEY`
|
|
63
|
-
- `WHISPERR_WIZARD_LOG_DIR` to place private diagnostic logs in a specific directory outside the target repository
|
|
64
|
-
|
|
65
|
-
## Diagnostics
|
|
66
|
-
|
|
67
|
-
Each wizard invocation prints the path to one private JSONL diagnostic file. By default it is stored under the wizard state directory's `logs` folder, outside the target repository. The directory is mode `0700` and each file is mode `0600`. Filenames contain only a timestamp and random invocation ID.
|
|
68
|
-
|
|
69
|
-
Diagnostics contain bounded lifecycle, progress, Git-safety, coverage, first-event, and HTTP timing/status metadata. They do not contain request or response bodies or headers, prompts, repository source, model output or reasoning, subprocess output, environment contents, authorization codes or URLs, or credentials. Known credentials are registered for exact redaction as they become available, and common token/key formats are also scrubbed.
|
|
64
|
+
Environment knobs: `WHISPERR_WIZARD_PLANNER_MODEL`,
|
|
65
|
+
`WHISPERR_WIZARD_BUDGET_USD` (default 25), `WHISPERR_WIZARD_EFFORT`.
|
|
70
66
|
|
|
71
67
|
## Safety
|
|
72
68
|
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
-
|
|
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
|
+
|
|
78
|
+
---
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Whisperr — predict churn, automate interventions, recover revenue.
|
|
81
|
+
[whisperr.net](https://whisperr.net)
|