openai-oauth 2.0.0-beta.2 → 2.0.0-beta.4

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SavedAuthTokens } from '@openai-oauth/core';
1
+ import { SavedAuthTokens } from '@openai-oauth/local/auth-file';
2
2
  import { Server } from 'node:http';
3
3
  import { LocalOpenAIOAuthOptions } from '@openai-oauth/local';
4
4
 
@@ -108,6 +108,7 @@ type RunningOpenAIOAuthServer = {
108
108
  host: string;
109
109
  port: number;
110
110
  url: string;
111
+ models: string[];
111
112
  close: () => Promise<void>;
112
113
  };
113
114
 
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  createOpenAIOAuthFetchHandler,
3
3
  runOpenAIOAuthLogin,
4
4
  startOpenAIOAuthServer
5
- } from "./chunk-UZ3AHAWX.js";
5
+ } from "./chunk-INHW7GRB.js";
6
6
  export {
7
7
  createOpenAIOAuthFetchHandler,
8
8
  runOpenAIOAuthLogin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openai-oauth",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "Free OpenAI API access with your ChatGPT account.",
5
5
  "keywords": [
6
6
  "openai",
@@ -11,6 +11,9 @@
11
11
  "openai-compatible"
12
12
  ],
13
13
  "type": "module",
14
+ "engines": {
15
+ "node": ">=20"
16
+ },
14
17
  "sideEffects": false,
15
18
  "main": "./dist/index.js",
16
19
  "types": "./dist/index.d.ts",
@@ -38,18 +41,18 @@
38
41
  "test:live": "LIVE_CODEX_E2E=1 vitest run test/live.e2e.test.ts"
39
42
  },
40
43
  "dependencies": {
41
- "@openai-oauth/ai-sdk": "2.0.0-beta.2",
42
- "@openai-oauth/core": "2.0.0-beta.2",
43
- "@openai-oauth/local": "2.0.0-beta.2",
44
+ "@openai-oauth/ai-sdk": "2.0.0-beta.4",
45
+ "@openai-oauth/core": "2.0.0-beta.4",
46
+ "@openai-oauth/local": "2.0.0-beta.4",
44
47
  "ai": "6.0.116",
45
- "yargs": "^17.7.2"
48
+ "yargs": "17.7.3"
46
49
  },
47
50
  "devDependencies": {
48
51
  "@ai-sdk/openai": "3.0.41",
49
52
  "@types/node": "20.17.24",
50
53
  "@types/yargs": "^17.0.33",
51
- "typescript": "latest",
52
- "vitest": "latest",
54
+ "typescript": "5.9.2",
55
+ "vitest": "4.1.10",
53
56
  "zod": "^3.25.76"
54
57
  },
55
58
  "author": "EvanZhouDev",