Task · ASM-0001

Add cross-platform cloud environment setup script

Description

Provide a committed, idempotent setup script that can be pasted or invoked from Codex Cloud and Claude Code cloud environment configuration. It must provision this SvelteKit project and Backlog.md so future agents can follow the repository task workflow and run all required validation.

Acceptance Criteria

Definition of Done

Implementation Plan

  1. Add a repository-root-aware Bash setup script with pinned pnpm and Backlog.md versions.

  2. Install dependencies from the lockfile and verify the task-tracking and SvelteKit toolchain.

  3. Exercise idempotency, lint, type-check, and production build; then finalize the Backlog task.

  4. Rename the script to scripts/cloud-environment-setup.sh, add a prominent local-agent prohibition at the top, and rerun the full validation suite.

Implementation Notes

Added the cross-platform setup script with pinned pnpm 10.28.1 and Backlog.md 1.50.1, repository discovery, frozen dependency installation, and toolchain verification.

Validated direct invocation from outside the checkout; the script found the repository and completed successfully. pnpm lint, pnpm check, and pnpm build all passed.

Renamed the entry point to scripts/cloud-environment-setup.sh and added a top-of-file instruction prohibiting local agents from executing it.

Final Summary

Added an idempotent Codex Cloud and Claude Code cloud setup script that pins pnpm and Backlog.md, installs the lockfile, discovers the checkout from any working directory, and verifies the SvelteKit toolchain. Direct invocation from /tmp, lint, svelte-check, and the Cloudflare production build all passed.

Follow-up review changes renamed the script to scripts/cloud-environment-setup.sh and added an explicit cloud-only warning for local agents. Bash syntax, lint, svelte-check, and the production build passed without executing the cloud-only setup script locally.

References

View the source file on GitHub