opencode-auth-load-balancer 0.7.1 → 0.8.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/README.md +23 -38
- package/dist/index.d.ts +0 -6
- package/dist/index.js +13 -29140
- package/dist/refresh.d.ts +3 -1
- package/dist/v1.js +12 -5
- package/dist/v2-entry.d.ts +6 -0
- package/dist/v2-entry.js +47529 -0
- package/index.js +2 -2
- package/package.json +10 -4
- package/tui.ts +1 -1
- package/v2.js +2 -0
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
//
|
|
2
|
-
export
|
|
1
|
+
// The default package and local directory entry both target OpenCode 1.
|
|
2
|
+
export * from './dist/index.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-auth-load-balancer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Load-balance opencode requests across multiple Anthropic (Claude) and OpenAI (Codex) OAuth accounts and Kimi Code subscriptions, weighted primarily by weekly usage with drain-before-reset scheduling.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,18 +27,24 @@
|
|
|
27
27
|
},
|
|
28
28
|
"./server": "./dist/index.js",
|
|
29
29
|
"./tui": "./tui.ts",
|
|
30
|
-
"./tui-v1": "./tui/auth-load-balancer-tui.ts"
|
|
30
|
+
"./tui-v1": "./tui/auth-load-balancer-tui.ts",
|
|
31
|
+
"./v2": {
|
|
32
|
+
"types": "./dist/v2-entry.d.ts",
|
|
33
|
+
"default": "./dist/v2-entry.js"
|
|
34
|
+
},
|
|
35
|
+
"./tui-v2": "./tui/auth-load-balancer-v2.ts"
|
|
31
36
|
},
|
|
32
37
|
"files": [
|
|
33
38
|
"index.js",
|
|
39
|
+
"v2.js",
|
|
34
40
|
"tui.ts",
|
|
35
41
|
"dist",
|
|
36
42
|
"tui"
|
|
37
43
|
],
|
|
38
44
|
"scripts": {
|
|
39
45
|
"sync:tui": "bun -e \"await Bun.write('tui/auth-load-balancer-scoring.ts', Bun.file('src/scheduler/score-core.ts')); await Bun.write('tui/auth-load-balancer-rpc.ts', Bun.file('src/v2-rpc.ts'))\"",
|
|
40
|
-
"build": "bun run sync:tui && bun build ./src/index.ts ./src/v1.ts ./src/sdk/anthropic.ts ./src/sdk/openai.ts ./src/sdk/kimi.ts --outdir dist --target node --format esm --external @opencode/plugin --external effect --external 'effect/*' && tsc -p tsconfig.build.json",
|
|
41
|
-
"dev": "bun build ./src/index.ts ./src/v1.ts ./src/sdk/anthropic.ts ./src/sdk/openai.ts ./src/sdk/kimi.ts --outdir dist --target node --format esm --external @opencode/plugin --external effect --external 'effect/*' --watch",
|
|
46
|
+
"build": "bun run sync:tui && bun build ./src/index.ts ./src/v1.ts ./src/v2-entry.ts ./src/sdk/anthropic.ts ./src/sdk/openai.ts ./src/sdk/kimi.ts --outdir dist --target node --format esm --external @opencode/plugin --external effect --external 'effect/*' && tsc -p tsconfig.build.json",
|
|
47
|
+
"dev": "bun build ./src/index.ts ./src/v1.ts ./src/v2-entry.ts ./src/sdk/anthropic.ts ./src/sdk/openai.ts ./src/sdk/kimi.ts --outdir dist --target node --format esm --external @opencode/plugin --external effect --external 'effect/*' --watch",
|
|
42
48
|
"typecheck": "tsc --noEmit && tsc -p tsconfig.tui.json --noEmit",
|
|
43
49
|
"typecheck:tui": "tsc -p tsconfig.tui.json --noEmit",
|
|
44
50
|
"lint": "oxlint",
|
package/tui.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Local directory discovery and the published ./tui export share this entry.
|
|
2
|
-
export { default } from './tui/auth-load-balancer-
|
|
2
|
+
export { default } from './tui/auth-load-balancer-tui'
|
package/v2.js
ADDED