@davidbyoung/software-factory 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +5 -0
- package/LICENSE +21 -0
- package/README.md +135 -2
- package/actions/factory-agent/action.yml +218 -0
- package/agents/factory-test-reviewer.md +129 -0
- package/agents/factory-ticket-readiness.md +107 -0
- package/agents/factory-ui-reviewer.md +160 -0
- package/bin/factory.js +45 -0
- package/bin/launch.js +67 -0
- package/dist/board.d.mts +128 -0
- package/dist/board.mjs +456 -0
- package/dist/build.d.mts +18 -0
- package/dist/build.mjs +60 -0
- package/dist/cli.d.mts +17 -0
- package/dist/cli.mjs +264 -0
- package/dist/code-host/github.d.mts +118 -0
- package/dist/code-host/github.mjs +419 -0
- package/dist/code-host/index.d.mts +9 -0
- package/dist/code-host/index.mjs +18 -0
- package/dist/code-host/types.d.mts +205 -0
- package/dist/code-host/types.mjs +12 -0
- package/dist/config.d.mts +166 -0
- package/dist/config.mjs +548 -0
- package/dist/deps.d.mts +32 -0
- package/dist/deps.mjs +126 -0
- package/dist/doctor.d.mts +34 -0
- package/dist/doctor.mjs +188 -0
- package/dist/guard-commit.d.mts +41 -0
- package/dist/guard-commit.mjs +209 -0
- package/dist/guard-permission.d.mts +15 -0
- package/dist/guard-permission.mjs +52 -0
- package/dist/guard-ticket-text.d.mts +27 -0
- package/dist/guard-ticket-text.mjs +288 -0
- package/dist/guard.d.mts +4 -0
- package/dist/guard.mjs +37 -0
- package/dist/init.d.mts +58 -0
- package/dist/init.mjs +556 -0
- package/dist/lib/clock.d.mts +14 -0
- package/dist/lib/clock.mjs +36 -0
- package/dist/lib/gh.d.mts +28 -0
- package/dist/lib/gh.mjs +92 -0
- package/dist/lib/glob.d.mts +2 -0
- package/dist/lib/glob.mjs +41 -0
- package/dist/lib/pricing.d.mts +25 -0
- package/dist/lib/pricing.mjs +77 -0
- package/dist/lib/usage.d.mts +34 -0
- package/dist/lib/usage.mjs +128 -0
- package/dist/lib/work-status.d.mts +251 -0
- package/dist/lib/work-status.mjs +510 -0
- package/dist/merge-policy.d.mts +66 -0
- package/dist/merge-policy.mjs +146 -0
- package/dist/parts.d.mts +39 -0
- package/dist/parts.mjs +138 -0
- package/dist/poller.d.mts +61 -0
- package/dist/poller.mjs +247 -0
- package/dist/pr-watch.d.mts +45 -0
- package/dist/pr-watch.mjs +244 -0
- package/dist/pr.d.mts +65 -0
- package/dist/pr.mjs +571 -0
- package/dist/review-cost.d.mts +18 -0
- package/dist/review-cost.mjs +95 -0
- package/dist/review-tools.d.mts +5 -0
- package/dist/review-tools.mjs +46 -0
- package/dist/review-verdict.d.mts +50 -0
- package/dist/review-verdict.mjs +171 -0
- package/dist/reviewers.d.mts +54 -0
- package/dist/reviewers.mjs +312 -0
- package/dist/runner/github-actions.d.mts +12 -0
- package/dist/runner/github-actions.mjs +97 -0
- package/dist/runner/index.d.mts +9 -0
- package/dist/runner/index.mjs +22 -0
- package/dist/runner/types.d.mts +60 -0
- package/dist/runner/types.mjs +7 -0
- package/dist/session-start.d.mts +20 -0
- package/dist/session-start.mjs +115 -0
- package/dist/site/capture.d.mts +44 -0
- package/dist/site/capture.mjs +114 -0
- package/dist/site/measure.d.mts +83 -0
- package/dist/site/measure.mjs +225 -0
- package/dist/site/pages.d.mts +10 -0
- package/dist/site/pages.mjs +71 -0
- package/dist/site/pixels.d.mts +47 -0
- package/dist/site/pixels.mjs +157 -0
- package/dist/site/servers.d.mts +47 -0
- package/dist/site/servers.mjs +141 -0
- package/dist/site.d.mts +60 -0
- package/dist/site.mjs +341 -0
- package/dist/status.d.mts +100 -0
- package/dist/status.mjs +514 -0
- package/dist/sync.d.mts +59 -0
- package/dist/sync.mjs +292 -0
- package/dist/ticket.d.mts +61 -0
- package/dist/ticket.mjs +562 -0
- package/dist/tickets/github.d.mts +128 -0
- package/dist/tickets/github.mjs +491 -0
- package/dist/tickets/index.d.mts +15 -0
- package/dist/tickets/index.mjs +27 -0
- package/dist/tickets/transport.d.mts +42 -0
- package/dist/tickets/transport.mjs +158 -0
- package/dist/tickets/types.d.mts +191 -0
- package/dist/tickets/types.mjs +76 -0
- package/docs/builds.md +227 -0
- package/docs/cli.md +221 -0
- package/docs/configuration.md +809 -0
- package/docs/design.md +106 -0
- package/docs/developing.md +400 -0
- package/docs/existing-repo.md +138 -0
- package/docs/github/reference.md +288 -0
- package/docs/github/setup.md +312 -0
- package/docs/glossary.md +106 -0
- package/docs/limitations.md +115 -0
- package/docs/plugins.md +192 -0
- package/docs/quick-start.md +222 -0
- package/docs/removing.md +76 -0
- package/docs/skills.md +270 -0
- package/docs/updating.md +108 -0
- package/docs/workflow.md +195 -0
- package/package.json +67 -4
- package/poller.Dockerfile +21 -0
- package/review.md +170 -0
- package/rules.md +313 -0
- package/settings.schema.json +411 -0
- package/skills/factory-address-review/SKILL.md +547 -0
- package/skills/factory-address-review/patch-coverage.py +68 -0
- package/skills/factory-build/SKILL.md +412 -0
- package/skills/factory-deps/SKILL.md +185 -0
- package/skills/factory-design/SKILL.md +159 -0
- package/skills/factory-diagnose/SKILL.md +93 -0
- package/skills/factory-mutate/SKILL.md +76 -0
- package/skills/factory-refine/SKILL.md +417 -0
- package/skills/factory-resolve-conflicts/SKILL.md +235 -0
- package/workflows/factory-board-sync.yml +91 -0
- package/workflows/factory-build.yml +72 -0
- package/workflows/factory-check.yml +37 -0
- package/workflows/factory-claude-review.yml +133 -0
- package/workflows/factory-conflicts.yml +69 -0
- package/workflows/factory-deps-auto-merge.yml +43 -0
- package/workflows/factory-deps.yml +59 -0
- package/workflows/factory-merge-policy.yml +121 -0
- package/workflows/factory-review-verdict.yml +54 -0
- package/workflows/factory-review.yml +75 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Wait until a pull request needs its session's attention, say why, and exit.
|
|
3
|
+
//
|
|
4
|
+
// npx --no-install factory pr watch N # run in the background
|
|
5
|
+
// npx --no-install factory pr watch N --release # stop claiming the pull request
|
|
6
|
+
//
|
|
7
|
+
// Each event is reported once, so a check judged fine as-is does not wake the
|
|
8
|
+
// session again. Run it again after working what it reported, until it prints
|
|
9
|
+
// "merged" or "closed". While it runs, the pull request's body carries a mark
|
|
10
|
+
// that the `factory-address-review` skill reads, so a workflow does not answer the owner's
|
|
11
|
+
// review alongside this session.
|
|
12
|
+
import { execFileSync } from "node:child_process";
|
|
13
|
+
import { createHash } from "node:crypto";
|
|
14
|
+
import { existsSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
15
|
+
import { setTimeout as sleep } from "node:timers/promises";
|
|
16
|
+
import { reachOf } from "./config.mjs";
|
|
17
|
+
import { openCodeHost, } from "./code-host/index.mjs";
|
|
18
|
+
const FAILED_CONCLUSIONS = new Set([
|
|
19
|
+
"failure",
|
|
20
|
+
"timed_out",
|
|
21
|
+
"cancelled",
|
|
22
|
+
"startup_failure",
|
|
23
|
+
"action_required",
|
|
24
|
+
]);
|
|
25
|
+
const AGENT_MARKER = "<!-- agent -->";
|
|
26
|
+
const REVIEW_CHECK = "Claude review";
|
|
27
|
+
const REVIEW_BOT = "github-actions[bot]";
|
|
28
|
+
export function toChecks(runs, statuses) {
|
|
29
|
+
return [
|
|
30
|
+
...runs.map((run) => {
|
|
31
|
+
const state = run.status !== "completed"
|
|
32
|
+
? "pending"
|
|
33
|
+
: FAILED_CONCLUSIONS.has(run.conclusion ?? "")
|
|
34
|
+
? "failed"
|
|
35
|
+
: "passed";
|
|
36
|
+
return { id: run.id, name: run.name, state, url: run.link };
|
|
37
|
+
}),
|
|
38
|
+
...statuses.map((status) => {
|
|
39
|
+
const state = status.state === "pending"
|
|
40
|
+
? "pending"
|
|
41
|
+
: status.state === "success"
|
|
42
|
+
? "passed"
|
|
43
|
+
: "failed";
|
|
44
|
+
return { id: status.id, name: status.name, state, url: status.link };
|
|
45
|
+
}),
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
/** The last one, since re-running the review posts another for the commit. */
|
|
49
|
+
function reviewSummary(snapshot) {
|
|
50
|
+
return snapshot.conversation
|
|
51
|
+
.filter((comment) => comment.author === REVIEW_BOT &&
|
|
52
|
+
comment.body.includes(`claude-review sha=${snapshot.headSha}`))
|
|
53
|
+
.at(-1);
|
|
54
|
+
}
|
|
55
|
+
function fingerprint(body) {
|
|
56
|
+
return createHash("sha256").update(body).digest("hex").slice(0, 12);
|
|
57
|
+
}
|
|
58
|
+
/** A failed review run posts no summary, so that run ends the wait for one. */
|
|
59
|
+
function reviewIsOver(snapshot) {
|
|
60
|
+
if (reviewSummary(snapshot))
|
|
61
|
+
return true;
|
|
62
|
+
const run = snapshot.checks.find((check) => check.name === REVIEW_CHECK);
|
|
63
|
+
return run?.state === "failed";
|
|
64
|
+
}
|
|
65
|
+
/** What needs the session now and has not been reported. A closed pull
|
|
66
|
+
* request ends the watch, so nothing else about it is news. */
|
|
67
|
+
export function newEvents(snapshot, seen) {
|
|
68
|
+
if (snapshot.merged)
|
|
69
|
+
return [{ key: "merged", line: "merged" }];
|
|
70
|
+
if (snapshot.state !== "open")
|
|
71
|
+
return [{ key: "closed", line: "closed" }];
|
|
72
|
+
const sha = snapshot.headSha;
|
|
73
|
+
const found = [];
|
|
74
|
+
if (snapshot.mergeableState === "dirty") {
|
|
75
|
+
found.push({
|
|
76
|
+
key: `conflict:${sha}`,
|
|
77
|
+
line: `conflict with main at ${sha}`,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
for (const check of snapshot.checks) {
|
|
81
|
+
if (check.state !== "failed")
|
|
82
|
+
continue;
|
|
83
|
+
found.push({
|
|
84
|
+
key: `failed:${check.id}`,
|
|
85
|
+
line: `check failed: ${check.name} ${check.url ?? ""}`.trim(),
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
const summary = reviewSummary(snapshot);
|
|
89
|
+
if (summary) {
|
|
90
|
+
const verdict = /review-verdict: (\w+)/.exec(summary.body)?.[1] ?? "unknown";
|
|
91
|
+
found.push({
|
|
92
|
+
key: `review:${summary.id}`,
|
|
93
|
+
line: `review of ${sha}: ${verdict}`,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
// The reviewer posts its findings one at a time, and a push partway through
|
|
97
|
+
// would cancel it, so they wait for it to finish.
|
|
98
|
+
const reviewRunning = snapshot.checks.some((check) => check.name === REVIEW_CHECK && check.state === "pending");
|
|
99
|
+
for (const comment of snapshot.comments) {
|
|
100
|
+
if (comment.body.includes(AGENT_MARKER))
|
|
101
|
+
continue;
|
|
102
|
+
if (reviewRunning && comment.author === REVIEW_BOT)
|
|
103
|
+
continue;
|
|
104
|
+
found.push({
|
|
105
|
+
key: `comment:${comment.id}:${fingerprint(comment.body)}`,
|
|
106
|
+
line: `comment ${comment.id} by ${comment.author} on ${comment.where}`,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
for (const review of snapshot.reviews) {
|
|
110
|
+
if (!review.body.trim() || review.body.includes(AGENT_MARKER))
|
|
111
|
+
continue;
|
|
112
|
+
found.push({
|
|
113
|
+
key: `review-body:${review.id}:${fingerprint(review.body)}`,
|
|
114
|
+
line: `review body ${review.id} by ${review.author}`,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
const finished = snapshot.checks.length > 0 &&
|
|
118
|
+
snapshot.checks.every((check) => check.state !== "pending") &&
|
|
119
|
+
reviewIsOver(snapshot);
|
|
120
|
+
if (finished) {
|
|
121
|
+
found.push({
|
|
122
|
+
key: `finished:${snapshot.checks
|
|
123
|
+
.map((check) => check.id)
|
|
124
|
+
.sort()
|
|
125
|
+
.join(",")}`,
|
|
126
|
+
line: `every check has finished on ${sha}`,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
return found.filter((event) => !seen.has(event.key));
|
|
130
|
+
}
|
|
131
|
+
const MARK = /\n*<!-- session-watching: (\S+) -->/;
|
|
132
|
+
export function withWatchMark(body, now) {
|
|
133
|
+
const stripped = withoutWatchMark(body);
|
|
134
|
+
return `${stripped}\n\n<!-- session-watching: ${now.toISOString()} -->`;
|
|
135
|
+
}
|
|
136
|
+
export function withoutWatchMark(body) {
|
|
137
|
+
return body.replace(MARK, "");
|
|
138
|
+
}
|
|
139
|
+
/** A mark goes stale after an hour, so a session that has gone stops holding
|
|
140
|
+
* back the workflow soon after. Renewing it covers the time a session spends
|
|
141
|
+
* working what the watcher reported, when nothing renews it. */
|
|
142
|
+
export function watchMarkNeedsRenewing(body, now) {
|
|
143
|
+
const written = MARK.exec(body)?.[1];
|
|
144
|
+
if (!written)
|
|
145
|
+
return true;
|
|
146
|
+
const ageMs = now.getTime() - new Date(written).getTime();
|
|
147
|
+
return !(ageMs < 15 * 60 * 1000);
|
|
148
|
+
}
|
|
149
|
+
/** A login that has expired or a pull request that does not exist will not
|
|
150
|
+
* recover by waiting, so the session should hear about it now. */
|
|
151
|
+
export function isPermanentFailure(error) {
|
|
152
|
+
return /HTTP 40[14]\b/.test(String(error));
|
|
153
|
+
}
|
|
154
|
+
async function readSnapshot(p, pr) {
|
|
155
|
+
const pull = await p.get(pr);
|
|
156
|
+
const sha = pull.head.sha;
|
|
157
|
+
const [runs, statuses, conversation, comments, reviews] = await Promise.all([
|
|
158
|
+
p.checkRuns(sha),
|
|
159
|
+
p.statuses(sha),
|
|
160
|
+
p.comments(pr),
|
|
161
|
+
p.reviewComments(pr),
|
|
162
|
+
p.reviews(pr),
|
|
163
|
+
]);
|
|
164
|
+
const toComment = (raw) => ({
|
|
165
|
+
id: raw.id,
|
|
166
|
+
author: raw.author,
|
|
167
|
+
where: raw.path ? `${raw.path}:${raw.line ?? "?"}` : "the pull request",
|
|
168
|
+
body: raw.body,
|
|
169
|
+
});
|
|
170
|
+
return {
|
|
171
|
+
body: pull.body,
|
|
172
|
+
snapshot: {
|
|
173
|
+
state: pull.state,
|
|
174
|
+
merged: pull.merged ?? false,
|
|
175
|
+
headSha: sha,
|
|
176
|
+
mergeableState: pull.mergeableState,
|
|
177
|
+
checks: toChecks(runs, statuses),
|
|
178
|
+
conversation: conversation.map(toComment),
|
|
179
|
+
comments: comments.map(toComment),
|
|
180
|
+
reviews: reviews.map(toComment),
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
const POLL_MS = 30_000;
|
|
185
|
+
// A laptop that sleeps pauses this timer, so this is an hour of failing awake.
|
|
186
|
+
const MAX_FAILURES = 120;
|
|
187
|
+
async function main(argv) {
|
|
188
|
+
const pr = argv[0];
|
|
189
|
+
if (!/^\d+$/.test(pr ?? "")) {
|
|
190
|
+
console.error("Usage: factory pr watch PR_NUMBER [--release]");
|
|
191
|
+
process.exit(2);
|
|
192
|
+
}
|
|
193
|
+
const { repository, codeHost } = await reachOf(process.env);
|
|
194
|
+
const p = openCodeHost(repository, codeHost);
|
|
195
|
+
const n = Number(pr);
|
|
196
|
+
if (argv[1] === "--release") {
|
|
197
|
+
const { body } = await readSnapshot(p, n);
|
|
198
|
+
await p.setBody(n, withoutWatchMark(body));
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
const seenFile = execFileSync("git", ["rev-parse", "--git-path", `watch-pr-${pr}.json`], { encoding: "utf8" }).trim();
|
|
202
|
+
const seen = new Set(existsSync(seenFile) ? JSON.parse(readFileSync(seenFile, "utf8")) : []);
|
|
203
|
+
let failures = 0;
|
|
204
|
+
for (;;) {
|
|
205
|
+
try {
|
|
206
|
+
const { snapshot, body } = await readSnapshot(p, n);
|
|
207
|
+
const events = newEvents(snapshot, seen);
|
|
208
|
+
if (snapshot.state !== "open") {
|
|
209
|
+
rmSync(seenFile, { force: true });
|
|
210
|
+
console.log(events.map((event) => event.line).join("\n"));
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
if (watchMarkNeedsRenewing(body, new Date())) {
|
|
214
|
+
try {
|
|
215
|
+
await p.setBody(n, withWatchMark(body, new Date()));
|
|
216
|
+
}
|
|
217
|
+
catch (error) {
|
|
218
|
+
// Not a reason to hold back what is ready to report.
|
|
219
|
+
console.error(`Could not renew the watch mark: ${error}`);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (events.length > 0) {
|
|
223
|
+
console.log(events.map((event) => event.line).join("\n"));
|
|
224
|
+
for (const event of events)
|
|
225
|
+
seen.add(event.key);
|
|
226
|
+
writeFileSync(seenFile, JSON.stringify([...seen]));
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
failures = 0;
|
|
230
|
+
}
|
|
231
|
+
catch (error) {
|
|
232
|
+
failures += 1;
|
|
233
|
+
if (isPermanentFailure(error) || failures >= MAX_FAILURES)
|
|
234
|
+
throw error;
|
|
235
|
+
}
|
|
236
|
+
await sleep(POLL_MS);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
// Only run as a CLI. Importing this module for tests must not call GitHub.
|
|
240
|
+
/** `factory pr watch N [--release]`. */
|
|
241
|
+
export async function run(argv) {
|
|
242
|
+
await main(argv);
|
|
243
|
+
return 0;
|
|
244
|
+
}
|
package/dist/pr.d.mts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { type Check } from "./pr-watch.mts";
|
|
3
|
+
import { type CodeHost, type Pull, type PullComment, type Review, type Thread } from "./code-host/index.mts";
|
|
4
|
+
import { type Run, type Runner } from "./runner/index.mts";
|
|
5
|
+
export type Deps = {
|
|
6
|
+
/** The repository, as owner/name, from the factory's settings. */
|
|
7
|
+
repository: string;
|
|
8
|
+
codeHost: CodeHost;
|
|
9
|
+
runner: Runner;
|
|
10
|
+
sleep: (ms: number) => Promise<unknown>;
|
|
11
|
+
out: (line: string) => void;
|
|
12
|
+
readFile: (path: string) => string;
|
|
13
|
+
git: (args: string[]) => string;
|
|
14
|
+
/** Milliseconds, for how long `wait-checks` has waited. */
|
|
15
|
+
now?: () => number;
|
|
16
|
+
/** For GITHUB_ACTIONS, which says GraphQL is open without asking. */
|
|
17
|
+
env?: Record<string, string | undefined>;
|
|
18
|
+
};
|
|
19
|
+
export declare function withAgentMark(body: string): string;
|
|
20
|
+
export type Report = {
|
|
21
|
+
pull: Pull;
|
|
22
|
+
ownerLogin: string;
|
|
23
|
+
reviewRun: {
|
|
24
|
+
status: string;
|
|
25
|
+
conclusion: string | null;
|
|
26
|
+
} | null;
|
|
27
|
+
summary: PullComment | null;
|
|
28
|
+
conversation: PullComment[];
|
|
29
|
+
reviews: Review[];
|
|
30
|
+
threads: Thread[];
|
|
31
|
+
checks: Check[];
|
|
32
|
+
};
|
|
33
|
+
/** The owner's review bodies still to answer: submitted after the last
|
|
34
|
+
* conversation comment carrying the agent mark, a sweep's own comments
|
|
35
|
+
* aside. */
|
|
36
|
+
export declare function ownerReviewsToWork(r: Report): Review[];
|
|
37
|
+
/** A review is coming for this head only on a pull request the Claude review
|
|
38
|
+
* workflow runs on. */
|
|
39
|
+
export declare function reviewExpected(pull: Pull): boolean;
|
|
40
|
+
export declare function isSettled(r: Report): boolean;
|
|
41
|
+
export declare function formatReport(r: Report): string[];
|
|
42
|
+
/** The newest run of each workflow, among the waited-on events. */
|
|
43
|
+
export declare function newestRuns(runs: Run[]): Run[];
|
|
44
|
+
/** A conversation comment as `pr comments` lists it: ID, author, time, and
|
|
45
|
+
* its first line. */
|
|
46
|
+
export declare function commentLine(c: PullComment): string;
|
|
47
|
+
/** Whether the owner's review has something in it to work, and if not,
|
|
48
|
+
* why: "closed", "someone else's review", or "the factory's own reply". An
|
|
49
|
+
* empty body counts for nothing, since the factory's reply is a review with
|
|
50
|
+
* an empty body and one comment carrying the marker. */
|
|
51
|
+
export declare function reviewPending(p: CodeHost, pr: number, reviewId: number, owner: string): Promise<{
|
|
52
|
+
pending: true;
|
|
53
|
+
} | {
|
|
54
|
+
pending: false;
|
|
55
|
+
why: string;
|
|
56
|
+
}>;
|
|
57
|
+
/** The numbers of the pull requests the conflict sweep takes, oldest first:
|
|
58
|
+
* not a draft, from this repository, not Dependabot's, based on the default
|
|
59
|
+
* branch, `dirty`, and with no stop comment for the current head. GitHub
|
|
60
|
+
* computes the state lazily, so an `unknown` one is read up to 5 times, 10
|
|
61
|
+
* seconds apart. */
|
|
62
|
+
export declare function conflicting(p: CodeHost, sleepFor: (ms: number) => Promise<unknown>): Promise<number[]>;
|
|
63
|
+
export declare function main(argv: string[], d: Deps): Promise<number>;
|
|
64
|
+
/** `factory pr ...`. */
|
|
65
|
+
export declare function run(argv: string[]): Promise<number>;
|