dsh-fish-ui 0.5.0 → 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/README.md +17 -10
- package/dist/client.js +3160 -2854
- package/dist/index.js +40 -16
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,20 +1,44 @@
|
|
|
1
|
-
import Schema from
|
|
1
|
+
import Schema from "@deepseek-ai/schemastery";
|
|
2
2
|
const flags = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"hero",
|
|
4
|
+
"field",
|
|
5
|
+
"wave",
|
|
6
|
+
"ripple",
|
|
7
|
+
"thinkingSphere",
|
|
8
|
+
"thinkingLabel",
|
|
9
|
+
"glass",
|
|
10
|
+
"effortBadge",
|
|
11
|
+
"sidebarDots",
|
|
12
|
+
"sidebarRail",
|
|
13
|
+
"bold",
|
|
14
|
+
"focusRing",
|
|
15
|
+
"diff",
|
|
16
|
+
"reading",
|
|
17
|
+
"code",
|
|
18
|
+
"fishFont",
|
|
19
|
+
"fishGlow",
|
|
20
|
+
"fishMotion",
|
|
21
|
+
"fishCode",
|
|
22
|
+
"catppuccin",
|
|
23
|
+
"aurora",
|
|
24
|
+
"cursor",
|
|
25
|
+
"textMotion",
|
|
26
|
+
"hostIcons"
|
|
7
27
|
];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
28
|
+
const Config = Schema.object({
|
|
29
|
+
...Object.fromEntries(flags.map((key) => [key, Schema.boolean().default(true).volatile()])),
|
|
30
|
+
scene: Schema.union(["atlas", "aurora", "orbit", "dunes", "rain", "lotus"]).default("atlas").volatile(),
|
|
31
|
+
sceneMotion: Schema.union(["still", "calm", "flow"]).default("calm").volatile(),
|
|
32
|
+
iconStyle: Schema.union(["line", "duotone"]).default("duotone").volatile(),
|
|
33
|
+
accentColor: Schema.string().pattern(/^#[0-9a-f]{6}$/i).default("#4D6BFE").volatile(),
|
|
34
|
+
settingsMigrated: Schema.boolean().default(false).volatile().hidden()
|
|
15
35
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
36
|
+
function apply(ctx) {
|
|
37
|
+
ctx.inject(["settings"], (scope) => {
|
|
38
|
+
scope.effect(() => scope.settings.configure({ auto: false }, ctx.fiber), "dsh-fish-ui: preferences");
|
|
39
|
+
});
|
|
20
40
|
}
|
|
41
|
+
export {
|
|
42
|
+
Config,
|
|
43
|
+
apply
|
|
44
|
+
};
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Deep Fish UI",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Choose a session model and reasoning level in the composer. Six illustrated scenes respond when the first word of a reply arrives."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-fish-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Live model and reasoning controls, six illustrated conversation scenes and first-reply motion for DeepSeek Harness.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Guocheng Song",
|
|
8
8
|
"repository": {
|
|
@@ -61,10 +61,11 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/react": "^19.3.0",
|
|
63
63
|
"@types/react-dom": "^19.3.0",
|
|
64
|
+
"esbuild": "^0.28.2",
|
|
64
65
|
"typescript": "~5.9.3"
|
|
65
66
|
},
|
|
66
67
|
"scripts": {
|
|
67
|
-
"build": "
|
|
68
|
+
"build": "npm run check && esbuild src/index.ts --platform=node --packages=external --format=esm --target=node22 --outfile=dist/index.js && esbuild src/client.ts --bundle --format=iife --target=es2022 --loader:.webp=dataurl --loader:.jpg=dataurl --loader:.png=dataurl --outfile=dist/client.js",
|
|
68
69
|
"check": "tsc -p tsconfig.json --noEmit",
|
|
69
70
|
"prepack": "npm run build"
|
|
70
71
|
}
|