feat(memory): release Mnemo project bridge and schema2 recovery
Official contracts and Windows source CI / windows-source (push) Has been cancelled

This commit is contained in:
Agent Workbench Dev
2026-11-11 03:03:43 +08:00
parent f7705d9634
commit e306f40cae
76 changed files with 10475 additions and 127 deletions
+12
View File
@@ -0,0 +1,12 @@
import fs from 'node:fs';
import path from 'node:path';
import { desktopExecutableIdentity } from '../src/core/desktop/app-installation.mjs';
import { samePath } from '../src/core/desktop/file-state.mjs';
export function desktopLaunchCommand(appRoot, args) {
const root = fs.realpathSync.native(appRoot), executablePath = desktopExecutableIdentity(root).path;
// Packaged Electron loads resources/app itself; only the default Electron
// runtime takes the compiled main program as a positional argument.
const packaged = samePath(executablePath, path.join(root, 'desktop/AgentWorkbench.exe'));
return { executablePath, args: [...(packaged ? [] : [path.join(root, 'dist-desktop/main.cjs')]), ...args] };
}