@whisperr/wizard 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 +40 -48
- package/dist/index.js +3341 -3387
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,81 +1,73 @@
|
|
|
1
1
|
# @whisperr/wizard
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Generate and integrate a Whisperr intervention model from your actual codebase.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npx @whisperr/wizard
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Run
|
|
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.
|
|
9
|
+
Run the command in the customer-facing frontend first. The wizard detects the stack, authenticates the app, inspects concrete product behavior, writes the generated model to Whisperr as it works, installs the SDK, and instruments the generated events.
|
|
13
10
|
|
|
14
|
-
## How
|
|
11
|
+
## How It Works
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
1. A read-only Terra agent maps repository structure, end-user paths, and concrete event call sites.
|
|
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.
|
|
17
19
|
|
|
18
|
-
|
|
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`.
|
|
20
|
+
For split repositories, finish the frontend run before running the wizard in backend repositories. A full-stack repository is one project.
|
|
29
21
|
|
|
30
|
-
|
|
31
|
-
backend — the wizard knows what each surface already covers and never
|
|
32
|
-
re-proposes what another run wired.
|
|
22
|
+
## Supported Stacks
|
|
33
23
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
Next.js · Web (JS/TS) · React Native · Flutter · Swift · Node · Python · PHP
|
|
24
|
+
Next.js, Web (JavaScript/TypeScript), React Native, Flutter, Swift, Node, Python, and PHP.
|
|
37
25
|
|
|
38
26
|
## Requirements
|
|
39
27
|
|
|
40
|
-
- Node.js
|
|
41
|
-
- A Whisperr
|
|
28
|
+
- Node.js 22+
|
|
29
|
+
- A completed Whisperr onboarding session
|
|
30
|
+
- A Git repository with a clean working tree for a new run
|
|
31
|
+
|
|
32
|
+
An incomplete run may resume with its existing wizard edits still in the working tree. `--force` permits other uncommitted changes; invocation-scoped restore preserves the state that existed before that invocation.
|
|
42
33
|
|
|
43
34
|
## Usage
|
|
44
35
|
|
|
45
36
|
```bash
|
|
46
|
-
# in your project root
|
|
47
37
|
npx @whisperr/wizard
|
|
48
|
-
|
|
49
|
-
# or point it somewhere
|
|
50
38
|
npx @whisperr/wizard path/to/app
|
|
51
39
|
```
|
|
52
40
|
|
|
53
41
|
Options:
|
|
54
42
|
|
|
55
|
-
```
|
|
56
|
-
--
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
--model <id> Override the editor model (WHISPERR_WIZARD_MODEL)
|
|
43
|
+
```text
|
|
44
|
+
--force Proceed without a clean Git tree
|
|
45
|
+
--api <url> Override the Whisperr API base URL
|
|
46
|
+
--model <id> Override the primary Sol model
|
|
60
47
|
-h, --help Show help
|
|
61
48
|
-v, --version Show version
|
|
62
49
|
```
|
|
63
50
|
|
|
64
|
-
|
|
65
|
-
`WHISPERR_WIZARD_BUDGET_USD` (default 25), `WHISPERR_WIZARD_EFFORT`.
|
|
51
|
+
Model defaults are `gpt-5.6-sol` with `high` reasoning and the `priority` service tier, plus `gpt-5.6-terra` with `xhigh` reasoning for read-only exploration.
|
|
66
52
|
|
|
67
|
-
|
|
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` or `OPENAI_API_KEY`
|
|
68
63
|
|
|
69
|
-
|
|
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.
|
|
64
|
+
## Safety
|
|
77
65
|
|
|
78
|
-
|
|
66
|
+
- Repository tools are host-owned and restricted to the selected repository.
|
|
67
|
+
- Secret files are blocked. The host writes ingestion credentials only to local environment files and redacts them from model-visible reads and command output.
|
|
68
|
+
- Terra receives only read, list, and search tools.
|
|
69
|
+
- Repository commands use parsed arguments without a shell and are limited to approved SDK package installation plus metadata-only Git commands.
|
|
70
|
+
- Git and CI configuration writes are blocked.
|
|
71
|
+
- The wizard never commits or pushes changes.
|
|
79
72
|
|
|
80
|
-
|
|
81
|
-
[whisperr.net](https://whisperr.net)
|
|
73
|
+
See [SECURITY.md](./SECURITY.md) for the complete boundary and residual risks.
|