mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 11:37:47 +01:00
build: build error (#922)
This commit is contained in:
@@ -129,6 +129,7 @@ export interface SystemOperations {
|
||||
queryParams: string[]
|
||||
) => Promise<any[]>;
|
||||
fetchAssistant: (serverId: string, queryParams: string[]) => Promise<any>;
|
||||
openLogDir: () => Promise<void>;
|
||||
}
|
||||
|
||||
// Base platform adapter interface
|
||||
|
||||
@@ -7,6 +7,7 @@ export interface WebPlatformAdapter extends BasePlatformAdapter {
|
||||
openFileDialog: (options: any) => Promise<string | string[] | null>;
|
||||
metadata: (path: string, options: any) => Promise<Record<string, any>>;
|
||||
error: (message: string) => void;
|
||||
openLogDir: () => Promise<void>;
|
||||
}
|
||||
|
||||
// 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();
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user