dsh-desktop-kit 2.12.0 → 2.13.0

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.13.0 (2026-11-12)
4
+
5
+ - **Team с пишущими агентами.** `worktrees=true` выдаёт каждому участнику отдельную ветку `dsh/<name>-…` и рабочую копию; без флага team остаётся read-only.
6
+ - **Изоляция.** Пишущие агенты никогда не делят cwd; результат каждого — отдельный run и ветка, merge остаётся за пользователем.
7
+ - **UI.** Подсказка про `worktrees=true` в секции «Параллельная команда».
8
+ - **Тесты.** Полный набор зелёный; read-only team и worktree-тесты без изменений.
9
+
3
10
  ## 2.12.0 (2026-11-12)
4
11
 
5
12
  - **Параллельная команда.** `project_agent action=team names=[...] task=...` запускает 2–6 **read-only** ролей на одной задаче; каждая получает свой контекст и отдельный run.
package/README.md CHANGED
@@ -4,17 +4,17 @@
4
4
 
5
5
  Набор из **16 плагинов и 30 навыков** для DeepSeek Harness 0.2.x: русский интерфейс, автопилот навыков, токен-лаборатория, студия навыков, память проектов, обмен памятью между машинами (GitHub и USB), guardrails, карта репозитория, чекпоинты, plan mode, browser QA, GitHub review, Claude Code-подобные hooks/agents/commands, перенос чатов и резервные копии профиля.
6
6
 
