@whisperr/wizard 0.4.0 → 0.5.1
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 +47 -48
- package/dist/index.js +3835 -3687
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,81 +1,80 @@
|
|
|
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:
|
|
68
54
|
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
|
|
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`
|
|
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.
|
|
70
|
+
|
|
71
|
+
## Safety
|
|
77
72
|
|
|
78
|
-
|
|
73
|
+
- Repository tools are host-owned and restricted to the selected repository.
|
|
74
|
+
- Secret files are blocked. The host writes ingestion credentials only to local environment files and redacts them from model-visible reads and command output.
|
|
75
|
+
- Terra receives only read, list, and search tools.
|
|
76
|
+
- Repository commands use parsed arguments without a shell and are limited to approved SDK package installation plus metadata-only Git commands.
|
|
77
|
+
- Git and CI configuration writes are blocked.
|
|
78
|
+
- The wizard never commits or pushes changes.
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
[whisperr.net](https://whisperr.net)
|
|
80
|
+
See [SECURITY.md](./SECURITY.md) for the complete boundary and residual risks.
|