@gitlab/opencode-gitlab-plugin 1.6.1 → 1.6.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
+ ## [1.6.2](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/compare/v1.6.1...v1.6.2) (2026-02-04)
6
+
7
+
8
+ ### 🐛 Bug Fixes
9
+
10
+ * resolved filter now correctly filters resolvable discussions only ([59defec](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/commit/59defec6c1c1d1536ea659a536b2bde3e89c95c5))
11
+
5
12
  ## [1.6.1](https://gitlab.com/gitlab-org/editor-extensions/opencode-gitlab-plugin/compare/v1.6.0...v1.6.1) (2026-02-04)
6
13
 
7
14
 
package/dist/index.js CHANGED
@@ -3388,14 +3388,23 @@ Can update title, description, state, labels, and assignees.`,
3388
3388
  // src/tools/discussions-unified.ts
3389
3389
  import { tool as tool12 } from "@opencode-ai/plugin";
3390
3390
  var z12 = tool12.schema;
3391
+ function normalizeBoolean(value) {
3392
+ if (typeof value === "boolean") return value;
3393
+ if (value === "true") return true;
3394
+ if (value === "false") return false;
3395
+ return void 0;
3396
+ }
3391
3397
  function filterDiscussionsByResolved(result, resolved) {
3392
- if (typeof resolved !== "boolean") {
3398
+ const normalizedResolved = normalizeBoolean(resolved);
3399
+ if (normalizedResolved === void 0) {
3393
3400
  return result;
3394
3401
  }
3395
3402
  return {
3396
3403
  discussions: {
3397
3404
  ...result.discussions,
3398
- nodes: result.discussions.nodes.filter((d) => d.resolved === resolved)
3405
+ nodes: result.discussions.nodes.filter(
3406
+ (d) => d.resolvable && d.resolved === normalizedResolved
3407
+ )
3399
3408
  }
3400
3409
  };
3401
3410
  }
@@ -3458,7 +3467,7 @@ Examples:
3458
3467
  snippet_id: z12.number().optional().describe("Snippet ID (required for snippet)"),
3459
3468
  // Filtering
3460
3469
  resolved: z12.boolean().optional().describe(
3461
- "Filter by resolved status: true for resolved, false for unresolved (client-side filtering)"
3470
+ "Filter by resolved status: true for resolved, false for unresolved. Only returns resolvable discussions (excludes system notes). Client-side filtering."
3462
3471
  ),
3463
3472
  // Pagination
3464
3473
  first: z12.number().optional().describe("Number of items to return (default: 20)"),
@@ -3717,15 +3726,22 @@ Use after addressing feedback to indicate the discussion is complete.`,
3717
3726
  // src/tools/notes-unified.ts
3718
3727
  import { tool as tool13 } from "@opencode-ai/plugin";
3719
3728
  var z13 = tool13.schema;
3729
+ function normalizeBoolean2(value) {
3730
+ if (typeof value === "boolean") return value;
3731
+ if (value === "true") return true;
3732
+ if (value === "false") return false;
3733
+ return void 0;
3734
+ }
3720
3735
  function filterNotesByResolved(result, resolved) {
3721
- if (typeof resolved !== "boolean") {
3736
+ const normalizedResolved = normalizeBoolean2(resolved);
3737
+ if (normalizedResolved === void 0) {
3722
3738
  return result;
3723
3739
  }
3724
3740
  return {
3725
3741
  ...result,
3726
3742
  notes: {
3727
3743
  ...result.notes,
3728
- nodes: result.notes.nodes.filter((n) => n.resolved === resolved)
3744
+ nodes: result.notes.nodes.filter((n) => n.resolvable && n.resolved === normalizedResolved)
3729
3745
  }
3730
3746
  };
3731
3747
  }
@@ -3802,7 +3818,7 @@ Examples:
3802
3818
  snippet_id: z13.number().optional().describe("Snippet ID (required for snippet)"),
3803
3819
  // Filtering
3804
3820
  resolved: z13.boolean().optional().describe(
3805
- "Filter by resolved status: true for resolved, false for unresolved (client-side filtering)"
3821
+ "Filter by resolved status: true for resolved, false for unresolved. Only returns resolvable notes (excludes system notes). Client-side filtering."
3806
3822
  ),
3807
3823
  // Pagination
3808
3824
  first: z13.number().optional().describe("Number of items to return from the beginning (default: 20, max: 100)"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/opencode-gitlab-plugin",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "GitLab tools plugin for OpenCode - provides GitLab API access for merge requests, issues, pipelines, and more",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",