dsh-local-link 1.2.0 → 1.2.2

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.
@@ -14,7 +14,8 @@ Presentation remains independent of authorization: changing the viewport never g
14
14
  - **Existing sessions:** Search, View options, workspaces, sessions, rename, archive, and the active-workspace actions stay native Harness operations.
15
15
  - **Dynamic views:** Chat, Trajectory, composer extensions, overlays, and third-party conversation tabs continue to resolve from Harness plugin slots.
16
16
  - **Current session:** a right drawer shows context usage and its System prompt / Tools / Messages breakdown, model, workspace access, agent preset, activity statistics, and session-log download.
17
- - **Subagents:** a compact status chip exposes total and active counts with the native activity state, then opens the nested subagent catalog as a touch-friendly bottom sheet.
17
+ - **Mobile-only simplification:** the duplicate stock context meter below the conversation and the Host-app opener (Explorer/VS Code/Rider) are hidden on mobile, but remain visible on desktop.
18
+ - **Subagents:** on 0.1.5, a compact status chip opens the nested catalog as a touch-friendly bottom sheet. On 0.1.7, Harness's native header action owns the catalog and navigation.
18
19
  - **Appearance:** a sun/moon action uses the Harness theme service. Remote theme selection remains page-scoped, so reload returns to the host preference and resolves `system` against the phone or tablet.
19
20
  - **Touch behavior:** native session and active-workspace overflow actions remain visible without a long press, and switching sessions does not automatically focus the composer or open the software keyboard.
20
21
  - **Keyboard accessibility:** plugin-owned modal drawers receive and contain focus, close with Escape, and restore focus to their invoking control.
@@ -51,7 +52,7 @@ Landscape phones, split-screen browsers, virtual keyboards, third-party fixed-wi
51
52
 
52
53
  Mobile View keeps the official Harness root and AppFrame mounted. It contributes controls through overlay, conversation, theme, session, locale, button, and input contracts wherever Harness exposes them. The stock desktop presentation is unchanged when the media query does not match.
53
54
 
54
- Harness `0.1.5-rc.2` does not expose a complete public responsive shell, drawer recipe, spacing/radius scale, or every required glyph. The plugin therefore owns mobile geometry and a small number of scoped presentation adapters for stock brand, workspace, session-action, and feedback elements. Those hooks are documented in [Architecture and compatibility boundaries](ARCHITECTURE.md) and must be retested for each supported Harness version.
55
+ The supported Harness builds do not expose a complete public responsive shell, drawer recipe, or spacing/radius scale. The plugin therefore owns mobile geometry and a small number of scoped presentation adapters for stock brand, workspace, session-action, and feedback elements. Its icon adapter accepts both 0.1.7 weight-named and older size-named exports. These hooks are documented in [Architecture and compatibility boundaries](ARCHITECTURE.md) and must be retested for each supported Harness version.
55
56
 
56
57
  ## Security
57
58
 
