fcd7ff4f84
- 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.
48 lines
884 B
JSON
48 lines
884 B
JSON
{
|
|
"name": "@oh-my-pi/pi-utils",
|
|
"version": "12.0.0",
|
|
"description": "Shared utilities for pi packages",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"import": "./src/index.ts"
|
|
},
|
|
"./cli": {
|
|
"types": "./src/cli.ts",
|
|
"import": "./src/cli.ts"
|
|
},
|
|
"./dirs": {
|
|
"types": "./src/dirs.ts",
|
|
"import": "./src/dirs.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"src",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"check": "tsgo -p tsconfig.json",
|
|
"test": "bun test"
|
|
},
|
|
"author": "Can Bölük",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/can1357/oh-my-pi.git",
|
|
"directory": "packages/utils"
|
|
},
|
|
"dependencies": {
|
|
"winston": "^3.19.0",
|
|
"winston-daily-rotate-file": "^5.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.3.9"
|
|
},
|
|
"engines": {
|
|
"bun": ">=1.3.7"
|
|
}
|
|
}
|