opencode-cmd-provider 1.1.0 → 1.2.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,12 +1,13 @@
1
1
  {
2
2
  "name": "opencode-cmd-provider",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Command Code provider + plugin for opencode",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "exports": {
8
8
  ".": "./dist/index.js",
9
- "./server": "./dist/index.js"
9
+ "./server": "./dist/index.js",
10
+ "./tui": "./dist/tui.js"
10
11
  },
11
12
  "files": [
12
13
  "dist",
@@ -15,14 +16,17 @@
15
16
  "CHANGELOG.md"
16
17
  ],
17
18
  "scripts": {
18
- "build": "tsc -p tsconfig.json",
19
+ "build": "tsc -p tsconfig.json && npm run build:tui",
19
20
  "typecheck": "tsc --noEmit",
20
21
  "refresh:snapshot": "node scripts/refresh-snapshot.mjs",
22
+ "refresh:deals": "node scripts/refresh-deals.mjs",
23
+ "refresh": "npm run refresh:snapshot && npm run refresh:deals -- --fixtures",
21
24
  "test": "npm run typecheck && npm run test:unit && npm run test:integration && npm run test:contract && npm run format:check",
22
- "test:unit": "tsx tests/env.test.ts && tsx tests/auth-key.test.ts && tsx tests/converters.test.ts && tsx tests/stream.test.ts && tsx tests/redact.test.ts && tsx tests/cost.test.ts && tsx tests/retry.test.ts && tsx tests/reasoning.test.ts && tsx tests/modalities.test.ts && tsx tests/snapshot.test.ts && tsx tests/refresh-snapshot.test.ts && tsx tests/oauth.test.ts && tsx tests/parse-facts.test.ts && tsx tests/catalog-metadata.test.ts && tsx tests/plugin-models.test.ts",
25
+ "test:unit": "tsx tests/env.test.ts && tsx tests/auth-key.test.ts && tsx tests/converters.test.ts && tsx tests/stream.test.ts && tsx tests/redact.test.ts && tsx tests/cost.test.ts && tsx tests/retry.test.ts && tsx tests/reasoning.test.ts && tsx tests/modalities.test.ts && tsx tests/snapshot.test.ts && tsx tests/refresh-snapshot.test.ts && tsx tests/oauth.test.ts && tsx tests/parse-facts.test.ts && tsx tests/parse-modalities.test.ts && tsx tests/catalog-metadata.test.ts && tsx tests/plugin-models.test.ts && tsx tests/vendor.test.ts && tsx tests/deals-enrichment.test.ts && tsx tests/plan-summary.test.ts && tsx tests/html-tables.test.ts && tsx tests/parse-docs.test.ts && tsx tests/refresh-deals.test.ts && tsx tests/tui-deals-panel.test.ts && tsx tests/plugin-install.test.ts",
23
26
  "test:integration": "tsx tests/integration-do-stream.test.ts && tsx tests/integration-do-generate.test.ts",
24
27
  "test:contract": "tsx tests/contract.test.ts",
25
28
  "test:e2e": "node tests/e2e-opencode.mjs",
29
+ "build:tui": "bun scripts/build-tui.ts",
26
30
  "format": "prettier --write '**/*.{ts,mjs,json,md}'",
27
31
  "format:check": "prettier --check '**/*.{ts,mjs,json,md}'"
28
32
  },
@@ -39,11 +43,15 @@
39
43
  "url": "git+https://github.com/rashidrazak/opencode-cmd-provider.git"
40
44
  },
41
45
  "dependencies": {
42
- "@ai-sdk/provider": "^4.0.7"
46
+ "@ai-sdk/provider": "^4.0.7",
47
+ "@opentui/core": "^0.5.4",
48
+ "@opentui/solid": "^0.5.4",
49
+ "solid-js": "1.9.12"
43
50
  },
44
51
  "devDependencies": {
45
52
  "@opencode-ai/plugin": "*",
46
53
  "@types/node": "^26.2.0",
54
+ "acorn": "^8.18.0",
47
55
  "prettier": "^3.9.6",
48
56
  "tsx": "^4.23.12",
49
57
  "typescript": "^7.0.2"