dsh-opendesign-corouter 0.1.8 → 0.1.10

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 CHANGED
@@ -32,7 +32,7 @@ dsh plugin --profile web add dsh-opendesign-corouter
32
32
  也可打开 [Actions → CI](https://github.com/KouzakiUmi/dsh-opendesign-corouter/actions/workflows/ci.yml),从成功构建下载 **`dsh-opendesign-corouter-build`** artifact。登录 GitHub 后解压 ZIP,取得 `.tgz` 与 `.sha256`,再安装本地包:
33
33
 
34
34
  ```console
35
- dsh plugin --profile web add /absolute/path/to/dsh-opendesign-corouter-0.1.8.tgz
35
+ dsh plugin --profile web add /absolute/path/to/dsh-opendesign-corouter-0.1.10.tgz
36
36
  ```
37
37
 
38
38
  `web` 只是示例,请替换为目标 Profile。Desktop 使用桌面安装器提供的 `dsh` 入口;独立公共 CLI 不能代管保留的 `desktop` Profile。安装后的启用与重载按目标 DSH 的管理流程进行。
@@ -53,13 +53,13 @@ dsh plugin --profile web add /absolute/path/to/dsh-opendesign-corouter-0.1.8.tgz
53
53
  | Provider | 模型数 | 用途 |
54
54
  | --- | ---: | --- |
55
55
  | `opendesign-corouter-plan` | 13 | Core / Design Plan 附赠通道,含预检确认覆盖的 MiniMax M3.1 Flash |
56
- | `opendesign-corouter-paid` | 25 | Plan 套餐模型及其他钱包付费模型 |
56
+ | `opendesign-corouter-paid` | 26 | Plan 套餐模型及其他钱包付费模型 |
57
57
 
58
58
  上表为内置目录。模型页可通过当前配置网关的 OpenAI 兼容 `/models` 接口刷新目录,逐个启用或停用模型,并配置温度、top-p、默认输出上限、上下文预算及思考深度。停用同时影响模型选择器和直接调用;参数会保存并应用到实际请求。媒体生成接口不在对话目录中,未知能力不按名称猜测。
59
59
 
60
60
  推理协议可选 **OpenAI Chat Completions、OpenAI Responses、Anthropic Messages**。模型发现始终使用当前网关的 OpenAI 兼容 `/models` 接口,不随推理协议切换。
61
61
 
62
- 思考档位按精确型号的厂商文档维护,并按当前协议筛选。33 款提供离散档位,4 款为固定思考或开关/预算控制,Muse Wonder 的精确别名尚待确认。旧配置中的无效默认档位可在参数设置中改为“继承默认”。[逐模型来源与网关验证状态](docs/reasoning-evidence.md)
62
+ 思考档位按精确型号的厂商文档维护,并按当前协议筛选。34 款提供离散档位,4 款为固定思考或开关/预算控制,Muse Wonder 的精确别名尚待确认。旧配置中的无效默认档位可在参数设置中改为“继承默认”。[逐模型来源与网关验证状态](docs/reasoning-evidence.md)
63
63
 
64
64
  > **分组不等于计费隔离。** 赠送额度耗尽后是否转扣套餐余额或钱包,由服务端和账号权益决定。选择“套餐赠送”不能保证绝不消耗钱包余额。
65
65
 
package/lib/catalog.d.ts CHANGED
@@ -9,6 +9,9 @@
9
9
  * - `plan` 原有 12 款的 contextWindow / maxOutputTokens / inputModalities
10
10
  * 来自 Go 侧 `dsh-opendesign-go` 0.1.9 的 MODEL_DEFAULTS(同一 `amr-link` endpoint 部署资料),
11
11
  * 作为部署参考,尚无官网能力数值的独立佐证;只用于对应的原有 12 款模型。
12
+ * - `gpt-6.1-terra` 的 contextWindow / maxOutputTokens / inputModalities 取自
13
+ * 厂商型号文档(1,050,000 / 128,000 / text+image,与 `gpt-6-luna` 同口径);
14
+ * CoRouter 网关侧未实测该型号的有效预算。
12
15
  * - 客户端桌面安装(Open Design 0.26.1)不内联 CoRouter 目录;其
13
16
  * `vela model preset --format json` 只有 11 个旧预设 id(见 docs/client-evidence.md),
14
17
  * 与本表不同代,故不用于本目录。
@@ -16,9 +19,11 @@
16
19
  * 分组语义(重要):`plan`/`paid` 是**本插件本地目录分类**,用于把“套餐赠送通道”与
17
20
  * “其余付费通道”拆成两个 Provider,不是上游强制计费契约。最终可用性、扣哪个额度池、
18
21
  * 是否先扣 Design Plan 额度再用套餐模型/钱包额度,全部由服务端按账号套餐决定。
19
- * 2026-10-27 官方 GET /v1/models 实测补齐五个 ID,现为 plan 13 + paid 25。
22
+ * 2026-10-27 官方 GET /v1/models 实测补齐五个 ID,同日厂商型号文档与服务目录
23
+ * 补齐 GPT-6.1 Terra,现为 plan 13 + paid 26。
20
24
  * 同日桌面 Vela 按模型 billing preflight:M3.1 Flash 的 modelCovered=true /
21
25
  * funding=coding_plan,新增于附赠通道;其余四项为 false / wallet,归付费通道。
26
+ * GPT-6.1 Terra 同为 modelCovered=false / funding=wallet,归付费通道。
22
27
  * 此分类以当次工作区证据为依据,不保证其他账号或未来套餐权益。
23
28
  * 新增项证据及名称来源见 docs/client-evidence.md;不从型号名推断能力。
24
29
  *
@@ -41,7 +46,7 @@ export interface CatalogModel {
41
46
  }
42
47
  /**
43
48
  * `plan` 为官网 12 款 Core / Design Plan 模型,加预检确认覆盖的 M3.1 Flash;
44
- * 其余 25 项归 `paid`(Plan / 钱包付费通道)。
49
+ * 其余 26 项归 `paid`(Plan / 钱包付费通道)。
45
50
  */
46
51
  export declare const MODELS: readonly CatalogModel[];
47
52
  export declare function modelsFor(group: 'plan' | 'paid'): readonly CatalogModel[];
package/lib/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import openDesignCoRouterRemote, { type CoRouterRemote } from './generated/typert.remote-client.js';
3
3
  import type { TypertClientRemote } from '@deepseek-ai/dsh-typert-protocol';
4
- import { type LoginState, type Status, type StatusModel } from './remote.js';
4
+ import { type LoginState, type Status, type StatusModel, type PriceCatalog } from './remote.js';
5
5
  import type { QuotaSnapshot, QuotaWindow } from './quota.js';
6
6
  import { type ApiProtocol } from './protocol-options.js';
7
7
  import type { ModelSettings, ModelSettingsMap } from './model-settings.js';
@@ -82,16 +82,29 @@ interface Notice {
82
82
  }
83
83
  export declare function formatUsd(value: number | undefined): string;
84
84
  export declare function formatTime(value: string | undefined): string;
85
+ /** Relative time uses the actual scheduled instant, not the refresh interval. */
86
+ export declare function formatRelativeDeadline(value: string | undefined, now: number, dueText: string): string;
87
+ export declare function formatRefreshCountdown(value: string | undefined, now: number): string;
85
88
  /** Token capacities use the same zh-CN grouping as amounts so large windows stay readable. */
86
89
  export declare function formatTokens(value: number | undefined): string;
90
+ /** Compact credits for the summary; exact figures remain available to assistive technology. */
91
+ export declare function formatWindowCredits(value: number): string;
92
+ type QuotaTone = 'neutral' | 'good' | 'warn' | 'critical';
93
+ export declare function quotaStatusView(quota: QuotaSnapshot, now: number): {
94
+ title: string;
95
+ tone: QuotaTone;
96
+ icon: string;
97
+ window?: QuotaWindow;
98
+ };
87
99
  export interface QuotaViewProps {
88
100
  quota: QuotaSnapshot | undefined;
89
101
  nextAutoRefreshAt?: string | undefined;
90
102
  refreshIntervalSeconds?: number | undefined;
103
+ busy?: boolean | undefined;
91
104
  }
92
105
  /** Earliest still-future window reset; quota recovery comes only from `windows[].resetsAt`. */
93
106
  export declare function nextWindowResetAt(windows: readonly QuotaWindow[], now: number): string | undefined;
94
- export declare function QuotaView({ quota, nextAutoRefreshAt, refreshIntervalSeconds }: QuotaViewProps): React.DetailedReactHTMLElement<{
107
+ export declare function QuotaView({ quota, nextAutoRefreshAt, refreshIntervalSeconds, busy }: QuotaViewProps): React.DetailedReactHTMLElement<{
95
108
  className: string;
96
109
  role: "status";
97
110
  }, HTMLElement> | React.FunctionComponentElement<{
@@ -157,9 +170,11 @@ export interface ModelRowProps {
157
170
  authoritative: boolean;
158
171
  writable: boolean;
159
172
  pending: boolean;
173
+ price?: PriceCatalog['models'][number] | undefined;
174
+ priceKnown?: boolean | undefined;
160
175
  onCommit: (next: ModelSettings | undefined) => Promise<boolean>;
161
176
  }
162
- export declare function ModelRow({ model, settings, authoritative, writable, pending, onCommit }: ModelRowProps): React.DetailedReactHTMLElement<{
177
+ export declare function ModelRow({ model, settings, authoritative, writable, pending, price, priceKnown, onCommit }: ModelRowProps): React.DetailedReactHTMLElement<{
163
178
  className: string;
164
179
  }, HTMLElement>;
165
180
  export interface ModelsProps {
@@ -170,8 +185,11 @@ export interface ModelsProps {
170
185
  onRefreshModels: () => void;
171
186
  refreshingModels: boolean;
172
187
  notice: Notice | null;
188
+ prices?: PriceCatalog | undefined;
189
+ refreshingPrices?: boolean | undefined;
190
+ onRefreshPrices?: (() => void) | undefined;
173
191
  }
174
- export declare function Models({ status, formSnapshot, setFormField, pendingField, onRefreshModels, refreshingModels, notice }: ModelsProps): React.FunctionComponentElement<{
192
+ export declare function Models({ status, formSnapshot, setFormField, pendingField, onRefreshModels, refreshingModels, notice, prices, refreshingPrices, onRefreshPrices }: ModelsProps): React.FunctionComponentElement<{
175
193
  children?: React.ReactNode | undefined;
176
194
  }>;
177
195
  export interface AdvancedProps {