@cgasgarth/opencode-for-rust 1.1.4-next.1 → 1.1.4

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 +3 -13
  2. package/package.json +5 -3
package/dist/index.js CHANGED
@@ -262,14 +262,6 @@ var RustPlugin = async (context) => {
262
262
  const formatter = new RustContentFormatter(config);
263
263
  const extractor = new RegexRustTypeExtractor(config);
264
264
  debugLog("Created lookup, formatter, extractor");
265
- if (!tool) {
266
- debugLog('FATAL: @opencode-ai/plugin "tool" export is undefined');
267
- }
268
- if (!tool.schema) {
269
- debugLog("FATAL: tool.schema is undefined - cannot define Zod schemas");
270
- } else {
271
- debugLog("tool.schema is available");
272
- }
273
265
  try {
274
266
  await lookup.refresh();
275
267
  debugLog("Initial refresh completed");
@@ -283,7 +275,7 @@ var RustPlugin = async (context) => {
283
275
  args: {
284
276
  name: z.string().describe("The name of the type to look up")
285
277
  },
286
- async execute(args, _context) {
278
+ async execute(args) {
287
279
  debugLog(`lookup_type called with: ${JSON.stringify(args)}`);
288
280
  try {
289
281
  await lookup.refresh();
@@ -304,10 +296,8 @@ var RustPlugin = async (context) => {
304
296
  }),
305
297
  list_types: tool({
306
298
  description: "List all available Rust type names in the project",
307
- args: {
308
- ignore: z.boolean().optional().describe("Ignore this argument (legacy support)")
309
- },
310
- async execute(_args, _context) {
299
+ args: {},
300
+ async execute() {
311
301
  debugLog("list_types called");
312
302
  try {
313
303
  await lookup.refresh();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgasgarth/opencode-for-rust",
3
- "version": "1.1.4-next.1",
3
+ "version": "1.1.4",
4
4
  "description": "OpenCode plugin for Rust",
5
5
  "author": {
6
6
  "name": "Sisyphus",
@@ -28,8 +28,10 @@
28
28
  "dependencies": {
29
29
  "@opencode-ai/plugin": "1.0.85"
30
30
  },
31
+ "peerDependencies": {
32
+ "zod": "^4.0.0"
33
+ },
31
34
  "devDependencies": {
32
- "zod": "^4.0.0",
33
35
  "@eslint/js": "^9.39.1",
34
36
  "@types/bun": "latest",
35
37
  "@types/node": "^20.12.7",
@@ -50,7 +52,7 @@
50
52
  "scripts": {
51
53
  "test": "bun test tests/",
52
54
  "typecheck": "tsc --noEmit",
53
- "build": "esbuild ./src/index.ts --bundle --format=esm --platform=node --outdir=dist --external:@opencode-ai/plugin --external:zod && tsc --project tsconfig.build.json",
55
+ "build": "esbuild ./src/index.ts --bundle --format=esm --platform=node --outdir=dist --external:zod && tsc --project tsconfig.build.json",
54
56
  "lint": "eslint src --max-warnings 0",
55
57
  "format": "prettier --check .",
56
58
  "prepare": "husky"