()
| 83 | * @returns Absolute paths to seed dirs in precedence order (empty if unset) |
| 84 | */ |
| 85 | export function getPluginSeedDirs(): string[] { |
| 86 | // Same tilde-expansion rationale as getPluginsDirectory (gh-30794). |
| 87 | const raw = process.env.CLAUDE_CODE_PLUGIN_SEED_DIR |
| 88 | if (!raw) return [] |
| 89 | return raw.split(delimiter).filter(Boolean).map(expandTilde) |
| 90 | } |
| 91 | |
| 92 | function sanitizePluginId(pluginId: string): string { |
| 93 | // Same character class as the install-cache sanitizer (pluginLoader.ts) |
no outgoing calls
no test coverage detected