Skip to content

feat: add built-in TypeScript AGENTS.md template - #161

Merged
Roger-luo merged 1 commit into
mainfrom
feat/typescript-agents-template
Jun 2, 2026
Merged

feat: add built-in TypeScript AGENTS.md template#161
Roger-luo merged 1 commit into
mainfrom
feat/typescript-agents-template

Conversation

@Roger-luo

@Roger-luo Roger-luo commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds builtin:typescript template (with builtin:ts alias) — covers npm/pnpm/yarn/bun, tsc --noEmit, ESLint/Prettier, and strict-mode conventions
  • Wires ion init auto-detection: tsconfig.json (or package.json + src/index.ts) → typescript; Rust/Python/Julia still take priority on mixed projects
  • Updates the ion init workflow guide to mention tsconfig.json detection

Test plan

  • cargo fmt --all
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo nextest run -E 'test(templates::)' — 6 passed (includes templates_are_non_empty which validates the new template has # AGENTS.md)
  • cargo nextest run -E 'test(detect_typescript|detect_rust_takes)' — 3 new detection tests pass
  • Manual: ion agents init builtin:typescript in a fresh TS project produces a usable AGENTS.md
  • Manual: ion init in a project with tsconfig.json suggests the typescript template

🤖 Generated with Claude Code

Adds a `builtin:typescript` template (alias `builtin:ts`) covering
npm/pnpm/yarn/bun, tsc type-checking, ESLint/Prettier, and strict-mode
conventions. `ion init` now auto-detects TypeScript projects via
tsconfig.json (or package.json + src/index.ts).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Roger-luo
Roger-luo merged commit 723d0a5 into main Jun 2, 2026
4 checks passed
@Roger-luo
Roger-luo deleted the feat/typescript-agents-template branch June 2, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant