opencode-thinking-fix 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-thinking-fix",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
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",
@@ -20,13 +20,18 @@
20
20
  "url": "git+https://github.com/tbosancheros39/opencode-thinking-fix.git"
21
21
  },
22
22
  "oc-plugin": [
23
- "server"
23
+ "server",
24
+ "tui"
24
25
  ],
25
26
  "main": "./plugins/opencode-thinking-fix-universal.ts",
26
27
  "exports": {
27
28
  "./server": {
28
29
  "import": "./plugins/opencode-thinking-fix-universal.ts",
29
30
  "types": "./plugins/opencode-thinking-fix-universal.ts"
31
+ },
32
+ "./tui": {
33
+ "import": "./plugins/opencode-thinking-fix-tui.ts",
34
+ "types": "./plugins/opencode-thinking-fix-tui.ts"
30
35
  }
31
36
  },
32
37
  "files": [
@@ -0,0 +1,20 @@
1
+ import type { TUIPlugin } from '@opencode-ai/plugin'
2
+
3
+ /**
4
+ * No-op TUI plugin entry point.
5
+ *
6
+ * opencode-thinking-fix is a server-side plugin: it patches outgoing chat
7
+ * messages via experimental.chat.messages.transform. OpenCode's plugin
8
+ * installer, however, validates that a package exposes either a server or a
9
+ * TUI target. By exposing an empty TUI target we make installation via
10
+ * Ctrl+P / `opencode plugin opencode-thinking-fix` work without warnings.
11
+ */
12
+ const tuiPlugin: TUIPlugin = {
13
+ name: 'opencode-thinking-fix-tui',
14
+ version: '1.1.6',
15
+ activate() {
16
+ // nothing to do at TUI level
17
+ },
18
+ }
19
+
20
+ export default tuiPlugin