austere-axi 0.5.0 → 0.5.2
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/README.md +4 -1
- package/dist/austere.js +72 -63
- package/dist/catalog.json +1 -1
- package/dist/chrome/chrome.css +1 -1
- package/dist/chrome/chrome.js +5 -5
- package/dist/cli.mjs +172 -38
- package/dist/packs/mermaid/catalog.json +2 -2
- package/dist/packs/mermaid/pack.js +1 -1
- package/dist/packs/shadcn/catalog.json +2 -2
- package/dist/packs/shadcn/pack.js +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -615,7 +615,7 @@ var init_paths = __esm({
|
|
|
615
615
|
HERE = path.dirname(fileURLToPath(import.meta.url));
|
|
616
616
|
BUNDLED = true;
|
|
617
617
|
ASSET_DIR = BUNDLED ? HERE : path.resolve(HERE, "../../dist");
|
|
618
|
-
VERSION = true ? "0.5.
|
|
618
|
+
VERSION = true ? "0.5.2" : JSON.parse(fs.readFileSync(path.resolve(HERE, "../../package.json"), "utf8")).version;
|
|
619
619
|
CLI_ENTRY = BUNDLED ? fileURLToPath(import.meta.url) : path.resolve(HERE, "main.js");
|
|
620
620
|
securedDir = null;
|
|
621
621
|
}
|
|
@@ -29882,8 +29882,8 @@ WHEN TO USE
|
|
|
29882
29882
|
Plans, comparisons, decisions, reviews, reports: anything easier to grasp as a page.
|
|
29883
29883
|
Not for a few sentences of prose.
|
|
29884
29884
|
|
|
29885
|
-
COMMANDS
|
|
29886
|
-
${BIN2} sessions +
|
|
29885
|
+
COMMANDS (\`${BIN2} <command> --help\` for one command's flags and an example)
|
|
29886
|
+
${BIN2} sessions + command list
|
|
29887
29887
|
${BIN2} <file> open/resume a review [--no-open] [--reopen]
|
|
29888
29888
|
${BIN2} poll <file> long-poll for feedback [--cursor n] [--agent-reply "..."] [--agent-reply-file f|-]
|
|
29889
29889
|
--cursor n acknowledges feedback up to n; --after n returns
|
|
@@ -29924,6 +29924,107 @@ ENV
|
|
|
29924
29924
|
AUSTERE_AXI_IDLE_TIMEOUT_MS (1800000) AUSTERE_AXI_PERSIST=1 AUSTERE_AXI_ALLOWED_HOSTS AUSTERE_AXI_LINK_URL
|
|
29925
29925
|
AUSTERE_AXI_NPM_REGISTRY
|
|
29926
29926
|
`;
|
|
29927
|
+
var COMMANDS = {
|
|
29928
|
+
open: {
|
|
29929
|
+
usage: "<file> [--no-open] [--reopen]",
|
|
29930
|
+
summary: "validate the page and open it for review (`open <file>` is the same)",
|
|
29931
|
+
flags: { "no-open": "do not launch a browser; print the url (and a phone url when Tailscale is up)", reopen: "open a review the user ended or closed again" },
|
|
29932
|
+
example: "plan.html --no-open"
|
|
29933
|
+
},
|
|
29934
|
+
poll: {
|
|
29935
|
+
usage: "poll <file> [--cursor n] [--agent-reply text | --agent-reply-file path|-]",
|
|
29936
|
+
summary: "wait until the reviewer presses Send; returns the feedback batch and a cursor",
|
|
29937
|
+
flags: {
|
|
29938
|
+
cursor: "acknowledge feedback up to n (the cursor the last poll printed)",
|
|
29939
|
+
after: "return everything after n again",
|
|
29940
|
+
"agent-reply": "post a reply first: a small Markdown subset (paragraphs, - lists, `code`, **bold**, links), a line or two",
|
|
29941
|
+
"agent-reply-file": "read the reply from a file, or - for stdin",
|
|
29942
|
+
takeover: "replace a poll that is already listening on this review",
|
|
29943
|
+
"timeout-ms": "return status: timeout after n ms (default: wait for feedback)",
|
|
29944
|
+
owner: "label for this listener, shown to a second poll"
|
|
29945
|
+
},
|
|
29946
|
+
example: 'poll plan.html --cursor 3 --agent-reply "Switched the rollout to dual-write."'
|
|
29947
|
+
},
|
|
29948
|
+
reply: {
|
|
29949
|
+
usage: "reply <file> --agent-reply text | --agent-reply-file path|- [--cursor n]",
|
|
29950
|
+
summary: "post a reply without polling; acknowledges feedback up to the cursor",
|
|
29951
|
+
flags: {
|
|
29952
|
+
"agent-reply": "reply text: a small Markdown subset, a line or two",
|
|
29953
|
+
"agent-reply-file": "read the reply from a file, or - for stdin",
|
|
29954
|
+
cursor: "acknowledge feedback up to n"
|
|
29955
|
+
},
|
|
29956
|
+
example: 'reply plan.html --cursor 3 --agent-reply "Done."'
|
|
29957
|
+
},
|
|
29958
|
+
end: { usage: "end <file>", summary: "stop as the agent; the reviewer can still add notes for later", flags: {}, example: "end plan.html" },
|
|
29959
|
+
close: { usage: "close <file>", summary: "close the review: no more notes until reopen", flags: {}, example: "close plan.html" },
|
|
29960
|
+
reopen: { usage: "reopen <file>", summary: "reopen an ended or closed review", flags: {}, example: "reopen plan.html" },
|
|
29961
|
+
login: {
|
|
29962
|
+
usage: "login [file]",
|
|
29963
|
+
summary: "single-use link that signs a browser in as you (SSH, --no-open, another browser)",
|
|
29964
|
+
flags: {},
|
|
29965
|
+
example: "login plan.html"
|
|
29966
|
+
},
|
|
29967
|
+
feedback: {
|
|
29968
|
+
usage: "feedback <file> [--all] [--peek]",
|
|
29969
|
+
summary: "feedback no agent has answered yet; reading it acknowledges it, reply answers it",
|
|
29970
|
+
flags: { all: "include feedback already answered", peek: "read without acknowledging" },
|
|
29971
|
+
example: "feedback plan.html"
|
|
29972
|
+
},
|
|
29973
|
+
check: {
|
|
29974
|
+
usage: "check <file> [--fix]",
|
|
29975
|
+
summary: "validate the program without a browser: syntax, components, props, references, reachability",
|
|
29976
|
+
flags: { fix: 'declare the packs the page uses (writes the <meta name="austere-packs"> tag)' },
|
|
29977
|
+
example: "check plan.html"
|
|
29978
|
+
},
|
|
29979
|
+
patch: {
|
|
29980
|
+
usage: "patch <file> < statements",
|
|
29981
|
+
summary: "merge statements from stdin: same name replaces, new name adds, `name = null` deletes",
|
|
29982
|
+
flags: {},
|
|
29983
|
+
example: `patch plan.html <<'EOF'
|
|
29984
|
+
intro = Card([CardHeader("New title")])
|
|
29985
|
+
EOF`
|
|
29986
|
+
},
|
|
29987
|
+
spec: {
|
|
29988
|
+
usage: "spec [group|pack...]",
|
|
29989
|
+
summary: "component reference; groups: Layout Content Data Charts Forms Buttons",
|
|
29990
|
+
flags: {},
|
|
29991
|
+
example: "spec Charts Forms"
|
|
29992
|
+
},
|
|
29993
|
+
components: {
|
|
29994
|
+
usage: "components [list [group] | search <words> | show <Name...> | add <pkg|folder|file.tgz> [--trust] | remove <pkg> | new <dir> [--name pkg] | build [dir]]",
|
|
29995
|
+
summary: "every component, including ones spec leaves out; install, remove and write packs",
|
|
29996
|
+
flags: { trust: "install a third-party pack (read its code first)", name: "npm package name for `new`" },
|
|
29997
|
+
example: "components search scatter"
|
|
29998
|
+
},
|
|
29999
|
+
export: {
|
|
30000
|
+
usage: "export <file> [--out path]",
|
|
30001
|
+
summary: "one self-contained HTML file that works offline",
|
|
30002
|
+
flags: { out: "output path (default: <file>.export.html)" },
|
|
30003
|
+
example: "export plan.html --out review.html"
|
|
30004
|
+
},
|
|
30005
|
+
hub: {
|
|
30006
|
+
usage: "hub on|off|status|list|notes|open [words] [--project dir] [--unanswered]",
|
|
30007
|
+
summary: "the owner's home page: every page by project and day, every note",
|
|
30008
|
+
flags: { project: "only pages or notes from this project dir (list, notes)", unanswered: "only notes no agent answered (notes)" },
|
|
30009
|
+
example: "hub notes --unanswered"
|
|
30010
|
+
},
|
|
30011
|
+
share: {
|
|
30012
|
+
usage: 'share <file> --as "<name>" [--auto] | share list [--links] | share revoke <name|id>',
|
|
30013
|
+
summary: "invite link for a teammate on your tailnet; their notes wait for you unless --auto",
|
|
30014
|
+
flags: { as: "the reviewer's name", auto: "send this reviewer's notes straight to the agent", links: "show the links (list)" },
|
|
30015
|
+
example: 'share plan.html --as "Ana"'
|
|
30016
|
+
},
|
|
30017
|
+
stop: { usage: "stop", summary: "stop the background server", flags: {}, example: "stop" },
|
|
30018
|
+
server: {
|
|
30019
|
+
usage: "server [--persist] [--port n] [--verbose]",
|
|
30020
|
+
summary: "run the server in the foreground (under systemd, behind a reverse proxy)",
|
|
30021
|
+
flags: { persist: "never idle out", port: "listen port (default: AUSTERE_AXI_PORT or 4388)", verbose: "log requests", "also-listen": "extra address to listen on (repeatable)" },
|
|
30022
|
+
example: "server --persist"
|
|
30023
|
+
},
|
|
30024
|
+
mcp: { usage: "mcp", summary: "MCP server on stdio: spec check open poll reply patch end as tools", flags: {}, example: "mcp" },
|
|
30025
|
+
help: { usage: "help [command]", summary: "the full workflow, or one command's help", flags: {}, example: "help poll" }
|
|
30026
|
+
};
|
|
30027
|
+
var VALUE_FLAGS = /* @__PURE__ */ new Set(["agent-reply", "agent-reply-file", "owner", "out", "port", "also-listen", "timeout-ms", "name", "project", "as", "cursor", "after"]);
|
|
29927
30028
|
function parseArgs(argv) {
|
|
29928
30029
|
const flags = {};
|
|
29929
30030
|
const pos = [];
|
|
@@ -29936,10 +30037,12 @@ function parseArgs(argv) {
|
|
|
29936
30037
|
if (a.startsWith("--")) {
|
|
29937
30038
|
const eq = a.indexOf("=");
|
|
29938
30039
|
const key2 = eq > 0 ? a.slice(2, eq) : a.slice(2);
|
|
29939
|
-
const takesValue = ["agent-reply", "agent-reply-file", "owner", "out", "port", "also-listen", "timeout-ms", "name", "project", "as", "cursor", "after"].includes(key2);
|
|
29940
30040
|
let val = true;
|
|
29941
30041
|
if (eq > 0) val = a.slice(eq + 1);
|
|
29942
|
-
else if (
|
|
30042
|
+
else if (VALUE_FLAGS.has(key2)) {
|
|
30043
|
+
if (i + 1 >= argv.length) return { flags, pos, error: `--${key2} needs a value` };
|
|
30044
|
+
val = argv[++i];
|
|
30045
|
+
}
|
|
29943
30046
|
if (key2 === "also-listen") (flags[key2] ||= []).push(val);
|
|
29944
30047
|
else flags[key2] = val;
|
|
29945
30048
|
} else if (a === "-h") flags.help = true;
|
|
@@ -29952,9 +30055,26 @@ function fail(message, extra = {}) {
|
|
|
29952
30055
|
print({ status: "error", error: message, ...extra });
|
|
29953
30056
|
process.exitCode = 1;
|
|
29954
30057
|
}
|
|
30058
|
+
function usage(message, cmd) {
|
|
30059
|
+
const spec = cmd && COMMANDS[cmd];
|
|
30060
|
+
print({ status: "error", code: "USAGE", error: message, usage: spec ? `${BIN2} ${spec.usage}` : void 0, help: `${BIN2} ${spec ? `${cmd} ` : ""}--help` });
|
|
30061
|
+
process.exitCode = 2;
|
|
30062
|
+
}
|
|
30063
|
+
function commandHelp(cmd) {
|
|
30064
|
+
const spec = COMMANDS[cmd];
|
|
30065
|
+
const lines = [`${BIN2} ${spec.usage}`, ` ${spec.summary}`];
|
|
30066
|
+
const flags = Object.entries(spec.flags);
|
|
30067
|
+
if (flags.length) {
|
|
30068
|
+
lines.push("", "FLAGS");
|
|
30069
|
+
const width = Math.max(...flags.map(([k]) => k.length + (VALUE_FLAGS.has(k) ? 6 : 0)));
|
|
30070
|
+
for (const [k, text] of flags) lines.push(` ${(`--${k}` + (VALUE_FLAGS.has(k) ? " <val>" : "")).padEnd(width + 4)}${text}`);
|
|
30071
|
+
}
|
|
30072
|
+
lines.push("", "EXAMPLE", ` ${BIN2} ${spec.example}`, "", `Full workflow and file skeleton: ${BIN2} --help`);
|
|
30073
|
+
process.stdout.write(lines.join("\n") + "\n");
|
|
30074
|
+
}
|
|
29955
30075
|
function needFile(file3, cmd) {
|
|
29956
30076
|
if (!file3) {
|
|
29957
|
-
|
|
30077
|
+
usage(`${cmd} needs a file: ${BIN2} ${cmd} <file.html>`, cmd);
|
|
29958
30078
|
return null;
|
|
29959
30079
|
}
|
|
29960
30080
|
const abs = canonicalFile(file3);
|
|
@@ -29992,16 +30112,24 @@ async function cmdHome() {
|
|
|
29992
30112
|
let sessions = [];
|
|
29993
30113
|
if (h) {
|
|
29994
30114
|
const r = await request("GET", "/api/sessions");
|
|
29995
|
-
sessions = (r.data.sessions || []).filter((s) => s.status !== "ended")
|
|
29996
|
-
|
|
29997
|
-
|
|
29998
|
-
|
|
29999
|
-
|
|
30000
|
-
|
|
30001
|
-
|
|
30002
|
-
|
|
30003
|
-
|
|
30004
|
-
print({
|
|
30115
|
+
sessions = (r.data.sessions || []).filter((s) => s.status !== "ended");
|
|
30116
|
+
}
|
|
30117
|
+
const shown = sessions.slice(0, 12).map((s) => ({
|
|
30118
|
+
file: s.file,
|
|
30119
|
+
presence: s.presence,
|
|
30120
|
+
browsers: s.browsers,
|
|
30121
|
+
pending: s.pending || void 0,
|
|
30122
|
+
url: s.links.local
|
|
30123
|
+
}));
|
|
30124
|
+
print({
|
|
30125
|
+
bin: `${BIN2} ${VERSION}`,
|
|
30126
|
+
description: "review pages written in OpenUI Lang; the reviewer annotates them in the browser and notes come back by statement name",
|
|
30127
|
+
server: h ? `running on ${port()} (v${h.version})` : "not running",
|
|
30128
|
+
open_sessions: sessions.length > shown.length ? `${shown.length} of ${sessions.length} shown` : sessions.length,
|
|
30129
|
+
sessions: shown.length ? shown : void 0,
|
|
30130
|
+
commands: Object.fromEntries(Object.entries(COMMANDS).map(([name, c]) => [name === "open" ? "<file>" : name, c.summary])),
|
|
30131
|
+
next: shown.length ? `${BIN2} poll <file> waits for feedback on an open session. ${BIN2} --help: workflow and file skeleton.` : `${BIN2} --help: workflow and file skeleton. ${BIN2} spec: component reference. ${BIN2} <command> --help: one command.`
|
|
30132
|
+
});
|
|
30005
30133
|
}
|
|
30006
30134
|
async function cmdOpen(file3, flags) {
|
|
30007
30135
|
const abs = needFile(file3, "open");
|
|
@@ -30140,7 +30268,7 @@ async function cmdReply(file3, flags) {
|
|
|
30140
30268
|
const abs = needFile(file3, "reply");
|
|
30141
30269
|
if (!abs) return;
|
|
30142
30270
|
const text = await replyText(flags);
|
|
30143
|
-
if (!text) return
|
|
30271
|
+
if (!text) return usage('reply needs text: --agent-reply "..." or --agent-reply-file <path|->', "reply");
|
|
30144
30272
|
await ensureServer();
|
|
30145
30273
|
const r = await request("POST", "/api/reply", { file: abs, text, cursor: seqFlag(flags, "cursor") }, { timeoutMs: 1e4 });
|
|
30146
30274
|
if (r.status !== 200) return fail(r.data?.error || `reply failed (${r.status})`);
|
|
@@ -30205,7 +30333,7 @@ async function cmdCheck(file3, flags = {}) {
|
|
|
30205
30333
|
async function cmdPatch(file3) {
|
|
30206
30334
|
const abs = needFile(file3, "patch");
|
|
30207
30335
|
if (!abs) return;
|
|
30208
|
-
if (process.stdin.isTTY) return
|
|
30336
|
+
if (process.stdin.isTTY) return usage(`pipe the changed statements on stdin: ${BIN2} patch ${quote(file3)} <<'EOF' ... EOF`, "patch");
|
|
30209
30337
|
const patch = await readStdin();
|
|
30210
30338
|
if (!patch.trim()) return fail("stdin was empty");
|
|
30211
30339
|
const html = fs14.readFileSync(abs, "utf8");
|
|
@@ -30253,7 +30381,7 @@ More components (\`${BIN2} spec <pack>\` for signatures). A page using one must
|
|
|
30253
30381
|
const parts = text.split(/\n(?=### )/);
|
|
30254
30382
|
const head = parts[0].split("\n## Component Signatures")[0];
|
|
30255
30383
|
const picked = parts.filter((p) => p.startsWith("### ") && wanted.has(p.slice(4, p.indexOf("\n")).trim().toLowerCase()));
|
|
30256
|
-
if (!picked.length) return
|
|
30384
|
+
if (!picked.length) return usage(`unknown group; one of: Layout Content Data Charts Forms Buttons, or an installed pack`, "spec");
|
|
30257
30385
|
const trimmed = picked.map((p) => p.split(/\n## /)[0]);
|
|
30258
30386
|
process.stdout.write(`${head}
|
|
30259
30387
|
|
|
@@ -30284,7 +30412,7 @@ async function cmdComponents(sub, args, flags) {
|
|
|
30284
30412
|
case "show":
|
|
30285
30413
|
return printResult(showComponents(args));
|
|
30286
30414
|
case "add": {
|
|
30287
|
-
if (!args[0]) return
|
|
30415
|
+
if (!args[0]) return usage(`add needs a pack: ${BIN2} components add <npm-package>[@version] | <folder> | <file.tgz>`, "components");
|
|
30288
30416
|
const { addPack: addPack2 } = await Promise.resolve().then(() => (init_install(), install_exports));
|
|
30289
30417
|
let r;
|
|
30290
30418
|
try {
|
|
@@ -30307,7 +30435,7 @@ async function cmdComponents(sub, args, flags) {
|
|
|
30307
30435
|
});
|
|
30308
30436
|
}
|
|
30309
30437
|
case "remove": {
|
|
30310
|
-
if (!args[0]) return
|
|
30438
|
+
if (!args[0]) return usage(`remove needs a pack name: ${BIN2} components remove <name>`, "components");
|
|
30311
30439
|
const { removePack: removePack2 } = await Promise.resolve().then(() => (init_install(), install_exports));
|
|
30312
30440
|
const r = removePack2(args[0]);
|
|
30313
30441
|
if (!r) return fail(`${args[0]} is not installed (${BIN2} components list)`);
|
|
@@ -30352,7 +30480,7 @@ async function cmdComponents(sub, args, flags) {
|
|
|
30352
30480
|
default: {
|
|
30353
30481
|
const listed = listComponents(sub);
|
|
30354
30482
|
if (listed.status !== "error") return print(listed);
|
|
30355
|
-
return
|
|
30483
|
+
return usage(`unknown components command: ${sub}. One of: list search show add remove new build`, "components");
|
|
30356
30484
|
}
|
|
30357
30485
|
}
|
|
30358
30486
|
}
|
|
@@ -30514,7 +30642,7 @@ async function cmdHub(sub, args, flags) {
|
|
|
30514
30642
|
return print({ status: opened ? "opened" : "open the url", url: url2, sign_in: opened ? void 0 : signInHint() });
|
|
30515
30643
|
}
|
|
30516
30644
|
default:
|
|
30517
|
-
return
|
|
30645
|
+
return usage(`unknown hub command: ${sub}. One of: on off status list notes open`, "hub");
|
|
30518
30646
|
}
|
|
30519
30647
|
}
|
|
30520
30648
|
function ago(ms) {
|
|
@@ -30547,7 +30675,7 @@ async function cmdShare(args, flags) {
|
|
|
30547
30675
|
}
|
|
30548
30676
|
if (sub === "revoke") {
|
|
30549
30677
|
const key2 = more.join(" ");
|
|
30550
|
-
if (!key2) return
|
|
30678
|
+
if (!key2) return usage(`revoke needs a name or id: ${BIN2} share revoke <name|id> (see ${BIN2} share list)`, "share");
|
|
30551
30679
|
let revoked;
|
|
30552
30680
|
if (await serverIfRunning()) {
|
|
30553
30681
|
const r2 = await request("POST", "/api/share/revoke", { key: key2 });
|
|
@@ -30561,7 +30689,7 @@ async function cmdShare(args, flags) {
|
|
|
30561
30689
|
}
|
|
30562
30690
|
const abs = needFile(sub, "share");
|
|
30563
30691
|
if (!abs) return;
|
|
30564
|
-
if (typeof flags.as !== "string" || !flags.as.trim()) return
|
|
30692
|
+
if (typeof flags.as !== "string" || !flags.as.trim()) return usage(`share needs a reviewer name: ${BIN2} share ${quote(sub)} --as "<name>"`, "share");
|
|
30565
30693
|
await ensureServer();
|
|
30566
30694
|
const r = await request("POST", "/api/share", { file: abs, name: flags.as, auto: !!flags.auto });
|
|
30567
30695
|
if (r.status !== 200) return fail(r.data?.error || `share failed (${r.status})`);
|
|
@@ -30618,18 +30746,23 @@ async function main() {
|
|
|
30618
30746
|
if (major < MIN_NODE[0] || major === MIN_NODE[0] && minor < MIN_NODE[1]) {
|
|
30619
30747
|
return fail(`austere-axi needs Node ${MIN_NODE.join(".")} or newer; this is ${process.versions.node}. Install a current Node LTS.`);
|
|
30620
30748
|
}
|
|
30621
|
-
const { flags, pos } = parseArgs(process.argv.slice(2));
|
|
30749
|
+
const { flags, pos, error: error62 } = parseArgs(process.argv.slice(2));
|
|
30622
30750
|
if (flags.version) return process.stdout.write(VERSION + "\n");
|
|
30623
30751
|
const [cmd, ...rest] = pos;
|
|
30624
|
-
|
|
30625
|
-
|
|
30626
|
-
|
|
30627
|
-
|
|
30628
|
-
|
|
30629
|
-
`
|
|
30630
|
-
|
|
30631
|
-
|
|
30632
|
-
|
|
30752
|
+
let name = null;
|
|
30753
|
+
if (cmd !== void 0) {
|
|
30754
|
+
if (Object.hasOwn(COMMANDS, cmd)) name = cmd;
|
|
30755
|
+
else if (/\.html?$/i.test(cmd) || fs14.existsSync(cmd)) name = "open";
|
|
30756
|
+
else if (flags.help) return process.stdout.write(HELP);
|
|
30757
|
+
else return usage(`unknown command: ${cmd}. One of: ${Object.keys(COMMANDS).join(" ")}, or a page file`);
|
|
30758
|
+
}
|
|
30759
|
+
if (flags.help) return name && name !== "help" ? commandHelp(name) : process.stdout.write(HELP);
|
|
30760
|
+
if (error62) return usage(error62, name);
|
|
30761
|
+
const allowed = name ? Object.keys(COMMANDS[name].flags) : [];
|
|
30762
|
+
const unknown2 = Object.keys(flags).filter((k) => !allowed.includes(k));
|
|
30763
|
+
if (unknown2.length) {
|
|
30764
|
+
const valid = allowed.length ? `valid: ${allowed.map((k) => `--${k}`).join(" ")}` : "it takes no flags";
|
|
30765
|
+
return usage(`unknown flag${unknown2.length > 1 ? "s" : ""} for ${name ?? BIN2}: ${unknown2.map((k) => `--${k}`).join(" ")}; ${valid}`, name);
|
|
30633
30766
|
}
|
|
30634
30767
|
stateDir();
|
|
30635
30768
|
switch (cmd) {
|
|
@@ -30674,10 +30807,11 @@ Replies render a small Markdown subset (paragraphs, - lists, \`code\`, **bold**,
|
|
|
30674
30807
|
case "open":
|
|
30675
30808
|
return cmdOpen(rest[0], flags);
|
|
30676
30809
|
case "help":
|
|
30677
|
-
return process.stdout.write(HELP);
|
|
30810
|
+
if (!rest[0]) return process.stdout.write(HELP);
|
|
30811
|
+
if (!Object.hasOwn(COMMANDS, rest[0])) return usage(`no command named ${rest[0]}. One of: ${Object.keys(COMMANDS).join(" ")}`, "help");
|
|
30812
|
+
return commandHelp(rest[0]);
|
|
30678
30813
|
default:
|
|
30679
|
-
|
|
30680
|
-
return fail(`unknown command: ${cmd}. Run ${BIN2} --help`);
|
|
30814
|
+
return cmdOpen(cmd, flags);
|
|
30681
30815
|
}
|
|
30682
30816
|
}
|
|
30683
30817
|
main().catch((err) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
3
|
"pack": "@austere-axi/pack-mermaid",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"groups": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Content",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
31
|
"api": 1,
|
|
32
|
-
"integrity": "sha384-
|
|
32
|
+
"integrity": "sha384-1+XBvdGl+fWIMBvzXkUrVl/h2RE3F+O85RZUmqm5BFRdGv/ZvTaU9MOpGIxNmHRu",
|
|
33
33
|
"size": 5782,
|
|
34
34
|
"css": true,
|
|
35
35
|
"defs": {
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
font-size: 12.5px;
|
|
23
23
|
color: var(--austere-muted);
|
|
24
24
|
}
|
|
25
|
-
`;var s={components:[N],css:V};var $=l(w());(0,$.registerPack)({name:"@austere-axi/pack-mermaid",version:"0.5.
|
|
25
|
+
`;var s={components:[N],css:V};var $=l(w());(0,$.registerPack)({name:"@austere-axi/pack-mermaid",version:"0.5.2",api:1,components:[].concat(s&&s.components?s.components:s),css:s&&s.css});})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
3
|
"pack": "@austere-axi/pack-shadcn",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"groups": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Data",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
}
|
|
196
196
|
],
|
|
197
197
|
"api": 1,
|
|
198
|
-
"integrity": "sha384-
|
|
198
|
+
"integrity": "sha384-DyzR2GIcDb2W7YXtHpIpAZRP2LbKJQXroF7POadUdFe1rMT1SWWn8nBbli2ty0R0",
|
|
199
199
|
"size": 16313,
|
|
200
200
|
"css": true,
|
|
201
201
|
"defs": {
|
|
@@ -66,4 +66,4 @@ rollout = TimelineItem("Rollout", "Nov 3", "", "upcoming")`});var ue=`.sh-muted
|
|
|
66
66
|
.sh-timeline-item.is-upcoming .sh-timeline-dot { background: transparent; border: 1px solid var(--austere-muted); }
|
|
67
67
|
.sh-timeline-body { min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
|
|
68
68
|
.sh-timeline-head { display: flex; flex-wrap: wrap; gap: 4px 12px; }
|
|
69
|
-
`;var y={components:[X,M,ae,re,te,oe,H,ne,pe,de,ce,_],css:ue};var he=r(l());(0,he.registerPack)({name:"@austere-axi/pack-shadcn",version:"0.5.
|
|
69
|
+
`;var y={components:[X,M,ae,re,te,oe,H,ne,pe,de,ce,_],css:ue};var he=r(l());(0,he.registerPack)({name:"@austere-axi/pack-shadcn",version:"0.5.2",api:1,components:[].concat(y&&y.components?y.components:y),css:y&&y.css});})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "austere-axi",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Agent-authored review artifacts in OpenUI Lang: a few hundred tokens instead of a whole HTML page, with statement-level annotations fed back to the agent.",
|
|
5
5
|
"mcpName": "io.github.MandalorianBatman/austere-axi",
|
|
6
6
|
"type": "module",
|