dsh-desktop-kit 2.24.1 → 2.30.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +71 -10
  2. package/README.md +193 -262
  3. package/client.js +1 -1
  4. package/docs/ARCHITECTURE.md +9 -6
  5. package/docs/PROPOSAL-2.25-quality-pipeline.md +435 -0
  6. package/docs/PROPOSAL-NEXUM-FINDINGS.md +259 -0
  7. package/docs/TEST-2.30.0.md +83 -0
  8. package/docs/images/capability-map-2.30.png +0 -0
  9. package/docs/images/hero-2.30.png +0 -0
  10. package/docs/images/quality-pipeline-2.30.png +0 -0
  11. package/docs/preview/capability-map-2.30.html +106 -0
  12. package/docs/preview/hero-2.30.html +133 -0
  13. package/docs/preview/quality-pipeline-2.30.html +142 -0
  14. package/docs/preview/readme-visuals.css +111 -0
  15. package/index.js +6 -0
  16. package/package.json +11 -4
  17. package/plugins/dsh-agent-extensions/lib/routing.js +4 -0
  18. package/plugins/dsh-agent-extensions/lib/scaffold.js +152 -27
  19. package/plugins/dsh-agent-extensions/lib/settings.js +19 -0
  20. package/plugins/dsh-agent-extensions/lib/swarm.js +6 -2
  21. package/plugins/dsh-browser-qa/index.js +202 -9
  22. package/plugins/dsh-browser-qa/lib/design-more.js +688 -0
  23. package/plugins/dsh-browser-qa/lib/extras.js +1313 -0
  24. package/plugins/dsh-browser-qa/lib/pages.js +4 -3
  25. package/plugins/dsh-browser-qa/lib/png.js +190 -0
  26. package/plugins/dsh-browser-qa/lib/ui-gate.js +171 -31
  27. package/plugins/dsh-i18n/README.md +36 -0
  28. package/plugins/dsh-i18n/cordis.patch.yml +3 -0
  29. package/plugins/dsh-i18n/index.js +294 -0
  30. package/plugins/dsh-i18n/lib/lang.js +179 -0
  31. package/plugins/dsh-i18n/package.json +29 -0
  32. package/plugins/dsh-quality-pipeline/README.md +53 -0
  33. package/plugins/dsh-quality-pipeline/cordis.patch.yml +3 -0
  34. package/plugins/dsh-quality-pipeline/index.js +647 -0
  35. package/plugins/dsh-quality-pipeline/lib/acceptance.js +132 -0
  36. package/plugins/dsh-quality-pipeline/lib/autostart.js +159 -0
  37. package/plugins/dsh-quality-pipeline/lib/design.js +123 -0
  38. package/plugins/dsh-quality-pipeline/lib/machine.js +312 -0
  39. package/plugins/dsh-quality-pipeline/lib/prework.js +215 -0
  40. package/plugins/dsh-quality-pipeline/lib/release.js +53 -0
  41. package/plugins/dsh-quality-pipeline/lib/schema.js +256 -0
  42. package/plugins/dsh-quality-pipeline/lib/store.js +114 -0
  43. package/plugins/dsh-quality-pipeline/lib/text.js +109 -0
  44. package/plugins/dsh-quality-pipeline/package.json +33 -0
  45. package/plugins/dsh-remote-ops/README.md +38 -0
  46. package/plugins/dsh-remote-ops/cordis.patch.yml +3 -0
  47. package/plugins/dsh-remote-ops/index.js +268 -0
  48. package/plugins/dsh-remote-ops/lib/hosts.js +118 -0
  49. package/plugins/dsh-remote-ops/lib/ssh.js +96 -0
  50. package/plugins/dsh-remote-ops/lib/state.js +66 -0
  51. package/plugins/dsh-remote-ops/package.json +31 -0
  52. package/plugins/dsh-skill-autopilot/index.js +204 -15
  53. package/skills/a11y-audit/SKILL.md +67 -0
  54. package/skills/cms-ops/SKILL.md +74 -0
  55. package/skills/design-system/SKILL.md +100 -0
  56. package/skills/legal-ru-web/SKILL.md +68 -0
  57. package/skills/manifest.json +38 -18
  58. package/skills/release-pipeline/SKILL.md +67 -0
  59. package/skills/ui-batch/SKILL.md +60 -0
  60. package/skills/web-build/SKILL.md +106 -0
  61. package/skills/web-build/recipes/form.md +16 -0
  62. package/skills/web-build/recipes/payment.md +16 -0
  63. package/skills/web-build/recipes/review.md +16 -0
  64. package/skills-baseline.json +192 -0
  65. package/skills/ui-design-system/references/accessibility-and-responsive.md +0 -50
  66. package/skills/ui-design-system/references/tokens-and-components.md +0 -67
  67. package/skills/ui-design-system/references/visual-qa.md +0 -44
  68. package/skills/visual-qa/references/commands.md +0 -32
  69. /package/skills/{ui-craft/SKILL.md → design-system/references/ui-craft.md} +0 -0
  70. /package/skills/{ui-design-system/SKILL.md → design-system/references/ui-design-system.md} +0 -0
  71. /package/skills/{visual-qa/SKILL.md → ui-batch/references/visual-qa.md} +0 -0
