diff --git a/src/types/platform.ts b/src/types/platform.ts index 63cc93ea..c9d8e6e0 100644 --- a/src/types/platform.ts +++ b/src/types/platform.ts @@ -129,6 +129,7 @@ export interface SystemOperations { queryParams: string[] ) => Promise; fetchAssistant: (serverId: string, queryParams: string[]) => Promise; + openLogDir: () => Promise; } // Base platform adapter interface diff --git a/src/utils/webAdapter.ts b/src/utils/webAdapter.ts index 9df2d6c4..4257156f 100644 --- a/src/utils/webAdapter.ts +++ b/src/utils/webAdapter.ts @@ -7,6 +7,7 @@ export interface WebPlatformAdapter extends BasePlatformAdapter { openFileDialog: (options: any) => Promise; metadata: (path: string, options: any) => Promise>; error: (message: string) => void; + openLogDir: () => Promise; } // Create Web adapter functions @@ -261,17 +262,20 @@ export const createWebAdapter = (): WebPlatformAdapter => { `/assistant/_search?${queryParams?.join("&")}`, undefined ); - if (error) { console.error("_search", error); return {}; } - return res; }, async getCurrentWindowLabel() { return "web"; }, + + async openLogDir() { + console.log("openLogDir is not supported in web environment"); + return Promise.resolve(); + }, }; }; diff --git a/tsup.config.ts b/tsup.config.ts index 25beb064..dbb647e8 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -72,7 +72,7 @@ export default defineConfig({ const packageJson = { name: "@infinilabs/search-chat", - version: "1.2.38", + version: "1.2.46", main: "index.js", module: "index.js", type: "module",