Register brain data layer as LLM-callable tools in Pi SDK agent
sessions. Agents can now query/create/update projects, tasks,
missions, and conversations through tool calls.
- 7 brain tools: list/get projects, list/create/update tasks,
list missions, list conversations
- Tools registered via customTools in createAgentSession()
- Uses TypeBox schemas for parameter validation
Closes#22
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pi SDK is ESM-only. tsx (esbuild) doesn't emit decorator metadata,
so NestJS constructor injection fails without explicit @Inject().
- Set "type": "module" in gateway package.json
- Switch tsconfig to NodeNext module resolution
- Add @Inject(AgentService) to ChatController and ChatGateway
Tested end-to-end: REST /api/chat → Pi SDK → Anthropic → response OK.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>