Track bundled vendor runtime sources
Some checks failed
CI / main (push) Has been cancelled
CI / release-e2e (push) Has been cancelled

This commit is contained in:
2026-07-07 10:05:50 +08:00
parent fbe179ab53
commit 52636c91ae
2111 changed files with 1850012 additions and 14 deletions

View File

@@ -0,0 +1,29 @@
import { ipcMain } from "electron";
import { AppRuntime } from "../env";
import { StrUtil } from "../../lib/util";
const sendToRenderer = (channel: string, data: any) => {
if (!AppRuntime.mainWindow) {
return;
}
AppRuntime.mainWindow.webContents.send("MAIN_PROCESS_MESSAGE", {
id: StrUtil.randomString(32),
type: "CHANNEL",
data: { channel, data },
});
};
ipcMain.handle(
"workflow:dispatch",
async (_event, workflowLogId: string, params: any) => {
sendToRenderer("workflow:execute", { workflowLogId, params });
return { code: 0 };
},
);
ipcMain.handle("workflow:cancel", async (_event, workflowLogId: string) => {
sendToRenderer("workflow:cancel", { workflowLogId });
return { code: 0 };
});
export default {};