Files
oh-my-pi/packages/stats/package.json
T
can1357 fcd7ff4f84 refactor(dirs): centralized directory path utilities into @oh-my-pi/pi-utils/dirs module
- Extracted directory path utilities from multiple packages into a centralized '@oh-my-pi/pi-utils/dirs' module.
- Moved 30+ path helper functions (getAgentDir, getConfigRootDir, getPluginsDir, getMCPConfigPath, etc.) from scattered locations into a single shared utility module.
- Consolidated APP_NAME, CONFIG_DIR_NAME, and VERSION constants into the centralized dirs module for reuse across packages.
- Updated 70+ import statements across packages/ai, packages/coding-agent, packages/stats, and packages/tui to use the new centralized module.
- Removed local path construction logic and replaced with utility function calls for improved maintainability and consistency.
- Deleted packages/coding-agent/src/extensibility/plugins/paths.ts as its functions were moved to the centralized dirs module.
2026-02-13 15:06:05 +01:00

67 lines
1.4 KiB
JSON

{
"name": "@oh-my-pi/omp-stats",
"version": "12.0.0",
"description": "Local observability dashboard for pi AI usage statistics",
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"bin": {
"omp-stats": "./src/index.ts"
},
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts"
},
"./src/server": {
"types": "./src/server.ts",
"import": "./src/server.ts"
},
"./src/db": {
"types": "./src/db.ts",
"import": "./src/db.ts"
}
},
"files": [
"src",
"public",
"README.md"
],
"keywords": [
"ai",
"observability",
"metrics",
"dashboard",
"llm",
"statistics"
],
"scripts": {
"dev": "bun run src/index.ts",
"check": "tsgo -p tsconfig.json && tsgo -p tsconfig.client.json",
"build": "bun run build.ts"
},
"author": "Can Bölük",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/can1357/oh-my-pi.git",
"directory": "packages/stats"
},
"dependencies": {
"@oh-my-pi/pi-ai": "workspace:*",
"date-fns": "^4.1.0",
"lucide-react": "^0.563.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"recharts": "^3.7.0",
"@oh-my-pi/pi-utils": "workspace:*"
},
"devDependencies": {
"@types/bun": "^1.3.9",
"@types/react": "^19.2.10",
"@types/react-dom": "^19.2.3"
},
"engines": {
"bun": ">=1.3.7"
}
}