dsh-claude-style 0.20.0-dev.57 → 0.20.1-dev.58

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/host/brand.js CHANGED
@@ -23,6 +23,7 @@ var PRICES_PATH = `${ROUTE_PREFIX}/prices`;
23
23
  var SESSION_COST_PATH = `${ROUTE_PREFIX}/session-cost`;
24
24
  var FONT_FILES_PATH = `${ROUTE_PREFIX}/fonts/`;
25
25
  var WEBFONTS_PATH = `${ROUTE_PREFIX}/webfonts`;
26
+ var SOUND_PATH = `${ROUTE_PREFIX}/sound`;
26
27
 
27
28
  // packages/host/src/brand.ts
28
29
  import { mkdirSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
@@ -17,6 +17,7 @@ var PRICES_PATH = `${ROUTE_PREFIX}/prices`;
17
17
  var SESSION_COST_PATH = `${ROUTE_PREFIX}/session-cost`;
18
18
  var FONT_FILES_PATH = `${ROUTE_PREFIX}/fonts/`;
19
19
  var WEBFONTS_PATH = `${ROUTE_PREFIX}/webfonts`;
20
+ var SOUND_PATH = `${ROUTE_PREFIX}/sound`;
20
21
 
21
22
  // packages/contracts/src/webfonts.ts
22
23
  var OPTIONAL_WEBFONTS = [
@@ -111,6 +112,9 @@ function readRequestBody(req, limit) {
111
112
  });
112
113
  }
113
114
 
115
+ // packages/host/src/routes.ts
116
+ import { clampSoundVolume, isSoundName, playSystemSound, soundCapability } from "./sound.js";
117
+
114
118
  // packages/engine/node/static-files.ts
115
119
  import { existsSync, readFileSync } from "node:fs";
116
120
  import { join as join2 } from "node:path";
@@ -193,6 +197,31 @@ function readBillingRows(query) {
193
197
  const rows = query.getAll("b").slice(0, BILLING_ROWS_MAX).filter((row) => row.length <= BILLING_ROW_MAX);
194
198
  return billingRowsOf(rows, currency === "CNY" || currency === "USD" ? currency : null);
195
199
  }
