@byokit/accounts 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/CHANGELOG.md CHANGED
@@ -2,12 +2,17 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.4.1 (2026-09-29)
6
+
7
+ - FIX: the packed `dist/words.d.ts` keeps `with { type: 'json' }` on its `./words.json` import, so a strict NodeNext consumer with `skipLibCheck: false` no longer fails with TS1543.
8
+
5
9
  ## 0.4.0
6
10
 
7
11
  - Each catalogue row carries its billing (`subscription`, `api`); show `billingWords(p)` next to every provider you list.
8
12
  - FIX: OpenRouter (API billing) is no longer offered by default on computers; `offered()` without keys returns subscription rows only. Name it explicitly (`offer: ['openrouter']`) to keep offering it.
9
13
  - FIX: a locked-keychain read (iOS returns "User interaction is not allowed" while the phone is locked) no longer signs the person out: `keepFresh` treats it as unknown and tries later, only a refused refresh fires `onExpired`.
10
14
  - `secureStore(secure, name, options?)` passes `options` (e.g. `{ keychainAccessible: SecureStore.WHEN_UNLOCKED_THIS_DEVICE_ONLY }`) to every keychain get, set and delete; the default is unchanged.
15
+
11
16
  ## 0.3.1
12
17
 
13
18
  - `respond(member, { instructions, input, onText })` asks ChatGPT with the member's own sign-in, the answer streaming in over an injected `fetch` (whole answer at once when the fetch can't stream); limits and lapsed sign-ins are acted on as `failed()` does.
package/dist/words.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import WORDS from './words.json';
1
+ import WORDS from './words.json' with { type: 'json' };
2
2
  import type { Provider } from './catalogue.ts';
3
3
  export type WordKey = keyof typeof WORDS;
4
4
  export { WORDS };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byokit/accounts",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Sign in with the AI plan you already pay for, into your app's own store.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "scripts": {
42
- "prepack": "tsc -b"
42
+ "prepack": "tsc -b && node ../../scripts/fix-words-dts.cjs"
43
43
  },
44
44
  "dependencies": {
45
45
  "@earendil-works/pi-ai": "0.87.1"