gitlab-ai-provider 6.2.0 → 6.2.1

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.1.1" : "0.0.0-dev";
1585
+ var VERSION = true ? "6.2.1" : "0.0.0-dev";
1586
1586
 
1587
1587
  // src/gitlab-workflow-types.ts
1588
1588
  var WorkflowType = /* @__PURE__ */ ((WorkflowType2) => {
@@ -3926,7 +3926,11 @@ var GitLabWorkflowLanguageModel = class _GitLabWorkflowLanguageModel {
3926
3926
  ss.approvalPending = false;
3927
3927
  this.cleanupClient(ss, false);
3928
3928
  const approval = decision.approved ? { approval: { tool_name: tools[0]?.name, tool_args_json: tools[0]?.args } } : { rejection: { message: decision.message ?? "User rejected" } };
3929
- const newStartReq = { ...startReq, approval };
3929
+ const newStartReq = {
3930
+ ...startReq,
3931
+ approval,
3932
+ preapproved_tools: decision.approved ? [...startReq.preapproved_tools ?? [], ...tools.map((t) => t.name)] : startReq.preapproved_tools ?? []
3933
+ };
3930
3934
  const newClient = new GitLabWorkflowClient();
3931
3935
  this.activeClients.add(newClient);
3932
3936
  ss.activeClient = newClient;