@cortexkit/opencode-openai-auth 1.8.5 → 1.9.0
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/dist/bin.js +2 -2
- package/dist/index-0vvxnhd3.js +76 -0
- package/dist/{index-byz2j6hz.js → index-2f9w48sc.js} +1 -1
- package/dist/{index-jh90fx7y.js → index-2sb7q9wr.js} +2 -2
- package/dist/{index-zf649dj2.js → index-7bgst9rd.js} +2 -2
- package/dist/{index-kphzmgq6.js → index-96971sba.js} +1 -1
- package/dist/{index-5wgxt362.js → index-bvswyxpt.js} +1 -1
- package/dist/{index-g5hv0tda.js → index-e32hgdk4.js} +2 -2
- package/dist/index-ececstzk.js +91 -0
- package/dist/{index-95s2mw9w.js → index-jenb51ww.js} +2 -2
- package/dist/{index-zah8t2d2.js → index-v0y4hv4r.js} +2 -2
- package/dist/{index-rmc6hwg6.js → index-vkg5pw57.js} +1 -1
- package/dist/{index-n12zjwh9.js → index-wkn4d21h.js} +2 -2
- package/dist/index-yw0wnqjq.js +63 -0
- package/dist/index.js +1 -1
- package/dist/rpc/port-file.js +1 -1
- package/dist/rpc/protocol.js +1 -1
- package/dist/rpc/rpc-client.js +1 -1
- package/dist/rpc/rpc-dir.js +1 -1
- package/dist/sidebar-state.js +1 -1
- package/dist/token-util-ybe08zph.js +1 -0
- package/dist/{token-j2jmx8k7.js → token-y2zkdr5m.js} +1 -1
- package/dist/tui-preferences.js +1 -1
- package/dist/v2/server.js +2 -2
- package/package.json +2 -2
- package/src/tui-compiled/raw/shared/0f77ebc3c914c9c6-custody.js +25 -0
- package/src/tui-compiled/raw/shared/352d228be2832bd4-hub.js +20 -1
- package/src/tui-compiled/raw/shared/549daf371622c304-index.tsx +262 -129
- package/src/tui-compiled/raw/shared/d0f0b6be200311af-insula.js +6 -0
- package/src/tui-compiled/runtime/shared/0f77ebc3c914c9c6-custody.js +25 -0
- package/src/tui-compiled/runtime/shared/352d228be2832bd4-hub.js +20 -1
- package/src/tui-compiled/runtime/shared/549daf371622c304-index.js +338 -222
- package/src/tui-compiled/runtime/shared/d0f0b6be200311af-insula.js +6 -0
- package/dist/index-8x42xzxb.js +0 -74
- package/dist/index-a7xv52hy.js +0 -63
- package/dist/index-zne9tzy9.js +0 -91
- package/dist/token-util-7n2nfbyc.js +0 -1
|
@@ -443,6 +443,12 @@ export class InsulaQuotaSource {
|
|
|
443
443
|
...(typeof entry.source === 'string' && { source: entry.source }),
|
|
444
444
|
},
|
|
445
445
|
};
|
|
446
|
+
// Kept usage must not trigger a provider poll after a non-local failure.
|
|
447
|
+
// Only an explicitly local failure permits fallback; unknown causes do not.
|
|
448
|
+
if (entry.stale !== undefined &&
|
|
449
|
+
(!record(entry.stale) ||
|
|
450
|
+
entry.stale.class !== 'local_source_unavailable'))
|
|
451
|
+
return { miss: 'upstream-failed', reading };
|
|
446
452
|
return now >= fetchedAt + MAX_AGE || entry.stale !== undefined
|
|
447
453
|
? { miss: 'stale', reading }
|
|
448
454
|
: { reading };
|