YAS/apps/api/package.json
YetAnotherSuite Dev 0afbae8944 feat: Phase 4 AI intelligence — writing assistant, semantic search, knowledge graph
Phase 4.1: AI Writing Assistant
- GPT-4o integration with OpenAI API (fallback to local parsing)
- Six AI actions: summarize, expand, rewrite, extract actions,
  suggest links, smart schedule
- TipTap inline AI assistant panel with streaming-ready architecture
- Apply/dismiss UI for AI suggestions
- Rewrite style selector (concise, formal, simpler, detailed)

Phase 4.2: Natural Language Input
- /api/v1/natural-language endpoint for parsing unstructured text
- AI-powered extraction of type, title, date, priority, participants
- Local regex fallback when no API key configured
- Priority parsing (!1-5) and date detection (tomorrow, next week)

Phase 4.3: Knowledge Graph
- D3.js-ready graph visualization container
- Zoom in/out/fit controls
- Placeholder state with guidance for content creation
- Data model for nodes, links, and groups

Phase 4.4: Semantic Search Infrastructure
- Unified search bar with debounced input (300ms)
- Type-based result icons (note, task, event)
- Search result display with title and content preview
- pgvector and embedding pipeline data model in schema
2026-07-20 22:22:54 +02:00

45 lines
1.2 KiB
JSON

{
"name": "@yetanother/api",
"private": true,
"type": "module",
"scripts": {
"dev": "tsx watch src/main.ts",
"build": "tsc",
"start": "node dist/main.js",
"lint": "eslint src/",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"clean": "rm -rf .turbo node_modules dist"
},
"dependencies": {
"fastify": "^5.3.0",
"@fastify/cors": "^11.0.0",
"@fastify/rate-limit": "^10.2.0",
"@fastify/helmet": "^13.0.0",
"@fastify/swagger": "^9.5.0",
"@fastify/swagger-ui": "^5.2.0",
"@fastify/websocket": "^11.0.0",
"@fastify/redis": "^7.0.0",
"@fastify/jwt": "^9.0.0",
"@fastify/cookie": "^11.0.0",
"pino": "^9.6.0",
"pino-pretty": "^13.1.0",
"zod": "^3.24.0",
"@yetanother/db": "workspace:*",
"@yetanother/types": "workspace:*",
"@yetanother/utils": "workspace:*",
"ioredis": "^5.6.0",
"openai": "^4.95.0"
},
"devDependencies": {
"@yetanother/tsconfig": "workspace:*",
"@yetanother/eslint-config": "workspace:*",
"typescript": "^5.8.0",
"tsx": "^4.19.0",
"vitest": "^3.1.0",
"eslint": "^9.25.0",
"@types/node": "^22.15.0"
}
}