@@ -0,0 +1,142 @@
1
+ <!doctype html>
2
+ <html lang="ru">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=2000, initial-scale=1">
6
+ <title>DSH Desktop Kit 2.30 — quality pipeline</title>
7
+ <link rel="stylesheet" href="readme-visuals.css">
8
+ <style>
9
+ .quality { width: 2000px; height: 1060px; padding: 56px 84px 38px; display: flex; flex-direction: column; }
10
+ .head { display: flex; justify-content: space-between; gap: 60px; align-items: flex-start; }
11
+ .head h1 { font-size: 70px; line-height: 1.02; letter-spacing: -0.035em; max-width: 1080px; }
12
+ .head h1 em { font-style: normal; color: var(--mint); }
13
+ .head .lead { margin-top: 16px; max-width: 980px; color: var(--muted); font-size: 23px; line-height: 1.45; }
14
+ .head .lead b { color: var(--text); font-weight: 500; }
15
+ .stamp { flex-shrink: 0; text-align: right; }
16
+ .stamp b { display: block; font-family: "Unbounded", sans-serif; font-size: 44px; font-weight: 500; letter-spacing: -0.04em; color: var(--mint); }
17
+ .stamp span { color: var(--dim); font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
18
+ .prework { margin-top: 26px; display: grid; grid-template-columns: 230px repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
19
+ .prework > div { padding: 12px 14px; border-right: 1px solid var(--line); }
20
+ .prework > div:last-child { border-right: 0; }
21
+ .prework .label { color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; display: flex; align-items: center; }
22
+ .prework b { display: block; font-size: 17px; font-weight: 500; color: var(--text); }
23
+ .prework small { display: block; color: var(--dim); font-size: 13px; margin-top: 3px; }
24
+ .phases { margin-top: 24px; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
25
+ .phase { padding: 14px 14px 16px; border-right: 1px solid var(--line); min-height: 268px; display: flex; flex-direction: column; }
26
+ .phase:last-child { border-right: 0; }
27
+ .phase.active { background: rgba(115, 230, 187, 0.05); }
28
+ .ph-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
29
+ .ph-name { font-family: "Unbounded", sans-serif; font-size: 23px; font-weight: 500; letter-spacing: -0.02em; }
30
+ .ph-index { color: var(--dim); font-family: var(--mono); font-size: 12px; }
31
+ .ph-desc { margin-top: 6px; color: var(--dim); font-size: 14px; line-height: 1.4; min-height: 42px; }
32
+ .gates { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
33
+ .g { min-width: 48px; height: 31px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--dim); font-family: var(--mono); font-size: 14px; }
34
+ .g.done { color: var(--mint); border-color: #2d5c4a; background: #10251d; }
35
+ .g.active { color: #08130e; background: var(--mint); border-color: var(--mint); font-weight: 600; }
36
+ .g.warn { color: var(--copper); border-color: #5a452d; background: #21170f; }
37
+ .ph-side { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.45; }
38
+ .ph-side b { color: var(--text); font-weight: 500; }
39
+ .bottom { margin-top: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
40
+ .box { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #0b110e; }
41
+ .box h3 { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
42
+ .profiles { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
43
+ .profile { display: grid; grid-template-columns: 100px 1fr; gap: 10px; font-size: 15px; color: var(--muted); }
44
+ .profile b { color: var(--text); font-family: var(--mono); font-weight: 500; }
45
+ .rules { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 15px; }
46
+ .rules b { color: var(--text); font-weight: 500; }
47
+ .rules .warn { color: var(--copper); }
48
+ .footer { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; color: var(--dim); font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; }
49
+ .footer .sig { color: var(--mint); }
50
+ </style>
51
+ </head>
52
+ <body>
53
+ <div class="page quality">
54
+ <header class="head">
55
+ <div>
56
+ <p class="kicker">Quality mission · G0 — G13</p>
57
+ <h1>Гейт нельзя закрыть <em>словами.</em></h1>
58
+ <p class="lead">Миссия качества — это состояние, а не пожелание: фаза не начинается без зелёных гейтов, гейт не закрывается без <b>evidence ≥ 12 символов</b>, handoff — без PASS приёмки.</p>
59
+ </div>
60
+ <div class="stamp"><b>14</b><span>гейтов · 7 фаз</span></div>
61
+ </header>
62
+
63
+ <div class="prework">
64
+ <div class="label">PRE-WORK<br>ДО КОДА</div>
65
+ <div><b>Продуктовый бриф</b><small>G0 · пользователи и метрики</small></div>
66
+ <div><b>Референсы</b><small>G1 · 2+ замера + take</small></div>
67
+ <div><b>IA и контент</b><small>G0 · страницы → единицы</small></div>
68
+ <div><b>План DAG</b><small>G2 · зависимости и риски</small></div>
69
+ <div><b>Арт-бриф</b><small>G3 · палитра и выбор</small></div>
70
+ </div>
71
+
72
+ <div class="phases">
73
+ <section class="phase">
74
+ <div class="ph-top"><span class="ph-name">research</span><span class="ph-index">01</span></div>
75
+ <p class="ph-desc">Понять продукт и снять мерки с реальных референсов.</p>
76
+ <div class="gates"><span class="g done">G0</span><span class="g done">G1</span></div>
77
+ <p class="ph-side"><b>blockers</b><br>механические блокеры в плане</p>
78
+ </section>
79
+ <section class="phase">
80
+ <div class="ph-top"><span class="ph-name">plan</span><span class="ph-index">02</span></div>
81
+ <p class="ph-desc">Прямой и обратный план, пре-мортем, риски.</p>
82
+ <div class="gates"><span class="g done">G2</span></div>
83
+ <p class="ph-side"><b>P0</b><br>открытый блокер — стоп сборки</p>
84
+ </section>
85
+ <section class="phase">
86
+ <div class="ph-top"><span class="ph-name">system</span><span class="ph-index">03</span></div>
87
+ <p class="ph-desc">Токены, шкала, палитра, состояния до страниц.</p>
88
+ <div class="gates"><span class="g done">G3</span></div>
89
+ <p class="ph-side"><b>2–3 варианта</b><br>и явный выбор направления</p>
90
+ </section>
91
+ <section class="phase active">
92
+ <div class="ph-top"><span class="ph-name">build</span><span class="ph-index">04</span></div>
93
+ <p class="ph-desc">Единицы работы с DoD; аудит каждой единицы.</p>
94
+ <div class="gates"><span class="g active">G4</span><span class="g">G5</span><span class="g">G6</span></div>
95
+ <p class="ph-side"><b>audit matrix=full</b><br>overflow 0 · console 0</p>
96
+ </section>
97
+ <section class="phase">
98
+ <div class="ph-top"><span class="ph-name">verify</span><span class="ph-index">05</span></div>
99
+ <p class="ph-desc">Интеракции, доступность, перф, SEO, админка, право.</p>
100
+ <div class="gates"><span class="g">G5</span><span class="g">G6</span><span class="g">G7</span><span class="g">G8</span><span class="g">G9</span><span class="g">G10</span></div>
101
+ <p class="ph-side"><b>18 действий</b><br>browser_qa: interact/a11y/perf</p>
102
+ </section>
103
+ <section class="phase">
104
+ <div class="ph-top"><span class="ph-name">fix</span><span class="ph-index">06</span></div>
105
+ <p class="ph-desc">Возврат в build по findings; два падения — эскалация.</p>
106
+ <div class="gates"><span class="g warn">loop</span></div>
107
+ <p class="ph-side"><b>ESCALATE</b><br>сменить подход, не третий круг</p>
108
+ </section>
109
+ <section class="phase">
110
+ <div class="ph-top"><span class="ph-name">handoff</span><span class="ph-index">07</span></div>
111
+ <p class="ph-desc">Приёмка, отчёт, runbook и релиз.</p>
112
+ <div class="gates"><span class="g">G11</span><span class="g">G12</span><span class="g">G13</span></div>
113
+ <p class="ph-side"><b>acceptance PASS</b><br>+ release для turnkey</p>
114
+ </section>
115
+ </div>
116
+
117
+ <div class="bottom">
118
+ <div class="box">
119
+ <h3>Профили</h3>
120
+ <div class="profiles">
121
+ <div class="profile"><b>fast</b><span>G0 · G4 · G11</span></div>
122
+ <div class="profile"><b>standard</b><span>G0 · G1 · G2 · G4 · G5 · G6 · G11</span></div>
123
+ <div class="profile"><b>turnkey</b><span>все 14: G0–G13, включая релиз</span></div>
124
+ </div>
125
+ </div>
126
+ <div class="box">
127
+ <h3>Что считается доказательством</h3>
128
+ <div class="rules">
129
+ <span><b>команда</b> · метрика · путь к отчёту</span>
130
+ <span>evidence <b>≥ 12 символов</b>; «готово» — нет</span>
131
+ <span class="warn">команды без shell: <b>; | &amp; &gt; $</b> запрещены</span>
132
+ </div>
133
+ </div>
134
+ </div>
135
+
136
+ <footer class="footer">
137
+ <span>mission.json · evidence.jsonl · acceptance · G0–G13</span>
138
+ <span class="sig">EVIDENCE OR IT DIDN'T HAPPEN</span>
139
+ </footer>
140
+ </div>
141
+ </body>
142
+ </html>
@@ -0,0 +1,111 @@
1
+ /* README visual system — 2.30 (graphite: Unbounded + Golos, mint hairlines). */
2
+ @font-face {
3
+ font-family: "Unbounded";
4
+ src: url("../../skills/wow-design/assets/kit/assets/fonts/unbounded-cyrillic-400-normal.woff2") format("woff2");
5
+ font-weight: 400;
6
+ font-display: swap;
7
+ }
8
+ @font-face {
9
+ font-family: "Unbounded";
10
+ src: url("../../skills/wow-design/assets/kit/assets/fonts/unbounded-cyrillic-500-normal.woff2") format("woff2");
11
+ font-weight: 500;
12
+ font-display: swap;
13
+ }
14
+ @font-face {
15
+ font-family: "Unbounded";
16
+ src: url("../../skills/wow-design/assets/kit/assets/fonts/unbounded-cyrillic-600-normal.woff2") format("woff2");
17
+ font-weight: 600;
18
+ font-display: swap;
19
+ }
20
+ @font-face {
21
+ font-family: "Golos Text";
22
+ src: url("../../skills/wow-design/assets/kit/assets/fonts/golos-text-cyrillic-400-normal.woff2") format("woff2");
23
+ font-weight: 400;
24
+ font-display: swap;
25
+ }
26
+ @font-face {
27
+ font-family: "Golos Text";
28
+ src: url("../../skills/wow-design/assets/kit/assets/fonts/golos-text-cyrillic-500-normal.woff2") format("woff2");
29
+ font-weight: 500;
30
+ font-display: swap;
31
+ }
32
+ @font-face {
33
+ font-family: "Golos Text";
34
+ src: url("../../skills/wow-design/assets/kit/assets/fonts/golos-text-cyrillic-600-normal.woff2") format("woff2");
35
+ font-weight: 600;
36
+ font-display: swap;
37
+ }
38
+
39
+ :root {
40
+ --bg: #080c0a;
41
+ --panel: #0e1512;
42
+ --panel-2: #111a16;
43
+ --line: #24332c;
44
+ --line-strong: #385247;
45
+ --text: #f0f6f2;
46
+ --muted: #9aaba2;
47
+ --dim: #6f8378;
48
+ --mint: #73e6bb;
49
+ --mint-soft: #1b3b30;
50
+ --copper: #d7a36a;
51
+ --copper-soft: #33261a;
52
+ --danger: #e0847a;
53
+ --radius: 10px;
54
+ --mono: "Cascadia Mono", "Consolas", monospace;
55
+ }
56
+
57
+ * { box-sizing: border-box; }
58
+ html, body { margin: 0; padding: 0; }
59
+ body {
60
+ background: var(--bg);
61
+ color: var(--text);
62
+ font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
63
+ -webkit-font-smoothing: antialiased;
64
+ }
65
+ .page {
66
+ position: relative;
67
+ overflow: hidden;
68
+ background:
69
+ linear-gradient(90deg, rgba(115, 230, 187, 0.04) 1px, transparent 1px) 0 0 / 96px 96px,
70
+ linear-gradient(0deg, rgba(115, 230, 187, 0.025) 1px, transparent 1px) 0 0 / 96px 96px,
71
+ radial-gradient(1200px 700px at 72% 18%, rgba(115, 230, 187, 0.08), transparent 62%),
72
+ var(--bg);
73
+ }
74
+ .page::after {
75
+ content: "";
76
+ position: absolute;
77
+ inset: 0;
78
+ pointer-events: none;
79
+ background: linear-gradient(180deg, transparent 82%, rgba(8, 12, 10, 0.72));
80
+ }
81
+ .kicker {
82
+ margin: 0 0 22px;
83
+ color: var(--mint);
84
+ font-family: var(--mono);
85
+ font-size: 19px;
86
+ letter-spacing: 0.16em;
87
+ text-transform: uppercase;
88
+ }
89
+ h1, h2, h3 { margin: 0; font-family: "Unbounded", "Segoe UI", sans-serif; font-weight: 500; }
90
+ p { margin: 0; }
91
+ .muted { color: var(--muted); }
92
+ .mono { font-family: var(--mono); }
93
+ .hairline { border-top: 1px solid var(--line); }
94
+ .tag {
95
+ display: inline-flex;
96
+ align-items: center;
97
+ gap: 8px;
98
+ min-height: 30px;
99
+ padding: 5px 12px;
100
+ border: 1px solid var(--line-strong);
101
+ border-radius: 999px;
102
+ color: var(--muted);
103
+ font-family: var(--mono);
104
+ font-size: 15px;
105
+ letter-spacing: 0.04em;
106
+ }
107
+ .tag.mint { color: var(--mint); border-color: #2e6a55; background: var(--mint-soft); }
108
+ .tag.copper { color: var(--copper); border-color: #5a452d; background: var(--copper-soft); }
109
+ .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
110
+ .dot.copper { background: var(--copper); }
111
+ .dot.dim { background: var(--dim); }
package/index.js CHANGED
@@ -34,6 +34,9 @@ import * as skillAutopilot from "./plugins/dsh-skill-autopilot/index.js";
34
34
  import * as repoMap from "./plugins/dsh-repo-map/index.js";
35
35
  import * as checkpoints from "./plugins/dsh-checkpoints/index.js";
36
36
  import * as planMode from "./plugins/dsh-plan-mode/index.js";
37
+ import * as qualityPipeline from "./plugins/dsh-quality-pipeline/index.js";
38
+ import * as remoteOps from "./plugins/dsh-remote-ops/index.js";
39
+ import * as i18n from "./plugins/dsh-i18n/index.js";
37
40
  import * as browserQa from "./plugins/dsh-browser-qa/index.js";
38
41
  import * as githubReview from "./plugins/dsh-github-review/index.js";
39
42
  import * as guardrails from "./plugins/dsh-guardrails/index.js";
@@ -63,6 +66,9 @@ const parts = [
63
66
  ["dsh-repo-map", repoMap],
64
67
  ["dsh-checkpoints", checkpoints],
65
68
  ["dsh-plan-mode", planMode],
69
+ ["dsh-quality-pipeline", qualityPipeline],
70
+ ["dsh-remote-ops", remoteOps],
71
+ ["dsh-i18n", i18n],
66
72
  ["dsh-browser-qa", browserQa],
67
73
  ["dsh-github-review", githubReview],
68
74
  ["dsh-guardrails", guardrails],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-desktop-kit",
3
- "version": "2.24.1",
4
- "description": "DeepSeek Harness desktop kit 2.24.1 — 18 plugins and 31 skills: 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.",
3
+ "version": "2.30.0",
4
+ "description": "DeepSeek Harness desktop kit 2.30.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.",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "dsh",
@@ -30,7 +30,13 @@
30
30
  "agents",
31
31
  "worktrees",
32
32
  "swarm",
33
- "team-board"
33
+ "team-board",
34
+ "quality-gates",
35
+ "mission",
36
+ "accessibility",
37
+ "wcag",
38
+ "acceptance",
39
+ "evidence"
34
40
  ],
35
41
  "license": "MIT",
36
42
  "author": "DSH Desktop Kit contributors",
@@ -68,6 +74,7 @@
68
74
  "skills-baseline.json",
69
75
  "plugins/*/package.json",
70
76
  "plugins/*/*.js",
77
+ "plugins/*/cordis.patch.yml",
71
78
  "plugins/*/lib/**",
72
79
  "plugins/*/locale/**",
73
80
  "plugins/*/bootstrap/**",
@@ -83,7 +90,7 @@
83
90
  "build:client": "node tools/build-client.mjs",
84
91
  "build:skills": "node tools/build-skill-manifest.mjs",
85
92
  "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/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",
93
+ "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/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",
87
94
  "skills:cost": "node tools/skill-cost.mjs",
88
95
  "skills:check": "node tools/skill-cost.mjs --check",
89
96
  "release": "node tools/release.mjs",
@@ -24,6 +24,10 @@ const ROLE_DEFAULTS = {
24
24
  researcher: { model: FLASH, effort: "high" },
25
25
  security: { model: FLASH, effort: "high" },
26
26
  performance: { model: FLASH, effort: "high" },
27
+ "ui-critic": { model: FLASH, effort: "high" },
28
+ a11y: { model: FLASH, effort: "high" },
29
+ "cms-ops": { model: FLASH, effort: "high" },
30
+ builder: { model: FLASH, effort: "high" },
27
31
  tester: { model: FLASH, effort: "low" },
28
32
  };
29
33
 
@@ -30,57 +30,57 @@ const AGENT_TEMPLATES = {
30
30
  "---",
31
31
  "name: reviewer",
32
32
  "description: Ревью диффа, тестов и рисков. Возвращает только findings.",
33
- "tools: read, grep, glob, team_board, team_message",
33
+ "tools: read, grep, glob, browser_qa, team_board, team_message",
34
34
  "permission: read-only",
35
35
  "---",
36
36
  "",
37
- "Ты ревьюер проекта. Проверяй дифф, тесты и риски. Не меняй файлы. Возвращай только findings с путями и приоритетом.",
37
+ "Ты ревьюер проекта. Проверяй дифф, тесты и риски. Не меняй файлы. Возвращай только findings с путями и приоритетом. Для UI-правок можешь сам прогнать browser_qa (audit/interact/a11y) — инструмент read-only.",
38
38
  "",
39
39
  ].join("\n"),
40
40
  "researcher.md": [
41
41
  "---",
42
42
  "name: researcher",
43
43
  "description: Исследует документацию и практики по внешним источникам, не меняет код.",
44
- "tools: read, grep, glob, web_search, web_fetch, team_board, team_message",
44
+ "tools: read, grep, glob, web_search, web_fetch, browser_qa, team_board, team_message",
45
45
  "permission: read-only",
46
46
  "---",
47
47
  "",
48
- "Ты исследователь. Для внешних фактов используй web_search/web_fetch, 2+ источника, даты и ссылки. Не меняй код.",
48
+ "Ты исследователь. Для внешних фактов используй web_search/web_fetch, 2+ источника, даты и ссылки. browser_qa помогает снять реальные метрики референса (perf/a11y). Не меняй код.",
49
49
  "",
50
50
  ].join("\n"),
51
51
  "tester.md": [
52
52
  "---",
53
53
  "name: tester",
54
54
  "description: Запускает тесты и проверки в рабочей папке, разбирает падения.",
55
- "tools: read, grep, glob, bash, pwsh, team_board, team_message",
55
+ "tools: read, grep, glob, bash, pwsh, browser_qa, team_board, team_message",
56
56
  "permission: workspace-write",
57
57
  "---",
58
58
  "",
59
- "Ты тестировщик. Запускай тесты и проверки, разбирай падения. Не делай необратимых операций.",
59
+ "Ты тестировщик. Запускай тесты и проверки, разбирай падения. Для UI обязательны browser_qa audit matrix=full, interact по ключевым сценариям и a11y. Не делай необратимых операций.",
60
60
  "",
61
61
  ].join("\n"),
62
62
  "coordinator.md": [
63
63
  "---",
64
64
  "name: coordinator",
65
65
  "description: Координирует рой: читает board, назначает задачи, пишет участникам.",
66
- "tools: read, grep, repo_map, team_board, team_message",
66
+ "tools: read, grep, repo_map, browser_qa, team_board, team_message",
67
67
  "permission: read-only",
68
68
  "---",
69
69
  "",
70
- "Ты лид команды. Сначала прочитай board, затем назначай задачи и пиши участникам через team_message. Не меняй код. Требуй acceptance criteria, evidence и финальный PASS/FAIL.",
70
+ "Ты лид команды. Сначала прочитай board, затем назначай задачи и пиши участникам через team_message. Не меняй код. Требуй acceptance criteria, evidence и финальный PASS/FAIL. Прогоны можешь проверять сам через browser_qa.",
71
71
  "",
72
72
  ].join("\n"),
73
73
  "verifier.md": [
74
74
  "---",
75
75
  "name: verifier",
76
76
  "description: Проверяет claims, ссылки, даты и тесты; возвращает structured findings.",
77
- "tools: read, grep, glob, repo_map, web_fetch, research_ledger, team_board, team_message",
77
+ "tools: read, grep, glob, repo_map, web_fetch, browser_qa, research_ledger, team_board, team_message",
78
78
  "model: deepseek-v4-pro",
79
79
  "permission: read-only",
80
80
  "output: findings",
81
81
  "---",
82
82
  "",
83
- "Ты верификатор. Проверяй каждое утверждение: источник доступен, дата актуальна, цитата соответствует claim, тест реально запускался. Ищи противоречия и неподтверждённые выводы. Верни только JSON по findings-контракту.",
83
+ "Ты верификатор. Проверяй каждое утверждение: источник доступен, дата актуальна, цитата соответствует claim, тест реально запускался. Для метрик (LCP/CLS/overflow/контраст) перепроверяй browser_qa, а не верь отчёту. Ищи противоречия и неподтверждённые выводы. Верни только JSON по findings-контракту.",
84
84
  "",
85
85
  ].join("\n"),
86
86
  "synthesizer.md": [
@@ -93,7 +93,7 @@ const AGENT_TEMPLATES = {
93
93
  "output: findings",
94
94
  "---",
95
95
  "",
96
- "Ты синтезатор. Собери находки команды, убери дубли, отдели факты от предположений, проверь ссылки через ledger и верни единый JSON по findings-контракту с blockers и unknowns.",
96
+ "Ты синтезатор. Собери находки команды, убери дубли, отдели факты от предположений, проверь ссылки через ledger и верни единый JSON по findings-контракту с blockers и unknowns. PASS возможен только при 0 P0 и 0 serious.",
97
97
  "",
98
98
  ].join("\n"),
99
99
  "security.md": [
@@ -119,7 +119,77 @@ const AGENT_TEMPLATES = {
119
119
  "output: findings",
120
120
  "---",
121
121
  "",
122
- "Ты performance-ревьюер. Ищи N+1, лишние рендеры, блокирующие операции, размер бандла и регрессии. Каждый finding — severity, file:line, evidence (метрика/команда) и fix.",
122
+ "Ты performance-ревьюер. Ищи N+1, лишние рендеры, блокирующие операции, размер бандла и регрессии. Каждый finding — severity, file:line, evidence (метрика browser_qa perf или команда) и fix.",
123
+ "",
124
+ ].join("\n"),
125
+ "ui-critic.md": [
126
+ "---",
127
+ "name: ui-critic",
128
+ "description: Визуальный критик: скриншоты, сетка, ритм отступов, типографика, состояния.",
129
+ "tools: read, grep, glob, browser_qa, team_board, team_message",
130
+ "permission: read-only",
131
+ "output: findings",
132
+ "---",
133
+ "",
134
+ "Ты визуальный критик. Снимай browser_qa shot на 390×844, 844×390, 768×1024, 1024×768 и 1440×900, смотри PNG глазами и ищи: разъехавшийся ритм отступов, два разных заголовка секции, дубли правил, обрезанный текст, слипшиеся блоки, случайные тени и градиенты, отсутствующие состояния. Каждый finding — P0/P1/P2, элемент (селектор), что видно на скриншоте, чем мерить. Не меняй файлы.",
135
+ "",
136
+ ].join("\n"),
137
+ "a11y.md": [
138
+ "---",
139
+ "name: a11y",
140
+ "description: Доступность по WCAG 2.2 AA: имена, подписи, контраст, фокус, тап-таргеты.",
141
+ "tools: read, grep, glob, browser_qa, team_board, team_message",
142
+ "permission: read-only",
143
+ "output: findings",
144
+ "---",
145
+ "",
146
+ "Ты аудитор доступности. Запускай browser_qa action=a11y на каждой ключевой странице и проверяй: доступные имена, label у полей, контраст 4.5:1 (крупный 3:1), видимый фокус и его перекрытие (2.4.11), тап-таргеты 24×24 (2.5.8 AA; 44 — рекомендация), порядок заголовков, lang, зум. Каждый finding — критерий WCAG, селектор, метрика, severity. Не меняй файлы.",
147
+ "",
148
+ ].join("\n"),
149
+ "cms-ops.md": [
150
+ "---",
151
+ "name: cms-ops",
152
+ "description: CMS-эксплуатация: версии, плагины, checksums, почта, cron, права, обновляемость.",
153
+ "tools: read, grep, glob, pwsh, browser_qa, team_board, team_message",
154
+ "permission: read-only",
155
+ "output: findings",
156
+ "---",
157
+ "",
158
+ "Ты CMS-инженер (read-only). Проверяй WordPress/Bitrix/Drupal: версии ядра и плагинов, checksums, активные плагины, cron, SMTP/доставку писем, права и роли, бэкапы, свободное место, 2FA. Разрешены только читающие команды (wp ... list/get/verify-checksums, ls, df, php -v); изменяющие команды policy заблокирует. Отдельно проверяй карту владения: где в админке правится каждый блок страницы, и нет ли полей, недоступных администратору. Не меняй файлы.",
159
+ "",
160
+ ].join("\n"),
161
+ "builder.md": [
162
+ "---",
163
+ "name: builder",
164
+ "description: Писатель: собирает одну единицу работы в своём worktree и сдаёт её на проверку.",
165
+ "tools: read, grep, glob, write, edit, pwsh, browser_qa, quality_gate, team_board, team_message",
166
+ "permission: workspace-write",
167
+ "---",
168
+ "",
169
+ "Ты разработчик одной единицы работы. Работай только в своём worktree. Перед правкой прочитай quality_gate action=status и инварианты проекта. После сборки сам прогоняй browser_qa audit matrix=full, interact по сценариям единицы и a11y, затем закрывай гейты evidence. Не объединяй ветку сам — сдавай на ревью координатору.",
170
+ "",
171
+ ].join("\n"),
172
+ "release-ops.md": [
173
+ "---",
174
+ "name: release-ops",
175
+ "description: Выпускает релизы: сборка, подпись, канал обновлений, бэкап, выкатка, откат.",
176
+ "tools: read, grep, glob, pwsh, remote_ops, quality_gate, team_board, team_message",
177
+ "permission: workspace-write",
178
+ "---",
179
+ "",
180
+ "Ты release-инженер. Сначала опиши откат, потом выкатку. Сборка → подпись → канал обновлений → бэкап БД → установка → кеши → запись в «Выпусках» → демо → журнал. Каждый шаг — через remote_ops с dry-run, деструктивное — с confirm. После выкатки проверь version state на прод и демо и что канал обновлений отдаёт новую версию. Не заявляй релиз без evidence в quality_gate (гейт G13).",
181
+ "",
182
+ ].join("\n"),
183
+ "demo-watch.md": [
184
+ "---",
185
+ "name: demo-watch",
186
+ "description: Следит за демо-стендом: доступность, состояние обновлений, следы демо на проде.",
187
+ "tools: read, grep, glob, remote_ops, browser_qa, team_board, team_message",
188
+ "permission: read-only",
189
+ "output: findings",
190
+ "---",
191
+ "",
192
+ "Ты наблюдатель демо. Проверяй: демо отвечает 200, версия демо совпадает с ожидаемой, сброс раз в час работает, на проде нет демо-плашек и тестовых данных, канал обновлений не содержит черновиков. Каждый finding — что именно, где, метрика. Не меняй файлы.",
123
193
  "",
124
194
  ].join("\n"),
125
195
  };
@@ -129,6 +199,24 @@ const TEAM_TEMPLATES = {
129
199
  "research.json": { name: "research", members: ["researcher", "reviewer"], lead: "coordinator", description: "Исследование с проверкой фактов" },
130
200
  "audit.json": { name: "audit", members: ["researcher", "reviewer", "verifier"], lead: "coordinator", description: "Read-only аудит: факты, код, проверка ссылок" },
131
201
  "security.json": { name: "security", members: ["security", "reviewer"], lead: "coordinator", description: "Read-only security-аудит" },
202
+ "web-accept.json": {
203
+ name: "web-accept",
204
+ members: ["ui-critic", "a11y", "cms-ops", "verifier", "reviewer"],
205
+ lead: "coordinator",
206
+ description: "Приёмка веб-работы: визуал, доступность, CMS, ссылки и независимая проверка метрик",
207
+ },
208
+ "ops.json": {
209
+ name: "ops",
210
+ members: ["release-ops", "demo-watch", "cms-ops", "verifier"],
211
+ lead: "coordinator",
212
+ description: "Эксплуатация: релиз, демо, CMS и независимая проверка состояния",
213
+ },
214
+ "web-build.json": {
215
+ name: "web-build",
216
+ members: ["builder", "ui-critic", "a11y", "verifier"],
217
+ lead: "coordinator",
218
+ description: "Сборка единицы: писатель в worktree + визуальный критик + доступность + верификатор (только явный team + worktrees=true)",
219
+ },
132
220
  };
133
221
 
134
222
  function readPackage(cwd) {
@@ -184,6 +272,20 @@ function projectMarkdown(cwd, meta) {
184
272
  meta.remote ? `Git: ${meta.remote}` : "",
185
273
  meta.commands.length > 0 ? `Verify: ${meta.commands.join(" · ")}` : "",
186
274
  "",
275
+ "## Инварианты",
276
+ "",
277
+ "- Один слой стилей на компонент: второе определение того же блока — баг процесса.",
278
+ "- `tokens.css` (или его аналог) — единственный источник цвета, отступов и типографики.",
279
+ "- Штатные пункты админки и меню не удаляются: изменение фиксируется в «Карте владения».",
280
+ "- Форма не считается рабочей, пока не проверена доставка заявки (SMTP или запись в БД).",
281
+ "- «Готово» без evidence (команда, метрика, путь к отчёту) не принимается.",
282
+ "",
283
+ "## Карта владения",
284
+ "",
285
+ "| Что на сайте | Файл / шаблон | Где правится в админке |",
286
+ "|---|---|---|",
287
+ "| Главная, герой | | |",
288
+ "",
187
289
  "Created automatically by dsh-desktop-kit on the first session. Edit freely; `/init --force` regenerates.",
188
290
  "",
189
291
  ].filter((line) => line !== "").join("\n");
@@ -286,10 +388,12 @@ export function ensureProjectScaffold(cwd) {
286
388
  if (readSettings().autoScaffold === false) return { skipped: true, reason: "autoScaffold:false", created: [], dsh: path.join(cwd, ".dsh") };
287
389
  const dsh = path.join(cwd, ".dsh");
288
390
  const configFile = path.join(dsh, "kit.json");
391
+ let config = {};
289
392
  try {
290
- const config = JSON.parse(fs.readFileSync(configFile, "utf8"));
291
- if (config?.provision === false) return { skipped: true, reason: "provision:false", created: [], dsh };
292
- } catch { /* no opt-out config */ }
393
+ config = JSON.parse(fs.readFileSync(configFile, "utf8")) ?? {};
394
+ } catch { /* no config */ }
395
+ if (config?.provision === false) return { skipped: true, reason: "provision:false", created: [], dsh };
396
+ const disabledAgents = new Set(Array.isArray(config.disabledAgents) ? config.disabledAgents.map((name) => String(name)) : []);
293
397
  const cached = PROVISION_CACHE.get(cwd);
294
398
  if (cached && Date.now() - cached < PROVISION_TTL) return { skipped: false, cached: true, created: [], dsh };
295
399
  const created = [];
@@ -303,20 +407,19 @@ export function ensureProjectScaffold(cwd) {
303
407
  }
304
408
  }
305
409
  const agentsDir = path.join(dsh, "agents");
306
- let hasAgentFiles = false;
307
- try { hasAgentFiles = fs.readdirSync(agentsDir).some((file) => file.endsWith(".md")); } catch { /* empty */ }
308
- if (!hasAgentFiles) {
309
- for (const [file, content] of Object.entries(AGENT_TEMPLATES)) {
310
- if (writeIfMissing(path.join(agentsDir, file), content)) created.push(path.join(agentsDir, file));
311
- }
410
+ /* Fill in missing roles on every provision, so an upgrade delivers new roles
411
+ * (ui-critic, a11y, cms-ops, builder) to existing projects. A role the user
412
+ * deleted on purpose can be excluded in `.dsh/kit.json`:
413
+ * { "disabledAgents": ["builder"] } */
414
+ for (const [file, content] of Object.entries(AGENT_TEMPLATES)) {
415
+ const name = file.replace(/\.md$/u, "");
416
+ if (disabledAgents.has(name)) continue;
417
+ if (writeIfMissing(path.join(agentsDir, file), content)) created.push(path.join(agentsDir, file));
312
418
  }
313
419
  const teamsDir = path.join(dsh, "teams");
314
- let hasTeamFiles = false;
315
- try { hasTeamFiles = fs.readdirSync(teamsDir).some((file) => file.endsWith(".json")); } catch { /* empty */ }
316
- if (!hasTeamFiles) {
317
- for (const [file, value] of Object.entries(TEAM_TEMPLATES)) {
318
- if (writeIfMissing(path.join(teamsDir, file), `${JSON.stringify(value, null, 2)}\n`)) created.push(path.join(teamsDir, file));
319
- }
420
+ for (const [file, value] of Object.entries(TEAM_TEMPLATES)) {
421
+ if (disabledAgents.has(file.replace(/\.json$/u, ""))) continue;
422
+ if (writeIfMissing(path.join(teamsDir, file), `${JSON.stringify(value, null, 2)}\n`)) created.push(path.join(teamsDir, file));
320
423
  }
321
424
  if (writeIfMissing(path.join(dsh, "swarm.json"), `${JSON.stringify({ enabled: true, threshold: 3, maxAgents: 4 }, null, 2)}\n`)) created.push(path.join(dsh, "swarm.json"));
322
425
  if (writeIfMissing(path.join(dsh, "agents", ".gitkeep"), "")) created.push(path.join(dsh, "agents", ".gitkeep"));
@@ -358,6 +461,28 @@ export function ensureProjectScaffold(cwd) {
358
461
  fs.writeFileSync(projectFile, projectMarkdown(cwd, meta), "utf8");
359
462
  created.push(projectFile);
360
463
  }
464
+
465
+ const designRuleFile = path.join(dsh, "rules", "design.md");
466
+ if (!fs.existsSync(designRuleFile)) {
467
+ fs.writeFileSync(
468
+ designRuleFile,
469
+ [
470
+ "---",
471
+ "always: true",
472
+ "---",
473
+ "# Правила дизайна",
474
+ "",
475
+ "- Отступы секций — только через токен (--section-y / аналог), не «100px» в компоненте.",
476
+ "- Ничего не липнет к линиям и иконкам: минимум 12px между текстом и разделителем.",
477
+ "- Ширина контента одинаковая на всех страницах одного типа (как главная).",
478
+ "- Плитки в одном ряду одного цвета и без вертикальных полос по краям.",
479
+ "- Иконки — только из набора проекта; эмодзи вместо иконок не используются.",
480
+ "- Состояния hover/focus/active заданы и не вызывают «рябь» на кнопках.",
481
+ "",
482
+ ].join("\n"),
483
+ );
484
+ created.push(designRuleFile);
485
+ }
361
486
  const ruleFile = path.join(dsh, "rules", "project.md");
362
487
  if (!fs.existsSync(ruleFile)) {
363
488
  fs.writeFileSync(ruleFile, "---\nalways: true\n---\n# Правила проекта\n\n- Источник истины: `.dsh/PROJECT.md`.\n- Перед сдачей — тесты и проверка UI.\n", "utf8");