@crazx/dsh-client-ui-model-selection 0.1.5-rc.2.zw.1 → 0.1.6-alpha.1.zw.2
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/lib/client.js +5 -1
- package/lib/types/client/locales.d.ts +2 -0
- package/package.json +15 -15
package/lib/client.js
CHANGED
|
@@ -4,12 +4,12 @@ window.__ModuleLoader__.load({
|
|
|
4
4
|
var module = { exports: {} };
|
|
5
5
|
var exports = module.exports;
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
|
+
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
7
8
|
let _deepseek_ai_cordis = require("@deepseek-ai/cordis");
|
|
8
9
|
let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
|
|
9
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
11
|
let react = require("react");
|
|
11
12
|
let react_dom = require("react-dom");
|
|
12
|
-
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
13
13
|
//#region lib/types/client/catalog.js
|
|
14
14
|
/** One Host-generation model catalog shared by every Session selector. */
|
|
15
15
|
/** Loads at most one model catalog for the current Host generation. */
|
|
@@ -793,6 +793,7 @@ window.__ModuleLoader__.load({
|
|
|
793
793
|
*/
|
|
794
794
|
/** Simplified Chinese dictionary (the key-set source of truth). */
|
|
795
795
|
const zh = {
|
|
796
|
+
"command.label": "模型",
|
|
796
797
|
"command.description": "选择本会话使用的模型",
|
|
797
798
|
"option.loadError": "目录加载失败:{message}",
|
|
798
799
|
"option.deepseekV4Flash.description": "快速、高效且经济;适合目标明确、常规或并行任务。",
|
|
@@ -816,6 +817,7 @@ window.__ModuleLoader__.load({
|
|
|
816
817
|
};
|
|
817
818
|
/** English dictionary, checked complete against the zh key set. */
|
|
818
819
|
const en = {
|
|
820
|
+
"command.label": "Model",
|
|
819
821
|
"command.description": "Select the model for this conversation",
|
|
820
822
|
"option.loadError": "Catalog failed to load: {message}",
|
|
821
823
|
"option.deepseekV4Flash.description": "Fast, efficient, and economical; suited to focused, routine, or parallel tasks.",
|
|
@@ -918,7 +920,9 @@ window.__ModuleLoader__.load({
|
|
|
918
920
|
const sessions = scope.sessions;
|
|
919
921
|
scope.effect(() => command.register({
|
|
920
922
|
name: "model",
|
|
923
|
+
label: () => t("command.label"),
|
|
921
924
|
description: () => t("command.description"),
|
|
925
|
+
icon: _deepseek_ai_dsh_client_ui_primitives.IconDataOutline16,
|
|
922
926
|
available: (session) => sessions.subagentAddress(session.sessionId) === void 0,
|
|
923
927
|
ui: {
|
|
924
928
|
kind: "popupSelect",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
/** Simplified Chinese dictionary (the key-set source of truth). */
|
|
11
11
|
export declare const zh: {
|
|
12
|
+
'command.label': string;
|
|
12
13
|
'command.description': string;
|
|
13
14
|
'option.loadError': string;
|
|
14
15
|
'option.deepseekV4Flash.description': string;
|
|
@@ -34,6 +35,7 @@ export declare const zh: {
|
|
|
34
35
|
export type ModelKey = keyof typeof zh;
|
|
35
36
|
/** English dictionary, checked complete against the zh key set. */
|
|
36
37
|
export declare const en: {
|
|
38
|
+
'command.label': string;
|
|
37
39
|
'command.description': string;
|
|
38
40
|
'option.loadError': string;
|
|
39
41
|
'option.deepseekV4Flash.description': string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crazx/dsh-client-ui-model-selection",
|
|
3
3
|
"description": "Model selection over the shared model catalog, Session projection, and session.selectModel",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.1.zw.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -41,25 +41,25 @@
|
|
|
41
41
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@deepseek-ai/dsh-api-remotes": "^0.1.
|
|
45
|
-
"@deepseek-ai/dsh-api-session-controller": "npm:@crazx/dsh-api-session-controller@0.1.
|
|
46
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.
|
|
47
|
-
"@deepseek-ai/dsh-client-test-runtime": "npm:@crazx/dsh-client-test-runtime@0.1.
|
|
48
|
-
"@deepseek-ai/dsh-client-ui-commands": "^0.1.
|
|
49
|
-
"@deepseek-ai/dsh-client-ui-conversation": "npm:@crazx/dsh-client-ui-conversation@0.1.
|
|
50
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "^0.1.
|
|
51
|
-
"@deepseek-ai/dsh-client-ui-primitives": "
|
|
52
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.
|
|
53
|
-
"@deepseek-ai/dsh-typert-protocol": "^0.1.
|
|
44
|
+
"@deepseek-ai/dsh-api-remotes": "^0.1.6-alpha.1",
|
|
45
|
+
"@deepseek-ai/dsh-api-session-controller": "npm:@crazx/dsh-api-session-controller@0.1.6-alpha.1.zw.2",
|
|
46
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.1",
|
|
47
|
+
"@deepseek-ai/dsh-client-test-runtime": "npm:@crazx/dsh-client-test-runtime@0.1.6-alpha.1.zw.2",
|
|
48
|
+
"@deepseek-ai/dsh-client-ui-commands": "^0.1.6-alpha.1",
|
|
49
|
+
"@deepseek-ai/dsh-client-ui-conversation": "npm:@crazx/dsh-client-ui-conversation@0.1.6-alpha.1.zw.2",
|
|
50
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "^0.1.6-alpha.1",
|
|
51
|
+
"@deepseek-ai/dsh-client-ui-primitives": "npm:@crazx/dsh-client-ui-primitives@0.1.6-alpha.1.zw.2",
|
|
52
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.6-alpha.1",
|
|
53
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.1.6-alpha.1",
|
|
54
54
|
"@types/react": "~18.3.1",
|
|
55
55
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
56
56
|
"react": "^18.2.0",
|
|
57
57
|
"react-dom": "^18.2.0",
|
|
58
58
|
"@types/react-dom": "~18.3.0",
|
|
59
|
-
"@deepseek-ai/dsh-client-store": "^0.1.
|
|
60
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
61
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.
|
|
62
|
-
"@deepseek-ai/dsh-client-ui-session": "^0.1.
|
|
59
|
+
"@deepseek-ai/dsh-client-store": "^0.1.6-alpha.1",
|
|
60
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.1",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.1",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.1.6-alpha.1",
|
|
63
63
|
"clsx": "^2.1.1"
|
|
64
64
|
},
|
|
65
65
|
"files": [
|