@krysoworks/kryso 0.0.0-stage → 2.0.0-rc.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/LICENSE +21 -0
- package/README.md +152 -2
- package/bin/kryso +31 -0
- package/bin/ship-it-status +14 -0
- package/bin/ship-ledger +14 -0
- package/bin/ship-loop +14 -0
- package/bin/ship-pass +14 -0
- package/bin/warden +14 -0
- package/dist/answer.d.ts +38 -0
- package/dist/answer.js +48 -0
- package/dist/bytes.d.ts +5 -0
- package/dist/bytes.js +35 -0
- package/dist/cleanup.d.ts +1 -0
- package/dist/cleanup.js +629 -0
- package/dist/commands.d.ts +48 -0
- package/dist/commands.js +293 -0
- package/dist/completions.d.ts +24 -0
- package/dist/completions.js +239 -0
- package/dist/daemon.d.ts +15 -0
- package/dist/daemon.js +23 -0
- package/dist/diagnose.d.ts +47 -0
- package/dist/diagnose.js +314 -0
- package/dist/doctor.d.ts +1 -0
- package/dist/doctor.js +241 -0
- package/dist/env.d.ts +9 -0
- package/dist/env.js +17 -0
- package/dist/evidence.d.ts +39 -0
- package/dist/evidence.js +327 -0
- package/dist/home.d.ts +3 -0
- package/dist/home.js +27 -0
- package/dist/install.d.ts +59 -0
- package/dist/install.js +137 -0
- package/dist/isolate.d.ts +28 -0
- package/dist/isolate.js +402 -0
- package/dist/leftovers.d.ts +5 -0
- package/dist/leftovers.js +156 -0
- package/dist/machine.d.ts +6 -0
- package/dist/machine.js +185 -0
- package/dist/palette.d.ts +147 -0
- package/dist/palette.js +167 -0
- package/dist/plan.d.ts +1 -0
- package/dist/plan.js +133 -0
- package/dist/proc.d.ts +23 -0
- package/dist/proc.js +23 -0
- package/dist/read.d.ts +1 -0
- package/dist/read.js +297 -0
- package/dist/readiness.d.ts +5 -0
- package/dist/readiness.js +64 -0
- package/dist/remote.d.ts +6 -0
- package/dist/remote.js +85 -0
- package/dist/self-update.d.ts +1 -0
- package/dist/self-update.js +224 -0
- package/dist/semver.d.ts +7 -0
- package/dist/semver.js +42 -0
- package/dist/style.d.ts +71 -0
- package/dist/style.js +187 -0
- package/dist/update.d.ts +47 -0
- package/dist/update.js +190 -0
- package/dist/work.d.ts +25 -0
- package/dist/work.js +449 -0
- package/dist/workflows.d.ts +4 -0
- package/dist/workflows.js +73 -0
- package/docker/entrypoint.sh +44 -0
- package/docker/runner.Dockerfile +39 -0
- package/package.json +65 -4
- package/scripts/install-skills.sh +607 -0
- package/skills/code-review/SKILL.md +231 -0
- package/skills/kryso/SKILL.md +107 -0
- package/skills/kryso/golden/help.rounded.ansi +23 -0
- package/skills/kryso/golden/help.square.ansi +23 -0
- package/skills/kryso/golden/help.txt +23 -0
- package/skills/kryso/golden/table-narrow.json +11 -0
- package/skills/kryso/golden/table-narrow.rounded.ansi +4 -0
- package/skills/kryso/golden/table-narrow.square.ansi +4 -0
- package/skills/kryso/golden/table.ansi +5 -0
- package/skills/kryso/golden/table.json +11 -0
- package/skills/kryso/ledger.sh +2146 -0
- package/skills/kryso/palette.json +57 -0
- package/skills/kryso/reference/resuming.md +30 -0
- package/skills/kryso/reference/routing.md +23 -0
- package/skills/kryso/reference/stage-1-claim.md +79 -0
- package/skills/kryso/reference/stage-2-build.md +133 -0
- package/skills/kryso/reference/stage-3-prove.md +51 -0
- package/skills/kryso/reference/stage-4-pr.md +76 -0
- package/skills/kryso/reference/stage-5-reconcile.md +81 -0
- package/skills/kryso/reference/stage-6-merge-or-park.md +73 -0
- package/skills/kryso/reference/stage-7-close-out.md +62 -0
- package/skills/kryso/reference/terminal.md +7 -0
- package/skills/kryso/ship-it-status.sh +1503 -0
- package/skills/kryso/ui.py +274 -0
- package/skills/kryso/ui.sh +609 -0
- package/skills/kryso-build/SKILL.md +168 -0
- package/skills/kryso-shift/SKILL.md +167 -0
- package/skills/kryso-shift/archive.py +2784 -0
- package/skills/kryso-shift/archive_checker.py +462 -0
- package/skills/kryso-shift/archive_checker_lambda.py +155 -0
- package/skills/kryso-shift/archive_health.py +364 -0
- package/skills/kryso-shift/archive_launchd.py +140 -0
- package/skills/kryso-shift/archive_remote.py +990 -0
- package/skills/kryso-shift/archiving-checker.md +140 -0
- package/skills/kryso-shift/archiving-keep.md +115 -0
- package/skills/kryso-shift/archiving-recovery.md +112 -0
- package/skills/kryso-shift/archiving-remote.md +166 -0
- package/skills/kryso-shift/archiving.md +146 -0
- package/skills/kryso-shift/coverage.schema.json +225 -0
- package/skills/kryso-shift/deadline.sh +254 -0
- package/skills/kryso-shift/feedback.schema.json +35 -0
- package/skills/kryso-shift/feedback.sh +228 -0
- package/skills/kryso-shift/history-manifest.schema.json +331 -0
- package/skills/kryso-shift/keep-after.sh +55 -0
- package/skills/kryso-shift/measure.sh +611 -0
- package/skills/kryso-shift/merge-ready.sh +207 -0
- package/skills/kryso-shift/outcome.schema.json +16 -0
- package/skills/kryso-shift/pass-rules.md +8 -0
- package/skills/kryso-shift/profile.schema.json +42 -0
- package/skills/kryso-shift/reader.sh +692 -0
- package/skills/kryso-shift/reads.sh +151 -0
- package/skills/kryso-shift/reference/allowance.md +21 -0
- package/skills/kryso-shift/reference/driver.md +95 -0
- package/skills/kryso-shift/reference/measuring.md +67 -0
- package/skills/kryso-shift/reference/outputs.md +21 -0
- package/skills/kryso-shift/reference/pass-script.md +115 -0
- package/skills/kryso-shift/reference/reconcile-and-merge.md +55 -0
- package/skills/kryso-shift/reference/second-reader.md +9 -0
- package/skills/kryso-shift/reference/sweeps.md +83 -0
- package/skills/kryso-shift/repair.schema.json +14 -0
- package/skills/kryso-shift/report-template.html +679 -0
- package/skills/kryso-shift/report.py +389 -0
- package/skills/kryso-shift/report_fixture.py +65 -0
- package/skills/kryso-shift/reporting.md +58 -0
- package/skills/kryso-shift/result.sh +91 -0
- package/skills/kryso-shift/runner.sh +1178 -0
- package/skills/kryso-shift/ship-loop.sh +3977 -0
- package/skills/kryso-shift/ship-pass.sh +4987 -0
- package/skills/kryso-shift/steps.jq +19 -0
- package/skills/kryso-shift/workflow.mjs +830 -0
- package/skills/kryso-shift/workflows/default.json +22 -0
- package/skills/kryso-shift/workflows/ralph.json +13 -0
- package/skills/kryso-watch/SKILL.md +100 -0
- package/skills/kryso-watch/answer.schema.json +23 -0
- package/skills/kryso-watch/base-refs.sh +44 -0
- package/skills/kryso-watch/board.sh +58 -0
- package/skills/kryso-watch/reference/config.md +23 -0
- package/skills/kryso-watch/reference/outputs.md +30 -0
- package/skills/kryso-watch/reference/report.md +29 -0
- package/skills/kryso-watch/reference/scheduler.md +32 -0
- package/skills/kryso-watch/reference/settlement.md +29 -0
- package/skills/kryso-watch/reference/shift.md +44 -0
- package/skills/kryso-watch/reference/shim-limits.md +22 -0
- package/skills/kryso-watch/reference/triage.md +26 -0
- package/skills/kryso-watch/schema.jq +40 -0
- package/skills/kryso-watch/settle.schema.json +36 -0
- package/skills/kryso-watch/stage-common.sh +187 -0
- package/skills/kryso-watch/stages/report.sh +525 -0
- package/skills/kryso-watch/stages/settle.sh +722 -0
- package/skills/kryso-watch/stages/shift.sh +466 -0
- package/skills/kryso-watch/stages/triage.sh +379 -0
- package/skills/kryso-watch/tracker.sh +27 -0
- package/skills/kryso-watch/triage.schema.json +77 -0
- package/skills/kryso-watch/warden.launchd.plist +50 -0
- package/skills/kryso-watch/warden.schema.json +98 -0
- package/skills/kryso-watch/warden.sh +1004 -0
package/dist/update.js
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// What kryso self-update --check reads, kept apart from the command so kryso doctor makes the same
|
|
2
|
+
// check: each install kind's plan, with the version installed and the one available, whatever
|
|
3
|
+
// would refuse the update, the installer's running-copy check, and the steps. Every question to a
|
|
4
|
+
// registry goes through the tool that installed kryso, never a fetch of kryso's own. A checkout's
|
|
5
|
+
// plan fetches its remote first, and one asked to write nothing reads the remote's branch with
|
|
6
|
+
// git ls-remote instead.
|
|
7
|
+
import { readFileSync } from "node:fs";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
import { EX_CONFIG, EX_UNAVAILABLE } from "./env.js";
|
|
10
|
+
import { ADD, LABELS } from "./install.js";
|
|
11
|
+
import { capture } from "./proc.js";
|
|
12
|
+
import { channelOf, compareVersions, isVersion } from "./semver.js";
|
|
13
|
+
export const lineOf = (p) => (p.hint ? `${p.message}: ${p.hint}` : p.message);
|
|
14
|
+
const word = (w) => (/^[\w@%+=:,./-]+$/.test(w) ? w : `'${w.replaceAll("'", `'\\''`)}'`);
|
|
15
|
+
export const show = (s) => s.argv.map(word).join(" ") + (s.cwd ? ` (in ${s.cwd})` : "");
|
|
16
|
+
const versionAt = (dir) => JSON.parse(readFileSync(path.join(dir, "package.json"), "utf8")).version;
|
|
17
|
+
/** The installer's running-copy check, leaving out this process, which loaded all it runs. */
|
|
18
|
+
const guardOf = (installer, args, cwd) => ({
|
|
19
|
+
argv: ["bash", installer, "--check-running", ...args, "--ignore-pid", String(process.pid)],
|
|
20
|
+
cwd,
|
|
21
|
+
installer: true,
|
|
22
|
+
});
|
|
23
|
+
/** A package replaced by the tool that installed it: the guard covers the package's directory,
|
|
24
|
+
* the upgrade replaces it, and kryso skills install then runs from the new copy, which is read
|
|
25
|
+
* at settled, the path that stays the same from one version to the next. */
|
|
26
|
+
function packageUpdate(label, install, available, current, upgrade, settled) {
|
|
27
|
+
const { root, version } = install;
|
|
28
|
+
return {
|
|
29
|
+
label,
|
|
30
|
+
where: root,
|
|
31
|
+
installed: version,
|
|
32
|
+
available,
|
|
33
|
+
current,
|
|
34
|
+
blockers: [],
|
|
35
|
+
guard: guardOf(path.join(root, "scripts", "install-skills.sh"), ["--also", root]),
|
|
36
|
+
steps: [{ argv: upgrade }, { argv: [path.join(settled, "bin", "kryso"), "skills", "install"], installer: true }],
|
|
37
|
+
done: () => versionAt(settled),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const VIEW = { npm: "view", pnpm: "view", bun: "info" };
|
|
41
|
+
/** An npm, pnpm or bun global package: `<tool> view` asks the registry for the channel's
|
|
42
|
+
* version, and `<tool> install -g` (add, for pnpm and bun) replaces the package. The package's
|
|
43
|
+
* path under the global root stays the same, though pnpm's real directory moves. */
|
|
44
|
+
function packagePlan(install, ask, env) {
|
|
45
|
+
const { kind, root, version, name, globalRoot } = install;
|
|
46
|
+
const channel = ask.channel ?? channelOf(version);
|
|
47
|
+
const spec = `${name}@${channel}`;
|
|
48
|
+
const query = [VIEW[kind], spec, "version"];
|
|
49
|
+
const r = capture(kind, query, env);
|
|
50
|
+
// A tool may colour its output on a terminal it does not have, so codes are taken out.
|
|
51
|
+
const available = r.out.replace(/\x1b\[[0-9;]*m/g, "").split("\n").pop()?.trim() ?? "";
|
|
52
|
+
if (!r.ok || !isVersion(available)) {
|
|
53
|
+
const why = r.missing ? `${kind} is not on PATH` : (r.err.split("\n")[0] || `it printed '${available}'`);
|
|
54
|
+
return { status: EX_UNAVAILABLE, problem: { message: `${kind} ${query.join(" ")} failed, so the newest version is unknown: ${why}` } };
|
|
55
|
+
}
|
|
56
|
+
return packageUpdate(LABELS[kind], install, `${available} on ${channel}`, compareVersions(available, version) <= 0, [kind, ...ADD[kind], spec], path.join(globalRoot, name));
|
|
57
|
+
}
|
|
58
|
+
/** A Homebrew keg: the tap's version as brew last fetched it, and `brew upgrade`. A keg's path
|
|
59
|
+
* names its version, so the new copy is read through opt/, which brew points at the new keg. */
|
|
60
|
+
function brewPlan(install, env) {
|
|
61
|
+
const { version, prefix, formula, rest } = install;
|
|
62
|
+
const r = capture("brew", ["info", "--json=v2", formula], env);
|
|
63
|
+
let available = "";
|
|
64
|
+
try {
|
|
65
|
+
const info = JSON.parse(r.out);
|
|
66
|
+
const stable = info.formulae?.[0]?.versions?.stable;
|
|
67
|
+
if (typeof stable === "string")
|
|
68
|
+
available = stable;
|
|
69
|
+
}
|
|
70
|
+
catch {
|
|
71
|
+
// Reported below.
|
|
72
|
+
}
|
|
73
|
+
if (!r.ok || !isVersion(available)) {
|
|
74
|
+
return { status: EX_UNAVAILABLE, problem: { message: `brew info --json=v2 ${formula} failed, so the newest version is unknown${r.err ? `: ${r.err.split("\n")[0]}` : ""}` } };
|
|
75
|
+
}
|
|
76
|
+
return packageUpdate(LABELS.brew, install, `${available} in Homebrew's tap, as brew last fetched it`, compareVersions(available, version) <= 0, ["brew", "upgrade", formula], path.join(prefix, "opt", formula, rest));
|
|
77
|
+
}
|
|
78
|
+
/** A checkout install: the branch it was installed from, against that branch's upstream after a
|
|
79
|
+
* fetch, or as ls-remote reads it where the plan may fetch nothing. The update is the checkout's own install again, from the commit a fast-forward reaches.
|
|
80
|
+
* That commit is fixed here, and the merge names it, so what --check and --dry-run print is what
|
|
81
|
+
* installs, whatever the checkout's pull settings say. A branch ahead of its upstream is a
|
|
82
|
+
* developer's own, and installs its own head, labelled as ahead. */
|
|
83
|
+
function checkoutPlan(install, ask, env) {
|
|
84
|
+
const { root, version } = install;
|
|
85
|
+
const record = install.record;
|
|
86
|
+
const ck = record.checkout;
|
|
87
|
+
// No optional lock, so git status does not refresh the index: kryso doctor makes this check too.
|
|
88
|
+
const git = (...args) => capture("git", ["--no-optional-locks", "-C", ck, ...args], env);
|
|
89
|
+
if (git("rev-parse", "--is-inside-work-tree").out !== "true") {
|
|
90
|
+
return { status: EX_CONFIG, problem: { message: `install.json names the checkout ${ck}, which is not a git checkout`, hint: "install again from one with scripts/install-skills.sh" } };
|
|
91
|
+
}
|
|
92
|
+
const branch = record.branch;
|
|
93
|
+
if (!branch) {
|
|
94
|
+
return {
|
|
95
|
+
status: EX_CONFIG,
|
|
96
|
+
problem: {
|
|
97
|
+
message: `kryso was installed from a detached HEAD at ${record.sha.slice(0, 7)}, so there is no branch to follow`,
|
|
98
|
+
hint: "check out a branch, then install it with scripts/install-skills.sh",
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
const upstream = git("rev-parse", "--abbrev-ref", `${branch}@{upstream}`).out;
|
|
103
|
+
const remote = git("config", `branch.${branch}.remote`).out;
|
|
104
|
+
if (!upstream || !remote) {
|
|
105
|
+
return { status: EX_CONFIG, problem: { message: `${branch} has no upstream`, hint: `set one with git -C ${ck} branch --set-upstream-to=origin/${branch} ${branch}` } };
|
|
106
|
+
}
|
|
107
|
+
const unknown = (what, r) => ({
|
|
108
|
+
status: EX_UNAVAILABLE,
|
|
109
|
+
problem: { message: `${what} failed in ${ck}, so the newest commit is unknown${r.err ? `: ${r.err.split("\n")[0]}` : ""}` },
|
|
110
|
+
});
|
|
111
|
+
let up;
|
|
112
|
+
if (ask.fetch) {
|
|
113
|
+
const fetched = capture("git", ["-C", ck, "fetch", "--quiet", remote], env);
|
|
114
|
+
if (!fetched.ok)
|
|
115
|
+
return unknown(`git fetch ${remote}`, fetched);
|
|
116
|
+
up = git("rev-parse", upstream).out;
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
// The upstream branch's commit on the remote, read without a fetch. A commit the checkout does
|
|
120
|
+
// not have yet is no ancestor of anything here, so it reads as an update.
|
|
121
|
+
const merge = git("config", `branch.${branch}.merge`).out;
|
|
122
|
+
// No prompt for a password: a remote that wants one fails here, and the update is unknown.
|
|
123
|
+
const listed = capture("git", ["-C", ck, "ls-remote", "--exit-code", remote, merge], { ...env, GIT_TERMINAL_PROMPT: "0" });
|
|
124
|
+
if (!listed.ok)
|
|
125
|
+
return unknown(`git ls-remote ${remote} ${merge}`, listed);
|
|
126
|
+
up = listed.out.split(/\s/)[0] ?? "";
|
|
127
|
+
}
|
|
128
|
+
const head = git("rev-parse", branch).out;
|
|
129
|
+
const ancestor = (a, b) => capture("git", ["-C", ck, "merge-base", "--is-ancestor", a, b], env).ok;
|
|
130
|
+
// The commit a fast-forward pull reaches: the upstream's, or the branch's own when it is ahead.
|
|
131
|
+
// A commit ls-remote named that the checkout does not have is news from the remote. Whether the
|
|
132
|
+
// branch diverged from it cannot be told without a fetch, so it reads as behind, not diverged.
|
|
133
|
+
const unseen = !ask.fetch && !git("cat-file", "-e", `${up}^{commit}`).ok;
|
|
134
|
+
const behind = unseen || ancestor(head, up);
|
|
135
|
+
const diverged = !behind && !ancestor(up, head);
|
|
136
|
+
const target = behind || diverged ? up : head;
|
|
137
|
+
const ahead = !behind && !diverged ? Number(git("rev-list", "--count", `${up}..${head}`).out) || 0 : 0;
|
|
138
|
+
const short = (sha) => sha.slice(0, 7);
|
|
139
|
+
// The commit, after its version where the checkout has it. A commit ls-remote named and no fetch
|
|
140
|
+
// brought has none to read, and the commit is still the one to compare.
|
|
141
|
+
let at = short(target);
|
|
142
|
+
try {
|
|
143
|
+
at = `${JSON.parse(git("show", `${target}:packages/cli/package.json`).out).version} at ${at}`;
|
|
144
|
+
}
|
|
145
|
+
catch {
|
|
146
|
+
// The commit alone.
|
|
147
|
+
}
|
|
148
|
+
const blockers = [];
|
|
149
|
+
if (git("status", "--porcelain", "--untracked-files=no").out) {
|
|
150
|
+
blockers.push({ message: `the checkout ${ck} has uncommitted changes`, hint: "commit or stash them, then run kryso self-update again" });
|
|
151
|
+
}
|
|
152
|
+
const on = git("symbolic-ref", "--short", "-q", "HEAD").out;
|
|
153
|
+
if (on !== branch) {
|
|
154
|
+
blockers.push(on
|
|
155
|
+
? { message: `the checkout is on ${on}, and kryso was installed from ${branch}`, hint: `check out ${branch}, or install ${on} with scripts/install-skills.sh` }
|
|
156
|
+
: { message: `the checkout's HEAD is detached, and kryso was installed from ${branch}`, hint: `check out ${branch}` });
|
|
157
|
+
}
|
|
158
|
+
if (diverged)
|
|
159
|
+
blockers.push({ message: `${branch} has diverged from ${upstream}`, hint: `rebase it onto ${upstream} or reset it, then run kryso self-update again` });
|
|
160
|
+
const bin = record.bin === null ? ["--no-bin"] : ["--bin", record.bin];
|
|
161
|
+
return {
|
|
162
|
+
label: LABELS.checkout,
|
|
163
|
+
where: `${ck} on branch ${branch}`,
|
|
164
|
+
installed: `${version} at ${short(record.sha)}`,
|
|
165
|
+
available: ahead > 0 ? `${at}, ${ahead} commit${ahead === 1 ? "" : "s"} ahead of ${upstream}` : `${at} on ${upstream}`,
|
|
166
|
+
current: record.sha === target,
|
|
167
|
+
blockers,
|
|
168
|
+
guard: guardOf(path.join(ck, "scripts", "install-skills.sh"), bin),
|
|
169
|
+
steps: [
|
|
170
|
+
{ argv: ["git", "merge", "--ff-only", target], cwd: ck },
|
|
171
|
+
{ argv: ["pnpm", "install", "--frozen-lockfile"], cwd: ck },
|
|
172
|
+
{ argv: ["pnpm", "build"], cwd: ck },
|
|
173
|
+
// The installer replaces the copy this process runs from, so it is told to leave this
|
|
174
|
+
// process out of its running-copy check, as the guard is.
|
|
175
|
+
{ argv: ["bash", "scripts/install-skills.sh", ...bin, "--ignore-pid", String(process.pid)], cwd: ck, installer: true },
|
|
176
|
+
],
|
|
177
|
+
done: () => {
|
|
178
|
+
const sha = JSON.parse(readFileSync(path.join(root, "install.json"), "utf8")).sha;
|
|
179
|
+
return `${versionAt(root)} at ${short(sha)}`;
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
/** The plan for an install of a kind kryso knows how to update. */
|
|
184
|
+
export function planUpdate(install, ask, env) {
|
|
185
|
+
if (install.kind === "checkout")
|
|
186
|
+
return checkoutPlan(install, ask, env);
|
|
187
|
+
if (install.kind === "brew")
|
|
188
|
+
return brewPlan(install, env);
|
|
189
|
+
return packagePlan(install, ask, env);
|
|
190
|
+
}
|
package/dist/work.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Diagnosis } from "@krysoworks/core";
|
|
2
|
+
/** The work, locks and branches groups for the repository at repo, its top-level path, read
|
|
3
|
+
* through the ledger module among the drivers at home. With no ledger module to read through,
|
|
4
|
+
* the work and locks are one unknown diagnosis. */
|
|
5
|
+
export declare function workGroups(repo: string, home: string | undefined, offline: boolean, env: NodeJS.ProcessEnv): Diagnosis[];
|
|
6
|
+
/** The pass a worktree's ledger names: its issue, and its branch where the header names one. */
|
|
7
|
+
export interface Pass {
|
|
8
|
+
issue: string;
|
|
9
|
+
branch: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
/** The pass a worktree's ledger names, read through the ledger module among the drivers at home,
|
|
12
|
+
* or undefined when it names no issue or cannot be read. The doctor document has no field for it,
|
|
13
|
+
* so a reader of a diagnosis asks the module again. */
|
|
14
|
+
export declare function passOf(wt: string, home: string, env: NodeJS.ProcessEnv): Pass | undefined;
|
|
15
|
+
/** The ledger module among the drivers at home, or undefined when the install has none. */
|
|
16
|
+
export declare function ledgerModule(home: string): string | undefined;
|
|
17
|
+
/** The tip a branches diagnosis judged its branch merged at. */
|
|
18
|
+
export declare const tipOf: (d: Diagnosis) => string | undefined;
|
|
19
|
+
/** A pass lock file's issue, and where it is, for a reader that removes it through the module. */
|
|
20
|
+
export interface LockFile {
|
|
21
|
+
issue: string;
|
|
22
|
+
file: string;
|
|
23
|
+
}
|
|
24
|
+
/** The pass lock files a locks diagnosis counts, in the directory its subject names. */
|
|
25
|
+
export declare function lockFiles(d: Diagnosis): LockFile[];
|