@posthog/wizard 2.23.0 → 2.24.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 +61 -2
- package/dist/{AiOptInRequiredScreen-BOMyYFep.js → AiOptInRequiredScreen-_33FOcVo.js} +148 -685
- package/dist/AiOptInRequiredScreen-_33FOcVo.js.map +1 -0
- package/dist/{add-mcp-server-to-clients-BEziI3z9.js → add-mcp-server-to-clients-CfwEQT_z.js} +4 -4
- package/dist/{add-mcp-server-to-clients-BEziI3z9.js.map → add-mcp-server-to-clients-CfwEQT_z.js.map} +1 -1
- package/dist/{agent-interface-DjMPlXl0.js → agent-interface-D1vtN6Wn.js} +6 -7
- package/dist/agent-interface-D1vtN6Wn.js.map +1 -0
- package/dist/{agent-runner-Bv-7z-pQ.js → agent-runner-CBbkS0Ro.js} +8 -8
- package/dist/{agent-runner-Bv-7z-pQ.js.map → agent-runner-CBbkS0Ro.js.map} +1 -1
- package/dist/{analytics-9D4eGgmT.js → analytics-CUr82BDl.js} +11 -2
- package/dist/{analytics-9D4eGgmT.js.map → analytics-CUr82BDl.js.map} +1 -1
- package/dist/{api-Dwd0B-E9.js → api-CI3Z74NG.js} +3 -3
- package/dist/{api-Dwd0B-E9.js.map → api-CI3Z74NG.js.map} +1 -1
- package/dist/bin.js +887 -465
- package/dist/bin.js.map +1 -1
- package/dist/{ci-install-DGXCpvKh.js → ci-install-D_kxNmbJ.js} +5 -5
- package/dist/{ci-install-DGXCpvKh.js.map → ci-install-D_kxNmbJ.js.map} +1 -1
- package/dist/{debug-CgT5MmVB.js → debug-DxA_f5QT.js} +2 -2
- package/dist/{debug-CgT5MmVB.js.map → debug-DxA_f5QT.js.map} +1 -1
- package/dist/{debug-DayHBBST.js → debug-zMvpNYb2.js} +1 -1
- package/dist/{environment-CI2pTYTG.js → environment-CyS37cmM.js} +3 -3
- package/dist/{environment-CI2pTYTG.js.map → environment-CyS37cmM.js.map} +1 -1
- package/dist/{interactive-D52p_opJ.js → interactive-CG6FFqSw.js} +3 -3
- package/dist/{interactive-D52p_opJ.js.map → interactive-CG6FFqSw.js.map} +1 -1
- package/dist/{mcp-prompt-streaming-tdoy9UJ2.js → mcp-prompt-streaming-DQz4FSb1.js} +4 -4
- package/dist/{mcp-prompt-streaming-tdoy9UJ2.js.map → mcp-prompt-streaming-DQz4FSb1.js.map} +1 -1
- package/dist/{non-interactive-6hadW20x.js → non-interactive-DWtHX3ZR.js} +2 -2
- package/dist/{non-interactive-6hadW20x.js.map → non-interactive-DWtHX3ZR.js.map} +1 -1
- package/dist/{package-manager-BI0J5E7t.js → package-manager-BWUS4CP0.js} +2 -2
- package/dist/{package-manager-BI0J5E7t.js.map → package-manager-BWUS4CP0.js.map} +1 -1
- package/dist/{playground-z4A5dHPv.js → playground-D7AhMMF5.js} +9 -20
- package/dist/playground-D7AhMMF5.js.map +1 -0
- package/dist/{posthog-integration-BWbZU9Xq.js → posthog-integration-DexZ2uHU.js} +18 -18
- package/dist/{posthog-integration-BWbZU9Xq.js.map → posthog-integration-DexZ2uHU.js.map} +1 -1
- package/dist/{provisioning-B30Be2NA.js → provisioning-9c-AQbsa.js} +3 -3
- package/dist/{provisioning-B30Be2NA.js.map → provisioning-9c-AQbsa.js.map} +1 -1
- package/dist/{registry-CD_DplSQ.js → registry-CO7JVZyE.js} +4 -4
- package/dist/{registry-CD_DplSQ.js.map → registry-CO7JVZyE.js.map} +1 -1
- package/dist/{setup-utils-Dwgkk8AQ.js → setup-utils-0U-_Md2G.js} +8 -8
- package/dist/{setup-utils-Dwgkk8AQ.js.map → setup-utils-0U-_Md2G.js.map} +1 -1
- package/dist/{start-tui-SLeEzlJs.js → start-tui-WNb3ET14.js} +206 -1205
- package/dist/start-tui-WNb3ET14.js.map +1 -0
- package/dist/{steps-B1gzyRkC.js → steps-BAUXDCC4.js} +6 -6
- package/dist/{steps-B1gzyRkC.js.map → steps-BAUXDCC4.js.map} +1 -1
- package/dist/{telemetry-5rkeTd2_.js → telemetry-ycqCpNPr.js} +3 -3
- package/dist/{telemetry-5rkeTd2_.js.map → telemetry-ycqCpNPr.js.map} +1 -1
- package/dist/{urls-Cb4SI9kf.js → urls-C8aJWvgh.js} +2 -2
- package/dist/{urls-Cb4SI9kf.js.map → urls-C8aJWvgh.js.map} +1 -1
- package/dist/{wizard-abort-DovHQa-j.js → wizard-abort-C6gRLxUE.js} +3 -3
- package/dist/{wizard-abort-DovHQa-j.js.map → wizard-abort-C6gRLxUE.js.map} +1 -1
- package/dist/{wizard-abort-DW2-ZjiS.js → wizard-abort-DWXyJdws.js} +1 -1
- package/package.json +1 -1
- package/dist/AiOptInRequiredScreen-BOMyYFep.js.map +0 -1
- package/dist/agent-interface-DjMPlXl0.js.map +0 -1
- package/dist/playground-z4A5dHPv.js.map +0 -1
- package/dist/start-tui-SLeEzlJs.js.map +0 -1
package/README.md
CHANGED
|
@@ -49,16 +49,56 @@ npx @posthog/wizard mcp add
|
|
|
49
49
|
npx @posthog/wizard mcp remove
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
+
## Audit
|
|
53
|
+
|
|
54
|
+
Audit an existing PostHog integration for correctness and best practices. The
|
|
55
|
+
`audit` command is a **family**. With no subcommand it runs the **events**
|
|
56
|
+
audit (the default); pass a subcommand to run a specific one:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Runs the events audit (the default) — no subcommand needed
|
|
60
|
+
npx @posthog/wizard audit
|
|
61
|
+
|
|
62
|
+
# Or run a specific audit directly
|
|
63
|
+
npx @posthog/wizard audit events # event capture quality + cost (default)
|
|
64
|
+
npx @posthog/wizard audit all # comprehensive audit across every area
|
|
65
|
+
npx @posthog/wizard audit autocapture # autocapture setup + cost
|
|
66
|
+
npx @posthog/wizard audit feature-flags # feature flag usage + cost
|
|
67
|
+
npx @posthog/wizard audit identify # your $identify implementation
|
|
68
|
+
npx @posthog/wizard audit session-replay # session replay setup
|
|
69
|
+
npx @posthog/wizard audit web-analytics # web analytics setup
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Most audit subcommands resolve at runtime from the published skill registry, so
|
|
73
|
+
new audits appear without a wizard release (`web-analytics` is wizard-native).
|
|
74
|
+
|
|
75
|
+
> **`audit <subcommand>` chooses an audit area — it does not take a skill name.**
|
|
76
|
+
> The audit subcommands above *are* context-mill skills promoted to commands (via
|
|
77
|
+
> a `cli: role: command` block); [`wizard skill <skill-name>`](#run-a-single-skill)
|
|
78
|
+
> runs a skill that hasn't been promoted. Same machinery, two surfaces.
|
|
79
|
+
> (`wizard audit --help` still labels the positional `[skill]` — read it as "pick
|
|
80
|
+
> a subcommand.")
|
|
81
|
+
|
|
82
|
+
## Run a single skill
|
|
83
|
+
|
|
84
|
+
Run any context-mill skill directly by name, even if it isn't exposed as its own
|
|
85
|
+
command:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
npx @posthog/wizard skill list # list every available skill
|
|
89
|
+
npx @posthog/wizard skill <skill-name> # run one by name
|
|
90
|
+
```
|
|
91
|
+
|
|
52
92
|
## Revenue Analytics
|
|
53
93
|
|
|
54
94
|
Wire up an existing PostHog + Stripe project for revenue analytics:
|
|
55
95
|
|
|
56
96
|
```bash
|
|
57
|
-
npx @posthog/wizard revenue
|
|
97
|
+
npx @posthog/wizard revenue-analytics
|
|
58
98
|
```
|
|
59
99
|
|
|
60
100
|
Requires PostHog and Stripe SDKs already installed. Supports `--ci` with the
|
|
61
|
-
same flags as the main wizard.
|
|
101
|
+
same flags as the main wizard. (Renamed from `revenue` in the CLI overhaul.)
|
|
62
102
|
|
|
63
103
|
## Headless signup + install (agents / CI)
|
|
64
104
|
|
|
@@ -170,6 +210,25 @@ ceiling, for bookkeeping:
|
|
|
170
210
|
user:read,project:read,llm_gateway:read,dashboard:read,dashboard:write,insight:read,insight:write,query:read,notebook:read,notebook:write,health_issue:read,wizard_session:read,wizard_session:write,feature_flag:read,experiment:read,experiment_saved_metric:read,survey:read,session_recording:read,error_tracking:read,web_analytics:read,llm_analytics:read,cohort:read,person:read,annotation:read,annotation:write,activity_log:read,property_definition:read,event_definition:read,action:read,warehouse_table:read,warehouse_view:read,alert:read,subscription:read,feature_flag:write,integration:read,organization:read
|
|
171
211
|
```
|
|
172
212
|
|
|
213
|
+
# Command changes (CLI overhaul)
|
|
214
|
+
|
|
215
|
+
The CLI was overhauled to consolidate commands into a smaller, extensible
|
|
216
|
+
surface. If you used an older command, here's where it went:
|
|
217
|
+
|
|
218
|
+
| Old command | New command | What changed |
|
|
219
|
+
|---|---|---|
|
|
220
|
+
| `wizard integrate` | `wizard` (default flow) | Command removed; the default flow runs the integration |
|
|
221
|
+
| `wizard events-audit` | `wizard audit events` | Now an `audit`-family subcommand |
|
|
222
|
+
| `wizard audit` (single audit) | `wizard audit <subcommand>` | Now a family; see [Audit](#audit) for the subcommands |
|
|
223
|
+
| `wizard audit-3000` | *removed* | Retired |
|
|
224
|
+
| `wizard revenue` | `wizard revenue-analytics` | Renamed (old `revenue` removed) |
|
|
225
|
+
| `wizard upload-sourcemaps` | `wizard upload-source-maps` | Renamed; `upload-sourcemaps` still works as an alias |
|
|
226
|
+
|
|
227
|
+
> **Commands vs. programs:** `integrate` was the *command*; the program behind it
|
|
228
|
+
> is `posthog-integration`, which still exists and now powers the default flow.
|
|
229
|
+
> Other commands depend on it via `requires: ['posthog-integration']`. The
|
|
230
|
+
> program id is internal — it was never a command you typed.
|
|
231
|
+
|
|
173
232
|
# Steal this code
|
|
174
233
|
|
|
175
234
|
While the wizard works great on its own, we also find the approach used by this
|