@ghyper9023/pi-dev-workflow 0.4.3 → 0.5.1

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.
Files changed (61) hide show
  1. package/.doc/AGENT-FRONTMATTER-REFERENCE.md +198 -0
  2. package/.version/RELEASE-v0.5.0.md +82 -0
  3. package/README.md +2 -0
  4. package/agents/git-agent.md +7 -0
  5. package/agents/grill/dev-doc-grill-agent.md +7 -0
  6. package/agents/grill/dev-fix-grill-agent.md +7 -0
  7. package/agents/grill/dev-grill-agent.md +7 -0
  8. package/agents/grill/dev-perf-grill-agent.md +7 -0
  9. package/agents/grill/dev-prd-agent.md +7 -0
  10. package/agents/grill/dev-refactor-grill-agent.md +7 -0
  11. package/agents/grill/dev-test-grill-agent.md +7 -0
  12. package/agents/review-agent.md +7 -0
  13. package/agents/workflow/docWriter-agent.md +13 -2
  14. package/agents/workflow/planner-agent.md +16 -3
  15. package/agents/workflow/reviewer-agent.md +21 -4
  16. package/agents/workflow/trimmer-agent.md +12 -1
  17. package/agents/workflow/worker-agent.md +17 -2
  18. package/extensions/sub-agents.ts +192 -30
  19. package/extensions/ui-helpers.ts +20 -20
  20. package/extensions/workflow-engine.ts +347 -16
  21. package/package.json +1 -1
  22. package/tests/test-workflow-engine-bugs.mjs +317 -0
  23. package/.pi-dev-output/pi-grill/answers/answer-mpds3by7-20260520-1606.md +0 -14
  24. package/.pi-dev-output/pi-grill/answers/answer-mpfe77f1-20260521-1913.md +0 -58
  25. package/.pi-dev-output/pi-grill/answers/answer-mpfh37wu-20260521-2034.md +0 -13
  26. package/.pi-dev-output/pi-grill/answers/answer-mpfi5q4c-20260521-2104.md +0 -13
  27. package/.pi-dev-output/pi-grill/answers/answer-mpfizccb-20260521-2127.md +0 -13
  28. package/.pi-dev-output/pi-grill/answers/answer-mpfjk78k-20260521-2143.md +0 -13
  29. package/.pi-dev-output/pi-grill/answers/answer-mpfttme1-20260522-0230.md +0 -13
  30. package/.pi-dev-output/pi-grill/questions/questions-mpfdz1tz-20260521-1907.json +0 -94
  31. package/.pi-dev-output/pi-plans/20260520-153000-fix-workflow-engine-bugs.md +0 -150
  32. package/.pi-dev-output/pi-plans/20260521-113000-fix-loopcount-timeout.md +0 -215
  33. package/.pi-dev-output/pi-plans/20260521-1730-grill-input-wrap-back-fix.md +0 -240
  34. package/.pi-dev-output/pi-plans/20260521-230000-fix-timeout-display-loopcount-gitdiff.md +0 -253
  35. package/.pi-dev-output/pi-plans/20260521-230500-esc-double-press-confirm-workflow.md +0 -137
  36. package/.pi-dev-output/pi-plans/20260521-235000-fix-gitdiff-loopcount.md +0 -258
  37. package/.pi-dev-output/pi-plans/20260522-113000-grill-left-arrow-fix.md +0 -274
  38. package/.pi-dev-output/pi-review/html/20260521-2305-review-workflow-index.html +0 -196
  39. package/.pi-dev-output/pi-review/md/review-20260520-100000.md +0 -91
  40. package/.pi-dev-output/pi-review/md/review-20260521-140000.md +0 -191
  41. package/.pi-dev-output/pi-review/md/review-20260521-190000.md +0 -189
  42. package/.pi-dev-output/pi-review/md/review-20260521-204500.md +0 -241
  43. package/.pi-dev-output/pi-review/md/review-20260521-214500.md +0 -270
  44. package/.pi-dev-output/pi-review/md/review-20260521-215158.md +0 -214
  45. package/.pi-dev-output/pi-review/md/review-20260521-234500.md +0 -201
  46. package/.pi-dev-output/pi-review/md/review-20260521-235500.md +0 -422
  47. package/.pi-dev-output/pi-review/md/review-20260522-000000.md +0 -212
  48. package/.pi-dev-output/pi-review/md/review-20260522-003000.md +0 -377
  49. package/.pi-dev-output/pi-review/md/review-20260522-003500.md +0 -296
  50. package/.pi-dev-output/pi-review/md/review-20260522-105000.md +0 -166
  51. package/.pi-dev-output/pi-workflow/checkpoint-20260520-153000-fix-workflow-engine-bugs.json +0 -108
  52. package/.pi-dev-output/pi-workflow/checkpoint-20260521-113000-fix-loopcount-timeout.json +0 -402
  53. package/.pi-dev-output/pi-workflow/checkpoint-20260521-1730-grill-input-wrap-back-fix.json +0 -447
  54. package/.pi-dev-output/pi-workflow/checkpoint-20260521-230000-fix-timeout-display-loopcount-gitdiff.json +0 -708
  55. package/.pi-dev-output/pi-workflow/checkpoint-20260521-230500-esc-double-press-confirm-workflow.json +0 -365
  56. package/.pi-dev-output/pi-workflow/checkpoint-20260521-235000-fix-gitdiff-loopcount.json +0 -395
  57. package/.pi-dev-output/pi-workflow/checkpoint-20260522-113000-grill-left-arrow-fix.json +0 -473
  58. package/.pi-dev-output/pi-workflow/checkpoint-archive-mpfhyxc5.json +0 -30
  59. package/.pi-dev-output/pi-workflow/checkpoint-archive-mpfi2unc.json +0 -49
  60. package/.pi-dev-output/pi-workflow/checkpoint-archive-mpfi382e.json +0 -59
  61. package/.pi-dev-output/pi-workflow/checkpoint-archive-mpfi5r22.json +0 -76