package/lib/client.js CHANGED
@@ -29,6 +29,24 @@ window.__ModuleLoader__.load({
29
29
  let react = require("react");
30
30
  react = __toESM(react, 1);
31
31
  let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
32
+ _deepseek_ai_dsh_client_ui_primitives = __toESM(_deepseek_ai_dsh_client_ui_primitives, 1);
33
+ //#region src/compat-icons.ts
34
+ const icons = _deepseek_ai_dsh_client_ui_primitives;
35
+ function compatibleIcon(current, legacy) {
36
+ const icon = icons[current] ?? icons[legacy];
37
+ if (icon === void 0) throw new Error(`Harness icon unavailable: ${current}`);
38
+ return icon;
39
+ }
40
+ const IconChevronDown = compatibleIcon("IconChevronDownOutlineRegular", "IconChevronDownOutline14");
41
+ const IconChevronRight = compatibleIcon("IconChevronRightOutlineRegular", "IconChevronRightOutline14");
42
+ const IconClose = compatibleIcon("IconCloseOutlineRegular", "IconCloseOutline16");
43
+ const IconAgentPreset = compatibleIcon("IconAgentPresetOutlineRegular", "IconAgentPresetOutline16");
44
+ const IconData = compatibleIcon("IconDataOutlineRegular", "IconDataOutline16");
45
+ const IconDownload = compatibleIcon("IconDownloadOutlineRegular", "IconDownloadOutline16");
46
+ const IconFolderOpen = compatibleIcon("IconFolderOpenOutlineRegular", "IconFolderOpenOutline16");
47
+ const IconLight = compatibleIcon("IconLightOutlineRegular", "IconLightOutline16");
48
+ const IconDark = compatibleIcon("IconDarkOutlineRegular", "IconDarkOutline16");
49
+ //#endregion
32
50
  //#region src/mobile-dialog.ts
33
51
  const FOCUSABLE = [
34
52
  "button:not([disabled])",
@@ -87,6 +105,7 @@ window.__ModuleLoader__.load({
87
105
  const MOBILE_SUBAGENT_DOCK_ID = "dsh-local-link.mobile-subagents";
88
106
  const MOBILE_SUBAGENT_OVERLAY_ID = "dsh-local-link.mobile-subagent-sheet";
89
107
  const MOBILE_SUBAGENT_LINEAGE_PRIORITY = -100;
108
+ const EMPTY_CATALOGS = {};
90
109
  function mobileSubagentProjections(summary) {
91
110
  return summary?.projectionValues ?? {};
92
111
  }
@@ -179,7 +198,7 @@ window.__ModuleLoader__.load({
179
198
  }
180
199
  function MobileSubagentTrigger({ controller, sessionId, t, useSessions }) {
181
200
  const summaries = useSessions((state) => state.byId);
182
- const catalogs = useSessions((state) => state.subagentsByParent);
201
+ const catalogs = useSessions((state) => state.subagentsByParent ?? EMPTY_CATALOGS);
183
202
  const rootSessionId = mobileSubagentRoot(sessionId, summaries);
184
203
  const metrics = (0, react.useMemo)(() => mobileSubagentMetrics(rootSessionId, summaries), [rootSessionId, summaries]);
185
204
  const direct = (0, react.useMemo)(() => directCatalogMetrics(rootSessionId, catalogs), [catalogs, rootSessionId]);
@@ -200,7 +219,7 @@ window.__ModuleLoader__.load({
200
219
  }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: runningCount > 0 ? "ongoing" : "done" })), /* @__PURE__ */ react.default.createElement("span", null, label), /* @__PURE__ */ react.default.createElement("span", {
201
220
  "aria-hidden": "true",
202
221
  className: "dllm-subagent-running"
203
- }, activityLabel), /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutline14, {
222
+ }, activityLabel), /* @__PURE__ */ react.default.createElement(IconChevronRight, {
204
223
  className: "dllm-subagent-chevron",
205
224
  size: 14
206
225
  }));
@@ -276,7 +295,7 @@ window.__ModuleLoader__.load({
276
295
  size: "sm",
277
296
  variant: "ghost",
278
297
  onClick: () => onToggle(entry.id, !open)
279
- }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutline14, { size: 14 })) : /* @__PURE__ */ react.default.createElement("span", { className: "dllm-subagent-expand-space" }), /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.Button, {
298
+ }, /* @__PURE__ */ react.default.createElement(IconChevronRight, { size: 14 })) : /* @__PURE__ */ react.default.createElement("span", { className: "dllm-subagent-expand-space" }), /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.Button, {
280
299
  className: "dllm-subagent-row-main",
281
300
  size: "md",
282
301
  variant: "ghost",
@@ -297,7 +316,7 @@ window.__ModuleLoader__.load({
297
316
  }
298
317
  function MobileSubagentSheet({ actions, controller, t, useSessions }) {
299
318
  const rootSessionId = (0, react.useSyncExternalStore)(controller.subscribe, controller.getSnapshot).rootSessionId;
300
- const catalogs = useSessions((state) => state.subagentsByParent);
319
+ const catalogs = useSessions((state) => state.subagentsByParent ?? EMPTY_CATALOGS);
301
320
  const summaries = useSessions((state) => state.byId);
302
321
  const [expanded, setExpanded] = (0, react.useState)(() => /* @__PURE__ */ new Set());
303
322
  const [now, setNow] = (0, react.useState)(() => Date.now());
@@ -379,7 +398,7 @@ window.__ModuleLoader__.load({
379
398
  size: "sm",
380
399
  variant: "ghost",
381
400
  onClick: () => controller.close()
382
- }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutline16, { size: 16 }))), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-subagent-list" }, /* @__PURE__ */ react.default.createElement(CatalogRows, {
401
+ }, /* @__PURE__ */ react.default.createElement(IconClose, { size: 16 }))), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-subagent-list" }, /* @__PURE__ */ react.default.createElement(CatalogRows, {
383
402
  actions,
