@@ -14,26 +14,26 @@ export function serializeConfig(config: Partial<ProjectConfig>): string {
1414 lines . push ( '' ) ;
1515
1616 // Context section with comments
17- lines . push ( '# Project context (optional) ' ) ;
18- lines . push ( '# This is shown to AI when creating artifacts. ' ) ;
19- lines . push ( '# Add your tech stack, conventions, style guides, domain knowledge, etc. ' ) ;
20- lines . push ( '# Example: ' ) ;
17+ lines . push ( '# 项目上下文(可选) ' ) ;
18+ lines . push ( '# 在创建工件时向 AI 显示此信息。 ' ) ;
19+ lines . push ( '# 添加您的技术栈、约定、风格指南、领域知识等。 ' ) ;
20+ lines . push ( '# 示例: ' ) ;
2121 lines . push ( '# context: |' ) ;
22- lines . push ( '# Tech stack: TypeScript, React, Node.js' ) ;
23- lines . push ( '# We use conventional commits ' ) ;
24- lines . push ( '# Domain: e-commerce platform ' ) ;
22+ lines . push ( '# 技术栈: TypeScript, React, Node.js' ) ;
23+ lines . push ( '# 我们使用约定式提交 ' ) ;
24+ lines . push ( '# 领域:电商平台 ' ) ;
2525 lines . push ( '' ) ;
2626
2727 // Rules section with comments
28- lines . push ( '# Per-artifact rules (optional) ' ) ;
29- lines . push ( '# Add custom rules for specific artifacts. ' ) ;
30- lines . push ( '# Example: ' ) ;
28+ lines . push ( '# 每个工件的规则(可选) ' ) ;
29+ lines . push ( '# 为特定工件添加自定义规则。 ' ) ;
30+ lines . push ( '# 示例: ' ) ;
3131 lines . push ( '# rules:' ) ;
3232 lines . push ( '# proposal:' ) ;
33- lines . push ( '# - Keep proposals under 500 words ' ) ;
34- lines . push ( '# - Always include a "Non-goals" section ' ) ;
33+ lines . push ( '# - 保持提案在500字以内 ' ) ;
34+ lines . push ( '# - 始终包含"非目标"部分 ' ) ;
3535 lines . push ( '# tasks:' ) ;
36- lines . push ( '# - Break tasks into chunks of max 2 hours ' ) ;
36+ lines . push ( '# - 将任务分解为最多2小时的块 ' ) ;
3737
3838 return lines . join ( '\n' ) + '\n' ;
3939}
0 commit comments