@azumag/opencode-rate-limit-fallback 1.0.0 → 1.0.1
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/.claude/settings.local.json +3 -1
- package/README.md +17 -7
- package/package.json +1 -1
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
"WebFetch(domain:github.blog)",
|
|
9
9
|
"Bash(npm login:*)",
|
|
10
10
|
"Bash(npm token create:*)",
|
|
11
|
-
"Bash(npm view:*)"
|
|
11
|
+
"Bash(npm view:*)",
|
|
12
|
+
"Bash(git add:*)",
|
|
13
|
+
"Bash(git commit -m \"$\\(cat <<''EOF''\nPublish as scoped package @azumag/opencode-rate-limit-fallback\n\n- Rename package to @azumag/opencode-rate-limit-fallback\n- Add npm installation instructions to README\n- Add npm version badge\n\nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>\nEOF\n\\)\")"
|
|
12
14
|
]
|
|
13
15
|
}
|
|
14
16
|
}
|
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
# opencode-rate-limit-fallback
|
|
1
|
+
# @azumag/opencode-rate-limit-fallback
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@azumag/opencode-rate-limit-fallback)
|
|
2
4
|
|
|
3
5
|
OpenCode plugin that automatically switches to fallback models when rate limited.
|
|
4
6
|
|
|
@@ -12,18 +14,26 @@ OpenCode plugin that automatically switches to fallback models when rate limited
|
|
|
12
14
|
|
|
13
15
|
## Installation
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
### Via npm
|
|
16
18
|
|
|
17
19
|
```bash
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
npm install @azumag/opencode-rate-limit-fallback
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Then copy to the plugins directory:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
cp node_modules/@azumag/opencode-rate-limit-fallback/index.ts ~/.config/opencode/plugins/rate-limit-fallback.ts
|
|
21
27
|
```
|
|
22
28
|
|
|
23
|
-
|
|
29
|
+
### Manual Installation
|
|
30
|
+
|
|
31
|
+
Copy `index.ts` to your OpenCode plugins directory:
|
|
24
32
|
|
|
25
33
|
```bash
|
|
26
|
-
|
|
34
|
+
mkdir -p ~/.config/opencode/plugins
|
|
35
|
+
curl -o ~/.config/opencode/plugins/rate-limit-fallback.ts \
|
|
36
|
+
https://raw.githubusercontent.com/azumag/opencode-rate-limit-fallback/main/index.ts
|
|
27
37
|
```
|
|
28
38
|
|
|
29
39
|
Dependencies (`@opencode-ai/plugin`) will be automatically installed by OpenCode on startup.
|