[{"data":1,"prerenderedAt":3948},["ShallowReactive",2],{"article-/topics/ai/ai-agent-event-sourcing-for-workflow-runtime":3,"related-ai":667,"content-query-JPUf6EqrR5":3434},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":12,"image":17,"imageQuery":18,"pexelsPhotoId":19,"pexelsUrl":20,"featured":6,"readingTime":21,"body":22,"_type":661,"_id":662,"_source":663,"_file":664,"_stem":665,"_extension":666},"/topics/ai/ai-agent-event-sourcing-for-workflow-runtime","ai",false,"","AI agent Workflow Runtime 的 Event Sourcing：为什么状态快照不够","仅存当前状态无法回答‘过程如何走到这里’。本文讲清 event sourcing 在 agent workflow runtime 的价值、代价与落地边界。","2026-05-30","HTMLPAGE 团队",[13,14,15,16],"AI agent","Event Sourcing","Workflow Runtime","Observability","/images/articles/ai-agent-event-sourcing-for-workflow-runtime-featured.jpg","data stream monitoring dashboard control room",32026165,"https://www.pexels.com/photo/futuristic-command-station-with-digital-displays-32026165/",14,{"type":23,"children":24,"toc":646},"root",[25,33,38,45,112,117,122,127,172,177,182,256,261,267,285,290,296,310,315,328,333,338,343,361,366,371,394,399,404,416,421,427,432,506,511,516,521,545,550,556,610,615],{"type":26,"tag":27,"props":28,"children":29},"element","p",{},[30],{"type":31,"value":32},"text","快照能告诉你现在是什么状态，但不能告诉你为什么到这里。对 AI agent 来说，这个缺口会直接影响审计、回放和补偿。",{"type":26,"tag":27,"props":34,"children":35},{},[36],{"type":31,"value":37},"如果你已经遇到“状态正确但过程说不清”，说明系统到了必须事件化的阶段。",{"type":26,"tag":39,"props":40,"children":42},"h2",{"id":41},"为什么-runtime-需要事件流",[43],{"type":31,"value":44},"为什么 runtime 需要事件流",{"type":26,"tag":46,"props":47,"children":48},"table",{},[49,68],{"type":26,"tag":50,"props":51,"children":52},"thead",{},[53],{"type":26,"tag":54,"props":55,"children":56},"tr",{},[57,63],{"type":26,"tag":58,"props":59,"children":60},"th",{},[61],{"type":31,"value":62},"仅快照模式的问题",{"type":26,"tag":58,"props":64,"children":65},{},[66],{"type":31,"value":67},"事件流能补什么",{"type":26,"tag":69,"props":70,"children":71},"tbody",{},[72,86,99],{"type":26,"tag":54,"props":73,"children":74},{},[75,81],{"type":26,"tag":76,"props":77,"children":78},"td",{},[79],{"type":31,"value":80},"难以追踪状态迁移原因",{"type":26,"tag":76,"props":82,"children":83},{},[84],{"type":31,"value":85},"每次迁移有因果事件",{"type":26,"tag":54,"props":87,"children":88},{},[89,94],{"type":26,"tag":76,"props":90,"children":91},{},[92],{"type":31,"value":93},"回放粒度粗",{"type":26,"tag":76,"props":95,"children":96},{},[97],{"type":31,"value":98},"支持按事件重建路径",{"type":26,"tag":54,"props":100,"children":101},{},[102,107],{"type":26,"tag":76,"props":103,"children":104},{},[105],{"type":31,"value":106},"审计链断裂",{"type":26,"tag":76,"props":108,"children":109},{},[110],{"type":31,"value":111},"事件可直接作为证据索引",{"type":26,"tag":27,"props":113,"children":114},{},[115],{"type":31,"value":116},"event sourcing 不是替代快照，而是让快照有可验证来源。",{"type":26,"tag":39,"props":118,"children":120},{"id":119},"事件模型的最小字段",[121],{"type":31,"value":119},{"type":26,"tag":27,"props":123,"children":124},{},[125],{"type":31,"value":126},"建议每个事件至少包含：",{"type":26,"tag":128,"props":129,"children":130},"ul",{},[131,137,142,147,152,157,162,167],{"type":26,"tag":132,"props":133,"children":134},"li",{},[135],{"type":31,"value":136},"eventId",{"type":26,"tag":132,"props":138,"children":139},{},[140],{"type":31,"value":141},"runId",{"type":26,"tag":132,"props":143,"children":144},{},[145],{"type":31,"value":146},"nodeId",{"type":26,"tag":132,"props":148,"children":149},{},[150],{"type":31,"value":151},"eventType",{"type":26,"tag":132,"props":153,"children":154},{},[155],{"type":31,"value":156},"timestamp",{"type":26,"tag":132,"props":158,"children":159},{},[160],{"type":31,"value":161},"causationId",{"type":26,"tag":132,"props":163,"children":164},{},[165],{"type":31,"value":166},"correlationId",{"type":26,"tag":132,"props":168,"children":169},{},[170],{"type":31,"value":171},"payload",{"type":26,"tag":27,"props":173,"children":174},{},[175],{"type":31,"value":176},"没有 causationId 和 correlationId，跨系统事件很难拼成完整因果链。",{"type":26,"tag":39,"props":178,"children":180},{"id":179},"事件类型建议",[181],{"type":31,"value":179},{"type":26,"tag":46,"props":183,"children":184},{},[185,201],{"type":26,"tag":50,"props":186,"children":187},{},[188],{"type":26,"tag":54,"props":189,"children":190},{},[191,196],{"type":26,"tag":58,"props":192,"children":193},{},[194],{"type":31,"value":195},"类型",{"type":26,"tag":58,"props":197,"children":198},{},[199],{"type":31,"value":200},"示例",{"type":26,"tag":69,"props":202,"children":203},{},[204,217,230,243],{"type":26,"tag":54,"props":205,"children":206},{},[207,212],{"type":26,"tag":76,"props":208,"children":209},{},[210],{"type":31,"value":211},"state transition",{"type":26,"tag":76,"props":213,"children":214},{},[215],{"type":31,"value":216},"NODE_STARTED, NODE_SUCCEEDED",{"type":26,"tag":54,"props":218,"children":219},{},[220,225],{"type":26,"tag":76,"props":221,"children":222},{},[223],{"type":31,"value":224},"decision",{"type":26,"tag":76,"props":226,"children":227},{},[228],{"type":31,"value":229},"POLICY_BLOCKED, APPROVAL_GRANTED",{"type":26,"tag":54,"props":231,"children":232},{},[233,238],{"type":26,"tag":76,"props":234,"children":235},{},[236],{"type":31,"value":237},"side effect",{"type":26,"tag":76,"props":239,"children":240},{},[241],{"type":31,"value":242},"TOOL_CALLED, EFFECT_COMMITTED",{"type":26,"tag":54,"props":244,"children":245},{},[246,251],{"type":26,"tag":76,"props":247,"children":248},{},[249],{"type":31,"value":250},"recovery",{"type":26,"tag":76,"props":252,"children":253},{},[254],{"type":31,"value":255},"RETRY_SCHEDULED, COMPENSATION_DONE",{"type":26,"tag":27,"props":257,"children":258},{},[259],{"type":31,"value":260},"把“决策事件”和“状态事件”分开，是后续审计和调优的关键。",{"type":26,"tag":39,"props":262,"children":264},{"id":263},"推荐架构事件流-快照-ledger",[265],{"type":31,"value":266},"推荐架构：事件流 + 快照 + ledger",{"type":26,"tag":128,"props":268,"children":269},{},[270,275,280],{"type":26,"tag":132,"props":271,"children":272},{},[273],{"type":31,"value":274},"事件流：append-only，保存事实。",{"type":26,"tag":132,"props":276,"children":277},{},[278],{"type":31,"value":279},"快照：加速读取，降低恢复成本。",{"type":26,"tag":132,"props":281,"children":282},{},[283],{"type":31,"value":284},"ledger：跨系统对账索引。",{"type":26,"tag":27,"props":286,"children":287},{},[288],{"type":31,"value":289},"三者分工清晰，才不会出现“日志像账本、账本像缓存”。",{"type":26,"tag":39,"props":291,"children":293},{"id":292},"失败案例只存终态导致争议无法复盘",[294],{"type":31,"value":295},"失败案例：只存终态导致争议无法复盘",{"type":26,"tag":27,"props":297,"children":298},{},[299,301,308],{"type":31,"value":300},"某平台仅保留 ",{"type":26,"tag":302,"props":303,"children":305},"code",{"className":304},[],[306],{"type":31,"value":307},"run_status=completed",{"type":31,"value":309},"。客户质疑中间审批被跳过，团队只能给出“最终通过”的状态证明，无法给出审批链证据。",{"type":26,"tag":27,"props":311,"children":312},{},[313],{"type":31,"value":314},"修复后他们做了两件事：",{"type":26,"tag":128,"props":316,"children":317},{},[318,323],{"type":26,"tag":132,"props":319,"children":320},{},[321],{"type":31,"value":322},"审批节点全部事件化（创建、分配、通过、拒绝、超时）。",{"type":26,"tag":132,"props":324,"children":325},{},[326],{"type":31,"value":327},"审计页面按 runId 聚合事件时间线。",{"type":26,"tag":27,"props":329,"children":330},{},[331],{"type":31,"value":332},"之后争议处理效率显著提升。",{"type":26,"tag":39,"props":334,"children":336},{"id":335},"存储与保留策略",[337],{"type":31,"value":335},{"type":26,"tag":27,"props":339,"children":340},{},[341],{"type":31,"value":342},"事件化常见担忧是“存储爆炸”。建议：",{"type":26,"tag":128,"props":344,"children":345},{},[346,351,356],{"type":26,"tag":132,"props":347,"children":348},{},[349],{"type":31,"value":350},"冷热分层：近 30 天热存，历史冷存。",{"type":26,"tag":132,"props":352,"children":353},{},[354],{"type":31,"value":355},"关键事件永续保留，低价值 debug 事件按策略清理。",{"type":26,"tag":132,"props":357,"children":358},{},[359],{"type":31,"value":360},"对事件 payload 做脱敏分层存储。",{"type":26,"tag":27,"props":362,"children":363},{},[364],{"type":31,"value":365},"这样可以在成本与可追溯性之间取得平衡。",{"type":26,"tag":39,"props":367,"children":369},{"id":368},"指标建议",[370],{"type":31,"value":368},{"type":26,"tag":128,"props":372,"children":373},{},[374,379,384,389],{"type":26,"tag":132,"props":375,"children":376},{},[377],{"type":31,"value":378},"事件丢失率",{"type":26,"tag":132,"props":380,"children":381},{},[382],{"type":31,"value":383},"快照重建一致率",{"type":26,"tag":132,"props":385,"children":386},{},[387],{"type":31,"value":388},"审计查询成功率",{"type":26,"tag":132,"props":390,"children":391},{},[392],{"type":31,"value":393},"回放成功率（基于事件链）",{"type":26,"tag":27,"props":395,"children":396},{},[397],{"type":31,"value":398},"快照重建一致率下降，通常意味着事件定义或写入顺序已退化。",{"type":26,"tag":39,"props":400,"children":402},{"id":401},"一个事件长什么样",[403],{"type":31,"value":401},{"type":26,"tag":405,"props":406,"children":411},"pre",{"className":407,"code":409,"language":410,"meta":7},[408],"language-json","{\n  \"eventId\": \"evt_001\",\n  \"runId\": \"run_789\",\n  \"nodeId\": \"risk_review.v2\",\n  \"eventType\": \"POLICY_EVALUATED\",\n  \"timestamp\": \"2026-05-30T10:15:22Z\",\n  \"causationId\": \"evt_000\",\n  \"correlationId\": \"customer_case_123\",\n  \"payload\": {\n    \"policyVersion\": \"policy_2026_05\",\n    \"decision\": \"requires_human_approval\",\n    \"reasons\": [\"external_commitment_detected\"]\n  }\n}\n","json",[412],{"type":26,"tag":302,"props":413,"children":414},{"__ignoreMap":7},[415],{"type":31,"value":409},{"type":26,"tag":27,"props":417,"children":418},{},[419],{"type":31,"value":420},"这类事件不只是日志。它是后续审批、回放和客户解释的共同事实来源。",{"type":26,"tag":39,"props":422,"children":424},{"id":423},"projection不要让业务页面直接扫事件流",[425],{"type":31,"value":426},"Projection：不要让业务页面直接扫事件流",{"type":26,"tag":27,"props":428,"children":429},{},[430],{"type":31,"value":431},"事件流适合写入事实，但不适合所有查询。建议用 projection 生成读模型：",{"type":26,"tag":46,"props":433,"children":434},{},[435,451],{"type":26,"tag":50,"props":436,"children":437},{},[438],{"type":26,"tag":54,"props":439,"children":440},{},[441,446],{"type":26,"tag":58,"props":442,"children":443},{},[444],{"type":31,"value":445},"Projection",{"type":26,"tag":58,"props":447,"children":448},{},[449],{"type":31,"value":450},"用途",{"type":26,"tag":69,"props":452,"children":453},{},[454,467,480,493],{"type":26,"tag":54,"props":455,"children":456},{},[457,462],{"type":26,"tag":76,"props":458,"children":459},{},[460],{"type":31,"value":461},"run_status_view",{"type":26,"tag":76,"props":463,"children":464},{},[465],{"type":31,"value":466},"展示当前任务状态",{"type":26,"tag":54,"props":468,"children":469},{},[470,475],{"type":26,"tag":76,"props":471,"children":472},{},[473],{"type":31,"value":474},"audit_timeline_view",{"type":26,"tag":76,"props":476,"children":477},{},[478],{"type":31,"value":479},"审计时间线",{"type":26,"tag":54,"props":481,"children":482},{},[483,488],{"type":26,"tag":76,"props":484,"children":485},{},[486],{"type":31,"value":487},"billing_summary_view",{"type":26,"tag":76,"props":489,"children":490},{},[491],{"type":31,"value":492},"成本归集",{"type":26,"tag":54,"props":494,"children":495},{},[496,501],{"type":26,"tag":76,"props":497,"children":498},{},[499],{"type":31,"value":500},"node_health_view",{"type":26,"tag":76,"props":502,"children":503},{},[504],{"type":31,"value":505},"节点健康分析",{"type":26,"tag":27,"props":507,"children":508},{},[509],{"type":31,"value":510},"这样既保留事件流的可追溯性，又避免页面查询变慢。",{"type":26,"tag":39,"props":512,"children":514},{"id":513},"从快照系统迁移到事件系统",[515],{"type":31,"value":513},{"type":26,"tag":27,"props":517,"children":518},{},[519],{"type":31,"value":520},"不要一次性推翻现有状态表。更稳的路径是：",{"type":26,"tag":522,"props":523,"children":524},"ol",{},[525,530,535,540],{"type":26,"tag":132,"props":526,"children":527},{},[528],{"type":31,"value":529},"先为关键状态变化旁路写事件。",{"type":26,"tag":132,"props":531,"children":532},{},[533],{"type":31,"value":534},"用事件重建一个只读 projection。",{"type":26,"tag":132,"props":536,"children":537},{},[538],{"type":31,"value":539},"对比 projection 与原状态表一致性。",{"type":26,"tag":132,"props":541,"children":542},{},[543],{"type":31,"value":544},"一致性稳定后，再让新功能依赖事件流。",{"type":26,"tag":27,"props":546,"children":547},{},[548],{"type":31,"value":549},"这条路线能避免把迁移本身变成新的可靠性事故。",{"type":26,"tag":39,"props":551,"children":553},{"id":552},"checklist",[554],{"type":31,"value":555},"Checklist",{"type":26,"tag":128,"props":557,"children":560},{"className":558},[559],"contains-task-list",[561,574,583,592,601],{"type":26,"tag":132,"props":562,"children":565},{"className":563},[564],"task-list-item",[566,572],{"type":26,"tag":567,"props":568,"children":571},"input",{"disabled":569,"type":570},true,"checkbox",[],{"type":31,"value":573}," 关键状态迁移都有事件定义",{"type":26,"tag":132,"props":575,"children":577},{"className":576},[564],[578,581],{"type":26,"tag":567,"props":579,"children":580},{"disabled":569,"type":570},[],{"type":31,"value":582}," 事件包含 causationId 与 correlationId",{"type":26,"tag":132,"props":584,"children":586},{"className":585},[564],[587,590],{"type":26,"tag":567,"props":588,"children":589},{"disabled":569,"type":570},[],{"type":31,"value":591}," 快照可由事件重建并一致校验",{"type":26,"tag":132,"props":593,"children":595},{"className":594},[564],[596,599],{"type":26,"tag":567,"props":597,"children":598},{"disabled":569,"type":570},[],{"type":31,"value":600}," 事件保留策略符合合规要求",{"type":26,"tag":132,"props":602,"children":604},{"className":603},[564],[605,608],{"type":26,"tag":567,"props":606,"children":607},{"disabled":569,"type":570},[],{"type":31,"value":609}," replay 与审计基于事件链而非猜测",{"type":26,"tag":27,"props":611,"children":612},{},[613],{"type":31,"value":614},"延伸阅读：",{"type":26,"tag":128,"props":616,"children":617},{},[618,628,637],{"type":26,"tag":132,"props":619,"children":620},{},[621],{"type":26,"tag":622,"props":623,"children":625},"a",{"href":624},"/topics/ai/ai-agent-session-store-event-log-design",[626],{"type":31,"value":627},"AI agent Session Store 与 Event Log 设计",{"type":26,"tag":132,"props":629,"children":630},{},[631],{"type":26,"tag":622,"props":632,"children":634},{"href":633},"/topics/ai/ai-agent-run-ledger-audit-model",[635],{"type":31,"value":636},"AI agent Run Ledger 审计模型",{"type":26,"tag":132,"props":638,"children":639},{},[640],{"type":26,"tag":622,"props":641,"children":643},{"href":642},"/topics/ai/ai-agent-deterministic-replay-vs-semantic-replay",[644],{"type":31,"value":645},"AI agent Deterministic Replay vs Semantic Replay",{"title":7,"searchDepth":647,"depth":647,"links":648},3,[649,651,652,653,654,655,656,657,658,659,660],{"id":41,"depth":650,"text":44},2,{"id":119,"depth":650,"text":119},{"id":179,"depth":650,"text":179},{"id":263,"depth":650,"text":266},{"id":292,"depth":650,"text":295},{"id":335,"depth":650,"text":335},{"id":368,"depth":650,"text":368},{"id":401,"depth":650,"text":401},{"id":423,"depth":650,"text":426},{"id":513,"depth":650,"text":513},{"id":552,"depth":650,"text":555},"markdown","content:topics:ai:ai-agent-event-sourcing-for-workflow-runtime.md","content","topics/ai/ai-agent-event-sourcing-for-workflow-runtime.md","topics/ai/ai-agent-event-sourcing-for-workflow-runtime","md",[668,1822,2772],{"_path":669,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":670,"description":671,"date":672,"topic":5,"author":11,"tags":673,"image":679,"imageAlt":680,"pexelsPhotoId":681,"pexelsUrl":682,"readingTime":683,"body":684,"_type":661,"_id":1819,"_source":663,"_file":1820,"_stem":1821,"_extension":666},"/topics/ai/cursor-keyboard-shortcuts-cheatsheet","Cursor 快捷键速查表（macOS/Windows）：从“会用”到“能提效”的 10 个工作流","把 Cursor 常用快捷键按任务分组（查代码、改代码、多文件、对话、审查与回滚），给出可直接照抄的工作流与最小回归清单，避免“快捷键背了也没变快”。","2026-03-02",[674,675,676,677,678],"Cursor","快捷键","AI IDE","VS Code","开发效率","/images/topics/ai/cursor-keyboard-shortcuts-cheatsheet.jpg","彩色机械键盘与鼠标的工作台面",34563105,"https://www.pexels.com/photo/colorful-mechanical-keyboard-and-mouse-setup-34563105/",12,{"type":23,"children":685,"toc":1793},[686,691,709,714,742,747,783,787,793,798,831,836,859,862,868,873,1091,1100,1103,1109,1116,1135,1143,1164,1169,1175,1190,1221,1226,1239,1245,1264,1282,1290,1295,1301,1306,1327,1335,1341,1346,1369,1374,1380,1393,1399,1417,1435,1441,1452,1470,1476,1487,1493,1498,1541,1544,1550,1558,1611,1614,1620,1626,1631,1636,1659,1677,1682,1707,1710,1716,1722,1727,1733,1738,1744,1749,1752,1758],{"type":26,"tag":27,"props":687,"children":688},{},[689],{"type":31,"value":690},"如果你在搜“Cursor 快捷键”，你大概率不是想背一张表，而是想解决这类问题：",{"type":26,"tag":128,"props":692,"children":693},{},[694,699,704],{"type":26,"tag":132,"props":695,"children":696},{},[697],{"type":31,"value":698},"为什么我用了 AI，还是很慢？（对话来回太多、改动不可控）",{"type":26,"tag":132,"props":700,"children":701},{},[702],{"type":31,"value":703},"为什么它“看起来懂了”，却改错文件/改出回归？（上下文与范围没锁住）",{"type":26,"tag":132,"props":705,"children":706},{},[707],{"type":31,"value":708},"多文件改动怎么做得安全？（验收、回滚、最小回归集）",{"type":26,"tag":27,"props":710,"children":711},{},[712],{"type":31,"value":713},"这篇文章给你两份东西：",{"type":26,"tag":522,"props":715,"children":716},{},[717,730],{"type":26,"tag":132,"props":718,"children":719},{},[720,722,728],{"type":31,"value":721},"一张",{"type":26,"tag":723,"props":724,"children":725},"strong",{},[726],{"type":31,"value":727},"按任务分组",{"type":31,"value":729},"的快捷键表（不是按功能堆在一起）",{"type":26,"tag":132,"props":731,"children":732},{},[733,735,740],{"type":31,"value":734},"一套“从需求到落地”的",{"type":26,"tag":723,"props":736,"children":737},{},[738],{"type":31,"value":739},"最小闭环工作流",{"type":31,"value":741},"（每一步都有快捷键）",{"type":26,"tag":27,"props":743,"children":744},{},[745],{"type":31,"value":746},"想看系统玩法：",{"type":26,"tag":128,"props":748,"children":749},{},[750,761,772],{"type":26,"tag":132,"props":751,"children":752},{},[753,755],{"type":31,"value":754},"入门教程看：",{"type":26,"tag":622,"props":756,"children":758},{"href":757},"/topics/ai/cursor-tutorial",[759],{"type":31,"value":760},"Cursor 使用教程（2026）",{"type":26,"tag":132,"props":762,"children":763},{},[764,766],{"type":31,"value":765},"进阶玩法看：",{"type":26,"tag":622,"props":767,"children":769},{"href":768},"/topics/ai/cursor-editor-guide",[770],{"type":31,"value":771},"Cursor 编辑器深度玩法",{"type":26,"tag":132,"props":773,"children":774},{},[775,777],{"type":31,"value":776},"规则与忽略看：",{"type":26,"tag":622,"props":778,"children":780},{"href":779},"/topics/ai/cursor-rules-cursorrules",[781],{"type":31,"value":782},"Cursor Rules 与 .cursorrules",{"type":26,"tag":784,"props":785,"children":786},"hr",{},[],{"type":26,"tag":39,"props":788,"children":790},{"id":789},"先给结论提效不是按得快而是闭环更短",[791],{"type":31,"value":792},"先给结论：提效不是“按得快”，而是“闭环更短”",{"type":26,"tag":27,"props":794,"children":795},{},[796],{"type":31,"value":797},"你可以把 Cursor 的快捷键理解为 3 条流水线：",{"type":26,"tag":128,"props":799,"children":800},{},[801,811,821],{"type":26,"tag":132,"props":802,"children":803},{},[804,809],{"type":26,"tag":723,"props":805,"children":806},{},[807],{"type":31,"value":808},"改一小段",{"type":31,"value":810},"（内联编辑）：把改动限制在一个函数/一段样式",{"type":26,"tag":132,"props":812,"children":813},{},[814,819],{"type":26,"tag":723,"props":815,"children":816},{},[817],{"type":31,"value":818},"改一组文件",{"type":31,"value":820},"（Composer）：把改动限制在一组明确文件，并要求输出 diff + 验收点",{"type":26,"tag":132,"props":822,"children":823},{},[824,829],{"type":26,"tag":723,"props":825,"children":826},{},[827],{"type":31,"value":828},"聊清楚再动手",{"type":31,"value":830},"（侧边对话）：先对齐目标、范围、验收、回滚",{"type":26,"tag":27,"props":832,"children":833},{},[834],{"type":31,"value":835},"当你觉得“它乱改/改太大”时，往往不是快捷键没记住，而是缺了两件事：",{"type":26,"tag":128,"props":837,"children":838},{},[839,849],{"type":26,"tag":132,"props":840,"children":841},{},[842,844],{"type":31,"value":843},"没有在动手前锁定",{"type":26,"tag":723,"props":845,"children":846},{},[847],{"type":31,"value":848},"范围",{"type":26,"tag":132,"props":850,"children":851},{},[852,854],{"type":31,"value":853},"没有在接受改动前准备",{"type":26,"tag":723,"props":855,"children":856},{},[857],{"type":31,"value":858},"验收/回滚",{"type":26,"tag":784,"props":860,"children":861},{},[],{"type":26,"tag":39,"props":863,"children":865},{"id":864},"快捷键速查表按任务分组",[866],{"type":31,"value":867},"快捷键速查表（按任务分组）",{"type":26,"tag":27,"props":869,"children":870},{},[871],{"type":31,"value":872},"说明：下表按“你正在做什么”组织，而不是按“功能名字”组织。不同版本快捷键可能略有差异，但核心逻辑一致。",{"type":26,"tag":46,"props":874,"children":875},{},[876,902],{"type":26,"tag":50,"props":877,"children":878},{},[879],{"type":26,"tag":54,"props":880,"children":881},{},[882,887,892,897],{"type":26,"tag":58,"props":883,"children":884},{},[885],{"type":31,"value":886},"任务",{"type":26,"tag":58,"props":888,"children":889},{},[890],{"type":31,"value":891},"macOS",{"type":26,"tag":58,"props":893,"children":894},{},[895],{"type":31,"value":896},"Windows",{"type":26,"tag":58,"props":898,"children":899},{},[900],{"type":31,"value":901},"你该在什么时候用",{"type":26,"tag":69,"props":903,"children":904},{},[905,936,967,998,1029,1060],{"type":26,"tag":54,"props":906,"children":907},{},[908,913,922,931],{"type":26,"tag":76,"props":909,"children":910},{},[911],{"type":31,"value":912},"改一小段（最安全）",{"type":26,"tag":76,"props":914,"children":915},{},[916],{"type":26,"tag":302,"props":917,"children":919},{"className":918},[],[920],{"type":31,"value":921},"Cmd + K",{"type":26,"tag":76,"props":923,"children":924},{},[925],{"type":26,"tag":302,"props":926,"children":928},{"className":927},[],[929],{"type":31,"value":930},"Ctrl + K",{"type":26,"tag":76,"props":932,"children":933},{},[934],{"type":31,"value":935},"只想改一个函数/一段 CSS，不想动别的",{"type":26,"tag":54,"props":937,"children":938},{},[939,944,953,962],{"type":26,"tag":76,"props":940,"children":941},{},[942],{"type":31,"value":943},"打开 AI 对话（先对齐再动手）",{"type":26,"tag":76,"props":945,"children":946},{},[947],{"type":26,"tag":302,"props":948,"children":950},{"className":949},[],[951],{"type":31,"value":952},"Cmd + L",{"type":26,"tag":76,"props":954,"children":955},{},[956],{"type":26,"tag":302,"props":957,"children":959},{"className":958},[],[960],{"type":31,"value":961},"Ctrl + L",{"type":26,"tag":76,"props":963,"children":964},{},[965],{"type":31,"value":966},"需要澄清目标、制定步骤、给验收点",{"type":26,"tag":54,"props":968,"children":969},{},[970,975,984,993],{"type":26,"tag":76,"props":971,"children":972},{},[973],{"type":31,"value":974},"多文件编辑（有组织地改一组文件）",{"type":26,"tag":76,"props":976,"children":977},{},[978],{"type":26,"tag":302,"props":979,"children":981},{"className":980},[],[982],{"type":31,"value":983},"Cmd + I",{"type":26,"tag":76,"props":985,"children":986},{},[987],{"type":26,"tag":302,"props":988,"children":990},{"className":989},[],[991],{"type":31,"value":992},"Ctrl + I",{"type":26,"tag":76,"props":994,"children":995},{},[996],{"type":31,"value":997},"改动涉及多个文件：组件+样式+测试",{"type":26,"tag":54,"props":999,"children":1000},{},[1001,1006,1015,1024],{"type":26,"tag":76,"props":1002,"children":1003},{},[1004],{"type":31,"value":1005},"把选中代码加入对话上下文",{"type":26,"tag":76,"props":1007,"children":1008},{},[1009],{"type":26,"tag":302,"props":1010,"children":1012},{"className":1011},[],[1013],{"type":31,"value":1014},"Cmd + Shift + L",{"type":26,"tag":76,"props":1016,"children":1017},{},[1018],{"type":26,"tag":302,"props":1019,"children":1021},{"className":1020},[],[1022],{"type":31,"value":1023},"Ctrl + Shift + L",{"type":26,"tag":76,"props":1025,"children":1026},{},[1027],{"type":31,"value":1028},"让 AI 只看你选的片段（降低噪音）",{"type":26,"tag":54,"props":1030,"children":1031},{},[1032,1037,1046,1055],{"type":26,"tag":76,"props":1033,"children":1034},{},[1035],{"type":31,"value":1036},"接受当前建议",{"type":26,"tag":76,"props":1038,"children":1039},{},[1040],{"type":26,"tag":302,"props":1041,"children":1043},{"className":1042},[],[1044],{"type":31,"value":1045},"Cmd + Y",{"type":26,"tag":76,"props":1047,"children":1048},{},[1049],{"type":26,"tag":302,"props":1050,"children":1052},{"className":1051},[],[1053],{"type":31,"value":1054},"Ctrl + Y",{"type":26,"tag":76,"props":1056,"children":1057},{},[1058],{"type":31,"value":1059},"你已经准备好验收/回滚，并确认改动范围",{"type":26,"tag":54,"props":1061,"children":1062},{},[1063,1068,1077,1086],{"type":26,"tag":76,"props":1064,"children":1065},{},[1066],{"type":31,"value":1067},"拒绝当前建议",{"type":26,"tag":76,"props":1069,"children":1070},{},[1071],{"type":26,"tag":302,"props":1072,"children":1074},{"className":1073},[],[1075],{"type":31,"value":1076},"Cmd + N",{"type":26,"tag":76,"props":1078,"children":1079},{},[1080],{"type":26,"tag":302,"props":1081,"children":1083},{"className":1082},[],[1084],{"type":31,"value":1085},"Ctrl + N",{"type":26,"tag":76,"props":1087,"children":1088},{},[1089],{"type":31,"value":1090},"改得太大、改错方向，立刻收手",{"type":26,"tag":1092,"props":1093,"children":1094},"blockquote",{},[1095],{"type":26,"tag":27,"props":1096,"children":1097},{},[1098],{"type":31,"value":1099},"小技巧：把“改一小段”当默认路径。只有当你能清晰写出“会改哪几类文件、怎么验收”时再进入多文件。",{"type":26,"tag":784,"props":1101,"children":1102},{},[],{"type":26,"tag":39,"props":1104,"children":1106},{"id":1105},"_10-个可直接照抄的提效工作流每个都能闭环",[1107],{"type":31,"value":1108},"10 个可直接照抄的提效工作流（每个都能闭环）",{"type":26,"tag":1110,"props":1111,"children":1113},"h3",{"id":1112},"工作流-1需求计划小步改新手最稳",[1114],{"type":31,"value":1115},"工作流 1：需求→计划→小步改（新手最稳）",{"type":26,"tag":522,"props":1117,"children":1118},{},[1119,1130],{"type":26,"tag":132,"props":1120,"children":1121},{},[1122,1128],{"type":26,"tag":302,"props":1123,"children":1125},{"className":1124},[],[1126],{"type":31,"value":1127},"Cmd/Ctrl + L",{"type":31,"value":1129}," 打开对话",{"type":26,"tag":132,"props":1131,"children":1132},{},[1133],{"type":31,"value":1134},"先发这段（可复制）：",{"type":26,"tag":1092,"props":1136,"children":1137},{},[1138],{"type":26,"tag":27,"props":1139,"children":1140},{},[1141],{"type":31,"value":1142},"目标：……\n范围：只修改以下文件/模块：……\n非目标：……（明确不做）\n验收：……（可测试/可手动检查）\n输出格式：先给计划，再逐步执行；每一步写出 diff 摘要。",{"type":26,"tag":522,"props":1144,"children":1145},{"start":647},[1146,1151],{"type":26,"tag":132,"props":1147,"children":1148},{},[1149],{"type":31,"value":1150},"让 AI 先给“计划（3~6 步）”，你确认后再执行",{"type":26,"tag":132,"props":1152,"children":1153},{},[1154,1156,1162],{"type":31,"value":1155},"任何一步涉及改代码：优先回到编辑区，选中片段用 ",{"type":26,"tag":302,"props":1157,"children":1159},{"className":1158},[],[1160],{"type":31,"value":1161},"Cmd/Ctrl + K",{"type":31,"value":1163}," 小步改",{"type":26,"tag":27,"props":1165,"children":1166},{},[1167],{"type":31,"value":1168},"为什么有效：你把“想法”变成了“可执行约束”，这就是 GEO（面向 AI/模型的可理解结构）。",{"type":26,"tag":1110,"props":1170,"children":1172},{"id":1171},"工作流-2只改一个函数高频低风险",[1173],{"type":31,"value":1174},"工作流 2：只改一个函数（高频、低风险）",{"type":26,"tag":128,"props":1176,"children":1177},{},[1178],{"type":26,"tag":132,"props":1179,"children":1180},{},[1181,1183,1188],{"type":31,"value":1182},"选中函数 → ",{"type":26,"tag":302,"props":1184,"children":1186},{"className":1185},[],[1187],{"type":31,"value":1161},{"type":31,"value":1189}," → 输入指令：",{"type":26,"tag":1092,"props":1191,"children":1192},{},[1193,1198],{"type":26,"tag":27,"props":1194,"children":1195},{},[1196],{"type":31,"value":1197},"把这段改成更可读：",{"type":26,"tag":128,"props":1199,"children":1200},{},[1201,1206,1211,1216],{"type":26,"tag":132,"props":1202,"children":1203},{},[1204],{"type":31,"value":1205},"用 async/await",{"type":26,"tag":132,"props":1207,"children":1208},{},[1209],{"type":31,"value":1210},"错误处理不要吞掉",{"type":26,"tag":132,"props":1212,"children":1213},{},[1214],{"type":31,"value":1215},"添加类型（若可推断）",{"type":26,"tag":132,"props":1217,"children":1218},{},[1219],{"type":31,"value":1220},"不要改函数签名",{"type":26,"tag":27,"props":1222,"children":1223},{},[1224],{"type":31,"value":1225},"验收方式（强制）：",{"type":26,"tag":128,"props":1227,"children":1228},{},[1229,1234],{"type":26,"tag":132,"props":1230,"children":1231},{},[1232],{"type":31,"value":1233},"输出前后函数行为一致（输入/输出）",{"type":26,"tag":132,"props":1235,"children":1236},{},[1237],{"type":31,"value":1238},"失败分支有可观测日志（不要悄悄 return null）",{"type":26,"tag":1110,"props":1240,"children":1242},{"id":1241},"工作流-3多文件改动先定文件清单",[1243],{"type":31,"value":1244},"工作流 3：多文件改动（先定“文件清单”）",{"type":26,"tag":522,"props":1246,"children":1247},{},[1248,1259],{"type":26,"tag":132,"props":1249,"children":1250},{},[1251,1257],{"type":26,"tag":302,"props":1252,"children":1254},{"className":1253},[],[1255],{"type":31,"value":1256},"Cmd/Ctrl + I",{"type":31,"value":1258}," 进入多文件",{"type":26,"tag":132,"props":1260,"children":1261},{},[1262],{"type":31,"value":1263},"先让 AI 输出：",{"type":26,"tag":128,"props":1265,"children":1266},{},[1267,1272,1277],{"type":26,"tag":132,"props":1268,"children":1269},{},[1270],{"type":31,"value":1271},"预计会改哪些文件（最多 5 个）",{"type":26,"tag":132,"props":1273,"children":1274},{},[1275],{"type":31,"value":1276},"每个文件改什么",{"type":26,"tag":132,"props":1278,"children":1279},{},[1280],{"type":31,"value":1281},"每一步怎么验收",{"type":26,"tag":522,"props":1283,"children":1284},{"start":647},[1285],{"type":26,"tag":132,"props":1286,"children":1287},{},[1288],{"type":31,"value":1289},"你确认文件清单后再开始生成改动",{"type":26,"tag":27,"props":1291,"children":1292},{},[1293],{"type":31,"value":1294},"关键点：多文件最容易翻车的是“它把你没想到的文件也改了”。所以文件清单是第一道闸门。",{"type":26,"tag":1110,"props":1296,"children":1298},{"id":1297},"工作流-4把上下文噪音砍掉防跑偏",[1299],{"type":31,"value":1300},"工作流 4：把“上下文噪音”砍掉（防跑偏）",{"type":26,"tag":27,"props":1302,"children":1303},{},[1304],{"type":31,"value":1305},"当你怀疑它在胡说/乱改时：",{"type":26,"tag":128,"props":1307,"children":1308},{},[1309,1322],{"type":26,"tag":132,"props":1310,"children":1311},{},[1312,1314,1320],{"type":31,"value":1313},"只选择关键代码片段 → ",{"type":26,"tag":302,"props":1315,"children":1317},{"className":1316},[],[1318],{"type":31,"value":1319},"Cmd/Ctrl + Shift + L",{"type":31,"value":1321}," 加入对话",{"type":26,"tag":132,"props":1323,"children":1324},{},[1325],{"type":31,"value":1326},"然后在对话里要求：",{"type":26,"tag":1092,"props":1328,"children":1329},{},[1330],{"type":26,"tag":27,"props":1331,"children":1332},{},[1333],{"type":31,"value":1334},"只基于我提供的代码片段回答，不要假设其它文件存在。",{"type":26,"tag":1110,"props":1336,"children":1338},{"id":1337},"工作流-5生成变更说明让-code-review-变快",[1339],{"type":31,"value":1340},"工作流 5：生成变更说明（让 code review 变快）",{"type":26,"tag":27,"props":1342,"children":1343},{},[1344],{"type":31,"value":1345},"改完后在对话里让它输出：",{"type":26,"tag":128,"props":1347,"children":1348},{},[1349,1354,1359,1364],{"type":26,"tag":132,"props":1350,"children":1351},{},[1352],{"type":31,"value":1353},"改动摘要（3~7 条）",{"type":26,"tag":132,"props":1355,"children":1356},{},[1357],{"type":31,"value":1358},"风险点（依赖/边界条件）",{"type":26,"tag":132,"props":1360,"children":1361},{},[1362],{"type":31,"value":1363},"回滚方式",{"type":26,"tag":132,"props":1365,"children":1366},{},[1367],{"type":31,"value":1368},"验收步骤",{"type":26,"tag":27,"props":1370,"children":1371},{},[1372],{"type":31,"value":1373},"这套结构能直接贴进 PR 描述。",{"type":26,"tag":1110,"props":1375,"children":1377},{"id":1376},"工作流-6写最小回归集不写回归-等事故",[1378],{"type":31,"value":1379},"工作流 6：写“最小回归集”（不写回归 = 等事故）",{"type":26,"tag":27,"props":1381,"children":1382},{},[1383,1385,1391],{"type":31,"value":1384},"每次改动都至少做 10 条最小回归（见下文清单）。你可以把它写在 ",{"type":26,"tag":302,"props":1386,"children":1388},{"className":1387},[],[1389],{"type":31,"value":1390},"README",{"type":31,"value":1392}," 或团队 wiki。",{"type":26,"tag":1110,"props":1394,"children":1396},{"id":1395},"工作流-7把接受建议变成最后一步",[1397],{"type":31,"value":1398},"工作流 7：把“接受建议”变成最后一步",{"type":26,"tag":27,"props":1400,"children":1401},{},[1402,1408,1410,1415],{"type":26,"tag":302,"props":1403,"children":1405},{"className":1404},[],[1406],{"type":31,"value":1407},"Cmd/Ctrl + Y",{"type":31,"value":1409}," 应该是",{"type":26,"tag":723,"props":1411,"children":1412},{},[1413],{"type":31,"value":1414},"最后一步",{"type":31,"value":1416},"：",{"type":26,"tag":128,"props":1418,"children":1419},{},[1420,1425,1430],{"type":26,"tag":132,"props":1421,"children":1422},{},[1423],{"type":31,"value":1424},"你已经看过 diff",{"type":26,"tag":132,"props":1426,"children":1427},{},[1428],{"type":31,"value":1429},"你能说清楚“怎么验收”",{"type":26,"tag":132,"props":1431,"children":1432},{},[1433],{"type":31,"value":1434},"你知道“怎么回滚”",{"type":26,"tag":1110,"props":1436,"children":1438},{"id":1437},"工作流-8拒绝建议不是失败是风控动作",[1439],{"type":31,"value":1440},"工作流 8：拒绝建议不是失败，是风控动作",{"type":26,"tag":27,"props":1442,"children":1443},{},[1444,1450],{"type":26,"tag":302,"props":1445,"children":1447},{"className":1446},[],[1448],{"type":31,"value":1449},"Cmd/Ctrl + N",{"type":31,"value":1451}," 的使用时机：",{"type":26,"tag":128,"props":1453,"children":1454},{},[1455,1460,1465],{"type":26,"tag":132,"props":1456,"children":1457},{},[1458],{"type":31,"value":1459},"它开始改你没提过的东西（范围漂移）",{"type":26,"tag":132,"props":1461,"children":1462},{},[1463],{"type":31,"value":1464},"它改了 10 个文件但你只想改 1 个",{"type":26,"tag":132,"props":1466,"children":1467},{},[1468],{"type":31,"value":1469},"它为了“更优雅”引入新依赖/新抽象",{"type":26,"tag":1110,"props":1471,"children":1473},{"id":1472},"工作流-9重复任务做成模板提示词不是一次性",[1474],{"type":31,"value":1475},"工作流 9：重复任务做成模板（提示词不是一次性）",{"type":26,"tag":27,"props":1477,"children":1478},{},[1479,1481,1485],{"type":31,"value":1480},"把高频任务（比如“写组件+样式+验收”）固化成模板，放进 Rules（见：",{"type":26,"tag":622,"props":1482,"children":1483},{"href":779},[1484],{"type":31,"value":782},{"type":31,"value":1486},"）。",{"type":26,"tag":1110,"props":1488,"children":1490},{"id":1489},"工作流-10把快捷键表做成你自己的任务表",[1491],{"type":31,"value":1492},"工作流 10：把“快捷键表”做成你自己的任务表",{"type":26,"tag":27,"props":1494,"children":1495},{},[1496],{"type":31,"value":1497},"你不需要记住所有快捷键，只需要记住：",{"type":26,"tag":128,"props":1499,"children":1500},{},[1501,1511,1521,1531],{"type":26,"tag":132,"props":1502,"children":1503},{},[1504,1506],{"type":31,"value":1505},"小步改：",{"type":26,"tag":302,"props":1507,"children":1509},{"className":1508},[],[1510],{"type":31,"value":1161},{"type":26,"tag":132,"props":1512,"children":1513},{},[1514,1516],{"type":31,"value":1515},"先对齐：",{"type":26,"tag":302,"props":1517,"children":1519},{"className":1518},[],[1520],{"type":31,"value":1127},{"type":26,"tag":132,"props":1522,"children":1523},{},[1524,1526],{"type":31,"value":1525},"多文件：",{"type":26,"tag":302,"props":1527,"children":1529},{"className":1528},[],[1530],{"type":31,"value":1256},{"type":26,"tag":132,"props":1532,"children":1533},{},[1534,1536],{"type":31,"value":1535},"上下文聚焦：",{"type":26,"tag":302,"props":1537,"children":1539},{"className":1538},[],[1540],{"type":31,"value":1319},{"type":26,"tag":784,"props":1542,"children":1543},{},[],{"type":26,"tag":39,"props":1545,"children":1547},{"id":1546},"必交付物-1最小回归任务清单10-条通用",[1548],{"type":31,"value":1549},"必交付物 1：最小回归任务清单（10 条，通用）",{"type":26,"tag":1092,"props":1551,"children":1552},{},[1553],{"type":26,"tag":27,"props":1554,"children":1555},{},[1556],{"type":31,"value":1557},"这份清单的意义：让每次 AI 改动都能“被验证”。否则你只是把不可控变成了更快的不可控。",{"type":26,"tag":522,"props":1559,"children":1560},{},[1561,1566,1571,1576,1581,1586,1591,1596,1601,1606],{"type":26,"tag":132,"props":1562,"children":1563},{},[1564],{"type":31,"value":1565},"关键路径能跑通（手动点击/请求一次）",{"type":26,"tag":132,"props":1567,"children":1568},{},[1569],{"type":31,"value":1570},"错误路径能触发（模拟一次失败输入）",{"type":26,"tag":132,"props":1572,"children":1573},{},[1574],{"type":31,"value":1575},"控制台无新增错误（至少关注 1 次真实操作）",{"type":26,"tag":132,"props":1577,"children":1578},{},[1579],{"type":31,"value":1580},"关键 UI 未错位（移动端/桌面端各看一眼）",{"type":26,"tag":132,"props":1582,"children":1583},{},[1584],{"type":31,"value":1585},"刷新后状态正确（尤其是表单/列表）",{"type":26,"tag":132,"props":1587,"children":1588},{},[1589],{"type":31,"value":1590},"路由跳转没断（从入口到目标页）",{"type":26,"tag":132,"props":1592,"children":1593},{},[1594],{"type":31,"value":1595},"相关接口未改变契约（字段名/类型）",{"type":26,"tag":132,"props":1597,"children":1598},{},[1599],{"type":31,"value":1600},"性能没有明显退化（首屏、交互卡顿）",{"type":26,"tag":132,"props":1602,"children":1603},{},[1604],{"type":31,"value":1605},"回滚方案可执行（知道回滚哪几个文件/commit）",{"type":26,"tag":132,"props":1607,"children":1608},{},[1609],{"type":31,"value":1610},"写下“这次改动解决了什么、风险是什么”（可贴 PR）",{"type":26,"tag":784,"props":1612,"children":1613},{},[],{"type":26,"tag":39,"props":1615,"children":1617},{"id":1616},"必交付物-2失败案例复盘真实会发生",[1618],{"type":31,"value":1619},"必交付物 2：失败案例复盘（真实会发生）",{"type":26,"tag":1110,"props":1621,"children":1623},{"id":1622},"现象快捷键用得很熟但交付还是慢",[1624],{"type":31,"value":1625},"现象：快捷键用得很熟，但交付还是慢",{"type":26,"tag":27,"props":1627,"children":1628},{},[1629],{"type":31,"value":1630},"典型原因：你把 Cursor 当成“更聪明的搜索框”，不断对话，直到它给出你想要的答案。",{"type":26,"tag":27,"props":1632,"children":1633},{},[1634],{"type":31,"value":1635},"复现路径：",{"type":26,"tag":128,"props":1637,"children":1638},{},[1639,1644,1649,1654],{"type":26,"tag":132,"props":1640,"children":1641},{},[1642],{"type":31,"value":1643},"你直接说“把页面做得更好看、更高级”",{"type":26,"tag":132,"props":1645,"children":1646},{},[1647],{"type":31,"value":1648},"AI 开始大改样式、抽象组件、甚至引入新依赖",{"type":26,"tag":132,"props":1650,"children":1651},{},[1652],{"type":31,"value":1653},"你为了省事按了“接受建议”",{"type":26,"tag":132,"props":1655,"children":1656},{},[1657],{"type":31,"value":1658},"最后发现：设计没统一、移动端崩、甚至埋了性能问题",{"type":26,"tag":27,"props":1660,"children":1661},{},[1662,1664,1668,1670,1675],{"type":31,"value":1663},"根因：缺少",{"type":26,"tag":723,"props":1665,"children":1666},{},[1667],{"type":31,"value":848},{"type":31,"value":1669},"与",{"type":26,"tag":723,"props":1671,"children":1672},{},[1673],{"type":31,"value":1674},"验收",{"type":31,"value":1676},"。",{"type":26,"tag":27,"props":1678,"children":1679},{},[1680],{"type":31,"value":1681},"修复方式（可照抄）：",{"type":26,"tag":128,"props":1683,"children":1684},{},[1685,1690,1702],{"type":26,"tag":132,"props":1686,"children":1687},{},[1688],{"type":31,"value":1689},"把需求拆成 3 个可验证目标：例如“按钮样式统一”“首屏 CTA 更明显”“移动端间距不挤”",{"type":26,"tag":132,"props":1691,"children":1692},{},[1693,1695,1700],{"type":31,"value":1694},"每个目标只用 ",{"type":26,"tag":302,"props":1696,"children":1698},{"className":1697},[],[1699],{"type":31,"value":1161},{"type":31,"value":1701}," 改一个局部",{"type":26,"tag":132,"props":1703,"children":1704},{},[1705],{"type":31,"value":1706},"每次接受建议前跑一遍“最小回归集”",{"type":26,"tag":784,"props":1708,"children":1709},{},[],{"type":26,"tag":39,"props":1711,"children":1713},{"id":1712},"faq高频问题",[1714],{"type":31,"value":1715},"FAQ（高频问题）",{"type":26,"tag":1110,"props":1717,"children":1719},{"id":1718},"q1我应该先记快捷键还是先学工作流",[1720],{"type":31,"value":1721},"Q1：我应该先记快捷键还是先学工作流？",{"type":26,"tag":27,"props":1723,"children":1724},{},[1725],{"type":31,"value":1726},"先学工作流。快捷键只是把工作流的步骤变短。",{"type":26,"tag":1110,"props":1728,"children":1730},{"id":1729},"q2为什么我一用多文件就容易翻车",[1731],{"type":31,"value":1732},"Q2：为什么我一用多文件就容易翻车？",{"type":26,"tag":27,"props":1734,"children":1735},{},[1736],{"type":31,"value":1737},"因为多文件意味着范围更大、依赖更多、验收更难。先锁定“文件清单 + 每步验收”，再让它动手。",{"type":26,"tag":1110,"props":1739,"children":1741},{"id":1740},"q3有没有万能提示词",[1742],{"type":31,"value":1743},"Q3：有没有“万能提示词”？",{"type":26,"tag":27,"props":1745,"children":1746},{},[1747],{"type":31,"value":1748},"没有，但有“万能结构”：目标、范围、非目标、验收、输出格式。",{"type":26,"tag":784,"props":1750,"children":1751},{},[],{"type":26,"tag":39,"props":1753,"children":1755},{"id":1754},"延伸阅读建议按顺序",[1756],{"type":31,"value":1757},"延伸阅读（建议按顺序）",{"type":26,"tag":128,"props":1759,"children":1760},{},[1761,1768,1775,1782],{"type":26,"tag":132,"props":1762,"children":1763},{},[1764],{"type":26,"tag":622,"props":1765,"children":1766},{"href":757},[1767],{"type":31,"value":760},{"type":26,"tag":132,"props":1769,"children":1770},{},[1771],{"type":26,"tag":622,"props":1772,"children":1773},{"href":768},[1774],{"type":31,"value":771},{"type":26,"tag":132,"props":1776,"children":1777},{},[1778],{"type":26,"tag":622,"props":1779,"children":1780},{"href":779},[1781],{"type":31,"value":782},{"type":26,"tag":132,"props":1783,"children":1784},{},[1785,1787],{"type":31,"value":1786},"如果你更关心“网页制作落地”：看这篇 ",{"type":26,"tag":622,"props":1788,"children":1790},{"href":1789},"/topics/practical-tips/htmlpage-quick-landing-page",[1791],{"type":31,"value":1792},"3 分钟用 HTMLPAGE 做落地页",{"title":7,"searchDepth":647,"depth":647,"links":1794},[1795,1796,1797,1809,1810,1813,1818],{"id":789,"depth":650,"text":792},{"id":864,"depth":650,"text":867},{"id":1105,"depth":650,"text":1108,"children":1798},[1799,1800,1801,1802,1803,1804,1805,1806,1807,1808],{"id":1112,"depth":647,"text":1115},{"id":1171,"depth":647,"text":1174},{"id":1241,"depth":647,"text":1244},{"id":1297,"depth":647,"text":1300},{"id":1337,"depth":647,"text":1340},{"id":1376,"depth":647,"text":1379},{"id":1395,"depth":647,"text":1398},{"id":1437,"depth":647,"text":1440},{"id":1472,"depth":647,"text":1475},{"id":1489,"depth":647,"text":1492},{"id":1546,"depth":650,"text":1549},{"id":1616,"depth":650,"text":1619,"children":1811},[1812],{"id":1622,"depth":647,"text":1625},{"id":1712,"depth":650,"text":1715,"children":1814},[1815,1816,1817],{"id":1718,"depth":647,"text":1721},{"id":1729,"depth":647,"text":1732},{"id":1740,"depth":647,"text":1743},{"id":1754,"depth":650,"text":1757},"content:topics:ai:cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet",{"_path":1823,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1824,"description":1825,"date":1826,"topic":5,"author":11,"tags":1827,"image":1831,"imageAlt":1832,"pexelsPhotoId":1833,"pexelsUrl":1834,"readingTime":1835,"body":1836,"_type":661,"_id":2769,"_source":663,"_file":2770,"_stem":2771,"_extension":666},"/topics/ai/cursor-vs-copilot-vscode-workflow","Cursor vs GitHub Copilot vs VS Code：怎么选、怎么搭配、怎么把风险关在笼子里","用“任务类型×风险×验收成本”的选择矩阵解释 Cursor/Copilot/VS Code 的差异，并给出一套可落地的协作工作流（范围闸门、最小回归集、回滚策略）。","2026-03-01",[674,1828,677,1829,1830],"GitHub Copilot","AI 编程","工作流","/images/topics/ai/cursor-vs-copilot-vscode-workflow.jpg","团队在电脑前进行协作讨论",1181371,"https://www.pexels.com/photo/man-wearing-blue-dress-shirt-1181371/",15,{"type":23,"children":1837,"toc":2747},[1838,1843,1848,1866,1871,1889,1892,1898,1903,1934,1939,1942,1948,1956,2160,2168,2181,2184,2190,2196,2209,2214,2227,2233,2238,2271,2277,2282,2300,2303,2309,2314,2320,2325,2358,2364,2377,2382,2395,2401,2413,2419,2424,2437,2442,2445,2451,2456,2577,2580,2586,2596,2605,2623,2632,2640,2649,2667,2670,2676,2682,2687,2693,2698,2701,2706],{"type":26,"tag":27,"props":1839,"children":1840},{},[1841],{"type":31,"value":1842},"“Cursor 和 Copilot 到底有什么区别？”",{"type":26,"tag":27,"props":1844,"children":1845},{},[1846],{"type":31,"value":1847},"这个问题问得越早越好，因为你一旦把工具选错，后面所有痛苦都不是“提示词不够好”，而是：",{"type":26,"tag":128,"props":1849,"children":1850},{},[1851,1856,1861],{"type":26,"tag":132,"props":1852,"children":1853},{},[1854],{"type":31,"value":1855},"改动不可控（范围漂移、改错文件）",{"type":26,"tag":132,"props":1857,"children":1858},{},[1859],{"type":31,"value":1860},"验收成本爆炸（不知道要测什么）",{"type":26,"tag":132,"props":1862,"children":1863},{},[1864],{"type":31,"value":1865},"团队协作崩盘（没有闸门、没有回滚）",{"type":26,"tag":27,"props":1867,"children":1868},{},[1869],{"type":31,"value":1870},"这篇文章用一张选择矩阵 + 一套可执行工作流，帮你做到两件事：",{"type":26,"tag":522,"props":1872,"children":1873},{},[1874,1879],{"type":26,"tag":132,"props":1875,"children":1876},{},[1877],{"type":31,"value":1878},"知道什么时候用 Cursor、什么时候用 Copilot、什么时候“纯 VS Code 更快”",{"type":26,"tag":132,"props":1880,"children":1881},{},[1882,1884],{"type":31,"value":1883},"就算用 AI，也能把风险关在笼子里：",{"type":26,"tag":723,"props":1885,"children":1886},{},[1887],{"type":31,"value":1888},"可审查、可验证、可回滚",{"type":26,"tag":784,"props":1890,"children":1891},{},[],{"type":26,"tag":39,"props":1893,"children":1895},{"id":1894},"结论先说三者不是互斥而是分工",[1896],{"type":31,"value":1897},"结论先说：三者不是互斥，而是分工",{"type":26,"tag":27,"props":1899,"children":1900},{},[1901],{"type":31,"value":1902},"你可以把它们看成三层能力：",{"type":26,"tag":128,"props":1904,"children":1905},{},[1906,1915,1925],{"type":26,"tag":132,"props":1907,"children":1908},{},[1909,1913],{"type":26,"tag":723,"props":1910,"children":1911},{},[1912],{"type":31,"value":677},{"type":31,"value":1914},"：编辑器与生态（调试、插件、任务、终端、语言服务）",{"type":26,"tag":132,"props":1916,"children":1917},{},[1918,1923],{"type":26,"tag":723,"props":1919,"children":1920},{},[1921],{"type":31,"value":1922},"Copilot",{"type":31,"value":1924},"：代码补全与局部建议（“我正在写这一行/这一段”）",{"type":26,"tag":132,"props":1926,"children":1927},{},[1928,1932],{"type":26,"tag":723,"props":1929,"children":1930},{},[1931],{"type":31,"value":674},{"type":31,"value":1933},"：以项目为单位的 AI 协作（对话、索引、多文件编辑、规则）",{"type":26,"tag":27,"props":1935,"children":1936},{},[1937],{"type":31,"value":1938},"最常见的误区是：把“局部补全能力”当作“能做架构与多文件落地”。",{"type":26,"tag":784,"props":1940,"children":1941},{},[],{"type":26,"tag":39,"props":1943,"children":1945},{"id":1944},"选择矩阵按任务类型选工具不是按偏好",[1946],{"type":31,"value":1947},"选择矩阵：按任务类型选工具（不是按偏好）",{"type":26,"tag":1092,"props":1949,"children":1950},{},[1951],{"type":26,"tag":27,"props":1952,"children":1953},{},[1954],{"type":31,"value":1955},"你只要把自己的任务放进表格，就能得到推荐路径。",{"type":26,"tag":46,"props":1957,"children":1958},{},[1959,1991],{"type":26,"tag":50,"props":1960,"children":1961},{},[1962],{"type":26,"tag":54,"props":1963,"children":1964},{},[1965,1970,1976,1981,1986],{"type":26,"tag":58,"props":1966,"children":1967},{},[1968],{"type":31,"value":1969},"任务类型",{"type":26,"tag":58,"props":1971,"children":1973},{"align":1972},"right",[1974],{"type":31,"value":1975},"风险",{"type":26,"tag":58,"props":1977,"children":1978},{"align":1972},[1979],{"type":31,"value":1980},"验收成本",{"type":26,"tag":58,"props":1982,"children":1983},{},[1984],{"type":31,"value":1985},"更推荐",{"type":26,"tag":58,"props":1987,"children":1988},{},[1989],{"type":31,"value":1990},"为什么",{"type":26,"tag":69,"props":1992,"children":1993},{},[1994,2021,2054,2080,2107,2134],{"type":26,"tag":54,"props":1995,"children":1996},{},[1997,2002,2007,2011,2016],{"type":26,"tag":76,"props":1998,"children":1999},{},[2000],{"type":31,"value":2001},"写一段代码/补一个 if",{"type":26,"tag":76,"props":2003,"children":2004},{"align":1972},[2005],{"type":31,"value":2006},"低",{"type":26,"tag":76,"props":2008,"children":2009},{"align":1972},[2010],{"type":31,"value":2006},{"type":26,"tag":76,"props":2012,"children":2013},{},[2014],{"type":31,"value":2015},"Copilot / Cursor 内联编辑",{"type":26,"tag":76,"props":2017,"children":2018},{},[2019],{"type":31,"value":2020},"局部建议足够，成本最低",{"type":26,"tag":54,"props":2022,"children":2023},{},[2024,2029,2034,2038,2049],{"type":26,"tag":76,"props":2025,"children":2026},{},[2027],{"type":31,"value":2028},"重构一个函数",{"type":26,"tag":76,"props":2030,"children":2031},{"align":1972},[2032],{"type":31,"value":2033},"中",{"type":26,"tag":76,"props":2035,"children":2036},{"align":1972},[2037],{"type":31,"value":2033},{"type":26,"tag":76,"props":2039,"children":2040},{},[2041,2043],{"type":31,"value":2042},"Cursor ",{"type":26,"tag":302,"props":2044,"children":2046},{"className":2045},[],[2047],{"type":31,"value":2048},"内联编辑",{"type":26,"tag":76,"props":2050,"children":2051},{},[2052],{"type":31,"value":2053},"需要解释、需要约束输出",{"type":26,"tag":54,"props":2055,"children":2056},{},[2057,2062,2066,2070,2075],{"type":26,"tag":76,"props":2058,"children":2059},{},[2060],{"type":31,"value":2061},"改一个组件 + 样式",{"type":26,"tag":76,"props":2063,"children":2064},{"align":1972},[2065],{"type":31,"value":2033},{"type":26,"tag":76,"props":2067,"children":2068},{"align":1972},[2069],{"type":31,"value":2033},{"type":26,"tag":76,"props":2071,"children":2072},{},[2073],{"type":31,"value":2074},"Cursor（小范围多文件）",{"type":26,"tag":76,"props":2076,"children":2077},{},[2078],{"type":31,"value":2079},"需要同时改模板与样式",{"type":26,"tag":54,"props":2081,"children":2082},{},[2083,2088,2093,2097,2102],{"type":26,"tag":76,"props":2084,"children":2085},{},[2086],{"type":31,"value":2087},"改 3~5 个文件（组件+api+测试）",{"type":26,"tag":76,"props":2089,"children":2090},{"align":1972},[2091],{"type":31,"value":2092},"高",{"type":26,"tag":76,"props":2094,"children":2095},{"align":1972},[2096],{"type":31,"value":2092},{"type":26,"tag":76,"props":2098,"children":2099},{},[2100],{"type":31,"value":2101},"Cursor Composer + 闸门",{"type":26,"tag":76,"props":2103,"children":2104},{},[2105],{"type":31,"value":2106},"需要计划、验收、回滚",{"type":26,"tag":54,"props":2108,"children":2109},{},[2110,2115,2120,2124,2129],{"type":26,"tag":76,"props":2111,"children":2112},{},[2113],{"type":31,"value":2114},"重写一段架构/引入新依赖",{"type":26,"tag":76,"props":2116,"children":2117},{"align":1972},[2118],{"type":31,"value":2119},"很高",{"type":26,"tag":76,"props":2121,"children":2122},{"align":1972},[2123],{"type":31,"value":2119},{"type":26,"tag":76,"props":2125,"children":2126},{},[2127],{"type":31,"value":2128},"先人脑设计 + VS Code 实现",{"type":26,"tag":76,"props":2130,"children":2131},{},[2132],{"type":31,"value":2133},"AI 易发散，最好先设计再执行",{"type":26,"tag":54,"props":2135,"children":2136},{},[2137,2142,2146,2150,2155],{"type":26,"tag":76,"props":2138,"children":2139},{},[2140],{"type":31,"value":2141},"排查线上问题/性能抖动",{"type":26,"tag":76,"props":2143,"children":2144},{"align":1972},[2145],{"type":31,"value":2092},{"type":26,"tag":76,"props":2147,"children":2148},{"align":1972},[2149],{"type":31,"value":2119},{"type":26,"tag":76,"props":2151,"children":2152},{},[2153],{"type":31,"value":2154},"VS Code + 工具链优先，AI 辅助归纳",{"type":26,"tag":76,"props":2156,"children":2157},{},[2158],{"type":31,"value":2159},"需要证据，不要“猜”",{"type":26,"tag":27,"props":2161,"children":2162},{},[2163],{"type":26,"tag":723,"props":2164,"children":2165},{},[2166],{"type":31,"value":2167},"一句话规则：",{"type":26,"tag":128,"props":2169,"children":2170},{},[2171,2176],{"type":26,"tag":132,"props":2172,"children":2173},{},[2174],{"type":31,"value":2175},"当你的改动可以用“10 条最小回归集”覆盖时，用 Cursor。",{"type":26,"tag":132,"props":2177,"children":2178},{},[2179],{"type":31,"value":2180},"当你的改动无法验证时，先别让 AI 动手。",{"type":26,"tag":784,"props":2182,"children":2183},{},[],{"type":26,"tag":39,"props":2185,"children":2187},{"id":2186},"差异拆解到底差在哪里",[2188],{"type":31,"value":2189},"差异拆解：到底差在哪里？",{"type":26,"tag":1110,"props":2191,"children":2193},{"id":2192},"_1-上下文来源补全-vs-项目索引",[2194],{"type":31,"value":2195},"1) 上下文来源：补全 vs 项目索引",{"type":26,"tag":128,"props":2197,"children":2198},{},[2199,2204],{"type":26,"tag":132,"props":2200,"children":2201},{},[2202],{"type":31,"value":2203},"Copilot 更擅长：你正在写的这几行、当前文件的局部上下文",{"type":26,"tag":132,"props":2205,"children":2206},{},[2207],{"type":31,"value":2208},"Cursor 更擅长：项目级索引 + 多文件关联理解",{"type":26,"tag":27,"props":2210,"children":2211},{},[2212],{"type":31,"value":2213},"因此：",{"type":26,"tag":128,"props":2215,"children":2216},{},[2217,2222],{"type":26,"tag":132,"props":2218,"children":2219},{},[2220],{"type":31,"value":2221},"写代码片段：Copilot 速度更快",{"type":26,"tag":132,"props":2223,"children":2224},{},[2225],{"type":31,"value":2226},"改一坨工程：Cursor 更有胜算（但更需要闸门）",{"type":26,"tag":1110,"props":2228,"children":2230},{"id":2229},"_2-交互方式你能不能控制范围",[2231],{"type":31,"value":2232},"2) 交互方式：你能不能控制范围",{"type":26,"tag":27,"props":2234,"children":2235},{},[2236],{"type":31,"value":2237},"范围控制的三个层级：",{"type":26,"tag":522,"props":2239,"children":2240},{},[2241,2251,2261],{"type":26,"tag":132,"props":2242,"children":2243},{},[2244,2246],{"type":31,"value":2245},"内联编辑（选中一段）→ ",{"type":26,"tag":723,"props":2247,"children":2248},{},[2249],{"type":31,"value":2250},"最强范围控制",{"type":26,"tag":132,"props":2252,"children":2253},{},[2254,2256],{"type":31,"value":2255},"Composer 多文件（先列文件清单）→ ",{"type":26,"tag":723,"props":2257,"children":2258},{},[2259],{"type":31,"value":2260},"可控但要闸门",{"type":26,"tag":132,"props":2262,"children":2263},{},[2264,2266],{"type":31,"value":2265},"大对话（泛目标）→ ",{"type":26,"tag":723,"props":2267,"children":2268},{},[2269],{"type":31,"value":2270},"最容易跑偏",{"type":26,"tag":1110,"props":2272,"children":2274},{"id":2273},"_3-输出形态建议-vs-可审查的变更",[2275],{"type":31,"value":2276},"3) 输出形态：建议 vs 可审查的变更",{"type":26,"tag":27,"props":2278,"children":2279},{},[2280],{"type":31,"value":2281},"最好的 AI 输出不是“给我一段代码”，而是：",{"type":26,"tag":128,"props":2283,"children":2284},{},[2285,2290,2295],{"type":26,"tag":132,"props":2286,"children":2287},{},[2288],{"type":31,"value":2289},"改动摘要（做了什么）",{"type":26,"tag":132,"props":2291,"children":2292},{},[2293],{"type":31,"value":2294},"diff 级别的可审查变更",{"type":26,"tag":132,"props":2296,"children":2297},{},[2298],{"type":31,"value":2299},"验收步骤与回滚方案",{"type":26,"tag":784,"props":2301,"children":2302},{},[],{"type":26,"tag":39,"props":2304,"children":2306},{"id":2305},"一套可落地的团队工作流把风险关住",[2307],{"type":31,"value":2308},"一套可落地的团队工作流（把风险关住）",{"type":26,"tag":27,"props":2310,"children":2311},{},[2312],{"type":31,"value":2313},"下面这套流程，你可以直接写进团队规范：",{"type":26,"tag":1110,"props":2315,"children":2317},{"id":2316},"step-1先写任务单geo-友好结构",[2318],{"type":31,"value":2319},"Step 1：先写任务单（GEO 友好结构）",{"type":26,"tag":27,"props":2321,"children":2322},{},[2323],{"type":31,"value":2324},"模板：",{"type":26,"tag":128,"props":2326,"children":2327},{},[2328,2333,2338,2343,2348,2353],{"type":26,"tag":132,"props":2329,"children":2330},{},[2331],{"type":31,"value":2332},"目标：……",{"type":26,"tag":132,"props":2334,"children":2335},{},[2336],{"type":31,"value":2337},"背景：……",{"type":26,"tag":132,"props":2339,"children":2340},{},[2341],{"type":31,"value":2342},"范围：只改这些文件/模块：……",{"type":26,"tag":132,"props":2344,"children":2345},{},[2346],{"type":31,"value":2347},"非目标：不做哪些事情：……",{"type":26,"tag":132,"props":2349,"children":2350},{},[2351],{"type":31,"value":2352},"验收：如何判断完成（可测试/可观察）：……",{"type":26,"tag":132,"props":2354,"children":2355},{},[2356],{"type":31,"value":2357},"回滚：如果失败怎么撤回：……",{"type":26,"tag":1110,"props":2359,"children":2361},{"id":2360},"step-2用范围闸门限制-ai",[2362],{"type":31,"value":2363},"Step 2：用“范围闸门”限制 AI",{"type":26,"tag":128,"props":2365,"children":2366},{},[2367,2372],{"type":26,"tag":132,"props":2368,"children":2369},{},[2370],{"type":31,"value":2371},"单文件改动：优先 Cursor 内联编辑",{"type":26,"tag":132,"props":2373,"children":2374},{},[2375],{"type":31,"value":2376},"多文件改动：必须先让 AI 输出“文件清单（≤5）+ 每步验收”",{"type":26,"tag":27,"props":2378,"children":2379},{},[2380],{"type":31,"value":2381},"如果 AI 输出的文件清单超过 5 个：",{"type":26,"tag":128,"props":2383,"children":2384},{},[2385,2390],{"type":26,"tag":132,"props":2386,"children":2387},{},[2388],{"type":31,"value":2389},"不是它太强，是任务太大",{"type":26,"tag":132,"props":2391,"children":2392},{},[2393],{"type":31,"value":2394},"你需要拆任务，而不是继续推进",{"type":26,"tag":1110,"props":2396,"children":2398},{"id":2397},"step-3最小回归集10-条",[2399],{"type":31,"value":2400},"Step 3：最小回归集（10 条）",{"type":26,"tag":27,"props":2402,"children":2403},{},[2404,2406,2411],{"type":31,"value":2405},"每次接受改动前必须跑（可参考：",{"type":26,"tag":622,"props":2407,"children":2408},{"href":669},[2409],{"type":31,"value":2410},"Cursor 快捷键速查表",{"type":31,"value":2412}," 里的清单）。",{"type":26,"tag":1110,"props":2414,"children":2416},{"id":2415},"step-4回滚策略不用等事故才想",[2417],{"type":31,"value":2418},"Step 4：回滚策略（不用等事故才想）",{"type":26,"tag":27,"props":2420,"children":2421},{},[2422],{"type":31,"value":2423},"回滚最常见的两条路：",{"type":26,"tag":128,"props":2425,"children":2426},{},[2427,2432],{"type":26,"tag":132,"props":2428,"children":2429},{},[2430],{"type":31,"value":2431},"git 回滚 commit",{"type":26,"tag":132,"props":2433,"children":2434},{},[2435],{"type":31,"value":2436},"对关键文件保留前版本（至少能快速恢复）",{"type":26,"tag":27,"props":2438,"children":2439},{},[2440],{"type":31,"value":2441},"你需要做到：任何一轮 AI 改动都能在 5 分钟内撤回。",{"type":26,"tag":784,"props":2443,"children":2444},{},[],{"type":26,"tag":39,"props":2446,"children":2448},{"id":2447},"必交付物对比矩阵可复制",[2449],{"type":31,"value":2450},"必交付物：对比矩阵（可复制）",{"type":26,"tag":27,"props":2452,"children":2453},{},[2454],{"type":31,"value":2455},"下面这张表可以直接贴到你的团队 wiki：",{"type":26,"tag":46,"props":2457,"children":2458},{},[2459,2482],{"type":26,"tag":50,"props":2460,"children":2461},{},[2462],{"type":26,"tag":54,"props":2463,"children":2464},{},[2465,2470,2474,2478],{"type":26,"tag":58,"props":2466,"children":2467},{},[2468],{"type":31,"value":2469},"维度",{"type":26,"tag":58,"props":2471,"children":2472},{},[2473],{"type":31,"value":677},{"type":26,"tag":58,"props":2475,"children":2476},{},[2477],{"type":31,"value":1922},{"type":26,"tag":58,"props":2479,"children":2480},{},[2481],{"type":31,"value":674},{"type":26,"tag":69,"props":2483,"children":2484},{},[2485,2508,2531,2554],{"type":26,"tag":54,"props":2486,"children":2487},{},[2488,2493,2498,2503],{"type":26,"tag":76,"props":2489,"children":2490},{},[2491],{"type":31,"value":2492},"强项",{"type":26,"tag":76,"props":2494,"children":2495},{},[2496],{"type":31,"value":2497},"工具链、调试、生态",{"type":26,"tag":76,"props":2499,"children":2500},{},[2501],{"type":31,"value":2502},"补全与局部建议",{"type":26,"tag":76,"props":2504,"children":2505},{},[2506],{"type":31,"value":2507},"项目上下文、多文件落地",{"type":26,"tag":54,"props":2509,"children":2510},{},[2511,2516,2521,2526],{"type":26,"tag":76,"props":2512,"children":2513},{},[2514],{"type":31,"value":2515},"适合任务",{"type":26,"tag":76,"props":2517,"children":2518},{},[2519],{"type":31,"value":2520},"排查、调试、验证",{"type":26,"tag":76,"props":2522,"children":2523},{},[2524],{"type":31,"value":2525},"写一段、补一段",{"type":26,"tag":76,"props":2527,"children":2528},{},[2529],{"type":31,"value":2530},"改一段、改一组文件",{"type":26,"tag":54,"props":2532,"children":2533},{},[2534,2539,2544,2549],{"type":26,"tag":76,"props":2535,"children":2536},{},[2537],{"type":31,"value":2538},"最大风险",{"type":26,"tag":76,"props":2540,"children":2541},{},[2542],{"type":31,"value":2543},"无",{"type":26,"tag":76,"props":2545,"children":2546},{},[2547],{"type":31,"value":2548},"过度依赖建议",{"type":26,"tag":76,"props":2550,"children":2551},{},[2552],{"type":31,"value":2553},"范围漂移、多文件回归",{"type":26,"tag":54,"props":2555,"children":2556},{},[2557,2562,2567,2572],{"type":26,"tag":76,"props":2558,"children":2559},{},[2560],{"type":31,"value":2561},"必须搭配",{"type":26,"tag":76,"props":2563,"children":2564},{},[2565],{"type":31,"value":2566},"规范与检查",{"type":26,"tag":76,"props":2568,"children":2569},{},[2570],{"type":31,"value":2571},"代码评审",{"type":26,"tag":76,"props":2573,"children":2574},{},[2575],{"type":31,"value":2576},"闸门 + 最小回归集",{"type":26,"tag":784,"props":2578,"children":2579},{},[],{"type":26,"tag":39,"props":2581,"children":2583},{"id":2582},"失败案例多文件看似成功实际埋雷",[2584],{"type":31,"value":2585},"失败案例：多文件“看似成功”，实际埋雷",{"type":26,"tag":27,"props":2587,"children":2588},{},[2589,2594],{"type":26,"tag":723,"props":2590,"children":2591},{},[2592],{"type":31,"value":2593},"现象",{"type":31,"value":2595},"：AI 说“我已经把所有地方都改了”，你也接受了，结果上线后 404 或样式错位。",{"type":26,"tag":27,"props":2597,"children":2598},{},[2599,2604],{"type":26,"tag":723,"props":2600,"children":2601},{},[2602],{"type":31,"value":2603},"复现条件",{"type":31,"value":1416},{"type":26,"tag":128,"props":2606,"children":2607},{},[2608,2613,2618],{"type":26,"tag":132,"props":2609,"children":2610},{},[2611],{"type":31,"value":2612},"你给了一个大目标（例如“把所有按钮统一成主题色”）",{"type":26,"tag":132,"props":2614,"children":2615},{},[2616],{"type":31,"value":2617},"它改了组件、样式、甚至主题配置",{"type":26,"tag":132,"props":2619,"children":2620},{},[2621],{"type":31,"value":2622},"你没有按页面模块走一遍，直接合并",{"type":26,"tag":27,"props":2624,"children":2625},{},[2626,2631],{"type":26,"tag":723,"props":2627,"children":2628},{},[2629],{"type":31,"value":2630},"根因",{"type":31,"value":1416},{"type":26,"tag":128,"props":2633,"children":2634},{},[2635],{"type":26,"tag":132,"props":2636,"children":2637},{},[2638],{"type":31,"value":2639},"改动范围大，但验收仍按“小改动”的方式做（只看一处）",{"type":26,"tag":27,"props":2641,"children":2642},{},[2643,2648],{"type":26,"tag":723,"props":2644,"children":2645},{},[2646],{"type":31,"value":2647},"修复",{"type":31,"value":1416},{"type":26,"tag":128,"props":2650,"children":2651},{},[2652,2657,2662],{"type":26,"tag":132,"props":2653,"children":2654},{},[2655],{"type":31,"value":2656},"强制把任务拆成“模块级目标”：Hero、Feature、Pricing、Form",{"type":26,"tag":132,"props":2658,"children":2659},{},[2660],{"type":31,"value":2661},"每个模块改完就验收一次",{"type":26,"tag":132,"props":2663,"children":2664},{},[2665],{"type":31,"value":2666},"验收通过再进入下一个模块",{"type":26,"tag":784,"props":2668,"children":2669},{},[],{"type":26,"tag":39,"props":2671,"children":2673},{"id":2672},"faq",[2674],{"type":31,"value":2675},"FAQ",{"type":26,"tag":1110,"props":2677,"children":2679},{"id":2678},"q1我已经用了-cursor为什么还要用-copilot",[2680],{"type":31,"value":2681},"Q1：我已经用了 Cursor，为什么还要用 Copilot？",{"type":26,"tag":27,"props":2683,"children":2684},{},[2685],{"type":31,"value":2686},"因为“补全”这种高频低风险任务，Copilot 的交互成本更低；Cursor 更适合需要解释与约束的改动。",{"type":26,"tag":1110,"props":2688,"children":2690},{"id":2689},"q2什么时候应该完全不用-ai",[2691],{"type":31,"value":2692},"Q2：什么时候应该完全不用 AI？",{"type":26,"tag":27,"props":2694,"children":2695},{},[2696],{"type":31,"value":2697},"当你无法定义验收标准时。比如“更高级”“更好看”这种目标，先做信息结构与设计规则，再让 AI 帮你落地局部。",{"type":26,"tag":784,"props":2699,"children":2700},{},[],{"type":26,"tag":39,"props":2702,"children":2704},{"id":2703},"延伸阅读",[2705],{"type":31,"value":2703},{"type":26,"tag":128,"props":2707,"children":2708},{},[2709,2718,2727,2736],{"type":26,"tag":132,"props":2710,"children":2711},{},[2712,2714],{"type":31,"value":2713},"Cursor 入门：",{"type":26,"tag":622,"props":2715,"children":2716},{"href":757},[2717],{"type":31,"value":760},{"type":26,"tag":132,"props":2719,"children":2720},{},[2721,2723],{"type":31,"value":2722},"Cursor 进阶：",{"type":26,"tag":622,"props":2724,"children":2725},{"href":768},[2726],{"type":31,"value":771},{"type":26,"tag":132,"props":2728,"children":2729},{},[2730,2732],{"type":31,"value":2731},"规则配置：",{"type":26,"tag":622,"props":2733,"children":2734},{"href":779},[2735],{"type":31,"value":782},{"type":26,"tag":132,"props":2737,"children":2738},{},[2739,2741],{"type":31,"value":2740},"Copilot 实战：",{"type":26,"tag":622,"props":2742,"children":2744},{"href":2743},"/topics/ai/github-copilot-tips",[2745],{"type":31,"value":2746},"GitHub Copilot 实用技巧",{"title":7,"searchDepth":647,"depth":647,"links":2748},[2749,2750,2751,2756,2762,2763,2764,2768],{"id":1894,"depth":650,"text":1897},{"id":1944,"depth":650,"text":1947},{"id":2186,"depth":650,"text":2189,"children":2752},[2753,2754,2755],{"id":2192,"depth":647,"text":2195},{"id":2229,"depth":647,"text":2232},{"id":2273,"depth":647,"text":2276},{"id":2305,"depth":650,"text":2308,"children":2757},[2758,2759,2760,2761],{"id":2316,"depth":647,"text":2319},{"id":2360,"depth":647,"text":2363},{"id":2397,"depth":647,"text":2400},{"id":2415,"depth":647,"text":2418},{"id":2447,"depth":650,"text":2450},{"id":2582,"depth":650,"text":2585},{"id":2672,"depth":650,"text":2675,"children":2765},[2766,2767],{"id":2678,"depth":647,"text":2681},{"id":2689,"depth":647,"text":2692},{"id":2703,"depth":650,"text":2703},"content:topics:ai:cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow",{"_path":2773,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2774,"description":2775,"date":2776,"topic":5,"author":11,"tags":2777,"image":2782,"featured":569,"readingTime":1835,"body":2783,"_type":661,"_id":3431,"_source":663,"_file":3432,"_stem":3433,"_extension":666},"/topics/ai/ai-debugging-troubleshooting-guide","AI 辅助调试与问题排查：让 AI 成为你的调试搭档","深入探讨如何利用 AI 工具提升调试效率，包括错误信息分析、日志解读、性能问题定位、复杂 bug 排查等实战场景，构建 AI 驱动的调试工作流。","2026-01-18",[2778,2779,2780,678,2781],"AI 调试","问题排查","Debug","错误处理","/images/topics/ai/ai-debugging-guide.jpg",{"type":23,"children":2784,"toc":3402},[2785,2791,2797,2802,2807,2812,2818,2824,2829,2837,2865,2873,2896,2902,2912,2921,2929,2937,2970,2978,3008,3021,3029,3034,3042,3050,3061,3067,3075,3086,3094,3103,3109,3115,3120,3129,3135,3140,3149,3155,3161,3170,3176,3185,3191,3202,3208,3214,3223,3229,3238,3244,3250,3258,3264,3273,3281,3289,3292,3298,3303,3322,3334,3337,3343,3348,3357,3362,3365,3371,3376,3394],{"type":26,"tag":39,"props":2786,"children":2788},{"id":2787},"ai-辅助调试与问题排查",[2789],{"type":31,"value":2790},"AI 辅助调试与问题排查",{"type":26,"tag":39,"props":2792,"children":2794},{"id":2793},"引言调试的痛与-ai-的解药",[2795],{"type":31,"value":2796},"引言：调试的痛与 AI 的解药",{"type":26,"tag":27,"props":2798,"children":2799},{},[2800],{"type":31,"value":2801},"调试是每个程序员的日常，也是最消耗时间和精力的工作之一。我们都有过这样的经历：盯着一个莫名其妙的错误信息，翻遍 Stack Overflow，尝试各种方案，几个小时后才发现是一个愚蠢的拼写错误。",{"type":26,"tag":27,"props":2803,"children":2804},{},[2805],{"type":31,"value":2806},"AI 工具的出现，正在改变调试的方式。不是替代你的思考，而是加速你的分析过程——帮你快速理解错误、缩小排查范围、验证假设。",{"type":26,"tag":27,"props":2808,"children":2809},{},[2810],{"type":31,"value":2811},"这篇文章分享我在实际项目中使用 AI 辅助调试的经验和方法论。",{"type":26,"tag":39,"props":2813,"children":2815},{"id":2814},"第一部分建立-ai-调试的思维模型",[2816],{"type":31,"value":2817},"第一部分：建立 AI 调试的思维模型",{"type":26,"tag":1110,"props":2819,"children":2821},{"id":2820},"_11-ai-在调试中的角色",[2822],{"type":31,"value":2823},"1.1 AI 在调试中的角色",{"type":26,"tag":27,"props":2825,"children":2826},{},[2827],{"type":31,"value":2828},"把 AI 想象成一个经验丰富但不了解你项目的高级工程师。它：",{"type":26,"tag":27,"props":2830,"children":2831},{},[2832],{"type":26,"tag":723,"props":2833,"children":2834},{},[2835],{"type":31,"value":2836},"擅长的事情：",{"type":26,"tag":128,"props":2838,"children":2839},{},[2840,2845,2850,2855,2860],{"type":26,"tag":132,"props":2841,"children":2842},{},[2843],{"type":31,"value":2844},"解读错误信息的含义",{"type":26,"tag":132,"props":2846,"children":2847},{},[2848],{"type":31,"value":2849},"提供可能的原因列表",{"type":26,"tag":132,"props":2851,"children":2852},{},[2853],{"type":31,"value":2854},"给出排查方向建议",{"type":26,"tag":132,"props":2856,"children":2857},{},[2858],{"type":31,"value":2859},"解释复杂的技术概念",{"type":26,"tag":132,"props":2861,"children":2862},{},[2863],{"type":31,"value":2864},"生成调试代码片段",{"type":26,"tag":27,"props":2866,"children":2867},{},[2868],{"type":26,"tag":723,"props":2869,"children":2870},{},[2871],{"type":31,"value":2872},"不擅长的事情：",{"type":26,"tag":128,"props":2874,"children":2875},{},[2876,2881,2886,2891],{"type":26,"tag":132,"props":2877,"children":2878},{},[2879],{"type":31,"value":2880},"了解你的业务逻辑",{"type":26,"tag":132,"props":2882,"children":2883},{},[2884],{"type":31,"value":2885},"知道你的代码历史",{"type":26,"tag":132,"props":2887,"children":2888},{},[2889],{"type":31,"value":2890},"理解项目特定的约定",{"type":26,"tag":132,"props":2892,"children":2893},{},[2894],{"type":31,"value":2895},"做出架构级判断",{"type":26,"tag":1110,"props":2897,"children":2899},{"id":2898},"_12-有效提问的结构",[2900],{"type":31,"value":2901},"1.2 有效提问的结构",{"type":26,"tag":405,"props":2903,"children":2907},{"code":2904,"language":661,"meta":7,"className":2905},"## 高效的调试提问模板\n\n**问题描述**\n[简洁描述遇到的问题]\n\n**错误信息**\n",[2906],"language-markdown",[2908],{"type":26,"tag":302,"props":2909,"children":2910},{"__ignoreMap":7},[2911],{"type":31,"value":2904},{"type":26,"tag":27,"props":2913,"children":2914},{},[2915],{"type":26,"tag":2916,"props":2917,"children":2918},"span",{},[2919],{"type":31,"value":2920},"完整的错误信息，不要截断",{"type":26,"tag":405,"props":2922,"children":2924},{"code":2923},"\n**相关代码**\n```javascript\n[精简但完整的相关代码]\n",[2925],{"type":26,"tag":302,"props":2926,"children":2927},{"__ignoreMap":7},[2928],{"type":31,"value":2923},{"type":26,"tag":27,"props":2930,"children":2931},{},[2932],{"type":26,"tag":723,"props":2933,"children":2934},{},[2935],{"type":31,"value":2936},"环境信息",{"type":26,"tag":128,"props":2938,"children":2939},{},[2940,2950,2960],{"type":26,"tag":132,"props":2941,"children":2942},{},[2943,2945],{"type":31,"value":2944},"运行环境：",{"type":26,"tag":2916,"props":2946,"children":2947},{},[2948],{"type":31,"value":2949},"Node 版本/浏览器版本",{"type":26,"tag":132,"props":2951,"children":2952},{},[2953,2955],{"type":31,"value":2954},"框架版本：",{"type":26,"tag":2916,"props":2956,"children":2957},{},[2958],{"type":31,"value":2959},"相关框架版本",{"type":26,"tag":132,"props":2961,"children":2962},{},[2963,2965],{"type":31,"value":2964},"操作系统：",{"type":26,"tag":2916,"props":2966,"children":2967},{},[2968],{"type":31,"value":2969},"如果相关",{"type":26,"tag":27,"props":2971,"children":2972},{},[2973],{"type":26,"tag":723,"props":2974,"children":2975},{},[2976],{"type":31,"value":2977},"已尝试的方案",{"type":26,"tag":128,"props":2979,"children":2980},{},[2981,2995],{"type":26,"tag":132,"props":2982,"children":2983},{},[2984,2989,2990],{"type":26,"tag":2916,"props":2985,"children":2986},{},[2987],{"type":31,"value":2988},"方案1",{"type":31,"value":1416},{"type":26,"tag":2916,"props":2991,"children":2992},{},[2993],{"type":31,"value":2994},"结果",{"type":26,"tag":132,"props":2996,"children":2997},{},[2998,3003,3004],{"type":26,"tag":2916,"props":2999,"children":3000},{},[3001],{"type":31,"value":3002},"方案2",{"type":31,"value":1416},{"type":26,"tag":2916,"props":3005,"children":3006},{},[3007],{"type":31,"value":2994},{"type":26,"tag":27,"props":3009,"children":3010},{},[3011,3016],{"type":26,"tag":723,"props":3012,"children":3013},{},[3014],{"type":31,"value":3015},"期望的结果",{"type":26,"tag":2916,"props":3017,"children":3018},{},[3019],{"type":31,"value":3020},"描述期望的行为",{"type":26,"tag":405,"props":3022,"children":3024},{"code":3023},"\n### 1.3 分级调试策略\n\n",[3025],{"type":26,"tag":302,"props":3026,"children":3027},{"__ignoreMap":7},[3028],{"type":31,"value":3023},{"type":26,"tag":27,"props":3030,"children":3031},{},[3032],{"type":31,"value":3033},"┌───────────────────────────────────────────────────────────┐\n│                    AI 辅助调试决策树                        │\n├───────────────────────────────────────────────────────────┤\n│                                                           │\n│  Level 1：简单错误（5分钟内解决）                           │\n│  ├── 语法错误、拼写错误                                    │\n│  ├── 方法：直接复制错误信息给 AI                           │\n│  └── 工具：Copilot Chat / ChatGPT                        │\n│                                                           │\n│  Level 2：中等复杂度（30分钟内解决）                        │\n│  ├── 类型错误、逻辑错误、API 使用错误                      │\n│  ├── 方法：提供错误信息 + 相关代码 + 上下文                 │\n│  └── 工具：Cursor Chat / Claude                          │\n│                                                           │\n│  Level 3：复杂问题（需要深入分析）                          │\n│  ├── 竞态条件、内存泄漏、性能问题                          │\n│  ├── 方法：详细描述场景 + 提供多个文件 + 讨论               │\n│  └── 工具：Cursor Composer / 专门的 AI 会话                │\n│                                                           │\n│  Level 4：架构级问题                                       │\n│  ├── 设计缺陷、技术债务                                    │\n│  ├── 方法：AI 辅助分析 + 人工判断                          │\n│  └── 工具：与团队讨论 + AI 作为顾问                        │\n│                                                           │\n└───────────────────────────────────────────────────────────┘",{"type":26,"tag":405,"props":3035,"children":3037},{"code":3036},"\n## 第二部分：错误信息分析\n\n### 2.1 前端错误分析\n\n**场景 1：React 错误边界触发**\n\n```typescript\n// 错误信息：\n// Error: Hydration failed because the initial UI does not match \n// what was rendered on the server.\n\n// 提问方式：\n/**\n * 我在 Next.js 14 App Router 项目中遇到这个错误：\n * \n * Error: Hydration failed because the initial UI does not match \n * what was rendered on the server.\n * \n * 相关代码：\n */\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState(false);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n\n// AI 会分析出：\n// 1. 服务端渲染时 localStorage 不可用，默认 false\n// 2. 客户端 hydration 时可能是 true\n// 3. 导致服务端和客户端渲染结果不一致\n\n// AI 建议的解决方案：\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState\u003Cboolean | null>(null);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  // 初始状态显示加载中，避免 hydration 不匹配\n  if (isLoggedIn === null) {\n    return \u003Cdiv>加载中...\u003C/div>;\n  }\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n",[3038],{"type":26,"tag":302,"props":3039,"children":3040},{"__ignoreMap":7},[3041],{"type":31,"value":3036},{"type":26,"tag":27,"props":3043,"children":3044},{},[3045],{"type":26,"tag":723,"props":3046,"children":3047},{},[3048],{"type":31,"value":3049},"场景 2：Vue 响应式警告",{"type":26,"tag":405,"props":3051,"children":3056},{"code":3052,"language":3053,"meta":7,"className":3054},"// 警告信息：\n// [Vue warn]: Property \"xxx\" was accessed during render but is not \n// defined on instance.\n\n// 提问方式：\n/**\n * Vue 3 项目中出现这个警告：\n * [Vue warn]: Property \"userInfo\" was accessed during render \n * but is not defined on instance.\n * \n * 组件代码：\n */\n\u003Ctemplate>\n  \u003Cdiv>{{ userInfo.name }}\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo } = await useFetch('/api/user');\n\u003C/script>\n\n// AI 分析：\n// 1. useFetch 是异步的，初始渲染时 userInfo 可能是 undefined\n// 2. 直接访问 userInfo.name 会报错\n\n// AI 建议：\n\u003Ctemplate>\n  \u003Cdiv v-if=\"userInfo\">{{ userInfo.name }}\u003C/div>\n  \u003Cdiv v-else>加载中...\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo, pending } = await useFetch('/api/user');\n\u003C/script>\n","typescript",[3055],"language-typescript",[3057],{"type":26,"tag":302,"props":3058,"children":3059},{"__ignoreMap":7},[3060],{"type":31,"value":3052},{"type":26,"tag":1110,"props":3062,"children":3064},{"id":3063},"_22-后端错误分析",[3065],{"type":31,"value":3066},"2.2 后端错误分析",{"type":26,"tag":27,"props":3068,"children":3069},{},[3070],{"type":26,"tag":723,"props":3071,"children":3072},{},[3073],{"type":31,"value":3074},"场景 1：Node.js 内存问题",{"type":26,"tag":405,"props":3076,"children":3081},{"code":3077,"language":3078,"meta":7,"className":3079},"// 错误信息：\n// FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n// JavaScript heap out of memory\n\n// 提问方式（包含上下文）：\n/**\n * Node.js 服务运行几小时后崩溃，错误信息：\n * FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n * JavaScript heap out of memory\n * \n * 服务功能：处理 CSV 文件上传，每次约 100MB\n * \n * 处理代码：\n */\nasync function processCSV(filePath) {\n  const content = fs.readFileSync(filePath, 'utf-8');\n  const rows = content.split('\\n');\n  const results = [];\n  \n  for (const row of rows) {\n    const processed = await processRow(row);\n    results.push(processed);\n  }\n  \n  return results;\n}\n\n// AI 分析会指出：\n// 1. 一次性读取整个文件到内存\n// 2. 所有处理结果累积在 results 数组\n// 3. 建议使用流式处理\n\n// AI 提供的优化方案：\nconst { createReadStream } = require('fs');\nconst { createInterface } = require('readline');\n\nasync function processCSVStream(filePath, onRow) {\n  const fileStream = createReadStream(filePath);\n  const rl = createInterface({\n    input: fileStream,\n    crlfDelay: Infinity\n  });\n  \n  let count = 0;\n  for await (const line of rl) {\n    await onRow(line);\n    count++;\n    \n    // 每处理 1000 行，给 GC 机会运行\n    if (count % 1000 === 0) {\n      await new Promise(r => setImmediate(r));\n    }\n  }\n}\n","javascript",[3080],"language-javascript",[3082],{"type":26,"tag":302,"props":3083,"children":3084},{"__ignoreMap":7},[3085],{"type":31,"value":3077},{"type":26,"tag":27,"props":3087,"children":3088},{},[3089],{"type":26,"tag":723,"props":3090,"children":3091},{},[3092],{"type":31,"value":3093},"场景 2：数据库连接问题",{"type":26,"tag":405,"props":3095,"children":3098},{"code":3096,"language":3053,"meta":7,"className":3097},"// 错误信息：\n// Error: Connection pool exhausted - \n// max connections (10) already in use\n\n// 提问方式：\n/**\n * PostgreSQL 连接池耗尽错误，高并发时出现：\n * Error: Connection pool exhausted\n * \n * 当前配置：\n * - max connections: 10\n * - 并发请求: 约 100/秒\n * \n * 数据库调用代码：\n */\nasync function getUserData(userId: string) {\n  const client = await pool.connect();\n  try {\n    const user = await client.query('SELECT * FROM users WHERE id = $1', [userId]);\n    const orders = await client.query('SELECT * FROM orders WHERE user_id = $1', [userId]);\n    const payments = await client.query('SELECT * FROM payments WHERE user_id = $1', [userId]);\n    return { user: user.rows[0], orders: orders.rows, payments: payments.rows };\n  } finally {\n    client.release();\n  }\n}\n\n// AI 会分析出多个可能原因并给出综合方案\n",[3055],[3099],{"type":26,"tag":302,"props":3100,"children":3101},{"__ignoreMap":7},[3102],{"type":31,"value":3096},{"type":26,"tag":39,"props":3104,"children":3106},{"id":3105},"第三部分日志分析与问题定位",[3107],{"type":31,"value":3108},"第三部分：日志分析与问题定位",{"type":26,"tag":1110,"props":3110,"children":3112},{"id":3111},"_31-结构化日志分析",[3113],{"type":31,"value":3114},"3.1 结构化日志分析",{"type":26,"tag":27,"props":3116,"children":3117},{},[3118],{"type":31,"value":3119},"当面对大量日志时，让 AI 帮你快速定位问题：",{"type":26,"tag":405,"props":3121,"children":3124},{"code":3122,"language":3078,"meta":7,"className":3123},"// 提问示例：\n/**\n * 分析以下日志，找出导致请求失败的原因：\n * \n * 日志片段：\n */\nconst logs = `\n2024-01-15 10:23:45.123 INFO  [req-abc123] 收到请求 POST /api/order\n2024-01-15 10:23:45.125 DEBUG [req-abc123] 用户认证通过 userId=u001\n2024-01-15 10:23:45.130 DEBUG [req-abc123] 开始库存检查 productId=p001\n2024-01-15 10:23:45.145 DEBUG [req-abc123] 库存检查通过 available=50\n2024-01-15 10:23:45.150 DEBUG [req-abc123] 开始创建订单\n2024-01-15 10:23:45.200 DEBUG [req-abc123] 数据库连接获取成功\n2024-01-15 10:23:45.250 ERROR [req-abc123] 订单创建失败 error=\"deadlock detected\"\n2024-01-15 10:23:45.251 WARN  [req-abc123] 事务回滚\n2024-01-15 10:23:45.255 INFO  [req-abc123] 响应 500 耗时 132ms\n`;\n\n// AI 分析结果会包括：\n// 1. 问题定位：数据库死锁\n// 2. 可能原因：并发订单创建导致锁竞争\n// 3. 排查建议：检查事务隔离级别、锁顺序\n",[3080],[3125],{"type":26,"tag":302,"props":3126,"children":3127},{"__ignoreMap":7},[3128],{"type":31,"value":3122},{"type":26,"tag":1110,"props":3130,"children":3132},{"id":3131},"_32-创建调试日志",[3133],{"type":31,"value":3134},"3.2 创建调试日志",{"type":26,"tag":27,"props":3136,"children":3137},{},[3138],{"type":31,"value":3139},"让 AI 帮你生成调试用的日志代码：",{"type":26,"tag":405,"props":3141,"children":3144},{"code":3142,"language":3053,"meta":7,"className":3143},"// 请求：\n// \"为这个函数添加详细的调试日志，包括入参、关键步骤、耗时和结果\"\n\n// 原代码：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const inventory = await checkInventory(order.items);\n  const payment = await processPayment(order.userId, order.total);\n  const result = await createOrder(order, payment.transactionId);\n  return result;\n}\n\n// AI 生成的带日志版本：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const requestId = generateRequestId();\n  const startTime = performance.now();\n  \n  logger.info({\n    requestId,\n    event: 'order_processing_start',\n    orderId: order.id,\n    userId: order.userId,\n    itemCount: order.items.length,\n    total: order.total\n  });\n  \n  try {\n    // 库存检查\n    const inventoryStart = performance.now();\n    const inventory = await checkInventory(order.items);\n    logger.debug({\n      requestId,\n      event: 'inventory_check_complete',\n      duration: performance.now() - inventoryStart,\n      available: inventory.allAvailable\n    });\n    \n    // 支付处理\n    const paymentStart = performance.now();\n    const payment = await processPayment(order.userId, order.total);\n    logger.debug({\n      requestId,\n      event: 'payment_complete',\n      duration: performance.now() - paymentStart,\n      transactionId: payment.transactionId\n    });\n    \n    // 创建订单\n    const createStart = performance.now();\n    const result = await createOrder(order, payment.transactionId);\n    logger.debug({\n      requestId,\n      event: 'order_created',\n      duration: performance.now() - createStart,\n      resultOrderId: result.orderId\n    });\n    \n    logger.info({\n      requestId,\n      event: 'order_processing_complete',\n      duration: performance.now() - startTime,\n      success: true\n    });\n    \n    return result;\n  } catch (error) {\n    logger.error({\n      requestId,\n      event: 'order_processing_failed',\n      duration: performance.now() - startTime,\n      error: error.message,\n      stack: error.stack\n    });\n    throw error;\n  }\n}\n",[3055],[3145],{"type":26,"tag":302,"props":3146,"children":3147},{"__ignoreMap":7},[3148],{"type":31,"value":3142},{"type":26,"tag":39,"props":3150,"children":3152},{"id":3151},"第四部分性能问题排查",[3153],{"type":31,"value":3154},"第四部分：性能问题排查",{"type":26,"tag":1110,"props":3156,"children":3158},{"id":3157},"_41-前端性能分析",[3159],{"type":31,"value":3160},"4.1 前端性能分析",{"type":26,"tag":405,"props":3162,"children":3165},{"code":3163,"language":3053,"meta":7,"className":3164},"// 场景：页面加载慢，需要分析原因\n\n// 提问方式：\n/**\n * 页面首屏加载需要 5 秒，以下是 Performance API 数据，\n * 请分析性能瓶颈：\n */\nconst performanceData = {\n  // Navigation Timing\n  dns: 50,           // DNS 查询\n  tcp: 100,          // TCP 连接\n  ttfb: 800,         // 首字节时间\n  download: 200,     // 文档下载\n  domParsing: 300,   // DOM 解析\n  domContentLoaded: 1500,\n  load: 5000,\n  \n  // Resource Timing (主要资源)\n  resources: [\n    { name: 'main.js', size: '2.5MB', duration: 1200 },\n    { name: 'vendor.js', size: '1.8MB', duration: 900 },\n    { name: 'styles.css', size: '500KB', duration: 300 },\n    { name: 'hero-image.jpg', size: '3MB', duration: 1500 },\n  ],\n  \n  // Long Tasks\n  longTasks: [\n    { startTime: 1600, duration: 800, name: 'script-evaluation' },\n    { startTime: 2500, duration: 400, name: 'layout' }\n  ]\n};\n\n// AI 会分析出：\n// 1. JS bundle 过大（4.3MB），需要代码分割\n// 2. 图片未优化（3MB 的 hero 图片）\n// 3. 存在长任务阻塞主线程\n// 并给出具体优化建议\n",[3055],[3166],{"type":26,"tag":302,"props":3167,"children":3168},{"__ignoreMap":7},[3169],{"type":31,"value":3163},{"type":26,"tag":1110,"props":3171,"children":3173},{"id":3172},"_42-内存泄漏排查",[3174],{"type":31,"value":3175},"4.2 内存泄漏排查",{"type":26,"tag":405,"props":3177,"children":3180},{"code":3178,"language":3053,"meta":7,"className":3179},"// 场景：应用运行一段时间后变卡\n\n// 提问方式：\n/**\n * React 应用运行一段时间后内存持续增长，以下是 Heap Snapshot 对比：\n * \n * 初始状态：50MB\n * 运行 1 小时后：150MB\n * 运行 2 小时后：280MB\n * \n * Retained objects 增长最快的：\n * - (closure) - 增长 50MB\n * - HTMLDivElement - 增长 30MB\n * - Array - 增长 20MB\n * \n * 可疑代码：\n */\nfunction DataDashboard() {\n  const [data, setData] = useState([]);\n  const chartRef = useRef(null);\n  \n  useEffect(() => {\n    // 每秒刷新数据\n    const interval = setInterval(async () => {\n      const newData = await fetchLatestData();\n      setData(prev => [...prev, ...newData]);  // 数据不断累积\n    }, 1000);\n    \n    // 初始化图表\n    const chart = new Chart(chartRef.current, {\n      // 配置...\n    });\n    \n    // 没有 cleanup！\n  }, []);\n  \n  return \u003Ccanvas ref={chartRef} />;\n}\n\n// AI 会指出：\n// 1. interval 没有清理\n// 2. Chart 实例没有销毁\n// 3. data 无限增长\n// 并提供修复代码\n",[3055],[3181],{"type":26,"tag":302,"props":3182,"children":3183},{"__ignoreMap":7},[3184],{"type":31,"value":3178},{"type":26,"tag":1110,"props":3186,"children":3188},{"id":3187},"_43-数据库查询优化",[3189],{"type":31,"value":3190},"4.3 数据库查询优化",{"type":26,"tag":405,"props":3192,"children":3197},{"code":3193,"language":3194,"meta":7,"className":3195},"-- 场景：查询很慢，让 AI 分析执行计划\n\n-- 提问方式：\n-- 以下查询在数据量大时很慢（orders 表 1000 万行），\n-- 执行计划如下，请分析并优化：\n\nEXPLAIN ANALYZE\nSELECT o.*, u.name, u.email\nFROM orders o\nJOIN users u ON o.user_id = u.id\nWHERE o.status = 'pending'\n  AND o.created_at > '2024-01-01'\nORDER BY o.created_at DESC\nLIMIT 20;\n\n-- 执行计划：\n/*\nSort  (cost=156847.23..157847.23 rows=400000 width=250)\n  Sort Key: o.created_at DESC\n  ->  Hash Join  (cost=1500.00..89847.23 rows=400000 width=250)\n        Hash Cond: (o.user_id = u.id)\n        ->  Seq Scan on orders o  (cost=0.00..85000.00 rows=400000)\n              Filter: ((status = 'pending') AND (created_at > '2024-01-01'))\n        ->  Hash  (cost=1000.00..1000.00 rows=50000 width=100)\n              ->  Seq Scan on users u  (cost=0.00..1000.00 rows=50000)\nPlanning Time: 0.5 ms\nExecution Time: 3500 ms\n*/\n\n-- AI 会分析出问题并建议：\n-- 1. orders 表全表扫描 - 需要复合索引\n-- 2. 建议创建索引：\nCREATE INDEX idx_orders_status_created ON orders(status, created_at DESC);\n\n-- 3. 如果 status 选择性不高，考虑部分索引：\nCREATE INDEX idx_orders_pending ON orders(created_at DESC) \nWHERE status = 'pending';\n","sql",[3196],"language-sql",[3198],{"type":26,"tag":302,"props":3199,"children":3200},{"__ignoreMap":7},[3201],{"type":31,"value":3193},{"type":26,"tag":39,"props":3203,"children":3205},{"id":3204},"第五部分复杂-bug-排查",[3206],{"type":31,"value":3207},"第五部分：复杂 Bug 排查",{"type":26,"tag":1110,"props":3209,"children":3211},{"id":3210},"_51-竞态条件",[3212],{"type":31,"value":3213},"5.1 竞态条件",{"type":26,"tag":405,"props":3215,"children":3218},{"code":3216,"language":3053,"meta":7,"className":3217},"// 场景：偶发的数据不一致问题\n\n// 提问方式：\n/**\n * 用户反馈偶尔看到错误的账户余额，但刷新后正常。\n * 怀疑是竞态条件，以下是相关代码：\n */\nasync function updateBalance(userId: string, amount: number) {\n  // 读取当前余额\n  const user = await db.users.findOne({ id: userId });\n  const newBalance = user.balance + amount;\n  \n  // 更新余额\n  await db.users.update({ id: userId }, { balance: newBalance });\n  \n  // 记录交易\n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: newBalance,\n    createdAt: new Date()\n  });\n  \n  return newBalance;\n}\n\n// 并发调用场景：\n// 用户同时发起两笔交易：+100 和 -50\n// 期望结果：原余额 1000 → 1050\n// 实际可能：原余额 1000 → 1100 或 950\n\n// AI 会分析竞态条件并提供解决方案：\nasync function updateBalanceAtomic(userId: string, amount: number) {\n  // 方案 1：使用数据库原子操作\n  const result = await db.users.findOneAndUpdate(\n    { id: userId },\n    { $inc: { balance: amount } },\n    { returnDocument: 'after' }\n  );\n  \n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: result.balance,\n    createdAt: new Date()\n  });\n  \n  return result.balance;\n}\n\n// 方案 2：使用乐观锁\nasync function updateBalanceOptimistic(userId: string, amount: number) {\n  const maxRetries = 3;\n  \n  for (let i = 0; i \u003C maxRetries; i++) {\n    const user = await db.users.findOne({ id: userId });\n    const newBalance = user.balance + amount;\n    \n    const updated = await db.users.updateOne(\n      { id: userId, version: user.version },\n      { balance: newBalance, version: user.version + 1 }\n    );\n    \n    if (updated.modifiedCount === 1) {\n      await db.transactions.create({...});\n      return newBalance;\n    }\n    \n    // 版本冲突，重试\n    await sleep(10 * (i + 1));\n  }\n  \n  throw new Error('Update failed after retries');\n}\n",[3055],[3219],{"type":26,"tag":302,"props":3220,"children":3221},{"__ignoreMap":7},[3222],{"type":31,"value":3216},{"type":26,"tag":1110,"props":3224,"children":3226},{"id":3225},"_52-分布式系统问题",[3227],{"type":31,"value":3228},"5.2 分布式系统问题",{"type":26,"tag":405,"props":3230,"children":3233},{"code":3231,"language":3053,"meta":7,"className":3232},"// 场景：微服务间的数据不一致\n\n// 提问方式：\n/**\n * 订单服务和库存服务偶尔出现数据不一致：\n * - 订单显示已创建\n * - 库存未扣减\n * \n * 当前流程：\n */\n// Order Service\nasync function createOrder(orderData) {\n  // 1. 调用库存服务扣减库存\n  await inventoryService.deduct(orderData.items);\n  \n  // 2. 创建订单\n  const order = await orderRepository.create(orderData);\n  \n  // 3. 发送订单创建事件\n  await eventBus.publish('order.created', order);\n  \n  return order;\n}\n\n// 问题分析：如果步骤 2 或 3 失败，库存已经扣减但订单未创建\n\n// AI 会建议使用 Saga 模式或事务发件箱模式\n",[3055],[3234],{"type":26,"tag":302,"props":3235,"children":3236},{"__ignoreMap":7},[3237],{"type":31,"value":3231},{"type":26,"tag":39,"props":3239,"children":3241},{"id":3240},"第六部分ai-调试工作流",[3242],{"type":31,"value":3243},"第六部分：AI 调试工作流",{"type":26,"tag":1110,"props":3245,"children":3247},{"id":3246},"_61-我的调试流程",[3248],{"type":31,"value":3249},"6.1 我的调试流程",{"type":26,"tag":405,"props":3251,"children":3253},{"code":3252},"┌────────────────────────────────────────────────────────────┐\n│                    AI 辅助调试工作流                         │\n├────────────────────────────────────────────────────────────┤\n│                                                            │\n│  Step 1: 问题收集                                          │\n│  ├── 复制完整错误信息                                       │\n│  ├── 截图相关日志                                          │\n│  └── 记录复现步骤                                          │\n│                                                            │\n│  Step 2: 快速分析                                          │\n│  ├── 将错误信息发给 AI                                      │\n│  ├── 获取可能原因列表                                       │\n│  └── 评估哪些最可能                                         │\n│                                                            │\n│  Step 3: 深入调查                                          │\n│  ├── 根据 AI 建议添加日志/断点                              │\n│  ├── 收集更多信息                                          │\n│  └── 再次询问 AI（带新信息）                                │\n│                                                            │\n│  Step 4: 验证修复                                          │\n│  ├── AI 生成修复代码                                        │\n│  ├── 人工审查确认                                          │\n│  └── 测试验证                                               │\n│                                                            │\n│  Step 5: 预防措施                                          │\n│  ├── AI 建议类似问题的预防方法                              │\n│  ├── 添加相关测试用例                                       │\n│  └── 更新文档/知识库                                        │\n│                                                            │\n└────────────────────────────────────────────────────────────┘\n",[3254],{"type":26,"tag":302,"props":3255,"children":3256},{"__ignoreMap":7},[3257],{"type":31,"value":3252},{"type":26,"tag":1110,"props":3259,"children":3261},{"id":3260},"_62-调试对话模板",[3262],{"type":31,"value":3263},"6.2 调试对话模板",{"type":26,"tag":405,"props":3265,"children":3268},{"code":3266,"language":661,"meta":7,"className":3267},"## 第一轮：问题描述\n\n我遇到了一个问题：[简述问题]\n\n错误信息：\n",[2906],[3269],{"type":26,"tag":302,"props":3270,"children":3271},{"__ignoreMap":7},[3272],{"type":31,"value":3266},{"type":26,"tag":27,"props":3274,"children":3275},{},[3276],{"type":26,"tag":2916,"props":3277,"children":3278},{},[3279],{"type":31,"value":3280},"粘贴完整错误",{"type":26,"tag":405,"props":3282,"children":3284},{"code":3283},"\n相关代码：\n```javascript\n[粘贴代码]\n",[3285],{"type":26,"tag":302,"props":3286,"children":3287},{"__ignoreMap":7},[3288],{"type":31,"value":3283},{"type":26,"tag":784,"props":3290,"children":3291},{},[],{"type":26,"tag":39,"props":3293,"children":3295},{"id":3294},"第二轮补充信息",[3296],{"type":31,"value":3297},"第二轮：补充信息",{"type":26,"tag":27,"props":3299,"children":3300},{},[3301],{"type":31,"value":3302},"根据你的建议，我添加了日志，发现：",{"type":26,"tag":128,"props":3304,"children":3305},{},[3306,3314],{"type":26,"tag":132,"props":3307,"children":3308},{},[3309],{"type":26,"tag":2916,"props":3310,"children":3311},{},[3312],{"type":31,"value":3313},"发现 1",{"type":26,"tag":132,"props":3315,"children":3316},{},[3317],{"type":26,"tag":2916,"props":3318,"children":3319},{},[3320],{"type":31,"value":3321},"发现 2",{"type":26,"tag":27,"props":3323,"children":3324},{},[3325,3327,3332],{"type":31,"value":3326},"这是否说明问题出在 ",{"type":26,"tag":2916,"props":3328,"children":3329},{},[3330],{"type":31,"value":3331},"你的猜测",{"type":31,"value":3333},"？",{"type":26,"tag":784,"props":3335,"children":3336},{},[],{"type":26,"tag":39,"props":3338,"children":3340},{"id":3339},"第三轮确认修复",[3341],{"type":31,"value":3342},"第三轮：确认修复",{"type":26,"tag":27,"props":3344,"children":3345},{},[3346],{"type":31,"value":3347},"我按照你的建议修改了代码：",{"type":26,"tag":405,"props":3349,"children":3352},{"code":3350,"language":3078,"meta":7,"className":3351},"[粘贴修改后的代码]\n",[3080],[3353],{"type":26,"tag":302,"props":3354,"children":3355},{"__ignoreMap":7},[3356],{"type":31,"value":3350},{"type":26,"tag":27,"props":3358,"children":3359},{},[3360],{"type":31,"value":3361},"请确认这个修复是否正确，以及是否有其他潜在问题。",{"type":26,"tag":784,"props":3363,"children":3364},{},[],{"type":26,"tag":39,"props":3366,"children":3368},{"id":3367},"第四轮预防",[3369],{"type":31,"value":3370},"第四轮：预防",{"type":26,"tag":27,"props":3372,"children":3373},{},[3374],{"type":31,"value":3375},"这个问题已解决。请建议：",{"type":26,"tag":522,"props":3377,"children":3378},{},[3379,3384,3389],{"type":26,"tag":132,"props":3380,"children":3381},{},[3382],{"type":31,"value":3383},"如何防止类似问题再次发生？",{"type":26,"tag":132,"props":3385,"children":3386},{},[3387],{"type":31,"value":3388},"应该添加什么测试用例？",{"type":26,"tag":132,"props":3390,"children":3391},{},[3392],{"type":31,"value":3393},"有什么最佳实践可以参考？",{"type":26,"tag":405,"props":3395,"children":3397},{"code":3396},"\n## 结语：AI 是放大器，不是替代品\n\nAI 调试工具能够显著加速问题排查过程，但它不能替代你的思考。最有价值的能力组合是：\n\n- **你的领域知识** + **AI 的广博见识**\n- **你对项目的理解** + **AI 的分析能力**\n- **你的判断力** + **AI 的执行速度**\n\n调试的本质是假设-验证的循环。AI 帮你更快地生成假设、更高效地验证假设，但做出最终判断的还是你。\n\n学会与 AI 高效协作调试，不是依赖 AI 给你答案，而是让 AI 帮你更快地找到自己的答案。\n\n---\n\n## 参考资源\n\n- [Chrome DevTools 官方文档](https://developer.chrome.com/docs/devtools)\n- [Node.js 调试指南](https://nodejs.org/en/docs/guides/debugging-getting-started)\n- [React DevTools 使用指南](https://react.dev/learn/react-developer-tools)\n",[3398],{"type":26,"tag":302,"props":3399,"children":3400},{"__ignoreMap":7},[3401],{"type":31,"value":3396},{"title":7,"searchDepth":647,"depth":647,"links":3403},[3404,3405,3406,3411,3415,3420,3424,3428,3429,3430],{"id":2787,"depth":650,"text":2790},{"id":2793,"depth":650,"text":2796},{"id":2814,"depth":650,"text":2817,"children":3407},[3408,3409,3410],{"id":2820,"depth":647,"text":2823},{"id":2898,"depth":647,"text":2901},{"id":3063,"depth":647,"text":3066},{"id":3105,"depth":650,"text":3108,"children":3412},[3413,3414],{"id":3111,"depth":647,"text":3114},{"id":3131,"depth":647,"text":3134},{"id":3151,"depth":650,"text":3154,"children":3416},[3417,3418,3419],{"id":3157,"depth":647,"text":3160},{"id":3172,"depth":647,"text":3175},{"id":3187,"depth":647,"text":3190},{"id":3204,"depth":650,"text":3207,"children":3421},[3422,3423],{"id":3210,"depth":647,"text":3213},{"id":3225,"depth":647,"text":3228},{"id":3240,"depth":650,"text":3243,"children":3425},[3426,3427],{"id":3246,"depth":647,"text":3249},{"id":3260,"depth":647,"text":3263},{"id":3294,"depth":650,"text":3297},{"id":3339,"depth":650,"text":3342},{"id":3367,"depth":650,"text":3370},"content:topics:ai:ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":3435,"image":17,"imageQuery":18,"pexelsPhotoId":19,"pexelsUrl":20,"featured":6,"readingTime":21,"body":3436,"_type":661,"_id":662,"_source":663,"_file":664,"_stem":665,"_extension":666},[13,14,15,16],{"type":23,"children":3437,"toc":3935},[3438,3442,3446,3450,3503,3507,3511,3515,3550,3554,3558,3622,3626,3630,3645,3649,3653,3663,3667,3678,3682,3686,3690,3705,3709,3713,3732,3736,3740,3748,3752,3756,3760,3824,3828,3832,3836,3855,3859,3863,3907,3911],{"type":26,"tag":27,"props":3439,"children":3440},{},[3441],{"type":31,"value":32},{"type":26,"tag":27,"props":3443,"children":3444},{},[3445],{"type":31,"value":37},{"type":26,"tag":39,"props":3447,"children":3448},{"id":41},[3449],{"type":31,"value":44},{"type":26,"tag":46,"props":3451,"children":3452},{},[3453,3467],{"type":26,"tag":50,"props":3454,"children":3455},{},[3456],{"type":26,"tag":54,"props":3457,"children":3458},{},[3459,3463],{"type":26,"tag":58,"props":3460,"children":3461},{},[3462],{"type":31,"value":62},{"type":26,"tag":58,"props":3464,"children":3465},{},[3466],{"type":31,"value":67},{"type":26,"tag":69,"props":3468,"children":3469},{},[3470,3481,3492],{"type":26,"tag":54,"props":3471,"children":3472},{},[3473,3477],{"type":26,"tag":76,"props":3474,"children":3475},{},[3476],{"type":31,"value":80},{"type":26,"tag":76,"props":3478,"children":3479},{},[3480],{"type":31,"value":85},{"type":26,"tag":54,"props":3482,"children":3483},{},[3484,3488],{"type":26,"tag":76,"props":3485,"children":3486},{},[3487],{"type":31,"value":93},{"type":26,"tag":76,"props":3489,"children":3490},{},[3491],{"type":31,"value":98},{"type":26,"tag":54,"props":3493,"children":3494},{},[3495,3499],{"type":26,"tag":76,"props":3496,"children":3497},{},[3498],{"type":31,"value":106},{"type":26,"tag":76,"props":3500,"children":3501},{},[3502],{"type":31,"value":111},{"type":26,"tag":27,"props":3504,"children":3505},{},[3506],{"type":31,"value":116},{"type":26,"tag":39,"props":3508,"children":3509},{"id":119},[3510],{"type":31,"value":119},{"type":26,"tag":27,"props":3512,"children":3513},{},[3514],{"type":31,"value":126},{"type":26,"tag":128,"props":3516,"children":3517},{},[3518,3522,3526,3530,3534,3538,3542,3546],{"type":26,"tag":132,"props":3519,"children":3520},{},[3521],{"type":31,"value":136},{"type":26,"tag":132,"props":3523,"children":3524},{},[3525],{"type":31,"value":141},{"type":26,"tag":132,"props":3527,"children":3528},{},[3529],{"type":31,"value":146},{"type":26,"tag":132,"props":3531,"children":3532},{},[3533],{"type":31,"value":151},{"type":26,"tag":132,"props":3535,"children":3536},{},[3537],{"type":31,"value":156},{"type":26,"tag":132,"props":3539,"children":3540},{},[3541],{"type":31,"value":161},{"type":26,"tag":132,"props":3543,"children":3544},{},[3545],{"type":31,"value":166},{"type":26,"tag":132,"props":3547,"children":3548},{},[3549],{"type":31,"value":171},{"type":26,"tag":27,"props":3551,"children":3552},{},[3553],{"type":31,"value":176},{"type":26,"tag":39,"props":3555,"children":3556},{"id":179},[3557],{"type":31,"value":179},{"type":26,"tag":46,"props":3559,"children":3560},{},[3561,3575],{"type":26,"tag":50,"props":3562,"children":3563},{},[3564],{"type":26,"tag":54,"props":3565,"children":3566},{},[3567,3571],{"type":26,"tag":58,"props":3568,"children":3569},{},[3570],{"type":31,"value":195},{"type":26,"tag":58,"props":3572,"children":3573},{},[3574],{"type":31,"value":200},{"type":26,"tag":69,"props":3576,"children":3577},{},[3578,3589,3600,3611],{"type":26,"tag":54,"props":3579,"children":3580},{},[3581,3585],{"type":26,"tag":76,"props":3582,"children":3583},{},[3584],{"type":31,"value":211},{"type":26,"tag":76,"props":3586,"children":3587},{},[3588],{"type":31,"value":216},{"type":26,"tag":54,"props":3590,"children":3591},{},[3592,3596],{"type":26,"tag":76,"props":3593,"children":3594},{},[3595],{"type":31,"value":224},{"type":26,"tag":76,"props":3597,"children":3598},{},[3599],{"type":31,"value":229},{"type":26,"tag":54,"props":3601,"children":3602},{},[3603,3607],{"type":26,"tag":76,"props":3604,"children":3605},{},[3606],{"type":31,"value":237},{"type":26,"tag":76,"props":3608,"children":3609},{},[3610],{"type":31,"value":242},{"type":26,"tag":54,"props":3612,"children":3613},{},[3614,3618],{"type":26,"tag":76,"props":3615,"children":3616},{},[3617],{"type":31,"value":250},{"type":26,"tag":76,"props":3619,"children":3620},{},[3621],{"type":31,"value":255},{"type":26,"tag":27,"props":3623,"children":3624},{},[3625],{"type":31,"value":260},{"type":26,"tag":39,"props":3627,"children":3628},{"id":263},[3629],{"type":31,"value":266},{"type":26,"tag":128,"props":3631,"children":3632},{},[3633,3637,3641],{"type":26,"tag":132,"props":3634,"children":3635},{},[3636],{"type":31,"value":274},{"type":26,"tag":132,"props":3638,"children":3639},{},[3640],{"type":31,"value":279},{"type":26,"tag":132,"props":3642,"children":3643},{},[3644],{"type":31,"value":284},{"type":26,"tag":27,"props":3646,"children":3647},{},[3648],{"type":31,"value":289},{"type":26,"tag":39,"props":3650,"children":3651},{"id":292},[3652],{"type":31,"value":295},{"type":26,"tag":27,"props":3654,"children":3655},{},[3656,3657,3662],{"type":31,"value":300},{"type":26,"tag":302,"props":3658,"children":3660},{"className":3659},[],[3661],{"type":31,"value":307},{"type":31,"value":309},{"type":26,"tag":27,"props":3664,"children":3665},{},[3666],{"type":31,"value":314},{"type":26,"tag":128,"props":3668,"children":3669},{},[3670,3674],{"type":26,"tag":132,"props":3671,"children":3672},{},[3673],{"type":31,"value":322},{"type":26,"tag":132,"props":3675,"children":3676},{},[3677],{"type":31,"value":327},{"type":26,"tag":27,"props":3679,"children":3680},{},[3681],{"type":31,"value":332},{"type":26,"tag":39,"props":3683,"children":3684},{"id":335},[3685],{"type":31,"value":335},{"type":26,"tag":27,"props":3687,"children":3688},{},[3689],{"type":31,"value":342},{"type":26,"tag":128,"props":3691,"children":3692},{},[3693,3697,3701],{"type":26,"tag":132,"props":3694,"children":3695},{},[3696],{"type":31,"value":350},{"type":26,"tag":132,"props":3698,"children":3699},{},[3700],{"type":31,"value":355},{"type":26,"tag":132,"props":3702,"children":3703},{},[3704],{"type":31,"value":360},{"type":26,"tag":27,"props":3706,"children":3707},{},[3708],{"type":31,"value":365},{"type":26,"tag":39,"props":3710,"children":3711},{"id":368},[3712],{"type":31,"value":368},{"type":26,"tag":128,"props":3714,"children":3715},{},[3716,3720,3724,3728],{"type":26,"tag":132,"props":3717,"children":3718},{},[3719],{"type":31,"value":378},{"type":26,"tag":132,"props":3721,"children":3722},{},[3723],{"type":31,"value":383},{"type":26,"tag":132,"props":3725,"children":3726},{},[3727],{"type":31,"value":388},{"type":26,"tag":132,"props":3729,"children":3730},{},[3731],{"type":31,"value":393},{"type":26,"tag":27,"props":3733,"children":3734},{},[3735],{"type":31,"value":398},{"type":26,"tag":39,"props":3737,"children":3738},{"id":401},[3739],{"type":31,"value":401},{"type":26,"tag":405,"props":3741,"children":3743},{"className":3742,"code":409,"language":410,"meta":7},[408],[3744],{"type":26,"tag":302,"props":3745,"children":3746},{"__ignoreMap":7},[3747],{"type":31,"value":409},{"type":26,"tag":27,"props":3749,"children":3750},{},[3751],{"type":31,"value":420},{"type":26,"tag":39,"props":3753,"children":3754},{"id":423},[3755],{"type":31,"value":426},{"type":26,"tag":27,"props":3757,"children":3758},{},[3759],{"type":31,"value":431},{"type":26,"tag":46,"props":3761,"children":3762},{},[3763,3777],{"type":26,"tag":50,"props":3764,"children":3765},{},[3766],{"type":26,"tag":54,"props":3767,"children":3768},{},[3769,3773],{"type":26,"tag":58,"props":3770,"children":3771},{},[3772],{"type":31,"value":445},{"type":26,"tag":58,"props":3774,"children":3775},{},[3776],{"type":31,"value":450},{"type":26,"tag":69,"props":3778,"children":3779},{},[3780,3791,3802,3813],{"type":26,"tag":54,"props":3781,"children":3782},{},[3783,3787],{"type":26,"tag":76,"props":3784,"children":3785},{},[3786],{"type":31,"value":461},{"type":26,"tag":76,"props":3788,"children":3789},{},[3790],{"type":31,"value":466},{"type":26,"tag":54,"props":3792,"children":3793},{},[3794,3798],{"type":26,"tag":76,"props":3795,"children":3796},{},[3797],{"type":31,"value":474},{"type":26,"tag":76,"props":3799,"children":3800},{},[3801],{"type":31,"value":479},{"type":26,"tag":54,"props":3803,"children":3804},{},[3805,3809],{"type":26,"tag":76,"props":3806,"children":3807},{},[3808],{"type":31,"value":487},{"type":26,"tag":76,"props":3810,"children":3811},{},[3812],{"type":31,"value":492},{"type":26,"tag":54,"props":3814,"children":3815},{},[3816,3820],{"type":26,"tag":76,"props":3817,"children":3818},{},[3819],{"type":31,"value":500},{"type":26,"tag":76,"props":3821,"children":3822},{},[3823],{"type":31,"value":505},{"type":26,"tag":27,"props":3825,"children":3826},{},[3827],{"type":31,"value":510},{"type":26,"tag":39,"props":3829,"children":3830},{"id":513},[3831],{"type":31,"value":513},{"type":26,"tag":27,"props":3833,"children":3834},{},[3835],{"type":31,"value":520},{"type":26,"tag":522,"props":3837,"children":3838},{},[3839,3843,3847,3851],{"type":26,"tag":132,"props":3840,"children":3841},{},[3842],{"type":31,"value":529},{"type":26,"tag":132,"props":3844,"children":3845},{},[3846],{"type":31,"value":534},{"type":26,"tag":132,"props":3848,"children":3849},{},[3850],{"type":31,"value":539},{"type":26,"tag":132,"props":3852,"children":3853},{},[3854],{"type":31,"value":544},{"type":26,"tag":27,"props":3856,"children":3857},{},[3858],{"type":31,"value":549},{"type":26,"tag":39,"props":3860,"children":3861},{"id":552},[3862],{"type":31,"value":555},{"type":26,"tag":128,"props":3864,"children":3866},{"className":3865},[559],[3867,3875,3883,3891,3899],{"type":26,"tag":132,"props":3868,"children":3870},{"className":3869},[564],[3871,3874],{"type":26,"tag":567,"props":3872,"children":3873},{"disabled":569,"type":570},[],{"type":31,"value":573},{"type":26,"tag":132,"props":3876,"children":3878},{"className":3877},[564],[3879,3882],{"type":26,"tag":567,"props":3880,"children":3881},{"disabled":569,"type":570},[],{"type":31,"value":582},{"type":26,"tag":132,"props":3884,"children":3886},{"className":3885},[564],[3887,3890],{"type":26,"tag":567,"props":3888,"children":3889},{"disabled":569,"type":570},[],{"type":31,"value":591},{"type":26,"tag":132,"props":3892,"children":3894},{"className":3893},[564],[3895,3898],{"type":26,"tag":567,"props":3896,"children":3897},{"disabled":569,"type":570},[],{"type":31,"value":600},{"type":26,"tag":132,"props":3900,"children":3902},{"className":3901},[564],[3903,3906],{"type":26,"tag":567,"props":3904,"children":3905},{"disabled":569,"type":570},[],{"type":31,"value":609},{"type":26,"tag":27,"props":3908,"children":3909},{},[3910],{"type":31,"value":614},{"type":26,"tag":128,"props":3912,"children":3913},{},[3914,3921,3928],{"type":26,"tag":132,"props":3915,"children":3916},{},[3917],{"type":26,"tag":622,"props":3918,"children":3919},{"href":624},[3920],{"type":31,"value":627},{"type":26,"tag":132,"props":3922,"children":3923},{},[3924],{"type":26,"tag":622,"props":3925,"children":3926},{"href":633},[3927],{"type":31,"value":636},{"type":26,"tag":132,"props":3929,"children":3930},{},[3931],{"type":26,"tag":622,"props":3932,"children":3933},{"href":642},[3934],{"type":31,"value":645},{"title":7,"searchDepth":647,"depth":647,"links":3936},[3937,3938,3939,3940,3941,3942,3943,3944,3945,3946,3947],{"id":41,"depth":650,"text":44},{"id":119,"depth":650,"text":119},{"id":179,"depth":650,"text":179},{"id":263,"depth":650,"text":266},{"id":292,"depth":650,"text":295},{"id":335,"depth":650,"text":335},{"id":368,"depth":650,"text":368},{"id":401,"depth":650,"text":401},{"id":423,"depth":650,"text":426},{"id":513,"depth":650,"text":513},{"id":552,"depth":650,"text":555},1780533121981]