@tryvira/opencode 0.1.66 → 0.1.68

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -344,6 +344,13 @@ var ViraClient = class {
344
344
  query: { ...options.reviewState ? { reviewState: options.reviewState } : {}, ...listQuery(options) }
345
345
  });
346
346
  }
347
+ async reviewDiscoveryCandidate(kind, key, input, options = {}) {
348
+ required(kind, "SDK_DISCOVERY_CANDIDATE_KIND_REQUIRED");
349
+ required(key, "SDK_DISCOVERY_CANDIDATE_KEY_REQUIRED");
350
+ required(typeof input?.decision === "string" ? input.decision : "", "SDK_DISCOVERY_CANDIDATE_DECISION_REQUIRED");
351
+ const path = `/v1/discovery/candidates/${encodeURIComponent(kind)}/${encodeURIComponent(key)}/review`;
352
+ return this.request({ method: "POST", path, body: input }, { idempotencyKey: options.idempotencyKey ?? await contentIdempotencyKey(`sdk:discovery-review:${kind}:${key}`, input) });
353
+ }
347
354
  async createSignalDiscoveryProposal(input, options = {}) {
348
355
  return this.request({ method: "POST", path: "/v1/signals/discovery-proposals", body: input }, { idempotencyKey: options.idempotencyKey ?? await contentIdempotencyKey("sdk:signal-discovery-proposal", input) });
349
356
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/opencode",
3
- "version": "0.1.66",
3
+ "version": "0.1.68",
4
4
  "description": "OpenCode host lifecycle integration for Vira",
5
5
  "keywords": [
6
6
  "opencode",
@@ -28,7 +28,7 @@
28
28
  "pack:check": "npm run build && node ../../scripts/opencode-plugin-smoke.mjs && node ../../scripts/opencode-plugin-host-acceptance.mjs"
29
29
  },
30
30
  "dependencies": {
31
- "@tryvira/sdk": "0.1.71"
31
+ "@tryvira/sdk": "0.1.75"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "effect": "^4.0.0"