Skip to content

Commit 6e983a3

Browse files
committed
Update Codex CLI target and model catalog to 0.163.0
1 parent 6b6bdd4 commit 6e983a3

8 files changed

Lines changed: 46 additions & 9 deletions

File tree

‎AGENTS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ If no new rule is detected -> do not update the file.
7373

7474
### Task Delivery (ALL TASKS)
7575

76+
- An installed CLI must not be rejected solely because its version differs from the SDK target. The target selects SDK-managed installation and release qualification; actual CLI capabilities determine which operations work (creator correction 2026-10-16).
77+
7678
- Always start from `docs/Architecture/Overview.md`:
7779
- identify impacted modules and boundaries
7880
- identify entry points and contracts
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using ManagedCode.CodexSharpSDK.Internal;
2+
3+
namespace ManagedCode.CodexSharpSDK.Tests.Unit;
4+
5+
public sealed class CliVersionAcceptanceTests
6+
{
7+
private const string VersionOutputPrefix = "codex-cli ";
8+
private const string OlderVersion = "0.160.1";
9+
private const string CurrentVersion = "0.163.0";
10+
private const string FutureVersion = "9999.0.1-preview.1";
11+
12+
[Test]
13+
[Arguments(OlderVersion)]
14+
[Arguments(CurrentVersion)]
15+
[Arguments(FutureVersion)]
16+
public async Task InstalledVersionDoesNotNeedToMatchTheSdkTarget(string version)
17+
{
18+
var output = string.Concat(VersionOutputPrefix, version);
19+
var observed = CodexCliMetadataReader.ParseInstalledVersion(output);
20+
21+
await Assert.That(observed).IsEqualTo(version);
22+
}
23+
}

‎CodexSharpSDK.Tests/Unit/CodexModelsTests.cs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ public async Task CodexModels_ContainAllBundledUpstreamModelSlugs()
2222
var missingBundledSlugs = bundledModelSlugs
2323
.Except(sdkModelSlugs, StringComparer.Ordinal)
2424
.ToArray();
25-
var extraSdkSlugs = sdkModelSlugs
26-
.Except(bundledModelSlugs, StringComparer.Ordinal)
27-
.ToArray();
2825

2926
await Assert.That(missingBundledSlugs).IsEmpty();
30-
await Assert.That(extraSdkSlugs).IsEmpty();
27+
// Other constants remain valid choices for other installed CLI versions.
3128
}
3229

3330
private static string[] GetSdkModelSlugs()

‎CodexSharpSDK/Models/CodexCliCompatibility.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ namespace ManagedCode.CodexSharpSDK.Models;
33
/// <summary>Identifies the upstream Codex CLI version targeted by this SDK release.</summary>
44
public static class CodexCliCompatibility
55
{
6-
/// <summary>The exact upstream CLI version compatible with this SDK package.</summary>
7-
public const string TargetVersion = "0.160.1";
6+
/// <summary>The upstream CLI version selected for managed installation and release verification; other installed versions are allowed.</summary>
7+
public const string TargetVersion = "0.163.0";
88
}

‎CodexSharpSDK/Models/CodexModels.cs‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ namespace ManagedCode.CodexSharpSDK.Models;
22

33
public static class CodexModels
44
{
5+
public const string Gpt6Astra = "gpt-6-astra";
6+
public const string Gpt61Sol = "gpt-6.1-sol";
7+
public const string Gpt6Sol = "gpt-6-sol";
8+
public const string Gpt6Luna = "gpt-6-luna";
9+
public const string Gpt56Sol = "gpt-5.6-sol";
10+
public const string Gpt56Terra = "gpt-5.6-terra";
11+
public const string Gpt56Luna = "gpt-5.6-luna";
12+
public const string GptDaybreakBlueLatest = "gpt-daybreak-blue-latest";
13+
public const string GptDaybreakRedLatest = "gpt-daybreak-red-latest";
14+
public const string Gpt55 = "gpt-5.5";
15+
public const string CodexAutoReview = "codex-auto-review";
516
public const string Gpt54 = "gpt-5.4";
617
public const string Gpt53Codex = "gpt-5.3-codex";
718
public const string Gpt52Codex = "gpt-5.2-codex";

‎Directory.Build.props‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<PublishRepositoryUrl>true</PublishRepositoryUrl>
3333
<EmbedUntrackedSources>true</EmbedUntrackedSources>
3434
<EnablePackageValidation>true</EnablePackageValidation>
35-
<Version>0.160.1.4</Version>
35+
<Version>0.163.0.1</Version>
3636
<PackageVersion>$(Version)</PackageVersion>
3737
</PropertyGroup>
3838

‎docs/Features/cli-metadata.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Source of truth: local `codex` CLI + upstream npm package metadata (`@openai/cod
99

1010
## Purpose
1111

12-
The SDK package version mirrors the targeted Codex CLI version in its first three numeric components and uses the fourth component for an SDK hotfix. `CodexCliCompatibility.TargetVersion` exposes the exact compatible CLI target without starting a process. `GetCliUpdateStatus()` separately reports the latest version discovered from npm.
12+
The SDK package version mirrors the targeted Codex CLI version in its first three numeric components and uses the fourth component for an SDK hotfix. `CodexCliCompatibility.TargetVersion` exposes the managed-installation and release-verification target without starting a process. `GetCliUpdateStatus()` separately reports the latest version discovered from npm.
13+
14+
Installed CLI versions are not required to match `TargetVersion`. Metadata reports the actual installed version, and execution uses that CLI; unavailable flags or features fail through the actual CLI operation rather than a version-number admission gate.
1315

1416
Expose runtime Codex CLI metadata to SDK consumers:
1517

@@ -40,6 +42,8 @@ Expose runtime Codex CLI metadata to SDK consumers:
4042

4143
---
4244

45+
The model constants include the official `rust-v0.163.0` bundled catalog (GPT-6, GPT-5.6, Daybreak, GPT-5.5 and the review model). Constants for other installed CLI catalogs remain usable because installed versions are unrestricted. The catalog regression requires every bundled upstream model to be represented; it does not reject additional verified model constants. Runtime metadata still reads the installed CLI cache and does not infer account access from these constants.
46+
4347
## Business Rules
4448

4549
- Metadata read is read-only and does not mutate local Codex state.

‎submodules/openai-codex‎

Submodule openai-codex updated 9165 files

0 commit comments

Comments
 (0)