feat: update Makelore modules and conversations
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user