opencode-gitlab-dap 1.7.0 → 1.7.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/dist/index.cjs +20 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2086,7 +2086,8 @@ prompts:
|
|
|
2086
2086
|
placeholder: history
|
|
2087
2087
|
\`\`\``;
|
|
2088
2088
|
var WIKI_MEMORY_HINT = `## Wiki Memory
|
|
2089
|
-
Persistent project memory and skills are available via GitLab wiki tools (gitlab_wiki_list, gitlab_wiki_read, gitlab_wiki_write, gitlab_wiki_append, gitlab_wiki_search, gitlab_wiki_delete). Use gitlab_wiki_list to discover available memory pages and project or group specific skills
|
|
2089
|
+
Persistent project memory and skills are available via GitLab wiki tools (gitlab_wiki_list, gitlab_wiki_read, gitlab_wiki_write, gitlab_wiki_append, gitlab_wiki_search, gitlab_wiki_delete). Use gitlab_wiki_list to discover available memory pages and project or group specific skills.
|
|
2090
|
+
IMPORTANT: Always use the project path (e.g., "gitlab-org/gitlab") as the project_id for wiki tools, never a numeric ID. Use the SAME project_id value consistently across all wiki tool calls in a session.`;
|
|
2090
2091
|
|
|
2091
2092
|
// src/hooks.ts
|
|
2092
2093
|
function buildFlowSubagentPrompt(flow, projectPath, projectUrl) {
|
|
@@ -3449,7 +3450,9 @@ function makeWikiTools(ctx) {
|
|
|
3449
3450
|
gitlab_wiki_read: tool5({
|
|
3450
3451
|
description: "Read a wiki page by slug. Returns the page content.\nUse this to read memory pages, decisions, or any wiki page.",
|
|
3451
3452
|
args: {
|
|
3452
|
-
project_id: z5.string().describe(
|
|
3453
|
+
project_id: z5.string().describe(
|
|
3454
|
+
'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
|
|
3455
|
+
),
|
|
3453
3456
|
slug: z5.string().describe("Wiki page slug (e.g., memory/facts)"),
|
|
3454
3457
|
scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
|
|
3455
3458
|
group_id: z5.string().optional().describe("Group path, required when scope is groups")
|
|
@@ -3469,7 +3472,9 @@ function makeWikiTools(ctx) {
|
|
|
3469
3472
|
gitlab_wiki_write: tool5({
|
|
3470
3473
|
description: "Create or update a wiki page (upsert).\nTries to update first; if the page does not exist, creates it.\nUse this to write memory pages, decisions, or any wiki content.",
|
|
3471
3474
|
args: {
|
|
3472
|
-
project_id: z5.string().describe(
|
|
3475
|
+
project_id: z5.string().describe(
|
|
3476
|
+
'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
|
|
3477
|
+
),
|
|
3473
3478
|
slug: z5.string().describe("Wiki page slug (e.g., memory/facts)"),
|
|
3474
3479
|
content: z5.string().describe("Full page content in Markdown"),
|
|
3475
3480
|
title: z5.string().optional().describe("Page title (defaults to slug if omitted)"),
|
|
@@ -3512,7 +3517,9 @@ function makeWikiTools(ctx) {
|
|
|
3512
3517
|
gitlab_wiki_append: tool5({
|
|
3513
3518
|
description: "Append text to an existing wiki page.\nReads the current content, appends the new text, and writes it back.\nIf the page does not exist, creates it with the provided text.",
|
|
3514
3519
|
args: {
|
|
3515
|
-
project_id: z5.string().describe(
|
|
3520
|
+
project_id: z5.string().describe(
|
|
3521
|
+
'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
|
|
3522
|
+
),
|
|
3516
3523
|
slug: z5.string().describe("Wiki page slug (e.g., memory/facts)"),
|
|
3517
3524
|
text: z5.string().describe("Text to append to the page"),
|
|
3518
3525
|
scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
|
|
@@ -3541,7 +3548,9 @@ function makeWikiTools(ctx) {
|
|
|
3541
3548
|
gitlab_wiki_list: tool5({
|
|
3542
3549
|
description: "List wiki pages, optionally filtered by slug prefix.\nRecommended wiki structure for agent memory:\n memory/facts \u2014 persistent facts about the project\n memory/decisions \u2014 architectural and design decisions\n memory/plans \u2014 current plans and roadmaps\n memory/sessions \u2014 session logs and context\n memory/snippets \u2014 reusable code snippets and patterns\nTwo-tier resolution: tries project wiki first, then group wiki if project has no results.",
|
|
3543
3550
|
args: {
|
|
3544
|
-
project_id: z5.string().describe(
|
|
3551
|
+
project_id: z5.string().describe(
|
|
3552
|
+
'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
|
|
3553
|
+
),
|
|
3545
3554
|
prefix: z5.string().optional().describe('Filter pages by slug prefix (e.g., "memory/")'),
|
|
3546
3555
|
scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
|
|
3547
3556
|
group_id: z5.string().optional().describe("Group path, required when scope is groups")
|
|
@@ -3566,7 +3575,9 @@ function makeWikiTools(ctx) {
|
|
|
3566
3575
|
gitlab_wiki_delete: tool5({
|
|
3567
3576
|
description: "Delete a wiki page by slug.",
|
|
3568
3577
|
args: {
|
|
3569
|
-
project_id: z5.string().describe(
|
|
3578
|
+
project_id: z5.string().describe(
|
|
3579
|
+
'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
|
|
3580
|
+
),
|
|
3570
3581
|
slug: z5.string().describe("Wiki page slug to delete"),
|
|
3571
3582
|
scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
|
|
3572
3583
|
group_id: z5.string().optional().describe("Group path, required when scope is groups")
|
|
@@ -3586,7 +3597,9 @@ function makeWikiTools(ctx) {
|
|
|
3586
3597
|
gitlab_wiki_search: tool5({
|
|
3587
3598
|
description: "Search wiki pages via GitLab search API.\nReturns matching page paths and content snippets.",
|
|
3588
3599
|
args: {
|
|
3589
|
-
project_id: z5.string().describe(
|
|
3600
|
+
project_id: z5.string().describe(
|
|
3601
|
+
'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
|
|
3602
|
+
),
|
|
3590
3603
|
query: z5.string().describe("Search query string"),
|
|
3591
3604
|
scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
|
|
3592
3605
|
group_id: z5.string().optional().describe("Group path, required when scope is groups")
|