Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/desktop/src/components/settings/extensions/deeplink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function getStdioConfig(
timeout: number
) {
// Validate that the command is one of the allowed commands
const allowedCommands = ['cu', 'docker', 'jbang', 'npx', 'uvx', 'goosed'];
const allowedCommands = ['cu', 'docker', 'jbang', 'npx', 'uvx', 'goosed', 'npx.cmd'];
if (!allowedCommands.includes(cmd)) {
toastService.handleError(
'Invalid Command',
Expand Down
2 changes: 1 addition & 1 deletion ui/desktop/src/components/settings/extensions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export async function replaceWithShims(cmd: string) {

export function removeShims(cmd: string) {
// Only remove shims if the path matches our known shim patterns
const shimPatterns = [/cu$/, /goosed$/, /docker$/, /jbang$/, /npx$/, /uvx$/];
const shimPatterns = [/cu$/, /goosed$/, /docker$/, /jbang$/, /npx$/, /uvx$/, /npx.cmd$/];

// Check if the command matches any shim pattern
const isShim = shimPatterns.some((pattern) => pattern.test(cmd));
Expand Down
1 change: 1 addition & 0 deletions ui/desktop/src/extensions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export async function replaceWithShims(cmd: string) {
jbang: await window.electron.getBinaryPath('jbang'),
npx: await window.electron.getBinaryPath('npx'),
uvx: await window.electron.getBinaryPath('uvx'),
'npx.cmd': await window.electron.getBinaryPath('npx.cmd'),
};

if (binaryPathMap[cmd]) {
Expand Down
Loading