@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dirs.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-utils",
3
- "version": "12.12.2",
3
+ "version": "12.13.0",
4
4
  "description": "Shared utilities for pi packages",
5
5
  "keywords": ["utilities", "cli", "logging", "streams"],
6
6
  "type": "module",
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
+ }