@@ -1,447 +0,0 @@
1
- {
2
- "version": 2,
3
- "createdAt": "2026-05-21T12:47:36.462Z",
4
- "updatedAt": "2026-05-21T12:47:36.462Z",
5
- "prompt": "[fix] 修复 extensions文件夹 中的 问题: 1.dev-*命令输入,grill提问环节自定义输入等地方的输入不会自动换行,全部内容都在一行。 2.grill的提问回答环节,提问问题现在正确换行了,但是回答选项a/b/c...在字数较多时候没有换行,无法看到超出ui部分的内容,所有文件都在一行。 3.grill的提问回答环节,<-左方向键位功能是要求回到上一个问题,但是现在左方向键功能没有实现,按下后没反应。\n\n**背景**:\n- 输入:见代码上下文\n- 预期行为:预期要求: 1.dev-*命令输入,grill提问环节自定义输入等地方需要自动换行。 2.grill的提问回答环节,选项也需要自动换行,a/b/c...以及自定义内容。 3.grill的提问回答环节,<-左方向键位功能修复,能够回到上一个问题,且保留了上一个问题的选择(<上次选择)。 4.严格完成以上任务要求,不得破坏原有其他功能,不得偷懒省略,以最小改动实现。\n- 当前错误:请描述当前错误\n**任务**:\n1. 不要仅仅消除报错(Suppress),要解决根本原因。\n2. 先读取相关代码和日志,诊断根因(多步推理,不要先给结论)。\n3. 提供至少一种修复方案,并说明为什么这样做。\n4. 编写测试用例复现该 Bug 并确认修复有效。\n**输出**:提供 diff 和两句话的根因分析。\n**约束**:只修 bug,不做重构;最小化改动;不要假设错误是微不足道的。",
6
- "mode": "attended",
7
- "steps": [
8
- {
9
- "status": "done",
10
- "durationMs": 187154
11
- },
12
- {
13
- "status": "done",
14
- "loopCount": 1,
15
- "durationMs": 436324
16
- }
17
- ],
18
- "currentStepIndex": 1,
19
- "loopCounts": {
20
- "worker-reviewer": 1
21
- },
22
- "planFilePath": ".pi-dev-output/pi-plans/20260521-1730-grill-input-wrap-back-fix.md",
23
- "taskSummary": "fix - 修复 extensions文件夹 中的 问题: 1.dev-*命令输入,grill提问环节自定义输入等地方的输入不会自动换行,全部内容都在一行。 2.grill的提问回答环节,提问问题现在正确换行了,但是回答选项a/b/c...在字数较多时候没有换行,无法看到超出ui部分的内容,所有文件都在一行。 3.grill的提问回答环节,<-左方向键位功能是要求回到上一个问题,但是现在左方向键功能没有实现,按下后没反应。",
24
- "workflowType": "自定义",
25
- "fileChanges": [
26
- {
27
- "agent": "planner",
28
- "stepIndex": 0,
29
- "type": "edit",
30
- "filePath": "‘/hom",
31
- "timestamp": "2026-05-21T12:34:36.935Z"
32
- },
33
- {
34
- "agent": "planner",
35
- "stepIndex": 0,
36
- "type": "edit",
37
- "filePath": "questions-${ts}-${formatTimestamp()}.json",
38
- "timestamp": "2026-05-21T12:37:34.172Z"
39
- },
40
- {
41
- "agent": "planner",
42
- "stepIndex": 0,
43
- "type": "edit",
44
- "filePath": "${safe",
45
- "timestamp": "2026-05-21T12:37:34.173Z"
46
- },
47
- {
48
- "agent": "planner",
49
- "stepIndex": 0,
50
- "type": "edit",
51
- "filePath": "${fileChanges.edits",
52
- "timestamp": "2026-05-21T12:37:34.177Z"
53
- },
54
- {
55
- "agent": "planner",
56
- "stepIndex": 0,
57
- "type": "delete",
58
- "filePath": "${fileChanges.deletes",
59
- "timestamp": "2026-05-21T12:37:34.177Z"
60
- },
61
- {
62
- "agent": "planner",
63
- "stepIndex": 0,
64
- "type": "new",
65
- "filePath": ".pi-dev-output/pi-plans/20260521-1730-grill-input-wrap-back-fix.md",
66
- "timestamp": "2026-05-21T12:37:34.214Z"
67
- },
68
- {
69
- "agent": "planner",
70
- "stepIndex": 0,
71
- "type": "new",
72
- "filePath": ".pi-dev-output/pi-workflow/checkpoint.json",
73
- "timestamp": "2026-05-21T12:37:34.214Z"
74
- },
75
- {
76
- "agent": "worker",
77
- "stepIndex": 1,
78
- "type": "edit",
79
- "filePath": "config.json\\\\\\\")",
80
- "timestamp": "2026-05-21T12:41:59.652Z"
81
- },
82
- {
83
- "agent": "worker",
84
- "stepIndex": 1,
85
- "type": "edit",
86
- "filePath": "src/main.rs\\\\\\\",",
87
- "timestamp": "2026-05-21T12:41:59.653Z"
88
- },
89
- {
90
- "agent": "worker",
91
- "stepIndex": 1,
92
- "type": "edit",
93
- "filePath": "代码xxx.rs\\n",
94
- "timestamp": "2026-05-21T12:42:01.342Z"
95
- },
96
- {
97
- "agent": "worker",
98
- "stepIndex": 1,
99
- "type": "new",
100
- "filePath": "代码xxx.ts\\n",
101
- "timestamp": "2026-05-21T12:42:08.366Z"
102
- },
103
- {
104
- "agent": "worker",
105
- "stepIndex": 1,
106
- "type": "edit",
107
- "filePath": "src/main.rs\\\",",
108
- "timestamp": "2026-05-21T12:42:09.132Z"
109
- },
110
- {
111
- "agent": "worker",
112
- "stepIndex": 1,
113
- "type": "edit",
114
- "filePath": "config.json\\\")",
115
- "timestamp": "2026-05-21T12:42:10.466Z"
116
- },
117
- {
118
- "agent": "worker",
119
- "stepIndex": 1,
120
- "type": "edit",
121
- "filePath": "src/main",
122
- "timestamp": "2026-05-21T12:42:10.538Z"
123
- },
124
- {
125
- "agent": "worker",
126
- "stepIndex": 1,
127
- "type": "edit",
128
- "filePath": "代码xxx.rs\\\\n",
129
- "timestamp": "2026-05-21T12:42:11.931Z"
130
- },
131
- {
132
- "agent": "worker",
133
- "stepIndex": 1,
134
- "type": "edit",
135
- "filePath": "path\\\",",
136
- "timestamp": "2026-05-21T12:42:16.672Z"
137
- },
138
- {
139
- "agent": "worker",
140
- "stepIndex": 1,
141
- "type": "edit",
142
- "filePath": "src/ma",
143
- "timestamp": "2026-05-21T12:42:16.678Z"
144
- },
145
- {
146
- "agent": "worker",
147
- "stepIndex": 1,
148
- "type": "new",
149
- "filePath": "path\\\",",
150
- "timestamp": "2026-05-21T12:42:16.802Z"
151
- },
152
- {
153
- "agent": "worker",
154
- "stepIndex": 1,
155
- "type": "delete",
156
- "filePath": "\\\\\\\\s*(.+)/i);\\\\n",
157
- "timestamp": "2026-05-21T12:42:16.805Z"
158
- },
159
- {
160
- "agent": "worker",
161
- "stepIndex": 1,
162
- "type": "edit",
163
- "filePath": "\\\\s*(.+)/i);\\n",
164
- "timestamp": "2026-05-21T12:42:16.811Z"
165
- },
166
- {
167
- "agent": "worker",
168
- "stepIndex": 1,
169
- "type": "delete",
170
- "filePath": "path\\\"\\n",
171
- "timestamp": "2026-05-21T12:42:16.813Z"
172
- },
173
- {
174
- "agent": "worker",
175
- "stepIndex": 1,
176
- "type": "edit",
177
- "filePath": "path\\\\\\\",",
178
- "timestamp": "2026-05-21T12:42:22.221Z"
179
- },
180
- {
181
- "agent": "worker",
182
- "stepIndex": 1,
183
- "type": "edit",
184
- "filePath": "/new:/delete:",
185
- "timestamp": "2026-05-21T12:42:22.223Z"
186
- },
187
- {
188
- "agent": "worker",
189
- "stepIndex": 1,
190
- "type": "new",
191
- "filePath": "\\\\\\\\s*(.+)/i);\\\\n",
192
- "timestamp": "2026-05-21T12:42:22.290Z"
193
- },
194
- {
195
- "agent": "worker",
196
- "stepIndex": 1,
197
- "type": "edit",
198
- "filePath": "src/main.",
199
- "timestamp": "2026-05-21T12:42:46.258Z"
200
- },
201
- {
202
- "agent": "worker",
203
- "stepIndex": 1,
204
- "type": "edit",
205
- "filePath": "src/main.r",
206
- "timestamp": "2026-05-21T12:42:57.041Z"
207
- },
208
- {
209
- "agent": "worker",
210
- "stepIndex": 1,
211
- "type": "edit",
212
- "filePath": "src/",
213
- "timestamp": "2026-05-21T12:42:57.042Z"
214
- },
215
- {
216
- "agent": "worker",
217
- "stepIndex": 1,
218
- "type": "edit",
219
- "filePath": "\\\\\\\\s*(.+)/i);\\\\n",
220
- "timestamp": "2026-05-21T12:43:05.019Z"
221
- },
222
- {
223
- "agent": "worker",
224
- "stepIndex": 1,
225
- "type": "delete",
226
- "filePath": "path\\\\\\\"\\\\n",
227
- "timestamp": "2026-05-21T12:43:05.053Z"
228
- },
229
- {
230
- "agent": "worker",
231
- "stepIndex": 1,
232
- "type": "new",
233
- "filePath": "path\\\\\\\",",
234
- "timestamp": "2026-05-21T12:43:05.058Z"
235
- },
236
- {
237
- "agent": "worker",
238
- "stepIndex": 1,
239
- "type": "new",
240
- "filePath": "\\\\s*(.+)/i);\\n",
241
- "timestamp": "2026-05-21T12:43:07.430Z"
242
- },
243
- {
244
- "agent": "worker",
245
- "stepIndex": 1,
246
- "type": "delete",
247
- "filePath": "path\\\\\\\")\\\\n",
248
- "timestamp": "2026-05-21T12:43:07.541Z"
249
- },
250
- {
251
- "agent": "worker",
252
- "stepIndex": 1,
253
- "type": "edit",
254
- "filePath": "ui-helpers.ts",
255
- "timestamp": "2026-05-21T12:45:05.308Z"
256
- },
257
- {
258
- "agent": "worker",
259
- "stepIndex": 1,
260
- "type": "edit",
261
- "filePath": "grill-me-agent.ts",
262
- "timestamp": "2026-05-21T12:45:05.308Z"
263
- },
264
- {
265
- "agent": "worker",
266
- "stepIndex": 1,
267
- "type": "edit",
268
- "filePath": "tui.editor.cursorLeft",
269
- "timestamp": "2026-05-21T12:45:05.309Z"
270
- },
271
- {
272
- "agent": "worker",
273
- "stepIndex": 1,
274
- "type": "edit",
275
- "filePath": "extensions/grill-me-agent.ts",
276
- "timestamp": "2026-05-21T12:45:05.309Z"
277
- },
278
- {
279
- "agent": "worker",
280
- "stepIndex": 1,
281
- "type": "edit",
282
- "filePath": "showQuestionTUI.handleInput",
283
- "timestamp": "2026-05-21T12:45:05.309Z"
284
- },
285
- {
286
- "agent": "worker",
287
- "stepIndex": 1,
288
- "type": "edit",
289
- "filePath": "extensions/ui-helpers.ts",
290
- "timestamp": "2026-05-21T12:45:05.309Z"
291
- },
292
- {
293
- "agent": "worker",
294
- "stepIndex": 1,
295
- "type": "edit",
296
- "filePath": "uiInput.handleInput",
297
- "timestamp": "2026-05-21T12:45:05.309Z"
298
- },
299
- {
300
- "agent": "worker",
301
- "stepIndex": 1,
302
- "type": "edit",
303
- "filePath": "questions-${ts}-${formatTimestamp()}.json",
304
- "timestamp": "2026-05-21T12:45:05.310Z"
305
- },
306
- {
307
- "agent": "worker",
308
- "stepIndex": 1,
309
- "type": "edit",
310
- "filePath": "${safe",
311
- "timestamp": "2026-05-21T12:45:05.310Z"
312
- },
313
- {
314
- "agent": "worker",
315
- "stepIndex": 1,
316
- "type": "edit",
317
- "filePath": "${fileChanges.edits",
318
- "timestamp": "2026-05-21T12:45:05.317Z"
319
- },
320
- {
321
- "agent": "worker",
322
- "stepIndex": 1,
323
- "type": "delete",
324
- "filePath": "${fileChanges.deletes",
325
- "timestamp": "2026-05-21T12:45:05.317Z"
326
- },
327
- {
328
- "agent": "reviewer",
329
- "stepIndex": 1,
330
- "type": "edit",
331
- "filePath": "ui-helpers.ts",
332
- "timestamp": "2026-05-21T12:47:36.401Z"
333
- },
334
- {
335
- "agent": "reviewer",
336
- "stepIndex": 1,
337
- "type": "edit",
338
- "filePath": "grill-me-agent.ts",
339
- "timestamp": "2026-05-21T12:47:36.401Z"
340
- },
341
- {
342
- "agent": "reviewer",
343
- "stepIndex": 1,
344
- "type": "edit",
345
- "filePath": "tui.editor.cursorLeft",
346
- "timestamp": "2026-05-21T12:47:36.401Z"
347
- },
348
- {
349
- "agent": "reviewer",
350
- "stepIndex": 1,
351
- "type": "edit",
352
- "filePath": "extensions/grill-me-agent.ts",
353
- "timestamp": "2026-05-21T12:47:36.401Z"
354
- },
355
- {
356
- "agent": "reviewer",
357
- "stepIndex": 1,
358
- "type": "edit",
359
- "filePath": "showQuestionTUI.handleInput",
360
- "timestamp": "2026-05-21T12:47:36.401Z"
361
- },
362
- {
363
- "agent": "reviewer",
364
- "stepIndex": 1,
365
- "type": "edit",
366
- "filePath": "extensions/ui-helpers.ts",
367
- "timestamp": "2026-05-21T12:47:36.401Z"
368
- },
369
- {
370
- "agent": "reviewer",
371
- "stepIndex": 1,
372
- "type": "edit",
373
- "filePath": "uiInput.handleInput",
374
- "timestamp": "2026-05-21T12:47:36.401Z"
375
- },
376
- {
377
- "agent": "reviewer",
378
- "stepIndex": 1,
379
- "type": "edit",
380
- "filePath": "questions-${ts}-${formatTimestamp()}.json",
381
- "timestamp": "2026-05-21T12:47:36.402Z"
382
- },
383
- {
384
- "agent": "reviewer",
385
- "stepIndex": 1,
386
- "type": "edit",
387
- "filePath": "${safe",
388
- "timestamp": "2026-05-21T12:47:36.403Z"
389
- },
390
- {
391
- "agent": "reviewer",
392
- "stepIndex": 1,
393
- "type": "edit",
394
- "filePath": "${fileChanges.edits",
395
- "timestamp": "2026-05-21T12:47:36.409Z"
396
- },
397
- {
398
- "agent": "reviewer",
399
- "stepIndex": 1,
400
- "type": "delete",
401
- "filePath": "${fileChanges.deletes",
402
- "timestamp": "2026-05-21T12:47:36.409Z"
403
- },
404
- {
405
- "agent": "reviewer",
406
- "stepIndex": 1,
407
- "type": "new",
408
- "filePath": ".pi-dev-output/pi-review/md/review-20260521-214500.md",
409
- "timestamp": "2026-05-21T12:47:36.457Z"
410
- }
411
- ],
412
- "subAgentRuns": 3,
413
- "filesModified": 40,
414
- "filesCreated": 8,
415
- "agentRunHistory": [
416
- {
417
- "agent": "planner",
418
- "stepIndex": 0,
419
- "startedAt": "2026-05-21T12:34:27.061Z",
420
- "durationMs": 187105,
421
- "exitCode": 0,
422
- "toolCount": 1
423
- },
424
- {
425
- "agent": "worker",
426
- "stepIndex": 1,
427
- "startedAt": "2026-05-21T12:40:20.139Z",
428
- "durationMs": 285164,
429
- "exitCode": 0,
430
- "toolCount": 303
431
- },
432
- {
433
- "agent": "reviewer",
434
- "stepIndex": 1,
435
- "startedAt": "2026-05-21T12:45:05.359Z",
436
- "durationMs": 151037,
437
- "exitCode": 0,
438
- "toolCount": 314
439
- }
440
- ],
441
- "baseline": [
442
- {
443
- "path": ".pi-dev-output/pi-grill/answers/answer-mpfh37wu-20260521-2034.md",
444
- "hash": "3dd7af7190e52d39aee67d6168ed5c21daaa0ae4"
445
- }
446
- ]
447
- }