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