@moxxy/plugin-provider-openai-codex 0.29.0 → 0.30.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/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +1 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +10 -1
- package/dist/models.js.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +3 -0
- package/src/models.ts +10 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB,kCAgBjC,CAAC;AAEH,eAAO,MAAM,iBAAiB,6BAI5B,CAAC;AAEH,eAAe,iBAAiB,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,SAAS,EACT,MAAM,EACN,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,MAAM,EACN,UAAU,EACV,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,IAAI,qBAAqB,GAC1C,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,9 @@ export const openaiCodexProviderDef = defineProvider({
|
|
|
12
12
|
auth: {
|
|
13
13
|
kind: 'oauth',
|
|
14
14
|
serviceName: 'ChatGPT Pro/Plus',
|
|
15
|
+
// The codex profile carries a device-flow adapter, so `codexLogin` honours
|
|
16
|
+
// `ctx.headless` with a real no-browser flow — let hosts offer the choice.
|
|
17
|
+
supportsHeadless: true,
|
|
15
18
|
login: codexLogin,
|
|
16
19
|
logout: codexLogout,
|
|
17
20
|
status: codexStatus,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,aAAa,EAA4B,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC;IACnD,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,CAAC,GAAG,WAAW,CAAC;IACxB,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAA6B,CAAC;IAC1E,qEAAqE;IACrE,mDAAmD;IACnD,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,kBAAkB;QAC/B,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,WAAW;KACpB;CACF,CAAC,CAAC;AAE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AAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAA6B,CAAC;IAC1E,qEAAqE;IACrE,mDAAmD;IACnD,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,kBAAkB;QAC/B,2EAA2E;QAC3E,2EAA2E;QAC3E,gBAAgB,EAAE,IAAI;QACtB,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,WAAW;KACpB;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC;IAC5C,IAAI,EAAE,qCAAqC;IAC3C,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE,CAAC,sBAAsB,CAAC;CACpC,CAAC,CAAC;AAEH,eAAe,iBAAiB,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,SAAS,EACT,MAAM,EACN,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,MAAM,EACN,UAAU,EACV,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,IAAI,qBAAqB,GAC1C,MAAM,YAAY,CAAC"}
|
package/dist/models.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import type { ModelDescriptor } from '@moxxy/sdk';
|
|
|
6
6
|
* routes to ChatGPT-Pro/Plus subscribers without per-token billing.
|
|
7
7
|
*/
|
|
8
8
|
export declare const codexModels: ReadonlyArray<ModelDescriptor>;
|
|
9
|
-
export declare const DEFAULT_CODEX_MODEL = "gpt-5.
|
|
9
|
+
export declare const DEFAULT_CODEX_MODEL = "gpt-5.6-sol";
|
|
10
10
|
//# sourceMappingURL=models.d.ts.map
|
package/dist/models.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;GAKG;AAIH,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;GAKG;AAIH,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,eAAe,CAmBtD,CAAC;AAIF,eAAO,MAAM,mBAAmB,gBAAgB,CAAC"}
|
package/dist/models.js
CHANGED
|
@@ -13,6 +13,13 @@ export const codexModels = [
|
|
|
13
13
|
// the proactive compactor's `estimatedTokens > 0.75 * contextWindow` gate
|
|
14
14
|
// unreachable, so every overflow fell through to the reactive
|
|
15
15
|
// compact-on-overflow retry. Keep these in step with the rest of the catalog.
|
|
16
|
+
// GPT-5.6 family (GA July 9, 2026): served to ChatGPT-Pro/Plus subscribers
|
|
17
|
+
// under the same ids the API uses (sol/terra/luna — no `-codex` variant).
|
|
18
|
+
// Sol is OpenAI's default Codex model. The ChatGPT-plan window cap applies
|
|
19
|
+
// here too, so keep them at 400k like the rest of this list.
|
|
20
|
+
{ id: 'gpt-5.6-sol', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
21
|
+
{ id: 'gpt-5.6-terra', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
22
|
+
{ id: 'gpt-5.6-luna', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
16
23
|
{ id: 'gpt-5.5', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
17
24
|
{ id: 'gpt-5.4', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
18
25
|
{ id: 'gpt-5.4-mini', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
@@ -20,5 +27,7 @@ export const codexModels = [
|
|
|
20
27
|
{ id: 'gpt-5.3-codex-spark', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
21
28
|
{ id: 'gpt-5.2', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
22
29
|
];
|
|
23
|
-
|
|
30
|
+
// OpenAI's own Codex default moved to gpt-5.6-sol at GA (July 9, 2026); mirror
|
|
31
|
+
// it so a ChatGPT-plan user who hasn't pinned a model gets the current flagship.
|
|
32
|
+
export const DEFAULT_CODEX_MODEL = 'gpt-5.6-sol';
|
|
24
33
|
//# sourceMappingURL=models.js.map
|
package/dist/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,+EAA+E;AAC/E,+EAA+E;AAC/E,mEAAmE;AACnE,MAAM,CAAC,MAAM,WAAW,GAAmC;IACzD,8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,GAAG,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moxxy/plugin-provider-openai-codex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "OpenAI Codex (ChatGPT Pro/Plus OAuth) LLMProvider plugin for moxxy. Streams against https://chatgpt.com/backend-api/codex/responses using PKCE-based OAuth tokens.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"moxxy",
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@moxxy/
|
|
50
|
-
"@moxxy/
|
|
49
|
+
"@moxxy/plugin-oauth": "0.30.0",
|
|
50
|
+
"@moxxy/sdk": "0.30.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^22.10.0",
|
|
54
54
|
"typescript": "^5.7.3",
|
|
55
55
|
"vitest": "^2.1.8",
|
|
56
56
|
"zod": "^3.24.0",
|
|
57
|
-
"@moxxy/
|
|
58
|
-
"@moxxy/
|
|
57
|
+
"@moxxy/tsconfig": "0.0.0",
|
|
58
|
+
"@moxxy/vitest-preset": "0.0.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsc -p tsconfig.json",
|
package/src/index.ts
CHANGED
|
@@ -13,6 +13,9 @@ export const openaiCodexProviderDef = defineProvider({
|
|
|
13
13
|
auth: {
|
|
14
14
|
kind: 'oauth',
|
|
15
15
|
serviceName: 'ChatGPT Pro/Plus',
|
|
16
|
+
// The codex profile carries a device-flow adapter, so `codexLogin` honours
|
|
17
|
+
// `ctx.headless` with a real no-browser flow — let hosts offer the choice.
|
|
18
|
+
supportsHeadless: true,
|
|
16
19
|
login: codexLogin,
|
|
17
20
|
logout: codexLogout,
|
|
18
21
|
status: codexStatus,
|
package/src/models.ts
CHANGED
|
@@ -15,6 +15,13 @@ export const codexModels: ReadonlyArray<ModelDescriptor> = [
|
|
|
15
15
|
// the proactive compactor's `estimatedTokens > 0.75 * contextWindow` gate
|
|
16
16
|
// unreachable, so every overflow fell through to the reactive
|
|
17
17
|
// compact-on-overflow retry. Keep these in step with the rest of the catalog.
|
|
18
|
+
// GPT-5.6 family (GA July 9, 2026): served to ChatGPT-Pro/Plus subscribers
|
|
19
|
+
// under the same ids the API uses (sol/terra/luna — no `-codex` variant).
|
|
20
|
+
// Sol is OpenAI's default Codex model. The ChatGPT-plan window cap applies
|
|
21
|
+
// here too, so keep them at 400k like the rest of this list.
|
|
22
|
+
{ id: 'gpt-5.6-sol', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
23
|
+
{ id: 'gpt-5.6-terra', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
24
|
+
{ id: 'gpt-5.6-luna', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
18
25
|
{ id: 'gpt-5.5', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
19
26
|
{ id: 'gpt-5.4', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
20
27
|
{ id: 'gpt-5.4-mini', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
@@ -23,4 +30,6 @@ export const codexModels: ReadonlyArray<ModelDescriptor> = [
|
|
|
23
30
|
{ id: 'gpt-5.2', contextWindow: 400_000, maxOutputTokens: 128_000, supportsTools: true, supportsStreaming: true, supportsImages: true, supportsDocuments: true, supportsReasoning: true },
|
|
24
31
|
];
|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
// OpenAI's own Codex default moved to gpt-5.6-sol at GA (July 9, 2026); mirror
|
|
34
|
+
// it so a ChatGPT-plan user who hasn't pinned a model gets the current flagship.
|
|
35
|
+
export const DEFAULT_CODEX_MODEL = 'gpt-5.6-sol';
|