learning_ai_notes/backend/package.json
saravanakumardb1 9e3a7206b9 feat(backend): add note-prompts module with Smart Actions LLM integration
- Add @bytelyst/llm dependency (file: ref) + llm.ts singleton wrapper
- Add LLM env vars to config (LLM_PROVIDER, LLM_DEFAULT_MODEL, LLM_VISION_MODEL, LLM_EMBEDDING_MODEL)
- Create note-prompts module: types, repository, runner, routes, seed (20 built-in templates)
- Built-in templates: 8 transform, 3 extract, 3 generate, 2 analyze, 2 vision, 2 export
- Prompt runner supports text, image, and text+image inputs via @bytelyst/llm vision
- Upgrade copilot-transform.ts to use @bytelyst/llm directly (with local heuristic fallback)
- Add reading-time endpoint (GET /api/notes/:id/reading-time)
- Extend agent-action types with smart_action and auto_enrich
- Add note_prompts Cosmos container to cosmos-init
- Register notePromptRoutes in server.ts
- 15 new tests (CRUD, run, slug resolution, seed validation, reading-time)
2026-04-06 08:01:42 -07:00

47 lines
1.3 KiB
JSON

{
"name": "@notelett/backend",
"version": "0.1.0",
"private": true,
"packageManager": "pnpm@10.6.5",
"description": "NoteLett product backend — notes, workspaces, relationships, tasks, artifacts, agent actions",
"type": "module",
"scripts": {
"dev": "tsx watch src/server.ts",
"build": "tsc",
"start": "node dist/server.js",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit",
"lint": "eslint src/"
},
"dependencies": {
"@azure/cosmos": "^4.2.0",
"@bytelyst/auth": "^0.1.0",
"@bytelyst/backend-config": "^0.1.0",
"@bytelyst/backend-flags": "^0.1.0",
"@bytelyst/backend-telemetry": "^0.1.0",
"@bytelyst/config": "^0.1.0",
"@bytelyst/cosmos": "^0.1.0",
"@bytelyst/datastore": "^0.1.0",
"@bytelyst/errors": "^0.1.0",
"@bytelyst/events": "^0.1.0",
"@bytelyst/fastify-auth": "^0.1.0",
"@bytelyst/fastify-core": "^0.1.0",
"@bytelyst/field-encrypt": "^0.1.0",
"@bytelyst/llm": "file:../../learning_ai_common_plat/packages/llm",
"@bytelyst/logger": "^0.1.0",
"fastify": "5.7.4",
"jose": "^6.0.8",
"zod": "^3.24.2"
},
"devDependencies": {
"@bytelyst/testing": "^0.1.0",
"@types/node": "^22.12.0",
"eslint": "^9.0.0",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.0.0",
"vitest": "^3.0.5"
}
}