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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
+ ## <small>5.3.3 (2026-03-25)</small>
6
+
7
+ - Merge branch 'vg/tools-fix' into 'main' ([d33e8c0](https://gitlab.com/vglafirov/gitlab-ai-provider/commit/d33e8c0))
8
+ - fix: fixed tools approval flow ([9597307](https://gitlab.com/vglafirov/gitlab-ai-provider/commit/9597307))
9
+
5
10
  ## <small>5.3.2 (2026-03-24)</small>
6
11
 
7
12
  - Merge branch 'fix/system-prompt-workflow-flowconfig' into 'main' ([ffe99d6](https://gitlab.com/vglafirov/gitlab-ai-provider/commit/ffe99d6))
package/dist/index.js CHANGED
@@ -1580,7 +1580,7 @@ var GitLabOpenAILanguageModel = class {
1580
1580
  var import_isomorphic_ws = __toESM(require("isomorphic-ws"));
1581
1581
 
1582
1582
  // src/version.ts
1583
- var VERSION = true ? "5.3.1" : "0.0.0-dev";
1583
+ var VERSION = true ? "5.3.2" : "0.0.0-dev";
1584
1584
 
1585
1585
  // src/gitlab-workflow-types.ts
1586
1586
  var WorkflowType = /* @__PURE__ */ ((WorkflowType2) => {
@@ -1806,6 +1806,8 @@ var GitLabWorkflowClient = class {
1806
1806
  });
1807
1807
  } else if (checkpoint.status === "STOPPED" || checkpoint.status === "CANCELLED") {
1808
1808
  this.emit({ type: "completed" });
1809
+ } else if (checkpoint.status === "TOOL_CALL_APPROVAL_REQUIRED" || checkpoint.status === "PLAN_APPROVAL_REQUIRED") {
1810
+ this.emit({ type: "completed" });
1809
1811
  }
1810
1812
  return;
1811
1813
  }
@@ -3664,7 +3666,7 @@ var GitLabWorkflowLanguageModel = class _GitLabWorkflowLanguageModel {
3664
3666
  if (!chatLog || !Array.isArray(chatLog) || chatLog.length === 0) {
3665
3667
  return;
3666
3668
  }
3667
- if (checkpoint.status !== "RUNNING" && checkpoint.status !== "INPUT_REQUIRED" && checkpoint.status !== "FINISHED" && checkpoint.status !== "COMPLETED") {
3669
+ if (checkpoint.status !== "RUNNING" && checkpoint.status !== "INPUT_REQUIRED" && checkpoint.status !== "FINISHED" && checkpoint.status !== "COMPLETED" && checkpoint.status !== "TOOL_CALL_APPROVAL_REQUIRED") {
3668
3670
  return;
3669
3671
  }
3670
3672
  for (let i = 0; i < chatLog.length; i++) {
@@ -3810,7 +3812,8 @@ var GitLabWorkflowLanguageModel = class _GitLabWorkflowLanguageModel {
3810
3812
  // ---------------------------------------------------------------------------
3811
3813
  async buildWorkflowMetadata() {
3812
3814
  const metadata = {
3813
- extended_logging: false
3815
+ extended_logging: false,
3816
+ tool_approval_for_session_enabled: true
3814
3817
  };
3815
3818
  try {
3816
3819
  const workDir = this.workflowOptions.workingDirectory ?? process.cwd();