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.js
CHANGED
|
@@ -4305,7 +4305,35 @@ Run \`gitlab_skill_setup(name="${args.name}")\` to extract them to .agents/skill
|
|
|
4305
4305
|
draft: false
|
|
4306
4306
|
}
|
|
4307
4307
|
);
|
|
4308
|
-
|
|
4308
|
+
for (const page of skillPages) {
|
|
4309
|
+
await deleteWikiPage(
|
|
4310
|
+
auth.instanceUrl,
|
|
4311
|
+
auth.token,
|
|
4312
|
+
projectScope.scope,
|
|
4313
|
+
projectScope.id,
|
|
4314
|
+
page.slug
|
|
4315
|
+
);
|
|
4316
|
+
}
|
|
4317
|
+
if (entry?.snippetId) {
|
|
4318
|
+
try {
|
|
4319
|
+
await deleteProjectSnippet(
|
|
4320
|
+
auth.instanceUrl,
|
|
4321
|
+
auth.token,
|
|
4322
|
+
args.project_id,
|
|
4323
|
+
entry.snippetId
|
|
4324
|
+
);
|
|
4325
|
+
} catch {
|
|
4326
|
+
}
|
|
4327
|
+
}
|
|
4328
|
+
await removeIndexEntry(
|
|
4329
|
+
auth.instanceUrl,
|
|
4330
|
+
auth.token,
|
|
4331
|
+
projectScope.scope,
|
|
4332
|
+
projectScope.id,
|
|
4333
|
+
SKILLS_INDEX,
|
|
4334
|
+
args.name
|
|
4335
|
+
);
|
|
4336
|
+
return `Promoted skill "${args.name}" to group "${args.group_id}". ${skillPages.length} page(s) moved (removed from project).`;
|
|
4309
4337
|
} catch (err) {
|
|
4310
4338
|
return `Error promoting skill to group: ${err.message}`;
|
|
4311
4339
|
}
|