@oh-my-pi/pi-coding-agent 1.337.1 → 1.340.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/CHANGELOG.md +32 -0
- package/package.json +3 -3
- package/src/cli/args.ts +14 -8
- package/src/core/export-html/index.ts +48 -15
- package/src/core/export-html/template.html +3 -11
- package/src/core/mcp/client.ts +43 -16
- package/src/core/mcp/config.ts +152 -6
- package/src/core/mcp/index.ts +6 -2
- package/src/core/mcp/loader.ts +30 -3
- package/src/core/mcp/manager.ts +69 -10
- package/src/core/mcp/types.ts +9 -3
- package/src/core/sdk.ts +19 -3
- package/src/core/settings-manager.ts +34 -0
- package/src/modes/interactive/components/settings-defs.ts +229 -0
- package/src/modes/interactive/components/settings-selector.ts +156 -234
- package/src/modes/interactive/interactive-mode.ts +58 -75
- package/src/utils/shell.ts +12 -4
- package/src/utils/tools-manager.ts +5 -14
- package/src/core/export-html/vendor/highlight.min.js +0 -1213
- package/src/core/export-html/vendor/marked.min.js +0 -6
|
@@ -95,14 +95,9 @@ const TOOLS: Record<string, ToolConfig> = {
|
|
|
95
95
|
},
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
// Check if a command exists in PATH
|
|
99
|
-
function commandExists(cmd: string):
|
|
100
|
-
|
|
101
|
-
const proc = Bun.spawnSync([cmd, "--version"], { stdin: "ignore", stdout: "pipe", stderr: "pipe" });
|
|
102
|
-
return proc.exitCode !== null;
|
|
103
|
-
} catch {
|
|
104
|
-
return false;
|
|
105
|
-
}
|
|
98
|
+
// Check if a command exists in PATH
|
|
99
|
+
function commandExists(cmd: string): string | null {
|
|
100
|
+
return Bun.which(cmd);
|
|
106
101
|
}
|
|
107
102
|
|
|
108
103
|
// Get the path to a tool (system-wide or in our tools dir)
|
|
@@ -116,12 +111,8 @@ export function getToolPath(tool: "fd" | "rg" | "sd" | "sg"): string | null {
|
|
|
116
111
|
return localPath;
|
|
117
112
|
}
|
|
118
113
|
|
|
119
|
-
// Check system PATH
|
|
120
|
-
|
|
121
|
-
return config.binaryName;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return null;
|
|
114
|
+
// Check system PATH
|
|
115
|
+
return commandExists(config.binaryName);
|
|
125
116
|
}
|
|
126
117
|
|
|
127
118
|
// Fetch latest release version from GitHub
|