dsh-local-link 1.2.1 → 1.2.3
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/CHANGELOG.md +36 -0
- package/README.md +18 -13
- package/README.ru.md +267 -0
- package/README.zh.md +20 -9
- package/docs/ARCHITECTURE.md +6 -6
- package/docs/MOBILE_VIEW.md +3 -2
- package/docs/images/local-access-devices.png +0 -0
- package/docs/images/local-access-devices.zh.png +0 -0
- package/docs/images/local-access-diagnostics.png +0 -0
- package/docs/images/local-access-diagnostics.zh.png +0 -0
- package/docs/images/local-access-qr.png +0 -0
- package/docs/images/local-access-qr.zh.png +0 -0
- package/docs/images/mobile-chat.png +0 -0
- package/docs/images/mobile-chat.zh.png +0 -0
- package/docs/images/mobile-navigation.png +0 -0
- package/docs/images/mobile-navigation.zh.png +0 -0
- package/docs/images/mobile-session-info.png +0 -0
- package/docs/images/mobile-session-info.zh.png +0 -0
- package/docs/images/mobile-subagents.png +0 -0
- package/docs/images/mobile-subagents.zh.png +0 -0
- package/lib/client.js +55 -26
- package/lib/client.js.map +1 -1
- package/lib/index.mjs +3 -0
- package/package.json +44 -51
- package/docs/images/local-access-devices.jpg +0 -0
- package/docs/images/local-access-diagnostics.jpg +0 -0
- package/docs/images/local-access-qr.jpg +0 -0
package/docs/MOBILE_VIEW.md
CHANGED
|
@@ -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
|
-
- **
|
|
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 and 0.2, 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
|
|
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
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
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(
|
|
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(
|
|
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(
|
|
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) =>
|
|
410
|
-
open: (address) =>
|
|
411
|
-
refresh: (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,19 +508,25 @@ window.__ModuleLoader__.load({
|
|
|
487
508
|
getModel(sessionId) {
|
|
488
509
|
return currentModelName(this.modelDirectory(sessionId)?.store.getSnapshot());
|
|
489
510
|
}
|
|
490
|
-
open() {
|
|
491
|
-
this.
|
|
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);
|
|
495
521
|
}
|
|
496
522
|
reportModel(sessionId, model) {
|
|
497
523
|
if (this.snapshot.modelSessionId === sessionId && this.snapshot.model === model) return;
|
|
524
|
+
const { model: previousModel, ...snapshot } = this.snapshot;
|
|
498
525
|
this.snapshot = Object.freeze(model === void 0 ? {
|
|
499
|
-
|
|
526
|
+
...snapshot,
|
|
500
527
|
modelSessionId: sessionId
|
|
501
528
|
} : {
|
|
502
|
-
|
|
529
|
+
...snapshot,
|
|
503
530
|
modelSessionId: sessionId,
|
|
504
531
|
model
|
|
505
532
|
});
|
|
@@ -522,7 +549,7 @@ window.__ModuleLoader__.load({
|
|
|
522
549
|
}
|
|
523
550
|
};
|
|
524
551
|
function mobilePresetLabel(preset, t) {
|
|
525
|
-
if (preset
|
|
552
|
+
if (typeof preset !== "string" || preset.trim() === "") return t("mobile.sessionInfo.notRecorded");
|
|
526
553
|
switch (preset) {
|
|
527
554
|
case "standard": return t("mobile.sessionInfo.preset.standard");
|
|
528
555
|
case "code": return t("mobile.sessionInfo.preset.code");
|
|
@@ -574,14 +601,16 @@ window.__ModuleLoader__.load({
|
|
|
574
601
|
}
|
|
575
602
|
function permissionName(value) {
|
|
576
603
|
const selection = recordOf(value);
|
|
577
|
-
const currentValue =
|
|
578
|
-
if (currentValue === void 0
|
|
604
|
+
const currentValue = permissionValue(value);
|
|
605
|
+
if (currentValue === void 0) return void 0;
|
|
606
|
+
if (!Array.isArray(selection?.options)) return currentValue;
|
|
579
607
|
const name = recordOf(selection.options.find((option) => recordOf(option)?.value === currentValue))?.name;
|
|
580
608
|
return typeof name === "string" ? name : currentValue;
|
|
581
609
|
}
|
|
582
610
|
function permissionValue(value) {
|
|
583
611
|
const selection = recordOf(value);
|
|
584
|
-
|
|
612
|
+
const currentValue = selection?.currentValue ?? selection?.preset;
|
|
613
|
+
return typeof currentValue === "string" && currentValue.length > 0 ? currentValue : void 0;
|
|
585
614
|
}
|
|
586
615
|
function currentModelName(value) {
|
|
587
616
|
const directory = recordOf(value);
|
|
@@ -757,7 +786,7 @@ window.__ModuleLoader__.load({
|
|
|
757
786
|
title: t("mobile.sessionInfo.open"),
|
|
758
787
|
size: "sm",
|
|
759
788
|
variant: "toolbar",
|
|
760
|
-
onClick: () => controller.open()
|
|
789
|
+
onClick: () => controller.open(sessionId)
|
|
761
790
|
}, /* @__PURE__ */ react.default.createElement("svg", {
|
|
762
791
|
"aria-hidden": "true",
|
|
763
792
|
className: "dllm-session-info-glyph",
|
|
@@ -770,8 +799,7 @@ window.__ModuleLoader__.load({
|
|
|
770
799
|
}
|
|
771
800
|
function MobileSessionInfoDrawer({ controller, downloads, t, useSessions }) {
|
|
772
801
|
const state = (0, react.useSyncExternalStore)(controller.subscribe, controller.getSnapshot);
|
|
773
|
-
const
|
|
774
|
-
const session = useSessions((snapshot) => current === void 0 ? void 0 : snapshot.byId[current]);
|
|
802
|
+
const session = useSessions((snapshot) => state.sessionId === void 0 ? void 0 : snapshot.byId[state.sessionId]);
|
|
775
803
|
const downloadState = (0, react.useSyncExternalStore)(downloads.store.subscribe, downloads.store.getSnapshot);
|
|
776
804
|
const download = session === void 0 ? void 0 : downloadState.bySession[String(session.id)];
|
|
777
805
|
const downloading = download?.status === "downloading";
|
|
@@ -806,7 +834,7 @@ window.__ModuleLoader__.load({
|
|
|
806
834
|
size: "sm",
|
|
807
835
|
variant: "ghost",
|
|
808
836
|
onClick: close
|
|
809
|
-
}, /* @__PURE__ */ react.default.createElement(
|
|
837
|
+
}, /* @__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
838
|
className: "dllm-context-breakdown-bar",
|
|
811
839
|
"aria-hidden": "true"
|
|
812
840
|
}, /* @__PURE__ */ react.default.createElement("span", {
|
|
@@ -818,13 +846,13 @@ window.__ModuleLoader__.load({
|
|
|
818
846
|
}), /* @__PURE__ */ react.default.createElement("span", {
|
|
819
847
|
className: "dllm-context-segment dllm-context-messages",
|
|
820
848
|
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(
|
|
849
|
+
})), /* @__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
850
|
className: "dllm-session-info-icon",
|
|
823
851
|
"aria-hidden": "true"
|
|
824
|
-
}, /* @__PURE__ */ react.default.createElement(
|
|
852
|
+
}, /* @__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
853
|
className: "dllm-session-info-icon",
|
|
826
854
|
"aria-hidden": "true"
|
|
827
|
-
}, /* @__PURE__ */ react.default.createElement(
|
|
855
|
+
}, /* @__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
856
|
className: "dllm-session-log-download",
|
|
829
857
|
disabled: downloading,
|
|
830
858
|
size: "sm",
|
|
@@ -975,7 +1003,7 @@ window.__ModuleLoader__.load({
|
|
|
975
1003
|
size: "sm",
|
|
976
1004
|
variant: "ghost",
|
|
977
1005
|
onClick: () => controller.setDark(!dark)
|
|
978
|
-
}, dark ? /* @__PURE__ */ react.default.createElement(
|
|
1006
|
+
}, dark ? /* @__PURE__ */ react.default.createElement(IconDark, { size: 16 }) : /* @__PURE__ */ react.default.createElement(IconLight, { size: 16 }));
|
|
979
1007
|
}
|
|
980
1008
|
function StockMobileControls({ layout, labels, themeController, useDarkLabel, useLightLabel }) {
|
|
981
1009
|
return /* @__PURE__ */ react.default.createElement("div", { className: "dllm-stock-controls" }, /* @__PURE__ */ react.default.createElement(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
@@ -1029,10 +1057,11 @@ body[data-dsh-local-link-mobile] [role="treeitem"][aria-expanded]:has(>span[clas
|
|
|
1029
1057
|
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
1058
|
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
1059
|
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
|
|
1060
|
+
body[data-dsh-local-link-mobile] header [data-slot="conversation.session.header.utilities"]>span:has(>[data-open-target]){display:none!important}
|
|
1033
1061
|
body[data-dsh-local-link-mobile] textarea,body[data-dsh-local-link-mobile] input{font-size:max(16px,1em)}
|
|
1034
1062
|
body[data-dsh-local-link-mobile] [data-composer-card] [data-input-scroll]{min-height:52px}
|
|
1035
1063
|
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}
|
|
1064
|
+
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
1065
|
@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
1066
|
body[data-dsh-local-link-mobile] [role=tablist]{display:flex;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
|
|
1038
1067
|
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 +1793,7 @@ ${MOBILE_SESSION_INFO_STYLES}
|
|
|
1764
1793
|
strokeWidth: "1.8",
|
|
1765
1794
|
strokeLinecap: "round",
|
|
1766
1795
|
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(
|
|
1796
|
+
}, /* @__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
1797
|
className: "dsh-local-link__diagnostics-chevron",
|
|
1769
1798
|
size: 14
|
|
1770
1799
|
}))), /* @__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, {
|