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/dist/index.mjs CHANGED
@@ -1582,7 +1582,7 @@ var GitLabOpenAILanguageModel = class {
1582
1582
  import WebSocket from "isomorphic-ws";
1583
1583
 
1584
1584
  // src/version.ts
1585
- var VERSION = true ? "6.4.0" : "0.0.0-dev";
1585
+ var VERSION = true ? "6.4.1" : "0.0.0-dev";
1586
1586
 
1587
1587
  // src/gitlab-workflow-types.ts
1588
1588
  var WorkflowType = /* @__PURE__ */ ((WorkflowType2) => {
@@ -1594,7 +1594,7 @@ var WS_KEEPALIVE_PING_INTERVAL_MS = 45e3;
1594
1594
  var WS_HEARTBEAT_INTERVAL_MS = 6e4;
1595
1595
  var DEFAULT_WORKFLOW_DEFINITION = "chat" /* CHAT */;
1596
1596
  var DEFAULT_CLIENT_CAPABILITIES = ["shell_command"];
1597
- var CLIENT_VERSION = "1.0";
1597
+ var CLIENT_VERSION = "8.51.0";
1598
1598
  var STOP_REASON_USER = "USER_ACTION_TRIGGERED_STOP";
1599
1599
  var AGENT_PRIVILEGES = {
1600
1600
  READ_WRITE_FILES: 1,
@@ -1781,6 +1781,7 @@ var GitLabWorkflowClient = class {
1781
1781
  }
1782
1782
  delete headers["content-type"];
1783
1783
  headers["x-gitlab-client-type"] = "node-websocket";
1784
+ headers["x-gitlab-language-server-version"] = CLIENT_VERSION;
1784
1785
  const parsedUrl = new URL(options.instanceUrl);
1785
1786
  const origin = parsedUrl.origin;
1786
1787
  headers["origin"] = origin;
@@ -3520,10 +3521,6 @@ var GitLabWorkflowLanguageModel = class _GitLabWorkflowLanguageModel {
3520
3521
  const resolvedFlowConfigSchemaVersion = callFlowConfigSchemaVersion ?? this.workflowOptions.flowConfigSchemaVersion;
3521
3522
  if (resolvedFlowConfig) {
3522
3523
  startReq.flowConfig = resolvedFlowConfig;
3523
- } else if (this.workflowOptions.systemPrompt) {
3524
- startReq.flowConfig = {
3525
- prompts: [{ prompt_template: { system: this.workflowOptions.systemPrompt } }]
3526
- };
3527
3524
  }
3528
3525
  if (resolvedFlowConfigSchemaVersion) {
3529
3526
  startReq.flowConfigSchemaVersion = resolvedFlowConfigSchemaVersion;