dsh-desktop-kit 2.31.0 → 2.34.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 +38 -0
- package/README.en.md +33 -6
- package/README.md +47 -9
- package/client.js +1 -1
- package/docs/MEASURED.md +7 -7
- package/docs/TEST-2.32.0.md +32 -0
- package/docs/TEST-2.33.0.md +33 -0
- package/docs/TEST-2.34.0.md +36 -0
- package/docs/measured.json +9 -9
- package/package.json +5 -3
- package/plugins/dsh-agent-extensions/index.js +1 -1
- package/plugins/dsh-agent-extensions/lib/agents.js +32 -1
- package/plugins/dsh-agent-extensions/lib/checkpoints.js +155 -5
- package/plugins/dsh-agent-extensions/lib/commands.js +40 -3
- package/plugins/dsh-agent-extensions/lib/instructions.js +111 -1
- package/plugins/dsh-agent-extensions/lib/locks.js +174 -0
- package/plugins/dsh-agent-extensions/lib/policy.js +5 -0
- package/plugins/dsh-agent-extensions/lib/project.js +7 -1
- package/plugins/dsh-agent-extensions/lib/scaffold.js +14 -14
- package/plugins/dsh-browser-qa/lib/ui-gate.js +41 -1
- package/plugins/dsh-guardrails/index.js +33 -4
- package/plugins/dsh-guardrails/lib/hooks.js +22 -5
- package/plugins/dsh-guardrails/lib/runtime.js +153 -0
- package/plugins/dsh-project-memory/index.js +28 -3
- package/plugins/dsh-quality-pipeline/index.js +14 -3
- package/plugins/dsh-quality-pipeline/lib/text.js +1 -1
- package/skills/manifest.json +6 -6
- package/skills-baseline.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
## 2.34.0 (2026-12-02)
|
|
2
|
+
|
|
3
|
+
**Надёжность: locks без гонки, test runner, release polling, atomic checkpoints, UI coverage.**
|
|
4
|
+
|
|
5
|
+
- **Locks:** атомарный захват `wx`, heartbeat 30 с, проверка PID, stale-lock takeover; release останавливает heartbeat. Тест: чужой owner, истёкший lock, повторный захват.
|
|
6
|
+
- **Test runner:** `npm test` → `node tools/run-tests.mjs`; шаги из `test:steps` запускаются напрямую через Node, без PowerShell-обёртки; точный failing step и exit code.
|
|
7
|
+
- **Release:** `tools/release.mjs --publish` ждёт появления версии в registry до 10 минут (`--wait-seconds`), различает published/still processing/staged; `verify-release` больше не запускается в окно асинхронной публикации.
|
|
8
|
+
- **Checkpoints:** snapshot в `<id>.tmp-*` → `rename`; скан файлов до 512 КБ через guardrails secret scanner, секретные файлы пропускаются; retention 20.
|
|
9
|
+
- **UI coverage:** `.dsh/quality/ui.json` со списком критических сценариев; strict-гейт требует отдельный passing `interact` на каждый сценарий, а не один любой.
|
|
10
|
+
- **Runtime:** снапшот ask/deny сохраняется в `~/.dsh/agent-extensions/runtime.json` (bounded, без текста команд); `loaded/persisted` в ответе.
|
|
11
|
+
- **Роли:** `max_turns`/`skills` уходят в prompt роли как advisory-бюджет; `isolation: worktree` автоматически создаёт worktree для одиночного запуска; контрактный тест парсинга/промпта.
|
|
12
|
+
- **Instruction validator:** сверка навыков с `skills/manifest.json` + пользовательские навыки из `DSH_HOME`; тест stale/valid.
|
|
13
|
+
- **Release consistency:** `skills/manifest.json` версия теперь проверяется вместе с package/README/CHANGELOG/measured.
|
|
14
|
+
- **Проверки:** полный набор 43 шага; guardrails 44 теста; UI gate, agent extensions, instructions, memory, quality, smoke.
|
|
15
|
+
|
|
16
|
+
## 2.33.0 (2026-12-02)
|
|
17
|
+
|
|
18
|
+
**Approval runtime, валидатор инструкций, health проекта и writer locks.**
|
|
19
|
+
|
|
20
|
+
- **`guardrails action=runtime`.** Consequence-классификатор (`read/write/external/destructive/credential`) и in-memory snapshot последних ask/deny: уровень риска, irreversible/external, режим, правило и fingerprint. Текст команды не хранится; DSH остаётся владельцем approval-карточки. Новые тесты: классификация, запись ask/deny, отсутствие команды в snapshot, runtime action.
|
|
21
|
+
- **Валидатор инструкций.** `validateProjectInstructions` находит битые `@import`, устаревшие навыки, дубли `AGENTS.md`/`CLAUDE.md` в корне и превышение размера; `<instructions-warning>` добавляется в проектный prompt; команда `/instructions` показывает отчёт. Тест на stale-skill/import-missing/valid-skill.
|
|
22
|
+
- **`project_memory action=health`.** Проверяет корень, git, `.dsh`, `.dsh/PROJECT.md`, AGENTS/CLAUDE, предупреждения автоскана и возраст скана. Результат — findings с уровнями; тест в memory suite.
|
|
23
|
+
- **Writer locks.** `lib/locks.js`: lock в `~/.dsh/agent-extensions/locks` с TTL 15 минут, owner/pid/heartbeat; второй writer получает отказ, чужой owner не снимает. `runProjectAgent` берёт lock для не-read-only роли и отпускает на success/failure/foreground-finally. Тесты конфликта/освобождения/списка.
|
|
24
|
+
- **Project OS dashboard.** `/doctor` и `/project health` показывают агентов, инструкции и их предупреждения, locks, quality-миссию, hooks и checkpoints; `/project health` — алиас.
|
|
25
|
+
- **Проверки:** `guardrails` 43 теста, `agent-extensions`, `instructions`, `memory`, `quality-pipeline`, `smoke` 3/3; полный набор — 43 шага, failed=0.
|
|
26
|
+
- **Не входит:** карты/OCR-toolchain; npm publish и GitHub release — отдельным шагом в конце.
|
|
27
|
+
|
|
28
|
+
## 2.32.0 (2026-12-02)
|
|
29
|
+
|
|
30
|
+
**Роли перестают падать на allowlist, UI-гейт проверяет поведение, checkpoint работает без git.**
|
|
31
|
+
|
|
32
|
+
- **Все 14 ролей получают `skill`.** Добавлены `read_image`, `web_fetch`, `list_agents` там, где они нужны; `disallowed_tools` проверяется в `checkChildTool` и запрещает инструмент даже при разрешающем allowlist. Это закрывает 107 ошибок `tool … не входит в allowlist` из аудита чатов.
|
|
33
|
+
- **UI-гейт v2.** В strict-профиле (`standard`/`turnkey`) недостаточно чистого `audit matrix=full`: обязательны `a11y` с `serious 0` и проходящий `interact`. Если сценария нет — гейт просит его; если сценарий упал — держит ход. Это закрывает дыру «зелёный audit, мёртвое меню».
|
|
34
|
+
- **Checkpoint без git.** `createCheckpoint` определяет git-репозиторий; для папки без git пишет файловый snapshot в `~/.dsh/agent-extensions/file-checkpoints`, `restoreCheckpoint` возвращает файлы и **не удаляет** созданные позже. Git-режим по-прежнему не двигает HEAD и пользовательский индекс.
|
|
35
|
+
- **`/quality start`.** Миссия качества создаётся вручную (`/quality start [задача]`), без миссии команда объясняет следующий шаг. Auto-start для веб-проектов сохранён.
|
|
36
|
+
- **Intake-first-pass.** Добавлена спецификация незнакомых задач (PDF/DOCX/фото/карты, «перечерти по образцу»): триаж, один раунд вопросов, brief freeze, source↔output verify, toolchain с установкой по необходимости. В релиз **не** входят OCR/PDF-библиотеки и картографический конвейер — это отдельная задача.
|
|
37
|
+
- **Тесты:** контракт 14 ролей (`skill` у всех, `read_image` у визуальных, `list_agents` у координатора), `disallowed_tools`, обязательный `interact` в UI-гейте, файловый checkpoint, восстановление без удаления новых файлов. Все шаги test-цепочки — OK; `npm run check:release` — OK.
|
|
38
|
+
|
|
1
39
|
## 2.31.0 (2026-12-01)
|
|
2
40
|
|
|
3
41
|
**Диагностика до изменений, измерения в доках.**
|
package/README.en.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# DSH Desktop Kit 2.
|
|
1
|
+
# DSH Desktop Kit 2.34.0
|
|
2
2
|
|
|
3
3
|
[Русский](README.md) · **English**
|
|
4
4
|
|
|
@@ -6,10 +6,37 @@
|
|
|
6
6
|
|
|
7
7
|
21 plugins and 35 skills in one npm package: a quality mission with phases and G0..G13 gates, browser QA with interactions/accessibility/performance, 14 project roles (ui-critic, a11y, cms-ops, release-ops, builder in a worktree), phase-aware skill routing with a token budget, a read-only swarm with a shared board, a research ledger with source checks, MCP with OAuth 2.1 / sampling / elicitation, a local marketplace, an IDE bridge, guardrails, project memory, checkpoints, `/kit doctor|plan|tune`, and a Russian-first UI.
|
|
8
8
|
|
|
9
|
-

