@rt-tools/agent-kit 0.23.0 → 0.26.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 (288) hide show
  1. package/README.md +8 -2
  2. package/assets/agents/business-analyst.md +51 -50
  3. package/assets/agents/conscience.md +37 -35
  4. package/assets/agents/project-manager.md +49 -48
  5. package/assets/agents/prose-editor.md +31 -29
  6. package/assets/agents/qa-engineer.md +50 -48
  7. package/assets/agents/rules-reviewer.md +63 -58
  8. package/assets/agents/skill-curator.md +83 -78
  9. package/assets/agents/spec-critic.md +34 -29
  10. package/assets/agents/spec-writer.md +35 -32
  11. package/assets/agents/strict-teacher.md +39 -37
  12. package/assets/checks/archive-age.mjs +48 -28
  13. package/assets/checks/archive-prune.mjs +16 -14
  14. package/assets/checks/board-epics.github.mjs +75 -41
  15. package/assets/checks/board-folders.mjs +61 -0
  16. package/assets/checks/board-gh.github.mjs +35 -26
  17. package/assets/checks/board-long-work.github.mjs +24 -24
  18. package/assets/checks/board-paths.github.mjs +21 -16
  19. package/assets/checks/board-runs.github.mjs +45 -43
  20. package/assets/checks/board-titles.github.mjs +19 -17
  21. package/assets/checks/board.github.mjs +150 -128
  22. package/assets/checks/check-archive-age.mjs +23 -19
  23. package/assets/checks/check-board.github.mjs +179 -157
  24. package/assets/checks/check-descriptions.mjs +30 -29
  25. package/assets/checks/check-doc-paths.mjs +104 -82
  26. package/assets/checks/check-dupes.mjs +84 -80
  27. package/assets/checks/check-file-size.mjs +79 -70
  28. package/assets/checks/check-glossary.mjs +47 -37
  29. package/assets/checks/check-hook-scope.mjs +30 -27
  30. package/assets/checks/check-lib-layers.mjs +22 -21
  31. package/assets/checks/check-profile-drift.mjs +48 -43
  32. package/assets/checks/check-prose-style.mjs +125 -33
  33. package/assets/checks/check-push-gate.mjs +53 -50
  34. package/assets/checks/check-reuse.mjs +50 -40
  35. package/assets/checks/check-schema-drift.mjs +87 -83
  36. package/assets/checks/check-specs.mjs +155 -134
  37. package/assets/checks/check-state-next.mjs +66 -52
  38. package/assets/checks/check-states.mjs +32 -30
  39. package/assets/checks/check-styles.mjs +52 -51
  40. package/assets/checks/check-turn-map.mjs +54 -46
  41. package/assets/checks/lib-boundaries.mjs +32 -30
  42. package/assets/checks/lib-common.mjs +30 -29
  43. package/assets/checks/lib-domains.mjs +34 -34
  44. package/assets/checks/lib-manifests.mjs +17 -15
  45. package/assets/checks/lib-reexports.mjs +18 -18
  46. package/assets/checks/rt-kit-checks.config.mjs +174 -142
  47. package/assets/checks/signals.mjs +43 -39
  48. package/assets/checks/spec-anchors.mjs +114 -87
  49. package/assets/checks/spec-common.mjs +128 -84
  50. package/assets/checks/spec-contract.mjs +30 -30
  51. package/assets/checks/spec-proposed.mjs +27 -24
  52. package/assets/checks/spec-scenarios.mjs +51 -28
  53. package/assets/checks/task-new.github.mjs +85 -56
  54. package/assets/commands/feedback.md +65 -59
  55. package/assets/commands/next-session.md +64 -57
  56. package/assets/commands/skill-curator.md +83 -79
  57. package/assets/defaults/gate-map.sh +115 -91
  58. package/assets/defaults/project.sh +228 -178
  59. package/assets/defaults/shell.sh +85 -65
  60. package/assets/defaults/turn-map.md +45 -44
  61. package/assets/docs/GLOSSARY.md +142 -65
  62. package/assets/hooks/browser-device-id.sh +12 -12
  63. package/assets/hooks/browser-guard-device-id.sh +46 -14
  64. package/assets/hooks/browser-guard-no-asking.sh +5 -4
  65. package/assets/hooks/browser-guard-no-listing.sh +12 -11
  66. package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
  67. package/assets/hooks/browser-guard-require-select.sh +34 -23
  68. package/assets/hooks/claim-guard.sh +62 -56
  69. package/assets/hooks/commit-msg.sh +11 -10
  70. package/assets/hooks/conscience-guard.sh +91 -45
  71. package/assets/hooks/constitution-index.sh +16 -16
  72. package/assets/hooks/deny-tail.sh +28 -26
  73. package/assets/hooks/dev-server-guard.sh +46 -43
  74. package/assets/hooks/dispatch.sh +84 -39
  75. package/assets/hooks/docs-guard.sh +105 -86
  76. package/assets/hooks/exam-guard.sh +146 -84
  77. package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
  78. package/assets/hooks/git-guard-delivery-draft.sh +85 -0
  79. package/assets/hooks/git-guard-delivery-folder.sh +50 -43
  80. package/assets/hooks/git-guard-delivery-signature.sh +88 -52
  81. package/assets/hooks/git-guard-delivery.sh +207 -253
  82. package/assets/hooks/git-guard-main.sh +65 -26
  83. package/assets/hooks/git-guard-push-tests.sh +133 -75
  84. package/assets/hooks/glossary-load.sh +23 -22
  85. package/assets/hooks/grill-gate-ask.sh +12 -11
  86. package/assets/hooks/grill-gate.sh +94 -87
  87. package/assets/hooks/guard-note.sh +20 -19
  88. package/assets/hooks/handoff-entry-guard.sh +26 -24
  89. package/assets/hooks/handoff-write.sh +74 -67
  90. package/assets/hooks/hook-input.sh +70 -50
  91. package/assets/hooks/lint-after-edit.sh +95 -61
  92. package/assets/hooks/observe.sh +28 -26
  93. package/assets/hooks/override-write-guard.sh +23 -21
  94. package/assets/hooks/postmortem-guard.sh +42 -39
  95. package/assets/hooks/profile-check.sh +22 -20
  96. package/assets/hooks/proposal-guard.sh +57 -49
  97. package/assets/hooks/prose-style-guard.sh +19 -17
  98. package/assets/hooks/qa-dataid-guard.sh +52 -49
  99. package/assets/hooks/rerun-guard.sh +31 -30
  100. package/assets/hooks/reuse-first-guard.sh +108 -87
  101. package/assets/hooks/roles.sh +14 -14
  102. package/assets/hooks/rule-article.sh +36 -34
  103. package/assets/hooks/rule-source-guard.sh +52 -36
  104. package/assets/hooks/skill-gate-layers.sh +59 -57
  105. package/assets/hooks/skill-gate-rearm.sh +15 -8
  106. package/assets/hooks/skill-gate.sh +89 -81
  107. package/assets/hooks/skill-loaded.sh +6 -6
  108. package/assets/hooks/sql-guard-parse.sh +68 -66
  109. package/assets/hooks/sql-guard-request.sh +48 -46
  110. package/assets/hooks/sql-guard-target.sh +57 -51
  111. package/assets/hooks/sql-guard-write.sh +84 -79
  112. package/assets/hooks/sql-guard.sh +52 -47
  113. package/assets/hooks/stand-login-guard.sh +104 -0
  114. package/assets/hooks/task-context-load.sh +60 -55
  115. package/assets/hooks/task-flow-context.sh +87 -69
  116. package/assets/hooks/task-flow-draft-guard.sh +55 -48
  117. package/assets/hooks/task-flow-guard.sh +67 -64
  118. package/assets/hooks/turn-entry-load.sh +39 -32
  119. package/assets/hooks/turn-exit-guard.sh +256 -204
  120. package/assets/hooks/turn-exit-patterns.sh +53 -0
  121. package/assets/hooks/utf8.sh +11 -11
  122. package/assets/hooks/waiting-turn-guard.sh +94 -94
  123. package/assets/hooks/window-fill-guard.sh +70 -62
  124. package/assets/hooks/work-start-guard.sh +52 -49
  125. package/assets/hooks/write-targets.sh +115 -30
  126. package/assets/laws/autonomous-work.md +29 -27
  127. package/assets/laws/code-structure.md +31 -30
  128. package/assets/laws/delivery.md +148 -137
  129. package/assets/laws/entity-editing.md +52 -50
  130. package/assets/laws/entity-models.md +14 -13
  131. package/assets/laws/frontend-application.md +39 -38
  132. package/assets/laws/lib-imports.md +27 -27
  133. package/assets/laws/lists.md +31 -29
  134. package/assets/laws/navigation.md +37 -37
  135. package/assets/laws/observability.md +41 -40
  136. package/assets/laws/project-documentation.md +106 -99
  137. package/assets/laws/reuse-first.md +31 -29
  138. package/assets/laws/shared-code.md +27 -27
  139. package/assets/laws/verifiability.md +131 -114
  140. package/assets/laws/work-conduct.md +250 -250
  141. package/assets/patterns/admin-lists-screen.md +72 -69
  142. package/assets/patterns/admin-nav-item.md +51 -46
  143. package/assets/patterns/angular-patterns-state.md +32 -31
  144. package/assets/patterns/api-layer-pair.md +33 -31
  145. package/assets/patterns/autonomous-work-run.md +50 -49
  146. package/assets/patterns/browser-verification-measure.md +143 -67
  147. package/assets/patterns/browser-verification-stand.md +181 -128
  148. package/assets/patterns/component-structure-new.md +51 -42
  149. package/assets/patterns/dependencies-upgrade.md +55 -39
  150. package/assets/patterns/doc-style-human.md +93 -0
  151. package/assets/patterns/doc-style-sweep.md +82 -79
  152. package/assets/patterns/doc-style-trace.md +87 -81
  153. package/assets/patterns/doc-style-write.md +130 -122
  154. package/assets/patterns/entity-aside.md +77 -63
  155. package/assets/patterns/entity-models-new.md +37 -37
  156. package/assets/patterns/entity-store.md +33 -33
  157. package/assets/patterns/git-workflow-commit.azure.md +94 -75
  158. package/assets/patterns/git-workflow-commit.github.md +153 -129
  159. package/assets/patterns/git-workflow-commit.gitlab.md +96 -78
  160. package/assets/patterns/git-workflow-docker.md +165 -147
  161. package/assets/patterns/git-workflow-freshness.md +45 -45
  162. package/assets/patterns/git-workflow-merge.md +99 -86
  163. package/assets/patterns/git-workflow-migration.md +54 -52
  164. package/assets/patterns/git-workflow-pr-ready.md +57 -56
  165. package/assets/patterns/git-workflow-pr.azure.md +126 -121
  166. package/assets/patterns/git-workflow-pr.github.md +179 -175
  167. package/assets/patterns/git-workflow-pr.gitlab.md +138 -131
  168. package/assets/patterns/git-workflow-restart.md +35 -31
  169. package/assets/patterns/git-workflow-secrets.md +80 -73
  170. package/assets/patterns/git-workflow-stack.md +131 -106
  171. package/assets/patterns/lib-layers-move.md +62 -53
  172. package/assets/patterns/lib-layers-new.md +59 -45
  173. package/assets/patterns/observability-record.md +72 -67
  174. package/assets/patterns/platform-access-di.md +31 -29
  175. package/assets/patterns/reuse-first-extend.md +66 -61
  176. package/assets/patterns/shared-code-new.md +39 -38
  177. package/assets/patterns/spec-driven-domain.md +161 -151
  178. package/assets/patterns/spec-driven-rule.md +179 -168
  179. package/assets/patterns/spec-driven-sweep.md +41 -39
  180. package/assets/patterns/status-report-table.github.md +37 -36
  181. package/assets/patterns/styling-bem-component.md +42 -42
  182. package/assets/patterns/styling-bem-layout.md +39 -34
  183. package/assets/patterns/styling-bem-sheet.md +59 -58
  184. package/assets/patterns/task-flow-archive.md +222 -215
  185. package/assets/patterns/task-flow-close.md +215 -203
  186. package/assets/patterns/task-flow-handoff.md +154 -145
  187. package/assets/patterns/task-flow-resume.md +138 -133
  188. package/assets/patterns/task-flow-start.md +204 -192
  189. package/assets/patterns/testing-e2e.md +103 -92
  190. package/assets/patterns/testing-unit.md +77 -70
  191. package/assets/patterns/ts-procedure.md +32 -29
  192. package/assets/patterns/turn-entry-map.md +50 -48
  193. package/assets/pitfalls/agent-kit.md +152 -141
  194. package/assets/pitfalls/doc-style.md +96 -91
  195. package/assets/pitfalls/git-workflow.azure.md +49 -46
  196. package/assets/pitfalls/git-workflow.github.md +264 -234
  197. package/assets/pitfalls/git-workflow.gitlab.md +49 -45
  198. package/assets/pitfalls/spec-driven.md +73 -71
  199. package/assets/pitfalls/styling-bem.md +46 -40
  200. package/assets/pitfalls/task-flow.md +262 -246
  201. package/assets/pitfalls/testing.md +99 -92
  202. package/assets/pitfalls/turn-conduct.md +96 -81
  203. package/assets/rules/angular-patterns.md +81 -80
  204. package/assets/rules/api-layer.md +77 -74
  205. package/assets/rules/autonomous-work.md +75 -74
  206. package/assets/rules/browser-verification.md +223 -188
  207. package/assets/rules/component-structure.md +72 -69
  208. package/assets/rules/dependencies.md +74 -67
  209. package/assets/rules/deploy-flow.azure.md +118 -108
  210. package/assets/rules/deploy-flow.github.md +145 -135
  211. package/assets/rules/deploy-flow.gitlab.md +120 -110
  212. package/assets/rules/doc-style.md +209 -148
  213. package/assets/rules/entity-conventions.needs-admin.md +81 -79
  214. package/assets/rules/entity-models.md +73 -70
  215. package/assets/rules/git-workflow.azure.md +224 -228
  216. package/assets/rules/git-workflow.github.md +250 -242
  217. package/assets/rules/git-workflow.gitlab.md +218 -217
  218. package/assets/rules/lib-layers.md +85 -86
  219. package/assets/rules/lists.md +101 -97
  220. package/assets/rules/navigation.md +78 -78
  221. package/assets/rules/observability.needs-app.md +165 -153
  222. package/assets/rules/platform-access.md +76 -75
  223. package/assets/rules/reuse-first.md +153 -137
  224. package/assets/rules/shared-code.md +82 -79
  225. package/assets/rules/spec-driven.md +272 -260
  226. package/assets/rules/status-report.md +55 -58
  227. package/assets/rules/styling-bem.md +83 -72
  228. package/assets/rules/task-flow.md +282 -270
  229. package/assets/rules/testing.md +224 -188
  230. package/assets/rules/turn-conduct.md +255 -258
  231. package/assets/rules/turn-entry.md +92 -87
  232. package/assets/rules/typescript-conventions.md +94 -88
  233. package/assets/samples/specs/_template/spec.md +47 -47
  234. package/assets/samples/tasks/_template/grill.md +20 -20
  235. package/assets/samples/tasks/_template/plan.md +32 -30
  236. package/assets/samples/tasks/_template/progress.md +16 -16
  237. package/assets/skills/agent-kit-extend.md +129 -113
  238. package/assets/skills/agent-kit.md +236 -222
  239. package/assets/skills/write-a-skill.md +76 -71
  240. package/assets/templates/findings.md +19 -19
  241. package/assets/templates/gate-map.sh +16 -14
  242. package/assets/templates/implementation.md +28 -27
  243. package/assets/templates/pattern.md +17 -17
  244. package/assets/templates/pitfalls.md +6 -6
  245. package/assets/templates/postmortem.md +24 -23
  246. package/assets/templates/project.sh +24 -24
  247. package/assets/templates/proposal.md +62 -60
  248. package/assets/templates/rule.md +38 -38
  249. package/assets/workflows/feature.js +46 -46
  250. package/assets/workflows/plan.js +54 -54
  251. package/lib/catalog.d.ts +2 -0
  252. package/lib/catalog.d.ts.map +1 -1
  253. package/lib/catalog.js +4 -3
  254. package/lib/catalog.js.map +1 -1
  255. package/lib/commands.d.ts.map +1 -1
  256. package/lib/commands.js +68 -4
  257. package/lib/commands.js.map +1 -1
  258. package/lib/companion.js +3 -2
  259. package/lib/companion.js.map +1 -1
  260. package/lib/enroll.d.ts +7 -1
  261. package/lib/enroll.d.ts.map +1 -1
  262. package/lib/enroll.js +13 -4
  263. package/lib/enroll.js.map +1 -1
  264. package/lib/observations.d.ts +10 -1
  265. package/lib/observations.d.ts.map +1 -1
  266. package/lib/observations.js +1 -0
  267. package/lib/observations.js.map +1 -1
  268. package/lib/override-marks.d.ts +24 -0
  269. package/lib/override-marks.d.ts.map +1 -0
  270. package/lib/override-marks.js +98 -0
  271. package/lib/override-marks.js.map +1 -0
  272. package/lib/plan.d.ts +11 -0
  273. package/lib/plan.d.ts.map +1 -1
  274. package/lib/plan.js +10 -1
  275. package/lib/plan.js.map +1 -1
  276. package/lib/ship.d.ts +0 -7
  277. package/lib/ship.d.ts.map +1 -1
  278. package/lib/ship.js +10 -2
  279. package/lib/ship.js.map +1 -1
  280. package/lib/shipment.d.ts.map +1 -1
  281. package/lib/shipment.js +7 -3
  282. package/lib/shipment.js.map +1 -1
  283. package/lib/sync.d.ts.map +1 -1
  284. package/lib/sync.js +45 -11
  285. package/lib/sync.js.map +1 -1
  286. package/package.json +1 -1
  287. package/rt-tools-agent-kit-0.26.0.tgz +0 -0
  288. package/rt-tools-agent-kit-0.23.0.tgz +0 -0
