dsh-local-link 1.1.0 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,32 @@
2
2
 
3
3
  All notable changes to this project are documented here.
4
4
 
5
+ ## 1.1.2 — 2026-09-15
6
+
7
+ ### Fixed
8
+
9
+ - Prevented the mobile composer from retaining or regaining automatic focus after switching sessions, so chat navigation no longer opens the virtual keyboard. An explicit tap on the composer still focuses it normally.
10
+
11
+ ### Validated
12
+
13
+ - Passed TypeScript checking, all 99 automated tests across 16 files, and the production build.
14
+ - Activated the rebuilt plugin in the current DeepSeek Harness installation through Process Launcher without restarting the local model server.
15
+
16
+ ## 1.1.1 — 2026-09-12
17
+
18
+ ### Changed
19
+
20
+ - Moved the supported DeepSeek Harness baseline to `0.1.5-rc.1` and expanded the optional Host peer contract for the exact `0.1.5-rc.1` and `0.1.5-rc.2` packages.
21
+ - Updated direct development contracts to `0.1.5-rc.1` while preserving the Local Link gateway, pairing, and trusted-private-LAN boundary unchanged.
22
+ - Documented the new Harness `main`/`rightbar` AppFrame alongside the retained session, composer, sidebar, Settings, and overlay slots used by Local Link.
23
+
24
+ ### Validated
25
+
26
+ - Composed and booted clean Web profiles with the packed plugin source on Harness `0.1.5-rc.1` (`latest`) and `0.1.5-rc.2` (`next`).
27
+ - Rechecked the packed `1.1.1` artifact on `0.1.2-rc.1`, `0.1.1-rc.2`, `0.1.1-rc.1`, and `0.1.0-rc.8`: every isolated profile passed plugin peer checks, pairing, authenticated HTTP and WebSocket traffic, immediate socket closure on revoke, and post-revoke rejection.
28
+ - Verified desktop Local Access and QR generation plus responsive activation and navigation at `390 × 844` without client exceptions on both exact Harness versions.
29
+ - Passed typecheck, all 98 automated tests across 16 files, production build, and package dry-run against both `0.1.5` RC contract sets.
30
+
5
31
  ## 1.1.0 — 2026-09-07
6
32
 
7
33
  `1.1.0` updates Local Link for DeepSeek Harness `0.1.2-rc.1` while preserving the existing trusted-private-LAN product and security boundary. It keeps the stock Harness client, session state, permissions, and live stream instead of introducing a second remote client.
