实现小游戏与小程序项目创建发布
This commit is contained in:
@@ -60,6 +60,7 @@ import {
|
||||
getOpencodeErrorKind,
|
||||
type OpencodeErrorKind,
|
||||
} from '../../shared/opencode-error-kind';
|
||||
import type { ProjectType } from '../../shared/project-config';
|
||||
|
||||
export type { OpencodeErrorKind } from '../../shared/opencode-error-kind';
|
||||
|
||||
@@ -80,6 +81,7 @@ export type ProjectDirectoryMode = 'use-selected-directory' | 'create-child-dire
|
||||
export interface ProjectCreationInput {
|
||||
directoryMode: ProjectDirectoryMode;
|
||||
selectedPath: string;
|
||||
projectType: ProjectType;
|
||||
projectName?: string;
|
||||
defaultModel?: string | null;
|
||||
}
|
||||
@@ -3956,6 +3958,7 @@ export const useOpencodeStore = create<OpencodeState>((set, get) => ({
|
||||
...(input.directoryMode === 'use-selected-directory'
|
||||
? { projectPath: input.selectedPath }
|
||||
: { parentPath: input.selectedPath, projectName: input.projectName }),
|
||||
projectType: input.projectType,
|
||||
...(input.defaultModel !== undefined ? { defaultModel: input.defaultModel } : {}),
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user