@1outres/dsh-plugin-model-picker 0.0.0-stage → 0.6.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/LICENSE +21 -0
- package/README.md +115 -2
- package/cordis.patch.yml +6 -0
- package/lib/client.js +1506 -0
- package/lib/index.js +22 -0
- package/package.json +56 -3
package/lib/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// ../dsh-plugin-model-picker/src/index.ts
|
|
2
|
+
import z from "@deepseek-ai/schemastery";
|
|
3
|
+
var ModelRef = z.object({
|
|
4
|
+
provider: z.string(),
|
|
5
|
+
model: z.string()
|
|
6
|
+
});
|
|
7
|
+
var Config = z.object({
|
|
8
|
+
favorites: z.array(ModelRef).default([]).description("Favorite models, shown first in the composer model picker.").volatile()
|
|
9
|
+
});
|
|
10
|
+
function apply(ctx) {
|
|
11
|
+
ctx.inject(["settings"], (child) => {
|
|
12
|
+
const settings = child.settings;
|
|
13
|
+
child.effect(
|
|
14
|
+
() => settings.configure({ auto: false }, ctx.fiber),
|
|
15
|
+
"model-picker: settings page policy"
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
Config,
|
|
21
|
+
apply
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1outres/dsh-plugin-model-picker",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "A searchable composer model picker with favorites and recent models for DeepSeek Harness profiles with many providers.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/1outres/my-dsh-plugins.git",
|
|
8
|
+
"directory": "packages/dsh-plugin-model-picker"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "lib/index.js",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./lib/index.js",
|
|
14
|
+
"./client": "./lib/client.js",
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"lib",
|
|
19
|
+
"cordis.patch.yml"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"dsh",
|
|
23
|
+
"dsh-plugin",
|
|
24
|
+
"model-picker",
|
|
25
|
+
"deepseek-harness"
|
|
26
|
+
],
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"dsh": ">=0.2.1-rc.5 <0.3.0",
|
|
33
|
+
"node": ">=22"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@deepseek-ai/schemastery": "~3.18.5"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@deepseek-ai/cordis": "~4.0.5",
|
|
40
|
+
"react": "^18.2.0"
|
|
41
|
+
},
|
|
42
|
+
"dsh": {
|
|
43
|
+
"bundle": {
|
|
44
|
+
"patch": [
|
|
45
|
+
"./cordis.patch.yml"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"client": {
|
|
49
|
+
"platform": "web",
|
|
50
|
+
"inject": [
|
|
51
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
52
|
+
"@deepseek-ai/dsh-api-session-controller",
|
|
53
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
54
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
55
|
+
"@deepseek-ai/dsh-client-ui-model-selection"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
6
59
|
}
|