feat: update Makelore modules and conversations
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-07-31 10:08:41 +08:00
parent b8ca3f8eea
commit 80e8386fa6
175 changed files with 8036 additions and 10581 deletions

View File

@@ -233,8 +233,13 @@ function validateBase64(contentBase64: string): Buffer {
export function isLocalImageWorkspaceDevelopmentEnabled(options: {
isPackaged: boolean;
configuredMode?: string;
isDevelopmentServer?: boolean;
}): boolean {
return !options.isPackaged && options.configuredMode?.trim().toLowerCase() === 'local';
if (options.isPackaged) return false;
const configuredMode = options.configuredMode?.trim().toLowerCase();
return configuredMode === 'local'
|| (!configuredMode && options.isDevelopmentServer === true);
}
export function getLocalImageWorkspaceDirectory(userDataDir: string): string {
@@ -268,12 +273,11 @@ export class LocalImageWorkspace {
}
const timestamp = this.now().toISOString();
const projectId = `local-project-${this.createId()}`;
const agentId = `local-agent-${this.createId()}`;
state.projects.push({
id: projectId,
name: projectName,
agents: [{ id: agentId, name: '视觉创作 Agent' }],
activeAgentId: agentId,
agents: [],
activeAgentId: null,
messages: [],
updatedAt: timestamp,
});