From bfd24b0650d7fe9c144d811b7b8c07a6b27a5cc1 Mon Sep 17 00:00:00 2001 From: Wesley Chen Date: Thu, 30 Jul 2026 00:20:31 -0700 Subject: [PATCH] docs: fix stale counts in AGENTS.md The Testing bullet said 6 test files / ~40 test cases (actual today: 127 files, ~1,470 cases) and the Available Widgets list names about 25 of the 85 registered widget types. Rather than updating the numbers and letting them drift again, drop the hardcoded counts and point at the code: - Testing: describe test layout instead of counting files - Available Widgets: mark the list as highlights and point to src/utils/widget-manifest.ts for the full, current list Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_019YuAUKeC6FjaSczoPWQkuP --- AGENTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 663d9c0f..5de11e61 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -98,7 +98,7 @@ All widgets must implement: - `getAllWidgetTypes()`: Returns all available widget types - `isKnownWidgetType()`: Validates if a type is registered -**Available Widgets:** +**Available Widgets** (highlights — the full, current list lives in `src/utils/widget-manifest.ts`): - Model, Version, OutputStyle, VoiceStatus - Claude Code metadata display - GitBranch, GitChanges, GitInsertions, GitDeletions, GitWorktree - Git repository status - TokensInput, TokensOutput, TokensCached, TokensTotal - Token usage metrics @@ -141,7 +141,7 @@ Default to using Bun instead of Node.js: - **Dependencies**: All runtime dependencies are bundled using `--packages=external` for npm package - **Type checking and linting**: Run checks via `bun run lint` and use `bun run lint:fix` only when you intentionally want ESLint auto-fixes. Never use `npx eslint`, `eslint`, `tsx`, `bun tsc`, or any other variation directly - **Lint rules**: Never disable a lint rule via a comment, no matter how benign the lint warning or error may seem -- **Testing**: Uses Vitest (via Bun) with 6 test files and ~40 test cases covering: +- **Testing**: Uses Vitest (via Bun); tests live in `__tests__/` directories alongside the code they cover, including: - Model context detection and token calculation (src/utils/__tests__/model-context.test.ts) - Context percentage calculations (src/utils/__tests__/context-percentage.test.ts) - JSONL transcript parsing (src/utils/__tests__/jsonl.test.ts)