dsh-codex-share 0.4.0 → 0.4.1
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/README.md +1 -1
- package/dist/index.mjs +28 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ For development from this checkout, from its directory:
|
|
|
24
24
|
dsh plugin --profile web add .
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
Restart the profile after installation or update. The bundle mounts one provider route, `openai-codex-local`, with the model catalog supplied by pi-ai 0.87, including GPT-6 Astra, Sol, and Luna. This route replaces the plugin's earlier `openai-codex` route, which collides with pi-ai's configurable provider directory; update any saved model selection to `openai-codex-local`. The plugin appears in **Settings → Plugins → Plugin list**. Open **Settings → Models** and use **Edit model IDs** in the OpenAI Codex row to add subscription model IDs (one per line). The IDs are saved as `additionalModelIds` on the `llm-codex-share` entry in the profile's `cordis.patch.yml` and take effect without a restart. The installed catalog remains available; clearing the additional IDs restores it. For example, enter a model ID that your account can use but the catalog does not list yet. An unrecognized ID can be listed, but requests to it will fail if the Codex endpoint rejects it. Select a listed model in the model picker or agent preset. For a local Codex home outside the default location, set the absolute `CODEX_HOME` path in the environment that launches the harness. Direct Cordis composition can configure `codexHome` on the `dsh-codex-share` plugin instead.
|
|
27
|
+
Restart the profile after installation or update. The bundle mounts one provider route, `openai-codex-local`, with the model catalog supplied by pi-ai 0.87, including GPT-6 Astra, Sol, and Luna, plus GPT-6.1 Sol (`gpt-6.1-sol`). GPT-6.1 Sol uses Codex’s default 272K context and supports low through max reasoning; its pricing follows [OpenAI’s model documentation](https://developers.openai.com/api/docs/models/gpt-6.1-sol). GPT-6.1 Luna is not listed in the current OpenAI or Codex catalogs; use `gpt-6-luna` for Luna. This route replaces the plugin's earlier `openai-codex` route, which collides with pi-ai's configurable provider directory; update any saved model selection to `openai-codex-local`. The plugin appears in **Settings → Plugins → Plugin list**. Open **Settings → Models** and use **Edit model IDs** in the OpenAI Codex row to add subscription model IDs (one per line). The IDs are saved as `additionalModelIds` on the `llm-codex-share` entry in the profile's `cordis.patch.yml` and take effect without a restart. The installed catalog remains available; clearing the additional IDs restores it. For example, enter a model ID that your account can use but the catalog does not list yet. An unrecognized ID can be listed, but requests to it will fail if the Codex endpoint rejects it. Select a listed model in the model picker or agent preset. For a local Codex home outside the default location, set the absolute `CODEX_HOME` path in the environment that launches the harness. Direct Cordis composition can configure `codexHome` on the `dsh-codex-share` plugin instead.
|
|
28
28
|
|
|
29
29
|
The plugin intentionally does not refresh a stale token. When Codex writes a replacement, the next harness request reads it. When Codex's current access token has expired, harness calls fail until Codex refreshes its own login. An API-key-only Codex login is rejected; this route never falls back to `OPENAI_API_KEY`.
|
|
30
30
|
|
package/dist/index.mjs
CHANGED
|
@@ -62,7 +62,34 @@ function apply(ctx, config = Config({})) {
|
|
|
62
62
|
let lastIds;
|
|
63
63
|
let profiles;
|
|
64
64
|
const upstream = openaiCodexProvider();
|
|
65
|
-
const catalog = upstream.getModels();
|
|
65
|
+
const catalog = [...upstream.getModels()];
|
|
66
|
+
if (!catalog.some((model) => model.id === "gpt-6.1-sol")) {
|
|
67
|
+
const sol = catalog.find((model) => model.id === "gpt-6-sol");
|
|
68
|
+
if (sol === void 0) throw new TypeError("The Codex catalog must include GPT-6 Sol");
|
|
69
|
+
catalog.push({
|
|
70
|
+
...sol,
|
|
71
|
+
id: "gpt-6.1-sol",
|
|
72
|
+
name: "GPT-6.1 Sol",
|
|
73
|
+
thinkingLevelMap: {
|
|
74
|
+
...sol.thinkingLevelMap,
|
|
75
|
+
off: null,
|
|
76
|
+
minimal: null
|
|
77
|
+
},
|
|
78
|
+
cost: {
|
|
79
|
+
input: 2,
|
|
80
|
+
output: 10,
|
|
81
|
+
cacheRead: .1,
|
|
82
|
+
cacheWrite: 2.5,
|
|
83
|
+
tiers: [{
|
|
84
|
+
inputTokensAbove: 272e3,
|
|
85
|
+
input: 4,
|
|
86
|
+
output: 15,
|
|
87
|
+
cacheRead: .2,
|
|
88
|
+
cacheWrite: 5
|
|
89
|
+
}]
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
66
93
|
const profileBase = {
|
|
67
94
|
provider: PROVIDER,
|
|
68
95
|
displayName: "OpenAI Codex (local login)",
|