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.
@@ -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,