dsh-desktop-kit 2.23.25 → 2.23.26

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,3 +1,10 @@
1
+ ## 2.23.26 (2026-11-13)
2
+
3
+ - **Scaffolded tester role:** the kit template now includes `pwsh` (and grep/glob), so new projects get a Windows-capable tester instead of the stale `bash`-only list.
4
+ - **`findDshDir` hardened:** `~/.dsh` is never treated as a project root, so a session whose cwd sits inside the user profile no longer scaffolds agents/board into the DSH home.
5
+ - **team_message relay hardening:** a live-delivered message whose board copy fails is reported as live with a note (no duplicate relay); relay text is capped at the board limit; a failed board relay surfaces both errors.
6
+ - **Tests:** scaffolded tester `pwsh`, `findDshDir` DSH_HOME, relay length cap, integrations output contract.
7
+
1
8
  ## 2.23.25 (2026-11-13)
2
9
 
3
10
  - **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.
package/README.md CHANGED
@@ -1,19 +1,19 @@
1
- # DSH Desktop Kit 2.23.25
1
+ # DSH Desktop Kit 2.23.26
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.25/docs/images/hero.png)
7
+ ![DSH Desktop Kit](https://unpkg.com/dsh-desktop-kit@2.23.26/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.25
14
+ # в DSH: Плагины → Add plugin → dsh-desktop-kit@2.23.26
15
15
  # или из терминала:
16
- dsh plugin --profile desktop add dsh-desktop-kit@2.23.25
16
+ dsh plugin --profile desktop add dsh-desktop-kit@2.23.26
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.25/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
193
+ ![MCP Settings](https://unpkg.com/dsh-desktop-kit@2.23.26/plugins/dsh-mcp-manager/screenshots/settings-1440.png)
194
194
 
195
- ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.23.25/plugins/dsh-mcp-manager/screenshots/settings-390.png)
195
+ ![MCP на 390px](https://unpkg.com/dsh-desktop-kit@2.23.26/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.25/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
224
+ ![Агенты](https://unpkg.com/dsh-desktop-kit@2.23.26/plugins/dsh-agent-extensions/screenshots/agents-1440.png)
225
225
 
226
- ![Доска команды](https://unpkg.com/dsh-desktop-kit@2.23.25/plugins/dsh-agent-extensions/screenshots/board-1440.png)
226
+ ![Доска команды](https://unpkg.com/dsh-desktop-kit@2.23.26/plugins/dsh-agent-extensions/screenshots/board-1440.png)
227
227
 
228
- ![Транскрипт](https://unpkg.com/dsh-desktop-kit@2.23.25/plugins/dsh-agent-extensions/screenshots/transcript-1440.png)
228
+ ![Транскрипт](https://unpkg.com/dsh-desktop-kit@2.23.26/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.25/plugins/dsh-integrations/screenshots/integrations-1440.png)
242
+ ![Интеграции](https://unpkg.com/dsh-desktop-kit@2.23.26/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.25
262
+ dsh plugin --profile desktop add dsh-desktop-kit@2.23.26
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.25
318
+ npm run verify:release -- 2.23.26
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.25", parts: __partNames, errors: __kitErrors, ready: false };
8377
+ window.__DSH_DESKTOP_KIT__ = { version: "2.23.26", parts: __partNames, errors: __kitErrors, ready: false };
8378
8378
  } catch {}
8379
8379
  const __inject = [];
8380
8380
  for (const __part of __parts) {
@@ -0,0 +1,23 @@
1
+ # DSH Desktop Kit 2.23.26
2
+
3
+ Дата: 2026-11-13.
4
+
5
+ ## Что это
6
+
7
+ Патч по итогам независимого ревью дельты v2.23.21→2.23.25 (reviewer + security): исправлены три реальные проблемы и добавлены регрессионные тесты.
8
+
9
+ ## Исправлено
10
+
11
+ - **Шаблон роли tester.** `scaffold.js` создавал `tools: read, bash, team_board, team_message` — без `pwsh`, то есть на Windows новый проект получал тестировщика без shell. Теперь `read, grep, glob, bash, pwsh, team_board, team_message`.
12
+ - **`findDshDir` и `~/.dsh`.** Та же ошибка, что была в MCP: cwd внутри профиля пользователя находил `~/.dsh` как «проект». Теперь глобальный дом исключён, сравнение путей платформозависимое (Windows — без учёта регистра).
13
+ - **`team_message` relay.** Если живая доставка прошла, а запись в board упала, инструмент возвращает `via: "live"` с пометкой об ошибке board, а не дублирует сообщение relay-ем. Текст relay обрезается до лимита board (4000), ошибка board при неудачной живой доставке возвращается явно.
14
+ - **Тесты:** шаблонный tester с `pwsh`, `findDshDir` не считает DSH_HOME проектом, лимит relay-сообщения, output-контракт интеграций.
15
+
16
+ ## Проверки
17
+
18
+ - `node tools/agent-extensions-tests.mjs` — OK.
19
+ - `node tools/team-messages-tests.mjs` — OK.
20
+ - `node tools/integrations-tests.mjs` — OK (оба инструмента с `output`).
21
+ - `node tools/mcp-manager-tests.mjs` — OK.
22
+ - `npm test` — exit 0.
23
+ - Артефакт сверен с рабочей копией по SHA-256, `release/checksums.txt` обновлён.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-desktop-kit",
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.",
3
+ "version": "2.23.26",
4
+ "description": "DeepSeek Harness desktop kit 2.23.26: 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",
@@ -11,13 +11,19 @@ import { listRuns } from "./agents.js";
11
11
  import { postMessage } from "./board.js";
12
12
  import { projectFor } from "./project.js";
13
13
 
14
- function text(value, max = 4_000) {
14
+ const MAX_TEXT = 4_000;
15
+
16
+ function text(value, max = MAX_TEXT) {
15
17
  const clean = String(value ?? "").trim();
16
18
  if (!clean) throw new Error("team_message: text is required");
17
19
  if (clean.length > max) throw new Error("team_message: text is too long");
18
20
  return clean;
19
21
  }
20
22
 
23
+ function reason(error) {
24
+ return error instanceof Error ? error.message : String(error);
25
+ }
26
+
21
27
  export function resolveTeamTarget(projectRoot, senderId, to) {
22
28
  const runs = listRuns(projectRoot);
23
29
  const senderRun = runs.find((run) => String(run.childId) === String(senderId));
@@ -40,26 +46,41 @@ export async function sendTeamMessage(ctx, exec, { to = "", text: body = "", tea
40
46
  const label = String(to ?? "");
41
47
 
42
48
  let target = null;
49
+ let messageId = "";
43
50
  let liveError = "";
44
51
  try {
45
52
  const subagents = ctx.get?.("subagents");
46
53
  if (!subagents || typeof subagents.sendMessage !== "function") throw new Error("subagents service is unavailable");
47
54
  target = resolveTeamTarget(root, sender.id, label);
48
- const messageId = await subagents.sendMessage(sender, target.targetId, [{ type: "text", text: message }], {
55
+ messageId = String(await subagents.sendMessage(sender, target.targetId, [{ type: "text", text: message }], {
49
56
  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" };
57
+ }) ?? "");
53
58
  } catch (error) {
54
- liveError = error instanceof Error ? error.message : String(error);
59
+ liveError = reason(error);
60
+ }
61
+
62
+ if (!liveError) {
63
+ /* Delivered live: the board copy is best effort and must not fake a failure. */
64
+ try {
65
+ postMessage(root, { teamId: String(teamId), from: String(sender.id), to: target.targetId, text: message });
66
+ return { targetId: target.targetId, messageId, run: target.run, via: "live" };
67
+ } catch (error) {
68
+ return { targetId: target.targetId, messageId, run: target.run, via: "live", note: `board copy failed: ${reason(error)}` };
69
+ }
55
70
  }
56
71
 
57
72
  /* 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}`,
63
- });
73
+ const prefix = `[relay → ${target?.targetId ?? (label || "board")}] `;
74
+ const relayText = `${prefix}${message}`.slice(0, MAX_TEXT);
75
+ try {
76
+ postMessage(root, {
77
+ teamId: String(teamId),
78
+ from: String(sender.id),
79
+ to: target?.targetId ?? label,
80
+ text: relayText,
81
+ });
82
+ } catch (error) {
83
+ throw new Error(`team_message: live delivery failed (${liveError}); board relay failed (${reason(error)})`);
84
+ }
64
85
  return { targetId: target?.targetId ?? label, messageId: "", run: target?.run ?? null, via: "board", note: liveError };
65
86
  }
@@ -6,15 +6,29 @@
6
6
  * without `.dsh` simply gets no extra hooks/commands/agents.
7
7
  */
8
8
  import fs from "node:fs";
9
+ import os from "node:os";
9
10
  import path from "node:path";
10
11
 
11
12
  export const BUILTIN_COMMANDS = new Set(["init", "doctor", "verify", "hooks", "checkpoint", "rewind", "project"]);
12
13
 
14
+ function dshHome() {
15
+ return process.env.DSH_HOME || path.join(os.homedir(), ".dsh");
16
+ }
17
+
18
+ function samePath(left, right) {
19
+ const a = path.resolve(left);
20
+ const b = path.resolve(right);
21
+ return process.platform === "win32" ? a.toLowerCase() === b.toLowerCase() : a === b;
22
+ }
23
+
13
24
  export function findDshDir(start) {
14
25
  let current = path.resolve(start || process.cwd());
15
26
  for (let depth = 0; depth < 8; depth += 1) {
16
27
  const candidate = path.join(current, ".dsh");
17
- if (fs.existsSync(candidate) && fs.statSync(candidate).isDirectory()) return { root: current, dsh: candidate };
28
+ /* `~/.dsh` is the global home, never a project root. */
29
+ if (!samePath(candidate, dshHome()) && fs.existsSync(candidate) && fs.statSync(candidate).isDirectory()) {
30
+ return { root: current, dsh: candidate };
31
+ }
18
32
  const parent = path.dirname(current);
19
33
  if (parent === current) break;
20
34
  current = parent;
@@ -52,7 +52,7 @@ const AGENT_TEMPLATES = {
52
52
  "---",
53
53
  "name: tester",
54
54
  "description: Запускает тесты и проверки в рабочей папке, разбирает падения.",
55
- "tools: read, bash, team_board, team_message",
55
+ "tools: read, grep, glob, bash, pwsh, team_board, team_message",
56
56
  "permission: workspace-write",
57
57
  "---",
58
58
  "",