@oh-my-pi/pi-utils 12.12.2 → 12.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dirs.ts +8 -0
package/package.json
CHANGED
package/src/dirs.ts
CHANGED
|
@@ -284,3 +284,11 @@ export function getMCPConfigPath(scope: "user" | "project", cwd: string = getPro
|
|
|
284
284
|
}
|
|
285
285
|
return path.join(getProjectAgentDir(cwd), "mcp.json");
|
|
286
286
|
}
|
|
287
|
+
|
|
288
|
+
/** Get the SSH config file path. */
|
|
289
|
+
export function getSSHConfigPath(scope: "user" | "project", cwd: string = getProjectDir()): string {
|
|
290
|
+
if (scope === "user") {
|
|
291
|
+
return path.join(getAgentDir(), "ssh.json");
|
|
292
|
+
}
|
|
293
|
+
return path.join(getProjectAgentDir(cwd), "ssh.json");
|
|
294
|
+
}
|