@kyuki3rain/cupola 0.0.0-stage → 0.1.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 (116) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE +202 -0
  3. package/README.md +40 -2
  4. package/dist/adr.js +106 -0
  5. package/dist/catalog.js +137 -0
  6. package/dist/check.js +192 -0
  7. package/dist/cli.js +8 -0
  8. package/dist/code.js +216 -0
  9. package/dist/commands/change.js +522 -0
  10. package/dist/commands/epic.js +311 -0
  11. package/dist/commands/install.js +109 -0
  12. package/dist/commands/locks.js +175 -0
  13. package/dist/commands/procedure.js +92 -0
  14. package/dist/commands/revision.js +139 -0
  15. package/dist/commands/run.js +1015 -0
  16. package/dist/commands/setup.js +382 -0
  17. package/dist/commands/spec.js +80 -0
  18. package/dist/commands/status.js +1158 -0
  19. package/dist/commands/trace.js +397 -0
  20. package/dist/commands/wait.js +102 -0
  21. package/dist/commands/work.js +121 -0
  22. package/dist/commands/workspace.js +126 -0
  23. package/dist/commands/worktree.js +422 -0
  24. package/dist/config.js +289 -0
  25. package/dist/day.js +29 -0
  26. package/dist/e2e-project.js +62 -0
  27. package/dist/e2e.js +207 -0
  28. package/dist/engine/cc-sdd.js +164 -0
  29. package/dist/epic.js +360 -0
  30. package/dist/feedback.js +34 -0
  31. package/dist/frontmatter.js +20 -0
  32. package/dist/git.js +365 -0
  33. package/dist/host/github.js +290 -0
  34. package/dist/host/host.js +1 -0
  35. package/dist/install.js +182 -0
  36. package/dist/io.js +46 -0
  37. package/dist/main.js +771 -0
  38. package/dist/method/v1.js +56 -0
  39. package/dist/procedure.js +60 -0
  40. package/dist/record.js +473 -0
  41. package/dist/release.js +84 -0
  42. package/dist/repo.js +13 -0
  43. package/dist/runbook.js +111 -0
  44. package/dist/safe-write.js +80 -0
  45. package/dist/spec.js +171 -0
  46. package/dist/status.js +190 -0
  47. package/dist/templates.js +49 -0
  48. package/dist/trace.js +275 -0
  49. package/dist/tracker/files.js +156 -0
  50. package/dist/tracker/github-issues.js +217 -0
  51. package/dist/tracker/index.js +27 -0
  52. package/dist/tracker/tracker.js +69 -0
  53. package/dist/tree.js +42 -0
  54. package/dist/trust.js +13 -0
  55. package/dist/version.js +5 -0
  56. package/dist/work.js +149 -0
  57. package/dist/workspace.js +299 -0
  58. package/npm-shrinkwrap.json +2014 -0
  59. package/package.json +41 -4
  60. package/skills/cupola-abort/SKILL.md +45 -0
  61. package/skills/cupola-adr/SKILL.md +41 -0
  62. package/skills/cupola-ask/SKILL.md +42 -0
  63. package/skills/cupola-catalog/SKILL.md +41 -0
  64. package/skills/cupola-catalog-draft/SKILL.md +114 -0
  65. package/skills/cupola-complete/SKILL.md +87 -0
  66. package/skills/cupola-decide/SKILL.md +60 -0
  67. package/skills/cupola-doc/SKILL.md +52 -0
  68. package/skills/cupola-e2e-setup/SKILL.md +78 -0
  69. package/skills/cupola-e2e-test/SKILL.md +115 -0
  70. package/skills/cupola-epic-accept/SKILL.md +162 -0
  71. package/skills/cupola-epic-create/SKILL.md +120 -0
  72. package/skills/cupola-epic-revise/SKILL.md +71 -0
  73. package/skills/cupola-epic-run/SKILL.md +127 -0
  74. package/skills/cupola-fix/SKILL.md +115 -0
  75. package/skills/cupola-init/SKILL.md +88 -0
  76. package/skills/cupola-intake/SKILL.md +78 -0
  77. package/skills/cupola-operate/SKILL.md +64 -0
  78. package/skills/cupola-resolve/SKILL.md +86 -0
  79. package/skills/cupola-review/SKILL.md +132 -0
  80. package/skills/cupola-spec-design/SKILL.md +164 -0
  81. package/skills/cupola-spec-impl/SKILL.md +135 -0
  82. package/skills/cupola-spec-run/SKILL.md +125 -0
  83. package/skills/cupola-steering/SKILL.md +46 -0
  84. package/templates/install/.kiro/steering/e2e.md +48 -0
  85. package/templates/install/.kiro/steering/operations.md +109 -0
  86. package/templates/install/.kiro/steering/principles.md +25 -0
  87. package/templates/install/CLAUDE.md +19 -0
  88. package/templates/install/adr/TEMPLATE.md +38 -0
  89. package/templates/install/cc-sdd/patches.json +31 -0
  90. package/templates/method-1/behavior-area.md +43 -0
  91. package/templates/method-1/behavior-index.md +16 -0
  92. package/templates/method-1/card.md +41 -0
  93. package/templates/method-1/case-draft.md +25 -0
  94. package/templates/method-1/case.md +38 -0
  95. package/templates/method-1/catalog-spec.md +33 -0
  96. package/templates/method-1/changes/adr.md +4 -0
  97. package/templates/method-1/changes/catalog.md +29 -0
  98. package/templates/method-1/changes/doc.md +5 -0
  99. package/templates/method-1/changes/e2e.md +7 -0
  100. package/templates/method-1/changes/epic.md +29 -0
  101. package/templates/method-1/changes/fix.md +21 -0
  102. package/templates/method-1/changes/release.md +23 -0
  103. package/templates/method-1/changes/spec.md +55 -0
  104. package/templates/method-1/changes/system.md +13 -0
  105. package/templates/method-1/cupola-issue-draft.md +17 -0
  106. package/templates/method-1/epic.md +136 -0
  107. package/templates/method-1/fix-spec.md +34 -0
  108. package/templates/method-1/fix.md +39 -0
  109. package/templates/method-1/lock.json +13 -0
  110. package/templates/method-1/phase-outcome.json +29 -0
  111. package/templates/method-1/record.json +63 -0
  112. package/templates/method-1/report.md +27 -0
  113. package/templates/method-1/runbook.md +39 -0
  114. package/templates/method-1/runner-result.json +6 -0
  115. package/templates/method-1/send-back.md +23 -0
  116. package/templates/methods.json +13 -0
