@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.
@@ -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
- ### Via npm
17
+ Add the plugin to your `opencode.json`:
18
18
 
19
- ```bash
20
- npm install @azumag/opencode-rate-limit-fallback
19
+ ```json
20
+ {
21
+ "plugins": ["@azumag/opencode-rate-limit-fallback"]
22
+ }
21
23
  ```
22
24
 
23
- Then copy to the plugins directory:
25
+ OpenCode will automatically install the plugin on startup.
24
26
 
25
- ```bash
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
@@ -76,6 +76,7 @@ function isRateLimitError(error: any): boolean {
76
76
  "quota exceeded",
77
77
  "resource exhausted",
78
78
  "usage limit",
79
+ "High concurrency usage of this API",
79
80
  "429",
80
81
  ];
81
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azumag/opencode-rate-limit-fallback",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "OpenCode plugin that automatically switches to fallback models when rate limited",
5
5
  "main": "index.ts",
6
6
  "type": "module",