实现小游戏与小程序项目创建发布
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
export const PRODUCT_OVERVIEW_FILENAME = 'PRODUCT_OVERVIEW.md';
|
||||
export const LEGACY_PROMOTION_PLAN_FILENAME = 'PROMOTION_PLAN.md';
|
||||
|
||||
export const PROJECT_TYPES = ['mini_game', 'mini_program', 'custom'] as const;
|
||||
export type ProjectType = (typeof PROJECT_TYPES)[number];
|
||||
|
||||
export function isProjectType(value: unknown): value is ProjectType {
|
||||
return typeof value === 'string' && PROJECT_TYPES.includes(value as ProjectType);
|
||||
}
|
||||
|
||||
export type ProjectAgentResponsibility = {
|
||||
mission: string;
|
||||
owns: string[];
|
||||
@@ -28,6 +35,7 @@ export type ProjectAgentConfig = {
|
||||
|
||||
export type ProjectConfig = {
|
||||
schemaVersion: 1;
|
||||
projectType: ProjectType;
|
||||
initialized: boolean;
|
||||
superpowersEnabled: boolean;
|
||||
defaultModel: string | null;
|
||||
@@ -37,9 +45,13 @@ export type ProjectConfig = {
|
||||
updatedAt: string;
|
||||
};
|
||||
|
||||
export function createProjectConfig(now = new Date().toISOString()): ProjectConfig {
|
||||
export function createProjectConfig(
|
||||
now = new Date().toISOString(),
|
||||
projectType: ProjectType = 'custom',
|
||||
): ProjectConfig {
|
||||
return {
|
||||
schemaVersion: 1,
|
||||
projectType,
|
||||
initialized: false,
|
||||
superpowersEnabled: false,
|
||||
defaultModel: null,
|
||||
|
||||
Reference in New Issue
Block a user