@aryaminus/controlkeel-opencode 0.2.38 → 0.2.40

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.
@@ -10,7 +10,7 @@ Recommended flow:
10
10
  3. Run `controlkeel review plan submit --body-file .opencode/review-plan.md --submitted-by opencode --task-id <task_id> --json` (or use `--session-id <session_id>`)
11
11
  4. Read the returned `review.id` and `browser_url`
12
12
  5. If `browser_url` is available, wait with `controlkeel review plan wait --id <review_id> --timeout 30 --json`
13
- 6. If `browser_url` is missing/unreachable, do **not** loop on wait; ask for explicit user approval in chat and record it with `controlkeel review plan respond --id <review_id> --decision approved --feedback-notes "User approved in chat; browser unavailable" --json` (or `ck_review_feedback`)
13
+ 6. If `browser_url` is missing/unreachable **or** wait times out while still `pending`, do **not** loop on wait; ask for explicit user approval in chat and record it with `controlkeel review plan respond --id <review_id> --decision approved --feedback-notes "User approved in chat; browser unavailable or timed out" --json` (or `ck_review_feedback`)
14
14
  7. Do not execute until the review is approved
15
15
 
16
16
  Fallback when the `submit_plan` tool is stale in a long-running OpenCode session:
@@ -396,6 +396,11 @@ export const ControlKeelGovernance: Plugin = async ({ project, client, $, direct
396
396
  status: "pending",
397
397
  feedbackNotes: waitPayload?.review?.feedback_notes ?? null,
398
398
  timedOut: true,
399
+ waitSkipped: false,
400
+ manualApprovalRequired: true,
401
+ reason: "review_timeout",
402
+ guidance:
403
+ "Plan review is still pending after timeout. Show the `browser_url` to the user if reachable. If browser review is unavailable or the user explicitly approves in chat, record it with `controlkeel review plan respond --id <review_id> --decision approved --feedback-notes \"User approved in chat after timeout/browser issue\" --json` (or `ck_review_feedback`) before proceeding.",
399
404
  }
400
405
  }
401
406
 
package/index.js CHANGED
@@ -379,6 +379,11 @@ export const ControlKeelGovernance = async ({ $, directory }) => {
379
379
  status: "pending",
380
380
  feedbackNotes: waitPayload?.review?.feedback_notes ?? null,
381
381
  timedOut: true,
382
+ waitSkipped: false,
383
+ manualApprovalRequired: true,
384
+ reason: "review_timeout",
385
+ guidance:
386
+ "Plan review is still pending after timeout. Show the `browser_url` to the user if reachable. If browser review is unavailable or the user explicitly approves in chat, record it with `controlkeel review plan respond --id <review_id> --decision approved --feedback-notes \"User approved in chat after timeout/browser issue\" --json` (or `ck_review_feedback`) before proceeding.",
382
387
  }
383
388
  }
384
389
 
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "url": "git+https://github.com/aryaminus/controlkeel.git"
36
36
  },
37
37
  "type": "module",
38
- "version": "0.2.38"
38
+ "version": "0.2.40"
39
39
  }