From 395f91d79426f08279ec91fbca7c4459cb94e113 Mon Sep 17 00:00:00 2001 From: prosdev Date: Tue, 31 Mar 2026 10:59:37 -0700 Subject: [PATCH] chore: add changeset and release notes for AST pattern analysis (v0.10.5) Co-Authored-By: Claude Opus 4.6 (1M context) --- .changeset/ast-pattern-analysis.md | 10 ++++++++++ .claude/scratchpad.md | 4 ++++ website/content/latest-version.ts | 8 ++++---- website/content/updates/index.mdx | 15 +++++++++++++++ 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .changeset/ast-pattern-analysis.md diff --git a/.changeset/ast-pattern-analysis.md b/.changeset/ast-pattern-analysis.md new file mode 100644 index 0000000..7be319a --- /dev/null +++ b/.changeset/ast-pattern-analysis.md @@ -0,0 +1,10 @@ +--- +'@prosdevlab/dev-agent': patch +--- + +AST-based pattern analysis via tree-sitter queries + +- `dev_patterns` now uses tree-sitter AST queries for more accurate detection of error handling (try/catch, promise.catch, error classes), import style (dynamic imports, precise require), and type coverage (arrow function return types) +- Bundles tree-sitter grammars for TypeScript, TSX, JavaScript — covers the full JS/TS ecosystem +- Regex fallback preserved for unsupported file types (.go, .md, etc.) +- 12 verified S-expression queries with 51 tests (exact match counts, negative cases, edge cases) diff --git a/.claude/scratchpad.md b/.claude/scratchpad.md index e0cc770..b00ea8f 100644 --- a/.claude/scratchpad.md +++ b/.claude/scratchpad.md @@ -17,6 +17,10 @@ - Vue/Svelte SFC support — `.vue`/`.svelte` files have embedded `