Spaces:
Running

Ashraf Al-Kassem Claude Opus 4.6 commited on
Commit
a5f93e1
·
1 Parent(s): fc6fc7e

feat: Mission 29 — Prompt Studio Enhancements + Auth Fixes + User Seeding

Browse files

Mission 29: Knowledge chunking (DOCX/XLSX support, keyword retrieval),
dynamic qualification criteria (relational CRUD), AI step output schema,
and prompt compiler integration for all three.

Auth fixes: seed demo + admin users on startup, fix Google OAuth
email_verified_at bug, fix admin-api.ts 403 logout, comprehensive
auth test suite (19 tests covering studio + admin flows).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

20 files changed +1895 -45
Files changed (20)
backend/alembic/versions/i9j0k1l2m3n4_mission_29_knowledge_chunks_qualification.pyAdded+59
backend/app/api/v1/auth.py+5-1
backend/app/api/v1/knowledge.py+51-2
backend/app/api/v1/qualification_criteria.pyAdded+223
backend/app/api/v1/test_chat.py+5-2
backend/app/core/seed.py+76-2
backend/app/domain/runtime.py+20-12
backend/app/models/models.py+30
backend/app/services/knowledge_chunker.pyAdded+188
backend/app/services/prompt_compiler.py+72-20
backend/main.py+4-1
backend/requirements.txt+2
backend/scripts/create_test_user.py+68-1
backend/tests/test_auth_comprehensive.pyAdded+294
backend/tests/test_knowledge_chunks.pyAdded+195
backend/tests/test_prompt_compile_enhanced.pyAdded+206
backend/tests/test_qualification_criteria.pyAdded+201
frontend/src/app/(dashboard)/automations/[id]/NodeConfigPanel.tsx+40
frontend/src/app/(dashboard)/prompt-studio/page.tsx+144-3
frontend/src/lib/admin-api.ts+12-1