opencode-gitlab-dap 1.9.0 → 1.10.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/README.md +13 -8
- package/dist/index.cjs +166 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +166 -58
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ The plugin provides a multi-round design workflow:
|
|
|
110
110
|
|
|
111
111
|
The vendored `flow_v2.json` schema from GitLab Rails powers client-side validation using `ajv`, catching errors before hitting the API.
|
|
112
112
|
|
|
113
|
-
###
|
|
113
|
+
### 31 Tools
|
|
114
114
|
|
|
115
115
|
#### DAP Tools (20)
|
|
116
116
|
|
|
@@ -137,18 +137,23 @@ The vendored `flow_v2.json` schema from GitLab Rails powers client-side validati
|
|
|
137
137
|
| `gitlab_get_workflow_status` | Monitor workflow execution status and logs |
|
|
138
138
|
| `gitlab_list_project_mcp_servers` | List MCP servers available for project agents |
|
|
139
139
|
|
|
140
|
-
#### Project Knowledge Tools (
|
|
140
|
+
#### Project Knowledge Tools (11)
|
|
141
141
|
|
|
142
142
|
Persistent project memory and reusable skills. Knowledge is stored in GitLab project/group wikis but tools abstract the storage — the agent works with facts, decisions, patterns, and skills.
|
|
143
143
|
|
|
144
|
+
Say **"bootstrap project memory"** to automatically inspect a project and build its knowledge base. If memory already exists, it does a smart refresh — updating stale facts and archiving outdated entries.
|
|
145
|
+
|
|
144
146
|
##### Memory Tools
|
|
145
147
|
|
|
146
|
-
| Tool | Description
|
|
147
|
-
| --------------------------- |
|
|
148
|
-
| `gitlab_memory_load` | Load project memory (facts, decisions, patterns,
|
|
149
|
-
| `gitlab_memory_record` | Record a fact, decision, or pattern (auto-timestamped)
|
|
150
|
-
| `
|
|
151
|
-
| `
|
|
148
|
+
| Tool | Description |
|
|
149
|
+
| --------------------------- | --------------------------------------------------------------- |
|
|
150
|
+
| `gitlab_memory_load` | Load project memory (facts, decisions, patterns, archive) |
|
|
151
|
+
| `gitlab_memory_record` | Record a fact, decision, or pattern (auto-timestamped) |
|
|
152
|
+
| `gitlab_memory_update` | Update an existing memory record with corrected content |
|
|
153
|
+
| `gitlab_memory_archive` | Archive an outdated record (moved to archive, still searchable) |
|
|
154
|
+
| `gitlab_memory_consolidate` | Review all memory and get cleanup instructions |
|
|
155
|
+
| `gitlab_memory_recall` | Search project knowledge for relevant information |
|
|
156
|
+
| `gitlab_memory_log_session` | Log a session summary with learnings |
|
|
152
157
|
|
|
153
158
|
##### Skill Tools
|
|
154
159
|
|
package/dist/index.cjs
CHANGED
|
@@ -2082,18 +2082,6 @@ var FLOW_DISPATCH_GUIDELINES = [
|
|
|
2082
2082
|
`resources yourself using GitLab API tools, then dispatch ONE general subagent whose prompt`,
|
|
2083
2083
|
`includes all flow executions (N flows x M resources) to run in parallel.`
|
|
2084
2084
|
].join("\n");
|
|
2085
|
-
var AGENT_CREATION_GUIDELINES = `## Creating Custom GitLab Agents
|
|
2086
|
-
|
|
2087
|
-
Before calling gitlab_create_agent, you MUST:
|
|
2088
|
-
1. Call gitlab_list_builtin_tools and gitlab_list_project_mcp_servers.
|
|
2089
|
-
2. Ask the user 4 questions using the question tool (one call, all 4 questions):
|
|
2090
|
-
- Agent name (suggest one, allow custom)
|
|
2091
|
-
- Visibility: Public or Private
|
|
2092
|
-
- Tools: show tools grouped by category as multi-select (Search, Issues, MRs, Epics, Files, Git, CI/CD, Security, Audit, Planning, Wiki, API)
|
|
2093
|
-
- MCP servers: multi-select from available servers
|
|
2094
|
-
3. Show the generated system prompt and ask for confirmation.
|
|
2095
|
-
4. Only then call gitlab_create_agent. Use full tool GIDs like "gid://gitlab/Ai::Catalog::BuiltInTool/1".
|
|
2096
|
-
5. Ask if the user wants to enable it on the current project.`;
|
|
2097
2085
|
var FLOW_SCHEMA_REFERENCE = `## Flow YAML Schema Reference
|
|
2098
2086
|
|
|
2099
2087
|
### Top-level structure (all required unless noted):
|
|
@@ -2254,35 +2242,6 @@ prompts:
|
|
|
2254
2242
|
user: "Fix this vulnerability: {{vuln_data}}"
|
|
2255
2243
|
placeholder: history
|
|
2256
2244
|
\`\`\``;
|
|
2257
|
-
var PROJECT_KNOWLEDGE_HINT = `## Project Knowledge
|
|
2258
|
-
This project may have persistent memory and skills available via knowledge tools.
|
|
2259
|
-
Use gitlab_memory_load to check for existing project context (facts, decisions, patterns).
|
|
2260
|
-
Use gitlab_skill_list to discover available task-specific skills.
|
|
2261
|
-
When you learn something new about the project, use gitlab_memory_record to preserve it.
|
|
2262
|
-
When you complete a significant task, consider using gitlab_memory_log_session to log learnings.
|
|
2263
|
-
|
|
2264
|
-
### Bootstrap Project Memory
|
|
2265
|
-
When the user says "bootstrap project memory", "initialize memory", or "build project knowledge":
|
|
2266
|
-
1. FIRST: Determine the project path by running \`run_git_command("remote", ["-v"])\` and extracting the path from the git remote URL (e.g., "git@gitlab.com:my-group/my-project.git" \u2192 "my-group/my-project"). NEVER guess the project path.
|
|
2267
|
-
2. Call gitlab_memory_load with the extracted project path to check if memory already exists.
|
|
2268
|
-
3. If memory exists, show a summary and ask if the user wants to refresh it.
|
|
2269
|
-
4. If memory is empty (or user wants refresh), gather project knowledge by:
|
|
2270
|
-
a. Read the project README, key config files, and codebase structure (use file/repo tools).
|
|
2271
|
-
b. Fetch project details via gitlab_get_project.
|
|
2272
|
-
c. List open issues (gitlab_list_issues, state=opened, limit=20).
|
|
2273
|
-
d. List open merge requests (gitlab_list_merge_requests, state=opened, limit=10).
|
|
2274
|
-
e. Check recent pipelines (gitlab_list_pipelines, limit=5).
|
|
2275
|
-
f. List project members (gitlab_list_project_members).
|
|
2276
|
-
5. Record each category as separate memory entries using gitlab_memory_record:
|
|
2277
|
-
- fact: project overview (name, purpose, tech stack, language, dependencies)
|
|
2278
|
-
- fact: architecture and codebase structure (key files, modules, patterns)
|
|
2279
|
-
- fact: CI/CD pipeline configuration (stages, jobs, deployment targets)
|
|
2280
|
-
- fact: open issues summary (count, key issues, labels)
|
|
2281
|
-
- fact: open MRs summary (count, key MRs, review status)
|
|
2282
|
-
- fact: team and contributors
|
|
2283
|
-
- pattern: development workflow observations (branching, review process, release cycle)
|
|
2284
|
-
6. Log a session with gitlab_memory_log_session summarizing the bootstrap.
|
|
2285
|
-
IMPORTANT: Always extract the project path from git remote \u2014 never guess it. Fire multiple gitlab_memory_record calls in parallel \u2014 each creates its own page, so parallel writes are safe.`;
|
|
2286
2245
|
|
|
2287
2246
|
// src/hooks.ts
|
|
2288
2247
|
function buildFlowSubagentPrompt(flow, projectPath, projectUrl) {
|
|
@@ -2441,8 +2400,10 @@ function makeSystemTransformHook(flowAgents, getAuthCache) {
|
|
|
2441
2400
|
output.system.push(FLOW_DISPATCH_GUIDELINES);
|
|
2442
2401
|
}
|
|
2443
2402
|
if (getAuthCache()) {
|
|
2444
|
-
output.system.push(
|
|
2445
|
-
|
|
2403
|
+
output.system.push(
|
|
2404
|
+
`## Project Knowledge
|
|
2405
|
+
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
|
+
);
|
|
2446
2407
|
}
|
|
2447
2408
|
};
|
|
2448
2409
|
}
|
|
@@ -3635,17 +3596,20 @@ async function searchWikiPages(instanceUrl, token, scope, id, query) {
|
|
|
3635
3596
|
// src/tools/memory-tools.ts
|
|
3636
3597
|
var z5 = import_plugin5.tool.schema;
|
|
3637
3598
|
var PREFIX = "agents";
|
|
3599
|
+
var ARCHIVE_DIR = `${PREFIX}/memory/archive`;
|
|
3638
3600
|
var MEMORY_DIRS = {
|
|
3639
3601
|
all: [`${PREFIX}/memory/facts`, `${PREFIX}/memory/decisions`, `${PREFIX}/memory/patterns`],
|
|
3640
3602
|
facts: [`${PREFIX}/memory/facts`],
|
|
3641
3603
|
decisions: [`${PREFIX}/memory/decisions`],
|
|
3642
|
-
patterns: [`${PREFIX}/memory/patterns`]
|
|
3604
|
+
patterns: [`${PREFIX}/memory/patterns`],
|
|
3605
|
+
archive: [ARCHIVE_DIR]
|
|
3643
3606
|
};
|
|
3644
3607
|
var RECORD_DIR = {
|
|
3645
3608
|
fact: `${PREFIX}/memory/facts`,
|
|
3646
3609
|
decision: `${PREFIX}/memory/decisions`,
|
|
3647
3610
|
pattern: `${PREFIX}/memory/patterns`
|
|
3648
3611
|
};
|
|
3612
|
+
var PROJECT_ID_DESC = 'FULL project path with namespace (e.g., "gitlab-org/gitlab"). Must contain a slash. Never use just the project name.';
|
|
3649
3613
|
function today() {
|
|
3650
3614
|
return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
3651
3615
|
}
|
|
@@ -3678,12 +3642,12 @@ function makeMemoryTools(ctx) {
|
|
|
3678
3642
|
}
|
|
3679
3643
|
return {
|
|
3680
3644
|
gitlab_memory_load: (0, import_plugin5.tool)({
|
|
3681
|
-
description: "Load project memory to understand context, known facts, past decisions, and observed patterns.\nUse this at the start of complex tasks to check what is already known about the project.\nReturns accumulated knowledge from previous sessions.",
|
|
3645
|
+
description: "Load project memory to understand context, known facts, past decisions, and observed patterns.\nUse this at the start of complex tasks to check what is already known about the project.\nReturns accumulated knowledge from previous sessions.\nEach entry includes its slug (page path) which can be used with gitlab_memory_update or gitlab_memory_archive.\n\nBOOTSTRAP WORKFLOW \u2014 when user says 'bootstrap project memory':\n1. Get project path from run_git_command('remote', ['-v']) \u2014 NEVER guess.\n2. Call this tool to check if memory exists.\n3. If empty: gather knowledge (README, gitlab_get_project, gitlab_list_issues, gitlab_list_merge_requests, gitlab_list_pipelines, gitlab_list_project_members), then fire parallel gitlab_memory_record calls.\n4. If exists: show summary, gather current state, compare with stored facts, use gitlab_memory_update for stale, gitlab_memory_archive for outdated, gitlab_memory_record for new.\n5. Log session with gitlab_memory_log_session.",
|
|
3682
3646
|
args: {
|
|
3683
|
-
project_id: z5.string().describe(
|
|
3684
|
-
|
|
3647
|
+
project_id: z5.string().describe(PROJECT_ID_DESC),
|
|
3648
|
+
type: z5.enum(["all", "facts", "decisions", "patterns", "archive"]).optional().describe(
|
|
3649
|
+
'Which memory to load: "all" (default), "facts", "decisions", "patterns", or "archive" (retired entries)'
|
|
3685
3650
|
),
|
|
3686
|
-
type: z5.enum(["all", "facts", "decisions", "patterns"]).optional().describe('Which memory to load: "all" (default), "facts", "decisions", or "patterns"'),
|
|
3687
3651
|
scope: z5.enum(["projects", "groups"]).optional().describe("Scope (default: projects)"),
|
|
3688
3652
|
group_id: z5.string().optional().describe("Group path (required when scope is groups)")
|
|
3689
3653
|
},
|
|
@@ -3706,7 +3670,8 @@ function makeMemoryTools(ctx) {
|
|
|
3706
3670
|
const label = dir.split("/").pop();
|
|
3707
3671
|
const pages = allPages.filter((p) => p.slug.startsWith(dir + "/") && p.content);
|
|
3708
3672
|
if (pages.length === 0) continue;
|
|
3709
|
-
const entries = pages.map((p) => p.
|
|
3673
|
+
const entries = pages.map((p) => `### ${p.slug}
|
|
3674
|
+
${p.content}`).join("\n\n---\n\n");
|
|
3710
3675
|
sections.push(
|
|
3711
3676
|
`## ${label.charAt(0).toUpperCase() + label.slice(1)} (${pages.length})
|
|
3712
3677
|
|
|
@@ -3724,9 +3689,7 @@ ${entries}`
|
|
|
3724
3689
|
gitlab_memory_record: (0, import_plugin5.tool)({
|
|
3725
3690
|
description: "Record a fact, decision, or pattern in project memory.\nFacts: stable truths about the project (e.g., deploy targets, tech stack, team conventions).\nDecisions: architectural choices with reasoning (why X was chosen over Y).\nPatterns: recurring observations that may evolve into skills over time.\nEach record creates its own page \u2014 safe for parallel writes.",
|
|
3726
3691
|
args: {
|
|
3727
|
-
project_id: z5.string().describe(
|
|
3728
|
-
'FULL project path with namespace (e.g., "gitlab-org/gitlab"). Must contain a slash. Never use just the project name.'
|
|
3729
|
-
),
|
|
3692
|
+
project_id: z5.string().describe(PROJECT_ID_DESC),
|
|
3730
3693
|
type: z5.enum(["fact", "decision", "pattern"]).describe("Type of knowledge to record"),
|
|
3731
3694
|
content: z5.string().describe("The knowledge to record (markdown)"),
|
|
3732
3695
|
scope: z5.enum(["projects", "groups"]).optional().describe("Scope (default: projects)"),
|
|
@@ -3752,12 +3715,159 @@ ${entries}`
|
|
|
3752
3715
|
}
|
|
3753
3716
|
}
|
|
3754
3717
|
}),
|
|
3718
|
+
gitlab_memory_update: (0, import_plugin5.tool)({
|
|
3719
|
+
description: "Update an existing memory record with new content.\nUse this to correct stale facts, update issue counts, or refine decisions.\nThe slug is the page path shown in gitlab_memory_load output (e.g., agents/memory/facts/2026-04-05-project-overview).",
|
|
3720
|
+
args: {
|
|
3721
|
+
project_id: z5.string().describe(PROJECT_ID_DESC),
|
|
3722
|
+
slug: z5.string().describe(
|
|
3723
|
+
'Page slug from gitlab_memory_load output (e.g., "agents/memory/facts/2026-04-05-project-overview")'
|
|
3724
|
+
),
|
|
3725
|
+
content: z5.string().describe("New content to replace the existing record (markdown)"),
|
|
3726
|
+
scope: z5.enum(["projects", "groups"]).optional().describe("Scope (default: projects)"),
|
|
3727
|
+
group_id: z5.string().optional().describe("Group path (required when scope is groups)")
|
|
3728
|
+
},
|
|
3729
|
+
execute: async (args) => {
|
|
3730
|
+
const auth = authAndValidate(args.project_id);
|
|
3731
|
+
const { scope, id } = resolveScope(args);
|
|
3732
|
+
try {
|
|
3733
|
+
await getWikiPage(auth.instanceUrl, auth.token, scope, id, args.slug);
|
|
3734
|
+
} catch {
|
|
3735
|
+
return `Memory record not found: ${args.slug}. Use gitlab_memory_load to see available records.`;
|
|
3736
|
+
}
|
|
3737
|
+
const date = today();
|
|
3738
|
+
const header = `*Updated: ${date}*
|
|
3739
|
+
|
|
3740
|
+
`;
|
|
3741
|
+
try {
|
|
3742
|
+
await updateWikiPage(
|
|
3743
|
+
auth.instanceUrl,
|
|
3744
|
+
auth.token,
|
|
3745
|
+
scope,
|
|
3746
|
+
id,
|
|
3747
|
+
args.slug,
|
|
3748
|
+
header + args.content
|
|
3749
|
+
);
|
|
3750
|
+
return `Updated memory record: ${args.slug}`;
|
|
3751
|
+
} catch (err) {
|
|
3752
|
+
return `Error updating memory: ${err.message}`;
|
|
3753
|
+
}
|
|
3754
|
+
}
|
|
3755
|
+
}),
|
|
3756
|
+
gitlab_memory_archive: (0, import_plugin5.tool)({
|
|
3757
|
+
description: "Archive an outdated memory record.\nMoves the record to the archive directory so it is no longer loaded by default.\nArchived records are still searchable via gitlab_memory_recall and loadable via gitlab_memory_load(type='archive').\nUse this for facts that are no longer true, decisions that were reversed, or patterns that stopped occurring.",
|
|
3758
|
+
args: {
|
|
3759
|
+
project_id: z5.string().describe(PROJECT_ID_DESC),
|
|
3760
|
+
slug: z5.string().describe(
|
|
3761
|
+
'Page slug to archive (e.g., "agents/memory/facts/2026-04-05-open-issues-summary")'
|
|
3762
|
+
),
|
|
3763
|
+
reason: z5.string().optional().describe(
|
|
3764
|
+
'Why this record is being archived (e.g., "issue was fixed", "no longer relevant")'
|
|
3765
|
+
),
|
|
3766
|
+
scope: z5.enum(["projects", "groups"]).optional().describe("Scope (default: projects)"),
|
|
3767
|
+
group_id: z5.string().optional().describe("Group path (required when scope is groups)")
|
|
3768
|
+
},
|
|
3769
|
+
execute: async (args) => {
|
|
3770
|
+
const auth = authAndValidate(args.project_id);
|
|
3771
|
+
const { scope, id } = resolveScope(args);
|
|
3772
|
+
let originalContent;
|
|
3773
|
+
try {
|
|
3774
|
+
const page = await getWikiPage(auth.instanceUrl, auth.token, scope, id, args.slug);
|
|
3775
|
+
originalContent = page.content;
|
|
3776
|
+
} catch {
|
|
3777
|
+
return `Memory record not found: ${args.slug}. Use gitlab_memory_load to see available records.`;
|
|
3778
|
+
}
|
|
3779
|
+
const date = today();
|
|
3780
|
+
const suffix = args.slug.split("/").slice(3).join("/");
|
|
3781
|
+
const archiveSlug = `${ARCHIVE_DIR}/${suffix}`;
|
|
3782
|
+
const reasonLine = args.reason ? `
|
|
3783
|
+
*Reason: ${args.reason}*` : "";
|
|
3784
|
+
const archiveHeader = `*Archived: ${date} | Original: ${args.slug}*${reasonLine}
|
|
3785
|
+
|
|
3786
|
+
`;
|
|
3787
|
+
try {
|
|
3788
|
+
await createWikiPage(
|
|
3789
|
+
auth.instanceUrl,
|
|
3790
|
+
auth.token,
|
|
3791
|
+
scope,
|
|
3792
|
+
id,
|
|
3793
|
+
archiveSlug,
|
|
3794
|
+
archiveHeader + originalContent
|
|
3795
|
+
);
|
|
3796
|
+
await deleteWikiPage(auth.instanceUrl, auth.token, scope, id, args.slug);
|
|
3797
|
+
return `Archived: ${args.slug} \u2192 ${archiveSlug}`;
|
|
3798
|
+
} catch (err) {
|
|
3799
|
+
return `Error archiving memory: ${err.message}`;
|
|
3800
|
+
}
|
|
3801
|
+
}
|
|
3802
|
+
}),
|
|
3803
|
+
gitlab_memory_consolidate: (0, import_plugin5.tool)({
|
|
3804
|
+
description: "Review all memory records and get consolidation instructions.\nLoads all records of the specified type and returns them with their slugs,\nalong with instructions to identify and fix stale, duplicate, or contradictory entries.\nUse this periodically to keep project memory clean and accurate.",
|
|
3805
|
+
args: {
|
|
3806
|
+
project_id: z5.string().describe(PROJECT_ID_DESC),
|
|
3807
|
+
type: z5.enum(["all", "facts", "decisions", "patterns"]).optional().describe(
|
|
3808
|
+
'Which memory to consolidate: "all" (default), "facts", "decisions", or "patterns"'
|
|
3809
|
+
),
|
|
3810
|
+
scope: z5.enum(["projects", "groups"]).optional().describe("Scope (default: projects)"),
|
|
3811
|
+
group_id: z5.string().optional().describe("Group path (required when scope is groups)")
|
|
3812
|
+
},
|
|
3813
|
+
execute: async (args) => {
|
|
3814
|
+
const auth = authAndValidate(args.project_id);
|
|
3815
|
+
const { scope, id } = resolveScope(args);
|
|
3816
|
+
const memType = args.type ?? "all";
|
|
3817
|
+
const dirs = MEMORY_DIRS[memType];
|
|
3818
|
+
if (!dirs) return `Unknown memory type: ${memType}`;
|
|
3819
|
+
try {
|
|
3820
|
+
const allPages = await listWikiPages(
|
|
3821
|
+
auth.instanceUrl,
|
|
3822
|
+
auth.token,
|
|
3823
|
+
scope,
|
|
3824
|
+
id,
|
|
3825
|
+
true
|
|
3826
|
+
);
|
|
3827
|
+
const entries = [];
|
|
3828
|
+
for (const dir of dirs) {
|
|
3829
|
+
const pages = allPages.filter((p) => p.slug.startsWith(dir + "/") && p.content);
|
|
3830
|
+
for (const p of pages) {
|
|
3831
|
+
entries.push({ slug: p.slug, content: p.content });
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
3834
|
+
if (entries.length === 0) return "No memory records to consolidate.";
|
|
3835
|
+
const listing = entries.map((e, i) => `### [${i + 1}] ${e.slug}
|
|
3836
|
+
${e.content}`).join("\n\n---\n\n");
|
|
3837
|
+
const instructions = [
|
|
3838
|
+
`## Memory Consolidation Review`,
|
|
3839
|
+
``,
|
|
3840
|
+
`Found **${entries.length} records** to review. For each record:`,
|
|
3841
|
+
``,
|
|
3842
|
+
`1. **Stale?** \u2014 Is the information still current? If not, either:`,
|
|
3843
|
+
` - Call \`gitlab_memory_update(slug, new_content)\` with corrected info`,
|
|
3844
|
+
` - Call \`gitlab_memory_archive(slug, reason)\` if no longer relevant`,
|
|
3845
|
+
``,
|
|
3846
|
+
`2. **Duplicate?** \u2014 Does another record cover the same information?`,
|
|
3847
|
+
` - Keep the better one, archive the other`,
|
|
3848
|
+
``,
|
|
3849
|
+
`3. **Contradictory?** \u2014 Do two records disagree?`,
|
|
3850
|
+
` - Verify which is correct, update one, archive the other`,
|
|
3851
|
+
``,
|
|
3852
|
+
`4. **Mergeable?** \u2014 Are there many small records about the same topic?`,
|
|
3853
|
+
` - Create one consolidated record, archive the originals`,
|
|
3854
|
+
``,
|
|
3855
|
+
`After reviewing, log a session with gitlab_memory_log_session summarizing what was cleaned up.`,
|
|
3856
|
+
``,
|
|
3857
|
+
`---`,
|
|
3858
|
+
``,
|
|
3859
|
+
listing
|
|
3860
|
+
].join("\n");
|
|
3861
|
+
return instructions;
|
|
3862
|
+
} catch (err) {
|
|
3863
|
+
return `Error loading memory for consolidation: ${err.message}`;
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3866
|
+
}),
|
|
3755
3867
|
gitlab_memory_recall: (0, import_plugin5.tool)({
|
|
3756
3868
|
description: "Search project knowledge for relevant information.\nSearches across all memory pages, session logs, and skills.\nUse this to check if something is already known before investigating.",
|
|
3757
3869
|
args: {
|
|
3758
|
-
project_id: z5.string().describe(
|
|
3759
|
-
'FULL project path with namespace (e.g., "gitlab-org/gitlab"). Must contain a slash. Never use just the project name.'
|
|
3760
|
-
),
|
|
3870
|
+
project_id: z5.string().describe(PROJECT_ID_DESC),
|
|
3761
3871
|
query: z5.string().describe("What to search for"),
|
|
3762
3872
|
scope: z5.enum(["projects", "groups"]).optional().describe("Scope (default: projects)"),
|
|
3763
3873
|
group_id: z5.string().optional().describe("Group path (required when scope is groups)")
|
|
@@ -3787,9 +3897,7 @@ ${entries}`
|
|
|
3787
3897
|
gitlab_memory_log_session: (0, import_plugin5.tool)({
|
|
3788
3898
|
description: "Log a session summary including what was accomplished, what was learned, and any suggestions.\nUse this at the end of significant work sessions to preserve context for future sessions.",
|
|
3789
3899
|
args: {
|
|
3790
|
-
project_id: z5.string().describe(
|
|
3791
|
-
'FULL project path with namespace (e.g., "gitlab-org/gitlab"). Must contain a slash. Never use just the project name.'
|
|
3792
|
-
),
|
|
3900
|
+
project_id: z5.string().describe(PROJECT_ID_DESC),
|
|
3793
3901
|
title: z5.string().describe('Brief session title (e.g., "fix-ai-gateway-healthcheck")'),
|
|
3794
3902
|
summary: z5.string().describe(
|
|
3795
3903
|
"Session summary in markdown (what happened, what was learned, what went wrong)"
|