@pecot/workflow-mcp 5.0.0 → 7.0.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 (188) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +27 -22
  3. package/cli/dist/cli.js +6 -1
  4. package/cli/dist/commands/board-add.d.ts +3 -0
  5. package/cli/dist/commands/board-add.js +69 -0
  6. package/cli/dist/commands/board-judgment.d.ts +69 -0
  7. package/cli/dist/commands/board-judgment.js +150 -0
  8. package/cli/dist/commands/board-move.d.ts +3 -0
  9. package/cli/dist/commands/board-move.js +65 -0
  10. package/cli/dist/commands/board-readiness.d.ts +34 -0
  11. package/cli/dist/commands/board-readiness.js +108 -0
  12. package/cli/dist/commands/board-show.d.ts +3 -0
  13. package/cli/dist/commands/board-show.js +75 -0
  14. package/cli/dist/commands/board-sync.d.ts +3 -0
  15. package/cli/dist/commands/board-sync.js +120 -0
  16. package/cli/dist/commands/board-view.d.ts +151 -0
  17. package/cli/dist/commands/board-view.js +293 -0
  18. package/cli/dist/commands/board.d.ts +3 -0
  19. package/cli/dist/commands/board.js +12 -0
  20. package/cli/dist/commands/branch.d.ts +3 -0
  21. package/cli/dist/commands/branch.js +111 -0
  22. package/cli/dist/commands/command-binding.js +4 -0
  23. package/cli/dist/commands/command-definition.d.ts +39 -8
  24. package/cli/dist/commands/command-definition.js +20 -7
  25. package/cli/dist/commands/command-help.js +2 -2
  26. package/cli/dist/commands/command-hint.d.ts +5 -0
  27. package/cli/dist/commands/command-hint.js +13 -0
  28. package/cli/dist/commands/command-stop.d.ts +5 -3
  29. package/cli/dist/commands/command-stop.js +7 -6
  30. package/cli/dist/commands/failure-kind.d.ts +3 -0
  31. package/cli/dist/commands/failure-kind.js +35 -0
  32. package/cli/dist/commands/failure.d.ts +6 -0
  33. package/cli/dist/commands/failure.js +29 -3
  34. package/cli/dist/commands/github-client.d.ts +6 -2
  35. package/cli/dist/commands/github-client.js +13 -3
  36. package/cli/dist/commands/help.js +8 -13
  37. package/cli/dist/commands/issue-board.d.ts +61 -0
  38. package/cli/dist/commands/issue-board.js +85 -1
  39. package/cli/dist/commands/issue-comment.js +66 -30
  40. package/cli/dist/commands/issue-create.js +632 -92
  41. package/cli/dist/commands/issue-dependency.d.ts +3 -0
  42. package/cli/dist/commands/issue-dependency.js +310 -0
  43. package/cli/dist/commands/issue-readiness.d.ts +122 -0
  44. package/cli/dist/commands/issue-readiness.js +253 -0
  45. package/cli/dist/commands/issue-reopen.d.ts +3 -0
  46. package/cli/dist/commands/issue-reopen.js +130 -0
  47. package/cli/dist/commands/issue-shared.d.ts +33 -20
  48. package/cli/dist/commands/issue-shared.js +84 -76
  49. package/cli/dist/commands/issue-show.d.ts +3 -0
  50. package/cli/dist/commands/issue-show.js +239 -0
  51. package/cli/dist/commands/issue.d.ts +0 -1
  52. package/cli/dist/commands/issue.js +6 -8
  53. package/cli/dist/commands/names.d.ts +33 -0
  54. package/cli/dist/commands/names.js +63 -0
  55. package/cli/dist/commands/output.d.ts +32 -4
  56. package/cli/dist/commands/output.js +28 -8
  57. package/cli/dist/commands/pr-merge.d.ts +3 -0
  58. package/cli/dist/commands/pr-merge.js +230 -0
  59. package/cli/dist/commands/pr-reference.d.ts +8 -0
  60. package/cli/dist/commands/pr-reference.js +30 -0
  61. package/cli/dist/commands/pr-restack.d.ts +6 -0
  62. package/cli/dist/commands/pr-restack.js +233 -0
  63. package/cli/dist/commands/pr-waiting.d.ts +59 -0
  64. package/cli/dist/commands/pr-waiting.js +143 -0
  65. package/cli/dist/commands/pr.d.ts +23 -0
  66. package/cli/dist/commands/pr.js +378 -366
  67. package/cli/dist/commands/project-sync.d.ts +12 -3
  68. package/cli/dist/commands/project-sync.js +23 -13
  69. package/cli/dist/commands/project.d.ts +3 -2
  70. package/cli/dist/commands/project.js +371 -177
  71. package/cli/dist/commands/registry.js +15 -10
  72. package/cli/dist/commands/release.d.ts +2 -2
  73. package/cli/dist/commands/release.js +118 -130
  74. package/cli/dist/commands/renamed-commands.d.ts +26 -0
  75. package/cli/dist/commands/renamed-commands.js +53 -0
  76. package/cli/dist/commands/repository-match.js +9 -3
  77. package/cli/dist/commands/session-finish.d.ts +3 -0
  78. package/cli/dist/commands/session-finish.js +383 -0
  79. package/cli/dist/commands/session-start.d.ts +3 -0
  80. package/cli/dist/commands/session-start.js +252 -0
  81. package/cli/dist/commands/session.d.ts +3 -0
  82. package/cli/dist/commands/session.js +186 -32
  83. package/cli/dist/commands/tracker-sync-dependabot.d.ts +7 -0
  84. package/cli/dist/commands/{dependabot.js → tracker-sync-dependabot.js} +76 -68
  85. package/cli/dist/commands/tracker-sync-security.d.ts +7 -0
  86. package/cli/dist/commands/{security.js → tracker-sync-security.js} +71 -64
  87. package/cli/dist/commands/tracker-sync.d.ts +37 -0
  88. package/cli/dist/commands/tracker-sync.js +18 -6
  89. package/cli/dist/commands/tracker.d.ts +3 -0
  90. package/cli/dist/commands/tracker.js +20 -0
  91. package/cli/dist/commands/usage-error.d.ts +4 -0
  92. package/cli/dist/commands/usage-error.js +6 -0
  93. package/cli/dist/commands/work-target.d.ts +20 -3
  94. package/cli/dist/commands/work-target.js +49 -6
  95. package/cli/dist/commands/worktree.js +103 -33
  96. package/cli/dist/domain/batch-plan.d.ts +73 -0
  97. package/cli/dist/domain/batch-plan.js +114 -0
  98. package/cli/dist/domain/blocked-by-change.d.ts +99 -0
  99. package/cli/dist/domain/blocked-by-change.js +101 -0
  100. package/cli/dist/domain/board-move.d.ts +90 -0
  101. package/cli/dist/domain/board-move.js +92 -0
  102. package/cli/dist/domain/branch-name.js +1 -1
  103. package/cli/dist/domain/command-hint.d.ts +85 -0
  104. package/cli/dist/domain/command-hint.js +148 -0
  105. package/cli/dist/domain/config.d.ts +4 -0
  106. package/cli/dist/domain/config.js +11 -1
  107. package/cli/dist/domain/dependabot.js +1 -1
  108. package/cli/dist/domain/errors.d.ts +5 -0
  109. package/cli/dist/domain/errors.js +5 -0
  110. package/cli/dist/domain/format.d.ts +51 -4
  111. package/cli/dist/domain/format.js +72 -6
  112. package/cli/dist/domain/frontmatter.d.ts +18 -3
  113. package/cli/dist/domain/frontmatter.js +38 -12
  114. package/cli/dist/domain/issue-order.d.ts +55 -0
  115. package/cli/dist/domain/issue-order.js +65 -0
  116. package/cli/dist/domain/issue-readout.d.ts +36 -4
  117. package/cli/dist/domain/pull-request.d.ts +71 -4
  118. package/cli/dist/domain/pull-request.js +59 -10
  119. package/cli/dist/domain/readiness.d.ts +44 -0
  120. package/cli/dist/domain/readiness.js +153 -5
  121. package/cli/dist/domain/reference-parser.d.ts +3 -1
  122. package/cli/dist/domain/reference-parser.js +6 -2
  123. package/cli/dist/domain/release.d.ts +7 -3
  124. package/cli/dist/domain/release.js +5 -12
  125. package/cli/dist/domain/repository-policy.d.ts +9 -3
  126. package/cli/dist/domain/repository-policy.js +8 -7
  127. package/cli/dist/domain/repository-resolver.js +4 -1
  128. package/cli/dist/domain/restack.d.ts +62 -0
  129. package/cli/dist/domain/restack.js +53 -0
  130. package/cli/dist/domain/security-alerts.js +1 -1
  131. package/cli/dist/domain/state.d.ts +69 -0
  132. package/cli/dist/domain/state.js +67 -1
  133. package/cli/dist/domain/work-start.d.ts +30 -0
  134. package/cli/dist/domain/work-start.js +42 -0
  135. package/cli/dist/infra/authored-notes.d.ts +1 -1
  136. package/cli/dist/infra/authored-notes.js +10 -4
  137. package/cli/dist/infra/config-store.d.ts +4 -0
  138. package/cli/dist/infra/config-store.js +13 -0
  139. package/cli/dist/infra/git.d.ts +76 -0
  140. package/cli/dist/infra/git.js +123 -1
  141. package/cli/dist/infra/github/client.d.ts +5 -0
  142. package/cli/dist/infra/github/client.js +10 -7
  143. package/cli/dist/infra/github/errors.d.ts +18 -0
  144. package/cli/dist/infra/github/errors.js +22 -0
  145. package/cli/dist/infra/github/issues.d.ts +39 -3
  146. package/cli/dist/infra/github/issues.js +178 -23
  147. package/cli/dist/infra/github/projects.d.ts +35 -0
  148. package/cli/dist/infra/github/projects.js +89 -8
  149. package/cli/dist/infra/github/pulls.d.ts +105 -2
  150. package/cli/dist/infra/github/pulls.js +172 -5
  151. package/cli/dist/infra/github/queries.d.ts +15 -4
  152. package/cli/dist/infra/github/queries.js +203 -40
  153. package/cli/dist/infra/github/readout.d.ts +5 -1
  154. package/cli/dist/infra/github/readout.js +11 -33
  155. package/cli/dist/infra/github/repos.d.ts +18 -0
  156. package/cli/dist/infra/github/repos.js +31 -0
  157. package/cli/dist/infra/nx-scope.d.ts +1 -1
  158. package/cli/dist/infra/nx-scope.js +1 -1
  159. package/cli/dist/infra/state-store.d.ts +10 -1
  160. package/cli/dist/infra/state-store.js +14 -2
  161. package/cli/dist/infra/worktree-links.d.ts +3 -0
  162. package/cli/dist/infra/worktree-links.js +8 -1
  163. package/cli/dist/infra/worktree.d.ts +12 -1
  164. package/cli/dist/infra/worktree.js +40 -23
  165. package/cli/dist/mcp/result.d.ts +82 -7
  166. package/cli/dist/mcp/result.js +139 -19
  167. package/cli/dist/mcp/server.d.ts +2 -2
  168. package/cli/dist/mcp/server.js +57 -10
  169. package/cli/templates/comment/plan.md +14 -0
  170. package/cli/templates/comment/review-findings.md +3 -2
  171. package/cli/templates/issue/bug.md +13 -4
  172. package/cli/templates/issue/task-implement.md +13 -6
  173. package/cli/templates/issue/task.md +13 -4
  174. package/cli/templates/workflow/pecot-board-sync.yml +84 -0
  175. package/npm-shrinkwrap.json +2 -2
  176. package/package.json +1 -1
  177. package/cli/dist/commands/dependabot.d.ts +0 -3
  178. package/cli/dist/commands/issue-project.d.ts +0 -3
  179. package/cli/dist/commands/issue-project.js +0 -176
  180. package/cli/dist/commands/issue-quick.d.ts +0 -3
  181. package/cli/dist/commands/issue-quick.js +0 -126
  182. package/cli/dist/commands/issue-read.d.ts +0 -3
  183. package/cli/dist/commands/issue-read.js +0 -80
  184. package/cli/dist/commands/project-info.d.ts +0 -48
  185. package/cli/dist/commands/project-info.js +0 -181
  186. package/cli/dist/commands/repository.d.ts +0 -5
  187. package/cli/dist/commands/repository.js +0 -265
  188. package/cli/dist/commands/security.d.ts +0 -3
