dsh-desktop-kit 2.23.23 → 2.23.25

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,8 +1,16 @@
1
- ## 2.23.23 (2026-11-13)
1
+ ## 2.23.25 (2026-11-13)
2
2
 
3
- - **Return of the proven 2.23.21 behavior:** no subagent budgets, no parallel-swarm guard, `threshold 2 / maxAgents 6`, memory curator enabled, digest 2800.
4
- - **2.23.22 deprecated:** token-economy experiment is not the default; use 2.23.23.
5
- - **Unchanged:** 8 roles, 4 presets, flash default, pro manual, one peak card, research ledger.
3
+ - **team_message board relay:** when DSH cannot address the target live (siblings a lead cannot message, unknown parent, unavailable subagents service), the message is written to the shared board and the tool returns `via: "board"` with the reason instead of failing the turn.
4
+ - **Tests:** relay fallback for a missing run, self-target, missing service and DSH "not found".
5
+
6
+ ## 2.23.24 (2026-11-13)
7
+
8
+ - **MCP auto-start fixed:** `~/.dsh` is no longer mistaken for a project when the app cwd sits inside the user profile, so global servers keep `scope=global, trusted=true`.
9
+ - **MCP tools register:** dynamic `mcp__*` definitions now declare the `output` contract, so connected servers appear in the tool list.
10
+ - **Integrations tools register:** `integration_status` and `sandbox_run` declare `output` too.
11
+ - **team_message fixed:** the tool receives the plugin `ctx` and no longer fails with `ctx is not defined`.
12
+ - **Tester role:** `.dsh/agents/tester.md` allowlist includes `pwsh` on Windows.
13
+ - **Tests:** MCP profile-cwd regression, output-contract assertions, team_message regression, current peak-guard smoke assertion.
6
14
 
7
15
  ## 2.23.21 (2026-11-13)
8
16
 
package/README.md CHANGED
@@ -1,19 +1,19 @@
1
- # DSH Desktop Kit 2.23.23
1
+ # DSH Desktop Kit 2.23.25
2
2
 
3
3
  **Агенты, рой и MCP для DeepSeek Harness — с доказательствами, а не с обещаниями.**
4
4
 
5
5
  18 плагинов и 30 навыков в одном npm-пакете: проектные роли, read-only рой с общей доской, research-ledger с проверкой источников, MCP с OAuth/sampling/elicitation, локальный marketplace, IDE bridge, guardrails, память, checkpoints, browser QA и русский интерфейс.
6
6
 