384
403
  catalogs,
385
404
  expanded,
@@ -404,11 +423,13 @@ window.__ModuleLoader__.load({
404
423
  @media(prefers-reduced-motion:reduce){.dllm-subagent-expand svg{transition:none!important}}
405
424
  `;
406
425
  function applyMobileSubagents(ctx) {
426
+ const legacySessions = ctx.sessions;
427
+ if (legacySessions.setSubagentCatalogOpen === void 0 || legacySessions.openSubagent === void 0 || legacySessions.refreshSubagents === void 0) return;
407
428
  const controller = new MobileSubagentController();
408
429
  const actions = {
409
- observe: (parentSessionId, open) => ctx.sessions.setSubagentCatalogOpen(parentSessionId, open),
410
- open: (address) => ctx.sessions.openSubagent(address),
411
- refresh: (parentSessionId) => ctx.sessions.refreshSubagents(parentSessionId)
430
+ observe: (parentSessionId, open) => legacySessions.setSubagentCatalogOpen?.(parentSessionId, open),
431
+ open: (address) => legacySessions.openSubagent?.(address),
432
+ refresh: (parentSessionId) => legacySessions.refreshSubagents(parentSessionId)
412
433
  };
413
434
  ctx.effect(() => ctx.slots.inject("conversation.input.dock", () => ctx.slots.register({
414
435
  name: "conversation.input.dock",
@@ -487,8 +508,13 @@ window.__ModuleLoader__.load({
487
508
  getModel(sessionId) {
488
509
  return currentModelName(this.modelDirectory(sessionId)?.store.getSnapshot());
489
510
  }
490
- open() {
491
- this.update(true);
511
+ open(sessionId) {
512
+ this.snapshot = Object.freeze({
513
+ ...this.snapshot,
514
+ ...sessionId === void 0 ? {} : { sessionId: String(sessionId) },
515
+ open: true
516
+ });
517
+ for (const listener of this.listeners) listener();
492
518
  }
493
519
  close() {
494
520
  this.update(false);
@@ -757,7 +783,7 @@ window.__ModuleLoader__.load({
757
783
  title: t("mobile.sessionInfo.open"),
758
784
  size: "sm",
759
785
  variant: "toolbar",
760
- onClick: () => controller.open()
786
+ onClick: () => controller.open(sessionId)
761
787
  }, /* @__PURE__ */ react.default.createElement("svg", {
762
788
  "aria-hidden": "true",
763
789
  className: "dllm-session-info-glyph",
@@ -770,8 +796,7 @@ window.__ModuleLoader__.load({
770
796
  }
771
797
  function MobileSessionInfoDrawer({ controller, downloads, t, useSessions }) {
772
798
  const state = (0, react.useSyncExternalStore)(controller.subscribe, controller.getSnapshot);
773
- const current = useSessions((snapshot) => snapshot.current);
774
- const session = useSessions((snapshot) => current === void 0 ? void 0 : snapshot.byId[current]);
799
+ const session = useSessions((snapshot) => state.sessionId === void 0 ? void 0 : snapshot.byId[state.sessionId]);
775
800
  const downloadState = (0, react.useSyncExternalStore)(downloads.store.subscribe, downloads.store.getSnapshot);
776
801
  const download = session === void 0 ? void 0 : downloadState.bySession[String(session.id)];
777
802
  const downloading = download?.status === "downloading";
@@ -806,7 +831,7 @@ window.__ModuleLoader__.load({
806
831
  size: "sm",
807
832
  variant: "ghost",
808
833
  onClick: close
809
- }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutline16, { size: 16 }))), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-info-body" }, occupancy !== void 0 && /* @__PURE__ */ react.default.createElement("section", { className: "dllm-session-info-card dllm-session-context-card" }, /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-info-row" }, /* @__PURE__ */ react.default.createElement(ContextRing, { occupancy }), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("small", null, t("mobile.sessionInfo.context")), /* @__PURE__ */ react.default.createElement("strong", null, occupancy.percent, "% · ", formatSessionTokens(occupancy.usedTokens), " / ", formatSessionTokens(occupancy.contextWindow)))), breakdown !== void 0 && breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens > 0 && /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, /* @__PURE__ */ react.default.createElement("div", {
834
+ }, /* @__PURE__ */ react.default.createElement(IconClose, { size: 16 }))), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-info-body" }, occupancy !== void 0 && /* @__PURE__ */ react.default.createElement("section", { className: "dllm-session-info-card dllm-session-context-card" }, /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-info-row" }, /* @__PURE__ */ react.default.createElement(ContextRing, { occupancy }), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("small", null, t("mobile.sessionInfo.context")), /* @__PURE__ */ react.default.createElement("strong", null, occupancy.percent, "% · ", formatSessionTokens(occupancy.usedTokens), " / ", formatSessionTokens(occupancy.contextWindow)))), breakdown !== void 0 && breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens > 0 && /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, /* @__PURE__ */ react.default.createElement("div", {
810
835
  className: "dllm-context-breakdown-bar",
811
836
  "aria-hidden": "true"
812
837
  }, /* @__PURE__ */ react.default.createElement("span", {
@@ -818,13 +843,13 @@ window.__ModuleLoader__.load({
818
843
  }), /* @__PURE__ */ react.default.createElement("span", {
819
844
  className: "dllm-context-segment dllm-context-messages",
820
845
  style: { width: `${occupancy.percent * breakdown.messageTokens / (breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens)}%` }
821
- })), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-context-breakdown-rows" }, /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("span", null, /* @__PURE__ */ react.default.createElement("i", { className: "dllm-context-swatch dllm-context-system" }), t("mobile.sessionInfo.context.system")), /* @__PURE__ */ react.default.createElement("span", null, "~", formatSessionTokens(breakdown.systemTokens))), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("span", null, /* @__PURE__ */ react.default.createElement("i", { className: "dllm-context-swatch dllm-context-tools" }), t("mobile.sessionInfo.context.tools")), /* @__PURE__ */ react.default.createElement("span", null, "~", formatSessionTokens(breakdown.toolsTokens))), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("span", null, /* @__PURE__ */ react.default.createElement("i", { className: "dllm-context-swatch dllm-context-messages" }), t("mobile.sessionInfo.context.messages")), /* @__PURE__ */ react.default.createElement("span", null, "~", formatSessionTokens(breakdown.messageTokens)))))), /* @__PURE__ */ react.default.createElement("section", { className: "dllm-session-info-card dllm-session-properties-card" }, /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-property" }, /* @__PURE__ */ react.default.createElement("small", null, t("mobile.sessionInfo.model")), /* @__PURE__ */ react.default.createElement("span", null, model ?? t("mobile.sessionInfo.notRecorded"))), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-property" }, /* @__PURE__ */ react.default.createElement("small", { className: "dllm-session-property-label" }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconFolderOpenOutline16, { size: 13 }), t("mobile.sessionInfo.permissions")), /* @__PURE__ */ react.default.createElement("span", { className: "dllm-session-property-value dllm-session-property-access" }, /* @__PURE__ */ react.default.createElement(PermissionGlyph, { value: accessValue }), access ?? t("mobile.sessionInfo.notRecorded"))), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-property" }, /* @__PURE__ */ react.default.createElement("small", { className: "dllm-session-property-label" }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconAgentPresetOutline16, { size: 13 }), t("mobile.sessionInfo.agentPreset")), /* @__PURE__ */ react.default.createElement("span", null, mobilePresetLabel(sessionAgentPreset(session), t)))), stats.length > 0 && /* @__PURE__ */ react.default.createElement("section", { className: "dllm-session-info-card dllm-session-stats-card" }, /* @__PURE__ */ react.default.createElement("div", {
846
+ })), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-context-breakdown-rows" }, /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("span", null, /* @__PURE__ */ react.default.createElement("i", { className: "dllm-context-swatch dllm-context-system" }), t("mobile.sessionInfo.context.system")), /* @__PURE__ */ react.default.createElement("span", null, "~", formatSessionTokens(breakdown.systemTokens))), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("span", null, /* @__PURE__ */ react.default.createElement("i", { className: "dllm-context-swatch dllm-context-tools" }), t("mobile.sessionInfo.context.tools")), /* @__PURE__ */ react.default.createElement("span", null, "~", formatSessionTokens(breakdown.toolsTokens))), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("span", null, /* @__PURE__ */ react.default.createElement("i", { className: "dllm-context-swatch dllm-context-messages" }), t("mobile.sessionInfo.context.messages")), /* @__PURE__ */ react.default.createElement("span", null, "~", formatSessionTokens(breakdown.messageTokens)))))), /* @__PURE__ */ react.default.createElement("section", { className: "dllm-session-info-card dllm-session-properties-card" }, /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-property" }, /* @__PURE__ */ react.default.createElement("small", null, t("mobile.sessionInfo.model")), /* @__PURE__ */ react.default.createElement("span", null, model ?? t("mobile.sessionInfo.notRecorded"))), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-property" }, /* @__PURE__ */ react.default.createElement("small", { className: "dllm-session-property-label" }, /* @__PURE__ */ react.default.createElement(IconFolderOpen, { size: 13 }), t("mobile.sessionInfo.permissions")), /* @__PURE__ */ react.default.createElement("span", { className: "dllm-session-property-value dllm-session-property-access" }, /* @__PURE__ */ react.default.createElement(PermissionGlyph, { value: accessValue }), access ?? t("mobile.sessionInfo.notRecorded"))), /* @__PURE__ */ react.default.createElement("div", { className: "dllm-session-property" }, /* @__PURE__ */ react.default.createElement("small", { className: "dllm-session-property-label" }, /* @__PURE__ */ react.default.createElement(IconAgentPreset, { size: 13 }), t("mobile.sessionInfo.agentPreset")), /* @__PURE__ */ react.default.createElement("span", null, mobilePresetLabel(sessionAgentPreset(session), t)))), stats.length > 0 && /* @__PURE__ */ react.default.createElement("section", { className: "dllm-session-info-card dllm-session-stats-card" }, /* @__PURE__ */ react.default.createElement("div", {
822
847
  className: "dllm-session-info-icon",
823
848
  "aria-hidden": "true"
824
- }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconDataOutline16, { size: 15 })), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("small", null, t("mobile.sessionInfo.statistics")), stats.map((line) => /* @__PURE__ */ react.default.createElement("p", { key: line }, line)))), /* @__PURE__ */ react.default.createElement("section", { className: "dllm-session-info-card dllm-session-log-card" }, /* @__PURE__ */ react.default.createElement("div", {
849
+ }, /* @__PURE__ */ react.default.createElement(IconData, { size: 15 })), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("small", null, t("mobile.sessionInfo.statistics")), stats.map((line) => /* @__PURE__ */ react.default.createElement("p", { key: line }, line)))), /* @__PURE__ */ react.default.createElement("section", { className: "dllm-session-info-card dllm-session-log-card" }, /* @__PURE__ */ react.default.createElement("div", {
825
850
  className: "dllm-session-info-icon",
826
851
  "aria-hidden": "true"
827
- }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconDownloadOutline16, { size: 17 })), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("small", null, t("mobile.sessionInfo.sessionLog")), /* @__PURE__ */ react.default.createElement("p", null, t("mobile.sessionInfo.sessionLogDescription")), download?.status === "error" && /* @__PURE__ */ react.default.createElement("p", { className: "dllm-session-log-error" }, download.error ?? t("mobile.sessionInfo.sessionLogError")), download?.status === "success" && /* @__PURE__ */ react.default.createElement("p", null, t("mobile.sessionInfo.sessionLogReady"))), /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.Button, {
852
+ }, /* @__PURE__ */ react.default.createElement(IconDownload, { size: 17 })), /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement("small", null, t("mobile.sessionInfo.sessionLog")), /* @__PURE__ */ react.default.createElement("p", null, t("mobile.sessionInfo.sessionLogDescription")), download?.status === "error" && /* @__PURE__ */ react.default.createElement("p", { className: "dllm-session-log-error" }, download.error ?? t("mobile.sessionInfo.sessionLogError")), download?.status === "success" && /* @__PURE__ */ react.default.createElement("p", null, t("mobile.sessionInfo.sessionLogReady"))), /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.Button, {
828
853
  className: "dllm-session-log-download",
829
854
  disabled: downloading,
830
855
  size: "sm",
@@ -975,7 +1000,7 @@ window.__ModuleLoader__.load({
975
1000
  size: "sm",
976
1001
  variant: "ghost",
977
1002
  onClick: () => controller.setDark(!dark)
978
- }, dark ? /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconDarkOutline16, { size: 16 }) : /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconLightOutline16, { size: 16 }));
1003
+ }, dark ? /* @__PURE__ */ react.default.createElement(IconDark, { size: 16 }) : /* @__PURE__ */ react.default.createElement(IconLight, { size: 16 }));
979
1004
  }
980
1005
  function StockMobileControls({ layout, labels, themeController, useDarkLabel, useLightLabel }) {
981
1006
  return /* @__PURE__ */ react.default.createElement("div", { className: "dllm-stock-controls" }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.Button, {
@@ -1029,10 +1054,11 @@ body[data-dsh-local-link-mobile] [role="treeitem"][aria-expanded]:has(>span[clas
1029
1054
  body[data-dsh-local-link-mobile] header{min-width:0;padding-left:max(48px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
1030
1055
  body[data-dsh-local-link-mobile] header [data-conversation-header-corner]{flex:0 0 auto!important;min-width:max-content;margin-right:0!important}
1031
1056
  body[data-dsh-local-link-mobile] header .dllm-session-info-trigger{display:inline-flex!important;flex:0 0 28px!important;width:28px!important;min-width:28px!important;height:28px!important;padding:0!important}
1032
- body[data-dsh-local-link-mobile] header div:has(>button[data-state]):has(>button[aria-haspopup="menu"]){display:none!important}
1057
+ body[data-dsh-local-link-mobile] header [data-slot="conversation.session.header.utilities"]>span:has(>[data-open-target]){display:none!important}
1033
1058
  body[data-dsh-local-link-mobile] textarea,body[data-dsh-local-link-mobile] input{font-size:max(16px,1em)}
1034
1059
  body[data-dsh-local-link-mobile] [data-composer-card] [data-input-scroll]{min-height:52px}
1035
1060
  body[data-dsh-local-link-mobile] [data-composer-placeholder]{white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
1061
+ body[data-dsh-local-link-mobile] [data-slot="conversation.composer.bar"] span:has(>button[aria-haspopup="dialog"]>svg>circle:nth-of-type(2)){display:none!important}
1036
1062
  @media(max-width:480px){body[data-dsh-local-link-mobile] [data-composer-card]>div:last-child{flex-wrap:nowrap!important;gap:8px!important}body[data-dsh-local-link-mobile] [data-composer-card]>div:last-child>div:first-child{flex:1 1 auto;gap:8px!important}body[data-dsh-local-link-mobile] [data-composer-card]>div:last-child>div:last-child{box-sizing:border-box;width:auto;flex:0 0 auto;justify-content:flex-end;gap:6px!important}body[data-dsh-local-link-mobile] [data-composer-card]>div:last-child>div:last-child button[aria-haspopup="menu"]{width:28px;max-width:28px;padding:0;justify-content:center}body[data-dsh-local-link-mobile] [data-composer-card]>div:last-child>div:last-child button[aria-haspopup="menu"]>span{display:none!important}body[data-dsh-local-link-mobile] [data-composer-card]>div:last-child>div:last-child button[aria-haspopup="menu"]>svg:first-child{display:block!important}}
1037
1063
  body[data-dsh-local-link-mobile] [role=tablist]{display:flex;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
1038
1064
  body[data-dsh-local-link-mobile] [role=tablist]::-webkit-scrollbar{display:none}body[data-dsh-local-link-mobile] [role=tab]{flex:0 0 auto;min-height:40px;touch-action:manipulation}
@@ -1764,7 +1790,7 @@ ${MOBILE_SESSION_INFO_STYLES}
1764
1790
  strokeWidth: "1.8",
1765
1791
  strokeLinecap: "round",
1766
1792
  strokeLinejoin: "round"
1767
- }, /* @__PURE__ */ react.default.createElement("path", { d: "M3 12h4l2.2-6 4.2 12 2.1-6H21" }))), /* @__PURE__ */ react.default.createElement("span", { className: "dsh-local-link__diagnostics-copy" }, /* @__PURE__ */ react.default.createElement("strong", null, t("diagnostics.title")), /* @__PURE__ */ react.default.createElement("small", null, t("diagnostics.subtitle")))), /* @__PURE__ */ react.default.createElement("span", { className: "dsh-local-link__diagnostics-summary-meta" }, /* @__PURE__ */ react.default.createElement("span", { className: "dsh-local-link__diagnostics-badge" }, diagnosticsError ? t("diagnostics.unavailable") : diagnostics === void 0 ? t("diagnostics.loading") : `${diagnostics.length} ${t("diagnostics.events")}`), /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutline14, {
1793
+ }, /* @__PURE__ */ react.default.createElement("path", { d: "M3 12h4l2.2-6 4.2 12 2.1-6H21" }))), /* @__PURE__ */ react.default.createElement("span", { className: "dsh-local-link__diagnostics-copy" }, /* @__PURE__ */ react.default.createElement("strong", null, t("diagnostics.title")), /* @__PURE__ */ react.default.createElement("small", null, t("diagnostics.subtitle")))), /* @__PURE__ */ react.default.createElement("span", { className: "dsh-local-link__diagnostics-summary-meta" }, /* @__PURE__ */ react.default.createElement("span", { className: "dsh-local-link__diagnostics-badge" }, diagnosticsError ? t("diagnostics.unavailable") : diagnostics === void 0 ? t("diagnostics.loading") : `${diagnostics.length} ${t("diagnostics.events")}`), /* @__PURE__ */ react.default.createElement(IconChevronDown, {
1768
1794
  className: "dsh-local-link__diagnostics-chevron",
1769
1795
  size: 14
1770
1796
  }))), /* @__PURE__ */ react.default.createElement("div", { className: "dsh-local-link__diagnostics-body" }, /* @__PURE__ */ react.default.createElement("p", null, t("diagnostics.description")), /* @__PURE__ */ react.default.createElement("div", { className: "dsh-local-link__diagnostics-actions" }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.Button, {