opencode-gitlab-dap 1.3.0 → 1.4.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.cjs CHANGED
@@ -4505,20 +4505,21 @@ var plugin = async (input) => {
4505
4505
  flowAgents.clear();
4506
4506
  const currentNames = /* @__PURE__ */ new Set();
4507
4507
  for (const agent of result.agents) {
4508
- currentNames.add(agent.name);
4509
4508
  const isFlow = agent.itemType === "FLOW";
4509
+ const ico = agent.foundational ? " \u{1F98A}" : "";
4510
+ const dName = `${agent.name}${ico}`;
4511
+ currentNames.add(dName);
4510
4512
  if (isFlow && agent.consumerId && projectPath) {
4511
- flowAgents.set(agent.name, agent);
4512
- const lbl = agent.foundational ? "\u{1F98A}" : "";
4513
- cfgRef.agent[agent.name] = {
4514
- name: agent.name,
4515
- description: `${lbl} [GitLab Flow] ${agent.description}`.trim(),
4513
+ flowAgents.set(dName, agent);
4514
+ cfgRef.agent[dName] = {
4515
+ name: dName,
4516
+ description: `[GitLab Flow] ${agent.description}`,
4516
4517
  mode: "subagent"
4517
4518
  };
4518
4519
  } else {
4519
- cfgRef.agent[agent.name] = {
4520
- name: agent.name,
4521
- description: agent.foundational ? `\u{1F98A} [GitLab Foundational Agent]` : "[GitLab Custom Agent]",
4520
+ cfgRef.agent[dName] = {
4521
+ name: dName,
4522
+ description: agent.foundational ? "[GitLab Foundational Agent]" : "[GitLab Custom Agent]",
4522
4523
  mode: "primary",
4523
4524
  model: `gitlab/${baseModelIdRef}`,
4524
4525
  options: {
@@ -4547,18 +4548,20 @@ var plugin = async (input) => {
4547
4548
  baseModelIdRef = baseModelId;
4548
4549
  for (const agent of result.agents) {
4549
4550
  const isFlow = agent.itemType === "FLOW";
4550
- const label = agent.foundational ? "\u{1F98A}" : "";
4551
+ const icon = agent.foundational ? " \u{1F98A}" : "";
4551
4552
  if (isFlow && agent.consumerId && projectPath) {
4552
- flowAgents.set(agent.name, agent);
4553
- cfg.agent[agent.name] = {
4554
- name: agent.name,
4555
- description: `${label} [GitLab Flow] ${agent.description}`.trim(),
4553
+ const displayName = `${agent.name}${icon}`;
4554
+ flowAgents.set(displayName, agent);
4555
+ cfg.agent[displayName] = {
4556
+ name: displayName,
4557
+ description: `[GitLab Flow] ${agent.description}`,
4556
4558
  mode: "subagent"
4557
4559
  };
4558
4560
  } else {
4559
- cfg.agent[agent.name] = {
4560
- name: agent.name,
4561
- description: agent.foundational ? `${label} [GitLab Foundational Agent]` : "[GitLab Custom Agent]",
4561
+ const displayName = `${agent.name}${icon}`;
4562
+ cfg.agent[displayName] = {
4563
+ name: displayName,
4564
+ description: agent.foundational ? "[GitLab Foundational Agent]" : "[GitLab Custom Agent]",
4562
4565
  mode: "primary",
4563
4566
  model: `gitlab/${baseModelId}`,
4564
4567
  options: {
@@ -4619,7 +4622,7 @@ var plugin = async (input) => {
4619
4622
  `The tool blocks automatically while status is CREATED (up to 2 minutes).`,
4620
4623
  `Once it returns, report:`,
4621
4624
  `- The workflow status (RUNNING, FINISHED, FAILED, etc.)`,
4622
- `- The workflow URL: ${projectUrl}/-/duo_workflows/<workflow_id>`,
4625
+ `- The workflow URL: ${projectUrl}/-/automate/agent-sessions/<workflow_id>`,
4623
4626
  `- A brief summary of what was executed`,
4624
4627
  `Then stop. Do NOT keep polling. The user can follow the flow execution in the GitLab UI.`
4625
4628
  ].join("\n");