7
- ![DSH Desktop Kit](https://unpkg.com/dsh-desktop-kit@2.23.23/docs/images/hero.png)
7
+ ![DSH Desktop Kit](https://unpkg.com/dsh-desktop-kit@2.23.25/docs/images/hero.png)
8
8
 
9
9
  ---
10
10
 
11
11
  ## Быстрый старт
12
12
 
13
13
  ```powershell
14
- # в DSH: Плагины → Add plugin → dsh-desktop-kit@2.23.23
14
+ # в DSH: Плагины → Add plugin → dsh-desktop-kit@2.23.25
15
15
  # или из терминала:
16
- dsh plugin --profile desktop add dsh-desktop-kit@2.23.23
16
+ dsh plugin --profile desktop add dsh-desktop-kit@2.23.25
17
17
  ```
18
18
 
19
19
  После установки перезапустите окно DSH (`Ctrl+R`).
@@ -190,9 +190,9 @@ research_ledger action=summary
190
190
 
191
191
  Кнопка **«Проверить и доверять»** показывает команду/URL и требует подтверждения. После trust сервер получает доступ к tools; это осознанное действие, не «по умолчанию».
192
192
 
193
- ![MCP Settings](https://unpkg.com/dsh-desktop-kit@2.23.23/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
193
+ ![MCP Settings](https://unpkg.com/dsh-desktop-kit@2.23.25/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
194
194
 
195
- ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.23.23/plugins/dsh-mcp-manager/screenshots/settings-390.png)
195
+ ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.23.25/plugins/dsh-mcp-manager/screenshots/settings-390.png)
196
196
 
197
197
  ---
198
198
 
@@ -221,11 +221,11 @@ research_ledger action=summary
221
221
  - **Настройки → Память проектов** — досье, синхронизация;
222
222
  - **Настройки → Перенос и резервные копии** — профиль, навыки, сессии.
223
223
 
224
- ![Агенты](https://unpkg.com/dsh-desktop-kit@2.23.23/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
224
+ ![Агенты](https://unpkg.com/dsh-desktop-kit@2.23.25/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
225
225
 
226
- ![Доска команды](https://unpkg.com/dsh-desktop-kit@2.23.23/plugins/dsh-agent-extensions/screenshots/board-1440.png)
226
+ ![Доска команды](https://unpkg.com/dsh-desktop-kit@2.23.25/plugins/dsh-agent-extensions/screenshots/board-1440.png)
227
227
 
228
- ![Транскрипт](https://unpkg.com/dsh-desktop-kit@2.23.23/plugins/dsh-agent-extensions/screenshots/transcript-1440.png)
228
+ ![Транскрипт](https://unpkg.com/dsh-desktop-kit@2.23.25/plugins/dsh-agent-extensions/screenshots/transcript-1440.png)
229
229
 
230
230
  ---
231
231
 
@@ -239,7 +239,7 @@ research_ledger action=summary
239
239
  - **sandbox_run** — Windows Job Objects: memory/process/time limits, kill-on-close. **Process containment, не filesystem/network isolation.**
240
240
  - **HTTP API** — `/api/dsh-integrations/*`, проверен живым web-профилем: auth-cookie → `POST status` → 200.
241
241
 
242
- ![Интеграции](https://unpkg.com/dsh-desktop-kit@2.23.23/plugins/dsh-integrations/screenshots/integrations-1440.png)
242
+ ![Интеграции](https://unpkg.com/dsh-desktop-kit@2.23.25/plugins/dsh-integrations/screenshots/integrations-1440.png)
243
243
 
244
244
  ---
245
245
 
@@ -259,7 +259,7 @@ research_ledger action=summary
259
259
  ### Из npm
260
260
 
261
261
  ```powershell
262
- dsh plugin --profile desktop add dsh-desktop-kit@2.23.23
262
+ dsh plugin --profile desktop add dsh-desktop-kit@2.23.25
263
263
  ```
264
264
 
265
265
  ### Из локальной папки
@@ -315,7 +315,7 @@ node tools/e2e-smoke.mjs # профиль
315
315
  node tools/e2e-http.mjs # живой API
316
316
  node tools/sandbox-tests.mjs # Job Objects
317
317
  node tools/marketplace-remote-tests.mjs
318
- npm run verify:release -- 2.23.23
318
+ npm run verify:release -- 2.23.25
319
319
  ```
320
320
 
321
321
  UI: `browser_qa audit` на 390/768/1440, overflow/console/markup.
package/client.js CHANGED
@@ -8374,7 +8374,7 @@ var(--dsw-alias-bg-layer-1,#fff);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff
8374
8374
  if (__kitErrors.length <= 5) console.error("[dsh-desktop-kit] registration failed:", label, message);
8375
8375
  };
8376
8376
  try {
8377
- window.__DSH_DESKTOP_KIT__ = { version: "2.23.23", parts: __partNames, errors: __kitErrors, ready: false };
8377
+ window.__DSH_DESKTOP_KIT__ = { version: "2.23.25", parts: __partNames, errors: __kitErrors, ready: false };
8378
8378
  } catch {}
8379
8379
  const __inject = [];
8380
8380
  for (const __part of __parts) {
@@ -0,0 +1,25 @@
1
+ # DSH Desktop Kit 2.23.24
2
+
3
+ Дата: 2026-11-13.
4
+
5
+ ## Что это
6
+
7
+ Патч поверх 2.23.21 (2.23.22/2.23.23 — неудачный эксперимент, 2.23.22 deprecated): восстановлено рабочее поведение и закрыты дефекты, найденные при проверке живого профиля.
8
+
9
+ ## Исправлено
10
+
11
+ - **MCP не стартовал автоматически.** `findProject` больше не считает `~/.dsh` проектом, когда cwd приложения лежит внутри профиля пользователя; глобальные серверы сохраняют `scope=global` и `trusted=true`, автоподключение работает.
12
+ - **MCP-инструменты не регистрировались.** Динамические определения `mcp__*` теперь объявляют `output`-контракт (schema + render), как остальные инструменты кита.
13
+ - **Интеграции не регистрировались.** `integration_status` и `sandbox_run` объявляют `output`-контракт.
14
+ - **`team_message` падал** с `ctx is not defined`: инструмент получает `ctx` плагина; добавлен регрессионный тест.
15
+ - **Роль tester** на Windows: в allowlist добавлен `pwsh` (был только `bash`).
16
+ - **Smoke-тест:** актуализирован ассерт peak-guard (`conversation.composer.dock/peak-guard` вместо удалённого `peak-guard-toast`).
17
+
18
+ ## Проверки
19
+
20
+ - `node tools/mcp-manager-tests.mjs` — OK, включая регрессию «cwd внутри профиля не делает `~/.dsh` проектом» и проверку `output`.
21
+ - `node tools/agent-extensions-tests.mjs` — OK, включая `team_message`.
22
+ - `node tools/integrations-tests.mjs` — OK.
23
+ - `node tools/smoke-tests.mjs` — 3/3.
24
+ - `npm test` — exit 0.
25
+ - Ручной коннект MCP `memory`: 9 инструментов (`create_entities`, `search_nodes`, …).
@@ -0,0 +1,25 @@
1
+ # DSH Desktop Kit 2.23.25
2
+
3
+ Дата: 2026-11-13.
4
+
5
+ ## Что это
6
+
7
+ Патч к 2.23.24: `team_message` больше не блокирует работу лида, когда DSH не может доставить сообщение живьём.
8
+
9
+ ## Причина
10
+
11
+ DSH разрешает `sendMessage` только между родителем и его прямым ребёнком. В команде участники — сиблинги: лид не может им писать (`subagent "<id>" not found`), а участник не может найти «parent» (в `runs.json` лежит id сессии, а не агента). Раньше инструмент возвращал ошибку, и лид тратил шаги на три неудачных попытки, прежде чем перейти на board.
12
+
13
+ ## Что изменилось
14
+
15
+ - Любое сообщение по-прежнему уходит на board.
16
+ - Если живая доставка невозможна, инструмент пишет relay-запись `[relay → <to>] <text>` и возвращает `ok: true`, `via: "board"`, `note` с причиной.
17
+ - Живая доставка, когда адресат достижим, работает как раньше (`via: "live"`).
18
+ - Ошибки ввода (`text` пустой/слишком длинный) остаются ошибками.
19
+
20
+ ## Проверки
21
+
22
+ - `node tools/team-messages-tests.mjs` — OK: live, board relay (missing run, self, no service, DSH not-found), пустой текст.
23
+ - `node tools/agent-extensions-tests.mjs` — OK.
24
+ - `npm test` — exit 0.
25
+ - Живой рой: coordinator + reviewer + verifier завершились PASS, board получил постановку, ответы и синтез.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-desktop-kit",
3
- "version": "2.23.23",
4
- "description": "DeepSeek Harness desktop kit 2.23.23: 18 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.25",
4
+ "description": "DeepSeek Harness desktop kit 2.23.25: 18 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",
@@ -304,7 +304,7 @@ function boardToolDefinition() {
304
304
  };
305
305
  }
306
306
 
307
- function teamMessageToolDefinition() {
307
+ export function teamMessageToolDefinition(ctx) {
308
308
  return {
309
309
  name: "team_message",
310
310
  description:
@@ -324,7 +324,9 @@ function teamMessageToolDefinition() {
324
324
  async execute(input, exec) {
325
325
  try {
326
326
  const result = await sendTeamMessage(ctx, exec, { to: input?.to, text: input?.text, teamId: input?.teamId });
327
- return { ok: true, text: `team_message → ${result.targetId} (${result.messageId})`, targetId: result.targetId };
327
+ const where = result.via === "board" ? "board" : result.targetId;
328
+ const note = result.via === "board" ? ` · live unavailable: ${result.note}` : "";
329
+ return { ok: true, text: `team_message → ${where}${note}`, targetId: result.targetId, via: result.via };
328
330
  } catch (error) {
329
331
  return { ok: false, text: `team_message: ${error instanceof Error ? error.message : String(error)}` };
330
332
  }
@@ -368,7 +370,7 @@ export function apply(ctx) {
368
370
  ctx.effect(() => ctx.tools.register(toolDefinition(ctx)), "agent-extensions: project_agent tool");
369
371
  ctx.effect(() => ctx.tools.register(worktreeToolDefinition()), "agent-extensions: project_worktree tool");
370
372
  ctx.effect(() => ctx.tools.register(boardToolDefinition()), "agent-extensions: team_board tool");
371
- ctx.effect(() => ctx.tools.register(teamMessageToolDefinition()), "agent-extensions: team_message tool");
373
+ ctx.effect(() => ctx.tools.register(teamMessageToolDefinition(ctx)), "agent-extensions: team_message tool");
372
374
  } catch (error) {
373
375
  ctx.logger?.warn?.(`[agent-extensions] tool registration failed: ${error instanceof Error ? error.message : String(error)}`);
374
376
  }
@@ -2,9 +2,10 @@
2
2
  * Live team messages over DSH's subagent seam.
3
3
  *
4
4
  * DSH allows `sendMessage` only between a direct parent and a direct child.
5
- * The tool therefore implements the star topology: the lead can message any
6
- * team member, and a member can message the lead. Sibling-to-sibling traffic is
7
- * recorded on the board for the lead to relay, not sent directly.
5
+ * A team is a star of siblings: the lead's members are NOT its children, so a
6
+ * live hop is often impossible. The board is the durable shared channel, so
7
+ * every message is copied there and a failed live send degrades to a board
8
+ * relay instead of failing the turn.
8
9
  */
9
10
  import { listRuns } from "./agents.js";
10
11
  import { postMessage } from "./board.js";
@@ -32,16 +33,33 @@ export function resolveTeamTarget(projectRoot, senderId, to) {
32
33
  }
33
34
 
34
35
  export async function sendTeamMessage(ctx, exec, { to = "", text: body = "", teamId = "" } = {}) {
35
- const subagents = ctx.get?.("subagents");
36
- if (!subagents || typeof subagents.sendMessage !== "function") throw new Error("team_message: subagents service is unavailable");
37
36
  const sender = exec?.agent;
38
37
  if (!sender?.id) throw new Error("team_message: active agent is required");
39
38
  const root = projectFor(sender?.session?.header?.cwd).root;
40
- const target = resolveTeamTarget(root, sender.id, String(to ?? ""));
41
39
  const message = text(body);
42
- const messageId = await subagents.sendMessage(sender, target.targetId, [{ type: "text", text: message }], {
43
- signal: exec?.signal ?? AbortSignal.timeout(15_000),
40
+ const label = String(to ?? "");
41
+
42
+ let target = null;
43
+ let liveError = "";
44
+ try {
45
+ const subagents = ctx.get?.("subagents");
46
+ if (!subagents || typeof subagents.sendMessage !== "function") throw new Error("subagents service is unavailable");
47
+ target = resolveTeamTarget(root, sender.id, label);
48
+ const messageId = await subagents.sendMessage(sender, target.targetId, [{ type: "text", text: message }], {
49
+ signal: exec?.signal ?? AbortSignal.timeout(15_000),
50
+ });
51
+ postMessage(root, { teamId: String(teamId), from: String(sender.id), to: target.targetId, text: message });
52
+ return { targetId: target.targetId, messageId: String(messageId ?? ""), run: target.run, via: "live" };
53
+ } catch (error) {
54
+ liveError = error instanceof Error ? error.message : String(error);
55
+ }
56
+
57
+ /* Board relay: siblings cannot address each other directly in DSH. */
58
+ postMessage(root, {
59
+ teamId: String(teamId),
60
+ from: String(sender.id),
61
+ to: target?.targetId ?? label,
62
+ text: `[relay → ${target?.targetId ?? (label || "board")}] ${message}`,
44
63
  });
45
- postMessage(root, { teamId: String(teamId), from: String(sender.id), to: target.targetId, text: message });
46
- return { targetId: target.targetId, messageId: String(messageId ?? ""), run: target.run };
64
+ return { targetId: target?.targetId ?? label, messageId: "", run: target?.run ?? null, via: "board", note: liveError };
47
65
  }
@@ -17,12 +17,23 @@ function projectFrom(agent) {
17
17
  return agent?.session?.header?.cwd ?? process.cwd();
18
18
  }
19
19
 
20
+ function toolOutput() {
21
+ return {
22
+ schema: { type: "object", additionalProperties: true },
23
+ render(_args, value) {
24
+ const text = typeof value?.text === "string" ? value.text : JSON.stringify(value);
25
+ return [{ type: "text", text: String(text).slice(0, 40_000) }];
26
+ },
27
+ };
28
+ }
29
+
20
30
  function toolDefinition(ctx, bridge) {
21
31
  return {
22
32
  name: "integration_status",
23
33
  description:
24
34
  "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.",
25
35
  parameters: { type: "object", additionalProperties: false, properties: {} },
36
+ output: toolOutput(),
26
37
  async execute(_input, exec) {
27
38
  const root = projectFrom(exec?.agent);
28
39
  const status = bridge.status();
@@ -55,6 +66,7 @@ function sandboxTool() {
55
66
  processLimit: { type: "number" },
56
67
  },
57
68
  },
69
+ output: toolOutput(),
58
70
  async execute(input, exec) {
59
71
  const root = projectFrom(exec?.agent);
60
72
  const cwd = path.resolve(input?.cwd || root);
@@ -91,9 +91,14 @@ export function setGlobalServerFlags(id, flags) {
91
91
 
92
92
  export function findProject(start) {
93
93
  let current = path.resolve(start || process.cwd());
94
+ const homeDsh = path.resolve(mcpHome()).toLowerCase();
94
95
  for (let depth = 0; depth < 8; depth += 1) {
95
96
  const dsh = path.join(current, ".dsh");
96
- if (fs.existsSync(dsh)) return { root: current, config: path.join(dsh, "mcp.json") };
97
+ /* `~/.dsh` is the global home, never a project: a cwd inside the user
98
+ profile (the Desktop app itself) must not downgrade global servers. */
99
+ if (path.resolve(dsh).toLowerCase() !== homeDsh && fs.existsSync(dsh)) {
100
+ return { root: current, config: path.join(dsh, "mcp.json") };
101
+ }
97
102
  const parent = path.dirname(current);
98
103
  if (parent === current) break;
99
104
  current = parent;
@@ -168,7 +173,11 @@ export function loadConfig({ cwd = process.cwd(), env = process.env } = {}) {
168
173
  const secrets = loadSecrets();
169
174
  const sources = [];
170
175
  const servers = new Map();
171
- for (const [file, scope] of [[globalFile, "global"], [project.config, "project"]]) {
176
+ const files = [[globalFile, "global"]];
177
+ if (project.config && path.resolve(project.config).toLowerCase() !== path.resolve(globalFile).toLowerCase()) {
178
+ files.push([project.config, "project"]);
179
+ }
180
+ for (const [file, scope] of files) {
172
181
  if (!file) continue;
173
182
  let parsed;
174
183
  try {
@@ -12,6 +12,16 @@ function sanitize(value) {
12
12
  return String(value ?? "").replace(/[^A-Za-z0-9_-]+/gu, "_").replace(/^_+|_+$/gu, "").slice(0, 48);
13
13
  }
14
14
 
15
+ function toolOutput() {
16
+ return {
17
+ schema: { type: "object", additionalProperties: true },
18
+ render(_args, value) {
19
+ const text = typeof value?.text === "string" ? value.text : JSON.stringify(value);
20
+ return [{ type: "text", text: String(text).slice(0, 40_000) }];
21
+ },
22
+ };
23
+ }
24
+
15
25
  function textFromContent(content) {
16
26
  if (!Array.isArray(content)) return "";
17
27
  return content
@@ -120,6 +130,7 @@ export class McpManager {
120
130
  parameters: entry.tool.inputSchema && typeof entry.tool.inputSchema === "object"
121
131
  ? entry.tool.inputSchema
122
132
  : { type: "object", properties: {} },
133
+ output: toolOutput(),
123
134
  async execute(input, exec) {
124
135
  const record = entry.record;
125
136
  if (!record?.client?.connected) return { ok: false, text: `MCP ${entry.serverId}: server is not connected` };
@@ -1,27 +0,0 @@
1
- # DSH Desktop Kit 2.23.23
2
-
3
- Дата: 2026-11-13.
4
-
5
- ## Что это
6
-
7
- Возврат к проверенному поведению **2.23.21**:
8
-
9
- - без бюджетов субагентов;
10
- - без блокировки параллельных роёв;
11
- - `threshold 2`, `maxAgents 6`;
12
- - авто-куратор памяти включён (4 минуты);
13
- - digest 2800;
14
- - 8 ролей, 4 preset;
15
- - flash по умолчанию, pro вручную;
16
- - один peak-card.
17
-
18
- ## 2.23.22
19
-
20
- Опубликован ранее как эксперимент по экономии токенов; помечен deprecated.
21
- Пакет не удаляется, но `latest` указывает на 2.23.23.
22
-
23
- ## Проверки
24
-
25
- - `npm test` — exit 0.
26
- - `git diff v2.23.21 -- plugins tools package.json` — пусто.
27
- - build/check/e2e-http — OK.