dsh-chatgpt-rs 0.0.0-stage → 0.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.
@@ -0,0 +1,7 @@
1
+ # OpenAI brand attribution
2
+
3
+ The OpenAI logo is a trademark of OpenAI. It identifies the connected OpenAI service; this plugin is not an official OpenAI product or an endorsement by OpenAI.
4
+
5
+ Artwork source: https://cdn.openai.com/brand/OpenAI-Logos-2025.zip
6
+
7
+ Brand guidelines and usage terms: https://openai.com/brand/
package/README.md CHANGED
@@ -1,3 +1,41 @@
1
- # Temporary Holding Version
1
+ # dsh-chatgpt-rs
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 为 DeepSeek Harness(DSH)接入 ChatGPT 账号,支持 Codex 模型对话、图片输入、网页搜索与账号管理。
4
+
5
+ ## 安装
6
+
7
+ Desktop 用户在 **插件 → 添加插件** 中输入 `dsh-chatgpt-rs`,安装并启用。Web profile 用户执行:
8
+
9
+ ```sh
10
+ dsh plugin --profile web add dsh-chatgpt-rs
11
+ ```
12
+
13
+ 安装后,在 Web 界面的插件页启用。自定义 profile 请将 `web` 替换为对应名称。Desktop 与 Web profile 需要分别安装。
14
+
15
+ 适用于 DSH 0.2.2-rc.1,支持 Windows x64、macOS arm64 / x64 和 Linux x64(GNU/glibc)。
16
+
17
+ ## 使用
18
+
19
+ 在 **设置 → ChatGPT** 中登录和管理账号,在对话的模型菜单中选择模型与推理强度。
20
+
21
+ 提供 **继续使用 ChatGPT**(SIWC)、**Codex 浏览器(过时)** 和 **Codex 设备码(过时)** 三种登录方式。
22
+
23
+ > **OpenAI 建议第三方开源应用使用 [SIWC](https://developers.openai.com/siwc/token-sharing-open-source)**。Codex 过时登录不符合该接入规范,未来可能因 OpenAI 政策或接口调整而受限、失效甚至被判定为违规。SIWC 当前能力相对有限,差异见下表。
24
+
25
+ | 能力 | SIWC | Codex 浏览器/设备码(过时) |
26
+ | --- | --- | --- |
27
+ | 模型对话与推理强度选择 | 支持 | 支持 |
28
+ | 图片输入 | 支持 | 支持 |
29
+ | 网页搜索 | 支持 | 支持 |
30
+ | 订阅额度展示与刷新 | 不提供 | 支持 |
31
+ | 图片生成 | 不提供 | 支持 |
32
+
33
+ 可用模型、推理档位及图片能力取决于账号和模型。
34
+
35
+ ![ChatGPT 账号与设置概览,图中为示例数据](https://raw.githubusercontent.com/noctisynth/dsh-codex-provider/main/assets/account-settings.png)
36
+
37
+ 搜索范围、图片精度、自动审批和侧边栏账号显示均在此设置。搜索与审批也可用于其他模型,消耗当前 ChatGPT 账号用量。切换或退出账号会停止插件正在进行的操作。
38
+
39
+ ## 反馈
40
+
41
+ 请通过 [Issues](https://github.com/noctisynth/dsh-codex-provider/issues) 反馈问题,并附上 DSH 与插件版本、操作系统和错误提示。
Binary file
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Material-UI SAS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 shadcn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: codex-provider
3
+ name: dsh-chatgpt-rs
package/icon.svg ADDED
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64" fill="none">
2
+ <rect width="64" height="64" rx="16" fill="#1D292B"/>
3
+ <path d="M20 17h24a7 7 0 0 1 7 7v15a7 7 0 0 1-7 7H30l-11 7v-7a7 7 0 0 1-6-7V24a7 7 0 0 1 7-7Z" stroke="#F4F8F5" stroke-width="3" stroke-linejoin="round"/>
4
+ <path d="m26 26-5 5 5 5m12-10 5 5-5 5" stroke="#E8AB7A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>