MCPcopy Create free account
hub / github.com/cortexkit/magic-context / getPiAgentConfigDir

Function getPiAgentConfigDir

packages/cli/src/lib/paths.ts:112–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111/** Pi's per-user agent dir; overridable via PI_CODING_AGENT_DIR. */
112export 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. */
119export function getPiUserConfigPath(): string {

Callers 5

piPluginDirCandidatesFunction · 0.90
cacheRootsFunction · 0.90
collectDiagnosticsFunction · 0.90
getConfigPathsMethod · 0.90
getPiUserExtensionsPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected