()
| 110 | |
| 111 | /** Pi's per-user agent dir; overridable via PI_CODING_AGENT_DIR. */ |
| 112 | export function getPiAgentConfigDir(): string { |
| 113 | const envDir = process.env.PI_CODING_AGENT_DIR?.trim(); |
| 114 | if (envDir) return envDir; |
| 115 | return join(homedir(), ".pi", "agent"); |
| 116 | } |
| 117 | |
| 118 | /** Shared Magic Context user config, independent of the Pi agent settings dir. */ |
| 119 | export function getPiUserConfigPath(): string { |
no outgoing calls
no test coverage detected