Files
oh-my-pi/packages/coding-agent/src/extensibility/plugins/index.ts
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

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";