Skip to content

feat: query template layering with category-based filtering - #7

Merged
codeasier merged 1 commit into
mainfrom
20260412/query-template-layering
Apr 12, 2026
Merged

codeasier merged 1 commit into
mainfrom
20260412/query-template-layering

Conversation

@codeasier

Copy link
Copy Markdown
Owner

📝 Description

  • Rename 7 YAML query templates to remove _v2 suffix
  • Add category metadata (basic/statistical/business) to each template
  • Extend QueryTemplate model with category: str = "basic" field
  • Add list_by_category() / list_by_category_with_details() methods to QueryRegistry
  • CLI --list output grouped by category instead of flat list
  • CLI new --category parameter filters templates by category
  • Update README, README_zh, and Agent quickstart docs
  • Add 12 new test cases for category functionality (total 191 tests passing)

🔗 Related Issue

Fixes #6

🧪 Testing

  • Tests added/updated
  • Manual testing completed

✅ Checklist

  • Code follows project guidelines
  • Documentation updated (if applicable)
  • No new warnings introduced
  • Changes tested locally

📸 Screenshots (if applicable)

📋 Additional Notes

This is a breaking change — old template names (*_v2) are removed without backward-compatible aliases. All documentation and examples have been updated to use new names.

Category breakdown:

  • Basic (4): active_blocks, blocks_by_size, events_by_action, memory_timeline
  • Statistical (2): callstack_analysis, memory_summary
  • Business (1): leak_detection

@codeasier
codeasier force-pushed the 20260412/query-template-layering branch from 3741f0b to 7255790 Compare April 12, 2026 08:20
- Rename 7 YAML templates to remove _v2 suffix
- Add category metadata (basic/statistical/business) to each template
- Extend QueryTemplate model with category field
- Add list_by_category() / list_by_category_with_details() to registry
- CLI --list outputs grouped by category
- CLI --category parameter filters templates by category
- Update README, README_zh, and Agent docs
- Add 12 new test cases for category functionality
@codeasier
codeasier force-pushed the 20260412/query-template-layering branch from 7255790 to 6397562 Compare April 12, 2026 08:25
@codeasier
codeasier merged commit 20247af into main Apr 12, 2026
5 checks passed
@codeasier
codeasier deleted the 20260412/query-template-layering branch April 17, 2026 13:30
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.

[FEATURE] Query 模板分层 — 分类体系与 CLI 分组展示

1 participant