codex-subscription-oauth-plugin 0.1.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/LICENSE +21 -0
- package/README.ja.md +41 -0
- package/README.md +41 -0
- package/THIRD_PARTY_NOTICES.md +55 -0
- package/cordis.patch.yml +14 -0
- package/lib/index.d.ts +19 -0
- package/lib/index.js +1054 -0
- package/lib/models-DaqoXO5b.js +941 -0
- package/lib/openai-codex-responses-DPxdQtbt.js +2827 -0
- package/lib/openai-codex.js +574 -0
- package/lib/provider-env-DRzE1dvc.js +41 -0
- package/package.json +87 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026
|
|
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.
|
package/README.ja.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# dsh-codex
|
|
2
|
+
|
|
3
|
+
[English](./README.md) | 日本語
|
|
4
|
+
|
|
5
|
+
## 使い方
|
|
6
|
+
|
|
7
|
+
DeepSeek Harnessのチェックアウトからプラグインをインストールします。
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm dsh plugin --profile web add github:askdkc/dsh-codex
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`web` は対象のプロファイル名に置き換え、インストール後にそのプロファイルを再起動してください。
|
|
14
|
+
|
|
15
|
+
ACPで使う場合は、ACP用プロファイルにもインストールします。
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
pnpm dsh plugin --profile acp add github:askdkc/dsh-codex
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
プラグインはプロファイルごとに読み込まれるため、`web` に導入しただけでは `acp` にモデルは追加されません。ACPクライアントが起動するDSHプロセスを再起動し、モデル選択を開き直してください。別のプロファイルを使っている場合は、`acp` をその名前に置き換えます。
|
|
22
|
+
|
|
23
|
+
Codex用のChatGPTアカウントでログインします。
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
/codex-auth
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
ブラウザでログインを完了してください。localhostのコールバックがDSHへ届かない場合は、表示された指示に従ってリダイレクトURLまたは認証コードを貼り付けます。
|
|
30
|
+
|
|
31
|
+
プラグインを削除する場合:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
pnpm dsh plugin --profile web remove codex-subscription-oauth-plugin
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## ライセンス
|
|
38
|
+
|
|
39
|
+
MITライセンスです。詳細は [LICENSE](./LICENSE) を参照してください。
|
|
40
|
+
|
|
41
|
+
同梱している第三者コードの通知は [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md) に記載しています。
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# dsh-codex
|
|
2
|
+
|
|
3
|
+
English | [日本語](./README.ja.md)
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Install the plugin from a DeepSeek Harness checkout:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm dsh plugin --profile web add github:askdkc/dsh-codex
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Replace `web` with the target profile name, then restart that profile.
|
|
14
|
+
|
|
15
|
+
For ACP, install the plugin in the ACP profile too:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
pnpm dsh plugin --profile acp add github:askdkc/dsh-codex
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Profiles load plugins independently: installing into `web` does not add models to `acp`. Restart the DSH process launched by your ACP client, then reopen its model selector. If the client uses a different profile, replace `acp` with that name.
|
|
22
|
+
|
|
23
|
+
Sign in to ChatGPT for Codex:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
/codex-auth
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Complete the browser login. If the localhost callback cannot reach DSH, paste the redirect URL or authorization code when prompted.
|
|
30
|
+
|
|
31
|
+
Remove the plugin:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
pnpm dsh plugin --profile web remove codex-subscription-oauth-plugin
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
MIT. See [LICENSE](./LICENSE).
|
|
40
|
+
|
|
41
|
+
Bundled third-party notices are listed in [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md).
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
This distribution contains bundled portions of the following packages.
|
|
4
|
+
|
|
5
|
+
## @earendil-works/pi-ai 0.85.1
|
|
6
|
+
|
|
7
|
+
Source: https://github.com/earendil-works/pi
|
|
8
|
+
|
|
9
|
+
MIT License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2025 Mario Zechner
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
|
|
31
|
+
## partial-json 0.1.7
|
|
32
|
+
|
|
33
|
+
Source: https://github.com/promplate/partial-json-parser-js
|
|
34
|
+
|
|
35
|
+
MIT License
|
|
36
|
+
|
|
37
|
+
Copyright (c) 2023 Promplate Dev Team
|
|
38
|
+
|
|
39
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
40
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
41
|
+
in the Software without restriction, including without limitation the rights
|
|
42
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
43
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
44
|
+
furnished to do so, subject to the following conditions:
|
|
45
|
+
|
|
46
|
+
The above copyright notice and this permission notice shall be included in all
|
|
47
|
+
copies or substantial portions of the Software.
|
|
48
|
+
|
|
49
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
50
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
51
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
52
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
53
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
54
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
55
|
+
SOFTWARE.
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Keep llm-pi-ai mounted for its provider-owned OAuth flow, but let this plugin
|
|
2
|
+
# own the openai-codex route so its executable model set can refresh at runtime.
|
|
3
|
+
- id: llm-pi-ai
|
|
4
|
+
config:
|
|
5
|
+
providers: {}
|
|
6
|
+
|
|
7
|
+
- insert:
|
|
8
|
+
- id: codex-subscription-oauth
|
|
9
|
+
name: './lib/index.js'
|
|
10
|
+
config:
|
|
11
|
+
catalog:
|
|
12
|
+
refreshIntervalMs: 900000
|
|
13
|
+
revalidateAfterMs: 60000
|
|
14
|
+
timeoutMs: 15000
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Context } from "@deepseek-ai/cordis";
|
|
2
|
+
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
/** Cordis plugin name. */
|
|
5
|
+
declare const name = "codex-subscription-oauth";
|
|
6
|
+
/** Services required before the command and model adapter can activate. */
|
|
7
|
+
declare const inject: string[];
|
|
8
|
+
/** Optional live-catalog timing controls supplied by the bundle patch. */
|
|
9
|
+
interface Config {
|
|
10
|
+
readonly catalog?: {
|
|
11
|
+
readonly refreshIntervalMs?: number;
|
|
12
|
+
readonly revalidateAfterMs?: number;
|
|
13
|
+
readonly timeoutMs?: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/** Register the command, dynamic model route, and fallback authorization service. */
|
|
17
|
+
declare function apply(ctx: Context, config?: Config): void;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Config, apply, inject, name };
|