Skip to content

Wire native Blueprint v2 runner into consumers#3850

Draft
adamziel wants to merge 1 commit into
add/native-blueprint-v2-ts-runnerfrom
add/native-blueprint-v2-consumer-wiring
Draft

Wire native Blueprint v2 runner into consumers#3850
adamziel wants to merge 1 commit into
add/native-blueprint-v2-ts-runnerfrom
add/native-blueprint-v2-consumer-wiring

Conversation

@adamziel

Copy link
Copy Markdown
Collaborator

What it does

Stacks on #3725 and wires the native TypeScript Blueprint v2 runner into the existing consumer data flows.

Consumer Change
@wp-playground/client Replaces split v1/v2 handlers with one version-aware BlueprintsHandler that compiles before boot and uses the standard remote path.
Playground remote Keeps the v1 endpoint as the standard worker endpoint and removes the separate v2 endpoint.
Playground CLI Routes v1 and v2 Blueprints through the standard worker path while keeping compatibility worker filenames for bundlers.
Website Query API Applies query overrides to v2 declarations and boots with the version-aware client path.
Built package smoke tests Covers v2 imports and consumer-facing built package behavior.

Rationale

#3725 intentionally stops at the package-level runner. This PR is the next layer: it makes the website, client, CLI, and built-package consumers use that runner without expanding the runner PR itself.

Keeping this separate makes review easier:

PR Review surface
#3725 Blueprint v2 compiler, lowering, schema, and step semantics.
This PR Existing consumer data flows that call the runner.

Implementation

The consumer paths now call the version-aware compile/boot APIs from @wp-playground/blueprints and @wp-playground/client.

Not included: any sensitive-output redaction work or storage .git hardening. Those were intentionally left out.

Testing instructions

Validated locally on 4cf67bf8f:

npm exec nx -- run-many --target=typecheck --projects=playground-blueprints,playground-client,playground-cli,playground-remote
npm exec nx run playground-website:typecheck
npm exec nx run playground-client:test:vite -- --testFiles=packages/playground/client/src/blueprints-handler.spec.ts --testFiles=packages/playground/client/src/index.spec.ts
npm exec nx run playground-remote:test -- --testFiles=packages/playground/remote/src/lib/playground-worker-endpoint-blueprints-v1.spec.ts
npm exec nx run playground-cli:test-playground-cli -- --testFiles=packages/playground/cli/tests/blueprints-v1-handler.spec.ts --testFiles=packages/playground/cli/tests/blueprints-v2-handler.spec.ts --testFiles=packages/playground/cli/tests/worker-thread-events.spec.ts --testFiles=packages/playground/cli/tests/resolve-blueprint.spec.ts
npm exec nx run playground-website:test -- --testFiles=packages/playground/website/src/lib/state/url/resolve-blueprint-from-url.spec.ts
npm run format:uncommitted
git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant