@azumag/opencode-rate-limit-fallback 1.0.1 → 1.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/.claude/settings.local.json +3 -1
- package/README.md +7 -11
- package/index.ts +1 -0
- package/package.json +1 -1
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"Bash(npm token create:*)",
|
|
11
11
|
"Bash(npm view:*)",
|
|
12
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\\)\")"
|
|
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\\)\")",
|
|
14
|
+
"Bash(git push:*)",
|
|
15
|
+
"Bash(git commit:*)"
|
|
14
16
|
]
|
|
15
17
|
}
|
|
16
18
|
}
|
package/README.md
CHANGED
|
@@ -14,19 +14,17 @@ OpenCode plugin that automatically switches to fallback models when rate limited
|
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Add the plugin to your `opencode.json`:
|
|
18
18
|
|
|
19
|
-
```
|
|
20
|
-
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"plugins": ["@azumag/opencode-rate-limit-fallback"]
|
|
22
|
+
}
|
|
21
23
|
```
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
OpenCode will automatically install the plugin on startup.
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
cp node_modules/@azumag/opencode-rate-limit-fallback/index.ts ~/.config/opencode/plugins/rate-limit-fallback.ts
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Manual Installation
|
|
27
|
+
### Manual Installation (Alternative)
|
|
30
28
|
|
|
31
29
|
Copy `index.ts` to your OpenCode plugins directory:
|
|
32
30
|
|
|
@@ -36,8 +34,6 @@ curl -o ~/.config/opencode/plugins/rate-limit-fallback.ts \
|
|
|
36
34
|
https://raw.githubusercontent.com/azumag/opencode-rate-limit-fallback/main/index.ts
|
|
37
35
|
```
|
|
38
36
|
|
|
39
|
-
Dependencies (`@opencode-ai/plugin`) will be automatically installed by OpenCode on startup.
|
|
40
|
-
|
|
41
37
|
Restart OpenCode to load the plugin.
|
|
42
38
|
|
|
43
39
|
## Configuration
|
package/index.ts
CHANGED