7
- ![DSH Desktop Kit 2.7](https://unpkg.com/dsh-desktop-kit@2.12.0/docs/images/hero.png)
7
+ ![DSH Desktop Kit 2.7](https://unpkg.com/dsh-desktop-kit@2.13.0/docs/images/hero.png)
8
8
 
9
9
  ## MCP: подключения без JSON
10
10
 
11
11
  Настройки → **MCP**: пресеты GitHub, PostgreSQL и Filesystem, живые статусы, health, список tools и безопасное хранение токенов в `~/.dsh/mcp.secrets.json`. Промпты сервера открываются кнопкой **Prompts**: аргументы, запуск и копирование результата. HTTP-серверы подключаются через **OAuth 2.1 + PKCE**, **sampling** идёт через approval-карточку DSH, а **elicitation** — через глобальную форму с Accept/Decline.
12
12
 
13
- ![MCP Settings](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
13
+ ![MCP Settings](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
14
14
 
15
- ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-mcp-manager/screenshots/settings-390.png)
15
+ ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-mcp-manager/screenshots/settings-390.png)
16
16
 
17
- ![Добавление MCP-сервера](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-mcp-manager/screenshots/modal-390.png)
17
+ ![Добавление MCP-сервера](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-mcp-manager/screenshots/modal-390.png)
18
18
 
19
19
  ## Права и субагенты
20
20
 
@@ -25,11 +25,11 @@
25
25
  - **Worktrees и фоновые агенты.** `project_worktree` создаёт ветку `dsh/<slug>` и отдельную папку `.dsh/worktrees/<slug>`; `project_agent ... worktree=auto background=true` запускает агента в изоляции, а страница **Агенты** показывает worktrees и очередь запусков с кнопкой «Остановить».
26
26
  - **Инструкции проекта.** `AGENTS.md` и `CLAUDE.md` читаются иерархически (root → вложенные папки → `.dsh`) с `@import`; MCP roots сообщает серверу корень проекта.
27
27
 
28
- ![Агенты проекта](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
28
+ ![Агенты проекта](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
29
29
 
30
- ![Права и ограничения](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-guardrails/screenshots/permissions-1440.png)
30
+ ![Права и ограничения](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-guardrails/screenshots/permissions-1440.png)
31
31
 
32
- **v2.12.0** · MIT · проверено на DSH `0.2.1-rc.5` и `0.2.2-rc.1` (Windows 11) · без внешних зависимостей и телеметрии
32
+ **v2.13.0** · MIT · проверено на DSH `0.2.1-rc.5` и `0.2.2-rc.1` (Windows 11) · без внешних зависимостей и телеметрии
33
33
 
34
34
  **План развития:** [docs/ROADMAP-3.0.md](docs/ROADMAP-3.0.md) — Memory Fabric, семантическое
35
35
  слияние, локальный индекс памяти, шифрованные переносы, Memory Hub и npm trusted publishing.
@@ -117,27 +117,27 @@
117
117
  - перед каждой синхронизацией проверяется, что репозиторий всё ещё приватный;
118
118
  - секреты и PII вычищаются, домашние пути заменяются токеном `%DSH_HOME%`; LLM не вызывается — **0 токенов**.
119
119
 
120
- ![Настройки памяти проектов](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-memory-bridge/docs/images/settings-light.png)
120
+ ![Настройки памяти проектов](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-memory-bridge/docs/images/settings-light.png)
121
121
 
122
- ![Конфликты досье](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-memory-bridge/docs/images/conflicts.png)
122
+ ![Конфликты досье](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-memory-bridge/docs/images/conflicts.png)
123
123
 
124
124
  ## Скриншоты
125
125
 
126
126
  ### Skills Studio: каталог, стоимость и редактор
127
127
 
128
- ![Каталог навыков](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-gkb-ru-ui/screenshots/02-skills-1440-light.png)
128
+ ![Каталог навыков](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-gkb-ru-ui/screenshots/02-skills-1440-light.png)
129
129
 
130
- ![Редактор навыка](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-gkb-ru-ui/screenshots/03-skills-editor-1440-light.png)
130
+ ![Редактор навыка](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-gkb-ru-ui/screenshots/03-skills-editor-1440-light.png)
131
131
 
132
132
  ### Token Lab: куда уходит контекст
133
133
 
134
- ![Токен-лаборатория](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-token-lab/screenshots/01-token-lab-1440-light.png)
134
+ ![Токен-лаборатория](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-token-lab/screenshots/01-token-lab-1440-light.png)
135
135
 
136
136
  ### Тёмная тема и мобильный
137
137
 
138
- ![Тёмная тема](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-gkb-ru-ui/screenshots/04-skills-1440-dark.png)
138
+ ![Тёмная тема](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-gkb-ru-ui/screenshots/04-skills-1440-dark.png)
139
139
 
140
- ![Каталог навыков на 390 px](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-gkb-ru-ui/screenshots/05-skills-390-light.png)
140
+ ![Каталог навыков на 390 px](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-gkb-ru-ui/screenshots/05-skills-390-light.png)
141
141
 
142
142
  ## Окно-напоминание: пиковый тариф
143
143
 
@@ -147,11 +147,11 @@ DeepSeek включает двойной тариф в пиковые часы (
147
147
  - **в окне** — красная карточка: причина, границы окна в местном времени и UTC, живой отсчёт до конца и рекомендация, когда вернуться;
148
148
  - **после окна** — карточка исчезает; состояние всегда доступно через `window.__DSH_PEAK_GUARD__.state()`.
149
149
 
150
- ![Окно-напоминание: светлая тема](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-peak-guard/screenshots/03-peak-card-1440-light.png)
150
+ ![Окно-напоминание: светлая тема](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-peak-guard/screenshots/03-peak-card-1440-light.png)
151
151
 
152
- ![Окно-напоминание: тёмная тема](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-peak-guard/screenshots/04-peak-card-1440-dark.png)
152
+ ![Окно-напоминание: тёмная тема](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-peak-guard/screenshots/04-peak-card-1440-dark.png)
153
153
 
154
- ![Окно-напоминание на 390 px](https://unpkg.com/dsh-desktop-kit@2.12.0/plugins/dsh-peak-guard/screenshots/05-peak-card-390-light.png)
154
+ ![Окно-напоминание на 390 px](https://unpkg.com/dsh-desktop-kit@2.13.0/plugins/dsh-peak-guard/screenshots/05-peak-card-390-light.png)
155
155
 
156
156
  Подробности и настройки — [plugins/dsh-peak-guard/README.md](plugins/dsh-peak-guard/README.md).
157
157
 
package/client.js CHANGED
@@ -7741,7 +7741,7 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
7741
7741
  agents.length > 0 ? h("div", { className: "ag-grid" }, agents.map((agent) => h(AgentCard, { key: agent.name, agent }))) : null,
7742
7742
  h("div", { className: "ag-section" },
7743
7743
  h("h3", null, "Параллельная команда"),
7744
- h("p", { className: "ag-hint" }, "`project_agent action=team names=[reviewer,researcher] task=...` запускает 2–6 read-only ролей на одной задаче. Каждая получает свой контекст; результаты — в «Фоновых запусках»."),
7744
+ h("p", { className: "ag-hint" }, "`project_agent action=team names=[reviewer,researcher] task=...` запускает 2–6 read-only ролей на одной задаче. Для пишущих добавьте `worktrees=true` — каждый получит отдельную ветку и рабочую копию. Результаты — в «Фоновых запусках»."),
7745
7745
  agents.filter((agent) => agent.permission === "read-only").length > 0
7746
7746
  ? h("div", { className: "ag-tools" }, agents.filter((agent) => agent.permission === "read-only").map((agent) => h("span", { key: agent.name, className: "ag-tool" }, agent.name)))
7747
7747
  : h("div", { className: "ag-mini-empty" }, "Нужна хотя бы одна read-only роль: team не запускает пишущих агентов в общем cwd."),
@@ -8025,7 +8025,7 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
8025
8025
  if (__kitErrors.length <= 5) console.error("[dsh-desktop-kit] registration failed:", label, message);
8026
8026
  };
8027
8027
  try {
8028
- window.__DSH_DESKTOP_KIT__ = { version: "2.12.0", parts: __partNames, errors: __kitErrors, ready: false };
8028
+ window.__DSH_DESKTOP_KIT__ = { version: "2.13.0", parts: __partNames, errors: __kitErrors, ready: false };
8029
8029
  } catch {}
8030
8030
  const __inject = [];
8031
8031
  for (const __part of __parts) {
@@ -0,0 +1,21 @@
1
+ # DSH Desktop Kit 2.13.0 — тест
2
+
3
+ Дата: 2026-11-12.
4
+
5
+ ## Team worktrees
6
+
7
+ - `project_agent action=team ... worktrees=true`.
8
+ - Пишущая роль получает `.dsh/worktrees/<slug>` и ветку `dsh/<slug>`.
9
+ - Read-only team по-прежнему работает в общем cwd.
10
+ - Без `worktrees=true` пишущая роль отклоняется.
11
+ - Merge автоматически не выполняется — это осознанно.
12
+
13
+ ## Проверки
14
+
15
+ - `npm test` — exit 0.
16
+ - `build:client` / `check:client` — OK.
17
+ - UI-подсказка обновлена; layout не менялся, прежний аудит 390/768/1440 актуален.
18
+
19
+ ## Ограничение
20
+
21
+ Нет обмена сообщениями между участниками и общей доски задач.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-desktop-kit",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "DeepSeek Harness desktop kit 2.7: 16 plugins and 30 skills — self-applying skills, token lab, Skills Studio, project memory, GitHub and USB memory transfer, guardrails, repo map, checkpoints, plan mode, browser QA, GitHub review, Claude Code-like hooks/agents/commands, Russian UI, peak guard, chat move and profile transfer.",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -185,7 +185,7 @@ window.__ModuleLoader__.load({
185
185
  agents.length > 0 ? h("div", { className: "ag-grid" }, agents.map((agent) => h(AgentCard, { key: agent.name, agent }))) : null,
186
186
  h("div", { className: "ag-section" },
187
187
  h("h3", null, "Параллельная команда"),
188
- h("p", { className: "ag-hint" }, "`project_agent action=team names=[reviewer,researcher] task=...` запускает 2–6 read-only ролей на одной задаче. Каждая получает свой контекст; результаты — в «Фоновых запусках»."),
188
+ h("p", { className: "ag-hint" }, "`project_agent action=team names=[reviewer,researcher] task=...` запускает 2–6 read-only ролей на одной задаче. Для пишущих добавьте `worktrees=true` — каждый получит отдельную ветку и рабочую копию. Результаты — в «Фоновых запусках»."),
189
189
  agents.filter((agent) => agent.permission === "read-only").length > 0
190
190
  ? h("div", { className: "ag-tools" }, agents.filter((agent) => agent.permission === "read-only").map((agent) => h("span", { key: agent.name, className: "ag-tool" }, agent.name)))
191
191
  : h("div", { className: "ag-mini-empty" }, "Нужна хотя бы одна read-only роль: team не запускает пишущих агентов в общем cwd."),
@@ -51,6 +51,7 @@ function toolDefinition(ctx) {
51
51
  task: { type: "string", description: "Task/prompt for the child agent (required for run)" },
52
52
  background: { type: "boolean", description: "Return immediately with a durable run id instead of waiting for the child" },
53
53
  worktree: { type: "string", description: "Run in a git worktree: `auto` picks a name, or pass a lowercase slug" },
54
+ worktrees: { type: "boolean", description: "For team: give every writer its own worktree/branch (required for non-read-only agents)" },
54
55
  id: { type: "string", description: "Run id for status/cancel" },
55
56
  },
56
57
  required: ["action"],
@@ -91,9 +92,26 @@ function toolDefinition(ctx) {
91
92
  for (const name of names) {
92
93
  const definition = agents.find((agent) => agent.name === name);
93
94
  if (!definition) return { ok: false, text: `project_agent team: unknown agent "${name}"` };
94
- if (definition.permission !== "read-only") return { ok: false, text: `project_agent team: "${name}" is not read-only; team runs share the project cwd` };
95
+ if (definition.permission !== "read-only" && input?.worktrees !== true) {
96
+ return { ok: false, text: `project_agent team: "${name}" is not read-only; pass worktrees=true to isolate writers` };
97
+ }
95
98
  definitions.push(definition);
96
99
  }
100
+ if (input?.worktrees === true) {
101
+ const results = [];
102
+ for (const definition of definitions) {
103
+ let worktree = null;
104
+ try {
105
+ worktree = createWorktree({ cwd: project.root, slug: `${safeSlug(definition.name)}-${Date.now().toString(36).slice(-5)}` });
106
+ const result = await runProjectAgent(ctx, exec, definition, task, { background: true, worktree, cwd: worktree.path });
107
+ results.push({ name: definition.name, ok: !result.error, id: result.id, error: result.error ?? "", worktree });
108
+ } catch (error) {
109
+ results.push({ name: definition.name, ok: false, id: null, error: error instanceof Error ? error.message : String(error), worktree });
110
+ }
111
+ }
112
+ const text = results.map((result) => `${result.ok ? "✓" : "✗"} ${result.name}${result.id ? ` · ${result.id}` : ""}${result.worktree ? ` · ${result.worktree.branch}` : ""}${result.error ? ` — ${result.error}` : ""}`).join("\n");
113
+ return { ok: results.every((result) => result.ok), text: `project_agent team (isolated worktrees):\n${text}`, runs: results };
114
+ }
97
115
  const results = await runProjectTeam(ctx, exec, definitions, task);
98
116
  const text = results.map((result) => `${result.ok ? "✓" : "✗"} ${result.name}${result.id ? ` · ${result.id}` : ""}${result.error ? ` — ${result.error}` : ""}`).join("\n");
99
117
  return { ok: results.every((result) => result.ok), text: `project_agent team:\n${text}`, runs: results };