mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 00:28:14 +01:00
* feat(ci): internal packages get a reconciler, not another report
THE HOLE
`version-currency.mjs` judges a dependency by its MAJOR — `blessed-versions
.json` is literally called `majors`. That is the right instrument for `next`
and `react`, where a major is the event, and the wrong one for our own
packages, where we ship features in MINORS.
Measured 2026-09-21, `@bitbaum/ai-kit` was published at 1.10.0 and read:
heidi ^1.10.0 · loki ^1.8.0 · substrata ^1.7.0 · orangecat ^1.6.0
aoz-begleitung, botsmann, evig, hirnli, surf-your-life, truthseeker,
vitareba ^1.4.0
kivvi (packages/ai) ^0.15.0 · sbb-fundbuero ^0.15.0 · datacat (backend) ^0.13.0
Eleven of fourteen behind. TEN of those on major 1 — so the ratchet reported
zero gaps while the fleet spanned seven minor versions of the package that owns
model ids, failover, the three kinds of 429 and now vision routing. A fix
published for everyone reached two repos.
REPORTING IS WHAT ALREADY FAILED
SHARED.md has said "version spread is the metric to watch" and "getting a repo
current is the cheapest work in this file and nobody schedules it" since before
the spread was measured. Both true. Neither moved a version. This file's own
history is explicit that adoption has only ever moved as a side effect of
repairing an outage.
So the reconciler opens the pull request. Everything downstream already exists:
PR → the repo's CI → auto-merge-sweep → CD → box. A green bump ships itself. A
red bump is the useful outcome — it names the repo that cannot take the new
version, which nothing in the fleet tells a package author today.
WHAT IT WILL NOT DO
`@bitbaum/*` only. Auto-bumping someone else's major across the fleet on a
schedule is a different risk and our CI is not a safety net for it; third-party
majors stay with version-currency.mjs and a human.
It never fails a pipeline for being behind. A gate that FIXES what it measures
has nothing to gain from also going red, and a red nobody can clear by hand is
the dead end this fleet's doctrine forbids.
It does not hand-patch a manifest. Every repo installs frozen, so an
API-patched package.json without its lockfile is a PR that fails CI in every
repo every week for a reason unrelated to the bump — and a bot whose PRs are
always red gets muted, taking the real signal with it. The workflow checks the
repo out and lets pnpm write both files.
Capped at 12 PRs per run: a whole fleet going stale at once is likelier a bug
in the predicate than twelve stale repos.
DOCUMENTATION THAT HAD GONE FALSE
Three claims in SHARED.md were still being read as current:
- "kivvi, orangecat and evig already own model REGISTRIES ... which ai-kit
does not model" — it does. src/registry.ts carries contextWindow,
capabilities incl. vision, inputCostPer1M and a live-probed toolProtocol.
- "ai-kit has no streaming API" — completeStream() + ai-kit/sse shipped in
v1.9, and src/stream.ts opens by quoting that very row.
- the transcription row — transcribe() shipped; heidi migrated.
Three reasons repos gave for keeping their own AI layer, all built into the
package and left unclaimed, because the consumers are pinned below the fix.
Corrected in place with what is genuinely still missing (embeddings, a local
provider, image generation, anything not JavaScript) marked deliberate.
The general lesson is recorded there: a reason a repo gave for not adopting
something becomes a FACT in that file the moment it is written, and nothing
re-reads it when the reason expires. Date a reason, or it outlives its subject.
45 self-test checks, no network, no token, no checkout. Both sides pinned: the
same-major drift is caught, a current repo stays silent, and `workspace:*`, a
git pin and `>=1.2 <2` come back untouched — quietly rewriting a range somebody
chose deliberately is the worst bug this script could have.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014RpRyAd15YvFmQ1c1p1Rsk
* ci: run the reconciler's self-test, like every other audit's
Caught reviewing my own diff. This repo's CI names each audit's self-test
explicitly rather than globbing, which is the right call — a glob quietly
covers a file that does not exist yet and quietly stops covering one that is
renamed. It also means a NEW audit is uncovered until someone adds the line,
and I had not.
That matters more here than for most: this is the one audit that WRITES.
A scheduled run pushes a branch and opens a pull request in up to twelve
repositories, so its predicates are the last ones that should reach a schedule
unproven. They are pure precisely so they can be proved without a network, and
the proof has to actually run.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014RpRyAd15YvFmQ1c1p1Rsk
* fix(ci): the re-arm gate asked a wider question than its own name
It went red on this PR, correctly as written and wrongly as intended:
internal-currency.yml pushes to main but never re-arms CI
internal-currency.yml re-arms CI but lacks 'actions: write'
That workflow pushes a FEATURE branch, to a DIFFERENT repository, with a PAT.
Three independent reasons it cannot strand this repo's merge queue, which is
the invariant the gate is named for. What it was actually keyed on was
`grep -q 'git push'`.
The gate is not wrong and is not weakened here. It indexed more than it was
trusted to cover — this file's own recurring shape, recorded about
version-currency and the hosted-supabase sweep in the same table — and the
remedy is the one this repo keeps arriving at rather than an exemption:
narrow the predicate to the invariant, and put it where fixtures can reach it.
Satisfying it literally was the alternative and would have been worse: adding
`actions: write` and a `gh workflow run ci.yml` to a workflow that has no
business dispatching fleet's CI, purely so a grep would pass. A gate answered
that way stops meaning anything.
WHAT NOW COUNTS AS PUSHING TO MAIN
git push the CURRENT branch — on a scheduled run
here that is main. COUNTS
git push origin main says so. COUNTS
git push origin HEAD:main same. COUNTS
git push origin "$BRANCH" an explicit non-main ref does not,
UNLESS the file sets that variable to main
That last clause is the doorway, and it is pinned: naming your target $BRANCH
must not buy an exemption while `BRANCH: main` sits ten lines above it. Both
the YAML-env and shell-assignment spellings are fixtures.
A comment is also no longer a push. Without that the gate reported ITSELF —
ci.yml quotes the old predicate in the comment explaining it, and was listed
as a pushing workflow.
MOVED OUT OF ci.yml, because a rule that can only be exercised by editing a
real workflow is a rule nobody re-tests after changing its regex. Same
reasoning that put the verify-contract rules in verify-predicates.sh.
Eleven fixtures, no network, red half written first. And the claim the old
inline comment made — "proven by mutation: deleting any of the three re-arms
turns this red" — re-run against the real readings.yml: deleted, red; restored,
green.
The remaining limit is stated in the script rather than implied: a workflow
pushing to ANOTHER repo's default branch is not covered, because it cannot
strand THIS queue, and a gate for it belongs with whatever owns that queue.
All 27 of this repo's CI self-tests pass locally.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014RpRyAd15YvFmQ1c1p1Rsk
---------
Co-authored-by: Claude <noreply@anthropic.com>
349 lines
15 KiB
JavaScript
349 lines
15 KiB
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* Fleet audit: how far is each repo from the blessed version of everything
|
|
* it uses — and is that distance shrinking?
|
|
*
|
|
* WHY THIS EXISTS
|
|
* ---------------
|
|
* On 2026-08-31 a manual audit of all 38 repos found the production box on
|
|
* Node 20 four months past EOL, one app (aoz-begleitung) a full framework
|
|
* generation behind on every axis at once, the flagship's own CLAUDE.md
|
|
* describing a Tailwind major that main had left months earlier, and ai-kit
|
|
* pinned at three different tags across seven consumers — one of them still
|
|
* pointing at the repo's pre-org-move OWNER. None of this was hidden. All of
|
|
* it was unmeasured, so none of it ever became anyone's next action.
|
|
*
|
|
* Same doctrine as shared-inventory.sh: writing "keep dependencies current"
|
|
* in a doc is what already failed. This produces a NUMBER per repo — how many
|
|
* key packages sit below the fleet's blessed major — and `--check` makes the
|
|
* total a ratchet: it may fall, it may hold, it may never rise.
|
|
*
|
|
* WHAT IS BLESSED
|
|
* ---------------
|
|
* blessed-versions.json, next to this script, is the SSOT. Raising a blessed
|
|
* major there is a deliberate PR — the moment the fleet decides "Next 17 is
|
|
* the standard now", every repo below it becomes a counted gap. The audit
|
|
* never decides what is current; it only measures distance from the decision.
|
|
*
|
|
* WHAT IT DOES NOT PROVE
|
|
* ----------------------
|
|
* That a repo at the blessed major WORKS — CI proves that, per repo. And it
|
|
* judges only manifests it could READ: a repo whose package.json could not be
|
|
* fetched is reported UNCHECKED, never counted as gap-free. "I could not
|
|
* look" and "nothing is stale" are different answers, and collapsing them is
|
|
* how a broken detector reports a healthy fleet.
|
|
*
|
|
* AND IT IS BLIND BELOW THE MAJOR — deliberately, but the blindness has a cost
|
|
* worth naming here rather than rediscovering. `parseMajor("^16.2.12")` is 16;
|
|
* blessed is 16; no gap. Every minor and patch is invisible. It also reads the
|
|
* declared RANGE, while the lockfile decides what actually ships — a caret that
|
|
* ALLOWS 16.3.4 sits happily on 16.2.12 forever, because an already-satisfied
|
|
* dependency is never upgraded on install.
|
|
*
|
|
* On 2026-09-10 that combination hid two CRITICAL unauthenticated RCEs in Next
|
|
* on a live site for months: this audit returned zero gaps for both
|
|
* `"^16.2.12"` and `"16.2.3"`. Do not extend it into a security check — the
|
|
* security question is answered by dependabot-alerts-audit.sh, which asks
|
|
* whether each repo can REPORT a CVE at all, and by GitHub's own continuous
|
|
* scanning of the lockfiles once that switch is on. This one answers a
|
|
* different question: are we on the major the fleet agreed to.
|
|
*
|
|
* IT USED TO READ ONLY THE ROOT MANIFEST
|
|
* --------------------------------------
|
|
* Which meant a monorepo consumer was invisible, and its silence read exactly
|
|
* like currency. Measured 2026-09-12: kivvi installs @bitbaum/ai-kit in
|
|
* `packages/ai` at ^0.15.0 and datacat in `backend` at ^0.13.0, against a
|
|
* published 1.4.1 — neither repo appeared in a single gap report, and both sat
|
|
* in the "current (0 gaps)" line, which is a stronger claim than "not looked
|
|
* at" and was not true.
|
|
*
|
|
* So it now walks workspace manifests too, and every probe is EVIDENCE-BASED:
|
|
* a directory is listed before a manifest inside it is fetched, so "no
|
|
* package.json here" is something the listing said, never a 404 being read as
|
|
* an answer. The cost is a handful of extra listings on the six repos that
|
|
* actually have workspaces; every other repo pays nothing.
|
|
*
|
|
* Reads each repo's REMOTE default branch via the contents API, never a local
|
|
* checkout: clones drift, and this fleet has already shipped a redundant PR
|
|
* off a stale clone.
|
|
*
|
|
* Usage:
|
|
* node scripts/ci/version-currency.mjs # report
|
|
* node scripts/ci/version-currency.mjs --check # ratchet: exit 1 if total gaps ROSE
|
|
* node scripts/ci/version-currency.mjs --update # rewrite the baseline (do it in a PR)
|
|
*
|
|
* Env: GH_OWNER (default bitbaum), GH_LIMIT (default 100)
|
|
*/
|
|
import { execFileSync } from "node:child_process";
|
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
import { dirname, join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
const BLESSED_PATH = join(HERE, "blessed-versions.json");
|
|
const BASELINE_PATH = process.env.VERSION_CURRENCY_BASELINE || join(HERE, "version-currency.baseline");
|
|
|
|
// ── Pure logic (exported for the self-test; no network below this line) ─────
|
|
|
|
/** First integer in a semver-ish range: "^16.2.3" -> 16, "16" -> 16, "*" -> null. */
|
|
export function parseMajor(range) {
|
|
if (typeof range !== "string") return null;
|
|
const m = range.match(/(\d+)/);
|
|
return m ? Number(m[1]) : null;
|
|
}
|
|
|
|
/** Is this dependency value a git pin (github:owner/repo#tag)? Returns {owner, repo, tag} or null. */
|
|
export function parseGitPin(range) {
|
|
if (typeof range !== "string") return null;
|
|
const m = range.match(/^(?:github:|git\+https:\/\/github\.com\/)([\w.-]+)\/([\w.-]+?)(?:\.git)?#(.+)$/);
|
|
return m ? { owner: m[1], repo: m[2], tag: m[3] } : null;
|
|
}
|
|
|
|
/**
|
|
* Gaps for one manifest against the blessed config.
|
|
* Returns an array of human-readable gap strings; empty = current.
|
|
*/
|
|
export function gapsFor(pkg, blessed) {
|
|
const deps = { ...(pkg.dependencies || {}), ...(pkg.devDependencies || {}) };
|
|
const gaps = [];
|
|
for (const [name, blessedMajor] of Object.entries(blessed.majors)) {
|
|
if (!(name in deps)) continue;
|
|
const have = parseMajor(deps[name]);
|
|
if (have !== null && have < blessedMajor) {
|
|
gaps.push(`${name} ${deps[name]} < blessed ${blessedMajor}`);
|
|
}
|
|
}
|
|
for (const [name, blessedTag] of Object.entries(blessed.internal_tags || {})) {
|
|
if (!(name in deps)) continue;
|
|
const pin = parseGitPin(deps[name]);
|
|
if (pin) {
|
|
if (pin.owner !== (process.env.GH_OWNER || "bitbaum")) {
|
|
gaps.push(`${name} pinned at owner ${pin.owner} (dead after org move)`);
|
|
} else if (pin.tag !== blessedTag) {
|
|
gaps.push(`${name} #${pin.tag} != blessed #${blessedTag}`);
|
|
}
|
|
}
|
|
// A registry version pin is not judged here — once packages are on npm,
|
|
// move them into `majors` and delete the internal_tags entry.
|
|
}
|
|
return gaps;
|
|
}
|
|
|
|
/**
|
|
* Directories that hold workspace members (one manifest per CHILD), and
|
|
* directories that are themselves a sub-app (one manifest directly inside).
|
|
*
|
|
* Both lists are needed because the fleet has both shapes: kivvi/evig/orangecat/
|
|
* petvity/loki are pnpm workspaces with `packages/` (kivvi also `apps/`),
|
|
* while datacat is not a workspace at all — just `frontend/` and `backend/`
|
|
* side by side, each with its own manifest. A rule that only understood
|
|
* workspaces would have kept missing datacat, which is one of the two repos
|
|
* this change exists for.
|
|
*/
|
|
export const WORKSPACE_CONTAINERS = ["packages", "apps", "services"];
|
|
export const SUBAPP_DIRS = ["frontend", "backend", "api", "web", "server", "client"];
|
|
|
|
/**
|
|
* Given a repo's ROOT directory listing, which directories are worth listing.
|
|
*
|
|
* Pure, so the decision is testable without the network. Deliberately driven
|
|
* by what the listing actually contains: a name absent from the root is never
|
|
* probed, so the audit cannot mistake a 404 for "no manifest here".
|
|
*/
|
|
export function dirsToExplore(rootNames) {
|
|
const names = new Set(rootNames || []);
|
|
return {
|
|
containers: WORKSPACE_CONTAINERS.filter((d) => names.has(d)),
|
|
subapps: SUBAPP_DIRS.filter((d) => names.has(d)),
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Gaps found in a non-root manifest are labelled with their directory.
|
|
*
|
|
* `kivvi` and `kivvi packages/ai` are different facts about different files,
|
|
* and a report that prints them identically sends someone to edit the wrong
|
|
* manifest. The root's gaps stay unlabelled so existing output is unchanged.
|
|
*/
|
|
export function labelGaps(gaps, path) {
|
|
if (path === "package.json") return gaps;
|
|
const dir = path.replace(/\/package\.json$/, "");
|
|
return gaps.map((g) => `${dir}/ — ${g}`);
|
|
}
|
|
|
|
/** Collate per-repo results into the report + total. */
|
|
export function collate(results) {
|
|
const checked = results.filter((r) => r.pkg !== undefined);
|
|
const unchecked = results.filter((r) => r.pkg === undefined);
|
|
const rows = checked
|
|
.map((r) => ({ repo: r.repo, gaps: r.gaps }))
|
|
.sort((a, b) => b.gaps.length - a.gaps.length || a.repo.localeCompare(b.repo));
|
|
const total = rows.reduce((n, r) => n + r.gaps.length, 0);
|
|
return { rows, total, uncheckedRepos: unchecked.map((r) => r.repo) };
|
|
}
|
|
|
|
// ── Fleet reading (network) ─────────────────────────────────────────────────
|
|
|
|
function gh(args) {
|
|
return execFileSync("gh", args, { encoding: "utf8", timeout: 60000 });
|
|
}
|
|
|
|
/**
|
|
* Forks are EXEMPT, not measured. A fork that tracks an upstream does not own
|
|
* its manifest — upstream's dependency policy is the SSOT, and patching the
|
|
* fork's lockfile only buys merge friction (learned on bitbaum/openclaw
|
|
* 2026-09-01: an openai bump there could never be more current than the next
|
|
* upstream sync, and its CI baseline belongs to upstream too). A fork's
|
|
* currency action is SYNCING, which this audit cannot ratchet. Exempted forks
|
|
* are printed by name so the exemption is visible, never silent.
|
|
*/
|
|
export function listRepos(owner, limit) {
|
|
const raw = gh(["repo", "list", owner, "--limit", String(limit), "--json", "name,isArchived,isFork"]);
|
|
const all = JSON.parse(raw).filter((r) => !r.isArchived);
|
|
return {
|
|
repos: all.filter((r) => !r.isFork).map((r) => r.name).sort(),
|
|
forks: all.filter((r) => r.isFork).map((r) => r.name).sort(),
|
|
};
|
|
}
|
|
|
|
export function fetchManifest(owner, repo, path = "package.json") {
|
|
try {
|
|
const raw = gh(["api", `repos/${owner}/${repo}/contents/${path}`, "--jq", ".content"]);
|
|
return JSON.parse(Buffer.from(raw.trim(), "base64").toString("utf8"));
|
|
} catch {
|
|
return undefined; // unreadable OR absent — resolved by root listing below
|
|
}
|
|
}
|
|
|
|
/** Names in a directory, or null if it could not be listed at all. */
|
|
export function listDir(owner, repo, path = "") {
|
|
try {
|
|
const raw = gh(["api", `repos/${owner}/${repo}/contents/${path}`, "--jq", "[.[].name]"]);
|
|
return JSON.parse(raw);
|
|
} catch {
|
|
return null; // could not look — never the same as "nothing there"
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Every manifest worth judging in one repo: the root, plus each workspace
|
|
* member and sub-app. Each is confirmed present by a LISTING before it is
|
|
* fetched.
|
|
*/
|
|
export function manifestPaths(owner, repo, rootNames) {
|
|
const paths = rootNames.includes("package.json") ? ["package.json"] : [];
|
|
const { containers, subapps } = dirsToExplore(rootNames);
|
|
|
|
for (const dir of subapps) {
|
|
const names = listDir(owner, repo, dir);
|
|
if (names && names.includes("package.json")) paths.push(`${dir}/package.json`);
|
|
}
|
|
for (const container of containers) {
|
|
const children = listDir(owner, repo, container);
|
|
if (!children) continue;
|
|
for (const child of children) {
|
|
const names = listDir(owner, repo, `${container}/${child}`);
|
|
if (names && names.includes("package.json")) paths.push(`${container}/${child}/package.json`);
|
|
}
|
|
}
|
|
return paths;
|
|
}
|
|
|
|
function main() {
|
|
const mode = process.argv.includes("--check") ? "check" : process.argv.includes("--update") ? "update" : "report";
|
|
const owner = process.env.GH_OWNER || "bitbaum";
|
|
const limit = Number(process.env.GH_LIMIT || 100);
|
|
const blessed = JSON.parse(readFileSync(BLESSED_PATH, "utf8"));
|
|
|
|
const { repos, forks } = listRepos(owner, limit);
|
|
const results = [];
|
|
for (const repo of repos) {
|
|
const rootNames = listDir(owner, repo);
|
|
if (rootNames === null) {
|
|
results.push({ repo }); // could not even list — UNCHECKED
|
|
continue;
|
|
}
|
|
const paths = manifestPaths(owner, repo, rootNames);
|
|
if (paths.length === 0) continue; // shell/docs repo: no Node surface, not a gap
|
|
|
|
// UNCHECKED is decided by the ROOT manifest, which is what "this repo was
|
|
// measured" has always meant. A workspace member that cannot be read is a
|
|
// hole in coverage, not grounds for discarding the repo's real findings —
|
|
// but it must not pass silently either, so it is named below.
|
|
let rootPkg;
|
|
const gaps = [];
|
|
const unreadable = [];
|
|
for (const path of paths) {
|
|
const pkg = fetchManifest(owner, repo, path);
|
|
if (pkg === undefined) { unreadable.push(path); continue; }
|
|
if (path === "package.json") rootPkg = pkg;
|
|
gaps.push(...labelGaps(gapsFor(pkg, blessed), path));
|
|
}
|
|
|
|
const rootRequired = paths.includes("package.json");
|
|
if (rootRequired && rootPkg === undefined) {
|
|
results.push({ repo }); // listed but unreadable — UNCHECKED, never zero
|
|
continue;
|
|
}
|
|
results.push({ repo, pkg: rootPkg ?? {}, gaps, unreadable });
|
|
}
|
|
|
|
const { rows, total, uncheckedRepos } = collate(results);
|
|
|
|
console.log(`version-currency: ${rows.length} repos measured against blessed-versions.json`);
|
|
for (const r of rows) {
|
|
if (r.gaps.length === 0) continue;
|
|
console.log(`\n ${r.repo} (${r.gaps.length})`);
|
|
for (const g of r.gaps) console.log(` - ${g}`);
|
|
}
|
|
const current = rows.filter((r) => r.gaps.length === 0).map((r) => r.repo);
|
|
if (current.length) console.log(`\n current (0 gaps): ${current.join(", ")}`);
|
|
|
|
// A workspace manifest that was listed but could not be fetched is a hole in
|
|
// this run's coverage. Printed by name, because the alternative is a repo
|
|
// appearing in "current (0 gaps)" on the strength of files nobody read.
|
|
const partial = results.filter((r) => r.unreadable && r.unreadable.length > 0);
|
|
if (partial.length) {
|
|
console.log("\n PARTIAL (some manifests unreadable — their contents are not in the total):");
|
|
for (const r of partial) console.log(` ${r.repo}: ${r.unreadable.join(", ")}`);
|
|
}
|
|
if (uncheckedRepos.length) {
|
|
console.log(`\n UNCHECKED (could not read — not counted as clean): ${uncheckedRepos.join(", ")}`);
|
|
}
|
|
if (forks.length) {
|
|
console.log(`\n fork-exempt (upstream owns the manifest; currency = syncing): ${forks.join(", ")}`);
|
|
}
|
|
console.log(`\n TOTAL GAPS: ${total}`);
|
|
|
|
if (mode === "update") {
|
|
writeFileSync(BASELINE_PATH, `${total}\n`);
|
|
console.log(` baseline written: ${total}`);
|
|
return;
|
|
}
|
|
if (mode === "check") {
|
|
let baseline;
|
|
try {
|
|
baseline = Number(readFileSync(BASELINE_PATH, "utf8").trim());
|
|
} catch {
|
|
console.error(" no baseline — run --update in a PR first");
|
|
process.exit(1);
|
|
}
|
|
if (Number.isNaN(baseline)) {
|
|
console.error(" baseline unreadable — refusing to compare against garbage");
|
|
process.exit(1);
|
|
}
|
|
if (total > baseline) {
|
|
console.error(` RATCHET: gaps rose ${baseline} -> ${total}. Fix the regressions or raise the baseline in a PR a human sees.`);
|
|
process.exit(1);
|
|
}
|
|
if (total < baseline) {
|
|
console.log(` gaps fell ${baseline} -> ${total} — tighten the baseline with --update in your next PR`);
|
|
} else {
|
|
console.log(` holding at ${total}`);
|
|
}
|
|
}
|
|
}
|
|
|
|
const invokedDirectly = process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1];
|
|
if (invokedDirectly) main();
|