@gengjiawen/os-init 1.26.3 → 1.28.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/CHANGELOG.md +14 -0
- package/build/codex.js +2 -1
- package/libs/codex.test.ts +9 -3
- package/libs/codex.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.28.0](https://github.com/gengjiawen/os-init/compare/v1.27.0...v1.28.0) (2026-07-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add actor authorization header to Codex config ([81d4bd1](https://github.com/gengjiawen/os-init/commit/81d4bd1aa621a6dd426772c11d3cb0a38e937e7e))
|
|
9
|
+
|
|
10
|
+
## [1.27.0](https://github.com/gengjiawen/os-init/compare/v1.26.3...v1.27.0) (2026-07-13)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* bump default Codex model to gpt-5.6-sol ([710f188](https://github.com/gengjiawen/os-init/commit/710f1887607b50027d653d2b910ed48d45d7353e))
|
|
16
|
+
|
|
3
17
|
## [1.26.3](https://github.com/gengjiawen/os-init/compare/v1.26.2...v1.26.3) (2026-06-18)
|
|
4
18
|
|
|
5
19
|
|
package/build/codex.js
CHANGED
|
@@ -14,7 +14,7 @@ function getCodexConfigDir() {
|
|
|
14
14
|
}
|
|
15
15
|
function getCodexConfigTomlTemplate(bearerToken) {
|
|
16
16
|
return `model_provider = "jw"
|
|
17
|
-
model = "gpt-5.
|
|
17
|
+
model = "gpt-5.6-sol"
|
|
18
18
|
model_reasoning_effort = "high"
|
|
19
19
|
plan_mode_reasoning_effort = "high"
|
|
20
20
|
model_auto_compact_token_limit = 131072
|
|
@@ -26,6 +26,7 @@ name = "jw"
|
|
|
26
26
|
base_url = "${CODEX_BASE_URL}"
|
|
27
27
|
wire_api = "responses"
|
|
28
28
|
experimental_bearer_token = ${JSON.stringify(bearerToken)}
|
|
29
|
+
http_headers = { "x-openai-actor-authorization" = "jw" }
|
|
29
30
|
`;
|
|
30
31
|
}
|
|
31
32
|
function isTomlTable(value) {
|
package/libs/codex.test.ts
CHANGED
|
@@ -32,6 +32,9 @@ describe('writeCodexConfig', () => {
|
|
|
32
32
|
model_providers: {
|
|
33
33
|
jw: {
|
|
34
34
|
experimental_bearer_token: string
|
|
35
|
+
http_headers: {
|
|
36
|
+
'x-openai-actor-authorization': string
|
|
37
|
+
}
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
}
|
|
@@ -41,6 +44,9 @@ describe('writeCodexConfig', () => {
|
|
|
41
44
|
expect(config.model_providers.jw.experimental_bearer_token).toBe(
|
|
42
45
|
'test-api-key'
|
|
43
46
|
)
|
|
47
|
+
expect(
|
|
48
|
+
config.model_providers.jw.http_headers['x-openai-actor-authorization']
|
|
49
|
+
).toBe('jw')
|
|
44
50
|
expect(config).not.toHaveProperty('model_catalog_json')
|
|
45
51
|
expect(fs.existsSync(authPath)).toBe(false)
|
|
46
52
|
})
|
|
@@ -89,7 +95,7 @@ custom_model = "keep-me"
|
|
|
89
95
|
expect(config).not.toHaveProperty('service_tier')
|
|
90
96
|
expect(config).not.toHaveProperty('model_catalog_json')
|
|
91
97
|
expect(config.custom_flag).toBe(true)
|
|
92
|
-
expect(config.model).toBe('gpt-5.
|
|
98
|
+
expect(config.model).toBe('gpt-5.6-sol')
|
|
93
99
|
expect(config).not.toHaveProperty('preferred_auth_method')
|
|
94
100
|
expect(config.model_providers.jw.base_url).toBe(
|
|
95
101
|
'https://ai.gengjiawen.com/api/openai'
|
|
@@ -128,7 +134,7 @@ base_url = "https://example.com"
|
|
|
128
134
|
}
|
|
129
135
|
}
|
|
130
136
|
|
|
131
|
-
expect(config.model).toBe('gpt-5.
|
|
137
|
+
expect(config.model).toBe('gpt-5.6-sol')
|
|
132
138
|
expect(config).not.toHaveProperty('model_catalog_json')
|
|
133
139
|
expect(config).not.toHaveProperty('preferred_auth_method')
|
|
134
140
|
expect(config.model_providers.jw.name).toBe('jw')
|
|
@@ -160,6 +166,6 @@ base_url = "https://example.com"
|
|
|
160
166
|
>
|
|
161
167
|
|
|
162
168
|
expect(config).not.toHaveProperty('model_catalog_json')
|
|
163
|
-
expect(config.model).toBe('gpt-5.
|
|
169
|
+
expect(config.model).toBe('gpt-5.6-sol')
|
|
164
170
|
})
|
|
165
171
|
})
|
package/libs/codex.ts
CHANGED
|
@@ -16,7 +16,7 @@ function getCodexConfigDir(): string {
|
|
|
16
16
|
|
|
17
17
|
function getCodexConfigTomlTemplate(bearerToken: string): string {
|
|
18
18
|
return `model_provider = "jw"
|
|
19
|
-
model = "gpt-5.
|
|
19
|
+
model = "gpt-5.6-sol"
|
|
20
20
|
model_reasoning_effort = "high"
|
|
21
21
|
plan_mode_reasoning_effort = "high"
|
|
22
22
|
model_auto_compact_token_limit = 131072
|
|
@@ -28,6 +28,7 @@ name = "jw"
|
|
|
28
28
|
base_url = "${CODEX_BASE_URL}"
|
|
29
29
|
wire_api = "responses"
|
|
30
30
|
experimental_bearer_token = ${JSON.stringify(bearerToken)}
|
|
31
|
+
http_headers = { "x-openai-actor-authorization" = "jw" }
|
|
31
32
|
`
|
|
32
33
|
}
|
|
33
34
|
|