- This document targets autonomous coding agents. Humans should refer to
README.mdfor onboarding. - Agents must follow the Listee org conventions observed in sibling repos (
listee-libs,listee-ci) and keep changes minimal and well-justified.
- Source of truth:
src/index.tswires Commander,src/commands/hosts CLI handlers, andsrc/services/stores Listee API-facing logic. Tests will expand undertests/. - Keep generated output in
dist/(never commit). Respect any existing files—do not alter unrelated modules. - When referencing other org repos, treat them as read-only unless explicitly instructed.
- Use Bun
1.2.22. Verify withbun --versionif unsure. - Core commands:
bun install— install deps; do not swap package manager.bun run build— compile TypeScript todist/.bun run dev— rebuild and executenode dist/index.jsfor smoke tests.bun run lint— run Biome in CI mode; resolve all diagnostics.bun test— execute Bun tests; prefer running before submitting edits touching logic.
- TypeScript strict mode: forbid
any,asassertions, and implicitany. Implement type guards when narrowing is required. - Indentation is two spaces, LF line endings,
kebab-casefilenames for modules,camelCasefor identifiers. Maintain ASCII unless the file already uses Unicode. - Keep comments purposeful; avoid restating the obvious. Add brief context only for non-trivial flows (e.g., token refresh sequencing).
- Read
LISTEE_API_URLfrom environment variables or.env; never hardcode endpoints or secrets. - Keytar service name defaults to
listee-cli. If a feature demands overrides, surface them via env vars or CLI flags.
- Before writing, inspect existing diffs (
git status) and leave unrelated changes untouched. - Prefer
rgfor searches; avoid heavy globalfindorgrepunless necessary. - After modifications, validate with relevant commands (lint, tests). Summarize outcomes in the agent response.
- Do not request elevated permissions without clear justification; log attempts and fallback plans.
- Respond in Japanese, unless future instructions override.
- Provide concise summaries of changes, list affected files using inline code paths, and suggest next steps when appropriate.
- Highlight assumptions, cite verification commands, and flag any blockers (e.g., missing env vars).