Files
Docwell/Web-App/frontend/package.json
T
tajniak81andClaude Opus 5.5 78b7710090 Add AI chat, writing actions, workspace embeddings and an MCP server
Phase E of the AFFiNE parity plan (ADR-15):

- internal/ai: OpenAI-compatible, Anthropic (official Go SDK) and Ollama
  drivers; BYOK profiles per workspace and for the instance, with keys
  encrypted by DOCWELL_SECRET_KEY, failover order, a test call and usage
  counters.
- Embeddings: an indexer that follows PocketBase like the search index,
  chunks pages along their blocks and keeps vectors in a bbolt file in
  the data dir (no cgo); progress, ignored pages and extra files.
- Chat sessions scoped to a page, space or workspace, streamed as
  server-sent events, with citations to pages and blocks, fork and
  history; retrieval only from pages the asker can read.
- Writing actions (rewrite, fix, shorter, longer, summarise, translate,
  continue, custom) in the editor's selection toolbar.
- POST /mcp: MCP over Streamable HTTP with personal API tokens; read
  tokens search and read pages, write tokens also create and update them.
- Web app chat panel (Ctrl+J), workspace AI settings, an admin AI page,
  OpenAPI, generated clients, migration and translations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:58:22 +01:00

41 lines
1019 B
JSON

{
"name": "@docwell/web-app",
"version": "0.0.1",
"private": true,
"license": "AGPL-3.0-or-later",
"type": "module",
"exports": {
"./app": "./src/app.ts",
"./style.css": "./src/style.css"
},
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build && node -e \"require('fs').writeFileSync('../internal/spa/dist/.gitkeep','')\"",
"preview": "vite preview",
"typecheck": "vue-tsc --noEmit",
"test": "vitest run"
},
"dependencies": {
"@docwell/api-client": "*",
"@docwell/editor": "*",
"@docwell/ui": "*",
"dompurify": "^3.4.17",
"marked": "^16.4.2",
"pinia": "^4.1.0",
"vue": "^3.5.44",
"vue-i18n": "^11.4.16",
"vue-router": "^5.4.0"
},
"devDependencies": {
"@tailwindcss/vite": "^4.3.3",
"@vitejs/plugin-vue": "^6.0.10",
"@vue/test-utils": "^2.5.1",
"jsdom": "^30.1.3",
"tailwindcss": "^4.3.3",
"typescript": "~5.9.3",
"vite": "^8.3.5",
"vitest": "^5.0.5",
"vue-tsc": "^3.3.14"
}
}