|
1 | 1 | { |
2 | 2 | "name": "@christiangalsterer/opencode-requesty-plugin", |
3 | 3 | "version": "2.0.1", |
4 | | - "author": { |
5 | | - "name": "Christian Galsterer" |
6 | | - }, |
7 | | - "license": "MIT", |
8 | 4 | "description": "opencode TUI plugin: shows Requesty.ai monthly budget, current spend, and per-model cost distribution in the session sidebar, in the session prompt and with a detail dialog via the /requesty command", |
9 | 5 | "keywords": ["opencode", "opencode-plugin", "opencode-tui", "opencode-tui-plugin", "requesty", "tui", "cost-tracking"], |
| 6 | + "homepage": "https://github.com/christiangalsterer/opencode-requesty-plugin#readme", |
10 | 7 | "repository": { |
11 | 8 | "type": "git", |
12 | 9 | "url": "git+https://github.com/christiangalsterer/opencode-requesty-plugin.git" |
13 | 10 | }, |
14 | | - "homepage": "https://github.com/christiangalsterer/opencode-requesty-plugin#readme", |
| 11 | + "license": "MIT", |
| 12 | + "author": { |
| 13 | + "name": "Christian Galsterer" |
| 14 | + }, |
15 | 15 | "type": "module", |
16 | 16 | "exports": { |
17 | 17 | "./tui": { |
18 | | - "import": "./dist/tui.js", |
19 | | - "types": "./dist/tui.d.ts" |
| 18 | + "types": "./dist/tui.d.ts", |
| 19 | + "import": "./dist/tui.js" |
20 | 20 | }, |
21 | 21 | "./package.json": "./package.json" |
22 | 22 | }, |
23 | | - "engines": { |
24 | | - "opencode": ">=1.18.16 <3" |
| 23 | + "files": ["dist", "!dist/**/*.map", "README.md", "LICENSE"], |
| 24 | + "scripts": { |
| 25 | + "biome": "biome check --skip=useBlockStatements --skip=noIncrementDecrement --skip=noNonNullAssertion", |
| 26 | + "biome:fix": "biome check --fix", |
| 27 | + "build": "bun run typecheck && bun run build.ts", |
| 28 | + "ci": "bun run clean && bun install --frozen-lockfile && bun test && bun run build && bun run package:check && bun run renovate:config && bun pm pack --ignore-scripts && npm i --omit=dev --dry-run *.tgz", |
| 29 | + "clean": "bun run clean:dist && bun run clean:deps", |
| 30 | + "clean:deps": "rm -rf ./node_modules && bun run deps", |
| 31 | + "clean:dist": "rm -rf ./dist && rm -rf christiangalsterer-opencode-requesty-plugin*.tgz && mkdir -p ./dist", |
| 32 | + "deps": "bun install", |
| 33 | + "docker:build:v1": "docker build -f Dockerfile.v1 -t opencode-requesty-plugin:v1 .", |
| 34 | + "docker:build:v2": "docker build -f Dockerfile.v2 -t opencode-requesty-plugin:v2 .", |
| 35 | + "docker:run:v1": "bun run build && docker run --rm -it -v \"$HOME\"/.config/opencode/opencode.json:/home/harness/.config/opencode/opencode.json:ro -v \"$PWD\":/home/harness/plugin:ro -v \"$PWD\"/docker/tui-v1.json:/home/harness/workspace/.opencode/tui.json:ro -e REQUESTY_API_KEY=\"$REQUESTY_API_KEY\" opencode-requesty-plugin:v1", |
| 36 | + "docker:run:v2": "bun run build && docker run --rm -it -v \"$HOME\"/.config/opencode/opencode.json:/home/harness/.config/opencode/opencode.json:ro -v \"$PWD\":/home/harness/plugin:ro -v \"$PWD\"/docker/tui.ts:/home/harness/workspace/.opencode/plugins/requesty/tui.ts:ro -e REQUESTY_API_KEY=\"$REQUESTY_API_KEY\" opencode-requesty-plugin:v2", |
| 37 | + "format": "biome format", |
| 38 | + "format:fix": "biome format --fix", |
| 39 | + "husky": "biome format --fix", |
| 40 | + "package:check": "bun scripts/check-package-artifact.ts", |
| 41 | + "prepare": "husky", |
| 42 | + "publish-npm": "bun run ci && bun publish --access=public", |
| 43 | + "publish-npm:dry-run": "bun run ci && bun publish --access=public --dry-run", |
| 44 | + "release:prepare": "bun run clean && bun install && bun run format && bun test", |
| 45 | + "renovate:config": "npx renovate-config-validator", |
| 46 | + "test": "bun run typecheck && bun test", |
| 47 | + "test:coverage": "bun run typecheck && bun test --coverage", |
| 48 | + "typecheck": "tsc --noEmit" |
25 | 49 | }, |
26 | | - "publishConfig": { |
27 | | - "access": "public" |
| 50 | + "lint-staged": { |
| 51 | + "*": "bun run husky" |
| 52 | + }, |
| 53 | + "overrides": { |
| 54 | + "solid-js": "$solid-js" |
28 | 55 | }, |
29 | 56 | "devDependencies": { |
30 | 57 | "@biomejs/biome": "2.5.15", |
|
49 | 76 | "peerDependencies": { |
50 | 77 | "@opencode-ai/plugin": ">=1.18.16 <2", |
51 | 78 | "@opencode-ai/sdk": ">=1.18.16 <2", |
52 | | - "@opencode/plugin": "^2.0.24", |
53 | 79 | "@opencode/client": "^2.0.24", |
| 80 | + "@opencode/plugin": "^2.0.24", |
54 | 81 | "@opencode/theme": "^2.0.24", |
55 | 82 | "@opentui/core": ">=0.5.3 <1", |
56 | 83 | "@opentui/keymap": ">=0.5.3 <1", |
|
64 | 91 | "@opencode-ai/sdk": { |
65 | 92 | "optional": true |
66 | 93 | }, |
67 | | - "@opencode/plugin": { |
| 94 | + "@opencode/client": { |
68 | 95 | "optional": true |
69 | 96 | }, |
70 | | - "@opencode/client": { |
| 97 | + "@opencode/plugin": { |
71 | 98 | "optional": true |
72 | 99 | }, |
73 | 100 | "@opencode/theme": { |
74 | 101 | "optional": true |
75 | 102 | } |
76 | 103 | }, |
77 | | - "overrides": { |
78 | | - "solid-js": "$solid-js" |
79 | | - }, |
80 | | - "files": ["dist", "!dist/**/*.map", "README.md", "LICENSE"], |
81 | | - "scripts": { |
82 | | - "ci": "bun run clean && bun install --frozen-lockfile && bun test && bun run build && bun run package:check && bun run renovate:config && bun pm pack --ignore-scripts && npm i --omit=dev --dry-run *.tgz", |
83 | | - "biome": "biome check --skip=useBlockStatements --skip=noIncrementDecrement --skip=noNonNullAssertion", |
84 | | - "biome:fix": "biome check --fix", |
85 | | - "build": "bun run typecheck && bun run build.ts", |
86 | | - "clean": "bun run clean:dist && bun run clean:deps", |
87 | | - "clean:dist": "rm -rf ./dist && rm -rf christiangalsterer-opencode-requesty-plugin*.tgz && mkdir -p ./dist", |
88 | | - "clean:deps": "rm -rf ./node_modules && bun run deps", |
89 | | - "docker:build:v1": "docker build -f Dockerfile.v1 -t opencode-requesty-plugin:v1 .", |
90 | | - "docker:run:v1": "bun run build && docker run --rm -it -v \"$HOME\"/.config/opencode/opencode.json:/home/harness/.config/opencode/opencode.json:ro -v \"$PWD\":/home/harness/plugin:ro -v \"$PWD\"/docker/tui-v1.json:/home/harness/workspace/.opencode/tui.json:ro -e REQUESTY_API_KEY=\"$REQUESTY_API_KEY\" opencode-requesty-plugin:v1", |
91 | | - "docker:build:v2": "docker build -f Dockerfile.v2 -t opencode-requesty-plugin:v2 .", |
92 | | - "docker:run:v2": "bun run build && docker run --rm -it -v \"$HOME\"/.config/opencode/opencode.json:/home/harness/.config/opencode/opencode.json:ro -v \"$PWD\":/home/harness/plugin:ro -v \"$PWD\"/docker/tui.ts:/home/harness/workspace/.opencode/plugins/requesty/tui.ts:ro -e REQUESTY_API_KEY=\"$REQUESTY_API_KEY\" opencode-requesty-plugin:v2", |
93 | | - "deps": "bun install", |
94 | | - "format": "biome format", |
95 | | - "format:fix": "biome format --fix", |
96 | | - "husky": "biome format --fix", |
97 | | - "typecheck": "tsc --noEmit", |
98 | | - "test": "bun run typecheck && bun test", |
99 | | - "test:coverage": "bun run typecheck && bun test --coverage", |
100 | | - "release:prepare": "bun run clean && bun install && bun run format && bun test", |
101 | | - "package:check": "bun scripts/check-package-artifact.ts", |
102 | | - "publish-npm": "bun run ci && bun publish --access=public", |
103 | | - "publish-npm:dry-run": "bun run ci && bun publish --access=public --dry-run", |
104 | | - "prepare": "husky", |
105 | | - "renovate:config": "npx renovate-config-validator" |
| 104 | + "engines": { |
| 105 | + "opencode": ">=1.18.16 <3" |
106 | 106 | }, |
107 | | - "lint-staged": { |
108 | | - "*": "bun run husky" |
| 107 | + "publishConfig": { |
| 108 | + "access": "public" |
109 | 109 | } |
110 | 110 | } |
0 commit comments