gitlab-ai-provider 6.4.1 → 6.4.2

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,10 @@
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>6.4.2 (2026-04-09)</small>
6
+
7
+ - fix: prevent auto-generated flowConfig from breaking DWS flow resolution ([e653dfc](https://gitlab.com/vglafirov/gitlab-ai-provider/commit/e653dfc))
8
+
5
9
  ## <small>6.4.1 (2026-04-06)</small>
6
10
 
7
11
  - fix(workflow): surface server-side MCP tool calls as structured AI SDK events ([fcae357](https://gitlab.com/vglafirov/gitlab-ai-provider/commit/fcae357))
package/dist/index.d.mts CHANGED
@@ -649,7 +649,7 @@ declare const DEFAULT_WORKFLOW_DEFINITION = WorkflowType.CHAT;
649
649
  /** Default client capabilities */
650
650
  declare const DEFAULT_CLIENT_CAPABILITIES: string[];
651
651
  /** Client version sent in startRequest */
652
- declare const CLIENT_VERSION = "1.0";
652
+ declare const CLIENT_VERSION = "8.51.0";
653
653
  /**
654
654
  * Agent privileges for workflow creation.
655
655
  * Matches gitlab-lsp AGENT_PRIVILEGES enum.
package/dist/index.d.ts CHANGED
@@ -649,7 +649,7 @@ declare const DEFAULT_WORKFLOW_DEFINITION = WorkflowType.CHAT;
649
649
  /** Default client capabilities */
650
650
  declare const DEFAULT_CLIENT_CAPABILITIES: string[];
651
651
  /** Client version sent in startRequest */
652
- declare const CLIENT_VERSION = "1.0";
652
+ declare const CLIENT_VERSION = "8.51.0";
653
653
  /**
654
654
  * Agent privileges for workflow creation.
655
655
  * Matches gitlab-lsp AGENT_PRIVILEGES enum.
package/dist/index.js CHANGED
@@ -1653,7 +1653,7 @@ var GitLabOpenAILanguageModel = class {
1653
1653
  var import_isomorphic_ws = __toESM(require("isomorphic-ws"));
1654
1654
 
1655
1655
  // src/version.ts
1656
- var VERSION = true ? "6.4.0" : "0.0.0-dev";
1656
+ var VERSION = true ? "6.4.1" : "0.0.0-dev";
1657
1657
 
1658
1658
  // src/gitlab-workflow-types.ts
1659
1659
  var WorkflowType = /* @__PURE__ */ ((WorkflowType2) => {
@@ -1665,7 +1665,7 @@ var WS_KEEPALIVE_PING_INTERVAL_MS = 45e3;
1665
1665
  var WS_HEARTBEAT_INTERVAL_MS = 6e4;
1666
1666
  var DEFAULT_WORKFLOW_DEFINITION = "chat" /* CHAT */;
1667
1667
  var DEFAULT_CLIENT_CAPABILITIES = ["shell_command"];
1668
- var CLIENT_VERSION = "1.0";
1668
+ var CLIENT_VERSION = "8.51.0";
1669
1669
  var STOP_REASON_USER = "USER_ACTION_TRIGGERED_STOP";
1670
1670
  var AGENT_PRIVILEGES = {
1671
1671
  READ_WRITE_FILES: 1,
@@ -1852,6 +1852,7 @@ var GitLabWorkflowClient = class {
1852
1852
  }
1853
1853
  delete headers["content-type"];
1854
1854
  headers["x-gitlab-client-type"] = "node-websocket";
1855
+ headers["x-gitlab-language-server-version"] = CLIENT_VERSION;
1855
1856
  const parsedUrl = new URL(options.instanceUrl);
1856
1857
  const origin = parsedUrl.origin;
1857
1858
  headers["origin"] = origin;
@@ -3591,10 +3592,6 @@ var GitLabWorkflowLanguageModel = class _GitLabWorkflowLanguageModel {
3591
3592
  const resolvedFlowConfigSchemaVersion = callFlowConfigSchemaVersion ?? this.workflowOptions.flowConfigSchemaVersion;
3592
3593
  if (resolvedFlowConfig) {
3593
3594
  startReq.flowConfig = resolvedFlowConfig;
3594
- } else if (this.workflowOptions.systemPrompt) {
3595
- startReq.flowConfig = {
3596
- prompts: [{ prompt_template: { system: this.workflowOptions.systemPrompt } }]
3597
- };
3598
3595
  }
3599
3596
  if (resolvedFlowConfigSchemaVersion) {
3600
3597
  startReq.flowConfigSchemaVersion = resolvedFlowConfigSchemaVersion;