opencode-gitlab-dap 1.2.1 → 1.4.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.cjs CHANGED
@@ -4505,18 +4505,20 @@ 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
- cfgRef.agent[agent.name] = {
4513
- name: agent.name,
4513
+ flowAgents.set(dName, agent);
4514
+ cfgRef.agent[dName] = {
4515
+ name: dName,
4514
4516
  description: `[GitLab Flow] ${agent.description}`,
4515
4517
  mode: "subagent"
4516
4518
  };
4517
4519
  } else {
4518
- cfgRef.agent[agent.name] = {
4519
- name: agent.name,
4520
+ cfgRef.agent[dName] = {
4521
+ name: dName,
4520
4522
  description: agent.foundational ? "[GitLab Foundational Agent]" : "[GitLab Custom Agent]",
4521
4523
  mode: "primary",
4522
4524
  model: `gitlab/${baseModelIdRef}`,
@@ -4546,16 +4548,19 @@ var plugin = async (input) => {
4546
4548
  baseModelIdRef = baseModelId;
4547
4549
  for (const agent of result.agents) {
4548
4550
  const isFlow = agent.itemType === "FLOW";
4551
+ const icon = agent.foundational ? " \u{1F98A}" : "";
4549
4552
  if (isFlow && agent.consumerId && projectPath) {
4550
- flowAgents.set(agent.name, agent);
4551
- cfg.agent[agent.name] = {
4552
- name: agent.name,
4553
+ const displayName = `${agent.name}${icon}`;
4554
+ flowAgents.set(displayName, agent);
4555
+ cfg.agent[displayName] = {
4556
+ name: displayName,
4553
4557
  description: `[GitLab Flow] ${agent.description}`,
4554
4558
  mode: "subagent"
4555
4559
  };
4556
4560
  } else {
4557
- cfg.agent[agent.name] = {
4558
- name: agent.name,
4561
+ const displayName = `${agent.name}${icon}`;
4562
+ cfg.agent[displayName] = {
4563
+ name: displayName,
4559
4564
  description: agent.foundational ? "[GitLab Foundational Agent]" : "[GitLab Custom Agent]",
4560
4565
  mode: "primary",
4561
4566
  model: `gitlab/${baseModelId}`,