opencode-gitlab-duo-agentic 0.2.10 → 0.2.11

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 (2) hide show
  1. package/dist/index.js +10 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -558,6 +558,14 @@ var TURN_COMPLETE_STATUSES = /* @__PURE__ */ new Set([
558
558
  function isTurnComplete(status) {
559
559
  return TURN_COMPLETE_STATUSES.has(status);
560
560
  }
561
+ var AWAITING_RESPONSE_STATUSES = /* @__PURE__ */ new Set([
562
+ WORKFLOW_STATUS.TOOL_CALL_APPROVAL_REQUIRED,
563
+ WORKFLOW_STATUS.INPUT_REQUIRED,
564
+ WORKFLOW_STATUS.PLAN_APPROVAL_REQUIRED
565
+ ]);
566
+ function isAwaitingResponse(status) {
567
+ return AWAITING_RESPONSE_STATUSES.has(status);
568
+ }
561
569
 
562
570
  // src/workflow/websocket-client.ts
563
571
  import WebSocket from "isomorphic-ws";
@@ -917,7 +925,7 @@ var WorkflowSession = class {
917
925
  args: req.args
918
926
  });
919
927
  }
920
- if (isTurnComplete(action.newCheckpoint.status)) {
928
+ if (isTurnComplete(action.newCheckpoint.status) && !isAwaitingResponse(action.newCheckpoint.status)) {
921
929
  queue.close();
922
930
  this.#closeConnection();
923
931
  }
@@ -1421,6 +1429,7 @@ var DuoWorkflowModel = class {
1421
1429
  }
1422
1430
  model.#lastSentGoal = null;
1423
1431
  }
1432
+ await session.ensureConnected(goal || "");
1424
1433
  const freshResults = toolResults.filter(
1425
1434
  (r) => !model.#sentToolCallIds.has(r.toolCallId)
1426
1435
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-gitlab-duo-agentic",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "OpenCode plugin and provider for GitLab Duo Agentic workflows",
5
5
  "license": "MIT",
6
6
  "type": "module",