iterate-plugin 3.2.1 → 3.3.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.
- package/README.md +173 -90
- package/README.zh-CN.md +172 -80
- package/dist/approval-gate.js +0 -17
- package/dist/tools/checkpoint.js +22 -3
- package/dist/tools/defense-events.js +4 -1
- package/dist/tools/defense-store.js +9 -3
- package/dist/tools/experience-bank.js +4 -1
- package/dist/tools/experience-store.js +9 -3
- package/dist/tools/quality-gate.js +4 -1
- package/dist/tools/quality-store.js +9 -3
- package/dist/tools/transcript.js +8 -1
- package/dist/transcript.js +10 -0
- package/lib/client.js +549 -88
- package/lib/parse.js +352 -0
- package/package.json +13 -5
- package/src/approval-gate.ts +0 -26
- package/src/client/index.ts +349 -73
- package/src/tools/checkpoint.ts +22 -3
- package/src/tools/defense-events.ts +4 -1
- package/src/tools/defense-store.ts +13 -4
- package/src/tools/experience-bank.ts +4 -1
- package/src/tools/experience-store.ts +13 -4
- package/src/tools/quality-gate.ts +4 -1
- package/src/tools/quality-store.ts +13 -4
- package/src/tools/transcript.ts +8 -1
- package/src/transcript.ts +11 -0
package/dist/transcript.js
CHANGED
|
@@ -93,6 +93,7 @@ function mergeReportIntoThread(thread, findings, readFiles) {
|
|
|
93
93
|
export class ReviewTranscriptBuilder {
|
|
94
94
|
project;
|
|
95
95
|
mode;
|
|
96
|
+
taskMode;
|
|
96
97
|
approval;
|
|
97
98
|
goal = '';
|
|
98
99
|
phases = [];
|
|
@@ -111,6 +112,14 @@ export class ReviewTranscriptBuilder {
|
|
|
111
112
|
this.project = input.project || '';
|
|
112
113
|
this.mode =
|
|
113
114
|
input.mode === 'dry-run' || input.mode === 'normal' ? input.mode : null;
|
|
115
|
+
// v3.0: task_mode indicator. An explicit valid value wins; otherwise a
|
|
116
|
+
// run that exercises the review loop (any mode) defaults to "iterate".
|
|
117
|
+
this.taskMode =
|
|
118
|
+
input.taskMode === 'code' || input.taskMode === 'iterate'
|
|
119
|
+
? input.taskMode
|
|
120
|
+
: input.mode !== null && input.mode !== undefined
|
|
121
|
+
? 'iterate'
|
|
122
|
+
: null;
|
|
114
123
|
this.approval =
|
|
115
124
|
input.approval === 'ask' || input.approval === 'deny' || input.approval === 'allow'
|
|
116
125
|
? input.approval
|
|
@@ -341,6 +350,7 @@ export class ReviewTranscriptBuilder {
|
|
|
341
350
|
updatedAt: this.updatedAt,
|
|
342
351
|
active: this.active,
|
|
343
352
|
mode: this.mode,
|
|
353
|
+
taskMode: this.taskMode,
|
|
344
354
|
goal: this.goal,
|
|
345
355
|
phases: this.phases,
|
|
346
356
|
round: this.round,
|