@whisperr/wizard 0.5.2 → 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.
Files changed (3) hide show
  1. package/README.md +48 -47
  2. package/dist/index.js +3644 -3795
  3. package/package.json +5 -6
package/README.md CHANGED
@@ -1,80 +1,81 @@
1
1
  # @whisperr/wizard
2
2
 
3
- Generate and integrate a Whisperr intervention model from your actual codebase.
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 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.
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 It Works
14
+ ## How it works
12
15
 
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.
16
+ The wizard is an agentic integrator with a planner/editor split:
19
17
 
20
- For split repositories, finish the frontend run before running the wizard in backend repositories. A full-stack repository is one project.
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
- ## Supported Stacks
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
- Next.js, Web (JavaScript/TypeScript), React Native, Flutter, Swift, Node, Python, and PHP.
34
+ ## Supported stacks
25
35
 
26
- ## Requirements
36
+ Next.js · Web (JS/TS) · React Native · Flutter · Swift · Node · Python · PHP
27
37
 
28
- - Node.js 22+
29
- - A completed Whisperr onboarding session
30
- - A Git repository with a clean working tree for a new run
38
+ ## Requirements
31
39
 
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.
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
- ```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
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
- 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.
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
- - 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.
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
- See [SECURITY.md](./SECURITY.md) for the complete boundary and residual risks.
80
+ Whisperr predict churn, automate interventions, recover revenue.
81
+ [whisperr.net](https://whisperr.net)