@cortexkit/opencode-openai-auth 1.1.0 → 1.2.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.
Files changed (55) hide show
  1. package/dist/bin.js +8 -8
  2. package/dist/{codex-request-BXDXToyt.d.ts → codex-request-CjXETpTA.d.ts} +56 -24
  3. package/dist/index-03em8hv1.js +69 -0
  4. package/dist/index-6n4pnfkg.js +2 -0
  5. package/dist/{index-f2fmb596.js → index-bc89akak.js} +1 -1
  6. package/dist/{index-7c6sxtd6.js → index-ehjj89rx.js} +2 -2
  7. package/dist/index-f21addzm.js +90 -0
  8. package/dist/{index-k6cydkgt.js → index-ffg0sgg5.js} +2 -2
  9. package/dist/{index-zpm95mt5.js → index-ftkhhr6d.js} +1 -1
  10. package/dist/{index-4c8yw54k.js → index-htvcmtcx.js} +2 -2
  11. package/dist/{index-j8v2xwq6.js → index-qp5hdpw8.js} +1 -1
  12. package/dist/{index-msx2m78k.js → index-qxbchh2d.js} +2 -2
  13. package/dist/{index-m5qmvr6c.js → index-r2s51ac1.js} +2 -2
  14. package/dist/index-rwbrhkse.js +65 -0
  15. package/dist/{index-csky2xpg.js → index-xwvze96g.js} +1 -1
  16. package/dist/index.d.ts +5 -3
  17. package/dist/index.js +1 -1
  18. package/dist/{model-YRg7Uowo.d.ts → model-CQcw10oW.d.ts} +1 -1
  19. package/dist/{port-file-CxEpgSHY.d.ts → port-file-BDJnzgHH.d.ts} +1 -1
  20. package/dist/{protocol-CDV1Pc6h.d.ts → protocol-C-kagE6O.d.ts} +1 -1
  21. package/dist/rpc/port-file.d.ts +1 -1
  22. package/dist/rpc/port-file.js +1 -1
  23. package/dist/rpc/protocol.d.ts +1 -1
  24. package/dist/rpc/protocol.js +1 -1
  25. package/dist/rpc/rpc-client.d.ts +3 -3
  26. package/dist/rpc/rpc-client.js +1 -1
  27. package/dist/rpc/rpc-dir.js +1 -1
  28. package/dist/{sidebar-state-DjTWUbmf.d.ts → sidebar-state-BfQ4mpZO.d.ts} +98 -5
  29. package/dist/sidebar-state.d.ts +2 -2
  30. package/dist/sidebar-state.js +1 -1
  31. package/dist/token-util-cf0nyh7n.js +1 -0
  32. package/dist/{token-rz4t3ay6.js → token-z6qq7a1d.js} +1 -1
  33. package/dist/tui-preferences.js +1 -1
  34. package/dist/tui.d.ts +2 -2
  35. package/dist/v2/server.d.ts +109 -2
  36. package/dist/v2/server.js +3 -3
  37. package/package.json +3 -3
  38. package/src/tui-compiled/raw/shared/0332701351b3eeec-format.js +135 -18
  39. package/src/tui-compiled/raw/shared/0f77ebc3c914c9c6-custody.js +17 -0
  40. package/src/tui-compiled/raw/shared/169b2b4bf30909bc-consumer.js +38 -1
  41. package/src/tui-compiled/raw/shared/d5a8f1061ee2f114-index.js +1 -1
  42. package/src/tui-compiled/raw/sidebar-state.js +63 -1
  43. package/src/tui-compiled/raw/tui.tsx +82 -30
  44. package/src/tui-compiled/runtime/shared/0332701351b3eeec-format.js +135 -18
  45. package/src/tui-compiled/runtime/shared/0f77ebc3c914c9c6-custody.js +17 -0
  46. package/src/tui-compiled/runtime/shared/169b2b4bf30909bc-consumer.js +38 -1
  47. package/src/tui-compiled/runtime/shared/d5a8f1061ee2f114-index.js +1 -1
  48. package/src/tui-compiled/runtime/sidebar-state.js +63 -1
  49. package/src/tui-compiled/runtime/tui.js +245 -208
  50. package/dist/index-0yh85bwb.js +0 -69
  51. package/dist/index-7eb3dw37.js +0 -90
  52. package/dist/index-8re8rprk.js +0 -2
  53. package/dist/index-edbdscy7.js +0 -65
  54. package/dist/map-Buq-GW7l.d.ts +0 -56
  55. package/dist/token-util-tpy2c7h6.js +0 -1
@@ -1,56 +0,0 @@
1
- //#region ../../node_modules/.bun/@cortexkit+common-auth@0.18.0+0d2d5e37d881ac14/node_modules/@cortexkit/common-auth/dist/quota/map.d.ts
2
- interface QuotaReadingEntry {
3
- scope: string;
4
- label: string;
5
- kind: 'reading';
6
- checkedAt: number;
7
- usedPercent: number;
8
- /** ISO timestamp at which the window resets, as the provider reported it. */
9
- resetsAt?: string;
10
- /** Window length in minutes, when the provider reported one. */
11
- windowMinutes?: number;
12
- }
13
- interface QuotaRetiredEntry {
14
- scope: string;
15
- label: string;
16
- kind: 'retired';
17
- retiredAt: number;
18
- }
19
- interface QuotaAbsentEntry {
20
- scope: string;
21
- label: string;
22
- kind: 'absent';
23
- checkedAt: number;
24
- }
25
- type QuotaEntry = QuotaReadingEntry | QuotaRetiredEntry | QuotaAbsentEntry;
26
- interface CreditBudgetReading {
27
- kind: 'reading';
28
- checkedAt: number;
29
- /** The provider's own verdict that the budget is spent. */
30
- reached: boolean;
31
- remainingPercent?: number;
32
- usedPercent?: number;
33
- resetsAt?: string;
34
- limit?: number;
35
- used?: number;
36
- remaining?: number;
37
- unit?: string;
38
- }
39
- interface CreditBudgetCleared {
40
- kind: 'cleared';
41
- checkedAt: number;
42
- }
43
- type CreditBudgetEntry = CreditBudgetReading | CreditBudgetCleared;
44
- interface QuotaCounter {
45
- value: number;
46
- checkedAt: number;
47
- }
48
- interface QuotaMap {
49
- limits: QuotaEntry[];
50
- /** Absent means no observation has reported on the budget yet. */
51
- budget?: CreditBudgetEntry;
52
- /** Provider-named counts, each with its own observation time. */
53
- counters?: Record<string, QuotaCounter>;
54
- }
55
- //#endregion
56
- export { QuotaMap as n, QuotaCounter as t };
@@ -1 +0,0 @@
1
- import{b as a}from"./index-zpm95mt5.js";import"./index-csky2xpg.js";export default a();