@gengjiawen/os-init 2.0.0 → 2.1.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 +8 -0
- package/build/codex.js +2 -2
- package/libs/codex.test.ts +5 -5
- package/libs/codex.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.0](https://github.com/gengjiawen/os-init/compare/v2.0.0...v2.1.0) (2026-09-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* raise Codex auto-compact limit to 156k ([#54](https://github.com/gengjiawen/os-init/issues/54)) ([0656770](https://github.com/gengjiawen/os-init/commit/06567700c397a6161801a50f007c5cadc888b852))
|
|
9
|
+
* switch Codex default model to gpt-6.1-sol ([#52](https://github.com/gengjiawen/os-init/issues/52)) ([befd1a8](https://github.com/gengjiawen/os-init/commit/befd1a8ab1f1c9ced7aa7e6315357f81ed20f7d0))
|
|
10
|
+
|
|
3
11
|
## [2.0.0](https://github.com/gengjiawen/os-init/compare/v1.28.1...v2.0.0) (2026-09-29)
|
|
4
12
|
|
|
5
13
|
|
package/build/codex.js
CHANGED
|
@@ -14,10 +14,10 @@ function getCodexConfigDir() {
|
|
|
14
14
|
}
|
|
15
15
|
function getCodexConfigTomlTemplate(bearerToken) {
|
|
16
16
|
return `model_provider = "jw"
|
|
17
|
-
model = "gpt-
|
|
17
|
+
model = "gpt-6.1-sol"
|
|
18
18
|
model_reasoning_effort = "high"
|
|
19
19
|
plan_mode_reasoning_effort = "high"
|
|
20
|
-
model_auto_compact_token_limit =
|
|
20
|
+
model_auto_compact_token_limit = 159744
|
|
21
21
|
disable_response_storage = true
|
|
22
22
|
check_for_update_on_startup = false
|
|
23
23
|
|
package/libs/codex.test.ts
CHANGED
|
@@ -23,7 +23,7 @@ describe('writeCodexConfig', () => {
|
|
|
23
23
|
fs.rmSync(tempHome, { recursive: true, force: true })
|
|
24
24
|
})
|
|
25
25
|
|
|
26
|
-
test('writes config with bearer token and
|
|
26
|
+
test('writes config with bearer token and 156k auto compact threshold', () => {
|
|
27
27
|
const result = writeCodexConfig('test-api-key')
|
|
28
28
|
const configPath = path.join(tempHome, '.codex', 'config.toml')
|
|
29
29
|
const authPath = path.join(tempHome, '.codex', 'auth.json')
|
|
@@ -40,7 +40,7 @@ describe('writeCodexConfig', () => {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
expect(result.configPath).toBe(configPath)
|
|
43
|
-
expect(config.model_auto_compact_token_limit).toBe(
|
|
43
|
+
expect(config.model_auto_compact_token_limit).toBe(159744)
|
|
44
44
|
expect(config.model_providers.jw.experimental_bearer_token).toBe(
|
|
45
45
|
'test-api-key'
|
|
46
46
|
)
|
|
@@ -95,7 +95,7 @@ custom_model = "keep-me"
|
|
|
95
95
|
expect(config).not.toHaveProperty('service_tier')
|
|
96
96
|
expect(config).not.toHaveProperty('model_catalog_json')
|
|
97
97
|
expect(config.custom_flag).toBe(true)
|
|
98
|
-
expect(config.model).toBe('gpt-
|
|
98
|
+
expect(config.model).toBe('gpt-6.1-sol')
|
|
99
99
|
expect(config).not.toHaveProperty('preferred_auth_method')
|
|
100
100
|
expect(config.model_providers.jw.base_url).toBe(
|
|
101
101
|
'https://ai.gengjiawen.com/api/openai'
|
|
@@ -134,7 +134,7 @@ base_url = "https://example.com"
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
expect(config.model).toBe('gpt-
|
|
137
|
+
expect(config.model).toBe('gpt-6.1-sol')
|
|
138
138
|
expect(config).not.toHaveProperty('model_catalog_json')
|
|
139
139
|
expect(config).not.toHaveProperty('preferred_auth_method')
|
|
140
140
|
expect(config.model_providers.jw.name).toBe('jw')
|
|
@@ -166,6 +166,6 @@ base_url = "https://example.com"
|
|
|
166
166
|
>
|
|
167
167
|
|
|
168
168
|
expect(config).not.toHaveProperty('model_catalog_json')
|
|
169
|
-
expect(config.model).toBe('gpt-
|
|
169
|
+
expect(config.model).toBe('gpt-6.1-sol')
|
|
170
170
|
})
|
|
171
171
|
})
|
package/libs/codex.ts
CHANGED
|
@@ -16,10 +16,10 @@ function getCodexConfigDir(): string {
|
|
|
16
16
|
|
|
17
17
|
function getCodexConfigTomlTemplate(bearerToken: string): string {
|
|
18
18
|
return `model_provider = "jw"
|
|
19
|
-
model = "gpt-
|
|
19
|
+
model = "gpt-6.1-sol"
|
|
20
20
|
model_reasoning_effort = "high"
|
|
21
21
|
plan_mode_reasoning_effort = "high"
|
|
22
|
-
model_auto_compact_token_limit =
|
|
22
|
+
model_auto_compact_token_limit = 159744
|
|
23
23
|
disable_response_storage = true
|
|
24
24
|
check_for_update_on_startup = false
|
|
25
25
|
|