dsh-codex-oauth 0.2.6 → 0.2.8
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/README.zh.md +1 -1
- package/client/index.jsx +1 -1
- package/lib/client.js +1 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | [中文](README.zh.md)
|
|
4
4
|
|
|
5
|
-
A standalone [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin for using ChatGPT Plus/Pro Codex models through OpenAI's Codex OAuth flow.
|
|
5
|
+
A standalone [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin for using ChatGPT Plus/Pro Codex models through OpenAI's Codex OAuth flow.
|
|
6
6
|
|
|
7
7
|
It uses the official `openaiCodexProvider` from `@earendil-works/pi-ai` and DSH's public `dsh-llm-pi-ai` adapter. It supports streaming, tool calls, reasoning, images, replay, compaction, automatic token refresh, and the Codex model catalog.
|
|
8
8
|
|
package/README.zh.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
一个独立的 [DeepSeek Harness(dsh)](https://github.com/deepseek-ai/deepseek-harness) 插件,通过 OpenAI Codex OAuth 使用 ChatGPT Plus/Pro 订阅模型。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
插件使用 `@earendil-works/pi-ai` 提供的 Codex provider,以及 DSH 公共的 `dsh-llm-pi-ai` 适配器,支持流式输出、工具调用、推理、图片、replay、上下文压缩、OAuth 自动刷新和 Codex 模型目录。
|
|
8
8
|
|
|
9
9
|
这是 ChatGPT Codex 后端接入,不是普通的 OpenAI Platform API Key 适配器。
|
|
10
10
|
|
package/client/index.jsx
CHANGED
|
@@ -45,7 +45,7 @@ function CodexSettings() {
|
|
|
45
45
|
h("span", null, label),
|
|
46
46
|
state.status === "loading" ? null : h("button", { type: "button", disabled: busy || state.status === "signing-in", onClick: signedIn ? signOut : signIn }, signedIn ? "退出登录" : "使用 ChatGPT 登录")),
|
|
47
47
|
state.status === "error" ? h("p", { style: { color: "var(--dsw-alias-state-error-primary)" } }, state.message) : null,
|
|
48
|
-
|
|
48
|
+
);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export const name = "dsh-codex-oauth-client";
|
package/lib/client.js
CHANGED
|
@@ -101,8 +101,7 @@ function CodexSettings() {
|
|
|
101
101
|
h("span", null, label),
|
|
102
102
|
state.status === "loading" ? null : h("button", { type: "button", disabled: busy || state.status === "signing-in", onClick: signedIn ? signOut : signIn }, signedIn ? "\u9000\u51FA\u767B\u5F55" : "\u4F7F\u7528 ChatGPT \u767B\u5F55")
|
|
103
103
|
),
|
|
104
|
-
state.status === "error" ? h("p", { style: { color: "var(--dsw-alias-state-error-primary)" } }, state.message) : null
|
|
105
|
-
h("p", { style: { margin: 0, color: "var(--dsw-alias-label-secondary)", fontSize: 13 } }, "\u51ED\u636E\u4FDD\u5B58\u5728 DSH_HOME/.openai-codex-auth.json\uFF0C\u4E0D\u4F1A\u8BFB\u53D6 Pi \u6216 Codex CLI \u7684\u767B\u5F55\u6587\u4EF6\u3002")
|
|
104
|
+
state.status === "error" ? h("p", { style: { color: "var(--dsw-alias-state-error-primary)" } }, state.message) : null
|
|
106
105
|
);
|
|
107
106
|
}
|
|
108
107
|
var name = "dsh-codex-oauth-client";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-codex-oauth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Use a ChatGPT Codex subscription in DeepSeek Harness through standalone OAuth",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": { "esbuild": "^0.28.2" },
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@earendil-works/pi-ai": "^0.84.1",
|
|
30
|
+
"@earendil-works/pi-ai": "^0.82.1 || ^0.84.1",
|
|
31
31
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
32
|
-
"@deepseek-ai/dsh-atomic-write": "^0.1.
|
|
33
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
34
|
-
"@deepseek-ai/dsh-llm-pi-ai": "^0.1.
|
|
32
|
+
"@deepseek-ai/dsh-atomic-write": "^0.1.1-rc.2",
|
|
33
|
+
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
|
|
34
|
+
"@deepseek-ai/dsh-llm-pi-ai": "^0.1.1-rc.2"
|
|
35
35
|
}
|
|
36
36
|
}
|