@lynn123411/dsh-model-submenu 0.1.3 → 0.2.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.
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
2
+ <rect x="3.5" y="3.5" width="17" height="4.5" rx="1.5"/>
3
+ <rect x="6" y="9.5" width="14.5" height="4.5" rx="1.5"/>
4
+ <rect x="8.5" y="15.5" width="12" height="4.5" rx="1.5"/>
5
+ </svg>
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Model submenu",
4
+ "description": "Adds a provider level to the composer's model picker: choose a provider first, then one of its models."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "模型二级菜单",
4
+ "description": "给输入框的模型选择器加上供应商层级:先选供应商,再选它下面的模型。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@lynn123411/dsh-model-submenu",
3
- "version": "0.1.3",
3
+ "version": "0.2.1",
4
+ "description": "给输入框的模型选择器加上供应商层级:先选供应商,再选它下面的模型。",
4
5
  "license": "MIT",
5
6
  "publishConfig": {
6
7
  "access": "public"
@@ -8,7 +9,7 @@
8
9
  "type": "module",
9
10
  "engines": {
10
11
  "node": "^22.19.0 || >=24.0.0",
11
- "dsh": ">=0.1.7-rc.2"
12
+ "dsh": ">=0.2.1-alpha.2"
12
13
  },
13
14
  "main": "lib/index.js",
14
15
  "exports": {
@@ -21,6 +22,8 @@
21
22
  "default": "./lib/client.js"
22
23
  },
23
24
  "./src/*": "./src/*",
25
+ "./locale/en.json": "./locale/en.json",
26
+ "./locale/zh.json": "./locale/zh.json",
24
27
  "./package.json": "./package.json"
25
28
  },
26
29
  "files": [
@@ -30,7 +33,9 @@
30
33
  "src/**/*.tsx",
31
34
  "src/**/*.css",
32
35
  "cordis.patch.yml",
33
- "README.md"
36
+ "README.md",
37
+ "locale",
38
+ "assets"
34
39
  ],
35
40
  "dsh": {
36
41
  "bundle": {
@@ -53,8 +58,8 @@
53
58
  "check": "pnpm typecheck && pnpm build && pnpm smoke && pnpm assert:lib-untracked"
54
59
  },
55
60
  "peerDependencies": {
56
- "@deepseek-ai/cordis": "^4.0.4",
57
- "@deepseek-ai/dsh-client-ui-primitives": "*",
61
+ "@deepseek-ai/cordis": "^4.0.5-alpha.1",
62
+ "@deepseek-ai/dsh-client-ui-primitives": ">=0.2.1-alpha.2",
58
63
  "react": "^18.2.0"
59
64
  },
60
65
  "peerDependenciesMeta": {
@@ -63,18 +68,18 @@
63
68
  }
64
69
  },
65
70
  "devDependencies": {
66
- "@deepseek-ai/cordis": "^4.0.4",
67
- "@deepseek-ai/dsh-api-remotes": ">=0.1.7-rc.2",
68
- "@deepseek-ai/dsh-api-session-controller": ">=0.1.7-rc.2",
69
- "@deepseek-ai/dsh-client-locale": ">=0.1.7-rc.2",
70
- "@deepseek-ai/dsh-client-store": ">=0.1.7-rc.2",
71
- "@deepseek-ai/dsh-client-ui-conversation": ">=0.1.7-rc.2",
72
- "@deepseek-ai/dsh-client-ui-model-selection": ">=0.1.7-rc.2",
73
- "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.7-rc.2",
74
- "@deepseek-ai/dsh-client-ui-renderer": ">=0.1.7-rc.2",
75
- "@deepseek-ai/dsh-client-ui-slots": ">=0.1.7-rc.2",
76
- "@deepseek-ai/dsh-session": ">=0.1.7-rc.2",
77
- "@deepseek-ai/dsh-typert-protocol": ">=0.1.7-rc.2",
71
+ "@deepseek-ai/cordis": "^4.0.5-alpha.1",
72
+ "@deepseek-ai/dsh-api-remotes": ">=0.2.1-alpha.2",
73
+ "@deepseek-ai/dsh-api-session-controller": ">=0.2.1-alpha.2",
74
+ "@deepseek-ai/dsh-client-locale": ">=0.2.1-alpha.2",
75
+ "@deepseek-ai/dsh-client-store": ">=0.2.1-alpha.2",
76
+ "@deepseek-ai/dsh-client-ui-conversation": ">=0.2.1-alpha.2",
77
+ "@deepseek-ai/dsh-client-ui-model-selection": ">=0.2.1-alpha.2",
78
+ "@deepseek-ai/dsh-client-ui-primitives": ">=0.2.1-alpha.2",
79
+ "@deepseek-ai/dsh-client-ui-renderer": ">=0.2.1-alpha.2",
80
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.2.1-alpha.2",
81
+ "@deepseek-ai/dsh-session": ">=0.2.1-alpha.2",
82
+ "@deepseek-ai/dsh-typert-protocol": ">=0.2.1-alpha.2",
78
83
  "@types/node": "^22.20.0",
79
84
  "@types/react": "~18.3.1",
80
85
  "@types/react-dom": "~18.3.0",
@@ -83,5 +88,6 @@
83
88
  "react-dom": "^18.3.1",
84
89
  "tsdown": "^0.22.2",
85
90
  "typescript": "^5.9.2"
86
- }
87
- }
91
+ },
92
+ "icon": "./assets/icon.svg"
93
+ }