mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-09-07 08:55:57 +00:00
Created shared paths.ts utility as single source of truth for all path resolution. Refactored 7 services to use it: - server/src/utils/paths.ts: New shared utility with JSDoc docs - task-service: Uses getTasksActiveDir()/getTasksArchiveDir() - activity-service: Uses getDataDir() - chat-service: Uses getChatsDir() - audit-service: Uses getAuditDir() - metrics/helpers: Uses getProjectRoot()/getTelemetryDir() - backlog-repository: Uses getTasksBacklogDir() Resolution priority: DATA_DIR/VERITAS_DATA_DIR env var > auto-discovery of monorepo root (walks up looking for pnpm-workspace.yaml) > cwd fallback. Filesystem root guard prevents silent '/' resolution (the original EACCES bug). Backwards compatible: existing DATA_DIR configurations unchanged. Cross-model reviewed: 10/10/10/10 (GPT-5.1 authored, Claude Sonnet 4.5 reviewed). Closes #102 [author: gpt-5.1] [reviewed-by: claude-sonnet-4.5] Version: 2.1.3
28 lines
594 B
JSON
28 lines
594 B
JSON
{
|
|
"name": "@veritas-kanban/shared",
|
|
"version": "2.1.3",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"typecheck": "tsc --noEmit",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.7.0"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Brad Groux <brad@digitalmeld.io>",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/BradGroux/veritas-kanban.git"
|
|
}
|
|
}
|