@@ -0,0 +1,75 @@
1
+ // board show。表示と alert の収集は board-view.ts、着手の判定は board-readiness.ts が持つ。何も書き換えない。
2
+ import path from 'node:path';
3
+ import { z } from 'zod';
4
+ import { InvalidValueError } from '../domain/errors.js';
5
+ import { formatBoardOutput, formatStackableChains } from '../domain/format.js';
6
+ import { parseOwnerRepository } from '../domain/repository-resolver.js';
7
+ import { getActiveConfigPath } from '../infra/config-store.js';
8
+ import { GitHubAPIError } from '../infra/github/errors.js';
9
+ import { CommandExit, defineCommand } from './command-definition.js';
10
+ import { commandHint, hinted, inputHint } from './command-hint.js';
11
+ import { requireActiveConfig, stopWith } from './command-stop.js';
12
+ import { createGitHubClient } from './github-client.js';
13
+ import { createOutput } from './output.js';
14
+ import { readBoardReadiness, readinessOf, skipBoardReadiness } from './board-readiness.js';
15
+ import { BOARD_SHOW_OUTPUT, boardShowData, boardShowJson, boardShowMarkdown, boardShowResult, collectAlertStatuses, readBoard } from './board-view.js';
16
+ import { failApi } from './project-sync.js';
17
+ const SYNC_PATH = ['board', 'sync'];
18
+ function mismatchNote(count) {
19
+ const subject = count === 1 ? '1 Ready or Blocked Issue may be' : `${String(count)} Ready or Blocked Issues may be`;
20
+ return hinted `${subject} in a column or Status that does not match its judgment; run ${commandHint(SYNC_PATH)} (${inputHint(SYNC_PATH, 'dry_run')} to preview) to fix`;
21
+ }
22
+ const boardShowCommand = defineCommand({
23
+ path: ['board', 'show'],
24
+ description: 'Show the dashboard of the project board',
25
+ input: z.strictObject({
26
+ json: z.boolean().default(false).describe('Output as JSON'),
27
+ repo: z.string().superRefine((value, context) => {
28
+ try {
29
+ parseOwnerRepository(value);
30
+ }
31
+ catch (error) {
32
+ if (!(error instanceof InvalidValueError))
33
+ throw error;
34
+ context.addIssue({ code: 'custom', message: `must be in 'owner/repo' form: ${error.message}` });
35
+ }
36
+ }).optional().describe('Target repository, given explicitly as \'owner/repo\''),
37
+ }),
38
+ hasOwnRepo: true,
39
+ output: BOARD_SHOW_OUTPUT,
40
+ positional: [],
41
+ shortFlags: { json: '-j' },
42
+ interactive: false,
43
+ run: async (input, io) => {
44
+ const out = createOutput(false, io);
45
+ const config = requireActiveConfig(out);
46
+ const configPath = getActiveConfigPath();
47
+ const projectName = configPath === undefined ? `${config.host}_${config.owner}_${String(config.project.number)}` : path.parse(configPath).name;
48
+ try {
49
+ const client = createGitHubClient(out, config.host);
50
+ const { items, progress, isLegacy } = await readBoard(client, config, input.repo);
51
+ const statuses = await collectAlertStatuses(client, config);
52
+ const view = { config, projectName, statuses };
53
+ const readiness = isLegacy ? skipBoardReadiness(out) : await readBoardReadiness(out, client, config, items, input.repo, progress);
54
+ if (readiness.mismatches > 0)
55
+ out.warning(mismatchNote(readiness.mismatches));
56
+ const json = readiness.json === undefined ? undefined : (item) => readinessOf(readiness, item);
57
+ const data = boardShowData(view, items, json);
58
+ out.result(boardShowResult(view, data, readiness.mismatches));
59
+ out.data(input.json
60
+ ? boardShowJson(data)
61
+ : boardShowMarkdown(view, input.repo, formatBoardOutput(items, readiness.texts), formatStackableChains(readiness.chains)));
62
+ }
63
+ catch (error) {
64
+ if (error instanceof GitHubAPIError)
65
+ return failApi(out, 'read project board', error);
66
+ // Python の `except Exception` と同じ範囲(あらゆる Error)で捕まえる
67
+ if (error instanceof Error && !(error instanceof CommandExit))
68
+ return stopWith(out, `unexpected error: ${error.message}`, 'other');
69
+ throw error;
70
+ }
71
+ return 0;
72
+ },
73
+ });
74
+ export const BOARD_SHOW_COMMANDS = [boardShowCommand];
75
+ //# sourceMappingURL=board-show.js.map
@@ -0,0 +1,3 @@
1
+ import type { CommandDefinition } from './command-definition.js';
2
+ export declare const BOARD_SYNC_COMMANDS: readonly CommandDefinition[];
3
+ //# sourceMappingURL=board-sync.d.ts.map
@@ -0,0 +1,120 @@
1
+ /* eslint-disable @typescript-eslint/prefer-readonly-parameter-types -- 引数の型は readonly にできない */
2
+ // board sync。ボードの Ready・Blocked・Active・In Review の Issue を判定に合わせて、列と札を直す。
3
+ import path from 'node:path';
4
+ import { z } from 'zod';
5
+ import { homeRepositoryOf } from '../domain/config.js';
6
+ import { loadActiveConfig, listProjectConfigNames, loadConfig, projectsDirectory } from '../infra/config-store.js';
7
+ import { GitHubAPIError } from '../infra/github/errors.js';
8
+ import { applyJudgedMoves, judgeBoard, SYNCED_COLUMNS } from './board-judgment.js';
9
+ import { BOARD_MOVE_JSON, moveJson } from './issue-board.js';
10
+ import { CommandExit, defineCommand } from './command-definition.js';
11
+ import { commandHint, hinted, placeholder } from './command-hint.js';
12
+ import { NO_ACTIVE_PROJECT, stopWith } from './command-stop.js';
13
+ import { makeClient } from './github-client.js';
14
+ import { createOutput, DRY_RUN_FIELD } from './output.js';
15
+ import { pruneArchivedItems, readBoard } from './board-view.js';
16
+ import { failApi } from './project-sync.js';
17
+ const BOARD_SYNC_OUTPUT = z.strictObject({
18
+ moves: z.array(BOARD_MOVE_JSON).describe('Issues whose column or Status was written (on dry_run, would be written)'),
19
+ deletedArchived: z.int().describe('Number of Archived items deleted from the board (on dry_run, to be deleted)'),
20
+ dryRun: DRY_RUN_FIELD,
21
+ });
22
+ function unsupportedWarning(out) {
23
+ out.warning('this GitHub Enterprise Server does not support issue dependencies (blockedBy); no column is moved');
24
+ }
25
+ /**
26
+ 対象の Issue の前提と着手の跡を読み、判定に合わせて列と札を直す。dryRun は同じ文を予定の行で出し、書かない。
27
+ 書き込みの失敗は warning にして続け、失敗した Issue の数と、書いた(dry-run は書く予定の)列と札を返す
28
+ */
29
+ async function syncBoard(context, read, isDryRun) {
30
+ const { out, client, config } = context;
31
+ // 着手の跡は一覧に無いので、info と違い、一覧の値だけでは判定しない。Ready で前提 0 件なら動かさないと決まるので読まない
32
+ const judged = await judgeBoard(client, config, read.items, read.progress, {
33
+ columns: SYNCED_COLUMNS,
34
+ withoutRead: (target, known) => (target.item.workflow === 'Ready' && known?.blockedBy === 0 ? 'skip' : undefined),
35
+ });
36
+ if (judged === undefined) {
37
+ unsupportedWarning(out);
38
+ return { failures: 0, moves: [] };
39
+ }
40
+ return await applyJudgedMoves(context, judged, isDryRun);
41
+ }
42
+ function availableNames() {
43
+ return listProjectConfigNames().join(', ');
44
+ }
45
+ // --project、次にアクティブ設定。どちらも無く設定が 1 つだけなら、それを使う
46
+ function resolveConfig(out, project) {
47
+ if (project !== undefined) {
48
+ // 一覧は projects/ の *.json の名前なので、一致すれば ../ などの外のパスにならない
49
+ const name = project.endsWith('.json') ? project.slice(0, -'.json'.length) : project;
50
+ return listProjectConfigNames().includes(name) ? loadConfig(path.join(projectsDirectory(), `${name}.json`)) : stopWith(out, `project config not found: ${project}\navailable: ${availableNames()}`, 'project-not-found');
51
+ }
52
+ const active = loadActiveConfig();
53
+ if (active !== undefined)
54
+ return active;
55
+ const names = listProjectConfigNames();
56
+ const [only] = names;
57
+ if (only === undefined)
58
+ return stopWith(out, NO_ACTIVE_PROJECT, 'no-active-project');
59
+ if (names.length === 1)
60
+ return loadConfig(path.join(projectsDirectory(), `${only}.json`));
61
+ return stopWith(out, hinted `no active project, and ${String(names.length)} project configs exist\nrun: ${commandHint(['board', 'sync'], { project: placeholder('NAME') })}\navailable: ${names.join(', ')}`, 'no-active-project');
62
+ }
63
+ // 窓が途中で切り替わると前後の used を比べられないので、使用量の行を省く
64
+ function reportPoints(out, before, after) {
65
+ if (before === undefined || after === undefined)
66
+ return;
67
+ const used = after.used - before.used;
68
+ if (before.reset === after.reset && used >= 0)
69
+ out.count('GraphQL points used', used);
70
+ out.count('GraphQL points remaining', after.remaining);
71
+ }
72
+ function failureMessage(failures) {
73
+ return failures === 1 ? 'could not write 1 Issue to the board' : `could not write ${String(failures)} Issues to the board`;
74
+ }
75
+ function deleteFailureMessage(failures) {
76
+ return failures === 1 ? 'could not delete 1 archived item from the board' : `could not delete ${String(failures)} archived items from the board`;
77
+ }
78
+ const boardSyncCommand = defineCommand({
79
+ path: ['board', 'sync'],
80
+ description: 'Move the Issues in Ready, Blocked, Active and In Review to the columns and Status values their judgment calls for, and delete the Archived items beyond the latest 20 from the board',
81
+ input: z.strictObject({
82
+ dry_run: z.boolean().default(false).describe('Show the planned moves without writing to the board'),
83
+ project: z.string().optional().describe('Name of the project config under .pecot/config/projects (without .json). Without it, the active project; when none is active and only one config exists, that one'),
84
+ }),
85
+ output: BOARD_SYNC_OUTPUT,
86
+ positional: [],
87
+ interactive: false,
88
+ run: async (input, io) => {
89
+ const out = createOutput(input.dry_run, io);
90
+ const config = resolveConfig(out, input.project);
91
+ const client = makeClient(out, config);
92
+ const before = await client.getGraphqlRateLimit();
93
+ let read;
94
+ try {
95
+ read = await readBoard(client, config, undefined);
96
+ }
97
+ catch (error) {
98
+ if (!(error instanceof GitHubAPIError))
99
+ throw error;
100
+ reportPoints(out, before, await client.getGraphqlRateLimit());
101
+ return failApi(out, 'read project board', error);
102
+ }
103
+ if (read.isLegacy)
104
+ unsupportedWarning(out);
105
+ const { failures, moves } = read.isLegacy ? { failures: 0, moves: [] } : await syncBoard({ out, client, config, home: homeRepositoryOf(config) }, read, input.dry_run);
106
+ const pruned = await pruneArchivedItems(out, client, config, read.allItems, input.dry_run);
107
+ const pruneFailures = pruned.failed;
108
+ out.result({ moves: moves.map(move => moveJson(move)), deletedArchived: pruned.deleted });
109
+ reportPoints(out, before, await client.getGraphqlRateLimit());
110
+ if (failures === 0 && pruneFailures === 0)
111
+ return 0;
112
+ if (failures > 0)
113
+ out.error(failureMessage(failures));
114
+ if (pruneFailures > 0)
115
+ out.error(deleteFailureMessage(pruneFailures));
116
+ throw new CommandExit(1, 'partial-failure');
117
+ },
118
+ });
119
+ export const BOARD_SYNC_COMMANDS = [boardSyncCommand];
120
+ //# sourceMappingURL=board-sync.js.map
@@ -0,0 +1,151 @@
1
+ import { z } from 'zod';
2
+ import type { ProjectConfig } from '../domain/config.js';
3
+ import type { DependabotAlertStatus } from '../domain/dependabot.js';
4
+ import type { BoardItem, BoardProgress } from '../domain/format.js';
5
+ import { JSON_NULL } from '../domain/json-null.js';
6
+ import type { GitHubClient } from '../infra/github/index.js';
7
+ import type { BoardReadinessJson } from './issue-readiness.js';
8
+ import type { Output } from './output.js';
9
+ /**
10
+ 取得に失敗したリポジトリは、理由の文字列
11
+ */
12
+ export type AlertStatus = DependabotAlertStatus | string;
13
+ /**
14
+ Archived のアイテムを updatedAt の新しい順に並べ、最新の 20 件を残して、残りをボードから消す。
15
+ 消せなかった件数を warning の行に出す。消した件数(dry-run は消す予定の件数)と、消せなかった件数を返す
16
+ */
17
+ export declare function pruneArchivedItems(out: Readonly<Output>, client: Readonly<Pick<GitHubClient, 'deleteProjectItem'>>, config: ProjectConfig, allItems: readonly BoardItem[], isDryRun: boolean): Promise<{
18
+ readonly deleted: number;
19
+ readonly failed: number;
20
+ }>;
21
+ /**
22
+ 登録リポジトリごとの Dependabot alert の状態(登録の順)。
23
+ 1 つの取得の失敗でボードの表示を止めないよう、DependabotAlertError はここで理由の文字列にする
24
+ */
25
+ export declare function collectAlertStatuses(client: Readonly<GitHubClient>, config: ProjectConfig): Promise<readonly AlertStatus[]>;
26
+ /**
27
+ items を最大 limit 件ずつ並列に処理し、結果を items の順で返す。1 件でも投げたら、その例外で止まる
28
+ */
29
+ export declare function mapWithLimit<Item, Result>(items: readonly Item[], limit: number, task: (item: Item) => Promise<Result>): Promise<readonly Result[]>;
30
+ /**
31
+ board show の MCP の data。project・repositories・board は --json と同じ。repositories の release_type・packages・changelog_file と mismatches は data にだけ足す
32
+ */
33
+ export declare const BOARD_SHOW_OUTPUT: z.ZodObject<{
34
+ project: z.ZodObject<{
35
+ name: z.ZodString;
36
+ host: z.ZodString;
37
+ owner: z.ZodString;
38
+ number: z.ZodInt;
39
+ aggregation_repo: z.ZodNullable<z.ZodString>;
40
+ }, z.core.$strict>;
41
+ repositories: z.ZodArray<z.ZodObject<{
42
+ full_name: z.ZodString;
43
+ owner: z.ZodString;
44
+ name: z.ZodString;
45
+ develop_branch: z.ZodNullable<z.ZodString>;
46
+ release_branch: z.ZodNullable<z.ZodString>;
47
+ dependabot_alerts: z.ZodUnion<readonly [z.ZodObject<{
48
+ error: z.ZodString;
49
+ }, z.core.$strict>, z.ZodObject<{
50
+ enabled: z.ZodBoolean;
51
+ open_count: z.ZodInt;
52
+ max_severity: z.ZodNullable<z.ZodString>;
53
+ alerts_url: z.ZodString;
54
+ }, z.core.$strict>]>;
55
+ release_type: z.ZodEnum<{
56
+ multi: "multi";
57
+ nx: "nx";
58
+ single: "single";
59
+ }>;
60
+ packages: z.ZodArray<z.ZodObject<{
61
+ name: z.ZodString;
62
+ changelog: z.ZodString;
63
+ }, z.core.$strict>>;
64
+ changelog_file: z.ZodOptional<z.ZodString>;
65
+ }, z.core.$strict>>;
66
+ board: z.ZodObject<{
67
+ items: z.ZodArray<z.ZodObject<{
68
+ id: z.ZodOptional<z.ZodUnknown>;
69
+ workflow: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ title: z.ZodOptional<z.ZodUnknown>;
71
+ updatedAt: z.ZodOptional<z.ZodUnknown>;
72
+ content: z.ZodObject<{
73
+ number: z.ZodOptional<z.ZodUnknown>;
74
+ state: z.ZodOptional<z.ZodUnknown>;
75
+ url: z.ZodOptional<z.ZodUnknown>;
76
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ repository: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strict>;
79
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
80
+ stackOn: z.ZodNullable<z.ZodObject<{
81
+ number: z.ZodInt;
82
+ repository: z.ZodString;
83
+ branch: z.ZodString;
84
+ }, z.core.$strict>>;
85
+ reason: z.ZodNullable<z.ZodString>;
86
+ kind: z.ZodEnum<{
87
+ blocked: "blocked";
88
+ stackable: "stackable";
89
+ startable: "startable";
90
+ unknown: "unknown";
91
+ }>;
92
+ text: z.ZodString;
93
+ }, z.core.$strict>>>;
94
+ }, z.core.$strict>>;
95
+ }, z.core.$strict>;
96
+ mismatches: z.ZodInt;
97
+ }, z.core.$strict>;
98
+ export type BoardShowJson = z.input<typeof BOARD_SHOW_OUTPUT>;
99
+ type RepositoryExtras = Pick<BoardShowJson['repositories'][number], 'release_type' | 'packages' | 'changelog_file'>;
100
+ /**
101
+ --json に出す中身(data にだけ足す項目を除いたもの)
102
+ */
103
+ export type BoardShowCore = Omit<BoardShowJson, 'repositories' | 'mismatches'> & {
104
+ readonly repositories: readonly Omit<BoardShowJson['repositories'][number], keyof RepositoryExtras>[];
105
+ };
106
+ export interface BoardShowView {
107
+ readonly config: ProjectConfig;
108
+ readonly projectName: string;
109
+ readonly statuses: readonly AlertStatus[];
110
+ }
111
+ /**
112
+ アイテムの JSON の readiness を引く。判定の無いアイテムは null
113
+ */
114
+ export type ReadinessSource = (item: BoardItem) => BoardReadinessJson | typeof JSON_NULL;
115
+ /**
116
+ --json の標準出力と MCP の data の中身。キーを並べた順が --json の出力の順になる
117
+ */
118
+ export declare function boardShowData(view: Readonly<BoardShowView>, items: readonly BoardItem[], readiness?: ReadinessSource): BoardShowCore;
119
+ /**
120
+ info --json の出力
121
+ */
122
+ export declare function boardShowJson(data: Readonly<BoardShowCore>): string;
123
+ /**
124
+ MCP の data。--json の中身に、リポジトリごとの release_type・packages・changelog_file と、食い違いの件数を足す
125
+ */
126
+ export declare function boardShowResult(view: Readonly<BoardShowView>, core: Readonly<BoardShowCore>, mismatches: number): BoardShowJson;
127
+ /**
128
+ info の Markdown の出力
129
+ */
130
+ export declare function boardShowMarkdown(view: Readonly<BoardShowView>, effectiveRepository: string | undefined, boardOutput: string, chainsSection?: string): string;
131
+ export interface BoardRead {
132
+ readonly allItems: readonly BoardItem[];
133
+ /**
134
+ 表示するアイテム(OPEN の Backlog・Pending・Blocked・Ready・Active・In Review。リポジトリの指定があれば絞る)
135
+ */
136
+ readonly items: readonly BoardItem[];
137
+ /**
138
+ boardItemKey → 着手の判定の軽い入力。前提の無い Issue の個別の読み取りを省く
139
+ */
140
+ readonly progress: ReadonlyMap<string, BoardProgress>;
141
+ /**
142
+ 一覧を足す前のクエリで読み直した(Issue の依存関係に対応しない GHES)
143
+ */
144
+ readonly isLegacy: boolean;
145
+ }
146
+ /**
147
+ ボードのアイテムを全部読み、表示するものに絞る
148
+ */
149
+ export declare function readBoard(client: Readonly<GitHubClient>, config: ProjectConfig, effectiveRepository: string | undefined): Promise<BoardRead>;
150
+ export {};
151
+ //# sourceMappingURL=board-view.d.ts.map
@@ -0,0 +1,293 @@
1
+ // board show の表示と、Archived の整理、Dependabot alert の収集。
2
+ import { z } from 'zod';
3
+ import { effectiveReleaseType, workflowFieldName } from '../domain/config.js';
4
+ import { DependabotAlertError, fetchDependabotAlertStatus } from '../domain/dependabot.js';
5
+ import { formatItemsJson, readBoardProgress, transformItems } from '../domain/format.js';
6
+ import { JSON_NULL } from '../domain/json-null.js';
7
+ import { compareStrings } from '../domain/python-format.js';
8
+ import { createDependabotSource } from '../infra/github/dependabot-source.js';
9
+ import { GitHubAPIError } from '../infra/github/errors.js';
10
+ import { READINESS_JSON } from './issue-readiness.js';
11
+ import { STATUS_FIELD_NAME } from './project-sync.js';
12
+ /**
13
+ Archived のうち、ボードに残す件数
14
+ */
15
+ const ARCHIVED_KEEP = 20;
16
+ /**
17
+ Dependabot alert を並列に取る数の上限(Python の _ALERT_FETCH_MAX_WORKERS と同じ)
18
+ */
19
+ const ALERT_FETCH_MAX_WORKERS = 8;
20
+ const DISPLAY_STATUSES = new Set(['Backlog', 'Pending', 'Blocked', 'Ready', 'Active', 'In Review']);
21
+ function updatedAtOf(item) {
22
+ return typeof item.updatedAt === 'string' ? item.updatedAt : '';
23
+ }
24
+ /**
25
+ Archived のアイテムを updatedAt の新しい順に並べ、最新の 20 件を残して、残りをボードから消す。
26
+ 消せなかった件数を warning の行に出す。消した件数(dry-run は消す予定の件数)と、消せなかった件数を返す
27
+ */
28
+ export async function pruneArchivedItems(out, client, config, allItems, isDryRun) {
29
+ const archived = allItems.filter(item => item.workflow === 'Archived').toSorted((first, second) => compareStrings(updatedAtOf(second), updatedAtOf(first)));
30
+ if (archived.length <= ARCHIVED_KEEP)
31
+ return { deleted: 0, failed: 0 };
32
+ const targets = archived.slice(ARCHIVED_KEEP);
33
+ if (isDryRun) {
34
+ out.planned({ verb: 'delete', target: `${String(targets.length)} archived items` });
35
+ return { deleted: targets.length, failed: 0 };
36
+ }
37
+ let deleted = 0;
38
+ for (const item of targets) {
39
+ // ID が文字列でないアイテムは、API を呼ばず、失敗として数える
40
+ if (typeof item.id !== 'string')
41
+ continue;
42
+ try {
43
+ await client.deleteProjectItem(config.project.id, item.id);
44
+ deleted += 1;
45
+ }
46
+ catch (error) {
47
+ // 削除の失敗は数えて続ける
48
+ if (!(error instanceof GitHubAPIError))
49
+ throw error;
50
+ }
51
+ }
52
+ if (deleted > 0)
53
+ out.done({ verb: 'delete', target: `${String(deleted)} archived items`, aside: true });
54
+ const failed = targets.length - deleted;
55
+ if (failed > 0)
56
+ out.warning(`failed to delete ${String(failed)} archived items`);
57
+ return { deleted, failed };
58
+ }
59
+ /**
60
+ 登録リポジトリごとの Dependabot alert の状態(登録の順)。
61
+ 1 つの取得の失敗でボードの表示を止めないよう、DependabotAlertError はここで理由の文字列にする
62
+ */
63
+ export async function collectAlertStatuses(client, config) {
64
+ const source = createDependabotSource(client);
65
+ return await mapWithLimit(config.repositories, ALERT_FETCH_MAX_WORKERS, async (entry) => {
66
+ try {
67
+ return await fetchDependabotAlertStatus(source, config.host, entry.owner, entry.name);
68
+ }
69
+ catch (error) {
70
+ if (error instanceof DependabotAlertError)
71
+ return error.message;
72
+ throw error;
73
+ }
74
+ });
75
+ }
76
+ /**
77
+ items を最大 limit 件ずつ並列に処理し、結果を items の順で返す。1 件でも投げたら、その例外で止まる
78
+ */
79
+ export async function mapWithLimit(items, limit, task) {
80
+ const results = [];
81
+ // 全ての worker が同じ iterator から次の項目を取る
82
+ const pending = items.entries();
83
+ const worker = async () => {
84
+ // eslint-disable-next-line security/detect-object-injection -- index は entries() の添字
85
+ for (const [index, item] of pending)
86
+ results[index] = await task(item);
87
+ };
88
+ await Promise.all(Array.from({ length: Math.min(limit, items.length) }, worker));
89
+ return results;
90
+ }
91
+ /**
92
+ index 番目の取得結果。件数が登録のリポジトリとずれていたら投げる
93
+ */
94
+ function statusAt(statuses, index) {
95
+ const status = statuses.at(index);
96
+ if (status === undefined)
97
+ throw new RangeError(`no Dependabot alert status for repository #${String(index)}`);
98
+ return status;
99
+ }
100
+ const ALERTS_JSON = z.union([
101
+ z.strictObject({
102
+ error: z.string().describe('Reason the Dependabot alerts could not be fetched'),
103
+ }),
104
+ z.strictObject({
105
+ enabled: z.boolean().describe('Whether Dependabot alerts are enabled'),
106
+ open_count: z.int().describe('Number of open alerts (0 when disabled)'),
107
+ max_severity: z.string().nullable().describe('Highest severity of the open alerts (null when there is none)'),
108
+ alerts_url: z.string().describe('URL of the alert list'),
109
+ }),
110
+ ]);
111
+ // extend は同じ名前のキーを元の位置のまま置き換えるので、キーの並びは readinessJson と同じに保たれる
112
+ const BOARD_READINESS_JSON = READINESS_JSON.extend({
113
+ kind: z.enum(['startable', 'stackable', 'blocked', 'unknown']).describe('Readiness judgment (unknown when the prerequisites could not be read)'),
114
+ text: z.string().describe('Readiness as shown in the Readiness column'),
115
+ });
116
+ const BOARD_CONTENT_JSON = z.strictObject({
117
+ number: z.unknown().optional().describe('Issue or PR number'),
118
+ state: z.unknown().optional().describe('State of the Issue or PR (OPEN etc.)'),
119
+ url: z.unknown().optional().describe('URL of the Issue or PR'),
120
+ labels: z.array(z.string()).optional().describe('Label names'),
121
+ repository: z.string().optional().describe('Repository (owner/repo)'),
122
+ });
123
+ const BOARD_ITEM_JSON = z.strictObject({
124
+ id: z.unknown().optional().describe('Project item ID'),
125
+ workflow: z.string().nullable().optional().describe('Column (workflow field value) of the item'),
126
+ title: z.unknown().optional().describe('Title of the Issue or PR'),
127
+ updatedAt: z.unknown().optional().describe('Last update time of the item'),
128
+ content: BOARD_CONTENT_JSON.describe('Issue or PR on the card'),
129
+ readiness: BOARD_READINESS_JSON.nullable().optional().describe('Readiness of a Ready or Blocked Issue (null for other items; omitted when the server does not support issue dependencies)'),
130
+ });
131
+ const PACKAGE_JSON = z.strictObject({
132
+ name: z.string().describe('Package name'),
133
+ changelog: z.string().describe('Path of the CHANGELOG of the package'),
134
+ });
135
+ const REPOSITORY_JSON = z.strictObject({
136
+ full_name: z.string().describe('Repository (owner/repo)'),
137
+ owner: z.string().describe('Owner of the repository'),
138
+ name: z.string().describe('Name of the repository'),
139
+ develop_branch: z.string().nullable().describe('Develop branch (null when not set)'),
140
+ release_branch: z.string().nullable().describe('Release branch (null when not set)'),
141
+ dependabot_alerts: ALERTS_JSON.describe('Dependabot alert status, or the reason it could not be fetched'),
142
+ release_type: z.enum(['single', 'multi', 'nx']).describe('Release type in effect (data only; not in --json)'),
143
+ packages: z.array(PACKAGE_JSON).describe('Packages of a monorepo (data only; empty when none)'),
144
+ changelog_file: z.string().optional().describe('CHANGELOG path set for a repository without packages (data only; omitted when not set)'),
145
+ });
146
+ /**
147
+ board show の MCP の data。project・repositories・board は --json と同じ。repositories の release_type・packages・changelog_file と mismatches は data にだけ足す
148
+ */
149
+ export const BOARD_SHOW_OUTPUT = z.strictObject({
150
+ project: z.strictObject({
151
+ name: z.string().describe('Name of the project config'),
152
+ host: z.string().describe('GitHub host'),
153
+ owner: z.string().describe('Owner of the project'),
154
+ number: z.int().describe('Project number'),
155
+ aggregation_repo: z.string().nullable().describe('Roadmap (aggregation) repository (null when not set)'),
156
+ }).describe('Overview of the project'),
157
+ repositories: z.array(REPOSITORY_JSON).describe('Registered repositories, in registration order'),
158
+ board: z.strictObject({
159
+ items: z.array(BOARD_ITEM_JSON).describe('Open items in Backlog, Pending, Blocked, Ready, Active and In Review'),
160
+ }).describe('Board status'),
161
+ mismatches: z.int().describe('Number of Ready or Blocked Issues whose column or Status may not match the judgment (data only)'),
162
+ });
163
+ function alertsJson(status) {
164
+ return typeof status === 'string' ? { error: status } : { enabled: status.enabled, open_count: status.openCount, max_severity: status.maxSeverity ?? JSON_NULL, alerts_url: status.alertsUrl };
165
+ }
166
+ function alertsLine(status) {
167
+ if (typeof status === 'string')
168
+ return ` dependabot_alerts: fetch failed (${status})`;
169
+ if (!status.enabled)
170
+ return ' dependabot_alerts: disabled';
171
+ return ` dependabot_alerts: open ${String(status.openCount)}`;
172
+ }
173
+ function repositoryJson(entry, status) {
174
+ return {
175
+ full_name: `${entry.owner}/${entry.name}`,
176
+ owner: entry.owner,
177
+ name: entry.name,
178
+ develop_branch: entry.develop_branch ?? JSON_NULL,
179
+ release_branch: entry.release_branch ?? JSON_NULL,
180
+ dependabot_alerts: alertsJson(status),
181
+ };
182
+ }
183
+ function itemJson(item) {
184
+ const { labels } = item.content;
185
+ return { ...item, content: { ...item.content, labels: labels === undefined ? undefined : [...labels] } };
186
+ }
187
+ /**
188
+ --json の標準出力と MCP の data の中身。キーを並べた順が --json の出力の順になる
189
+ */
190
+ export function boardShowData(view, items, readiness) {
191
+ const { config, projectName, statuses } = view;
192
+ return {
193
+ project: {
194
+ name: projectName,
195
+ host: config.host,
196
+ owner: config.owner,
197
+ number: config.project.number,
198
+ aggregation_repo: config.aggregation_repo ?? JSON_NULL,
199
+ },
200
+ repositories: config.repositories.map((entry, index) => repositoryJson(entry, statusAt(statuses, index))),
201
+ board: readiness === undefined
202
+ ? { items: formatItemsJson(items).items.map(item => itemJson(item)) }
203
+ : { items: items.map((item) => {
204
+ const found = readiness(item);
205
+ return { ...itemJson(item), readiness: found };
206
+ }) },
207
+ };
208
+ }
209
+ /**
210
+ info --json の出力
211
+ */
212
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types -- zod の input の型は配列が可変
213
+ export function boardShowJson(data) {
214
+ return JSON.stringify(data, undefined, 2);
215
+ }
216
+ /**
217
+ MCP の data。--json の中身に、リポジトリごとの release_type・packages・changelog_file と、食い違いの件数を足す
218
+ */
219
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types -- zod の input の型は配列が可変
220
+ export function boardShowResult(view, core, mismatches) {
221
+ const { config, statuses } = view;
222
+ return {
223
+ ...core,
224
+ repositories: config.repositories.map((entry, index) => ({ ...repositoryJson(entry, statusAt(statuses, index)), ...repositoryExtras(entry) })),
225
+ mismatches,
226
+ };
227
+ }
228
+ function repositoryExtras(entry) {
229
+ return {
230
+ release_type: effectiveReleaseType(entry),
231
+ packages: (entry.packages ?? []).map(item => ({ name: item.name, changelog: item.changelog })),
232
+ ...entry.changelog_file !== undefined && entry.changelog_file !== '' && { changelog_file: entry.changelog_file },
233
+ };
234
+ }
235
+ function repositoryLines(view) {
236
+ const { config, statuses } = view;
237
+ if (config.repositories.length === 0)
238
+ return ['## Registered repositories', '- none'];
239
+ const lines = ['## Registered repositories'];
240
+ for (const [index, entry] of config.repositories.entries()) {
241
+ const develop = entry.develop_branch === undefined || entry.develop_branch === '' ? [] : [`develop: ${entry.develop_branch}`];
242
+ const release = entry.release_branch === undefined || entry.release_branch === '' ? [] : [`release: ${entry.release_branch}`];
243
+ const branches = [...develop, ...release];
244
+ const fullName = `${entry.owner}/${entry.name}`;
245
+ lines.push(branches.length > 0 ? `- ${fullName} (${branches.join(', ')})` : `- ${fullName}`, ` release_type: ${effectiveReleaseType(entry)}`, alertsLine(statusAt(statuses, index)));
246
+ if (entry.packages !== undefined && entry.packages.length > 0) {
247
+ for (const item of entry.packages)
248
+ lines.push(` package: ${item.name} → ${item.changelog}`);
249
+ }
250
+ else if (entry.changelog_file !== undefined && entry.changelog_file !== '') {
251
+ lines.push(` changelog: ${entry.changelog_file}`);
252
+ }
253
+ }
254
+ return lines;
255
+ }
256
+ /**
257
+ info の Markdown の出力
258
+ */
259
+ export function boardShowMarkdown(view, effectiveRepository, boardOutput, chainsSection) {
260
+ const { config, projectName } = view;
261
+ const aggregation = config.aggregation_repo === undefined || config.aggregation_repo === '' ? 'none' : `\`${config.aggregation_repo}\``;
262
+ return [
263
+ '# Project info',
264
+ '',
265
+ '## Overview',
266
+ `- Project: ${projectName}`,
267
+ `- Host: ${config.host}`,
268
+ `- Owner: ${config.owner}`,
269
+ `- Roadmap repo: ${aggregation}`,
270
+ '',
271
+ ...repositoryLines(view),
272
+ '',
273
+ effectiveRepository === undefined || effectiveRepository === '' ? '## Board status' : `## Board status (filter: ${effectiveRepository})`,
274
+ '',
275
+ boardOutput,
276
+ ...(chainsSection === undefined ? [] : ['', chainsSection]),
277
+ ].join('\n');
278
+ }
279
+ /**
280
+ ボードのアイテムを全部読み、表示するものに絞る
281
+ */
282
+ export async function readBoard(client, config, effectiveRepository) {
283
+ const fieldName = workflowFieldName(config);
284
+ const state = { isLegacy: false };
285
+ const rawItems = await client.listProjectItems(config.project.id, { workflowFieldName: fieldName, onLegacy: () => {
286
+ state.isLegacy = true;
287
+ } });
288
+ const allItems = transformItems(rawItems, fieldName);
289
+ const open = allItems.filter(item => item.content.state === 'OPEN' && typeof item.workflow === 'string' && DISPLAY_STATUSES.has(item.workflow));
290
+ const items = effectiveRepository === undefined || effectiveRepository === '' ? open : open.filter(item => item.content.repository === effectiveRepository);
291
+ return { allItems, items, progress: readBoardProgress(rawItems, STATUS_FIELD_NAME), isLegacy: state.isLegacy };
292
+ }
293
+ //# sourceMappingURL=board-view.js.map
@@ -0,0 +1,3 @@
1
+ import type { CommandDefinition } from './command-definition.js';
2
+ export declare const BOARD_COMMANDS: readonly CommandDefinition[];
3
+ //# sourceMappingURL=board.d.ts.map
@@ -0,0 +1,12 @@
1
+ // board のグループのコマンド。並びは help の一覧に出る順
2
+ import { BOARD_ADD_COMMANDS } from './board-add.js';
3
+ import { BOARD_MOVE_COMMANDS } from './board-move.js';
4
+ import { BOARD_SHOW_COMMANDS } from './board-show.js';
5
+ import { BOARD_SYNC_COMMANDS } from './board-sync.js';
6
+ export const BOARD_COMMANDS = [
7
+ ...BOARD_SHOW_COMMANDS,
8
+ ...BOARD_ADD_COMMANDS,
9
+ ...BOARD_MOVE_COMMANDS,
10
+ ...BOARD_SYNC_COMMANDS,
11
+ ];
12
+ //# sourceMappingURL=board.js.map
@@ -0,0 +1,3 @@
1
+ import type { CommandDefinition } from './command-definition.js';
2
+ export declare const BRANCH_COMMANDS: readonly CommandDefinition[];
3
+ //# sourceMappingURL=branch.d.ts.map