opencode-thinking-fix 1.0.1 → 1.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-thinking-fix",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Fix DeepSeek/Kimi/GLM/MiMo reasoning_content 400 errors in OpenCode. Plugin + proxy + watchdog.",
5
5
  "license": "MIT",
6
6
  "author": "tbosancheros39",
@@ -19,6 +19,14 @@
19
19
  "type": "git",
20
20
  "url": "https://github.com/tbosancheros39/opencode-thinking-fix.git"
21
21
  },
22
+ "oc-plugin": ["server"],
23
+ "main": "./plugins/opencode-thinking-fix-universal.ts",
24
+ "exports": {
25
+ "./server": {
26
+ "import": "./plugins/opencode-thinking-fix-universal.ts",
27
+ "types": "./plugins/opencode-thinking-fix-universal.ts"
28
+ }
29
+ },
22
30
  "files": [
23
31
  "plugins/",
24
32
  "proxy/",
@@ -31,5 +39,8 @@
31
39
  ],
32
40
  "scripts": {
33
41
  "test": "node tests/test-plugin.js && node tests/test-proxy.js"
42
+ },
43
+ "dependencies": {
44
+ "@opencode-ai/plugin": "^1.3.0"
34
45
  }
35
46
  }
@@ -1,4 +1,4 @@
1
- import type { Plugin } from '@opencode-ai/plugin'
1
+ import type { Plugin, PluginModule } from '@opencode-ai/plugin'
2
2
 
3
3
  // ─────────────────────────────────────────────────────────────────────────────
4
4
  // CONFIRMED FACTS (cross-validated across DeepSeek V4 Pro, Claude MAX, Kimi
@@ -103,4 +103,4 @@ export const ThinkingFixPlugin: Plugin = async ({ client }) => {
103
103
  }
104
104
  }
105
105
 
106
- export default ThinkingFixPlugin
106
+ export default { server: ThinkingFixPlugin } satisfies PluginModule