Commit d7cc7c4
authored
feat: add category management(add, edit, remove) (#44)
* feat: add category subcommands (list/add/edit/remove)
- Refactor sym category to parent command with subcommands
- Add sym category list (moved from sym category)
- Add sym category add <name> <description>
- Add sym category edit <name> --name/--description
- Add sym category remove <name> (blocked if rules reference it)
* feat: add MCP tools for category management
- add_category: add new category with name and description
- edit_category: edit category name/description, updates rule refs
- remove_category: remove category (blocked if rules reference it)
* test: add MCP category management tests
- TestAddCategory: success, duplicate, empty name/description
- TestEditCategory: description update, rename with rule refs, conflicts
- TestRemoveCategory: unused category, rules blocking, not found
* feat: add dashboard API endpoints for category management
- GET /api/categories: list all categories
- POST /api/categories: add new category
- PUT /api/categories/{name}: edit category
- DELETE /api/categories/{name}: remove category (blocked if used)
* feat: add category management UI to dashboard
* fix: move category UI to Global Settings and fix input sizing
* fix: preserve categories when applying template
* feat: auto-add missing categories when applying template
* feat: include category description in LLM routing prompt
* fix: correct jsonschema tag format for MCP category tools
* feat: add batch operations for category management
- MCP tools: batch-only mode (categories[], edits[], names[])
- CLI commands: single + batch mode with --file flag
- Partial failure handling with success/fail reporting
* feat: simplify template category handling
- Add category array to template files (node, python, go)
- Overwrite categories when applying template (remove merge logic)
- Fix LLM provider message in convert dialog
* refactor: improve directory change handling in tests and clean up unused code1 parent eeaf88c commit d7cc7c4
10 files changed
Lines changed: 1747 additions & 20 deletions
File tree
- internal
- cmd
- converter
- mcp
- policy/templates
- server
- static
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
304 | 310 | | |
305 | 311 | | |
306 | 312 | | |
| |||
322 | 328 | | |
323 | 329 | | |
324 | 330 | | |
325 | | - | |
| 331 | + | |
326 | 332 | | |
327 | 333 | | |
328 | 334 | | |
| |||
334 | 340 | | |
335 | 341 | | |
336 | 342 | | |
337 | | - | |
| 343 | + | |
338 | 344 | | |
339 | 345 | | |
340 | 346 | | |
| |||
351 | 357 | | |
352 | 358 | | |
353 | 359 | | |
354 | | - | |
| 360 | + | |
355 | 361 | | |
356 | 362 | | |
357 | 363 | | |
| |||
398 | 404 | | |
399 | 405 | | |
400 | 406 | | |
401 | | - | |
| 407 | + | |
402 | 408 | | |
403 | 409 | | |
404 | 410 | | |
| |||
465 | 471 | | |
466 | 472 | | |
467 | 473 | | |
468 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
469 | 479 | | |
470 | 480 | | |
471 | 481 | | |
| |||
0 commit comments