|
|
10
10
|
|
|
11
11
|
> The Russian [README.md](README.md) is the canonical document. This page is a compact English map for npm and GitHub readers.
|
|
12
12
|
|
|
13
|
+
## What's new in 2.34.0
|
|
14
|
+
|
|
15
|
+
- **Race-free writer locks:** O_EXCL acquire, 30s heartbeat, PID liveness and stale-lock takeover; two `project_agent` writers can no longer start in one root.
|
|
16
|
+
- **Reliable test runner:** `npm test` runs `node tools/run-tests.mjs`, so no PowerShell/`&&` wrapper hides the failing step.
|
|
17
|
+
- **Release waits for the registry:** `release.mjs --publish` polls the packument for up to 10 minutes and distinguishes visible / still-processing / staged instead of treating npm exit 0 as live.
|
|
18
|
+
- **Atomic checkpoints with secret scan:** snapshot goes to a temporary directory and is renamed; files with detected secrets are skipped; the last 20 snapshots are kept.
|
|
19
|
+
- **Critical-scenario coverage:** with `.dsh/quality/ui.json`, one passing `interact` is not enough; each listed scenario needs its own run.
|
|
20
|
+
- **Runtime survives restart:** `guardrails action=runtime` persists a bounded snapshot in `~/.dsh/agent-extensions/runtime.json`; command text is still not stored.
|
|
21
|
+
- **Role budget/isolation:** `max_turns` and `skills` are injected into the role prompt; `isolation: worktree` creates a worktree for a single run.
|
|
22
|
+
- **Manifest version gate:** release consistency now checks `skills/manifest.json` against `package.json`.
|
|
23
|
+
|
|
24
|
+
## What's new in 2.33.0
|
|
25
|
+
|
|
26
|
+
- **`guardrails action=runtime`** classifies a call (`read/write/external/destructive/credential`) and records ask/deny decisions (level, mode, rule, fingerprint); command text is never stored.
|
|
27
|
+
- **Instruction validator** checks `AGENTS.md`/`CLAUDE.md` for broken `@import`, stale skills, duplicate root files and size; warnings appear in `<instructions-warning>`, and `/instructions` prints the report.
|
|
28
|
+
- **`project_memory action=health`** reports git, `.dsh`, `PROJECT.md`, AGENTS/CLAUDE, scan warnings and scan age.
|
|
29
|
+
- **Writer locks** stop two `project_agent` writers from starting in the same root: lock under `~/.dsh/agent-extensions/locks`, 15-minute TTL, another owner cannot release it.
|
|
30
|
+
- **Project OS dashboard**: `/doctor` and `/project health` show agents, instructions, locks, quality mission, hooks and checkpoints.
|
|
31
|
+
|
|
32
|
+
## What's new in 2.32.0
|
|
33
|
+
|
|
34
|
+
- **All 14 roles can load skills.** Added `skill`, `read_image`, `web_fetch` and `list_agents` where they belong; `disallowed_tools` is enforced by the child policy.
|
|
35
|
+
- **The UI gate now requires behaviour, not just geometry.** Strict mode needs `audit matrix=full` + `a11y serious 0` + a passing `interact` scenario; a clean audit alone no longer closes the turn.
|
|
36
|
+
- **Checkpoints work without git.** A non-git folder gets a file snapshot; restore never deletes files created later. Git checkpoints still leave HEAD and the user index untouched.
|
|
37
|
+
- **`/quality start`** creates a quality mission on demand instead of only auto-starting on a web turn.
|
|
38
|
+
- **Intake-first-pass** for unfamiliar tasks (PDF/DOCX/photo/maps): triage, one question round, brief freeze, source↔output verification. Spec: [docs/analysis/INTAKE-PROTOCOL.md](docs/analysis/INTAKE-PROTOCOL.md).
|
|
39
|
+
|
|
13
40
|
## What it is
|
|
14
41
|
|
|
15
42
|
The kit is a bundle for [DeepSeek Harness](https://deepseek.com) (DSH) that installs as one package and mounts 21 child plugins. It adds workflow, not a model: gates, roles, evidence, diagnostics and safe defaults.
|
|
@@ -23,7 +50,7 @@ The kit is a bundle for [DeepSeek Harness](https://deepseek.com) (DSH) that inst
|
|
|
23
50
|
| Research | `research_ledger`, research-first policy, citation and source-date checks |
|
|
24
51
|
| Safety | Guardrails for dangerous commands, `.env`, `.ssh`, keys; sandbox audit; MCP trust default `off` |
|
|
25
52
|
| Memory | Project dossiers in `~/.dsh/projects-memory`, GitHub memory bridge, USB export/import |
|
|
26
|
-
| Diagnostics | `/kit doctor`, `/kit plan`, `/kit tune` (
|
|
53
|
+
| Diagnostics | `/kit doctor`, `/kit plan`, `/kit tune` (since 2.31.0) |
|
|
27
54
|
| Release | `remote_ops` (typed ssh/scp with host state diff), release pipeline, i18n dictionary pipeline |
|
|
28
55
|
|
|
29
56
|
## Requirements
|
|
@@ -36,7 +63,7 @@ The kit is a bundle for [DeepSeek Harness](https://deepseek.com) (DSH) that inst
|
|
|
36
63
|
From npm:
|
|
37
64
|
|
|
38
65
|
```powershell
|
|
39
|
-
dsh plugin --profile desktop add dsh-desktop-kit@2.
|
|
66
|
+
dsh plugin --profile desktop add dsh-desktop-kit@2.34.0
|
|
40
67
|
```
|
|
41
68
|
|
|
42
69
|
From a local clone, with the interactive installer (Windows):
|
|
@@ -70,7 +97,7 @@ npm run skills:check # every skill core stays under the 6 000-token
|
|
|
70
97
|
npm run measure # refresh docs/measured.json + docs/MEASURED.md
|
|
71
98
|
npm run measure -- --check # the stored measurements match package.json
|
|
72
99
|
npm run check:release # versions agree across READMEs, measured.json and CHANGELOG
|
|
73
|
-
npm run verify:release -- 2.
|
|
100
|
+
npm run verify:release -- 2.34.0 # verify the published npm artifact (after publishing)
|
|
74
101
|
```
|
|
75
102
|
|
|
76
103
|
## Measured, not claimed
|
|
@@ -99,4 +126,4 @@ Every number in [docs/MEASURED.md](docs/MEASURED.md) is reproducible: the comman
|
|
|
99
126
|
|
|
100
127
|
MIT. Built for DeepSeek Harness; no external runtime dependencies and no telemetry.
|
|
101
128
|
|
|
102
|
-
**2.
|
|
129
|
+
**2.34.0** · 21 plugins · 35 skills · 14 roles · 7 presets · 14 gates · Windows 11 · DSH 0.2.x
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# DSH Desktop Kit 2.
|
|
1
|
+
# DSH Desktop Kit 2.34.0
|
|
2
2
|
|
|
3
3
|
**Русский** · [English](README.en.md)
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
`21 плагин` · `35 навыков` · `14 ролей` · `7 пресетов` · `14 гейтов` · `0 внешних runtime-зависимостей`
|
|
8
8
|
|
|
9
|
-

|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
## Быстрый старт
|
|
26
26
|
|
|
27
27
|
```powershell
|
|
28
|
-
# в DSH: Плагины → Add plugin → dsh-desktop-kit@2.
|
|
28
|
+
# в DSH: Плагины → Add plugin → dsh-desktop-kit@2.34.0
|
|
29
29
|
# или из терминала:
|
|
30
|
-
dsh plugin --profile desktop add dsh-desktop-kit@2.
|
|
30
|
+
dsh plugin --profile desktop add dsh-desktop-kit@2.34.0
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
После установки перезапустите окно DSH (`Ctrl+R`). Проверка:
|
|
@@ -44,6 +44,41 @@ node tools/e2e-http.mjs # живой web + API
|
|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
47
|
+
## Что нового в 2.34.0
|
|
48
|
+
|
|
49
|
+
| Что | Зачем |
|
|
50
|
+
|---|---|
|
|
51
|
+
| **Lock без гонки** | Атомарный `wx`-захват, heartbeat 30 с, проверка PID и stale-lock. Два writer-агента больше не могут одновременно стартовать в одном корне. |
|
|
52
|
+
| **Надёжный test runner** | `npm test` → `node tools/run-tests.mjs`: шаги запускаются без PowerShell/`&&`-обёртки, виден точный упавший шаг. |
|
|
53
|
+
| **Release ждёт registry** | `release.mjs --publish` опрашивает packument до 10 минут и различает «опубликовано / ещё обрабатывается / staged». Ноль от npm больше не выдаётся за live. |
|
|
54
|
+
| **Checkpoint: atomic + secret scan** | Snapshot пишется во временную папку и переименовывается атомарно; файлы с секретами пропускаются; хранятся последние 20 snapshot. |
|
|
55
|
+
| **Coverage критических сценариев** | Если есть `.dsh/quality/ui.json`, одного passing `interact` уже недостаточно: нужен отдельный прогон на каждый сценарий. |
|
|
56
|
+
| **Runtime переживает рестарт** | `guardrails action=runtime` сохраняет bounded-снапшот в `~/.dsh/agent-extensions/runtime.json`; текст команд по-прежнему не хранится. |
|
|
57
|
+
| **Роли: budget и isolation** | `max_turns` и `skills` попадают в prompt роли; `isolation: worktree` автоматически создаёт worktree для одиночного запуска. |
|
|
58
|
+
| **Manifest-версия в гейте** | `check-release-consistency` теперь сверяет `skills/manifest.json` с `package.json`, чтобы каталог навыков не отставал от релиза. |
|
|
59
|
+
|
|
60
|
+
## Что нового в 2.33.0
|
|
61
|
+
|
|
62
|
+
| Что | Зачем |
|
|
63
|
+
|---|---|
|
|
64
|
+
| **`guardrails action=runtime`** | Consequence-классификатор (`read/write/external/destructive/credential`) и snapshot последних ask/deny: видно, что именно DSH попросил подтвердить, без хранения текста команды. |
|
|
65
|
+
| **Валидатор инструкций** | AGENTS.md/CLAUDE.md проверяются на битые `@import`, устаревшие навыки, дубли корня и размер; предупреждение попадает в `<instructions-warning>`, команда `/instructions` показывает отчёт. |
|
|
66
|
+
| **`project_memory action=health`** | Сканер проекта: git, `.dsh`, `PROJECT.md`, AGENTS/CLAUDE, предупреждения автоскана, свежесть. |
|
|
67
|
+
| **Writer locks** | Два `project_agent`-писателя не стартуют в одном корне одновременно: lock в `~/.dsh/agent-extensions/locks`, TTL 15 минут, чужой owner не снимает. |
|
|
68
|
+
| **Project OS dashboard** | `/doctor` и `/project health` показывают агентов, инструкции, locks, quality-миссию, hooks и checkpoints в одном месте. |
|
|
69
|
+
| **Тесты** | 43 guardrails-теста, контракт ролей, locks, instructions validator, project health, UI-гейт и checkpoint — в полном наборе. |
|
|
70
|
+
|
|
71
|
+
## Что нового в 2.32.0
|
|
72
|
+
|
|
73
|
+
| Что | Зачем |
|
|
74
|
+
|---|---|
|
|
75
|
+
| **Все 14 ролей умеют `skill`** | Роль больше не падает на первом шаге из-за allowlist: добавлены `skill`, `read_image`, `web_fetch`, `list_agents`; у ролей появился `disallowed_tools`. |
|
|
76
|
+
| **UI-гейт требует поведение** | В strict-профиле недостаточно чистого audit: нужен `audit matrix=full` + `a11y` serious 0 + **проходящий `interact`**. Зелёная геометрия с мёртвым меню больше не закрывает ход. |
|
|
77
|
+
| **Checkpoint без git** | Проект без репозитория получает файловый snapshot; restore не удаляет файлы, созданные позже. Git-режим по-прежнему не двигает HEAD и индекс. |
|
|
78
|
+
| **`/quality start`** | Миссию качества можно создать вручную до первого веб-хода; без миссии команда объясняет следующий шаг, а не молчит. |
|
|
79
|
+
| **Intake-first-pass** | Протокол незнакомых задач (PDF/DOCX/фото/карты, «перечерти по образцу»): триаж, один раунд вопросов, бриф, source↔output verify. Спецификация — [docs/analysis/INTAKE-PROTOCOL.md](docs/analysis/INTAKE-PROTOCOL.md). |
|
|
80
|
+
| **Тесты** | Контракт ролей, обязательный `interact`, не-git checkpoint и `/quality start` покрыты тестами; полный набор — `npm test`. |
|
|
81
|
+
|
|
47
82
|
## Что нового в 2.31.0
|
|
48
83
|
|
|
49
84
|
| Что | Зачем |
|
|
@@ -70,7 +105,7 @@ node tools/e2e-http.mjs # живой web + API
|
|
|
70
105
|
|
|
71
106
|
## Что внутри
|
|
72
107
|
|
|
73
|
-

|
|
74
109
|
|
|
75
110
|
*Один пакет закрывает полный контур: качество, агенты, навыки, ops, знания, безопасность и платформу.*
|
|
76
111
|
|
|
@@ -88,7 +123,7 @@ node tools/e2e-http.mjs # живой web + API
|
|
|
88
123
|
|
|
89
124
|
## Миссия качества
|
|
90
125
|
|
|
91
|
-

|
|
92
127
|
|
|
93
128
|
`quality_gate` превращает «сделай премиально» в исполняемое состояние:
|
|
94
129
|
|
|
@@ -240,7 +275,7 @@ i18n_sync action=check lang=ar
|
|
|
240
275
|
|
|
241
276
|
MCP: GitHub (official remote), Filesystem и свои серверы; OAuth 2.1 + PKCE; sampling через approval-карточку DSH; elicitation через Accept/Decline; tools/resources/prompts, health и статусы. Секреты — в `~/.dsh/mcp.secrets.json`, trust — только вручную.
|
|
242
277
|
|
|
243
|
-

|
|
244
279
|
|
|
245
280
|
*Настройки → MCP: серверы, health, tools и ручной trust.*
|
|
246
281
|
|
|
@@ -263,7 +298,7 @@ MCP: GitHub (official remote), Filesystem и свои серверы; OAuth 2.1
|
|
|
263
298
|
- **Sandbox** — Job Objects; файловая/сетевая изоляция не заявляется.
|
|
264
299
|
- **Данные** — `.dsh/` в проекте; транскрипты `0600`; PII и секреты не попадают в board.
|
|
265
300
|
|
|
266
|
-

|
|
267
302
|
|
|
268
303
|
*Настройки → Права: эффективные правила, защищённые пути и статус hooks.*
|
|
269
304
|
|
|
@@ -339,6 +374,9 @@ node tools/e2e-http.mjs
|
|
|
339
374
|
## Документация
|
|
340
375
|
|
|
341
376
|
- [CHANGELOG.md](CHANGELOG.md)
|
|
377
|
+
- [docs/TEST-2.34.0.md](docs/TEST-2.34.0.md)
|
|
378
|
+
- [docs/TEST-2.33.0.md](docs/TEST-2.33.0.md)
|
|
379
|
+
- [docs/TEST-2.32.0.md](docs/TEST-2.32.0.md)
|
|
342
380
|
- [docs/TEST-2.31.0.md](docs/TEST-2.31.0.md)
|
|
343
381
|
- [docs/TEST-2.30.0.md](docs/TEST-2.30.0.md)
|
|
344
382
|
- [docs/MEASURED.md](docs/MEASURED.md)
|
|
@@ -359,4 +397,4 @@ node tools/e2e-http.mjs
|
|
|
359
397
|
|
|
360
398
|
MIT. Сделано для DeepSeek Harness; без внешних зависимостей и телеметрии.
|
|
361
399
|
|
|
362
|
-
**2.
|
|
400
|
+
**2.34.0** · 21 плагин · 35 навыков · 14 ролей · 7 пресетов · 14 гейтов · Windows 11 · DSH 0.2.x
|
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.
|
|
8377
|
+
window.__DSH_DESKTOP_KIT__ = { version: "2.34.0", parts: __partNames, errors: __kitErrors, ready: false };
|
|
8378
8378
|
} catch {}
|
|
8379
8379
|
const __inject = [];
|
|
8380
8380
|
for (const __part of __parts) {
|
package/docs/MEASURED.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Отрицательный результат тоже результат: если метрика ухудшилась, она остаётся в таблице — с новой датой и честным объяснением, а не удаляется.
|
|
8
8
|
|
|
9
9
|
<!-- MEASURED:START -->
|
|
10
|
-
Версия **2.
|
|
10
|
+
Версия **2.34.0** · замер 2026-12-02T11:57:06.966Z · Windows_NT 10.0.26200 · AMD Ryzen 7 4800H with Radeon Graphics · 16 потоков · 7.4 ГБ RAM · Node v24.20.0.
|
|
11
11
|
|
|
12
12
|
| Метрика | Значение | Как измерено |
|
|
13
13
|
|---|---:|---|
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
| Каталог навыков, токенов | 53460 | node tools/skill-cost.mjs |
|
|
17
17
|
| references, токенов | 224412 | node tools/skill-cost.mjs |
|
|
18
18
|
| Самое тяжёлое ядро | 2417 (web-build) | бюджет 6000 токенов |
|
|
19
|
-
| Документов в docs/ |
|
|
20
|
-
| README.md, байт |
|
|
21
|
-
| README.en.md, байт |
|
|
22
|
-
| Tarball, байт |
|
|
23
|
-
| Файлов в tarball |
|
|
24
|
-
| Распакованный размер, байт |
|
|
19
|
+
| Документов в docs/ | 85 | tools/measure.mjs → docs/**/*.md |
|
|
20
|
+
| README.md, байт | 31799 | stat README.md |
|
|
21
|
+
| README.en.md, байт | 8885 | stat README.en.md |
|
|
22
|
+
| Tarball, байт | 12366640 | npm pack --dry-run --json |
|
|
23
|
+
| Файлов в tarball | 545 | npm pack --dry-run --json |
|
|
24
|
+
| Распакованный размер, байт | 16455127 | npm pack --dry-run --json |
|
|
25
25
|
<!-- MEASURED:END -->
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# TEST 2.32.0 — роли, UI-гейт, checkpoint без git
|
|
2
|
+
|
|
3
|
+
Дата: 2026-12-02 · Платформа: Windows 11 · Node v24.20.0 · DSH 0.2.x.
|
|
4
|
+
|
|
5
|
+
## Что проверялось
|
|
6
|
+
|
|
7
|
+
- **Роли:** все 14 шаблонов провижены; у каждой роли в `tools` есть `skill`; `ui-critic`/`a11y`/`reviewer`/`builder`/`release-ops` получают `read_image`; `coordinator` — `list_agents`; `disallowed_tools` запрещает инструмент даже при разрешающем allowlist.
|
|
8
|
+
- **UI-гейт:** strict-профиль требует `audit matrix=full` + `a11y serious 0` + проходящий `interact`; отсутствие `interact` держит ход, падение сценария — тоже.
|
|
9
|
+
- **Checkpoints:** git-режим не двигает HEAD и индекс; не-git папка получает файловый snapshot; restore возвращает содержимое и не удаляет файлы, созданные позже; `.env`, `.ssh`, ключи и credentials в файловый snapshot не попадают.
|
|
10
|
+
- **`/quality start`:** команда создаёт миссию; без миссии объясняет следующий шаг (проверено синтаксически и по коду регистрации; отдельного command-теста пока нет).
|
|
11
|
+
- **Совместимость:** полный набор тестов kit и release-consistency.
|
|
12
|
+
|
|
13
|
+
## Команды и результаты
|
|
14
|
+
|
|
15
|
+
| Команда | Результат |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `node tools/agent-extensions-tests.mjs` | OK |
|
|
18
|
+
| `node tools/ui-gate-tests.mjs` | OK |
|
|
19
|
+
| `node tools/quality-pipeline-tests.mjs` | 27 groups OK |
|
|
20
|
+
| `node tools/checkpoints-tests.mjs` | OK |
|
|
21
|
+
| `node tools/smoke-tests.mjs` | 3/3 OK |
|
|
22
|
+
| `node tools/integrations-tests.mjs` | OK |
|
|
23
|
+
| `node tools/onboarding-tests.mjs` | OK |
|
|
24
|
+
| `node tools/check-release-consistency.mjs` | OK для 2.32.0 |
|
|
25
|
+
| Полная test-цепочка (пошаговый прогон) | все шаги exit 0 |
|
|
26
|
+
|
|
27
|
+
## Ограничения
|
|
28
|
+
|
|
29
|
+
- `npm test` через `npm.ps1` на этой машине падает до запуска из-за ExecutionPolicy; использовать `npm.cmd test` или `-ExecutionPolicy Bypass`. Это окружение, не код.
|
|
30
|
+
- `max_turns`, `skills`, `isolation` парсятся из frontmatter, но **не** принуждаются в этом релизе; принуждение — следующий шаг.
|
|
31
|
+
- `interact` требует хотя бы один сценарий; покрытие всех ключевых сценариев остаётся на авторе.
|
|
32
|
+
- Инструменты OCR/PDF/DOCX/карт (Tesseract, Poppler, LibreOffice) **не устанавливались** и в релиз не входят.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# TEST 2.33.0 — approvals runtime, instructions, health, locks
|
|
2
|
+
|
|
3
|
+
Дата: 2026-12-02 · Windows 11 · Node v24.20.0 · DSH 0.2.x.
|
|
4
|
+
|
|
5
|
+
## Что проверялось
|
|
6
|
+
|
|
7
|
+
- **Approvals/runtime:** consequence-классификатор (`read/write/external/destructive/credential`), запись ask/deny без текста команды, `guardrails action=runtime`.
|
|
8
|
+
- **Instruction validator:** битый `@import`, устаревший навык, валидный навык, `<instructions-warning>` в prompt.
|
|
9
|
+
- **Project health:** `project_memory action=health` с git, `.dsh`, `PROJECT.md`, AGENTS/CLAUDE, scan warnings.
|
|
10
|
+
- **Writer locks:** конфликт двух owner, отказ чужому owner, освобождение, повторный захват, список.
|
|
11
|
+
- **Project OS dashboard:** `/doctor`, `/project health`, `/instructions`; регистрация команд.
|
|
12
|
+
- **Регрессии:** UI-гейт, роли, checkpoints, quality pipeline, memory, smoke.
|
|
13
|
+
|
|
14
|
+
## Команды и результаты
|
|
15
|
+
|
|
16
|
+
| Команда | Результат |
|
|
17
|
+
|---|---|
|
|
18
|
+
| `node plugins/dsh-guardrails/tools/guardrails-tests.mjs` | 43 tests OK |
|
|
19
|
+
| `node tools/agent-extensions-tests.mjs` | OK |
|
|
20
|
+
| `node tools/instructions-tests.mjs` | OK |
|
|
21
|
+
| `node tools/memory-tests.mjs` | OK (health action) |
|
|
22
|
+
| `node tools/ui-gate-tests.mjs` | OK |
|
|
23
|
+
| `node tools/quality-pipeline-tests.mjs` | 27 groups OK |
|
|
24
|
+
| `node tools/smoke-tests.mjs` | 3/3 |
|
|
25
|
+
| Полная test-цепочка | 43 шага, failed=0 |
|
|
26
|
+
|
|
27
|
+
## Ограничения
|
|
28
|
+
|
|
29
|
+
- Runtime хранится **в памяти процесса**: после перезапуска DSH история ask/deny пуста; это диагностика, не audit-log.
|
|
30
|
+
- Lock **advisory**: другие инструменты могут писать в проект, обходя `project_agent`; TTL 15 минут, heartbeat обновляется только при захвате/повторе.
|
|
31
|
+
- Валидатор инструкций — эвристика: проверяет явные `@import`, пути `skills/` и кодовые имена в строках со словом skill/навык; не доказывает смысловую непротиворечивость.
|
|
32
|
+
- `max_turns`, `skills`, `isolation` по-прежнему парсятся, но не принуждаются.
|
|
33
|
+
- Карты/OCR-toolchain не входят. npm publish/GitHub release — отдельным шагом после приёмки.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# TEST 2.34.0 — locks, runner, release polling, checkpoints, UI coverage
|
|
2
|
+
|
|
3
|
+
Дата: 2026-12-02 · Windows 11 · Node v24.20.0 · DSH 0.2.x.
|
|
4
|
+
|
|
5
|
+
## Что проверялось
|
|
6
|
+
|
|
7
|
+
- **Locks:** атомарный захват, чужой owner, stale takeover, heartbeat/release.
|
|
8
|
+
- **Test runner:** шаги из `test:steps` без PowerShell/`&&`-обёртки; failing step.
|
|
9
|
+
- **Release:** polling packument и сообщение об асинхронной/staged публикации.
|
|
10
|
+
- **Checkpoints:** atomic temp→rename, secret scan, retention, restore.
|
|
11
|
+
- **UI coverage:** `.dsh/quality/ui.json`, отдельный interact на сценарий.
|
|
12
|
+
- **Runtime:** persistence в `runtime.json`, отсутствие текста команд.
|
|
13
|
+
- **Roles:** parsing/prompt `max_turns`/`skills`/`isolation`.
|
|
14
|
+
- **Instructions:** catalog + user skills, stale/valid.
|
|
15
|
+
- **Release consistency:** `skills/manifest.json`.
|
|
16
|
+
|
|
17
|
+
## Команды и результаты
|
|
18
|
+
|
|
19
|
+
| Команда | Результат |
|
|
20
|
+
|---|---|
|
|
21
|
+
| `node tools/run-tests.mjs` | 43/43 шага |
|
|
22
|
+
| `node plugins/dsh-guardrails/tools/guardrails-tests.mjs` | 44 tests OK |
|
|
23
|
+
| `node tools/agent-extensions-tests.mjs` | OK |
|
|
24
|
+
| `node tools/instructions-tests.mjs` | OK |
|
|
25
|
+
| `node tools/ui-gate-tests.mjs` | OK |
|
|
26
|
+
| `node tools/memory-tests.mjs` | OK |
|
|
27
|
+
| `node tools/quality-pipeline-tests.mjs` | 27 groups OK |
|
|
28
|
+
| `node tools/check-release-consistency.mjs` | OK для 2.34.0 |
|
|
29
|
+
|
|
30
|
+
## Ограничения
|
|
31
|
+
|
|
32
|
+
- `max_turns` остаётся **advisory**: DSH subagent API не принимает лимит шагов; роль получает бюджет в prompt и должна остановиться сама. Жёсткое принуждение потребует API DSH.
|
|
33
|
+
- Locks advisory для не-`project_agent` инструментов; heartbeat 30 с, TTL 15 мин.
|
|
34
|
+
- File checkpoint сканирует только файлы ≤512 КБ; крупные бинарники копируются без content-скана.
|
|
35
|
+
- Store snapshot/retention не дедуплицирует содержимое: 20 полных копий проекта могут занимать место.
|
|
36
|
+
- Release polling ограничен 10 минутами; staged-публикация всё ещё требует 2FA-подтверждения владельца.
|
package/docs/measured.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "2.
|
|
4
|
-
"measuredAt": "2026-12-
|
|
3
|
+
"version": "2.34.0",
|
|
4
|
+
"measuredAt": "2026-12-02T11:57:06.966Z",
|
|
5
5
|
"command": "npm run measure",
|
|
6
6
|
"machine": {
|
|
7
7
|
"platform": "win32 x64",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"skillCoreBudget": 6000,
|
|
20
20
|
"skillCoreMaxTokens": 2417,
|
|
21
21
|
"skillCoreMaxName": "web-build",
|
|
22
|
-
"docsFiles":
|
|
23
|
-
"readmeBytes":
|
|
24
|
-
"readmeEnBytes":
|
|
25
|
-
"tarballBytes":
|
|
26
|
-
"unpackedBytes":
|
|
27
|
-
"tarballEntries":
|
|
28
|
-
"tarballName": "dsh-desktop-kit-2.
|
|
22
|
+
"docsFiles": 85,
|
|
23
|
+
"readmeBytes": 31799,
|
|
24
|
+
"readmeEnBytes": 8885,
|
|
25
|
+
"tarballBytes": 12366640,
|
|
26
|
+
"unpackedBytes": 16455127,
|
|
27
|
+
"tarballEntries": 545,
|
|
28
|
+
"tarballName": "dsh-desktop-kit-2.34.0.tgz"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-desktop-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.34.0",
|
|
4
4
|
"description": "DeepSeek Harness desktop kit 2.31.0 — 21 plugins and 35 skills: quality mission with phases, gates G0..G13, a pre-work layer (product brief, measured references, IA/content inventory, plan with dependencies, risks and blockers), an art-direction brief with variants, a release pipeline and remote_ops (typed ssh/scp with host state diff), units of work and an evidence trail; browser QA with 18 actions (interaction scenarios, accessibility WCAG 2.2 AA, performance budgets, element locate, pixel-diff baselines, palette contrast matrix, cross-page consistency, interactive-state and content checks, design report, reference take), plus an i18n dictionary pipeline; 14 project agents including ui-critic, a11y, cms-ops and a worktree builder; phase-aware skill routing with a token budget; MCP with OAuth 2.1, sampling and elicitation; read-only/writer swarm with a shared board; token lab, Skills Studio, project memory, guardrails, repo map, checkpoints, plan mode, 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",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"uninstall.ps1",
|
|
73
73
|
"lib/**",
|
|
74
74
|
"docs/**",
|
|
75
|
+
"!docs/analysis/**",
|
|
75
76
|
"skills-baseline.json",
|
|
76
77
|
"plugins/*/package.json",
|
|
77
78
|
"plugins/*/*.js",
|
|
@@ -91,13 +92,14 @@
|
|
|
91
92
|
"build:client": "node tools/build-client.mjs",
|
|
92
93
|
"build:skills": "node tools/build-skill-manifest.mjs",
|
|
93
94
|
"check:client": "node tools/check-client.mjs client.js",
|
|
94
|
-
"test": "node tools/
|
|
95
|
+
"test": "node tools/run-tests.mjs",
|
|
95
96
|
"skills:cost": "node tools/skill-cost.mjs",
|
|
96
97
|
"skills:check": "node tools/skill-cost.mjs --check",
|
|
97
98
|
"release": "node tools/release.mjs",
|
|
98
99
|
"verify:release": "node tools/verify-release.mjs",
|
|
99
100
|
"measure": "node tools/measure.mjs",
|
|
100
|
-
"check:release": "node tools/check-release-consistency.mjs"
|
|
101
|
+
"check:release": "node tools/check-release-consistency.mjs",
|
|
102
|
+
"test:steps": "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/quality-pipeline-tests.mjs && node tools/remote-ops-tests.mjs && node tools/i18n-tests.mjs && node tools/autopilot-route-tests.mjs && node tools/browser-qa-tests.mjs && node tools/browser-qa-extras-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 && node tools/kit-diagnostics-tests.mjs && node tools/onboarding-tests.mjs && node tools/check-release-consistency.mjs"
|
|
101
103
|
},
|
|
102
104
|
"engines": {
|
|
103
105
|
"node": ">=20"
|
|
@@ -174,7 +174,7 @@ function toolDefinition(ctx) {
|
|
|
174
174
|
if (!definition) return { ok: false, text: `project_agent: unknown agent "${name}"` };
|
|
175
175
|
let worktree = null;
|
|
176
176
|
try {
|
|
177
|
-
const requested = input?.worktree;
|
|
177
|
+
const requested = input?.worktree ?? (definition.isolation === "worktree" ? "auto" : false);
|
|
178
178
|
if (requested) {
|
|
179
179
|
const auto = requested === true || String(requested).toLowerCase() === "auto";
|
|
180
180
|
const slug = auto ? `${safeSlug(name)}-${Date.now().toString(36).slice(-4)}` : String(requested);
|
|
@@ -12,6 +12,7 @@ import { loadRuns, runPreview, updateRun, upsertRun } from "./runs.js";
|
|
|
12
12
|
import { saveTranscript } from "./transcripts.js";
|
|
13
13
|
import { findingsPrompt, parseFindings, validateFindings } from "./findings.js";
|
|
14
14
|
import { agentOptionsFor, chooseAgentRoute } from "./routing.js";
|
|
15
|
+
import { acquireLock, releaseLock } from "./locks.js";
|
|
15
16
|
|
|
16
17
|
const MODEL_ERROR = /(?:model|provider).*(?:not found|unknown|unsupported|unavailable|not available|invalid|no such|does not exist)/iu;
|
|
17
18
|
const background = new Map();
|
|
@@ -38,6 +39,17 @@ function remember(record, activation, projectRoot, signal, onAbort) {
|
|
|
38
39
|
background.set(record.id, { record, activation, projectRoot, signal, onAbort });
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
export function rolePrompt(definition = {}) {
|
|
43
|
+
const lines = [];
|
|
44
|
+
if (definition.maxTurns > 0) {
|
|
45
|
+
lines.push(`Turn budget (advisory): ${definition.maxTurns}. Stop when the deliverable is done; if blocked, report the blocker instead of looping.`);
|
|
46
|
+
}
|
|
47
|
+
if (definition.skills) {
|
|
48
|
+
lines.push(`Available skills: ${definition.skills}. Load exactly the ones you need with the skill tool.`);
|
|
49
|
+
}
|
|
50
|
+
return lines.join("\n");
|
|
51
|
+
}
|
|
52
|
+
|
|
41
53
|
export async function runProjectAgent(ctx, exec, definition, task, options = {}) { const subagents = ctx.get("subagents");
|
|
42
54
|
if (!subagents || typeof subagents.startActivation !== "function") {
|
|
43
55
|
throw new Error("subagents service is unavailable");
|
|
@@ -64,11 +76,24 @@ export async function runProjectAgent(ctx, exec, definition, task, options = {})
|
|
|
64
76
|
const route = chooseAgentRoute(definition, task, options.route);
|
|
65
77
|
let routeUsed = route;
|
|
66
78
|
setChildPolicy(reservedId, definition);
|
|
79
|
+
let heldLock = null;
|
|
67
80
|
let activation;
|
|
68
81
|
try {
|
|
82
|
+
if (definition.permission !== "read-only" && options.lock !== false) {
|
|
83
|
+
heldLock = acquireLock({
|
|
84
|
+
cwd: options.worktree?.path ?? project.root,
|
|
85
|
+
owner: reservedId,
|
|
86
|
+
scope: "writer",
|
|
87
|
+
});
|
|
88
|
+
if (!heldLock.ok) {
|
|
89
|
+
const holder = heldLock.holder ?? {};
|
|
90
|
+
throw new Error(`project busy: writer lock held by ${holder.owner ?? "another agent"} since ${holder.createdAt ?? "?"}`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
69
93
|
const prompt = [
|
|
70
94
|
`<project-agent name="${definition.name}">`,
|
|
71
95
|
definition.body,
|
|
96
|
+
rolePrompt(definition),
|
|
72
97
|
"</project-agent>",
|
|
73
98
|
options.teamId ? `<team id="${options.teamId}">Use team_board action=post/read with teamId=${options.teamId} to share findings; use add-task/claim/done for work items. Use team_message to=\"parent\" for a live message to the lead; sibling live messaging is not available — the board is the shared channel.</team>` : "",
|
|
74
99
|
options.leadContext ? `<team-lead>You coordinate this team. Members: ${options.leadContext}. Read the board first; assign/claim tasks with acceptance criteria and non-overlapping scopes; use team_message to=<run-id> for live directions and team_message to=\"parent\" to report to the parent. Finish with a PASS/FAIL synthesis, blockers and unresolved risks.</team-lead>` : "",
|
|
@@ -162,6 +187,7 @@ export async function runProjectAgent(ctx, exec, definition, task, options = {})
|
|
|
162
187
|
}
|
|
163
188
|
try { await activation.dispose?.(); } catch { /* best effort */ }
|
|
164
189
|
clearChildPolicy(activeId);
|
|
190
|
+
releaseLock({ cwd: options.worktree?.path ?? project.root, owner: reservedId });
|
|
165
191
|
background.delete(record.id);
|
|
166
192
|
signal?.removeEventListener?.("abort", abort);
|
|
167
193
|
}).catch((error) => {
|
|
@@ -175,6 +201,7 @@ export async function runProjectAgent(ctx, exec, definition, task, options = {})
|
|
|
175
201
|
});
|
|
176
202
|
}
|
|
177
203
|
clearChildPolicy(activeId);
|
|
204
|
+
releaseLock({ cwd: options.worktree?.path ?? project.root, owner: reservedId });
|
|
178
205
|
background.delete(record.id);
|
|
179
206
|
signal?.removeEventListener?.("abort", abort);
|
|
180
207
|
});
|
|
@@ -212,6 +239,7 @@ export async function runProjectAgent(ctx, exec, definition, task, options = {})
|
|
|
212
239
|
};
|
|
213
240
|
} catch (error) {
|
|
214
241
|
clearChildPolicy(activeId);
|
|
242
|
+
releaseLock({ cwd: options.worktree?.path ?? project.root, owner: reservedId });
|
|
215
243
|
if (isBackground) {
|
|
216
244
|
const message = error instanceof Error ? error.message : String(error);
|
|
217
245
|
const record = {
|
|
@@ -235,7 +263,10 @@ export async function runProjectAgent(ctx, exec, definition, task, options = {})
|
|
|
235
263
|
}
|
|
236
264
|
throw error;
|
|
237
265
|
} finally {
|
|
238
|
-
if (!isBackground)
|
|
266
|
+
if (!isBackground) {
|
|
267
|
+
releaseLock({ cwd: options.worktree?.path ?? project.root, owner: reservedId });
|
|
268
|
+
signal?.removeEventListener?.("abort", abort);
|
|
269
|
+
}
|
|
239
270
|
}
|
|
240
271
|
}
|
|
241
272
|
|