feat(canvas): cut over design agent to living form v2

This commit is contained in:
brother7 committed 2026-08-30 17:00:31 +08:00
1 parent f245603923
commit b0b5a602b5
35 files changed
+5729 -13986

No files matched your search

-7
View File
@@ -5,9 +5,6 @@
import { contextBridge, ipcRenderer } from 'electron';
const isDevelopment = process.env.NODE_ENV === 'development' || Boolean(process.env.VITE_DEV_SERVER_URL);
const imageWorkspaceMode = process.env.NIANCODE_IMAGE_WORKSPACE_MODE?.trim().toLowerCase();
const imageWorkspaceLocalDevelopment = Boolean(process.env.VITE_DEV_SERVER_URL)
&& (imageWorkspaceMode === 'local' || !imageWorkspaceMode);
const validInvokeChannels = [
'hostapi:fetch',
@@ -162,10 +159,6 @@ const electronAPI = {
*/
isDev: isDevelopment,
/**
* Narrow anonymous-route exception for the explicit unpackaged image workspace adapter.
*/
imageWorkspaceLocalDevelopment,
};
// Expose the API to the renderer process