dsh-fish-ui 0.0.0-stage → 0.1.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Guocheng Song
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,60 @@
1
- # Temporary Holding Version
1
+ # dsh-fish-ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A **finish layer** for the DeepSeek Harness Web UI: [Maple Mono NF CN](https://github.com/subframe7536/maple-font) everywhere, plus a few quiet surface details (composer glow, rounded code blocks, softer scrollbars, motion-safe hover).
4
+
5
+ It is built to sit **on top of a theme**, not to replace one — in particular it is tuned to pair with [deepclear-ui](https://github.com/KUN-NNN/deepclear-ui), whose `--dc-accent` token it reuses for focus rings, selection and scrollbar hover. Install it after your theme; disable it and the UI returns to the theme's own look.
6
+
7
+ > Why "fish"? The author's companion persona is a fat AI fish. It is a finish coat, not a whole aquarium.
8
+
9
+ ## Features
10
+
11
+ - **Maple Mono NF CN** across the UI, inputs, code and inline code, with `ss01` / `cv01` / `liga` enabled.
12
+ - Composer: 16px radius and a soft accent glow on focus.
13
+ - Code blocks: rounded, hairline border, inline code with a tinted pill.
14
+ - Typography: 650-weight headings, 1.75 line-height for prose, letter-spacing tuned for a monospace face.
15
+ - Selection and scrollbars use the active theme accent.
16
+ - Buttons lift 1px on hover; all motion is disabled under `prefers-reduced-motion`.
17
+
18
+ ## Install
19
+
20
+ ```bash
21
+ dsh plugin --profile <profile> add dsh-fish-ui
22
+ ```
23
+
24
+ Then **fully quit and reopen DSH** (Cmd+Q on macOS, not just a page refresh) so the client half is mounted.
25
+
26
+ From a local checkout:
27
+
28
+ ```bash
29
+ dsh plugin --profile <profile> add /absolute/path/to/dsh-fish-ui
30
+ ```
31
+
32
+ ## Pairing with deepclear-ui
33
+
34
+ ```bash
35
+ dsh plugin --profile <profile> add deepclear-ui
36
+ dsh plugin --profile <profile> add dsh-fish-ui
37
+ ```
38
+
39
+ Both are client-side layers. deepclear-ui owns colors, the dot-matrix hero and layout; dsh-fish-ui owns type and surface detail. They do not register the same slots and do not fight over colors — if you see a visual conflict, disable dsh-fish-ui first and report it.
40
+
41
+ ## Requirements
42
+
43
+ - DeepSeek Harness `>=0.2.2-rc.3 <0.3.0`
44
+ - Node.js `>=22`
45
+ - The **Maple Mono NF CN** font installed on the machine (`brew install --cask font-maple-mono-nf-cn`). Without it the stack falls back to the system monospace font.
46
+
47
+ ## How it works
48
+
49
+ `client.js` is a Cordis client plugin that appends one `<style>` element when applied and removes it on teardown. No host state, no network, no slots, no font files shipped. The CSS is scoped to type and surface selectors and reads the host's semantic tokens (`--dsw-*`) plus deepclear's `--dc-accent`.
50
+
51
+ ## Disable / uninstall
52
+
53
+ ```bash
54
+ dsh plugin --profile <profile> disable dsh-fish-ui # keep the package, turn the layer off
55
+ dsh plugin --profile <profile> remove dsh-fish-ui # remove it entirely
56
+ ```
57
+
58
+ ## License
59
+
60
+ MIT. See [LICENSE](./LICENSE).
package/client.js ADDED
@@ -0,0 +1,103 @@
1
+ /**
2
+ * dsh-fish-ui — a Maple Mono NF CN finish layer for the DSH Web UI.
3
+ *
4
+ * A pure client half: one stylesheet appended after the shell and theme styles,
5
+ * so these declarations win on equal specificity. It deliberately touches only
6
+ * typography and a few surface details, leaving colors and layout to the theme
7
+ * (deepclear-ui or whatever else is active).
8
+ */
9
+ window.__ModuleLoader__.load({
10
+ id: 'dsh-fish-ui',
11
+ factory() {
12
+ const CSS = `
13
+ :root {
14
+ --fish-font: "Maple Mono NF CN", "Maple Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
15
+ --fish-radius: 16px;
16
+ --fish-ink: var(--dc-accent, #7cc8ff);
17
+ }
18
+
19
+ /* ---------- type ---------- */
20
+ html, body {
21
+ font-family: var(--fish-font) !important;
22
+ font-feature-settings: "ss01" 1, "cv01" 1, "liga" 1;
23
+ -webkit-font-smoothing: antialiased;
24
+ text-rendering: optimizeLegibility;
25
+ }
26
+ body {
27
+ letter-spacing: .005em;
28
+ }
29
+ button, input, textarea, select, [contenteditable="true"] {
30
+ font-family: inherit !important;
31
+ }
32
+ code, pre, kbd, samp {
33
+ font-family: var(--fish-font) !important;
34
+ }
35
+ h1, h2, h3 {
36
+ font-weight: 650;
37
+ letter-spacing: .012em;
38
+ }
39
+ p, li, blockquote {
40
+ line-height: 1.75;
41
+ }
42
+ :not(pre) > code {
43
+ background: color-mix(in srgb, var(--dsw-alias-bg-layer-2, #222) 78%, transparent);
44
+ padding: .12em .38em;
45
+ border-radius: 5px;
46
+ }
47
+
48
+ /* ---------- surfaces ---------- */
49
+ pre {
50
+ border-radius: 12px;
51
+ border: 1px solid color-mix(in srgb, var(--dsw-alias-border-l1, #333) 70%, transparent);
52
+ }
53
+ [data-composer-card] {
54
+ border-radius: var(--fish-radius) !important;
55
+ transition: box-shadow .25s ease, border-color .25s ease;
56
+ }
57
+ [data-composer-card]:focus-within {
58
+ box-shadow: 0 0 0 1px var(--fish-ink),
59
+ 0 18px 50px -28px var(--fish-ink) !important;
60
+ }
61
+ button {
62
+ transition: transform .16s ease, box-shadow .16s ease;
63
+ }
64
+ button:hover {
65
+ transform: translateY(-1px);
66
+ }
67
+
68
+ /* ---------- selection & scroll ---------- */
69
+ ::selection {
70
+ background: color-mix(in srgb, var(--fish-ink) 32%, transparent);
71
+ }
72
+ ::-webkit-scrollbar {
73
+ width: 9px;
74
+ height: 9px;
75
+ }
76
+ ::-webkit-scrollbar-thumb {
77
+ background: color-mix(in srgb, var(--dsw-alias-border-l2, #555) 60%, transparent);
78
+ border-radius: 999px;
79
+ }
80
+ ::-webkit-scrollbar-thumb:hover {
81
+ background: var(--fish-ink);
82
+ }
83
+
84
+ @media (prefers-reduced-motion: reduce) {
85
+ * {
86
+ animation: none !important;
87
+ transition: none !important;
88
+ }
89
+ }
90
+ `
91
+ return {
92
+ apply(ctx) {
93
+ ctx.effect(() => {
94
+ const style = document.createElement('style')
95
+ style.dataset.dshPlugin = 'dsh-fish-ui'
96
+ style.textContent = CSS
97
+ document.head.append(style)
98
+ return () => style.remove()
99
+ }, 'dsh-fish-ui: styles')
100
+ },
101
+ }
102
+ },
103
+ })
@@ -0,0 +1,4 @@
1
+ - insert:
2
+ - id: dsh-fish-ui
3
+ name: 'dsh-fish-ui'
4
+ config: {}
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * dsh-fish-ui — host half.
3
+ *
4
+ * The visual work is entirely in client.js; this side exists so the bundle
5
+ * has a normal host entry and can be enabled, disabled and removed like any
6
+ * other plugin.
7
+ */
8
+ export function apply() {}
package/package.json CHANGED
@@ -1,6 +1,53 @@
1
1
  {
2
2
  "name": "dsh-fish-ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "A Maple Mono NF CN finish layer for DeepSeek Harness: fonts, composer glow, code and motion polish. Designed to sit on top of deepclear-ui and stay out of its way.",
6
+ "license": "MIT",
7
+ "author": "Guocheng Song",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/feichai0017/dsh-fish-ui.git"
11
+ },
12
+ "homepage": "https://github.com/feichai0017/dsh-fish-ui#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/feichai0017/dsh-fish-ui/issues"
15
+ },
16
+ "exports": {
17
+ ".": "./index.js",
18
+ "./client": "./client.js"
19
+ },
20
+ "files": [
21
+ "index.js",
22
+ "client.js",
23
+ "cordis.patch.yml",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "dsh": {
28
+ "bundle": {
29
+ "patch": "./cordis.patch.yml"
30
+ },
31
+ "client": {
32
+ "platform": "web",
33
+ "immediately": true
34
+ }
35
+ },
36
+ "engines": {
37
+ "dsh": ">=0.2.2-rc.3 <0.3.0",
38
+ "node": ">=22"
39
+ },
40
+ "keywords": [
41
+ "dsh",
42
+ "deepseek-harness",
43
+ "dsh-plugin",
44
+ "theme",
45
+ "font",
46
+ "maple-mono",
47
+ "deepclear-ui",
48
+ "appearance"
49
+ ],
50
+ "publishConfig": {
51
+ "access": "public"
52
+ }
53
+ }