package/dist/check.js ADDED
@@ -0,0 +1,192 @@
1
+ import { existsSync } from "node:fs";
2
+ import { readdir, readFile } from "node:fs/promises";
3
+ import { basename, join } from "node:path";
4
+ import { behaviorDirs, ENTRY_ID, renderIndex } from "./catalog.js";
5
+ const VERIFIED = /^(acceptance|acceptance-check|test|e2e|none|manual: .+|untestable: .+)$/;
6
+ const MARK = /^(provisional|known-issue|deprecated) [a-z0-9-]+$/;
7
+ /** Problems in the catalog's own rules. */
8
+ export function checkCatalog(areas, config, repo = config.hub) {
9
+ const problems = [];
10
+ const allowed = new Map(behaviorDirs(config, repo).map((d) => [d.dir, d.components]));
11
+ // Entry IDs carry the area, not the component: an area name is the repository's once.
12
+ const firstOf = new Map();
13
+ for (const a of areas) {
14
+ const first = firstOf.get(a.area);
15
+ if (first === undefined)
16
+ firstOf.set(a.area, a.path);
17
+ else if (a.area !== "")
18
+ problems.push({
19
+ file: a.path,
20
+ message: `area ${a.area} is also ${first}: name this one <component>-${a.area}`,
21
+ });
22
+ }
23
+ for (const a of areas) {
24
+ const p = (message, line) => problems.push({ file: a.path, ...(line ? { line } : {}), message });
25
+ if (a.kind !== "behavior-area")
26
+ p("front matter kind must be behavior-area");
27
+ if (typeof a.method !== "number")
28
+ p("front matter method must be a number");
29
+ if (a.area !== basename(a.path, ".md"))
30
+ p(`area is ${a.area || "missing"}, but the file is ${basename(a.path)}`);
31
+ const here = allowed.get(a.dir) ?? [];
32
+ if (!here.includes(a.component)) {
33
+ p(`component is ${a.component || "(missing)"}, but areas in ${a.dir}/ belong to ${here.join(" or ")}`);
34
+ }
35
+ if (!a.precise)
36
+ p("no `<!-- precise layer -->` marker, so no entry is read");
37
+ if (a.summary.trim() === "")
38
+ p("summary is missing (it goes into the index)");
39
+ const seen = new Set();
40
+ const retired = new Set(a.retired.map((r) => r.id));
41
+ for (const e of a.entries) {
42
+ if (!e.id.startsWith(`${a.area}.`))
43
+ p(`${e.id} does not start with the area name ${a.area}.`, e.line);
44
+ if (!ENTRY_ID.test(e.id))
45
+ p(`${e.id} is not <area>.<kebab-name>`, e.line);
46
+ if (seen.has(e.id))
47
+ p(`${e.id} is used twice; the later one is renamed`, e.line);
48
+ if (retired.has(e.id))
49
+ p(`${e.id} is retired and must not be used again`, e.line);
50
+ seen.add(e.id);
51
+ if (e.statement === "")
52
+ p(`${e.id} has no statement`, e.line);
53
+ if (!e.origin)
54
+ p(`${e.id} has no origin`, e.line);
55
+ if (!e.verified)
56
+ p(`${e.id} has no verified`, e.line);
57
+ else if (!VERIFIED.test(e.verified))
58
+ p(`${e.id}: verified "${e.verified}" is not one of the allowed values`, e.line);
59
+ if (e.mark && !MARK.test(e.mark))
60
+ p(`${e.id}: mark "${e.mark}" must be provisional|known-issue|deprecated <case>`, e.line);
61
+ }
62
+ }
63
+ return problems;
64
+ }
65
+ /** Markers naming catalog IDs that no area has. */
66
+ export function checkOrphans(orphans) {
67
+ return orphans.map((m) => ({
68
+ file: m.file,
69
+ line: m.line,
70
+ message: `@req ${m.ref} names no catalog entry`,
71
+ }));
72
+ }
73
+ /** Generated indexes that no longer match their areas. */
74
+ export async function checkIndexes(root, areas, config, repo = config.hub) {
75
+ const problems = [];
76
+ for (const { dir } of behaviorDirs(config, repo)) {
77
+ const own = areas.filter((a) => a.dir === dir);
78
+ if (own.length === 0)
79
+ continue;
80
+ const path = join(dir, "README.md");
81
+ const current = existsSync(join(root, path))
82
+ ? (await readFile(join(root, path), "utf8")).replace(/\r\n?/g, "\n")
83
+ : "";
84
+ if (current !== renderIndex(own))
85
+ problems.push({ file: path, message: "out of date; run `cupola trace --index`" });
86
+ }
87
+ return problems;
88
+ }
89
+ /** Template placeholders left in finished Cupola documents. */
90
+ export async function checkPlaceholders(root, areas) {
91
+ const files = areas.map((a) => a.path);
92
+ const dir = join(".cupola", "specs");
93
+ if (existsSync(join(root, dir))) {
94
+ for (const f of await readdir(join(root, dir)))
95
+ if (f.endsWith(".md"))
96
+ files.push(join(dir, f));
97
+ }
98
+ const problems = [];
99
+ for (const file of files) {
100
+ let fence = false;
101
+ const lines = (await readFile(join(root, file), "utf8")).split(/\r?\n/);
102
+ lines.forEach((l, i) => {
103
+ if (/^\s*(```|~~~)/.test(l))
104
+ fence = !fence;
105
+ // Fenced code may use braces of its own; inline code is where IDs go, so it is checked.
106
+ if (!fence && l.includes("{{")) {
107
+ problems.push({ file, line: i + 1, message: "template placeholder left ({{…}})" });
108
+ }
109
+ });
110
+ }
111
+ return problems;
112
+ }
113
+ /**
114
+ * What a fix must leave alone: no requirement tag removed from
115
+ * a file or moved to another one. `before` and `after` are the markers at the
116
+ * change's base and now. Tags are compared by file, not by the test they
117
+ * scope to: a test added or renamed near a tag would otherwise look like a
118
+ * removal.
119
+ */
120
+ export function checkFixMarkers(before, after) {
121
+ const problems = [];
122
+ const seen = new Set();
123
+ for (const m of before) {
124
+ const key = `${m.ref}\0${m.file}`;
125
+ if (seen.has(key))
126
+ continue;
127
+ seen.add(key);
128
+ if (after.some((n) => n.ref === m.ref && n.file === m.file))
129
+ continue;
130
+ const moved = after.find((n) => n.ref === m.ref);
131
+ problems.push({
132
+ file: m.file,
133
+ line: m.line,
134
+ message: moved
135
+ ? `@req ${m.ref} moved to ${moved.file}; a fix moves no requirement tag`
136
+ : `@req ${m.ref} was removed; a fix removes no requirement tag`,
137
+ });
138
+ }
139
+ return problems;
140
+ }
141
+ /**
142
+ * Changed catalog lines in a `git diff -U0` of the behavior directories. A fix
143
+ * changes only `verified:`, and removes the `mark: known-issue` of the entry it
144
+ * restores.
145
+ */
146
+ export function checkFixCatalog(diff) {
147
+ const problems = [];
148
+ let file = "";
149
+ for (const line of diff.split("\n")) {
150
+ if (line.startsWith("+++ "))
151
+ file = line.replace(/^\+\+\+ (b\/)?/, "");
152
+ if (line.startsWith("+++ ") || line.startsWith("--- "))
153
+ continue;
154
+ if (!/^[+-]/.test(line))
155
+ continue;
156
+ if (/^[+-]\s*- verified:/.test(line) || line.slice(1).trim() === "")
157
+ continue;
158
+ if (/^-\s*- mark: known-issue /.test(line))
159
+ continue;
160
+ problems.push({
161
+ file: file === "/dev/null" ? "(removed file)" : file,
162
+ message: `a fix changes the catalog's text ("${line.slice(1).trim().slice(0, 60)}"); only \`verified:\` may change, otherwise it is not a fix`,
163
+ });
164
+ }
165
+ return problems;
166
+ }
167
+ /**
168
+ * What the catalog directory holds that no component reads: an area directly
169
+ * in it, or a directory for no component of this repository (a misspelled
170
+ * name, or a component of another repository).
171
+ */
172
+ export async function checkStrayCatalog(root, config, repo = config.hub) {
173
+ const base = config.paths.behavior;
174
+ if (!existsSync(join(root, base)))
175
+ return [];
176
+ const known = new Set(behaviorDirs(config, repo).map((d) => basename(d.dir)));
177
+ const problems = [];
178
+ for (const e of await readdir(join(root, base), { withFileTypes: true })) {
179
+ const file = `${base}/${e.name}`;
180
+ if (e.isDirectory() && !known.has(e.name))
181
+ problems.push({
182
+ file,
183
+ message: `no component of this repository is ${e.name}: its areas are not read`,
184
+ });
185
+ else if (e.isFile() && e.name.endsWith(".md"))
186
+ problems.push({
187
+ file,
188
+ message: `areas go in ${base}/<component>/: this one is not read`,
189
+ });
190
+ }
191
+ return problems;
192
+ }
package/dist/cli.js ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import { main } from "./main.js";
3
+ process.exitCode = await main(process.argv.slice(2), {
4
+ env: process.env,
5
+ out: (line) => console.log(line),
6
+ err: (line) => console.error(line),
7
+ cwd: process.cwd(),
8
+ });
package/dist/code.js ADDED
@@ -0,0 +1,216 @@
1
+ import { existsSync, realpathSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { epicPath, loadConfig, pathsAt } from "./config.js";
4
+ import { git } from "./git.js";
5
+ import { epicBranchName, epicFront, readBlock, specNamesOf } from "./spec.js";
6
+ import { fsTree } from "./tree.js";
7
+ import { findSpecDocument, workBranchName } from "./work.js";
8
+ /** The code repositories of these components, each once, in the configuration's order. */
9
+ export function codeRepos(ws, components) {
10
+ const wanted = new Set(components);
11
+ const out = [];
12
+ for (const c of ws.config.components) {
13
+ if (!wanted.has(c.name))
14
+ continue;
15
+ const code = ws.codeOf(c.name);
16
+ if (!code)
17
+ continue;
18
+ const slug = ws.codeRepoOf(c.name);
19
+ if (out.some((o) => o.slug === slug))
20
+ continue;
21
+ out.push({ slug, dir: code.dir, main: ws.checkout(slug).main });
22
+ }
23
+ return out;
24
+ }
25
+ function same(a, b) {
26
+ const real = (p) => (existsSync(p) ? realpathSync(p) : p);
27
+ return real(a) === real(b);
28
+ }
29
+ async function worktreeOf(main, branch) {
30
+ await git(main, ["worktree", "prune"]);
31
+ const list = await git(main, ["worktree", "list", "--porcelain"]);
32
+ let path;
33
+ for (const line of list.split("\n")) {
34
+ if (line.startsWith("worktree "))
35
+ path = line.slice("worktree ".length);
36
+ if (line === `branch refs/heads/${branch}`)
37
+ return path;
38
+ }
39
+ return undefined;
40
+ }
41
+ /**
42
+ * Mounts the code of these components in `root`, a worktree of the hub on
43
+ * `branch`: a worktree of each code repository on the same branch, at its
44
+ * clone's name. A new branch starts from `base` on that repository's origin
45
+ * (an epic branch), or its default branch. An epic's own branch must exist
46
+ * there already (`cupola epic branch`). In the hub's main checkout, the clones
47
+ * themselves are the mounts.
48
+ */
49
+ export async function mountCode(ws, root, branch, components, opts = {}) {
50
+ const { addWorktree } = await import("./commands/worktree.js");
51
+ const out = [];
52
+ for (const repo of codeRepos(ws, components)) {
53
+ const path = join(root, repo.dir);
54
+ if (same(root, ws.hub.main)) {
55
+ out.push({ ...repo, path });
56
+ continue;
57
+ }
58
+ const existing = await worktreeOf(repo.main, branch);
59
+ if (existing) {
60
+ if (!same(existing, path)) {
61
+ throw new Error(`${branch} of ${repo.slug} is checked out at ${existing}, not in this worktree at ${path}: remove that worktree first`);
62
+ }
63
+ }
64
+ else if (branch.startsWith("epic/")) {
65
+ await addWorktree(repo.main, path, branch, {
66
+ mustExist: `the epic branches are made by \`cupola epic branch ${branch.slice(5)}\``,
67
+ });
68
+ }
69
+ else {
70
+ let from;
71
+ if (opts.base) {
72
+ try {
73
+ await git(repo.main, [
74
+ "ls-remote",
75
+ "--exit-code",
76
+ "--heads",
77
+ "origin",
78
+ `refs/heads/${opts.base}`,
79
+ ]);
80
+ }
81
+ catch (error) {
82
+ // Exit 2: origin answered without the branch. Anything else: origin was not reached.
83
+ throw new Error(error.code === 2
84
+ ? `${repo.slug} has no ${opts.base} on origin: make it with \`cupola epic branch\``
85
+ : `cannot reach the origin of ${repo.slug} to look for ${opts.base}; try again when it is reachable`);
86
+ }
87
+ await git(repo.main, [
88
+ "fetch",
89
+ "--quiet",
90
+ "origin",
91
+ `+refs/heads/${opts.base}:refs/remotes/origin/${opts.base}`,
92
+ ]);
93
+ from = `origin/${opts.base}`;
94
+ }
95
+ await addWorktree(repo.main, path, branch, { from });
96
+ }
97
+ out.push({ ...repo, path });
98
+ }
99
+ return out;
100
+ }
101
+ /** The code mounts this worktree has: each code repository checked out at its clone's name. */
102
+ export function mountsIn(ws, root, components) {
103
+ return codeRepos(ws, components)
104
+ .map((r) => ({ ...r, path: join(root, r.dir) }))
105
+ .filter((m) => existsSync(join(m.path, ".git")));
106
+ }
107
+ /**
108
+ * The components whose code a work item's worktree changes: a spec's, fix's,
109
+ * or catalog spec's component, an e2e setup's (`e2e-<component>`), or every
110
+ * component of an epic on its own branch. With the base the branches start
111
+ * from: a spec of an epic with two or more specs starts from its epic branch.
112
+ */
113
+ export async function workComponents(ws, root, id, branch) {
114
+ if (branch === epicBranchName(id)) {
115
+ const path = epicPath(ws.config.paths, id);
116
+ const raw = await fsTree(root).read(path);
117
+ if (raw === undefined)
118
+ return { components: [] };
119
+ return { components: [...new Set(epicFront(path, raw).front.specs.map((s) => s.component))] };
120
+ }
121
+ if (branch !== workBranchName(id))
122
+ return { components: [] };
123
+ try {
124
+ const doc = await findSpecDocument(fsTree(root), ws.config, id);
125
+ if (doc.component === "system")
126
+ return { components: [] };
127
+ return { components: [doc.component], base: await epicBaseOf(root, id) };
128
+ }
129
+ catch {
130
+ const e2e = /^e2e-(.+)$/.exec(id)?.[1];
131
+ if (e2e && ws.config.components.some((c) => c.name === e2e))
132
+ return { components: [e2e] };
133
+ return (await epicSpecOf(ws, root, id)) ?? { components: [] };
134
+ }
135
+ }
136
+ /**
137
+ * A spec not started yet (`cupola spec init` has not run): its component from
138
+ * its name, `<epic>-<component>` (or `-2`, …), when it is one of the names of
139
+ * that epic's specs; its base is the epic branch when the epic has two or more.
140
+ */
141
+ async function epicSpecOf(ws, root, id) {
142
+ for (const c of ws.config.components) {
143
+ const m = new RegExp(`^(.+)-${c.name}(?:-[0-9]+)?$`).exec(id);
144
+ const epic = m?.[1];
145
+ if (!epic)
146
+ continue;
147
+ const path = epicPath(ws.config.paths, epic);
148
+ const raw = await fsTree(root).read(path);
149
+ if (raw === undefined)
150
+ continue;
151
+ let specs;
152
+ try {
153
+ specs = epicFront(path, raw).front.specs;
154
+ }
155
+ catch {
156
+ continue;
157
+ }
158
+ const named = specNamesOf(epic, specs).find((s) => s.name === id);
159
+ if (!named)
160
+ continue;
161
+ return {
162
+ components: [named.component],
163
+ base: specs.length > 1 ? epicBranchName(epic) : undefined,
164
+ };
165
+ }
166
+ return undefined;
167
+ }
168
+ /** Mounts the code a work item's worktree changes, when the hub keeps every document. */
169
+ export async function mountWork(ws, root, id, branch, component) {
170
+ if (ws.config.documents !== "hub")
171
+ return [];
172
+ const found = await workComponents(ws, root, id, branch);
173
+ const components = found.components.length > 0 ? found.components : component ? [component] : [];
174
+ if (components.length === 0)
175
+ return [];
176
+ return mountCode(ws, root, branch, components, { base: found.base });
177
+ }
178
+ /**
179
+ * The base of a spec of an epic with two or more specs: its epic branch.
180
+ * Undefined for anything else, which targets the default branch.
181
+ */
182
+ export async function epicBaseOf(root, id) {
183
+ const tree = fsTree(root);
184
+ // A fix spec belongs to an epic with two or more specs: it targets the epic branch.
185
+ try {
186
+ const doc = await findSpecDocument(tree, await loadConfig(root), id);
187
+ if (doc.kind === "fix-spec" && doc.epic)
188
+ return epicBranchName(doc.epic);
189
+ }
190
+ catch {
191
+ // not a fix spec's document
192
+ }
193
+ const raw = await tree.read(`.kiro/specs/${id}/spec.json`);
194
+ if (raw === undefined)
195
+ return undefined;
196
+ const block = readBlock(`.kiro/specs/${id}/spec.json`, raw);
197
+ if (!block)
198
+ return undefined;
199
+ const path = epicPath(await pathsAt(root), block.epic);
200
+ const epic = await tree.read(path);
201
+ if (epic === undefined)
202
+ return undefined;
203
+ const { front } = epicFront(path, epic);
204
+ return front.specs.length >= 2 ? epicBranchName(block.epic) : undefined;
205
+ }
206
+ /** The code changes of a work item's branch, one per code repository of these components. */
207
+ export async function codeChanges(io, ws, branch, components) {
208
+ if (ws.config.documents !== "hub")
209
+ return [];
210
+ const out = [];
211
+ for (const r of codeRepos(ws, components)) {
212
+ const host = ws.host(io, r.slug);
213
+ out.push({ slug: r.slug, host, change: await host.findChange(branch) });
214
+ }
215
+ return out;
216
+ }