Skip to content

Commit 6e88d7d

Browse files
gewenyu99claude
andcommitted
chore(scripts): remove demo/proof scaffolding from the PR
Drop the three scripts that were scaffolding while building, not part of the shipped feature: - ci-driver-demo.ts offline no-agent control-loop demo (covered by tests) - ci-driver-live-agent.ts manual LLM-drives-MCP proof (needs a key) - record-demo.no-jest.ts offline sample-recording generator (real --e2e records) Keep the three the workbench actually orchestrates: e2e-full-run, render-snapshots, replay-e2e. Update scripts/README.md + ARCHITECTURE.md accordingly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent cb439ff commit 6e88d7d

5 files changed

Lines changed: 15 additions & 416 deletions

File tree

e2e-harness/ARCHITECTURE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ store/router changes (a route, a task-list update, a status line, a runPhase
9797
change, an overlay). Replay reconstructs each frame's store and renders the real
9898
Ink screen back to the terminal, so a run can be watched back to verify it:
9999

100+
A real `--e2e` run drops a recording at `/tmp/wizard-e2e-<app>.recording.json`.
101+
100102
```bash
101-
npx tsx scripts/record-demo.no-jest.ts # sample, offline
102103
npx tsx scripts/replay-e2e.no-jest.ts <recording.json> --step # Enter ▸ step
103104
npx tsx scripts/replay-e2e.no-jest.ts <recording.json> --delay 1200 # auto-play
104105
```

scripts/README.md

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,22 @@
22

33
Helper scripts. The build-related ones (`generate-version.cjs`,
44
`smoke-test*.sh`, `check-screens.tsx`) are wired into `package.json`. The rest
5-
below are **manual, runnable tools** for the `wizard-ci-tools` control plane and
6-
e2e — each is a standalone `tsx` entry, named `*.no-jest.ts` so Jest ignores it.
5+
below are **manual, runnable tools** for headless e2e + snapshots — each is a
6+
standalone `tsx` entry, named `*.no-jest.ts` so Jest ignores it.
77

88
Run from the repo root, e.g. `npx tsx scripts/<name>.no-jest.ts`.
99

10-
## Control-plane e2e (drive the wizard headlessly via wizard-ci-tools)
11-
12-
| Script | What it does | Needs |
13-
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------- |
14-
| **`ci-driver-demo.ts`** | Drives the real store/router/detection flow with `WizardCiDriver`**offline, agent stubbed**. Proves the control loop on a 1-file project. | nothing |
15-
| **`e2e-full-run.no-jest.ts`** | The full headless e2e: real `WizardStore` + `InkUI` (never rendered) + concurrent driver + **real `runAgent`** against prod cloud. Emits a structured result (`E2E_RESULT_JSON`) and a recording (`E2E_RECORDING_JSON`). | `POSTHOG_PERSONAL_API_KEY`, `APP_DIR`, `PROJECT_ID`; host `CLAUDE_*` env stripped |
16-
| **`ci-driver-live-agent.ts`** | A **real gateway LLM** drives the `wizard-ci-tools` MCP server (read_state / perform_action) to advance the wizard — agent-vs-agent proof. | `PHX_KEY_FILE` |
17-
18-
> Normally you don't call these directly — `pnpm wizard-ci <app> --e2e` (in
19-
> [wizard-workbench](https://github.com/PostHog/wizard-workbench)) orchestrates
20-
> `e2e-full-run` with the env hygiene + assertions.
21-
22-
## Record & replay (view a run back in the terminal)
23-
24-
| Script | What it does | Needs |
25-
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
26-
| **`record-demo.no-jest.ts`** | Produces a sample recording **offline** (no agent, no network) by driving the flow with a `WizardRecorder`. Writes `/tmp/wizard-demo.recording.json` (override with `RECORDING_OUT`). | nothing |
27-
| **`replay-e2e.no-jest.ts`** | Replays a recording in the terminal — reconstructs each frame's store and renders the **real Ink screen**. `--step` (Enter to advance, default) or `--delay <ms>` (auto-play). | a `*.recording.json` |
28-
29-
```bash
30-
# make a sample recording, then watch it
31-
npx tsx scripts/record-demo.no-jest.ts
32-
npx tsx scripts/replay-e2e.no-jest.ts /tmp/wizard-demo.recording.json --step
33-
```
34-
35-
Real `--e2e` runs also drop a recording at
36-
`/tmp/wizard-e2e-<app>.recording.json`.
10+
| Script | What it does | Needs |
11+
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
12+
| **`e2e-full-run.no-jest.ts`** | The full headless e2e: real `WizardStore` + `InkUI` (never rendered) + concurrent driver + **real `runAgent`** against prod cloud. Emits a structured result + a recording. | `POSTHOG_PERSONAL_API_KEY`, `APP_DIR`, `PROJECT_ID`; host `CLAUDE_*` env stripped |
13+
| **`render-snapshots.no-jest.ts`** | Renders a recording's key-moment frames to per-frame `.ans` snapshots (real Ink → ANSI). Feeds the workbench visual-regression flow. | a `recording.json` + outDir |
14+
| **`replay-e2e.no-jest.ts`** | Replays a recording in the terminal — reconstructs each frame's store and renders the **real Ink screen**. `--step` (Enter to advance) or `--delay <ms>` (auto-play). | a `recording.json` |
15+
16+
> You usually don't call these directly — `pnpm wizard-ci <app> --e2e` and
17+
> `pnpm wizard-ci-snapshots` (in
18+
> [wizard-workbench](https://github.com/PostHog/wizard-workbench)) orchestrate
19+
> them with the env hygiene + assertions. A real `--e2e` run drops a recording
20+
> at `/tmp/wizard-e2e-<app>.recording.json`.
3721
3822
## Background
3923

scripts/ci-driver-demo.ts

Lines changed: 0 additions & 138 deletions
This file was deleted.

scripts/ci-driver-live-agent.ts

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)