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.cjs CHANGED
@@ -3635,7 +3635,7 @@ var RECORD_DIR = {
3635
3635
  people: `${PREFIX}/memory/people-and-contexts`,
3636
3636
  plan: `${PREFIX}/memory/plans`
3637
3637
  };
3638
- var PROJECT_ID_DESC = 'FULL project path with namespace (e.g., "gitlab-org/gitlab"). Must contain a slash. Never use just the project name.';
3638
+ var PROJECT_ID_DESC = "Project path from git remote";
3639
3639
  function today() {
3640
3640
  return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
3641
3641
  }
@@ -4028,7 +4028,7 @@ var SKILLS_PREFIX = `${PREFIX2}/skills`;
4028
4028
  var DRAFTS_PREFIX = `${PREFIX2}/skills-drafts`;
4029
4029
  var SKILLS_INDEX = `${SKILLS_PREFIX}/index`;
4030
4030
  var DRAFTS_INDEX = `${DRAFTS_PREFIX}/index`;
4031
- var PROJECT_ID_DESC2 = 'FULL project path with namespace (e.g., "gitlab-org/gitlab"). Must contain a slash. Never use just the project name.';
4031
+ var PROJECT_ID_DESC2 = "Project path from git remote";
4032
4032
  function resolveScope2(args) {
4033
4033
  if (args.scope === "groups" && args.group_id) {
4034
4034
  return { scope: "groups", id: args.group_id };
@@ -4616,7 +4616,8 @@ Install: \`gitlab_skill_install(name="${r.identifier}", source="skills.sh")\``
4616
4616
  execute: async (args) => {
4617
4617
  const auth = authAndValidate(args.project_id);
4618
4618
  const { scope, id } = resolveScope2(args);
4619
- const targetDir = (0, import_path2.join)(process.cwd(), ".agents", "skills", args.name);
4619
+ const workDir = ctx.getDirectory();
4620
+ const targetDir = (0, import_path2.join)(workDir, ".agents", "skills", args.name);
4620
4621
  try {
4621
4622
  let skillContent = null;
4622
4623
  for (const prefix of [SKILLS_PREFIX, DRAFTS_PREFIX]) {
@@ -4703,7 +4704,7 @@ Install: \`gitlab_skill_install(name="${r.identifier}", source="skills.sh")\``
4703
4704
  }
4704
4705
  }
4705
4706
  }
4706
- ensureGitignore(process.cwd());
4707
+ ensureGitignore(workDir);
4707
4708
  const parts = ["SKILL.md"];
4708
4709
  if (refCount > 0) parts.push(`${refCount} reference(s)`);
4709
4710
  if (scriptCount > 0) parts.push(`${scriptCount} script(s)`);
@@ -4861,6 +4862,7 @@ var plugin = async (input) => {
4861
4862
  getFlowAgents: () => flowAgents,
4862
4863
  getCachedAgents: () => cachedAgents,
4863
4864
  getNamespaceId: () => namespaceId,
4865
+ getDirectory: () => input.directory,
4864
4866
  refreshAgents
4865
4867
  };
4866
4868
  return {