diff --git a/drawing-board/README.md b/drawing-board/README.md index 5890fde..bdc07f1 100644 --- a/drawing-board/README.md +++ b/drawing-board/README.md @@ -428,8 +428,9 @@ current direct-journey acceptance steps and every explicitly unfinished step; do until those steps are observed. The workshop scope is the README's loop: Codespace, sign-in, installed Skill, approved root Compile, boot, -private-repository publication, command-line deploy to Render and Neon, Revyl phone previews, and ordinary source -iteration saved to the same repository. A separate Plan web editor, +private-repository publication, the first deploy in `DEPLOY.md` through Render's dashboard Blueprint and a Neon +database (command-line deploy stays optional), Revyl phone previews, and ordinary source iteration saved to the same +repository. A separate Plan web editor, public plugin promotion, and completion of all realization gaps are not prerequisites. The existing web surface supplies access and credentials; an explorable read-only Plan view can improve independently. diff --git a/drawing-board/script/agent-smoke b/drawing-board/script/agent-smoke index 4e24209..4dabc00 100755 --- a/drawing-board/script/agent-smoke +++ b/drawing-board/script/agent-smoke @@ -26,8 +26,20 @@ if command -v firstdraft >/dev/null; then echo "A firstdraft command is on the plain PATH; nothing but the plugin may install the CLI." >&2 exit 1 fi -compile_help="$(bash "$HOME/.workshop/firstdraft.sh" plan compile --help)" -grep -F -- "--output" <<<"$compile_help" >/dev/null + +# The Board's AGENTS.md compiles into ./application with --output and reviewed Screens with --revision. Each agent +# runs the CLI bundled in its own copy of the plugin, so each copy must offer both. +require_compile_options() { + local option + for option in --output --revision; do + if ! grep -Fq -- "$option" <<<"$2"; then + echo "$1's installed First Draft CLI lacks plan compile $option, which the Board's AGENTS.md uses." >&2 + exit 1 + fi + done +} +claude_compile_help="$(bash "$HOME/.workshop/firstdraft.sh" plan compile --help)" +require_compile_options Claude "$claude_compile_help" # Claude Code updates a third-party catalog's plugins only when its settings entry turns autoUpdate on. jq -e '.extraKnownMarketplaces["firstdraft-skills"].autoUpdate == true' \ @@ -36,7 +48,7 @@ jq -e '.extraKnownMarketplaces["firstdraft-skills"].autoUpdate == true' \ # Each agent discovers the plugin's Skill from its own installed copy, without a sign-in or model turn. claude plugin details firstdraft@firstdraft-skills | grep -E '^ *Skills \([0-9]+\) +(.*, )?create-full-stack-app(,|$)' >/dev/null -codex debug prompt-input "Describe the available First Draft Skills." | node -e ' +codex_skill="$(codex debug prompt-input "Describe the available First Draft Skills." | node -e ' const input = JSON.parse(require("node:fs").readFileSync(0, "utf8")); const text = input.flatMap((item) => item.content ?? []).map((content) => content.text ?? "").join("\n"); const roots = new Map([...text.matchAll(/^- `(r\d+)` = `([^`]+)`$/gm)].map((match) => [match[1], match[2]])); @@ -50,7 +62,10 @@ codex debug prompt-input "Describe the available First Draft Skills." | node -e console.error("Codex must list firstdraft:create-full-stack-app once, from the installed plugin: " + (file || "missing")); process.exit(1); } - console.log("Codex Skill: firstdraft:create-full-stack-app from " + file); -' + process.stdout.write(file); +')" +echo "Codex Skill: firstdraft:create-full-stack-app from $codex_skill" +codex_compile_help="$(sh "$(dirname "$codex_skill")/scripts/firstdraft.sh" plan compile --help)" +require_compile_options Codex "$codex_compile_help" echo "Agent installation smoke passed (no sign-in or model turn)." diff --git a/drawing-board/script/check b/drawing-board/script/check index 2d71e2d..10e3006 100755 --- a/drawing-board/script/check +++ b/drawing-board/script/check @@ -121,6 +121,7 @@ const fs = require("node:fs"); const configuration = JSON.parse(fs.readFileSync(".devcontainer/devcontainer.json", "utf8")); const compose = fs.readFileSync(".devcontainer/compose.yaml", "utf8"); const dockerfile = fs.readFileSync(process.env.DRAWING_BOARD_CHECKS + "/../image/Dockerfile", "utf8"); +const imageConfiguration = JSON.parse(fs.readFileSync(process.env.DRAWING_BOARD_CHECKS + "/../image/.devcontainer.json", "utf8")); const imageReceipt = JSON.parse(fs.readFileSync(process.env.DRAWING_BOARD_CHECKS + "/../image/receipt.json", "utf8")); const required = (condition, message) => { if (!condition) { @@ -152,6 +153,7 @@ required(!/^\s{6}selenium:\s*$/m.test(compose.split(" selenium:")[0]), "Seleniu required(compose.includes("selenium/standalone-chromium:4.47.0-20260808@sha256:1d3d834a2ce93f26cc0d0ae3c61abd189755b32649f5c356c6c5cf9502aa397e"), "Selenium must use the reviewed release and image digest."); required(!compose.split(" selenium:")[1].split(" postgres:")[0].includes("restart:"), "Selenium must remain stopped after a workspace restart until requested again."); required(dockerfile.includes("ARG RUBY_VERSION=4.0.10"), "The Drawing Board Ruby image must match generated Foundations."); +required(imageConfiguration.features?.["ghcr.io/devcontainers/features/node:1"]?.version === "24.18.0", "The Drawing Board Node image must match generated Foundations."); required(dockerfile.includes("ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION@sha256:e2833c30003e96c81b35c7eefa48bc34f50f4002790d76ffae5e80f33348b34f"), "Use the reviewed Rails Dev Container image digest."); required(!dockerfile.includes("apt-get install") && !dockerfile.includes("openssh-server"), "OpenSSH lifecycle must remain owned by the maintained sshd Feature."); required(!dockerfile.includes("ENTRYPOINT"), "The Dockerfile must not replace the maintained Feature entrypoint chain."); diff --git a/drawing-board/script/devcontainer-image-smoke b/drawing-board/script/devcontainer-image-smoke index b867b6c..b3d3351 100755 --- a/drawing-board/script/devcontainer-image-smoke +++ b/drawing-board/script/devcontainer-image-smoke @@ -161,6 +161,14 @@ ruby_version="$(docker exec "${container}" ruby -e 'print RUBY_VERSION')" } echo "Ruby ${ruby_version} passed." +expected_node="$(node -p 'require(process.argv[1]).features["ghcr.io/devcontainers/features/node:1"].version' "${repo_root}/../image/.devcontainer.json")" +node_version="$(docker exec "${container}" node --version)" +[[ -n "${expected_node}" && "${node_version}" == "v${expected_node}" ]] || { + echo "The published image uses Node ${node_version}, expected v${expected_node} from its configuration." >&2 + exit 1 +} +echo "Node ${node_version} passed." + psql_version="$(docker exec "${container}" psql --version)" pg_dump_version="$(docker exec "${container}" pg_dump --version)" printf '%s\n%s\n' "${psql_version}" "${pg_dump_version}"