feat(projects): add interactive AI app scaffold skill
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
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 const PROJECT_TYPES = ['interactive_ai_app', 'custom'] as const;
|
||||
export type ProjectType = (typeof PROJECT_TYPES)[number];
|
||||
|
||||
const LEGACY_INTERACTIVE_PROJECT_TYPES = new Set(['mini_game', 'mini_program']);
|
||||
|
||||
export function isProjectType(value: unknown): value is ProjectType {
|
||||
return typeof value === 'string' && PROJECT_TYPES.includes(value as ProjectType);
|
||||
}
|
||||
|
||||
export function normalizeProjectType(value: unknown): ProjectType | undefined {
|
||||
if (isProjectType(value)) return value;
|
||||
if (typeof value === 'string' && LEGACY_INTERACTIVE_PROJECT_TYPES.has(value)) {
|
||||
return 'interactive_ai_app';
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export type ProjectAgentResponsibility = {
|
||||
mission: string;
|
||||
owns: string[];
|
||||
|
||||
Reference in New Issue
Block a user