dsh-desktop-kit 2.15.3 → 2.15.4

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.15.4 (2026-11-12)
4
+
5
+ - **Зависимости задач.** `team_board add-task dependsOn=[...]`; `read` показывает `blockedBy` и `ready`.
6
+ - **Атомарный claim.** Задачу нельзя взять дважды разными владельцами и нельзя закрыть до выполнения зависимостей.
7
+ - **UI.** Заблокированная задача помечается `⊘`, готовые — `○`.
8
+ - **Тесты.** `team-board-tests`: blocked claim/done, claim conflict, dependency completion.
9
+
3
10
  ## 2.15.3 (2026-11-12)
4
11
 
5
12
  - **Live team messages.** `team_message` — лид пишет любому участнику по run id, участник — лиду через `to="parent"`; сообщение идёт через `subagents.sendMessage` и дублируется в board.
package/README.md CHANGED
@@ -4,17 +4,17 @@
4
4
 
5
5
  Набор из **16 плагинов и 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.15.3/docs/images/hero.png)
7
+ ![DSH Desktop Kit 2.7](https://unpkg.com/dsh-desktop-kit@2.15.4/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.15.3/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
13
+ ![MCP Settings](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
14
14
 
15
- ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-mcp-manager/screenshots/settings-390.png)
15
+ ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-mcp-manager/screenshots/settings-390.png)
16
16
 
17
- ![Добавление MCP-сервера](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-mcp-manager/screenshots/modal-390.png)
17
+ ![Добавление MCP-сервера](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-mcp-manager/screenshots/modal-390.png)
18
18
 
19
19
  ## Агенты, worktrees и рой
20
20
 
@@ -26,11 +26,11 @@
26
26
  - **Живые сообщения** — `team_message` отправляет текст лиду (`to="parent"`) или участнику по run id; копия каждого сообщения остаётся в board.
27
27
  - **Инструкции проекта** — `AGENTS.md`/`CLAUDE.md` иерархически (root → вложенные папки → `.dsh`) с `@import`; MCP roots сообщает корень проекта.
28
28
 
29
- ![Команда и worktrees](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-agent-extensions/screenshots/team-1440.png)
29
+ ![Команда и worktrees](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-agent-extensions/screenshots/team-1440.png)
30
30
 
31
- ![MCP sampling](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-mcp-manager/screenshots/sampling-1440.png)
31
+ ![MCP sampling](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-mcp-manager/screenshots/sampling-1440.png)
32
32
 
33
- ![MCP elicitation](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-mcp-manager/screenshots/elicitation-1440.png)
33
+ ![MCP elicitation](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-mcp-manager/screenshots/elicitation-1440.png)
34
34
 
35
35
  ## Права и субагенты
36
36
 
@@ -41,11 +41,11 @@
41
41
  - **Worktrees и фоновые агенты.** `project_worktree` создаёт ветку `dsh/<slug>` и отдельную папку `.dsh/worktrees/<slug>`; `project_agent ... worktree=auto background=true` запускает агента в изоляции, а страница **Агенты** показывает worktrees и очередь запусков с кнопкой «Остановить».
42
42
  - **Инструкции проекта.** `AGENTS.md` и `CLAUDE.md` читаются иерархически (root → вложенные папки → `.dsh`) с `@import`; MCP roots сообщает серверу корень проекта.
43
43
 
