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 CHANGED
@@ -2255,7 +2255,8 @@ prompts:
2255
2255
  placeholder: history
2256
2256
  \`\`\``;
2257
2257
  var WIKI_MEMORY_HINT = `## Wiki Memory
2258
- 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.`;
2258
+ 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.
2259
+ 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.`;
2259
2260
 
2260
2261
  // src/hooks.ts
2261
2262
  function buildFlowSubagentPrompt(flow, projectPath, projectUrl) {
@@ -3618,7 +3619,9 @@ function makeWikiTools(ctx) {
3618
3619
  gitlab_wiki_read: (0, import_plugin5.tool)({
3619
3620
  description: "Read a wiki page by slug. Returns the page content.\nUse this to read memory pages, decisions, or any wiki page.",
3620
3621
  args: {
3621
- project_id: z5.string().describe('Project path (e.g., "gitlab-org/gitlab")'),
3622
+ project_id: z5.string().describe(
3623
+ 'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
3624
+ ),
3622
3625
  slug: z5.string().describe("Wiki page slug (e.g., memory/facts)"),
3623
3626
  scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
3624
3627
  group_id: z5.string().optional().describe("Group path, required when scope is groups")
@@ -3638,7 +3641,9 @@ function makeWikiTools(ctx) {
3638
3641
  gitlab_wiki_write: (0, import_plugin5.tool)({
3639
3642
  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.",
3640
3643
  args: {
3641
- project_id: z5.string().describe('Project path (e.g., "gitlab-org/gitlab")'),
3644
+ project_id: z5.string().describe(
3645
+ 'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
3646
+ ),
3642
3647
  slug: z5.string().describe("Wiki page slug (e.g., memory/facts)"),
3643
3648
  content: z5.string().describe("Full page content in Markdown"),
3644
3649
  title: z5.string().optional().describe("Page title (defaults to slug if omitted)"),
@@ -3681,7 +3686,9 @@ function makeWikiTools(ctx) {
3681
3686
  gitlab_wiki_append: (0, import_plugin5.tool)({
3682
3687
  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.",
3683
3688
  args: {
3684
- project_id: z5.string().describe('Project path (e.g., "gitlab-org/gitlab")'),
3689
+ project_id: z5.string().describe(
3690
+ 'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
3691
+ ),
3685
3692
  slug: z5.string().describe("Wiki page slug (e.g., memory/facts)"),
3686
3693
  text: z5.string().describe("Text to append to the page"),
3687
3694
  scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
@@ -3710,7 +3717,9 @@ function makeWikiTools(ctx) {
3710
3717
  gitlab_wiki_list: (0, import_plugin5.tool)({
3711
3718
  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.",
3712
3719
  args: {
3713
- project_id: z5.string().describe('Project path (e.g., "gitlab-org/gitlab")'),
3720
+ project_id: z5.string().describe(
3721
+ 'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
3722
+ ),
3714
3723
  prefix: z5.string().optional().describe('Filter pages by slug prefix (e.g., "memory/")'),
3715
3724
  scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
3716
3725
  group_id: z5.string().optional().describe("Group path, required when scope is groups")
@@ -3735,7 +3744,9 @@ function makeWikiTools(ctx) {
3735
3744
  gitlab_wiki_delete: (0, import_plugin5.tool)({
3736
3745
  description: "Delete a wiki page by slug.",
3737
3746
  args: {
3738
- project_id: z5.string().describe('Project path (e.g., "gitlab-org/gitlab")'),
3747
+ project_id: z5.string().describe(
3748
+ 'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
3749
+ ),
3739
3750
  slug: z5.string().describe("Wiki page slug to delete"),
3740
3751
  scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
3741
3752
  group_id: z5.string().optional().describe("Group path, required when scope is groups")
@@ -3755,7 +3766,9 @@ function makeWikiTools(ctx) {
3755
3766
  gitlab_wiki_search: (0, import_plugin5.tool)({
3756
3767
  description: "Search wiki pages via GitLab search API.\nReturns matching page paths and content snippets.",
3757
3768
  args: {
3758
- project_id: z5.string().describe('Project path (e.g., "gitlab-org/gitlab")'),
3769
+ project_id: z5.string().describe(
3770
+ 'Project path (e.g., "gitlab-org/gitlab") or numeric ID. IMPORTANT: use the same format consistently across all wiki calls.'
3771
+ ),
3759
3772
  query: z5.string().describe("Search query string"),
3760
3773
  scope: z5.enum(["projects", "groups"]).optional().describe('Scope: "projects" (default) or "groups"'),
3761
3774
  group_id: z5.string().optional().describe("Group path, required when scope is groups")