@vibedev-si/dsh-vibedev 0.9.0 → 0.11.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.
- package/README.md +112 -2
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/client/client.account-center.js +23 -18
- package/client/client.js +228 -31
- package/lib/announcements/routes.d.ts +1 -1
- package/lib/chat-consent/contract.d.ts +150 -0
- package/lib/chat-consent/install.d.ts +37 -0
- package/lib/chat-consent/service.d.ts +86 -0
- package/lib/gateway/http.d.ts +4 -1
- package/lib/index.d.ts +29 -0
- package/lib/index.js +678 -97
- package/lib/llm/adapter.d.ts +10 -1
- package/lib/llm/catalog.d.ts +5 -0
- package/package.json +1 -1
package/lib/llm/adapter.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ export interface GatewayAdapterOptions {
|
|
|
73
73
|
readonly origin: () => string;
|
|
74
74
|
/** The current catalog; a new array identity means a new catalog. */
|
|
75
75
|
readonly catalog: () => readonly GatewayModel[];
|
|
76
|
+
/** Model ids pinned by configuration, in their preferred order. */
|
|
77
|
+
readonly preferredModels?: () => readonly string[];
|
|
76
78
|
/**
|
|
77
79
|
* Read the catalog again because it is empty when models are listed, so a catalog read that missed a
|
|
78
80
|
* fresh sign-in, or failed on a flaky network, recovers on the next list instead of the next timer.
|
|
@@ -105,6 +107,12 @@ export interface GatewayAdapterOptions {
|
|
|
105
107
|
*/
|
|
106
108
|
readonly promotions?: () => Promise<readonly ActivePromotion[]>;
|
|
107
109
|
}
|
|
110
|
+
interface GatewayListedModel extends LlmModelInfo {
|
|
111
|
+
readonly picker?: {
|
|
112
|
+
readonly family?: NonNullable<GatewayModel['family']>;
|
|
113
|
+
readonly pinOrder?: number;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
108
116
|
/**
|
|
109
117
|
* The gateway as an LLM adapter. Each operation reads the current catalog, so a refresh reaches
|
|
110
118
|
* the next request without a restart, while a request in flight finishes on the catalog it began with.
|
|
@@ -119,7 +127,7 @@ export declare class GatewayAdapter extends LlmAdapter {
|
|
|
119
127
|
private modelOf;
|
|
120
128
|
providerInfo(provider: string): LlmProviderInfo;
|
|
121
129
|
providerRetryPolicy(provider: string): ResolvedRetryPolicy | undefined;
|
|
122
|
-
listModels(provider: string): Promise<readonly
|
|
130
|
+
listModels(provider: string): Promise<readonly GatewayListedModel[]>;
|
|
123
131
|
/** The promotions keyed by model id, or none when they cannot be read. */
|
|
124
132
|
private promotions;
|
|
125
133
|
resolveModel(provider: string, model: string, _signal?: AbortSignal): Promise<LlmResolvedModelInfo>;
|
|
@@ -148,3 +156,4 @@ export declare class GatewayAdapter extends LlmAdapter {
|
|
|
148
156
|
*/
|
|
149
157
|
private accountFailure;
|
|
150
158
|
}
|
|
159
|
+
export {};
|
package/lib/llm/catalog.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ export type GatewayReasoningLevel = 'none' | 'minimal' | 'low' | 'medium' | 'hig
|
|
|
20
20
|
export interface GatewayModel {
|
|
21
21
|
readonly id: string;
|
|
22
22
|
readonly name: string;
|
|
23
|
+
/** Optional title for this model's section in the picker. */
|
|
24
|
+
readonly family?: {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly label: string;
|
|
27
|
+
};
|
|
23
28
|
/** The protocol requests for this model use. */
|
|
24
29
|
readonly api: GatewayApi;
|
|
25
30
|
readonly contextWindow: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibedev-si/dsh-vibedev",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "VibeDev 账号与模型:在 DeepSeek Harness 里登录 VibeDev,与 DeepSeek 账号并存,使用 VibeDev 网关的模型(Claude、GPT 等),并生成图片、视频、音乐和播客 · VibeDev account and models for DeepSeek Harness: sign in to VibeDev next to the DeepSeek account and use the VibeDev gateway's models (Claude, GPT and more), plus image, video, music and podcast generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|