Slide for adiuvAI

This commit is contained in:
Roberto
2026-04-19 14:49:36 +02:00
parent 0ac2ce924d
commit b2989e53eb
10 changed files with 1070 additions and 11 deletions

View File

@@ -339,16 +339,16 @@ as fallback.
- None (external config via MCP).
**Tasks**
- [ ] Use `mcp__langfuse-docs__searchLangfuseDocs` to confirm the text-prompt
- [x] Use `mcp__langfuse-docs__searchLangfuseDocs` to confirm the text-prompt
variable syntax (`{{variable}}`) and that `label="production"` is the label
read by `get_prompt_or_fallback`.
- [ ] Use `mcp__langfuse__createTextPrompt` to create `home_brief` with the
- [x] Use `mcp__langfuse__createTextPrompt` to create `home_brief` with the
content from the "Improved prompts → home_brief" section above. Set label
to `production`. Variables: `language`, `today`.
- [ ] Use `mcp__langfuse__createTextPrompt` to create `project_brief` with the
- [x] Use `mcp__langfuse__createTextPrompt` to create `project_brief` with the
content from the "Improved prompts → project_brief" section above. Set label
to `production`. Variables: `language`, `today`, `project_id`.
- [ ] Use `mcp__langfuse__getPrompt` to round-trip both prompts and verify the
- [x] Use `mcp__langfuse__getPrompt` to round-trip both prompts and verify the
raw template matches what was sent.
**Acceptance**
@@ -376,16 +376,16 @@ brief agent over WS, and the `DAILY_BRIEF_PROMPT` constant is deleted.
- `adiuvAI/src/main/router/index.ts`
**Tasks**
- [ ] Add `WsBriefRequest` frame shape to shared types, mirroring the API
- [x] Add `WsBriefRequest` frame shape to shared types, mirroring the API
`WsBriefRequest` schema.
- [ ] In `backend-client.ts`, add `sendBriefRequest(mode, projectId?, callbacks, requestId?)`
- [x] In `backend-client.ts`, add `sendBriefRequest(mode, projectId?, callbacks, requestId?)`
modeled on `sendHomeRequest`. It sends `{type:"brief_request", mode, project_id}`.
- [ ] In `orchestrator.ts`:
- [x] In `orchestrator.ts`:
- Delete the `DAILY_BRIEF_PROMPT` constant (and the `langSuffix` hack — the
backend now owns language injection).
- `generateAndCacheBrief()` → call `client.sendBriefRequest("home", undefined, {...})`.
- `dailyBrief()` → call `client.sendBriefRequest("home", undefined, {...}, requestId)`.
- [ ] `router/index.ts`: no signature change — only the underlying orchestrator
- [x] `router/index.ts`: no signature change — only the underlying orchestrator
was rewired. Leave `ai.dailyBrief` mutation as-is.
**Acceptance**