dsh-local-link 1.2.5 → 1.2.7
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 +37 -0
- package/README.md +6 -6
- package/README.ru.md +6 -6
- package/README.zh.md +6 -6
- package/docs/ARCHITECTURE.md +7 -3
- package/docs/MOBILE_VIEW.md +4 -2
- package/docs/SECURITY.md +1 -0
- package/docs/images/local-access-devices.jpg +0 -0
- package/docs/images/local-access-devices.zh.jpg +0 -0
- package/docs/images/local-access-diagnostics.jpg +0 -0
- package/docs/images/local-access-diagnostics.zh.jpg +0 -0
- package/docs/images/local-access-qr.jpg +0 -0
- package/docs/images/local-access-qr.zh.jpg +0 -0
- package/docs/images/mobile-chat.png +0 -0
- package/docs/images/mobile-chat.zh.png +0 -0
- package/docs/images/mobile-navigation.png +0 -0
- package/docs/images/mobile-navigation.zh.png +0 -0
- package/docs/images/mobile-session-info.png +0 -0
- package/docs/images/mobile-session-info.zh.png +0 -0
- package/docs/images/mobile-subagents.png +0 -0
- package/docs/images/mobile-subagents.zh.png +0 -0
- package/lib/client.js +29 -30
- package/lib/client.js.map +1 -1
- package/lib/index.d.mts +0 -4
- package/lib/index.mjs +32 -31
- package/package.json +49 -45
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented here.
|
|
4
4
|
|
|
5
|
+
## 1.2.7 — 2026-11-20
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Added the verified DeepSeek Harness `0.2.2-rc.5` to `engines.dsh` and the matching Host peer range, and updated exact development contracts. Earlier declarations, including `0.2.2-rc.1`, are retained. Ordinary rc.5 startup no longer requires a version exemption.
|
|
10
|
+
- Pinned the development graph's OpenTelemetry API to 1.9.1 to satisfy the SDK's `<1.10` peer constraint. Production dependencies are unchanged.
|
|
11
|
+
- Updated English, Russian and Simplified Chinese compatibility documentation. README screenshots retain their original rc.1 capture labels; no runtime UI or trusted-LAN behavior changed.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- npm publication now explicitly supplies the English `README.md` content instead of allowing npm to select `README.zh.md`. All three localized README files remain in the package. The release command restores the original manifest after success, failure or dry-run; a prepublish check rejects accidental publication without the explicit English metadata.
|
|
16
|
+
|
|
17
|
+
### Validation
|
|
18
|
+
|
|
19
|
+
- Typecheck, all 123 tests across 19 files, build, package and npm publication dry-run passed with the rc.5 SDK.
|
|
20
|
+
- Isolated EN/ZH checks on rc.5 cover pairing, selected-chat QR handoff, authenticated HTTP/WebSocket access, immediate socket closure on revoke, 15 Host-only RPC variants, three native app routes, new-chat creation, paired-device shortcuts, and ten mobile viewports from 320 to 768 CSS pixels. Physical-phone, voice, model generation and the full historical Host matrix were not rerun.
|
|
21
|
+
|
|
22
|
+
## 1.2.6 — 2026-11-18
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Updated exact development contracts and Host compatibility metadata to DeepSeek Harness `0.2.2-rc.1`, rechecked as npm `latest` on 2026-11-18. Aligned Cordis 4.1 and Schemastery 3.19; no runtime dependency was added. Historical Host declarations remain unchanged.
|
|
27
|
+
- Updated English, Russian and Simplified Chinese compatibility documentation. Current development/CI uses Node.js 24.9+ to match Harness `0.2.2`; the plugin retains its Node.js 22.19 baseline for earlier declared Hosts.
|
|
28
|
+
- Replaced all 14 README screenshots with real-browser dark-theme captures on `0.2.2-rc.1`: eight mobile PNG originals at `430 × 932` and six desktop JPEG originals at `1440 × 1000`. English and Simplified Chinese use separate fictional profiles; Russian shares the English images. Original image bytes are preserved.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- Restored mobile layout with the `0.2.2` AppFrame: select sidebar/main columns by semantic slots instead of child positions, hide the duplicate native sidebar mask and leading control, and remove the resulting header gap. Session navigation no longer reopens a sidebar that Harness already closed.
|
|
33
|
+
- Preserved the Host-only administration boundary across Typert's dotted-to-slash API migration and the `agentPresets` namespace. Settings, credentials, directory selection and preset authoring remain blocked through the LAN gateway in both access modes.
|
|
34
|
+
- Blocked native `/open-in-app` discovery, icons and launch routes through the gateway and removed the corresponding launcher from remote boot. Loopback desktop launching and ordinary remote session/workspace operations remain available.
|
|
35
|
+
|
|
36
|
+
### Validation
|
|
37
|
+
|
|
38
|
+
- Typecheck, all 120 tests across 18 files, and build passed against `0.2.2-rc.1`. The automated suite also passes on Node.js 22 for the retained library baseline; this does not make Harness `0.2.2` compatible with Node.js 22.
|
|
39
|
+
- In live checks on 2026-11-13, EN/ZH pairing returned `204`, native browser handoff `303` / `303`, root `200`, and WebSocket upgrade `101`. Revoke immediately closed the established socket and subsequent access returned `401`. Fifteen legacy/current Host-only API targets and three native app routes returned `403`.
|
|
40
|
+
- Chromium checks on 2026-11-13 passed ten EN/ZH viewports from 320 to 768 CSS pixels, selected-chat QR entry and navigation/session/subagent surfaces at 320 and 430 px, expanded/collapsed Paired devices shortcuts, all three native More menus, Copy link, invitation replacement, QR auto-close, rename/revoke, and diagnostic refresh/copy/clear. Browser JavaScript errors: none. Physical-phone, voice, live model generation and the full historical Host matrix were not rerun.
|
|
41
|
+
|
|
5
42
|
## 1.2.5 — 2026-10-30
|
|
6
43
|
|
|
7
44
|
### Changed
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Use the same [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
|
|
|
13
13
|
|
|
14
14
|
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.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Local Link `1.2.7` supports DeepSeek Harness `0.2.2-rc.5` and the earlier Hosts declared in `engines.dsh`. It reorganizes the stock Web interface into responsive drawers, compact session controls, and touch-friendly actions while keeping the same client, session, plugin slots, permissions, and live agent stream.
|
|
17
17
|
|
|
18
18
|
> **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.
|
|
19
19
|
|
|
@@ -58,7 +58,7 @@ dsh web
|
|
|
58
58
|
|
|
59
59
|
### Git clone — development checkout
|
|
60
60
|
|
|
61
|
-
Requirements: Git, Node.js
|
|
61
|
+
Requirements for this checkout: Git, Node.js 24.9+, Corepack, and a global `dsh` installation compatible with the package's declared `engines.dsh` range. Harness `0.2.2` requires Node.js 24.9+; the plugin retains its Node.js 22.19 baseline for older declared Hosts.
|
|
62
62
|
|
|
63
63
|
```shell
|
|
64
64
|
git clone https://github.com/donoteatme/dsh-local-link.git
|
|
@@ -73,11 +73,11 @@ The profile points at the checkout, so rebuild after changing client code and re
|
|
|
73
73
|
|
|
74
74
|
## Compatibility
|
|
75
75
|
|
|
76
|
-
Local Link `1.2.
|
|
76
|
+
Local Link `1.2.7` is built and checked against DeepSeek Harness `0.2.2-rc.5`, including ordinary plugin startup without a version exemption. Its mobile adapter supports the native sidebar mask and navigation lifecycle. The gateway recognizes both legacy dotted and current slash-based API names, while native app launching and Host administration remain available only on the Harness computer. Existing `webStartup` / `webRuntime`, public Session scopes, and native Settings navigation integrations are retained.
|
|
77
77
|
|
|
78
78
|
The installable DeepSeek Harness range is declared in `package.json` through `engines.dsh`. Compatibility is checked against exact releases—not inferred from a successful installation or a moving dist-tag.
|
|
79
79
|
|
|
80
|
-
Acceptance on `0.2.
|
|
80
|
+
Acceptance on `0.2.2-rc.5` covers pairing, selected-chat QR handoff, authenticated HTTP/WebSocket access, immediate socket closure on revoke, Host-only API and native-app restrictions, new-chat creation, paired-device controls, and mobile layouts at 320–768 CSS pixels in EN and ZH. These checks used isolated profiles with fictional data and a loopback gateway. Earlier Host declarations retain the historical acceptance recorded in the [changelog](CHANGELOG.md); the full old-version matrix and physical-phone checks were not rerun. Mobile microphone capture over plain LAN HTTP remains unsupported; this release adds neither HTTPS nor voice input.
|
|
81
81
|
|
|
82
82
|
## Use
|
|
83
83
|
|
|
@@ -110,7 +110,7 @@ The implementation changes presentation, not Harness ownership or behavior:
|
|
|
110
110
|
- the native workspace/session browser becomes a left drawer;
|
|
111
111
|
- dynamic Chat, Trajectory, composer, overlay, and third-party plugin slots remain intact;
|
|
112
112
|
- Current session opens from the header with context breakdown, model, workspace access, preset, activity, and session-log download;
|
|
113
|
-
- on mobile, the duplicate stock context meter below the chat and the Host-app opener (Explorer/VS Code/Rider) are hidden;
|
|
113
|
+
- on mobile, the duplicate stock context meter below the chat and the Host-app opener (Explorer/VS Code/Rider) are hidden; the context meter remains available on desktop, and native app launching remains available on the loopback desktop only;
|
|
114
114
|
- on 0.1.5, child-agent status opens the nested catalog in a touch-friendly bottom sheet; on 0.1.7 and 0.2, the native Harness subagent header action owns that navigation;
|
|
115
115
|
- the Harness theme service powers a compact sun/moon action;
|
|
116
116
|
- desktop-only Settings and the nested Local access action are omitted from mobile navigation, while the appearance action remains available;
|
|
@@ -119,7 +119,7 @@ The implementation changes presentation, not Harness ownership or behavior:
|
|
|
119
119
|
- plugin-owned modal drawers contain keyboard focus and return it to the invoking control when closed;
|
|
120
120
|
- existing workspaces remain available, while the misleading remote `Add workspace` directory picker is omitted.
|
|
121
121
|
|
|
122
|
-
These dark-theme previews were captured from real Harness `0.2.
|
|
122
|
+
These dark-theme previews were captured from real Harness `0.2.2-rc.1` browser sessions: mobile frames are `430 × 932`, desktop frames are `1440 × 1000`. The isolated profiles contain fictional workspaces, conversations, models, devices, and usage only. The Chinese README has its own Simplified Chinese captures; Russian documentation shares the English images. Subagents use the native Harness header catalog.
|
|
123
123
|
|
|
124
124
|
| Navigation | Current session | Subagents | Conversation |
|
|
125
125
|
| :---: | :---: | :---: | :---: |
|
package/README.ru.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
Откройте `Local access`, отсканируйте QR-код — и подключённый браузер попадёт в текущую сессию Harness, выбранную на компьютере. Диалог, права доступа, рабочие пространства и интерфейсы плагинов останутся теми же.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Local Link `1.2.7` поддерживает DeepSeek Harness `0.2.2-rc.5` и предыдущие Host, объявленные в `engines.dsh`. Стандартный веб-интерфейс получает адаптивные панели, компактные элементы управления сессией и удобные для касаний действия. Клиент, сессия, слоты плагинов, разрешения и поток событий агента остаются прежними.
|
|
17
17
|
|
|
18
18
|
> **Граница безопасности:** шлюз работает по незашифрованному HTTP и предназначен только для доверенной частной сети. Не выставляйте его порт в интернет и не используйте плагин в публичных сетях Wi-Fi.
|
|
19
19
|
|
|
@@ -58,7 +58,7 @@ dsh web
|
|
|
58
58
|
|
|
59
59
|
### Git clone — рабочая копия для разработки
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
Для разработки текущей версии нужны Git, Node.js 24.9+, Corepack и глобально установленный `dsh`, совместимый с диапазоном `engines.dsh`, объявленным пакетом. Harness `0.2.2` требует Node.js 24.9+; для старых заявленных Host плагин сохраняет базовую совместимость с Node.js 22.19.
|
|
62
62
|
|
|
63
63
|
```shell
|
|
64
64
|
git clone https://github.com/donoteatme/dsh-local-link.git
|
|
@@ -73,11 +73,11 @@ dsh web
|
|
|
73
73
|
|
|
74
74
|
## Совместимость
|
|
75
75
|
|
|
76
|
-
Local Link `1.2.
|
|
76
|
+
Local Link `1.2.7` собирается и проверяется на DeepSeek Harness `0.2.2-rc.5`, включая обычную загрузку плагина без исключения для версии. Мобильный адаптер учитывает маску сайдбара и порядок закрытия панели после навигации. Шлюз распознаёт старые API с точками и новые с `/`, сохраняя запуск приложений и администрирование Host доступными только на компьютере с Harness. Интеграции с `webStartup` / `webRuntime`, публичными Session-scoped слотами и штатными настройками сохранены.
|
|
77
77
|
|
|
78
78
|
Диапазон устанавливаемых версий DeepSeek Harness объявлен в `package.json` через `engines.dsh`. Совместимость проверяется на конкретных релизах и не выводится только из успешной установки или плавающего dist-tag.
|
|
79
79
|
|
|
80
|
-
На `0.2.
|
|
80
|
+
На `0.2.2-rc.5` проверены сопряжение, переход по QR в выбранный чат, авторизованные HTTP/WebSocket, немедленное закрытие соединения после отзыва устройства, ограничения Host API и запуска приложений, создание чатов, управление устройствами и мобильная вёрстка на ширинах 320–768 CSS-пикселей в EN и ZH. Проверка выполнена в отдельных профилях с вымышленными данными и шлюзом на loopback. Предыдущие Host оставлены в диапазоне на основании исторических проверок из [changelog](CHANGELOG.md); вся старая матрица и физический телефон заново не проверялись. Запись с микрофона телефона через обычный LAN HTTP по-прежнему не поддерживается: релиз не добавляет HTTPS или голосовой ввод.
|
|
81
81
|
|
|
82
82
|
## Использование
|
|
83
83
|
|
|
@@ -110,7 +110,7 @@ Local Link `1.2.5` собирается и проверяется на DeepSeek
|
|
|
110
110
|
- стандартный браузер рабочих пространств и сессий превращается в левую выдвижную панель;
|
|
111
111
|
- динамические слоты Chat, Trajectory, поля ввода, оверлеев и сторонних плагинов сохраняются;
|
|
112
112
|
- `Current session` открывается из заголовка и показывает структуру контекста, модель, доступ к рабочему пространству, пресет, активность и скачивание журнала сессии;
|
|
113
|
-
- на телефоне дублирующий индикатор контекста под чатом и
|
|
113
|
+
- на телефоне скрыты дублирующий индикатор контекста под чатом и кнопка открытия на компьютере (Проводник/VS Code/Rider); индикатор доступен на десктопе, а запуск приложений — только на локальном десктопе;
|
|
114
114
|
- в 0.1.5 статус дочерних агентов открывает вложенный каталог в нижней панели; в 0.1.7 и 0.2 для этого используется штатное действие Harness в заголовке;
|
|
115
115
|
- сервис тем Harness управляет компактной кнопкой «солнце/луна»;
|
|
116
116
|
- десктопные Settings и вложенное действие Local access скрыты в мобильной навигации, но переключение темы остаётся доступным;
|
|
@@ -119,7 +119,7 @@ Local Link `1.2.5` собирается и проверяется на DeepSeek
|
|
|
119
119
|
- модальные панели плагина удерживают клавиатурный фокус и после закрытия возвращают его вызвавшему элементу;
|
|
120
120
|
- существующие рабочие пространства остаются доступны, а вводящая в заблуждение удалённая кнопка `Add workspace`, открывающая системный выбор каталога, скрыта.
|
|
121
121
|
|
|
122
|
-
Скриншоты в тёмной теме сняты из настоящих браузерных сессий Harness `0.2.
|
|
122
|
+
Скриншоты в тёмной теме сняты из настоящих браузерных сессий Harness `0.2.2-rc.1`: мобильные кадры — `430 × 932`, desktop — `1440 × 1000`. В отдельных демонстрационных профилях используются только вымышленные рабочие пространства, диалоги, модели, устройства и статистика. Русский README использует английские кадры; у китайского README отдельные скриншоты на упрощённом китайском. Субагенты показаны в штатном каталоге Harness в заголовке.
|
|
123
123
|
|
|
124
124
|
| Навигация | Текущая сессия | Субагенты | Диалог |
|
|
125
125
|
| :---: | :---: | :---: | :---: |
|
package/README.zh.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
打开 `Local access` 并扫描二维码后,已配对的浏览器会进入桌面端当前选中的 Harness 会话,并继续使用相同的实时对话、权限、工作区和插件界面。
|
|
15
15
|
|
|
16
|
-
`1.2.
|
|
16
|
+
Local Link `1.2.7` 支持 DeepSeek Harness `0.2.2-rc.5` 及 `engines.dsh` 声明的较早 Host,让原生 Web 客户端可以在窄屏触控设备上使用。移动视图只调整界面布局,不接管 Harness 的会话、权限或业务逻辑。
|
|
17
17
|
|
|
18
18
|
> **安全边界:** 网关使用明文 HTTP,仅适用于可信私有网络。不要将端口暴露到互联网,也不要在公共 Wi-Fi 上使用。
|
|
19
19
|
|
|
@@ -56,7 +56,7 @@ dsh web
|
|
|
56
56
|
|
|
57
57
|
### Git checkout(开发)
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
开发当前版本需要 Git、Node.js 24.9+、Corepack,以及全局安装的、版本已验证的 `dsh`。Harness `0.2.2` 要求 Node.js 24.9+;插件为较早声明支持的 Host 保留 Node.js 22.19 基线。
|
|
60
60
|
|
|
61
61
|
```shell
|
|
62
62
|
git clone https://github.com/donoteatme/dsh-local-link.git
|
|
@@ -71,11 +71,11 @@ profile 会指向当前 checkout。修改客户端代码后需要重新构建;
|
|
|
71
71
|
|
|
72
72
|
## 兼容性
|
|
73
73
|
|
|
74
|
-
Local Link `1.2.
|
|
74
|
+
Local Link `1.2.7` 使用 DeepSeek Harness `0.2.2-rc.5` 的契约构建并完成验证,包括无需版本豁免的正常插件启动。移动适配器兼容原生侧栏遮罩及导航后的关闭流程。网关同时识别旧版点分隔 API 和新版 `/` 分隔 API;原生应用启动和 Host 管理仍仅限 Harness 所在电脑。保留 `webStartup` / `webRuntime`、公开会话作用域和原生 Settings 导航集成。
|
|
75
75
|
|
|
76
76
|
可安装的 DeepSeek Harness 版本范围通过 `package.json` 中的 `engines.dsh` 声明。兼容性按精确发布版本验证,不会因为安装成功或可变的 dist-tag 就推断为兼容。
|
|
77
77
|
|
|
78
|
-
在 `0.2.
|
|
78
|
+
在 `0.2.2-rc.5` 上已验证配对、二维码打开所选会话、认证 HTTP/WebSocket、撤销设备后立即关闭连接、Host API 和原生应用启动限制、新建会话、已配对设备管理,以及 EN/ZH 在 320–768 CSS px 的移动布局。验证使用独立的虚构数据配置和 loopback 网关。较早 Host 的声明依据[更新日志](CHANGELOG.md)中的历史验收;本次未重新运行全部旧版本矩阵或实体手机验收。普通局域网 HTTP 仍不支持手机麦克风录音;本次发布不提供 HTTPS 或语音输入。
|
|
79
79
|
|
|
80
80
|
## 使用方法
|
|
81
81
|
|
|
@@ -99,10 +99,10 @@ Local Link `1.2.5` 使用 DeepSeek Harness `0.2.1-rc.5` 的契约构建并完成
|
|
|
99
99
|
- 切换会话不会自动唤起软键盘,主动点击输入区仍会正常聚焦;
|
|
100
100
|
- 深色/浅色主题继续由 Harness 主题服务管理;
|
|
101
101
|
- 远程手机上隐藏容易误导的 `Add workspace` 目录选择器;
|
|
102
|
-
- 手机端隐藏聊天底部重复的上下文用量指示器和在电脑上打开文件的按钮(资源管理器/VS Code/Rider
|
|
102
|
+
- 手机端隐藏聊天底部重复的上下文用量指示器和在电脑上打开文件的按钮(资源管理器/VS Code/Rider);桌面端保留上下文指示器,原生应用启动仅限本机桌面,手机端可在 `Current session` 查看上下文详情;
|
|
103
103
|
- 顶栏、消息操作、输入工具、安全区域和虚拟键盘行为适配窄屏。
|
|
104
104
|
|
|
105
|
-
以下深色主题截图来自 Harness `0.2.
|
|
105
|
+
以下深色主题截图来自 Harness `0.2.2-rc.1` 的真实浏览器会话:移动截图为 `430 × 932`,桌面截图为 `1440 × 1000`。独立演示配置只包含虚构的工作区、对话、模型、设备和用量,不包含真实项目数据。中文 README 使用独立的简体中文截图,俄文文档复用英文截图;子智能体通过 Harness 原生标题栏目录展示。
|
|
106
106
|
|
|
107
107
|
| 导航 | 当前会话 | 子智能体 | 对话 |
|
|
108
108
|
| :---: | :---: | :---: | :---: |
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -157,7 +157,7 @@ This boundary keeps connection setup in one place and persistent access manageme
|
|
|
157
157
|
2. Reject a `Host` that is not one of the machine's current private IP literals and configured port.
|
|
158
158
|
3. Reject the gateway administration prefix.
|
|
159
159
|
4. Validate the paired-device cookie unless `trusted-lan` was explicitly configured.
|
|
160
|
-
5. Reject the established loopback-only RPC set, including
|
|
160
|
+
5. Reject the established loopback-only RPC set, including legacy dotted and current slash-separated Settings/credentials/directory/preset methods, and the `/open-in-app` native launcher routes.
|
|
161
161
|
6. Proxy all remaining traffic to the loopback Harness listener.
|
|
162
162
|
|
|
163
163
|
### WebSocket upgrade
|
|
@@ -177,14 +177,18 @@ No service discovery, certificate generator, tunnel client, native application,
|
|
|
177
177
|
|
|
178
178
|
## Compatibility strategy
|
|
179
179
|
|
|
180
|
-
Local Link `1.2.
|
|
180
|
+
Local Link `1.2.7` develops against the exact DeepSeek Harness `0.2.2-rc.5` contracts; published `1.2.6` used `0.2.2-rc.1`. The installable Host range is declared by `engines.dsh`, including ordinary startup on rc.5 without version exemptions. Current development and Harness `0.2.2` require Node.js 24.9+; the plugin's Node.js 22.19 runtime baseline is retained for earlier declared Hosts. Earlier Host acceptance remains historical rather than a freshly rerun full matrix.
|
|
181
|
+
|
|
182
|
+
The 0.1.7+ icon exports are weight-named; the client also resolves older size-named exports. Current-session details, QR identity and mobile autofocus use public Session scopes. The invitation observer also mounts on desktop; cleanup cannot erase a newer scope's identity. The legacy subagent sheet is registered only when its catalog actions exist; current Harness owns the native header catalog. Mobile details replace the older `stats` and newer `activity` / `usage` composer pills while desktop contributions remain intact.
|
|
183
|
+
|
|
184
|
+
The `0.2.2` AppFrame inserts a native sidebar mask before its columns. Mobile geometry therefore locates the sidebar and main columns by semantic slots, hides the duplicate native mask and leading control, and only closes navigation if native session selection has not already done so. The API filter normalizes both `namespace.method` and `namespace/method`, including the current `agentPresets` namespace. The `/open-in-app` route family is Host-only, and its client entry is omitted from authenticated remote boot alongside directory pickers. Ordinary chat, workspace, model and preset-selection operations remain available.
|
|
181
185
|
|
|
182
186
|
| Adapter | Why it exists | Failure behavior | Removal condition |
|
|
183
187
|
| --- | --- | --- | --- |
|
|
184
188
|
| Connection `trustedHosts` profile patch | Authenticated non-loopback pages need an explicitly declared LAN authority for ordinary API and WebSocket traffic. | An undeclared authority is rejected before browser authentication. | Harness exposes a first-class authenticated-gateway registration contract. |
|
|
185
189
|
| Browser-authentication handoff | `0.1.2-rc.1` requires a native one-time browser token in addition to Local Link device pairing. | An absent or invalid handoff fails closed and records `BROWSER_AUTH_HANDOFF_FAILED`; older builds without the service keep their direct-root path. | Harness publishes a stable authenticated-gateway handoff contract across releases. |
|
|
186
190
|
| Loopback-only RPC filter | The RC connection transport authenticates all methods uniformly, while Local Link must preserve its narrower pre-RC remote scope. | Configuration, credential, native Host-action, and agent-preset-authoring methods return `403` from the LAN gateway in both access modes. | Harness exposes a server-side authenticated-gateway capability policy with an equivalent restriction. |
|
|
187
|
-
| Remote boot capability filter |
|
|
191
|
+
| Remote boot capability filter | Directory pickers and the native app launcher target the Host computer. | Unknown renamed entries can reappear in the UI; gateway restrictions still enforce the Host-only routes. | Harness exposes a remote-client capability policy. |
|
|
188
192
|
| Settings navigation bridge | The shell keeps `openSection` private outside onboarding. | The shortcut does nothing; ordinary `Settings → Local access` remains available. | Harness exposes general settings navigation. |
|
|
189
193
|
| Footer stack rule | Cordis reserves a full-width cell inside a horizontal list container. | Without it, Local access has zero width while Cordis is mounted. | Harness stacks full-width footer actions or gives entries an explicit layout contract. |
|
|
190
194
|
| Remote theme persistence | Remote clients have no durable per-device theme preference. | An explicit mobile light/dark choice resets on reload to the host preference, commonly `system`. | Harness exposes a safe per-client or per-device preference scope. |
|
package/docs/MOBILE_VIEW.md
CHANGED
|
@@ -14,14 +14,14 @@ Presentation remains independent of authorization: changing the viewport never g
|
|
|
14
14
|
- **Existing sessions:** Search, View options, workspaces, sessions, rename, archive, and the active-workspace actions stay native Harness operations.
|
|
15
15
|
- **Dynamic views:** Chat, Trajectory, composer extensions, overlays, and third-party conversation tabs continue to resolve from Harness plugin slots.
|
|
16
16
|
- **Current session:** a right drawer shows context usage and its System prompt / Tools / Messages breakdown, model, workspace access, agent preset, activity statistics, and session-log download.
|
|
17
|
-
- **Mobile-only simplification:** the duplicate stock context meter below the conversation and the Host-app opener (Explorer/VS Code/Rider) are hidden on mobile
|
|
17
|
+
- **Mobile-only simplification:** the duplicate stock context meter below the conversation and the Host-app opener (Explorer/VS Code/Rider) are hidden on mobile. The context meter remains visible on desktop; native app launching is available only on the loopback desktop.
|
|
18
18
|
- **Subagents:** on 0.1.5, a compact status chip opens the nested catalog as a touch-friendly bottom sheet. On 0.1.7 and 0.2, Harness's native header action owns the catalog and navigation.
|
|
19
19
|
- **Appearance:** a sun/moon action uses the Harness theme service. Remote theme selection remains page-scoped, so reload returns to the host preference and resolves `system` against the phone or tablet.
|
|
20
20
|
- **Touch behavior:** native session and active-workspace overflow actions remain visible without a long press, and switching sessions does not automatically focus the composer or open the software keyboard.
|
|
21
21
|
- **Keyboard accessibility:** plugin-owned modal drawers receive and contain focus, close with Escape, and restore focus to their invoking control.
|
|
22
22
|
- **Responsive AppFrame:** safe-area insets, full-viewport scrims, scrollable tab groups, media bounds, and matching left/right drawers enhance the shipped Harness layout only while the media query matches.
|
|
23
23
|
|
|
24
|
-
The remote boot deliberately omits
|
|
24
|
+
The remote boot deliberately omits Host directory-picker and native-app-launcher capabilities. Existing workspaces remain available, but `Add workspace` is not shown because selecting a directory on the Harness computer from a remote phone is misleading. The gateway also blocks the corresponding Host-only routes.
|
|
25
25
|
|
|
26
26
|
## Permissions
|
|
27
27
|
|
|
@@ -54,6 +54,8 @@ Mobile View keeps the official Harness root and AppFrame mounted. It contributes
|
|
|
54
54
|
|
|
55
55
|
The supported Harness builds do not expose a complete public responsive shell, drawer recipe, or spacing/radius scale. The plugin therefore owns mobile geometry and a small number of scoped presentation adapters for stock brand, workspace, session-action, and feedback elements. Its icon adapter accepts both 0.1.7 weight-named and older size-named exports. These hooks are documented in [Architecture and compatibility boundaries](ARCHITECTURE.md) and must be retested for each supported Harness version.
|
|
56
56
|
|
|
57
|
+
On `0.2.2`, AppFrame columns are identified by their semantic sidebar/main slots rather than child positions. The adapter hides the duplicate native mobile mask and leading control and rechecks whether navigation already closed the sidebar before closing it itself.
|
|
58
|
+
|
|
57
59
|
## Security
|
|
58
60
|
|
|
59
61
|
Mobile View uses the same one-use invitation, paired-browser credential, private-network validation, HTTP/WebSocket gateway, and revocation behavior as desktop-shaped remote access. It adds no relay, account, analytics, fingerprinting, polling loop, or duplicate conversation store.
|
package/docs/SECURITY.md
CHANGED
|
@@ -29,6 +29,7 @@ Mobile View does not reduce that authority. It inherits the selected Harness ses
|
|
|
29
29
|
- Structural loopback source, Host, and Origin validation for every desktop administration request; lookalike DNS names fail closed.
|
|
30
30
|
- Gateway authorities declared through the stock connection `trustedHosts` contract without claiming loopback identity.
|
|
31
31
|
- Gateway enforcement that keeps Settings, credentials, native Host actions, and agent-preset authoring outside both Local Link access modes even though the RC connection transport authenticates methods uniformly.
|
|
32
|
+
- The same Host-only boundary applies to legacy dotted API names, current slash-separated endpoints (including `agentPresets/read`), and `/open-in-app` discovery/icon/launch routes. The remote boot omits directory-picker and native-app-launcher UI entries; hiding those entries supplements the server-side restrictions.
|
|
32
33
|
- Bounded local diagnostics with an explicit context allowlist and no credentials, addresses, identifiers, names, paths, or user content.
|
|
33
34
|
- No external relay, telemetry, analytics, or remote log collector.
|
|
34
35
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/client.js
CHANGED
|
@@ -4,7 +4,7 @@ window.__ModuleLoader__.load({
|
|
|
4
4
|
var module = { exports: {} };
|
|
5
5
|
var exports = module.exports;
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
|
-
|
|
7
|
+
// \0rolldown/runtime.js
|
|
8
8
|
var __create = Object.create;
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -25,12 +25,11 @@ window.__ModuleLoader__.load({
|
|
|
25
25
|
value: mod,
|
|
26
26
|
enumerable: true
|
|
27
27
|
}) : target, mod));
|
|
28
|
-
//#endregion
|
|
29
28
|
let react = require("react");
|
|
30
29
|
react = __toESM(react, 1);
|
|
31
30
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
32
31
|
_deepseek_ai_dsh_client_ui_primitives = __toESM(_deepseek_ai_dsh_client_ui_primitives, 1);
|
|
33
|
-
|
|
32
|
+
// src/compat-icons.ts
|
|
34
33
|
const icons = _deepseek_ai_dsh_client_ui_primitives;
|
|
35
34
|
function compatibleIcon(current, legacy) {
|
|
36
35
|
const icon = icons[current] ?? icons[legacy];
|
|
@@ -46,8 +45,7 @@ window.__ModuleLoader__.load({
|
|
|
46
45
|
const IconFolderOpen = compatibleIcon("IconFolderOpenOutlineRegular", "IconFolderOpenOutline16");
|
|
47
46
|
const IconLight = compatibleIcon("IconLightOutlineRegular", "IconLightOutline16");
|
|
48
47
|
const IconDark = compatibleIcon("IconDarkOutlineRegular", "IconDarkOutline16");
|
|
49
|
-
|
|
50
|
-
//#region src/mobile-dialog.ts
|
|
48
|
+
// src/mobile-dialog.ts
|
|
51
49
|
const FOCUSABLE = [
|
|
52
50
|
"button:not([disabled])",
|
|
53
51
|
"a[href]",
|
|
@@ -99,8 +97,7 @@ window.__ModuleLoader__.load({
|
|
|
99
97
|
}, [open]);
|
|
100
98
|
return dialog;
|
|
101
99
|
}
|
|
102
|
-
|
|
103
|
-
//#region src/mobile-subagents.tsx
|
|
100
|
+
// src/mobile-subagents.tsx
|
|
104
101
|
const NS$3 = "dsh.localLink";
|
|
105
102
|
const MOBILE_SUBAGENT_DOCK_ID = "dsh-local-link.mobile-subagents";
|
|
106
103
|
const MOBILE_SUBAGENT_OVERLAY_ID = "dsh-local-link.mobile-subagent-sheet";
|
|
@@ -456,8 +453,7 @@ window.__ModuleLoader__.load({
|
|
|
456
453
|
locale: NS$3
|
|
457
454
|
}, (props) => /* @__PURE__ */ react.default.createElement(MobileLineageTitle, props))), "dsh-local-link: compact mobile lineage title");
|
|
458
455
|
}
|
|
459
|
-
|
|
460
|
-
//#region src/mobile-session-info.tsx
|
|
456
|
+
// src/mobile-session-info.tsx
|
|
461
457
|
const NS$2 = "dsh.localLink";
|
|
462
458
|
const MOBILE_SESSION_INFO_TRIGGER_ID = "dsh-local-link.mobile-session-info";
|
|
463
459
|
const MOBILE_SESSION_INFO_OVERLAY_ID = "dsh-local-link.mobile-session-info-drawer";
|
|
@@ -917,8 +913,7 @@ window.__ModuleLoader__.load({
|
|
|
917
913
|
downloads: ctx.sessionLogDownload
|
|
918
914
|
}))), "dsh-local-link: mobile session info drawer");
|
|
919
915
|
}
|
|
920
|
-
|
|
921
|
-
//#region src/mobile-layout.tsx
|
|
916
|
+
// src/mobile-layout.tsx
|
|
922
917
|
const NS$1 = "dsh.localLink";
|
|
923
918
|
const MOBILE_SETTINGS_PRIORITY = -100;
|
|
924
919
|
const MOBILE_LOCAL_ACCESS_PRIORITY = -100;
|
|
@@ -1019,6 +1014,12 @@ window.__ModuleLoader__.load({
|
|
|
1019
1014
|
const item = target.closest("[role=\"treeitem\"]");
|
|
1020
1015
|
return item !== null && item.getAttribute("aria-expanded") === null;
|
|
1021
1016
|
}
|
|
1017
|
+
/** Let the Host finish native row navigation before deciding whether to close. */
|
|
1018
|
+
function scheduleMobileSidebarClose(isOpen, toggle, schedule) {
|
|
1019
|
+
schedule(() => {
|
|
1020
|
+
if (isOpen()) toggle();
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1022
1023
|
function MobileThemeToggle({ controller, useDarkLabel, useLightLabel }) {
|
|
1023
1024
|
const dark = (0, react.useSyncExternalStore)(controller.subscribe, controller.getSnapshot).active.colorScheme === "dark";
|
|
1024
1025
|
const label = dark ? useLightLabel : useDarkLabel;
|
|
@@ -1055,12 +1056,13 @@ window.__ModuleLoader__.load({
|
|
|
1055
1056
|
}
|
|
1056
1057
|
const MOBILE_STOCK_LAYOUT_STYLES = `
|
|
1057
1058
|
body[data-dsh-local-link-mobile]{overflow:hidden}
|
|
1058
|
-
body[data-dsh-local-link-mobile]
|
|
1059
|
-
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])
|
|
1060
|
-
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])
|
|
1059
|
+
body[data-dsh-local-link-mobile] [data-sidebar-mask],body[data-dsh-local-link-mobile] [data-slot="shell.leading"]{display:none!important}
|
|
1060
|
+
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay]){--dsh-frame-leading-clearance:0px;--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}
|
|
1061
|
+
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])>div:has(>[data-slot="sidebar"]){position:fixed;z-index:70;inset:0 auto 0 0;box-sizing:border-box;width:var(--dllm-side-drawer-width)!important;transform:translateX(0);transition:transform 190ms cubic-bezier(.22,1,.36,1);box-shadow:18px 0 46px rgb(15 23 42 / 18%)}
|
|
1062
|
+
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])>div:has(>[data-slot="sidebar"])>[data-slot="sidebar"]>*{width:100%!important;height:100%!important}
|
|
1061
1063
|
body[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}
|
|
1062
|
-
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div[data-sidebar-collapsed]:has(>[data-shell-overlay])
|
|
1063
|
-
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])
|
|
1064
|
+
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div[data-sidebar-collapsed]:has(>[data-shell-overlay])>div:has(>[data-slot="sidebar"]){transform:var(--dllm-side-drawer-closed-transform);pointer-events:none}
|
|
1065
|
+
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])>div:has([data-slot="main"]){grid-column:1;grid-row:1;min-width:0}
|
|
1064
1066
|
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])>[data-rightbar-col]{position:absolute!important;inset:0 0 auto auto!important;display:block!important;width:0!important;height:0!important;overflow:visible!important}
|
|
1065
1067
|
body[data-dsh-local-link-mobile] [data-rightbar-col] [data-sidebar-right-panel]{position:fixed!important;inset:0!important;z-index:100!important;width:100%!important;border:0!important}
|
|
1066
1068
|
body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])>[data-side]{display:none!important}
|
|
@@ -1098,7 +1100,7 @@ body[data-dsh-local-link-mobile] [data-turn-tail]>div:last-child>button[aria-has
|
|
|
1098
1100
|
body[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}
|
|
1099
1101
|
body[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}
|
|
1100
1102
|
body[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}
|
|
1101
|
-
@media(prefers-reduced-motion:reduce){body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])
|
|
1103
|
+
@media(prefers-reduced-motion:reduce){body[data-dsh-local-link-mobile] #root>[data-slot="root"]>div:has(>[data-shell-overlay])>div:has(>[data-slot="sidebar"]),.dllm-stock-theme{transition:none!important}}
|
|
1102
1104
|
${MOBILE_SUBAGENT_STYLES}
|
|
1103
1105
|
${MOBILE_SESSION_INFO_STYLES}
|
|
1104
1106
|
`;
|
|
@@ -1146,8 +1148,11 @@ ${MOBILE_SESSION_INFO_STYLES}
|
|
|
1146
1148
|
const onClick = (event) => {
|
|
1147
1149
|
const target = event.target;
|
|
1148
1150
|
if (!(target instanceof Element) || !shouldCloseMobileSidebarForElement(target)) return;
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
+
const frame = document.querySelector("[data-shell-overlay]")?.parentElement;
|
|
1152
|
+
if (frame?.hasAttribute("data-sidebar-collapsed") !== false) return;
|
|
1153
|
+
scheduleMobileSidebarClose(() => frame.isConnected && !frame.hasAttribute("data-sidebar-collapsed"), () => ctx.layout.toggleSidebar(), (callback) => {
|
|
1154
|
+
window.setTimeout(callback, 0);
|
|
1155
|
+
});
|
|
1151
1156
|
};
|
|
1152
1157
|
document.addEventListener("click", onClick, true);
|
|
1153
1158
|
return () => document.removeEventListener("click", onClick, true);
|
|
@@ -1170,8 +1175,7 @@ ${MOBILE_SESSION_INFO_STYLES}
|
|
|
1170
1175
|
"sessionLogDownload",
|
|
1171
1176
|
"layout"
|
|
1172
1177
|
] });
|
|
1173
|
-
|
|
1174
|
-
//#region src/session-selection.tsx
|
|
1178
|
+
// src/session-selection.tsx
|
|
1175
1179
|
/** Selection belongs to the rendered Session scope, not the Host catalog. */
|
|
1176
1180
|
var CurrentSessionTracker = class {
|
|
1177
1181
|
current;
|
|
@@ -1202,8 +1206,7 @@ ${MOBILE_SESSION_INFO_STYLES}
|
|
|
1202
1206
|
tracker
|
|
1203
1207
|
})));
|
|
1204
1208
|
}
|
|
1205
|
-
|
|
1206
|
-
//#region src/settings-navigation.ts
|
|
1209
|
+
// src/settings-navigation.ts
|
|
1207
1210
|
function hasLabel(element, label) {
|
|
1208
1211
|
return element.getAttribute("aria-label") === label || element.textContent?.trim() === label || [...element.children].some((child) => child.getAttribute("aria-hidden") !== "true" && child.textContent?.trim() === label);
|
|
1209
1212
|
}
|
|
@@ -1242,8 +1245,7 @@ ${MOBILE_SESSION_INFO_STYLES}
|
|
|
1242
1245
|
};
|
|
1243
1246
|
environment.requestFrame(advance);
|
|
1244
1247
|
}
|
|
1245
|
-
|
|
1246
|
-
//#region src/locales/en.json
|
|
1248
|
+
// src/locales/en.json
|
|
1247
1249
|
var en_default = {
|
|
1248
1250
|
nav: "Local access",
|
|
1249
1251
|
"footer.trigger": "Local access",
|
|
@@ -1349,8 +1351,7 @@ ${MOBILE_SESSION_INFO_STYLES}
|
|
|
1349
1351
|
"diagnostics.clearing": "Clearing…",
|
|
1350
1352
|
"diagnostics.clearConfirm": "Clear all local diagnostic events?"
|
|
1351
1353
|
};
|
|
1352
|
-
|
|
1353
|
-
//#region src/locales/zh.json
|
|
1354
|
+
// src/locales/zh.json
|
|
1354
1355
|
var zh_default = {
|
|
1355
1356
|
nav: "本地访问",
|
|
1356
1357
|
"footer.trigger": "本地访问",
|
|
@@ -1456,8 +1457,7 @@ ${MOBILE_SESSION_INFO_STYLES}
|
|
|
1456
1457
|
"diagnostics.clearing": "正在清除…",
|
|
1457
1458
|
"diagnostics.clearConfirm": "清除所有本地诊断事件?"
|
|
1458
1459
|
};
|
|
1459
|
-
|
|
1460
|
-
//#region src/client.tsx
|
|
1460
|
+
// src/client.tsx
|
|
1461
1461
|
const NS = "dsh.localLink";
|
|
1462
1462
|
function desktopOrigin() {
|
|
1463
1463
|
return location.hostname === "localhost" || location.hostname === "127.0.0.1" || location.hostname === "::1";
|
|
@@ -2005,7 +2005,6 @@ ${MOBILE_SESSION_INFO_STYLES}
|
|
|
2005
2005
|
}, LocalLinkSettings));
|
|
2006
2006
|
}, "dsh-local-link: paired devices settings");
|
|
2007
2007
|
}
|
|
2008
|
-
//#endregion
|
|
2009
2008
|
exports.MOBILE_VIEW_MEDIA_QUERY = MOBILE_VIEW_MEDIA_QUERY;
|
|
2010
2009
|
exports.apply = apply;
|
|
2011
2010
|
exports.inject = inject;
|