[{"data":1,"prerenderedAt":4582},["ShallowReactive",2],{"content-/blog/ai-architecture-deep-dive":3,"related-blog":4555},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"keywords":10,"category":11,"author":12,"date":13,"image":14,"body":15,"_type":4550,"_id":4551,"_source":3228,"_file":4552,"_stem":4553,"_extension":4554},"/blog/ai-architecture-deep-dive","blog",false,"","AI架构深度剖析 - HTMLPAGE智能生成系统技术详解","深入探讨HTMLPAGE AI架构设计，包括多智能体协作机制、实时流式处理、上下文管理、模块化组装等核心技术实现细节。","AI架构, 多智能体系统, 流式处理, 智能网页生成, 深度学习, 技术架构","AI技术","HTMLPAGE","2025-11-25","/content-images/blog/blog.jpg",{"type":16,"children":17,"toc":4508},"root",[18,26,32,37,43,109,114,119,124,131,141,164,174,350,356,365,388,394,403,426,432,441,464,469,475,480,850,855,1370,1375,1380,1385,1951,1956,1961,2520,2525,2530,2985,2990,2996,3152,3158,3359,3365,3370,3473,3478,3483,3958,3963,3968,3973,4379,4384,4390,4408,4414,4432,4438,4456,4461,4466,4475,4498,4503],{"type":19,"tag":20,"props":21,"children":23},"element","h2",{"id":22},"概述",[24],{"type":25,"value":22},"text",{"type":19,"tag":27,"props":28,"children":29},"p",{},[30],{"type":25,"value":31},"HTMLPAGE的AI架构是一个高度复杂的智能系统，通过多智能体协作、实时流式处理和模块化组装等先进技术，实现从自然语言到专业网页的智能转换。本文将深入剖析系统的核心架构和技术实现。",{"type":19,"tag":20,"props":33,"children":35},{"id":34},"系统架构总览",[36],{"type":25,"value":34},{"type":19,"tag":38,"props":39,"children":41},"h3",{"id":40},"核心技术栈",[42],{"type":25,"value":40},{"type":19,"tag":44,"props":45,"children":46},"ul",{},[47,59,69,79,89,99],{"type":19,"tag":48,"props":49,"children":50},"li",{},[51,57],{"type":19,"tag":52,"props":53,"children":54},"strong",{},[55],{"type":25,"value":56},"AI模型层",{"type":25,"value":58},": DeepSeek V3 大语言模型",{"type":19,"tag":48,"props":60,"children":61},{},[62,67],{"type":19,"tag":52,"props":63,"children":64},{},[65],{"type":25,"value":66},"智能体框架",{"type":25,"value":68},": 分布式多智能体协作系统",{"type":19,"tag":48,"props":70,"children":71},{},[72,77],{"type":19,"tag":52,"props":73,"children":74},{},[75],{"type":25,"value":76},"流式处理",{"type":25,"value":78},": Server-Sent Events (SSE) 实时通信",{"type":19,"tag":48,"props":80,"children":81},{},[82,87],{"type":19,"tag":52,"props":83,"children":84},{},[85],{"type":25,"value":86},"前端框架",{"type":25,"value":88},": Nuxt 3 + Vue 3",{"type":19,"tag":48,"props":90,"children":91},{},[92,97],{"type":19,"tag":52,"props":93,"children":94},{},[95],{"type":25,"value":96},"状态管理",{"type":25,"value":98},": Pinia + Composables",{"type":19,"tag":48,"props":100,"children":101},{},[102,107],{"type":19,"tag":52,"props":103,"children":104},{},[105],{"type":25,"value":106},"样式系统",{"type":25,"value":108},": Tailwind CSS + Bootstrap 5",{"type":19,"tag":20,"props":110,"children":112},{"id":111},"多智能体协作机制",[113],{"type":25,"value":111},{"type":19,"tag":38,"props":115,"children":117},{"id":116},"智能体架构设计",[118],{"type":25,"value":116},{"type":19,"tag":27,"props":120,"children":121},{},[122],{"type":25,"value":123},"HTMLPAGE采用分层的智能体架构，每个智能体负责特定的生成任务：",{"type":19,"tag":125,"props":126,"children":128},"h4",{"id":127},"_1-需求理解智能体-requirement-agent",[129],{"type":25,"value":130},"1. 需求理解智能体 (Requirement Agent)",{"type":19,"tag":27,"props":132,"children":133},{},[134,139],{"type":19,"tag":52,"props":135,"children":136},{},[137],{"type":25,"value":138},"职责",{"type":25,"value":140},": 解析用户输入，提取设计需求",{"type":19,"tag":44,"props":142,"children":143},{},[144,149,154,159],{"type":19,"tag":48,"props":145,"children":146},{},[147],{"type":25,"value":148},"分析用户描述的页面类型",{"type":19,"tag":48,"props":150,"children":151},{},[152],{"type":25,"value":153},"识别行业领域和风格偏好",{"type":19,"tag":48,"props":155,"children":156},{},[157],{"type":25,"value":158},"提取关键功能需求",{"type":19,"tag":48,"props":160,"children":161},{},[162],{"type":25,"value":163},"生成结构化需求文档",{"type":19,"tag":27,"props":165,"children":166},{},[167,172],{"type":19,"tag":52,"props":168,"children":169},{},[170],{"type":25,"value":171},"技术实现",{"type":25,"value":173},":",{"type":19,"tag":175,"props":176,"children":180},"pre",{"className":177,"code":178,"language":179,"meta":7,"style":7},"language-typescript shiki shiki-themes github-dark github-dark","async analyzeRequirements(userInput: string) {\n  const prompt = `分析以下网页需求：${userInput}\n  输出JSON格式：{\n    pageType: string,\n    industry: string,\n    style: string,\n    features: string[]\n  }`\n  \n  return await this.aiModel.generate(prompt)\n}\n","typescript",[181],{"type":19,"tag":182,"props":183,"children":184},"code",{"__ignoreMap":7},[185,208,245,254,263,272,281,290,299,308,342],{"type":19,"tag":186,"props":187,"children":190},"span",{"class":188,"line":189},"line",1,[191,197,203],{"type":19,"tag":186,"props":192,"children":194},{"style":193},"--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8",[195],{"type":25,"value":196},"async ",{"type":19,"tag":186,"props":198,"children":200},{"style":199},"--shiki-default:#B392F0;--shiki-dark:#B392F0",[201],{"type":25,"value":202},"analyzeRequirements",{"type":19,"tag":186,"props":204,"children":205},{"style":193},[206],{"type":25,"value":207},"(userInput: string) {\n",{"type":19,"tag":186,"props":209,"children":211},{"class":188,"line":210},2,[212,218,224,229,235,240],{"type":19,"tag":186,"props":213,"children":215},{"style":214},"--shiki-default:#F97583;--shiki-dark:#F97583",[216],{"type":25,"value":217},"  const",{"type":19,"tag":186,"props":219,"children":221},{"style":220},"--shiki-default:#79B8FF;--shiki-dark:#79B8FF",[222],{"type":25,"value":223}," prompt",{"type":19,"tag":186,"props":225,"children":226},{"style":214},[227],{"type":25,"value":228}," =",{"type":19,"tag":186,"props":230,"children":232},{"style":231},"--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF",[233],{"type":25,"value":234}," `分析以下网页需求：${",{"type":19,"tag":186,"props":236,"children":237},{"style":193},[238],{"type":25,"value":239},"userInput",{"type":19,"tag":186,"props":241,"children":242},{"style":231},[243],{"type":25,"value":244},"}\n",{"type":19,"tag":186,"props":246,"children":248},{"class":188,"line":247},3,[249],{"type":19,"tag":186,"props":250,"children":251},{"style":231},[252],{"type":25,"value":253},"  输出JSON格式：{\n",{"type":19,"tag":186,"props":255,"children":257},{"class":188,"line":256},4,[258],{"type":19,"tag":186,"props":259,"children":260},{"style":231},[261],{"type":25,"value":262},"    pageType: string,\n",{"type":19,"tag":186,"props":264,"children":266},{"class":188,"line":265},5,[267],{"type":19,"tag":186,"props":268,"children":269},{"style":231},[270],{"type":25,"value":271},"    industry: string,\n",{"type":19,"tag":186,"props":273,"children":275},{"class":188,"line":274},6,[276],{"type":19,"tag":186,"props":277,"children":278},{"style":231},[279],{"type":25,"value":280},"    style: string,\n",{"type":19,"tag":186,"props":282,"children":284},{"class":188,"line":283},7,[285],{"type":19,"tag":186,"props":286,"children":287},{"style":231},[288],{"type":25,"value":289},"    features: string[]\n",{"type":19,"tag":186,"props":291,"children":293},{"class":188,"line":292},8,[294],{"type":19,"tag":186,"props":295,"children":296},{"style":231},[297],{"type":25,"value":298},"  }`\n",{"type":19,"tag":186,"props":300,"children":302},{"class":188,"line":301},9,[303],{"type":19,"tag":186,"props":304,"children":305},{"style":193},[306],{"type":25,"value":307},"  \n",{"type":19,"tag":186,"props":309,"children":311},{"class":188,"line":310},10,[312,317,322,327,332,337],{"type":19,"tag":186,"props":313,"children":314},{"style":214},[315],{"type":25,"value":316},"  return",{"type":19,"tag":186,"props":318,"children":319},{"style":214},[320],{"type":25,"value":321}," await",{"type":19,"tag":186,"props":323,"children":324},{"style":220},[325],{"type":25,"value":326}," this",{"type":19,"tag":186,"props":328,"children":329},{"style":193},[330],{"type":25,"value":331},".aiModel.",{"type":19,"tag":186,"props":333,"children":334},{"style":199},[335],{"type":25,"value":336},"generate",{"type":19,"tag":186,"props":338,"children":339},{"style":193},[340],{"type":25,"value":341},"(prompt)\n",{"type":19,"tag":186,"props":343,"children":345},{"class":188,"line":344},11,[346],{"type":19,"tag":186,"props":347,"children":348},{"style":193},[349],{"type":25,"value":244},{"type":19,"tag":125,"props":351,"children":353},{"id":352},"_2-布局规划智能体-layout-agent",[354],{"type":25,"value":355},"2. 布局规划智能体 (Layout Agent)",{"type":19,"tag":27,"props":357,"children":358},{},[359,363],{"type":19,"tag":52,"props":360,"children":361},{},[362],{"type":25,"value":138},{"type":25,"value":364},": 设计页面结构和元素布局",{"type":19,"tag":44,"props":366,"children":367},{},[368,373,378,383],{"type":19,"tag":48,"props":369,"children":370},{},[371],{"type":25,"value":372},"选择合适的页面模板",{"type":19,"tag":48,"props":374,"children":375},{},[376],{"type":25,"value":377},"规划组件布局和层次",{"type":19,"tag":48,"props":379,"children":380},{},[381],{"type":25,"value":382},"确定响应式断点",{"type":19,"tag":48,"props":384,"children":385},{},[386],{"type":25,"value":387},"生成页面结构树",{"type":19,"tag":125,"props":389,"children":391},{"id":390},"_3-内容生成智能体-content-agent",[392],{"type":25,"value":393},"3. 内容生成智能体 (Content Agent)",{"type":19,"tag":27,"props":395,"children":396},{},[397,401],{"type":19,"tag":52,"props":398,"children":399},{},[400],{"type":25,"value":138},{"type":25,"value":402},": 创作文案和选择媒体资源",{"type":19,"tag":44,"props":404,"children":405},{},[406,411,416,421],{"type":19,"tag":48,"props":407,"children":408},{},[409],{"type":25,"value":410},"生成标题和正文内容",{"type":19,"tag":48,"props":412,"children":413},{},[414],{"type":25,"value":415},"匹配行业关键词",{"type":19,"tag":48,"props":417,"children":418},{},[419],{"type":25,"value":420},"选择配色方案",{"type":19,"tag":48,"props":422,"children":423},{},[424],{"type":25,"value":425},"推荐图片素材",{"type":19,"tag":125,"props":427,"children":429},{"id":428},"_4-代码生成智能体-code-agent",[430],{"type":25,"value":431},"4. 代码生成智能体 (Code Agent)",{"type":19,"tag":27,"props":433,"children":434},{},[435,439],{"type":19,"tag":52,"props":436,"children":437},{},[438],{"type":25,"value":138},{"type":25,"value":440},": 将设计转换为实际代码",{"type":19,"tag":44,"props":442,"children":443},{},[444,449,454,459],{"type":19,"tag":48,"props":445,"children":446},{},[447],{"type":25,"value":448},"组装HTML结构",{"type":19,"tag":48,"props":450,"children":451},{},[452],{"type":25,"value":453},"应用CSS样式",{"type":19,"tag":48,"props":455,"children":456},{},[457],{"type":25,"value":458},"集成交互逻辑",{"type":19,"tag":48,"props":460,"children":461},{},[462],{"type":25,"value":463},"优化代码质量",{"type":19,"tag":20,"props":465,"children":467},{"id":466},"实时流式处理",[468],{"type":25,"value":466},{"type":19,"tag":38,"props":470,"children":472},{"id":471},"sse流式通信",[473],{"type":25,"value":474},"SSE流式通信",{"type":19,"tag":27,"props":476,"children":477},{},[478],{"type":25,"value":479},"系统采用Server-Sent Events实现实时的生成进度反馈：",{"type":19,"tag":175,"props":481,"children":483},{"className":177,"code":482,"language":179,"meta":7,"style":7},"// 服务端流式输出\nexport default defineEventHandler(async (event) => {\n  const stream = createEventStream(event)\n  \n  // 发送进度更新\n  await stream.push({\n    event: 'progress',\n    data: JSON.stringify({\n      step: 'layout',\n      progress: 30,\n      message: '正在规划页面布局...'\n    })\n  })\n  \n  // 发送组件数据\n  await stream.push({\n    event: 'component',\n    data: JSON.stringify(componentData)\n  })\n  \n  return stream.send()\n})\n",[484],{"type":19,"tag":182,"props":485,"children":486},{"__ignoreMap":7},[487,496,550,576,583,591,614,632,659,676,693,706,715,724,732,741,761,778,803,811,819,841],{"type":19,"tag":186,"props":488,"children":489},{"class":188,"line":189},[490],{"type":19,"tag":186,"props":491,"children":493},{"style":492},"--shiki-default:#6A737D;--shiki-dark:#6A737D",[494],{"type":25,"value":495},"// 服务端流式输出\n",{"type":19,"tag":186,"props":497,"children":498},{"class":188,"line":210},[499,504,509,514,519,524,529,535,540,545],{"type":19,"tag":186,"props":500,"children":501},{"style":214},[502],{"type":25,"value":503},"export",{"type":19,"tag":186,"props":505,"children":506},{"style":214},[507],{"type":25,"value":508}," default",{"type":19,"tag":186,"props":510,"children":511},{"style":199},[512],{"type":25,"value":513}," defineEventHandler",{"type":19,"tag":186,"props":515,"children":516},{"style":193},[517],{"type":25,"value":518},"(",{"type":19,"tag":186,"props":520,"children":521},{"style":214},[522],{"type":25,"value":523},"async",{"type":19,"tag":186,"props":525,"children":526},{"style":193},[527],{"type":25,"value":528}," (",{"type":19,"tag":186,"props":530,"children":532},{"style":531},"--shiki-default:#FFAB70;--shiki-dark:#FFAB70",[533],{"type":25,"value":534},"event",{"type":19,"tag":186,"props":536,"children":537},{"style":193},[538],{"type":25,"value":539},") ",{"type":19,"tag":186,"props":541,"children":542},{"style":214},[543],{"type":25,"value":544},"=>",{"type":19,"tag":186,"props":546,"children":547},{"style":193},[548],{"type":25,"value":549}," {\n",{"type":19,"tag":186,"props":551,"children":552},{"class":188,"line":247},[553,557,562,566,571],{"type":19,"tag":186,"props":554,"children":555},{"style":214},[556],{"type":25,"value":217},{"type":19,"tag":186,"props":558,"children":559},{"style":220},[560],{"type":25,"value":561}," stream",{"type":19,"tag":186,"props":563,"children":564},{"style":214},[565],{"type":25,"value":228},{"type":19,"tag":186,"props":567,"children":568},{"style":199},[569],{"type":25,"value":570}," createEventStream",{"type":19,"tag":186,"props":572,"children":573},{"style":193},[574],{"type":25,"value":575},"(event)\n",{"type":19,"tag":186,"props":577,"children":578},{"class":188,"line":256},[579],{"type":19,"tag":186,"props":580,"children":581},{"style":193},[582],{"type":25,"value":307},{"type":19,"tag":186,"props":584,"children":585},{"class":188,"line":265},[586],{"type":19,"tag":186,"props":587,"children":588},{"style":492},[589],{"type":25,"value":590},"  // 发送进度更新\n",{"type":19,"tag":186,"props":592,"children":593},{"class":188,"line":274},[594,599,604,609],{"type":19,"tag":186,"props":595,"children":596},{"style":214},[597],{"type":25,"value":598},"  await",{"type":19,"tag":186,"props":600,"children":601},{"style":193},[602],{"type":25,"value":603}," stream.",{"type":19,"tag":186,"props":605,"children":606},{"style":199},[607],{"type":25,"value":608},"push",{"type":19,"tag":186,"props":610,"children":611},{"style":193},[612],{"type":25,"value":613},"({\n",{"type":19,"tag":186,"props":615,"children":616},{"class":188,"line":283},[617,622,627],{"type":19,"tag":186,"props":618,"children":619},{"style":193},[620],{"type":25,"value":621},"    event: ",{"type":19,"tag":186,"props":623,"children":624},{"style":231},[625],{"type":25,"value":626},"'progress'",{"type":19,"tag":186,"props":628,"children":629},{"style":193},[630],{"type":25,"value":631},",\n",{"type":19,"tag":186,"props":633,"children":634},{"class":188,"line":292},[635,640,645,650,655],{"type":19,"tag":186,"props":636,"children":637},{"style":193},[638],{"type":25,"value":639},"    data: ",{"type":19,"tag":186,"props":641,"children":642},{"style":220},[643],{"type":25,"value":644},"JSON",{"type":19,"tag":186,"props":646,"children":647},{"style":193},[648],{"type":25,"value":649},".",{"type":19,"tag":186,"props":651,"children":652},{"style":199},[653],{"type":25,"value":654},"stringify",{"type":19,"tag":186,"props":656,"children":657},{"style":193},[658],{"type":25,"value":613},{"type":19,"tag":186,"props":660,"children":661},{"class":188,"line":301},[662,667,672],{"type":19,"tag":186,"props":663,"children":664},{"style":193},[665],{"type":25,"value":666},"      step: ",{"type":19,"tag":186,"props":668,"children":669},{"style":231},[670],{"type":25,"value":671},"'layout'",{"type":19,"tag":186,"props":673,"children":674},{"style":193},[675],{"type":25,"value":631},{"type":19,"tag":186,"props":677,"children":678},{"class":188,"line":310},[679,684,689],{"type":19,"tag":186,"props":680,"children":681},{"style":193},[682],{"type":25,"value":683},"      progress: ",{"type":19,"tag":186,"props":685,"children":686},{"style":220},[687],{"type":25,"value":688},"30",{"type":19,"tag":186,"props":690,"children":691},{"style":193},[692],{"type":25,"value":631},{"type":19,"tag":186,"props":694,"children":695},{"class":188,"line":344},[696,701],{"type":19,"tag":186,"props":697,"children":698},{"style":193},[699],{"type":25,"value":700},"      message: ",{"type":19,"tag":186,"props":702,"children":703},{"style":231},[704],{"type":25,"value":705},"'正在规划页面布局...'\n",{"type":19,"tag":186,"props":707,"children":709},{"class":188,"line":708},12,[710],{"type":19,"tag":186,"props":711,"children":712},{"style":193},[713],{"type":25,"value":714},"    })\n",{"type":19,"tag":186,"props":716,"children":718},{"class":188,"line":717},13,[719],{"type":19,"tag":186,"props":720,"children":721},{"style":193},[722],{"type":25,"value":723},"  })\n",{"type":19,"tag":186,"props":725,"children":727},{"class":188,"line":726},14,[728],{"type":19,"tag":186,"props":729,"children":730},{"style":193},[731],{"type":25,"value":307},{"type":19,"tag":186,"props":733,"children":735},{"class":188,"line":734},15,[736],{"type":19,"tag":186,"props":737,"children":738},{"style":492},[739],{"type":25,"value":740},"  // 发送组件数据\n",{"type":19,"tag":186,"props":742,"children":744},{"class":188,"line":743},16,[745,749,753,757],{"type":19,"tag":186,"props":746,"children":747},{"style":214},[748],{"type":25,"value":598},{"type":19,"tag":186,"props":750,"children":751},{"style":193},[752],{"type":25,"value":603},{"type":19,"tag":186,"props":754,"children":755},{"style":199},[756],{"type":25,"value":608},{"type":19,"tag":186,"props":758,"children":759},{"style":193},[760],{"type":25,"value":613},{"type":19,"tag":186,"props":762,"children":764},{"class":188,"line":763},17,[765,769,774],{"type":19,"tag":186,"props":766,"children":767},{"style":193},[768],{"type":25,"value":621},{"type":19,"tag":186,"props":770,"children":771},{"style":231},[772],{"type":25,"value":773},"'component'",{"type":19,"tag":186,"props":775,"children":776},{"style":193},[777],{"type":25,"value":631},{"type":19,"tag":186,"props":779,"children":781},{"class":188,"line":780},18,[782,786,790,794,798],{"type":19,"tag":186,"props":783,"children":784},{"style":193},[785],{"type":25,"value":639},{"type":19,"tag":186,"props":787,"children":788},{"style":220},[789],{"type":25,"value":644},{"type":19,"tag":186,"props":791,"children":792},{"style":193},[793],{"type":25,"value":649},{"type":19,"tag":186,"props":795,"children":796},{"style":199},[797],{"type":25,"value":654},{"type":19,"tag":186,"props":799,"children":800},{"style":193},[801],{"type":25,"value":802},"(componentData)\n",{"type":19,"tag":186,"props":804,"children":806},{"class":188,"line":805},19,[807],{"type":19,"tag":186,"props":808,"children":809},{"style":193},[810],{"type":25,"value":723},{"type":19,"tag":186,"props":812,"children":814},{"class":188,"line":813},20,[815],{"type":19,"tag":186,"props":816,"children":817},{"style":193},[818],{"type":25,"value":307},{"type":19,"tag":186,"props":820,"children":822},{"class":188,"line":821},21,[823,827,831,836],{"type":19,"tag":186,"props":824,"children":825},{"style":214},[826],{"type":25,"value":316},{"type":19,"tag":186,"props":828,"children":829},{"style":193},[830],{"type":25,"value":603},{"type":19,"tag":186,"props":832,"children":833},{"style":199},[834],{"type":25,"value":835},"send",{"type":19,"tag":186,"props":837,"children":838},{"style":193},[839],{"type":25,"value":840},"()\n",{"type":19,"tag":186,"props":842,"children":844},{"class":188,"line":843},22,[845],{"type":19,"tag":186,"props":846,"children":847},{"style":193},[848],{"type":25,"value":849},"})\n",{"type":19,"tag":38,"props":851,"children":853},{"id":852},"前端进度管理",[854],{"type":25,"value":852},{"type":19,"tag":175,"props":856,"children":858},{"className":177,"code":857,"language":179,"meta":7,"style":7},"// composables/useAIAgentProgress.ts\nexport const useAIAgentProgress = () => {\n  const progress = ref(0)\n  const currentStep = ref('')\n  const components = ref([])\n  \n  const connectToStream = async (pageId: string) => {\n    const eventSource = new EventSource(`/api/ai/generate/${pageId}`)\n    \n    eventSource.addEventListener('progress', (e) => {\n      const data = JSON.parse(e.data)\n      progress.value = data.progress\n      currentStep.value = data.message\n    })\n    \n    eventSource.addEventListener('component', (e) => {\n      const component = JSON.parse(e.data)\n      components.value.push(component)\n    })\n  }\n  \n  return { progress, currentStep, components, connectToStream }\n}\n",[859],{"type":19,"tag":182,"props":860,"children":861},{"__ignoreMap":7},[862,870,904,939,972,997,1004,1055,1104,1112,1155,1191,1209,1226,1233,1240,1279,1311,1328,1335,1343,1350,1362],{"type":19,"tag":186,"props":863,"children":864},{"class":188,"line":189},[865],{"type":19,"tag":186,"props":866,"children":867},{"style":492},[868],{"type":25,"value":869},"// composables/useAIAgentProgress.ts\n",{"type":19,"tag":186,"props":871,"children":872},{"class":188,"line":210},[873,877,882,887,891,896,900],{"type":19,"tag":186,"props":874,"children":875},{"style":214},[876],{"type":25,"value":503},{"type":19,"tag":186,"props":878,"children":879},{"style":214},[880],{"type":25,"value":881}," const",{"type":19,"tag":186,"props":883,"children":884},{"style":199},[885],{"type":25,"value":886}," useAIAgentProgress",{"type":19,"tag":186,"props":888,"children":889},{"style":214},[890],{"type":25,"value":228},{"type":19,"tag":186,"props":892,"children":893},{"style":193},[894],{"type":25,"value":895}," () ",{"type":19,"tag":186,"props":897,"children":898},{"style":214},[899],{"type":25,"value":544},{"type":19,"tag":186,"props":901,"children":902},{"style":193},[903],{"type":25,"value":549},{"type":19,"tag":186,"props":905,"children":906},{"class":188,"line":247},[907,911,916,920,925,929,934],{"type":19,"tag":186,"props":908,"children":909},{"style":214},[910],{"type":25,"value":217},{"type":19,"tag":186,"props":912,"children":913},{"style":220},[914],{"type":25,"value":915}," progress",{"type":19,"tag":186,"props":917,"children":918},{"style":214},[919],{"type":25,"value":228},{"type":19,"tag":186,"props":921,"children":922},{"style":199},[923],{"type":25,"value":924}," ref",{"type":19,"tag":186,"props":926,"children":927},{"style":193},[928],{"type":25,"value":518},{"type":19,"tag":186,"props":930,"children":931},{"style":220},[932],{"type":25,"value":933},"0",{"type":19,"tag":186,"props":935,"children":936},{"style":193},[937],{"type":25,"value":938},")\n",{"type":19,"tag":186,"props":940,"children":941},{"class":188,"line":256},[942,946,951,955,959,963,968],{"type":19,"tag":186,"props":943,"children":944},{"style":214},[945],{"type":25,"value":217},{"type":19,"tag":186,"props":947,"children":948},{"style":220},[949],{"type":25,"value":950}," currentStep",{"type":19,"tag":186,"props":952,"children":953},{"style":214},[954],{"type":25,"value":228},{"type":19,"tag":186,"props":956,"children":957},{"style":199},[958],{"type":25,"value":924},{"type":19,"tag":186,"props":960,"children":961},{"style":193},[962],{"type":25,"value":518},{"type":19,"tag":186,"props":964,"children":965},{"style":231},[966],{"type":25,"value":967},"''",{"type":19,"tag":186,"props":969,"children":970},{"style":193},[971],{"type":25,"value":938},{"type":19,"tag":186,"props":973,"children":974},{"class":188,"line":265},[975,979,984,988,992],{"type":19,"tag":186,"props":976,"children":977},{"style":214},[978],{"type":25,"value":217},{"type":19,"tag":186,"props":980,"children":981},{"style":220},[982],{"type":25,"value":983}," components",{"type":19,"tag":186,"props":985,"children":986},{"style":214},[987],{"type":25,"value":228},{"type":19,"tag":186,"props":989,"children":990},{"style":199},[991],{"type":25,"value":924},{"type":19,"tag":186,"props":993,"children":994},{"style":193},[995],{"type":25,"value":996},"([])\n",{"type":19,"tag":186,"props":998,"children":999},{"class":188,"line":274},[1000],{"type":19,"tag":186,"props":1001,"children":1002},{"style":193},[1003],{"type":25,"value":307},{"type":19,"tag":186,"props":1005,"children":1006},{"class":188,"line":283},[1007,1011,1016,1020,1025,1029,1034,1038,1043,1047,1051],{"type":19,"tag":186,"props":1008,"children":1009},{"style":214},[1010],{"type":25,"value":217},{"type":19,"tag":186,"props":1012,"children":1013},{"style":199},[1014],{"type":25,"value":1015}," connectToStream",{"type":19,"tag":186,"props":1017,"children":1018},{"style":214},[1019],{"type":25,"value":228},{"type":19,"tag":186,"props":1021,"children":1022},{"style":214},[1023],{"type":25,"value":1024}," async",{"type":19,"tag":186,"props":1026,"children":1027},{"style":193},[1028],{"type":25,"value":528},{"type":19,"tag":186,"props":1030,"children":1031},{"style":531},[1032],{"type":25,"value":1033},"pageId",{"type":19,"tag":186,"props":1035,"children":1036},{"style":214},[1037],{"type":25,"value":173},{"type":19,"tag":186,"props":1039,"children":1040},{"style":220},[1041],{"type":25,"value":1042}," string",{"type":19,"tag":186,"props":1044,"children":1045},{"style":193},[1046],{"type":25,"value":539},{"type":19,"tag":186,"props":1048,"children":1049},{"style":214},[1050],{"type":25,"value":544},{"type":19,"tag":186,"props":1052,"children":1053},{"style":193},[1054],{"type":25,"value":549},{"type":19,"tag":186,"props":1056,"children":1057},{"class":188,"line":292},[1058,1063,1068,1072,1077,1082,1086,1091,1095,1100],{"type":19,"tag":186,"props":1059,"children":1060},{"style":214},[1061],{"type":25,"value":1062},"    const",{"type":19,"tag":186,"props":1064,"children":1065},{"style":220},[1066],{"type":25,"value":1067}," eventSource",{"type":19,"tag":186,"props":1069,"children":1070},{"style":214},[1071],{"type":25,"value":228},{"type":19,"tag":186,"props":1073,"children":1074},{"style":214},[1075],{"type":25,"value":1076}," new",{"type":19,"tag":186,"props":1078,"children":1079},{"style":199},[1080],{"type":25,"value":1081}," EventSource",{"type":19,"tag":186,"props":1083,"children":1084},{"style":193},[1085],{"type":25,"value":518},{"type":19,"tag":186,"props":1087,"children":1088},{"style":231},[1089],{"type":25,"value":1090},"`/api/ai/generate/${",{"type":19,"tag":186,"props":1092,"children":1093},{"style":193},[1094],{"type":25,"value":1033},{"type":19,"tag":186,"props":1096,"children":1097},{"style":231},[1098],{"type":25,"value":1099},"}`",{"type":19,"tag":186,"props":1101,"children":1102},{"style":193},[1103],{"type":25,"value":938},{"type":19,"tag":186,"props":1105,"children":1106},{"class":188,"line":301},[1107],{"type":19,"tag":186,"props":1108,"children":1109},{"style":193},[1110],{"type":25,"value":1111},"    \n",{"type":19,"tag":186,"props":1113,"children":1114},{"class":188,"line":310},[1115,1120,1125,1129,1133,1138,1143,1147,1151],{"type":19,"tag":186,"props":1116,"children":1117},{"style":193},[1118],{"type":25,"value":1119},"    eventSource.",{"type":19,"tag":186,"props":1121,"children":1122},{"style":199},[1123],{"type":25,"value":1124},"addEventListener",{"type":19,"tag":186,"props":1126,"children":1127},{"style":193},[1128],{"type":25,"value":518},{"type":19,"tag":186,"props":1130,"children":1131},{"style":231},[1132],{"type":25,"value":626},{"type":19,"tag":186,"props":1134,"children":1135},{"style":193},[1136],{"type":25,"value":1137},", (",{"type":19,"tag":186,"props":1139,"children":1140},{"style":531},[1141],{"type":25,"value":1142},"e",{"type":19,"tag":186,"props":1144,"children":1145},{"style":193},[1146],{"type":25,"value":539},{"type":19,"tag":186,"props":1148,"children":1149},{"style":214},[1150],{"type":25,"value":544},{"type":19,"tag":186,"props":1152,"children":1153},{"style":193},[1154],{"type":25,"value":549},{"type":19,"tag":186,"props":1156,"children":1157},{"class":188,"line":344},[1158,1163,1168,1172,1177,1181,1186],{"type":19,"tag":186,"props":1159,"children":1160},{"style":214},[1161],{"type":25,"value":1162},"      const",{"type":19,"tag":186,"props":1164,"children":1165},{"style":220},[1166],{"type":25,"value":1167}," data",{"type":19,"tag":186,"props":1169,"children":1170},{"style":214},[1171],{"type":25,"value":228},{"type":19,"tag":186,"props":1173,"children":1174},{"style":220},[1175],{"type":25,"value":1176}," JSON",{"type":19,"tag":186,"props":1178,"children":1179},{"style":193},[1180],{"type":25,"value":649},{"type":19,"tag":186,"props":1182,"children":1183},{"style":199},[1184],{"type":25,"value":1185},"parse",{"type":19,"tag":186,"props":1187,"children":1188},{"style":193},[1189],{"type":25,"value":1190},"(e.data)\n",{"type":19,"tag":186,"props":1192,"children":1193},{"class":188,"line":708},[1194,1199,1204],{"type":19,"tag":186,"props":1195,"children":1196},{"style":193},[1197],{"type":25,"value":1198},"      progress.value ",{"type":19,"tag":186,"props":1200,"children":1201},{"style":214},[1202],{"type":25,"value":1203},"=",{"type":19,"tag":186,"props":1205,"children":1206},{"style":193},[1207],{"type":25,"value":1208}," data.progress\n",{"type":19,"tag":186,"props":1210,"children":1211},{"class":188,"line":717},[1212,1217,1221],{"type":19,"tag":186,"props":1213,"children":1214},{"style":193},[1215],{"type":25,"value":1216},"      currentStep.value ",{"type":19,"tag":186,"props":1218,"children":1219},{"style":214},[1220],{"type":25,"value":1203},{"type":19,"tag":186,"props":1222,"children":1223},{"style":193},[1224],{"type":25,"value":1225}," data.message\n",{"type":19,"tag":186,"props":1227,"children":1228},{"class":188,"line":726},[1229],{"type":19,"tag":186,"props":1230,"children":1231},{"style":193},[1232],{"type":25,"value":714},{"type":19,"tag":186,"props":1234,"children":1235},{"class":188,"line":734},[1236],{"type":19,"tag":186,"props":1237,"children":1238},{"style":193},[1239],{"type":25,"value":1111},{"type":19,"tag":186,"props":1241,"children":1242},{"class":188,"line":743},[1243,1247,1251,1255,1259,1263,1267,1271,1275],{"type":19,"tag":186,"props":1244,"children":1245},{"style":193},[1246],{"type":25,"value":1119},{"type":19,"tag":186,"props":1248,"children":1249},{"style":199},[1250],{"type":25,"value":1124},{"type":19,"tag":186,"props":1252,"children":1253},{"style":193},[1254],{"type":25,"value":518},{"type":19,"tag":186,"props":1256,"children":1257},{"style":231},[1258],{"type":25,"value":773},{"type":19,"tag":186,"props":1260,"children":1261},{"style":193},[1262],{"type":25,"value":1137},{"type":19,"tag":186,"props":1264,"children":1265},{"style":531},[1266],{"type":25,"value":1142},{"type":19,"tag":186,"props":1268,"children":1269},{"style":193},[1270],{"type":25,"value":539},{"type":19,"tag":186,"props":1272,"children":1273},{"style":214},[1274],{"type":25,"value":544},{"type":19,"tag":186,"props":1276,"children":1277},{"style":193},[1278],{"type":25,"value":549},{"type":19,"tag":186,"props":1280,"children":1281},{"class":188,"line":763},[1282,1286,1291,1295,1299,1303,1307],{"type":19,"tag":186,"props":1283,"children":1284},{"style":214},[1285],{"type":25,"value":1162},{"type":19,"tag":186,"props":1287,"children":1288},{"style":220},[1289],{"type":25,"value":1290}," component",{"type":19,"tag":186,"props":1292,"children":1293},{"style":214},[1294],{"type":25,"value":228},{"type":19,"tag":186,"props":1296,"children":1297},{"style":220},[1298],{"type":25,"value":1176},{"type":19,"tag":186,"props":1300,"children":1301},{"style":193},[1302],{"type":25,"value":649},{"type":19,"tag":186,"props":1304,"children":1305},{"style":199},[1306],{"type":25,"value":1185},{"type":19,"tag":186,"props":1308,"children":1309},{"style":193},[1310],{"type":25,"value":1190},{"type":19,"tag":186,"props":1312,"children":1313},{"class":188,"line":780},[1314,1319,1323],{"type":19,"tag":186,"props":1315,"children":1316},{"style":193},[1317],{"type":25,"value":1318},"      components.value.",{"type":19,"tag":186,"props":1320,"children":1321},{"style":199},[1322],{"type":25,"value":608},{"type":19,"tag":186,"props":1324,"children":1325},{"style":193},[1326],{"type":25,"value":1327},"(component)\n",{"type":19,"tag":186,"props":1329,"children":1330},{"class":188,"line":805},[1331],{"type":19,"tag":186,"props":1332,"children":1333},{"style":193},[1334],{"type":25,"value":714},{"type":19,"tag":186,"props":1336,"children":1337},{"class":188,"line":813},[1338],{"type":19,"tag":186,"props":1339,"children":1340},{"style":193},[1341],{"type":25,"value":1342},"  }\n",{"type":19,"tag":186,"props":1344,"children":1345},{"class":188,"line":821},[1346],{"type":19,"tag":186,"props":1347,"children":1348},{"style":193},[1349],{"type":25,"value":307},{"type":19,"tag":186,"props":1351,"children":1352},{"class":188,"line":843},[1353,1357],{"type":19,"tag":186,"props":1354,"children":1355},{"style":214},[1356],{"type":25,"value":316},{"type":19,"tag":186,"props":1358,"children":1359},{"style":193},[1360],{"type":25,"value":1361}," { progress, currentStep, components, connectToStream }\n",{"type":19,"tag":186,"props":1363,"children":1365},{"class":188,"line":1364},23,[1366],{"type":19,"tag":186,"props":1367,"children":1368},{"style":193},[1369],{"type":25,"value":244},{"type":19,"tag":20,"props":1371,"children":1373},{"id":1372},"模块化组装系统",[1374],{"type":25,"value":1372},{"type":19,"tag":38,"props":1376,"children":1378},{"id":1377},"组件选择算法",[1379],{"type":25,"value":1377},{"type":19,"tag":27,"props":1381,"children":1382},{},[1383],{"type":25,"value":1384},"基于用户需求智能选择和组装页面组件：",{"type":19,"tag":175,"props":1386,"children":1388},{"className":177,"code":1387,"language":179,"meta":7,"style":7},"interface ComponentMetadata {\n  id: string\n  type: ComponentType\n  category: string\n  designStyle: DesignStyle[]\n  layoutType: LayoutType\n  complexity: ComplexityLevel\n  industry: string[]\n}\n\nfunction selectComponents(\n  requirements: Requirements,\n  count: number\n): ComponentMetadata[] {\n  // 1. 按行业过滤\n  const industryMatched = allComponents.filter(c => \n    c.industry.includes(requirements.industry)\n  )\n  \n  // 2. 按设计风格评分\n  const scored = industryMatched.map(c => ({\n    component: c,\n    score: calculateStyleScore(c, requirements.style)\n  }))\n  \n  // 3. 选择最佳匹配\n  return scored\n    .sort((a, b) => b.score - a.score)\n    .slice(0, count)\n    .map(s => s.component)\n}\n",[1389],{"type":19,"tag":182,"props":1390,"children":1391},{"__ignoreMap":7},[1392,1409,1426,1443,1459,1481,1498,1515,1535,1542,1551,1569,1590,1607,1628,1636,1681,1699,1707,1714,1722,1765,1773,1791,1800,1808,1817,1830,1887,1913,1943],{"type":19,"tag":186,"props":1393,"children":1394},{"class":188,"line":189},[1395,1400,1405],{"type":19,"tag":186,"props":1396,"children":1397},{"style":214},[1398],{"type":25,"value":1399},"interface",{"type":19,"tag":186,"props":1401,"children":1402},{"style":199},[1403],{"type":25,"value":1404}," ComponentMetadata",{"type":19,"tag":186,"props":1406,"children":1407},{"style":193},[1408],{"type":25,"value":549},{"type":19,"tag":186,"props":1410,"children":1411},{"class":188,"line":210},[1412,1417,1421],{"type":19,"tag":186,"props":1413,"children":1414},{"style":531},[1415],{"type":25,"value":1416},"  id",{"type":19,"tag":186,"props":1418,"children":1419},{"style":214},[1420],{"type":25,"value":173},{"type":19,"tag":186,"props":1422,"children":1423},{"style":220},[1424],{"type":25,"value":1425}," string\n",{"type":19,"tag":186,"props":1427,"children":1428},{"class":188,"line":247},[1429,1434,1438],{"type":19,"tag":186,"props":1430,"children":1431},{"style":531},[1432],{"type":25,"value":1433},"  type",{"type":19,"tag":186,"props":1435,"children":1436},{"style":214},[1437],{"type":25,"value":173},{"type":19,"tag":186,"props":1439,"children":1440},{"style":199},[1441],{"type":25,"value":1442}," ComponentType\n",{"type":19,"tag":186,"props":1444,"children":1445},{"class":188,"line":256},[1446,1451,1455],{"type":19,"tag":186,"props":1447,"children":1448},{"style":531},[1449],{"type":25,"value":1450},"  category",{"type":19,"tag":186,"props":1452,"children":1453},{"style":214},[1454],{"type":25,"value":173},{"type":19,"tag":186,"props":1456,"children":1457},{"style":220},[1458],{"type":25,"value":1425},{"type":19,"tag":186,"props":1460,"children":1461},{"class":188,"line":265},[1462,1467,1471,1476],{"type":19,"tag":186,"props":1463,"children":1464},{"style":531},[1465],{"type":25,"value":1466},"  designStyle",{"type":19,"tag":186,"props":1468,"children":1469},{"style":214},[1470],{"type":25,"value":173},{"type":19,"tag":186,"props":1472,"children":1473},{"style":199},[1474],{"type":25,"value":1475}," DesignStyle",{"type":19,"tag":186,"props":1477,"children":1478},{"style":193},[1479],{"type":25,"value":1480},"[]\n",{"type":19,"tag":186,"props":1482,"children":1483},{"class":188,"line":274},[1484,1489,1493],{"type":19,"tag":186,"props":1485,"children":1486},{"style":531},[1487],{"type":25,"value":1488},"  layoutType",{"type":19,"tag":186,"props":1490,"children":1491},{"style":214},[1492],{"type":25,"value":173},{"type":19,"tag":186,"props":1494,"children":1495},{"style":199},[1496],{"type":25,"value":1497}," LayoutType\n",{"type":19,"tag":186,"props":1499,"children":1500},{"class":188,"line":283},[1501,1506,1510],{"type":19,"tag":186,"props":1502,"children":1503},{"style":531},[1504],{"type":25,"value":1505},"  complexity",{"type":19,"tag":186,"props":1507,"children":1508},{"style":214},[1509],{"type":25,"value":173},{"type":19,"tag":186,"props":1511,"children":1512},{"style":199},[1513],{"type":25,"value":1514}," ComplexityLevel\n",{"type":19,"tag":186,"props":1516,"children":1517},{"class":188,"line":292},[1518,1523,1527,1531],{"type":19,"tag":186,"props":1519,"children":1520},{"style":531},[1521],{"type":25,"value":1522},"  industry",{"type":19,"tag":186,"props":1524,"children":1525},{"style":214},[1526],{"type":25,"value":173},{"type":19,"tag":186,"props":1528,"children":1529},{"style":220},[1530],{"type":25,"value":1042},{"type":19,"tag":186,"props":1532,"children":1533},{"style":193},[1534],{"type":25,"value":1480},{"type":19,"tag":186,"props":1536,"children":1537},{"class":188,"line":301},[1538],{"type":19,"tag":186,"props":1539,"children":1540},{"style":193},[1541],{"type":25,"value":244},{"type":19,"tag":186,"props":1543,"children":1544},{"class":188,"line":310},[1545],{"type":19,"tag":186,"props":1546,"children":1548},{"emptyLinePlaceholder":1547},true,[1549],{"type":25,"value":1550},"\n",{"type":19,"tag":186,"props":1552,"children":1553},{"class":188,"line":344},[1554,1559,1564],{"type":19,"tag":186,"props":1555,"children":1556},{"style":214},[1557],{"type":25,"value":1558},"function",{"type":19,"tag":186,"props":1560,"children":1561},{"style":199},[1562],{"type":25,"value":1563}," selectComponents",{"type":19,"tag":186,"props":1565,"children":1566},{"style":193},[1567],{"type":25,"value":1568},"(\n",{"type":19,"tag":186,"props":1570,"children":1571},{"class":188,"line":708},[1572,1577,1581,1586],{"type":19,"tag":186,"props":1573,"children":1574},{"style":531},[1575],{"type":25,"value":1576},"  requirements",{"type":19,"tag":186,"props":1578,"children":1579},{"style":214},[1580],{"type":25,"value":173},{"type":19,"tag":186,"props":1582,"children":1583},{"style":199},[1584],{"type":25,"value":1585}," Requirements",{"type":19,"tag":186,"props":1587,"children":1588},{"style":193},[1589],{"type":25,"value":631},{"type":19,"tag":186,"props":1591,"children":1592},{"class":188,"line":717},[1593,1598,1602],{"type":19,"tag":186,"props":1594,"children":1595},{"style":531},[1596],{"type":25,"value":1597},"  count",{"type":19,"tag":186,"props":1599,"children":1600},{"style":214},[1601],{"type":25,"value":173},{"type":19,"tag":186,"props":1603,"children":1604},{"style":220},[1605],{"type":25,"value":1606}," number\n",{"type":19,"tag":186,"props":1608,"children":1609},{"class":188,"line":726},[1610,1615,1619,1623],{"type":19,"tag":186,"props":1611,"children":1612},{"style":193},[1613],{"type":25,"value":1614},")",{"type":19,"tag":186,"props":1616,"children":1617},{"style":214},[1618],{"type":25,"value":173},{"type":19,"tag":186,"props":1620,"children":1621},{"style":199},[1622],{"type":25,"value":1404},{"type":19,"tag":186,"props":1624,"children":1625},{"style":193},[1626],{"type":25,"value":1627},"[] {\n",{"type":19,"tag":186,"props":1629,"children":1630},{"class":188,"line":734},[1631],{"type":19,"tag":186,"props":1632,"children":1633},{"style":492},[1634],{"type":25,"value":1635},"  // 1. 按行业过滤\n",{"type":19,"tag":186,"props":1637,"children":1638},{"class":188,"line":743},[1639,1643,1648,1652,1657,1662,1666,1671,1676],{"type":19,"tag":186,"props":1640,"children":1641},{"style":214},[1642],{"type":25,"value":217},{"type":19,"tag":186,"props":1644,"children":1645},{"style":220},[1646],{"type":25,"value":1647}," industryMatched",{"type":19,"tag":186,"props":1649,"children":1650},{"style":214},[1651],{"type":25,"value":228},{"type":19,"tag":186,"props":1653,"children":1654},{"style":193},[1655],{"type":25,"value":1656}," allComponents.",{"type":19,"tag":186,"props":1658,"children":1659},{"style":199},[1660],{"type":25,"value":1661},"filter",{"type":19,"tag":186,"props":1663,"children":1664},{"style":193},[1665],{"type":25,"value":518},{"type":19,"tag":186,"props":1667,"children":1668},{"style":531},[1669],{"type":25,"value":1670},"c",{"type":19,"tag":186,"props":1672,"children":1673},{"style":214},[1674],{"type":25,"value":1675}," =>",{"type":19,"tag":186,"props":1677,"children":1678},{"style":193},[1679],{"type":25,"value":1680}," \n",{"type":19,"tag":186,"props":1682,"children":1683},{"class":188,"line":763},[1684,1689,1694],{"type":19,"tag":186,"props":1685,"children":1686},{"style":193},[1687],{"type":25,"value":1688},"    c.industry.",{"type":19,"tag":186,"props":1690,"children":1691},{"style":199},[1692],{"type":25,"value":1693},"includes",{"type":19,"tag":186,"props":1695,"children":1696},{"style":193},[1697],{"type":25,"value":1698},"(requirements.industry)\n",{"type":19,"tag":186,"props":1700,"children":1701},{"class":188,"line":780},[1702],{"type":19,"tag":186,"props":1703,"children":1704},{"style":193},[1705],{"type":25,"value":1706},"  )\n",{"type":19,"tag":186,"props":1708,"children":1709},{"class":188,"line":805},[1710],{"type":19,"tag":186,"props":1711,"children":1712},{"style":193},[1713],{"type":25,"value":307},{"type":19,"tag":186,"props":1715,"children":1716},{"class":188,"line":813},[1717],{"type":19,"tag":186,"props":1718,"children":1719},{"style":492},[1720],{"type":25,"value":1721},"  // 2. 按设计风格评分\n",{"type":19,"tag":186,"props":1723,"children":1724},{"class":188,"line":821},[1725,1729,1734,1738,1743,1748,1752,1756,1760],{"type":19,"tag":186,"props":1726,"children":1727},{"style":214},[1728],{"type":25,"value":217},{"type":19,"tag":186,"props":1730,"children":1731},{"style":220},[1732],{"type":25,"value":1733}," scored",{"type":19,"tag":186,"props":1735,"children":1736},{"style":214},[1737],{"type":25,"value":228},{"type":19,"tag":186,"props":1739,"children":1740},{"style":193},[1741],{"type":25,"value":1742}," industryMatched.",{"type":19,"tag":186,"props":1744,"children":1745},{"style":199},[1746],{"type":25,"value":1747},"map",{"type":19,"tag":186,"props":1749,"children":1750},{"style":193},[1751],{"type":25,"value":518},{"type":19,"tag":186,"props":1753,"children":1754},{"style":531},[1755],{"type":25,"value":1670},{"type":19,"tag":186,"props":1757,"children":1758},{"style":214},[1759],{"type":25,"value":1675},{"type":19,"tag":186,"props":1761,"children":1762},{"style":193},[1763],{"type":25,"value":1764}," ({\n",{"type":19,"tag":186,"props":1766,"children":1767},{"class":188,"line":843},[1768],{"type":19,"tag":186,"props":1769,"children":1770},{"style":193},[1771],{"type":25,"value":1772},"    component: c,\n",{"type":19,"tag":186,"props":1774,"children":1775},{"class":188,"line":1364},[1776,1781,1786],{"type":19,"tag":186,"props":1777,"children":1778},{"style":193},[1779],{"type":25,"value":1780},"    score: ",{"type":19,"tag":186,"props":1782,"children":1783},{"style":199},[1784],{"type":25,"value":1785},"calculateStyleScore",{"type":19,"tag":186,"props":1787,"children":1788},{"style":193},[1789],{"type":25,"value":1790},"(c, requirements.style)\n",{"type":19,"tag":186,"props":1792,"children":1794},{"class":188,"line":1793},24,[1795],{"type":19,"tag":186,"props":1796,"children":1797},{"style":193},[1798],{"type":25,"value":1799},"  }))\n",{"type":19,"tag":186,"props":1801,"children":1803},{"class":188,"line":1802},25,[1804],{"type":19,"tag":186,"props":1805,"children":1806},{"style":193},[1807],{"type":25,"value":307},{"type":19,"tag":186,"props":1809,"children":1811},{"class":188,"line":1810},26,[1812],{"type":19,"tag":186,"props":1813,"children":1814},{"style":492},[1815],{"type":25,"value":1816},"  // 3. 选择最佳匹配\n",{"type":19,"tag":186,"props":1818,"children":1820},{"class":188,"line":1819},27,[1821,1825],{"type":19,"tag":186,"props":1822,"children":1823},{"style":214},[1824],{"type":25,"value":316},{"type":19,"tag":186,"props":1826,"children":1827},{"style":193},[1828],{"type":25,"value":1829}," scored\n",{"type":19,"tag":186,"props":1831,"children":1833},{"class":188,"line":1832},28,[1834,1839,1844,1849,1854,1859,1864,1868,1872,1877,1882],{"type":19,"tag":186,"props":1835,"children":1836},{"style":193},[1837],{"type":25,"value":1838},"    .",{"type":19,"tag":186,"props":1840,"children":1841},{"style":199},[1842],{"type":25,"value":1843},"sort",{"type":19,"tag":186,"props":1845,"children":1846},{"style":193},[1847],{"type":25,"value":1848},"((",{"type":19,"tag":186,"props":1850,"children":1851},{"style":531},[1852],{"type":25,"value":1853},"a",{"type":19,"tag":186,"props":1855,"children":1856},{"style":193},[1857],{"type":25,"value":1858},", ",{"type":19,"tag":186,"props":1860,"children":1861},{"style":531},[1862],{"type":25,"value":1863},"b",{"type":19,"tag":186,"props":1865,"children":1866},{"style":193},[1867],{"type":25,"value":539},{"type":19,"tag":186,"props":1869,"children":1870},{"style":214},[1871],{"type":25,"value":544},{"type":19,"tag":186,"props":1873,"children":1874},{"style":193},[1875],{"type":25,"value":1876}," b.score ",{"type":19,"tag":186,"props":1878,"children":1879},{"style":214},[1880],{"type":25,"value":1881},"-",{"type":19,"tag":186,"props":1883,"children":1884},{"style":193},[1885],{"type":25,"value":1886}," a.score)\n",{"type":19,"tag":186,"props":1888,"children":1890},{"class":188,"line":1889},29,[1891,1895,1900,1904,1908],{"type":19,"tag":186,"props":1892,"children":1893},{"style":193},[1894],{"type":25,"value":1838},{"type":19,"tag":186,"props":1896,"children":1897},{"style":199},[1898],{"type":25,"value":1899},"slice",{"type":19,"tag":186,"props":1901,"children":1902},{"style":193},[1903],{"type":25,"value":518},{"type":19,"tag":186,"props":1905,"children":1906},{"style":220},[1907],{"type":25,"value":933},{"type":19,"tag":186,"props":1909,"children":1910},{"style":193},[1911],{"type":25,"value":1912},", count)\n",{"type":19,"tag":186,"props":1914,"children":1916},{"class":188,"line":1915},30,[1917,1921,1925,1929,1934,1938],{"type":19,"tag":186,"props":1918,"children":1919},{"style":193},[1920],{"type":25,"value":1838},{"type":19,"tag":186,"props":1922,"children":1923},{"style":199},[1924],{"type":25,"value":1747},{"type":19,"tag":186,"props":1926,"children":1927},{"style":193},[1928],{"type":25,"value":518},{"type":19,"tag":186,"props":1930,"children":1931},{"style":531},[1932],{"type":25,"value":1933},"s",{"type":19,"tag":186,"props":1935,"children":1936},{"style":214},[1937],{"type":25,"value":1675},{"type":19,"tag":186,"props":1939,"children":1940},{"style":193},[1941],{"type":25,"value":1942}," s.component)\n",{"type":19,"tag":186,"props":1944,"children":1946},{"class":188,"line":1945},31,[1947],{"type":19,"tag":186,"props":1948,"children":1949},{"style":193},[1950],{"type":25,"value":244},{"type":19,"tag":38,"props":1952,"children":1954},{"id":1953},"内容替换引擎",[1955],{"type":25,"value":1953},{"type":19,"tag":27,"props":1957,"children":1958},{},[1959],{"type":25,"value":1960},"自动将AI生成的内容注入到组件模板中：",{"type":19,"tag":175,"props":1962,"children":1964},{"className":177,"code":1963,"language":179,"meta":7,"style":7},"function replaceContentInHTML(\n  html: string,\n  replacements: ContentReplacements\n): string {\n  let result = html\n  \n  // 替换标题\n  if (replacements.title) {\n    result = result.replace(\n      /\u003Ch[1-6][^>]*>.*?\u003C\\/h[1-6]>/i,\n      `\u003Ch1>${replacements.title}\u003C/h1>`\n    )\n  }\n  \n  // 替换段落\n  if (replacements.paragraphs) {\n    const paragraphs = result.match(/\u003Cp[^>]*>.*?\u003C\\/p>/gi) || []\n    replacements.paragraphs.forEach((text, i) => {\n      if (paragraphs[i]) {\n        result = result.replace(paragraphs[i], `\u003Cp>${text}\u003C/p>`)\n      }\n    })\n  }\n  \n  return result\n}\n",[1965],{"type":19,"tag":182,"props":1966,"children":1967},{"__ignoreMap":7},[1968,1984,2004,2021,2040,2062,2069,2077,2090,2116,2203,2230,2238,2245,2252,2260,2272,2375,2416,2429,2472,2480,2487,2494,2501,2513],{"type":19,"tag":186,"props":1969,"children":1970},{"class":188,"line":189},[1971,1975,1980],{"type":19,"tag":186,"props":1972,"children":1973},{"style":214},[1974],{"type":25,"value":1558},{"type":19,"tag":186,"props":1976,"children":1977},{"style":199},[1978],{"type":25,"value":1979}," replaceContentInHTML",{"type":19,"tag":186,"props":1981,"children":1982},{"style":193},[1983],{"type":25,"value":1568},{"type":19,"tag":186,"props":1985,"children":1986},{"class":188,"line":210},[1987,1992,1996,2000],{"type":19,"tag":186,"props":1988,"children":1989},{"style":531},[1990],{"type":25,"value":1991},"  html",{"type":19,"tag":186,"props":1993,"children":1994},{"style":214},[1995],{"type":25,"value":173},{"type":19,"tag":186,"props":1997,"children":1998},{"style":220},[1999],{"type":25,"value":1042},{"type":19,"tag":186,"props":2001,"children":2002},{"style":193},[2003],{"type":25,"value":631},{"type":19,"tag":186,"props":2005,"children":2006},{"class":188,"line":247},[2007,2012,2016],{"type":19,"tag":186,"props":2008,"children":2009},{"style":531},[2010],{"type":25,"value":2011},"  replacements",{"type":19,"tag":186,"props":2013,"children":2014},{"style":214},[2015],{"type":25,"value":173},{"type":19,"tag":186,"props":2017,"children":2018},{"style":199},[2019],{"type":25,"value":2020}," ContentReplacements\n",{"type":19,"tag":186,"props":2022,"children":2023},{"class":188,"line":256},[2024,2028,2032,2036],{"type":19,"tag":186,"props":2025,"children":2026},{"style":193},[2027],{"type":25,"value":1614},{"type":19,"tag":186,"props":2029,"children":2030},{"style":214},[2031],{"type":25,"value":173},{"type":19,"tag":186,"props":2033,"children":2034},{"style":220},[2035],{"type":25,"value":1042},{"type":19,"tag":186,"props":2037,"children":2038},{"style":193},[2039],{"type":25,"value":549},{"type":19,"tag":186,"props":2041,"children":2042},{"class":188,"line":265},[2043,2048,2053,2057],{"type":19,"tag":186,"props":2044,"children":2045},{"style":214},[2046],{"type":25,"value":2047},"  let",{"type":19,"tag":186,"props":2049,"children":2050},{"style":193},[2051],{"type":25,"value":2052}," result ",{"type":19,"tag":186,"props":2054,"children":2055},{"style":214},[2056],{"type":25,"value":1203},{"type":19,"tag":186,"props":2058,"children":2059},{"style":193},[2060],{"type":25,"value":2061}," html\n",{"type":19,"tag":186,"props":2063,"children":2064},{"class":188,"line":274},[2065],{"type":19,"tag":186,"props":2066,"children":2067},{"style":193},[2068],{"type":25,"value":307},{"type":19,"tag":186,"props":2070,"children":2071},{"class":188,"line":283},[2072],{"type":19,"tag":186,"props":2073,"children":2074},{"style":492},[2075],{"type":25,"value":2076},"  // 替换标题\n",{"type":19,"tag":186,"props":2078,"children":2079},{"class":188,"line":292},[2080,2085],{"type":19,"tag":186,"props":2081,"children":2082},{"style":214},[2083],{"type":25,"value":2084},"  if",{"type":19,"tag":186,"props":2086,"children":2087},{"style":193},[2088],{"type":25,"value":2089}," (replacements.title) {\n",{"type":19,"tag":186,"props":2091,"children":2092},{"class":188,"line":301},[2093,2098,2102,2107,2112],{"type":19,"tag":186,"props":2094,"children":2095},{"style":193},[2096],{"type":25,"value":2097},"    result ",{"type":19,"tag":186,"props":2099,"children":2100},{"style":214},[2101],{"type":25,"value":1203},{"type":19,"tag":186,"props":2103,"children":2104},{"style":193},[2105],{"type":25,"value":2106}," result.",{"type":19,"tag":186,"props":2108,"children":2109},{"style":199},[2110],{"type":25,"value":2111},"replace",{"type":19,"tag":186,"props":2113,"children":2114},{"style":193},[2115],{"type":25,"value":1568},{"type":19,"tag":186,"props":2117,"children":2118},{"class":188,"line":310},[2119,2124,2130,2135,2140,2145,2150,2155,2159,2164,2169,2175,2180,2185,2189,2194,2199],{"type":19,"tag":186,"props":2120,"children":2121},{"style":231},[2122],{"type":25,"value":2123},"      /",{"type":19,"tag":186,"props":2125,"children":2127},{"style":2126},"--shiki-default:#DBEDFF;--shiki-dark:#DBEDFF",[2128],{"type":25,"value":2129},"\u003Ch",{"type":19,"tag":186,"props":2131,"children":2132},{"style":220},[2133],{"type":25,"value":2134},"[1-6][",{"type":19,"tag":186,"props":2136,"children":2137},{"style":214},[2138],{"type":25,"value":2139},"^",{"type":19,"tag":186,"props":2141,"children":2142},{"style":220},[2143],{"type":25,"value":2144},">]",{"type":19,"tag":186,"props":2146,"children":2147},{"style":214},[2148],{"type":25,"value":2149},"*",{"type":19,"tag":186,"props":2151,"children":2152},{"style":2126},[2153],{"type":25,"value":2154},">",{"type":19,"tag":186,"props":2156,"children":2157},{"style":220},[2158],{"type":25,"value":649},{"type":19,"tag":186,"props":2160,"children":2161},{"style":214},[2162],{"type":25,"value":2163},"*?",{"type":19,"tag":186,"props":2165,"children":2166},{"style":2126},[2167],{"type":25,"value":2168},"\u003C",{"type":19,"tag":186,"props":2170,"children":2172},{"style":2171},"--shiki-default:#85E89D;--shiki-default-font-weight:bold;--shiki-dark:#85E89D;--shiki-dark-font-weight:bold",[2173],{"type":25,"value":2174},"\\/",{"type":19,"tag":186,"props":2176,"children":2177},{"style":2126},[2178],{"type":25,"value":2179},"h",{"type":19,"tag":186,"props":2181,"children":2182},{"style":220},[2183],{"type":25,"value":2184},"[1-6]",{"type":19,"tag":186,"props":2186,"children":2187},{"style":2126},[2188],{"type":25,"value":2154},{"type":19,"tag":186,"props":2190,"children":2191},{"style":231},[2192],{"type":25,"value":2193},"/",{"type":19,"tag":186,"props":2195,"children":2196},{"style":214},[2197],{"type":25,"value":2198},"i",{"type":19,"tag":186,"props":2200,"children":2201},{"style":193},[2202],{"type":25,"value":631},{"type":19,"tag":186,"props":2204,"children":2205},{"class":188,"line":344},[2206,2211,2216,2220,2225],{"type":19,"tag":186,"props":2207,"children":2208},{"style":231},[2209],{"type":25,"value":2210},"      `\u003Ch1>${",{"type":19,"tag":186,"props":2212,"children":2213},{"style":193},[2214],{"type":25,"value":2215},"replacements",{"type":19,"tag":186,"props":2217,"children":2218},{"style":231},[2219],{"type":25,"value":649},{"type":19,"tag":186,"props":2221,"children":2222},{"style":193},[2223],{"type":25,"value":2224},"title",{"type":19,"tag":186,"props":2226,"children":2227},{"style":231},[2228],{"type":25,"value":2229},"}\u003C/h1>`\n",{"type":19,"tag":186,"props":2231,"children":2232},{"class":188,"line":708},[2233],{"type":19,"tag":186,"props":2234,"children":2235},{"style":193},[2236],{"type":25,"value":2237},"    )\n",{"type":19,"tag":186,"props":2239,"children":2240},{"class":188,"line":717},[2241],{"type":19,"tag":186,"props":2242,"children":2243},{"style":193},[2244],{"type":25,"value":1342},{"type":19,"tag":186,"props":2246,"children":2247},{"class":188,"line":726},[2248],{"type":19,"tag":186,"props":2249,"children":2250},{"style":193},[2251],{"type":25,"value":307},{"type":19,"tag":186,"props":2253,"children":2254},{"class":188,"line":734},[2255],{"type":19,"tag":186,"props":2256,"children":2257},{"style":492},[2258],{"type":25,"value":2259},"  // 替换段落\n",{"type":19,"tag":186,"props":2261,"children":2262},{"class":188,"line":743},[2263,2267],{"type":19,"tag":186,"props":2264,"children":2265},{"style":214},[2266],{"type":25,"value":2084},{"type":19,"tag":186,"props":2268,"children":2269},{"style":193},[2270],{"type":25,"value":2271}," (replacements.paragraphs) {\n",{"type":19,"tag":186,"props":2273,"children":2274},{"class":188,"line":763},[2275,2279,2284,2288,2292,2297,2301,2305,2310,2315,2319,2323,2327,2331,2335,2339,2343,2347,2352,2356,2361,2365,2370],{"type":19,"tag":186,"props":2276,"children":2277},{"style":214},[2278],{"type":25,"value":1062},{"type":19,"tag":186,"props":2280,"children":2281},{"style":220},[2282],{"type":25,"value":2283}," paragraphs",{"type":19,"tag":186,"props":2285,"children":2286},{"style":214},[2287],{"type":25,"value":228},{"type":19,"tag":186,"props":2289,"children":2290},{"style":193},[2291],{"type":25,"value":2106},{"type":19,"tag":186,"props":2293,"children":2294},{"style":199},[2295],{"type":25,"value":2296},"match",{"type":19,"tag":186,"props":2298,"children":2299},{"style":193},[2300],{"type":25,"value":518},{"type":19,"tag":186,"props":2302,"children":2303},{"style":231},[2304],{"type":25,"value":2193},{"type":19,"tag":186,"props":2306,"children":2307},{"style":2126},[2308],{"type":25,"value":2309},"\u003Cp",{"type":19,"tag":186,"props":2311,"children":2312},{"style":220},[2313],{"type":25,"value":2314},"[",{"type":19,"tag":186,"props":2316,"children":2317},{"style":214},[2318],{"type":25,"value":2139},{"type":19,"tag":186,"props":2320,"children":2321},{"style":220},[2322],{"type":25,"value":2144},{"type":19,"tag":186,"props":2324,"children":2325},{"style":214},[2326],{"type":25,"value":2149},{"type":19,"tag":186,"props":2328,"children":2329},{"style":2126},[2330],{"type":25,"value":2154},{"type":19,"tag":186,"props":2332,"children":2333},{"style":220},[2334],{"type":25,"value":649},{"type":19,"tag":186,"props":2336,"children":2337},{"style":214},[2338],{"type":25,"value":2163},{"type":19,"tag":186,"props":2340,"children":2341},{"style":2126},[2342],{"type":25,"value":2168},{"type":19,"tag":186,"props":2344,"children":2345},{"style":2171},[2346],{"type":25,"value":2174},{"type":19,"tag":186,"props":2348,"children":2349},{"style":2126},[2350],{"type":25,"value":2351},"p>",{"type":19,"tag":186,"props":2353,"children":2354},{"style":231},[2355],{"type":25,"value":2193},{"type":19,"tag":186,"props":2357,"children":2358},{"style":214},[2359],{"type":25,"value":2360},"gi",{"type":19,"tag":186,"props":2362,"children":2363},{"style":193},[2364],{"type":25,"value":539},{"type":19,"tag":186,"props":2366,"children":2367},{"style":214},[2368],{"type":25,"value":2369},"||",{"type":19,"tag":186,"props":2371,"children":2372},{"style":193},[2373],{"type":25,"value":2374}," []\n",{"type":19,"tag":186,"props":2376,"children":2377},{"class":188,"line":780},[2378,2383,2388,2392,2396,2400,2404,2408,2412],{"type":19,"tag":186,"props":2379,"children":2380},{"style":193},[2381],{"type":25,"value":2382},"    replacements.paragraphs.",{"type":19,"tag":186,"props":2384,"children":2385},{"style":199},[2386],{"type":25,"value":2387},"forEach",{"type":19,"tag":186,"props":2389,"children":2390},{"style":193},[2391],{"type":25,"value":1848},{"type":19,"tag":186,"props":2393,"children":2394},{"style":531},[2395],{"type":25,"value":25},{"type":19,"tag":186,"props":2397,"children":2398},{"style":193},[2399],{"type":25,"value":1858},{"type":19,"tag":186,"props":2401,"children":2402},{"style":531},[2403],{"type":25,"value":2198},{"type":19,"tag":186,"props":2405,"children":2406},{"style":193},[2407],{"type":25,"value":539},{"type":19,"tag":186,"props":2409,"children":2410},{"style":214},[2411],{"type":25,"value":544},{"type":19,"tag":186,"props":2413,"children":2414},{"style":193},[2415],{"type":25,"value":549},{"type":19,"tag":186,"props":2417,"children":2418},{"class":188,"line":805},[2419,2424],{"type":19,"tag":186,"props":2420,"children":2421},{"style":214},[2422],{"type":25,"value":2423},"      if",{"type":19,"tag":186,"props":2425,"children":2426},{"style":193},[2427],{"type":25,"value":2428}," (paragraphs[i]) {\n",{"type":19,"tag":186,"props":2430,"children":2431},{"class":188,"line":813},[2432,2437,2441,2445,2449,2454,2459,2463,2468],{"type":19,"tag":186,"props":2433,"children":2434},{"style":193},[2435],{"type":25,"value":2436},"        result ",{"type":19,"tag":186,"props":2438,"children":2439},{"style":214},[2440],{"type":25,"value":1203},{"type":19,"tag":186,"props":2442,"children":2443},{"style":193},[2444],{"type":25,"value":2106},{"type":19,"tag":186,"props":2446,"children":2447},{"style":199},[2448],{"type":25,"value":2111},{"type":19,"tag":186,"props":2450,"children":2451},{"style":193},[2452],{"type":25,"value":2453},"(paragraphs[i], ",{"type":19,"tag":186,"props":2455,"children":2456},{"style":231},[2457],{"type":25,"value":2458},"`\u003Cp>${",{"type":19,"tag":186,"props":2460,"children":2461},{"style":193},[2462],{"type":25,"value":25},{"type":19,"tag":186,"props":2464,"children":2465},{"style":231},[2466],{"type":25,"value":2467},"}\u003C/p>`",{"type":19,"tag":186,"props":2469,"children":2470},{"style":193},[2471],{"type":25,"value":938},{"type":19,"tag":186,"props":2473,"children":2474},{"class":188,"line":821},[2475],{"type":19,"tag":186,"props":2476,"children":2477},{"style":193},[2478],{"type":25,"value":2479},"      }\n",{"type":19,"tag":186,"props":2481,"children":2482},{"class":188,"line":843},[2483],{"type":19,"tag":186,"props":2484,"children":2485},{"style":193},[2486],{"type":25,"value":714},{"type":19,"tag":186,"props":2488,"children":2489},{"class":188,"line":1364},[2490],{"type":19,"tag":186,"props":2491,"children":2492},{"style":193},[2493],{"type":25,"value":1342},{"type":19,"tag":186,"props":2495,"children":2496},{"class":188,"line":1793},[2497],{"type":19,"tag":186,"props":2498,"children":2499},{"style":193},[2500],{"type":25,"value":307},{"type":19,"tag":186,"props":2502,"children":2503},{"class":188,"line":1802},[2504,2508],{"type":19,"tag":186,"props":2505,"children":2506},{"style":214},[2507],{"type":25,"value":316},{"type":19,"tag":186,"props":2509,"children":2510},{"style":193},[2511],{"type":25,"value":2512}," result\n",{"type":19,"tag":186,"props":2514,"children":2515},{"class":188,"line":1810},[2516],{"type":19,"tag":186,"props":2517,"children":2518},{"style":193},[2519],{"type":25,"value":244},{"type":19,"tag":20,"props":2521,"children":2523},{"id":2522},"上下文管理",[2524],{"type":25,"value":2522},{"type":19,"tag":38,"props":2526,"children":2528},{"id":2527},"会话状态维护",[2529],{"type":25,"value":2527},{"type":19,"tag":175,"props":2531,"children":2533},{"className":177,"code":2532,"language":179,"meta":7,"style":7},"interface GenerationContext {\n  sessionId: string\n  requirements: Requirements\n  selectedComponents: ComponentMetadata[]\n  generatedContent: ContentReplacements\n  currentProgress: number\n  errors: Error[]\n}\n\n// 使用Pinia管理生成上下文\nexport const useGenerationStore = defineStore('generation', {\n  state: (): GenerationContext => ({\n    sessionId: '',\n    requirements: {},\n    selectedComponents: [],\n    generatedContent: {},\n    currentProgress: 0,\n    errors: []\n  }),\n  \n  actions: {\n    async startGeneration(userInput: string) {\n      this.sessionId = generateId()\n      this.requirements = await analyzeRequirements(userInput)\n      this.selectedComponents = await selectComponents(this.requirements)\n    }\n  }\n})\n",[2534],{"type":19,"tag":182,"props":2535,"children":2536},{"__ignoreMap":7},[2537,2553,2569,2585,2605,2621,2637,2658,2665,2672,2680,2719,2748,2764,2772,2780,2788,2804,2812,2820,2827,2835,2869,2895,2925,2963,2971,2978],{"type":19,"tag":186,"props":2538,"children":2539},{"class":188,"line":189},[2540,2544,2549],{"type":19,"tag":186,"props":2541,"children":2542},{"style":214},[2543],{"type":25,"value":1399},{"type":19,"tag":186,"props":2545,"children":2546},{"style":199},[2547],{"type":25,"value":2548}," GenerationContext",{"type":19,"tag":186,"props":2550,"children":2551},{"style":193},[2552],{"type":25,"value":549},{"type":19,"tag":186,"props":2554,"children":2555},{"class":188,"line":210},[2556,2561,2565],{"type":19,"tag":186,"props":2557,"children":2558},{"style":531},[2559],{"type":25,"value":2560},"  sessionId",{"type":19,"tag":186,"props":2562,"children":2563},{"style":214},[2564],{"type":25,"value":173},{"type":19,"tag":186,"props":2566,"children":2567},{"style":220},[2568],{"type":25,"value":1425},{"type":19,"tag":186,"props":2570,"children":2571},{"class":188,"line":247},[2572,2576,2580],{"type":19,"tag":186,"props":2573,"children":2574},{"style":531},[2575],{"type":25,"value":1576},{"type":19,"tag":186,"props":2577,"children":2578},{"style":214},[2579],{"type":25,"value":173},{"type":19,"tag":186,"props":2581,"children":2582},{"style":199},[2583],{"type":25,"value":2584}," Requirements\n",{"type":19,"tag":186,"props":2586,"children":2587},{"class":188,"line":256},[2588,2593,2597,2601],{"type":19,"tag":186,"props":2589,"children":2590},{"style":531},[2591],{"type":25,"value":2592},"  selectedComponents",{"type":19,"tag":186,"props":2594,"children":2595},{"style":214},[2596],{"type":25,"value":173},{"type":19,"tag":186,"props":2598,"children":2599},{"style":199},[2600],{"type":25,"value":1404},{"type":19,"tag":186,"props":2602,"children":2603},{"style":193},[2604],{"type":25,"value":1480},{"type":19,"tag":186,"props":2606,"children":2607},{"class":188,"line":265},[2608,2613,2617],{"type":19,"tag":186,"props":2609,"children":2610},{"style":531},[2611],{"type":25,"value":2612},"  generatedContent",{"type":19,"tag":186,"props":2614,"children":2615},{"style":214},[2616],{"type":25,"value":173},{"type":19,"tag":186,"props":2618,"children":2619},{"style":199},[2620],{"type":25,"value":2020},{"type":19,"tag":186,"props":2622,"children":2623},{"class":188,"line":274},[2624,2629,2633],{"type":19,"tag":186,"props":2625,"children":2626},{"style":531},[2627],{"type":25,"value":2628},"  currentProgress",{"type":19,"tag":186,"props":2630,"children":2631},{"style":214},[2632],{"type":25,"value":173},{"type":19,"tag":186,"props":2634,"children":2635},{"style":220},[2636],{"type":25,"value":1606},{"type":19,"tag":186,"props":2638,"children":2639},{"class":188,"line":283},[2640,2645,2649,2654],{"type":19,"tag":186,"props":2641,"children":2642},{"style":531},[2643],{"type":25,"value":2644},"  errors",{"type":19,"tag":186,"props":2646,"children":2647},{"style":214},[2648],{"type":25,"value":173},{"type":19,"tag":186,"props":2650,"children":2651},{"style":199},[2652],{"type":25,"value":2653}," Error",{"type":19,"tag":186,"props":2655,"children":2656},{"style":193},[2657],{"type":25,"value":1480},{"type":19,"tag":186,"props":2659,"children":2660},{"class":188,"line":292},[2661],{"type":19,"tag":186,"props":2662,"children":2663},{"style":193},[2664],{"type":25,"value":244},{"type":19,"tag":186,"props":2666,"children":2667},{"class":188,"line":301},[2668],{"type":19,"tag":186,"props":2669,"children":2670},{"emptyLinePlaceholder":1547},[2671],{"type":25,"value":1550},{"type":19,"tag":186,"props":2673,"children":2674},{"class":188,"line":310},[2675],{"type":19,"tag":186,"props":2676,"children":2677},{"style":492},[2678],{"type":25,"value":2679},"// 使用Pinia管理生成上下文\n",{"type":19,"tag":186,"props":2681,"children":2682},{"class":188,"line":344},[2683,2687,2691,2696,2700,2705,2709,2714],{"type":19,"tag":186,"props":2684,"children":2685},{"style":214},[2686],{"type":25,"value":503},{"type":19,"tag":186,"props":2688,"children":2689},{"style":214},[2690],{"type":25,"value":881},{"type":19,"tag":186,"props":2692,"children":2693},{"style":220},[2694],{"type":25,"value":2695}," useGenerationStore",{"type":19,"tag":186,"props":2697,"children":2698},{"style":214},[2699],{"type":25,"value":228},{"type":19,"tag":186,"props":2701,"children":2702},{"style":199},[2703],{"type":25,"value":2704}," defineStore",{"type":19,"tag":186,"props":2706,"children":2707},{"style":193},[2708],{"type":25,"value":518},{"type":19,"tag":186,"props":2710,"children":2711},{"style":231},[2712],{"type":25,"value":2713},"'generation'",{"type":19,"tag":186,"props":2715,"children":2716},{"style":193},[2717],{"type":25,"value":2718},", {\n",{"type":19,"tag":186,"props":2720,"children":2721},{"class":188,"line":708},[2722,2727,2732,2736,2740,2744],{"type":19,"tag":186,"props":2723,"children":2724},{"style":199},[2725],{"type":25,"value":2726},"  state",{"type":19,"tag":186,"props":2728,"children":2729},{"style":193},[2730],{"type":25,"value":2731},": ()",{"type":19,"tag":186,"props":2733,"children":2734},{"style":214},[2735],{"type":25,"value":173},{"type":19,"tag":186,"props":2737,"children":2738},{"style":199},[2739],{"type":25,"value":2548},{"type":19,"tag":186,"props":2741,"children":2742},{"style":214},[2743],{"type":25,"value":1675},{"type":19,"tag":186,"props":2745,"children":2746},{"style":193},[2747],{"type":25,"value":1764},{"type":19,"tag":186,"props":2749,"children":2750},{"class":188,"line":717},[2751,2756,2760],{"type":19,"tag":186,"props":2752,"children":2753},{"style":193},[2754],{"type":25,"value":2755},"    sessionId: ",{"type":19,"tag":186,"props":2757,"children":2758},{"style":231},[2759],{"type":25,"value":967},{"type":19,"tag":186,"props":2761,"children":2762},{"style":193},[2763],{"type":25,"value":631},{"type":19,"tag":186,"props":2765,"children":2766},{"class":188,"line":726},[2767],{"type":19,"tag":186,"props":2768,"children":2769},{"style":193},[2770],{"type":25,"value":2771},"    requirements: {},\n",{"type":19,"tag":186,"props":2773,"children":2774},{"class":188,"line":734},[2775],{"type":19,"tag":186,"props":2776,"children":2777},{"style":193},[2778],{"type":25,"value":2779},"    selectedComponents: [],\n",{"type":19,"tag":186,"props":2781,"children":2782},{"class":188,"line":743},[2783],{"type":19,"tag":186,"props":2784,"children":2785},{"style":193},[2786],{"type":25,"value":2787},"    generatedContent: {},\n",{"type":19,"tag":186,"props":2789,"children":2790},{"class":188,"line":763},[2791,2796,2800],{"type":19,"tag":186,"props":2792,"children":2793},{"style":193},[2794],{"type":25,"value":2795},"    currentProgress: ",{"type":19,"tag":186,"props":2797,"children":2798},{"style":220},[2799],{"type":25,"value":933},{"type":19,"tag":186,"props":2801,"children":2802},{"style":193},[2803],{"type":25,"value":631},{"type":19,"tag":186,"props":2805,"children":2806},{"class":188,"line":780},[2807],{"type":19,"tag":186,"props":2808,"children":2809},{"style":193},[2810],{"type":25,"value":2811},"    errors: []\n",{"type":19,"tag":186,"props":2813,"children":2814},{"class":188,"line":805},[2815],{"type":19,"tag":186,"props":2816,"children":2817},{"style":193},[2818],{"type":25,"value":2819},"  }),\n",{"type":19,"tag":186,"props":2821,"children":2822},{"class":188,"line":813},[2823],{"type":19,"tag":186,"props":2824,"children":2825},{"style":193},[2826],{"type":25,"value":307},{"type":19,"tag":186,"props":2828,"children":2829},{"class":188,"line":821},[2830],{"type":19,"tag":186,"props":2831,"children":2832},{"style":193},[2833],{"type":25,"value":2834},"  actions: {\n",{"type":19,"tag":186,"props":2836,"children":2837},{"class":188,"line":843},[2838,2843,2848,2852,2856,2860,2864],{"type":19,"tag":186,"props":2839,"children":2840},{"style":214},[2841],{"type":25,"value":2842},"    async",{"type":19,"tag":186,"props":2844,"children":2845},{"style":199},[2846],{"type":25,"value":2847}," startGeneration",{"type":19,"tag":186,"props":2849,"children":2850},{"style":193},[2851],{"type":25,"value":518},{"type":19,"tag":186,"props":2853,"children":2854},{"style":531},[2855],{"type":25,"value":239},{"type":19,"tag":186,"props":2857,"children":2858},{"style":214},[2859],{"type":25,"value":173},{"type":19,"tag":186,"props":2861,"children":2862},{"style":220},[2863],{"type":25,"value":1042},{"type":19,"tag":186,"props":2865,"children":2866},{"style":193},[2867],{"type":25,"value":2868},") {\n",{"type":19,"tag":186,"props":2870,"children":2871},{"class":188,"line":1364},[2872,2877,2882,2886,2891],{"type":19,"tag":186,"props":2873,"children":2874},{"style":220},[2875],{"type":25,"value":2876},"      this",{"type":19,"tag":186,"props":2878,"children":2879},{"style":193},[2880],{"type":25,"value":2881},".sessionId ",{"type":19,"tag":186,"props":2883,"children":2884},{"style":214},[2885],{"type":25,"value":1203},{"type":19,"tag":186,"props":2887,"children":2888},{"style":199},[2889],{"type":25,"value":2890}," generateId",{"type":19,"tag":186,"props":2892,"children":2893},{"style":193},[2894],{"type":25,"value":840},{"type":19,"tag":186,"props":2896,"children":2897},{"class":188,"line":1793},[2898,2902,2907,2911,2915,2920],{"type":19,"tag":186,"props":2899,"children":2900},{"style":220},[2901],{"type":25,"value":2876},{"type":19,"tag":186,"props":2903,"children":2904},{"style":193},[2905],{"type":25,"value":2906},".requirements ",{"type":19,"tag":186,"props":2908,"children":2909},{"style":214},[2910],{"type":25,"value":1203},{"type":19,"tag":186,"props":2912,"children":2913},{"style":214},[2914],{"type":25,"value":321},{"type":19,"tag":186,"props":2916,"children":2917},{"style":199},[2918],{"type":25,"value":2919}," analyzeRequirements",{"type":19,"tag":186,"props":2921,"children":2922},{"style":193},[2923],{"type":25,"value":2924},"(userInput)\n",{"type":19,"tag":186,"props":2926,"children":2927},{"class":188,"line":1802},[2928,2932,2937,2941,2945,2949,2953,2958],{"type":19,"tag":186,"props":2929,"children":2930},{"style":220},[2931],{"type":25,"value":2876},{"type":19,"tag":186,"props":2933,"children":2934},{"style":193},[2935],{"type":25,"value":2936},".selectedComponents ",{"type":19,"tag":186,"props":2938,"children":2939},{"style":214},[2940],{"type":25,"value":1203},{"type":19,"tag":186,"props":2942,"children":2943},{"style":214},[2944],{"type":25,"value":321},{"type":19,"tag":186,"props":2946,"children":2947},{"style":199},[2948],{"type":25,"value":1563},{"type":19,"tag":186,"props":2950,"children":2951},{"style":193},[2952],{"type":25,"value":518},{"type":19,"tag":186,"props":2954,"children":2955},{"style":220},[2956],{"type":25,"value":2957},"this",{"type":19,"tag":186,"props":2959,"children":2960},{"style":193},[2961],{"type":25,"value":2962},".requirements)\n",{"type":19,"tag":186,"props":2964,"children":2965},{"class":188,"line":1810},[2966],{"type":19,"tag":186,"props":2967,"children":2968},{"style":193},[2969],{"type":25,"value":2970},"    }\n",{"type":19,"tag":186,"props":2972,"children":2973},{"class":188,"line":1819},[2974],{"type":19,"tag":186,"props":2975,"children":2976},{"style":193},[2977],{"type":25,"value":1342},{"type":19,"tag":186,"props":2979,"children":2980},{"class":188,"line":1832},[2981],{"type":19,"tag":186,"props":2982,"children":2983},{"style":193},[2984],{"type":25,"value":849},{"type":19,"tag":20,"props":2986,"children":2988},{"id":2987},"性能优化策略",[2989],{"type":25,"value":2987},{"type":19,"tag":38,"props":2991,"children":2993},{"id":2992},"_1-组件缓存",[2994],{"type":25,"value":2995},"1. 组件缓存",{"type":19,"tag":175,"props":2997,"children":2999},{"className":177,"code":2998,"language":179,"meta":7,"style":7},"const componentCache = new Map\u003Cstring, ComponentMetadata>()\n\nfunction getCachedComponent(id: string): ComponentMetadata | null {\n  return componentCache.get(id) || null\n}\n",[3000],{"type":19,"tag":182,"props":3001,"children":3002},{"__ignoreMap":7},[3003,3052,3059,3114,3145],{"type":19,"tag":186,"props":3004,"children":3005},{"class":188,"line":189},[3006,3011,3016,3020,3024,3029,3033,3038,3042,3047],{"type":19,"tag":186,"props":3007,"children":3008},{"style":214},[3009],{"type":25,"value":3010},"const",{"type":19,"tag":186,"props":3012,"children":3013},{"style":220},[3014],{"type":25,"value":3015}," componentCache",{"type":19,"tag":186,"props":3017,"children":3018},{"style":214},[3019],{"type":25,"value":228},{"type":19,"tag":186,"props":3021,"children":3022},{"style":214},[3023],{"type":25,"value":1076},{"type":19,"tag":186,"props":3025,"children":3026},{"style":199},[3027],{"type":25,"value":3028}," Map",{"type":19,"tag":186,"props":3030,"children":3031},{"style":193},[3032],{"type":25,"value":2168},{"type":19,"tag":186,"props":3034,"children":3035},{"style":220},[3036],{"type":25,"value":3037},"string",{"type":19,"tag":186,"props":3039,"children":3040},{"style":193},[3041],{"type":25,"value":1858},{"type":19,"tag":186,"props":3043,"children":3044},{"style":199},[3045],{"type":25,"value":3046},"ComponentMetadata",{"type":19,"tag":186,"props":3048,"children":3049},{"style":193},[3050],{"type":25,"value":3051},">()\n",{"type":19,"tag":186,"props":3053,"children":3054},{"class":188,"line":210},[3055],{"type":19,"tag":186,"props":3056,"children":3057},{"emptyLinePlaceholder":1547},[3058],{"type":25,"value":1550},{"type":19,"tag":186,"props":3060,"children":3061},{"class":188,"line":247},[3062,3066,3071,3075,3080,3084,3088,3092,3096,3100,3105,3110],{"type":19,"tag":186,"props":3063,"children":3064},{"style":214},[3065],{"type":25,"value":1558},{"type":19,"tag":186,"props":3067,"children":3068},{"style":199},[3069],{"type":25,"value":3070}," getCachedComponent",{"type":19,"tag":186,"props":3072,"children":3073},{"style":193},[3074],{"type":25,"value":518},{"type":19,"tag":186,"props":3076,"children":3077},{"style":531},[3078],{"type":25,"value":3079},"id",{"type":19,"tag":186,"props":3081,"children":3082},{"style":214},[3083],{"type":25,"value":173},{"type":19,"tag":186,"props":3085,"children":3086},{"style":220},[3087],{"type":25,"value":1042},{"type":19,"tag":186,"props":3089,"children":3090},{"style":193},[3091],{"type":25,"value":1614},{"type":19,"tag":186,"props":3093,"children":3094},{"style":214},[3095],{"type":25,"value":173},{"type":19,"tag":186,"props":3097,"children":3098},{"style":199},[3099],{"type":25,"value":1404},{"type":19,"tag":186,"props":3101,"children":3102},{"style":214},[3103],{"type":25,"value":3104}," |",{"type":19,"tag":186,"props":3106,"children":3107},{"style":220},[3108],{"type":25,"value":3109}," null",{"type":19,"tag":186,"props":3111,"children":3112},{"style":193},[3113],{"type":25,"value":549},{"type":19,"tag":186,"props":3115,"children":3116},{"class":188,"line":256},[3117,3121,3126,3131,3136,3140],{"type":19,"tag":186,"props":3118,"children":3119},{"style":214},[3120],{"type":25,"value":316},{"type":19,"tag":186,"props":3122,"children":3123},{"style":193},[3124],{"type":25,"value":3125}," componentCache.",{"type":19,"tag":186,"props":3127,"children":3128},{"style":199},[3129],{"type":25,"value":3130},"get",{"type":19,"tag":186,"props":3132,"children":3133},{"style":193},[3134],{"type":25,"value":3135},"(id) ",{"type":19,"tag":186,"props":3137,"children":3138},{"style":214},[3139],{"type":25,"value":2369},{"type":19,"tag":186,"props":3141,"children":3142},{"style":220},[3143],{"type":25,"value":3144}," null\n",{"type":19,"tag":186,"props":3146,"children":3147},{"class":188,"line":265},[3148],{"type":19,"tag":186,"props":3149,"children":3150},{"style":193},[3151],{"type":25,"value":244},{"type":19,"tag":38,"props":3153,"children":3155},{"id":3154},"_2-并行处理",[3156],{"type":25,"value":3157},"2. 并行处理",{"type":19,"tag":175,"props":3159,"children":3161},{"className":177,"code":3160,"language":179,"meta":7,"style":7},"async function generatePageParallel(requirements: Requirements) {\n  const [layout, content, style] = await Promise.all([\n    layoutAgent.generate(requirements),\n    contentAgent.generate(requirements),\n    styleAgent.generate(requirements)\n  ])\n  \n  return assembleComponents(layout, content, style)\n}\n",[3162],{"type":19,"tag":182,"props":3163,"children":3164},{"__ignoreMap":7},[3165,3203,3270,3287,3303,3320,3328,3335,3352],{"type":19,"tag":186,"props":3166,"children":3167},{"class":188,"line":189},[3168,3172,3177,3182,3186,3191,3195,3199],{"type":19,"tag":186,"props":3169,"children":3170},{"style":214},[3171],{"type":25,"value":523},{"type":19,"tag":186,"props":3173,"children":3174},{"style":214},[3175],{"type":25,"value":3176}," function",{"type":19,"tag":186,"props":3178,"children":3179},{"style":199},[3180],{"type":25,"value":3181}," generatePageParallel",{"type":19,"tag":186,"props":3183,"children":3184},{"style":193},[3185],{"type":25,"value":518},{"type":19,"tag":186,"props":3187,"children":3188},{"style":531},[3189],{"type":25,"value":3190},"requirements",{"type":19,"tag":186,"props":3192,"children":3193},{"style":214},[3194],{"type":25,"value":173},{"type":19,"tag":186,"props":3196,"children":3197},{"style":199},[3198],{"type":25,"value":1585},{"type":19,"tag":186,"props":3200,"children":3201},{"style":193},[3202],{"type":25,"value":2868},{"type":19,"tag":186,"props":3204,"children":3205},{"class":188,"line":210},[3206,3210,3215,3220,3224,3229,3233,3238,3243,3247,3251,3256,3260,3265],{"type":19,"tag":186,"props":3207,"children":3208},{"style":214},[3209],{"type":25,"value":217},{"type":19,"tag":186,"props":3211,"children":3212},{"style":193},[3213],{"type":25,"value":3214}," [",{"type":19,"tag":186,"props":3216,"children":3217},{"style":220},[3218],{"type":25,"value":3219},"layout",{"type":19,"tag":186,"props":3221,"children":3222},{"style":193},[3223],{"type":25,"value":1858},{"type":19,"tag":186,"props":3225,"children":3226},{"style":220},[3227],{"type":25,"value":3228},"content",{"type":19,"tag":186,"props":3230,"children":3231},{"style":193},[3232],{"type":25,"value":1858},{"type":19,"tag":186,"props":3234,"children":3235},{"style":220},[3236],{"type":25,"value":3237},"style",{"type":19,"tag":186,"props":3239,"children":3240},{"style":193},[3241],{"type":25,"value":3242},"] ",{"type":19,"tag":186,"props":3244,"children":3245},{"style":214},[3246],{"type":25,"value":1203},{"type":19,"tag":186,"props":3248,"children":3249},{"style":214},[3250],{"type":25,"value":321},{"type":19,"tag":186,"props":3252,"children":3253},{"style":220},[3254],{"type":25,"value":3255}," Promise",{"type":19,"tag":186,"props":3257,"children":3258},{"style":193},[3259],{"type":25,"value":649},{"type":19,"tag":186,"props":3261,"children":3262},{"style":199},[3263],{"type":25,"value":3264},"all",{"type":19,"tag":186,"props":3266,"children":3267},{"style":193},[3268],{"type":25,"value":3269},"([\n",{"type":19,"tag":186,"props":3271,"children":3272},{"class":188,"line":247},[3273,3278,3282],{"type":19,"tag":186,"props":3274,"children":3275},{"style":193},[3276],{"type":25,"value":3277},"    layoutAgent.",{"type":19,"tag":186,"props":3279,"children":3280},{"style":199},[3281],{"type":25,"value":336},{"type":19,"tag":186,"props":3283,"children":3284},{"style":193},[3285],{"type":25,"value":3286},"(requirements),\n",{"type":19,"tag":186,"props":3288,"children":3289},{"class":188,"line":256},[3290,3295,3299],{"type":19,"tag":186,"props":3291,"children":3292},{"style":193},[3293],{"type":25,"value":3294},"    contentAgent.",{"type":19,"tag":186,"props":3296,"children":3297},{"style":199},[3298],{"type":25,"value":336},{"type":19,"tag":186,"props":3300,"children":3301},{"style":193},[3302],{"type":25,"value":3286},{"type":19,"tag":186,"props":3304,"children":3305},{"class":188,"line":265},[3306,3311,3315],{"type":19,"tag":186,"props":3307,"children":3308},{"style":193},[3309],{"type":25,"value":3310},"    styleAgent.",{"type":19,"tag":186,"props":3312,"children":3313},{"style":199},[3314],{"type":25,"value":336},{"type":19,"tag":186,"props":3316,"children":3317},{"style":193},[3318],{"type":25,"value":3319},"(requirements)\n",{"type":19,"tag":186,"props":3321,"children":3322},{"class":188,"line":274},[3323],{"type":19,"tag":186,"props":3324,"children":3325},{"style":193},[3326],{"type":25,"value":3327},"  ])\n",{"type":19,"tag":186,"props":3329,"children":3330},{"class":188,"line":283},[3331],{"type":19,"tag":186,"props":3332,"children":3333},{"style":193},[3334],{"type":25,"value":307},{"type":19,"tag":186,"props":3336,"children":3337},{"class":188,"line":292},[3338,3342,3347],{"type":19,"tag":186,"props":3339,"children":3340},{"style":214},[3341],{"type":25,"value":316},{"type":19,"tag":186,"props":3343,"children":3344},{"style":199},[3345],{"type":25,"value":3346}," assembleComponents",{"type":19,"tag":186,"props":3348,"children":3349},{"style":193},[3350],{"type":25,"value":3351},"(layout, content, style)\n",{"type":19,"tag":186,"props":3353,"children":3354},{"class":188,"line":301},[3355],{"type":19,"tag":186,"props":3356,"children":3357},{"style":193},[3358],{"type":25,"value":244},{"type":19,"tag":38,"props":3360,"children":3362},{"id":3361},"_3-增量更新",[3363],{"type":25,"value":3364},"3. 增量更新",{"type":19,"tag":27,"props":3366,"children":3367},{},[3368],{"type":25,"value":3369},"前端只更新变化的组件，避免全量重渲染：",{"type":19,"tag":175,"props":3371,"children":3373},{"className":177,"code":3372,"language":179,"meta":7,"style":7},"watch(components, (newComponents, oldComponents) => {\n  const diff = calculateDiff(oldComponents, newComponents)\n  applyDiffToEditor(diff)\n}, { deep: true })\n",[3374],{"type":19,"tag":182,"props":3375,"children":3376},{"__ignoreMap":7},[3377,3416,3442,3455],{"type":19,"tag":186,"props":3378,"children":3379},{"class":188,"line":189},[3380,3385,3390,3395,3399,3404,3408,3412],{"type":19,"tag":186,"props":3381,"children":3382},{"style":199},[3383],{"type":25,"value":3384},"watch",{"type":19,"tag":186,"props":3386,"children":3387},{"style":193},[3388],{"type":25,"value":3389},"(components, (",{"type":19,"tag":186,"props":3391,"children":3392},{"style":531},[3393],{"type":25,"value":3394},"newComponents",{"type":19,"tag":186,"props":3396,"children":3397},{"style":193},[3398],{"type":25,"value":1858},{"type":19,"tag":186,"props":3400,"children":3401},{"style":531},[3402],{"type":25,"value":3403},"oldComponents",{"type":19,"tag":186,"props":3405,"children":3406},{"style":193},[3407],{"type":25,"value":539},{"type":19,"tag":186,"props":3409,"children":3410},{"style":214},[3411],{"type":25,"value":544},{"type":19,"tag":186,"props":3413,"children":3414},{"style":193},[3415],{"type":25,"value":549},{"type":19,"tag":186,"props":3417,"children":3418},{"class":188,"line":210},[3419,3423,3428,3432,3437],{"type":19,"tag":186,"props":3420,"children":3421},{"style":214},[3422],{"type":25,"value":217},{"type":19,"tag":186,"props":3424,"children":3425},{"style":220},[3426],{"type":25,"value":3427}," diff",{"type":19,"tag":186,"props":3429,"children":3430},{"style":214},[3431],{"type":25,"value":228},{"type":19,"tag":186,"props":3433,"children":3434},{"style":199},[3435],{"type":25,"value":3436}," calculateDiff",{"type":19,"tag":186,"props":3438,"children":3439},{"style":193},[3440],{"type":25,"value":3441},"(oldComponents, newComponents)\n",{"type":19,"tag":186,"props":3443,"children":3444},{"class":188,"line":247},[3445,3450],{"type":19,"tag":186,"props":3446,"children":3447},{"style":199},[3448],{"type":25,"value":3449},"  applyDiffToEditor",{"type":19,"tag":186,"props":3451,"children":3452},{"style":193},[3453],{"type":25,"value":3454},"(diff)\n",{"type":19,"tag":186,"props":3456,"children":3457},{"class":188,"line":256},[3458,3463,3468],{"type":19,"tag":186,"props":3459,"children":3460},{"style":193},[3461],{"type":25,"value":3462},"}, { deep: ",{"type":19,"tag":186,"props":3464,"children":3465},{"style":220},[3466],{"type":25,"value":3467},"true",{"type":19,"tag":186,"props":3469,"children":3470},{"style":193},[3471],{"type":25,"value":3472}," })\n",{"type":19,"tag":20,"props":3474,"children":3476},{"id":3475},"错误处理与容错",[3477],{"type":25,"value":3475},{"type":19,"tag":38,"props":3479,"children":3481},{"id":3480},"多层级错误处理",[3482],{"type":25,"value":3480},{"type":19,"tag":175,"props":3484,"children":3486},{"className":177,"code":3485,"language":179,"meta":7,"style":7},"class AIGenerationError extends Error {\n  constructor(\n    public step: string,\n    public originalError: Error\n  ) {\n    super(`AI生成失败于${step}阶段`)\n  }\n}\n\nasync function generateWithRetry(\n  fn: () => Promise\u003Cany>,\n  maxRetries = 3\n): Promise\u003Cany> {\n  for (let i = 0; i \u003C maxRetries; i++) {\n    try {\n      return await fn()\n    } catch (error) {\n      if (i === maxRetries - 1) throw error\n      await delay(1000 * (i + 1)) // 指数退避\n    }\n  }\n}\n",[3487],{"type":19,"tag":182,"props":3488,"children":3489},{"__ignoreMap":7},[3490,3516,3528,3553,3574,3582,3613,3620,3627,3634,3654,3692,3709,3737,3791,3803,3824,3842,3887,3937,3944,3951],{"type":19,"tag":186,"props":3491,"children":3492},{"class":188,"line":189},[3493,3498,3503,3508,3512],{"type":19,"tag":186,"props":3494,"children":3495},{"style":214},[3496],{"type":25,"value":3497},"class",{"type":19,"tag":186,"props":3499,"children":3500},{"style":199},[3501],{"type":25,"value":3502}," AIGenerationError",{"type":19,"tag":186,"props":3504,"children":3505},{"style":214},[3506],{"type":25,"value":3507}," extends",{"type":19,"tag":186,"props":3509,"children":3510},{"style":199},[3511],{"type":25,"value":2653},{"type":19,"tag":186,"props":3513,"children":3514},{"style":193},[3515],{"type":25,"value":549},{"type":19,"tag":186,"props":3517,"children":3518},{"class":188,"line":210},[3519,3524],{"type":19,"tag":186,"props":3520,"children":3521},{"style":214},[3522],{"type":25,"value":3523},"  constructor",{"type":19,"tag":186,"props":3525,"children":3526},{"style":193},[3527],{"type":25,"value":1568},{"type":19,"tag":186,"props":3529,"children":3530},{"class":188,"line":247},[3531,3536,3541,3545,3549],{"type":19,"tag":186,"props":3532,"children":3533},{"style":214},[3534],{"type":25,"value":3535},"    public",{"type":19,"tag":186,"props":3537,"children":3538},{"style":531},[3539],{"type":25,"value":3540}," step",{"type":19,"tag":186,"props":3542,"children":3543},{"style":214},[3544],{"type":25,"value":173},{"type":19,"tag":186,"props":3546,"children":3547},{"style":220},[3548],{"type":25,"value":1042},{"type":19,"tag":186,"props":3550,"children":3551},{"style":193},[3552],{"type":25,"value":631},{"type":19,"tag":186,"props":3554,"children":3555},{"class":188,"line":256},[3556,3560,3565,3569],{"type":19,"tag":186,"props":3557,"children":3558},{"style":214},[3559],{"type":25,"value":3535},{"type":19,"tag":186,"props":3561,"children":3562},{"style":531},[3563],{"type":25,"value":3564}," originalError",{"type":19,"tag":186,"props":3566,"children":3567},{"style":214},[3568],{"type":25,"value":173},{"type":19,"tag":186,"props":3570,"children":3571},{"style":199},[3572],{"type":25,"value":3573}," Error\n",{"type":19,"tag":186,"props":3575,"children":3576},{"class":188,"line":265},[3577],{"type":19,"tag":186,"props":3578,"children":3579},{"style":193},[3580],{"type":25,"value":3581},"  ) {\n",{"type":19,"tag":186,"props":3583,"children":3584},{"class":188,"line":274},[3585,3590,3594,3599,3604,3609],{"type":19,"tag":186,"props":3586,"children":3587},{"style":220},[3588],{"type":25,"value":3589},"    super",{"type":19,"tag":186,"props":3591,"children":3592},{"style":193},[3593],{"type":25,"value":518},{"type":19,"tag":186,"props":3595,"children":3596},{"style":231},[3597],{"type":25,"value":3598},"`AI生成失败于${",{"type":19,"tag":186,"props":3600,"children":3601},{"style":193},[3602],{"type":25,"value":3603},"step",{"type":19,"tag":186,"props":3605,"children":3606},{"style":231},[3607],{"type":25,"value":3608},"}阶段`",{"type":19,"tag":186,"props":3610,"children":3611},{"style":193},[3612],{"type":25,"value":938},{"type":19,"tag":186,"props":3614,"children":3615},{"class":188,"line":283},[3616],{"type":19,"tag":186,"props":3617,"children":3618},{"style":193},[3619],{"type":25,"value":1342},{"type":19,"tag":186,"props":3621,"children":3622},{"class":188,"line":292},[3623],{"type":19,"tag":186,"props":3624,"children":3625},{"style":193},[3626],{"type":25,"value":244},{"type":19,"tag":186,"props":3628,"children":3629},{"class":188,"line":301},[3630],{"type":19,"tag":186,"props":3631,"children":3632},{"emptyLinePlaceholder":1547},[3633],{"type":25,"value":1550},{"type":19,"tag":186,"props":3635,"children":3636},{"class":188,"line":310},[3637,3641,3645,3650],{"type":19,"tag":186,"props":3638,"children":3639},{"style":214},[3640],{"type":25,"value":523},{"type":19,"tag":186,"props":3642,"children":3643},{"style":214},[3644],{"type":25,"value":3176},{"type":19,"tag":186,"props":3646,"children":3647},{"style":199},[3648],{"type":25,"value":3649}," generateWithRetry",{"type":19,"tag":186,"props":3651,"children":3652},{"style":193},[3653],{"type":25,"value":1568},{"type":19,"tag":186,"props":3655,"children":3656},{"class":188,"line":344},[3657,3662,3666,3670,3674,3678,3682,3687],{"type":19,"tag":186,"props":3658,"children":3659},{"style":199},[3660],{"type":25,"value":3661},"  fn",{"type":19,"tag":186,"props":3663,"children":3664},{"style":214},[3665],{"type":25,"value":173},{"type":19,"tag":186,"props":3667,"children":3668},{"style":193},[3669],{"type":25,"value":895},{"type":19,"tag":186,"props":3671,"children":3672},{"style":214},[3673],{"type":25,"value":544},{"type":19,"tag":186,"props":3675,"children":3676},{"style":199},[3677],{"type":25,"value":3255},{"type":19,"tag":186,"props":3679,"children":3680},{"style":193},[3681],{"type":25,"value":2168},{"type":19,"tag":186,"props":3683,"children":3684},{"style":220},[3685],{"type":25,"value":3686},"any",{"type":19,"tag":186,"props":3688,"children":3689},{"style":193},[3690],{"type":25,"value":3691},">,\n",{"type":19,"tag":186,"props":3693,"children":3694},{"class":188,"line":708},[3695,3700,3704],{"type":19,"tag":186,"props":3696,"children":3697},{"style":531},[3698],{"type":25,"value":3699},"  maxRetries",{"type":19,"tag":186,"props":3701,"children":3702},{"style":214},[3703],{"type":25,"value":228},{"type":19,"tag":186,"props":3705,"children":3706},{"style":220},[3707],{"type":25,"value":3708}," 3\n",{"type":19,"tag":186,"props":3710,"children":3711},{"class":188,"line":717},[3712,3716,3720,3724,3728,3732],{"type":19,"tag":186,"props":3713,"children":3714},{"style":193},[3715],{"type":25,"value":1614},{"type":19,"tag":186,"props":3717,"children":3718},{"style":214},[3719],{"type":25,"value":173},{"type":19,"tag":186,"props":3721,"children":3722},{"style":199},[3723],{"type":25,"value":3255},{"type":19,"tag":186,"props":3725,"children":3726},{"style":193},[3727],{"type":25,"value":2168},{"type":19,"tag":186,"props":3729,"children":3730},{"style":220},[3731],{"type":25,"value":3686},{"type":19,"tag":186,"props":3733,"children":3734},{"style":193},[3735],{"type":25,"value":3736},"> {\n",{"type":19,"tag":186,"props":3738,"children":3739},{"class":188,"line":726},[3740,3745,3749,3754,3759,3763,3768,3773,3777,3782,3787],{"type":19,"tag":186,"props":3741,"children":3742},{"style":214},[3743],{"type":25,"value":3744},"  for",{"type":19,"tag":186,"props":3746,"children":3747},{"style":193},[3748],{"type":25,"value":528},{"type":19,"tag":186,"props":3750,"children":3751},{"style":214},[3752],{"type":25,"value":3753},"let",{"type":19,"tag":186,"props":3755,"children":3756},{"style":193},[3757],{"type":25,"value":3758}," i ",{"type":19,"tag":186,"props":3760,"children":3761},{"style":214},[3762],{"type":25,"value":1203},{"type":19,"tag":186,"props":3764,"children":3765},{"style":220},[3766],{"type":25,"value":3767}," 0",{"type":19,"tag":186,"props":3769,"children":3770},{"style":193},[3771],{"type":25,"value":3772},"; i ",{"type":19,"tag":186,"props":3774,"children":3775},{"style":214},[3776],{"type":25,"value":2168},{"type":19,"tag":186,"props":3778,"children":3779},{"style":193},[3780],{"type":25,"value":3781}," maxRetries; i",{"type":19,"tag":186,"props":3783,"children":3784},{"style":214},[3785],{"type":25,"value":3786},"++",{"type":19,"tag":186,"props":3788,"children":3789},{"style":193},[3790],{"type":25,"value":2868},{"type":19,"tag":186,"props":3792,"children":3793},{"class":188,"line":734},[3794,3799],{"type":19,"tag":186,"props":3795,"children":3796},{"style":214},[3797],{"type":25,"value":3798},"    try",{"type":19,"tag":186,"props":3800,"children":3801},{"style":193},[3802],{"type":25,"value":549},{"type":19,"tag":186,"props":3804,"children":3805},{"class":188,"line":743},[3806,3811,3815,3820],{"type":19,"tag":186,"props":3807,"children":3808},{"style":214},[3809],{"type":25,"value":3810},"      return",{"type":19,"tag":186,"props":3812,"children":3813},{"style":214},[3814],{"type":25,"value":321},{"type":19,"tag":186,"props":3816,"children":3817},{"style":199},[3818],{"type":25,"value":3819}," fn",{"type":19,"tag":186,"props":3821,"children":3822},{"style":193},[3823],{"type":25,"value":840},{"type":19,"tag":186,"props":3825,"children":3826},{"class":188,"line":763},[3827,3832,3837],{"type":19,"tag":186,"props":3828,"children":3829},{"style":193},[3830],{"type":25,"value":3831},"    } ",{"type":19,"tag":186,"props":3833,"children":3834},{"style":214},[3835],{"type":25,"value":3836},"catch",{"type":19,"tag":186,"props":3838,"children":3839},{"style":193},[3840],{"type":25,"value":3841}," (error) {\n",{"type":19,"tag":186,"props":3843,"children":3844},{"class":188,"line":780},[3845,3849,3854,3859,3864,3868,3873,3877,3882],{"type":19,"tag":186,"props":3846,"children":3847},{"style":214},[3848],{"type":25,"value":2423},{"type":19,"tag":186,"props":3850,"children":3851},{"style":193},[3852],{"type":25,"value":3853}," (i ",{"type":19,"tag":186,"props":3855,"children":3856},{"style":214},[3857],{"type":25,"value":3858},"===",{"type":19,"tag":186,"props":3860,"children":3861},{"style":193},[3862],{"type":25,"value":3863}," maxRetries ",{"type":19,"tag":186,"props":3865,"children":3866},{"style":214},[3867],{"type":25,"value":1881},{"type":19,"tag":186,"props":3869,"children":3870},{"style":220},[3871],{"type":25,"value":3872}," 1",{"type":19,"tag":186,"props":3874,"children":3875},{"style":193},[3876],{"type":25,"value":539},{"type":19,"tag":186,"props":3878,"children":3879},{"style":214},[3880],{"type":25,"value":3881},"throw",{"type":19,"tag":186,"props":3883,"children":3884},{"style":193},[3885],{"type":25,"value":3886}," error\n",{"type":19,"tag":186,"props":3888,"children":3889},{"class":188,"line":805},[3890,3895,3900,3904,3909,3914,3918,3923,3927,3932],{"type":19,"tag":186,"props":3891,"children":3892},{"style":214},[3893],{"type":25,"value":3894},"      await",{"type":19,"tag":186,"props":3896,"children":3897},{"style":199},[3898],{"type":25,"value":3899}," delay",{"type":19,"tag":186,"props":3901,"children":3902},{"style":193},[3903],{"type":25,"value":518},{"type":19,"tag":186,"props":3905,"children":3906},{"style":220},[3907],{"type":25,"value":3908},"1000",{"type":19,"tag":186,"props":3910,"children":3911},{"style":214},[3912],{"type":25,"value":3913}," *",{"type":19,"tag":186,"props":3915,"children":3916},{"style":193},[3917],{"type":25,"value":3853},{"type":19,"tag":186,"props":3919,"children":3920},{"style":214},[3921],{"type":25,"value":3922},"+",{"type":19,"tag":186,"props":3924,"children":3925},{"style":220},[3926],{"type":25,"value":3872},{"type":19,"tag":186,"props":3928,"children":3929},{"style":193},[3930],{"type":25,"value":3931},")) ",{"type":19,"tag":186,"props":3933,"children":3934},{"style":492},[3935],{"type":25,"value":3936},"// 指数退避\n",{"type":19,"tag":186,"props":3938,"children":3939},{"class":188,"line":813},[3940],{"type":19,"tag":186,"props":3941,"children":3942},{"style":193},[3943],{"type":25,"value":2970},{"type":19,"tag":186,"props":3945,"children":3946},{"class":188,"line":821},[3947],{"type":19,"tag":186,"props":3948,"children":3949},{"style":193},[3950],{"type":25,"value":1342},{"type":19,"tag":186,"props":3952,"children":3953},{"class":188,"line":843},[3954],{"type":19,"tag":186,"props":3955,"children":3956},{"style":193},[3957],{"type":25,"value":244},{"type":19,"tag":20,"props":3959,"children":3961},{"id":3960},"可扩展性设计",[3962],{"type":25,"value":3960},{"type":19,"tag":38,"props":3964,"children":3966},{"id":3965},"智能体插件系统",[3967],{"type":25,"value":3965},{"type":19,"tag":27,"props":3969,"children":3970},{},[3971],{"type":25,"value":3972},"支持动态注册新的智能体：",{"type":19,"tag":175,"props":3974,"children":3976},{"className":177,"code":3975,"language":179,"meta":7,"style":7},"interface AgentPlugin {\n  name: string\n  priority: number\n  execute(context: GenerationContext): Promise\u003Cvoid>\n}\n\nclass AgentRegistry {\n  private agents: AgentPlugin[] = []\n  \n  register(agent: AgentPlugin) {\n    this.agents.push(agent)\n    this.agents.sort((a, b) => b.priority - a.priority)\n  }\n  \n  async executeAll(context: GenerationContext) {\n    for (const agent of this.agents) {\n      await agent.execute(context)\n    }\n  }\n}\n",[3977],{"type":19,"tag":182,"props":3978,"children":3979},{"__ignoreMap":7},[3980,3996,4012,4028,4079,4086,4093,4109,4143,4150,4179,4201,4254,4261,4268,4301,4336,4358,4365,4372],{"type":19,"tag":186,"props":3981,"children":3982},{"class":188,"line":189},[3983,3987,3992],{"type":19,"tag":186,"props":3984,"children":3985},{"style":214},[3986],{"type":25,"value":1399},{"type":19,"tag":186,"props":3988,"children":3989},{"style":199},[3990],{"type":25,"value":3991}," AgentPlugin",{"type":19,"tag":186,"props":3993,"children":3994},{"style":193},[3995],{"type":25,"value":549},{"type":19,"tag":186,"props":3997,"children":3998},{"class":188,"line":210},[3999,4004,4008],{"type":19,"tag":186,"props":4000,"children":4001},{"style":531},[4002],{"type":25,"value":4003},"  name",{"type":19,"tag":186,"props":4005,"children":4006},{"style":214},[4007],{"type":25,"value":173},{"type":19,"tag":186,"props":4009,"children":4010},{"style":220},[4011],{"type":25,"value":1425},{"type":19,"tag":186,"props":4013,"children":4014},{"class":188,"line":247},[4015,4020,4024],{"type":19,"tag":186,"props":4016,"children":4017},{"style":531},[4018],{"type":25,"value":4019},"  priority",{"type":19,"tag":186,"props":4021,"children":4022},{"style":214},[4023],{"type":25,"value":173},{"type":19,"tag":186,"props":4025,"children":4026},{"style":220},[4027],{"type":25,"value":1606},{"type":19,"tag":186,"props":4029,"children":4030},{"class":188,"line":256},[4031,4036,4040,4045,4049,4053,4057,4061,4065,4069,4074],{"type":19,"tag":186,"props":4032,"children":4033},{"style":199},[4034],{"type":25,"value":4035},"  execute",{"type":19,"tag":186,"props":4037,"children":4038},{"style":193},[4039],{"type":25,"value":518},{"type":19,"tag":186,"props":4041,"children":4042},{"style":531},[4043],{"type":25,"value":4044},"context",{"type":19,"tag":186,"props":4046,"children":4047},{"style":214},[4048],{"type":25,"value":173},{"type":19,"tag":186,"props":4050,"children":4051},{"style":199},[4052],{"type":25,"value":2548},{"type":19,"tag":186,"props":4054,"children":4055},{"style":193},[4056],{"type":25,"value":1614},{"type":19,"tag":186,"props":4058,"children":4059},{"style":214},[4060],{"type":25,"value":173},{"type":19,"tag":186,"props":4062,"children":4063},{"style":199},[4064],{"type":25,"value":3255},{"type":19,"tag":186,"props":4066,"children":4067},{"style":193},[4068],{"type":25,"value":2168},{"type":19,"tag":186,"props":4070,"children":4071},{"style":220},[4072],{"type":25,"value":4073},"void",{"type":19,"tag":186,"props":4075,"children":4076},{"style":193},[4077],{"type":25,"value":4078},">\n",{"type":19,"tag":186,"props":4080,"children":4081},{"class":188,"line":265},[4082],{"type":19,"tag":186,"props":4083,"children":4084},{"style":193},[4085],{"type":25,"value":244},{"type":19,"tag":186,"props":4087,"children":4088},{"class":188,"line":274},[4089],{"type":19,"tag":186,"props":4090,"children":4091},{"emptyLinePlaceholder":1547},[4092],{"type":25,"value":1550},{"type":19,"tag":186,"props":4094,"children":4095},{"class":188,"line":283},[4096,4100,4105],{"type":19,"tag":186,"props":4097,"children":4098},{"style":214},[4099],{"type":25,"value":3497},{"type":19,"tag":186,"props":4101,"children":4102},{"style":199},[4103],{"type":25,"value":4104}," AgentRegistry",{"type":19,"tag":186,"props":4106,"children":4107},{"style":193},[4108],{"type":25,"value":549},{"type":19,"tag":186,"props":4110,"children":4111},{"class":188,"line":292},[4112,4117,4122,4126,4130,4135,4139],{"type":19,"tag":186,"props":4113,"children":4114},{"style":214},[4115],{"type":25,"value":4116},"  private",{"type":19,"tag":186,"props":4118,"children":4119},{"style":531},[4120],{"type":25,"value":4121}," agents",{"type":19,"tag":186,"props":4123,"children":4124},{"style":214},[4125],{"type":25,"value":173},{"type":19,"tag":186,"props":4127,"children":4128},{"style":199},[4129],{"type":25,"value":3991},{"type":19,"tag":186,"props":4131,"children":4132},{"style":193},[4133],{"type":25,"value":4134},"[] ",{"type":19,"tag":186,"props":4136,"children":4137},{"style":214},[4138],{"type":25,"value":1203},{"type":19,"tag":186,"props":4140,"children":4141},{"style":193},[4142],{"type":25,"value":2374},{"type":19,"tag":186,"props":4144,"children":4145},{"class":188,"line":301},[4146],{"type":19,"tag":186,"props":4147,"children":4148},{"style":193},[4149],{"type":25,"value":307},{"type":19,"tag":186,"props":4151,"children":4152},{"class":188,"line":310},[4153,4158,4162,4167,4171,4175],{"type":19,"tag":186,"props":4154,"children":4155},{"style":199},[4156],{"type":25,"value":4157},"  register",{"type":19,"tag":186,"props":4159,"children":4160},{"style":193},[4161],{"type":25,"value":518},{"type":19,"tag":186,"props":4163,"children":4164},{"style":531},[4165],{"type":25,"value":4166},"agent",{"type":19,"tag":186,"props":4168,"children":4169},{"style":214},[4170],{"type":25,"value":173},{"type":19,"tag":186,"props":4172,"children":4173},{"style":199},[4174],{"type":25,"value":3991},{"type":19,"tag":186,"props":4176,"children":4177},{"style":193},[4178],{"type":25,"value":2868},{"type":19,"tag":186,"props":4180,"children":4181},{"class":188,"line":344},[4182,4187,4192,4196],{"type":19,"tag":186,"props":4183,"children":4184},{"style":220},[4185],{"type":25,"value":4186},"    this",{"type":19,"tag":186,"props":4188,"children":4189},{"style":193},[4190],{"type":25,"value":4191},".agents.",{"type":19,"tag":186,"props":4193,"children":4194},{"style":199},[4195],{"type":25,"value":608},{"type":19,"tag":186,"props":4197,"children":4198},{"style":193},[4199],{"type":25,"value":4200},"(agent)\n",{"type":19,"tag":186,"props":4202,"children":4203},{"class":188,"line":708},[4204,4208,4212,4216,4220,4224,4228,4232,4236,4240,4245,4249],{"type":19,"tag":186,"props":4205,"children":4206},{"style":220},[4207],{"type":25,"value":4186},{"type":19,"tag":186,"props":4209,"children":4210},{"style":193},[4211],{"type":25,"value":4191},{"type":19,"tag":186,"props":4213,"children":4214},{"style":199},[4215],{"type":25,"value":1843},{"type":19,"tag":186,"props":4217,"children":4218},{"style":193},[4219],{"type":25,"value":1848},{"type":19,"tag":186,"props":4221,"children":4222},{"style":531},[4223],{"type":25,"value":1853},{"type":19,"tag":186,"props":4225,"children":4226},{"style":193},[4227],{"type":25,"value":1858},{"type":19,"tag":186,"props":4229,"children":4230},{"style":531},[4231],{"type":25,"value":1863},{"type":19,"tag":186,"props":4233,"children":4234},{"style":193},[4235],{"type":25,"value":539},{"type":19,"tag":186,"props":4237,"children":4238},{"style":214},[4239],{"type":25,"value":544},{"type":19,"tag":186,"props":4241,"children":4242},{"style":193},[4243],{"type":25,"value":4244}," b.priority ",{"type":19,"tag":186,"props":4246,"children":4247},{"style":214},[4248],{"type":25,"value":1881},{"type":19,"tag":186,"props":4250,"children":4251},{"style":193},[4252],{"type":25,"value":4253}," a.priority)\n",{"type":19,"tag":186,"props":4255,"children":4256},{"class":188,"line":717},[4257],{"type":19,"tag":186,"props":4258,"children":4259},{"style":193},[4260],{"type":25,"value":1342},{"type":19,"tag":186,"props":4262,"children":4263},{"class":188,"line":726},[4264],{"type":19,"tag":186,"props":4265,"children":4266},{"style":193},[4267],{"type":25,"value":307},{"type":19,"tag":186,"props":4269,"children":4270},{"class":188,"line":734},[4271,4276,4281,4285,4289,4293,4297],{"type":19,"tag":186,"props":4272,"children":4273},{"style":214},[4274],{"type":25,"value":4275},"  async",{"type":19,"tag":186,"props":4277,"children":4278},{"style":199},[4279],{"type":25,"value":4280}," executeAll",{"type":19,"tag":186,"props":4282,"children":4283},{"style":193},[4284],{"type":25,"value":518},{"type":19,"tag":186,"props":4286,"children":4287},{"style":531},[4288],{"type":25,"value":4044},{"type":19,"tag":186,"props":4290,"children":4291},{"style":214},[4292],{"type":25,"value":173},{"type":19,"tag":186,"props":4294,"children":4295},{"style":199},[4296],{"type":25,"value":2548},{"type":19,"tag":186,"props":4298,"children":4299},{"style":193},[4300],{"type":25,"value":2868},{"type":19,"tag":186,"props":4302,"children":4303},{"class":188,"line":743},[4304,4309,4313,4317,4322,4327,4331],{"type":19,"tag":186,"props":4305,"children":4306},{"style":214},[4307],{"type":25,"value":4308},"    for",{"type":19,"tag":186,"props":4310,"children":4311},{"style":193},[4312],{"type":25,"value":528},{"type":19,"tag":186,"props":4314,"children":4315},{"style":214},[4316],{"type":25,"value":3010},{"type":19,"tag":186,"props":4318,"children":4319},{"style":220},[4320],{"type":25,"value":4321}," agent",{"type":19,"tag":186,"props":4323,"children":4324},{"style":214},[4325],{"type":25,"value":4326}," of",{"type":19,"tag":186,"props":4328,"children":4329},{"style":220},[4330],{"type":25,"value":326},{"type":19,"tag":186,"props":4332,"children":4333},{"style":193},[4334],{"type":25,"value":4335},".agents) {\n",{"type":19,"tag":186,"props":4337,"children":4338},{"class":188,"line":763},[4339,4343,4348,4353],{"type":19,"tag":186,"props":4340,"children":4341},{"style":214},[4342],{"type":25,"value":3894},{"type":19,"tag":186,"props":4344,"children":4345},{"style":193},[4346],{"type":25,"value":4347}," agent.",{"type":19,"tag":186,"props":4349,"children":4350},{"style":199},[4351],{"type":25,"value":4352},"execute",{"type":19,"tag":186,"props":4354,"children":4355},{"style":193},[4356],{"type":25,"value":4357},"(context)\n",{"type":19,"tag":186,"props":4359,"children":4360},{"class":188,"line":780},[4361],{"type":19,"tag":186,"props":4362,"children":4363},{"style":193},[4364],{"type":25,"value":2970},{"type":19,"tag":186,"props":4366,"children":4367},{"class":188,"line":805},[4368],{"type":19,"tag":186,"props":4369,"children":4370},{"style":193},[4371],{"type":25,"value":1342},{"type":19,"tag":186,"props":4373,"children":4374},{"class":188,"line":813},[4375],{"type":19,"tag":186,"props":4376,"children":4377},{"style":193},[4378],{"type":25,"value":244},{"type":19,"tag":20,"props":4380,"children":4382},{"id":4381},"未来演进方向",[4383],{"type":25,"value":4381},{"type":19,"tag":38,"props":4385,"children":4387},{"id":4386},"_1-自适应学习",[4388],{"type":25,"value":4389},"1. 自适应学习",{"type":19,"tag":44,"props":4391,"children":4392},{},[4393,4398,4403],{"type":19,"tag":48,"props":4394,"children":4395},{},[4396],{"type":25,"value":4397},"收集用户反馈数据",{"type":19,"tag":48,"props":4399,"children":4400},{},[4401],{"type":25,"value":4402},"优化组件选择算法",{"type":19,"tag":48,"props":4404,"children":4405},{},[4406],{"type":25,"value":4407},"个性化推荐模型",{"type":19,"tag":38,"props":4409,"children":4411},{"id":4410},"_2-多模态输入",[4412],{"type":25,"value":4413},"2. 多模态输入",{"type":19,"tag":44,"props":4415,"children":4416},{},[4417,4422,4427],{"type":19,"tag":48,"props":4418,"children":4419},{},[4420],{"type":25,"value":4421},"支持图片参考",{"type":19,"tag":48,"props":4423,"children":4424},{},[4425],{"type":25,"value":4426},"语音描述输入",{"type":19,"tag":48,"props":4428,"children":4429},{},[4430],{"type":25,"value":4431},"手绘草图识别",{"type":19,"tag":38,"props":4433,"children":4435},{"id":4434},"_3-协同编辑",[4436],{"type":25,"value":4437},"3. 协同编辑",{"type":19,"tag":44,"props":4439,"children":4440},{},[4441,4446,4451],{"type":19,"tag":48,"props":4442,"children":4443},{},[4444],{"type":25,"value":4445},"实时多人协作",{"type":19,"tag":48,"props":4447,"children":4448},{},[4449],{"type":25,"value":4450},"版本控制系统",{"type":19,"tag":48,"props":4452,"children":4453},{},[4454],{"type":25,"value":4455},"冲突解决机制",{"type":19,"tag":20,"props":4457,"children":4459},{"id":4458},"总结",[4460],{"type":25,"value":4458},{"type":19,"tag":27,"props":4462,"children":4463},{},[4464],{"type":25,"value":4465},"HTMLPAGE的AI架构通过多智能体协作、实时流式处理和模块化组装等技术，实现了高效智能的网页生成能力。系统的可扩展性设计为未来的功能演进提供了坚实基础。",{"type":19,"tag":27,"props":4467,"children":4468},{},[4469,4474],{"type":19,"tag":52,"props":4470,"children":4471},{},[4472],{"type":25,"value":4473},"核心优势",{"type":25,"value":173},{"type":19,"tag":44,"props":4476,"children":4477},{},[4478,4483,4488,4493],{"type":19,"tag":48,"props":4479,"children":4480},{},[4481],{"type":25,"value":4482},"⚡ 实时反馈，用户体验流畅",{"type":19,"tag":48,"props":4484,"children":4485},{},[4486],{"type":25,"value":4487},"🧠 智能理解，准确把握需求",{"type":19,"tag":48,"props":4489,"children":4490},{},[4491],{"type":25,"value":4492},"🎨 专业设计，组件质量保证",{"type":19,"tag":48,"props":4494,"children":4495},{},[4496],{"type":25,"value":4497},"🔧 灵活扩展，支持定制开发",{"type":19,"tag":27,"props":4499,"children":4500},{},[4501],{"type":25,"value":4502},"通过持续优化和迭代，HTMLPAGE AI系统将为用户提供更加智能、高效的网页创作体验。",{"type":19,"tag":3237,"props":4504,"children":4505},{},[4506],{"type":25,"value":4507},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":7,"searchDepth":247,"depth":247,"links":4509},[4510,4511,4514,4522,4526,4530,4533,4538,4541,4544,4549],{"id":22,"depth":210,"text":22},{"id":34,"depth":210,"text":34,"children":4512},[4513],{"id":40,"depth":247,"text":40},{"id":111,"depth":210,"text":111,"children":4515},[4516],{"id":116,"depth":247,"text":116,"children":4517},[4518,4519,4520,4521],{"id":127,"depth":256,"text":130},{"id":352,"depth":256,"text":355},{"id":390,"depth":256,"text":393},{"id":428,"depth":256,"text":431},{"id":466,"depth":210,"text":466,"children":4523},[4524,4525],{"id":471,"depth":247,"text":474},{"id":852,"depth":247,"text":852},{"id":1372,"depth":210,"text":1372,"children":4527},[4528,4529],{"id":1377,"depth":247,"text":1377},{"id":1953,"depth":247,"text":1953},{"id":2522,"depth":210,"text":2522,"children":4531},[4532],{"id":2527,"depth":247,"text":2527},{"id":2987,"depth":210,"text":2987,"children":4534},[4535,4536,4537],{"id":2992,"depth":247,"text":2995},{"id":3154,"depth":247,"text":3157},{"id":3361,"depth":247,"text":3364},{"id":3475,"depth":210,"text":3475,"children":4539},[4540],{"id":3480,"depth":247,"text":3480},{"id":3960,"depth":210,"text":3960,"children":4542},[4543],{"id":3965,"depth":247,"text":3965},{"id":4381,"depth":210,"text":4381,"children":4545},[4546,4547,4548],{"id":4386,"depth":247,"text":4389},{"id":4410,"depth":247,"text":4413},{"id":4434,"depth":247,"text":4437},{"id":4458,"depth":210,"text":4458},"markdown","content:blog:ai-architecture-deep-dive.md","blog/ai-architecture-deep-dive.md","blog/ai-architecture-deep-dive","md",[4556,4566,4574],{"_path":4557,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4558,"description":4559,"keywords":4560,"author":12,"date":4561,"category":4562,"image":14,"_type":4550,"_id":4563,"_source":3228,"_file":4564,"_stem":4565,"_extension":4554},"/blog/2025-q1-updates","2025 Q1 产品更新","第一季度重大功能发布：AI 生成优化、新模板上线、编辑器增强等","2025 Q1 产品更新, Blog, HTMLPAGE","2025-11-26","待分类","content:blog:2025-q1-updates.md","blog/2025-q1-updates.md","blog/2025-q1-updates",{"_path":4567,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4568,"description":4569,"keywords":4570,"author":12,"date":4561,"category":4562,"image":14,"_type":4550,"_id":4571,"_source":3228,"_file":4572,"_stem":4573,"_extension":4554},"/blog/2025-roadmap","2025 产品路线图","展望 2025 年的产品规划：AI 能力增强、模板扩充、国际化等","2025 产品路线图, Blog, HTMLPAGE","content:blog:2025-roadmap.md","blog/2025-roadmap.md","blog/2025-roadmap",{"_path":4575,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":4576,"description":4577,"keywords":4578,"author":12,"date":4561,"category":4562,"image":14,"_type":4550,"_id":4579,"_source":3228,"_file":4580,"_stem":4581,"_extension":4554},"/blog/ab-testing","A/B 测试","通过 A/B 测试验证设计方案","A/B 测试, Blog, HTMLPAGE","content:blog:ab-testing.md","blog/ab-testing.md","blog/ab-testing",1774945276589]