200
+ async function playSoundRequest(req, res) {
201
+ const body = await readRequestBody(req, SOUND_BODY_MAX);
202
+ if (body === null) {
203
+ sendJson(res, 413, { ok: false, error: "request body too large" });
204
+ return;
205
+ }
206
+ let parsed;
207
+ try {
208
+ parsed = JSON.parse(body.toString("utf8"));
209
+ } catch {
210
+ sendJson(res, 400, { ok: false, error: "request body is not JSON" });
211
+ return;
212
+ }
213
+ const request = parsed !== null && typeof parsed === "object" ? parsed : null;
214
+ if (request === null || !isSoundName(request.name)) {
215
+ sendJson(res, 400, { ok: false, error: "unknown sound" });
216
+ return;
217
+ }
218
+ if (soundCapability().playback !== "system") {
219
+ sendJson(res, 409, { ok: false, error: "system playback unavailable" });
220
+ return;
221
+ }
222
+ await playSystemSound(request.name, clampSoundVolume(request.volume));
223
+ sendJson(res, 200, { ok: true });
224
+ }
196
225
  var FONT_FILES = {
197
226
  "JetBrainsMonoVariable.ttf": "font/ttf",
198
227
  "JetBrainsMonoItalicVariable.ttf": "font/ttf",
@@ -204,6 +233,7 @@ var FONT_FILES = {
204
233
  var WEBFONTS_SUB = WEBFONTS_PATH.slice(ROUTE_PREFIX.length);
205
234
  var ASSETS_PATH = `${ROUTE_PREFIX}/assets/`;
206
235
  var DELETE_BODY_MAX = 4096;
236
+ var SOUND_BODY_MAX = 1024;
207
237
  var SESSION_ID_RE = /^[A-Za-z0-9._\-:@]{1,200}$/;
208
238
  function sessionIsLive(ctx, sessionId) {
209
239
  const sessions = ctx.get("sessions");
@@ -315,6 +345,10 @@ function registerRoutes(ctx, scope) {
315
345
  sendJson(res, 500, { ok: false, error: String(error?.message ?? String(error)) });
316
346
  });
317
347
  };
348
+ const fail = (res, error) => {
349
+ if (res.headersSent) res.destroy();
350
+ else sendJson(res, 500, { ok: false, error: String(error?.message ?? String(error)) });
351
+ };
318
352
  register("model copy", {
319
353
  kind: "prefix",
320
354
  path: ROUTE_PREFIX,
@@ -372,6 +406,19 @@ function registerRoutes(ctx, scope) {
372
406
  res.end(req.method === "HEAD" ? void 0 : body);
373
407
  }
374
408
  });
409
+ register("sound", {
410
+ kind: "exact",
411
+ path: SOUND_PATH,
412
+ handler: (req, res) => {
413
+ if (methodRefused(req, res, ["GET", "POST"])) return;
414
+ if (fenceRefused(ctx, req, res)) return;
415
+ if (req.method !== "POST") {
416
+ sendJson(res, 200, soundCapability());
417
+ return;
418
+ }
419
+ void playSoundRequest(req, res).catch((error) => fail(res, error));
420
+ }
421
+ });
375
422
  register("HDSL account", {
376
423
  kind: "exact",
377
424
  path: HDSL_PATH,
@@ -411,10 +458,7 @@ function registerRoutes(ctx, scope) {
411
458
  path: SESSION_DELETE_PATH,
412
459
  handler: (req, res) => {
413
460
  if (methodRefused(req, res, ["POST"])) return;
414
- void deleteSession(ctx, req, res).catch((error) => {
415
- if (res.headersSent) res.destroy();
416
- else sendJson(res, 500, { ok: false, error: String(error?.message ?? String(error)) });
417
- });
461
+ void deleteSession(ctx, req, res).catch((error) => fail(res, error));
418
462
  }
419
463
  });
420
464
  register("usage", {
@@ -13,6 +13,17 @@ var CURRENCY_SYMBOL = {
13
13
  [CURRENCY_USD]: "$"
14
14
  };
15
15
 
16
+ // packages/contracts/src/sound.ts
17
+ var SOUND_LEVEL_OFF = "off";
18
+ var SOUND_LEVEL_SOFT = "soft";
19
+ var SOUND_LEVEL_CLEAR = "clear";
20
+ var SOUND_LEVELS = [SOUND_LEVEL_OFF, SOUND_LEVEL_SOFT, SOUND_LEVEL_CLEAR];
21
+ var SOUND_GAIN = {
22
+ [SOUND_LEVEL_OFF]: 0,
23
+ [SOUND_LEVEL_SOFT]: 0.2,
24
+ [SOUND_LEVEL_CLEAR]: 0.55
25
+ };
26
+
16
27
  // packages/contracts/src/prefs.ts
17
28
  var BILLING_OFF = "off";
18
29
  var BILLING_CHOICES = [BILLING_OFF, ...CURRENCIES];
@@ -221,11 +232,11 @@ var PREFS = {
221
232
  sidebarLayout: { type: "choice", values: SIDEBAR_LAYOUTS, default: SIDEBAR_LAYOUT_RELAXED },
222
233
  ongoingIndicator: { type: "choice", values: ONGOING_INDICATORS, default: ONGOING_INDICATOR_BREATHE },
223
234
  /**
224
- * Which end of the row carries that marker. The trailing end (the default)
225
- * leaves the host's leading slot empty, and the row keeps that band reserved
226
- * so a third-party mark painted over the slot cannot cover the title.
235
+ * Which end of the row carries that marker. The leading end (the default)
236
+ * keeps the host's own slot as its place, the title starting after it; the
237
+ * trailing end leaves that band reserved for a third-party mark.
227
238
  */
228
- ongoingIndicatorSide: { type: "choice", values: ONGOING_SIDES, default: ONGOING_SIDE_RIGHT },
239
+ ongoingIndicatorSide: { type: "choice", values: ONGOING_SIDES, default: ONGOING_SIDE_LEFT },
229
240
  /** Explicit reminders stay separate from the host's completion-unread state. */
230
241
  manualUnreadIds: { type: "list", default: [], max: MANUAL_UNREAD_LIMIT, entryMax: MANUAL_UNREAD_ID_LIMIT, drop: [] },
231
242
  turnNav: { type: "boolean", default: true },
@@ -248,7 +259,12 @@ var PREFS = {
248
259
  answerAnchor: { type: "boolean", default: false },
249
260
  caretMotion: { type: "choice", values: CARET_MOTIONS, default: CARET_MOTION_TYPING },
250
261
  messageEnter: { type: "choice", values: MESSAGE_ENTER_MODES, default: MESSAGE_ENTER_FLIGHT },
251
- processRows: { type: "choice", values: PROCESS_ROWS_LAYOUTS, default: PROCESS_ROWS_FLAT }
262
+ processRows: { type: "choice", values: PROCESS_ROWS_LAYOUTS, default: PROCESS_ROWS_FLAT },
263
+ /**
264
+ * How loud the cue for a finished or blocked task is (D89). Off unless the
265
+ * reader asks for it: a sound the reader did not ask for is an interruption.
266
+ */
267
+ soundCues: { type: "choice", values: SOUND_LEVELS, default: SOUND_LEVEL_OFF }
252
268
  };
253
269
  var PREF_DEFAULTS = Object.freeze(Object.fromEntries(
254
270
  Object.entries(PREFS).map(([key, spec]) => [key, spec.default])
@@ -0,0 +1,54 @@
1
+ // packages/contracts/src/sound.ts
2
+ var SOUND_POP = "pop";
3
+ var SOUND_TINK = "tink";
4
+ var SOUND_NAMES = [SOUND_POP, SOUND_TINK];
5
+ var SOUND_LEVEL_OFF = "off";
6
+ var SOUND_LEVEL_SOFT = "soft";
7
+ var SOUND_LEVEL_CLEAR = "clear";
8
+ var SOUND_GAIN = {
9
+ [SOUND_LEVEL_OFF]: 0,
10
+ [SOUND_LEVEL_SOFT]: 0.2,
11
+ [SOUND_LEVEL_CLEAR]: 0.55
12
+ };
13
+
14
+ // packages/host/src/sound.ts
15
+ import { spawn } from "node:child_process";
16
+ import { existsSync } from "node:fs";
17
+ import { join } from "node:path";
18
+ var PLAYER = "/usr/bin/afplay";
19
+ var DIRECTORY = "/System/Library/Sounds";
20
+ var FILES = {
21
+ [SOUND_POP]: "Pop.aiff",
22
+ [SOUND_TINK]: "Tink.aiff"
23
+ };
24
+ var VOLUME_MIN = 0.02;
25
+ var VOLUME_MAX = 1;
26
+ function playable() {
27
+ return process.platform === "darwin" && existsSync(PLAYER) && SOUND_NAMES.every((name) => existsSync(join(DIRECTORY, FILES[name])));
28
+ }
29
+ function soundCapability() {
30
+ return playable() ? { ok: true, playback: "system", sounds: [...SOUND_NAMES] } : { ok: true, playback: "browser", sounds: [] };
31
+ }
32
+ function isSoundName(value) {
33
+ return typeof value === "string" && SOUND_NAMES.includes(value);
34
+ }
35
+ function clampSoundVolume(value) {
36
+ const number = typeof value === "number" && Number.isFinite(value) ? value : 0;
37
+ return Math.min(VOLUME_MAX, Math.max(VOLUME_MIN, number));
38
+ }
39
+ function playSystemSound(name, volume) {
40
+ return new Promise((resolve, reject) => {
41
+ const child = spawn(PLAYER, ["-v", volume.toFixed(2), join(DIRECTORY, FILES[name])], { stdio: "ignore" });
42
+ child.once("spawn", () => {
43
+ child.unref();
44
+ resolve();
45
+ });
46
+ child.once("error", reject);
47
+ });
48
+ }
49
+ export {
50
+ clampSoundVolume,
51
+ isSoundName,
52
+ playSystemSound,
53
+ soundCapability
54
+ };
package/lib/prices.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "updatedAt": "2026-11-07",
4
- "capturedAt": "2026-11-07T10:01:49.071Z",
3
+ "updatedAt": "2026-11-08",
4
+ "capturedAt": "2026-11-08T10:15:53.825Z",
5
5
  "source": {
6
6
  "zh": "https://api-docs.deepseek.com/zh-cn/quick_start/pricing/",
7
7
  "en": "https://api-docs.deepseek.com/quick_start/pricing/"
@@ -474,7 +474,7 @@
474
474
  "deepseek-chat-v3.1": "0.25 0.13 0.95",
475
475
  "deepseek-flash": "0.15 0.003 0.6",
476
476
  "deepseek-flash-latest": "0.006 0.005 0.5",
477
- "deepseek-latest": "0.66 0.022 1.98",
477
+ "deepseek-latest": "0.65868 0.020958 1.97604",
478
478
  "deepseek-ocr": "0.2 0.2 0.7",
479
479
  "deepseek-ocr-2": "0.45985 0.0612 0.74875",
480
480
  "deepseek-pro-latest": "0.0999 0.0999 8",
@@ -520,24 +520,25 @@
520
520
  "deepseek-v4-flash-0731": "0.15 0.028 0.3",
521
521
  "deepseek-v4-flash-0731-fast": "0.28 0.07 0.7",
522
522
  "deepseek-v4-flash-0731-tee": "0.44 0.044 1.32",
523
- "deepseek-v4-flash-0731:thinking": "0.05 0.013 0.16",
523
+ "deepseek-v4-flash-0731:thinking": "0.04444 0.001414 0.13332",
524
524
  "deepseek-v4-flash-0731@eu": "0.1995 0.0439 0.399",
525
525
  "deepseek-v4-flash-el": "0.14 0.14 0.28",
526
526
  "deepseek-v4-flash-fast": "0.28 0.07 0.56",
527
527
  "deepseek-v4-flash-flex": "0.091 0.0182 0.182",
528
528
  "deepseek-v4-flash-ga-260731": "0.4453 0.01484 1.3359",
529
- "deepseek-v4-flash-latest": "0.077 0.0315 0.3",
529
+ "deepseek-v4-flash-latest": "0.0717 0.0315 0.3",
530
530
  "deepseek-v4-flash-speed": "0.14 0.028 0.28",
531
531
  "deepseek-v4-flash-vision-exp": "0.2178 0.00693 0.6534",
532
532
  "deepseek-v4-flash:thinking": "0.14 0.0028 0.28",
533
533
  "deepseek-v4-pro": "1.32 0.1335 3.3005",
534
534
  "deepseek-v4-pro-0423": "1.695 0.8975 3.39",
535
535
  "deepseek-v4-pro-0813": "1.32 0.045953 3.96",
536
- "deepseek-v4-pro-0813:thinking": "0.66 0.022 1.98",
536
+ "deepseek-v4-pro-0813:thinking": "0.65868 0.020958 1.97604",
537
537
  "deepseek-v4-pro-0813@eu": "1.75 0.44 3.5",
538
538
  "deepseek-v4-pro-el": "1.67 1.67 3.33",
539
539
  "deepseek-v4-pro-fast": "1.91 0.16 3.83",
540
540
  "deepseek-v4-pro-ga-260813": "1.3359 0.04453 4.00771",
541
+ "deepseek-v4-pro-qwen3.5-9b-uncensored-heretic": "0.28 0.14 0.28",
541
542
  "deepseek-v4-pro:0813": "0.66 0.022 1.98",
542
543
  "deepseek-v4-pro:thinking": "0.7 0.07 1.4",
543
544
  "deepseek-v4-pro@eu": "1.75 0.44 3.5",
@@ -570,6 +571,7 @@
570
571
  "deepseek-v4p1-flash": "0.3 0.006 1.2",
571
572
  "deepseek-v4p1-flash-1017": "0.3 0.006 1.2",
572
573
  "deepseek-v4p1-flash-1017-spot": "0.21 0.0042 0.84",
574
+ "deepseek-v4p1-flash-1017-ultrafast": "2.4 0.048 9.6",
573
575
  "deepseek-v4p1-flash-spot": "0.21 0.0042 0.84",
574
576
  "deepseek.r1-v1:0": "1.35 1.35 5.4",
575
577
  "deepseek.v3-v1:0": "0.58 0.58 1.68",
@@ -795,7 +797,7 @@
795
797
  "gemma-4-26b-a4b-it-musica": "0.12 0.06 0.38",
796
798
  "gemma-4-26b-a4b-it-opusdistill": "0.12 0.06 0.38",
797
799
  "gemma-4-26b-a4b-it-shadowsiren": "0.12 0.06 0.38",
798
- "gemma-4-26b-a4b-it:thinking": "0.015 0.007 0.045",
800
+ "gemma-4-26b-a4b-it:thinking": "0.032 0.016 0.096",
799
801
  "gemma-4-26b-a4b-meromero": "0.12 0.06 0.38",
800
802
  "gemma-4-26b-a4b-meromero:thinking": "0.12 0.06 0.38",
801
803
  "gemma-4-26b-a4b-uncensored": "0.15 0.075 0.7",
@@ -915,7 +917,7 @@
915
917
  "glm-5.2-ponytail-lite": "1.738325 0.4486 5.1589",
916
918
  "glm-5.2-ponytail-ultra": "1.738325 0.4486 5.1589",
917
919
  "glm-5.2-tee": "1.25 0.125 3.95",
918
- "glm-5.2:thinking": "0.91 0.389 2.86",
920
+ "glm-5.2:thinking": "0.7945 0.36755 2.497",
919
921
  "glm-5.2@eu": "1.2 0.26 4.2",
920
922
  "glm-5.3": "1.4 0.26 4.4",
921
923
  "glm-5.3-fast": "2.1 0.39 6.6",
@@ -948,7 +950,7 @@
948
950
  "glm-5v-turbo": "1.2 0.24 4",
949
951
  "glm-5v-turbo:thinking": "1.2 0.24 4",
950
952
  "glm-fast-latest": "2.1 0.39 6.6",
951
- "glm-flash-latest": "0.08925 0.02925 0.29615",
953
+ "glm-flash-latest": "0.09175 0.03 0.2915",
952
954
  "glm-latest": "0.6 0.1733 1.4",
953
955
  "glm5.2": "2.31 2.31 6",
954
956
  "glm5.2-fast": "3 0.5 10.25",
@@ -1297,7 +1299,7 @@
1297
1299
  "kimi-k2.8-preview": "1 0.25 4",
1298
1300
  "kimi-k2_6": "0.95 0.95 4",
1299
1301
  "kimi-k3": "3 0.3 15",
1300
- "kimi-k3-1-pro": "2 1 10",
1302
+ "kimi-k3-1-pro": "2 0.4 10",
1301
1303
  "kimi-k3-1-pro-highspeed": "5 0.375 25",
1302
1304
  "kimi-k3-fast": "4.5 0.45 22.5",
1303
1305
  "kimi-k3-fast-api": "4.5 0.45 22.5",
@@ -1308,7 +1310,8 @@
1308
1310
  "kimi-k3.1-pro-highspeed": "4 0.2 20",
1309
1311
  "kimi-k3:fast": "6 0.6 30",
1310
1312
  "kimi-k3@eu": "3 0.45 15",
1311
- "kimi-latest": "1.791 0.18 9.7471",
1313
+ "kimi-k3p1-pro": "2 0.2 10",
1314
+ "kimi-latest": "1.791 0.1733 10.1366",
1312
1315
  "kloker": "0.23 0.23 1.16",
1313
1316
  "kloker-integration-architect": "0.23 0.23 1.16",
1314
1317
  "kloker-integration-developer": "0.23 0.23 1.16",
@@ -1394,7 +1397,7 @@
1394
1397
  "longcat-2.0": "0.75 0.015 2.95",
1395
1398
  "longcat-2.0:thinking": "0.75 0.015 3",
1396
1399
  "longcat-2.5": "0.3 0.006 1.2",
1397
- "longcat-2.5-preview": "0.525 0.0105 2.075",
1400
+ "longcat-2.5-preview": "0.54375 0.010875 2.14875",
1398
1401
  "lucidnova-rf1-100b": "2 2 5",
1399
1402
  "lucidquery-agi-01-frontier": "5.04675 5.04675 24.673",
1400
1403
  "lucidquery-agi-01-swift": "2.80375 2.80375 16.8225",
@@ -1603,6 +1606,7 @@
1603
1606
  "morph-glm53flash": "0.2 0.04 0.7",
1604
1607
  "morph-kimik3": "2.5 0.29 14",
1605
1608
  "morph-kimik3-fast": "6 0.6 22.5",
1609
+ "morph-kimik31": "2.5 0.29 14",
1606
1610
  "morph-v3-fast": "0.8 0.8 1.2",
1607
1611
  "morph-v3-large": "0.9 0.9 1.9",
1608
1612
  "motif-3": "0.5 0.2 2",
@@ -1651,7 +1655,6 @@
1651
1655
  "nemotron-3.5-super-vl": "0.175 0.03 0.5",
1652
1656
  "nemotron-3_5-lightning": "0.06 0.06 0.24",
1653
1657
  "nemotron-lightning-3.5-30b-a3b": "0.05 0.01 0.2",
1654
- "nemotron-lightning-3p5-30b-a3b": "0.05 0.01 0.2",
1655
1658
  "nemotron-nano-12b-v2-vl": "0.2 0.12 0.6",
1656
1659
  "nemotron-nano-9b-v2": "0.06 0.06 0.23",
1657
1660
  "nemotron-nano-v2-12b": "0.24 0.24 0.707",
@@ -1786,7 +1789,7 @@
1786
1789
  "orcacyber-minimax-m3.1-flash": "0.8 0.15 1.6",
1787
1790
  "orcacyber-qwen3.8-flash-next": "0.8 0.15 1.6",
1788
1791
  "orcacyber-zero-1.5": "3 0.75 7.5",
1789
- "ornith-1.5-122b": "0.2 0.02 0.8",
1792
+ "ornith-1.5-122b": "0.26 0.07 2.08",
1790
1793
  "ornith-1.5-35b-a3b": "0.1 0.03 0.4",
1791
1794
  "ornith-1.5-35b-a3b:thinking": "0.1 0.05 0.4",
1792
1795
  "osmosis-structure-0.6b": "0.1 0.1 0.5",
@@ -1988,7 +1991,7 @@
1988
1991
  "qwen3.5-plus-20260420": "0.3 0.3 1.8",
1989
1992
  "qwen3.5-plus:thinking": "0.4 0.04 2.4",
1990
1993
  "qwen3.6": "0.04 0.02 0.35",
1991
- "qwen3.6-27b": "0.449804 0.43 3.19",
1994
+ "qwen3.6-27b": "0.446 0.4126 3.19",
1992
1995
  "qwen3.6-27b-tee": "0.25 0.025 2",
1993
1996
  "qwen3.6-27b:thinking": "0.203 0.1015 2.24",
1994
1997
  "qwen3.6-35b": "0.229112 0.098613 0.855375",
@@ -2103,7 +2106,7 @@
2103
2106
  "solar-pro2": "0.2 0.1325 0.425",
2104
2107
  "solar-pro3": "0.2 0.1325 0.425",
2105
2108
  "solar-pro4": "0.15 0.03 0.6",
2106
- "solar-pro4:thinking": "0.03 0.006 0.12",
2109
+ "solar-pro4:thinking": "0.15 0.03 0.6",
2107
2110
  "sonar": "1 1 1",
2108
2111
  "sonar-deep-research": "2 2 8",
2109
2112
  "sonar-pro": "3 3 15",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-claude-style",
3
3
  "description": "Claude Code Desktop theme for DeepSeek Harness (dsh) web GUI — visual & interaction overhaul",
4
- "version": "0.20.0-dev.57",
4
+ "version": "0.20.1-dev.58",
5
5
  "type": "module",
6
6
  "main": "lib/host/index.js",
7
7
  "icon": "lib/claude-mark.svg",
Binary file