dsh-desktop-kit 2.23.26 → 2.24.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 +31 -2
- package/README.md +75 -19
- package/client.js +1 -1
- package/cordis.patch.yml +151 -5
- package/docs/ARCHITECTURE.md +15 -6
- package/docs/COMPATIBILITY.md +8 -1
- package/docs/DEVELOPMENT.md +1 -0
- package/docs/TEST-2.23.23.md +27 -0
- package/docs/TEST-2.23.27.md +111 -0
- package/docs/TEST-2.24.0.md +123 -0
- package/package.json +3 -3
- package/plugins/dsh-agent-extensions/lib/agents.js +38 -13
- package/plugins/dsh-agent-extensions/lib/board.js +12 -6
- package/plugins/dsh-agent-extensions/lib/swarm.js +3 -1
- package/plugins/dsh-browser-qa/index.js +24 -1
- package/plugins/dsh-browser-qa/lib/pages.js +28 -7
- package/plugins/dsh-browser-qa/lib/qa.js +82 -1
- package/plugins/dsh-browser-qa/lib/ui-gate.js +25 -3
- package/plugins/dsh-project-memory/index.js +15 -9
- package/plugins/dsh-skill-autopilot/index.js +17 -7
- package/skills/manifest.json +11 -6
- package/skills/web-quality/SKILL.md +73 -0
- package/skills-baseline.json +8 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# TEST 2.23.27 — DSH 0.2.2-rc.3 compatibility (project agents / swarm)
|
|
2
|
+
|
|
3
|
+
Дата: 2026-11-13. Платформа: Windows 11, Electron-приложение DeepSeek Harness, Node.js 24.x.
|
|
4
|
+
Проверял: Lead-агент по поручению владельца пакета.
|
|
5
|
+
|
|
6
|
+
## Симптом
|
|
7
|
+
|
|
8
|
+
После обновления приложения DSH `0.2.2-rc.1` → `0.2.2-rc.3` (13.11.2026, ~20:22 MSK)
|
|
9
|
+
kit 2.23.26, установленный из npm, перестал запускать агентов:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
project_agent researcher: no subagent provider is registered
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
То же для `run` (фон/передний план), `team` и `auto`. Рой, доска и `team_message`
|
|
16
|
+
работали только за счёт того, что `team_board` пишет в `.dsh/agents/board.json`;
|
|
17
|
+
живые сообщения в rc.3 ещё не проверялись. Куратор памяти проекта падал молча
|
|
18
|
+
(ошибка ловится и пишется только в `_access.log`).
|
|
19
|
+
|
|
20
|
+
## Причина (API 0.2.2-rc.3)
|
|
21
|
+
|
|
22
|
+
Исходники rc.3 извлечены из `resources\app.asar` (Node-читатель asar, пути ниже —
|
|
23
|
+
внутри `app.asar\dsh\node_modules\@deepseek-ai\`):
|
|
24
|
+
|
|
25
|
+
1. **`ctx.subagents.list()` удалён.** В `dsh-subagent\lib\index.js` у сервиса
|
|
26
|
+
остались `registerProvider`, `getProvider`, `startActivation`, `sendMessage`,
|
|
27
|
+
`interrupt`, `namesOf`, `resolveName`, `rootOf`, … — перечисления провайдеров нет.
|
|
28
|
+
Kit 2.23.26 делал `const providers = subagents.list()` → пустой список →
|
|
29
|
+
собственный throw «no subagent provider is registered».
|
|
30
|
+
2. **`startActivation()` стал плоским.** `startLocal(spec)` читает
|
|
31
|
+
`spec.parent`, `spec.prompt`, `spec.signal`, `spec.resolveDirectory(spec)` (`spec.cwd`),
|
|
32
|
+
`spec.agentOptions`, `spec.childId`, `spec.delivery`; вложенный `request`
|
|
33
|
+
(`{ prompt, parent, signal, cwd, agentOptions }`, форма rc.1) больше не читается.
|
|
34
|
+
Провайдер `spawn` регистрируется базовым бандлом с `providerName: spawn`
|
|
35
|
+
(`dsh-subagent-spawn-in-process`), `fork` — с `providerName: fork`.
|
|
36
|
+
3. `interrupt(targetSessionId, { kind: "user" })` — authority без `parentSessionId`;
|
|
37
|
+
лишнее поле игнорируется. `sendMessage(sender, targetId, content, options)` не изменился.
|
|
38
|
+
|
|
39
|
+
## Исправление (2.23.27)
|
|
40
|
+
|
|
41
|
+
- `plugins/dsh-agent-extensions/lib/agents.js` — `project_agent`:
|
|
42
|
+
- провайдер: `getProvider("spawn" | "fork" | "subagent-spawn-in-process")`,
|
|
43
|
+
если `list()` недоступен; старая ветка `list()` сохранена;
|
|
44
|
+
- `startActivation`: форма выбирается по наличию `subagents.list` —
|
|
45
|
+
плоская для rc.3, вложенный `request` для rc.1/rc.2.
|
|
46
|
+
- `plugins/dsh-project-memory/index.js` — куратор памяти использует ту же развилку.
|
|
47
|
+
|
|
48
|
+
## Проверено
|
|
49
|
+
|
|
50
|
+
- `node --check` обоих файлов — OK.
|
|
51
|
+
- `tools/rc3-compat-tests.mjs` — OK: mock-сервис rc.3 (без `list()`, плоский spec,
|
|
52
|
+
`agentOptions.model` = `deepseek-flash`, `delivery: "caller"`, `childId`),
|
|
53
|
+
legacy-форма с `list()` и вложенным `request`, и явная ошибка при отсутствии провайдера.
|
|
54
|
+
- `tools/team-messages-tests.mjs` — OK, включая регистрацию `team_message` через
|
|
55
|
+
`apply(ctx)` и копию сообщения на доску.
|
|
56
|
+
- `tools/agent-extensions-tests.mjs`, `swarm-tests.mjs`, `team-board-tests.mjs`,
|
|
57
|
+
`team-agents-tests.mjs`, `team-presets-tests.mjs`, `background-agents-tests.mjs`,
|
|
58
|
+
`transcripts-tests.mjs` — OK (см. прогон в CI/локально).
|
|
59
|
+
|
|
60
|
+
## Живая проверка после перезапуска DSH (2026-11-13, 20:44–20:50 MSK)
|
|
61
|
+
|
|
62
|
+
Приложение перезапущено полностью (новый процесс, GUI-порт 62109). Загрузилась
|
|
63
|
+
kit **2.23.26** из npm + локальный hotfix; признак — `~/.dsh/skills/.dsh-kit-skills.json`
|
|
64
|
+
переписан хостом с `kitVersion: "2.23.26"` (до рестарта оставался 2.23.17, потому
|
|
65
|
+
что модули хост-плагинов кэшируются в процессе).
|
|
66
|
+
|
|
67
|
+
| Проверка | Результат |
|
|
68
|
+
|---|---|
|
|
69
|
+
| MCP auto-start (фикс 2.23.24) | **PASS**: подняты 4 сервера (`sequential-thinking`, `memory`, `filesystem`, `github`), инструменты `mcp__sequential-thinking__*`, `mcp__memory__*`, `mcp__filesystem__*`, `mcp__github__*` в каталоге |
|
|
70
|
+
| `integration_status` / `sandbox_run` (фикс 2.23.24) | **PASS**: оба инструмента зарегистрированы; sandbox вернул stdout, `exitCode: 0`, лимиты применены |
|
|
71
|
+
| `project_agent run` (передний план) | **PASS**: `kit=2.23.26; status=OK` на `deepseek-flash/high` |
|
|
72
|
+
| `project_agent run background` | **PASS**: run id, `completed`, результат — 18 плагинов, корректные имена |
|
|
73
|
+
| `team_message` живой канал | **PASS**: сообщение доставлено ребёнку, он добавил `lead-message=received`; копия на доске |
|
|
74
|
+
| `project_agent cancel` | **PASS**: `live`, статус `canceled — canceled by user` |
|
|
75
|
+
| `project_agent auto` | **PASS**: выбрал preset `review`, 2 участника + lead; координатор вернул PASS-синтез с evidence |
|
|
76
|
+
| `team_board` | **PASS**: 6+ сообщений от участников/лида, задачи и evidence на месте |
|
|
77
|
+
| Транскрипты | **частично**: отменённый run сохранил `.dsh/agents/transcripts/<run>.json` (13 записей); завершённый фоновой run — **нет** (rc.3 dispose до settlement). Исправлено в этом же коммите: живая сессия захватывается до settlement |
|
|
78
|
+
| `project_worktree list` вне git | **PASS**: понятное сообщение `not a git repository`, без стектрейса |
|
|
79
|
+
| `guardrails status`, `repo_map stats`, `plan status` | **PASS** |
|
|
80
|
+
| Auto-рой на коротком вопросе | **найдено**: «Проверь статус … и …» получал +1 за «несколько областей» из-за одиночного русского «и» и запускал команду на 3 агента. Исправлено: одиночное «и» больше не считается, покрыто `tools/swarm-tests.mjs` |
|
|
81
|
+
| MCP: два менеджера на rc.3 | **ограничение**: в rc.3 появился нативный `@deepseek-ai/dsh-mcp-manager` (entry `include:mcp-manager`), kit 2.23.26 тоже поднимает MCP-серверы. Серверы стартуют (4 дочерних npx-процесса, `mcp__*` инструменты в каталоге), но `mcp__filesystem__*` ограничен `C:\Users\adm\.dsh\profiles\desktop`, а не рабочей папкой из `~/.dsh/mcp.json`. Нужно решение: на rc.3 kit-менеджер не должен дублировать DSH (UI-only) либо обязан согласовывать scope/имена |
|
|
82
|
+
| Навыки | 29 из 30 локальных навыков отличаются от кита по содержимому (не только EOL) — это пользовательские или дев-варианты; kit корректно сохраняет их как conflicts, 1 совпадает. Массовый `/kit force` не запускался: он заменил бы реальные правки (есть бэкап, но нужно решение владельца) |
|
|
83
|
+
| UI-аудит 390/768/1440 | **ограничение**: headless-Chrome получает `dsh web authentication required` — токен рабочего окна недоступен внешнему браузеру; 0 overflow на пустой auth-странице ничего не доказывает. Клиентский бандл проверен офлайн: `check-client` на установленном `client.js` → OK, `window.__DSH_DESKTOP_KIT__.version = "2.23.26"`; визуальная проверка — в окне приложения (Настройки → Плагины/Агенты) |
|
|
84
|
+
| Повторный рестарт (20:52) | **PASS**: hotfix-код загружен (`childSession` в `agents.js:141`, новый `swarm.js:23`), состояние навыков = 2.23.26 |
|
|
85
|
+
| Auto-рой на коротком вопросе (после фикса) | **PASS**: `project_agent auto: swarm not needed (score 2 < 3)` |
|
|
86
|
+
| Транскрипт завершённого фонового run (после фикса) | **PASS**: `.dsh/agents/transcripts/52d60fc8-0909-466d-b3ad-040e13a684ac.json`, 11 записей, `savedAt` 20:53:48 MSK |
|
|
87
|
+
|
|
88
|
+
Оба найденных после первого рестарта дефекта исправлены и подтверждены живыми вызовами.
|
|
89
|
+
Тестовые `board.json`, `runs.json` и транскрипты заархивированы в
|
|
90
|
+
`.dsh/verify-reports/artifacts-20261113-2054/` и удалены из живого проекта.
|
|
91
|
+
|
|
92
|
+
## Не проверено / ограничения
|
|
93
|
+
|
|
94
|
+
- **Живой прогон после перезапуска DSH** — выполнен для ядра агентов/роя (см. таблицу выше);
|
|
95
|
+
остаются UI-аудит 390/768/1440 и smoke остальных 14 плагинов на rc.3.
|
|
96
|
+
Host-плагины кэшируются в процессе: `set_plugin`/`set_bundle` перезапускают fiber,
|
|
97
|
+
но не перечитывают JS-модули, поэтому каждый фикс требует полного рестарта приложения.
|
|
98
|
+
Проверено: `project_agent list/run/background/team/auto/cancel`, `team_message`
|
|
99
|
+
(живая доставка + копия на доске), `.dsh/agents/runs.json`, `team_board`, MCP-серверы.
|
|
100
|
+
- **Клиентская половина** (RU-UI, Skills Studio, Token Lab, страницы агентов/MCP)
|
|
101
|
+
на rc.3 не проверялась: клиентские API rc.3 могли измениться отдельно.
|
|
102
|
+
- **Другие плагины** (MCP-менеджер, integrations, память, guardrails) на rc.3
|
|
103
|
+
проверены точечно (`integration_status`, `sandbox_run`, MCP-серверы, guardrails);
|
|
104
|
+
полный smoke — после рестарта.
|
|
105
|
+
|
|
106
|
+
## Замечание по репозиторию
|
|
107
|
+
|
|
108
|
+
Версии `2.23.24–2.23.26` были опубликованы в npm с другой машины и в git не попали.
|
|
109
|
+
В этом коммите их исходники перенесены в репозиторий (включая `docs/TEST-2.23.24..26.md`),
|
|
110
|
+
после чего сверху наложен фикс rc.3 и поднята версия до `2.23.27`. Публикация в npm —
|
|
111
|
+
с ноутбука в понедельник (проверить: `npm run verify:release -- 2.23.27`, `npm test`, `npm pack`).
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# TEST 2.24.0 — preset «Веб-разработчик» (DSH 0.2.2-rc.3)
|
|
2
|
+
|
|
3
|
+
Дата: 2026-11-23. Платформа: Windows 11, DeepSeek Harness Desktop 0.2.2-rc.3, Node.js 24.20 (тесты) / 24.21 (рантайм DSH).
|
|
4
|
+
Проверял: Lead-агент по поручению владельца пакета.
|
|
5
|
+
|
|
6
|
+
## Синхронизация с GitHub
|
|
7
|
+
|
|
8
|
+
Перед выпуском `main` на GitHub ушёл вперёд на 4 коммита (`35656b9`, 2.23.29). Локальный 2.24.0 был перебазирован поверх:
|
|
9
|
+
|
|
10
|
+
- `2.23.28` — глобальный web-quality контракт, `browser_qa audit matrix=full` (390×844, 844×390, 768×1024, 1024×768, 1440×900), UI gate 4/4, навык `web-quality` (31 навык);
|
|
11
|
+
- `2.23.29` — board lock на Windows (`EPERM`/`EACCES`/`EBUSY` + джиттер).
|
|
12
|
+
|
|
13
|
+
Пресет использует ту же матрицу и навык `web-quality`, а не дублирует их. CI GitHub на `35656b9` зелёный (`test` и `release` runs success, 2026-11-22).
|
|
14
|
+
|
|
15
|
+
## Что добавлено
|
|
16
|
+
|
|
17
|
+
Второй ряд в `cordis.patch.yml` кита — декларация `@deepseek-ai/dsh-agent-preset`:
|
|
18
|
+
|
|
19
|
+
| Поле | Значение |
|
|
20
|
+
|---|---|
|
|
21
|
+
| Loader row id | `preset-webdev` |
|
|
22
|
+
| `config.id` | `webdev` |
|
|
23
|
+
| Отображаемое имя | «Веб-разработчик» |
|
|
24
|
+
| `order` | 5 (после `standard`, `ptc`, `minimal`, `cordis`) |
|
|
25
|
+
| Дочерних плагинов | 17 |
|
|
26
|
+
|
|
27
|
+
Состав: `persona`, `agent-instructions`, `time-context`, shell (pwsh на Windows / bash на других ОС), `tool-fs`, `tool-fs-search`, `tool-jobs`, группы `planning`, `compaction`, `delegation` (subagent + fork), `tool-ask-user`, `tool-todo`, `tool-web`, `skill-filesystem`, `tool-skill`, `present`.
|
|
28
|
+
|
|
29
|
+
Намеренно не включены: `tool-cordis`, `tool-plugin-manager`, `tool-schedule`, `tool-office`, `workflow-ptc`, `tool-goal` — меньше схем инструментов в каждом запросе. Host-инструменты кита (`browser_qa`, `repo_map`, `project_memory`, `checkpoint`, `research_ledger`, `guardrails`, `project_agent`, …) зарегистрированы host-строкой кита и остаются доступны.
|
|
30
|
+
|
|
31
|
+
Персона: 3 288 символов (≈5,9 КБ UTF-8), 460 слов. Детальные правила UI/SEO/тестов не дублируются — агент грузит навыки кита по задаче (`skills-router`, `web-quality`, `wow-design`, `ui-craft`, `visual-qa`, `seo`, `testing-strategy`, `security-review`, `web-research`, `content-writing`, `code-review-checklist`).
|
|
32
|
+
|
|
33
|
+
## Статические проверки
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
node tools/preset-tests.mjs
|
|
37
|
+
preset tests: OK · webdev persona 3288 chars, 17 child plugins
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Тест проверяет:
|
|
41
|
+
|
|
42
|
+
- ровно один ряд `preset-webdev`, имя пакета `@deepseek-ai/dsh-agent-preset`, `id: webdev`, `order: 5`, непустое описание;
|
|
43
|
+
- наличие обязательных дочерних плагинов и платформенных условий `disabled` для bash/pwsh;
|
|
44
|
+
- отсутствие DSH-авторинга, plugin-manager, schedule, office, workflow и goal;
|
|
45
|
+
- бюджет персоны 2 800–3 800 символов и обязательные фразы: research с 2+ источниками, `WCAG 2.2 AA`, `LCP ≤2.5`, `INP ≤200`, `CLS ≤0.1`, `matrix=full`, `390×844`, `320 px`, `web-quality`, `skills-router`, `browser_qa`, `checkpoint`, «источники с датами», «1–3 подсказки»;
|
|
46
|
+
- декларация не зависит от шаблонных плейсхолдеров.
|
|
47
|
+
|
|
48
|
+
Дополнительно YAML разобран установленным в DSH парсером `yaml@2` (с заменой `!!js` на `!!str` для структурной проверки): два ряда `insert`, 17 дочерних плагинов, персона читается без потерь.
|
|
49
|
+
|
|
50
|
+
## Полный прогон пакета
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
cmd /d /c "npm test"
|
|
54
|
+
EXIT=0
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Пройдены все группы: integrations, smoke (клиент 10 частей), memory, skills-sync, kit-upgrade, profile-transfer (52), memory-bridge (36), repo-map, checkpoints, plan-mode, **preset**, browser-qa (14 групп, Chrome 157, включая `matrix=full` по телефону/планшету в двух ориентациях), ui-gate, agent-extensions, research-ledger, research-eval 6/6, citation-eval 3/3, MCP (manager/catalog/bootstrap/elicitation/sampling/oauth), GitHub review, instructions, worktrees, transcripts, team messages/board/agents/presets, rc3-compat, swarm, background agents, permissions UI, guardrails (40).
|
|
58
|
+
|
|
59
|
+
## Сборка артефакта
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
npm run release -- --skip-tests
|
|
63
|
+
release: artifact release\dsh-desktop-kit-2.24.0.tgz
|
|
64
|
+
release: sha256 <см. release/checksums.txt>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Проверки релиза: 31 навык, ядро 44 487 токенов (все в бюджете 6 000), `check-client` OK, tarball ≈10,3 МБ (489 файлов). `cordis.patch.yml` входит в tarball, `docs/TEST-2.24.0.md` — тоже.
|
|
68
|
+
|
|
69
|
+
## Живая установка в профиль desktop
|
|
70
|
+
|
|
71
|
+
`plugin_manager install_bundle` с tarball 2.24.0:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"stage": "enable",
|
|
76
|
+
"target": "dsh-desktop-kit",
|
|
77
|
+
"enabled": true,
|
|
78
|
+
"changed": true,
|
|
79
|
+
"application": "applied",
|
|
80
|
+
"packageResult": { "exitCode": 0 },
|
|
81
|
+
"bundle": "dsh-desktop-kit",
|
|
82
|
+
"version": "2.24.0",
|
|
83
|
+
"warnings": []
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- `~/.dsh/profiles/desktop/package.json` → `dsh-desktop-kit: file:...release/dsh-desktop-kit-2.24.0.tgz`;
|
|
88
|
+
- `list_bundles` → kit 2.24.0, rows: `dsh-desktop-kit`, `preset-webdev`;
|
|
89
|
+
- `Config.listConfigs(name: @deepseek-ai/dsh-agent-preset)` → 5 записей, включая `preset-webdev`;
|
|
90
|
+
- `list_plugins` (offset 200) → `include:preset-webdev`, `enabled: true`, `fiberPhase: "active"`.
|
|
91
|
+
|
|
92
|
+
Свежий профиль (изолированный `DSH_HOME`, шаблон `web`):
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
node tools/e2e-smoke.mjs release/dsh-desktop-kit-2.24.0.tgz
|
|
96
|
+
e2e profile smoke: OK · dsh-desktop-kit-2.24.0.tgz
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Глобальный режим
|
|
100
|
+
|
|
101
|
+
- Пресет — декларация профиля, поэтому виден в композере во всех проектах и чатах; привязки к workspace нет.
|
|
102
|
+
- Для новых сессий профиля `desktop` выставлено `agent-preset-registry.selectedDefault: webdev` (бэкап прежнего файла: `cordis.patch.yml.bak-webdev-20261116`). Это пользовательский слой, обновление кита его не перезаписывает.
|
|
103
|
+
- Существующие сессии сохраняют свой пресет — это контракт DSH. Текущая сессия (cordis) не меняется.
|
|
104
|
+
- Значение вступает в силу для новых сессий после перезапуска DSH: профильный patch читается при загрузке хоста. Проверить после рестарта: композер нового чата показывает «Веб-разработчик» по умолчанию.
|
|
105
|
+
|
|
106
|
+
## Ограничения проверки
|
|
107
|
+
|
|
108
|
+
- GUI-скриншот ростера пресетов не снят: `http://127.0.0.1:59163` требует авторизацию `dsh web` («dsh web authentication required»), а токен не хранится в доступных файлах профиля. Обходить авторизацию не стал.
|
|
109
|
+
- Поведение нового чата в выбранном пресете (первый реальный веб-заказ) не прогонялось из текущей сессии: DSH не даёт агенту создать новую GUI-сессию. Активация подтверждена `fiberPhase: active`, наличием конфигурации и успешной композицией в свежем профиле.
|
|
110
|
+
- Клиентской части у пресета нет: ростер и выбор — штатный UI `dsh-client-ui-agent-preset`, поэтому отдельных скриншотов 390/768/1440 для него не требуется.
|
|
111
|
+
|
|
112
|
+
## Источники, на которые опирается промпт
|
|
113
|
+
|
|
114
|
+
- Anthropic, «Effective context engineering for AI agents», 2025-09-29 — минимальный системный промпт, секции, «правильная высота»: <https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents>.
|
|
115
|
+
- W3C WAI, «What’s New in WCAG 2.2», обновлено 2023-10-05 — 9 новых критериев, target size 24×24, focus not obscured: <https://www.w3.org/WAI/standards-guidelines/wcag/new-in-22/>.
|
|
116
|
+
- web.dev, LCP (обновлено 2025-03-20): <https://web.dev/articles/lcp>; INP (2025-09-02): <https://web.dev/articles/inp>; CLS (2025): <https://web.dev/articles/cls> — пороги 2,5 с / 200 мс / 0,1 на p75.
|
|
117
|
+
- Chrome for Developers, «Modern Web Guidance 1.0», 2026-11-10 — типичные провалы агентов в accessibility/UX/performance/security и проверка в рантайме: <https://developer.chrome.com/blog/modern-web-guidance-v1>.
|
|
118
|
+
|
|
119
|
+
## Откат
|
|
120
|
+
|
|
121
|
+
- Убрать пресет: отключить/удалить кит либо вернуть предыдущую версию пакета; декларация уйдёт вместе с bundle.
|
|
122
|
+
- Вернуть дефолт: `selectedDefault: cordis` в `~/.dsh/profiles/desktop/cordis.patch.yml` (бэкап рядом) и перезапуск DSH.
|
|
123
|
+
- Артефакт и контрольная сумма: `release/dsh-desktop-kit-2.24.0.tgz`, `release/checksums.txt`.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-desktop-kit",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "DeepSeek Harness desktop kit 2.
|
|
3
|
+
"version": "2.24.0",
|
|
4
|
+
"description": "DeepSeek Harness desktop kit 2.24.0 — 18 plugins, 31 skills and the «Веб-разработчик» agent preset: research-first web delivery with the global web-quality contract (premium UI, 4/4 orientation matrix, WCAG 2.2 AA, Core Web Vitals, SEO), project agents, a read-only/writer swarm with a shared board, MCP tools/resources/prompts with OAuth 2.1, sampling and elicitation, token lab, project memory, guardrails, repo map, checkpoints, browser QA, GitHub review, Russian UI and profile transfer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
7
7
|
"dsh",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"build:client": "node tools/build-client.mjs",
|
|
84
84
|
"build:skills": "node tools/build-skill-manifest.mjs",
|
|
85
85
|
"check:client": "node tools/check-client.mjs client.js",
|
|
86
|
-
"test": "node tools/integrations-tests.mjs && node tools/smoke-tests.mjs && node tools/memory-tests.mjs && node tools/skills-sync-tests.mjs && node tools/kit-upgrade-tests.mjs && node plugins/dsh-profile-transfer/test/transfer.test.mjs && node --test plugins/dsh-memory-bridge/test/bridge.test.mjs plugins/dsh-memory-bridge/test/github.test.mjs plugins/dsh-memory-bridge/test/merge.test.mjs plugins/dsh-memory-bridge/test/user-specific.test.mjs && node tools/repo-map-tests.mjs && node tools/checkpoints-tests.mjs && node tools/plan-mode-tests.mjs && node tools/browser-qa-tests.mjs && node tools/ui-gate-tests.mjs && node tools/agent-extensions-tests.mjs && node tools/research-ledger-tests.mjs && node tools/research-eval.mjs && node tools/citation-eval.mjs && node tools/mcp-manager-tests.mjs && node tools/github-review-tests.mjs && node tools/mcp-catalog-tests.mjs && node tools/mcp-bootstrap-tests.mjs && node tools/instructions-tests.mjs && node tools/mcp-elicitation-tests.mjs && node tools/mcp-sampling-tests.mjs && node tools/mcp-oauth-tests.mjs && node tools/worktrees-tests.mjs && node tools/transcripts-tests.mjs && node tools/team-messages-tests.mjs && node tools/swarm-tests.mjs && node tools/team-presets-tests.mjs && node tools/team-board-tests.mjs && node tools/team-agents-tests.mjs && node tools/background-agents-tests.mjs && node tools/permissions-ui-tests.mjs && node plugins/dsh-guardrails/tools/guardrails-tests.mjs",
|
|
86
|
+
"test": "node tools/integrations-tests.mjs && node tools/smoke-tests.mjs && node tools/memory-tests.mjs && node tools/skills-sync-tests.mjs && node tools/kit-upgrade-tests.mjs && node plugins/dsh-profile-transfer/test/transfer.test.mjs && node --test plugins/dsh-memory-bridge/test/bridge.test.mjs plugins/dsh-memory-bridge/test/github.test.mjs plugins/dsh-memory-bridge/test/merge.test.mjs plugins/dsh-memory-bridge/test/user-specific.test.mjs && node tools/repo-map-tests.mjs && node tools/checkpoints-tests.mjs && node tools/plan-mode-tests.mjs && node tools/preset-tests.mjs && node tools/browser-qa-tests.mjs && node tools/ui-gate-tests.mjs && node tools/agent-extensions-tests.mjs && node tools/research-ledger-tests.mjs && node tools/research-eval.mjs && node tools/citation-eval.mjs && node tools/mcp-manager-tests.mjs && node tools/github-review-tests.mjs && node tools/mcp-catalog-tests.mjs && node tools/mcp-bootstrap-tests.mjs && node tools/instructions-tests.mjs && node tools/mcp-elicitation-tests.mjs && node tools/mcp-sampling-tests.mjs && node tools/mcp-oauth-tests.mjs && node tools/worktrees-tests.mjs && node tools/transcripts-tests.mjs && node tools/team-messages-tests.mjs && node tools/rc3-compat-tests.mjs && node tools/swarm-tests.mjs && node tools/team-presets-tests.mjs && node tools/team-board-tests.mjs && node tools/team-agents-tests.mjs && node tools/background-agents-tests.mjs && node tools/permissions-ui-tests.mjs && node plugins/dsh-guardrails/tools/guardrails-tests.mjs",
|
|
87
87
|
"skills:cost": "node tools/skill-cost.mjs",
|
|
88
88
|
"skills:check": "node tools/skill-cost.mjs --check",
|
|
89
89
|
"release": "node tools/release.mjs",
|
|
@@ -42,9 +42,15 @@ export async function runProjectAgent(ctx, exec, definition, task, options = {})
|
|
|
42
42
|
if (!subagents || typeof subagents.startActivation !== "function") {
|
|
43
43
|
throw new Error("subagents service is unavailable");
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const listed = typeof subagents.list === "function" ? subagents.list() : [];
|
|
46
|
+
/* DSH 0.2.2-rc.3 removed provider enumeration from ctx.subagents; probe known
|
|
47
|
+
* provider names instead of failing every run. */
|
|
48
|
+
const probed = listed.length > 0 || typeof subagents.getProvider !== "function"
|
|
49
|
+
? []
|
|
50
|
+
: ["spawn", "fork", "subagent-spawn-in-process"].filter((name) => subagents.getProvider(name));
|
|
51
|
+
const providers = listed.length > 0 ? listed : probed;
|
|
46
52
|
const provider = providers.includes("spawn") ? "spawn" : providers[0];
|
|
47
|
-
if (!provider) throw new Error("no subagent provider is registered");
|
|
53
|
+
if (!provider) throw new Error("no subagent provider is registered (spawn/fork not found; DSH 0.2.2-rc.3 hides providers from ctx.subagents.list())");
|
|
48
54
|
const project = projectFor(exec?.agent?.session?.header?.cwd);
|
|
49
55
|
const cwd = options.cwd ?? exec?.agent?.session?.header?.cwd;
|
|
50
56
|
const isBackground = options.background === true;
|
|
@@ -72,20 +78,28 @@ export async function runProjectAgent(ctx, exec, definition, task, options = {})
|
|
|
72
78
|
"Task:",
|
|
73
79
|
String(task ?? ""),
|
|
74
80
|
].filter((line) => line !== "").join("\n");
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
request
|
|
81
|
+
/* DSH 0.2.2-rc.3 flattened the old nested `request` argument into the
|
|
82
|
+
* activation spec (and removed `subagents.list()`); support both shapes. */
|
|
83
|
+
const activationApi = typeof subagents.list === "function" ? "request" : "flat";
|
|
84
|
+
const start = (selectedRoute) => {
|
|
85
|
+
const request = {
|
|
80
86
|
prompt: [{ type: "text", text: prompt }],
|
|
81
87
|
parent: exec.agent,
|
|
82
88
|
signal: controller.signal,
|
|
83
89
|
cwd,
|
|
84
90
|
...(selectedRoute.model || selectedRoute.reasoningEffort ? { agentOptions: agentOptionsFor(selectedRoute) } : {}),
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
};
|
|
92
|
+
const base = {
|
|
93
|
+
provider,
|
|
94
|
+
label: `agent:${definition.name}`,
|
|
95
|
+
childId: reservedId,
|
|
96
|
+
signal: controller.signal,
|
|
97
|
+
delivery: "caller",
|
|
98
|
+
};
|
|
99
|
+
return activationApi === "request"
|
|
100
|
+
? subagents.startActivation({ ...base, request })
|
|
101
|
+
: subagents.startActivation({ ...base, ...request });
|
|
102
|
+
};
|
|
89
103
|
try {
|
|
90
104
|
activation = await start(route);
|
|
91
105
|
} catch (error) {
|
|
@@ -122,8 +136,19 @@ export async function runProjectAgent(ctx, exec, definition, task, options = {})
|
|
|
122
136
|
};
|
|
123
137
|
upsertRun(project.root, record);
|
|
124
138
|
remember(record, activation, project.root, signal, abort);
|
|
139
|
+
/* DSH disposes the child session at settlement, so hold the live session
|
|
140
|
+
* now: otherwise the transcript save finds nothing and silently skips. */
|
|
141
|
+
let childSession = null;
|
|
142
|
+
try {
|
|
143
|
+
childSession = ctx.get?.("agents")?.get?.(String(activeId))?.session
|
|
144
|
+
?? ctx.get?.("sessions")?.get?.(String(activeId))
|
|
145
|
+
?? null;
|
|
146
|
+
} catch { childSession = null; }
|
|
147
|
+
const saveRunTranscript = () => {
|
|
148
|
+
try { saveTranscript(project.root, record.id, childSession ?? ctx.get("sessions")?.get(activeId)); } catch { /* best effort */ }
|
|
149
|
+
};
|
|
125
150
|
activation.result.then(async (result) => {
|
|
126
|
-
|
|
151
|
+
saveRunTranscript();
|
|
127
152
|
const currentRecord = loadRuns(project.root).find((item) => item.id === record.id);
|
|
128
153
|
if (currentRecord?.status !== "canceled") {
|
|
129
154
|
const text = textFromOutput(result?.output);
|
|
@@ -140,7 +165,7 @@ export async function runProjectAgent(ctx, exec, definition, task, options = {})
|
|
|
140
165
|
background.delete(record.id);
|
|
141
166
|
signal?.removeEventListener?.("abort", abort);
|
|
142
167
|
}).catch((error) => {
|
|
143
|
-
|
|
168
|
+
saveRunTranscript();
|
|
144
169
|
const currentRecord = loadRuns(project.root).find((item) => item.id === record.id);
|
|
145
170
|
if (currentRecord?.status !== "canceled") {
|
|
146
171
|
finishRun(project.root, record.id, {
|
|
@@ -57,6 +57,9 @@ function withLock(root, operation) {
|
|
|
57
57
|
const lock = path.join(dir, "board.lock");
|
|
58
58
|
const started = Date.now();
|
|
59
59
|
const sleeper = new Int32Array(new SharedArrayBuffer(4));
|
|
60
|
+
/* Windows reports a contended lock as EPERM/EACCES/EBUSY, not only EEXIST
|
|
61
|
+
(antivirus, concurrent workers, a handle still open). Retry them all. */
|
|
62
|
+
const RETRY_CODES = new Set(["EEXIST", "EPERM", "EACCES", "EBUSY"]);
|
|
60
63
|
while (true) {
|
|
61
64
|
try {
|
|
62
65
|
const fd = fs.openSync(lock, "wx");
|
|
@@ -68,13 +71,16 @@ function withLock(root, operation) {
|
|
|
68
71
|
try { fs.unlinkSync(lock); } catch { /* best effort */ }
|
|
69
72
|
}
|
|
70
73
|
} catch (error) {
|
|
71
|
-
if (error?.code
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
if (!RETRY_CODES.has(error?.code)) throw error;
|
|
75
|
+
if (error?.code === "EEXIST") {
|
|
76
|
+
try {
|
|
77
|
+
const age = Date.now() - fs.statSync(lock).mtimeMs;
|
|
78
|
+
if (age > 30_000) fs.unlinkSync(lock);
|
|
79
|
+
} catch { /* lock vanished */ }
|
|
80
|
+
}
|
|
76
81
|
if (Date.now() - started > 5_000) throw new Error("board is busy; lock timeout");
|
|
77
|
-
|
|
82
|
+
/* Jitter keeps concurrent workers from retrying in lockstep. */
|
|
83
|
+
Atomics.wait(sleeper, 0, 0, 20 + Math.floor(Math.random() * 30));
|
|
78
84
|
}
|
|
79
85
|
}
|
|
80
86
|
}
|
|
@@ -18,7 +18,9 @@ const EXTERNAL = [
|
|
|
18
18
|
/(?:latest|current|price|pricing|version|release|docs?|documentation|rfc|standard|benchmark|cve)/iu,
|
|
19
19
|
/(?:последн|актуальн|цен|тариф|верси|релиз|документац|стандарт|бенчмарк|уязвим)/iu,
|
|
20
20
|
];
|
|
21
|
-
|
|
21
|
+
/* A bare Russian "и" is far too common to signal several areas: "проверь X и Y"
|
|
22
|
+
* is one question. Only explicit "plus/also" (or the English equivalents) count. */
|
|
23
|
+
const MULTI = [/\b(?:and|plus|also)\b/iu, /(?:^|\s)(?:плюс|также)(?:\s|$)/iu];
|
|
22
24
|
|
|
23
25
|
export function loadSwarmOptions(projectRoot) {
|
|
24
26
|
try {
|
|
@@ -50,7 +50,7 @@ function makeToolDefinition() {
|
|
|
50
50
|
return {
|
|
51
51
|
name: TOOL_NAME,
|
|
52
52
|
description:
|
|
53
|
-
"Headless-Chrome quality checks without Playwright. status: detect Chrome and its version. shot: open an http(s) URL or local HTML file, set the viewport, save a PNG and return its path/size. audit: load the page at responsive
|
|
53
|
+
"Headless-Chrome quality checks without Playwright. status: detect Chrome and its version. shot: open an http(s) URL or local HTML file, set the viewport, save a PNG and return its path/size. audit: load the page at responsive viewports (matrix 'full' = phone 390x844 and 844x390, tablet 768x1024 and 1024x768, desktop 1440x900; default 390/768/1440) and report horizontal overflow (documentElement.scrollWidth vs clientWidth), the overflowing elements, per-viewport device labels, console errors, markup/accessibility issues (missing alt, unlabeled fields, nameless links/buttons, duplicate ids, heading order, lang/title/viewport, positive tabindex), and optionally one PNG per viewport (pass outDir). Uses the Chrome DevTools protocol over a temporary profile; no external network calls beyond the page itself.",
|
|
54
54
|
parameters: {
|
|
55
55
|
type: "object",
|
|
56
56
|
additionalProperties: false,
|
|
@@ -71,6 +71,27 @@ function makeToolDefinition() {
|
|
|
71
71
|
items: { type: "integer" },
|
|
72
72
|
description: "Audit widths in CSS px (default [390, 768, 1440], at most 6 values).",
|
|
73
73
|
},
|
|
74
|
+
matrix: {
|
|
75
|
+
type: "string",
|
|
76
|
+
enum: ["default", "full"],
|
|
77
|
+
description:
|
|
78
|
+
"audit: 'full' covers the responsive matrix — phone 390x844 and 844x390, tablet 768x1024 and 1024x768, desktop 1440x900. Use it for any UI change.",
|
|
79
|
+
},
|
|
80
|
+
viewports: {
|
|
81
|
+
type: "array",
|
|
82
|
+
maxItems: 6,
|
|
83
|
+
description: "audit: explicit {width, height} pairs; overrides widths and matrix (at most 6).",
|
|
84
|
+
items: {
|
|
85
|
+
type: "object",
|
|
86
|
+
additionalProperties: false,
|
|
87
|
+
required: ["width", "height"],
|
|
88
|
+
properties: {
|
|
89
|
+
width: { type: "integer" },
|
|
90
|
+
height: { type: "integer" },
|
|
91
|
+
label: { type: "string" },
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
74
95
|
outDir: {
|
|
75
96
|
type: "string",
|
|
76
97
|
description:
|
|
@@ -126,6 +147,8 @@ function makeToolDefinition() {
|
|
|
126
147
|
return await auditPages({
|
|
127
148
|
target: args.url,
|
|
128
149
|
widths,
|
|
150
|
+
matrix: args?.matrix,
|
|
151
|
+
viewports: args?.viewports,
|
|
129
152
|
height: viewport.height,
|
|
130
153
|
fullPage: args?.fullPage === true,
|
|
131
154
|
outDir: hasOutDir ? args.outDir : null,
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
MARKUP_EXPRESSION,
|
|
18
18
|
OVERFLOW_EXPRESSION,
|
|
19
19
|
PAGE_INFO_EXPRESSION,
|
|
20
|
+
RESPONSIVE_MATRIX,
|
|
20
21
|
SETTLE_EXPRESSION,
|
|
21
22
|
abortError,
|
|
22
23
|
consoleEventFromCdp,
|
|
@@ -28,6 +29,7 @@ import {
|
|
|
28
29
|
normalizeTarget,
|
|
29
30
|
normalizeViewport,
|
|
30
31
|
parseTimeout,
|
|
32
|
+
parseViewports,
|
|
31
33
|
parseWidths,
|
|
32
34
|
pngSize,
|
|
33
35
|
resolveOutDir,
|
|
@@ -36,6 +38,7 @@ import {
|
|
|
36
38
|
shapeMarkupReport,
|
|
37
39
|
shapeOverflowReport,
|
|
38
40
|
summarizeAudit,
|
|
41
|
+
deviceLabel,
|
|
39
42
|
} from "./qa.js";
|
|
40
43
|
|
|
41
44
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -416,20 +419,36 @@ export async function captureShot(options = {}) {
|
|
|
416
419
|
*/
|
|
417
420
|
export async function auditPages(options = {}) {
|
|
418
421
|
const { cwd, target } = normalizeOptions(options);
|
|
419
|
-
const
|
|
420
|
-
const
|
|
422
|
+
const { height: singleHeight } = normalizeViewport(options);
|
|
423
|
+
const explicit = parseViewports(options.viewports);
|
|
424
|
+
const viewports =
|
|
425
|
+
explicit.length > 0
|
|
426
|
+
? explicit
|
|
427
|
+
: String(options.matrix ?? "").trim().toLowerCase() === "full"
|
|
428
|
+
? RESPONSIVE_MATRIX.map((viewport) => ({
|
|
429
|
+
width: viewport.width,
|
|
430
|
+
height: viewport.height,
|
|
431
|
+
label: deviceLabel(viewport.width, viewport.height),
|
|
432
|
+
}))
|
|
433
|
+
: parseWidths(options.widths).map((width) => ({
|
|
434
|
+
width,
|
|
435
|
+
height: singleHeight,
|
|
436
|
+
label: deviceLabel(width, singleHeight),
|
|
437
|
+
}));
|
|
438
|
+
const widths = viewports.map((viewport) => viewport.width);
|
|
421
439
|
const timeoutMs = parseTimeout(options.timeoutMs);
|
|
422
440
|
const screenshots = options.screenshots === true || (typeof options.outDir === "string" && options.outDir.trim().length > 0);
|
|
423
441
|
const outDir = screenshots ? resolveOutDir(options.outDir, cwd) : null;
|
|
424
442
|
if (outDir !== null) await fsp.mkdir(outDir, { recursive: true });
|
|
425
|
-
const budgetMs = Math.min(AUDIT_BUDGET_MS, timeoutMs *
|
|
443
|
+
const budgetMs = Math.min(AUDIT_BUDGET_MS, timeoutMs * viewports.length + 25_000);
|
|
426
444
|
return withSession(options, async ({ session, page }) => {
|
|
427
445
|
const deadline = Date.now() + budgetMs;
|
|
428
446
|
const reports = [];
|
|
429
|
-
for (const
|
|
447
|
+
for (const viewport of viewports) {
|
|
448
|
+
const { width, height, label } = viewport;
|
|
430
449
|
if (options.signal?.aborted) throw abortError();
|
|
431
450
|
if (Date.now() >= deadline) {
|
|
432
|
-
reports.push({ width, height, skipped: true, reason: "time budget exhausted" });
|
|
451
|
+
reports.push({ width, height, deviceLabel: label, skipped: true, reason: "time budget exhausted" });
|
|
433
452
|
continue;
|
|
434
453
|
}
|
|
435
454
|
page.console.reset();
|
|
@@ -463,6 +482,7 @@ export async function auditPages(options = {}) {
|
|
|
463
482
|
reports.push({
|
|
464
483
|
width,
|
|
465
484
|
height,
|
|
485
|
+
deviceLabel: label,
|
|
466
486
|
viewport: overflow.viewport,
|
|
467
487
|
horizontalOverflow: overflow.horizontalOverflow,
|
|
468
488
|
overflowingElements: overflow.overflowingElements,
|
|
@@ -478,7 +498,7 @@ export async function auditPages(options = {}) {
|
|
|
478
498
|
});
|
|
479
499
|
} catch (error) {
|
|
480
500
|
if (isAbortError(error) || options.signal?.aborted) throw abortError();
|
|
481
|
-
reports.push({ width, height, error: errorMessage(error) });
|
|
501
|
+
reports.push({ width, height, deviceLabel: label, error: errorMessage(error) });
|
|
482
502
|
}
|
|
483
503
|
}
|
|
484
504
|
const result = {
|
|
@@ -493,7 +513,8 @@ export async function auditPages(options = {}) {
|
|
|
493
513
|
chrome: session.chromeInfo(),
|
|
494
514
|
outDir,
|
|
495
515
|
widths,
|
|
496
|
-
|
|
516
|
+
viewports,
|
|
517
|
+
height: viewports[0]?.height ?? singleHeight,
|
|
497
518
|
reports,
|
|
498
519
|
summary: summarizeAudit(reports),
|
|
499
520
|
};
|