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 +21 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4471,20 +4471,21 @@ 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
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
description: `${lbl} [GitLab Flow] ${agent.description}`.trim(),
|
|
4479
|
+
flowAgents.set(dName, agent);
|
|
4480
|
+
cfgRef.agent[dName] = {
|
|
4481
|
+
name: dName,
|
|
4482
|
+
description: `[GitLab Flow] ${agent.description}`,
|
|
4482
4483
|
mode: "subagent"
|
|
4483
4484
|
};
|
|
4484
4485
|
} else {
|
|
4485
|
-
cfgRef.agent[
|
|
4486
|
-
name:
|
|
4487
|
-
description: agent.foundational ?
|
|
4486
|
+
cfgRef.agent[dName] = {
|
|
4487
|
+
name: dName,
|
|
4488
|
+
description: agent.foundational ? "[GitLab Foundational Agent]" : "[GitLab Custom Agent]",
|
|
4488
4489
|
mode: "primary",
|
|
4489
4490
|
model: `gitlab/${baseModelIdRef}`,
|
|
4490
4491
|
options: {
|
|
@@ -4513,18 +4514,20 @@ var plugin = async (input) => {
|
|
|
4513
4514
|
baseModelIdRef = baseModelId;
|
|
4514
4515
|
for (const agent of result.agents) {
|
|
4515
4516
|
const isFlow = agent.itemType === "FLOW";
|
|
4516
|
-
const
|
|
4517
|
+
const icon = agent.foundational ? " \u{1F98A}" : "";
|
|
4517
4518
|
if (isFlow && agent.consumerId && projectPath) {
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4519
|
+
const displayName = `${agent.name}${icon}`;
|
|
4520
|
+
flowAgents.set(displayName, agent);
|
|
4521
|
+
cfg.agent[displayName] = {
|
|
4522
|
+
name: displayName,
|
|
4523
|
+
description: `[GitLab Flow] ${agent.description}`,
|
|
4522
4524
|
mode: "subagent"
|
|
4523
4525
|
};
|
|
4524
4526
|
} else {
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4527
|
+
const displayName = `${agent.name}${icon}`;
|
|
4528
|
+
cfg.agent[displayName] = {
|
|
4529
|
+
name: displayName,
|
|
4530
|
+
description: agent.foundational ? "[GitLab Foundational Agent]" : "[GitLab Custom Agent]",
|
|
4528
4531
|
mode: "primary",
|
|
4529
4532
|
model: `gitlab/${baseModelId}`,
|
|
4530
4533
|
options: {
|
|
@@ -4585,7 +4588,7 @@ var plugin = async (input) => {
|
|
|
4585
4588
|
`The tool blocks automatically while status is CREATED (up to 2 minutes).`,
|
|
4586
4589
|
`Once it returns, report:`,
|
|
4587
4590
|
`- The workflow status (RUNNING, FINISHED, FAILED, etc.)`,
|
|
4588
|
-
`- The workflow URL: ${projectUrl}/-/
|
|
4591
|
+
`- The workflow URL: ${projectUrl}/-/automate/agent-sessions/<workflow_id>`,
|
|
4589
4592
|
`- A brief summary of what was executed`,
|
|
4590
4593
|
`Then stop. Do NOT keep polling. The user can follow the flow execution in the GitLab UI.`
|
|
4591
4594
|
].join("\n");
|