实现小游戏与小程序项目创建发布

This commit is contained in:
2026-08-09 13:31:06 +08:00
parent a6fe14a8d6
commit 493b31cff0
26 changed files with 1827 additions and 39 deletions

View File

@@ -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,