@@ -1,22 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Общая работа с очередью работ: борда проекта, тикеты и их состояние.
3
+ * Shared work with the work queue: the project board, the tasks and their state.
4
4
  *
5
- * Один и тот же вопрос — «задача N в порядке?» — задают трое: команда заведения
6
- * задачи (tools/task-new.mjs), сверка очереди (tools/check-board.mjs) и гард
7
- * поставки (.claude/hooks/git-guard-delivery.sh). Пока ответ на него был записан
8
- * готовыми строками в паттерне, каждый из них отвечал по-своему: тикет заводился
9
- * без добавления на борду, и две задачи так и простояли вне очереди.
5
+ * One question — "is task N in order?" — is asked by three callers: the task creation command
6
+ * (tools/task-new.mjs), the queue audit (tools/check-board.mjs) and the delivery guard
7
+ * (.claude/hooks/git-guard-delivery.sh). While the answer stood as ready-made lines in a pattern,
8
+ * each answered its own way: two tasks were created outside the board that way.
10
9
  *
11
- * Борда к репозиторию не привязана — `projectsV2` у него пуст, — поэтому тикет
12
- * попадает на неё только явным вызовом, а не сам.
10
+ * The board is not bound to the repository — its `projectsV2` is empty — so a task lands on it
11
+ * only by an explicit call. The guard calls this file as a command: `node tools/board.mjs task
12
+ * <number>` prints the task state as one line of JSON; `move <number> <column>` moves its column,
13
+ * also `npm run task:move`.
13
14
  *
