opencode-gitlab-dap 1.15.7 → 1.15.8

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.js CHANGED
@@ -3466,7 +3466,7 @@ var RECORD_DIR = {
3466
3466
  people: `${PREFIX}/memory/people-and-contexts`,
3467
3467
  plan: `${PREFIX}/memory/plans`
3468
3468
  };
3469
- var PROJECT_ID_DESC = 'FULL project path with namespace (e.g., "gitlab-org/gitlab"). Must contain a slash. Never use just the project name.';
3469
+ var PROJECT_ID_DESC = "Project path from git remote";
3470
3470
  function today() {
3471
3471
  return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
3472
3472
  }
@@ -3869,7 +3869,7 @@ var SKILLS_PREFIX = `${PREFIX2}/skills`;
3869
3869
  var DRAFTS_PREFIX = `${PREFIX2}/skills-drafts`;
3870
3870
  var SKILLS_INDEX = `${SKILLS_PREFIX}/index`;
3871
3871
  var DRAFTS_INDEX = `${DRAFTS_PREFIX}/index`;
3872
- var PROJECT_ID_DESC2 = 'FULL project path with namespace (e.g., "gitlab-org/gitlab"). Must contain a slash. Never use just the project name.';
3872
+ var PROJECT_ID_DESC2 = "Project path from git remote";
3873
3873
  function resolveScope2(args) {
3874
3874
  if (args.scope === "groups" && args.group_id) {
3875
3875
  return { scope: "groups", id: args.group_id };
@@ -4457,7 +4457,8 @@ Install: \`gitlab_skill_install(name="${r.identifier}", source="skills.sh")\``
4457
4457
  execute: async (args) => {
4458
4458
  const auth = authAndValidate(args.project_id);
4459
4459
  const { scope, id } = resolveScope2(args);
4460
- const targetDir = join2(process.cwd(), ".agents", "skills", args.name);
4460
+ const workDir = ctx.getDirectory();
4461
+ const targetDir = join2(workDir, ".agents", "skills", args.name);
4461
4462
  try {
4462
4463
  let skillContent = null;
4463
4464
  for (const prefix of [SKILLS_PREFIX, DRAFTS_PREFIX]) {
@@ -4544,7 +4545,7 @@ Install: \`gitlab_skill_install(name="${r.identifier}", source="skills.sh")\``
4544
4545
  }
4545
4546
  }
4546
4547
  }
4547
- ensureGitignore(process.cwd());
4548
+ ensureGitignore(workDir);
4548
4549
  const parts = ["SKILL.md"];
4549
4550
  if (refCount > 0) parts.push(`${refCount} reference(s)`);
4550
4551
  if (scriptCount > 0) parts.push(`${scriptCount} script(s)`);
@@ -4702,6 +4703,7 @@ var plugin = async (input) => {
4702
4703
  getFlowAgents: () => flowAgents,
4703
4704
  getCachedAgents: () => cachedAgents,
4704
4705
  getNamespaceId: () => namespaceId,
4706
+ getDirectory: () => input.directory,
4705
4707
  refreshAgents
4706
4708
  };
4707
4709
  return {