community templates (#691)
This commit is contained in:
@@ -52,6 +52,7 @@ import type {
|
||||
UpdateChatParams,
|
||||
FileAttachment,
|
||||
} from "./ipc_types";
|
||||
import type { Template } from "../shared/templates";
|
||||
import type { AppChatContext, ProposalResult } from "@/lib/schemas";
|
||||
import { showError } from "@/lib/toast";
|
||||
|
||||
@@ -1024,4 +1025,9 @@ export class IpcClient {
|
||||
}): Promise<ProblemReport> {
|
||||
return this.ipcRenderer.invoke("check-problems", params);
|
||||
}
|
||||
|
||||
// Template methods
|
||||
public async getTemplates(): Promise<Template[]> {
|
||||
return this.ipcRenderer.invoke("get-templates");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user