@cgasgarth/opencode-for-rust 1.1.5 → 1.1.6

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -240,7 +240,6 @@ class RustContentFormatter {
240
240
 
241
241
  // src/index.ts
242
242
  import { appendFileSync } from "fs";
243
- var z = tool.schema;
244
243
  var DEBUG_LOG = "/tmp/opencode-rust-plugin.log";
245
244
  function debugLog(msg) {
246
245
  const timestamp = new Date().toISOString();
@@ -265,7 +264,8 @@ var RustPlugin = async (context) => {
265
264
  if (!tool) {
266
265
  debugLog('FATAL: @opencode-ai/plugin "tool" export is undefined');
267
266
  }
268
- if (!tool.schema) {
267
+ const z = tool.schema;
268
+ if (!z) {
269
269
  debugLog("FATAL: tool.schema is undefined - cannot define Zod schemas");
270
270
  } else {
271
271
  debugLog("tool.schema is available");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgasgarth/opencode-for-rust",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "OpenCode plugin for Rust",
5
5
  "author": {
6
6
  "name": "Sisyphus",