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

This commit is contained in:
2026-08-30 17:00:31 +08:00
parent f245603923
commit b0b5a602b5
35 changed files with 5729 additions and 13986 deletions

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