@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,365 +0,0 @@
1
- {
2
- "version": 2,
3
- "createdAt": "2026-05-21T13:39:04.030Z",
4
- "updatedAt": "2026-05-21T13:39:04.030Z",
5
- "prompt": "[fix] 修复 当前目录 中的 问题: 1.Workflow工作期间,ecs是中断当前工作流,容易误触\n\n**背景**:\n- 输入:见代码上下文\n- 预期行为:预期要求: 1.Workflow工作期间,ecs第一次,显示提示:“再次按下ecs键,停止Workflow”,俩次ecs间隔<5s才退出,5s之后,提示内容“再次按下ecs键,停止Workflow”去掉,需要重新监听ecs按下和重新计时。 2.严格完成以上任务要求,不得破坏原有其他功能,不得偷懒省略,以最小改动实现。\n- 当前错误:请描述当前错误\n**任务**:\n1. 不要仅仅消除报错(Suppress),要解决根本原因。\n2. 先读取相关代码和日志,诊断根因(多步推理,不要先给结论)。\n3. 提供至少一种修复方案,并说明为什么这样做。\n4. 编写测试用例复现该 Bug 并确认修复有效。\n**输出**:提供 diff 和两句话的根因分析。\n**约束**:只修 bug,不做重构;最小化改动;不要假设错误是微不足道的。",
6
- "mode": "full-attended",
7
- "steps": [
8
- {
9
- "status": "done",
10
- "durationMs": 93560
11
- },
12
- {
13
- "status": "done",
14
- "loopCount": 2,
15
- "durationMs": 544276
16
- }
17
- ],
18
- "currentStepIndex": 1,
19
- "loopCounts": {
20
- "worker-reviewer": 2
21
- },
22
- "planFilePath": ".pi-dev-output/pi-plans/20260521-230500-esc-double-press-confirm-workflow.md",
23
- "taskSummary": "fix - 修复 当前目录 中的 问题: 1.Workflow工作期间,ecs是中断当前工作流,容易误触",
24
- "workflowType": "自定义",
25
- "fileChanges": [
26
- {
27
- "agent": "planner",
28
- "stepIndex": 0,
29
- "type": "edit",
30
- "filePath": "checkpoint-${planId}.json",
31
- "timestamp": "2026-05-21T13:28:58.966Z"
32
- },
33
- {
34
- "agent": "planner",
35
- "stepIndex": 0,
36
- "type": "edit",
37
- "filePath": "src/main.rs",
38
- "timestamp": "2026-05-21T13:28:58.967Z"
39
- },
40
- {
41
- "agent": "planner",
42
- "stepIndex": 0,
43
- "type": "edit",
44
- "filePath": "path/to/file.ts",
45
- "timestamp": "2026-05-21T13:28:58.967Z"
46
- },
47
- {
48
- "agent": "planner",
49
- "stepIndex": 0,
50
- "type": "edit",
51
- "filePath": "file.ts",
52
- "timestamp": "2026-05-21T13:28:58.968Z"
53
- },
54
- {
55
- "agent": "planner",
56
- "stepIndex": 0,
57
- "type": "delete",
58
- "filePath": "file\\n",
59
- "timestamp": "2026-05-21T13:28:58.971Z"
60
- },
61
- {
62
- "agent": "planner",
63
- "stepIndex": 0,
64
- "type": "new",
65
- "filePath": "file\\n\\t\\t\\t\\t\\ttry",
66
- "timestamp": "2026-05-21T13:28:58.971Z"
67
- },
68
- {
69
- "agent": "planner",
70
- "stepIndex": 0,
71
- "type": "new",
72
- "filePath": ".pi-dev-output/pi-plans/20260521-230500-esc-double-press-confirm-workflow.md",
73
- "timestamp": "2026-05-21T13:28:59.013Z"
74
- },
75
- {
76
- "agent": "planner",
77
- "stepIndex": 0,
78
- "type": "new",
79
- "filePath": ".pi-dev-output/pi-workflow/checkpoint.json",
80
- "timestamp": "2026-05-21T13:28:59.013Z"
81
- },
82
- {
83
- "agent": "worker",
84
- "stepIndex": 1,
85
- "type": "edit",
86
- "filePath": "[],\\n\\t\\t\\t\\toutputs:",
87
- "timestamp": "2026-05-21T13:30:57.370Z"
88
- },
89
- {
90
- "agent": "worker",
91
- "stepIndex": 1,
92
- "type": "edit",
93
- "filePath": "path\\\\\\\")",
94
- "timestamp": "2026-05-21T13:30:58.837Z"
95
- },
96
- {
97
- "agent": "worker",
98
- "stepIndex": 1,
99
- "type": "edit",
100
- "filePath": "[],\\n\\t\\t\\toutputs:",
101
- "timestamp": "2026-05-21T13:30:59.054Z"
102
- },
103
- {
104
- "agent": "worker",
105
- "stepIndex": 1,
106
- "type": "edit",
107
- "filePath": "[],\\\\n\\\\t\\\\t\\\\toutputs:",
108
- "timestamp": "2026-05-21T13:31:03.600Z"
109
- },
110
- {
111
- "agent": "worker",
112
- "stepIndex": 1,
113
- "type": "edit",
114
- "filePath": "[],\\\\n\\\\t\\\\t\\\\",
115
- "timestamp": "2026-05-21T13:31:03.634Z"
116
- },
117
- {
118
- "agent": "worker",
119
- "stepIndex": 1,
120
- "type": "edit",
121
- "filePath": "[],\\\\n\\\\t\\\\t\\\\t\\\\toutputs:",
122
- "timestamp": "2026-05-21T13:31:03.656Z"
123
- },
124
- {
125
- "agent": "worker",
126
- "stepIndex": 1,
127
- "type": "edit",
128
- "filePath": "[],\\\\n\\\\",
129
- "timestamp": "2026-05-21T13:31:03.696Z"
130
- },
131
- {
132
- "agent": "worker",
133
- "stepIndex": 1,
134
- "type": "edit",
135
- "filePath": "[],\\\\n\\\\t\\",
136
- "timestamp": "2026-05-21T13:32:06.469Z"
137
- },
138
- {
139
- "agent": "worker",
140
- "stepIndex": 1,
141
- "type": "edit",
142
- "filePath": "[],\\\\n\\\\t\\\\t\\\\t\\\\toutputs",
143
- "timestamp": "2026-05-21T13:32:06.486Z"
144
- },
145
- {
146
- "agent": "worker",
147
- "stepIndex": 1,
148
- "type": "edit",
149
- "filePath": "workflow-engine.ts",
150
- "timestamp": "2026-05-21T13:33:03.636Z"
151
- },
152
- {
153
- "agent": "worker",
154
- "stepIndex": 1,
155
- "type": "edit",
156
- "filePath": "extensions/workflow-engine.ts",
157
- "timestamp": "2026-05-21T13:33:03.637Z"
158
- },
159
- {
160
- "agent": "worker",
161
- "stepIndex": 1,
162
- "type": "edit",
163
- "filePath": "ctx.ui",
164
- "timestamp": "2026-05-21T13:33:03.637Z"
165
- },
166
- {
167
- "agent": "reviewer",
168
- "stepIndex": 1,
169
- "type": "edit",
170
- "filePath": "workflow-engine.ts",
171
- "timestamp": "2026-05-21T13:34:34.775Z"
172
- },
173
- {
174
- "agent": "reviewer",
175
- "stepIndex": 1,
176
- "type": "edit",
177
- "filePath": "extensions/workflow-engine.ts",
178
- "timestamp": "2026-05-21T13:34:34.775Z"
179
- },
180
- {
181
- "agent": "reviewer",
182
- "stepIndex": 1,
183
- "type": "edit",
184
- "filePath": "ctx.ui",
185
- "timestamp": "2026-05-21T13:34:34.775Z"
186
- },
187
- {
188
- "agent": "reviewer",
189
- "stepIndex": 1,
190
- "type": "edit",
191
- "filePath": "ui-helpers.ts",
192
- "timestamp": "2026-05-21T13:34:34.776Z"
193
- },
194
- {
195
- "agent": "reviewer",
196
- "stepIndex": 1,
197
- "type": "edit",
198
- "filePath": "sub.detail",
199
- "timestamp": "2026-05-21T13:34:34.776Z"
200
- },
201
- {
202
- "agent": "reviewer",
203
- "stepIndex": 1,
204
- "type": "edit",
205
- "filePath": "extensions/ui-helpers.ts",
206
- "timestamp": "2026-05-21T13:34:34.776Z"
207
- },
208
- {
209
- "agent": "reviewer",
210
- "stepIndex": 1,
211
- "type": "edit",
212
- "filePath": "step.type",
213
- "timestamp": "2026-05-21T13:34:34.776Z"
214
- },
215
- {
216
- "agent": "reviewer",
217
- "stepIndex": 1,
218
- "type": "edit",
219
- "filePath": "_widgetSteps[stepIndex]?.startedAt",
220
- "timestamp": "2026-05-21T13:34:34.776Z"
221
- },
222
- {
223
- "agent": "reviewer",
224
- "stepIndex": 1,
225
- "type": "edit",
226
- "filePath": "s.status",
227
- "timestamp": "2026-05-21T13:34:34.776Z"
228
- },
229
- {
230
- "agent": "reviewer",
231
- "stepIndex": 1,
232
- "type": "edit",
233
- "filePath": "tests/test-loopcount-timeout-fix.mjs",
234
- "timestamp": "2026-05-21T13:34:34.776Z"
235
- },
236
- {
237
- "agent": "reviewer",
238
- "stepIndex": 1,
239
- "type": "edit",
240
- "filePath": "extensions/dev-prompts.ts",
241
- "timestamp": "2026-05-21T13:34:34.776Z"
242
- },
243
- {
244
- "agent": "reviewer",
245
- "stepIndex": 1,
246
- "type": "edit",
247
- "filePath": "s.loopCount",
248
- "timestamp": "2026-05-21T13:34:34.776Z"
249
- },
250
- {
251
- "agent": "reviewer",
252
- "stepIndex": 1,
253
- "type": "edit",
254
- "filePath": "test-loopcount-timeout-fix.mjs",
255
- "timestamp": "2026-05-21T13:34:34.776Z"
256
- },
257
- {
258
- "agent": "reviewer",
259
- "stepIndex": 1,
260
- "type": "edit",
261
- "filePath": "tests/test-workflow-engine.mjs",
262
- "timestamp": "2026-05-21T13:34:34.777Z"
263
- },
264
- {
265
- "agent": "reviewer",
266
- "stepIndex": 1,
267
- "type": "edit",
268
- "filePath": "tests/test-workflow-engine-bugs.mjs",
269
- "timestamp": "2026-05-21T13:34:34.777Z"
270
- },
271
- {
272
- "agent": "reviewer",
273
- "stepIndex": 1,
274
- "type": "edit",
275
- "filePath": "test-workflow-engine.mjs",
276
- "timestamp": "2026-05-21T13:34:34.777Z"
277
- },
278
- {
279
- "agent": "reviewer",
280
- "stepIndex": 1,
281
- "type": "edit",
282
- "filePath": "sub.status",
283
- "timestamp": "2026-05-21T13:34:34.777Z"
284
- },
285
- {
286
- "agent": "reviewer",
287
- "stepIndex": 1,
288
- "type": "edit",
289
- "filePath": "sub.tools",
290
- "timestamp": "2026-05-21T13:34:34.777Z"
291
- },
292
- {
293
- "agent": "reviewer",
294
- "stepIndex": 1,
295
- "type": "edit",
296
- "filePath": "sub.outputs",
297
- "timestamp": "2026-05-21T13:34:34.777Z"
298
- },
299
- {
300
- "agent": "reviewer",
301
- "stepIndex": 1,
302
- "type": "new",
303
- "filePath": ".pi-dev-output/pi-review/md/review-20260521-190000.md",
304
- "timestamp": "2026-05-21T13:34:34.821Z"
305
- },
306
- {
307
- "agent": "reviewer",
308
- "stepIndex": 1,
309
- "type": "new",
310
- "filePath": ".pi-dev-output/pi-review/md/review-20260522-000000.md",
311
- "timestamp": "2026-05-21T13:39:04.024Z"
312
- }
313
- ],
314
- "subAgentRuns": 5,
315
- "filesModified": 35,
316
- "filesCreated": 5,
317
- "agentRunHistory": [
318
- {
319
- "agent": "planner",
320
- "stepIndex": 0,
321
- "startedAt": "2026-05-21T13:27:25.456Z",
322
- "durationMs": 93503,
323
- "exitCode": 0,
324
- "toolCount": 0
325
- },
326
- {
327
- "agent": "worker",
328
- "stepIndex": 1,
329
- "startedAt": "2026-05-21T13:29:59.754Z",
330
- "durationMs": 183878,
331
- "exitCode": 0,
332
- "toolCount": 48
333
- },
334
- {
335
- "agent": "reviewer",
336
- "stepIndex": 1,
337
- "startedAt": "2026-05-21T13:33:03.677Z",
338
- "durationMs": 91094,
339
- "exitCode": 0,
340
- "toolCount": 51
341
- },
342
- {
343
- "agent": "worker",
344
- "stepIndex": 1,
345
- "startedAt": "2026-05-21T13:35:20.778Z",
346
- "durationMs": 18003,
347
- "exitCode": 0,
348
- "toolCount": 71
349
- },
350
- {
351
- "agent": "reviewer",
352
- "stepIndex": 1,
353
- "startedAt": "2026-05-21T13:35:38.835Z",
354
- "durationMs": 205139,
355
- "exitCode": 0,
356
- "toolCount": 74
357
- }
358
- ],
359
- "baseline": [
360
- {
361
- "path": ".pi-dev-output/pi-grill/answers/answer-mpfizccb-20260521-2127.md",
362
- "hash": "8a01901806a8b0d78c2e810631871cd12434b5b4"
363
- }
364
- ]
365
- }