Task · PND-0002

Add cloud environment setup script

Description

Provide a repository-owned manual setup script for Codex Cloud Tasks and Claude Code cloud environments. It must provision the Node/pnpm toolchain, project dependencies, Backlog.md CLI, and browser/testing dependencies needed by future agents.

Acceptance Criteria

Definition of Done

Implementation Plan

  1. Add a fail-fast, idempotent Bash script that detects the repository root and provisions Node.js 24 across the Codex and Claude Ubuntu images.

  2. Activate the lockfile-declared pnpm version, install Backlog.md and frozen project dependencies, and install Playwright Chromium system/browser dependencies.

  3. Validate shell syntax, formatting, lint, type-check, unit tests, and the full build; then finalize and commit the task.

Implementation Notes

Implemented the cloud-only setup script with a portable Node.js 24 installer, pinned global pnpm and Backlog.md CLIs, frozen dependency installation, and Playwright Chromium plus Ubuntu dependency installation.

Validation found two unrelated repository baseline issues: Prettier reports five existing/generated Markdown or YAML files, and the existing bounded AI inbox detail test consistently exceeds its 5-second timeout. Lint, type-check, build, script syntax, archive discovery, and diff checks pass.

Final Summary

Added an executable, idempotent cloud-only provisioning script for Codex and Claude Code that installs Node.js 24, pnpm 11.18.0, Backlog.md 1.50.1, frozen workspace dependencies, and Playwright Chromium dependencies. Verified its contract and Bash syntax, plus repository lint, type-check, and build; documented unrelated baseline format and unit-test failures.

References

View the source file on GitHub