opencode-gitlab-dap 1.15.6 → 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
@@ -2401,7 +2401,10 @@ function makeSystemTransformHook(flowAgents, getAuthCache) {
2401
2401
  }
2402
2402
  if (getAuthCache()) {
2403
2403
  output.system.push(
2404
- `## Project Knowledge
2404
+ `## GitLab Project Context
2405
+ CRITICAL: Any tool that requires a project_id MUST use the FULL project path from git remote. Run \`run_git_command("remote", ["-v"])\` FIRST and extract the path (e.g., "git@gitlab.com:my-group/my-project.git" \u2192 "my-group/my-project"). NEVER guess or infer the project path from the repository name alone.
2406
+
2407
+ ## Project Knowledge
2405
2408
  Project memory tools are available (gitlab_memory_load, gitlab_memory_record, gitlab_memory_recall). Say "bootstrap project memory" to initialize or refresh project knowledge.`
2406
2409
  );
2407
2410
  }
@@ -3632,7 +3635,7 @@ var RECORD_DIR = {
3632
3635
  people: `${PREFIX}/memory/people-and-contexts`,
3633
3636
  plan: `${PREFIX}/memory/plans`
3634
3637
  };
3635
- 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";
3636
3639
  function today() {
3637
3640
  return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
3638
3641
  }
@@ -4025,7 +4028,7 @@ var SKILLS_PREFIX = `${PREFIX2}/skills`;
4025
4028
  var DRAFTS_PREFIX = `${PREFIX2}/skills-drafts`;
4026
4029
  var SKILLS_INDEX = `${SKILLS_PREFIX}/index`;
4027
4030
  var DRAFTS_INDEX = `${DRAFTS_PREFIX}/index`;
4028
- 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";
4029
4032
  function resolveScope2(args) {
4030
4033
  if (args.scope === "groups" && args.group_id) {
4031
4034
  return { scope: "groups", id: args.group_id };
@@ -4613,7 +4616,8 @@ Install: \`gitlab_skill_install(name="${r.identifier}", source="skills.sh")\``
4613
4616
  execute: async (args) => {
4614
4617
  const auth = authAndValidate(args.project_id);
4615
4618
  const { scope, id } = resolveScope2(args);
4616
- 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);
4617
4621
  try {
4618
4622
  let skillContent = null;
4619
4623
  for (const prefix of [SKILLS_PREFIX, DRAFTS_PREFIX]) {
@@ -4700,7 +4704,7 @@ Install: \`gitlab_skill_install(name="${r.identifier}", source="skills.sh")\``
4700
4704
  }
4701
4705
  }
4702
4706
  }
4703
- ensureGitignore(process.cwd());
4707
+ ensureGitignore(workDir);
4704
4708
  const parts = ["SKILL.md"];
4705
4709
  if (refCount > 0) parts.push(`${refCount} reference(s)`);
4706
4710
  if (scriptCount > 0) parts.push(`${scriptCount} script(s)`);
@@ -4858,6 +4862,7 @@ var plugin = async (input) => {
4858
4862
  getFlowAgents: () => flowAgents,
4859
4863
  getCachedAgents: () => cachedAgents,
4860
4864
  getNamespaceId: () => namespaceId,
4865
+ getDirectory: () => input.directory,
4861
4866
  refreshAgents
4862
4867
  };
4863
4868
  return {