package/README.md CHANGED
@@ -9,7 +9,7 @@ Use the same [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
9
9
 
10
10
  Open `Local access`, scan the QR code, and the paired browser arrives at the desktop's currently selected Harness session with the same live conversation, permissions, workspaces, and plugin surfaces.
11
11
 
12
- The `1.1.0` line supports DeepSeek Harness `0.1.2-rc.1` and keeps the stock Web client usable on narrow touch screens. It reorganizes the existing Harness interface into responsive drawers, compact session controls, and touch-friendly actions while keeping the same client, session, plugin slots, permissions, and live agent stream.
12
+ The `1.1.x` line supports DeepSeek Harness `0.1.5-rc.1` and keeps the stock Web client usable on narrow touch screens. It reorganizes the existing Harness interface into responsive drawers, compact session controls, and touch-friendly actions while keeping the same client, session, plugin slots, permissions, and live agent stream.
13
13
 
14
14
  > **Security boundary:** the gateway uses plain HTTP and is intended only for a trusted private network. Do not expose its port to the internet or use it on public Wi-Fi.
15
15
 
@@ -73,14 +73,16 @@ Compatibility is checked against exact DeepSeek Harness versions—not inferred
73
73
 
74
74
  | DeepSeek Harness | Local Link status |
75
75
  | --- | --- |
76
- | `0.1.2-rc.1` | **Supported release** |
76
+ | `0.1.5-rc.2` | **Verified next** |
77
+ | `0.1.5-rc.1` | **Supported release** |
78
+ | `0.1.2-rc.1` | **Verified** |
77
79
  | `0.1.1-rc.2` | **Verified** |
78
80
  | `0.1.1-rc.1` | **Verified** |
79
81
  | `0.1.0-rc.8` | **Verified** |
80
82
 
81
- All four rows were checked with the packed `1.1.0` release. The historical RC gate covers a clean Web profile, the real client, Local Access, pairing, authenticated HTTP and WebSocket traffic, revoke, and responsive navigation at `390 × 844`. `0.1.2-rc.1` remains the development baseline and receives the complete current-runtime gate.
83
+ All six rows were checked with the packed `1.1.1` source. Every exact version passed isolated profile composition, plugin peer checks, pairing, authenticated HTTP and WebSocket traffic, immediate socket closure on revoke, and rejection of the revoked device. The `0.1.5` rows also received the current real-client responsive check at `390 × 844`; historical responsive evidence remains recorded separately. `0.1.5-rc.1` is the development baseline. `0.1.5-rc.2` is an exact `next` check, not a promise about future movement of that tag.
82
84
 
83
- Versions older than `0.1.0-rc.8` are untested and unsupported. New Harness versions are checked independently. See [Compatibility](docs/COMPATIBILITY.md) for the evidence and remaining real-device boundary.
85
+ Only the exact versions listed above carry a compatibility claim. Alpha builds—including the removed `0.1.2-alpha.1` row—versions older than `0.1.0-rc.8`, and whatever package a moving `next` tag points to later are unsupported until checked independently. See [Compatibility](docs/COMPATIBILITY.md) for the evidence and remaining real-device boundary.
84
86
 
85
87
  ## Use
86
88
 
@@ -99,7 +101,7 @@ Phone and tablet browsers automatically receive Mobile View when the viewport is
99
101
 
100
102
  The stock Harness Web interface is difficult to operate on a phone: persistent desktop navigation consumes the viewport, session controls compete with the conversation title, several actions depend on hover or long press, and subagent information is too dense for a narrow screen. Mobile View makes that existing interface usable without introducing a second client or duplicating Harness business logic.
101
103
 
102
- | Stock narrow-screen behavior | Mobile View in `1.1.0` |
104
+ | Stock narrow-screen behavior | Mobile View in `1.1.x` |
103
105
  | --- | --- |
104
106
  | Desktop navigation competes with the conversation | Workspace and session navigation opens as a dismissible left drawer |
105
107
  | Session metadata crowds the header | Context, model, access, preset, activity, and export move into a compact right drawer |
@@ -181,7 +183,7 @@ The gateway does not create a second Harness session. During first connection it
181
183
 
182
184
  Authorization uses a 256-bit random cookie credential. Only its SHA-256 hash is stored. The editable name and detected device/browser text never grant access.
183
185
 
184
- The LAN authority is declared through Harness's official connection `trustedHosts` contract. This enables authenticated session API and WebSocket traffic without pretending that the phone is loopback. Because Harness `0.1.2-rc.1` authenticates the transport as a whole, Local Link itself rejects the configuration, credential, native Host-action, and agent-preset-authoring RPCs that earlier supported Harness builds kept loopback-only.
186
+ The LAN authority is declared through Harness's official connection `trustedHosts` contract. This enables authenticated session API and WebSocket traffic without pretending that the phone is loopback. Harness `0.1.2-rc.1` and the verified `0.1.5` builds authenticate the transport as a whole, so Local Link itself rejects the configuration, credential, native Host-action, and agent-preset-authoring RPCs that earlier supported Harness builds kept loopback-only.
185
187
 
186
188
  ## Configuration
187
189
 
@@ -261,7 +263,7 @@ Project documentation:
261
263
  - The shortcut that opens a specific Settings section uses a small semantic compatibility bridge because Harness does not expose a general settings-navigation service.
262
264
  - Harness's footer-action container needs a compatibility layout rule when the full-width Cordis action is present.
263
265
  - Mobile View targets viewports from 360 CSS pixels wide, but third-party fixed-width views, virtual keyboards, orientation changes, split-screen browsers, and operating-system text scaling still require real-device acceptance.
264
- - Plugin-owned buttons and text inputs use Harness `Button` and `Input` primitives and their semantic variants. Harness `0.1.2-rc.1` still has no complete public responsive-shell, spacing, or radius contract, so mobile geometry, responsive compositions, and the few missing primitive icons remain documented design-system compatibility risks.
266
+ - Plugin-owned buttons and text inputs use Harness `Button` and `Input` primitives and their semantic variants. Harness `0.1.5-rc.1` still has no complete public responsive-shell, spacing, or radius contract, so mobile geometry, responsive compositions, and the few missing primitive icons remain documented design-system compatibility risks.
265
267
 
266
268
  ## Development disclosure
267
269
 
@@ -46,9 +46,9 @@ Configuration accepts only the wildcard `0.0.0.0` or an explicit private/loopbac
46
46
 
47
47
  After authentication, the gateway forwards the browser's original `Host`, `Origin`, referrer, and fetch-site headers to the loopback Harness listener. The Cordis profile patch supplies the gateway's current LAN authorities to the official connection module through its public `trustedHosts` option. Ordinary Harness API and WebSocket traffic can therefore pass the declared origin check without pretending to be loopback.
48
48
 
49
- Harness `0.1.2-rc.1` requires a native browser-authentication exchange. After Local Link pairing succeeds, the plugin asks the injected Harness connection service for an authenticated URL at the gateway origin, validates that the result stays on that origin, and lets the stock root consume the short-lived token. The gateway forwards Harness authentication cookies but strips its own device cookie before proxying, so the two credentials remain independent. Older supported builds that do not expose this service keep the direct-root redirect.
49
+ Harness `0.1.2-rc.1` and the verified `0.1.5` builds require a native browser-authentication exchange. After Local Link pairing succeeds, the plugin asks the injected Harness connection service for an authenticated URL at the gateway origin, validates that the result stays on that origin, and lets the stock root consume the short-lived token. The gateway forwards Harness authentication cookies but strips its own device cookie before proxying, so the two credentials remain independent. Older supported builds that do not expose this service keep the direct-root redirect.
50
50
 
51
- Harness `0.1.2-rc.1` authenticates the connection transport as a whole and no longer applies the older method-specific loopback tier. To preserve Local Link's established scope, the LAN gateway rejects the former privileged configuration, credential, native Host-action, and agent-preset-authoring RPCs before proxying. This applies equally to `pairing` and `trusted-lan`; enabling `trusted-lan` never grants those Host administration operations. `tests/trust-boundary.test.ts` exercises the RC Host/Origin and browser-authentication fence, while `tests/gateway.test.ts` pins the Local Link RPC restriction including the renamed RC Settings methods and encoded-path handling.
51
+ Harness `0.1.2-rc.1` and the verified `0.1.5` builds authenticate the connection transport as a whole and no longer apply the older method-specific loopback tier. To preserve Local Link's established scope, the LAN gateway rejects the former privileged configuration, credential, native Host-action, and agent-preset-authoring RPCs before proxying. This applies equally to `pairing` and `trusted-lan`; enabling `trusted-lan` never grants those Host administration operations. `tests/trust-boundary.test.ts` exercises the RC Host/Origin and browser-authentication fence, while `tests/gateway.test.ts` pins the Local Link RPC restriction including the renamed RC Settings methods and encoded-path handling.
52
52
 
53
53
  ### Authentication state
54
54
 
@@ -66,7 +66,7 @@ The loopback administration route exposes list, clear, and a narrow allowlisted
66
66
 
67
67
  `src/client.tsx` registers two normal Harness contributions: a compact desktop `sidebar.footer.action` that shows a QR code and copyable one-time link, and a desktop-only `settings.section` that manages paired devices and the local diagnostic report. It does not replace the root layout. The desktop surfaces use plugin-owned classes and semantic selectors; version-sensitive stock-DOM hooks are isolated in `src/mobile-layout.tsx` and documented below.
68
68
 
69
- The `0.1.2-rc.1` browser graph is a normal Cordis `Context`. Session state comes from `@deepseek-ai/dsh-api-session-controller/client`; React slot hooks are supplied by `@deepseek-ai/dsh-client-ui-session/client`, and slot ownership/rendering comes from `@deepseek-ai/dsh-client-ui-renderer/client`. Agent-preset display reads `SessionSummary.projectionValues.agentPreset`, while subagent types come from `@deepseek-ai/dsh-subagent/client`. The removed `@deepseek-ai/dsh-client-runtime` aggregate is neither injected nor imported.
69
+ The `0.1.5-rc.1` browser graph is a normal Cordis `Context`. Session state comes from `@deepseek-ai/dsh-api-session-controller/client`; React slot hooks are supplied by `@deepseek-ai/dsh-client-ui-session/client`, and slot ownership/rendering comes from `@deepseek-ai/dsh-client-ui-renderer/client`. Agent-preset display reads `SessionSummary.projectionValues.agentPreset`, while subagent types come from `@deepseek-ai/dsh-subagent/client`. The removed `@deepseek-ai/dsh-client-runtime` aggregate is neither injected nor imported.
70
70
 
71
71
  The Harness `sidebar.footer.action` contract is a list, but the supported Web client renders that list as a horizontal flex row while the stock Cordis action reserves `width: 100%` with `flex: none`. Without a compatibility rule, Cordis reduces later actions to zero width. Local Link orders its entry first and changes only the footer container that semantically contains `.dsh-local-link-footer` into a vertical stack. The same scoped rule normalizes the list gap and removes the following action's private top margin so Local access, Cordis, and Settings keep one visual rhythm. The selector is anchored on the plugin-owned class and accounts for the slot renderer's `display: contents` wrapper; it never names a generated Harness class.
72
72
 
@@ -82,7 +82,7 @@ Plain HTTP on a private IP is not a browser secure context, while the stock Harn
82
82
 
83
83
  `src/mobile-layout.tsx` is mounted through the normal client plugin and activated by `matchMedia('(max-width: 834px)')`. Crossing the viewport boundary mounts or disposes one scoped set of enhancements. The gateway does not inspect user agents, parse `view` parameters, set layout cookies, load a second bundle, or alter the root-layout boot entry.
84
84
 
85
- The shipped Harness root and AppFrame continue to own `sidebar`, `conversation`, `details`, and `shell.overlay`. Local Link contributes only additive overlay, session-information, and subagent surfaces, then applies scoped responsive geometry to the existing frame. It never enumerates Chat, Trajectory, composer, dock, node, or third-party registrations, so those continue to resolve through the native dynamic slots.
85
+ The shipped Harness root and AppFrame own `sidebar`, `main`, `rightbar`, and `shell.overlay`; Conversation remains the native `main.conversation` panel. Local Link contributes only additive overlay, session-information, and subagent surfaces, then applies scoped responsive geometry to the existing frame. It never enumerates Chat, Trajectory, composer, dock, node, rightbar panel, or third-party registrations, so those continue to resolve through the native dynamic slots.
86
86
 
87
87
  The existing `layout` controller opens and closes the stock sidebar. Responsive styles project that sidebar and the plugin's details surface as dismissible drawers, preserve overlay contributions, apply safe-area insets, and keep dynamic tab lists horizontally scrollable. At wider viewports the enhancement fiber is disposed and the untouched desktop presentation remains.
88
88
 
@@ -108,11 +108,11 @@ The automatic pairing page runs before the Harness client and locale service loa
108
108
 
109
109
  Local Link uses Harness semantic color, state, border, background, elevation, and typography variables wherever the supported client exports an applicable token. Icons are imported from `@deepseek-ai/dsh-client-ui-primitives` when that package exposes the required glyph, and stock Harness menus, dialogs, conversation actions, Settings surfaces, and session operations that Local Link does not replace remain their native components. Literal colors following a `var(--dsw-*, fallback)` expression are defensive fallbacks and are not selected in the supported Harness build. The context breakdown's purple tools segment intentionally matches the stock Harness `ContextMeter` implementation exactly.
110
110
 
111
- Harness `0.1.2-rc.1` does not expose a complete public responsive-shell or Drawer contract, spacing scale, radius scale, or mobile component recipes. Mobile geometry—safe-area placement, drawer widths, tap-target dimensions, spacing, radii, and transition timing—therefore remains plugin-owned CSS. One plugin-scoped `--dllm-side-drawer-width` value keeps the stock sidebar projection, the right details surface, and Current session visually identical instead of duplicating width literals. A small set of concepts also has no exported Harness primitive: Local access/device, navigation, current-session information, permission variants, and the subagent group glyph. The compact feedback-note affordance is a scoped presentation adapter because the stock feedback action accepts text only and exposes no icon-mode contract.
111
+ Harness `0.1.5-rc.1` does not expose a complete public responsive-shell or Drawer contract, spacing scale, radius scale, or mobile component recipes. Mobile geometry—safe-area placement, drawer widths, tap-target dimensions, spacing, radii, and transition timing—therefore remains plugin-owned CSS. One plugin-scoped `--dllm-side-drawer-width` value keeps the stock sidebar projection, the rightbar surface, and Current session visually identical instead of duplicating width literals. A small set of concepts also has no exported Harness primitive: Local access/device, navigation, current-session information, permission variants, and the subagent group glyph. The compact feedback-note affordance is a scoped presentation adapter because the stock feedback action accepts text only and exposes no icon-mode contract.
112
112
 
113
113
  All plugin-owned button and text-input controls use the exported Harness `Button` and `Input` primitives. Their semantic variants (`primary`, `outline`, `ghost`, and `toolbar`) remain owned by Harness; Local Link adds only the geometry required by its composed surfaces, such as a full-width sidebar row, a segmented copy action, a scrim, or a tree row. A source-level test rejects new raw `<button>` and `<input>` elements in the plugin UI.
114
114
 
115
- Component-level alignment remains bounded by the contracts Harness actually exports. The responsive shell, side drawer, bottom sheet, QR composition, context card, and diagnostics disclosure have no equivalent complete public responsive component contract in `0.1.2-rc.1`, so their structure remains semantic HTML plus scoped CSS. They use Harness tokens and primitive controls internally and should migrate if Harness later publishes compatible responsive components.
115
+ Component-level alignment remains bounded by the contracts Harness actually exports. The responsive shell, side drawer, bottom sheet, QR composition, context card, and diagnostics disclosure have no equivalent complete public responsive component contract in `0.1.5-rc.1`, so their structure remains semantic HTML plus scoped CSS. They use Harness tokens and primitive controls internally and should migrate if Harness later publishes compatible responsive components.
116
116
 
117
117
  These are compatibility surfaces, not an independent theme. Every Harness upgrade must compare them against the current token vocabulary, primitive icon catalog, slot contracts, and stock mobile behavior. They should be deleted in favor of upstream tokens or components as soon as equivalent public contracts exist.
118
118
 
@@ -175,7 +175,7 @@ No service discovery, certificate generator, tunnel client, native application,
175
175
 
176
176
  ## Compatibility strategy
177
177
 
178
- The plugin develops against the exact DeepSeek Harness `0.1.2-rc.1` contracts. Most integration uses declared package contracts, but several adapters are intentionally version-sensitive:
178
+ The plugin develops against the exact DeepSeek Harness `0.1.5-rc.1` contracts and separately checks `0.1.5-rc.2`. Most integration uses declared package contracts, but several adapters are intentionally version-sensitive:
179
179
 
180
180
  | Adapter | Why it exists | Failure behavior | Removal condition |
181
181
  | --- | --- | --- | --- |
@@ -5,28 +5,35 @@ and Settings contracts. Each supported version is therefore checked directly.
5
5
 
6
6
  ## Compatibility matrix
7
7
 
8
- Last checked on 2026-09-07 with Node.js 22 and Windows using the packed
9
- `dsh-local-link@1.1.0` release source for every row. Versions are newest first.
8
+ Last checked on 2026-09-12 with Node.js 22 and Windows using packed
9
+ `dsh-local-link@1.1.1` source for every row. Versions are newest first.
10
10
 
11
11
  | DeepSeek Harness | Status | Local Link source | Last checked |
12
12
  | --- | --- | --- | --- |
13
- | `0.1.2-rc.1` | **Supported release** | `1.1.0` | 2026-09-07 |
14
- | `0.1.1-rc.2` | **Verified** | `1.1.0` | 2026-09-07 |
15
- | `0.1.1-rc.1` | **Verified** | `1.1.0` | 2026-09-07 |
16
- | `0.1.0-rc.8` | **Verified** | `1.1.0` | 2026-09-07 |
13
+ | `0.1.5-rc.2` | **Verified next** | `1.1.1` | 2026-09-12 |
14
+ | `0.1.5-rc.1` | **Supported release** | `1.1.1` | 2026-09-12 |
15
+ | `0.1.2-rc.1` | **Verified** | `1.1.1` | 2026-09-12 |
16
+ | `0.1.1-rc.2` | **Verified** | `1.1.1` | 2026-09-12 |
17
+ | `0.1.1-rc.1` | **Verified** | `1.1.1` | 2026-09-12 |
18
+ | `0.1.0-rc.8` | **Verified** | `1.1.1` | 2026-09-12 |
17
19
 
18
- Versions older than `0.1.0-rc.8` are untested and unsupported.
20
+ Only the exact versions in the matrix are supported or verified. Alpha builds,
21
+ including the previously tested `0.1.2-alpha.1`, versions older than
22
+ `0.1.0-rc.8`, and future versions reached through a moving dist-tag are
23
+ unsupported until they pass a new check.
19
24
 
20
25
  ### Status meanings
21
26
 
22
27
  - **Supported release** is the current development target and receives the
23
28
  complete repository and installed-runtime gate.
24
- - **Verified** means the current packed Local Link release passed the historical
29
+ - **Verified next** means the exact package version currently published under
30
+ `next` passed the compatibility gate; the moving tag itself is not supported.
31
+ - **Verified** means the current packed Local Link artifact passed the historical
25
32
  RC gate on that exact version.
26
33
  - **Untested** means no compatibility claim is made.
27
34
 
28
35
  Every newer Harness version still requires an independent check; support for
29
- `0.1.2-rc.1` does not imply support for a moving `next` tag or later alpha.
36
+ `0.1.5-rc.1` does not imply support for a moving `next` tag or later alpha.
30
37
 
31
38
  ## Verification policy
32
39
 
@@ -38,9 +45,22 @@ on revoke, reject the revoked device, and activate the responsive shell at
38
45
  `390 × 844`. Automated tests cover Current session, subagent, locale, slot, and
39
46
  composition contracts.
40
47
 
41
- All four rows passed with `1.1.0`. The `0.1.2-rc.1` baseline additionally covered
42
- native browser authentication, the loopback-only Settings RPC, a live Current
43
- session, and the Current session and subagent browser surfaces.
48
+ All six exact Harness versions installed the packed `1.1.1` artifact without a
49
+ peer conflict and passed an isolated installed-runtime gate: profile composition
50
+ and boot, Local Link pairing, the version-appropriate browser-authentication
51
+ handoff, authenticated root access, an authenticated supported WebSocket,
52
+ immediate socket closure on revoke, and a `401` response when the revoked device
53
+ retried. `0.1.0-rc.8`, `0.1.1-rc.1`, and `0.1.1-rc.2` used `/api/events.mux`;
54
+ `0.1.2-rc.1` and the `0.1.5` builds used the current `/api/remote.mux` path.
55
+
56
+ The `0.1.5` rows compose and boot with the new `main`/`rightbar` AppFrame while
57
+ retaining the session header, composer, sidebar, Settings, and overlay slots
58
+ used by Local Link. Both exact RCs additionally passed typecheck, all 98
59
+ automated tests, production build/package verification, desktop Local Access
60
+ rendering, and the responsive shell at `390 × 844` without client exceptions.
61
+ The historical versions retain their earlier real-client responsive evidence;
62
+ the `1.1.1` patch changes package compatibility contracts and documentation, not
63
+ the shipped client or gateway implementation.
44
64
 
45
65
  Historical RC runs used empty profiles, so they did not create provider-backed
46
66
  conversations. Physical-phone portrait and landscape acceptance also remains a
@@ -51,7 +51,7 @@ Landscape phones, split-screen browsers, virtual keyboards, third-party fixed-wi
51
51
 
52
52
  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
53
 
54
- Harness `0.1.2-rc.1` 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.
54
+ Harness `0.1.5-rc.1` 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
55
 
56
56
  ## Security
57
57
 
package/lib/client.js CHANGED
@@ -892,16 +892,18 @@ window.__ModuleLoader__.load({
892
892
  const MOBILE_LOCAL_ACCESS_PRIORITY = -100;
893
893
  var MobileComposerAutofocusGuard = class {
894
894
  selected;
895
- suppressUntil = 0;
895
+ suppress = false;
896
896
  pointerTarget = null;
897
897
  pointerAt = 0;
898
898
  constructor(selected) {
899
899
  this.selected = selected;
900
900
  }
901
- selectionChanged(selected, now) {
902
- if (selected === this.selected) return;
901
+ selectionChanged(selected) {
902
+ if (selected === this.selected) return false;
903
903
  this.selected = selected;
904
- this.suppressUntil = now + 1200;
904
+ this.suppress = true;
905
+ this.pointerTarget = null;
906
+ return true;
905
907
  }
906
908
  pointerDown(target, now) {
907
909
  this.pointerTarget = target;
@@ -911,23 +913,22 @@ window.__ModuleLoader__.load({
911
913
  const intentional = this.pointerTarget === target && now - this.pointerAt <= 700;
912
914
  this.pointerTarget = null;
913
915
  if (intentional) {
914
- this.suppressUntil = 0;
916
+ this.suppress = false;
915
917
  return false;
916
918
  }
917
- if (now > this.suppressUntil) return false;
918
- this.suppressUntil = 0;
919
- return true;
919
+ return this.suppress;
920
920
  }
921
921
  };
922
922
  function installMobileComposerAutofocusGuard(ctx) {
923
923
  const guard = new MobileComposerAutofocusGuard(ctx.sessions.list.getSnapshot().current);
924
924
  const composerInput = (target) => {
925
925
  if (!(target instanceof HTMLElement)) return null;
926
- if (!target.matches("textarea,[contenteditable=\"true\"]")) return null;
927
- return target.closest(".dllm-main") !== null || document.body.hasAttribute("data-dsh-local-link-mobile") ? target : null;
926
+ const input = target.closest("textarea,[contenteditable=\"true\"]");
927
+ if (input === null) return null;
928
+ return input.closest(".dllm-main") !== null || document.body.hasAttribute("data-dsh-local-link-mobile") ? input : null;
928
929
  };
929
930
  const offSessions = ctx.sessions.list.subscribe(() => {
930
- guard.selectionChanged(ctx.sessions.list.getSnapshot().current, Date.now());
931
+ if (guard.selectionChanged(ctx.sessions.list.getSnapshot().current)) composerInput(document.activeElement)?.blur();
931
932
  });
932
933
  const onPointerDown = (event) => {
933
934
  const target = composerInput(event.target);
package/lib/client.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","names":["useRef","NS","useMemo","Button","StateDot","IconChevronRightOutline14","useRef","React","useSyncExternalStore","useState","IconCloseOutline16","NS","useSyncExternalStore","Button","IconCloseOutline16","IconFolderOpenOutline16","IconAgentPresetOutline16","IconDataOutline16","IconDownloadOutline16","NS","useSyncExternalStore","Button","IconDarkOutline16","IconLightOutline16","useRef","useState","useCallback","Button","Input","IconChevronDownOutline14"],"sources":["../src/mobile-dialog.ts","../src/mobile-subagents.tsx","../src/mobile-session-info.tsx","../src/mobile-layout.tsx","../src/locales/en.json","../src/locales/zh.json","../src/client.tsx"],"sourcesContent":["import { useEffect, useRef, type RefObject } from 'react'\n\nconst FOCUSABLE = [\n 'button:not([disabled])',\n 'a[href]',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',')\n\n/** Focus lifecycle for plugin-owned mobile modal surfaces. */\nexport function useMobileDialog(open: boolean, close: () => void): RefObject<HTMLElement> {\n const dialog = useRef<HTMLElement>(null)\n const closeRef = useRef(close)\n closeRef.current = close\n\n useEffect(() => {\n if (!open) return\n const previous = document.activeElement instanceof HTMLElement ? document.activeElement : undefined\n const frame = window.requestAnimationFrame(() => {\n const first = dialog.current?.querySelector<HTMLElement>(FOCUSABLE)\n ;(first ?? dialog.current)?.focus({ preventScroll: true })\n })\n const onKeyDown = (event: KeyboardEvent): void => {\n if (event.key === 'Escape') {\n event.preventDefault()\n closeRef.current()\n return\n }\n if (event.key !== 'Tab' || dialog.current === null) return\n const focusable = [...dialog.current.querySelectorAll<HTMLElement>(FOCUSABLE)]\n .filter(element => !element.hidden && element.getClientRects().length > 0)\n if (focusable.length === 0) {\n event.preventDefault()\n dialog.current.focus({ preventScroll: true })\n return\n }\n const first = focusable[0]\n const last = focusable.at(-1)\n if (event.shiftKey && document.activeElement === first) {\n event.preventDefault()\n last?.focus({ preventScroll: true })\n } else if (!event.shiftKey && document.activeElement === last) {\n event.preventDefault()\n first?.focus({ preventScroll: true })\n }\n }\n window.addEventListener('keydown', onKeyDown)\n return () => {\n window.cancelAnimationFrame(frame)\n window.removeEventListener('keydown', onKeyDown)\n if (previous?.isConnected === true) previous.focus({ preventScroll: true })\n }\n }, [open])\n\n return dialog\n}\n","import React, { useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react'\nimport type { SessionListState, SessionSummary } from '@deepseek-ai/dsh-api-session-controller/client'\nimport type { SessionId } from '@deepseek-ai/dsh-client-connection/client'\nimport type { SubagentAddress, SubagentListEntry } from '@deepseek-ai/dsh-subagent/client'\nimport type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-layout/client'\nimport { Button, IconChevronRightOutline14, IconCloseOutline16, StateDot } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { ClientContext } from './client-context.js'\nimport { useMobileDialog } from './mobile-dialog.js'\n\nconst NS = 'dsh.localLink'\nexport const MOBILE_SUBAGENT_DOCK_ID = 'dsh-local-link.mobile-subagents'\nexport const MOBILE_SUBAGENT_OVERLAY_ID = 'dsh-local-link.mobile-subagent-sheet'\nexport const MOBILE_SUBAGENT_LINEAGE_PRIORITY = -100\n\ninterface SubagentMetrics {\n readonly count: number\n readonly runningCount: number\n}\n\ninterface TokenUsageProjection {\n readonly uncachedInputTokens: number\n readonly outputTokens: number\n readonly cacheReadTokens: number\n readonly cacheWriteTokens: number\n}\n\ninterface SubagentTimingProjection {\n readonly settledMs: number\n readonly active?: {\n readonly since: number\n readonly through: number\n }\n}\n\ninterface MobileSubagentProjections {\n readonly tokenUsage?: TokenUsageProjection\n readonly subagentTiming?: SubagentTimingProjection\n}\n\nfunction mobileSubagentProjections(summary: SessionSummary | undefined): MobileSubagentProjections {\n return (summary?.projectionValues ?? {}) as unknown as MobileSubagentProjections\n}\n\n/** Compact token count, matching the stock Harness subagent catalog. */\nexport function formatMobileSubagentTokens(value: number): string {\n const scaled = (next: number): string => next >= 100 ? String(Math.round(next)) : String(Math.round(next * 10) / 10)\n if (value < 1_000) return String(value)\n if (value < 1_000_000) return `${scaled(value / 1_000)}K`\n return `${scaled(value / 1_000_000)}M`\n}\n\n/** Sum the four disjoint durable provider-usage buckets used by Harness. */\nexport function mobileSubagentTokenTotal(usage: TokenUsageProjection | undefined): number | undefined {\n return usage === undefined\n ? undefined\n : usage.uncachedInputTokens + usage.outputTokens + usage.cacheReadTokens + usage.cacheWriteTokens\n}\n\n/** Active-turn duration, including settled spans, matching the stock catalog. */\nexport function mobileSubagentActivityDuration(\n summary: SessionSummary | undefined,\n activity: 'running' | 'inactive',\n now: number,\n): number | undefined {\n const timing = mobileSubagentProjections(summary).subagentTiming\n if (timing === undefined) return undefined\n if (timing.active === undefined) return timing.settledMs\n const end = activity === 'running' ? now : timing.active.through\n return timing.settledMs + Math.max(0, end - timing.active.since)\n}\n\nfunction formatMobileSubagentDuration(ms: number): string {\n const totalSeconds = Math.floor(Math.max(0, ms) / 1_000)\n const seconds = totalSeconds % 60\n const totalMinutes = Math.floor(totalSeconds / 60)\n const minutes = totalMinutes % 60\n const totalHours = Math.floor(totalMinutes / 60)\n const hours = totalHours % 24\n const days = Math.floor(totalHours / 24)\n if (days > 0) return `${days}d ${hours}h`\n if (totalHours > 0) return `${totalHours}h ${String(minutes).padStart(2, '0')}m`\n if (totalMinutes > 0) return `${totalMinutes}m ${String(seconds).padStart(2, '0')}s`\n return `${seconds}s`\n}\n\ninterface SheetSnapshot {\n readonly rootSessionId?: SessionId\n}\n\nclass MobileSubagentController {\n private snapshot: SheetSnapshot = Object.freeze({})\n private readonly listeners = new Set<() => void>()\n\n readonly subscribe = (listener: () => void): (() => void) => {\n this.listeners.add(listener)\n return () => this.listeners.delete(listener)\n }\n\n readonly getSnapshot = (): SheetSnapshot => this.snapshot\n\n open(rootSessionId: SessionId): void {\n this.update(Object.freeze({ rootSessionId }))\n }\n\n close(): void {\n this.update(Object.freeze({}))\n }\n\n private update(snapshot: SheetSnapshot): void {\n if (snapshot.rootSessionId === this.snapshot.rootSessionId) return\n this.snapshot = snapshot\n for (const listener of this.listeners) listener()\n }\n}\n\ninterface SubagentActions {\n readonly open: (address: SubagentAddress) => void\n readonly refresh: (parentSessionId: SessionId) => Promise<void>\n readonly observe: (parentSessionId: SessionId, open: boolean) => void\n}\n\ntype TriggerProps = PropsRuntime<'conversation.input.dock'>\n & PropsLocale<typeof NS>\n & { readonly controller: MobileSubagentController }\n\ntype SheetProps = PropsRuntime<'shell.overlay'>\n & PropsLocale<typeof NS>\n & { readonly actions: SubagentActions; readonly controller: MobileSubagentController }\n\ntype LineageProps = PropsRuntime<'conversation.session.header.lineage'>\n & PropsLocale<typeof NS>\n\n/** Resolve the catalog shown for an ordinary session or its currently opened child. */\nexport function mobileSubagentRoot(sessionId: SessionId, summaries: Readonly<Record<SessionId, SessionSummary>>): SessionId {\n const summary = summaries[sessionId]\n return summary?.origin === 'subagent' && summary.parentId !== undefined ? summary.parentId : sessionId\n}\n\n/** Count the uninterrupted subagent-origin tree without creating a second data store. */\nexport function mobileSubagentMetrics(rootSessionId: SessionId, summaries: Readonly<Record<SessionId, SessionSummary>>): SubagentMetrics {\n let count = 0\n let runningCount = 0\n for (const summary of Object.values(summaries)) {\n if (summary.origin !== 'subagent') continue\n let cursor: SessionSummary | undefined = summary\n const visited = new Set<SessionId>()\n while (cursor?.origin === 'subagent' && cursor.parentId !== undefined && !visited.has(cursor.id)) {\n visited.add(cursor.id)\n if (cursor.parentId === rootSessionId) {\n count += 1\n if (summary.running) runningCount += 1\n break\n }\n cursor = summaries[cursor.parentId]\n }\n }\n return Object.freeze({ count, runningCount })\n}\n\nfunction directCatalogMetrics(rootSessionId: SessionId, catalogs: SessionListState['subagentsByParent']): SubagentMetrics {\n const entries = catalogs[rootSessionId]?.entries ?? []\n const healthy = entries.filter((entry): entry is Extract<SubagentListEntry, { kind: 'child' }> => entry.kind === 'child')\n return {\n count: healthy.length,\n runningCount: healthy.filter(entry => entry.activity === 'running').length,\n }\n}\n\nfunction MobileSubagentTrigger({ controller, sessionId, t, useSessions }: TriggerProps): React.JSX.Element | null {\n const summaries = useSessions((state: SessionListState) => state.byId)\n const catalogs = useSessions((state: SessionListState) => state.subagentsByParent)\n const rootSessionId = mobileSubagentRoot(sessionId, summaries)\n const metrics = useMemo(() => mobileSubagentMetrics(rootSessionId, summaries), [rootSessionId, summaries])\n const direct = useMemo(() => directCatalogMetrics(rootSessionId, catalogs), [catalogs, rootSessionId])\n const count = Math.max(metrics.count, direct.count)\n const runningCount = Math.max(metrics.runningCount, direct.runningCount)\n if (count === 0) return null\n const label = t('mobile.subagents.total', { count })\n const activityLabel = t('mobile.subagents.running', { count: runningCount })\n return <Button aria-label={`${label}. ${activityLabel}`} className=\"dllm-subagent-chip\" size=\"md\" variant=\"outline\" onClick={() => controller.open(rootSessionId)}>\n <span aria-hidden=\"true\" className=\"dllm-subagent-activity\"><StateDot state={runningCount > 0 ? 'ongoing' : 'done'} /></span>\n <span>{label}</span>\n <span aria-hidden=\"true\" className=\"dllm-subagent-running\">{activityLabel}</span>\n <IconChevronRightOutline14 className=\"dllm-subagent-chevron\" size={14} />\n </Button>\n}\n\nfunction MobileLineageTitle({ displayTitle, lineageSessionId, openTitle, useSessions }: LineageProps): React.JSX.Element | null {\n const summary = useSessions((state: SessionListState) => state.byId[lineageSessionId])\n const currentRef = useRef<HTMLSpanElement>(null)\n useEffect(() => {\n if (summary?.origin === 'subagent' && openTitle === undefined) {\n currentRef.current?.scrollIntoView({ block: 'nearest', inline: 'end' })\n }\n }, [lineageSessionId, openTitle, summary?.origin])\n if (summary?.origin !== 'subagent') return null\n if (openTitle !== undefined) return <Button className=\"dllm-lineage-title dllm-lineage-ancestor\" size=\"sm\" variant=\"ghost\" onClick={openTitle}>{displayTitle}</Button>\n return <span className=\"dllm-lineage-current\" ref={currentRef}>\n <span className=\"dllm-lineage-title\">{displayTitle}</span>\n </span>\n}\n\ninterface CatalogRowsProps {\n readonly actions: SubagentActions\n readonly catalogs: SessionListState['subagentsByParent']\n readonly expanded: ReadonlySet<SessionId>\n readonly level: number\n readonly onOpen: (address: SubagentAddress) => void\n readonly onToggle: (parentSessionId: SessionId, open: boolean) => void\n readonly parentSessionId: SessionId\n readonly summaries: SessionListState['byId']\n readonly t: TriggerProps['t']\n}\n\nfunction CatalogRows({ actions, catalogs, expanded, level, onOpen, onToggle, parentSessionId, summaries, t, now }: CatalogRowsProps & { readonly now: number }): React.JSX.Element {\n const catalog = catalogs[parentSessionId]\n if (catalog === undefined || catalog.state === 'loading') {\n return <div className=\"dllm-subagent-state\">{t('mobile.subagents.loading')}</div>\n }\n if (catalog.state === 'error') {\n return <div className=\"dllm-subagent-state dllm-subagent-error\">\n <span>{t('mobile.subagents.error')}</span>\n <Button size=\"sm\" variant=\"outline\" onClick={() => void actions.refresh(parentSessionId)}>{t('mobile.subagents.retry')}</Button>\n </div>\n }\n if (catalog.entries.length === 0) return <div className=\"dllm-subagent-state\">{t('mobile.subagents.empty')}</div>\n return <div className=\"dllm-subagent-tree\" role=\"tree\">\n {catalog.entries.map(entry => {\n if (entry.kind === 'diagnostic') {\n return <div className=\"dllm-subagent-row dllm-subagent-disabled\" key={entry.id} style={{ '--dllm-level': level } as React.CSSProperties}>\n <span className=\"dllm-subagent-row-main\"><strong>{t('mobile.subagents.unavailable')}</strong><small>{entry.reason}</small></span>\n </div>\n }\n const open = expanded.has(entry.id)\n const summary = summaries[entry.id]\n const title = entry.label ?? summary?.displayTitle ?? entry.id\n const mode = t(entry.mode === 'continuable' ? 'mobile.subagents.continuable' : 'mobile.subagents.oneShot')\n const activity = t(entry.activity === 'running' ? 'mobile.subagents.active' : 'mobile.subagents.inactive')\n const secondary = [summary?.title, mode, activity].filter((value): value is string => value !== undefined).join(' · ')\n const totalTokens = mobileSubagentTokenTotal(mobileSubagentProjections(summary).tokenUsage)\n const duration = mobileSubagentActivityDuration(summary, entry.activity, now)\n const address: SubagentAddress = {\n parentSessionId,\n childSessionId: entry.id,\n mode: entry.mode,\n }\n return <React.Fragment key={entry.id}>\n <div className=\"dllm-subagent-row\" role=\"treeitem\" aria-expanded={entry.hasChildren ? open : undefined} style={{ '--dllm-level': level } as React.CSSProperties}>\n {entry.hasChildren\n ? <Button aria-label={open ? t('mobile.subagents.collapse') : t('mobile.subagents.expand')} className=\"dllm-subagent-expand\" size=\"sm\" variant=\"ghost\" onClick={() => onToggle(entry.id, !open)}>\n <IconChevronRightOutline14 size={14} />\n </Button>\n : <span className=\"dllm-subagent-expand-space\" />}\n <Button className=\"dllm-subagent-row-main\" size=\"md\" variant=\"ghost\" onClick={() => onOpen(address)}>\n <StateDot state={entry.activity === 'running' ? 'ongoing' : 'done'} />\n <span className=\"dllm-subagent-content\"><strong>{title}</strong><small>{secondary}</small></span>\n {(totalTokens !== undefined || duration !== undefined) && <span className=\"dllm-subagent-metrics\">\n {totalTokens !== undefined && <span>{formatMobileSubagentTokens(totalTokens)} tok</span>}\n {duration !== undefined && <span>{formatMobileSubagentDuration(duration)}</span>}\n </span>}\n </Button>\n </div>\n {entry.hasChildren && open && <CatalogRows\n actions={actions}\n catalogs={catalogs}\n expanded={expanded}\n level={level + 1}\n onOpen={onOpen}\n onToggle={onToggle}\n parentSessionId={entry.id}\n summaries={summaries}\n t={t}\n now={now}\n />}\n </React.Fragment>\n })}\n </div>\n}\n\nfunction MobileSubagentSheet({ actions, controller, t, useSessions }: SheetProps): React.JSX.Element | null {\n const snapshot = useSyncExternalStore(controller.subscribe, controller.getSnapshot)\n const rootSessionId = snapshot.rootSessionId\n const catalogs = useSessions((state: SessionListState) => state.subagentsByParent)\n const summaries = useSessions((state: SessionListState) => state.byId)\n const [expanded, setExpanded] = useState<ReadonlySet<SessionId>>(() => new Set())\n const [now, setNow] = useState(() => Date.now())\n const observed = useRef(new Set<SessionId>())\n const dialog = useMobileDialog(rootSessionId !== undefined, () => controller.close())\n\n useEffect(() => {\n if (rootSessionId === undefined) return\n setExpanded(new Set())\n observed.current.add(rootSessionId)\n actions.observe(rootSessionId, true)\n return () => {\n for (const id of observed.current) actions.observe(id, false)\n observed.current.clear()\n }\n }, [actions, rootSessionId])\n\n useEffect(() => {\n if (rootSessionId === undefined) return\n const visibleParents = new Set<SessionId>([rootSessionId, ...expanded])\n const running = [...visibleParents].some(parentSessionId => catalogs[parentSessionId]?.entries\n .some((entry: SubagentListEntry) => entry.kind === 'child' && entry.activity === 'running') === true)\n if (!running) return\n setNow(Date.now())\n const timer = window.setInterval(() => setNow(Date.now()), 1_000)\n return () => window.clearInterval(timer)\n }, [catalogs, expanded, rootSessionId])\n\n if (rootSessionId === undefined) return null\n const toggle = (id: SessionId, open: boolean): void => {\n const closing = new Set<SessionId>()\n if (!open) {\n const visit = (parentSessionId: SessionId): void => {\n if (closing.has(parentSessionId)) return\n closing.add(parentSessionId)\n for (const entry of catalogs[parentSessionId]?.entries ?? []) {\n if (entry.kind === 'child' && observed.current.has(entry.id)) visit(entry.id)\n }\n }\n visit(id)\n for (const closingId of closing) {\n actions.observe(closingId, false)\n observed.current.delete(closingId)\n }\n }\n setExpanded(current => {\n const next = new Set(current)\n if (open) next.add(id)\n else for (const closingId of closing) next.delete(closingId)\n return next\n })\n if (open) {\n observed.current.add(id)\n actions.observe(id, true)\n }\n }\n const open = (address: SubagentAddress): void => {\n actions.open(address)\n controller.close()\n }\n return <div className=\"dllm-subagent-layer\" role=\"presentation\">\n <Button aria-label={t('mobile.subagents.close')} className=\"dllm-subagent-backdrop\" size=\"sm\" variant=\"ghost\" onClick={() => controller.close()} />\n <section aria-label={t('mobile.subagents.title')} aria-modal=\"true\" className=\"dllm-subagent-sheet\" ref={dialog} role=\"dialog\" tabIndex={-1}>\n <div aria-hidden=\"true\" className=\"dllm-subagent-handle\" />\n <header className=\"dllm-subagent-sheet-header\">\n <div><h2>{t('mobile.subagents.title')}</h2><p>{t('mobile.subagents.description')}</p></div>\n <Button aria-label={t('mobile.subagents.close')} className=\"dllm-subagent-close\" size=\"sm\" variant=\"ghost\" onClick={() => controller.close()}>\n <IconCloseOutline16 size={16} />\n </Button>\n </header>\n <div className=\"dllm-subagent-list\">\n <CatalogRows actions={actions} catalogs={catalogs} expanded={expanded} level={0} onOpen={open} onToggle={toggle} parentSessionId={rootSessionId} summaries={summaries} t={t} now={now} />\n </div>\n </section>\n </div>\n}\n\nexport const MOBILE_SUBAGENT_STYLES = `\n.dllm-subagent-chip{box-sizing:border-box;display:flex;width:fit-content;max-width:100%;min-height:40px;align-items:center;gap:8px;margin:0 24px 6px;padding:7px 10px;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 24%));border-radius:12px;color:var(--dsw-alias-label-primary,inherit);background:var(--dsw-alias-bg-layer-1,rgb(127 127 127 / 8%));font:inherit;font-size:13px;font-weight:600;cursor:pointer}\n.dllm-subagent-chip:hover{background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 14%))}.dllm-subagent-activity{display:inline-flex;width:10px;height:10px;flex:none;align-items:center;justify-content:center}.dllm-subagent-running{display:inline-flex;align-items:center;color:var(--dsw-alias-label-tertiary,#6b7280);font-size:12px;font-weight:400;white-space:nowrap}.dllm-subagent-running::before{content:\"·\";margin-right:8px;color:var(--dsw-alias-label-quaternary,var(--dsw-alias-label-tertiary,#6b7280))}.dllm-subagent-chevron{width:14px;height:14px;margin-left:2px}\n.dllm-lineage-title{display:block;max-width:min(42vw,220px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:20px}.dllm-lineage-ancestor{padding:4px;border:0;border-radius:9px;color:var(--dsw-alias-label-tertiary,inherit);background:transparent;font-family:inherit;font-weight:400;cursor:pointer}.dllm-lineage-ancestor:hover{background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 12%))}.dllm-lineage-current{display:inline-flex;min-width:0;align-items:center;padding:4px;color:var(--dsw-alias-label-primary,inherit);font-weight:500}.dllm-shell header nav:has(.dllm-lineage-title){gap:0!important;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}.dllm-shell header nav:has(.dllm-lineage-title)>span{gap:1px!important}.dllm-shell header nav:has(.dllm-lineage-title)>span>button{padding-inline:4px!important;font-size:14px!important;line-height:20px!important}.dllm-shell header nav:has(.dllm-lineage-title)::-webkit-scrollbar{display:none}\n.dllm-subagent-layer{position:fixed;z-index:110;inset:0;display:flex;align-items:flex-end;pointer-events:auto}.dllm-subagent-backdrop{position:absolute;inset:0;width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:var(--dsw-alias-bg-mask-1,rgb(15 23 42 / 48%))!important}\n.dllm-subagent-sheet{position:relative;box-sizing:border-box;display:flex;width:100%;max-height:min(78dvh,720px);flex-direction:column;padding:0 0 env(safe-area-inset-bottom);overflow:hidden;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 26%));border-bottom:0;border-radius:22px 22px 0 0;color:var(--dsw-alias-label-primary,inherit);background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:0 -18px 50px rgb(15 23 42 / 22%)}\n.dllm-subagent-handle{width:38px;height:4px;margin:9px auto 4px;border-radius:999px;background:var(--dsw-alias-border-l2,rgb(127 127 127 / 30%))}.dllm-subagent-sheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 18px 14px;border-bottom:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 18%))}.dllm-subagent-sheet-header h2{margin:0;font-size:18px;line-height:24px}.dllm-subagent-sheet-header p{margin:3px 0 0;color:var(--dsw-alias-label-tertiary,#6b7280);font-size:12px;line-height:18px}.dllm-subagent-close{display:grid;width:40px;height:40px;flex:0 0 auto;padding:0;place-items:center;border:0;border-radius:10px;color:inherit;background:transparent}.dllm-subagent-close svg{width:16px;height:16px}\n.dllm-subagent-list{min-height:120px;overflow:auto;padding:8px 10px 16px;overscroll-behavior:contain}.dllm-subagent-tree{display:flex;flex-direction:column}.dllm-subagent-row{display:flex;min-height:54px;align-items:center;padding-left:calc(var(--dllm-level) * 14px);border-bottom:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 13%))}.dllm-subagent-expand,.dllm-subagent-expand-space{display:grid;width:36px;height:44px;flex:0 0 auto;place-items:center}.dllm-subagent-expand{padding:0;border:0;color:inherit;background:transparent}.dllm-subagent-expand svg{width:14px;height:14px;transition:transform 120ms ease}.dllm-subagent-row[aria-expanded=true]>.dllm-subagent-expand svg{transform:rotate(90deg)}\n.dllm-subagent-row-main{display:flex;min-width:0;height:auto;flex:1;align-items:flex-start;gap:8px;padding:7px 8px;text-align:left}.dllm-subagent-row-main>[data-state]{flex:none;margin-top:4px}.dllm-subagent-content{display:flex;min-width:0;flex:1;flex-direction:column}.dllm-subagent-content strong,.dllm-subagent-content small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dllm-subagent-content strong{font-size:13px;font-weight:500;line-height:18px}.dllm-subagent-content small,.dllm-subagent-metrics{color:var(--dsw-alias-label-tertiary,#6b7280);font-size:11px;line-height:16px}.dllm-subagent-metrics{display:grid;flex:none;grid-template-rows:18px 16px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.dllm-subagent-disabled{opacity:.68}.dllm-subagent-state{display:flex;min-height:120px;align-items:center;justify-content:center;gap:10px;color:var(--dsw-alias-label-tertiary,#6b7280);font-size:13px}.dllm-subagent-error{color:var(--dsw-alias-status-danger,#dc2626)}\n@media(prefers-reduced-motion:reduce){.dllm-subagent-expand svg{transition:none!important}}\n`\n\nexport function applyMobileSubagents(ctx: ClientContext): void {\n const controller = new MobileSubagentController()\n const actions: SubagentActions = {\n observe: (parentSessionId, open) => ctx.sessions.setSubagentCatalogOpen(parentSessionId, open),\n open: address => ctx.sessions.openSubagent(address),\n refresh: parentSessionId => ctx.sessions.refreshSubagents(parentSessionId),\n }\n ctx.effect(() => ctx.slots.inject('conversation.input.dock', () => ctx.slots.register({\n name: 'conversation.input.dock',\n id: MOBILE_SUBAGENT_DOCK_ID,\n order: 30,\n locale: NS,\n }, props => <MobileSubagentTrigger {...props} controller={controller} />)), 'dsh-local-link: mobile subagent dock')\n ctx.effect(() => ctx.slots.inject('shell.overlay', () => ctx.slots.register({\n name: 'shell.overlay',\n id: MOBILE_SUBAGENT_OVERLAY_ID,\n order: 30,\n locale: NS,\n }, props => <MobileSubagentSheet {...props} actions={actions} controller={controller} />)), 'dsh-local-link: mobile subagent sheet')\n ctx.effect(() => ctx.slots.inject('conversation.session.header.lineage', () => ctx.slots.register({\n name: 'conversation.session.header.lineage',\n priority: MOBILE_SUBAGENT_LINEAGE_PRIORITY,\n locale: NS,\n }, props => <MobileLineageTitle {...props} />)), 'dsh-local-link: compact mobile lineage title')\n}\n","import React, { useEffect, useSyncExternalStore } from 'react'\nimport type { SessionSummary } from '@deepseek-ai/dsh-api-session-controller/client'\nimport type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type { SessionLogDownloadState } from '@deepseek-ai/dsh-session-log-export/client'\nimport {\n Button,\n IconAgentPresetOutline16,\n IconCloseOutline16,\n IconDataOutline16,\n IconDownloadOutline16,\n IconFolderOpenOutline16,\n} from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { ClientContext } from './client-context.js'\nimport { useMobileDialog } from './mobile-dialog.js'\n\nconst NS = 'dsh.localLink'\ntype SessionLogDownloadController = ClientContext['sessionLogDownload']\nexport const MOBILE_SESSION_INFO_TRIGGER_ID = 'dsh-local-link.mobile-session-info'\nexport const MOBILE_SESSION_INFO_OVERLAY_ID = 'dsh-local-link.mobile-session-info-drawer'\nexport const MOBILE_AGENT_PRESET_PRIORITY = -100\nexport const MOBILE_SESSION_LOG_PRIORITY = -100\nexport const MOBILE_STATS_PRIORITY = -100\n\ninterface ContextOccupancy {\n readonly percent: number\n readonly usedTokens: number\n readonly contextWindow: number\n}\n\ninterface ContextBreakdown {\n readonly systemTokens: number\n readonly toolsTokens: number\n readonly messageTokens: number\n}\n\ninterface SessionStats {\n readonly turns: number\n readonly steps: number\n readonly llmMs: number\n readonly toolMs: number\n readonly ttftMs: number\n readonly ttftSteps: number\n readonly decodeMs: number\n readonly decodeTokens: number\n}\n\ninterface TokenUsage {\n readonly uncachedInputTokens: number\n readonly outputTokens: number\n readonly cacheReadTokens: number\n readonly cacheWriteTokens: number\n}\n\ninterface SessionInfoSnapshot {\n readonly open: boolean\n readonly modelSessionId?: string\n readonly model?: string\n}\n\ninterface AgentPresetProjection {\n readonly agentPreset?: string\n}\n\nfunction sessionAgentPreset(summary: SessionSummary): string | undefined {\n return (summary.projectionValues as AgentPresetProjection | undefined)?.agentPreset\n}\n\ninterface ObservableStore<T> {\n readonly subscribe: (listener: () => void) => () => void\n readonly getSnapshot: () => T\n}\n\ninterface ModelDirectoryLike {\n readonly store: ObservableStore<unknown>\n}\n\ninterface ModelDirectoryResolverLike {\n readonly directoryFor: (sessionId: unknown) => ModelDirectoryLike\n}\n\nexport class MobileSessionInfoController {\n private snapshot: SessionInfoSnapshot = Object.freeze({ open: false })\n private readonly listeners = new Set<() => void>()\n private readonly modelSubscriptions = new Map<() => void, { readonly sessionId: unknown; unsubscribe: (() => void) | undefined }>()\n private modelResolver: ModelDirectoryResolverLike | undefined\n\n readonly subscribe = (listener: () => void): (() => void) => {\n this.listeners.add(listener)\n return () => this.listeners.delete(listener)\n }\n\n readonly getSnapshot = (): SessionInfoSnapshot => this.snapshot\n\n attachModelResolver(resolver: ModelDirectoryResolverLike): () => void {\n this.modelResolver = resolver\n for (const [listener, subscription] of this.modelSubscriptions) {\n subscription.unsubscribe?.()\n subscription.unsubscribe = this.modelDirectory(subscription.sessionId)?.store.subscribe(listener)\n listener()\n }\n return () => {\n if (this.modelResolver !== resolver) return\n this.modelResolver = undefined\n for (const [listener, subscription] of this.modelSubscriptions) {\n subscription.unsubscribe?.()\n subscription.unsubscribe = undefined\n listener()\n }\n }\n }\n\n subscribeModel(sessionId: unknown, listener: () => void): () => void {\n const subscription = { sessionId, unsubscribe: this.modelDirectory(sessionId)?.store.subscribe(listener) }\n this.modelSubscriptions.set(listener, subscription)\n return () => {\n subscription.unsubscribe?.()\n this.modelSubscriptions.delete(listener)\n }\n }\n\n getModel(sessionId: unknown): string | undefined {\n return currentModelName(this.modelDirectory(sessionId)?.store.getSnapshot())\n }\n\n open(): void {\n this.update(true)\n }\n\n close(): void {\n this.update(false)\n }\n\n reportModel(sessionId: string, model: string | undefined): void {\n if (this.snapshot.modelSessionId === sessionId && this.snapshot.model === model) return\n this.snapshot = Object.freeze(model === undefined\n ? { open: this.snapshot.open, modelSessionId: sessionId }\n : { open: this.snapshot.open, modelSessionId: sessionId, model })\n for (const listener of this.listeners) listener()\n }\n\n private update(open: boolean): void {\n if (open === this.snapshot.open) return\n this.snapshot = Object.freeze({ ...this.snapshot, open })\n for (const listener of this.listeners) listener()\n }\n\n private modelDirectory(sessionId: unknown): ModelDirectoryLike | undefined {\n try {\n return this.modelResolver?.directoryFor(sessionId)\n } catch {\n return undefined\n }\n }\n}\n\ntype TriggerProps = PropsRuntime<'conversation.session.header.utilities'>\n & PropsLocale<typeof NS>\n & { readonly controller: MobileSessionInfoController }\n\ntype DrawerProps = PropsRuntime<'shell.overlay'>\n & PropsLocale<typeof NS>\n & { readonly controller: MobileSessionInfoController; readonly downloads: SessionLogDownloadController }\n\nexport function mobilePresetLabel(preset: string | undefined, t: TriggerProps['t']): string {\n if (preset === undefined) return t('mobile.sessionInfo.notRecorded')\n switch (preset) {\n case 'standard': return t('mobile.sessionInfo.preset.standard')\n case 'code': return t('mobile.sessionInfo.preset.code')\n case 'minimal': return t('mobile.sessionInfo.preset.minimal')\n case 'cordis': return t('mobile.sessionInfo.preset.cordis')\n default: return preset\n }\n}\n\nfunction recordOf(value: unknown): Readonly<Record<string, unknown>> | undefined {\n return typeof value === 'object' && value !== null ? value as Readonly<Record<string, unknown>> : undefined\n}\n\nfunction finiteNumber(value: unknown): number | undefined {\n return typeof value === 'number' && Number.isFinite(value) ? value : undefined\n}\n\nexport function formatSessionTokens(value: number): string {\n const scaled = (n: number): string => n >= 100 ? String(Math.round(n)) : String(Math.round(n * 10) / 10)\n if (value < 1_000) return scaled(value)\n if (value < 1_000_000) return `${scaled(value / 1_000)}K`\n return `${scaled(value / 1_000_000)}M`\n}\n\nexport function formatSessionDuration(ms: number): string {\n const seconds = ms / 1_000\n if (seconds < 60) return `${Math.round(seconds * 10) / 10}s`\n const whole = Math.round(seconds)\n return `${Math.floor(whole / 60)}m${whole % 60}s`\n}\n\nexport function contextOccupancy(value: unknown): ContextOccupancy | undefined {\n const pressure = recordOf(value)\n const usedTokens = finiteNumber(pressure?.projectedTokens) ?? finiteNumber(pressure?.pressureTokens)\n const contextWindow = finiteNumber(pressure?.contextWindow)\n if (usedTokens === undefined || contextWindow === undefined || contextWindow <= 0) return undefined\n return { percent: Math.min(100, Math.round(usedTokens / contextWindow * 100)), usedTokens, contextWindow }\n}\n\nexport function contextBreakdown(value: unknown): ContextBreakdown | undefined {\n const breakdown = recordOf(value)\n const systemTokens = finiteNumber(breakdown?.systemTokens)\n const toolsTokens = finiteNumber(breakdown?.toolsTokens)\n const messageTokens = finiteNumber(breakdown?.messageTokens)\n if (systemTokens === undefined || toolsTokens === undefined || messageTokens === undefined) return undefined\n return { systemTokens, toolsTokens, messageTokens }\n}\n\nexport function permissionName(value: unknown): string | undefined {\n const selection = recordOf(value)\n const currentValue = typeof selection?.currentValue === 'string' ? selection.currentValue : undefined\n if (currentValue === undefined || !Array.isArray(selection?.options)) return undefined\n const current = selection.options.find(option => recordOf(option)?.value === currentValue)\n const name = recordOf(current)?.name\n return typeof name === 'string' ? name : currentValue\n}\n\nexport function permissionValue(value: unknown): string | undefined {\n const selection = recordOf(value)\n return typeof selection?.currentValue === 'string' ? selection.currentValue : undefined\n}\n\nexport function currentModelName(value: unknown): string | undefined {\n const directory = recordOf(value)\n const current = recordOf(directory?.current)\n const providerId = typeof current?.provider === 'string' ? current.provider : undefined\n const modelId = typeof current?.model === 'string' ? current.model : undefined\n if (modelId === undefined) return undefined\n if (!Array.isArray(directory?.groups)) return modelId\n const group = directory.groups.map(recordOf).find(candidate => candidate?.id === providerId)\n if (!Array.isArray(group?.models)) return modelId\n const model = group.models.map(recordOf).find(candidate => candidate?.id === modelId)\n return typeof model?.name === 'string' ? model.name : modelId\n}\n\nexport function lastUsedModel(value: unknown): string | undefined {\n const nodes = recordOf(value)?.nodes\n if (!Array.isArray(nodes)) return undefined\n for (let index = nodes.length - 1; index >= 0; index -= 1) {\n const node = recordOf(nodes[index])\n if (node?.kind !== 'assistant') continue\n const identity = recordOf(node.requestConfig) ?? recordOf(node.provenance)\n const model = typeof identity?.model === 'string' ? identity.model : undefined\n if (model === undefined) continue\n const provider = typeof identity?.provider === 'string' ? identity.provider : ''\n return provider.length > 0 ? `${provider} · ${model}` : model\n }\n return undefined\n}\n\nfunction sessionStats(value: unknown): SessionStats | undefined {\n const stats = recordOf(value)\n const keys = ['turns', 'steps', 'llmMs', 'toolMs', 'ttftMs', 'ttftSteps', 'decodeMs', 'decodeTokens'] as const\n const entries = keys.map(key => finiteNumber(stats?.[key]))\n if (entries.some(entry => entry === undefined)) return undefined\n const [turns, steps, llmMs, toolMs, ttftMs, ttftSteps, decodeMs, decodeTokens] = entries as [number, number, number, number, number, number, number, number]\n return { turns, steps, llmMs, toolMs, ttftMs, ttftSteps, decodeMs, decodeTokens }\n}\n\nfunction tokenUsage(value: unknown): TokenUsage | undefined {\n const usage = recordOf(value)\n const uncachedInputTokens = finiteNumber(usage?.uncachedInputTokens)\n const outputTokens = finiteNumber(usage?.outputTokens)\n const cacheReadTokens = finiteNumber(usage?.cacheReadTokens)\n const cacheWriteTokens = finiteNumber(usage?.cacheWriteTokens)\n if (uncachedInputTokens === undefined || outputTokens === undefined || cacheReadTokens === undefined || cacheWriteTokens === undefined) return undefined\n return { uncachedInputTokens, outputTokens, cacheReadTokens, cacheWriteTokens }\n}\n\nfunction sessionStatLines(projections: Readonly<Record<string, unknown>>, t: TriggerProps['t']): readonly string[] {\n const stats = sessionStats(projections.sessionStats)\n const usage = tokenUsage(projections.tokenUsage)\n const lines: string[] = []\n if (stats !== undefined && stats.steps > 0) {\n lines.push(t('mobile.sessionInfo.stats.counts', { turns: stats.turns, steps: stats.steps }))\n const durations: string[] = []\n if (stats.llmMs > 0) durations.push(t('mobile.sessionInfo.stats.llm', { duration: formatSessionDuration(stats.llmMs) }))\n if (stats.toolMs > 0) durations.push(t('mobile.sessionInfo.stats.tools', { duration: formatSessionDuration(stats.toolMs) }))\n if (durations.length > 0) lines.push(durations.join(' · '))\n const speeds: string[] = []\n if (stats.ttftSteps > 0) speeds.push(t('mobile.sessionInfo.stats.ttft', { duration: formatSessionDuration(stats.ttftMs / stats.ttftSteps) }))\n if (stats.decodeMs > 0) speeds.push(t('mobile.sessionInfo.stats.throughput', { throughput: formatSessionTokens(stats.decodeTokens / (stats.decodeMs / 1_000)) }))\n if (speeds.length > 0) lines.push(speeds.join(' · '))\n }\n if (usage !== undefined) {\n const input = usage.uncachedInputTokens + usage.cacheReadTokens + usage.cacheWriteTokens\n if (input > 0 || usage.outputTokens > 0) {\n if (input > 0) lines.push(t('mobile.sessionInfo.stats.cache', { percent: Math.round(usage.cacheReadTokens / input * 100) }))\n lines.push(t('mobile.sessionInfo.stats.tokens', { input: formatSessionTokens(input), output: formatSessionTokens(usage.outputTokens) }))\n }\n }\n return lines\n}\n\nfunction ContextRing({ occupancy }: { readonly occupancy: ContextOccupancy }): React.JSX.Element {\n const radius = 5.5\n const circumference = 2 * Math.PI * radius\n return <svg aria-hidden=\"true\" className=\"dllm-context-ring\" viewBox=\"0 0 14 14\">\n <circle className=\"dllm-context-ring-track\" cx=\"7\" cy=\"7\" r={radius} />\n <circle className=\"dllm-context-ring-fill\" cx=\"7\" cy=\"7\" r={radius} strokeDasharray={circumference} strokeDashoffset={circumference * (1 - occupancy.percent / 100)} transform=\"rotate(-90 7 7)\" />\n </svg>\n}\n\nconst permissionShieldOutline = 'M8.20554 0.899994L14.7901 3.36857V7.01026C14.7901 12 11.0466 14.2103 8.20554 15.3C5.36446 14.2103 1.62012 12 1.62012 7.01026V3.36857L8.20554 0.899994Z'\n\nfunction PermissionGlyph({ value }: { readonly value: string | undefined }): React.JSX.Element | null {\n if (value === 'read-only') return <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\">\n <path d={permissionShieldOutline} fill=\"none\" stroke=\"currentColor\" strokeLinejoin=\"round\" strokeWidth=\"1.31831\" />\n <path d=\"M12.1654 5.7552L8.9447 9.41475C8.73044 9.65816 8.53628 9.8804 8.35774 10.0423C8.1713 10.2114 7.94235 10.3717 7.64016 10.4254C7.48207 10.4535 7.32 10.4552 7.16151 10.4294C6.85843 10.3801 6.62728 10.2223 6.43836 10.0559C6.25752 9.89653 6.06037 9.67732 5.84264 9.43705L4.72925 8.20897L5.63557 7.38707L6.74897 8.61594C6.98603 8.87755 7.12974 9.03533 7.24673 9.13839C7.31033 9.19443 7.34485 9.21476 7.35823 9.22122C7.38068 9.22484 7.40352 9.22515 7.42593 9.22122C7.40522 9.22502 7.42893 9.23294 7.53583 9.136C7.65132 9.03126 7.79316 8.87139 8.02643 8.60638L11.2479 4.94763L12.1654 5.7552Z\" fill=\"currentColor\" />\n </svg>\n if (value === 'workspace-write') return <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\">\n <path d=\"M8.08887 0.251709C8.20479 0.23085 8.32486 0.241168 8.43652 0.282959L15.0215 2.75171C15.2787 2.84819 15.4492 3.09414 15.4492 3.3689V7.0105C15.4492 7.10986 15.4441 7.2081 15.4414 7.30542C15.0285 7.07175 14.5905 6.87695 14.1309 6.73022V3.82495L8.20508 1.60327L2.2793 3.82495V7.0105C2.27936 9.7171 3.4745 11.5379 5.02734 12.7947C5.01025 12.9942 5 13.1962 5 13.4001C5.00001 13.7617 5.02722 14.1169 5.08008 14.4636C2.91555 13.0393 0.961014 10.752 0.960938 7.0105V3.3689C0.960938 3.09417 1.13146 2.84821 1.38867 2.75171L7.97461 0.282959L8.08887 0.251709Z\" fill=\"currentColor\" />\n <path d=\"M11.3525 5.64688V6.85688H5V5.64688H11.3525ZM9.5824 8.29376V9.50376H5V8.29376H9.5824ZM14.6647 15.6852H10.0338C10.3878 15.3751 10.7567 15.0517 11.0772 14.7706C11.2531 14.6164 11.4144 14.4746 11.5511 14.3547H14.6647V15.6852Z\" fill=\"currentColor\" />\n <path d=\"M8.14852 14.1308L7.33925 15.4976C7.22458 15.6912 7.42245 15.9194 7.63037 15.8333L9.09785 15.2254L15.0399 10.0719L14.0905 8.97733L8.14852 14.1308Z\" fill=\"currentColor\" />\n </svg>\n if (value === 'danger-full-access') return <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\">\n <path d={permissionShieldOutline} fill=\"none\" stroke=\"currentColor\" strokeLinejoin=\"round\" strokeWidth=\"1.31831\" />\n <path d=\"M9.10094 4.5V8.75939H7.59888V4.5H9.10094ZM9.10094 9.8114V11.5H7.59888V9.8114H9.10094Z\" fill=\"currentColor\" />\n </svg>\n return null\n}\n\nfunction MobileSessionInfoTrigger({ controller, sessionId, t, useSession }: TriggerProps): React.JSX.Element {\n const selectedModel = useSyncExternalStore(\n listener => controller.subscribeModel(sessionId, listener),\n () => controller.getModel(sessionId),\n )\n const usedModel = useSession(lastUsedModel)\n const model = selectedModel ?? usedModel\n useEffect(() => controller.reportModel(String(sessionId), model), [controller, model, sessionId])\n return <Button\n aria-label={t('mobile.sessionInfo.open')}\n className=\"dllm-session-info-trigger\"\n title={t('mobile.sessionInfo.open')}\n size=\"sm\"\n variant=\"toolbar\"\n onClick={() => controller.open()}\n >\n <svg aria-hidden=\"true\" className=\"dllm-session-info-glyph\" viewBox=\"0 0 24 24\">\n <circle cx=\"12\" cy=\"12\" r=\"8.5\" />\n <path d=\"M12 10.8v5.2M12 8h.01\" />\n </svg>\n </Button>\n}\n\nfunction MobileSessionInfoDrawer({ controller, downloads, t, useSessions }: DrawerProps): React.JSX.Element | null {\n const state = useSyncExternalStore(controller.subscribe, controller.getSnapshot)\n const current = useSessions((snapshot: import('@deepseek-ai/dsh-api-session-controller/client').SessionListState) => snapshot.current)\n const session = useSessions((snapshot: import('@deepseek-ai/dsh-api-session-controller/client').SessionListState) => current === undefined ? undefined : snapshot.byId[current]) as SessionSummary | undefined\n const downloadState = useSyncExternalStore<SessionLogDownloadState>(downloads.store.subscribe, downloads.store.getSnapshot)\n const download = session === undefined ? undefined : downloadState.bySession[String(session.id)]\n const downloading = download?.status === 'downloading'\n const projections = (session?.projectionValues ?? {}) as Readonly<Record<string, unknown>>\n const occupancy = contextOccupancy(projections.contextPressure)\n const breakdown = contextBreakdown(projections.contextBreakdown)\n const access = permissionName(projections.permissions)\n const accessValue = permissionValue(projections.permissions)\n const model = state.modelSessionId === String(session?.id) ? state.model : undefined\n const stats = sessionStatLines(projections, t)\n const close = (): void => {\n if (session !== undefined) downloads.dismiss(session.id)\n controller.close()\n }\n const dialog = useMobileDialog(state.open && session !== undefined, close)\n\n if (!state.open || session === undefined) return null\n return <div className=\"dllm-session-info-layer\">\n <Button aria-label={t('mobile.sessionInfo.close')} className=\"dllm-session-info-backdrop\" size=\"sm\" variant=\"ghost\" onClick={close} />\n <aside aria-label={t('mobile.sessionInfo.title')} aria-modal=\"true\" className=\"dllm-session-info-drawer\" ref={dialog} role=\"dialog\" tabIndex={-1}>\n <header className=\"dllm-session-info-header\">\n <div><small>{t('mobile.sessionInfo.eyebrow')}</small><h2>{session.displayTitle}</h2></div>\n <Button aria-label={t('mobile.sessionInfo.close')} size=\"sm\" variant=\"ghost\" onClick={close}>\n <IconCloseOutline16 size={16} />\n </Button>\n </header>\n <div className=\"dllm-session-info-body\">\n {occupancy !== undefined && <section className=\"dllm-session-info-card dllm-session-context-card\">\n <div className=\"dllm-session-info-row\">\n <ContextRing occupancy={occupancy} />\n <div><small>{t('mobile.sessionInfo.context')}</small><strong>{occupancy.percent}% · {formatSessionTokens(occupancy.usedTokens)} / {formatSessionTokens(occupancy.contextWindow)}</strong></div>\n </div>\n {breakdown !== undefined && (breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens) > 0 && <>\n <div className=\"dllm-context-breakdown-bar\" aria-hidden=\"true\">\n <span className=\"dllm-context-segment dllm-context-system\" style={{ width: `${occupancy.percent * breakdown.systemTokens / (breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens)}%` }} />\n <span className=\"dllm-context-segment dllm-context-tools\" style={{ width: `${occupancy.percent * breakdown.toolsTokens / (breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens)}%` }} />\n <span className=\"dllm-context-segment dllm-context-messages\" style={{ width: `${occupancy.percent * breakdown.messageTokens / (breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens)}%` }} />\n </div>\n <div className=\"dllm-context-breakdown-rows\">\n <div><span><i className=\"dllm-context-swatch dllm-context-system\" />{t('mobile.sessionInfo.context.system')}</span><span>~{formatSessionTokens(breakdown.systemTokens)}</span></div>\n <div><span><i className=\"dllm-context-swatch dllm-context-tools\" />{t('mobile.sessionInfo.context.tools')}</span><span>~{formatSessionTokens(breakdown.toolsTokens)}</span></div>\n <div><span><i className=\"dllm-context-swatch dllm-context-messages\" />{t('mobile.sessionInfo.context.messages')}</span><span>~{formatSessionTokens(breakdown.messageTokens)}</span></div>\n </div>\n </>}\n </section>}\n <section className=\"dllm-session-info-card dllm-session-properties-card\">\n <div className=\"dllm-session-property\"><small>{t('mobile.sessionInfo.model')}</small><span>{model ?? t('mobile.sessionInfo.notRecorded')}</span></div>\n <div className=\"dllm-session-property\"><small className=\"dllm-session-property-label\"><IconFolderOpenOutline16 size={13} />{t('mobile.sessionInfo.permissions')}</small><span className=\"dllm-session-property-value dllm-session-property-access\"><PermissionGlyph value={accessValue} />{access ?? t('mobile.sessionInfo.notRecorded')}</span></div>\n <div className=\"dllm-session-property\"><small className=\"dllm-session-property-label\"><IconAgentPresetOutline16 size={13} />{t('mobile.sessionInfo.agentPreset')}</small><span>{mobilePresetLabel(sessionAgentPreset(session), t)}</span></div>\n </section>\n {stats.length > 0 && <section className=\"dllm-session-info-card dllm-session-stats-card\">\n <div className=\"dllm-session-info-icon\" aria-hidden=\"true\"><IconDataOutline16 size={15} /></div>\n <div><small>{t('mobile.sessionInfo.statistics')}</small>{stats.map(line => <p key={line}>{line}</p>)}</div>\n </section>}\n <section className=\"dllm-session-info-card dllm-session-log-card\">\n <div className=\"dllm-session-info-icon\" aria-hidden=\"true\"><IconDownloadOutline16 size={17} /></div>\n <div><small>{t('mobile.sessionInfo.sessionLog')}</small><p>{t('mobile.sessionInfo.sessionLogDescription')}</p>\n {download?.status === 'error' && <p className=\"dllm-session-log-error\">{download.error ?? t('mobile.sessionInfo.sessionLogError')}</p>}\n {download?.status === 'success' && <p>{t('mobile.sessionInfo.sessionLogReady')}</p>}\n </div>\n <Button className=\"dllm-session-log-download\" disabled={downloading} size=\"sm\" variant=\"outline\" onClick={() => void downloads.download(session.id)}>\n {t(downloading ? 'mobile.sessionInfo.sessionLogDownloading' : 'mobile.sessionInfo.sessionLogDownload')}\n </Button>\n </section>\n </div>\n </aside>\n </div>\n}\n\nexport const MOBILE_SESSION_INFO_STYLES = `\n.dllm-session-info-trigger{display:grid;width:44px;height:44px;margin:0;padding:0;place-items:center;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(148 163 184 / 30%));border-radius:12px;color:inherit;background:var(--dsw-alias-bg-layer-1,rgb(255 255 255 / 92%));box-shadow:var(--dsw-shadow-lv3,0 8px 24px rgb(15 23 42 / 14%));cursor:pointer}\n.dllm-session-info-trigger:hover{background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 18%))}\n.dllm-session-info-glyph{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}\n.dllm-session-info-layer{position:fixed;z-index:120;inset:0;display:flex;justify-content:flex-end;pointer-events:auto}.dllm-session-info-backdrop{position:absolute;inset:0;width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:var(--dsw-alias-bg-mask-1,rgb(15 23 42 / 46%))!important}\n.dllm-session-info-drawer{position:relative;box-sizing:border-box;display:flex;width:var(--dllm-side-drawer-width);height:100dvh;flex-direction:column;padding-top:env(safe-area-inset-top);border-left:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 22%));color:var(--dsw-alias-label-primary,inherit);background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:-18px 0 52px rgb(15 23 42 / 24%);animation:dllm-session-info-in 180ms cubic-bezier(.22,1,.36,1)}\n.dllm-session-info-header{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px;padding:18px 16px 14px!important;border-bottom:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 18%))}.dllm-session-info-header>div{min-width:0}.dllm-session-info-header small{color:var(--dsw-alias-label-tertiary,#6b7280);font-size:11px;text-transform:uppercase;letter-spacing:.05em}.dllm-session-info-header h2{margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;line-height:23px}.dllm-session-info-header button{display:grid;width:32px;height:32px;flex:none;padding:0;place-items:center;border:0;border-radius:50%;color:var(--dsw-alias-label-secondary,inherit);background:transparent}.dllm-session-info-header button:hover{background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 14%))}.dllm-session-info-header button>svg{width:16px;height:16px}\n.dllm-session-info-body{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px;padding:12px 12px calc(14px + env(safe-area-inset-bottom));overflow-y:auto}.dllm-session-info-card{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;padding:10px;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 18%));border-radius:10px;background:color-mix(in srgb,var(--dsw-alias-bg-base,transparent) 62%,transparent)}.dllm-session-info-icon{display:grid;width:24px;height:24px;place-items:center;color:var(--dsw-alias-label-tertiary,#6b7280)}.dllm-session-info-card small{display:block;color:var(--dsw-alias-label-tertiary,#6b7280);font-size:10.5px;line-height:15px}.dllm-session-info-card strong{display:block;margin-top:1px;font-size:13px;font-weight:500;line-height:18px}.dllm-session-info-card p{margin:2px 0 0;color:var(--dsw-alias-label-secondary,#6b7280);font-size:11.5px;line-height:17px}.dllm-session-log-card{grid-template-columns:28px minmax(0,1fr);align-items:start}.dllm-session-log-download{grid-column:2;width:fit-content;margin-top:5px}.dllm-session-log-error{color:var(--dsw-alias-state-error-primary,#dc2626)!important;overflow-wrap:anywhere}\n.dllm-session-context-card{display:block;padding:3px 10px 8px}.dllm-session-info-row{display:grid;min-width:0;grid-template-columns:26px minmax(0,1fr);gap:8px;align-items:center;padding:7px 0}.dllm-session-info-row>div{min-width:0}.dllm-session-info-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dllm-context-ring{display:block;width:16px;height:16px;margin:auto;overflow:visible}.dllm-context-ring-track,.dllm-context-ring-fill{fill:none;stroke-width:1.6}.dllm-context-ring-track{stroke:var(--dsw-alias-border-l3,rgb(127 127 127 / 24%))}.dllm-context-ring-fill{stroke:var(--dsw-alias-label-tertiary,#6b7280);stroke-linecap:round}.dllm-context-breakdown-bar{display:flex;height:4px;margin:2px 0 7px;gap:1px;overflow:hidden;border-radius:999px;background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 12%))}.dllm-context-segment{height:100%;min-width:2px;border-radius:1px;background:var(--meter-tint)}.dllm-context-system{--meter-tint:var(--dsw-static-neutral-bluish-400,#8a94a6)}.dllm-context-tools{--meter-tint:#a78bfa}.dllm-context-messages{--meter-tint:var(--dsw-static-blue-450,#4f8cff)}.dllm-context-breakdown-rows{display:grid;gap:1px}.dllm-context-breakdown-rows>div{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--dsw-alias-label-secondary,#6b7280);font-size:10.5px;line-height:16px}.dllm-context-breakdown-rows>div>span:last-child{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-primary,inherit)}.dllm-context-swatch{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:2px;background:var(--meter-tint)}.dllm-session-properties-card{display:block;padding:2px 10px}.dllm-session-property{display:grid;grid-template-columns:minmax(92px,38%) minmax(0,1fr);gap:10px;align-items:baseline;padding:7px 0}.dllm-session-property+.dllm-session-property{border-top:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 14%))}.dllm-session-property-label{display:inline-flex!important;min-width:0;align-items:center;gap:5px}.dllm-session-property-label svg{width:13px;height:13px;flex:none}.dllm-session-property span{overflow:hidden;color:var(--dsw-alias-label-primary,inherit);font-size:12px;font-weight:400;line-height:17px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dllm-session-property-value{display:inline-flex;min-width:0;align-items:center;justify-content:flex-end;gap:5px}.dllm-session-property-access svg{width:14px;height:14px;flex:none}.dllm-session-stats-card p{font-variant-numeric:tabular-nums}.dllm-session-stats-card p:first-of-type{margin-top:2px}\n@keyframes dllm-session-info-in{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(prefers-reduced-motion:reduce){.dllm-session-info-drawer{animation:none!important}}\n`\n\nexport function applyMobileSessionInfo(ctx: ClientContext): void {\n const controller = new MobileSessionInfoController()\n ctx.inject(['modelDirectories'], scope => {\n const resolver = (scope as unknown as { modelDirectories?: ModelDirectoryResolverLike }).modelDirectories\n if (resolver === undefined) return\n scope.effect(() => controller.attachModelResolver(resolver), 'dsh-local-link: current model directory bridge')\n })\n ctx.effect(() => ctx.slots.inject('conversation.session.header.actions', () => ctx.slots.register({\n name: 'conversation.session.header.actions',\n id: 'agent-preset',\n priority: MOBILE_AGENT_PRESET_PRIORITY,\n }, () => null)), 'dsh-local-link: move mobile agent preset out of header')\n ctx.effect(() => ctx.slots.inject('conversation.session.header.utilities', () => ctx.slots.register({\n name: 'conversation.session.header.utilities',\n id: 'session-log-download',\n priority: MOBILE_SESSION_LOG_PRIORITY,\n }, () => null)), 'dsh-local-link: move mobile session log out of header')\n ctx.effect(() => ctx.slots.inject('conversation.composer.dock', () => ctx.slots.register({\n name: 'conversation.composer.dock',\n id: 'stats',\n priority: MOBILE_STATS_PRIORITY,\n }, () => null)), 'dsh-local-link: move mobile session statistics into session info')\n ctx.effect(() => ctx.slots.inject('conversation.session.header.utilities', () => ctx.slots.register({\n name: 'conversation.session.header.utilities',\n id: MOBILE_SESSION_INFO_TRIGGER_ID,\n order: 90,\n locale: NS,\n }, props => <MobileSessionInfoTrigger {...props} controller={controller} />)), 'dsh-local-link: mobile session info trigger')\n ctx.effect(() => ctx.slots.inject('shell.overlay', () => ctx.slots.register({\n name: 'shell.overlay',\n id: MOBILE_SESSION_INFO_OVERLAY_ID,\n order: 40,\n locale: NS,\n }, props => <MobileSessionInfoDrawer {...props} controller={controller} downloads={ctx.sessionLogDownload} />)), 'dsh-local-link: mobile session info drawer')\n}\n","import React, { useSyncExternalStore } from 'react'\nimport type { ILayout } from '@deepseek-ai/dsh-client-ui-layout/client'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-sidebar/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-theme/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-session-log-export/client'\nimport { Button, IconDarkOutline16, IconLightOutline16 } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { ClientContext } from './client-context.js'\nimport { applyMobileSubagents, MOBILE_SUBAGENT_STYLES } from './mobile-subagents.js'\nimport { applyMobileSessionInfo, MOBILE_SESSION_INFO_STYLES } from './mobile-session-info.js'\n\nconst NS = 'dsh.localLink'\nexport const MOBILE_SETTINGS_PRIORITY = -100\nexport const MOBILE_LOCAL_ACCESS_PRIORITY = -100\n\ninterface MobileLabels {\n readonly closeOverlay: string\n readonly openNavigation: string\n}\n\ninterface ThemeSnapshot {\n readonly preference: 'light' | 'dark' | 'system'\n readonly active: {\n readonly colorScheme: 'dark' | 'light'\n readonly tokens: Readonly<Record<string, string>>\n }\n}\n\ninterface ThemeController {\n readonly subscribe: (listener: () => void) => () => void\n readonly getSnapshot: () => ThemeSnapshot\n readonly setDark: (dark: boolean) => void\n}\n\nexport class MobileComposerAutofocusGuard {\n private selected: string | undefined\n private suppressUntil = 0\n private pointerTarget: EventTarget | null = null\n private pointerAt = 0\n\n constructor(selected: string | undefined) {\n this.selected = selected\n }\n\n selectionChanged(selected: string | undefined, now: number): void {\n if (selected === this.selected) return\n this.selected = selected\n this.suppressUntil = now + 1_200\n }\n\n pointerDown(target: EventTarget, now: number): void {\n this.pointerTarget = target\n this.pointerAt = now\n }\n\n shouldBlur(target: EventTarget, now: number): boolean {\n const intentional = this.pointerTarget === target && now - this.pointerAt <= 700\n this.pointerTarget = null\n if (intentional) {\n this.suppressUntil = 0\n return false\n }\n if (now > this.suppressUntil) return false\n this.suppressUntil = 0\n return true\n }\n}\n\nfunction installMobileComposerAutofocusGuard(ctx: ClientContext): () => void {\n const guard = new MobileComposerAutofocusGuard(ctx.sessions.list.getSnapshot().current)\n const composerInput = (target: EventTarget | null): HTMLElement | null => {\n if (!(target instanceof HTMLElement)) return null\n if (!target.matches('textarea,[contenteditable=\"true\"]')) return null\n const mobileSurface = target.closest('.dllm-main') !== null\n || document.body.hasAttribute('data-dsh-local-link-mobile')\n return mobileSurface ? target : null\n }\n const offSessions = ctx.sessions.list.subscribe(() => {\n guard.selectionChanged(ctx.sessions.list.getSnapshot().current, Date.now())\n })\n const onPointerDown = (event: PointerEvent): void => {\n const target = composerInput(event.target)\n if (target !== null) guard.pointerDown(target, Date.now())\n }\n const onFocusIn = (event: FocusEvent): void => {\n const target = composerInput(event.target)\n if (target !== null && guard.shouldBlur(target, Date.now())) target.blur()\n }\n document.addEventListener('pointerdown', onPointerDown, true)\n document.addEventListener('focusin', onFocusIn, true)\n return () => {\n offSessions()\n document.removeEventListener('pointerdown', onPointerDown, true)\n document.removeEventListener('focusin', onFocusIn, true)\n }\n}\n\ninterface MobileThemeToggleProps {\n readonly controller: ThemeController\n readonly useDarkLabel: string\n readonly useLightLabel: string\n}\n\ninterface StockMobileControlsProps {\n readonly layout: ILayout\n readonly labels: MobileLabels\n readonly themeController: ThemeController\n readonly useDarkLabel: string\n readonly useLightLabel: string\n}\n\nconst MOBILE_SIDEBAR_INTERACTIVE_SELECTOR = [\n 'button',\n 'a',\n 'input',\n 'textarea',\n 'select',\n '[role=\"button\"]',\n '[role=\"menuitem\"]',\n].join(',')\n\n/**\n * Close the drawer only for a row-selection tap. Harness owns the session\n * overflow button and renders its Menu through a portal; treating that button\n * as a row tap closes the drawer before Rename/Fork/Archive can be selected.\n */\nexport function shouldCloseMobileSidebarForElement(target: Pick<Element, 'closest'>): boolean {\n if (target.closest(MOBILE_SIDEBAR_INTERACTIVE_SELECTOR) !== null) return false\n const item = target.closest('[role=\"treeitem\"]')\n return item !== null && item.getAttribute('aria-expanded') === null\n}\n\n\nexport function MobileThemeToggle({ controller, useDarkLabel, useLightLabel }: MobileThemeToggleProps): React.JSX.Element {\n const snapshot = useSyncExternalStore(controller.subscribe, controller.getSnapshot)\n const dark = snapshot.active.colorScheme === 'dark'\n const label = dark ? useLightLabel : useDarkLabel\n return <Button\n aria-label={label}\n className=\"dllm-theme-button\"\n title={label}\n size=\"sm\"\n variant=\"ghost\"\n onClick={() => controller.setDark(!dark)}\n >{dark\n ? <IconDarkOutline16 size={16} />\n : <IconLightOutline16 size={16} />}\n </Button>\n}\n\nfunction StockMobileControls({ layout, labels, themeController, useDarkLabel, useLightLabel }: StockMobileControlsProps): React.JSX.Element {\n return <div className=\"dllm-stock-controls\">\n <Button\n aria-label={labels.openNavigation}\n className=\"dllm-stock-menu\"\n size=\"sm\"\n variant=\"toolbar\"\n onClick={() => layout.toggleSidebar()}\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M4 7h16M4 12h16M4 17h16\" /></svg>\n </Button>\n <Button\n aria-label={labels.closeOverlay}\n className=\"dllm-stock-scrim\"\n size=\"sm\"\n variant=\"ghost\"\n onClick={() => layout.toggleSidebar()}\n />\n <div className=\"dllm-stock-theme\">\n <MobileThemeToggle controller={themeController} useDarkLabel={useDarkLabel} useLightLabel={useLightLabel} />\n </div>\n </div>\n}\n\nexport const MOBILE_STOCK_LAYOUT_STYLES = `\nbody[data-dsh-local-link-mobile]{overflow:hidden}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay]){--dllm-side-drawer-width:min(88vw,340px);--dllm-side-drawer-closed-transform:translateX(calc(-1 * var(--dllm-side-drawer-width) - 14px));grid-template-columns:minmax(0,1fr)!important}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:first-child{position:fixed;z-index:70;inset:0 auto 0 0;box-sizing:border-box;width:var(--dllm-side-drawer-width);transform:translateX(0);transition:transform 190ms cubic-bezier(.22,1,.36,1);box-shadow:18px 0 46px rgb(15 23 42 / 18%)}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:first-child>[data-slot=\"sidebar\"]>*{width:100%!important;height:100%!important}\nbody[data-dsh-local-link-mobile] [data-slot=\"sidebar\"] button[class*=\"_brand\"]{flex:0 0 auto!important;inline-size:max-content!important;width:max-content!important;min-width:0!important;max-width:calc(100% - 72px)!important;margin-right:auto!important}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div[data-sidebar-collapsed]:has(>[data-shell-overlay])>:first-child{transform:var(--dllm-side-drawer-closed-transform);pointer-events:none}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:nth-child(2){grid-column:1;grid-row:1;min-width:0}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:nth-child(3){display:none}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>[data-shell-overlay]{z-index:90}\n.dllm-stock-controls{position:absolute;inset:0;pointer-events:none}\n.dllm-stock-menu{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));display:grid;width:44px;height:44px;padding:0;place-items:center;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(148 163 184 / 30%));border-radius:12px;color:inherit;background:var(--dsw-alias-bg-layer-1,rgb(255 255 255 / 92%));box-shadow:var(--dsw-shadow-lv3,0 8px 24px rgb(15 23 42 / 14%));pointer-events:auto;transition:opacity 120ms ease,transform 120ms ease}\n.dllm-stock-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:not([data-sidebar-collapsed]):has(>[data-shell-overlay]) .dllm-stock-menu{opacity:0;transform:scale(.9);pointer-events:none}\n.dllm-stock-scrim{position:absolute;inset:0 0 0 var(--dllm-side-drawer-width);width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:var(--dsw-alias-bg-mask-1,rgb(15 23 42 / 40%))!important;pointer-events:auto}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div[data-sidebar-collapsed]:has(>[data-shell-overlay]) .dllm-stock-scrim{opacity:0;pointer-events:none}\n.dllm-stock-theme{position:absolute;top:calc(env(safe-area-inset-top) + 22px);left:calc(var(--dllm-side-drawer-width) - 76px);display:grid;width:28px;height:28px;place-items:center;opacity:1;visibility:visible;transform:translateX(0);pointer-events:auto;transition:opacity 120ms ease,transform 190ms cubic-bezier(.22,1,.36,1),visibility 0s linear 0s}\n.dllm-stock-theme .dllm-theme-button{box-sizing:border-box!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:50%!important}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div[data-sidebar-collapsed]:has(>[data-shell-overlay]) .dllm-stock-theme{opacity:0;visibility:hidden;transform:var(--dllm-side-drawer-closed-transform);pointer-events:none;transition:opacity 120ms ease,transform 190ms cubic-bezier(.22,1,.36,1),visibility 0s linear 190ms}\nbody[data-dsh-local-link-mobile] [data-slot=\"sidebar.workspaces\"] button[aria-label=\"Add workspace\"],body[data-dsh-local-link-mobile] [data-slot=\"sidebar.workspaces\"] button[aria-label=\"添加工作区\"]{display:none!important}\nbody[data-dsh-local-link-mobile] [role=\"treeitem\"][aria-selected=\"true\"]>span:has(button[aria-label]){display:inline-flex!important;margin-left:4px}\nbody[data-dsh-local-link-mobile] [role=\"treeitem\"][aria-selected=\"true\"]>span:has(button[aria-label]) button{width:28px!important;height:28px!important}\nbody[data-dsh-local-link-mobile] [role=\"tree\"]>div:has([role=\"treeitem\"][aria-selected=\"true\"]) [role=\"treeitem\"][aria-expanded]>span:last-child{display:inline-flex!important}\nbody[data-dsh-local-link-mobile] [role=\"treeitem\"][aria-expanded]:has(>span[class*=\"_folderActive\"])>span:last-child{display:inline-flex!important}\nbody[data-dsh-local-link-mobile] header{min-width:0;padding-left:max(58px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}\nbody[data-dsh-local-link-mobile] textarea,body[data-dsh-local-link-mobile] input{font-size:max(16px,1em)}\nbody[data-dsh-local-link-mobile] [role=tablist]{display:flex;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}\nbody[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}\nbody[data-dsh-local-link-mobile] header nav:has(.dllm-lineage-title){gap:0!important;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}\nbody[data-dsh-local-link-mobile] header nav:has(.dllm-lineage-title)>span{gap:1px!important}\nbody[data-dsh-local-link-mobile] header nav:has(.dllm-lineage-title)>span>button{padding-inline:4px!important;font-size:14px!important;line-height:20px!important}\nbody[data-dsh-local-link-mobile] [data-turn-tail]>div:last-child>button[aria-haspopup=dialog][aria-expanded]{position:relative;box-sizing:border-box;width:28px;max-width:28px;height:28px;overflow:hidden;padding:6px;border:0;border-radius:50%;color:var(--dsw-alias-label-secondary,inherit);font-size:0;line-height:0;text-indent:-9999px;background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 14%))}\nbody[data-dsh-local-link-mobile] [data-turn-tail]>div:last-child>button[aria-haspopup=dialog][aria-expanded]::before{content:\"\";display:block;width:16px;height:16px;background:currentColor;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.8 2.4a1.7 1.7 0 0 1 2.4 2.4L6 12l-3 .6.6-3 7.2-7.2Z'/%3E%3Cpath d='m9.8 3.4 2.8 2.8'/%3E%3C/svg%3E\") center/16px 16px no-repeat}\nbody[data-dsh-local-link-mobile] [data-cordis-panel]{left:max(12px,env(safe-area-inset-left))!important;right:max(12px,env(safe-area-inset-right))!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - max(24px,env(safe-area-inset-top) + env(safe-area-inset-bottom)))!important}\nbody[data-dsh-local-link-mobile] [data-cordis-row]{min-width:0}body[data-dsh-local-link-mobile] [data-cordis-row]>div{min-width:0;flex-wrap:wrap}body[data-dsh-local-link-mobile] [data-cordis-row] span{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}\n@media(prefers-reduced-motion:reduce){body[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:first-child,.dllm-stock-theme{transition:none!important}}\n${MOBILE_SUBAGENT_STYLES}\n${MOBILE_SESSION_INFO_STYLES}\n`\n\n/**\n * Enhance Harness' shipped responsive AppFrame without claiming its root or\n * redeclaring its child slots. This is the 3080 path used by the normal client.\n */\nfunction applyResponsiveMobileEnhancementsBody(ctx: ClientContext): void {\n const themeController: ThemeController = {\n getSnapshot: () => ctx.theme.getTheme(),\n subscribe: listener => ctx.on('theme/change', () => listener()),\n setDark: dark => ctx.theme.setTheme(dark ? 'dark' : 'light'),\n }\n const t = ctx.locale.bind(NS)\n const labels: MobileLabels = {\n closeOverlay: t('mobile.closeOverlay'),\n openNavigation: t('mobile.openNavigation'),\n }\n\n applyMobileSubagents(ctx)\n applyMobileSessionInfo(ctx)\n\n ctx.effect(() => {\n document.body.dataset.dshLocalLinkMobile = ''\n const style = document.createElement('style')\n style.dataset.plugin = 'dsh-local-link-mobile-enhancements'\n style.textContent = MOBILE_STOCK_LAYOUT_STYLES\n document.head.append(style)\n return () => {\n delete document.body.dataset.dshLocalLinkMobile\n style.remove()\n }\n }, 'dsh-local-link: stock mobile layout styles')\n\n ctx.effect(() => ctx.slots.inject('shell.overlay', () => ctx.slots.register({\n name: 'shell.overlay',\n id: 'dsh-local-link-mobile-controls',\n order: -100,\n }, () => <StockMobileControls\n layout={ctx.layout}\n labels={labels}\n themeController={themeController}\n useDarkLabel={t('mobile.useDarkMode')}\n useLightLabel={t('mobile.useLightMode')}\n />)), 'dsh-local-link: stock mobile controls')\n\n ctx.effect(() => installMobileComposerAutofocusGuard(ctx),\n 'dsh-local-link: suppress mobile composer autofocus on session change')\n\n ctx.effect(() => {\n const onClick = (event: MouseEvent): void => {\n const target = event.target\n if (!(target instanceof Element) || !shouldCloseMobileSidebarForElement(target)) return\n const frame = document.querySelector('[data-shell-overlay]')?.parentElement\n if (frame?.hasAttribute('data-sidebar-collapsed') !== false) return\n window.setTimeout(() => ctx.layout.toggleSidebar(), 0)\n }\n document.addEventListener('click', onClick, true)\n return () => document.removeEventListener('click', onClick, true)\n }, 'dsh-local-link: close stock mobile sidebar after session selection')\n\n ctx.effect(() => ctx.slots.inject('sidebar.settings', () => ctx.slots.register({\n name: 'sidebar.settings',\n priority: MOBILE_SETTINGS_PRIORITY,\n }, () => null)), 'dsh-local-link: hide desktop settings entry on mobile')\n\n ctx.effect(() => ctx.slots.inject('sidebar.footer.action', () => ctx.slots.register({\n name: 'sidebar.footer.action',\n id: 'local-link-connect',\n priority: MOBILE_LOCAL_ACCESS_PRIORITY,\n }, () => null)), 'dsh-local-link: hide nested local access action on mobile')\n}\n\nexport const applyResponsiveMobileEnhancements = Object.assign(applyResponsiveMobileEnhancementsBody, {\n inject: ['slots', 'theme', 'locale', 'sessions', 'sessionLogDownload', 'layout'],\n})\n","","","import React, { useCallback, useEffect, useRef, useState } from 'react'\nimport type {} from '@deepseek-ai/dsh-api-session-controller/client'\nimport type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-sidebar/client'\nimport { Button, IconChevronDownOutline14, Input } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { ClientContext } from './client-context.js'\nimport { applyResponsiveMobileEnhancements } from './mobile-layout.js'\nimport en from './locales/en.json' with { type: 'json' }\nimport zh from './locales/zh.json' with { type: 'json' }\n\nconst NS = 'dsh.localLink'\ntype LocaleKey = keyof typeof en\n\ndeclare module '@deepseek-ai/dsh-client-ui-slots' {\n interface LocaleNamespaceMap {\n 'dsh.localLink': LocaleKey\n }\n}\n\ninterface Device {\n id: string\n name: string\n deviceType: string\n browser: string\n}\n\ninterface DevicePayload {\n id?: unknown\n name?: unknown\n deviceType?: unknown\n browser?: unknown\n label?: unknown\n}\n\ninterface StatusPayload {\n devices?: unknown\n}\n\ninterface Status {\n devices: Device[]\n}\n\ninterface DiagnosticEvent {\n id: string\n at: string\n level: 'warn' | 'error'\n code: string\n context?: Record<string, string | number | boolean>\n}\n\ninterface DiagnosticsPayload {\n events?: unknown\n}\n\ninterface Pairing {\n id: string\n url: string\n qrDataUrl: string\n expiresAt: string\n}\n\ninterface PairingState {\n status: 'active' | 'consumed' | 'expired' | 'unknown'\n}\n\ninterface PopoverPosition {\n left: number\n top: number\n}\n\ntype FooterProps = PropsRuntime<'sidebar.footer.action'> & PropsLocale<typeof NS>\ntype LocalLinkFooterProps = FooterProps & { readonly getCurrentSessionId: () => string | undefined }\n\nfunction desktopOrigin(): boolean {\n return location.hostname === 'localhost' || location.hostname === '127.0.0.1' || location.hostname === '::1'\n}\n\nfunction secondsUntil(iso: string): number {\n return Math.max(0, Math.ceil((Date.parse(iso) - Date.now()) / 1_000))\n}\n\nfunction formatCountdown(seconds: number): string {\n const minutes = Math.floor(seconds / 60)\n return `${minutes}:${String(seconds % 60).padStart(2, '0')}`\n}\n\nfunction payloadText(value: unknown, fallback: string): string {\n return typeof value === 'string' && value.trim() !== '' ? value : fallback\n}\n\nfunction legacyDeviceType(label: unknown): string {\n if (typeof label !== 'string') return 'Computer'\n if (/ipad|tablet/iu.test(label)) return 'Tablet'\n if (/iphone|android|mobile|phone|linux\\s+arm/iu.test(label)) return 'Phone'\n return 'Computer'\n}\n\nfunction normalizeDevices(payload: StatusPayload): Device[] {\n if (!Array.isArray(payload.devices)) return []\n return payload.devices.flatMap(value => {\n if (value === null || typeof value !== 'object' || Array.isArray(value)) return []\n const device = value as DevicePayload\n if (typeof device.id !== 'string') return []\n return [{\n id: device.id,\n name: payloadText(device.name, 'My device'),\n deviceType: payloadText(device.deviceType, legacyDeviceType(device.label)),\n browser: payloadText(device.browser, 'Browser'),\n }]\n })\n}\n\nfunction normalizeDiagnostics(payload: DiagnosticsPayload): DiagnosticEvent[] {\n if (!Array.isArray(payload.events)) return []\n return payload.events.flatMap(value => {\n if (value === null || typeof value !== 'object' || Array.isArray(value)) return []\n const event = value as Partial<DiagnosticEvent>\n if (typeof event.id !== 'string' || typeof event.at !== 'string' || typeof event.code !== 'string'\n || (event.level !== 'warn' && event.level !== 'error')) return []\n const context = event.context !== null && typeof event.context === 'object' && !Array.isArray(event.context)\n ? Object.fromEntries(Object.entries(event.context).filter((entry): entry is [string, string | number | boolean] => {\n const item = entry[1]\n return typeof item === 'string' || typeof item === 'number' || typeof item === 'boolean'\n }))\n : undefined\n return [{ id: event.id, at: event.at, level: event.level, code: event.code, ...(context === undefined ? {} : { context }) }]\n })\n}\n\nfunction openSettingsSection(label: string): void {\n const trigger = document.querySelector<HTMLButtonElement>('button[aria-haspopup=\"dialog\"][aria-expanded]')\n if (trigger === null) return\n trigger.click()\n let attempts = 0\n const selectSection = (): void => {\n const dialog = document.querySelector<HTMLElement>('[role=\"dialog\"]')\n const target = dialog === null ? undefined : [...dialog.querySelectorAll<HTMLButtonElement>('nav button')]\n .find(button => button.textContent?.trim() === label)\n if (target !== undefined) {\n target.click()\n return\n }\n attempts += 1\n if (attempts < 10) window.requestAnimationFrame(selectSection)\n }\n window.requestAnimationFrame(selectSection)\n}\n\nasync function jsonRequest<T>(path: string, init?: RequestInit): Promise<T> {\n const response = await fetch(path, {\n ...init,\n headers: { 'content-type': 'application/json', ...init?.headers },\n })\n const body = await response.json() as T & { error?: string }\n if (!response.ok) throw new Error(body.error ?? `HTTP ${response.status}`)\n return body\n}\n\nfunction reportActionError(code: 'CLIPBOARD_COPY_FAILED' | 'DEVICE_REVOKE_FAILED' | 'DEVICE_RENAME_FAILED'): void {\n void fetch('/__dsh-local-link/admin/diagnostics/event', {\n method: 'POST',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify({ code }),\n }).catch(() => undefined)\n}\n\nconst styles = `\n:root{--dsh-local-link-border-width:.5px}\n.dsh-local-link{box-sizing:border-box;width:100%;max-width:760px;padding:4px 4px 32px;color:var(--dsw-alias-label-primary,#16181d)}\n.dsh-local-link h2{margin:0 0 5px;font-size:20px}.dsh-local-link>p{margin:0;color:var(--dsw-alias-label-secondary,#66707c);line-height:1.5}\n.dsh-local-link__devices{display:grid;margin-top:12px;border-block:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-subtle,#dce1e8))}.dsh-local-link__devices>p{margin:0;padding:12px 0;color:var(--dsw-alias-label-secondary,#66707c);line-height:1.45}.dsh-local-link__device{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 0;border-top:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-subtle,#dce1e8))}.dsh-local-link__device:first-child{border-top:0}.dsh-local-link__device-info{display:grid;min-width:0;gap:2px}.dsh-local-link__device-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 14px/1.25 system-ui}.dsh-local-link__device-info small{overflow:hidden;color:var(--dsw-alias-label-secondary,#66707c);font:12px/1.3 system-ui;text-overflow:ellipsis;white-space:nowrap}.dsh-local-link__device-actions{display:flex;gap:6px}.dsh-local-link__device-editor{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px}.dsh-local-link__device-name-input{min-width:0;width:100%}@media(max-width:440px){.dsh-local-link__device{grid-template-columns:minmax(0,1fr) auto;gap:8px}.dsh-local-link__device-actions{gap:4px}.dsh-local-link__device-editor{grid-template-columns:1fr auto}.dsh-local-link__device-name-input{grid-column:1/-1}}\n.dsh-local-link__diagnostics{margin-top:30px;overflow:hidden;border:1px solid var(--dsw-alias-border-l2,#45484d);border-radius:12px;background:var(--dsw-alias-bg-layer-3,#303236);transition:border-color .16s,background .16s}.dsh-local-link__diagnostics:hover{border-color:var(--dsw-alias-label-dimmed,#74777d)}.dsh-local-link__diagnostics[open]{border-color:var(--dsw-alias-border-l2,#45484d);background:var(--dsw-alias-bg-layer-2,#282a2e)}.dsh-local-link__diagnostics summary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px 16px;box-sizing:border-box;cursor:pointer;list-style:none}.dsh-local-link__diagnostics summary::-webkit-details-marker{display:none}.dsh-local-link__diagnostics summary:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#2878ff);outline-offset:-2px}.dsh-local-link__diagnostics-summary-main,.dsh-local-link__diagnostics-summary-meta{display:flex;align-items:center;min-width:0}.dsh-local-link__diagnostics-summary-main{flex:1;gap:11px}.dsh-local-link__diagnostics-summary-meta{flex:none;gap:12px}.dsh-local-link__diagnostics-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;background:color-mix(in srgb,var(--dsw-alias-brand-primary,#2878ff) 14%,transparent);color:var(--dsw-alias-brand-primary,#2878ff)}.dsh-local-link__diagnostics-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:4px}.dsh-local-link__diagnostics-copy strong{color:var(--dsw-alias-label-primary,#f2f3f5);font:600 15px/1.4 system-ui}.dsh-local-link__diagnostics-copy small{overflow:hidden;color:var(--dsw-alias-label-tertiary,#a6a8ad);font:13px/1.5 system-ui;text-overflow:ellipsis;white-space:nowrap}.dsh-local-link__diagnostics-badge{padding:0;color:var(--dsw-alias-label-tertiary,#a6a8ad);font:400 12px/1.3 system-ui;white-space:nowrap}.dsh-local-link__diagnostics-chevron{flex:none;color:var(--dsw-alias-label-tertiary,#a6a8ad);transition:transform .16s}.dsh-local-link__diagnostics[open] .dsh-local-link__diagnostics-chevron{transform:rotate(180deg)}.dsh-local-link__diagnostics-body{margin:0 16px;padding:12px 0 8px;border-top:1px solid var(--dsw-alias-border-l2,#45484d)}.dsh-local-link__diagnostics-body>p{margin:0 0 12px;color:var(--dsw-alias-label-tertiary,#a6a8ad);font:12px/1.5 system-ui}.dsh-local-link__diagnostics-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.dsh-local-link__diagnostic-list{display:grid;overflow:hidden;border:1px solid var(--dsw-alias-border-l2,#45484d);border-radius:9px;background:var(--dsw-alias-bg-layer-3,#303236)}.dsh-local-link__diagnostic{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:8px;padding:8px 10px;border-top:1px solid var(--dsw-alias-border-l2,#45484d);font:12px/1.35 system-ui}.dsh-local-link__diagnostic:first-child{border-top:0}.dsh-local-link__diagnostic-level{width:7px;height:7px;border-radius:50%;background:#6b7280}.dsh-local-link__diagnostic-level--warn{background:#d28b15}.dsh-local-link__diagnostic-level--error{background:#dc4c4c}.dsh-local-link__diagnostic code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 11px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace}.dsh-local-link__diagnostic time{color:var(--dsw-alias-label-tertiary,#a6a8ad);font-size:11px;white-space:nowrap}.dsh-local-link__diagnostic-context{grid-column:2/-1;overflow:hidden;color:var(--dsw-alias-label-tertiary,#a6a8ad);font:11px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}@media(max-width:540px){.dsh-local-link__diagnostics-copy small{display:none}.dsh-local-link__diagnostics summary{padding-inline:12px}.dsh-local-link__diagnostics-badge{max-width:92px;overflow:hidden;text-overflow:ellipsis}}\n.dsh-local-link__diagnostics,.dsh-local-link__diagnostic-list{border-width:var(--dsh-local-link-border-width)}.dsh-local-link__diagnostics-body,.dsh-local-link__diagnostic{border-top-width:var(--dsh-local-link-border-width)}\n.dsh-local-link__diagnostics:hover{border-color:var(--dsw-alias-border-l2,#45484d);background:var(--dsw-alias-bg-layer-2,#282a2e)}\n.dsh-local-link-footer{position:relative;width:100%;min-width:0}:where(div):has(> .dsh-local-link-footer),:where(div):has(> :where(div) > .dsh-local-link-footer){flex-direction:column;gap:4px}:where(div):has(> .dsh-local-link-footer)>.dsh-local-link-footer+:where(div){margin-block-start:0!important}.dsh-local-link-trigger{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:calc(100% + 4px);height:42px;margin:0 -2px;padding:0 10px 0 8px;border:0;border-radius:12px;background:transparent;color:var(--dsw-alias-label-primary,#16181d);font:400 14px/22px inherit;cursor:pointer;overflow:hidden}.dsh-local-link-trigger:hover{background:var(--dsw-alias-interactive-bg-hover,#e8ebef)}.dsh-local-link-trigger--rail{justify-content:center;gap:0;width:36px;height:36px;margin:0;padding:0;border-radius:50%}.dsh-local-link-trigger__label{white-space:nowrap;overflow:hidden}\n.dsh-local-link-popover{position:fixed;z-index:10000;box-sizing:border-box;width:min(360px,calc(100vw - 24px));height:auto;max-height:calc(100vh - 24px);padding:16px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-subtle,#dce1e8));border-radius:14px;background:var(--dsw-alias-bg-layer-1,#fff);color:var(--dsw-alias-label-primary,#16181d);box-shadow:0 18px 55px #0004}.dsh-local-link-popover__header{display:flex;align-items:center;justify-content:space-between;gap:12px}.dsh-local-link-popover strong{font-size:15px}.dsh-local-link-popover__manage{flex:none;color:var(--dsw-alias-label-secondary,#66707c)}.dsh-local-link-popover p{margin:8px 0;color:var(--dsw-alias-label-secondary,#66707c);font:13px/1.45 system-ui}.dsh-local-link-popover__content{min-height:336px}.dsh-local-link-popover__qr,.dsh-local-link-popover__qr-placeholder{box-sizing:content-box;display:block;width:200px;height:200px;margin:12px auto 0;padding:7px;border-radius:12px}.dsh-local-link-popover__qr{background:#fff;transition:opacity .2s,filter .2s}.dsh-local-link-popover__qr-placeholder{background:var(--dsw-alias-bg-layer-2,#eef1f5)}.dsh-local-link-popover__loading{text-align:center}.dsh-local-link-popover__qr--expired{opacity:.3;filter:grayscale(1)}.dsh-local-link-popover__link{display:flex;align-items:stretch;min-width:0;height:40px;margin-top:12px;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-normal,#cbd2dc));border-radius:10px;overflow:hidden;background:var(--dsw-alias-bg-layer-2,#eef1f5)}.dsh-local-link-popover__link-value{position:relative;display:flex;align-items:center;flex:1;min-width:0;padding:0 8px 0 10px;overflow:hidden;white-space:nowrap;font:11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;mask-image:linear-gradient(to right,#000 76%,transparent 98%);-webkit-mask-image:linear-gradient(to right,#000 76%,transparent 98%)}.dsh-local-link-popover__copy{min-width:76px;padding:0 11px;border:0;border-left:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-normal,#cbd2dc));border-radius:0;transition:background .18s,color .18s}.dsh-local-link-popover__copy--copied{background:#16803a22;color:#39a85b}.dsh-local-link-popover__meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;color:var(--dsw-alias-label-secondary,#66707c);font:11px/1.35 system-ui}.dsh-local-link-popover__regenerate{display:flex;width:100%;margin-top:10px}.dsh-local-link-popover__error{color:#c53030!important}\n.dsh-local-link__diagnostic-level{background:var(--dsw-alias-label-tertiary,#6b7280)}\n.dsh-local-link__diagnostic-level--warn{background:var(--dsw-alias-state-warn-primary,#d28b15)}\n.dsh-local-link__diagnostic-level--error{background:var(--dsw-alias-state-error-primary,#dc4c4c)}\n.dsh-local-link-popover{box-shadow:var(--dsw-shadow-lv3,0 18px 55px #0004)}\n.dsh-local-link-popover__content{min-height:350px}\n.dsh-local-link-popover__qr{background:var(--dsw-static-neutral-00,#fff)}\n.dsh-local-link-popover__copy--copied{background:var(--dsw-alias-state-success-tertiary,#16803a22);color:var(--dsw-alias-state-success-primary,#39a85b)}\n.dsh-local-link-popover__error{color:var(--dsw-alias-state-error-primary,#c53030)!important}\n`\n\nfunction LocalLinkFooter({ wide, t, getCurrentSessionId }: LocalLinkFooterProps): React.JSX.Element | null {\n const desktop = desktopOrigin()\n const root = useRef<HTMLDivElement>(null)\n const popover = useRef<HTMLElement>(null)\n const [open, setOpen] = useState(false)\n const [popoverPosition, setPopoverPosition] = useState<PopoverPosition>()\n const [pairing, setPairing] = useState<Pairing>()\n const [remaining, setRemaining] = useState(0)\n const [copyState, setCopyState] = useState<'idle' | 'copied' | 'error'>('idle')\n const [error, setError] = useState(false)\n const copyReset = useRef<number | undefined>(undefined)\n\n const createLink = useCallback(async () => {\n setPairing(undefined)\n setRemaining(0)\n setCopyState('idle')\n setError(false)\n try {\n const nextPairing = await jsonRequest<Pairing>('/__dsh-local-link/admin/pairing', {\n method: 'POST',\n body: JSON.stringify({ sessionId: getCurrentSessionId() }),\n })\n setPairing(nextPairing)\n setRemaining(secondsUntil(nextPairing.expiresAt))\n } catch { setError(true) }\n }, [getCurrentSessionId])\n\n const copyLink = useCallback(async () => {\n if (pairing === undefined || remaining === 0) return\n try {\n await navigator.clipboard.writeText(pairing.url)\n setCopyState('copied')\n if (copyReset.current !== undefined) window.clearTimeout(copyReset.current)\n copyReset.current = window.setTimeout(() => setCopyState('idle'), 1_800)\n } catch {\n setCopyState('error')\n reportActionError('CLIPBOARD_COPY_FAILED')\n }\n }, [pairing, remaining])\n\n useEffect(() => {\n if (!open || pairing === undefined) return\n let disposed = false\n const update = (): void => setRemaining(secondsUntil(pairing.expiresAt))\n const check = async (): Promise<void> => {\n try {\n const result = await jsonRequest<PairingState>(`/__dsh-local-link/admin/pairing/status?id=${encodeURIComponent(pairing.id)}`)\n if (!disposed && result.status === 'consumed') setOpen(false)\n } catch { /* A transient status failure must not replace a still-visible invitation. */ }\n }\n update()\n void check()\n const countdownTimer = window.setInterval(update, 1_000)\n const statusTimer = window.setInterval(() => void check(), 2_000)\n return () => {\n disposed = true\n window.clearInterval(countdownTimer)\n window.clearInterval(statusTimer)\n }\n }, [open, pairing])\n\n useEffect(() => () => {\n if (copyReset.current !== undefined) window.clearTimeout(copyReset.current)\n }, [])\n\n useEffect(() => {\n if (!open) return\n const close = (event: PointerEvent): void => { if (!root.current?.contains(event.target as Node)) setOpen(false) }\n const escape = (event: KeyboardEvent): void => { if (event.key === 'Escape') setOpen(false) }\n document.addEventListener('pointerdown', close)\n window.addEventListener('keydown', escape)\n return () => {\n document.removeEventListener('pointerdown', close)\n window.removeEventListener('keydown', escape)\n }\n }, [open])\n\n useEffect(() => {\n if (!open) {\n setPopoverPosition(undefined)\n return\n }\n const position = (): void => {\n const anchorRect = root.current?.getBoundingClientRect()\n const popoverRect = popover.current?.getBoundingClientRect()\n if (anchorRect === undefined || popoverRect === undefined) return\n const viewportGutter = 12\n const preferredLeft = anchorRect.right + 20\n const left = preferredLeft + popoverRect.width <= window.innerWidth - viewportGutter\n ? preferredLeft\n : Math.max(viewportGutter, window.innerWidth - popoverRect.width - viewportGutter)\n const top = Math.max(viewportGutter, Math.round((window.innerHeight - popoverRect.height) / 2))\n setPopoverPosition({ left: Math.round(left), top })\n }\n const frame = window.requestAnimationFrame(position)\n const observer = new ResizeObserver(position)\n if (popover.current !== null) observer.observe(popover.current)\n window.addEventListener('resize', position)\n return () => {\n window.cancelAnimationFrame(frame)\n observer.disconnect()\n window.removeEventListener('resize', position)\n }\n }, [open])\n\n if (!desktop) return null\n return <div className=\"dsh-local-link-footer\" ref={root}>\n <Button className={`dsh-local-link-trigger${wide ? '' : ' dsh-local-link-trigger--rail'}`} size=\"md\" variant=\"ghost\" title={t('footer.trigger')} aria-label={t('footer.trigger')} aria-expanded={open} onClick={() => {\n const next = !open\n setOpen(next)\n if (next) void createLink()\n }}>\n <svg aria-hidden=\"true\" width={wide ? 16 : 18} height={wide ? 16 : 18} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\"><rect x=\"5\" y=\"2.5\" width=\"14\" height=\"19\" rx=\"2.5\"/><path d=\"M9 5.5h6M11 18.5h2\"/></svg>\n {wide && <span className=\"dsh-local-link-trigger__label\">{t('footer.trigger')}</span>}\n </Button>\n {open && <section className=\"dsh-local-link-popover\" ref={popover} style={popoverPosition ?? { visibility: 'hidden' }} aria-label={t('connect.title')}>\n <div className=\"dsh-local-link-popover__header\">\n <strong>{t('connect.title')}</strong>\n <Button className=\"dsh-local-link-popover__manage\" size=\"sm\" variant=\"ghost\" onClick={() => { setOpen(false); openSettingsSection(t('nav')) }}>{t('connect.pairedDevices')}</Button>\n </div>\n <p>{t('connect.description')}</p>\n <div className=\"dsh-local-link-popover__content\" aria-busy={pairing === undefined && !error} aria-live=\"polite\">\n {!pairing && !error && <>\n <div aria-hidden=\"true\" className=\"dsh-local-link-popover__qr-placeholder\" />\n <p className=\"dsh-local-link-popover__loading\">{t('connect.creating')}</p>\n </>}\n {error && <p className=\"dsh-local-link-popover__error\">{t('connect.error')}</p>}\n {pairing && <>\n <img className={`dsh-local-link-popover__qr${remaining === 0 ? ' dsh-local-link-popover__qr--expired' : ''}`} src={pairing.qrDataUrl} alt={t('connect.qrAlt')} />\n <div className=\"dsh-local-link-popover__link\" aria-label={t('connect.linkLabel')}>\n <code className=\"dsh-local-link-popover__link-value\" title={pairing.url}>{pairing.url}</code>\n <Button className={`dsh-local-link-popover__copy${copyState === 'copied' ? ' dsh-local-link-popover__copy--copied' : ''}`} disabled={remaining === 0} size=\"md\" variant=\"ghost\" onClick={() => void copyLink()}>{copyState === 'copied' ? t('connect.copied') : t('connect.copy')}</Button>\n </div>\n {copyState === 'error' && <p className=\"dsh-local-link-popover__error\">{t('connect.copyError')}</p>}\n <div className=\"dsh-local-link-popover__meta\">\n <span>{t('connect.oneDevice')}</span>\n <span>{remaining === 0 ? t('connect.expired') : `${t('connect.expiresIn')} ${formatCountdown(remaining)}`}</span>\n </div>\n <Button className=\"dsh-local-link-popover__regenerate\" size=\"md\" variant=\"outline\" onClick={() => void createLink()}>{t('connect.regenerate')}</Button>\n </>}\n </div>\n </section>}\n </div>\n}\n\nfunction LocalLinkSettings({ t }: PropsLocale<typeof NS>): React.JSX.Element {\n const [status, setStatus] = useState<Status>()\n const [diagnostics, setDiagnostics] = useState<DiagnosticEvent[]>()\n const [busyId, setBusyId] = useState<string>()\n const [editingId, setEditingId] = useState<string>()\n const [draftName, setDraftName] = useState('')\n const [error, setError] = useState(false)\n const [diagnosticsError, setDiagnosticsError] = useState(false)\n const [diagnosticsBusy, setDiagnosticsBusy] = useState(false)\n const [reportState, setReportState] = useState<'idle' | 'copied' | 'error'>('idle')\n\n const loadDevices = useCallback(async () => {\n try {\n const payload = await jsonRequest<StatusPayload>('/__dsh-local-link/admin/devices')\n setStatus({ devices: normalizeDevices(payload) })\n setError(false)\n } catch { setError(true) }\n }, [])\n\n const loadDiagnostics = useCallback(async () => {\n try {\n const payload = await jsonRequest<DiagnosticsPayload>('/__dsh-local-link/admin/diagnostics')\n setDiagnostics(normalizeDiagnostics(payload))\n setDiagnosticsError(false)\n } catch { setDiagnosticsError(true) }\n }, [])\n\n useEffect(() => { void loadDevices(); void loadDiagnostics() }, [loadDevices, loadDiagnostics])\n\n const revoke = async (id: string): Promise<void> => {\n setBusyId(id)\n try {\n await jsonRequest('/__dsh-local-link/admin/revoke', { method: 'POST', body: JSON.stringify({ id }) })\n await loadDevices()\n } catch {\n setError(true)\n reportActionError('DEVICE_REVOKE_FAILED')\n }\n finally { setBusyId(undefined) }\n }\n\n const rename = async (id: string): Promise<void> => {\n setBusyId(id)\n try {\n await jsonRequest('/__dsh-local-link/admin/rename', { method: 'POST', body: JSON.stringify({ id, name: draftName }) })\n setEditingId(undefined)\n await loadDevices()\n } catch {\n setError(true)\n reportActionError('DEVICE_RENAME_FAILED')\n }\n finally { setBusyId(undefined) }\n }\n\n const copyDiagnostics = async (): Promise<void> => {\n try {\n await navigator.clipboard.writeText(JSON.stringify({\n schemaVersion: 1,\n exportedAt: new Date().toISOString(),\n events: diagnostics ?? [],\n }, null, 2))\n setReportState('copied')\n } catch { setReportState('error') }\n }\n\n const clearDiagnostics = async (): Promise<void> => {\n if (!window.confirm(t('diagnostics.clearConfirm'))) return\n setDiagnosticsBusy(true)\n try {\n await jsonRequest('/__dsh-local-link/admin/diagnostics/clear', { method: 'POST', body: '{}' })\n setDiagnostics([])\n setDiagnosticsError(false)\n setReportState('idle')\n } catch { setDiagnosticsError(true) }\n finally { setDiagnosticsBusy(false) }\n }\n\n return <section className=\"dsh-local-link\">\n <h2>{t('devices.title')}</h2>\n <p>{t('devices.description')}</p>\n <div className=\"dsh-local-link__devices\" role=\"list\">\n {error ? <p>{t('devices.error')}</p> : status === undefined ? <p>{t('devices.loading')}</p> : status.devices.length ? status.devices.map(device => <div className=\"dsh-local-link__device\" key={device.id} role=\"listitem\">\n {editingId === device.id ? <div className=\"dsh-local-link__device-editor\">\n <Input autoFocus aria-label={t('devices.nameLabel')} className=\"dsh-local-link__device-name-input\" maxLength={64} value={draftName} onChange={event => setDraftName(event.target.value)} onKeyDown={event => { if (event.key === 'Enter') void rename(device.id); if (event.key === 'Escape') setEditingId(undefined) }} />\n <Button disabled={busyId !== undefined} size=\"sm\" variant=\"primary\" onClick={() => void rename(device.id)}>{busyId === device.id ? t('devices.saving') : t('devices.save')}</Button>\n <Button disabled={busyId !== undefined} size=\"sm\" variant=\"ghost\" onClick={() => setEditingId(undefined)}>{t('devices.cancel')}</Button>\n </div> : <>\n <div className=\"dsh-local-link__device-info\"><strong>{device.name}</strong><small>{device.deviceType} · {device.browser}</small></div>\n <div className=\"dsh-local-link__device-actions\">\n <Button disabled={busyId !== undefined} size=\"sm\" variant=\"outline\" onClick={() => { setEditingId(device.id); setDraftName(device.name) }}>{t('devices.rename')}</Button>\n <Button disabled={busyId !== undefined} size=\"sm\" variant=\"outline\" onClick={() => void revoke(device.id)}>{busyId === device.id ? t('devices.revoking') : t('devices.revoke')}</Button>\n </div>\n </>}\n </div>) : <p>{t('devices.empty')}</p>}\n </div>\n <details className=\"dsh-local-link__diagnostics\">\n <summary>\n <span className=\"dsh-local-link__diagnostics-summary-main\">\n <span className=\"dsh-local-link__diagnostics-icon\" aria-hidden=\"true\">\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\"><path d=\"M3 12h4l2.2-6 4.2 12 2.1-6H21\"/></svg>\n </span>\n <span className=\"dsh-local-link__diagnostics-copy\">\n <strong>{t('diagnostics.title')}</strong>\n <small>{t('diagnostics.subtitle')}</small>\n </span>\n </span>\n <span className=\"dsh-local-link__diagnostics-summary-meta\">\n <span className=\"dsh-local-link__diagnostics-badge\">{diagnosticsError ? t('diagnostics.unavailable') : diagnostics === undefined ? t('diagnostics.loading') : `${diagnostics.length} ${t('diagnostics.events')}`}</span>\n <IconChevronDownOutline14 className=\"dsh-local-link__diagnostics-chevron\" size={14} />\n </span>\n </summary>\n <div className=\"dsh-local-link__diagnostics-body\">\n <p>{t('diagnostics.description')}</p>\n <div className=\"dsh-local-link__diagnostics-actions\">\n <Button disabled={diagnosticsBusy} size=\"sm\" variant=\"outline\" onClick={() => void loadDiagnostics()}>{t('diagnostics.refresh')}</Button>\n <Button disabled={diagnosticsBusy || diagnostics === undefined} size=\"sm\" variant=\"outline\" onClick={() => void copyDiagnostics()}>{reportState === 'copied' ? t('diagnostics.copied') : t('diagnostics.copy')}</Button>\n <Button disabled={diagnosticsBusy || diagnostics === undefined || diagnostics.length === 0} size=\"sm\" variant=\"outline\" onClick={() => void clearDiagnostics()}>{diagnosticsBusy ? t('diagnostics.clearing') : t('diagnostics.clear')}</Button>\n </div>\n {reportState === 'error' && <p>{t('diagnostics.copyError')}</p>}\n {diagnosticsError ? <p>{t('diagnostics.error')}</p> : diagnostics === undefined ? <p>{t('diagnostics.loading')}</p> : diagnostics.length === 0 ? <p>{t('diagnostics.empty')}</p> : <div className=\"dsh-local-link__diagnostic-list\" role=\"list\">\n {diagnostics.slice(0, 12).map(event => <div className=\"dsh-local-link__diagnostic\" key={event.id} role=\"listitem\">\n <span className={`dsh-local-link__diagnostic-level dsh-local-link__diagnostic-level--${event.level}`} title={event.level} />\n <code>{event.code}</code>\n <time dateTime={event.at}>{new Date(event.at).toLocaleTimeString()}</time>\n {event.context !== undefined && <span className=\"dsh-local-link__diagnostic-context\" title={JSON.stringify(event.context)}>{Object.entries(event.context).map(([key, value]) => `${key}=${String(value)}`).join(' · ')}</span>}\n </div>)}\n </div>}\n </div>\n </details>\n </section>\n}\n\nexport const MOBILE_VIEW_MEDIA_QUERY = '(max-width: 834px)'\n\ninterface DisposableFiber {\n dispose: () => void | Promise<void>\n}\n\n/**\n * Mount the mobile root in its own Cordis fiber while the viewport is narrow.\n * Disposing that fiber retracts every mobile slot contribution atomically and\n * lets Harness' shipped root win again on wider screens.\n */\nexport function installResponsiveMobileLayout(\n media: MediaQueryList,\n mount: () => DisposableFiber,\n): () => void {\n let fiber: DisposableFiber | undefined\n let disposed = false\n let reconciling = false\n let requested = media.matches\n\n const reconcile = async (): Promise<void> => {\n if (reconciling || disposed) return\n reconciling = true\n try {\n while (!disposed) {\n if (requested && fiber === undefined) {\n fiber = mount()\n continue\n }\n if (!requested && fiber !== undefined) {\n const mounted = fiber\n fiber = undefined\n await mounted.dispose()\n continue\n }\n break\n }\n } finally {\n reconciling = false\n }\n }\n\n const onChange = (event: MediaQueryListEvent): void => {\n requested = event.matches\n void reconcile()\n }\n media.addEventListener('change', onChange)\n void reconcile()\n\n return () => {\n disposed = true\n media.removeEventListener('change', onChange)\n const mounted = fiber\n fiber = undefined\n if (mounted !== undefined) void mounted.dispose()\n }\n}\n\nexport const inject = ['slots', 'theme', 'locale', 'sessions', 'sessionLogDownload', 'layout']\n\nexport function apply(ctx: ClientContext): void {\n ctx.effect(() => ctx.locale.register(NS, { en, zh }), 'dsh-local-link: locale dictionaries')\n\n ctx.effect(() => installResponsiveMobileLayout(\n window.matchMedia(MOBILE_VIEW_MEDIA_QUERY),\n () => ctx.plugin(applyResponsiveMobileEnhancements),\n ), 'dsh-local-link: responsive mobile root')\n\n ctx.effect(() => {\n const style = document.createElement('style')\n style.dataset.plugin = 'dsh-local-link'\n style.textContent = styles\n document.head.append(style)\n return () => style.remove()\n }, 'dsh-local-link: interface styles')\n\n ctx.effect(() => {\n const getCurrentSessionId = (): string | undefined => ctx.sessions.list.getSnapshot().current\n const Footer = (props: FooterProps): React.JSX.Element => <LocalLinkFooter {...props} getCurrentSessionId={getCurrentSessionId} />\n return ctx.slots.inject('sidebar.footer.action', () => ctx.slots.register({\n name: 'sidebar.footer.action',\n id: 'local-link-connect',\n order: -10,\n locale: NS,\n }, Footer))\n }, 'dsh-local-link: sidebar connection action')\n\n ctx.effect(() => {\n if (!desktopOrigin()) return () => undefined\n return ctx.slots.inject('settings.section', () => ctx.slots.register({\n name: 'settings.section',\n id: 'local-access-devices',\n order: 12,\n label: () => ctx.locale.bind(NS)('nav'),\n locale: NS,\n }, LocalLinkSettings))\n }, 'dsh-local-link: paired devices settings')\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEA,MAAM,YAAY;GAChB;GACA;GACA;GACA;GACA;GACA;EACF,CAAC,CAAC,KAAK,GAAG;;EAGV,SAAgB,gBAAgB,MAAe,OAA2C;GACxF,MAAM,UAAA,GAASA,MAAAA,OAAAA,CAAoB,IAAI;GACvC,MAAM,YAAA,GAAWA,MAAAA,OAAAA,CAAO,KAAK;GAC7B,SAAS,UAAU;GAEnB,CAAA,GAAA,MAAA,UAAA,OAAgB;IACd,IAAI,CAAC,MAAM;IACX,MAAM,WAAW,SAAS,yBAAyB,cAAc,SAAS,gBAAgB,KAAA;IAC1F,MAAM,QAAQ,OAAO,4BAA4B;KAE9C,CADa,OAAO,SAAS,cAA2B,SAAS,KACvD,OAAO,QAAA,EAAU,MAAM,EAAE,eAAe,KAAK,CAAC;IAC3D,CAAC;IACD,MAAM,aAAa,UAA+B;KAChD,IAAI,MAAM,QAAQ,UAAU;MAC1B,MAAM,eAAe;MACrB,SAAS,QAAQ;MACjB;KACF;KACA,IAAI,MAAM,QAAQ,SAAS,OAAO,YAAY,MAAM;KACpD,MAAM,YAAY,CAAC,GAAG,OAAO,QAAQ,iBAA8B,SAAS,CAAC,CAAC,CAC3E,QAAO,YAAW,CAAC,QAAQ,UAAU,QAAQ,eAAe,CAAC,CAAC,SAAS,CAAC;KAC3E,IAAI,UAAU,WAAW,GAAG;MAC1B,MAAM,eAAe;MACrB,OAAO,QAAQ,MAAM,EAAE,eAAe,KAAK,CAAC;MAC5C;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;KACN,IAAI;KACJ,OAAO;KACP,aAAa,IAAI,OAAO,KAAK,EAAE,CAAC,CAAC,KAAK;KACtC,QAAQ;IACV,GAAG,iBAAiB,CAAC;GACvB,GAAG,yCAAyC;EAC9C"}
1
+ {"version":3,"file":"client.js","names":["useRef","NS","useMemo","Button","StateDot","IconChevronRightOutline14","useRef","React","useSyncExternalStore","useState","IconCloseOutline16","NS","useSyncExternalStore","Button","IconCloseOutline16","IconFolderOpenOutline16","IconAgentPresetOutline16","IconDataOutline16","IconDownloadOutline16","NS","useSyncExternalStore","Button","IconDarkOutline16","IconLightOutline16","useRef","useState","useCallback","Button","Input","IconChevronDownOutline14"],"sources":["../src/mobile-dialog.ts","../src/mobile-subagents.tsx","../src/mobile-session-info.tsx","../src/mobile-layout.tsx","../src/locales/en.json","../src/locales/zh.json","../src/client.tsx"],"sourcesContent":["import { useEffect, useRef, type RefObject } from 'react'\n\nconst FOCUSABLE = [\n 'button:not([disabled])',\n 'a[href]',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',')\n\n/** Focus lifecycle for plugin-owned mobile modal surfaces. */\nexport function useMobileDialog(open: boolean, close: () => void): RefObject<HTMLElement> {\n const dialog = useRef<HTMLElement>(null)\n const closeRef = useRef(close)\n closeRef.current = close\n\n useEffect(() => {\n if (!open) return\n const previous = document.activeElement instanceof HTMLElement ? document.activeElement : undefined\n const frame = window.requestAnimationFrame(() => {\n const first = dialog.current?.querySelector<HTMLElement>(FOCUSABLE)\n ;(first ?? dialog.current)?.focus({ preventScroll: true })\n })\n const onKeyDown = (event: KeyboardEvent): void => {\n if (event.key === 'Escape') {\n event.preventDefault()\n closeRef.current()\n return\n }\n if (event.key !== 'Tab' || dialog.current === null) return\n const focusable = [...dialog.current.querySelectorAll<HTMLElement>(FOCUSABLE)]\n .filter(element => !element.hidden && element.getClientRects().length > 0)\n if (focusable.length === 0) {\n event.preventDefault()\n dialog.current.focus({ preventScroll: true })\n return\n }\n const first = focusable[0]\n const last = focusable.at(-1)\n if (event.shiftKey && document.activeElement === first) {\n event.preventDefault()\n last?.focus({ preventScroll: true })\n } else if (!event.shiftKey && document.activeElement === last) {\n event.preventDefault()\n first?.focus({ preventScroll: true })\n }\n }\n window.addEventListener('keydown', onKeyDown)\n return () => {\n window.cancelAnimationFrame(frame)\n window.removeEventListener('keydown', onKeyDown)\n if (previous?.isConnected === true) previous.focus({ preventScroll: true })\n }\n }, [open])\n\n return dialog\n}\n","import React, { useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react'\nimport type { SessionListState, SessionSummary } from '@deepseek-ai/dsh-api-session-controller/client'\nimport type { SessionId } from '@deepseek-ai/dsh-client-connection/client'\nimport type { SubagentAddress, SubagentListEntry } from '@deepseek-ai/dsh-subagent/client'\nimport type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-layout/client'\nimport { Button, IconChevronRightOutline14, IconCloseOutline16, StateDot } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { ClientContext } from './client-context.js'\nimport { useMobileDialog } from './mobile-dialog.js'\n\nconst NS = 'dsh.localLink'\nexport const MOBILE_SUBAGENT_DOCK_ID = 'dsh-local-link.mobile-subagents'\nexport const MOBILE_SUBAGENT_OVERLAY_ID = 'dsh-local-link.mobile-subagent-sheet'\nexport const MOBILE_SUBAGENT_LINEAGE_PRIORITY = -100\n\ninterface SubagentMetrics {\n readonly count: number\n readonly runningCount: number\n}\n\ninterface TokenUsageProjection {\n readonly uncachedInputTokens: number\n readonly outputTokens: number\n readonly cacheReadTokens: number\n readonly cacheWriteTokens: number\n}\n\ninterface SubagentTimingProjection {\n readonly settledMs: number\n readonly active?: {\n readonly since: number\n readonly through: number\n }\n}\n\ninterface MobileSubagentProjections {\n readonly tokenUsage?: TokenUsageProjection\n readonly subagentTiming?: SubagentTimingProjection\n}\n\nfunction mobileSubagentProjections(summary: SessionSummary | undefined): MobileSubagentProjections {\n return (summary?.projectionValues ?? {}) as unknown as MobileSubagentProjections\n}\n\n/** Compact token count, matching the stock Harness subagent catalog. */\nexport function formatMobileSubagentTokens(value: number): string {\n const scaled = (next: number): string => next >= 100 ? String(Math.round(next)) : String(Math.round(next * 10) / 10)\n if (value < 1_000) return String(value)\n if (value < 1_000_000) return `${scaled(value / 1_000)}K`\n return `${scaled(value / 1_000_000)}M`\n}\n\n/** Sum the four disjoint durable provider-usage buckets used by Harness. */\nexport function mobileSubagentTokenTotal(usage: TokenUsageProjection | undefined): number | undefined {\n return usage === undefined\n ? undefined\n : usage.uncachedInputTokens + usage.outputTokens + usage.cacheReadTokens + usage.cacheWriteTokens\n}\n\n/** Active-turn duration, including settled spans, matching the stock catalog. */\nexport function mobileSubagentActivityDuration(\n summary: SessionSummary | undefined,\n activity: 'running' | 'inactive',\n now: number,\n): number | undefined {\n const timing = mobileSubagentProjections(summary).subagentTiming\n if (timing === undefined) return undefined\n if (timing.active === undefined) return timing.settledMs\n const end = activity === 'running' ? now : timing.active.through\n return timing.settledMs + Math.max(0, end - timing.active.since)\n}\n\nfunction formatMobileSubagentDuration(ms: number): string {\n const totalSeconds = Math.floor(Math.max(0, ms) / 1_000)\n const seconds = totalSeconds % 60\n const totalMinutes = Math.floor(totalSeconds / 60)\n const minutes = totalMinutes % 60\n const totalHours = Math.floor(totalMinutes / 60)\n const hours = totalHours % 24\n const days = Math.floor(totalHours / 24)\n if (days > 0) return `${days}d ${hours}h`\n if (totalHours > 0) return `${totalHours}h ${String(minutes).padStart(2, '0')}m`\n if (totalMinutes > 0) return `${totalMinutes}m ${String(seconds).padStart(2, '0')}s`\n return `${seconds}s`\n}\n\ninterface SheetSnapshot {\n readonly rootSessionId?: SessionId\n}\n\nclass MobileSubagentController {\n private snapshot: SheetSnapshot = Object.freeze({})\n private readonly listeners = new Set<() => void>()\n\n readonly subscribe = (listener: () => void): (() => void) => {\n this.listeners.add(listener)\n return () => this.listeners.delete(listener)\n }\n\n readonly getSnapshot = (): SheetSnapshot => this.snapshot\n\n open(rootSessionId: SessionId): void {\n this.update(Object.freeze({ rootSessionId }))\n }\n\n close(): void {\n this.update(Object.freeze({}))\n }\n\n private update(snapshot: SheetSnapshot): void {\n if (snapshot.rootSessionId === this.snapshot.rootSessionId) return\n this.snapshot = snapshot\n for (const listener of this.listeners) listener()\n }\n}\n\ninterface SubagentActions {\n readonly open: (address: SubagentAddress) => void\n readonly refresh: (parentSessionId: SessionId) => Promise<void>\n readonly observe: (parentSessionId: SessionId, open: boolean) => void\n}\n\ntype TriggerProps = PropsRuntime<'conversation.input.dock'>\n & PropsLocale<typeof NS>\n & { readonly controller: MobileSubagentController }\n\ntype SheetProps = PropsRuntime<'shell.overlay'>\n & PropsLocale<typeof NS>\n & { readonly actions: SubagentActions; readonly controller: MobileSubagentController }\n\ntype LineageProps = PropsRuntime<'conversation.session.header.lineage'>\n & PropsLocale<typeof NS>\n\n/** Resolve the catalog shown for an ordinary session or its currently opened child. */\nexport function mobileSubagentRoot(sessionId: SessionId, summaries: Readonly<Record<SessionId, SessionSummary>>): SessionId {\n const summary = summaries[sessionId]\n return summary?.origin === 'subagent' && summary.parentId !== undefined ? summary.parentId : sessionId\n}\n\n/** Count the uninterrupted subagent-origin tree without creating a second data store. */\nexport function mobileSubagentMetrics(rootSessionId: SessionId, summaries: Readonly<Record<SessionId, SessionSummary>>): SubagentMetrics {\n let count = 0\n let runningCount = 0\n for (const summary of Object.values(summaries)) {\n if (summary.origin !== 'subagent') continue\n let cursor: SessionSummary | undefined = summary\n const visited = new Set<SessionId>()\n while (cursor?.origin === 'subagent' && cursor.parentId !== undefined && !visited.has(cursor.id)) {\n visited.add(cursor.id)\n if (cursor.parentId === rootSessionId) {\n count += 1\n if (summary.running) runningCount += 1\n break\n }\n cursor = summaries[cursor.parentId]\n }\n }\n return Object.freeze({ count, runningCount })\n}\n\nfunction directCatalogMetrics(rootSessionId: SessionId, catalogs: SessionListState['subagentsByParent']): SubagentMetrics {\n const entries = catalogs[rootSessionId]?.entries ?? []\n const healthy = entries.filter((entry): entry is Extract<SubagentListEntry, { kind: 'child' }> => entry.kind === 'child')\n return {\n count: healthy.length,\n runningCount: healthy.filter(entry => entry.activity === 'running').length,\n }\n}\n\nfunction MobileSubagentTrigger({ controller, sessionId, t, useSessions }: TriggerProps): React.JSX.Element | null {\n const summaries = useSessions((state: SessionListState) => state.byId)\n const catalogs = useSessions((state: SessionListState) => state.subagentsByParent)\n const rootSessionId = mobileSubagentRoot(sessionId, summaries)\n const metrics = useMemo(() => mobileSubagentMetrics(rootSessionId, summaries), [rootSessionId, summaries])\n const direct = useMemo(() => directCatalogMetrics(rootSessionId, catalogs), [catalogs, rootSessionId])\n const count = Math.max(metrics.count, direct.count)\n const runningCount = Math.max(metrics.runningCount, direct.runningCount)\n if (count === 0) return null\n const label = t('mobile.subagents.total', { count })\n const activityLabel = t('mobile.subagents.running', { count: runningCount })\n return <Button aria-label={`${label}. ${activityLabel}`} className=\"dllm-subagent-chip\" size=\"md\" variant=\"outline\" onClick={() => controller.open(rootSessionId)}>\n <span aria-hidden=\"true\" className=\"dllm-subagent-activity\"><StateDot state={runningCount > 0 ? 'ongoing' : 'done'} /></span>\n <span>{label}</span>\n <span aria-hidden=\"true\" className=\"dllm-subagent-running\">{activityLabel}</span>\n <IconChevronRightOutline14 className=\"dllm-subagent-chevron\" size={14} />\n </Button>\n}\n\nfunction MobileLineageTitle({ displayTitle, lineageSessionId, openTitle, useSessions }: LineageProps): React.JSX.Element | null {\n const summary = useSessions((state: SessionListState) => state.byId[lineageSessionId])\n const currentRef = useRef<HTMLSpanElement>(null)\n useEffect(() => {\n if (summary?.origin === 'subagent' && openTitle === undefined) {\n currentRef.current?.scrollIntoView({ block: 'nearest', inline: 'end' })\n }\n }, [lineageSessionId, openTitle, summary?.origin])\n if (summary?.origin !== 'subagent') return null\n if (openTitle !== undefined) return <Button className=\"dllm-lineage-title dllm-lineage-ancestor\" size=\"sm\" variant=\"ghost\" onClick={openTitle}>{displayTitle}</Button>\n return <span className=\"dllm-lineage-current\" ref={currentRef}>\n <span className=\"dllm-lineage-title\">{displayTitle}</span>\n </span>\n}\n\ninterface CatalogRowsProps {\n readonly actions: SubagentActions\n readonly catalogs: SessionListState['subagentsByParent']\n readonly expanded: ReadonlySet<SessionId>\n readonly level: number\n readonly onOpen: (address: SubagentAddress) => void\n readonly onToggle: (parentSessionId: SessionId, open: boolean) => void\n readonly parentSessionId: SessionId\n readonly summaries: SessionListState['byId']\n readonly t: TriggerProps['t']\n}\n\nfunction CatalogRows({ actions, catalogs, expanded, level, onOpen, onToggle, parentSessionId, summaries, t, now }: CatalogRowsProps & { readonly now: number }): React.JSX.Element {\n const catalog = catalogs[parentSessionId]\n if (catalog === undefined || catalog.state === 'loading') {\n return <div className=\"dllm-subagent-state\">{t('mobile.subagents.loading')}</div>\n }\n if (catalog.state === 'error') {\n return <div className=\"dllm-subagent-state dllm-subagent-error\">\n <span>{t('mobile.subagents.error')}</span>\n <Button size=\"sm\" variant=\"outline\" onClick={() => void actions.refresh(parentSessionId)}>{t('mobile.subagents.retry')}</Button>\n </div>\n }\n if (catalog.entries.length === 0) return <div className=\"dllm-subagent-state\">{t('mobile.subagents.empty')}</div>\n return <div className=\"dllm-subagent-tree\" role=\"tree\">\n {catalog.entries.map(entry => {\n if (entry.kind === 'diagnostic') {\n return <div className=\"dllm-subagent-row dllm-subagent-disabled\" key={entry.id} style={{ '--dllm-level': level } as React.CSSProperties}>\n <span className=\"dllm-subagent-row-main\"><strong>{t('mobile.subagents.unavailable')}</strong><small>{entry.reason}</small></span>\n </div>\n }\n const open = expanded.has(entry.id)\n const summary = summaries[entry.id]\n const title = entry.label ?? summary?.displayTitle ?? entry.id\n const mode = t(entry.mode === 'continuable' ? 'mobile.subagents.continuable' : 'mobile.subagents.oneShot')\n const activity = t(entry.activity === 'running' ? 'mobile.subagents.active' : 'mobile.subagents.inactive')\n const secondary = [summary?.title, mode, activity].filter((value): value is string => value !== undefined).join(' · ')\n const totalTokens = mobileSubagentTokenTotal(mobileSubagentProjections(summary).tokenUsage)\n const duration = mobileSubagentActivityDuration(summary, entry.activity, now)\n const address: SubagentAddress = {\n parentSessionId,\n childSessionId: entry.id,\n mode: entry.mode,\n }\n return <React.Fragment key={entry.id}>\n <div className=\"dllm-subagent-row\" role=\"treeitem\" aria-expanded={entry.hasChildren ? open : undefined} style={{ '--dllm-level': level } as React.CSSProperties}>\n {entry.hasChildren\n ? <Button aria-label={open ? t('mobile.subagents.collapse') : t('mobile.subagents.expand')} className=\"dllm-subagent-expand\" size=\"sm\" variant=\"ghost\" onClick={() => onToggle(entry.id, !open)}>\n <IconChevronRightOutline14 size={14} />\n </Button>\n : <span className=\"dllm-subagent-expand-space\" />}\n <Button className=\"dllm-subagent-row-main\" size=\"md\" variant=\"ghost\" onClick={() => onOpen(address)}>\n <StateDot state={entry.activity === 'running' ? 'ongoing' : 'done'} />\n <span className=\"dllm-subagent-content\"><strong>{title}</strong><small>{secondary}</small></span>\n {(totalTokens !== undefined || duration !== undefined) && <span className=\"dllm-subagent-metrics\">\n {totalTokens !== undefined && <span>{formatMobileSubagentTokens(totalTokens)} tok</span>}\n {duration !== undefined && <span>{formatMobileSubagentDuration(duration)}</span>}\n </span>}\n </Button>\n </div>\n {entry.hasChildren && open && <CatalogRows\n actions={actions}\n catalogs={catalogs}\n expanded={expanded}\n level={level + 1}\n onOpen={onOpen}\n onToggle={onToggle}\n parentSessionId={entry.id}\n summaries={summaries}\n t={t}\n now={now}\n />}\n </React.Fragment>\n })}\n </div>\n}\n\nfunction MobileSubagentSheet({ actions, controller, t, useSessions }: SheetProps): React.JSX.Element | null {\n const snapshot = useSyncExternalStore(controller.subscribe, controller.getSnapshot)\n const rootSessionId = snapshot.rootSessionId\n const catalogs = useSessions((state: SessionListState) => state.subagentsByParent)\n const summaries = useSessions((state: SessionListState) => state.byId)\n const [expanded, setExpanded] = useState<ReadonlySet<SessionId>>(() => new Set())\n const [now, setNow] = useState(() => Date.now())\n const observed = useRef(new Set<SessionId>())\n const dialog = useMobileDialog(rootSessionId !== undefined, () => controller.close())\n\n useEffect(() => {\n if (rootSessionId === undefined) return\n setExpanded(new Set())\n observed.current.add(rootSessionId)\n actions.observe(rootSessionId, true)\n return () => {\n for (const id of observed.current) actions.observe(id, false)\n observed.current.clear()\n }\n }, [actions, rootSessionId])\n\n useEffect(() => {\n if (rootSessionId === undefined) return\n const visibleParents = new Set<SessionId>([rootSessionId, ...expanded])\n const running = [...visibleParents].some(parentSessionId => catalogs[parentSessionId]?.entries\n .some((entry: SubagentListEntry) => entry.kind === 'child' && entry.activity === 'running') === true)\n if (!running) return\n setNow(Date.now())\n const timer = window.setInterval(() => setNow(Date.now()), 1_000)\n return () => window.clearInterval(timer)\n }, [catalogs, expanded, rootSessionId])\n\n if (rootSessionId === undefined) return null\n const toggle = (id: SessionId, open: boolean): void => {\n const closing = new Set<SessionId>()\n if (!open) {\n const visit = (parentSessionId: SessionId): void => {\n if (closing.has(parentSessionId)) return\n closing.add(parentSessionId)\n for (const entry of catalogs[parentSessionId]?.entries ?? []) {\n if (entry.kind === 'child' && observed.current.has(entry.id)) visit(entry.id)\n }\n }\n visit(id)\n for (const closingId of closing) {\n actions.observe(closingId, false)\n observed.current.delete(closingId)\n }\n }\n setExpanded(current => {\n const next = new Set(current)\n if (open) next.add(id)\n else for (const closingId of closing) next.delete(closingId)\n return next\n })\n if (open) {\n observed.current.add(id)\n actions.observe(id, true)\n }\n }\n const open = (address: SubagentAddress): void => {\n actions.open(address)\n controller.close()\n }\n return <div className=\"dllm-subagent-layer\" role=\"presentation\">\n <Button aria-label={t('mobile.subagents.close')} className=\"dllm-subagent-backdrop\" size=\"sm\" variant=\"ghost\" onClick={() => controller.close()} />\n <section aria-label={t('mobile.subagents.title')} aria-modal=\"true\" className=\"dllm-subagent-sheet\" ref={dialog} role=\"dialog\" tabIndex={-1}>\n <div aria-hidden=\"true\" className=\"dllm-subagent-handle\" />\n <header className=\"dllm-subagent-sheet-header\">\n <div><h2>{t('mobile.subagents.title')}</h2><p>{t('mobile.subagents.description')}</p></div>\n <Button aria-label={t('mobile.subagents.close')} className=\"dllm-subagent-close\" size=\"sm\" variant=\"ghost\" onClick={() => controller.close()}>\n <IconCloseOutline16 size={16} />\n </Button>\n </header>\n <div className=\"dllm-subagent-list\">\n <CatalogRows actions={actions} catalogs={catalogs} expanded={expanded} level={0} onOpen={open} onToggle={toggle} parentSessionId={rootSessionId} summaries={summaries} t={t} now={now} />\n </div>\n </section>\n </div>\n}\n\nexport const MOBILE_SUBAGENT_STYLES = `\n.dllm-subagent-chip{box-sizing:border-box;display:flex;width:fit-content;max-width:100%;min-height:40px;align-items:center;gap:8px;margin:0 24px 6px;padding:7px 10px;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 24%));border-radius:12px;color:var(--dsw-alias-label-primary,inherit);background:var(--dsw-alias-bg-layer-1,rgb(127 127 127 / 8%));font:inherit;font-size:13px;font-weight:600;cursor:pointer}\n.dllm-subagent-chip:hover{background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 14%))}.dllm-subagent-activity{display:inline-flex;width:10px;height:10px;flex:none;align-items:center;justify-content:center}.dllm-subagent-running{display:inline-flex;align-items:center;color:var(--dsw-alias-label-tertiary,#6b7280);font-size:12px;font-weight:400;white-space:nowrap}.dllm-subagent-running::before{content:\"·\";margin-right:8px;color:var(--dsw-alias-label-quaternary,var(--dsw-alias-label-tertiary,#6b7280))}.dllm-subagent-chevron{width:14px;height:14px;margin-left:2px}\n.dllm-lineage-title{display:block;max-width:min(42vw,220px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:20px}.dllm-lineage-ancestor{padding:4px;border:0;border-radius:9px;color:var(--dsw-alias-label-tertiary,inherit);background:transparent;font-family:inherit;font-weight:400;cursor:pointer}.dllm-lineage-ancestor:hover{background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 12%))}.dllm-lineage-current{display:inline-flex;min-width:0;align-items:center;padding:4px;color:var(--dsw-alias-label-primary,inherit);font-weight:500}.dllm-shell header nav:has(.dllm-lineage-title){gap:0!important;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}.dllm-shell header nav:has(.dllm-lineage-title)>span{gap:1px!important}.dllm-shell header nav:has(.dllm-lineage-title)>span>button{padding-inline:4px!important;font-size:14px!important;line-height:20px!important}.dllm-shell header nav:has(.dllm-lineage-title)::-webkit-scrollbar{display:none}\n.dllm-subagent-layer{position:fixed;z-index:110;inset:0;display:flex;align-items:flex-end;pointer-events:auto}.dllm-subagent-backdrop{position:absolute;inset:0;width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:var(--dsw-alias-bg-mask-1,rgb(15 23 42 / 48%))!important}\n.dllm-subagent-sheet{position:relative;box-sizing:border-box;display:flex;width:100%;max-height:min(78dvh,720px);flex-direction:column;padding:0 0 env(safe-area-inset-bottom);overflow:hidden;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 26%));border-bottom:0;border-radius:22px 22px 0 0;color:var(--dsw-alias-label-primary,inherit);background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:0 -18px 50px rgb(15 23 42 / 22%)}\n.dllm-subagent-handle{width:38px;height:4px;margin:9px auto 4px;border-radius:999px;background:var(--dsw-alias-border-l2,rgb(127 127 127 / 30%))}.dllm-subagent-sheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 18px 14px;border-bottom:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 18%))}.dllm-subagent-sheet-header h2{margin:0;font-size:18px;line-height:24px}.dllm-subagent-sheet-header p{margin:3px 0 0;color:var(--dsw-alias-label-tertiary,#6b7280);font-size:12px;line-height:18px}.dllm-subagent-close{display:grid;width:40px;height:40px;flex:0 0 auto;padding:0;place-items:center;border:0;border-radius:10px;color:inherit;background:transparent}.dllm-subagent-close svg{width:16px;height:16px}\n.dllm-subagent-list{min-height:120px;overflow:auto;padding:8px 10px 16px;overscroll-behavior:contain}.dllm-subagent-tree{display:flex;flex-direction:column}.dllm-subagent-row{display:flex;min-height:54px;align-items:center;padding-left:calc(var(--dllm-level) * 14px);border-bottom:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 13%))}.dllm-subagent-expand,.dllm-subagent-expand-space{display:grid;width:36px;height:44px;flex:0 0 auto;place-items:center}.dllm-subagent-expand{padding:0;border:0;color:inherit;background:transparent}.dllm-subagent-expand svg{width:14px;height:14px;transition:transform 120ms ease}.dllm-subagent-row[aria-expanded=true]>.dllm-subagent-expand svg{transform:rotate(90deg)}\n.dllm-subagent-row-main{display:flex;min-width:0;height:auto;flex:1;align-items:flex-start;gap:8px;padding:7px 8px;text-align:left}.dllm-subagent-row-main>[data-state]{flex:none;margin-top:4px}.dllm-subagent-content{display:flex;min-width:0;flex:1;flex-direction:column}.dllm-subagent-content strong,.dllm-subagent-content small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dllm-subagent-content strong{font-size:13px;font-weight:500;line-height:18px}.dllm-subagent-content small,.dllm-subagent-metrics{color:var(--dsw-alias-label-tertiary,#6b7280);font-size:11px;line-height:16px}.dllm-subagent-metrics{display:grid;flex:none;grid-template-rows:18px 16px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.dllm-subagent-disabled{opacity:.68}.dllm-subagent-state{display:flex;min-height:120px;align-items:center;justify-content:center;gap:10px;color:var(--dsw-alias-label-tertiary,#6b7280);font-size:13px}.dllm-subagent-error{color:var(--dsw-alias-status-danger,#dc2626)}\n@media(prefers-reduced-motion:reduce){.dllm-subagent-expand svg{transition:none!important}}\n`\n\nexport function applyMobileSubagents(ctx: ClientContext): void {\n const controller = new MobileSubagentController()\n const actions: SubagentActions = {\n observe: (parentSessionId, open) => ctx.sessions.setSubagentCatalogOpen(parentSessionId, open),\n open: address => ctx.sessions.openSubagent(address),\n refresh: parentSessionId => ctx.sessions.refreshSubagents(parentSessionId),\n }\n ctx.effect(() => ctx.slots.inject('conversation.input.dock', () => ctx.slots.register({\n name: 'conversation.input.dock',\n id: MOBILE_SUBAGENT_DOCK_ID,\n order: 30,\n locale: NS,\n }, props => <MobileSubagentTrigger {...props} controller={controller} />)), 'dsh-local-link: mobile subagent dock')\n ctx.effect(() => ctx.slots.inject('shell.overlay', () => ctx.slots.register({\n name: 'shell.overlay',\n id: MOBILE_SUBAGENT_OVERLAY_ID,\n order: 30,\n locale: NS,\n }, props => <MobileSubagentSheet {...props} actions={actions} controller={controller} />)), 'dsh-local-link: mobile subagent sheet')\n ctx.effect(() => ctx.slots.inject('conversation.session.header.lineage', () => ctx.slots.register({\n name: 'conversation.session.header.lineage',\n priority: MOBILE_SUBAGENT_LINEAGE_PRIORITY,\n locale: NS,\n }, props => <MobileLineageTitle {...props} />)), 'dsh-local-link: compact mobile lineage title')\n}\n","import React, { useEffect, useSyncExternalStore } from 'react'\nimport type { SessionSummary } from '@deepseek-ai/dsh-api-session-controller/client'\nimport type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type { SessionLogDownloadState } from '@deepseek-ai/dsh-session-log-export/client'\nimport {\n Button,\n IconAgentPresetOutline16,\n IconCloseOutline16,\n IconDataOutline16,\n IconDownloadOutline16,\n IconFolderOpenOutline16,\n} from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { ClientContext } from './client-context.js'\nimport { useMobileDialog } from './mobile-dialog.js'\n\nconst NS = 'dsh.localLink'\ntype SessionLogDownloadController = ClientContext['sessionLogDownload']\nexport const MOBILE_SESSION_INFO_TRIGGER_ID = 'dsh-local-link.mobile-session-info'\nexport const MOBILE_SESSION_INFO_OVERLAY_ID = 'dsh-local-link.mobile-session-info-drawer'\nexport const MOBILE_AGENT_PRESET_PRIORITY = -100\nexport const MOBILE_SESSION_LOG_PRIORITY = -100\nexport const MOBILE_STATS_PRIORITY = -100\n\ninterface ContextOccupancy {\n readonly percent: number\n readonly usedTokens: number\n readonly contextWindow: number\n}\n\ninterface ContextBreakdown {\n readonly systemTokens: number\n readonly toolsTokens: number\n readonly messageTokens: number\n}\n\ninterface SessionStats {\n readonly turns: number\n readonly steps: number\n readonly llmMs: number\n readonly toolMs: number\n readonly ttftMs: number\n readonly ttftSteps: number\n readonly decodeMs: number\n readonly decodeTokens: number\n}\n\ninterface TokenUsage {\n readonly uncachedInputTokens: number\n readonly outputTokens: number\n readonly cacheReadTokens: number\n readonly cacheWriteTokens: number\n}\n\ninterface SessionInfoSnapshot {\n readonly open: boolean\n readonly modelSessionId?: string\n readonly model?: string\n}\n\ninterface AgentPresetProjection {\n readonly agentPreset?: string\n}\n\nfunction sessionAgentPreset(summary: SessionSummary): string | undefined {\n return (summary.projectionValues as AgentPresetProjection | undefined)?.agentPreset\n}\n\ninterface ObservableStore<T> {\n readonly subscribe: (listener: () => void) => () => void\n readonly getSnapshot: () => T\n}\n\ninterface ModelDirectoryLike {\n readonly store: ObservableStore<unknown>\n}\n\ninterface ModelDirectoryResolverLike {\n readonly directoryFor: (sessionId: unknown) => ModelDirectoryLike\n}\n\nexport class MobileSessionInfoController {\n private snapshot: SessionInfoSnapshot = Object.freeze({ open: false })\n private readonly listeners = new Set<() => void>()\n private readonly modelSubscriptions = new Map<() => void, { readonly sessionId: unknown; unsubscribe: (() => void) | undefined }>()\n private modelResolver: ModelDirectoryResolverLike | undefined\n\n readonly subscribe = (listener: () => void): (() => void) => {\n this.listeners.add(listener)\n return () => this.listeners.delete(listener)\n }\n\n readonly getSnapshot = (): SessionInfoSnapshot => this.snapshot\n\n attachModelResolver(resolver: ModelDirectoryResolverLike): () => void {\n this.modelResolver = resolver\n for (const [listener, subscription] of this.modelSubscriptions) {\n subscription.unsubscribe?.()\n subscription.unsubscribe = this.modelDirectory(subscription.sessionId)?.store.subscribe(listener)\n listener()\n }\n return () => {\n if (this.modelResolver !== resolver) return\n this.modelResolver = undefined\n for (const [listener, subscription] of this.modelSubscriptions) {\n subscription.unsubscribe?.()\n subscription.unsubscribe = undefined\n listener()\n }\n }\n }\n\n subscribeModel(sessionId: unknown, listener: () => void): () => void {\n const subscription = { sessionId, unsubscribe: this.modelDirectory(sessionId)?.store.subscribe(listener) }\n this.modelSubscriptions.set(listener, subscription)\n return () => {\n subscription.unsubscribe?.()\n this.modelSubscriptions.delete(listener)\n }\n }\n\n getModel(sessionId: unknown): string | undefined {\n return currentModelName(this.modelDirectory(sessionId)?.store.getSnapshot())\n }\n\n open(): void {\n this.update(true)\n }\n\n close(): void {\n this.update(false)\n }\n\n reportModel(sessionId: string, model: string | undefined): void {\n if (this.snapshot.modelSessionId === sessionId && this.snapshot.model === model) return\n this.snapshot = Object.freeze(model === undefined\n ? { open: this.snapshot.open, modelSessionId: sessionId }\n : { open: this.snapshot.open, modelSessionId: sessionId, model })\n for (const listener of this.listeners) listener()\n }\n\n private update(open: boolean): void {\n if (open === this.snapshot.open) return\n this.snapshot = Object.freeze({ ...this.snapshot, open })\n for (const listener of this.listeners) listener()\n }\n\n private modelDirectory(sessionId: unknown): ModelDirectoryLike | undefined {\n try {\n return this.modelResolver?.directoryFor(sessionId)\n } catch {\n return undefined\n }\n }\n}\n\ntype TriggerProps = PropsRuntime<'conversation.session.header.utilities'>\n & PropsLocale<typeof NS>\n & { readonly controller: MobileSessionInfoController }\n\ntype DrawerProps = PropsRuntime<'shell.overlay'>\n & PropsLocale<typeof NS>\n & { readonly controller: MobileSessionInfoController; readonly downloads: SessionLogDownloadController }\n\nexport function mobilePresetLabel(preset: string | undefined, t: TriggerProps['t']): string {\n if (preset === undefined) return t('mobile.sessionInfo.notRecorded')\n switch (preset) {\n case 'standard': return t('mobile.sessionInfo.preset.standard')\n case 'code': return t('mobile.sessionInfo.preset.code')\n case 'minimal': return t('mobile.sessionInfo.preset.minimal')\n case 'cordis': return t('mobile.sessionInfo.preset.cordis')\n default: return preset\n }\n}\n\nfunction recordOf(value: unknown): Readonly<Record<string, unknown>> | undefined {\n return typeof value === 'object' && value !== null ? value as Readonly<Record<string, unknown>> : undefined\n}\n\nfunction finiteNumber(value: unknown): number | undefined {\n return typeof value === 'number' && Number.isFinite(value) ? value : undefined\n}\n\nexport function formatSessionTokens(value: number): string {\n const scaled = (n: number): string => n >= 100 ? String(Math.round(n)) : String(Math.round(n * 10) / 10)\n if (value < 1_000) return scaled(value)\n if (value < 1_000_000) return `${scaled(value / 1_000)}K`\n return `${scaled(value / 1_000_000)}M`\n}\n\nexport function formatSessionDuration(ms: number): string {\n const seconds = ms / 1_000\n if (seconds < 60) return `${Math.round(seconds * 10) / 10}s`\n const whole = Math.round(seconds)\n return `${Math.floor(whole / 60)}m${whole % 60}s`\n}\n\nexport function contextOccupancy(value: unknown): ContextOccupancy | undefined {\n const pressure = recordOf(value)\n const usedTokens = finiteNumber(pressure?.projectedTokens) ?? finiteNumber(pressure?.pressureTokens)\n const contextWindow = finiteNumber(pressure?.contextWindow)\n if (usedTokens === undefined || contextWindow === undefined || contextWindow <= 0) return undefined\n return { percent: Math.min(100, Math.round(usedTokens / contextWindow * 100)), usedTokens, contextWindow }\n}\n\nexport function contextBreakdown(value: unknown): ContextBreakdown | undefined {\n const breakdown = recordOf(value)\n const systemTokens = finiteNumber(breakdown?.systemTokens)\n const toolsTokens = finiteNumber(breakdown?.toolsTokens)\n const messageTokens = finiteNumber(breakdown?.messageTokens)\n if (systemTokens === undefined || toolsTokens === undefined || messageTokens === undefined) return undefined\n return { systemTokens, toolsTokens, messageTokens }\n}\n\nexport function permissionName(value: unknown): string | undefined {\n const selection = recordOf(value)\n const currentValue = typeof selection?.currentValue === 'string' ? selection.currentValue : undefined\n if (currentValue === undefined || !Array.isArray(selection?.options)) return undefined\n const current = selection.options.find(option => recordOf(option)?.value === currentValue)\n const name = recordOf(current)?.name\n return typeof name === 'string' ? name : currentValue\n}\n\nexport function permissionValue(value: unknown): string | undefined {\n const selection = recordOf(value)\n return typeof selection?.currentValue === 'string' ? selection.currentValue : undefined\n}\n\nexport function currentModelName(value: unknown): string | undefined {\n const directory = recordOf(value)\n const current = recordOf(directory?.current)\n const providerId = typeof current?.provider === 'string' ? current.provider : undefined\n const modelId = typeof current?.model === 'string' ? current.model : undefined\n if (modelId === undefined) return undefined\n if (!Array.isArray(directory?.groups)) return modelId\n const group = directory.groups.map(recordOf).find(candidate => candidate?.id === providerId)\n if (!Array.isArray(group?.models)) return modelId\n const model = group.models.map(recordOf).find(candidate => candidate?.id === modelId)\n return typeof model?.name === 'string' ? model.name : modelId\n}\n\nexport function lastUsedModel(value: unknown): string | undefined {\n const nodes = recordOf(value)?.nodes\n if (!Array.isArray(nodes)) return undefined\n for (let index = nodes.length - 1; index >= 0; index -= 1) {\n const node = recordOf(nodes[index])\n if (node?.kind !== 'assistant') continue\n const identity = recordOf(node.requestConfig) ?? recordOf(node.provenance)\n const model = typeof identity?.model === 'string' ? identity.model : undefined\n if (model === undefined) continue\n const provider = typeof identity?.provider === 'string' ? identity.provider : ''\n return provider.length > 0 ? `${provider} · ${model}` : model\n }\n return undefined\n}\n\nfunction sessionStats(value: unknown): SessionStats | undefined {\n const stats = recordOf(value)\n const keys = ['turns', 'steps', 'llmMs', 'toolMs', 'ttftMs', 'ttftSteps', 'decodeMs', 'decodeTokens'] as const\n const entries = keys.map(key => finiteNumber(stats?.[key]))\n if (entries.some(entry => entry === undefined)) return undefined\n const [turns, steps, llmMs, toolMs, ttftMs, ttftSteps, decodeMs, decodeTokens] = entries as [number, number, number, number, number, number, number, number]\n return { turns, steps, llmMs, toolMs, ttftMs, ttftSteps, decodeMs, decodeTokens }\n}\n\nfunction tokenUsage(value: unknown): TokenUsage | undefined {\n const usage = recordOf(value)\n const uncachedInputTokens = finiteNumber(usage?.uncachedInputTokens)\n const outputTokens = finiteNumber(usage?.outputTokens)\n const cacheReadTokens = finiteNumber(usage?.cacheReadTokens)\n const cacheWriteTokens = finiteNumber(usage?.cacheWriteTokens)\n if (uncachedInputTokens === undefined || outputTokens === undefined || cacheReadTokens === undefined || cacheWriteTokens === undefined) return undefined\n return { uncachedInputTokens, outputTokens, cacheReadTokens, cacheWriteTokens }\n}\n\nfunction sessionStatLines(projections: Readonly<Record<string, unknown>>, t: TriggerProps['t']): readonly string[] {\n const stats = sessionStats(projections.sessionStats)\n const usage = tokenUsage(projections.tokenUsage)\n const lines: string[] = []\n if (stats !== undefined && stats.steps > 0) {\n lines.push(t('mobile.sessionInfo.stats.counts', { turns: stats.turns, steps: stats.steps }))\n const durations: string[] = []\n if (stats.llmMs > 0) durations.push(t('mobile.sessionInfo.stats.llm', { duration: formatSessionDuration(stats.llmMs) }))\n if (stats.toolMs > 0) durations.push(t('mobile.sessionInfo.stats.tools', { duration: formatSessionDuration(stats.toolMs) }))\n if (durations.length > 0) lines.push(durations.join(' · '))\n const speeds: string[] = []\n if (stats.ttftSteps > 0) speeds.push(t('mobile.sessionInfo.stats.ttft', { duration: formatSessionDuration(stats.ttftMs / stats.ttftSteps) }))\n if (stats.decodeMs > 0) speeds.push(t('mobile.sessionInfo.stats.throughput', { throughput: formatSessionTokens(stats.decodeTokens / (stats.decodeMs / 1_000)) }))\n if (speeds.length > 0) lines.push(speeds.join(' · '))\n }\n if (usage !== undefined) {\n const input = usage.uncachedInputTokens + usage.cacheReadTokens + usage.cacheWriteTokens\n if (input > 0 || usage.outputTokens > 0) {\n if (input > 0) lines.push(t('mobile.sessionInfo.stats.cache', { percent: Math.round(usage.cacheReadTokens / input * 100) }))\n lines.push(t('mobile.sessionInfo.stats.tokens', { input: formatSessionTokens(input), output: formatSessionTokens(usage.outputTokens) }))\n }\n }\n return lines\n}\n\nfunction ContextRing({ occupancy }: { readonly occupancy: ContextOccupancy }): React.JSX.Element {\n const radius = 5.5\n const circumference = 2 * Math.PI * radius\n return <svg aria-hidden=\"true\" className=\"dllm-context-ring\" viewBox=\"0 0 14 14\">\n <circle className=\"dllm-context-ring-track\" cx=\"7\" cy=\"7\" r={radius} />\n <circle className=\"dllm-context-ring-fill\" cx=\"7\" cy=\"7\" r={radius} strokeDasharray={circumference} strokeDashoffset={circumference * (1 - occupancy.percent / 100)} transform=\"rotate(-90 7 7)\" />\n </svg>\n}\n\nconst permissionShieldOutline = 'M8.20554 0.899994L14.7901 3.36857V7.01026C14.7901 12 11.0466 14.2103 8.20554 15.3C5.36446 14.2103 1.62012 12 1.62012 7.01026V3.36857L8.20554 0.899994Z'\n\nfunction PermissionGlyph({ value }: { readonly value: string | undefined }): React.JSX.Element | null {\n if (value === 'read-only') return <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\">\n <path d={permissionShieldOutline} fill=\"none\" stroke=\"currentColor\" strokeLinejoin=\"round\" strokeWidth=\"1.31831\" />\n <path d=\"M12.1654 5.7552L8.9447 9.41475C8.73044 9.65816 8.53628 9.8804 8.35774 10.0423C8.1713 10.2114 7.94235 10.3717 7.64016 10.4254C7.48207 10.4535 7.32 10.4552 7.16151 10.4294C6.85843 10.3801 6.62728 10.2223 6.43836 10.0559C6.25752 9.89653 6.06037 9.67732 5.84264 9.43705L4.72925 8.20897L5.63557 7.38707L6.74897 8.61594C6.98603 8.87755 7.12974 9.03533 7.24673 9.13839C7.31033 9.19443 7.34485 9.21476 7.35823 9.22122C7.38068 9.22484 7.40352 9.22515 7.42593 9.22122C7.40522 9.22502 7.42893 9.23294 7.53583 9.136C7.65132 9.03126 7.79316 8.87139 8.02643 8.60638L11.2479 4.94763L12.1654 5.7552Z\" fill=\"currentColor\" />\n </svg>\n if (value === 'workspace-write') return <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\">\n <path d=\"M8.08887 0.251709C8.20479 0.23085 8.32486 0.241168 8.43652 0.282959L15.0215 2.75171C15.2787 2.84819 15.4492 3.09414 15.4492 3.3689V7.0105C15.4492 7.10986 15.4441 7.2081 15.4414 7.30542C15.0285 7.07175 14.5905 6.87695 14.1309 6.73022V3.82495L8.20508 1.60327L2.2793 3.82495V7.0105C2.27936 9.7171 3.4745 11.5379 5.02734 12.7947C5.01025 12.9942 5 13.1962 5 13.4001C5.00001 13.7617 5.02722 14.1169 5.08008 14.4636C2.91555 13.0393 0.961014 10.752 0.960938 7.0105V3.3689C0.960938 3.09417 1.13146 2.84821 1.38867 2.75171L7.97461 0.282959L8.08887 0.251709Z\" fill=\"currentColor\" />\n <path d=\"M11.3525 5.64688V6.85688H5V5.64688H11.3525ZM9.5824 8.29376V9.50376H5V8.29376H9.5824ZM14.6647 15.6852H10.0338C10.3878 15.3751 10.7567 15.0517 11.0772 14.7706C11.2531 14.6164 11.4144 14.4746 11.5511 14.3547H14.6647V15.6852Z\" fill=\"currentColor\" />\n <path d=\"M8.14852 14.1308L7.33925 15.4976C7.22458 15.6912 7.42245 15.9194 7.63037 15.8333L9.09785 15.2254L15.0399 10.0719L14.0905 8.97733L8.14852 14.1308Z\" fill=\"currentColor\" />\n </svg>\n if (value === 'danger-full-access') return <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\">\n <path d={permissionShieldOutline} fill=\"none\" stroke=\"currentColor\" strokeLinejoin=\"round\" strokeWidth=\"1.31831\" />\n <path d=\"M9.10094 4.5V8.75939H7.59888V4.5H9.10094ZM9.10094 9.8114V11.5H7.59888V9.8114H9.10094Z\" fill=\"currentColor\" />\n </svg>\n return null\n}\n\nfunction MobileSessionInfoTrigger({ controller, sessionId, t, useSession }: TriggerProps): React.JSX.Element {\n const selectedModel = useSyncExternalStore(\n listener => controller.subscribeModel(sessionId, listener),\n () => controller.getModel(sessionId),\n )\n const usedModel = useSession(lastUsedModel)\n const model = selectedModel ?? usedModel\n useEffect(() => controller.reportModel(String(sessionId), model), [controller, model, sessionId])\n return <Button\n aria-label={t('mobile.sessionInfo.open')}\n className=\"dllm-session-info-trigger\"\n title={t('mobile.sessionInfo.open')}\n size=\"sm\"\n variant=\"toolbar\"\n onClick={() => controller.open()}\n >\n <svg aria-hidden=\"true\" className=\"dllm-session-info-glyph\" viewBox=\"0 0 24 24\">\n <circle cx=\"12\" cy=\"12\" r=\"8.5\" />\n <path d=\"M12 10.8v5.2M12 8h.01\" />\n </svg>\n </Button>\n}\n\nfunction MobileSessionInfoDrawer({ controller, downloads, t, useSessions }: DrawerProps): React.JSX.Element | null {\n const state = useSyncExternalStore(controller.subscribe, controller.getSnapshot)\n const current = useSessions((snapshot: import('@deepseek-ai/dsh-api-session-controller/client').SessionListState) => snapshot.current)\n const session = useSessions((snapshot: import('@deepseek-ai/dsh-api-session-controller/client').SessionListState) => current === undefined ? undefined : snapshot.byId[current]) as SessionSummary | undefined\n const downloadState = useSyncExternalStore<SessionLogDownloadState>(downloads.store.subscribe, downloads.store.getSnapshot)\n const download = session === undefined ? undefined : downloadState.bySession[String(session.id)]\n const downloading = download?.status === 'downloading'\n const projections = (session?.projectionValues ?? {}) as Readonly<Record<string, unknown>>\n const occupancy = contextOccupancy(projections.contextPressure)\n const breakdown = contextBreakdown(projections.contextBreakdown)\n const access = permissionName(projections.permissions)\n const accessValue = permissionValue(projections.permissions)\n const model = state.modelSessionId === String(session?.id) ? state.model : undefined\n const stats = sessionStatLines(projections, t)\n const close = (): void => {\n if (session !== undefined) downloads.dismiss(session.id)\n controller.close()\n }\n const dialog = useMobileDialog(state.open && session !== undefined, close)\n\n if (!state.open || session === undefined) return null\n return <div className=\"dllm-session-info-layer\">\n <Button aria-label={t('mobile.sessionInfo.close')} className=\"dllm-session-info-backdrop\" size=\"sm\" variant=\"ghost\" onClick={close} />\n <aside aria-label={t('mobile.sessionInfo.title')} aria-modal=\"true\" className=\"dllm-session-info-drawer\" ref={dialog} role=\"dialog\" tabIndex={-1}>\n <header className=\"dllm-session-info-header\">\n <div><small>{t('mobile.sessionInfo.eyebrow')}</small><h2>{session.displayTitle}</h2></div>\n <Button aria-label={t('mobile.sessionInfo.close')} size=\"sm\" variant=\"ghost\" onClick={close}>\n <IconCloseOutline16 size={16} />\n </Button>\n </header>\n <div className=\"dllm-session-info-body\">\n {occupancy !== undefined && <section className=\"dllm-session-info-card dllm-session-context-card\">\n <div className=\"dllm-session-info-row\">\n <ContextRing occupancy={occupancy} />\n <div><small>{t('mobile.sessionInfo.context')}</small><strong>{occupancy.percent}% · {formatSessionTokens(occupancy.usedTokens)} / {formatSessionTokens(occupancy.contextWindow)}</strong></div>\n </div>\n {breakdown !== undefined && (breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens) > 0 && <>\n <div className=\"dllm-context-breakdown-bar\" aria-hidden=\"true\">\n <span className=\"dllm-context-segment dllm-context-system\" style={{ width: `${occupancy.percent * breakdown.systemTokens / (breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens)}%` }} />\n <span className=\"dllm-context-segment dllm-context-tools\" style={{ width: `${occupancy.percent * breakdown.toolsTokens / (breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens)}%` }} />\n <span className=\"dllm-context-segment dllm-context-messages\" style={{ width: `${occupancy.percent * breakdown.messageTokens / (breakdown.systemTokens + breakdown.toolsTokens + breakdown.messageTokens)}%` }} />\n </div>\n <div className=\"dllm-context-breakdown-rows\">\n <div><span><i className=\"dllm-context-swatch dllm-context-system\" />{t('mobile.sessionInfo.context.system')}</span><span>~{formatSessionTokens(breakdown.systemTokens)}</span></div>\n <div><span><i className=\"dllm-context-swatch dllm-context-tools\" />{t('mobile.sessionInfo.context.tools')}</span><span>~{formatSessionTokens(breakdown.toolsTokens)}</span></div>\n <div><span><i className=\"dllm-context-swatch dllm-context-messages\" />{t('mobile.sessionInfo.context.messages')}</span><span>~{formatSessionTokens(breakdown.messageTokens)}</span></div>\n </div>\n </>}\n </section>}\n <section className=\"dllm-session-info-card dllm-session-properties-card\">\n <div className=\"dllm-session-property\"><small>{t('mobile.sessionInfo.model')}</small><span>{model ?? t('mobile.sessionInfo.notRecorded')}</span></div>\n <div className=\"dllm-session-property\"><small className=\"dllm-session-property-label\"><IconFolderOpenOutline16 size={13} />{t('mobile.sessionInfo.permissions')}</small><span className=\"dllm-session-property-value dllm-session-property-access\"><PermissionGlyph value={accessValue} />{access ?? t('mobile.sessionInfo.notRecorded')}</span></div>\n <div className=\"dllm-session-property\"><small className=\"dllm-session-property-label\"><IconAgentPresetOutline16 size={13} />{t('mobile.sessionInfo.agentPreset')}</small><span>{mobilePresetLabel(sessionAgentPreset(session), t)}</span></div>\n </section>\n {stats.length > 0 && <section className=\"dllm-session-info-card dllm-session-stats-card\">\n <div className=\"dllm-session-info-icon\" aria-hidden=\"true\"><IconDataOutline16 size={15} /></div>\n <div><small>{t('mobile.sessionInfo.statistics')}</small>{stats.map(line => <p key={line}>{line}</p>)}</div>\n </section>}\n <section className=\"dllm-session-info-card dllm-session-log-card\">\n <div className=\"dllm-session-info-icon\" aria-hidden=\"true\"><IconDownloadOutline16 size={17} /></div>\n <div><small>{t('mobile.sessionInfo.sessionLog')}</small><p>{t('mobile.sessionInfo.sessionLogDescription')}</p>\n {download?.status === 'error' && <p className=\"dllm-session-log-error\">{download.error ?? t('mobile.sessionInfo.sessionLogError')}</p>}\n {download?.status === 'success' && <p>{t('mobile.sessionInfo.sessionLogReady')}</p>}\n </div>\n <Button className=\"dllm-session-log-download\" disabled={downloading} size=\"sm\" variant=\"outline\" onClick={() => void downloads.download(session.id)}>\n {t(downloading ? 'mobile.sessionInfo.sessionLogDownloading' : 'mobile.sessionInfo.sessionLogDownload')}\n </Button>\n </section>\n </div>\n </aside>\n </div>\n}\n\nexport const MOBILE_SESSION_INFO_STYLES = `\n.dllm-session-info-trigger{display:grid;width:44px;height:44px;margin:0;padding:0;place-items:center;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(148 163 184 / 30%));border-radius:12px;color:inherit;background:var(--dsw-alias-bg-layer-1,rgb(255 255 255 / 92%));box-shadow:var(--dsw-shadow-lv3,0 8px 24px rgb(15 23 42 / 14%));cursor:pointer}\n.dllm-session-info-trigger:hover{background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 18%))}\n.dllm-session-info-glyph{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}\n.dllm-session-info-layer{position:fixed;z-index:120;inset:0;display:flex;justify-content:flex-end;pointer-events:auto}.dllm-session-info-backdrop{position:absolute;inset:0;width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:var(--dsw-alias-bg-mask-1,rgb(15 23 42 / 46%))!important}\n.dllm-session-info-drawer{position:relative;box-sizing:border-box;display:flex;width:var(--dllm-side-drawer-width);height:100dvh;flex-direction:column;padding-top:env(safe-area-inset-top);border-left:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 22%));color:var(--dsw-alias-label-primary,inherit);background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:-18px 0 52px rgb(15 23 42 / 24%);animation:dllm-session-info-in 180ms cubic-bezier(.22,1,.36,1)}\n.dllm-session-info-header{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px;padding:18px 16px 14px!important;border-bottom:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 18%))}.dllm-session-info-header>div{min-width:0}.dllm-session-info-header small{color:var(--dsw-alias-label-tertiary,#6b7280);font-size:11px;text-transform:uppercase;letter-spacing:.05em}.dllm-session-info-header h2{margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;line-height:23px}.dllm-session-info-header button{display:grid;width:32px;height:32px;flex:none;padding:0;place-items:center;border:0;border-radius:50%;color:var(--dsw-alias-label-secondary,inherit);background:transparent}.dllm-session-info-header button:hover{background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 14%))}.dllm-session-info-header button>svg{width:16px;height:16px}\n.dllm-session-info-body{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px;padding:12px 12px calc(14px + env(safe-area-inset-bottom));overflow-y:auto}.dllm-session-info-card{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;padding:10px;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 18%));border-radius:10px;background:color-mix(in srgb,var(--dsw-alias-bg-base,transparent) 62%,transparent)}.dllm-session-info-icon{display:grid;width:24px;height:24px;place-items:center;color:var(--dsw-alias-label-tertiary,#6b7280)}.dllm-session-info-card small{display:block;color:var(--dsw-alias-label-tertiary,#6b7280);font-size:10.5px;line-height:15px}.dllm-session-info-card strong{display:block;margin-top:1px;font-size:13px;font-weight:500;line-height:18px}.dllm-session-info-card p{margin:2px 0 0;color:var(--dsw-alias-label-secondary,#6b7280);font-size:11.5px;line-height:17px}.dllm-session-log-card{grid-template-columns:28px minmax(0,1fr);align-items:start}.dllm-session-log-download{grid-column:2;width:fit-content;margin-top:5px}.dllm-session-log-error{color:var(--dsw-alias-state-error-primary,#dc2626)!important;overflow-wrap:anywhere}\n.dllm-session-context-card{display:block;padding:3px 10px 8px}.dllm-session-info-row{display:grid;min-width:0;grid-template-columns:26px minmax(0,1fr);gap:8px;align-items:center;padding:7px 0}.dllm-session-info-row>div{min-width:0}.dllm-session-info-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dllm-context-ring{display:block;width:16px;height:16px;margin:auto;overflow:visible}.dllm-context-ring-track,.dllm-context-ring-fill{fill:none;stroke-width:1.6}.dllm-context-ring-track{stroke:var(--dsw-alias-border-l3,rgb(127 127 127 / 24%))}.dllm-context-ring-fill{stroke:var(--dsw-alias-label-tertiary,#6b7280);stroke-linecap:round}.dllm-context-breakdown-bar{display:flex;height:4px;margin:2px 0 7px;gap:1px;overflow:hidden;border-radius:999px;background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 12%))}.dllm-context-segment{height:100%;min-width:2px;border-radius:1px;background:var(--meter-tint)}.dllm-context-system{--meter-tint:var(--dsw-static-neutral-bluish-400,#8a94a6)}.dllm-context-tools{--meter-tint:#a78bfa}.dllm-context-messages{--meter-tint:var(--dsw-static-blue-450,#4f8cff)}.dllm-context-breakdown-rows{display:grid;gap:1px}.dllm-context-breakdown-rows>div{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--dsw-alias-label-secondary,#6b7280);font-size:10.5px;line-height:16px}.dllm-context-breakdown-rows>div>span:last-child{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-primary,inherit)}.dllm-context-swatch{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:2px;background:var(--meter-tint)}.dllm-session-properties-card{display:block;padding:2px 10px}.dllm-session-property{display:grid;grid-template-columns:minmax(92px,38%) minmax(0,1fr);gap:10px;align-items:baseline;padding:7px 0}.dllm-session-property+.dllm-session-property{border-top:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(127 127 127 / 14%))}.dllm-session-property-label{display:inline-flex!important;min-width:0;align-items:center;gap:5px}.dllm-session-property-label svg{width:13px;height:13px;flex:none}.dllm-session-property span{overflow:hidden;color:var(--dsw-alias-label-primary,inherit);font-size:12px;font-weight:400;line-height:17px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dllm-session-property-value{display:inline-flex;min-width:0;align-items:center;justify-content:flex-end;gap:5px}.dllm-session-property-access svg{width:14px;height:14px;flex:none}.dllm-session-stats-card p{font-variant-numeric:tabular-nums}.dllm-session-stats-card p:first-of-type{margin-top:2px}\n@keyframes dllm-session-info-in{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(prefers-reduced-motion:reduce){.dllm-session-info-drawer{animation:none!important}}\n`\n\nexport function applyMobileSessionInfo(ctx: ClientContext): void {\n const controller = new MobileSessionInfoController()\n ctx.inject(['modelDirectories'], scope => {\n const resolver = (scope as unknown as { modelDirectories?: ModelDirectoryResolverLike }).modelDirectories\n if (resolver === undefined) return\n scope.effect(() => controller.attachModelResolver(resolver), 'dsh-local-link: current model directory bridge')\n })\n ctx.effect(() => ctx.slots.inject('conversation.session.header.actions', () => ctx.slots.register({\n name: 'conversation.session.header.actions',\n id: 'agent-preset',\n priority: MOBILE_AGENT_PRESET_PRIORITY,\n }, () => null)), 'dsh-local-link: move mobile agent preset out of header')\n ctx.effect(() => ctx.slots.inject('conversation.session.header.utilities', () => ctx.slots.register({\n name: 'conversation.session.header.utilities',\n id: 'session-log-download',\n priority: MOBILE_SESSION_LOG_PRIORITY,\n }, () => null)), 'dsh-local-link: move mobile session log out of header')\n ctx.effect(() => ctx.slots.inject('conversation.composer.dock', () => ctx.slots.register({\n name: 'conversation.composer.dock',\n id: 'stats',\n priority: MOBILE_STATS_PRIORITY,\n }, () => null)), 'dsh-local-link: move mobile session statistics into session info')\n ctx.effect(() => ctx.slots.inject('conversation.session.header.utilities', () => ctx.slots.register({\n name: 'conversation.session.header.utilities',\n id: MOBILE_SESSION_INFO_TRIGGER_ID,\n order: 90,\n locale: NS,\n }, props => <MobileSessionInfoTrigger {...props} controller={controller} />)), 'dsh-local-link: mobile session info trigger')\n ctx.effect(() => ctx.slots.inject('shell.overlay', () => ctx.slots.register({\n name: 'shell.overlay',\n id: MOBILE_SESSION_INFO_OVERLAY_ID,\n order: 40,\n locale: NS,\n }, props => <MobileSessionInfoDrawer {...props} controller={controller} downloads={ctx.sessionLogDownload} />)), 'dsh-local-link: mobile session info drawer')\n}\n","import React, { useSyncExternalStore } from 'react'\nimport type { ILayout } from '@deepseek-ai/dsh-client-ui-layout/client'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-sidebar/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-theme/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-session-log-export/client'\nimport { Button, IconDarkOutline16, IconLightOutline16 } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { ClientContext } from './client-context.js'\nimport { applyMobileSubagents, MOBILE_SUBAGENT_STYLES } from './mobile-subagents.js'\nimport { applyMobileSessionInfo, MOBILE_SESSION_INFO_STYLES } from './mobile-session-info.js'\n\nconst NS = 'dsh.localLink'\nexport const MOBILE_SETTINGS_PRIORITY = -100\nexport const MOBILE_LOCAL_ACCESS_PRIORITY = -100\n\ninterface MobileLabels {\n readonly closeOverlay: string\n readonly openNavigation: string\n}\n\ninterface ThemeSnapshot {\n readonly preference: 'light' | 'dark' | 'system'\n readonly active: {\n readonly colorScheme: 'dark' | 'light'\n readonly tokens: Readonly<Record<string, string>>\n }\n}\n\ninterface ThemeController {\n readonly subscribe: (listener: () => void) => () => void\n readonly getSnapshot: () => ThemeSnapshot\n readonly setDark: (dark: boolean) => void\n}\n\nexport class MobileComposerAutofocusGuard {\n private selected: string | undefined\n private suppress = false\n private pointerTarget: EventTarget | null = null\n private pointerAt = 0\n\n constructor(selected: string | undefined) {\n this.selected = selected\n }\n\n selectionChanged(selected: string | undefined): boolean {\n if (selected === this.selected) return false\n this.selected = selected\n this.suppress = true\n this.pointerTarget = null\n return true\n }\n\n pointerDown(target: EventTarget, now: number): void {\n this.pointerTarget = target\n this.pointerAt = now\n }\n\n shouldBlur(target: EventTarget, now: number): boolean {\n const intentional = this.pointerTarget === target && now - this.pointerAt <= 700\n this.pointerTarget = null\n if (intentional) {\n this.suppress = false\n return false\n }\n return this.suppress\n }\n}\n\nfunction installMobileComposerAutofocusGuard(ctx: ClientContext): () => void {\n const guard = new MobileComposerAutofocusGuard(ctx.sessions.list.getSnapshot().current)\n const composerInput = (target: EventTarget | null): HTMLElement | null => {\n if (!(target instanceof HTMLElement)) return null\n const input = target.closest<HTMLElement>('textarea,[contenteditable=\"true\"]')\n if (input === null) return null\n const mobileSurface = input.closest('.dllm-main') !== null\n || document.body.hasAttribute('data-dsh-local-link-mobile')\n return mobileSurface ? input : null\n }\n const offSessions = ctx.sessions.list.subscribe(() => {\n if (guard.selectionChanged(ctx.sessions.list.getSnapshot().current)) {\n composerInput(document.activeElement)?.blur()\n }\n })\n const onPointerDown = (event: PointerEvent): void => {\n const target = composerInput(event.target)\n if (target !== null) guard.pointerDown(target, Date.now())\n }\n const onFocusIn = (event: FocusEvent): void => {\n const target = composerInput(event.target)\n if (target !== null && guard.shouldBlur(target, Date.now())) target.blur()\n }\n document.addEventListener('pointerdown', onPointerDown, true)\n document.addEventListener('focusin', onFocusIn, true)\n return () => {\n offSessions()\n document.removeEventListener('pointerdown', onPointerDown, true)\n document.removeEventListener('focusin', onFocusIn, true)\n }\n}\n\ninterface MobileThemeToggleProps {\n readonly controller: ThemeController\n readonly useDarkLabel: string\n readonly useLightLabel: string\n}\n\ninterface StockMobileControlsProps {\n readonly layout: ILayout\n readonly labels: MobileLabels\n readonly themeController: ThemeController\n readonly useDarkLabel: string\n readonly useLightLabel: string\n}\n\nconst MOBILE_SIDEBAR_INTERACTIVE_SELECTOR = [\n 'button',\n 'a',\n 'input',\n 'textarea',\n 'select',\n '[role=\"button\"]',\n '[role=\"menuitem\"]',\n].join(',')\n\n/**\n * Close the drawer only for a row-selection tap. Harness owns the session\n * overflow button and renders its Menu through a portal; treating that button\n * as a row tap closes the drawer before Rename/Fork/Archive can be selected.\n */\nexport function shouldCloseMobileSidebarForElement(target: Pick<Element, 'closest'>): boolean {\n if (target.closest(MOBILE_SIDEBAR_INTERACTIVE_SELECTOR) !== null) return false\n const item = target.closest('[role=\"treeitem\"]')\n return item !== null && item.getAttribute('aria-expanded') === null\n}\n\n\nexport function MobileThemeToggle({ controller, useDarkLabel, useLightLabel }: MobileThemeToggleProps): React.JSX.Element {\n const snapshot = useSyncExternalStore(controller.subscribe, controller.getSnapshot)\n const dark = snapshot.active.colorScheme === 'dark'\n const label = dark ? useLightLabel : useDarkLabel\n return <Button\n aria-label={label}\n className=\"dllm-theme-button\"\n title={label}\n size=\"sm\"\n variant=\"ghost\"\n onClick={() => controller.setDark(!dark)}\n >{dark\n ? <IconDarkOutline16 size={16} />\n : <IconLightOutline16 size={16} />}\n </Button>\n}\n\nfunction StockMobileControls({ layout, labels, themeController, useDarkLabel, useLightLabel }: StockMobileControlsProps): React.JSX.Element {\n return <div className=\"dllm-stock-controls\">\n <Button\n aria-label={labels.openNavigation}\n className=\"dllm-stock-menu\"\n size=\"sm\"\n variant=\"toolbar\"\n onClick={() => layout.toggleSidebar()}\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M4 7h16M4 12h16M4 17h16\" /></svg>\n </Button>\n <Button\n aria-label={labels.closeOverlay}\n className=\"dllm-stock-scrim\"\n size=\"sm\"\n variant=\"ghost\"\n onClick={() => layout.toggleSidebar()}\n />\n <div className=\"dllm-stock-theme\">\n <MobileThemeToggle controller={themeController} useDarkLabel={useDarkLabel} useLightLabel={useLightLabel} />\n </div>\n </div>\n}\n\nexport const MOBILE_STOCK_LAYOUT_STYLES = `\nbody[data-dsh-local-link-mobile]{overflow:hidden}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay]){--dllm-side-drawer-width:min(88vw,340px);--dllm-side-drawer-closed-transform:translateX(calc(-1 * var(--dllm-side-drawer-width) - 14px));grid-template-columns:minmax(0,1fr)!important}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:first-child{position:fixed;z-index:70;inset:0 auto 0 0;box-sizing:border-box;width:var(--dllm-side-drawer-width);transform:translateX(0);transition:transform 190ms cubic-bezier(.22,1,.36,1);box-shadow:18px 0 46px rgb(15 23 42 / 18%)}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:first-child>[data-slot=\"sidebar\"]>*{width:100%!important;height:100%!important}\nbody[data-dsh-local-link-mobile] [data-slot=\"sidebar\"] button[class*=\"_brand\"]{flex:0 0 auto!important;inline-size:max-content!important;width:max-content!important;min-width:0!important;max-width:calc(100% - 72px)!important;margin-right:auto!important}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div[data-sidebar-collapsed]:has(>[data-shell-overlay])>:first-child{transform:var(--dllm-side-drawer-closed-transform);pointer-events:none}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:nth-child(2){grid-column:1;grid-row:1;min-width:0}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:nth-child(3){display:none}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>[data-shell-overlay]{z-index:90}\n.dllm-stock-controls{position:absolute;inset:0;pointer-events:none}\n.dllm-stock-menu{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));display:grid;width:44px;height:44px;padding:0;place-items:center;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,rgb(148 163 184 / 30%));border-radius:12px;color:inherit;background:var(--dsw-alias-bg-layer-1,rgb(255 255 255 / 92%));box-shadow:var(--dsw-shadow-lv3,0 8px 24px rgb(15 23 42 / 14%));pointer-events:auto;transition:opacity 120ms ease,transform 120ms ease}\n.dllm-stock-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:not([data-sidebar-collapsed]):has(>[data-shell-overlay]) .dllm-stock-menu{opacity:0;transform:scale(.9);pointer-events:none}\n.dllm-stock-scrim{position:absolute;inset:0 0 0 var(--dllm-side-drawer-width);width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:var(--dsw-alias-bg-mask-1,rgb(15 23 42 / 40%))!important;pointer-events:auto}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div[data-sidebar-collapsed]:has(>[data-shell-overlay]) .dllm-stock-scrim{opacity:0;pointer-events:none}\n.dllm-stock-theme{position:absolute;top:calc(env(safe-area-inset-top) + 22px);left:calc(var(--dllm-side-drawer-width) - 76px);display:grid;width:28px;height:28px;place-items:center;opacity:1;visibility:visible;transform:translateX(0);pointer-events:auto;transition:opacity 120ms ease,transform 190ms cubic-bezier(.22,1,.36,1),visibility 0s linear 0s}\n.dllm-stock-theme .dllm-theme-button{box-sizing:border-box!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:50%!important}\nbody[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div[data-sidebar-collapsed]:has(>[data-shell-overlay]) .dllm-stock-theme{opacity:0;visibility:hidden;transform:var(--dllm-side-drawer-closed-transform);pointer-events:none;transition:opacity 120ms ease,transform 190ms cubic-bezier(.22,1,.36,1),visibility 0s linear 190ms}\nbody[data-dsh-local-link-mobile] [data-slot=\"sidebar.workspaces\"] button[aria-label=\"Add workspace\"],body[data-dsh-local-link-mobile] [data-slot=\"sidebar.workspaces\"] button[aria-label=\"添加工作区\"]{display:none!important}\nbody[data-dsh-local-link-mobile] [role=\"treeitem\"][aria-selected=\"true\"]>span:has(button[aria-label]){display:inline-flex!important;margin-left:4px}\nbody[data-dsh-local-link-mobile] [role=\"treeitem\"][aria-selected=\"true\"]>span:has(button[aria-label]) button{width:28px!important;height:28px!important}\nbody[data-dsh-local-link-mobile] [role=\"tree\"]>div:has([role=\"treeitem\"][aria-selected=\"true\"]) [role=\"treeitem\"][aria-expanded]>span:last-child{display:inline-flex!important}\nbody[data-dsh-local-link-mobile] [role=\"treeitem\"][aria-expanded]:has(>span[class*=\"_folderActive\"])>span:last-child{display:inline-flex!important}\nbody[data-dsh-local-link-mobile] header{min-width:0;padding-left:max(58px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}\nbody[data-dsh-local-link-mobile] textarea,body[data-dsh-local-link-mobile] input{font-size:max(16px,1em)}\nbody[data-dsh-local-link-mobile] [role=tablist]{display:flex;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}\nbody[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}\nbody[data-dsh-local-link-mobile] header nav:has(.dllm-lineage-title){gap:0!important;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}\nbody[data-dsh-local-link-mobile] header nav:has(.dllm-lineage-title)>span{gap:1px!important}\nbody[data-dsh-local-link-mobile] header nav:has(.dllm-lineage-title)>span>button{padding-inline:4px!important;font-size:14px!important;line-height:20px!important}\nbody[data-dsh-local-link-mobile] [data-turn-tail]>div:last-child>button[aria-haspopup=dialog][aria-expanded]{position:relative;box-sizing:border-box;width:28px;max-width:28px;height:28px;overflow:hidden;padding:6px;border:0;border-radius:50%;color:var(--dsw-alias-label-secondary,inherit);font-size:0;line-height:0;text-indent:-9999px;background:var(--dsw-alias-interactive-bg-hover,rgb(127 127 127 / 14%))}\nbody[data-dsh-local-link-mobile] [data-turn-tail]>div:last-child>button[aria-haspopup=dialog][aria-expanded]::before{content:\"\";display:block;width:16px;height:16px;background:currentColor;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.8 2.4a1.7 1.7 0 0 1 2.4 2.4L6 12l-3 .6.6-3 7.2-7.2Z'/%3E%3Cpath d='m9.8 3.4 2.8 2.8'/%3E%3C/svg%3E\") center/16px 16px no-repeat}\nbody[data-dsh-local-link-mobile] [data-cordis-panel]{left:max(12px,env(safe-area-inset-left))!important;right:max(12px,env(safe-area-inset-right))!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - max(24px,env(safe-area-inset-top) + env(safe-area-inset-bottom)))!important}\nbody[data-dsh-local-link-mobile] [data-cordis-row]{min-width:0}body[data-dsh-local-link-mobile] [data-cordis-row]>div{min-width:0;flex-wrap:wrap}body[data-dsh-local-link-mobile] [data-cordis-row] span{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}\n@media(prefers-reduced-motion:reduce){body[data-dsh-local-link-mobile] #root>[data-slot=\"root\"]>div:has(>[data-shell-overlay])>:first-child,.dllm-stock-theme{transition:none!important}}\n${MOBILE_SUBAGENT_STYLES}\n${MOBILE_SESSION_INFO_STYLES}\n`\n\n/**\n * Enhance Harness' shipped responsive AppFrame without claiming its root or\n * redeclaring its child slots. This is the 3080 path used by the normal client.\n */\nfunction applyResponsiveMobileEnhancementsBody(ctx: ClientContext): void {\n const themeController: ThemeController = {\n getSnapshot: () => ctx.theme.getTheme(),\n subscribe: listener => ctx.on('theme/change', () => listener()),\n setDark: dark => ctx.theme.setTheme(dark ? 'dark' : 'light'),\n }\n const t = ctx.locale.bind(NS)\n const labels: MobileLabels = {\n closeOverlay: t('mobile.closeOverlay'),\n openNavigation: t('mobile.openNavigation'),\n }\n\n applyMobileSubagents(ctx)\n applyMobileSessionInfo(ctx)\n\n ctx.effect(() => {\n document.body.dataset.dshLocalLinkMobile = ''\n const style = document.createElement('style')\n style.dataset.plugin = 'dsh-local-link-mobile-enhancements'\n style.textContent = MOBILE_STOCK_LAYOUT_STYLES\n document.head.append(style)\n return () => {\n delete document.body.dataset.dshLocalLinkMobile\n style.remove()\n }\n }, 'dsh-local-link: stock mobile layout styles')\n\n ctx.effect(() => ctx.slots.inject('shell.overlay', () => ctx.slots.register({\n name: 'shell.overlay',\n id: 'dsh-local-link-mobile-controls',\n order: -100,\n }, () => <StockMobileControls\n layout={ctx.layout}\n labels={labels}\n themeController={themeController}\n useDarkLabel={t('mobile.useDarkMode')}\n useLightLabel={t('mobile.useLightMode')}\n />)), 'dsh-local-link: stock mobile controls')\n\n ctx.effect(() => installMobileComposerAutofocusGuard(ctx),\n 'dsh-local-link: suppress mobile composer autofocus on session change')\n\n ctx.effect(() => {\n const onClick = (event: MouseEvent): void => {\n const target = event.target\n if (!(target instanceof Element) || !shouldCloseMobileSidebarForElement(target)) return\n const frame = document.querySelector('[data-shell-overlay]')?.parentElement\n if (frame?.hasAttribute('data-sidebar-collapsed') !== false) return\n window.setTimeout(() => ctx.layout.toggleSidebar(), 0)\n }\n document.addEventListener('click', onClick, true)\n return () => document.removeEventListener('click', onClick, true)\n }, 'dsh-local-link: close stock mobile sidebar after session selection')\n\n ctx.effect(() => ctx.slots.inject('sidebar.settings', () => ctx.slots.register({\n name: 'sidebar.settings',\n priority: MOBILE_SETTINGS_PRIORITY,\n }, () => null)), 'dsh-local-link: hide desktop settings entry on mobile')\n\n ctx.effect(() => ctx.slots.inject('sidebar.footer.action', () => ctx.slots.register({\n name: 'sidebar.footer.action',\n id: 'local-link-connect',\n priority: MOBILE_LOCAL_ACCESS_PRIORITY,\n }, () => null)), 'dsh-local-link: hide nested local access action on mobile')\n}\n\nexport const applyResponsiveMobileEnhancements = Object.assign(applyResponsiveMobileEnhancementsBody, {\n inject: ['slots', 'theme', 'locale', 'sessions', 'sessionLogDownload', 'layout'],\n})\n","","","import React, { useCallback, useEffect, useRef, useState } from 'react'\nimport type {} from '@deepseek-ai/dsh-api-session-controller/client'\nimport type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-sidebar/client'\nimport { Button, IconChevronDownOutline14, Input } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { ClientContext } from './client-context.js'\nimport { applyResponsiveMobileEnhancements } from './mobile-layout.js'\nimport en from './locales/en.json' with { type: 'json' }\nimport zh from './locales/zh.json' with { type: 'json' }\n\nconst NS = 'dsh.localLink'\ntype LocaleKey = keyof typeof en\n\ndeclare module '@deepseek-ai/dsh-client-ui-slots' {\n interface LocaleNamespaceMap {\n 'dsh.localLink': LocaleKey\n }\n}\n\ninterface Device {\n id: string\n name: string\n deviceType: string\n browser: string\n}\n\ninterface DevicePayload {\n id?: unknown\n name?: unknown\n deviceType?: unknown\n browser?: unknown\n label?: unknown\n}\n\ninterface StatusPayload {\n devices?: unknown\n}\n\ninterface Status {\n devices: Device[]\n}\n\ninterface DiagnosticEvent {\n id: string\n at: string\n level: 'warn' | 'error'\n code: string\n context?: Record<string, string | number | boolean>\n}\n\ninterface DiagnosticsPayload {\n events?: unknown\n}\n\ninterface Pairing {\n id: string\n url: string\n qrDataUrl: string\n expiresAt: string\n}\n\ninterface PairingState {\n status: 'active' | 'consumed' | 'expired' | 'unknown'\n}\n\ninterface PopoverPosition {\n left: number\n top: number\n}\n\ntype FooterProps = PropsRuntime<'sidebar.footer.action'> & PropsLocale<typeof NS>\ntype LocalLinkFooterProps = FooterProps & { readonly getCurrentSessionId: () => string | undefined }\n\nfunction desktopOrigin(): boolean {\n return location.hostname === 'localhost' || location.hostname === '127.0.0.1' || location.hostname === '::1'\n}\n\nfunction secondsUntil(iso: string): number {\n return Math.max(0, Math.ceil((Date.parse(iso) - Date.now()) / 1_000))\n}\n\nfunction formatCountdown(seconds: number): string {\n const minutes = Math.floor(seconds / 60)\n return `${minutes}:${String(seconds % 60).padStart(2, '0')}`\n}\n\nfunction payloadText(value: unknown, fallback: string): string {\n return typeof value === 'string' && value.trim() !== '' ? value : fallback\n}\n\nfunction legacyDeviceType(label: unknown): string {\n if (typeof label !== 'string') return 'Computer'\n if (/ipad|tablet/iu.test(label)) return 'Tablet'\n if (/iphone|android|mobile|phone|linux\\s+arm/iu.test(label)) return 'Phone'\n return 'Computer'\n}\n\nfunction normalizeDevices(payload: StatusPayload): Device[] {\n if (!Array.isArray(payload.devices)) return []\n return payload.devices.flatMap(value => {\n if (value === null || typeof value !== 'object' || Array.isArray(value)) return []\n const device = value as DevicePayload\n if (typeof device.id !== 'string') return []\n return [{\n id: device.id,\n name: payloadText(device.name, 'My device'),\n deviceType: payloadText(device.deviceType, legacyDeviceType(device.label)),\n browser: payloadText(device.browser, 'Browser'),\n }]\n })\n}\n\nfunction normalizeDiagnostics(payload: DiagnosticsPayload): DiagnosticEvent[] {\n if (!Array.isArray(payload.events)) return []\n return payload.events.flatMap(value => {\n if (value === null || typeof value !== 'object' || Array.isArray(value)) return []\n const event = value as Partial<DiagnosticEvent>\n if (typeof event.id !== 'string' || typeof event.at !== 'string' || typeof event.code !== 'string'\n || (event.level !== 'warn' && event.level !== 'error')) return []\n const context = event.context !== null && typeof event.context === 'object' && !Array.isArray(event.context)\n ? Object.fromEntries(Object.entries(event.context).filter((entry): entry is [string, string | number | boolean] => {\n const item = entry[1]\n return typeof item === 'string' || typeof item === 'number' || typeof item === 'boolean'\n }))\n : undefined\n return [{ id: event.id, at: event.at, level: event.level, code: event.code, ...(context === undefined ? {} : { context }) }]\n })\n}\n\nfunction openSettingsSection(label: string): void {\n const trigger = document.querySelector<HTMLButtonElement>('button[aria-haspopup=\"dialog\"][aria-expanded]')\n if (trigger === null) return\n trigger.click()\n let attempts = 0\n const selectSection = (): void => {\n const dialog = document.querySelector<HTMLElement>('[role=\"dialog\"]')\n const target = dialog === null ? undefined : [...dialog.querySelectorAll<HTMLButtonElement>('nav button')]\n .find(button => button.textContent?.trim() === label)\n if (target !== undefined) {\n target.click()\n return\n }\n attempts += 1\n if (attempts < 10) window.requestAnimationFrame(selectSection)\n }\n window.requestAnimationFrame(selectSection)\n}\n\nasync function jsonRequest<T>(path: string, init?: RequestInit): Promise<T> {\n const response = await fetch(path, {\n ...init,\n headers: { 'content-type': 'application/json', ...init?.headers },\n })\n const body = await response.json() as T & { error?: string }\n if (!response.ok) throw new Error(body.error ?? `HTTP ${response.status}`)\n return body\n}\n\nfunction reportActionError(code: 'CLIPBOARD_COPY_FAILED' | 'DEVICE_REVOKE_FAILED' | 'DEVICE_RENAME_FAILED'): void {\n void fetch('/__dsh-local-link/admin/diagnostics/event', {\n method: 'POST',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify({ code }),\n }).catch(() => undefined)\n}\n\nconst styles = `\n:root{--dsh-local-link-border-width:.5px}\n.dsh-local-link{box-sizing:border-box;width:100%;max-width:760px;padding:4px 4px 32px;color:var(--dsw-alias-label-primary,#16181d)}\n.dsh-local-link h2{margin:0 0 5px;font-size:20px}.dsh-local-link>p{margin:0;color:var(--dsw-alias-label-secondary,#66707c);line-height:1.5}\n.dsh-local-link__devices{display:grid;margin-top:12px;border-block:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-subtle,#dce1e8))}.dsh-local-link__devices>p{margin:0;padding:12px 0;color:var(--dsw-alias-label-secondary,#66707c);line-height:1.45}.dsh-local-link__device{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 0;border-top:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-subtle,#dce1e8))}.dsh-local-link__device:first-child{border-top:0}.dsh-local-link__device-info{display:grid;min-width:0;gap:2px}.dsh-local-link__device-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 14px/1.25 system-ui}.dsh-local-link__device-info small{overflow:hidden;color:var(--dsw-alias-label-secondary,#66707c);font:12px/1.3 system-ui;text-overflow:ellipsis;white-space:nowrap}.dsh-local-link__device-actions{display:flex;gap:6px}.dsh-local-link__device-editor{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px}.dsh-local-link__device-name-input{min-width:0;width:100%}@media(max-width:440px){.dsh-local-link__device{grid-template-columns:minmax(0,1fr) auto;gap:8px}.dsh-local-link__device-actions{gap:4px}.dsh-local-link__device-editor{grid-template-columns:1fr auto}.dsh-local-link__device-name-input{grid-column:1/-1}}\n.dsh-local-link__diagnostics{margin-top:30px;overflow:hidden;border:1px solid var(--dsw-alias-border-l2,#45484d);border-radius:12px;background:var(--dsw-alias-bg-layer-3,#303236);transition:border-color .16s,background .16s}.dsh-local-link__diagnostics:hover{border-color:var(--dsw-alias-label-dimmed,#74777d)}.dsh-local-link__diagnostics[open]{border-color:var(--dsw-alias-border-l2,#45484d);background:var(--dsw-alias-bg-layer-2,#282a2e)}.dsh-local-link__diagnostics summary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px 16px;box-sizing:border-box;cursor:pointer;list-style:none}.dsh-local-link__diagnostics summary::-webkit-details-marker{display:none}.dsh-local-link__diagnostics summary:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#2878ff);outline-offset:-2px}.dsh-local-link__diagnostics-summary-main,.dsh-local-link__diagnostics-summary-meta{display:flex;align-items:center;min-width:0}.dsh-local-link__diagnostics-summary-main{flex:1;gap:11px}.dsh-local-link__diagnostics-summary-meta{flex:none;gap:12px}.dsh-local-link__diagnostics-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;background:color-mix(in srgb,var(--dsw-alias-brand-primary,#2878ff) 14%,transparent);color:var(--dsw-alias-brand-primary,#2878ff)}.dsh-local-link__diagnostics-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:4px}.dsh-local-link__diagnostics-copy strong{color:var(--dsw-alias-label-primary,#f2f3f5);font:600 15px/1.4 system-ui}.dsh-local-link__diagnostics-copy small{overflow:hidden;color:var(--dsw-alias-label-tertiary,#a6a8ad);font:13px/1.5 system-ui;text-overflow:ellipsis;white-space:nowrap}.dsh-local-link__diagnostics-badge{padding:0;color:var(--dsw-alias-label-tertiary,#a6a8ad);font:400 12px/1.3 system-ui;white-space:nowrap}.dsh-local-link__diagnostics-chevron{flex:none;color:var(--dsw-alias-label-tertiary,#a6a8ad);transition:transform .16s}.dsh-local-link__diagnostics[open] .dsh-local-link__diagnostics-chevron{transform:rotate(180deg)}.dsh-local-link__diagnostics-body{margin:0 16px;padding:12px 0 8px;border-top:1px solid var(--dsw-alias-border-l2,#45484d)}.dsh-local-link__diagnostics-body>p{margin:0 0 12px;color:var(--dsw-alias-label-tertiary,#a6a8ad);font:12px/1.5 system-ui}.dsh-local-link__diagnostics-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.dsh-local-link__diagnostic-list{display:grid;overflow:hidden;border:1px solid var(--dsw-alias-border-l2,#45484d);border-radius:9px;background:var(--dsw-alias-bg-layer-3,#303236)}.dsh-local-link__diagnostic{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:8px;padding:8px 10px;border-top:1px solid var(--dsw-alias-border-l2,#45484d);font:12px/1.35 system-ui}.dsh-local-link__diagnostic:first-child{border-top:0}.dsh-local-link__diagnostic-level{width:7px;height:7px;border-radius:50%;background:#6b7280}.dsh-local-link__diagnostic-level--warn{background:#d28b15}.dsh-local-link__diagnostic-level--error{background:#dc4c4c}.dsh-local-link__diagnostic code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 11px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace}.dsh-local-link__diagnostic time{color:var(--dsw-alias-label-tertiary,#a6a8ad);font-size:11px;white-space:nowrap}.dsh-local-link__diagnostic-context{grid-column:2/-1;overflow:hidden;color:var(--dsw-alias-label-tertiary,#a6a8ad);font:11px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}@media(max-width:540px){.dsh-local-link__diagnostics-copy small{display:none}.dsh-local-link__diagnostics summary{padding-inline:12px}.dsh-local-link__diagnostics-badge{max-width:92px;overflow:hidden;text-overflow:ellipsis}}\n.dsh-local-link__diagnostics,.dsh-local-link__diagnostic-list{border-width:var(--dsh-local-link-border-width)}.dsh-local-link__diagnostics-body,.dsh-local-link__diagnostic{border-top-width:var(--dsh-local-link-border-width)}\n.dsh-local-link__diagnostics:hover{border-color:var(--dsw-alias-border-l2,#45484d);background:var(--dsw-alias-bg-layer-2,#282a2e)}\n.dsh-local-link-footer{position:relative;width:100%;min-width:0}:where(div):has(> .dsh-local-link-footer),:where(div):has(> :where(div) > .dsh-local-link-footer){flex-direction:column;gap:4px}:where(div):has(> .dsh-local-link-footer)>.dsh-local-link-footer+:where(div){margin-block-start:0!important}.dsh-local-link-trigger{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:calc(100% + 4px);height:42px;margin:0 -2px;padding:0 10px 0 8px;border:0;border-radius:12px;background:transparent;color:var(--dsw-alias-label-primary,#16181d);font:400 14px/22px inherit;cursor:pointer;overflow:hidden}.dsh-local-link-trigger:hover{background:var(--dsw-alias-interactive-bg-hover,#e8ebef)}.dsh-local-link-trigger--rail{justify-content:center;gap:0;width:36px;height:36px;margin:0;padding:0;border-radius:50%}.dsh-local-link-trigger__label{white-space:nowrap;overflow:hidden}\n.dsh-local-link-popover{position:fixed;z-index:10000;box-sizing:border-box;width:min(360px,calc(100vw - 24px));height:auto;max-height:calc(100vh - 24px);padding:16px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-subtle,#dce1e8));border-radius:14px;background:var(--dsw-alias-bg-layer-1,#fff);color:var(--dsw-alias-label-primary,#16181d);box-shadow:0 18px 55px #0004}.dsh-local-link-popover__header{display:flex;align-items:center;justify-content:space-between;gap:12px}.dsh-local-link-popover strong{font-size:15px}.dsh-local-link-popover__manage{flex:none;color:var(--dsw-alias-label-secondary,#66707c)}.dsh-local-link-popover p{margin:8px 0;color:var(--dsw-alias-label-secondary,#66707c);font:13px/1.45 system-ui}.dsh-local-link-popover__content{min-height:336px}.dsh-local-link-popover__qr,.dsh-local-link-popover__qr-placeholder{box-sizing:content-box;display:block;width:200px;height:200px;margin:12px auto 0;padding:7px;border-radius:12px}.dsh-local-link-popover__qr{background:#fff;transition:opacity .2s,filter .2s}.dsh-local-link-popover__qr-placeholder{background:var(--dsw-alias-bg-layer-2,#eef1f5)}.dsh-local-link-popover__loading{text-align:center}.dsh-local-link-popover__qr--expired{opacity:.3;filter:grayscale(1)}.dsh-local-link-popover__link{display:flex;align-items:stretch;min-width:0;height:40px;margin-top:12px;border:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-normal,#cbd2dc));border-radius:10px;overflow:hidden;background:var(--dsw-alias-bg-layer-2,#eef1f5)}.dsh-local-link-popover__link-value{position:relative;display:flex;align-items:center;flex:1;min-width:0;padding:0 8px 0 10px;overflow:hidden;white-space:nowrap;font:11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;mask-image:linear-gradient(to right,#000 76%,transparent 98%);-webkit-mask-image:linear-gradient(to right,#000 76%,transparent 98%)}.dsh-local-link-popover__copy{min-width:76px;padding:0 11px;border:0;border-left:var(--dsh-local-link-border-width) solid var(--dsw-alias-border-l2,var(--dsw-alias-border-normal,#cbd2dc));border-radius:0;transition:background .18s,color .18s}.dsh-local-link-popover__copy--copied{background:#16803a22;color:#39a85b}.dsh-local-link-popover__meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;color:var(--dsw-alias-label-secondary,#66707c);font:11px/1.35 system-ui}.dsh-local-link-popover__regenerate{display:flex;width:100%;margin-top:10px}.dsh-local-link-popover__error{color:#c53030!important}\n.dsh-local-link__diagnostic-level{background:var(--dsw-alias-label-tertiary,#6b7280)}\n.dsh-local-link__diagnostic-level--warn{background:var(--dsw-alias-state-warn-primary,#d28b15)}\n.dsh-local-link__diagnostic-level--error{background:var(--dsw-alias-state-error-primary,#dc4c4c)}\n.dsh-local-link-popover{box-shadow:var(--dsw-shadow-lv3,0 18px 55px #0004)}\n.dsh-local-link-popover__content{min-height:350px}\n.dsh-local-link-popover__qr{background:var(--dsw-static-neutral-00,#fff)}\n.dsh-local-link-popover__copy--copied{background:var(--dsw-alias-state-success-tertiary,#16803a22);color:var(--dsw-alias-state-success-primary,#39a85b)}\n.dsh-local-link-popover__error{color:var(--dsw-alias-state-error-primary,#c53030)!important}\n`\n\nfunction LocalLinkFooter({ wide, t, getCurrentSessionId }: LocalLinkFooterProps): React.JSX.Element | null {\n const desktop = desktopOrigin()\n const root = useRef<HTMLDivElement>(null)\n const popover = useRef<HTMLElement>(null)\n const [open, setOpen] = useState(false)\n const [popoverPosition, setPopoverPosition] = useState<PopoverPosition>()\n const [pairing, setPairing] = useState<Pairing>()\n const [remaining, setRemaining] = useState(0)\n const [copyState, setCopyState] = useState<'idle' | 'copied' | 'error'>('idle')\n const [error, setError] = useState(false)\n const copyReset = useRef<number | undefined>(undefined)\n\n const createLink = useCallback(async () => {\n setPairing(undefined)\n setRemaining(0)\n setCopyState('idle')\n setError(false)\n try {\n const nextPairing = await jsonRequest<Pairing>('/__dsh-local-link/admin/pairing', {\n method: 'POST',\n body: JSON.stringify({ sessionId: getCurrentSessionId() }),\n })\n setPairing(nextPairing)\n setRemaining(secondsUntil(nextPairing.expiresAt))\n } catch { setError(true) }\n }, [getCurrentSessionId])\n\n const copyLink = useCallback(async () => {\n if (pairing === undefined || remaining === 0) return\n try {\n await navigator.clipboard.writeText(pairing.url)\n setCopyState('copied')\n if (copyReset.current !== undefined) window.clearTimeout(copyReset.current)\n copyReset.current = window.setTimeout(() => setCopyState('idle'), 1_800)\n } catch {\n setCopyState('error')\n reportActionError('CLIPBOARD_COPY_FAILED')\n }\n }, [pairing, remaining])\n\n useEffect(() => {\n if (!open || pairing === undefined) return\n let disposed = false\n const update = (): void => setRemaining(secondsUntil(pairing.expiresAt))\n const check = async (): Promise<void> => {\n try {\n const result = await jsonRequest<PairingState>(`/__dsh-local-link/admin/pairing/status?id=${encodeURIComponent(pairing.id)}`)\n if (!disposed && result.status === 'consumed') setOpen(false)\n } catch { /* A transient status failure must not replace a still-visible invitation. */ }\n }\n update()\n void check()\n const countdownTimer = window.setInterval(update, 1_000)\n const statusTimer = window.setInterval(() => void check(), 2_000)\n return () => {\n disposed = true\n window.clearInterval(countdownTimer)\n window.clearInterval(statusTimer)\n }\n }, [open, pairing])\n\n useEffect(() => () => {\n if (copyReset.current !== undefined) window.clearTimeout(copyReset.current)\n }, [])\n\n useEffect(() => {\n if (!open) return\n const close = (event: PointerEvent): void => { if (!root.current?.contains(event.target as Node)) setOpen(false) }\n const escape = (event: KeyboardEvent): void => { if (event.key === 'Escape') setOpen(false) }\n document.addEventListener('pointerdown', close)\n window.addEventListener('keydown', escape)\n return () => {\n document.removeEventListener('pointerdown', close)\n window.removeEventListener('keydown', escape)\n }\n }, [open])\n\n useEffect(() => {\n if (!open) {\n setPopoverPosition(undefined)\n return\n }\n const position = (): void => {\n const anchorRect = root.current?.getBoundingClientRect()\n const popoverRect = popover.current?.getBoundingClientRect()\n if (anchorRect === undefined || popoverRect === undefined) return\n const viewportGutter = 12\n const preferredLeft = anchorRect.right + 20\n const left = preferredLeft + popoverRect.width <= window.innerWidth - viewportGutter\n ? preferredLeft\n : Math.max(viewportGutter, window.innerWidth - popoverRect.width - viewportGutter)\n const top = Math.max(viewportGutter, Math.round((window.innerHeight - popoverRect.height) / 2))\n setPopoverPosition({ left: Math.round(left), top })\n }\n const frame = window.requestAnimationFrame(position)\n const observer = new ResizeObserver(position)\n if (popover.current !== null) observer.observe(popover.current)\n window.addEventListener('resize', position)\n return () => {\n window.cancelAnimationFrame(frame)\n observer.disconnect()\n window.removeEventListener('resize', position)\n }\n }, [open])\n\n if (!desktop) return null\n return <div className=\"dsh-local-link-footer\" ref={root}>\n <Button className={`dsh-local-link-trigger${wide ? '' : ' dsh-local-link-trigger--rail'}`} size=\"md\" variant=\"ghost\" title={t('footer.trigger')} aria-label={t('footer.trigger')} aria-expanded={open} onClick={() => {\n const next = !open\n setOpen(next)\n if (next) void createLink()\n }}>\n <svg aria-hidden=\"true\" width={wide ? 16 : 18} height={wide ? 16 : 18} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\"><rect x=\"5\" y=\"2.5\" width=\"14\" height=\"19\" rx=\"2.5\"/><path d=\"M9 5.5h6M11 18.5h2\"/></svg>\n {wide && <span className=\"dsh-local-link-trigger__label\">{t('footer.trigger')}</span>}\n </Button>\n {open && <section className=\"dsh-local-link-popover\" ref={popover} style={popoverPosition ?? { visibility: 'hidden' }} aria-label={t('connect.title')}>\n <div className=\"dsh-local-link-popover__header\">\n <strong>{t('connect.title')}</strong>\n <Button className=\"dsh-local-link-popover__manage\" size=\"sm\" variant=\"ghost\" onClick={() => { setOpen(false); openSettingsSection(t('nav')) }}>{t('connect.pairedDevices')}</Button>\n </div>\n <p>{t('connect.description')}</p>\n <div className=\"dsh-local-link-popover__content\" aria-busy={pairing === undefined && !error} aria-live=\"polite\">\n {!pairing && !error && <>\n <div aria-hidden=\"true\" className=\"dsh-local-link-popover__qr-placeholder\" />\n <p className=\"dsh-local-link-popover__loading\">{t('connect.creating')}</p>\n </>}\n {error && <p className=\"dsh-local-link-popover__error\">{t('connect.error')}</p>}\n {pairing && <>\n <img className={`dsh-local-link-popover__qr${remaining === 0 ? ' dsh-local-link-popover__qr--expired' : ''}`} src={pairing.qrDataUrl} alt={t('connect.qrAlt')} />\n <div className=\"dsh-local-link-popover__link\" aria-label={t('connect.linkLabel')}>\n <code className=\"dsh-local-link-popover__link-value\" title={pairing.url}>{pairing.url}</code>\n <Button className={`dsh-local-link-popover__copy${copyState === 'copied' ? ' dsh-local-link-popover__copy--copied' : ''}`} disabled={remaining === 0} size=\"md\" variant=\"ghost\" onClick={() => void copyLink()}>{copyState === 'copied' ? t('connect.copied') : t('connect.copy')}</Button>\n </div>\n {copyState === 'error' && <p className=\"dsh-local-link-popover__error\">{t('connect.copyError')}</p>}\n <div className=\"dsh-local-link-popover__meta\">\n <span>{t('connect.oneDevice')}</span>\n <span>{remaining === 0 ? t('connect.expired') : `${t('connect.expiresIn')} ${formatCountdown(remaining)}`}</span>\n </div>\n <Button className=\"dsh-local-link-popover__regenerate\" size=\"md\" variant=\"outline\" onClick={() => void createLink()}>{t('connect.regenerate')}</Button>\n </>}\n </div>\n </section>}\n </div>\n}\n\nfunction LocalLinkSettings({ t }: PropsLocale<typeof NS>): React.JSX.Element {\n const [status, setStatus] = useState<Status>()\n const [diagnostics, setDiagnostics] = useState<DiagnosticEvent[]>()\n const [busyId, setBusyId] = useState<string>()\n const [editingId, setEditingId] = useState<string>()\n const [draftName, setDraftName] = useState('')\n const [error, setError] = useState(false)\n const [diagnosticsError, setDiagnosticsError] = useState(false)\n const [diagnosticsBusy, setDiagnosticsBusy] = useState(false)\n const [reportState, setReportState] = useState<'idle' | 'copied' | 'error'>('idle')\n\n const loadDevices = useCallback(async () => {\n try {\n const payload = await jsonRequest<StatusPayload>('/__dsh-local-link/admin/devices')\n setStatus({ devices: normalizeDevices(payload) })\n setError(false)\n } catch { setError(true) }\n }, [])\n\n const loadDiagnostics = useCallback(async () => {\n try {\n const payload = await jsonRequest<DiagnosticsPayload>('/__dsh-local-link/admin/diagnostics')\n setDiagnostics(normalizeDiagnostics(payload))\n setDiagnosticsError(false)\n } catch { setDiagnosticsError(true) }\n }, [])\n\n useEffect(() => { void loadDevices(); void loadDiagnostics() }, [loadDevices, loadDiagnostics])\n\n const revoke = async (id: string): Promise<void> => {\n setBusyId(id)\n try {\n await jsonRequest('/__dsh-local-link/admin/revoke', { method: 'POST', body: JSON.stringify({ id }) })\n await loadDevices()\n } catch {\n setError(true)\n reportActionError('DEVICE_REVOKE_FAILED')\n }\n finally { setBusyId(undefined) }\n }\n\n const rename = async (id: string): Promise<void> => {\n setBusyId(id)\n try {\n await jsonRequest('/__dsh-local-link/admin/rename', { method: 'POST', body: JSON.stringify({ id, name: draftName }) })\n setEditingId(undefined)\n await loadDevices()\n } catch {\n setError(true)\n reportActionError('DEVICE_RENAME_FAILED')\n }\n finally { setBusyId(undefined) }\n }\n\n const copyDiagnostics = async (): Promise<void> => {\n try {\n await navigator.clipboard.writeText(JSON.stringify({\n schemaVersion: 1,\n exportedAt: new Date().toISOString(),\n events: diagnostics ?? [],\n }, null, 2))\n setReportState('copied')\n } catch { setReportState('error') }\n }\n\n const clearDiagnostics = async (): Promise<void> => {\n if (!window.confirm(t('diagnostics.clearConfirm'))) return\n setDiagnosticsBusy(true)\n try {\n await jsonRequest('/__dsh-local-link/admin/diagnostics/clear', { method: 'POST', body: '{}' })\n setDiagnostics([])\n setDiagnosticsError(false)\n setReportState('idle')\n } catch { setDiagnosticsError(true) }\n finally { setDiagnosticsBusy(false) }\n }\n\n return <section className=\"dsh-local-link\">\n <h2>{t('devices.title')}</h2>\n <p>{t('devices.description')}</p>\n <div className=\"dsh-local-link__devices\" role=\"list\">\n {error ? <p>{t('devices.error')}</p> : status === undefined ? <p>{t('devices.loading')}</p> : status.devices.length ? status.devices.map(device => <div className=\"dsh-local-link__device\" key={device.id} role=\"listitem\">\n {editingId === device.id ? <div className=\"dsh-local-link__device-editor\">\n <Input autoFocus aria-label={t('devices.nameLabel')} className=\"dsh-local-link__device-name-input\" maxLength={64} value={draftName} onChange={event => setDraftName(event.target.value)} onKeyDown={event => { if (event.key === 'Enter') void rename(device.id); if (event.key === 'Escape') setEditingId(undefined) }} />\n <Button disabled={busyId !== undefined} size=\"sm\" variant=\"primary\" onClick={() => void rename(device.id)}>{busyId === device.id ? t('devices.saving') : t('devices.save')}</Button>\n <Button disabled={busyId !== undefined} size=\"sm\" variant=\"ghost\" onClick={() => setEditingId(undefined)}>{t('devices.cancel')}</Button>\n </div> : <>\n <div className=\"dsh-local-link__device-info\"><strong>{device.name}</strong><small>{device.deviceType} · {device.browser}</small></div>\n <div className=\"dsh-local-link__device-actions\">\n <Button disabled={busyId !== undefined} size=\"sm\" variant=\"outline\" onClick={() => { setEditingId(device.id); setDraftName(device.name) }}>{t('devices.rename')}</Button>\n <Button disabled={busyId !== undefined} size=\"sm\" variant=\"outline\" onClick={() => void revoke(device.id)}>{busyId === device.id ? t('devices.revoking') : t('devices.revoke')}</Button>\n </div>\n </>}\n </div>) : <p>{t('devices.empty')}</p>}\n </div>\n <details className=\"dsh-local-link__diagnostics\">\n <summary>\n <span className=\"dsh-local-link__diagnostics-summary-main\">\n <span className=\"dsh-local-link__diagnostics-icon\" aria-hidden=\"true\">\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\"><path d=\"M3 12h4l2.2-6 4.2 12 2.1-6H21\"/></svg>\n </span>\n <span className=\"dsh-local-link__diagnostics-copy\">\n <strong>{t('diagnostics.title')}</strong>\n <small>{t('diagnostics.subtitle')}</small>\n </span>\n </span>\n <span className=\"dsh-local-link__diagnostics-summary-meta\">\n <span className=\"dsh-local-link__diagnostics-badge\">{diagnosticsError ? t('diagnostics.unavailable') : diagnostics === undefined ? t('diagnostics.loading') : `${diagnostics.length} ${t('diagnostics.events')}`}</span>\n <IconChevronDownOutline14 className=\"dsh-local-link__diagnostics-chevron\" size={14} />\n </span>\n </summary>\n <div className=\"dsh-local-link__diagnostics-body\">\n <p>{t('diagnostics.description')}</p>\n <div className=\"dsh-local-link__diagnostics-actions\">\n <Button disabled={diagnosticsBusy} size=\"sm\" variant=\"outline\" onClick={() => void loadDiagnostics()}>{t('diagnostics.refresh')}</Button>\n <Button disabled={diagnosticsBusy || diagnostics === undefined} size=\"sm\" variant=\"outline\" onClick={() => void copyDiagnostics()}>{reportState === 'copied' ? t('diagnostics.copied') : t('diagnostics.copy')}</Button>\n <Button disabled={diagnosticsBusy || diagnostics === undefined || diagnostics.length === 0} size=\"sm\" variant=\"outline\" onClick={() => void clearDiagnostics()}>{diagnosticsBusy ? t('diagnostics.clearing') : t('diagnostics.clear')}</Button>\n </div>\n {reportState === 'error' && <p>{t('diagnostics.copyError')}</p>}\n {diagnosticsError ? <p>{t('diagnostics.error')}</p> : diagnostics === undefined ? <p>{t('diagnostics.loading')}</p> : diagnostics.length === 0 ? <p>{t('diagnostics.empty')}</p> : <div className=\"dsh-local-link__diagnostic-list\" role=\"list\">\n {diagnostics.slice(0, 12).map(event => <div className=\"dsh-local-link__diagnostic\" key={event.id} role=\"listitem\">\n <span className={`dsh-local-link__diagnostic-level dsh-local-link__diagnostic-level--${event.level}`} title={event.level} />\n <code>{event.code}</code>\n <time dateTime={event.at}>{new Date(event.at).toLocaleTimeString()}</time>\n {event.context !== undefined && <span className=\"dsh-local-link__diagnostic-context\" title={JSON.stringify(event.context)}>{Object.entries(event.context).map(([key, value]) => `${key}=${String(value)}`).join(' · ')}</span>}\n </div>)}\n </div>}\n </div>\n </details>\n </section>\n}\n\nexport const MOBILE_VIEW_MEDIA_QUERY = '(max-width: 834px)'\n\ninterface DisposableFiber {\n dispose: () => void | Promise<void>\n}\n\n/**\n * Mount the mobile root in its own Cordis fiber while the viewport is narrow.\n * Disposing that fiber retracts every mobile slot contribution atomically and\n * lets Harness' shipped root win again on wider screens.\n */\nexport function installResponsiveMobileLayout(\n media: MediaQueryList,\n mount: () => DisposableFiber,\n): () => void {\n let fiber: DisposableFiber | undefined\n let disposed = false\n let reconciling = false\n let requested = media.matches\n\n const reconcile = async (): Promise<void> => {\n if (reconciling || disposed) return\n reconciling = true\n try {\n while (!disposed) {\n if (requested && fiber === undefined) {\n fiber = mount()\n continue\n }\n if (!requested && fiber !== undefined) {\n const mounted = fiber\n fiber = undefined\n await mounted.dispose()\n continue\n }\n break\n }\n } finally {\n reconciling = false\n }\n }\n\n const onChange = (event: MediaQueryListEvent): void => {\n requested = event.matches\n void reconcile()\n }\n media.addEventListener('change', onChange)\n void reconcile()\n\n return () => {\n disposed = true\n media.removeEventListener('change', onChange)\n const mounted = fiber\n fiber = undefined\n if (mounted !== undefined) void mounted.dispose()\n }\n}\n\nexport const inject = ['slots', 'theme', 'locale', 'sessions', 'sessionLogDownload', 'layout']\n\nexport function apply(ctx: ClientContext): void {\n ctx.effect(() => ctx.locale.register(NS, { en, zh }), 'dsh-local-link: locale dictionaries')\n\n ctx.effect(() => installResponsiveMobileLayout(\n window.matchMedia(MOBILE_VIEW_MEDIA_QUERY),\n () => ctx.plugin(applyResponsiveMobileEnhancements),\n ), 'dsh-local-link: responsive mobile root')\n\n ctx.effect(() => {\n const style = document.createElement('style')\n style.dataset.plugin = 'dsh-local-link'\n style.textContent = styles\n document.head.append(style)\n return () => style.remove()\n }, 'dsh-local-link: interface styles')\n\n ctx.effect(() => {\n const getCurrentSessionId = (): string | undefined => ctx.sessions.list.getSnapshot().current\n const Footer = (props: FooterProps): React.JSX.Element => <LocalLinkFooter {...props} getCurrentSessionId={getCurrentSessionId} />\n return ctx.slots.inject('sidebar.footer.action', () => ctx.slots.register({\n name: 'sidebar.footer.action',\n id: 'local-link-connect',\n order: -10,\n locale: NS,\n }, Footer))\n }, 'dsh-local-link: sidebar connection action')\n\n ctx.effect(() => {\n if (!desktopOrigin()) return () => undefined\n return ctx.slots.inject('settings.section', () => ctx.slots.register({\n name: 'settings.section',\n id: 'local-access-devices',\n order: 12,\n label: () => ctx.locale.bind(NS)('nav'),\n locale: NS,\n }, LocalLinkSettings))\n }, 'dsh-local-link: paired devices settings')\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEA,MAAM,YAAY;GAChB;GACA;GACA;GACA;GACA;GACA;EACF,CAAC,CAAC,KAAK,GAAG;;EAGV,SAAgB,gBAAgB,MAAe,OAA2C;GACxF,MAAM,UAAA,GAASA,MAAAA,OAAAA,CAAoB,IAAI;GACvC,MAAM,YAAA,GAAWA,MAAAA,OAAAA,CAAO,KAAK;GAC7B,SAAS,UAAU;GAEnB,CAAA,GAAA,MAAA,UAAA,OAAgB;IACd,IAAI,CAAC,MAAM;IACX,MAAM,WAAW,SAAS,yBAAyB,cAAc,SAAS,gBAAgB,KAAA;IAC1F,MAAM,QAAQ,OAAO,4BAA4B;KAE9C,CADa,OAAO,SAAS,cAA2B,SAAS,KACvD,OAAO,QAAA,EAAU,MAAM,EAAE,eAAe,KAAK,CAAC;IAC3D,CAAC;IACD,MAAM,aAAa,UAA+B;KAChD,IAAI,MAAM,QAAQ,UAAU;MAC1B,MAAM,eAAe;MACrB,SAAS,QAAQ;MACjB;KACF;KACA,IAAI,MAAM,QAAQ,SAAS,OAAO,YAAY,MAAM;KACpD,MAAM,YAAY,CAAC,GAAG,OAAO,QAAQ,iBAA8B,SAAS,CAAC,CAAC,CAC3E,QAAO,YAAW,CAAC,QAAQ,UAAU,QAAQ,eAAe,CAAC,CAAC,SAAS,CAAC;KAC3E,IAAI,UAAU,WAAW,GAAG;MAC1B,MAAM,eAAe;MACrB,OAAO,QAAQ,MAAM,EAAE,eAAe,KAAK,CAAC;MAC5C;KACF;KACA,MAAM,QAAQ,UAAU;KACxB,MAAM,OAAO,UAAU,GAAG,EAAE;KAC5B,IAAI,MAAM,YAAY,SAAS,kBAAkB,OAA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IACV,GAAG,iBAAiB,CAAC;GACvB,GAAG,yCAAyC;EAC9C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-local-link",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "DeepSeek Harness plugin for lightweight LAN access to the current Web UI from phones, tablets, and other computers.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -87,7 +87,7 @@
87
87
  "author": "DoNotEatMe",
88
88
  "peerDependencies": {
89
89
  "@deepseek-ai/cordis": "^4.0.2",
90
- "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1",
90
+ "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2",
91
91
  "react": "^18.2.0"
92
92
  },
93
93
  "peerDependenciesMeta": {
@@ -107,26 +107,26 @@
107
107
  },
108
108
  "devDependencies": {
109
109
  "@deepseek-ai/cordis": "4.0.2",
110
- "@deepseek-ai/dsh-api-session-controller": "0.1.2-rc.1",
111
- "@deepseek-ai/dsh-attachment": "0.1.2-rc.1",
112
- "@deepseek-ai/dsh-client-connection": "0.1.2-rc.1",
113
- "@deepseek-ai/dsh-client-locale": "0.1.2-rc.1",
114
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.2-rc.1",
115
- "@deepseek-ai/dsh-client-ui-layout": "0.1.2-rc.1",
116
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.2-rc.1",
117
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.2-rc.1",
118
- "@deepseek-ai/dsh-client-ui-session": "0.1.2-rc.1",
119
- "@deepseek-ai/dsh-client-ui-settings": "0.1.2-rc.1",
120
- "@deepseek-ai/dsh-client-ui-sidebar": "0.1.2-rc.1",
121
- "@deepseek-ai/dsh-client-ui-slots": "0.1.2-rc.1",
122
- "@deepseek-ai/dsh-client-ui-theme": "0.1.2-rc.1",
123
- "@deepseek-ai/dsh-host-webserver": "0.1.2-rc.1",
124
- "@deepseek-ai/dsh-code-runtime": "0.1.2-rc.1",
125
- "@deepseek-ai/dsh-session-persistence": "0.1.2-rc.1",
126
- "@deepseek-ai/dsh-session-query": "0.1.2-rc.1",
127
- "@deepseek-ai/dsh-session-log-export": "0.1.2-rc.1",
128
- "@deepseek-ai/dsh-settings": "0.1.2-rc.1",
129
- "@deepseek-ai/dsh-subagent": "0.1.2-rc.1",
110
+ "@deepseek-ai/dsh-api-session-controller": "0.1.5-rc.1",
111
+ "@deepseek-ai/dsh-attachment": "0.1.5-rc.1",
112
+ "@deepseek-ai/dsh-client-connection": "0.1.5-rc.1",
113
+ "@deepseek-ai/dsh-client-locale": "0.1.5-rc.1",
114
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.5-rc.1",
115
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.5-rc.1",
116
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.1",
117
+ "@deepseek-ai/dsh-client-ui-renderer": "0.1.5-rc.1",
118
+ "@deepseek-ai/dsh-client-ui-session": "0.1.5-rc.1",
119
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.1",
120
+ "@deepseek-ai/dsh-client-ui-sidebar": "0.1.5-rc.1",
121
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.1",
122
+ "@deepseek-ai/dsh-client-ui-theme": "0.1.5-rc.1",
123
+ "@deepseek-ai/dsh-host-webserver": "0.1.5-rc.1",
124
+ "@deepseek-ai/dsh-code-runtime": "0.1.5-rc.1",
125
+ "@deepseek-ai/dsh-session-persistence": "0.1.5-rc.1",
126
+ "@deepseek-ai/dsh-session-query": "0.1.5-rc.1",
127
+ "@deepseek-ai/dsh-session-log-export": "0.1.5-rc.1",
128
+ "@deepseek-ai/dsh-settings": "0.1.5-rc.1",
129
+ "@deepseek-ai/dsh-subagent": "0.1.5-rc.1",
130
130
  "@types/node": "^24.3.0",
131
131
  "@types/qrcode": "^1.5.5",
132
132
  "@types/react": "~18.3.1",