Repository navigation
Non-interactive flags, deploy verifier, CI, and end-to-end deploy test - #2
Merged
Merged
Conversation
…unity files Every prompt now has a flag, so --yes with both AnyCable URLs runs the whole scaffold without input. That is what lets CI run the CLI for real and lets agents use it. verify-slide-quiz checks a deployed site end to end: audience page, both functions, and a broadcast round trip over the WebSocket. Running it against a real Vercel deploy of a scaffolded Slidev deck found that the Vercel functions never worked in an ESM project (fixed in slide-quiz). Also: writes vercel.json for Slidev on Vercel, writes _redirects itself, installs valibot explicitly, skips the functions' package.json when copying, copies the slide-quiz agent skills into .claude/skills/. Claude-Session: https://claude.ai/code/session_01M5WF6o6qv7AJEpGPYZ2b2x
…URLs - with URLs from flags but no --yes, choosing "Change AnyCable URLs" at the review looped forever because the prompt stayed skipped - --yes now skips the deploy step and prints the command, so it never blocks on a confirm or pushes to production on its own - e2e workflow: rely on NETLIFY_SITE_ID from the environment instead of --site flags Claude-Session: https://claude.ai/code/session_01M5WF6o6qv7AJEpGPYZ2b2x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Companion to anycable/slide-quiz#2. Makes the scaffolder testable for real and open to contributions.
Non-interactive mode. Every prompt has a flag (
--platform,--framework,--ws-url,--broadcast-url,--no-deploy,--skills/--no-skills,--yes,--help). With--yesand both URLs the CLI runs without input, which CI and AI agents need.verify-slide-quizbin. Checks a deployed site without a browser: audience page served, both functions answer, and a POST to each produces a broadcast that arrives back over the AnyCable WebSocket. Each failure names the likely cause.Real deploy test. Ran the CLI against a bare Slidev deck, deployed to Vercel, and verified. It failed twice, for reasons no unit test could see:
./sharedimport has no extension and Node's ESM resolver rejects it in a"type": "module"project (every Slidev deck)(req, res)handler, so every request timed outBoth fixed in slide-quiz#2. After the fixes, all nine checks pass on Vercel and on Netlify against the public demo.
Scaffolding fixes
vercel.jsonfor Slidev on Vercel (without it Vercel serves the source tree)public/_redirectsitself instead of copying it from the addon, which stops shipping that filevalibotexplicitly, since the functions import itpackage.jsonthat sits next to the function sources.claude/skills/(asked, or implied by--yes)CI
ANYCABLE_WS_URL,ANYCABLE_BROADCAST_URL,VERCEL_TOKEN,NETLIFY_AUTH_TOKEN,NETLIFY_SITE_IDCommunity files. CONTRIBUTING, SECURITY, CHANGELOG, bug report template (routes runtime problems to slide-quiz), PR template.
How to verify
npm test(53 tests)node index.mjs --helpnode scripts/verify-deploy.mjs --site https://slide-quiz-demo.netlify.app --platform netlifyNotes
e2e-vercelin the maintainer's account; it can be deleted or kept as the target for the workflow.