44
- ![Агенты проекта](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
44
+ ![Агенты проекта](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
45
45
 
46
- ![Права и ограничения](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-guardrails/screenshots/permissions-1440.png)
46
+ ![Права и ограничения](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-guardrails/screenshots/permissions-1440.png)
47
47
 
48
- **v2.15.3** · MIT · проверено на DSH `0.2.1-rc.5` и `0.2.2-rc.1` (Windows 11) · без внешних зависимостей и телеметрии
48
+ **v2.15.4** · MIT · проверено на DSH `0.2.1-rc.5` и `0.2.2-rc.1` (Windows 11) · без внешних зависимостей и телеметрии
49
49
 
50
50
  **План развития:** [docs/ROADMAP-3.0.md](docs/ROADMAP-3.0.md) — Memory Fabric, семантическое
51
51
  слияние, локальный индекс памяти, шифрованные переносы, Memory Hub и npm trusted publishing.
@@ -140,27 +140,27 @@
140
140
  - перед каждой синхронизацией проверяется, что репозиторий всё ещё приватный;
141
141
  - секреты и PII вычищаются, домашние пути заменяются токеном `%DSH_HOME%`; LLM не вызывается — **0 токенов**.
142
142
 
143
- ![Настройки памяти проектов](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-memory-bridge/docs/images/settings-light.png)
143
+ ![Настройки памяти проектов](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-memory-bridge/docs/images/settings-light.png)
144
144
 
145
- ![Конфликты досье](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-memory-bridge/docs/images/conflicts.png)
145
+ ![Конфликты досье](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-memory-bridge/docs/images/conflicts.png)
146
146
 
147
147
  ## Скриншоты
148
148
 
149
149
  ### Skills Studio: каталог, стоимость и редактор
150
150
 
151
- ![Каталог навыков](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-gkb-ru-ui/screenshots/02-skills-1440-light.png)
151
+ ![Каталог навыков](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-gkb-ru-ui/screenshots/02-skills-1440-light.png)
152
152
 
153
- ![Редактор навыка](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-gkb-ru-ui/screenshots/03-skills-editor-1440-light.png)
153
+ ![Редактор навыка](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-gkb-ru-ui/screenshots/03-skills-editor-1440-light.png)
154
154
 
155
155
  ### Token Lab: куда уходит контекст
156
156
 
157
- ![Токен-лаборатория](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-token-lab/screenshots/01-token-lab-1440-light.png)
157
+ ![Токен-лаборатория](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-token-lab/screenshots/01-token-lab-1440-light.png)
158
158
 
159
159
  ### Тёмная тема и мобильный
160
160
 
161
- ![Тёмная тема](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-gkb-ru-ui/screenshots/04-skills-1440-dark.png)
161
+ ![Тёмная тема](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-gkb-ru-ui/screenshots/04-skills-1440-dark.png)
162
162
 
163
- ![Каталог навыков на 390 px](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-gkb-ru-ui/screenshots/05-skills-390-light.png)
163
+ ![Каталог навыков на 390 px](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-gkb-ru-ui/screenshots/05-skills-390-light.png)
164
164
 
165
165
  ## Окно-напоминание: пиковый тариф
166
166
 
@@ -170,11 +170,11 @@ DeepSeek включает двойной тариф в пиковые часы (
170
170
  - **в окне** — красная карточка: причина, границы окна в местном времени и UTC, живой отсчёт до конца и рекомендация, когда вернуться;
171
171
  - **после окна** — карточка исчезает; состояние всегда доступно через `window.__DSH_PEAK_GUARD__.state()`.
172
172
 
173
- ![Окно-напоминание: светлая тема](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-peak-guard/screenshots/03-peak-card-1440-light.png)
173
+ ![Окно-напоминание: светлая тема](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-peak-guard/screenshots/03-peak-card-1440-light.png)
174
174
 
175
- ![Окно-напоминание: тёмная тема](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-peak-guard/screenshots/04-peak-card-1440-dark.png)
175
+ ![Окно-напоминание: тёмная тема](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-peak-guard/screenshots/04-peak-card-1440-dark.png)
176
176
 
177
- ![Окно-напоминание на 390 px](https://unpkg.com/dsh-desktop-kit@2.15.3/plugins/dsh-peak-guard/screenshots/05-peak-card-390-light.png)
177
+ ![Окно-напоминание на 390 px](https://unpkg.com/dsh-desktop-kit@2.15.4/plugins/dsh-peak-guard/screenshots/05-peak-card-390-light.png)
178
178
 
179
179
  Подробности и настройки — [plugins/dsh-peak-guard/README.md](plugins/dsh-peak-guard/README.md).
180
180
 
package/client.js CHANGED
@@ -7760,7 +7760,7 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
7760
7760
  )))
7761
7761
  : h("div", { className: "ag-mini-empty" }, "Сообщений пока нет. Запустите team — board создастся автоматически."),
7762
7762
  board.tasks.length > 0
7763
- ? h("div", { className: "ag-tools" }, board.tasks.slice(-8).map((task) => h("span", { key: task.id, className: "ag-tool", title: task.title }, `${task.status === "done" ? "✓" : task.status === "claimed" ? "…" : "○"} ${task.title}`)))
7763
+ ? h("div", { className: "ag-tools" }, board.tasks.slice(-8).map((task) => h("span", { key: task.id, className: "ag-tool", title: task.blockedBy?.length ? `blocked by ${task.blockedBy.join(", ")}` : task.title }, `${task.status === "done" ? "✓" : task.status === "claimed" ? "…" : task.ready ? "○" : "⊘"} ${task.title}`)))
7764
7764
  : null,
7765
7765
  ),
7766
7766
  h("div", { className: "ag-section" },
@@ -8042,7 +8042,7 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
8042
8042
  if (__kitErrors.length <= 5) console.error("[dsh-desktop-kit] registration failed:", label, message);
8043
8043
  };
8044
8044
  try {
8045
- window.__DSH_DESKTOP_KIT__ = { version: "2.15.3", parts: __partNames, errors: __kitErrors, ready: false };
8045
+ window.__DSH_DESKTOP_KIT__ = { version: "2.15.4", parts: __partNames, errors: __kitErrors, ready: false };
8046
8046
  } catch {}
8047
8047
  const __inject = [];
8048
8048
  for (const __part of __parts) {
@@ -0,0 +1,22 @@
1
+ # DSH Desktop Kit 2.15.4 — тест
2
+
3
+ Дата: 2026-11-12.
4
+
5
+ ## Task graph
6
+
7
+ - `team_board add-task dependsOn=[id]`.
8
+ - `read` returns `ready`, `blockedBy`.
9
+ - `claim-task` rejected while blocked or owned by another agent.
10
+ - `done-task` rejected until dependencies are done.
11
+ - Unknown dependency/self dependency rejected.
12
+
13
+ ## UI
14
+
15
+ - `⊘` blocked, `○` ready, `…` claimed, `✓` done.
16
+ - 390/768/1440: overflow 0, console 0, markup 0.
17
+
18
+ ## Проверки
19
+
20
+ - `team-board-tests` — OK.
21
+ - `npm test` — exit 0.
22
+ - `build:client` / `check:client` — OK.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-desktop-kit",
3
- "version": "2.15.3",
4
- "description": "DeepSeek Harness desktop kit 2.15.3: 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.",
3
+ "version": "2.15.4",
4
+ "description": "DeepSeek Harness desktop kit 2.15.4: 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.",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "dsh",
@@ -204,7 +204,7 @@ window.__ModuleLoader__.load({
204
204
  )))
205
205
  : h("div", { className: "ag-mini-empty" }, "Сообщений пока нет. Запустите team — board создастся автоматически."),
206
206
  board.tasks.length > 0
207
- ? h("div", { className: "ag-tools" }, board.tasks.slice(-8).map((task) => h("span", { key: task.id, className: "ag-tool", title: task.title }, `${task.status === "done" ? "✓" : task.status === "claimed" ? "…" : "○"} ${task.title}`)))
207
+ ? h("div", { className: "ag-tools" }, board.tasks.slice(-8).map((task) => h("span", { key: task.id, className: "ag-tool", title: task.blockedBy?.length ? `blocked by ${task.blockedBy.join(", ")}` : task.title }, `${task.status === "done" ? "✓" : task.status === "claimed" ? "…" : task.ready ? "○" : "⊘"} ${task.title}`)))
208
208
  : null,
209
209
  ),
