@aiyiran/myclaw 1.1.158 → 1.1.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -569,7 +569,15 @@
569
569
  lines.push("学生描述:" + (state.description || "(未填写)"));
570
570
  lines.push("");
571
571
  lines.push("请从学生描述里提取:我做了什么、发生了什么、我的预期是什么。");
572
- lines.push("然后先阅读调试记录,再结合源码定位问题,只做最小修复。修复后说明原因和改动位置。");
572
+ lines.push("");
573
+ lines.push("如何阅读调试记录(不要通读整个 HTML,按下面抓重点):");
574
+ lines.push("1. 调试记录是一个 HTML 文件,完整事件数据在 <script id=\"debug-data\" type=\"application/json\"> 这段 JSON 里——只读这段,别看页面样式。");
575
+ lines.push("2. 先在事件里找 runtime-error / unhandledrejection / 以及 level 为 error 的 console 事件,它们是问题的起点。");
576
+ lines.push("3. 抓住报错事件的 message、stack、filename、lineno——直接定位到源码里出错的那个函数/那几行,只看相关代码段,不要通读整个作品文件。");
577
+ lines.push("4. 再倒着看报错之前的 page-enter / click / keydown / console,还原“做了什么 → 触发了什么”的因果链,确认重现路径。");
578
+ lines.push("5. 如果没有任何报错(属于逻辑 bug),就对比【学生的预期】和事件里 console 输出 / 交互序列反映出的【实际行为】,差异处就是 bug。");
579
+ lines.push("");
580
+ lines.push("定位到根因后只做最小修复。修复后说明:问题原因、改了哪个文件的哪段代码、为什么这样改能解决。");
573
581
 
574
582
  return lines.join("\n");
575
583
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.1.158",
3
+ "version": "1.1.160",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {