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 +16 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4471,18 +4471,20 @@ var plugin = async (input) => {
|
|
|
4471
4471
|
flowAgents.clear();
|
|
4472
4472
|
const currentNames = /* @__PURE__ */ new Set();
|
|
4473
4473
|
for (const agent of result.agents) {
|
|
4474
|
-
currentNames.add(agent.name);
|
|
4475
4474
|
const isFlow = agent.itemType === "FLOW";
|
|
4475
|
+
const ico = agent.foundational ? " \u{1F98A}" : "";
|
|
4476
|
+
const dName = `${agent.name}${ico}`;
|
|
4477
|
+
currentNames.add(dName);
|
|
4476
4478
|
if (isFlow && agent.consumerId && projectPath) {
|
|
4477
|
-
flowAgents.set(
|
|
4478
|
-
cfgRef.agent[
|
|
4479
|
-
name:
|
|
4479
|
+
flowAgents.set(dName, agent);
|
|
4480
|
+
cfgRef.agent[dName] = {
|
|
4481
|
+
name: dName,
|
|
4480
4482
|
description: `[GitLab Flow] ${agent.description}`,
|
|
4481
4483
|
mode: "subagent"
|
|
4482
4484
|
};
|
|
4483
4485
|
} else {
|
|
4484
|
-
cfgRef.agent[
|
|
4485
|
-
name:
|
|
4486
|
+
cfgRef.agent[dName] = {
|
|
4487
|
+
name: dName,
|
|
4486
4488
|
description: agent.foundational ? "[GitLab Foundational Agent]" : "[GitLab Custom Agent]",
|
|
4487
4489
|
mode: "primary",
|
|
4488
4490
|
model: `gitlab/${baseModelIdRef}`,
|
|
@@ -4512,16 +4514,19 @@ var plugin = async (input) => {
|
|
|
4512
4514
|
baseModelIdRef = baseModelId;
|
|
4513
4515
|
for (const agent of result.agents) {
|
|
4514
4516
|
const isFlow = agent.itemType === "FLOW";
|
|
4517
|
+
const icon = agent.foundational ? " \u{1F98A}" : "";
|
|
4515
4518
|
if (isFlow && agent.consumerId && projectPath) {
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
+
const displayName = `${agent.name}${icon}`;
|
|
4520
|
+
flowAgents.set(displayName, agent);
|
|
4521
|
+
cfg.agent[displayName] = {
|
|
4522
|
+
name: displayName,
|
|
4519
4523
|
description: `[GitLab Flow] ${agent.description}`,
|
|
4520
4524
|
mode: "subagent"
|
|
4521
4525
|
};
|
|
4522
4526
|
} else {
|
|
4523
|
-
|
|
4524
|
-
|
|
4527
|
+
const displayName = `${agent.name}${icon}`;
|
|
4528
|
+
cfg.agent[displayName] = {
|
|
4529
|
+
name: displayName,
|
|
4525
4530
|
description: agent.foundational ? "[GitLab Foundational Agent]" : "[GitLab Custom Agent]",
|
|
4526
4531
|
mode: "primary",
|
|
4527
4532
|
model: `gitlab/${baseModelId}`,
|