@posthog/wizard 2.76.1 → 2.77.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/dist/README.md +16 -15
- package/dist/{add-mcp-server-to-clients-4yHaRvOo.js → add-mcp-server-to-clients-BnRyE4pw.js} +428 -114
- package/dist/add-mcp-server-to-clients-BnRyE4pw.js.map +1 -0
- package/dist/{agent-interface-DPaPdIjS.js → agent-interface-Avtr_5M5.js} +34 -10
- package/dist/agent-interface-Avtr_5M5.js.map +1 -0
- package/dist/{agent-prompt-loader-BlhabNM2.js → agent-prompt-loader-CHixNPgY.js} +23 -7
- package/dist/agent-prompt-loader-CHixNPgY.js.map +1 -0
- package/dist/{agent-runner-JFwQQj2k.js → agent-runner-COOIUJCP.js} +171 -83
- package/dist/agent-runner-COOIUJCP.js.map +1 -0
- package/dist/{analytics-DSVyjIVF.js → analytics-C67F2vee.js} +2 -2
- package/dist/{analytics-DSVyjIVF.js.map → analytics-C67F2vee.js.map} +1 -1
- package/dist/analytics-CJA1uLlk.js +2 -0
- package/dist/{api-Ci0dZWLR.js → api-Dj1yabTj.js} +3 -3
- package/dist/{api-Ci0dZWLR.js.map → api-Dj1yabTj.js.map} +1 -1
- package/dist/bin.js +41 -41
- package/dist/bin.js.map +1 -1
- package/dist/{bounded-fs-FbZJ_vJ_.js → bounded-fs-CWRYuLAn.js} +3 -3
- package/dist/bounded-fs-CWRYuLAn.js.map +1 -0
- package/dist/{ci-install-CEVCqahf.js → ci-install-CvXL5h13.js} +5 -5
- package/dist/{ci-install-CEVCqahf.js.map → ci-install-CvXL5h13.js.map} +1 -1
- package/dist/{debug-DWYDVp0B.js → debug-B4kzIZPi.js} +10 -6
- package/dist/debug-B4kzIZPi.js.map +1 -0
- package/dist/{debug-C6KWXbQi.js → debug-CziFS0cA.js} +1 -1
- package/dist/{defaults-DulzMJpN.js → defaults-4c4YwTmW.js} +26 -3
- package/dist/defaults-4c4YwTmW.js.map +1 -0
- package/dist/{env-api-key-DwmkB3fm.js → env-api-key-BZ5wE3Y4.js} +2 -2
- package/dist/{env-api-key-DwmkB3fm.js.map → env-api-key-BZ5wE3Y4.js.map} +1 -1
- package/dist/{environment-1wA7uwAS.js → environment-BEvsey6i.js} +4 -4
- package/dist/{environment-1wA7uwAS.js.map → environment-BEvsey6i.js.map} +1 -1
- package/dist/{errors--OqLxmWR.js → errors-BoJvrdw8.js} +4 -2
- package/dist/errors-BoJvrdw8.js.map +1 -0
- package/dist/{file-C3HGL1IM.js → file-BoD3REGB.js} +2 -2
- package/dist/{file-C3HGL1IM.js.map → file-BoD3REGB.js.map} +1 -1
- package/dist/{file-watcher-D8s0b-VT.js → file-watcher-BPFazvG_.js} +2 -2
- package/dist/{file-watcher-D8s0b-VT.js.map → file-watcher-BPFazvG_.js.map} +1 -1
- package/dist/{gateway-session-s1xr8b48.js → gateway-session-C118uACz.js} +1 -1
- package/dist/{gateway-session-OqzCMpZ9.js → gateway-session-xPFv6p5c.js} +5 -5
- package/dist/{gateway-session-OqzCMpZ9.js.map → gateway-session-xPFv6p5c.js.map} +1 -1
- package/dist/{headless-ui-DRGWDg9Z.js → headless-ui-CsmQrDIl.js} +2 -2
- package/dist/{headless-ui-DRGWDg9Z.js.map → headless-ui-CsmQrDIl.js.map} +1 -1
- package/dist/{interactive-B6OlvhSf.js → interactive-Dej-sxvR.js} +2 -2
- package/dist/{interactive-B6OlvhSf.js.map → interactive-Dej-sxvR.js.map} +1 -1
- package/dist/{mcp-BprhJJ2c.js → mcp-Cbuw_xss.js} +2 -2
- package/dist/{mcp-BprhJJ2c.js.map → mcp-Cbuw_xss.js.map} +1 -1
- package/dist/{mcp-prompt-streaming-E1d8DJcX.js → mcp-prompt-streaming-BU_kuur_.js} +5 -5
- package/dist/{mcp-prompt-streaming-E1d8DJcX.js.map → mcp-prompt-streaming-BU_kuur_.js.map} +1 -1
- package/dist/{mint-failure-C82j0RMC.js → mint-failure-BrleGqMd.js} +68 -39
- package/dist/mint-failure-BrleGqMd.js.map +1 -0
- package/dist/{non-interactive-DGT2H_n4.js → non-interactive-DcOjH2fw.js} +3 -3
- package/dist/{non-interactive-DGT2H_n4.js.map → non-interactive-DcOjH2fw.js.map} +1 -1
- package/dist/{orchestrator-tools-BBBNV1z5.js → orchestrator-tools-DXwr8Sp3.js} +4 -4
- package/dist/orchestrator-tools-DXwr8Sp3.js.map +1 -0
- package/dist/{package-manager-DU3aVif4.js → package-manager-DR23m5Jg.js} +2 -2
- package/dist/{package-manager-DU3aVif4.js.map → package-manager-DR23m5Jg.js.map} +1 -1
- package/dist/{pi-fG5fT50Y.js → pi-mY8I2XkG.js} +13 -13
- package/dist/{pi-fG5fT50Y.js.map → pi-mY8I2XkG.js.map} +1 -1
- package/dist/{playground-UFSHP-Yn.js → playground-CDUUKLkC.js} +13 -9
- package/dist/playground-CDUUKLkC.js.map +1 -0
- package/dist/{posthog-O9kKcnda.js → posthog-Hc_-9wrr.js} +2 -2
- package/dist/{posthog-O9kKcnda.js.map → posthog-Hc_-9wrr.js.map} +1 -1
- package/dist/{provisioning-B-tzjG4r.js → provisioning-xfdjhFtA.js} +3 -3
- package/dist/{provisioning-B-tzjG4r.js.map → provisioning-xfdjhFtA.js.map} +1 -1
- package/dist/{queue-tools-7Oso-fpt.js → queue-tools-C8y_xZJi.js} +8 -4
- package/dist/queue-tools-C8y_xZJi.js.map +1 -0
- package/dist/{registry-D1L5e-WQ.js → registry-DTmREJ-f.js} +5 -5
- package/dist/{registry-D1L5e-WQ.js.map → registry-DTmREJ-f.js.map} +1 -1
- package/dist/{security-n3-xdINN.js → security-Dw2oFJjP.js} +5 -5
- package/dist/{security-n3-xdINN.js.map → security-Dw2oFJjP.js.map} +1 -1
- package/dist/{setup-utils-Bj0gejEf.js → setup-utils-fjJTBhaB.js} +8 -8
- package/dist/setup-utils-fjJTBhaB.js.map +1 -0
- package/dist/{start-tui-BowrTPXm.js → start-tui-UNe2xQ0U.js} +25 -25
- package/dist/start-tui-UNe2xQ0U.js.map +1 -0
- package/dist/{steps-CpNTGu9N.js → steps-C2yqOk_h.js} +7 -7
- package/dist/{steps-CpNTGu9N.js.map → steps-C2yqOk_h.js.map} +1 -1
- package/dist/{store-CVkJKlny.js → store-Bic4Cr3L.js} +5 -32
- package/dist/store-Bic4Cr3L.js.map +1 -0
- package/dist/{subagent-SxmvfDfp.js → subagent-Dz41vV9j.js} +2 -2
- package/dist/{subagent-SxmvfDfp.js.map → subagent-Dz41vV9j.js.map} +1 -1
- package/dist/{task-nF7Ry8ff.js → task-5-fw_Vw3.js} +14 -14
- package/dist/{task-nF7Ry8ff.js.map → task-5-fw_Vw3.js.map} +1 -1
- package/dist/{task-stream-C9BLiAhz.js → task-stream-dVzl6b_q.js} +6 -6
- package/dist/{task-stream-C9BLiAhz.js.map → task-stream-dVzl6b_q.js.map} +1 -1
- package/dist/{tasks-BEEVIBcT.js → tasks-D1c2z1aw.js} +2 -2
- package/dist/{tasks-BEEVIBcT.js.map → tasks-D1c2z1aw.js.map} +1 -1
- package/dist/{telemetry-PD7bhcda.js → telemetry-BRnxBRWK.js} +3 -3
- package/dist/{telemetry-PD7bhcda.js.map → telemetry-BRnxBRWK.js.map} +1 -1
- package/dist/{terminal-NhNl-BIA.js → terminal-9bvRa4Qt.js} +38 -34
- package/dist/terminal-9bvRa4Qt.js.map +1 -0
- package/dist/{tools-BBdpgcIf.js → tools-Dp6i9k70.js} +8 -8
- package/dist/{tools-BBdpgcIf.js.map → tools-Dp6i9k70.js.map} +1 -1
- package/dist/{wizard-abort-D3YA1hXX.js → wizard-abort-CAcInAxg.js} +1 -1
- package/dist/{wizard-abort-hqHF-9xD.js → wizard-abort-lE6umflt.js} +4 -4
- package/dist/{wizard-abort-hqHF-9xD.js.map → wizard-abort-lE6umflt.js.map} +1 -1
- package/dist/{yara-hooks-BaPKsm-B.js → yara-hooks-BTNJ6MGW.js} +4 -4
- package/dist/{yara-hooks-BaPKsm-B.js.map → yara-hooks-BTNJ6MGW.js.map} +1 -1
- package/dist/yara-hooks-CFY4pGcW.js +2 -0
- package/package.json +8 -1
- package/dist/add-mcp-server-to-clients-4yHaRvOo.js.map +0 -1
- package/dist/agent-interface-DPaPdIjS.js.map +0 -1
- package/dist/agent-prompt-loader-BlhabNM2.js.map +0 -1
- package/dist/agent-runner-JFwQQj2k.js.map +0 -1
- package/dist/analytics-CcHoyhE_.js +0 -2
- package/dist/bounded-fs-FbZJ_vJ_.js.map +0 -1
- package/dist/debug-DWYDVp0B.js.map +0 -1
- package/dist/defaults-DulzMJpN.js.map +0 -1
- package/dist/errors--OqLxmWR.js.map +0 -1
- package/dist/mint-failure-C82j0RMC.js.map +0 -1
- package/dist/orchestrator-tools-BBBNV1z5.js.map +0 -1
- package/dist/playground-UFSHP-Yn.js.map +0 -1
- package/dist/queue-tools-7Oso-fpt.js.map +0 -1
- package/dist/setup-utils-Bj0gejEf.js.map +0 -1
- package/dist/start-tui-BowrTPXm.js.map +0 -1
- package/dist/store-CVkJKlny.js.map +0 -1
- package/dist/terminal-NhNl-BIA.js.map +0 -1
- package/dist/yara-hooks-CwfQuEl3.js +0 -2
package/dist/README.md
CHANGED
|
@@ -12,17 +12,18 @@ real ink render) and is driven purely by store state manipulation; a PTY parent
|
|
|
12
12
|
([`e2e-harness/tui-capture.ts`](../e2e-harness/tui-capture.ts), node-pty +
|
|
13
13
|
`@xterm/headless`) captures the real rendered screen.
|
|
14
14
|
|
|
15
|
-
| Script
|
|
16
|
-
|
|
|
17
|
-
| **`tui-host.no-jest.ts`**
|
|
18
|
-
| **`tui-snapshots.no-jest.ts`**
|
|
19
|
-
| **`wizard-ci-mcp.no-jest.ts`**
|
|
20
|
-
| **`
|
|
15
|
+
| Script | What it does | Needs |
|
|
16
|
+
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
17
|
+
| **`tui-host.no-jest.ts`** | Real TUI host: `MODE=fixed` follows a profile; `MODE=serve` accepts socket commands. | `APP_DIR`, `PROJECT_ID`, key for a full run, `SNAP_CTRL`; run under a PTY, with `CONTROL_SOCK` in serve mode |
|
|
18
|
+
| **`tui-snapshots.no-jest.ts`** | Runs the fixed host and saves colored `SNAP_OUT/NN-<screen>.ans` frames, including within-screen progress. | `SNAP_OUT`, `APP_DIR`, `PROJECT_ID`, `POSTHOG_KEY_FILE` or `POSTHOG_PERSONAL_API_KEY` |
|
|
19
|
+
| **`wizard-ci-mcp.no-jest.ts`** | Stdio MCP server: `open_app`, `read_state`, `perform_action`, `render_screen`, `run_agent`. Screen output is plain text. | Spawns the host; `open_app` requires `appDir` and `projectId`, with optional `keyFile`, `apiKey`, `region` |
|
|
20
|
+
| **`chunk-manifest.no-jest.ts`** | Prints a structural manifest of `dist/`: per chunk, the source files it contains and the chunks it imports, hash suffixes stripped. `--summary` prints chunk names plus the sorted source set. A reading tool, nothing diffs its output. | A built `dist/` |
|
|
21
|
+
| **`wizard-ci-explore.no-jest.ts`** | `pnpm wizard-ci-explore`: opens an app, confirms setup, reads state, prints one frame, and exits. It does not run the agent. | `APP_DIR`, `PROJECT_ID`; optional `POSTHOG_KEY_FILE` |
|
|
21
22
|
|
|
22
23
|
> You usually don't call these directly — `pnpm wizard-ci-snapshots` (in
|
|
23
24
|
> [wizard-workbench](https://github.com/PostHog/wizard-workbench)) orchestrates
|
|
24
|
-
> the snapshot route; the MCP server is registered in this repo's `.mcp.json`
|
|
25
|
-
> used via the `exploring-the-wizard` skill.
|
|
25
|
+
> the snapshot route; the MCP server is registered in this repo's `.mcp.json`
|
|
26
|
+
> and used via the `exploring-the-wizard` skill.
|
|
26
27
|
|
|
27
28
|
`PROGRAM`, `SNAP_HARNESS`, `SNAP_SEQUENCE`, `SNAP_MODEL`, and `E2E_ASK` are host
|
|
28
29
|
environment inputs, inherited from the launcher; they are not MCP tool
|
|
@@ -34,11 +35,11 @@ before choosing credentials or an EU project.
|
|
|
34
35
|
## Credentials for full agent runs
|
|
35
36
|
|
|
36
37
|
Full TUI host and snapshot runs require both the personal API key (or
|
|
37
|
-
`POSTHOG_KEY_FILE`) and `WIZARD_CI_GATEWAY_TOKEN_FILE`, plus `PROJECT_ID`.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
`POSTHOG_KEY_FILE`) and `WIZARD_CI_GATEWAY_TOKEN_FILE`, plus `PROJECT_ID`. For
|
|
39
|
+
MCP runs, pass the personal key through `open_app` and set the gateway token
|
|
40
|
+
file path in the server environment before launch. Restart the server after
|
|
41
|
+
changing it; the gateway path is not an MCP tool argument. Detection-only
|
|
42
|
+
exploration does not need either secret. See
|
|
42
43
|
[local credential setup](../docs/local-dev.md#credentials-for-local-ci-and-headless-runs).
|
|
43
44
|
|
|
44
45
|
## Background
|
|
@@ -46,5 +47,5 @@ Detection-only exploration does not need either secret. See
|
|
|
46
47
|
The control plane lives in [`e2e-harness/`](../e2e-harness/) — out of `src/`, so
|
|
47
48
|
none of it ships in prod. `WizardCiDriver` (read/act over the store), the
|
|
48
49
|
screen→action registry, the e2e profiles, and `tui-capture` (real-TUI PTY
|
|
49
|
-
capture). See [`ARCHITECTURE.md`](../e2e-harness/ARCHITECTURE.md) for how the
|
|
50
|
-
routes drive these (env strip, scoped project id, gotchas).
|
|
50
|
+
capture). See [`ARCHITECTURE.md`](../e2e-harness/ARCHITECTURE.md) for how the
|
|
51
|
+
two routes drive these (env strip, scoped project id, gotchas).
|