opencode-plugin-kit 1.0.0-alpha.1 → 1.0.0-alpha.3

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-plugin-kit",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.3",
4
4
  "description": "Shared building blocks for OpenCode sidebar plugins: provider vocabulary, row formatting, defensive message traversal, connected-provider tracking, polling fetcher, cached resources, and a persisted view/filter picker (registry + slash command + dialog + toast).",
5
5
  "keywords": [
6
6
  "opencode",
@@ -10,19 +10,28 @@
10
10
  ],
11
11
  "license": "MIT",
12
12
  "author": "Ranjith Raj",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/ranjithraj/opencode-plugin-kit.git"
16
+ },
13
17
  "files": [
14
- "src"
18
+ "src",
19
+ "tsconfig.json"
15
20
  ],
16
21
  "type": "module",
17
22
  "exports": {
18
- ".": "./src/index.ts"
23
+ ".": "./src/index.ts",
24
+ "./collapsible": {
25
+ "types": "./src/collapsible.tsx",
26
+ "default": "./src/collapsible.tsx"
27
+ }
19
28
  },
20
29
  "scripts": {
21
30
  "check": "vp check",
22
31
  "check:fix": "vp check --fix",
23
32
  "fmt": "vp fmt",
24
33
  "lint": "vp lint",
25
- "typecheck": "vp check --typecheck",
34
+ "typecheck": "tsc --noEmit",
26
35
  "test:types": "vitest run --typecheck",
27
36
  "test:coverage": "vitest run --coverage.enabled"
28
37
  },
@@ -32,15 +41,19 @@
32
41
  "@opentui/core": "^0.5.11",
33
42
  "@opentui/solid": "^0.5.11",
34
43
  "@types/node": "^26.5.0",
44
+ "@vitest/coverage-v8": "^5.0.0",
35
45
  "happy-dom": "^20.14.0",
46
+ "solid-js": "1.9.15",
36
47
  "typescript": "^7.0.2",
48
+ "vite": "^7.0.0",
37
49
  "vite-plugin-solid": "^2.11.14",
38
50
  "vite-plus": "^0.1.16",
39
- "vitest": "^5.0.0"
51
+ "vitest": "^5.0.0",
52
+ "zod": "^4.5.4"
40
53
  },
41
54
  "peerDependencies": {
42
55
  "@opencode-ai/plugin": ">=1.18.25 <2 || 0.0.0-beta-19242",
43
- "solid-js": "1.9.15",
56
+ "solid-js": "^1.9.12",
44
57
  "zod": "^4.5.4"
45
58
  },
46
59
  "peerDependenciesMeta": {
@@ -48,9 +61,5 @@
48
61
  "optional": true
49
62
  }
50
63
  },
51
- "packageManager": "bun@1.4.2",
52
- "repository": {
53
- "type": "git",
54
- "url": "git+https://github.com/ranjithraj/opencode-plugin-kit.git"
55
- }
64
+ "packageManager": "npm@11.19.1"
56
65
  }
package/src/index.ts CHANGED
@@ -11,5 +11,4 @@ export * from "./pollingFetcher.ts"
11
11
  export * from "./workspace.ts"
12
12
  export * from "./toast.ts"
13
13
  export * from "./commands.ts"
14
- export * from "./collapsible.tsx"
15
14
  export * from "./host.ts"
package/tsconfig.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "nodenext",
4
+ "moduleResolution": "nodenext",
5
+ "target": "esnext",
6
+ "strict": true,
7
+ "skipLibCheck": true,
8
+ "noEmit": true,
9
+ "allowImportingTsExtensions": true,
10
+ "jsx": "react-jsx",
11
+ "jsxImportSource": "@opentui/solid",
12
+ "types": ["node"]
13
+ },
14
+ "include": ["src", "tests"],
15
+ "exclude": ["tests/**/*.test-d.ts"]
16
+ }