Skip to content
Closed
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/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"license": {
"name": "Apache-2.0"
},
"version": "1.0.31"
"version": "1.0.34"
},
"paths": {
"/agent/tools": {
Expand Down
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', 'npx.cmd'];
const allowedCommands = ['docker', 'jbang', 'npx', 'uvx', 'goosed', 'npx.cmd'];
if (!allowedCommands.includes(cmd)) {
toastService.handleError(
'Invalid Command',
Expand Down
3 changes: 1 addition & 2 deletions ui/desktop/src/components/settings/extensions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ export function extractExtensionConfig(fixedEntry: FixedExtensionEntry): Extensi

export async function replaceWithShims(cmd: string) {
const binaryPathMap: Record<string, string> = {
cu: await window.electron.getBinaryPath('cu'),
goosed: await window.electron.getBinaryPath('goosed'),
jbang: await window.electron.getBinaryPath('jbang'),
npx: await window.electron.getBinaryPath('npx'),
Expand All @@ -213,7 +212,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$/, /npx.cmd$/];
const shimPatterns = [/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: 0 additions & 1 deletion ui/desktop/src/extensions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ export async function loadAndAddStoredExtensions() {
// Update the path to the binary based on the command
export async function replaceWithShims(cmd: string) {
const binaryPathMap: Record<string, string> = {
cu: await window.electron.getBinaryPath('cu'),
goosed: await window.electron.getBinaryPath('goosed'),
jbang: await window.electron.getBinaryPath('jbang'),
npx: await window.electron.getBinaryPath('npx'),
Expand Down
Loading