Add memory tables to DB schema (preferences, insights with pgvector embedding column, agent_logs, skills, summarization_jobs). Implement PreferencesRepo (CRUD + upsert) and InsightsRepo (CRUD + semantic search + relevance decay). Define VectorStore and EmbeddingProvider interfaces for future provider abstraction. Wire MemoryModule into gateway with REST endpoints at /api/memory/*. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
582 B
JSON
29 lines
582 B
JSON
{
|
|
"name": "@mosaic/memory",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"lint": "eslint src",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run --passWithNoTests"
|
|
},
|
|
"dependencies": {
|
|
"@mosaic/db": "workspace:*",
|
|
"@mosaic/types": "workspace:*",
|
|
"drizzle-orm": "^0.45.1"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.8.0",
|
|
"vitest": "^2.0.0"
|
|
}
|
|
}
|