opencode-completion-gate 1.1.0 → 1.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.1](https://github.com/PauloDevelo/opencode-completion-gate/compare/v1.1.0...v1.1.1) (2026-09-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * parse equals-form retry overrides ([7473ee7](https://github.com/PauloDevelo/opencode-completion-gate/commit/7473ee770af1e8cf21a00e54fd3fe7d7251dd66e))
9
+
3
10
  ## [1.1.0](https://github.com/PauloDevelo/opencode-completion-gate/compare/v1.0.0...v1.1.0) (2026-09-06)
4
11
 
5
12
 
package/dist/index.js CHANGED
@@ -179,22 +179,22 @@ function parseOnlyCommand(remainder) {
179
179
  let leading = null;
180
180
  let trailing = null;
181
181
  let invalid = false;
182
- const leadingMatch = /^--(?:retries|max-retries)\s+(\S+)\s*/i.exec(body);
182
+ const leadingMatch = /^--(?:retries|max-retries)(?:\s+|=)(\S+)\s*/i.exec(body);
183
183
  if (leadingMatch) {
184
184
  const parsed = parsePositiveIntToken(leadingMatch[1]);
185
185
  if (parsed === null) invalid = true;
186
186
  else leading = parsed;
187
187
  body = body.slice(leadingMatch[0].length).trim();
188
- } else if (/^--(?:retries|max-retries)(\s|$)/i.test(body)) {
188
+ } else if (/^--(?:retries|max-retries)(?:\s*=\s*)?$/i.test(body)) {
189
189
  invalid = true;
190
190
  }
191
- const trailingMatch = /\s+--(?:retries|max-retries)\s+(\S+)\s*$/i.exec(body);
191
+ const trailingMatch = /\s+--(?:retries|max-retries)(?:\s+|=)(\S+)\s*$/i.exec(body);
192
192
  if (trailingMatch) {
193
193
  const parsed = parsePositiveIntToken(trailingMatch[1]);
194
194
  if (parsed === null) invalid = true;
195
195
  else trailing = parsed;
196
196
  body = body.slice(0, trailingMatch.index).trim();
197
- } else if (/\s+--(?:retries|max-retries)\s*$/i.test(body)) {
197
+ } else if (/\s+--(?:retries|max-retries)(?:\s*=\s*)?$/i.test(body)) {
198
198
  invalid = true;
199
199
  }
200
200
  const maxRetries = leading ?? trailing ?? void 0;
package/dist/plugin.js CHANGED
@@ -223,22 +223,22 @@ function parseOnlyCommand(remainder) {
223
223
  let leading = null;
224
224
  let trailing = null;
225
225
  let invalid = false;
226
- const leadingMatch = /^--(?:retries|max-retries)\s+(\S+)\s*/i.exec(body);
226
+ const leadingMatch = /^--(?:retries|max-retries)(?:\s+|=)(\S+)\s*/i.exec(body);
227
227
  if (leadingMatch) {
228
228
  const parsed = parsePositiveIntToken(leadingMatch[1]);
229
229
  if (parsed === null) invalid = true;
230
230
  else leading = parsed;
231
231
  body = body.slice(leadingMatch[0].length).trim();
232
- } else if (/^--(?:retries|max-retries)(\s|$)/i.test(body)) {
232
+ } else if (/^--(?:retries|max-retries)(?:\s*=\s*)?$/i.test(body)) {
233
233
  invalid = true;
234
234
  }
235
- const trailingMatch = /\s+--(?:retries|max-retries)\s+(\S+)\s*$/i.exec(body);
235
+ const trailingMatch = /\s+--(?:retries|max-retries)(?:\s+|=)(\S+)\s*$/i.exec(body);
236
236
  if (trailingMatch) {
237
237
  const parsed = parsePositiveIntToken(trailingMatch[1]);
238
238
  if (parsed === null) invalid = true;
239
239
  else trailing = parsed;
240
240
  body = body.slice(0, trailingMatch.index).trim();
241
- } else if (/\s+--(?:retries|max-retries)\s*$/i.test(body)) {
241
+ } else if (/\s+--(?:retries|max-retries)(?:\s*=\s*)?$/i.test(body)) {
242
242
  invalid = true;
243
243
  }
244
244
  const maxRetries = leading ?? trailing ?? void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-completion-gate",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "OpenCode plugin: per-session quality gate that blocks declaring done until configured assertions pass",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",