@zenux/dsh-theme-endfield 0.0.0-stage → 1.2.27

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/slots.js ADDED
@@ -0,0 +1,105 @@
1
+ 'use strict';
2
+ /**
3
+ * Sound-slot definitions for the audio-notification feature.
4
+ *
5
+ * One entry per slot, each documented with the moment it marks so the settings
6
+ * page and the docs can describe them without a second source of truth.
7
+ *
8
+ * Wired to events by the host half: `boot` (the loader plates), `turn-start`,
9
+ * `turn-done` and `attention` (approval requests and pending user questions).
10
+ * Generated but NOT wired: `turn-fail` — a turn that fails on its own stays
11
+ * silent by design (see index.js), so the package already carries the whole
12
+ * set and a later version only has to add the trigger.
13
+ */
14
+
15
+ const SLOTS = {
16
+ /**
17
+ * 启动加载动画 —— the boot plate starts. A rising three-note figure that lands
18
+ * on the same G5 the task-end chime begins from, so the boot sound leads INTO
19
+ * that interval instead of competing with it. Shorter and lighter than
20
+ * `turn-start`: it marks a page arriving, not work beginning. Fired once per
21
+ * page load when the boot plate starts — through the host's preview route,
22
+ * which is also what the boot-sound switch in the settings page uses to let
23
+ * you hear it before committing.
24
+ */
25
+ boot: {
26
+ duration: 0.95,
27
+ peakDbfs: -3,
28
+ notes: [
29
+ { note: 'G4', start: 0, duration: 0.42, gain: 0.34, timbre: 'blip', decay: 2.2, curve: 2.4 },
30
+ { note: 'D5', start: 0.11, duration: 0.5, gain: 0.32, timbre: 'blip', decay: 1.9, curve: 2.2 },
31
+ { note: 'G5', start: 0.22, duration: 0.7, gain: 0.32, timbre: 'chime', decay: 1.5, curve: 2.0 },
32
+ { note: 'D6', start: 0.34, duration: 0.55, gain: 0.06, timbre: 'chime', decay: 2.0 },
33
+ ],
34
+ },
35
+
36
+ /**
37
+ * 任务开始 —— the user submitted a prompt from the composer and the agent is
38
+ * picking it up. Short, quiet, informational: it confirms the instruction was
39
+ * received without implying anything finished.
40
+ */
41
+ 'turn-start': {
42
+ duration: 0.5,
43
+ peakDbfs: -4,
44
+ notes: [
45
+ { note: 'F4', start: 0, duration: 0.3, gain: 0.42, timbre: 'blip', decay: 3.4, curve: 2.6 },
46
+ { note: 'A#4', start: 0.075, duration: 0.4, gain: 0.34, timbre: 'blip', decay: 3.0, curve: 2.4 },
47
+ { note: 'C5', start: 0.15, duration: 0.34, gain: 0.22, timbre: 'blip', decay: 3.6, curve: 2.4 },
48
+ ],
49
+ },
50
+
51
+ /**
52
+ * 任务结束 —— the agent delivered a final text result. Rising major third
53
+ * (C5 -> G5) with an almost inaudible C6 shimmer: closing, not celebratory.
54
+ */
55
+ 'turn-done': {
56
+ duration: 1.15,
57
+ peakDbfs: -2,
58
+ notes: [
59
+ { note: 'C5', start: 0, duration: 0.55, gain: 0.34, timbre: 'chime' },
60
+ { note: 'G5', start: 0.16, duration: 0.85, gain: 0.3, timbre: 'chime', decay: 1.0 },
61
+ { note: 'C6', start: 0.34, duration: 0.75, gain: 0.07, timbre: 'chime', decay: 1.4 },
62
+ ],
63
+ },
64
+
65
+ /**
66
+ * 需要你回应 —— human attention required. Descending minor second
67
+ * with a detuned partial beats against the fundamental: unresolved on
68
+ * purpose, so it does not read as "done". Wired to approval/request and
69
+ * user-questions/request by the host half.
70
+ */
71
+ attention: {
72
+ duration: 1.0,
73
+ peakDbfs: -2,
74
+ notes: [
75
+ { note: 'A4', start: 0, duration: 0.5, gain: 0.34, timbre: 'chime', decay: 1.8 },
76
+ { note: 'G#4', start: 0.22, duration: 0.8, gain: 0.32, timbre: 'chime', decay: 1.5 },
77
+ { note: 'A4', start: 0, duration: 0.5, gain: 0.2, timbre: 'chime', detuneCents: 22, decay: 1.8 },
78
+ ],
79
+ },
80
+
81
+ /**
82
+ * 出错 (reserved) —— the turn failed. Low, hollow, two hits: reads as a fault
83
+ * rather than a completion.
84
+ */
85
+ 'turn-fail': {
86
+ duration: 0.9,
87
+ peakDbfs: -2,
88
+ notes: [
89
+ { note: 'F3', start: 0, duration: 0.28, gain: 0.4, timbre: 'hollow', decay: 2.6, attack: 0.003 },
90
+ { note: 'C3', start: 0.2, duration: 0.62, gain: 0.4, timbre: 'hollow', decay: 1.9, attack: 0.003 },
91
+ ],
92
+ },
93
+ };
94
+
95
+ /** Slot ids in playback/preview order. These are SYNTHESISED by scripts/build-sounds.js. */
96
+ const SLOT_IDS = ['boot', 'turn-start', 'turn-done', 'attention', 'turn-fail'];
97
+
98
+ /** Slots that can be PLAYED but are not synthesised: 'login' is the 开机音频,
99
+ * shipped as a ready-made wav (sounds/login.wav). Keeping it out of SLOT_IDS is
100
+ * what keeps build-sounds.js from trying to render it and keeps the upload
101
+ * whitelist on the five synthesised slots. */
102
+ const FILE_SLOT_IDS = ['login'];
103
+ const PLAY_SLOT_IDS = SLOT_IDS.concat(FILE_SLOT_IDS);
104
+
105
+ module.exports = { SLOTS, SLOT_IDS, FILE_SLOT_IDS, PLAY_SLOT_IDS };
package/lib/tone.js ADDED
@@ -0,0 +1,216 @@
1
+ 'use strict';
2
+ /**
3
+ * Zero-dependency PCM WAV tone synthesizer.
4
+ *
5
+ * The audio-notification feature needs four short sounds and must NOT ship
6
+ * binary audio assets (no licensing question, no repo weight). This module
7
+ * computes the samples instead: a note is a fundamental plus a few harmonics
8
+ * under an attack/decay envelope, and the mix is normalized so every slot lands
9
+ * at the same loudness.
10
+ *
11
+ * Output format is deliberately the one the whole stack already proved it can
12
+ * play (verified end to end with Windows Media.SoundPlayer): RIFF/WAVE,
13
+ * 16-bit PCM, mono, 44.1 kHz.
14
+ */
15
+
16
+ const SAMPLE_RATE = 44100;
17
+
18
+ /** Equal-temperament pitch of one note name against A4 = 440 Hz. */
19
+ const SEMITONES = { C: -9, 'C#': -8, D: -7, 'D#': -6, E: -5, F: -4, 'F#': -3, G: -2, 'G#': -1, A: 0, 'A#': 1, B: 2 };
20
+
21
+ /**
22
+ * Resolve a note name such as `C5`, `F#4` or `A4` to hertz.
23
+ * @param name - letter, optional `#`, then the octave digit(s).
24
+ * @returns frequency in hertz.
25
+ */
26
+ function noteHz(name) {
27
+ const match = /^([A-G]#?)(-?\d+)$/.exec(String(name));
28
+ if (match === null) throw new Error(`bad note name: ${name}`);
29
+ const semitone = SEMITONES[match[1]];
30
+ const octave = Number(match[2]);
31
+ return 440 * Math.pow(2, (semitone + (octave - 4) * 12) / 12);
32
+ }
33
+
34
+ /** Timbre presets: [harmonic multiplier, amplitude] pairs. */
35
+ const TIMBRES = {
36
+ // Warm chime: fundamental with a soft octave and a faint twelfth.
37
+ chime: [[1, 1], [2, 0.3], [3, 0.08]],
38
+ // Bright, more present top end — for the short "received" blip.
39
+ blip: [[1, 1], [2, 0.42], [3, 0.12]],
40
+ // Hollow and darker — used where the sound must read as a warning.
41
+ hollow: [[1, 1], [2, 0.12], [3, 0.3]],
42
+ };
43
+
44
+ /**
45
+ * Mix one note into the sample buffer.
46
+ *
47
+ * @param data - mono sample buffer, added into (not overwritten).
48
+ * @param spec - frequency (Hz), start (s), duration (s), gain, timbre, detune
49
+ * in cents applied to the whole note, and envelope shape.
50
+ */
51
+ function addNote(data, spec) {
52
+ const {
53
+ freq,
54
+ start,
55
+ duration,
56
+ gain,
57
+ timbre = 'chime',
58
+ detuneCents = 0,
59
+ attack = 0.006,
60
+ decay = 1.15,
61
+ curve = 2.2,
62
+ } = spec;
63
+ const hz = freq * Math.pow(2, detuneCents / 1200);
64
+ const from = Math.floor(start * SAMPLE_RATE);
65
+ const length = Math.floor(duration * SAMPLE_RATE);
66
+ const attackSamples = Math.max(1, Math.floor(attack * SAMPLE_RATE));
67
+ const voices = TIMBRES[timbre];
68
+ if (voices === undefined) throw new Error(`unknown timbre: ${timbre}`);
69
+ for (let i = 0; i < length; i++) {
70
+ const cursor = from + i;
71
+ if (cursor >= data.length) break;
72
+ const t = i / SAMPLE_RATE;
73
+ const envelope =
74
+ (i < attackSamples ? i / attackSamples : 1) *
75
+ Math.pow(1 - i / length, curve) *
76
+ Math.exp(-decay * t);
77
+ let sample = 0;
78
+ for (const [multiplier, amplitude] of voices) {
79
+ sample += amplitude * Math.sin(2 * Math.PI * hz * multiplier * t);
80
+ }
81
+ data[cursor] += sample * envelope * gain;
82
+ }
83
+ }
84
+
85
+ /**
86
+ * Render a slot definition to a complete WAV file.
87
+ *
88
+ * @param slot - `{ duration, peakDbfs, notes: [...] }` where each note uses the
89
+ * `addNote` fields plus a `note` name instead of a raw frequency.
90
+ * @returns the file bytes.
91
+ */
92
+ function renderWav(slot) {
93
+ const total = Math.floor(SAMPLE_RATE * slot.duration);
94
+ const data = new Float64Array(total);
95
+ for (const note of slot.notes) {
96
+ addNote(data, Object.assign({}, note, {
97
+ freq: note.freq === undefined ? noteHz(note.note) : note.freq,
98
+ }));
99
+ }
100
+ let peak = 0;
101
+ for (let i = 0; i < total; i++) peak = Math.max(peak, Math.abs(data[i]));
102
+ const target = Math.pow(10, (slot.peakDbfs === undefined ? -2 : slot.peakDbfs) / 20);
103
+ const scale = peak > 0 ? target / peak : 1;
104
+ const pcm = Buffer.alloc(total * 2);
105
+ for (let i = 0; i < total; i++) {
106
+ let value = Math.round(data[i] * scale * 32767);
107
+ if (value > 32767) value = 32767;
108
+ if (value < -32768) value = -32768;
109
+ pcm.writeInt16LE(value, i * 2);
110
+ }
111
+ const header = Buffer.alloc(44);
112
+ header.write('RIFF', 0, 'ascii');
113
+ header.writeUInt32LE(36 + pcm.length, 4);
114
+ header.write('WAVE', 8, 'ascii');
115
+ header.write('fmt ', 12, 'ascii');
116
+ header.writeUInt32LE(16, 16);
117
+ header.writeUInt16LE(1, 20); // PCM
118
+ header.writeUInt16LE(1, 22); // mono
119
+ header.writeUInt32LE(SAMPLE_RATE, 24);
120
+ header.writeUInt32LE(SAMPLE_RATE * 2, 28);
121
+ header.writeUInt16LE(2, 32);
122
+ header.writeUInt16LE(16, 34);
123
+ header.write('data', 36, 'ascii');
124
+ header.writeUInt32LE(pcm.length, 40);
125
+ return Buffer.concat([header, pcm]);
126
+ }
127
+
128
+ /** Parse a WAV buffer far enough to locate its PCM data and format. */
129
+ function parseWav(buffer) {
130
+ if (buffer.length < 44) return undefined;
131
+ if (buffer.toString('ascii', 0, 4) !== 'RIFF' || buffer.toString('ascii', 8, 12) !== 'WAVE') return undefined;
132
+ let offset = 12;
133
+ let audioFormat = 0;
134
+ let bitsPerSample = 0;
135
+ let channels = 0;
136
+ let sampleRate = 0;
137
+ let dataOffset = -1;
138
+ let dataSize = 0;
139
+ while (offset + 8 <= buffer.length) {
140
+ const id = buffer.toString('ascii', offset, offset + 4);
141
+ const chunkSize = buffer.readUInt32LE(offset + 4);
142
+ const body = offset + 8;
143
+ /* chunkSize is file-controlled, so every read below is also bounded by the
144
+ real buffer length: a truncated fmt chunk (declared size past the end of
145
+ the file) would otherwise throw RangeError out of parseWav — and
146
+ scaleWavVolume runs it on user-dropped files whenever volume < 100. */
147
+ if (id === 'fmt ' && chunkSize >= 16 && buffer.length >= body + 16) {
148
+ audioFormat = buffer.readUInt16LE(body);
149
+ channels = buffer.readUInt16LE(body + 2);
150
+ sampleRate = buffer.readUInt32LE(body + 4);
151
+ bitsPerSample = buffer.readUInt16LE(body + 14);
152
+ // WAVE_FORMAT_EXTENSIBLE wraps the real format in the first two bytes of
153
+ // the sub-format GUID.
154
+ if (audioFormat === 0xfffe && chunkSize >= 40 && buffer.length >= body + 26
155
+ && buffer.readUInt16LE(body + 24) === 1) audioFormat = 1;
156
+ } else if (id === 'data') {
157
+ dataOffset = body;
158
+ dataSize = Math.min(chunkSize, buffer.length - body);
159
+ }
160
+ if (dataOffset >= 0 && bitsPerSample > 0) break;
161
+ offset = body + chunkSize + (chunkSize % 2);
162
+ }
163
+ if (dataOffset < 0 || audioFormat !== 1) return undefined;
164
+ if (channels <= 0 || sampleRate <= 0) return undefined;
165
+ return { dataOffset, dataSize, bitsPerSample, channels, sampleRate };
166
+ }
167
+
168
+ /**
169
+ * Rescale a PCM WAV's samples by `volume` percent without touching the system
170
+ * volume. Returns the original buffer when the format is not rescalable, so a
171
+ * caller can always write the result out.
172
+ *
173
+ * @param buffer - the source WAV bytes.
174
+ * @param volume - 0..100.
175
+ * @returns scaled WAV bytes (or the input, unchanged, when scaling is a no-op).
176
+ */
177
+ function scaleWavVolume(buffer, volume) {
178
+ const gain = volume / 100;
179
+ if (gain === 1) return buffer;
180
+ const parsed = parseWav(buffer);
181
+ if (parsed === undefined) return buffer;
182
+ const { dataOffset, dataSize, bitsPerSample, channels } = parsed;
183
+ if (bitsPerSample !== 16 && bitsPerSample !== 8) return buffer;
184
+ /* Scale EVERY channel. The first version assumed mono and stepped 2 bytes per
185
+ sample, so on stereo input it scaled only the left channel — volume 50 would
186
+ have produced a left channel at half level and an untouched right one. The
187
+ bundled tones are mono, but a user-supplied file need not be, and the whole
188
+ point of this path is honouring a user's own audio. */
189
+ const frameBytes = (bitsPerSample / 8) * channels;
190
+ const out = Buffer.from(buffer);
191
+ const frames = Math.floor(dataSize / frameBytes);
192
+ if (bitsPerSample === 16) {
193
+ for (let frame = 0; frame < frames; frame++) {
194
+ for (let channel = 0; channel < channels; channel++) {
195
+ const pos = dataOffset + frame * frameBytes + channel * 2;
196
+ let value = Math.round(out.readInt16LE(pos) * gain);
197
+ if (value > 32767) value = 32767;
198
+ else if (value < -32768) value = -32768;
199
+ out.writeInt16LE(value, pos);
200
+ }
201
+ }
202
+ } else {
203
+ for (let frame = 0; frame < frames; frame++) {
204
+ for (let channel = 0; channel < channels; channel++) {
205
+ const pos = dataOffset + frame * frameBytes + channel;
206
+ let value = Math.round((out.readUInt8(pos) - 128) * gain + 128);
207
+ if (value > 255) value = 255;
208
+ else if (value < 0) value = 0;
209
+ out.writeUInt8(value, pos);
210
+ }
211
+ }
212
+ }
213
+ return out;
214
+ }
215
+
216
+ module.exports = { SAMPLE_RATE, noteHz, renderWav, scaleWavVolume, parseWav };
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Endfield Theme",
4
+ "description": "Arknights: Endfield industrial editorial theme for the Harness web UI — cream paper, ink text, signal accents, zero radius."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "终末地主题",
4
+ "description": "《明日方舟:终末地》工业编辑风主题:奶油纸底、墨黑文字、信号色强调、全直角。"
5
+ }
6
+ }
@@ -0,0 +1,22 @@
1
+ # media/ — 视频背景素材
2
+
3
+ 这些文件不是手绘图,也不是本项目原创的音乐/画面:它们是仓库作者的另一个项目
4
+ [`Perses/EndFieldLOGIN`](https://github.com/ZJ-Dragon/dsh-theme-endfield)(本地路径
5
+ `/Users/zenux/DeepSeek Harness/Perses/EndFieldLOGIN`)中对《明日方舟:终末地》登录界面录屏与
6
+ 登录音乐的再编码产物,用作 DSH 主题的**第二种背景**(与等高线、背景水印互斥)。
7
+
8
+ | 文件 | 内容 | 源 |
9
+ | --- | --- | --- |
10
+ | `video/A.mp4` | 蹲下挠头,14.4s,循环 | `output/video/A.mp4`(1.05–15.42s) |
11
+ | `video/B.mp4` | 起身,2.87s,播一次 | `output/video/B.mp4`(37.90–40.73s) |
12
+ | `video/B_rev.mp4` | 起身倒放,2.87s,回到 A | `output/video/B_rev.mp4`(B 的 `reverse`) |
13
+ | `video/C.mp4` | 走路,35.2s,播一次停在末帧 | `output/video/C.mp4`(40.73s 起,尾段 -log 减速) |
14
+ | `audio/loop.m4a` | 源曲 [0, 27.540833s),A 段循环 | `output/audio/music_loop.flac` |
15
+ | `audio/rest.m4a` | 源曲 [30.1s, 末],B 起播、C 续播 | `output/audio/music_rest.flac` |
16
+
17
+ 重编码命令与实测体积见 [docs/engineering-notes.md](../docs/engineering-notes.md#视频背景把-endfieldlogin-的点击状态机改写成页面相位机2026-12-06)。
18
+ `scripts/` 里没有构建步骤:这些文件是**提交进仓库的产物**,不随 `npm run check` 重新生成
19
+ (源素材不在本仓库,重编码需要 ffmpeg)。
20
+
21
+ **授权**:画面与音乐的权利属于游戏权利方;本目录仅为个人主题的本地素材,**不属于本项目的 MIT
22
+ 覆盖范围**,也没有随本项目对外授权。分发或商用前请替换或移除。
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,124 @@
1
1
  {
2
2
  "name": "@zenux/dsh-theme-endfield",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.2.27",
4
+ "description": "DeepSeek Harness web theme: the industrial editorial look of the Arknights: Endfield official site — cream paper, ink text, signal-yellow accents, zero radius. Settings persist through the DSH volatile Config + configForms transport (0.2.0-rc.2 and 0.1.7+), with a ctx.settingsScope fallback for older hosts.",
5
+ "keywords": [
6
+ "deepseek-harness",
7
+ "dsh",
8
+ "dsh-plugin",
9
+ "plugin",
10
+ "theme",
11
+ "endfield",
12
+ "arknights",
13
+ "client"
14
+ ],
15
+ "license": "MIT",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/ZJ-Dragon/dsh-theme-endfield.git"
19
+ },
20
+ "homepage": "https://github.com/ZJ-Dragon/dsh-theme-endfield#readme",
21
+ "bugs": {
22
+ "url": "https://github.com/ZJ-Dragon/dsh-theme-endfield/issues"
23
+ },
24
+ "main": "index.js",
25
+ "scripts": {
26
+ "check": "node scripts/build-host.js --check && node scripts/build-client.js --check && node scripts/build-contour-worker.js --check && node scripts/build-font.js --check && node check.js",
27
+ "selftest": "node selftest.js",
28
+ "sound:build": "node scripts/build-sounds.js",
29
+ "sound:check": "node scripts/build-sounds.js --check",
30
+ "font:build": "node scripts/build-font.js",
31
+ "font:check": "node scripts/build-font.js --check",
32
+ "test:audio": "node test/audio-notify.test.js && node test/audio-upload.test.js",
33
+ "test:audio-watch": "node test/audio-attention-watch.test.js && node test/host-no-inject.test.js",
34
+ "test:contour": "node test/contour-render.test.js",
35
+ "test:settings": "node test/settings-rows.test.js && node test/settings-durable-hold.test.js && node test/settings-config-forms.test.js && node test/settings-config-fallback.test.js && node test/settings-namespace.test.js && node test/settings-off.test.js && node test/settings-locale.test.js",
36
+ "test:font": "node test/font-scope.test.js",
37
+ "test:sarkaz": "node test/sarkaz-font.test.js",
38
+ "test:thunder": "node test/thunder-edges.test.js && node test/tools/thunder-shot.js && node test/thunder-dismiss.test.js",
39
+ "test:palette": "node test/palette-contrast.test.js && node test/palette-switch.test.js",
40
+ "test:menu": "node test/menu-surface.test.js dark && node test/menu-surface.test.js light",
41
+ "test:selector": "node test/selector-guard.test.js && node test/preset-chip.test.js",
42
+ "test:buttons": "node test/settings-buttons.test.js && node test/tools/hover-check.js",
43
+ "test:balance": "node test/balance-window.test.js && node test/balance-capsule.test.js && node test/capsule-legibility.test.js && node test/credit-capsule.test.js",
44
+ "test:live": "node test/tools/live-check.js",
45
+ "test:specks": "node test/contour-specks.test.js",
46
+ "test:watermark": "node test/watermark-stacking.test.js",
47
+ "test:smoothness": "node test/contour-smoothness.test.js",
48
+ "test:cusps": "node test/contour-cusps.test.js",
49
+ "test:a11y": "node test/contour-a11y.test.js",
50
+ "test:coverage": "node test/contour-coverage.test.js",
51
+ "test:perf": "node test/contour-perf.test.js",
52
+ "test:loader": "node test/loader-performance.test.js && node test/loader-late-prefs.test.js",
53
+ "test": "node check.js && node selftest.js && node test/import-probe.test.js && node test/font-scope.test.js && node test/sarkaz-font.test.js && node test/palette-contrast.test.js && node test/palette-switch.test.js && node test/menu-surface.test.js dark && node test/menu-surface.test.js light && node test/settings-buttons.test.js && node test/tools/hover-check.js && node test/selector-guard.test.js && node test/preset-chip.test.js && node test/balance-window.test.js && node test/balance-capsule.test.js && node test/capsule-legibility.test.js && node test/credit-capsule.test.js && node test/tune-colors.test.js && node test/settings-rows.test.js && node test/settings-durable-hold.test.js && node test/settings-config-forms.test.js && node test/settings-config-fallback.test.js && node test/settings-namespace.test.js && node test/settings-off.test.js && node test/settings-locale.test.js && node test/audio-notify.test.js && node test/audio-upload.test.js && node test/audio-attention-watch.test.js && node test/host-no-inject.test.js && node scripts/build-sounds.js --check && node test/thunder-edges.test.js && node test/tools/thunder-shot.js && node test/thunder-dismiss.test.js && node test/contour-render.test.js && node test/contour-frame-host.test.js && node test/loader-performance.test.js && node test/loader-late-prefs.test.js && node test/video-background.test.js && node test/boot-audio.test.js && node test/composer-stroke.test.js && node test/contour-specks.test.js && node test/watermark-stacking.test.js && node test/contour-smoothness.test.js && node test/contour-cusps.test.js && node test/contour-a11y.test.js && node test/contour-coverage.test.js && node test/contour-perf.test.js && node test/contour-density.test.js && node test/contour-bounds.test.js && node scripts/build-host.js --check && node scripts/build-client.js --check && node scripts/build-contour-worker.js --check && node test/worker-eol.test.js && node test/contour-worker.test.js && node test/contour-worker-budget.test.js && node test/theme-sheet-refresh.test.js && node test/titlebar-probe.test.js && node test/corner-shape.test.js && node test/confirm-disc-target.test.js && node test/band-enter-motion.test.js && node test/approval-band-transform.test.js && node test/light-token-consumers.test.js && node test/sidebar-row-wash.test.js && node test/glass.test.js && node test/contour-trail.test.js && node test/contour-trail-browser.test.js && node test/scroll-anim.test.js && node test/contour-loop-reentry.test.js",
54
+ "test:ci": "node check.js && node selftest.js && node test/import-probe.test.js && node test/font-scope.test.js && node test/sarkaz-font.test.js && node test/palette-contrast.test.js && node test/palette-switch.test.js && node test/menu-surface.test.js dark && node test/menu-surface.test.js light && node test/settings-buttons.test.js && node test/tools/hover-check.js && node test/selector-guard.test.js && node test/preset-chip.test.js && node test/balance-window.test.js && node test/balance-capsule.test.js && node test/capsule-legibility.test.js && node test/credit-capsule.test.js && node test/tune-colors.test.js && node test/settings-rows.test.js && node test/settings-durable-hold.test.js && node test/settings-config-forms.test.js && node test/settings-config-fallback.test.js && node test/settings-namespace.test.js && node test/settings-off.test.js && node test/settings-locale.test.js && node test/audio-notify.test.js && node test/audio-upload.test.js && node test/audio-attention-watch.test.js && node test/host-no-inject.test.js && node scripts/build-sounds.js --check && node test/thunder-edges.test.js && node test/tools/thunder-shot.js && node test/thunder-dismiss.test.js && node test/contour-render.test.js && node test/contour-frame-host.test.js && node test/loader-performance.test.js && node test/loader-late-prefs.test.js && node test/video-background.test.js && node test/boot-audio.test.js && node test/composer-stroke.test.js && node test/contour-specks.test.js && node test/watermark-stacking.test.js && node test/contour-smoothness.test.js && node test/contour-cusps.test.js && node test/contour-a11y.test.js && node test/contour-density.test.js && node test/contour-bounds.test.js && node scripts/build-host.js --check && node scripts/build-client.js --check && node scripts/build-contour-worker.js --check && node test/worker-eol.test.js && node test/contour-worker.test.js && node test/contour-worker-budget.test.js && node test/theme-sheet-refresh.test.js && node test/titlebar-probe.test.js && node test/corner-shape.test.js && node test/confirm-disc-target.test.js && node test/band-enter-motion.test.js && node test/approval-band-transform.test.js && node test/light-token-consumers.test.js && node test/sidebar-row-wash.test.js && node test/glass.test.js && node test/contour-trail.test.js && node test/contour-trail-browser.test.js && node test/scroll-anim.test.js && node test/contour-loop-reentry.test.js",
55
+ "shots": "node test/tools/shoot.js",
56
+ "shots:verify": "node test/tools/shoot.js && node test/tools/verify-shots.js",
57
+ "test:bounds": "node test/contour-bounds.test.js",
58
+ "build:host": "node scripts/build-host.js",
59
+ "check:host": "node scripts/build-host.js --check",
60
+ "build:client": "node scripts/build-client.js",
61
+ "check:client": "node scripts/build-client.js --check",
62
+ "build:worker": "node scripts/build-contour-worker.js",
63
+ "check:worker": "node scripts/build-contour-worker.js --check",
64
+ "test:worker": "node scripts/build-host.js --check && node scripts/build-client.js --check && node scripts/build-contour-worker.js --check && node test/worker-eol.test.js && node test/contour-worker.test.js",
65
+ "test:glass": "node test/glass.test.js",
66
+ "test:sheet": "node test/theme-sheet-refresh.test.js",
67
+ "test:corners": "node test/corner-shape.test.js",
68
+ "test:trail": "node test/contour-trail.test.js",
69
+ "test:trail-browser": "node test/contour-trail-browser.test.js",
70
+ "test:scroll": "node test/scroll-anim.test.js",
71
+ "test:tune": "node test/tune-colors.test.js",
72
+ "test:video": "node test/video-background.test.js",
73
+ "test:boot-audio": "node test/boot-audio.test.js",
74
+ "test:composer-stroke": "node test/composer-stroke.test.js"
75
+ },
76
+ "exports": {
77
+ ".": "./index.js",
78
+ "./client": "./client.js",
79
+ "./package.json": "./package.json",
80
+ "./locale/*.json": "./locale/*.json"
81
+ },
82
+ "dsh": {
83
+ "bundle": {
84
+ "patch": "./cordis.patch.yml"
85
+ },
86
+ "client": {
87
+ "platform": "web",
88
+ "immediately": true,
89
+ "inject": [
90
+ "@deepseek-ai/dsh-client-ui-theme",
91
+ "@deepseek-ai/dsh-client-ui-renderer",
92
+ "@deepseek-ai/dsh-client-ui-settings",
93
+ "@deepseek-ai/dsh-client-locale",
94
+ "@deepseek-ai/dsh-api-session-controller"
95
+ ]
96
+ }
97
+ },
98
+ "files": [
99
+ "index.js",
100
+ "client.js",
101
+ "cordis.patch.yml",
102
+ "locale",
103
+ "README.md",
104
+ "docs",
105
+ "lib",
106
+ "sounds",
107
+ "media",
108
+ "LICENSE"
109
+ ],
110
+ "engines": {
111
+ "node": ">=18"
112
+ },
113
+ "peerDependencies": {
114
+ "@deepseek-ai/cordis": "^4.0.1"
115
+ },
116
+ "peerDependenciesMeta": {
117
+ "@deepseek-ai/cordis": {
118
+ "optional": true
119
+ }
120
+ },
121
+ "publishConfig": {
122
+ "access": "public"
123
+ }
124
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file