opencode-nim-rotator 0.0.1 → 0.0.2
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 +4 -3
- package/bin/opencode-nim-rotator.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ The postinstall script automatically adds the plugin to your `~/.config/opencode
|
|
|
23
23
|
Run the TUI manager:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
|
|
26
|
+
opencode-nim-rotator
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
Or manually — add at least one key via OpenCode's auth system:
|
|
@@ -37,7 +37,7 @@ Select "Enter NVIDIA NIM API Key" and paste your key.
|
|
|
37
37
|
### 2. Add more keys via the TUI
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
|
|
40
|
+
opencode-nim-rotator
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
The TUI lets you:
|
|
@@ -112,7 +112,8 @@ Keys are stored in `~/.config/opencode/nim-rotator-keys.json` with file mode `06
|
|
|
112
112
|
],
|
|
113
113
|
"currentIndex": 0,
|
|
114
114
|
"rotationStrategy": "round-robin",
|
|
115
|
-
"updatedAt": 1700000000000
|
|
115
|
+
"updatedAt": 1700000000000,
|
|
116
|
+
"lastUsedKeyId": "uuid"
|
|
116
117
|
}
|
|
117
118
|
```
|
|
118
119
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
3
|
import { createCliRenderer } from "@opentui/core";
|
|
4
|
-
import { state } from "../
|
|
5
|
-
import { initApp } from "../
|
|
4
|
+
import { state } from "../dist/tui/state.js";
|
|
5
|
+
import { initApp } from "../dist/tui/app.js";
|
|
6
6
|
|
|
7
7
|
const renderer = await createCliRenderer({ exitOnCtrlC: false });
|
|
8
8
|
|