ZdenekSrotyr
|
955b56608d
|
feat(api,web,cli): /admin/workspace-prompt + /api/welcome restored + da analyst writes CLAUDE.md
- app/api/claude_md.py: GET /api/welcome (analyst, auth required); GET/PUT/DELETE
/api/admin/workspace-prompt-template; POST …/preview; two-pass Jinja2 validation
on PUT; validation stub mirrors build_claude_md_context() shape
- app/main.py: register claude_md_router
- app/web/router.py: GET /admin/workspace-prompt → admin_workspace_prompt.html
- app/web/templates/admin_workspace_prompt.html: CodeMirror editor + live preview +
status chip + reset modal; mirrors admin_welcome.html for Agent Setup Prompt
- app/web/templates/_app_header.html: add "Agent Workspace Prompt" nav item next to
"Agent Setup Prompt"; extend _admin_active to cover /admin/workspace-prompt
- cli/commands/analyst.py: _init_claude_workspace now accepts server_url + token;
_write_claude_md fetches GET /api/welcome, writes CLAUDE.md, graceful 404/5xx;
setup command adds --no-claude-md flag to opt out; default = write CLAUDE.md
- tests: test_claude_md_api.py (16 tests); test_analyst_bootstrap.py updated with
4 new CLAUDE.md bootstrap tests; test_welcome_template_api.py: update stale
assertion about /api/welcome being removed (endpoint restored)
- tests/snapshots/openapi.json: regenerated
|
2026-05-03 22:44:14 +02:00 |
|