@forwardimpact/libwiki 0.2.8 → 0.2.9
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/bin/fit-wiki.js +3 -2
- package/package.json +1 -1
- package/src/commands/boot.js +2 -7
package/bin/fit-wiki.js
CHANGED
|
@@ -30,8 +30,9 @@ const wikiRootOpt = {
|
|
|
30
30
|
const agentOpt = {
|
|
31
31
|
agent: {
|
|
32
32
|
type: "string",
|
|
33
|
-
description:
|
|
34
|
-
|
|
33
|
+
description:
|
|
34
|
+
"Agent name (falls back to LIBEVAL_AGENT_PROFILE, then staff-engineer)",
|
|
35
|
+
default: process.env.LIBEVAL_AGENT_PROFILE || "staff-engineer",
|
|
35
36
|
},
|
|
36
37
|
};
|
|
37
38
|
|
package/package.json
CHANGED
package/src/commands/boot.js
CHANGED
|
@@ -42,13 +42,8 @@ function renderMarkdown(digest) {
|
|
|
42
42
|
|
|
43
43
|
/** Print the on-boot digest for the calling agent. JSON by default; --format markdown renders prose. */
|
|
44
44
|
export function runBootCommand(values, _args, cli) {
|
|
45
|
-
const agent =
|
|
46
|
-
|
|
47
|
-
cli.usageError(
|
|
48
|
-
"boot requires --agent <name> or LIBEVAL_AGENT_PROFILE env var",
|
|
49
|
-
);
|
|
50
|
-
process.exit(2);
|
|
51
|
-
}
|
|
45
|
+
const agent =
|
|
46
|
+
values.agent || process.env.LIBEVAL_AGENT_PROFILE || "staff-engineer";
|
|
52
47
|
|
|
53
48
|
const logger = { debug() {} };
|
|
54
49
|
const finder = new Finder(fsAsync, logger, process);
|