@adhdev/mesh-shared 1.0.82-rc.108 → 1.0.82-rc.109
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/task-stages.d.ts +3 -1
- package/package.json +1 -1
- package/src/task-stages.ts +4 -2
package/dist/task-stages.d.ts
CHANGED
|
@@ -166,7 +166,9 @@ export interface StagePlanDefaultsInput {
|
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
168
|
* Resolve the enqueue-time `review` option into a stage plan, or null when review is off.
|
|
169
|
-
* `review` undefined →
|
|
169
|
+
* `review` undefined → OFF (owner decision 2026-11-08: in-task review is opt-in; the default cost speed and parallelism
|
|
170
|
+
* without catching the live bugs). Pass `review: true` (or an options object) for a change that genuinely needs one.
|
|
171
|
+
* `defaultOn: true` restores the old R5 default (medium/difficult non-readonly `code_change` → on) for a caller that asks for it.
|
|
170
172
|
* Throws `invalid_review_option: …` on malformed input (rejected, never coerced).
|
|
171
173
|
*/
|
|
172
174
|
export declare function resolveStagePlan(raw: unknown, task: StagePlanDefaultsInput, opts?: {
|
package/package.json
CHANGED
package/src/task-stages.ts
CHANGED
|
@@ -199,12 +199,14 @@ export interface StagePlanDefaultsInput {
|
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* Resolve the enqueue-time `review` option into a stage plan, or null when review is off.
|
|
202
|
-
* `review` undefined →
|
|
202
|
+
* `review` undefined → OFF (owner decision 2026-11-08: in-task review is opt-in; the default cost speed and parallelism
|
|
203
|
+
* without catching the live bugs). Pass `review: true` (or an options object) for a change that genuinely needs one.
|
|
204
|
+
* `defaultOn: true` restores the old R5 default (medium/difficult non-readonly `code_change` → on) for a caller that asks for it.
|
|
203
205
|
* Throws `invalid_review_option: …` on malformed input (rejected, never coerced).
|
|
204
206
|
*/
|
|
205
207
|
export function resolveStagePlan(raw: unknown, task: StagePlanDefaultsInput, opts: { defaultOn?: boolean } = {}): MeshTaskStagePlan | null {
|
|
206
208
|
const eligible = isStageEligibleTask(task)
|
|
207
|
-
if (raw === undefined || raw === null) return (opts.defaultOn ??
|
|
209
|
+
if (raw === undefined || raw === null) return (opts.defaultOn ?? false) && defaultsOnFor(task) ? defaultStagePlan() : null
|
|
208
210
|
if (raw === false) return null
|
|
209
211
|
if (raw === true) {
|
|
210
212
|
if (!eligible) throw new Error(`invalid_review_option: review requires a non-readonly code_change task (got taskMode=${task.taskMode ?? 'unset'}${task.readonly ? ', readonly' : ''})`)
|