oira666_pi-limits-wait 0.4.0 → 0.4.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/README.md CHANGED
@@ -27,7 +27,7 @@ Restart Pi or run `/reload` after installing.
27
27
 
28
28
  By default, if you do not configure fallback models, the extension behaves exactly as before: it waits for the current model's limit to reset and retries.
29
29
 
30
- To enable automatic model fallback, add `oira666_pi-subagents.try_models` to Pi's normal `settings.json`.
30
+ To enable automatic model fallback, add `oira666_pi-limits-wait.try_models` to Pi's normal `settings.json`.
31
31
 
32
32
  Pi settings can be global or project-local:
33
33
 
@@ -42,7 +42,7 @@ Example:
42
42
 
43
43
  ```json
44
44
  {
45
- "oira666_pi-subagents": {
45
+ "oira666_pi-limits-wait": {
46
46
  "try_models": [
47
47
  {
48
48
  "provider": "anthropic",
@@ -69,7 +69,7 @@ Fallback behavior:
69
69
  1. Pi starts with the normal default or user-selected model.
70
70
  2. If that model is rate-limited, the extension tries models in this order:
71
71
  - the original default/user-selected model;
72
- - then every model from `oira666_pi-subagents.try_models`, top to bottom.
72
+ - then every model from `oira666_pi-limits-wait.try_models`, top to bottom.
73
73
  3. The first model that responds without a rate-limit becomes the active Pi model for the rest of the session/task.
74
74
  4. If that model later becomes rate-limited too, the extension starts again from the same ordered list.
75
75
  5. Rate-limit reset times are remembered only in memory, so known-limited models are skipped until their countdown expires. This memory is cleared when Pi restarts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oira666_pi-limits-wait",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Extension for PI that allows to automatically wait for limits to reset and retry the request",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -28,7 +28,7 @@ const PI_IDENTITY_SENTENCE_PATTERN =
28
28
 
29
29
  const DEFAULT_RATE_LIMIT_WAIT_MS = 30 * 60 * 1_000; // 30 minutes
30
30
  const DEFAULT_OVERLOADED_WAIT_MS = 5 * 60 * 1_000; // 5 minutes
31
- const SETTINGS_KEY = "oira666_pi-subagents";
31
+ const SETTINGS_KEY = "oira666_pi-limits-wait";
32
32
 
33
33
  /** Key used with ctx.ui.setStatus() for the countdown line. */
34
34
  const STATUS_KEY = "limits-wait";