This commit is contained in:
Marek Lenczewski
2026-04-18 07:41:09 +02:00
parent 18fc50c75b
commit bf6f5456d6
63 changed files with 288 additions and 21 deletions

View File

@@ -0,0 +1,7 @@
- ai_admin
- admin chat turns prompts or JSON bulk input into proposal cards; AI never executes directly
- routes: POST /ai/admin/plan, POST /ai/admin/execute (admin-only)
- cards carry tool name, args, missing fields (editable in UI), preview text
- execute validates args against tool JSON-schema, runs the tool, writes an audit-log entry
- depends on: core, auth, catalog, orders, ai_core
- room for growth: more tools (mail templates, bulk import, category mutation), undo history, approval levels, per-tool permissions, dry-run mode

View File

@@ -0,0 +1,4 @@
- __init__.py (router, on_load)
- planner.py (prompt/JSON → list of action cards)
- tool_defs.py (JSON-schema per tool for argument validation)
- manifest.yaml