opencode-completion-gate 1.3.0 → 1.3.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.3.1](https://github.com/PauloDevelo/opencode-completion-gate/compare/v1.3.0...v1.3.1) (2026-09-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * honor bootstrap retry override before session creation ([#10](https://github.com/PauloDevelo/opencode-completion-gate/issues/10)) ([8cccd1e](https://github.com/PauloDevelo/opencode-completion-gate/commit/8cccd1ede29ead0325c18f6923e22d920353615d))
9
+
3
10
  ## [1.3.0](https://github.com/PauloDevelo/opencode-completion-gate/compare/v1.2.0...v1.3.0) (2026-09-09)
4
11
 
5
12
 
package/README.md CHANGED
@@ -55,3 +55,12 @@ Config lives per project at `<project-root>/.opencode/completion-gate.json` (re-
55
55
  ```
56
56
 
57
57
  Assertion types: `command`, `ado-pr`, `opencode-review`. See [completion-gate-plugin.md](completion-gate-plugin.md) for the full schema, ADO PR polling, review sessions, diagnostics (`gate-diag.log`), and troubleshooting.
58
+
59
+ Orchestration launchers can arm the first session without a chat message by
60
+ setting `OPENCODE_GATE_BOOTSTRAP_COMMAND_B64` (or
61
+ `OPENCODE_GATE_BOOTSTRAP_COMMAND`) and optionally
62
+ `OPENCODE_GATE_BOOTSTRAP_MAX_RETRIES`. The retry override is honored for
63
+ command-only bootstrap sessions and takes precedence over the project's
64
+ `maxRetries`; combined mode uses the project value. Bootstrap settings are
65
+ captured during plugin initialization, with a fallback read when the first
66
+ session is created, and are consumed once.
package/dist/plugin.js CHANGED
@@ -986,6 +986,8 @@ async function runGateTurnEnd(client, state) {
986
986
  }).catch((err) => logDiag(`retry prompt error: ${describeSdkError(err)}`));
987
987
  }
988
988
  var plugin = async ({ client }) => {
989
+ let pendingBootstrap = readBootstrapGateCommand();
990
+ if (pendingBootstrap) consumeBootstrapGateCommand();
989
991
  return {
990
992
  event: async ({ event }) => {
991
993
  try {
@@ -1017,7 +1019,8 @@ var plugin = async ({ client }) => {
1017
1019
  const created = createGateSessionState(validated.sessionID, validated.directory);
1018
1020
  sessions.set(created.sessionID, created);
1019
1021
  logDiag(`registered session ${created.sessionID} (${created.directory})`);
1020
- const bootstrap = readBootstrapGateCommand();
1022
+ const bootstrap = pendingBootstrap ?? readBootstrapGateCommand();
1023
+ pendingBootstrap = null;
1021
1024
  if (bootstrap) {
1022
1025
  consumeBootstrapGateCommand();
1023
1026
  created.extraCommand = bootstrap.command;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-completion-gate",
3
- "version": "1.3.0",
3
+ "version": "1.3.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",