@oh-my-pi/pi-ai 13.14.2 → 13.15.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [13.15.0] - 2026-03-23
6
+
7
+ ### Added
8
+
9
+ - Added `isUsageLimitError()` to `rate-limit-utils` as a single source of truth for detecting usage/quota limit errors across all providers
10
+
11
+ ### Fixed
12
+
13
+ - Fixed lazy stream forwarding to properly handle final results from source streams with `result()` methods
14
+ - Fixed lazy stream error handling to convert iterator failures into terminal error results instead of silently failing
15
+ - Fixed `parseRateLimitReason` to recognize "usage limit" in error messages and correctly classify them as `QUOTA_EXHAUSTED`
16
+ - Fixed Codex `fetchWithRetry` retrying 429 responses for `usage_limit_reached` errors for up to 5 minutes instead of returning immediately for credential switching
17
+ - Removed `usage.?limit` from `TRANSIENT_MESSAGE_PATTERN` in retry utils since usage limits are not transient and require credential rotation
18
+ - Fixed `parseRateLimitReason` not recognizing "usage limit" in Codex error messages, causing incorrect fallback to `UNKNOWN` classification instead of `QUOTA_EXHAUSTED`
19
+
5
20
  ## [13.14.2] - 2026-03-21
6
21
  ### Changed
7
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-ai",
4
- "version": "13.14.2",
4
+ "version": "13.15.3",
5
5
  "description": "Unified LLM API with automatic model discovery and provider configuration",
6
6
  "homepage": "https://github.com/can1357/oh-my-pi",
7
7
  "author": "Can Boluk",
@@ -41,7 +41,7 @@
41
41
  "@aws-sdk/client-bedrock-runtime": "^3",
42
42
  "@bufbuild/protobuf": "^2.11",
43
43
  "@google/genai": "^1.43",
44
- "@oh-my-pi/pi-utils": "13.14.2",
44
+ "@oh-my-pi/pi-utils": "13.15.3",
45
45
  "@sinclair/typebox": "^0.34",
46
46
  "@smithy/node-http-handler": "^4.4",
47
47
  "ajv": "^8.18",
package/src/index.ts CHANGED
@@ -16,6 +16,7 @@ export * from "./providers/google";
16
16
  export * from "./providers/google-gemini-cli";
17
17
  export * from "./providers/google-vertex";
18
18
  export * from "./providers/kimi";
19
+ export type { OpenAICodexResponsesOptions } from "./providers/openai-codex-responses";
19
20
  export * from "./providers/openai-completions";
20
21
  export * from "./providers/openai-responses";
21
22
  export * from "./providers/synthetic";