@posthog/wizard 2.22.1 → 2.24.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.
Files changed (56) hide show
  1. package/README.md +61 -2
  2. package/dist/{AiOptInRequiredScreen-B8mgZbe5.js → AiOptInRequiredScreen-DPn1CCeD.js} +12 -577
  3. package/dist/AiOptInRequiredScreen-DPn1CCeD.js.map +1 -0
  4. package/dist/{add-mcp-server-to-clients-lCxOS1A1.js → add-mcp-server-to-clients-BU8Owthq.js} +4 -4
  5. package/dist/{add-mcp-server-to-clients-lCxOS1A1.js.map → add-mcp-server-to-clients-BU8Owthq.js.map} +1 -1
  6. package/dist/{agent-interface-BPCzPvK-.js → agent-interface-CysYcZl5.js} +6 -7
  7. package/dist/agent-interface-CysYcZl5.js.map +1 -0
  8. package/dist/{agent-runner-DgzF2mga.js → agent-runner-Br0OxBxd.js} +8 -8
  9. package/dist/{agent-runner-DgzF2mga.js.map → agent-runner-Br0OxBxd.js.map} +1 -1
  10. package/dist/{analytics-BZv-cKyn.js → analytics-BOWrR4qd.js} +22 -2
  11. package/dist/analytics-BOWrR4qd.js.map +1 -0
  12. package/dist/{api-BkLZ8BWm.js → api-RXTR8yZo.js} +3 -3
  13. package/dist/{api-BkLZ8BWm.js.map → api-RXTR8yZo.js.map} +1 -1
  14. package/dist/bin.js +875 -423
  15. package/dist/bin.js.map +1 -1
  16. package/dist/{ci-install-DBARq5LX.js → ci-install-BscZ60Ec.js} +5 -5
  17. package/dist/{ci-install-DBARq5LX.js.map → ci-install-BscZ60Ec.js.map} +1 -1
  18. package/dist/{debug-Ckumcrye.js → debug-BUdVZP84.js} +2 -2
  19. package/dist/{debug-Ckumcrye.js.map → debug-BUdVZP84.js.map} +1 -1
  20. package/dist/{debug-DLsuyfln.js → debug-BgH07S-e.js} +1 -1
  21. package/dist/{environment-DUh_8hqW.js → environment-G0Hv6_JI.js} +3 -3
  22. package/dist/{environment-DUh_8hqW.js.map → environment-G0Hv6_JI.js.map} +1 -1
  23. package/dist/{interactive-DeiHgviS.js → interactive-fh2iyewb.js} +3 -3
  24. package/dist/{interactive-DeiHgviS.js.map → interactive-fh2iyewb.js.map} +1 -1
  25. package/dist/{mcp-prompt-streaming-kEJgmB30.js → mcp-prompt-streaming-DUtbxnNy.js} +4 -4
  26. package/dist/{mcp-prompt-streaming-kEJgmB30.js.map → mcp-prompt-streaming-DUtbxnNy.js.map} +1 -1
  27. package/dist/{non-interactive-I4ifOSau.js → non-interactive-BfqXlY8R.js} +2 -2
  28. package/dist/{non-interactive-I4ifOSau.js.map → non-interactive-BfqXlY8R.js.map} +1 -1
  29. package/dist/{package-manager-fUeLORHg.js → package-manager-Ca1maxU-.js} +2 -2
  30. package/dist/{package-manager-fUeLORHg.js.map → package-manager-Ca1maxU-.js.map} +1 -1
  31. package/dist/{playground-DLLIz4Ql.js → playground-4sqLVVJL.js} +5 -10
  32. package/dist/{playground-DLLIz4Ql.js.map → playground-4sqLVVJL.js.map} +1 -1
  33. package/dist/{posthog-integration-COcPewVt.js → posthog-integration-Bz3HWkHn.js} +11 -11
  34. package/dist/{posthog-integration-COcPewVt.js.map → posthog-integration-Bz3HWkHn.js.map} +1 -1
  35. package/dist/{provisioning-7xU12_S9.js → provisioning-CgwvlsIl.js} +3 -3
  36. package/dist/{provisioning-7xU12_S9.js.map → provisioning-CgwvlsIl.js.map} +1 -1
  37. package/dist/{registry-YwaF-aD8.js → registry-CEnQVctL.js} +4 -4
  38. package/dist/{registry-YwaF-aD8.js.map → registry-CEnQVctL.js.map} +1 -1
  39. package/dist/{setup-utils-Cr4FxJDl.js → setup-utils-Doh69vo4.js} +8 -8
  40. package/dist/{setup-utils-Cr4FxJDl.js.map → setup-utils-Doh69vo4.js.map} +1 -1
  41. package/dist/{start-tui--E4PXdwG.js → start-tui-CywbSvZE.js} +54 -1030
  42. package/dist/start-tui-CywbSvZE.js.map +1 -0
  43. package/dist/{steps-CxUxdK4V.js → steps-DJojDYQ-.js} +6 -6
  44. package/dist/{steps-CxUxdK4V.js.map → steps-DJojDYQ-.js.map} +1 -1
  45. package/dist/{telemetry-BS7yw3TP.js → telemetry-8zMpaIuK.js} +3 -3
  46. package/dist/{telemetry-BS7yw3TP.js.map → telemetry-8zMpaIuK.js.map} +1 -1
  47. package/dist/{urls-BW23_XbC.js → urls-BUfvQmU4.js} +2 -2
  48. package/dist/{urls-BW23_XbC.js.map → urls-BUfvQmU4.js.map} +1 -1
  49. package/dist/{wizard-abort-E66_R4S7.js → wizard-abort-BdGW4Tvi.js} +3 -3
  50. package/dist/{wizard-abort-E66_R4S7.js.map → wizard-abort-BdGW4Tvi.js.map} +1 -1
  51. package/dist/{wizard-abort-BPsnXKY5.js → wizard-abort-Ni-mKJ58.js} +1 -1
  52. package/package.json +2 -2
  53. package/dist/AiOptInRequiredScreen-B8mgZbe5.js.map +0 -1
  54. package/dist/agent-interface-BPCzPvK-.js.map +0 -1
  55. package/dist/analytics-BZv-cKyn.js.map +0 -1
  56. package/dist/start-tui--E4PXdwG.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