opencode-gitlab-dap 1.11.0 → 1.12.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.js CHANGED
@@ -3435,7 +3435,8 @@ var MEMORY_TYPES = [
3435
3435
  "architecture",
3436
3436
  "conventions",
3437
3437
  "troubleshooting",
3438
- "people-and-contexts"
3438
+ "people-and-contexts",
3439
+ "plans"
3439
3440
  ];
3440
3441
  var MEMORY_DIRS = {
3441
3442
  all: MEMORY_TYPES.map((t) => `${PREFIX}/memory/${t}`),
@@ -3449,7 +3450,8 @@ var RECORD_TYPES = [
3449
3450
  "architecture",
3450
3451
  "convention",
3451
3452
  "troubleshooting",
3452
- "people"
3453
+ "people",
3454
+ "plan"
3453
3455
  ];
3454
3456
  var RECORD_DIR = {
3455
3457
  fact: `${PREFIX}/memory/facts`,
@@ -3458,14 +3460,18 @@ var RECORD_DIR = {
3458
3460
  architecture: `${PREFIX}/memory/architecture`,
3459
3461
  convention: `${PREFIX}/memory/conventions`,
3460
3462
  troubleshooting: `${PREFIX}/memory/troubleshooting`,
3461
- people: `${PREFIX}/memory/people-and-contexts`
3463
+ people: `${PREFIX}/memory/people-and-contexts`,
3464
+ plan: `${PREFIX}/memory/plans`
3462
3465
  };
3463
3466
  var PROJECT_ID_DESC = 'FULL project path with namespace (e.g., "gitlab-org/gitlab"). Must contain a slash. Never use just the project name.';
3464
3467
  function today() {
3465
3468
  return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
3466
3469
  }
3470
+ function shortHash() {
3471
+ return Math.random().toString(36).slice(2, 8);
3472
+ }
3467
3473
  function slugify(text) {
3468
- return text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "").slice(0, 60);
3474
+ return text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "").slice(0, 50);
3469
3475
  }
3470
3476
  function titleFromContent(content) {
3471
3477
  const first = content.split("\n")[0].replace(/^[#*\->\s]+/, "").trim();
@@ -3538,7 +3544,7 @@ ${entries}`
3538
3544
  }
3539
3545
  }),
3540
3546
  gitlab_memory_record: tool5({
3541
- description: "Record knowledge in project memory. Each record creates its own page \u2014 safe for parallel writes.\nTypes:\n fact \u2014 stable truths (tech stack, dependencies, deploy targets, project metadata)\n decision \u2014 architectural choices with reasoning (why X over Y)\n pattern \u2014 recurring observations that may evolve into skills\n architecture \u2014 system design, module structure, data flow, key abstractions\n convention \u2014 coding standards, naming patterns, review process, commit conventions\n troubleshooting \u2014 known issues, workarounds, debugging tips, common errors\n people \u2014 team members, roles, ownership areas, contact context",
3547
+ description: "Record knowledge in project memory. Each record creates its own page \u2014 safe for parallel writes.\nTypes:\n fact \u2014 stable truths (tech stack, dependencies, deploy targets, project metadata)\n decision \u2014 architectural choices with reasoning (why X over Y)\n pattern \u2014 recurring observations that may evolve into skills\n architecture \u2014 system design, module structure, data flow, key abstractions\n convention \u2014 coding standards, naming patterns, review process, commit conventions\n troubleshooting \u2014 known issues, workarounds, debugging tips, common errors\n people \u2014 team members, roles, ownership areas, contact context\n plan \u2014 implementation plans, feature designs, task breakdowns, roadmap items",
3542
3548
  args: {
3543
3549
  project_id: z5.string().describe(PROJECT_ID_DESC),
3544
3550
  type: z5.enum([...RECORD_TYPES]).describe("Type of knowledge to record"),
@@ -3553,7 +3559,7 @@ ${entries}`
3553
3559
  if (!dir) return `Unknown memory type: ${args.type}`;
3554
3560
  const date = today();
3555
3561
  const title = titleFromContent(args.content);
3556
- const slug = `${dir}/${date}-${slugify(title)}`;
3562
+ const slug = `${dir}/${date}-${slugify(title)}-${shortHash()}`;
3557
3563
  const header = `*Recorded: ${date} | Type: ${args.type}*
3558
3564
 
3559
3565
  `;
@@ -3758,7 +3764,7 @@ ${e.content}`).join("\n\n---\n\n");
3758
3764
  const auth = authAndValidate(args.project_id);
3759
3765
  const { scope, id } = resolveScope(args);
3760
3766
  const date = today();
3761
- const slug = `${PREFIX}/memory/sessions/${date}-${slugify(args.title)}`;
3767
+ const slug = `${PREFIX}/memory/sessions/${date}-${slugify(args.title)}-${shortHash()}`;
3762
3768
  try {
3763
3769
  await createWikiPage(auth.instanceUrl, auth.token, scope, id, slug, args.summary);
3764
3770
  return `Session logged: ${slug}`;