Skip to content

PR-0: Bootstrap monorepo — pnpm workspaces, TypeScript tooling, CLI stub #1

@CryptoThaler

Description

@CryptoThaler

Context

CASM's architecture, Codex configuration (.codex/config.toml), agent instructions (AGENTS.md), skill definitions (skills/), and build plan (PLANS.md) are in place. The next step is to scaffold the actual monorepo runtime so Codex can begin generating implementation PRs.

Objective

Implement PR-0 from PLANS.md: bootstrap the Node/TypeScript monorepo with working tooling and a CLI entry point.

Requirements

  • pnpm-workspace.yaml at root defining workspace packages
  • - [ ] tsconfig.base.json with strict TypeScript configuration
  • - [ ] Shared types package @casm/core with RunEvent, RunState, and TemplateManifest schemas (Zod)
  • - [ ] CLI package @casm/cli using commander — stubbed commands: run, sentinel, cost, explain
  • - [ ] ESLint + Prettier configuration
  • - [ ] Vitest test runner with at least one passing test per package
  • - [ ] package.json scripts wired for the commands in .codex/config.toml:
  • - pnpm -r build
  • - pnpm -r test
  • - pnpm -r lint
  • - [ ] GitHub Actions CI workflow (.github/workflows/ci.yml) running lint + test + build on push

Acceptance Criteria

pnpm install
pnpm -r build    # compiles all packages
pnpm -r test     # all tests pass
pnpm -r lint     # no lint errors
pnpm -C packages/cli start -- --help   # prints available commands

References

  • PLANS.md — PR sequence and rollback strategy
    • AGENTS.md — repo conventions and validation commands
      • .codex/config.toml — Codex behavior and command allowlist

Labels

enhancement, PR-0, bootstrap

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions