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 +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2232,7 +2232,10 @@ function makeSystemTransformHook(flowAgents, getAuthCache) {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
if (getAuthCache()) {
|
|
2234
2234
|
output.system.push(
|
|
2235
|
-
`## Project
|
|
2235
|
+
`## GitLab Project Context
|
|
2236
|
+
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.
|
|
2237
|
+
|
|
2238
|
+
## Project Knowledge
|
|
2236
2239
|
Project memory tools are available (gitlab_memory_load, gitlab_memory_record, gitlab_memory_recall). Say "bootstrap project memory" to initialize or refresh project knowledge.`
|
|
2237
2240
|
);
|
|
2238
2241
|
}
|
|
@@ -3463,7 +3466,7 @@ var RECORD_DIR = {
|
|
|
3463
3466
|
people: `${PREFIX}/memory/people-and-contexts`,
|
|
3464
3467
|
plan: `${PREFIX}/memory/plans`
|
|
3465
3468
|
};
|
|
3466
|
-
var PROJECT_ID_DESC =
|
|
3469
|
+
var PROJECT_ID_DESC = "Project path from git remote";
|
|
3467
3470
|
function today() {
|
|
3468
3471
|
return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
3469
3472
|
}
|
|
@@ -3866,7 +3869,7 @@ var SKILLS_PREFIX = `${PREFIX2}/skills`;
|
|
|
3866
3869
|
var DRAFTS_PREFIX = `${PREFIX2}/skills-drafts`;
|
|
3867
3870
|
var SKILLS_INDEX = `${SKILLS_PREFIX}/index`;
|
|
3868
3871
|
var DRAFTS_INDEX = `${DRAFTS_PREFIX}/index`;
|
|
3869
|
-
var PROJECT_ID_DESC2 =
|
|
3872
|
+
var PROJECT_ID_DESC2 = "Project path from git remote";
|
|
3870
3873
|
function resolveScope2(args) {
|
|
3871
3874
|
if (args.scope === "groups" && args.group_id) {
|
|
3872
3875
|
return { scope: "groups", id: args.group_id };
|
|
@@ -4454,7 +4457,8 @@ Install: \`gitlab_skill_install(name="${r.identifier}", source="skills.sh")\``
|
|
|
4454
4457
|
execute: async (args) => {
|
|
4455
4458
|
const auth = authAndValidate(args.project_id);
|
|
4456
4459
|
const { scope, id } = resolveScope2(args);
|
|
4457
|
-
const
|
|
4460
|
+
const workDir = ctx.getDirectory();
|
|
4461
|
+
const targetDir = join2(workDir, ".agents", "skills", args.name);
|
|
4458
4462
|
try {
|
|
4459
4463
|
let skillContent = null;
|
|
4460
4464
|
for (const prefix of [SKILLS_PREFIX, DRAFTS_PREFIX]) {
|
|
@@ -4541,7 +4545,7 @@ Install: \`gitlab_skill_install(name="${r.identifier}", source="skills.sh")\``
|
|
|
4541
4545
|
}
|
|
4542
4546
|
}
|
|
4543
4547
|
}
|
|
4544
|
-
ensureGitignore(
|
|
4548
|
+
ensureGitignore(workDir);
|
|
4545
4549
|
const parts = ["SKILL.md"];
|
|
4546
4550
|
if (refCount > 0) parts.push(`${refCount} reference(s)`);
|
|
4547
4551
|
if (scriptCount > 0) parts.push(`${scriptCount} script(s)`);
|
|
@@ -4699,6 +4703,7 @@ var plugin = async (input) => {
|
|
|
4699
4703
|
getFlowAgents: () => flowAgents,
|
|
4700
4704
|
getCachedAgents: () => cachedAgents,
|
|
4701
4705
|
getNamespaceId: () => namespaceId,
|
|
4706
|
+
getDirectory: () => input.directory,
|
|
4702
4707
|
refreshAgents
|
|
4703
4708
|
};
|
|
4704
4709
|
return {
|