dsh-subscription-qoder 0.0.0-stage → 0.6.6

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 mo-n
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.en.md ADDED
@@ -0,0 +1,40 @@
1
+ # Qoder
2
+
3
+ [简体中文](README.md) · English
4
+
5
+ Use your Qoder subscription in DeepSeek Harness (DSH). The plugin supports Global and China regions, model selection, conversations with images, and subscription quota lookup. Install ID: `dsh-subscription-qoder`; display name: **Qoder**.
6
+
7
+ ## Install and use
8
+
9
+ Requires DSH **0.2.3-alpha.3** or later and a Qoder subscription for the selected region. This release targets macOS Desktop for hands-on verification. Linux and Windows have not been tested end to end.
10
+
11
+ Open **Plugins → Add plugin** and enter `dsh-subscription-qoder` to install from npm, or run:
12
+
13
+ ```sh
14
+ dsh plugin --profile desktop add dsh-subscription-qoder
15
+ ```
16
+
17
+ For Web, replace `desktop` with `web`. Under **Settings → Models → Qoder Account**, select the region and sign in through the browser (recommended) or use a personal access token (PAT). Pick a Qoder model in the conversation model selector; choose one that supports image input when attaching pictures. **Settings → Qoder** shows quota and lets you configure enabled models and search behavior.
18
+
19
+ ### Migrate from the upstream package
20
+
21
+ **Disable** `dsh-provider-qoder` before installing this fork. Do not enable both packages. The model-route ID, credential identifier, and configuration row are unchanged so you do not need to clear old sessions, credentials, or settings. If the account does not appear, check the region and sign in again if needed. To roll back, disable this fork before re-enabling the upstream package.
22
+
23
+ ### Check for updates
24
+
25
+ Refresh the Plugins page or recheck from the plugin details. When an update is offered, verify the version and source and then confirm. No uninstall is needed. These checks are not pushed globally and do not install updates automatically. Pinned Git, archive, and `link:` installs do not use npm update checks. Let active Qoder runs finish first, then refresh or restart if DSH asks. DSH credentials, settings, conversation attachments, and Qoder sign-in state are stored outside the package (local Qoder sign-in state defaults to `~/.dsh/qoder`).
26
+
27
+ ### Pinned Git version (alternative)
28
+
29
+ ```text
30
+ git+https://github.com/fujingzhai/youxia-dsh-plugins.git#dsh-subscription-qoder@0.6.6&path:/dsh-subscription-qoder
31
+ ```
32
+
33
+ Git installs may require a build and approval of build scripts. Prefer the prebuilt npm package.
34
+
35
+ ## Configuration and upstream
36
+
37
+ - [Advanced settings](docs/wiki/configuration.md): transport, timeouts, web search, and historical reasoning content.
38
+ - [Upstream and maintenance](UPSTREAM.md): forked from [mo-n/dsh-provider-qoder](https://github.com/mo-n/dsh-provider-qoder) v0.6.5, distributed independently under the original [MIT license](LICENSE).
39
+
40
+ This community plugin is not affiliated with Qoder or DeepSeek. Messages and images needed for a response are processed by the selected Qoder service; images may be uploaded to Qoder first. Follow Qoder’s service terms, regional restrictions, and subscription limits. Never share PATs, tokens, or private conversations and settings in issue reports.
package/README.md CHANGED
@@ -1,3 +1,44 @@
1
- # Temporary Holding Version
1
+ # Qoder
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
+ 简体中文 · [English](README.en.md)
4
+
5
+ 在 DeepSeek Harness(DSH)中使用你已有的 Qoder 订阅,支持国际版与中国区、模型选择、带图对话及订阅用量查询。包名 `dsh-subscription-qoder`,插件页显示 **Qoder**。
6
+
7
+ ## 安装和使用
8
+
9
+ 最低 DSH **0.2.3-alpha.3**。需要与所选地区匹配的 Qoder 订阅;macOS 桌面版为本次实测环境,Linux / Windows 未做端到端验证。
10
+
11
+ 打开 **插件 → 添加插件**,从 npm 安装:
12
+
13
+ ```text
14
+ dsh-subscription-qoder
15
+ ```
16
+
17
+ ```sh
18
+ dsh plugin --profile desktop add dsh-subscription-qoder
19
+ ```
20
+
21
+ Web 版将 `desktop` 改为 `web`。安装后在 **设置 → 模型 → Qoder 账号** 选择地区并网页登录(推荐),也可用个人访问令牌(PAT)。接着在输入框的模型选择器选 Qoder;要发图片,请选支持图片输入的模型。**设置 → Qoder** 可查看额度、调整启用模型及搜索策略。
22
+
23
+ ### 从上游包迁移
24
+
25
+ 先在插件页**禁用** `dsh-provider-qoder`,再安装本插件,不要同时启用两个版本。保留原来的模型路由 ID、凭据标识与配置行 ID,因此不需要主动清除旧会话、Qoder 登录或配置。若账号未显示,先核对服务地区,再从设置里授权;如需回退,先禁用本插件,再启用旧包。
26
+
27
+ ### 检查更新
28
+
29
+ 在插件页刷新,或在详情点**重新检查**;出现**更新到 <版本>**时核对来源并确认,无需手动卸载重装。检查不是全局推送,也不自动升级;固定 Git、压缩包和 `link:` 安装不使用这套 npm 更新机制。等正在运行的 Qoder 对话结束再更新,按 DSH 提示刷新或重启。会话附件、DSH 凭据、profile 设置及 Qoder 登录状态都在包外(本地登录状态默认在 `~/.dsh/qoder`)。
30
+
31
+ ### 固定 Git 版本(备选)
32
+
33
+ ```text
34
+ git+https://github.com/fujingzhai/youxia-dsh-plugins.git#dsh-subscription-qoder@0.6.6&path:/dsh-subscription-qoder
35
+ ```
36
+
37
+ Git 来源可能需要构建及 DSH 批准构建脚本,日常请用 npm 预构建包。
38
+
39
+ ## 配置与上游
40
+
41
+ - [高级设置](docs/wiki/configuration_CN.md):传输方式、超时、联网搜索、历史推理内容等。
42
+ - [上游来源与维护边界](UPSTREAM.md):从 [mo-n/dsh-provider-qoder](https://github.com/mo-n/dsh-provider-qoder) v0.6.5 fork,沿用 [MIT](LICENSE),由本合集独立发布。
43
+
44
+ 这是社区插件,与 Qoder 和 DeepSeek 官方无关。所选模型会接收用于生成回复的消息与图片;图片可能先交给 Qoder 的图片上传服务。请遵守 Qoder 服务条款、订阅及地区限制;不要在问题反馈中提交 PAT、令牌、私人对话或配置。
package/UPSTREAM.md ADDED
@@ -0,0 +1,11 @@
1
+ # 上游来源 / Upstream
2
+
3
+ - 原项目 / Project: [mo-n/dsh-provider-qoder](https://github.com/mo-n/dsh-provider-qoder)
4
+ - 导入基线 / Imported baseline: [v0.6.5](https://github.com/mo-n/dsh-provider-qoder/releases/tag/v0.6.5), commit [`92cab2f37b522dfc4cffe458e881e6a884fb90dc`](https://github.com/mo-n/dsh-provider-qoder/commit/92cab2f37b522dfc4cffe458e881e6a884fb90dc)
5
+ - GitHub fork: [fujingzhai/dsh-provider-qoder](https://github.com/fujingzhai/dsh-provider-qoder)
6
+ - 维护与发布 / Maintenance and releases: [fujingzhai/youxia-dsh-plugins · dsh-subscription-qoder](https://github.com/fujingzhai/youxia-dsh-plugins/tree/main/dsh-subscription-qoder)
7
+ - 授权 / License: [原 MIT 许可 / original MIT license](LICENSE)。保留上游版权与图标。Qoder 名称与标识属于相应权利人;本项目并未获其背书。 Upstream copyright and artwork are retained; the Qoder name and marks belong to their respective holders. No endorsement is implied.
8
+
9
+ 本合集独立维护 npm 包、插件元数据及 DSH 接口适配。导入上游更新时保留我们的包 ID,并继续兼容已有模型路由、配置行和凭据标识。请在合集提交问题,不要把 fork 专有问题报给上游。
10
+
11
+ This collection independently maintains the npm package, plugin metadata, and DSH compatibility. When importing upstream changes, preserve the fork's package ID and compatibility with existing model routes, configuration rows, and credential identifiers. Report fork-specific issues to the collection, not upstream.
Binary file
@@ -0,0 +1,6 @@
1
+ # Adds only the Qoder provider plugin. Model selection remains user-owned.
2
+ # Web provider configuration remains host-owned; Qoder routes eligible searches at runtime.
3
+ # Keep the existing row ID so profile overrides keep working after replacing the upstream bundle.
4
+ - insert:
5
+ - id: provider-qoder
6
+ name: 'dsh-subscription-qoder'
@@ -0,0 +1,61 @@
1
+ # Plugin Configuration
2
+
3
+ [简体中文](./configuration_CN.md) · English
4
+
5
+ Desktop profile file: `~/.dsh/profiles/desktop/cordis.patch.yml`. For Web, replace `desktop` with `web`.
6
+
7
+ Add options under the existing Qoder entry's `config`, preserving other fields:
8
+
9
+ ```yaml
10
+ - id: provider-qoder
11
+ name: dsh-subscription-qoder
12
+ config:
13
+ showModelRates: true
14
+ modelTransport: legacy
15
+ requestCompression: true
16
+ requestCompressionMinChars: 4096
17
+ requestCompressionLevel: 1
18
+ modelQueueMaxWaitMs: 3600000
19
+ responseHeaderTimeoutMs: 60000
20
+ streamIdleTimeoutMs: 300000
21
+ preserveThinking: true
22
+ replaceSystemPrompt: true
23
+ ```
24
+
25
+ These options are configured through YAML and have no editor in the plugin settings UI.
26
+
27
+ | Field | Default | Description |
28
+ | --- | --- | --- |
29
+ | `showModelRates` | `true` | Show billing rates and promotion tags in the conversation model dropdown. Set to `false` to hide them. |
30
+ | `modelTransport` | `legacy` | Model transport channel, supports `legacy` and `http` |
31
+ | `requestCompression` | `true` | Set to `false` to disable Zstd request-body compression |
32
+ | `requestCompressionMinChars` | `4096` | Character threshold for attempting request-body compression |
33
+ | `requestCompressionLevel` | `1` | Zstd compression level, integer from `1` to `22` |
34
+ | `modelQueueMaxWaitMs` | `3600000` (60 minutes) | Cumulative queue wait per logical model call, shared across repeated queue entries; excludes normal generation time |
35
+ | `responseHeaderTimeoutMs` | `60000` (1 minute) | Time limit for receiving model request HTTP response headers |
36
+ | `streamIdleTimeoutMs` | `300000` (5 minutes) | SSE data idle timeout |
37
+ | `preserveThinking` | `true` | Whether requests include historical reasoning content |
38
+ | `replaceSystemPrompt` | `true` | Replace the assistant identity line in the main conversation's default system prompt with Qoder. Leave the rest intact. |
39
+
40
+ - Time values are positive integers in milliseconds; the queue wait limit must not exceed `2147483647`. `0` does not mean unlimited waiting.
41
+
42
+ ## Model transport
43
+
44
+ `modelTransport` supports `legacy` and `http`:
45
+
46
+ - `legacy` (default): sends model requests through the COSY channel.
47
+ - `http` (experimental): sends model requests through the `/v1/chat/completions` (OpenAI-compatible) endpoint.
48
+
49
+ For example, to select the HTTP channel and disable compression, set in the existing plugin entry:
50
+
51
+ ```yaml
52
+ config:
53
+ modelTransport: http
54
+ requestCompression: false
55
+ ```
56
+
57
+ ## Request-body compression
58
+
59
+ `requestCompression` is a boolean that defaults to `true` and applies to both model channels. Set it to `false` in YAML to disable Zstd request-body compression. You can configure channel selection and compression independently.
60
+
61
+ When enabled, eligible request bodies with characters reaching `requestCompressionMinChars` will attempt compression, with the compression level specified by `requestCompressionLevel`.
@@ -0,0 +1,63 @@
1
+ # 插件配置
2
+
3
+ 简体中文 · [English](./configuration.md)
4
+
5
+ 桌面 profile 配置文件:`~/.dsh/profiles/desktop/cordis.patch.yml`。使用 Web 版时将 `desktop` 改为 `web`。
6
+
7
+ 在已有 Qoder 插件条目的 `config` 中按需配置,保留其他字段:
8
+
9
+ ```yaml
10
+ - id: provider-qoder
11
+ name: dsh-subscription-qoder
12
+ config:
13
+ showModelRates: true
14
+ modelTransport: legacy
15
+ requestCompression: true
16
+ requestCompressionMinChars: 4096
17
+ requestCompressionLevel: 1
18
+ modelQueueMaxWaitMs: 3600000
19
+ responseHeaderTimeoutMs: 60000
20
+ streamIdleTimeoutMs: 300000
21
+ preserveThinking: true
22
+ replaceSystemPrompt: true
23
+ ```
24
+
25
+ 以下选项仅通过 YAML 配置,设置页面不提供编辑入口。
26
+
27
+ | 字段 | 默认值 | 说明 |
28
+ | --- | --- | --- |
29
+ | `showModelRates` | `true` | 在会话模型下拉列表中显示计费倍率和促销标签。设为 `false` 可隐藏。 |
30
+ | `modelTransport` | `legacy` | 模型传输渠道,支持 `legacy` 和 `http` |
31
+ | `requestCompression` | `true` | 设置为 `false` 关闭 Zstd 请求体压缩 |
32
+ | `requestCompressionMinChars` | `4096` | 触发压缩尝试的请求体字符数阈值 |
33
+ | `requestCompressionLevel` | `1` | Zstd 压缩等级,`1` 到 `22` 的整数 |
34
+ | `modelQueueMaxWaitMs` | `3600000`(60 分钟) | 单次逻辑模型调用的累计排队上限,多次排队共用,不包含正常生成耗时 |
35
+ | `responseHeaderTimeoutMs` | `60000`(1 分钟) | 等待模型请求 HTTP 响应头的时限 |
36
+ | `streamIdleTimeoutMs` | `300000`(5 分钟) | SSE 数据空闲超时时间 |
37
+ | `preserveThinking` | `true` | 请求是否携带历史推理内容 |
38
+ | `replaceSystemPrompt` | `true` | 将主对话默认提示词中的助手身份行替换为 Qoder;不替换其余内容。 |
39
+
40
+ - 时间单位均为毫秒,要求正整数;排队上限最大为 `2147483647`。`0` 不表示无限等待。
41
+
42
+ ## 模型传输渠道
43
+
44
+ `modelTransport` 支持 `legacy` 和 `http`:
45
+
46
+ - `legacy`(默认):通过 COSY 渠道发送模型请求。
47
+ - `http`(试验功能):通过`/v1/chat/completions`(openAI风格)接口发送模型请求。
48
+
49
+ 例如,选择 HTTP 渠道并关闭压缩时,在已有插件条目中设置:
50
+
51
+ ```yaml
52
+ config:
53
+ modelTransport: http
54
+ requestCompression: false
55
+ ```
56
+
57
+ ## 请求体压缩
58
+
59
+ `requestCompression` 为布尔值,默认 `true`,对两种模型渠道均有效。在 YAML 中设置为
60
+ `false` 可关闭 Zstd 请求体压缩。渠道选择与压缩开关可以独立配置。
61
+
62
+ 开启后,满足条件且字符数达到 `requestCompressionMinChars` 的请求体会尝试压缩,
63
+ 压缩等级由 `requestCompressionLevel` 指定。