dsh-desktop-kit 2.21.0 → 2.23.1

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
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.23.1 (2026-11-12)
4
+
5
+ - **README приведён к 2.23.** Убраны «локальный marketplace без URL», «sandbox только аудит», «расширение — отдельный проект», PostgreSQL preset; добавлены trust-flow, remote `.tgz`, VS Code extension, Job Objects и команды проверок.
6
+ - **17 плагинов** во всех упоминаниях; установка `dsh-desktop-kit@2.23.1`.
7
+ - **QA-раздел** с E2E HTTP, marketplace, sandbox и verify-release.
8
+
9
+ ## 2.23.0 (2026-11-12)
10
+
11
+ - **Fixed live 404.** Integration routes now register through `ctx.connection.fetch.register` with top-level `inject:["tools","connection"]`; verified by a real DSH web profile, auth cookie and POST.
12
+ - **HTTP E2E.** `tools/e2e-http.mjs`: isolated DSH_HOME → install → real web → token cookie → `/api/dsh-integrations/status` → 200.
13
+ - **Trust button.** «Проверить и доверять» с подтверждением команды/URL; пресеты untrusted.
14
+ - **Remote artifact install.** HTTPS `.tgz`, SHA-256, 5 MB limit, path traversal check, backup.
15
+ - **Job Object sandbox.** `sandbox_run` (2.21).
16
+
17
+ ## 2.22.0 (2026-11-12)
18
+
19
+ - **MCP trust button.** «Проверить и доверять» с подтверждением; пресеты больше не trusted по умолчанию; клиентские пресеты GitHub/Filesystem обновлены.
20
+ - **Remote artifact install.** `installFromCatalog` скачивает `.tgz` по HTTPS, проверяет SHA-256, отклоняет path traversal, ограничивает 5 MB, извлекает и ставит в `~/.dsh/skills`.
21
+ - **Tests.** remote tgz install, local HTTP loopback, 5 routes.
22
+
3
23
  ## 2.21.0 (2026-11-12)
4
24
 
5
25
  - **Windows Job Objects.** `sandbox_run`: memory/process/timeout limits, kill-on-close, cwd внутри проекта; не файловая/сетевая изоляция.
package/README.md CHANGED
@@ -1,20 +1,20 @@
1
- # DSH Desktop Kit 2.21
1
+ # DSH Desktop Kit 2.23.1
2
2
 
3
3
  **MCP с OAuth, sampling и elicitation. Агенты, worktrees и рой с общей доской. Интерфейс, который не мешает.**
4
4
 
5
5
  Набор из **17 плагинов и 30 навыков** для DeepSeek Harness 0.2.x: MCP tools/resources/prompts + OAuth 2.1, sampling, elicitation; проектные агенты, worktrees, фон и read-only рой с общей доской; русский интерфейс, автопилот навыков, токен-лаборатория, студия навыков, память проектов, guardrails, карта репозитория, чекпоинты, plan mode, browser QA, GitHub review, hooks/commands и резервные копии профиля.
6
6
 