210
210
  h("div", { className: "ag-section" },
@@ -212,6 +212,7 @@ function boardToolDefinition() {
212
212
  to: { type: "string", description: "optional recipient label" },
213
213
  title: { type: "string", description: "task title for add-task" },
214
214
  id: { type: "string", description: "task id for claim-task/done-task" },
215
+ dependsOn: { type: "array", items: { type: "string" }, description: "task ids that must be done first" },
215
216
  },
216
217
  required: ["action"],
217
218
  },
@@ -227,11 +228,11 @@ function boardToolDefinition() {
227
228
  if (input?.action === "read") {
228
229
  const board = readBoard(cwd, { teamId });
229
230
  const messages = board.messages.slice(-20).map((message) => `- ${message.from}${message.to ? ` → ${message.to}` : ""}: ${message.text}`);
230
- const tasks = board.tasks.map((task) => `- [${task.status}] ${task.id} ${task.title}${task.owner ? ` (${task.owner})` : ""}`);
231
+ const tasks = board.tasks.map((task) => `- [${task.status}${task.ready ? "" : " · blocked"}] ${task.id} ${task.title}${task.owner ? ` (${task.owner})` : ""}${task.blockedBy?.length ? ` ← ${task.blockedBy.join(", ")}` : ""}`);
231
232
  return { ok: true, text: `team_board ${teamId || "all"}:\n${messages.join("\n") || "messages: none"}\n${tasks.join("\n") || "tasks: none"}`, messages: board.messages, tasks: board.tasks };
232
233
  }
233
234
  if (input?.action === "add-task") {
234
- const result = addTask(cwd, { teamId, title: input?.title, owner: from });
235
+ const result = addTask(cwd, { teamId, title: input?.title, owner: from, dependsOn: input?.dependsOn, priority: input?.priority });
235
236
  return { ok: true, text: `team_board task: ${result.task.id} · ${result.task.title}`, task: result.task };
236
237
  }
237
238
  if (input?.action === "claim-task" || input?.action === "done-task") {
@@ -75,28 +75,54 @@ export function readBoard(cwd, { teamId = "", since = "" } = {}) {
75
75
  const root = projectRoot(cwd);
76
76
  const board = read(root);
77
77
  const messages = board.messages.filter((message) => (!teamId || message.teamId === teamId) && (!since || message.createdAt > since));
78
- const tasks = board.tasks.filter((task) => !teamId || task.teamId === teamId);
78
+ const tasks = board.tasks
79
+ .filter((task) => !teamId || task.teamId === teamId)
80
+ .map((task) => ({ ...task, ...taskState(board.tasks, task) }));
79
81
  return { root, messages, tasks };
80
82
  }
81
83
 
82
- export function addTask(cwd, { teamId = "", title = "", owner = "" } = {}) {
84
+ function dependencyIds(task) {
85
+ return Array.isArray(task?.dependsOn) ? task.dependsOn.map(String) : [];
86
+ }
87
+
88
+ export function taskState(tasks, task) {
89
+ const byId = new Map(tasks.map((item) => [String(item.id), item]));
90
+ const blockedBy = dependencyIds(task).filter((id) => byId.get(id)?.status !== "done");
91
+ return { blockedBy, ready: task.status !== "done" && blockedBy.length === 0 };
92
+ }
93
+
94
+ function validateDependencies(tasks, id, dependsOn) {
95
+ const ids = [...new Set(dependsOn.map(String).filter(Boolean))];
96
+ const known = new Set(tasks.map((task) => String(task.id)));
97
+ for (const dependency of ids) {
98
+ if (dependency === id) throw new Error("board task cannot depend on itself");
99
+ if (!known.has(dependency)) throw new Error(`board dependency not found: ${dependency}`);
100
+ }
101
+ return ids;
102
+ }
103
+
104
+ export function addTask(cwd, { teamId = "", title = "", owner = "", dependsOn = [], priority = "normal" } = {}) {
83
105
  const clean = redact(title).trim();
84
106
  if (!clean) throw new Error("board task title is required");
85
107
  const root = projectRoot(cwd);
86
108
  const board = read(root);
109
+ const id = crypto.randomUUID();
110
+ const dependencies = validateDependencies(board.tasks, id, Array.isArray(dependsOn) ? dependsOn : []);
87
111
  const task = {
88
- id: crypto.randomUUID(),
112
+ id,
89
113
  teamId: String(teamId),
90
114
  title: clean,
91
115
  owner: String(owner),
92
116
  status: "open",
117
+ priority: ["low", "normal", "high"].includes(priority) ? priority : "normal",
118
+ dependsOn: dependencies,
93
119
  createdAt: new Date().toISOString(),
94
120
  updatedAt: new Date().toISOString(),
95
121
  };
96
122
  board.tasks.push(task);
97
123
  board.tasks = board.tasks.slice(-MAX_TASKS);
98
124
  write(root, board);
99
- return { root, task };
125
+ return { root, task: { ...task, ...taskState(board.tasks, task) } };
100
126
  }
101
127
 
102
128
  export function updateTask(cwd, { id = "", status = "", owner = "" } = {}) {
@@ -105,9 +131,20 @@ export function updateTask(cwd, { id = "", status = "", owner = "" } = {}) {
105
131
  const board = read(root);
106
132
  const task = board.tasks.find((item) => item.id === String(id));
107
133
  if (!task) throw new Error(`board task not found: ${id}`);
108
- task.status = status;
109
- if (owner) task.owner = String(owner);
134
+ const state = taskState(board.tasks, task);
135
+ if (status === "claimed") {
136
+ if (task.status === "claimed" && task.owner && owner && task.owner !== owner) throw new Error(`board task already claimed by ${task.owner}`);
137
+ if (!state.ready) throw new Error(`board task is blocked by: ${state.blockedBy.join(", ")}`);
138
+ task.status = "claimed";
139
+ task.owner = owner || task.owner;
140
+ } else if (status === "done") {
141
+ if (task.owner && owner && task.owner !== owner) throw new Error(`board task is owned by ${task.owner}`);
142
+ if (!state.ready) throw new Error(`board task cannot be done before: ${state.blockedBy.join(", ")}`);
143
+ task.status = "done";
144
+ } else {
145
+ task.status = "open";
146
+ }
110
147
  task.updatedAt = new Date().toISOString();
111
148
  write(root, board);
112
- return { root, task };
149
+ return { root, task: { ...task, ...taskState(board.tasks, task) } };
113
150
  }