14
- * Гард зовёт этот файл как команду: `node tools/board.mjs task <номер>` печатает
15
- * состояние задачи одной строкой JSON. Колонку задачи двигает второй режим —
16
- * `node tools/board.mjs move <номер> <колонка>`, он же `npm run task:move`.
17
- *
18
- * Нет сети или нет токена — это не расхождение, а невозможность проверить:
19
- * функции возвращают `null`, командный режим печатает `{"offline":true}`.
15
+ * No network or no token is not a discrepancy but an inability to check: the functions return
16
+ * `null`, the command mode prints `{"offline":true}`.
20
17
  */
21
18
  import { existsSync, readFileSync, readdirSync, writeFileSync } from 'node:fs';
22
19
  import { join } from 'node:path';
@@ -24,58 +21,59 @@ import { join } from 'node:path';
24
21
  import { OfflineError, botToken, gh, ghJson, graphql } from './board-gh.mjs';
25
22
  import { CONFIG, ROOT } from './rt-kit-checks.config.mjs';
26
23
 
27
- // Наружу клиент уезжает отсюда прежним именем: его зовут у борды три соседних модуля и команды
28
- // дерева, и переписывать их ради переезда объявления значило бы платить за деление файла дважды.
24
+ // The client leaves here under its old name: three neighbouring modules and the tree's commands
25
+ // call it from the board module, and rewriting them for the moved declaration would mean paying
26
+ // for the file split twice.
29
27
  export { OfflineError, botToken, gh, ghJson, graphql };
