gitlab-ai-provider 6.4.1 → 6.5.0

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