@serkanalgur/opencodev2-slim 2.0.6 → 2.0.7

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/README.md CHANGED
@@ -141,6 +141,13 @@ Note: Compression is performed by the AI assistant using the `compress` tool. Th
141
141
 
142
142
  ## Changelog
143
143
 
144
+ ### 2.0.7
145
+
146
+ - Fix `Cannot find package 'react'` when the plugin is loaded from the global npm cache:
147
+ add a per-file `/** @jsxImportSource @opentui/solid */` pragma to `src/tui.tsx` so JSX
148
+ always compiles against `@opentui/solid/jsx-runtime`
149
+ - Ship `tsconfig.json` in the published package so loaders that read `jsxImportSource` from config pick it up
150
+
144
151
  ### 2.0.6
145
152
 
146
153
  - Add real `compaction` hook so history actually shrinks (the `context` hook only affects the outgoing request)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serkanalgur/opencodev2-slim",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Smart context management plugin for OpenCode v2 - semantic compression, cost-aware pruning, adaptive thresholds",
5
5
  "keywords": [
6
6
  "opencode",
@@ -33,6 +33,7 @@
33
33
  "files": [
34
34
  "dist/",
35
35
  "src/",
36
+ "tsconfig.json",
36
37
  "README.md",
37
38
  "LICENSE"
38
39
  ],
package/src/tui.tsx CHANGED
@@ -1,3 +1,4 @@
1
+ /** @jsxImportSource @opentui/solid */
1
2
  import { Show } from "solid-js"
2
3
  import { Plugin } from "@opencode/plugin/tui"
3
4
  import type { PanelInput } from "@opencode/plugin/tui/context"
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "jsx": "preserve",
7
+ "jsxImportSource": "@opentui/solid",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "resolveJsonModule": true,
13
+ "declaration": true,
14
+ "declarationMap": true,
15
+ "sourceMap": true,
16
+ "outDir": "./dist",
17
+ "rootDir": "./src",
18
+ "types": ["node"]
19
+ },
20
+ "include": ["src/**/*"],
21
+ "exclude": ["node_modules", "dist", "tests"]
22
+ }