From 5946d2e438217282f6203e32edd6fad5b6aa617e Mon Sep 17 00:00:00 2001 From: Vishrutha S Gowda Date: Sat, 14 Nov 2026 22:44:55 +0530 Subject: [PATCH 1/2] Read CLI version from package.json (fixes #1) --- bin/until.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/until.mjs b/bin/until.mjs index f3ccc20..ac5f1b7 100644 --- a/bin/until.mjs +++ b/bin/until.mjs @@ -1,4 +1,5 @@ #!/usr/bin/env node +import { readFileSync } from "node:fs"; import { mkdir, readFile, rm, writeFile } from "node:fs/promises"; import path from "node:path"; import { fileURLToPath } from "node:url"; @@ -10,14 +11,13 @@ import { Evolver, EVIDENCE_FOCUSED_GENOME } from "../src/evolve.js"; import { exportProof } from "../src/export.js"; import { atomicWrite, resolveInside } from "../src/util.js"; -const VERSION = "0.2.0"; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); - +const VERSION = JSON.parse(readFileSync(path.join(ROOT, "package.json"), "utf8")).version; const HELP = `UNTIL ${VERSION} — done means proven. Usage: until [options] -Commands: +Commands:f init --goal FILE Create a durable product goal signal add FILE Add a typed, sourced signal signal list List signals From 3cf9ab557c76c1eb92ae106d6fd4f1ad10def581 Mon Sep 17 00:00:00 2001 From: Vishrutha S Gowda Date: Sat, 14 Nov 2026 22:48:30 +0530 Subject: [PATCH 2/2] Keep blank line before HELP --- bin/until.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/until.mjs b/bin/until.mjs index ac5f1b7..4eec4ca 100644 --- a/bin/until.mjs +++ b/bin/until.mjs @@ -13,6 +13,7 @@ import { atomicWrite, resolveInside } from "../src/util.js"; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); const VERSION = JSON.parse(readFileSync(path.join(ROOT, "package.json"), "utf8")).version; + const HELP = `UNTIL ${VERSION} — done means proven. Usage: until [options]