30
28
 
31
29
  /**
32
- * Адрес борды и её колонки живут в `.claude/rt-kit/checks.json`: идентификаторы проекта, поля
33
- * и вариантов выдаёт сам GitHub при заведении борды, и угадать их нельзя. Пустое значение
34
- * означает, что дерево борду не завело, — тогда работа с ней отказывается вслух, а не молча
35
- * правит чужую.
30
+ * The board address and its columns live in `.claude/rt-kit/checks.json`: the identifiers of the
31
+ * project, the fields and the options are issued by GitHub itself when the board is created, and
32
+ * they cannot be guessed. An empty value means the tree has not created a board — then work with
33
+ * it refuses out loud instead of silently editing someone else's.
36
34
  */
37
35
  const BOARD = CONFIG.board ?? {};
38
36
 
39
37
  export const OWNER = BOARD.owner ?? '';
40
38
  export const REPO = BOARD.repo ?? '';
41
39
  export const PROJECT_ID = BOARD.projectId ?? '';
42
- /** Поле «Status» борды — колонка, в которой задача стоит сейчас */
40
+ /** The board's "Status" field — the column the task stands in now */
43
41
  export const STATUS_FIELD_ID = BOARD.statusFieldId ?? '';
44
42
  /**
45
- * Колонки борды под своими короткими именами. Ход работы читается по ним, а не по
46
- * тому, есть ли у задачи ветка: ветки на борде не видно вовсе.
43
+ * The board columns under their short names. The progress is read by them, not by whether the
44
+ * task has a branch: branches are not visible on the board at all.
47
45
  */
48
46
  export const STATUS_OPTIONS = BOARD.statusOptions ?? {};
49
- /** Колонка вновь заведённой задачи */
47
+ /** The column of a newly created task */
50
48
  export const BACKLOG_OPTION_ID = STATUS_OPTIONS.backlog?.id ?? '';
51
- /** Колонка задачи, взятой в работу, и задачи, PR по которой ждёт разбора */
49
+ /** The column of a task taken into work, and of a task whose PR waits for review */
52
50
  export const IN_PROGRESS_STATUS = 'in-progress';
53
51
  export const IN_REVIEW_STATUS = 'in-review';
54
- /** Учётная запись машинной работы — та же, от которой идут коммиты */
52
+ /** The machine account — the same one the commits come from */
55
53
  export const BOT = BOARD.bot ?? '';
56
54
  /**
57
- * Ключ задач: даёт ветку `<КЛЮЧ>-<номер>-<slug>` и заголовок `[<КЛЮЧ>-<номер>]`.
55
+ * The task key: gives the branch `<KEY>-<number>-<slug>` and the title `[<KEY>-<number>]`.
58
56
  *
59
- * Единственное в форме имени, что дерево выбирает само, — и потому единственное, что закон о
60
- * поставке разрешает настраивать. Назвать его дерево обязано: из пустого ключа собирается
61
- * `[-317]`, и такой заголовок не совпадает ни с чем. Отказ поимённый, потому что молчание
62
- * здесь дороже: сверка очереди не падает, а помечает каждую задачу неправильно названной, и
63
- * настоящее расхождение тонет среди этих строк.
57
+ * The only thing in the name form that the tree chooses itself — and so the only thing the
58
+ * delivery law allows to configure. The tree must name it: an empty key assembles into `[-317]`,
59
+ * and such a title matches nothing. The refusal is by name, because silence costs more here: the
60
+ * queue audit does not fail but marks every task as wrongly named, and the real discrepancy drowns
61
+ * among those lines.
64
62
  */
65
63
  export const TASK_KEY = BOARD.taskKey ?? '';
66
64
  if (PROJECT_ID && !TASK_KEY) {
67
65
  console.error(
68
- 'board: ключ задач не назван — задать его ключом `board.taskKey` в .claude/rt-kit/checks.json.\n' +
69
- 'Из него собираются заголовок задачи `[<КЛЮЧ>-<номер>]` и имя ветки `<КЛЮЧ>-<номер>-<краткое-имя>`.'
66
+ 'board: the task key is not named — set it by the key `board.taskKey` in .claude/rt-kit/checks.json.\n' +
67
+ 'The task title `[<KEY>-<number>]` and the branch name `<KEY>-<number>-<short-name>` are assembled from it.'
70
68
  );
71
69
  process.exit(1);
72
70
  }
