pi-free 2.2.1 → 2.2.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
@@ -7,6 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.2.3] - 2026-06-19
11
+
12
+ ### Refactored
13
+
14
+ - `index.ts`: Introduce a `UNIQUE_PROVIDERS` array as the single source
15
+ of truth for the provider list. `Promise.allSettled` now maps over
16
+ it instead of a hardcoded 14-element literal, so adding a new
17
+ provider is a one-line change in the array (DRYKISS DRY finding).
18
+ - `index.ts`: Trim the outdated top-level docstring; point to
19
+ `UNIQUE_PROVIDERS` and `README.md` for the full provider catalog
20
+ (DRYKISS Documentation finding).
21
+
22
+ ## [2.2.2] - 2026-06-19
23
+
24
+ ### Refactored
25
+
26
+ - `config.ts`: Introduced `PROVIDER_META` table that pairs each
27
+ provider's ID, env-var prefix, and typed config key. `getProviderShowPaid`
28
+ now delegates to a generic `resolveShowPaidForProvider` resolver
29
+ instead of a 17-case switch. New `PROVIDER_OPENROUTER`, `PROVIDER_OPENCODE`,
30
+ and `PROVIDER_FASTROUTER` constants added to `constants.ts` and used
31
+ in the table (DRYKISS DRY/Architecture findings).
32
+ - `index.ts`: Wrap dynamic built-in provider import in `try/catch`
33
+ with full error+stack logging to both `~/.pi/free.log` and stderr
34
+ (DRYKISS Resilience finding).
35
+ - `providers/bai/bai.ts`: Improve startup-failure message to point users
36
+ at `~/.pi/free.log` and their API key (DRYKISS Resilience finding).
37
+
10
38
  ## [2.2.1] - 2026-06-19
11
39
 
12
40
  ### Security