opencode-gitlab-dap 1.16.0 → 1.16.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 +29 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4464,7 +4464,35 @@ Run \`gitlab_skill_setup(name="${args.name}")\` to extract them to .agents/skill
|
|
|
4464
4464
|
draft: false
|
|
4465
4465
|
}
|
|
4466
4466
|
);
|
|
4467
|
-
|
|
4467
|
+
for (const page of skillPages) {
|
|
4468
|
+
await deleteWikiPage(
|
|
4469
|
+
auth.instanceUrl,
|
|
4470
|
+
auth.token,
|
|
4471
|
+
projectScope.scope,
|
|
4472
|
+
projectScope.id,
|
|
4473
|
+
page.slug
|
|
4474
|
+
);
|
|
4475
|
+
}
|
|
4476
|
+
if (entry?.snippetId) {
|
|
4477
|
+
try {
|
|
4478
|
+
await deleteProjectSnippet(
|
|
4479
|
+
auth.instanceUrl,
|
|
4480
|
+
auth.token,
|
|
4481
|
+
args.project_id,
|
|
4482
|
+
entry.snippetId
|
|
4483
|
+
);
|
|
4484
|
+
} catch {
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
await removeIndexEntry(
|
|
4488
|
+
auth.instanceUrl,
|
|
4489
|
+
auth.token,
|
|
4490
|
+
projectScope.scope,
|
|
4491
|
+
projectScope.id,
|
|
4492
|
+
SKILLS_INDEX,
|
|
4493
|
+
args.name
|
|
4494
|
+
);
|
|
4495
|
+
return `Promoted skill "${args.name}" to group "${args.group_id}". ${skillPages.length} page(s) moved (removed from project).`;
|
|
4468
4496
|
} catch (err) {
|
|
4469
4497
|
return `Error promoting skill to group: ${err.message}`;
|
|
4470
4498
|
}
|