Add explicit non-interactive public CLI mode
This commit is contained in:
parent
e6c2a1a981
commit
afd7456423
6 changed files with 226 additions and 5 deletions
|
|
@ -5,7 +5,15 @@ const fs = require("fs");
|
|||
const path = require("path");
|
||||
|
||||
const repo = path.resolve(__dirname, "..");
|
||||
const readme = fs.readFileSync(path.join(repo, "README.md"), "utf8");
|
||||
const readmePath = path.join(repo, "README.md");
|
||||
if (!fs.existsSync(readmePath)) {
|
||||
if (fs.existsSync(path.join(repo, "DISASMER_PUBLIC_TREE.json"))) {
|
||||
console.log("Docs smoke skipped: root markdown is filtered from this public tree");
|
||||
process.exit(0);
|
||||
}
|
||||
throw new Error("README.md is missing");
|
||||
}
|
||||
const readme = fs.readFileSync(readmePath, "utf8");
|
||||
const userFacingDocs = [
|
||||
"README.md",
|
||||
"MVP.md",
|
||||
|
|
@ -73,7 +81,7 @@ const requiredReadmePatterns = [
|
|||
["hosted community limit", /community tier does not provide arbitrary hosted native commands or hosted containers/],
|
||||
["browser login", /disasmer login --browser/],
|
||||
["public-key agents", /disasmer agent enroll --public-key/],
|
||||
["noninteractive agent CLI", /DISASMER_AGENT_PUBLIC_KEY=<agent-public-key> disasmer run build/],
|
||||
["noninteractive agent CLI", /DISASMER_AGENT_PUBLIC_KEY=<agent-public-key> disasmer run --non-interactive build/],
|
||||
["agent key lifecycle", /register, list, rotate, and revoke an agent key/],
|
||||
["capability auto-detect", /auto-detects OS, architecture/],
|
||||
["capability override", /--cap <name>/],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue