community templates (#691)

This commit is contained in:
Will Chen
2025-07-23 10:11:16 -07:00
committed by GitHub
parent 9edd0fa80f
commit e947eede7a
37 changed files with 544 additions and 135 deletions

View File

@@ -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");
}
}