gitlab-ai-provider 5.3.2 → 5.3.3

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.mjs CHANGED
@@ -1509,7 +1509,7 @@ var GitLabOpenAILanguageModel = class {
1509
1509
  import WebSocket from "isomorphic-ws";
1510
1510
 
1511
1511
  // src/version.ts
1512
- var VERSION = true ? "5.3.1" : "0.0.0-dev";
1512
+ var VERSION = true ? "5.3.2" : "0.0.0-dev";
1513
1513
 
1514
1514
  // src/gitlab-workflow-types.ts
1515
1515
  var WorkflowType = /* @__PURE__ */ ((WorkflowType2) => {
@@ -1735,6 +1735,8 @@ var GitLabWorkflowClient = class {
1735
1735
  });
1736
1736
  } else if (checkpoint.status === "STOPPED" || checkpoint.status === "CANCELLED") {
1737
1737
  this.emit({ type: "completed" });
1738
+ } else if (checkpoint.status === "TOOL_CALL_APPROVAL_REQUIRED" || checkpoint.status === "PLAN_APPROVAL_REQUIRED") {
1739
+ this.emit({ type: "completed" });
1738
1740
  }
1739
1741
  return;
1740
1742
  }
@@ -3593,7 +3595,7 @@ var GitLabWorkflowLanguageModel = class _GitLabWorkflowLanguageModel {
3593
3595
  if (!chatLog || !Array.isArray(chatLog) || chatLog.length === 0) {
3594
3596
  return;
3595
3597
  }
3596
- if (checkpoint.status !== "RUNNING" && checkpoint.status !== "INPUT_REQUIRED" && checkpoint.status !== "FINISHED" && checkpoint.status !== "COMPLETED") {
3598
+ if (checkpoint.status !== "RUNNING" && checkpoint.status !== "INPUT_REQUIRED" && checkpoint.status !== "FINISHED" && checkpoint.status !== "COMPLETED" && checkpoint.status !== "TOOL_CALL_APPROVAL_REQUIRED") {
3597
3599
  return;
3598
3600
  }
3599
3601
  for (let i = 0; i < chatLog.length; i++) {
@@ -3739,7 +3741,8 @@ var GitLabWorkflowLanguageModel = class _GitLabWorkflowLanguageModel {
3739
3741
  // ---------------------------------------------------------------------------
3740
3742
  async buildWorkflowMetadata() {
3741
3743
  const metadata = {
3742
- extended_logging: false
3744
+ extended_logging: false,
3745
+ tool_approval_for_session_enabled: true
3743
3746
  };
3744
3747
  try {
3745
3748
  const workDir = this.workflowOptions.workingDirectory ?? process.cwd();