opencode-aicodewith-auth 0.1.38 → 0.1.40

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 (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +58 -93
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -61,7 +61,7 @@ User Request → OpenCode → Plugin Auth Hook → Route by Model:
61
61
 
62
62
  | 模型 ID | 显示名称 | 图片输入 | 适合场景 |
63
63
  |---------|---------|:-------:|---------|
64
- | `aicodewith/gpt-5.2-codex` | GPT-5.2 Codex | ✅ | 日常编程、代码生成 |
64
+ | `aicodewith/gpt-5.3-codex` | GPT-5.3 Codex | ✅ | 日常编程、代码生成 |
65
65
  | `aicodewith/gpt-5.2` | GPT-5.2 | ✅ | 架构设计、逻辑推理 |
66
66
  | `aicodewith/claude-sonnet-4-5-20250929` | Claude Sonnet 4.5 | ✅ | 代码审查、文档查询 |
67
67
  | `aicodewith/claude-opus-4-6-20260205` | Claude Opus 4.6 | ✅ | 复杂任务、深度思考 |
package/dist/index.js CHANGED
@@ -8,14 +8,14 @@ import os4 from "os";
8
8
  var PROVIDER_ID = "aicodewith";
9
9
  var MODELS = [
10
10
  {
11
- id: "gpt-5.2-codex",
11
+ id: "gpt-5.3-codex",
12
12
  family: "codex",
13
- displayName: "GPT-5.2 Codex",
14
- version: "5.2",
13
+ displayName: "GPT-5.3 Codex",
14
+ version: "5.3",
15
15
  limit: { context: 400000, output: 128000 },
16
16
  modalities: { input: ["text", "image"], output: ["text"] },
17
17
  reasoning: "xhigh",
18
- aliases: ["gpt-5.2-codex", "gpt 5.2 codex", "codex"]
18
+ aliases: ["gpt-5.3-codex", "gpt 5.3 codex", "codex"]
19
19
  },
20
20
  {
21
21
  id: "gpt-5.2",
@@ -27,6 +27,17 @@ var MODELS = [
27
27
  reasoning: "xhigh",
28
28
  aliases: ["gpt-5.2", "gpt 5.2"]
29
29
  },
30
+ {
31
+ id: "gpt-5.2-codex",
32
+ family: "codex",
33
+ displayName: "GPT-5.2 Codex (deprecated)",
34
+ version: "5.2",
35
+ limit: { context: 400000, output: 128000 },
36
+ modalities: { input: ["text", "image"], output: ["text"] },
37
+ reasoning: "xhigh",
38
+ deprecated: true,
39
+ replacedBy: "gpt-5.3-codex"
40
+ },
30
41
  {
31
42
  id: "gpt-5.1-codex",
32
43
  family: "codex",
@@ -36,7 +47,7 @@ var MODELS = [
36
47
  modalities: { input: ["text", "image"], output: ["text"] },
37
48
  reasoning: "full",
38
49
  deprecated: true,
39
- replacedBy: "gpt-5.2-codex"
50
+ replacedBy: "gpt-5.3-codex"
40
51
  },
41
52
  {
42
53
  id: "gpt-5.1-codex-max",
@@ -47,7 +58,7 @@ var MODELS = [
47
58
  modalities: { input: ["text", "image"], output: ["text"] },
48
59
  reasoning: "xhigh",
49
60
  deprecated: true,
50
- replacedBy: "gpt-5.2-codex"
61
+ replacedBy: "gpt-5.3-codex"
51
62
  },
52
63
  {
53
64
  id: "gpt-5.1-codex-mini",
@@ -58,7 +69,7 @@ var MODELS = [
58
69
  modalities: { input: ["text", "image"], output: ["text"] },
59
70
  reasoning: "basic",
60
71
  deprecated: true,
61
- replacedBy: "gpt-5.2-codex"
72
+ replacedBy: "gpt-5.3-codex"
62
73
  },
63
74
  {
64
75
  id: "gpt-5.1",
@@ -79,15 +90,6 @@ var MODELS = [
79
90
  limit: { context: 200000, output: 64000 },
80
91
  modalities: { input: ["text", "image"], output: ["text"] }
81
92
  },
82
- {
83
- id: "claude-opus-4-6-20260205-third-party",
84
- family: "claude",
85
- displayName: "Claude Opus 4.6 (third party)",
86
- version: "4.6",
87
- limit: { context: 200000, output: 64000 },
88
- modalities: { input: ["text", "image"], output: ["text"] },
89
- thirdPartyVariant: true
90
- },
91
93
  {
92
94
  id: "claude-sonnet-4-5-20250929",
93
95
  family: "claude",
@@ -96,15 +98,6 @@ var MODELS = [
96
98
  limit: { context: 200000, output: 64000 },
97
99
  modalities: { input: ["text", "image"], output: ["text"] }
98
100
  },
99
- {
100
- id: "claude-sonnet-4-5-20250929-third-party",
101
- family: "claude",
102
- displayName: "Claude Sonnet 4.5 (third party)",
103
- version: "4.5",
104
- limit: { context: 200000, output: 64000 },
105
- modalities: { input: ["text", "image"], output: ["text"] },
106
- thirdPartyVariant: true
107
- },
108
101
  {
109
102
  id: "claude-haiku-4-5-20251001",
110
103
  family: "claude",
@@ -114,19 +107,20 @@ var MODELS = [
114
107
  modalities: { input: ["text", "image"], output: ["text"] }
115
108
  },
116
109
  {
117
- id: "claude-haiku-4-5-20251001-third-party",
110
+ id: "claude-opus-4-5-20251101",
118
111
  family: "claude",
119
- displayName: "Claude Haiku 4.5 (third party)",
112
+ displayName: "Claude Opus 4.5 (deprecated)",
120
113
  version: "4.5",
121
- limit: { context: 200000, output: 8192 },
114
+ limit: { context: 200000, output: 64000 },
122
115
  modalities: { input: ["text", "image"], output: ["text"] },
123
- thirdPartyVariant: true
116
+ deprecated: true,
117
+ replacedBy: "claude-opus-4-6-20260205"
124
118
  },
125
119
  {
126
- id: "claude-opus-4-5-20251101",
120
+ id: "claude-opus-4-6-20260205-third-party",
127
121
  family: "claude",
128
- displayName: "Claude Opus 4.5 (deprecated)",
129
- version: "4.5",
122
+ displayName: "Claude Opus 4.6 third-party (deprecated)",
123
+ version: "4.6",
130
124
  limit: { context: 200000, output: 64000 },
131
125
  modalities: { input: ["text", "image"], output: ["text"] },
132
126
  deprecated: true,
@@ -135,13 +129,32 @@ var MODELS = [
135
129
  {
136
130
  id: "claude-opus-4-5-20251101-third-party",
137
131
  family: "claude",
138
- displayName: "Claude Opus 4.5 (third party, deprecated)",
132
+ displayName: "Claude Opus 4.5 third-party (deprecated)",
139
133
  version: "4.5",
140
134
  limit: { context: 200000, output: 64000 },
141
135
  modalities: { input: ["text", "image"], output: ["text"] },
142
136
  deprecated: true,
143
- replacedBy: "claude-opus-4-6-20260205-third-party",
144
- thirdPartyVariant: true
137
+ replacedBy: "claude-opus-4-6-20260205"
138
+ },
139
+ {
140
+ id: "claude-sonnet-4-5-20250929-third-party",
141
+ family: "claude",
142
+ displayName: "Claude Sonnet 4.5 third-party (deprecated)",
143
+ version: "4.5",
144
+ limit: { context: 200000, output: 64000 },
145
+ modalities: { input: ["text", "image"], output: ["text"] },
146
+ deprecated: true,
147
+ replacedBy: "claude-sonnet-4-5-20250929"
148
+ },
149
+ {
150
+ id: "claude-haiku-4-5-20251001-third-party",
151
+ family: "claude",
152
+ displayName: "Claude Haiku 4.5 third-party (deprecated)",
153
+ version: "4.5",
154
+ limit: { context: 200000, output: 8192 },
155
+ modalities: { input: ["text", "image"], output: ["text"] },
156
+ deprecated: true,
157
+ replacedBy: "claude-haiku-4-5-20251001"
145
158
  },
146
159
  {
147
160
  id: "gemini-3-pro",
@@ -817,23 +830,23 @@ var normalizeOrphanedToolOutputs = (input) => {
817
830
  // lib/request/request-transformer.ts
818
831
  function normalizeModel(model) {
819
832
  if (!model)
820
- return "gpt-5.2-codex";
833
+ return "gpt-5.3-codex";
821
834
  const modelId = model.includes("/") ? model.split("/").pop() : model;
822
835
  const mappedModel = getNormalizedModel(modelId);
823
836
  if (mappedModel) {
824
837
  return mappedModel;
825
838
  }
826
839
  const normalized = modelId.toLowerCase();
827
- if (normalized.includes("gpt-5.2-codex") || normalized.includes("gpt 5.2 codex")) {
828
- return "gpt-5.2-codex";
840
+ if (normalized.includes("gpt-5.3-codex") || normalized.includes("gpt 5.3 codex")) {
841
+ return "gpt-5.3-codex";
829
842
  }
830
843
  if (normalized.includes("gpt-5.2") || normalized.includes("gpt 5.2")) {
831
844
  return "gpt-5.2";
832
845
  }
833
846
  if (normalized.includes("codex")) {
834
- return "gpt-5.2-codex";
847
+ return "gpt-5.3-codex";
835
848
  }
836
- return "gpt-5.2-codex";
849
+ return "gpt-5.3-codex";
837
850
  }
838
851
  function resolveReasoningConfig(modelName, body) {
839
852
  const providerOpenAI = body.providerOptions?.openai;
@@ -900,9 +913,9 @@ function addCodexBridgeMessage(input, hasTools) {
900
913
  }
901
914
  function getReasoningConfig(modelName, userConfig = {}) {
902
915
  const normalizedName = modelName?.toLowerCase() ?? "";
903
- const isGpt52Codex = normalizedName.includes("gpt-5.2-codex") || normalizedName.includes("gpt 5.2 codex");
904
- const isGpt52General = (normalizedName.includes("gpt-5.2") || normalizedName.includes("gpt 5.2")) && !isGpt52Codex;
905
- const supportsXhigh = isGpt52General || isGpt52Codex;
916
+ const isGpt53Codex = normalizedName.includes("gpt-5.3-codex") || normalizedName.includes("gpt 5.3 codex");
917
+ const isGpt52General = normalizedName.includes("gpt-5.2") || normalizedName.includes("gpt 5.2");
918
+ const supportsXhigh = isGpt52General || isGpt53Codex;
906
919
  const supportsNone = isGpt52General;
907
920
  const defaultEffort = supportsXhigh ? "high" : "medium";
908
921
  let effort = userConfig.reasoningEffort || defaultEffort;
@@ -1789,8 +1802,8 @@ var provider_config_default = {
1789
1802
  "AICODEWITH_API_KEY"
1790
1803
  ],
1791
1804
  models: {
1792
- "gpt-5.2-codex": {
1793
- name: "GPT-5.2 Codex",
1805
+ "gpt-5.3-codex": {
1806
+ name: "GPT-5.3 Codex",
1794
1807
  limit: {
1795
1808
  context: 400000,
1796
1809
  output: 128000
@@ -1837,22 +1850,6 @@ var provider_config_default = {
1837
1850
  ]
1838
1851
  }
1839
1852
  },
1840
- "claude-opus-4-6-20260205-third-party": {
1841
- name: "Claude Opus 4.6 (third party)",
1842
- limit: {
1843
- context: 200000,
1844
- output: 64000
1845
- },
1846
- modalities: {
1847
- input: [
1848
- "text",
1849
- "image"
1850
- ],
1851
- output: [
1852
- "text"
1853
- ]
1854
- }
1855
- },
1856
1853
  "claude-sonnet-4-5-20250929": {
1857
1854
  name: "Claude Sonnet 4.5",
1858
1855
  limit: {
@@ -1869,22 +1866,6 @@ var provider_config_default = {
1869
1866
  ]
1870
1867
  }
1871
1868
  },
1872
- "claude-sonnet-4-5-20250929-third-party": {
1873
- name: "Claude Sonnet 4.5 (third party)",
1874
- limit: {
1875
- context: 200000,
1876
- output: 64000
1877
- },
1878
- modalities: {
1879
- input: [
1880
- "text",
1881
- "image"
1882
- ],
1883
- output: [
1884
- "text"
1885
- ]
1886
- }
1887
- },
1888
1869
  "claude-haiku-4-5-20251001": {
1889
1870
  name: "Claude Haiku 4.5",
1890
1871
  limit: {
@@ -1901,22 +1882,6 @@ var provider_config_default = {
1901
1882
  ]
1902
1883
  }
1903
1884
  },
1904
- "claude-haiku-4-5-20251001-third-party": {
1905
- name: "Claude Haiku 4.5 (third party)",
1906
- limit: {
1907
- context: 200000,
1908
- output: 8192
1909
- },
1910
- modalities: {
1911
- input: [
1912
- "text",
1913
- "image"
1914
- ],
1915
- output: [
1916
- "text"
1917
- ]
1918
- }
1919
- },
1920
1885
  "gemini-3-pro": {
1921
1886
  name: "Gemini 3 Pro",
1922
1887
  limit: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-aicodewith-auth",
3
- "version": "0.1.38",
4
- "description": "OpenCode plugin for AICodewith authentication - Access GPT-5.2, Claude, and Gemini models through AICodewith API",
3
+ "version": "0.1.40",
4
+ "description": "OpenCode plugin for AICodewith authentication - Access GPT-5.3 Codex, GPT-5.2, Claude, and Gemini models through AICodewith API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",