73
- /** Кого запрашивают на разбор: без ревьювера PR не попадает во входящие владельца. */
71
+ /** Who is requested for review: without a reviewer the PR does not reach the owner's inbox. */
74
72
  export const REVIEWER = BOARD.reviewer ?? '';
75
73
  /**
76
- * Тикеты, стоящие на борде, и элементы борды, тикетами не являющиеся. У каждого тикета —
77
- * его элемент борды и колонка: переставить задачу можно только по идентификатору элемента,
78
- * а не по номеру тикета, и берётся он здесь же, чтобы не спрашивать борду дважды.
74
+ * Tasks standing on the board, and board items that are not tasks. Each task has its board item
75
+ * and column: a task can be moved only by the item identifier, not by the task number, and it is
76
+ * taken right here so as not to ask the board twice.
79
77
  */
80
78
  export function fetchBoard(options) {
81
79
  const items = new Map();
@@ -95,7 +93,7 @@ export function fetchBoard(options) {
95
93
  if (content.__typename === 'Issue') {
96
94
  items.set(content.number, { itemId: node.id, status: node.status?.name ?? null });
97
95
  } else {
98
- foreign.push(content.__typename === 'PullRequest' ? `PR #${content.number}` : `черновик «${content.title}»`);
96
+ foreign.push(content.__typename === 'PullRequest' ? `PR #${content.number}` : `a draft «${content.title}»`);
99
97
  }
100
98
  }
101
99
  if (!page.pageInfo.hasNextPage) {
@@ -106,17 +104,17 @@ export function fetchBoard(options) {
106
104
  }
107
105
 
108
106
  /**
109
- * Перевод задачи в другую колонку. Состояние задачи на борде — единственное, по чему
110
- * видно ход работы: ветку и открытый PR борда сама не читает.
107
+ * Moving a task to another column. The task's state on the board is the only thing the progress
108
+ * is visible by: the board does not read the branch or the open PR itself.
111
109
  */
112
110
  export function moveTask(number, status, options) {
113
111
  const option = STATUS_OPTIONS[status];
114
112
  if (!option) {
115
- throw new Error(`неизвестная колонка «${status}» — есть ${Object.keys(STATUS_OPTIONS).join(', ')}`);
113
+ throw new Error(`an unknown column «${status}» — there are ${Object.keys(STATUS_OPTIONS).join(', ')}`);
116
114
  }
117
115
  const item = fetchBoard(options).items.get(number);
118
116
  if (!item) {
119
- throw new Error(`задачи #${number} нет на борде — заводится она командой npm run task:new`);
117
+ throw new Error(`the task #${number} is not on the board — it is created by the command npm run task:new`);
120
118
  }
121
119
  graphql(
122
120
  `mutation { updateProjectV2ItemFieldValue(input: {projectId: "${PROJECT_ID}", itemId: "${item.itemId}", fieldId: "${STATUS_FIELD_ID}", value: {singleSelectOptionId: "${option.id}"}}) { projectV2Item { id } } }`,
@@ -125,9 +123,22 @@ export function moveTask(number, status, options) {
125
123
  return { from: item.status, to: option.name };
126
124
  }
127
125
 
126
+ /**
127
+ * Whose eyes the state was taken with: `machine` — the call went with the machine account's
128
+ * token, `client` — as whoever the hosting client is logged in as. A task is read with the token,
129
+ * a PR without it, and from the output alone this cannot be told apart: a tree whose machine
130
+ * account was restricted by the hosting got a person's picture and took it as checked. The login
131
+ * is not printed here — it would take a second network request, and the guards read the answer
132
+ * without it.
133
+ */
134
+ export function viewerOf(options) {
135
+ return options?.token ? 'machine' : 'client';
136
+ }
137
+
128
138
  export function fetchIssues(state, options) {
129
- // Тело берётся вместе со списком, а не поштучным вызовом на задачу: связь с эпиком читается
130
- // как раз в нём, а четыреста вызовов вида «покажи одну задачу» стоили бы дороже всей сверки.
139
+ // The body is taken together with the list, not by a call per task: the link to an epic is
140
+ // read exactly there, and four hundred calls of the kind "show one task" would cost more than
141
+ // the whole audit.
131
142
  return ghJson(
132
143
  ['issue', 'list', '--state', state, '--limit', '400', '--json', 'number,title,state,assignees,labels,body'],
133
144
  options,
@@ -146,16 +157,17 @@ export function fetchIssue(number, options) {
146
157
  }
147
158
 
148
159
  /**
149
- * Состояние заявки в терминах поставки: существует, черновик ли она и есть ли у неё разбор —
150
- * запрошенный ревьювер либо уже оставленный отзыв.
160
+ * The PR state in delivery terms: whether it exists, whether it is a draft and whether it has a
161
+ * review — a requested reviewer or a review already left.
151
162
  *
152
- * Ревьювера до этой правки не спрашивал никто: он жил прозой в паттерне о коммите и PR, и
153
- * запрос разбора на самого себя хостинг принимает молча — разбор при этом выглядит
154
- * запрошенным, а его нет.
163
+ * Before this edit nobody asked about the reviewer: it lived as prose in the pattern about the
164
+ * commit and the PR, and the hosting silently accepts a review request to oneself — the review
165
+ * then looks requested, and there is none.
155
166
  */
156
167
  export function pullState(ref, options) {
157
- // Ссылка на заявку необязательна: клиент хостинга без неё берёт заявку текущей ветки, и
158
- // это самая короткая форма вызова. Требовать номер значило бы молча пропускать её.
168
+ // The PR reference is optional: without it the hosting client takes the PR of the current
169
+ // branch, and that is the shortest form of the call. Requiring a number would mean silently
170
+ // skipping it.
159
171
  const target = ref === undefined || ref === null || `${ref}`.trim() === '' ? [] : [`${ref}`.trim()];
160
172
  let pull;
161
173
  try {
@@ -164,32 +176,34 @@ export function pullState(ref, options) {
164
176
  if (error instanceof OfflineError) {
165
177
  throw error;
166
178
  }
167
- return { exists: false };
179
+ return { exists: false, viewer: viewerOf(options) };
168
180
  }
169
181
  if (!pull) {
170
- return { exists: false };
182
+ return { exists: false, viewer: viewerOf(options) };
171
183
  }
172
184
  const requested = (pull.reviewRequests ?? []).map((entry) => entry.login ?? entry.name ?? '').filter(Boolean);
173
185
  const reviewed = (pull.latestReviews ?? []).map((entry) => entry.author?.login ?? '').filter(Boolean);
174
186
  const reviewers = [...new Set([...requested, ...reviewed])];
175
187
  return {
176
188
  exists: true,
189
+ viewer: viewerOf(options),
177
190
  number: pull.number ?? null,
178
191
  draft: pull.isDraft === true,
179
192
  author: pull.author?.login ?? null,
180
193
  reviewers,
181
194
  reviewed: reviewers.filter((login) => login !== (pull.author?.login ?? null)).length > 0,
182
- // Конфликт приезжает чужим слиянием, без единого действия автора заявки. Судится только
183
- // прямое «конфликтует»: `UNKNOWN` означает, что хостинг ещё считает, и читать его как
184
- // конфликт значило бы отбивать работу на каждой свежей вершине.
195
+ // A conflict arrives through someone else's merge, without a single action by the PR
196
+ // author. Only a direct "conflicting" is judged: `UNKNOWN` means the hosting is still
197
+ // computing, and reading it as a conflict would mean refusing work on every fresh head.
185
198
  conflicting: pull.mergeable === 'CONFLICTING',
186
199
  };
187
200
  }
188
201
 
189
202
  /**
190
- * На сколько коммитов ветка заявки позади главной. Гард судит основание в минуту открытия, а
191
- * заявка стоит днями: влитого за это время не видит ни он, ни зелёный прогон. Сравнить нечем —
192
- * ноль: сверка без доступа отбивала бы работу вместо промаха; без сети летит отказ, как везде.
203
+ * How many commits the PR branch is behind main. The guard judges the base at the minute of
204
+ * opening, and a PR stands for days: what was merged in that time is seen neither by it nor by a
205
+ * green run. Nothing to compare with — zero: an audit without access would refuse work instead
206
+ * of a miss; without network the refusal is thrown, as everywhere.
193
207
  */
194
208
  export function behindMain(branch, mainBranch, options) {
195
209
  if (!OWNER || !REPO || !branch || !mainBranch) {
@@ -209,27 +223,26 @@ export function behindMain(branch, mainBranch, options) {
209
223
  }
210
224
  }
211
225
 
212
- /** Вершина берётся вместе с остальным: по ней судят и папку задачи, и прогон, а спросить её
213
- * потом значило бы второй вызов на каждый PR. */
226
+ /** The head is taken together with the rest: both the task folder and the run are judged by it,
227
+ * and asking for it later would mean a second call per PR. */
214
228
  export function fetchOpenPulls(options) {
215
229
  return ghJson(
216
- ['pr', 'list', '--state', 'open', '--limit', '200', '--json', 'number,title,headRefName,headRefOid,isDraft,body,mergeable'],
230
+ ['pr', 'list', '--state', 'open', '--limit', '200', '--json', 'number,title,headRefName,headRefOid,isDraft,body,mergeable,baseRefName'],
217
231
  options
218
232
  );
219
233
  }
220
234
 
221
235
  /**
222
- * Свои открытые заявки, помеченные конфликтующими. Спрашивается это в минуту, когда берётся
223
- * новая работа: пока отданное конфликтует, влить его человек не может, и каждая следующая
224
- * заявка прибавляет к очереди ещё одну, которую придётся догонять.
236
+ * Own open PRs marked as conflicting. Asked at the minute new work is taken: while what was
237
+ * handed over conflicts, a person cannot merge it, and every next PR adds one more to the queue.
225
238
  *
226
- * Свои — значит открытые машинной записью дерева. Дерево, её не назвавшее, не спрашивается
227
- * вовсе: `@me` отвечал бы учётной записью, под которой залогинен клиент хостинга, а это чаще
228
- * всего владелец, и его заявки исполнителю не чинить.
239
+ * Own means opened by the tree's machine account. A tree that has not named it is not asked at
240
+ * all: `@me` would answer with the account the hosting client is logged in as — most often the
241
+ * owner, whose PRs are not the executor's to fix.
229
242
  *
230
- * Судится только прямое `CONFLICTING`. `UNKNOWN` означает, что хостинг ещё считает сливаемость
231
- * — он пересчитывает её после каждой правки главной ветки, — и читать его как конфликт значило
232
- * бы отбивать работу на каждой свежей вершине.
243
+ * Only a direct `CONFLICTING` is judged. `UNKNOWN` means the hosting is still computing
244
+ * mergeability — it recomputes it after every edit of the main branch — and reading it as a
245
+ * conflict would refuse work on every fresh head.
233
246
  */
234
247
  export function conflictingPulls(options) {
235
248
  if (!BOT) {
@@ -244,9 +257,9 @@ export function conflictingPulls(options) {
244
257
  .map((pull) => ({ number: pull.number ?? null, branch: pull.headRefName ?? '' }));
245
258
  }
246
259
 
247
- /** `[<КЛЮЧ>-<номер>]` в начале заголовка — единственная форма номера в названиях */
260
+ /** `[<KEY>-<number>]` at the start of the title — the only form of the number in names */
248
261
  export const TITLE_NUMBER = new RegExp(`^\\[${TASK_KEY}-(\\d+)\\]\\s+\\S`);
249
- /** `<КЛЮЧ>-<номер>-<slug>` — имя ветки, отведённой под задачу */
262
+ /** `<KEY>-<number>-<slug>` — the name of the branch set aside for the task */
250
263
  export const BRANCH_NUMBER = new RegExp(`^${TASK_KEY}-(\\d+)-[a-z0-9][a-z0-9-]*$`);
251
264
 
252
265
  export function numberFromTitle(title) {
@@ -255,42 +268,41 @@ export function numberFromTitle(title) {
255
268
  }
256
269
 
257
270
  /**
258
- * Номер задачи по имени папки. Ключ впереди необязателен: имя ветки вида `chore/312-slug`
259
- * тоже законно, и папка под ним называется голым числом. Если сверка не распознает в имени
260
- * номер, папка будет лежать среди текущих сколько угодно — одну такую нашли грепом, а не
261
- * проверкой.
271
+ * The task number by the folder name. The key in front is optional: a branch name of the kind
272
+ * `chore/312-slug` is lawful too, and the folder under it is named by the bare number. If the
273
+ * audit does not recognise a number in the name, the folder will lie among the current ones for
274
+ * any length of time — one such was found by grep, not by a check.
262
275
  */
263
276
  export function numberFromTaskDir(name) {
264
- // Ключ подставляем, только если дерево его задало: из пустого получилось бы `^(?:-)?`, и
265
- // папка с ключом в имени вообще перестала бы распознаваться.
277
+ // The key is substituted only if the tree has set it: an empty one would give `^(?:-)?`, and
278
+ // a folder with the key in its name would stop being recognised at all.
266
279
  const prefix = TASK_KEY ? `(?:${TASK_KEY}-)?` : '';
267
280
  const match = new RegExp(`^${prefix}(\\d+)-`).exec(name ?? '');
268
281
  return match ? Number(match[1]) : null;
269
282
  }
270
283
 
271
284
  /**
272
- * Папки задач, включая вложенные. Путь повторяет имя ветки целиком, вместе с косой, поэтому
273
- * папка ветки `chore/312-slug` лежит на втором уровне — обход только по верхнему её не видит.
285
+ * Task folders, including nested ones. The path repeats the branch name in full, slash included,
286
+ * so the folder of branch `chore/312-slug` lies on the second level — a walk over the top level
287
+ * alone does not see it.
274
288
  *
275
- * Вглубь спускаемся ровно на один уровень: в имени ветки одна косая, а всё, что глубже, папкой
276
- * задачи уже не будет — зато туда попал бы архив, если дерево держит его внутри.
289
+ * We descend exactly one level: a branch name has one slash, and anything deeper is no longer a
290
+ * task folder — but the archive would get in there, if the tree keeps it inside.
277
291
  */
278
- /** Шапка раскладки: по ней разложенную копию узнаёт и гард места правки. */
292
+ /** The layout header: by it the laid-out copy is recognised, and so is the edit-place guard. */
279
293
  const STAMP = /^<!-- rt-kit v[^\n]*-->\n/m;
280
294
 
281
295
  /**
282
- * Снять с копий образца шапку раскладки.
283
- *
284
- * Образец разложен пакетом и шапку несёт по праву: его кладёт и обновляет раскладка. Копия под
285
- * задачу — уже текст проекта, тем же доводом, каким пакет кладёт без шапки черновик компаньона:
286
- * с первой правки сверять в ней нечего.
296
+ * Remove the layout header from copies of the template.
287
297
  *
288
- * Оставленная в копии, шапка отбивает первую же правку разбора просьбы — то есть первое движение
289
- * любой работы, — и отказ уводит править образец пакета вместо копии под задачу. Снималась она
290
- * тремя строками руками, каждой работой заново.
298
+ * The template carries the header by right: the layout puts it there and updates it. A copy under
299
+ * a task is already the project's text, by the same argument by which the companion draft is laid
300
+ * out without a header: from the first edit there is nothing to audit in it. Left in the copy, the
301
+ * header refuses the very first edit of the grill and sends one to edit the package template
302
+ * instead. It was removed by three lines by hand, anew with every piece of work.
291
303
  *
292
- * Возвращает имена файлов, с которых шапка снята: по ним сценарий и судит, что снятие работает,
293
- * а вызывающий — что папка собрана.
304
+ * Returns the names of the files the header was removed from: by them the scenario judges that
305
+ * the removal works, and the caller that the folder is assembled.
294
306
  */
295
307
  export function unstampFolder(folder) {
296
308
  const cleaned = [];
@@ -344,18 +356,19 @@ export function numberFromBranch(branch) {
344
356
  }
345
357
 
346
358
  /**
347
- * Состояние задачи в терминах закона: существует, стоит в очереди работ, у неё есть
348
- * исполнитель, она ещё не закрыта. Закрытая означает, что ветка под неё уже въехала
349
- * в главную, а у задачи ветка одна.
359
+ * The task state in the law's terms: it exists, it stands in the work queue, it has an executor,
360
+ * it is not yet closed. Closed means the branch under it has already gone into main, and a task
361
+ * has one branch.
350
362
  */
351
363
  export function taskState(number, options) {
352
364
  const issue = fetchIssue(number, options);
353
365
  if (!issue) {
354
- return { exists: false };
366
+ return { exists: false, viewer: viewerOf(options) };
355
367
  }
356
368
  const item = fetchBoard(options).items.get(issue.number);
357
369
  return {
358
370
  exists: true,
371
+ viewer: viewerOf(options),
359
372
  title: issue.title,
360
373
  open: issue.state === 'OPEN',
361
374
  onBoard: item !== undefined,
@@ -368,50 +381,55 @@ export function taskState(number, options) {
368
381
  }
369
382
 
370
383
  /**
371
- * Ответ очереди работ о заведённой задаче, сложенный в строки, и приговор: обеспечена работа
372
- * или нет.
384
+ * The work queue's answer about a created task, folded into lines, and the verdict: secured or not.
373
385
  *
374
- * Отделено от вызовов сети намеренно. Заведение кончается не выводом команды, а ответом
375
- * очереди, и решение о том, что напечатать и чем кончиться, — это то самое место, где
376
- * шестнадцать задач подряд прошли как успешные, не попав в очередь ни одна. Внутри вызовов
377
- * сети оно проверяется только живой бордой, то есть не проверяется никогда.
386
+ * Separated from the network calls on purpose. Creation ends not with the command output but with
387
+ * the queue's answer, and the decision of what to print and how to end is exactly where sixteen
388
+ * tasks in a row passed as successful without one reaching the queue. Inside the network calls it
389
+ * is checked only by a live board, that is, never.
378
390
  *
379
- * `state` — то, что вернул `taskState`, либо `{ offline: <причина> }`, если спросить не удалось.
391
+ * `state` — what `taskState` returned, or `{ offline: <reason> }` if asking failed.
380
392
  */
381
393
  export function describeTaskState(number, state) {
382
394
  if (state?.offline) {
383
395
  return {
384
396
  ok: false,
385
397
  lines: [
386
- `в очереди работ: спросить не удалось — ${state.offline}`,
387
- 'состояние очереди неизвестно, и заведённым это не считается',
398
+ `in the work queue: could not be asked — ${state.offline}`,
399
+ 'the state of the queue is unknown, and that does not count as created',
388
400
  ],
389
401
  };
390
402
  }
391
403
  if (!state?.exists) {
392
- return { ok: false, lines: [`задачи #${number} у хостинга нет — заведение не состоялось`] };
404
+ return { ok: false, lines: [`the hosting has no task #${number} — the creation did not happen`] };
393
405
  }
394
406
  if (!state.onBoard) {
395
407
  return {
396
408
  ok: false,
397
- lines: [`в очереди работ: НЕТ`, 'задача, которой нет в очереди, работой не обеспечена — по ней никто не придёт'],
409
+ lines: [`in the work queue: NO`, 'a task that is not in the queue is backed by no work — nobody will come for it'],
398
410
  };
399
411
  }
400
412
 
401
- const column = state.status ? `колонка «${state.status}»` : 'колонки нет';
413
+ const column = state.status ? `the column «${state.status}»` : 'there is no column';
402
414
  if (!state.assigned) {
403
415
  return {
404
416
  ok: false,
405
- lines: [`в очереди работ: ${column}, исполнителя нет`, 'ничья задача стоит в очереди невидимой для того, кто её делает'],
417
+ lines: [`in the work queue: ${column}, no assignee`, 'a task belonging to nobody stands in the queue invisible to whoever does it'],
406
418
  };
407
419
  }
408
- return { ok: true, lines: [`в очереди работ: ${column}, исполнитель ${state.assignees.join(', ')}`] };
420
+ return { ok: true, lines: [`in the work queue: ${column}, assignee ${state.assignees.join(', ')}`] };
409
421
  }
410
422
 
411
423
  const isEntryPoint = process.argv[1] && import.meta.url === `file://${process.argv[1]}`;
424
+ // The machine account's token is substituted here too, as in the column move. Without it the
425
+ // client goes as whoever is logged in, and during a guard's turn nobody is logged in: the hosting
426
+ // answers that the repository does not exist at all, reading the task returns nothing, and "there
427
+ // was nothing to ask with" becomes indistinguishable from "the task does not exist". On such an
428
+ // answer the delivery guard refused opening a PR with five mutually exclusive reasons at once —
429
+ // no task, the task is closed, the task is not in the queue.
412
430
  if (isEntryPoint && process.argv[2] === 'task') {
413
431
  try {
414
- process.stdout.write(`${JSON.stringify(taskState(Number(process.argv[3])))}\n`);
432
+ process.stdout.write(`${JSON.stringify(taskState(Number(process.argv[3]), { token: botToken() ?? undefined }))}\n`);
415
433
  } catch (error) {
416
434
  if (error instanceof OfflineError) {
417
435
  process.stdout.write('{"offline":true}\n');
@@ -424,6 +442,10 @@ if (isEntryPoint && process.argv[2] === 'task') {
424
442
 
425
443
  if (isEntryPoint && process.argv[2] === 'pr') {
426
444
  try {
445
+ // There is no token here on purpose: the review fields need access to the organisation's
446
+ // accounts, which the machine account was not given, and a request with it is refused on
447
+ // rights entirely. A client without a token goes as whoever is logged in, and for a person
448
+ // it answers.
427
449
  process.stdout.write(`${JSON.stringify(pullState(process.argv[3]))}\n`);
428
450
  } catch (error) {
429
451
  if (error instanceof OfflineError) {
@@ -435,12 +457,12 @@ if (isEntryPoint && process.argv[2] === 'pr') {
435
457
  }
436
458
  }
437
459
 
438
- // Свои конфликтующие заявки одной строкой JSON: `{"conflicting":[{"number":…,"branch":…}]}`.
439
- // Зовёт её гард поставки перед тем, как пустить взятие новой работы. Дерево без машинной записи
440
- // отвечает пустым списком: спрашивать не о ком.
460
+ // Own conflicting PRs as one line of JSON: `{"conflicting":[{"number":…,"branch":…}]}`.
461
+ // The delivery guard calls it before letting new work be taken. A tree without a machine account
462
+ // answers with an empty list: there is nobody to ask about.
441
463
  if (isEntryPoint && process.argv[2] === 'conflicts') {
442
464
  try {
443
- process.stdout.write(`${JSON.stringify({ conflicting: conflictingPulls() ?? [] })}\n`);
465
+ process.stdout.write(`${JSON.stringify({ conflicting: conflictingPulls({ token: botToken() ?? undefined }) ?? [] })}\n`);
444
466
  } catch (error) {
445
467
  if (error instanceof OfflineError) {
446
468
  process.stdout.write('{"offline":true}\n');
@@ -451,26 +473,26 @@ if (isEntryPoint && process.argv[2] === 'conflicts') {
451
473
  }
452
474
  }
453
475
 
454
- // Перевод колонки правит борду. Токен машинной записи здесь необязателен: не назвавшее его
455
- // дерево правит борду учётной записью, под которой залогинен клиент хостинга. Требование
456
- // токена держало бы очередь работ у дерева, машинной записи не заводившего, и у дерева, чью
457
- // запись ограничил хостинг. Отсутствие связи при этом — по-прежнему отказ, а не пропуск:
458
- // непереставленная задача молча остаётся в прежней колонке, и расхождение всплывает только
459
- // сверкой очереди.
476
+ // The column move edits the board. The machine account's token is optional here: a tree that has
477
+ // not named it edits the board as the account the hosting client is logged in as. Requiring the
478
+ // token would hold the work queue back from a tree that created no machine account, and from a
479
+ // tree whose account the hosting restricted. No connection is still a refusal, not a skip: a task
480
+ // left unmoved silently stays in its old column, and the discrepancy surfaces only through the
481
+ // queue audit.
460
482
  if (isEntryPoint && process.argv[2] === 'move') {
461
483
  const number = Number(process.argv[3]);
462
484
  const status = process.argv[4];
463
485
  if (!Number.isInteger(number) || !status) {
464
- console.error(`board: нужен номер задачи и колонка — node tools/board.mjs move 263 ${IN_PROGRESS_STATUS}`);
486
+ console.error(`board: a task number and a column are needed — node tools/board.mjs move 263 ${IN_PROGRESS_STATUS}`);
465
487
  process.exit(1);
466
488
  }
467
489
  const token = botToken() ?? undefined;
468
490
  try {
469
491
  const moved = moveTask(number, status, { token });
470
- console.log(`#${number}: ${moved.from ?? 'вне колонок'} → ${moved.to}`);
492
+ console.log(`#${number}: ${moved.from ?? 'outside the columns'} → ${moved.to}`);
471
493
  } catch (error) {
472
- const reason = error instanceof OfflineError ? `нет связи с GitHub: ${error.message}` : String(error.message ?? error);
473
- console.error(`board: задача #${number} осталась на прежнем месте — ${reason}`);
494
+ const reason = error instanceof OfflineError ? `no connection to GitHub: ${error.message}` : String(error.message ?? error);
495
+ console.error(`board: the task #${number} stayed in its former place — ${reason}`);
474
496
  process.exit(1);
475
497
  }
476
498
  }