7
- ![DSH Desktop Kit 2.7](https://unpkg.com/dsh-desktop-kit@2.21.0/docs/images/hero.png)
7
+ ![DSH Desktop Kit 2.23](https://unpkg.com/dsh-desktop-kit@2.23.1/docs/images/hero.png)
8
8
 
9
9
  ## MCP: подключения без JSON
10
10
 
11
- Настройки → **MCP**: пресеты GitHub, PostgreSQL и Filesystem, живые статусы, health, список tools и безопасное хранение токенов в `~/.dsh/mcp.secrets.json`. Промпты сервера открываются кнопкой **Prompts**: аргументы, запуск и копирование результата. HTTP-серверы подключаются через **OAuth 2.1 + PKCE**, **sampling** идёт через approval-карточку DSH, а **elicitation** — через глобальную форму с Accept/Decline.
11
+ Настройки → **MCP**: пресеты **GitHub (official remote)** и **Filesystem**, живые статусы, health, список tools и безопасное хранение токенов в `~/.dsh/mcp.secrets.json`. Пресеты больше не доверены по умолчанию: кнопка **«Проверить и доверять»** показывает команду/URL и требует подтверждения. Промпты сервера открываются кнопкой **Prompts**: аргументы, запуск и копирование результата. HTTP-серверы подключаются через **OAuth 2.1 + PKCE**, **sampling** идёт через approval-карточку DSH, а **elicitation** — через глобальную форму с Accept/Decline.
12
12
 
13
- ![MCP Settings](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
13
+ ![MCP Settings](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
14
14
 
15
- ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-mcp-manager/screenshots/settings-390.png)
15
+ ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-mcp-manager/screenshots/settings-390.png)
16
16
 
17
- ![Добавление MCP-сервера](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-mcp-manager/screenshots/modal-390.png)
17
+ ![Добавление MCP-сервера](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-mcp-manager/screenshots/modal-390.png)
18
18
 
19
19
  ## Агенты, worktrees и рой
20
20
 
@@ -26,29 +26,30 @@
26
26
  - **Живые сообщения** — `team_message` отправляет текст лиду (`to="parent"`) или участнику по run id; копия каждого сообщения остаётся в board.
27
27
  - **Инструкции проекта** — `AGENTS.md`/`CLAUDE.md` иерархически (root → вложенные папки → `.dsh`) с `@import`; MCP roots сообщает корень проекта.
28
28
 
29
- ![Доска команды](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-agent-extensions/screenshots/board-1440.png)
29
+ ![Доска команды](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-agent-extensions/screenshots/board-1440.png)
30
30
 
31
- ![Доска команды на 390px](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-agent-extensions/screenshots/board-390.png)
31
+ ![Доска команды на 390px](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-agent-extensions/screenshots/board-390.png)
32
32
 
33
- ![Транскрипт фонового агента](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-agent-extensions/screenshots/transcript-1440.png)
33
+ ![Транскрипт фонового агента](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-agent-extensions/screenshots/transcript-1440.png)
34
34
 
35
- Транскрипт сохраняется в `.dsh/agents/transcripts/<run>.json` (0600) и доступен после restart.\n\n![Транскрипт на 390px](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-agent-extensions/screenshots/transcript-390.png)
35
+ Транскрипт сохраняется в `.dsh/agents/transcripts/<run>.json` (0600) и доступен после restart.\n\n![Транскрипт на 390px](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-agent-extensions/screenshots/transcript-390.png)
36
36
 
37
- ![MCP sampling](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-mcp-manager/screenshots/sampling-1440.png)
37
+ ![MCP sampling](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-mcp-manager/screenshots/sampling-1440.png)
38
38
 
39
- ![MCP elicitation](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-mcp-manager/screenshots/elicitation-1440.png)
39
+ ![MCP elicitation](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-mcp-manager/screenshots/elicitation-1440.png)
40
40
 
41
41
  ## Интеграции
42
42
 
43
- Marketplace, IDE bridge и sandbox-аудит — в одном экране **Настройки → Интеграции**:
43
+ Marketplace, IDE bridge и sandbox — в одном экране **Настройки → Интеграции**:
44
44
 
45
- - **Marketplace** — локальный каталог навыков с SHA-256 и backup; без загрузки по URL.
46
- - **IDE bridge** — localhost JSON API (`/health`, `/context`) с bearer-токеном; расширение редактора — отдельный проект.
47
- - **Sandbox** — честный аудит: DSH preset + kit guardrails — это политика, не OS sandbox.
45
+ - **Marketplace** — локальный каталог и **HTTPS-каталог** с обязательным SHA-256; установка локальных папок и удалённых `.tgz` (5 MB, защита от path traversal, backup).
46
+ - **IDE bridge** — localhost JSON API (`/health`, `/context`) с bearer-токеном. В комплекте **VS Code extension** `integrations/vscode`: health, контекст проекта, loopback-only URL.
47
+ - **Sandbox** — `sandbox_run` на Windows Job Objects: лимиты памяти, процессов и времени, kill-on-close. Это process containment, **не** filesystem/network isolation.
48
+ - **HTTP API** — `/api/dsh-integrations/*` проверен живым DSH web-профилем: auth-cookie → `POST status` → 200.
48
49
 
49
- ![Интеграции](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-integrations/screenshots/integrations-1440.png)
50
+ ![Интеграции](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-integrations/screenshots/integrations-1440.png)
50
51
 
51
- ![Интеграции на 390px](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-integrations/screenshots/integrations-390.png)
52
+ ![Интеграции на 390px](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-integrations/screenshots/integrations-390.png)
52
53
 
53
54
  ## Ноль настройки
54
55
 
@@ -70,11 +71,11 @@ MCP-предложения — это только **ссылки на подд
70
71
  - **Worktrees и фоновые агенты.** `project_worktree` создаёт ветку `dsh/<slug>` и отдельную папку `.dsh/worktrees/<slug>`; `project_agent ... worktree=auto background=true` запускает агента в изоляции, а страница **Агенты** показывает worktrees и очередь запусков с кнопкой «Остановить».
71
72
  - **Инструкции проекта.** `AGENTS.md` и `CLAUDE.md` читаются иерархически (root → вложенные папки → `.dsh`) с `@import`; MCP roots сообщает серверу корень проекта.
72
73
 
73
- ![Агенты проекта](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
74
+ ![Агенты проекта](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
74
75
 
75
- ![Права и ограничения](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-guardrails/screenshots/permissions-1440.png)
76
+ ![Права и ограничения](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-guardrails/screenshots/permissions-1440.png)
76
77
 
77
- **v2.21.0** · MIT · проверено на DSH `0.2.1-rc.5` и `0.2.2-rc.1` (Windows 11) · без внешних зависимостей и телеметрии
78
+ **v2.23.1** · MIT · проверено на DSH `0.2.1-rc.5` и `0.2.2-rc.1` (Windows 11) · без внешних зависимостей и телеметрии
78
79
 
79
80
  **План развития:** [docs/ROADMAP-3.0.md](docs/ROADMAP-3.0.md) — Memory Fabric, семантическое
80
81
  слияние, локальный индекс памяти, шифрованные переносы, Memory Hub и npm trusted publishing.
@@ -115,7 +116,7 @@ MCP-предложения — это только **ссылки на подд
115
116
  - **Память между машинами 2.3.0.** Восьмой плагин `dsh-memory-bridge` синхронизирует досье `dsh-project-memory` через **ваш приватный GitHub-репозиторий**: трёхстороннее слияние, конфликты с выбором версии, история и откат. Локальные досье остаются в `~/.dsh/projects-memory`, обмен — в `~/.dsh/memory-sync`; LLM и токены не используются.
116
117
  - **Импорт памяти без дублей.** `dsh-project-memory` подхватывает досье, приехавшее с другой машины, и переселяет реестр на локальный путь вместо создания `<slug>-2`. `dsh-profile-transfer` сливает `registry.json`, не затирая проекты принимающей машины.
117
118
  - **Обновления без потерь 2.2.0.** Навыки синхронизируются по манифесту SHA-256: неизменённые обновляются, ваши правки сохраняются и попадают в `/kit conflicts`; перед заменой — бэкап. Клиентские плагины изолированы: ошибка одной части не отключает остальные. Подробности — [docs/UPGRADING.md](docs/UPGRADING.md).
118
- - **Проверено на DSH `0.2.2-rc.1` (win-x64).** Установка из репозитория, все 16 плагинов, 30 навыков, Skills Studio, Token Lab, Peak Guard, перенос чатов/профиля, локальная память и GitHub-обмен памятью. Найден и исправлен сдвиг формата `user/message` в 0.2.2, из-за которого автопилот молчал. Отчёт: [docs/TEST-0.2.2.md](docs/TEST-0.2.2.md).
119
+ - **Проверено на DSH `0.2.2-rc.1` (win-x64).** Установка из репозитория, все 17 плагинов, 30 навыков, Skills Studio, Token Lab, Peak Guard, перенос чатов/профиля, локальная память и GitHub-обмен памятью. Найден и исправлен сдвиг формата `user/message` в 0.2.2, из-за которого автопилот молчал. Отчёт: [docs/TEST-0.2.2.md](docs/TEST-0.2.2.md).
119
120
  - **Русский интерфейс 2.1.3.** Исправлены машинные переводы: «Этот повтор не удался» → «Не удалось выполнить запрос», ошибка потока DeepSeek, «Кэш попаданий», очередь сообщений и ещё 18 формулировок — в словаре и на живом экране.
120
121
  - **Память проектов 2.1.** Проект распознаётся сам по рабочей папке, локальный автоскан (без LLM и сети) сразу даёт стек, команды, точки входа и тесты; дайджест сам подмешивает фрагменты досье, похожие на текущий запрос. Секреты и PII вычищаются до записи, файлы приватные (`0700/0600`). Новые действия `brief`/`scan` и команда `/memory`.
121
122
  - **Навыки стали в 3–5 раз дешевле.** Ядро `content-writing` — 2,1k токенов вместо 11k, `seo` — 2,0k вместо 11k. Вся библиотека из 30 навыков — ≈42,6k вместо ≈60,6k, а грузятся только нужные ядра.
@@ -169,27 +170,27 @@ MCP-предложения — это только **ссылки на подд
169
170
  - перед каждой синхронизацией проверяется, что репозиторий всё ещё приватный;
170
171
  - секреты и PII вычищаются, домашние пути заменяются токеном `%DSH_HOME%`; LLM не вызывается — **0 токенов**.
171
172
 
172
- ![Настройки памяти проектов](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-memory-bridge/docs/images/settings-light.png)
173
+ ![Настройки памяти проектов](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-memory-bridge/docs/images/settings-light.png)
173
174
 
174
- ![Конфликты досье](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-memory-bridge/docs/images/conflicts.png)
175
+ ![Конфликты досье](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-memory-bridge/docs/images/conflicts.png)
175
176
 
176
177
  ## Скриншоты
177
178
 
178
179
  ### Skills Studio: каталог, стоимость и редактор
179
180
 
180
- ![Каталог навыков](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-gkb-ru-ui/screenshots/02-skills-1440-light.png)
181
+ ![Каталог навыков](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-gkb-ru-ui/screenshots/02-skills-1440-light.png)
181
182
 
182
- ![Редактор навыка](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-gkb-ru-ui/screenshots/03-skills-editor-1440-light.png)
183
+ ![Редактор навыка](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-gkb-ru-ui/screenshots/03-skills-editor-1440-light.png)
183
184
 
184
185
  ### Token Lab: куда уходит контекст
185
186
 
186
- ![Токен-лаборатория](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-token-lab/screenshots/01-token-lab-1440-light.png)
187
+ ![Токен-лаборатория](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-token-lab/screenshots/01-token-lab-1440-light.png)
187
188
 
188
189
  ### Тёмная тема и мобильный
189
190
 
190
- ![Тёмная тема](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-gkb-ru-ui/screenshots/04-skills-1440-dark.png)
191
+ ![Тёмная тема](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-gkb-ru-ui/screenshots/04-skills-1440-dark.png)
191
192
 
192
- ![Каталог навыков на 390 px](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-gkb-ru-ui/screenshots/05-skills-390-light.png)
193
+ ![Каталог навыков на 390 px](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-gkb-ru-ui/screenshots/05-skills-390-light.png)
193
194
 
194
195
  ## Окно-напоминание: пиковый тариф
195
196
 
@@ -199,11 +200,11 @@ DeepSeek включает двойной тариф в пиковые часы (
199
200
  - **в окне** — красная карточка: причина, границы окна в местном времени и UTC, живой отсчёт до конца и рекомендация, когда вернуться;
200
201
  - **после окна** — карточка исчезает; состояние всегда доступно через `window.__DSH_PEAK_GUARD__.state()`.
201
202
 
202
- ![Окно-напоминание: светлая тема](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-peak-guard/screenshots/03-peak-card-1440-light.png)
203
+ ![Окно-напоминание: светлая тема](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-peak-guard/screenshots/03-peak-card-1440-light.png)
203
204
 
204
- ![Окно-напоминание: тёмная тема](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-peak-guard/screenshots/04-peak-card-1440-dark.png)
205
+ ![Окно-напоминание: тёмная тема](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-peak-guard/screenshots/04-peak-card-1440-dark.png)
205
206
 
206
- ![Окно-напоминание на 390 px](https://unpkg.com/dsh-desktop-kit@2.21.0/plugins/dsh-peak-guard/screenshots/05-peak-card-390-light.png)
207
+ ![Окно-напоминание на 390 px](https://unpkg.com/dsh-desktop-kit@2.23.1/plugins/dsh-peak-guard/screenshots/05-peak-card-390-light.png)
207
208
 
208
209
  Подробности и настройки — [plugins/dsh-peak-guard/README.md](plugins/dsh-peak-guard/README.md).
209
210
 
@@ -251,7 +252,7 @@ DeepSeek включает двойной тариф в пиковые часы (
251
252
 
252
253
  ### Через интерфейс «Плагины» (рекомендуется)
253
254
 
254
- В DSH: **Плагины → Add plugin** → вставьте `dsh-desktop-kit` → перезапустите окно (`Ctrl+R`).
255
+ В DSH: **Плагины → Add plugin** → вставьте `dsh-desktop-kit@2.23.1` → перезапустите окно (`Ctrl+R`).
255
256
 
256
257
  ### Локальная папка
257
258
 
@@ -273,7 +274,7 @@ powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\dsh-desktop-kit\insta
273
274
 
274
275
  ### Всё в одном пакете
275
276
 
276
- Все 16 плагинов уже внутри `dsh-desktop-kit`: отдельные папки в `plugins/` — это исходники для сборки, а не самостоятельные пакеты. Устанавливайте только `dsh-desktop-kit` — один bundle, одна зависимость. Отдельная установка этих папок создаёт дубли и конфликты.
277
+ Все 17 плагинов уже внутри `dsh-desktop-kit`: отдельные папки в `plugins/` — это исходники для сборки, а не самостоятельные пакеты. Устанавливайте только `dsh-desktop-kit` — один bundle, одна зависимость. Отдельная установка этих папок создаёт дубли и конфликты.
277
278
 
278
279
  ## Обновление без сюрпризов
279
280
 
@@ -290,7 +291,7 @@ powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\dsh-desktop-kit\insta
290
291
 
291
292
  - DSH `0.2.1-rc.5` — проверено вживую: хост-часть, клиентские плагины, Skills Studio, Token Lab, автопилот, синхронизация навыков 2.2.0.
292
293
  - DSH `0.2.2-rc.1` (win-x64) — проверено 2026-11-06: установка из репозитория, 4 плитки, 25 навыков, редактор, Token Lab, Peak Guard, Session Move, Profile Transfer, память проектов и автопилот. Подробности и ограничения — [docs/TEST-0.2.2.md](docs/TEST-0.2.2.md).
293
- - **2.7.2 (2026-11-10):** 16 плагинов, 7 клиентских частей, 30 навыков; пройдены kit-тесты (включая 40 guardrails, browser QA и GitHub review), 49 тестов `dsh-profile-transfer`, 35 тестов `dsh-memory-bridge`, сборка и проверка клиента, `npm pack`; документация и метаданные приведены к 2.7.
294
+ - **2.7.2 (2026-11-10):** 17 плагинов, 7 клиентских частей, 30 навыков; пройдены kit-тесты (включая 40 guardrails, browser QA и GitHub review), 49 тестов `dsh-profile-transfer`, 35 тестов `dsh-memory-bridge`, сборка и проверка клиента, `npm pack`; документация и метаданные приведены к 2.7.
294
295
  - **2.7.0–2.7.1 (2026-11-09):** Agent Harness — guardrails с pre-execute/fs-intent hooks, browser QA через Chrome/CDP, GitHub PR/CI review, plan mode, eval-гейт; навыки ссылаются на новые инструменты. Отчёты — [docs/AGENT-HARNESS.md](docs/AGENT-HARNESS.md), [docs/LAPTOP-INSTALL.md](docs/LAPTOP-INSTALL.md).
295
296
  - **2.4.0–2.6.0 (2026-11-09):** память на USB, угловое уведомление о тарифе, режимы переноса профиля, quality-контур из пяти навыков, repo map и checkpoints.
296
297
  - Пакет **не тянет** версии `@deepseek-ai/*`: обновление клиента не ломает плагины.
@@ -303,6 +304,15 @@ powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\dsh-desktop-kit\insta
303
304
 
304
305
  Подробности — [docs/PRIVACY.md](docs/PRIVACY.md).
305
306
 
307
+ ## Проверки
308
+
309
+ - `npm test` — полный набор.
310
+ - `node tools/e2e-http.mjs` — живой DSH web: установка tarball, auth-cookie, `POST /api/dsh-integrations/status` → 200.
311
+ - `node tools/e2e-smoke.mjs` — реальный профиль собирается с kit.
312
+ - `node tools/marketplace-remote-tests.mjs` — HTTPS/SHA-256 установка.
313
+ - `node tools/sandbox-tests.mjs` — Job Object лимиты.
314
+ - `npm run verify:release -- 2.23.1` — version/latest/README.
315
+
306
316
  ## Документация
307
317
 
308
318
  - [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) — быстрый цикл, pre-commit, релиз одной командой и CI.
package/client.js CHANGED
@@ -6970,9 +6970,8 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
6970
6970
  `;
6971
6971
 
6972
6972
  const PRESETS = [
6973
- { id: "github", title: "GitHub", subtitle: "Issues, PR и код", transport: "stdio", command: "npx", args: "-y\n@modelcontextprotocol/server-github", tokenEnv: "GITHUB_TOKEN", tokenLabel: "GitHub token", trusted: true },
6974
- { id: "postgres", title: "PostgreSQL", subtitle: "Схема и read-only запросы", transport: "stdio", command: "npx", args: "-y\n@modelcontextprotocol/server-postgres\npostgresql://readonly@localhost:5432/postgres", tokenEnv: "PGPASSWORD", tokenLabel: "Пароль read-only роли", trusted: true },
6975
- { id: "filesystem", title: "Filesystem", subtitle: "Папка проекта, без токена", transport: "stdio", command: "npx", args: "-y\n@modelcontextprotocol/server-filesystem\n.", trusted: true },
6973
+ { id: "github", title: "GitHub", subtitle: "Официальный remote MCP", transport: "http", command: "npx", args: "", url: "https://api.githubcopilot.com/mcp/", tokenEnv: "GITHUB_PERSONAL_ACCESS_TOKEN", tokenLabel: "GitHub PAT", trusted: false },
6974
+ { id: "filesystem", title: "Filesystem", subtitle: "Папка проекта, без токена", transport: "stdio", command: "npx", args: "-y\n@modelcontextprotocol/server-filesystem\n.", trusted: false },
6976
6975
  ];
6977
6976
 
6978
6977
  function call(ctx, operation, payload, timeout = 60000) {
@@ -6992,7 +6991,7 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
6992
6991
  );
6993
6992
  }
6994
6993
 
6995
- function ServerCard({ server, busy, onToggle, onTest, onTools, onPrompts, onOAuth, onRemove, tools }) {
6994
+ function ServerCard({ server, busy, onToggle, onTrust, onTest, onTools, onPrompts, onOAuth, onRemove, tools }) {
6996
6995
  const [open, setOpen] = useState(false);
6997
6996
  const connected = server.connected;
6998
6997
  const status = connected ? "on" : (server.error ? "err" : "off");
@@ -7014,6 +7013,7 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
7014
7013
  h("div", { className: "mcp-controls" },
7015
7014
  h(Toggle, { checked: server.enabled, label: "Включён", disabled: busy, onChange: (value) => onToggle(server.id, { enabled: value }) }),
7016
7015
  h(Toggle, { checked: server.trusted, label: "Доверен", disabled: busy, onChange: (value) => onToggle(server.id, { trusted: value }) }),
7016
+ !server.trusted ? h("button", { className: "mcp-btn primary", disabled: busy, onClick: () => onTrust(server) }, "Проверить и доверять") : null,
7017
7017
  h("div", { className: "mcp-actions" },
7018
7018
  h("button", { className: "mcp-btn ghost", disabled: busy, onClick: () => onTest(server.id) }, "Проверить"),
7019
7019
  server.transport === "http" ? h("button", { className: "mcp-btn ghost", disabled: busy, onClick: () => onOAuth(server.id) }, server.oauth?.hasToken ? "OAuth" : "Войти") : null,
@@ -7362,6 +7362,12 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
7362
7362
  busy,
7363
7363
  tools: tools[server.id],
7364
7364
  onToggle: (id, flags) => run("toggle", { id, ...flags }, "Настройки сервера обновлены"),
7365
+ onTrust: (server) => {
7366
+ const target = server.url || server.command || server.id;
7367
+ if (window.confirm(`Доверять MCP-серверу «${server.id}»?\n\n${target}\n\nОн получит доступ к инструментам и сможет выполнять команды от твоего имени.`)) {
7368
+ void run("toggle", { id: server.id, trusted: true, enabled: true }, "Сервер включён и доверен");
7369
+ }
7370
+ },
7365
7371
  onTest: async (id) => {
7366
7372
  setBusy(true);
7367
7373
  try {
@@ -8253,7 +8259,7 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
8253
8259
  if (__kitErrors.length <= 5) console.error("[dsh-desktop-kit] registration failed:", label, message);
8254
8260
  };
8255
8261
  try {
8256
- window.__DSH_DESKTOP_KIT__ = { version: "2.21.0", parts: __partNames, errors: __kitErrors, ready: false };
8262
+ window.__DSH_DESKTOP_KIT__ = { version: "2.23.1", parts: __partNames, errors: __kitErrors, ready: false };
8257
8263
  } catch {}
8258
8264
  const __inject = [];
8259
8265
  for (const __part of __parts) {
@@ -0,0 +1,24 @@
1
+ # DSH Desktop Kit 2.22.0 — тест
2
+
3
+ Дата: 2026-11-12.
4
+
5
+ ## MCP trust-flow
6
+
7
+ - Пресеты GitHub/Filesystem: `trusted:false`.
8
+ - ServerCard: кнопка «Проверить и доверять» + confirm с командой/URL.
9
+ - После подтверждения: trusted+enabled.
10
+ - Deprecated presets удалены из host и client.
11
+
12
+ ## Remote marketplace
13
+
14
+ - `installFromCatalog` поддерживает `{ url, sha256 }`.
15
+ - HTTPS, max 5 MB, SHA-256, tar path traversal check.
16
+ - Тест: loopback `.tgz` → установлен `SKILL.md`.
17
+ - `loadCatalog` принимает entry без `source`, если есть `url`.
18
+
19
+ ## Проверки
20
+
21
+ - `marketplace-remote-tests` — OK.
22
+ - `integrations-tests` — OK.
23
+ - `npm test` — OK.
24
+ - build/check — OK.
@@ -0,0 +1,32 @@
1
+ # DSH Desktop Kit 2.23.0 — тест
2
+
3
+ Дата: 2026-11-12.
4
+
5
+ ## Live HTTP
6
+
7
+ - Изолированный `DSH_HOME`, профиль web, установка tarball.
8
+ - `dsh --profile e2e --no-open --port 0`.
9
+ - Токен из `/?token=…` → cookie.
10
+ - `POST /api/dsh-integrations/status` → **200**, `result.ok=true`.
11
+ - Это поймало реальную причину 404: неверный registry (`rpc` вместо `fetch`) и отсутствие `connection` в inject.
12
+
13
+ ## Trust
14
+
15
+ - Кнопка с confirm; пресеты untrusted.
16
+ - Deprecated presets удалены.
17
+
18
+ ## Remote install
19
+
20
+ - `.tgz` HTTPS, SHA-256, 5 MB, path traversal.
21
+ - Loopback test.
22
+
23
+ ## Sandbox
24
+
25
+ - Job Object: simple/timeout — OK.
26
+
27
+ ## Проверки
28
+
29
+ - `e2e-http` — OK.
30
+ - `marketplace-remote-tests` — OK.
31
+ - `integrations-tests` — OK.
32
+ - `npm test` — exit 0.
@@ -0,0 +1,10 @@
1
+ # DSH Desktop Kit 2.23.1 — README
2
+
3
+ Дата: 2026-11-12.
4
+
5
+ - README: 17 плагинов, актуальные интеграции, trust-flow, remote `.tgz`, VS Code, Job Objects, E2E HTTP.
6
+ - Версия во всех unpkg-ссылках 2.23.1.
7
+ - Установка `dsh-desktop-kit@2.23.1`.
8
+ - QA-раздел с командами.
9
+
10
+ Проверки: `npm test`, `e2e-http`, `marketplace-remote-tests`, `sandbox-tests`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-desktop-kit",
3
- "version": "2.21.0",
4
- "description": "DeepSeek Harness desktop kit 2.21.0: 16 plugins and 30 skills — MCP tools/resources/prompts with OAuth 2.1, sampling and elicitation, project agents, git worktrees, background runs and a read-only/writer swarm with a shared board, plus self-applying skills, token lab, Skills Studio, project memory, guardrails, repo map, checkpoints, plan mode, browser QA, GitHub review, hooks/commands, Russian UI and profile transfer. Includes local marketplace, localhost IDE bridge and an honest sandbox audit.",
3
+ "version": "2.23.1",
4
+ "description": "DeepSeek Harness desktop kit 2.23.1: 16 plugins and 30 skills — MCP tools/resources/prompts with OAuth 2.1, sampling and elicitation, project agents, git worktrees, background runs and a read-only/writer swarm with a shared board, plus self-applying skills, token lab, Skills Studio, project memory, guardrails, repo map, checkpoints, plan mode, browser QA, GitHub review, hooks/commands, Russian UI and profile transfer. Includes local marketplace, localhost IDE bridge and an honest sandbox audit.",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "dsh",
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * dsh-integrations: marketplace, IDE bridge, sandbox audit.
3
3
  *
4
- * Honest scope: the marketplace installs only local, checksummed skill
5
- * directories; the bridge is a localhost protocol endpoint (an editor extension
6
- * is a separate deliverable); sandbox is an audit of DSH policy, not OS-level
7
- * enforcement.
4
+ * Honest scope: the marketplace installs checksummed skills (local or HTTPS
5
+ * archive); the bridge is a localhost protocol endpoint; sandbox_run is Windows
6
+ * Job Object process containment, not filesystem/network isolation.
8
7
  */
9
8
  import { inspectCatalog, installFromCatalog } from "./lib/catalog.js";
10
9
  import { IdeBridge } from "./lib/bridge.js";
@@ -12,7 +11,7 @@ import { registerIntegrationApi } from "./lib/api.js";
12
11
  import { runJobSandbox } from "./lib/job-sandbox.js";
13
12
  import path from "node:path";
14
13
 
15
- export const inject = ["tools"];
14
+ export const inject = ["tools", "connection"];
16
15
 
17
16
  function projectFrom(agent) {
18
17
  return agent?.session?.header?.cwd ?? process.cwd();
@@ -22,14 +21,14 @@ function toolDefinition(ctx, bridge) {
22
21
  return {
23
22
  name: "integration_status",
24
23
  description:
25
- "Reports the local marketplace catalog, IDE bridge status, and sandbox policy audit. The marketplace installs only local checksummed skills; sandbox is policy audit, not OS enforcement.",
24
+ "Reports the marketplace catalog, IDE bridge status, and sandbox capabilities. Marketplace supports local and HTTPS checksummed archives; sandbox_run enforces Job Object memory/process/time limits, not filesystem or network isolation.",
26
25
  parameters: { type: "object", additionalProperties: false, properties: {} },
27
26
  async execute(_input, exec) {
28
27
  const root = projectFrom(exec?.agent);
29
28
  const status = bridge.status();
30
29
  return {
31
30
  ok: true,
32
- text: `integrations:\n- marketplace: ${inspectCatalog(root).length} entries\n- ide bridge: ${status.running ? status.url : "stopped"}\n- sandbox: policy audit only (no OS enforcement)`,
31
+ text: `integrations:\n- marketplace: ${inspectCatalog(root).length} entries\n- ide bridge: ${status.running ? status.url : "stopped"}\n- sandbox: Windows Job Objects (process/memory/time), no FS/network isolation`,
33
32
  marketplace: inspectCatalog(root),
34
33
  bridge: { running: status.running, url: status.url },
35
34
  sandbox: { enforcement: false, jobObjects: process.platform === "win32", optInTool: "sandbox_run", note: "Job Objects limit memory/processes/time; filesystem and network are not isolated" },
@@ -77,17 +76,6 @@ export function apply(ctx) {
77
76
  try {
78
77
  registerIntegrationApi(ctx, bridge);
79
78
  } catch (error) {
80
- ctx.logger?.warn?.(`[integrations] direct api registration failed, retrying with connection injection: ${error instanceof Error ? error.message : String(error)}`);
81
- try {
82
- ctx.inject(["connection"], (child) => {
83
- try {
84
- registerIntegrationApi(child, bridge);
85
- } catch (cause) {
86
- child.logger?.warn?.(`[integrations] api registration failed: ${cause instanceof Error ? cause.message : String(cause)}`);
87
- }
88
- });
89
- } catch (cause) {
90
- ctx.logger?.warn?.(`[integrations] api skipped: ${cause instanceof Error ? cause.message : String(cause)}`);
91
- }
79
+ ctx.logger?.warn?.(`[integrations] api registration failed: ${error instanceof Error ? error.message : String(error)}`);
92
80
  }
93
81
  }
@@ -19,7 +19,8 @@ async function envelope(request) {
19
19
 
20
20
  export function registerIntegrationApi(ctx, bridge) {
21
21
  const connection = ctx.connection ?? ctx.get?.("connection");
22
- if (!connection?.rpc?.register) throw new Error("connection service is unavailable");
22
+ const registry = connection?.fetch ?? connection?.rpc;
23
+ if (!registry?.register) throw new Error("connection.fetch.rpc service is unavailable");
23
24
  const projectRoot = (payload) => payload?.cwd || ctx.get?.("sessions")?.list?.().at(-1)?.header?.cwd || process.cwd();
24
25
  const sandbox = () => ({
25
26
  enforcement: false,
@@ -50,5 +51,5 @@ export function registerIntegrationApi(ctx, bridge) {
50
51
  operation("bridge-stop", () => bridge.stop()),
51
52
  operation("sync", async (payload, root) => syncCatalog(payload.url, payload.sha256, { projectRoot: root })),
52
53
  ];
53
- return routes.map((route) => connection.rpc.register(route));
54
+ return routes.map((route) => registry.register(route));
54
55
  }
@@ -9,6 +9,7 @@ import crypto from "node:crypto";
9
9
  import fs from "node:fs";
10
10
  import os from "node:os";
11
11
  import path from "node:path";
12
+ import { execFileSync } from "node:child_process";
12
13
 
13
14
  export function marketplaceHome() {
14
15
  return path.join(dshHome(), "marketplace");
@@ -30,7 +31,7 @@ function readEntries(file, scope) {
30
31
  const parsed = JSON.parse(fs.readFileSync(file, "utf8"));
31
32
  const entries = Array.isArray(parsed) ? parsed : parsed.entries;
32
33
  return (Array.isArray(entries) ? entries : [])
33
- .filter((entry) => entry && typeof entry.id === "string" && typeof entry.source === "string")
34
+ .filter((entry) => entry && typeof entry.id === "string" && (typeof entry.source === "string" || typeof entry.url === "string"))
34
35
  .map((entry) => ({ ...entry, scope }));
35
36
  } catch {
36
37
  return [];
@@ -99,6 +100,7 @@ export function inspectCatalog(projectRoot = "") {
99
100
  export function installFromCatalog(projectRoot, id) {
100
101
  const entry = loadCatalog(projectRoot).find((item) => item.id === String(id));
101
102
  if (!entry) throw new Error(`marketplace: entry not found: ${id}`);
103
+ if (typeof entry.url === "string" && entry.url) return installRemote(entry);
102
104
  const source = path.resolve(entry.source);
103
105
  const skillFile = path.join(source, "SKILL.md");
104
106
  if (!fs.existsSync(skillFile)) throw new Error(`marketplace: source has no SKILL.md: ${source}`);
@@ -106,6 +108,10 @@ export function installFromCatalog(projectRoot, id) {
106
108
  const actual = sha256(skillFile);
107
109
  if (actual !== String(entry.sha256).toLowerCase()) throw new Error("marketplace: SHA-256 mismatch; refusing to install");
108
110
  }
111
+ return copySkill(entry, source);
112
+ }
113
+
114
+ function copySkill(entry, source) {
109
115
  const target = path.join(dshHome(), "skills", entry.id);
110
116
  let backup = "";
111
117
  if (fs.existsSync(target)) {
@@ -117,3 +123,32 @@ export function installFromCatalog(projectRoot, id) {
117
123
  fs.cpSync(source, target, { recursive: true });
118
124
  return { id: entry.id, target, backup, version: entry.version || "0.0.0" };
119
125
  }
126
+
127
+ async function installRemote(entry) {
128
+ const parsed = new URL(entry.url);
129
+ const loopback = parsed.hostname === "127.0.0.1" || parsed.hostname === "localhost";
130
+ if (parsed.protocol !== "https:" && !(loopback && parsed.protocol === "http:")) throw new Error("marketplace: remote skill must use HTTPS (localhost HTTP allowed for tests)");
131
+ if (!/^[a-f0-9]{64}$/iu.test(String(entry.sha256 || ""))) throw new Error("marketplace: remote skill requires SHA-256 of the archive");
132
+ const response = await fetch(parsed, { redirect: "error" });
133
+ if (!response.ok) throw new Error(`marketplace: skill HTTP ${response.status}`);
134
+ const bytes = Buffer.from(await response.arrayBuffer());
135
+ if (bytes.length > 5 * 1024 * 1024) throw new Error("marketplace: skill archive is too large (max 5 MB)");
136
+ const actual = crypto.createHash("sha256").update(bytes).digest("hex");
137
+ if (actual !== String(entry.sha256).toLowerCase()) throw new Error("marketplace: archive SHA-256 mismatch");
138
+ const work = fs.mkdtempSync(path.join(os.tmpdir(), `dsh-market-${entry.id}-`));
139
+ try {
140
+ const archive = path.join(work, "skill.tgz");
141
+ fs.writeFileSync(archive, bytes);
142
+ const extract = path.join(work, "source");
143
+ fs.mkdirSync(extract);
144
+ const entries = execFileSync("tar", ["-tzf", archive], { encoding: "utf8", timeout: 30_000 }).split(/\r?\n/u).filter(Boolean);
145
+ if (entries.some((name) => name.startsWith("/") || name.split("/").includes(".."))) throw new Error("marketplace: archive contains an unsafe path");
146
+ execFileSync("tar", ["-xzf", archive, "-C", extract], { timeout: 30_000 });
147
+ const files = fs.readdirSync(extract);
148
+ const root = files.length === 1 && fs.statSync(path.join(extract, files[0])).isDirectory() ? path.join(extract, files[0]) : extract;
149
+ if (!fs.existsSync(path.join(root, "SKILL.md"))) throw new Error("marketplace: archive has no SKILL.md");
150
+ return copySkill(entry, root);
151
+ } finally {
152
+ fs.rmSync(work, { recursive: true, force: true });
153
+ }
154
+ }
@@ -105,9 +105,8 @@ window.__ModuleLoader__.load({
105
105
  `;
106
106
 
107
107
  const PRESETS = [
108
- { id: "github", title: "GitHub", subtitle: "Issues, PR и код", transport: "stdio", command: "npx", args: "-y\n@modelcontextprotocol/server-github", tokenEnv: "GITHUB_TOKEN", tokenLabel: "GitHub token", trusted: true },
109
- { id: "postgres", title: "PostgreSQL", subtitle: "Схема и read-only запросы", transport: "stdio", command: "npx", args: "-y\n@modelcontextprotocol/server-postgres\npostgresql://readonly@localhost:5432/postgres", tokenEnv: "PGPASSWORD", tokenLabel: "Пароль read-only роли", trusted: true },
110
- { id: "filesystem", title: "Filesystem", subtitle: "Папка проекта, без токена", transport: "stdio", command: "npx", args: "-y\n@modelcontextprotocol/server-filesystem\n.", trusted: true },
108
+ { id: "github", title: "GitHub", subtitle: "Официальный remote MCP", transport: "http", command: "npx", args: "", url: "https://api.githubcopilot.com/mcp/", tokenEnv: "GITHUB_PERSONAL_ACCESS_TOKEN", tokenLabel: "GitHub PAT", trusted: false },
109
+ { id: "filesystem", title: "Filesystem", subtitle: "Папка проекта, без токена", transport: "stdio", command: "npx", args: "-y\n@modelcontextprotocol/server-filesystem\n.", trusted: false },
111
110
  ];
112
111
 
113
112
  function call(ctx, operation, payload, timeout = 60000) {
@@ -127,7 +126,7 @@ window.__ModuleLoader__.load({
127
126
  );
128
127
  }
129
128
 
130
- function ServerCard({ server, busy, onToggle, onTest, onTools, onPrompts, onOAuth, onRemove, tools }) {
129
+ function ServerCard({ server, busy, onToggle, onTrust, onTest, onTools, onPrompts, onOAuth, onRemove, tools }) {
131
130
  const [open, setOpen] = useState(false);
132
131
  const connected = server.connected;
133
132
  const status = connected ? "on" : (server.error ? "err" : "off");
@@ -149,6 +148,7 @@ window.__ModuleLoader__.load({
149
148
  h("div", { className: "mcp-controls" },
150
149
  h(Toggle, { checked: server.enabled, label: "Включён", disabled: busy, onChange: (value) => onToggle(server.id, { enabled: value }) }),
151
150
  h(Toggle, { checked: server.trusted, label: "Доверен", disabled: busy, onChange: (value) => onToggle(server.id, { trusted: value }) }),
151
+ !server.trusted ? h("button", { className: "mcp-btn primary", disabled: busy, onClick: () => onTrust(server) }, "Проверить и доверять") : null,
152
152
  h("div", { className: "mcp-actions" },
153
153
  h("button", { className: "mcp-btn ghost", disabled: busy, onClick: () => onTest(server.id) }, "Проверить"),
154
154
  server.transport === "http" ? h("button", { className: "mcp-btn ghost", disabled: busy, onClick: () => onOAuth(server.id) }, server.oauth?.hasToken ? "OAuth" : "Войти") : null,
@@ -497,6 +497,12 @@ window.__ModuleLoader__.load({
497
497
  busy,
498
498
  tools: tools[server.id],
499
499
  onToggle: (id, flags) => run("toggle", { id, ...flags }, "Настройки сервера обновлены"),
500
+ onTrust: (server) => {
501
+ const target = server.url || server.command || server.id;
502
+ if (window.confirm(`Доверять MCP-серверу «${server.id}»?\n\n${target}\n\nОн получит доступ к инструментам и сможет выполнять команды от твоего имени.`)) {
503
+ void run("toggle", { id: server.id, trusted: true, enabled: true }, "Сервер включён и доверен");
504
+ }
505
+ },
500
506
  onTest: async (id) => {
501
507
  setBusy(true);
502
508
  try {