Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 2.06 KB

File metadata and controls

55 lines (38 loc) · 2.06 KB

Agent guide — altertable-cli

Executor-oriented router for agents working in this repository. User-facing docs live in README.md.

What this repo is

Altertable CLI — a TypeScript/Bun command-line tool for querying and managing the Altertable data platform. Source lives in cli/; black-box Bun tests in tests/; API specs in the specs/ git submodule.

Where to work

Path When to edit
cli/src/ CLI commands, HTTP clients, formatting, config
cli/tests/ Bun unit tests for CLI logic
tests/ Black-box end-user CLI tests run through bin/altertable
specs/ Client API specs (submodule — read-only from this repo)
bin/altertable Dev launcher — do not edit

Start here

git submodule update --init --recursive   # first checkout only
./scripts/verify.sh --quick               # focused CLI changes, including coverage
./scripts/verify.sh                         # full gate before PR (mirrors CI minus native compile)
./scripts/verify.sh --integration         # lakehouse HTTP paths (mock at :15000)

Use --quick while iterating on TypeScript. Run default ./scripts/verify.sh before opening a PR.

Deep guides

Do not edit

  • bin/altertable — thin launcher (exec bun run cli/src/cli.ts)
  • cli/src/generated/** — run cd cli && bun run generate after OpenAPI changes
  • cli/dist/** — build output
  • Secrets, credentials, or .env files

Submodule

Initialize before first verify or spec work:

git submodule update --init --recursive

Plans

When completing an advisor plan from plans/, update its status row in plans/README.md to DONE.