@rizal72/oc-models-pro 0.1.3 → 0.1.5
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/bench.ts +2 -1
- package/multipliers.ts +2 -1
- package/package.json +3 -3
- package/tui.js +1024 -0
- package/tui.tsx +0 -1013
package/bench.ts
CHANGED
|
@@ -18,7 +18,8 @@ import { dirname, join } from "node:path"
|
|
|
18
18
|
|
|
19
19
|
export const CATALOG = "https://catalog.stencil.so/models.json"
|
|
20
20
|
|
|
21
|
-
const
|
|
21
|
+
const CACHE_DIR = process.env.XDG_CACHE_HOME || join(homedir(), ".cache")
|
|
22
|
+
const CACHE = join(CACHE_DIR, "oc-models-pro", "bench.json")
|
|
22
23
|
const GRACE_MS = 6 * 60 * 60 * 1000
|
|
23
24
|
|
|
24
25
|
export interface Bench {
|
package/multipliers.ts
CHANGED
|
@@ -54,7 +54,8 @@ export interface Credits {
|
|
|
54
54
|
peak?: number
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const CACHE_DIR = process.env.XDG_CACHE_HOME || join(homedir(), ".cache")
|
|
58
|
+
const CACHE = join(CACHE_DIR, "oc-models-pro", "go-limits.json")
|
|
58
59
|
|
|
59
60
|
function text(html: string): string {
|
|
60
61
|
return html
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rizal72/oc-models-pro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenCode v2 model picker with prices, context, intelligence, Go credit and the cost of a request",
|
|
6
6
|
"repository": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"files": [
|
|
12
12
|
"*.ts",
|
|
13
|
-
"
|
|
13
|
+
"tui.js",
|
|
14
14
|
"README.md"
|
|
15
15
|
],
|
|
16
16
|
"keywords": [
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
26
|
".": "./index.ts",
|
|
27
|
-
"./tui": "./tui.
|
|
27
|
+
"./tui": "./tui.js"
|
|
28
28
|
}
|
|
29
29
|
}
|