[Phase 2] Backend Agent: Hono server + Pi Agent + RAG tools + WebSocket #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement the backend server and Pi Agent integration.
Acceptance Criteria
backend/src/config.ts— loadsconfig.yamlwith env var interpolationbackend/src/vectordb.ts— LanceDB Node.js client for hybrid searchbackend/src/tools.ts—dnd_rules_searchtool,roll_dicetoolbackend/src/prompts.ts— Reference mode, DM mode, and OOC handler promptsbackend/src/agent.ts— Agent factory withtransformContextRAG injectionbackend/src/ws.ts— WebSocket handler streaming agent eventsbackend/src/index.ts— Hono server with REST + WS endpointsbackend/src/routes/api.ts— REST endpoints for search, dice, configshared/src/types.ts— shared types (messages, config schema)shared/src/dice.ts— dice notation parser (XdY+Z, kh/kl, etc.)Files to Create/Modify
backend/src/*.tsshared/src/*.tsbackend/package.json(update deps as needed)See
project.mdsections 3, 5, 6, 7, 12 for full spec.