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.
34 lines
833 B
TypeScript
34 lines
833 B
TypeScript
// Plugin system exports
|
|
|
|
export { formatDoctorResults, runDoctorChecks } from "./doctor";
|
|
export { type GitSource, parseGitUrl } from "./git-url";
|
|
export {
|
|
getAllPluginCommandPaths,
|
|
getAllPluginHookPaths,
|
|
getAllPluginToolPaths,
|
|
getEnabledPlugins,
|
|
getPluginSettings,
|
|
resolvePluginCommandPaths,
|
|
resolvePluginHookPaths,
|
|
resolvePluginToolPaths,
|
|
} from "./loader";
|
|
export { PluginManager, parseSettingValue, validateSetting } from "./manager";
|
|
export { extractPackageName, formatPluginSpec, parsePluginSpec } from "./parser";
|
|
export type {
|
|
BooleanSetting,
|
|
DoctorCheck,
|
|
DoctorOptions,
|
|
EnumSetting,
|
|
InstalledPlugin,
|
|
InstallOptions,
|
|
NumberSetting,
|
|
PluginFeature,
|
|
PluginManifest,
|
|
PluginRuntimeConfig,
|
|
PluginRuntimeState,
|
|
PluginSettingSchema,
|
|
PluginSettingType,
|
|
ProjectPluginOverrides,
|
|
StringSetting,
|
|
} from "./types";
|