diff --git a/components.lock.json b/components.lock.json index 976dd7ba..a9a63d86 100644 --- a/components.lock.json +++ b/components.lock.json @@ -3,10 +3,10 @@ "state": "resolved", "cli": { "repository": "screenrig/cli", - "commit": "79a60d2e42c6d90f4bfb8e91ad25c054cbf1f892", + "commit": "6b85d88e478b827cb3d8ba453a17625ff14b74ca", "artifact": { "file": "screenrig-cli.tgz", - "sha256": "9ca9f62cb91b755fe419bb32e86d5904943a9ac54a60bbc2fadea04bd2154a6a" + "sha256": "bee8279b52401f006c0b69fae8b7aaace1ae7b6764d425d81c83b2069c25dc9c" } } } diff --git a/plugins/screenrig/cli/README.md b/plugins/screenrig/cli/README.md index a7f46c5c..b990ce68 100644 --- a/plugins/screenrig/cli/README.md +++ b/plugins/screenrig/cli/README.md @@ -33,6 +33,16 @@ Commands return JSON envelopes an agent can branch on. Customer surface is content (`app`, `media`, `compose`), playlists, and screens. Full reference: [https://screenrig.ai/docs/cli.md](https://screenrig.ai/docs/cli.md). +Discover commands progressively with `screenrig --help`, `screenrig screen --help`, +and `screenrig screen assign --help`. Deeper groups work the same way: +`screenrig comment show --help`. `screenrig help screen assign` is equivalent. +Add `--json` for structured child command paths, invocation syntax, and option types; +help runs without configuration or authentication. Command-specific options follow +that command, for example `screenrig screen update ID --name Lobby --if-match 1`. +Global options such as `--json` may appear before or after the command. Use +`--name=VALUE` for a value starting with a dash, and `--` before option-like file +names. Duplicate options are rejected. + Choose by what the page is: - Already have the file: `media upload`, then a playlist and `screen assign`. @@ -40,6 +50,22 @@ Choose by what the page is: - Slide-deck-like experiences: local unbilled `compose render`. - Live video, iframe, or webapp: write playlist primitives. +## Application command results + +`app upload` and `app update` return the same JSON data paths with or without +`--no-wait`: `data.application` contains the accepted application `id`, +`release_id`, and `operation_id`; `data.pack` contains `sha256` and `file_count`. +The accepted response does not include an application revision. Read `app show` +for the current revision before an update. + +`data.operation` contains the observed completed operation when waiting. With +`--no-wait` it is `null`: upload acceptance does not establish operation state +or release readiness. Use `operations get ` or +`operations wait ` to observe processing. The envelope's +`operation_id` identifies that same operation in either mode. Existing flat +accepted fields (`data.id`, `data.release_id`, `data.operation_id`) and +`data.sha256` remain available as compatibility aliases in both modes. + ## Configuration User-private config lives outside the replaceable plugin directory @@ -53,6 +79,11 @@ command. ## Develop +Commander 14 owns argument parsing, command selection, and help rendering while +supporting Node 20.11. The command tree feeds both human and JSON help. The adapter +keeps parser diagnostics inside the CLI error envelope and only forwards explicit +options to handlers, including the existing `no-*` boolean flags. + ```sh npm ci npm run vendor:check diff --git a/plugins/screenrig/cli/dist/argv.d.ts b/plugins/screenrig/cli/dist/argv.d.ts index 96e9693b..a34e6069 100644 --- a/plugins/screenrig/cli/dist/argv.d.ts +++ b/plugins/screenrig/cli/dist/argv.d.ts @@ -1,7 +1,9 @@ +import { type HelpDocument } from "./help.js"; export interface ParsedArgs { command: string[]; flags: Record; positionals: string[]; + help?: HelpDocument; } export declare function parseArgv(argv: string[]): ParsedArgs; export declare function flagString(flags: Record, name: string): string | undefined; diff --git a/plugins/screenrig/cli/dist/argv.d.ts.map b/plugins/screenrig/cli/dist/argv.d.ts.map index b88c5e81..7058e794 100644 --- a/plugins/screenrig/cli/dist/argv.d.ts.map +++ b/plugins/screenrig/cli/dist/argv.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"argv.d.ts","sourceRoot":"","sources":["../src/argv.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;IACxC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAiFD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAuDpD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGpG;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvF;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOpG"} \ No newline at end of file +{"version":3,"file":"argv.d.ts","sourceRoot":"","sources":["../src/argv.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAG5D,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;IACxC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CA6BpD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGpG;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvF;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOpG"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/argv.js b/plugins/screenrig/cli/dist/argv.js index 22d2538a..61bc8748 100644 --- a/plugins/screenrig/cli/dist/argv.js +++ b/plugins/screenrig/cli/dist/argv.js @@ -1,132 +1,42 @@ -function takeValue(argv, index, current) { - const eq = current.indexOf("="); - if (eq >= 0) { - return { value: current.slice(eq + 1), nextIndex: index }; +import { CommanderError } from "commander"; +import { commandPath, createCommandTree, invocationFlags } from "./command-tree.js"; +import { describeHelp } from "./help.js"; +import { usageError } from "./problems.js"; +export function parseArgv(argv) { + // Commander handles tokenization, option scope, command paths, aliases, + // positional arity, and option conflicts. It must never exit this process. + const end = argv.indexOf("--"); + const options = end < 0 ? argv : argv.slice(0, end); + for (const spellings of [["--help", "-h"], ["--version", "-V"]]) { + if (options.filter((arg) => spellings.includes(arg)).length > 1) + throw usageError(`${spellings[0]} may be supplied only once.`); } - const next = argv[index + 1]; - if (next === undefined || next.startsWith("-")) { - return { value: "", nextIndex: index }; + const tree = createCommandTree(options); + try { + tree.root.parse(argv, { from: "user" }); } - return { value: next, nextIndex: index + 1 }; -} -const VALUE_FLAGS = new Set([ - "api-url", - "beta-key", - "email", - "token", - "config", - "idempotency-key", - "request-id", - "timeout", - "output", - "only", - "target-width", - "target-height", - "ink-padding", - "cursor", - "after", - "limit", - "if-match", - "revision", - "id", - "key", - "value", - "json-value", - "file", - "value-base64", - "application-id", - "playlist-id", - "timezone", - "screen-id", - "media-id", - "name", - "type", - "severity", - "operation-id", - "poll-ms", - "label", - "content-type", - "code", - "codec", - "preset", - "max-fps", - "max-edge", - "webp-quality", - "body", - "body-file", - "command", - "kind", - "primitive", - "level", - "text", - "duration-ms", - "tag", - "day", - "state", - "page", - "update", - "concurrency", - "frame-ms", - "prompt", - "aspect-ratio", - "quality", -]); -export function parseArgv(argv) { - const flags = {}; - const positionals = []; - for (let i = 0; i < argv.length; i += 1) { - const arg = argv[i]; - if (arg === undefined) { - continue; - } - if (arg === "--") { - positionals.push(...argv.slice(i + 1)); - break; - } - if (arg === "--json") { - flags.json = true; - continue; - } - if (arg === "--no-wait") { - flags["no-wait"] = true; - continue; - } - if (arg === "--repair-config") { - flags["repair-config"] = true; - continue; - } - if (arg === "--help" || arg === "-h") { - flags.help = true; - continue; - } - if (arg === "--version" || arg === "-V") { - flags.version = true; - continue; - } - if (arg.startsWith("--")) { - const raw = arg.slice(2); - const name = raw.split("=")[0] ?? raw; - if (VALUE_FLAGS.has(name) || raw.includes("=")) { - const taken = takeValue(argv, i, raw); - if (taken.value === "") { - flags[name] = true; - } - else { - flags[name] = taken.value; - i = taken.nextIndex; - } - continue; - } - flags[name] = true; - continue; - } - positionals.push(arg); + catch (error) { + if (!(error instanceof CommanderError) || !(tree.helpRequested() || tree.versionRequested())) + throw error; + } + const selected = tree.selected(); + const flags = invocationFlags(selected); + if (tree.versionRequested()) + flags.version = true; + if (tree.helpRequested()) { + flags.help = true; + const help = describeHelp(selected); + return { command: help.path.slice(0, 2), positionals: help.path, flags, help }; } - return { - command: positionals.slice(0, 2), - flags, - positionals, - }; + // These paired inputs are domain requirements, not parser syntax. + const has = (name) => Object.hasOwn(flags, name); + if (has("target-width") !== has("target-height")) + throw usageError("Provide both --target-width and --target-height."); + const path = commandPath(selected); + if (path.join(" ") === "playlist import" && has("update") !== has("if-match")) + throw usageError("playlist import --update and --if-match must be supplied together."); + const positionals = [...path, ...selected.args]; + return { command: positionals.slice(0, 2), positionals, flags }; } export function flagString(flags, name) { const value = flags[name]; diff --git a/plugins/screenrig/cli/dist/argv.js.map b/plugins/screenrig/cli/dist/argv.js.map index 7ab2e0ee..02cf747d 100644 --- a/plugins/screenrig/cli/dist/argv.js.map +++ b/plugins/screenrig/cli/dist/argv.js.map @@ -1 +1 @@ -{"version":3,"file":"argv.js","sourceRoot":"","sources":["../src/argv.ts"],"names":[],"mappings":"AAMA,SAAS,SAAS,CAChB,IAAc,EACd,KAAa,EACb,OAAe;IAEf,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC;QACZ,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,CAA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AAG,CAAC,GAAG,IAAI,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAChD,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAuC,EAAE,IAAY;IAC9E,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAAuC,EAAE,IAAY;IAC5E,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAuC,EAAE,IAAY;IAC9E,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACtC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IACxB,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5C,CAAC"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/command-spec.d.ts b/plugins/screenrig/cli/dist/command-spec.d.ts new file mode 100644 index 00000000..5a76ca17 --- /dev/null +++ b/plugins/screenrig/cli/dist/command-spec.d.ts @@ -0,0 +1,11 @@ +/** Declarative command inputs for the Commander tree. */ +export interface CommandSpec { + readonly path: readonly string[]; + readonly arguments?: string; + readonly aliases?: readonly (readonly string[])[]; + readonly flags: readonly string[]; + readonly requiredFlags?: readonly string[]; +} +export declare const GLOBAL_FLAGS: readonly ["json", "api-url", "config", "request-id", "idempotency-key", "timeout", "beta-key", "token"]; +export declare const COMMAND_SPECS: readonly CommandSpec[]; +//# sourceMappingURL=command-spec.d.ts.map \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/command-spec.d.ts.map b/plugins/screenrig/cli/dist/command-spec.d.ts.map new file mode 100644 index 00000000..8560c4b1 --- /dev/null +++ b/plugins/screenrig/cli/dist/command-spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"command-spec.d.ts","sourceRoot":"","sources":["../src/command-spec.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,CAAC;IAClD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5C;AAED,eAAO,MAAM,YAAY,yGAA0G,CAAC;AAEpI,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAoE/C,CAAC"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/command-spec.js b/plugins/screenrig/cli/dist/command-spec.js new file mode 100644 index 00000000..963ae9ed --- /dev/null +++ b/plugins/screenrig/cli/dist/command-spec.js @@ -0,0 +1,71 @@ +export const GLOBAL_FLAGS = ["json", "api-url", "config", "request-id", "idempotency-key", "timeout", "beta-key", "token"]; +export const COMMAND_SPECS = [ + { path: ["account", "show"], flags: [] }, + { path: ["agent", "enroll"], flags: ["email", "name", "open-dashboard"] }, + { path: ["agent", "connect"], flags: ["name", "print-url"] }, + { path: ["agent", "status"], flags: [] }, + { path: ["agent", "disconnect"], flags: ["yes", "allow-lockout"] }, + { path: ["dashboard"], flags: ["print-url"] }, + { path: ["app", "pack"], arguments: "", flags: ["output"] }, + { path: ["app", "upload"], arguments: "", flags: ["name", "no-wait", "poll-ms"] }, + { path: ["app", "update"], arguments: " ", requiredFlags: ["if-match"], flags: ["if-match", "no-wait", "poll-ms"] }, + { path: ["app", "list"], flags: [] }, + { path: ["app", "show"], arguments: "", flags: [] }, + { path: ["media", "generate"], requiredFlags: ["prompt"], flags: ["prompt", "aspect-ratio", "quality", "tag"] }, + { path: ["media", "upload"], arguments: "", flags: ["content-type", "tag", "no-wait", "poll-ms", "no-transcode", "codec", "max-fps", "max-edge", "webp-quality", "no-progress", "preset", "no-audio"] }, + { path: ["media", "upload-batch"], arguments: "", requiredFlags: ["state"], flags: ["state", "concurrency", "no-transcode", "tag", "no-progress", "poll-ms", "codec", "max-fps", "max-edge", "webp-quality", "preset", "no-audio"] }, + { path: ["media", "show"], arguments: "", flags: [] }, + { path: ["media", "download"], arguments: "", flags: ["output"] }, + { path: ["media", "list"], flags: ["tag", "primitive"] }, + { path: ["media", "update"], arguments: "", requiredFlags: ["if-match"], flags: ["tag", "clear-tag", "if-match"] }, + { path: ["media", "delete"], arguments: "", requiredFlags: ["if-match"], flags: ["if-match"] }, + { path: ["compose", "catalog"], flags: [] }, + { path: ["compose", "batch"], arguments: "", requiredFlags: ["output"], flags: ["output", "only", "target-width", "target-height", "safe-area", "lint-only"] }, + { path: ["compose", "render"], arguments: "", flags: ["output", "combined", "target-width", "target-height", "safe-area", "open", "lint-only"] }, + { path: ["playlist", "validate"], arguments: "", flags: ["lint-only"] }, + { path: ["playlist", "preview"], arguments: "", requiredFlags: ["output"], flags: ["output", "frame-ms", "contact-sheet", "lint-only"] }, + { path: ["playlist", "templates"], flags: [] }, + { path: ["playlist", "create"], arguments: "", flags: [] }, + { path: ["playlist", "update"], arguments: " ", requiredFlags: ["if-match"], flags: ["if-match"] }, + { path: ["playlist", "export"], arguments: "", requiredFlags: ["output"], flags: ["output"] }, + { path: ["playlist", "import"], arguments: "", flags: ["name", "update", "if-match", "poll-ms"] }, + { path: ["playlist", "show"], aliases: [["playlist", "get"]], arguments: "", flags: [] }, + { path: ["playlist", "list"], flags: [] }, + { path: ["playlist", "delete"], arguments: "", requiredFlags: ["if-match"], flags: ["if-match"] }, + { path: ["screen", "pair"], arguments: "", flags: ["label"] }, + { path: ["screen", "provision"], flags: ["open", "print-url", "label"] }, + { path: ["browser", "setup"], requiredFlags: ["code"], flags: ["code", "open"] }, + { path: ["screen", "update"], arguments: "", requiredFlags: ["if-match"], flags: ["name", "playlist-id", "timezone", "if-match"] }, + { path: ["screen", "list"], flags: ["state"] }, + { path: ["screen", "show"], arguments: "", flags: [] }, + { path: ["screen", "assign"], arguments: "", requiredFlags: ["playlist-id", "if-match"], flags: ["playlist-id", "if-match"] }, + { path: ["screen", "set-timezone"], arguments: "", requiredFlags: ["timezone", "if-match"], flags: ["timezone", "if-match"] }, + { path: ["screen", "archive"], arguments: "", requiredFlags: ["if-match"], flags: ["if-match"] }, + { path: ["screen", "unarchive"], arguments: "", requiredFlags: ["if-match"], flags: ["if-match"] }, + { path: ["screen", "delete"], arguments: "", requiredFlags: ["if-match"], flags: ["if-match"] }, + { path: ["screen", "rotate-public-id"], arguments: "", requiredFlags: ["if-match"], flags: ["if-match"] }, + { path: ["screen", "toast"], arguments: "", requiredFlags: ["text"], flags: ["text", "level", "duration-ms"] }, + { path: ["screen", "screenshot"], arguments: "", flags: ["output", "poll-ms"] }, + { path: ["kv", "get"], arguments: "", requiredFlags: ["application-id"], flags: ["application-id"] }, + { path: ["kv", "set"], arguments: "", requiredFlags: ["application-id"], flags: ["application-id", "json-value", "file", "value-base64", "content-type", "if-match"] }, + { path: ["kv", "delete"], arguments: "", requiredFlags: ["application-id", "if-match"], flags: ["application-id", "if-match"] }, + { path: ["kv", "list"], requiredFlags: ["application-id"], flags: ["application-id"] }, + { path: ["comment", "show", "screen"], arguments: "", flags: [] }, + { path: ["comment", "show", "playlist"], arguments: "", flags: ["page"] }, + { path: ["comment", "set", "screen"], arguments: "", flags: ["json-value", "file"] }, + { path: ["comment", "set", "playlist"], arguments: "", flags: ["page", "json-value", "file"] }, + { path: ["comment", "delete", "screen"], arguments: "", flags: [] }, + { path: ["comment", "delete", "playlist"], arguments: "", flags: ["page"] }, + { path: ["operations", "get"], arguments: "", flags: [] }, + { path: ["operations", "wait"], arguments: "", flags: ["poll-ms"] }, + { path: ["operations", "cancel"], arguments: "", flags: [] }, + { path: ["events", "list"], flags: ["after", "cursor", "limit"] }, + { path: ["events", "follow"], flags: ["after", "cursor"] }, + { path: ["playback", "list"], flags: ["screen-id", "media-id", "day"] }, + { path: ["feedback", "bug"], arguments: "", flags: ["body", "body-file", "command", "no-context"] }, + { path: ["feedback", "feature"], arguments: "<title>", flags: ["body", "body-file", "command", "no-context"] }, + { path: ["feedback", "list"], flags: ["kind"] }, + { path: ["doctor"], flags: ["repair-config"] }, + { path: ["version"], flags: [] }, +]; +//# sourceMappingURL=command-spec.js.map \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/command-spec.js.map b/plugins/screenrig/cli/dist/command-spec.js.map new file mode 100644 index 00000000..10a24397 --- /dev/null +++ b/plugins/screenrig/cli/dist/command-spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"command-spec.js","sourceRoot":"","sources":["../src/command-spec.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,CAAU,CAAC;AAEpI,MAAM,CAAC,MAAM,aAAa,GAA2B;IACnD,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACxC,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE;IAC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AAW,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE;IACvE,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE;IAC1G,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE;IAC9G,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE;IAC/C,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,eAAe,CAAC,EAAE;IAC9C,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;CACjC,CAAC"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/command-tree.d.ts b/plugins/screenrig/cli/dist/command-tree.d.ts new file mode 100644 index 00000000..d5bfd621 --- /dev/null +++ b/plugins/screenrig/cli/dist/command-tree.d.ts @@ -0,0 +1,15 @@ +import { Command } from "commander"; +/** Canonical command names, excluding the executable and any supplied values. */ +export declare function commandPath(command: Command): string[]; +export declare function findCommand(root: Command, path: readonly string[]): Command | undefined; +/** Read explicit CLI options only; Commander defaults must not become write flags. */ +export declare function invocationFlags(command: Command): Record<string, string | boolean>; +export interface CommandTree { + root: Command; + selected: () => Command; + helpRequested: () => boolean; + versionRequested: () => boolean; +} +/** Build fresh commands per invocation: no shared parsed values or process exits. */ +export declare function createCommandTree(argv?: readonly string[]): CommandTree; +//# sourceMappingURL=command-tree.d.ts.map \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/command-tree.d.ts.map b/plugins/screenrig/cli/dist/command-tree.d.ts.map new file mode 100644 index 00000000..c6834525 --- /dev/null +++ b/plugins/screenrig/cli/dist/command-tree.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"command-tree.d.ts","sourceRoot":"","sources":["../src/command-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA0B,MAAM,WAAW,CAAC;AA0C5D,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAEtD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAQvF;AAED,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CASlF;AA0DD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,OAAO,CAAC;IAC7B,gBAAgB,EAAE,MAAM,OAAO,CAAC;CACjC;AAED,qFAAqF;AACrF,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,SAAS,MAAM,EAAO,GAAG,WAAW,CAyE3E"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/command-tree.js b/plugins/screenrig/cli/dist/command-tree.js new file mode 100644 index 00000000..8fa8d966 --- /dev/null +++ b/plugins/screenrig/cli/dist/command-tree.js @@ -0,0 +1,223 @@ +import { Command, CommanderError, Option } from "commander"; +import { COMMAND_SPECS, GLOBAL_FLAGS } from "./command-spec.js"; +import { ACTION_SUMMARIES, SUMMARIES } from "./help-text.js"; +import { quotedRevision } from "./if-match.js"; +import { usageError } from "./problems.js"; +import { CLI_VERSION } from "./version.js"; +const OPTION_HELP = { + json: ["", "Return a JSON envelope"], + "api-url": ["URL", "Override the API origin"], config: ["PATH", "Use this credential/configuration file"], + "request-id": ["ID", "Use a request correlation ID"], "idempotency-key": ["KEY", "Reuse a key when retrying the same write"], + timeout: ["MS", "Set the command timeout in milliseconds"], "beta-key": ["KEY", "Supply an enrollment beta key"], token: ["TOKEN", "Override the stored credential"], + email: ["ADDRESS", "Set the account contact email"], name: ["NAME", "Set the resource or agent name"], + "open-dashboard": ["", "Open the dashboard after enrolling"], "print-url": ["", "Return the browser handoff URL"], + yes: ["", "Confirm this agent's disconnection"], "allow-lockout": ["", "Allow disconnecting the last agent"], + output: ["PATH", "Write the result to this file or directory"], "no-wait": ["", "Return after acceptance without waiting for processing"], + "poll-ms": ["MS", "Set the operation polling interval"], "if-match": ["REVISION", "Require the current resource revision"], + prompt: ["TEXT", "Describe the complete image to generate"], "aspect-ratio": ["RATIO", "Choose the generated image aspect ratio"], + quality: ["low|medium|high", "Choose generation quality"], tag: ["TAG", "Set or filter by a media tag"], + "content-type": ["TYPE", "Declare the content MIME type"], "no-transcode": ["", "Upload accepted source bytes unchanged"], + codec: ["h264|hevc", "Choose the video codec (default: h264)"], "max-fps": ["N", "Limit video frames per second"], + "max-edge": ["PIXELS", "Limit the longest video edge"], "webp-quality": ["1-100", "Set WebP quality"], + "no-progress": ["", "Suppress stderr progress"], preset: ["PRESET", "Use signage-1080p30 or signage-4k30"], "no-audio": ["", "Remove the audio track when transcoding"], + state: ["VALUE", "Select archived screens or an upload-batch state file"], concurrency: ["N", "Set concurrent batch uploads"], + primitive: ["image|video", "Filter by media primitive"], "clear-tag": ["", "Remove the media tag"], + only: ["ID", "Render only this page"], "target-width": ["PX", "Set the physical content width"], "target-height": ["PX", "Set the physical content height"], + "safe-area": ["", "Apply the display safe area"], "lint-only": ["", "Run the command's local validation/lint mode"], combined: ["", "Also render combined page images"], open: ["", "Open the result in its viewer"], + "frame-ms": ["MS", "Select the preview frame time"], "contact-sheet": ["", "Include a contact sheet"], update: ["ID", "Update this playlist when importing"], + label: ["LABEL", "Set the screen label"], code: ["CODE", "Use the browser setup code"], "playlist-id": ["ID", "Select the playlist to assign"], timezone: ["ZONE", "Set an IANA timezone"], + text: ["TEXT", "Set the screen message"], level: ["LEVEL", "Set toast level (default: info)"], "duration-ms": ["MS", "Show the message for 2000–60000 milliseconds"], + "application-id": ["ID", "Select the application's K/V namespace"], "json-value": ["JSON", "Supply a JSON value"], file: ["FILE", "Read the value from a file"], "value-base64": ["BASE64", "Supply canonical base64 bytes (may be empty)"], + page: ["PAGE_ID", "Select playlist page comments"], after: ["CURSOR", "Read events after this cursor"], cursor: ["CURSOR", "Alias for --after"], limit: ["N", "Limit returned events"], + "screen-id": ["ID", "Filter playback by screen"], "media-id": ["ID", "Filter playback by media"], day: ["YYYY-MM-DD", "Filter playback by UTC day"], + body: ["TEXT", "Supply feedback details"], "body-file": ["FILE", "Read feedback details from a file"], command: ["GROUP ACTION", "Identify the command involved"], "no-context": ["", "Omit diagnostic context"], kind: ["bug|feature", "Filter feedback by kind"], + "repair-config": ["", "Repair configuration permissions"], +}; +const NUMERIC_FLAGS = new Set(["timeout", "poll-ms", "target-width", "target-height", "limit", "max-fps", "max-edge", "webp-quality", "duration-ms", "concurrency", "frame-ms"]); +const CONFLICTS = [ + ["after", "cursor"], ["tag", "clear-tag"], ["body", "body-file"], ["json-value", "file", "value-base64"], ["json-value", "content-type"], + ...["codec", "max-fps", "max-edge", "webp-quality", "preset", "no-audio"].map((flag) => ["no-transcode", flag]), +]; +/** Canonical command names, excluding the executable and any supplied values. */ +export function commandPath(command) { + return command.parent ? [...commandPath(command.parent), command.name()] : []; +} +export function findCommand(root, path) { + let command = root; + for (const word of path) { + const child = command.commands.find((candidate) => candidate.name() === word || candidate.aliases().includes(word)); + if (!child) + return undefined; + command = child; + } + return command; +} +/** Read explicit CLI options only; Commander defaults must not become write flags. */ +export function invocationFlags(command) { + const flags = Object.create(null); + for (let current = command; current; current = current.parent) { + for (const option of current.options) { + if (current.getOptionValueSource(option.attributeName()) !== "cli") + continue; + flags[option.long.slice(2)] = option.negate ? true : current.getOptionValue(option.attributeName()); + } + } + return flags; +} +function optionValue(name, value, argv) { + if ((!value.length && name !== "value-base64") || + (value.startsWith("-") && !/^-\d/.test(value) && !argv.includes(`--${name}=${value}`))) { + throw usageError(`--${name} requires a value. Use --${name}=VALUE for a value starting with a dash.`); + } + if (NUMERIC_FLAGS.has(name)) { + const number = Number(value); + if (name === "duration-ms" && (!Number.isInteger(number) || number < 2000 || number > 60000)) + throw usageError("--duration-ms must be a whole number between 2000 and 60000."); + if (!value.trim() || !Number.isFinite(number) || number < 0 || (name !== "max-fps" && !Number.isSafeInteger(number))) + throw usageError(`--${name} requires a nonnegative ${name === "max-fps" ? "number" : "whole number"}.`); + if (!["timeout", "frame-ms"].includes(name) && number === 0) + throw usageError(`--${name} must be greater than zero.`); + } + if (name === "if-match") + quotedRevision(value); + return value; +} +/** Commander diagnostics can contain raw option names/values. Never expose them. */ +function commandError(error, command) { + const path = commandPath(command).join(" "); + // Preserve actionable migration hints using only known command/flag names. + const has = (flag) => command.args.some((arg) => arg === `--${flag}` || arg.startsWith(`--${flag}=`)); + if (path === "screen" && command.args[0] === "revoke-credential") + throw usageError("screen revoke-credential is retired. Archive the screen instead.", { command: "screenrig --json screen archive <id> --if-match REVISION", reason: "Archive hides the screen; it does not unbind the player." }); + if (path.startsWith("comment ")) { + if (command.commands.length) + throw usageError("comment commands require screen <id> or playlist <id>."); + if (has("if-match")) + throw usageError("comment commands do not take --if-match; last write wins and does not bump revision."); + if (has("page") && command.name() === "screen") + throw usageError("comment screen commands do not take --page; use comment playlist <id> --page PAGE_ID."); + if (has("value-base64")) + throw usageError("comment set requires --json-value or --file."); + if (error.code === "commander.conflictingOption") + throw usageError("comment set requires exactly one of --json-value or --file."); + } + if (path === "media list" && has("kind")) + throw usageError("media list uses --primitive image|video, not --kind."); + switch (error.code) { + case "commander.missingArgument": + if (path === "screen set-timezone") + throw usageError("screen set-timezone requires <id> --timezone --if-match."); + throw usageError(`${path} requires ${command.registeredArguments.filter((arg) => arg.required).map((arg) => `<${arg.name()}>`).join(" ")}.`); + case "commander.excessArguments": + throw usageError(`${path || "screenrig"} does not accept ${command.registeredArguments.length ? "extra" : "positional"} arguments.`); + case "commander.conflictingOption": { + const supplied = command.options.filter((option) => command.getOptionValueSource(option.attributeName()) === "cli"); + const pair = CONFLICTS.map((group) => supplied.filter((option) => group.includes(option.long.slice(2)))).find((options) => options.length > 1); + const [first, second] = pair ?? []; + throw usageError(first && second ? `Use only one of ${first.long}, ${second.long}.` : "Conflicting options. See command help."); + } + case "commander.missingMandatoryOptionValue": { + if (path === "screen set-timezone") + throw usageError("screen set-timezone requires <id> --timezone --if-match."); + const required = command.options.filter((option) => option.mandatory && command.getOptionValue(option.attributeName()) === undefined); + const positional = command.registeredArguments.filter((arg, index) => arg.required && index >= command.args.length).map((arg) => `<${arg.name()}>`); + throw usageError(`${path} requires ${[...positional, ...required.map((option) => option.long)].join(" ")}.`); + } + case "commander.optionMissingArgument": { + const option = command.options.find((candidate) => error.message.includes(`option '${candidate.flags}'`)); + throw usageError(option ? `${option.long} requires a value.` : "An option requires a value. See command help for its arguments."); + } + default: + throw usageError("Unknown command or unsupported option. See command help for supported arguments.", { command: `screenrig${path ? ` ${path}` : ""} --help`, reason: "List supported commands, arguments, and options." }); + } +} +/** Build fresh commands per invocation: no shared parsed values or process exits. */ +export function createCommandTree(argv = []) { + let selected; + let helpRequested = false; + let versionRequested = false; + const seen = new Set(); + const configure = (command) => command + .allowExcessArguments(false) + .addHelpCommand(false) + .showSuggestionAfterError(false) + .configureOutput({ writeOut() { }, writeErr() { }, outputError() { } }) + .configureHelp({ helpWidth: 100, showGlobalOptions: true }) + .exitOverride((error) => { + selected = command; + if (error.code === "commander.helpDisplayed" || error.code === "commander.help") + helpRequested = true; + else if (error.code === "commander.version") + versionRequested = true; + else + commandError(error, command); + throw error; + }); + const root = configure(new Command("screenrig")).description("Signage and kiosk infrastructure for agents"); + selected = root; + root.version(CLI_VERSION, "-V, --version", "Show CLI and protocol versions"); + const addOption = (command, name) => { + const entry = OPTION_HELP[name]; + if (!entry) + throw new Error(`Missing option definition: ${name}`); + const [placeholder, description] = entry; + const option = new Option(`--${name}${placeholder ? ` <${placeholder}>` : ""}`, description); + if (placeholder) + option.argParser((value) => optionValue(name, value, argv)); + if (name === "token") + option.hideHelp(); + command.addOption(option); + command.on(`option:${option.name()}`, () => { + if (seen.has(name)) + throw usageError(`--${name} may be supplied only once.`); + seen.add(name); + }); + }; + for (const name of GLOBAL_FLAGS) + addOption(root, name); + for (const spec of COMMAND_SPECS) { + let command = root; + for (const word of spec.path) { + let child = command.commands.find((candidate) => candidate.name() === word); + if (!child) { + child = configure(command.createCommand(word)); + command.addCommand(child); + child.description(SUMMARIES[commandPath(child).join(" ")] ?? ACTION_SUMMARIES[word] ?? `Manage ${word} comments`); + } + command = child; + } + if (spec.arguments) + command.arguments(spec.arguments); + for (const alias of spec.aliases ?? []) + command.alias(alias[alias.length - 1]); + for (const name of spec.flags) + addOption(command, name); + for (const name of spec.requiredFlags ?? []) { + const option = command.options.find((option) => option.long === `--${name}`); + option.makeOptionMandatory(); + option.description += " (required)"; + } + for (const group of CONFLICTS) { + const options = command.options.filter((option) => group.includes(option.long.slice(2))); + for (const option of options) + option.conflicts(options.filter((other) => other !== option).map((other) => other.attributeName())); + } + command.action(() => { selected = command; }); + } + const help = configure(new Command("help")).description("Discover commands and their options").argument("[command...]", "Command path to inspect"); + root.addCommand(help); + help.action((path) => { + const target = findCommand(root, path); + if (!target) + throw usageError("Unknown help topic."); + target.help(); + }); + const groups = (command) => { + if (command.commands.length) + command.action(() => command.help()); + command.commands.forEach(groups); + }; + groups(root); + return { root, selected: () => selected, helpRequested: () => helpRequested, versionRequested: () => versionRequested }; +} +//# sourceMappingURL=command-tree.js.map \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/command-tree.js.map b/plugins/screenrig/cli/dist/command-tree.js.map new file mode 100644 index 00000000..ad668caa --- /dev/null +++ b/plugins/screenrig/cli/dist/command-tree.js.map @@ -0,0 +1 @@ +{"version":3,"file":"command-tree.js","sourceRoot":"","sources":["../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AC,aAAa,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;AAC1H,CAAC"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/commands.d.ts b/plugins/screenrig/cli/dist/commands.d.ts index 80f6cc51..a40d755b 100644 --- a/plugins/screenrig/cli/dist/commands.d.ts +++ b/plugins/screenrig/cli/dist/commands.d.ts @@ -6,7 +6,7 @@ import type { CliRuntime } from "./runtime.js"; import { type TranscodeOptions } from "./media/transcode.js"; import { CLI_VERSION } from "./version.js"; export { CLI_VERSION }; -export declare const USAGE = "screenrig \u2014 ScreenRig localhost v1 control-plane CLI\n\nUsage:\n screenrig [--json] [--api-url URL] [--config PATH]\n [--request-id ID] [--idempotency-key KEY] [--timeout MS]\n [--beta-key KEY]\n <command> [args]\n\nConfiguration (user config JSON, not flags):\n log_socket optional path to an already-listening Unix socket. The CLI\n connects as a client and writes one NDJSON operation-log\n object per line. Absent or empty keeps current behavior.\n Connect or back-pressure drops lines and warns\n log_sink_degraded; it does not fail the command.\n This is a config field only, not a command-line switch.\n\nCommands:\n account show\n agent enroll --email ADDRESS [--name NAME] [--open-dashboard]\n agent connect [--name NAME] [--print-url] [--timeout MS]\n Approval expires after 24 hours; --timeout defaults to 86400000 ms.\n Retry agent connect to resume after an interrupted wait.\n agent status\n agent disconnect --yes [--allow-lockout]\n dashboard [--print-url]\n app pack <directory> [--output FILE]\n app upload <directory> [--name NAME] [--no-wait] [--poll-ms MS]\n app update <id> <directory> --if-match REVISION [--no-wait] [--poll-ms MS]\n app list\n app show <id>\n media generate --prompt TEXT [--aspect-ratio RATIO] [--quality low|medium|high] [--tag TAG]\n media upload <file> [--content-type TYPE] [--tag TAG] [--no-wait] [--poll-ms MS]\n [--no-transcode] [--codec h264|hevc] [--max-fps N]\n [--max-edge PIXELS] [--webp-quality 1-100] [--no-progress]\n [--preset signage-1080p30|signage-4k30] [--no-audio]\n media upload-batch <manifest.json> --state FILE [--concurrency N]\n [--no-transcode] [--tag TAG] [--no-progress]\n media show <id>\n media download <id> [--output FILE]\n media list [--tag TAG] [--primitive image|video]\n media update <id> (--tag TAG | --clear-tag) --if-match REVISION\n media delete <id> --if-match REVISION\n compose catalog\n (local regions, enter/motion, fonts, examples; no network)\n compose batch <file> --output DIRECTORY [--only ID] [--target-width PX --target-height PX] [--safe-area]\n [--lint-only]\n (contact sheet; 1 to 2000 pages)\n playlist validate <file> [--lint-only]\n compose render <file> [--output DIRECTORY] [--combined] [--target-width PX --target-height PX] [--safe-area]\n [--open] [--lint-only]\n playlist preview <file|id> --output DIR [--frame-ms MS] [--contact-sheet] [--lint-only]\n playlist templates\n playlist create <file>\n playlist update <id> <file> --if-match REVISION\n playlist export <id> --output DIRECTORY\n playlist import <directory> [--name NAME] [--update ID --if-match REVISION]\n playlist show <id>\n playlist list\n playlist delete <id> --if-match REVISION\n screen pair CODE [--label LABEL]\n screen provision (--open | --print-url) [--label LABEL]\n browser setup --code CODE [--open]\n screen update <id> [--name NAME] [--playlist-id ID] [--timezone ZONE]\n --if-match REVISION\n screen list [--state archived]\n screen show <id>\n screen assign <id> --playlist-id ID --if-match REVISION\n screen set-timezone <id> --timezone ZONE --if-match REVISION\n screen archive <id> --if-match REVISION\n screen unarchive <id> --if-match REVISION\n screen delete <id> --if-match REVISION\n screen rotate-public-id <id> --if-match REVISION\n screen toast <id> --text TEXT [--level info] [--duration-ms MS]\n screen screenshot <id> [--output FILE] [--timeout MS] [--poll-ms MS]\n kv get --application-id ID <key>\n kv set --application-id ID <key> --json-value JSON [--if-match REVISION]\n kv set --application-id ID <key> --file FILE --content-type TYPE [--if-match REVISION]\n kv set --application-id ID <key> --value-base64 BASE64 --content-type TYPE [--if-match REVISION]\n kv delete --application-id ID <key> --if-match REVISION\n kv list --application-id ID\n comment show screen <id>\n comment show playlist <id> [--page PAGE_ID]\n comment set screen <id> (--json-value JSON | --file FILE)\n comment set playlist <id> [--page PAGE_ID] (--json-value JSON | --file FILE)\n comment delete screen <id>\n comment delete playlist <id> [--page PAGE_ID]\n operations get <id>\n operations wait <id> [--timeout MS] [--poll-ms MS]\n operations cancel <id>\n events list [--after CURSOR] [--limit N]\n events follow [--after CURSOR] [--timeout MS]\n playback list [--screen-id ID] [--media-id ID] [--day YYYY-MM-DD]\n feedback bug <title> (--body TEXT | --body-file FILE)\n [--command \"GROUP ACTION\"] [--no-context]\n feedback feature <title> (--body TEXT | --body-file FILE)\n [--command \"GROUP ACTION\"] [--no-context]\n feedback list [--kind bug|feature]\n doctor [--repair-config]\n version\n\nCredits:\n Remaining is a nonnegative whole number (never negative; empty remaining\n displays 0). Below 1000 credits, authenticated responses may warn\n credits_low. Until 1 Jan 2027 08:00 UTC (midnight PT), production fails open:\n billed commands are not rejected for empty remaining and do not return\n HTTP 402. After that instant, remaining below 1 credit is payment_required.\n Empty remaining does not stop or shut off screens in this window.\n media generate is the exception: it is billed per token.\n Text input is $10 / 1M tokens, image input is $16 / 1M, image output is\n $60 / 1M. Quality changes how detailed the still is and therefore how\n many tokens it uses. Remaining that cannot cover the debit returns\n payment_required / 402, including during this window.\n\nLook at the contact sheet before publishing. Fix what the lint names, then look again.\n"; +export { ROOT_HELP as USAGE } from "./help.js"; export interface CommandResult { envelope: ReturnType<typeof successEnvelope<unknown>>; exitCode: ExitCode; diff --git a/plugins/screenrig/cli/dist/commands.d.ts.map b/plugins/screenrig/cli/dist/commands.d.ts.map index a717a44a..6b7d22ad 100644 --- a/plugins/screenrig/cli/dist/commands.d.ts.map +++ b/plugins/screenrig/cli/dist/commands.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,YAAY,EAWjB,KAAK,eAAe,EAWpB,KAAK,SAAS,EAgBf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAoC,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAoB9E,OAAO,EAAE,eAAe,EAAkC,MAAM,eAAe,C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CAAC;AAoB9E,OAAO,EAAE,eAAe,EAAkC,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAgD/C,OAAO,EAML,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAa9B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,OAAO,EAAE,SAAS,IAAI,KAAK,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IACtD,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAoND,wBAAsB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAqO5F;AA6jDD,iDAAiD;AACjD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,UAAU,GAAG,gBAAgB,CA0C3E;AAkLD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,MAAM,GACf,eAAe,GAAG,SAAS,CA4B7B;AA2jCD,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAoCvE;AAqCD,6EAA6E;AAC7E,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAwZlD,YAAY,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/commands.js b/plugins/screenrig/cli/dist/commands.js index 9f8a1759..af05d2a0 100644 --- a/plugins/screenrig/cli/dist/commands.js +++ b/plugins/screenrig/cli/dist/commands.js @@ -42,121 +42,7 @@ import { exportPlaylistBundle, importPlaylistBundle } from "./playlist-bundle.js import { agentPlatform, decryptAgentCredential, generateAgentConnectionKey, publicAgentConnectionKey, validateAgent, validateAgentSelfStatus, validateAgentConnectionEvent, validateAgentConnectionStart, } from "./agent-identity.js"; import { CLI_VERSION } from "./version.js"; export { CLI_VERSION }; -export const USAGE = `screenrig — ScreenRig localhost v1 control-plane CLI - -Usage: - screenrig [--json] [--api-url URL] [--config PATH] - [--request-id ID] [--idempotency-key KEY] [--timeout MS] - [--beta-key KEY] - <command> [args] - -Configuration (user config JSON, not flags): - log_socket optional path to an already-listening Unix socket. The CLI - connects as a client and writes one NDJSON operation-log - object per line. Absent or empty keeps current behavior. - Connect or back-pressure drops lines and warns - log_sink_degraded; it does not fail the command. - This is a config field only, not a command-line switch. - -Commands: - account show - agent enroll --email ADDRESS [--name NAME] [--open-dashboard] - agent connect [--name NAME] [--print-url] [--timeout MS] - Approval expires after 24 hours; --timeout defaults to 86400000 ms. - Retry agent connect to resume after an interrupted wait. - agent status - agent disconnect --yes [--allow-lockout] - dashboard [--print-url] - app pack <directory> [--output FILE] - app upload <directory> [--name NAME] [--no-wait] [--poll-ms MS] - app update <id> <directory> --if-match REVISION [--no-wait] [--poll-ms MS] - app list - app show <id> - media generate --prompt TEXT [--aspect-ratio RATIO] [--quality low|medium|high] [--tag TAG] - media upload <file> [--content-type TYPE] [--tag TAG] [--no-wait] [--poll-ms MS] - [--no-transcode] [--codec h264|hevc] [--max-fps N] - [--max-edge PIXELS] [--webp-quality 1-100] [--no-progress] - [--preset signage-1080p30|signage-4k30] [--no-audio] - media upload-batch <manifest.json> --state FILE [--concurrency N] - [--no-transcode] [--tag TAG] [--no-progress] - media show <id> - media download <id> [--output FILE] - media list [--tag TAG] [--primitive image|video] - media update <id> (--tag TAG | --clear-tag) --if-match REVISION - media delete <id> --if-match REVISION - compose catalog - (local regions, enter/motion, fonts, examples; no network) - compose batch <file> --output DIRECTORY [--only ID] [--target-width PX --target-height PX] [--safe-area] - [--lint-only] - (contact sheet; 1 to 2000 pages) - playlist validate <file> [--lint-only] - compose render <file> [--output DIRECTORY] [--combined] [--target-width PX --target-height PX] [--safe-area] - [--open] [--lint-only] - playlist preview <file|id> --output DIR [--frame-ms MS] [--contact-sheet] [--lint-only] - playlist templates - playlist create <file> - playlist update <id> <file> --if-match REVISION - playlist export <id> --output DIRECTORY - playlist import <directory> [--name NAME] [--update ID --if-match REVISION] - playlist show <id> - playlist list - playlist delete <id> --if-match REVISION - screen pair CODE [--label LABEL] - screen provision (--open | --print-url) [--label LABEL] - browser setup --code CODE [--open] - screen update <id> [--name NAME] [--playlist-id ID] [--timezone ZONE] - --if-match REVISION - screen list [--state archived] - screen show <id> - screen assign <id> --playlist-id ID --if-match REVISION - screen set-timezone <id> --timezone ZONE --if-match REVISION - screen archive <id> --if-match REVISION - screen unarchive <id> --if-match REVISION - screen delete <id> --if-match REVISION - screen rotate-public-id <id> --if-match REVISION - screen toast <id> --text TEXT [--level info] [--duration-ms MS] - screen screenshot <id> [--output FILE] [--timeout MS] [--poll-ms MS] - kv get --application-id ID <key> - kv set --application-id ID <key> --json-value JSON [--if-match REVISION] - kv set --application-id ID <key> --file FILE --content-type TYPE [--if-match REVISION] - kv set --application-id ID <key> --value-base64 BASE64 --content-type TYPE [--if-match REVISION] - kv delete --application-id ID <key> --if-match REVISION - kv list --application-id ID - comment show screen <id> - comment show playlist <id> [--page PAGE_ID] - comment set screen <id> (--json-value JSON | --file FILE) - comment set playlist <id> [--page PAGE_ID] (--json-value JSON | --file FILE) - comment delete screen <id> - comment delete playlist <id> [--page PAGE_ID] - operations get <id> - operations wait <id> [--timeout MS] [--poll-ms MS] - operations cancel <id> - events list [--after CURSOR] [--limit N] - events follow [--after CURSOR] [--timeout MS] - playback list [--screen-id ID] [--media-id ID] [--day YYYY-MM-DD] - feedback bug <title> (--body TEXT | --body-file FILE) - [--command "GROUP ACTION"] [--no-context] - feedback feature <title> (--body TEXT | --body-file FILE) - [--command "GROUP ACTION"] [--no-context] - feedback list [--kind bug|feature] - doctor [--repair-config] - version - -Credits: - Remaining is a nonnegative whole number (never negative; empty remaining - displays 0). Below 1000 credits, authenticated responses may warn - credits_low. Until 1 Jan 2027 08:00 UTC (midnight PT), production fails open: - billed commands are not rejected for empty remaining and do not return - HTTP 402. After that instant, remaining below 1 credit is payment_required. - Empty remaining does not stop or shut off screens in this window. - media generate is the exception: it is billed per token. - Text input is $10 / 1M tokens, image input is $16 / 1M, image output is - $60 / 1M. Quality changes how detailed the still is and therefore how - many tokens it uses. Remaining that cannot cover the debit returns - payment_required / 402, including during this window. - -${LOOK_AT_THE_CONTACT_SHEET} -`; +export { ROOT_HELP as USAGE } from "./help.js"; function nonemptyEnv(value) { return typeof value === "string" && value.length > 0 ? value : undefined; } @@ -354,20 +240,23 @@ function humanLines(title, fields) { export async function dispatch(args, runtime) { const group = args.positionals[0]; const action = args.positionals[1]; - if (!group || flagBool(args.flags, "help") || group === "help") { + if ((flagBool(args.flags, "version") || group === "version") && !flagBool(args.flags, "help") && group !== "help") { return { - envelope: successEnvelope({ usage: USAGE }), + envelope: successEnvelope({ version: CLI_VERSION, protocol_adapter: TEMPORARY_PROTOCOL_VERSION }), exitCode: ExitCode.Success, - human: USAGE, + human: `screenrig ${CLI_VERSION}`, }; } - if (flagBool(args.flags, "version") || group === "version") { + if (args.help) { + const help = args.help; return { - envelope: successEnvelope({ version: CLI_VERSION, protocol_adapter: TEMPORARY_PROTOCOL_VERSION }), + envelope: successEnvelope(help), exitCode: ExitCode.Success, - human: `screenrig ${CLI_VERSION}`, + human: help.usage, }; } + if (!group) + throw usageError("A command is required."); const repair = flagBool(args.flags, "repair-config"); let resolved = await resolveConfig({ flags: args.flags, fs: { ...runtime.fs, env: runtime.env, homedir: runtime.homedir }, repair }); await attachOperationLogger(runtime, args, resolved); @@ -1539,34 +1428,31 @@ async function appUpload(args, runtime, resolved) { body: packed.archive, }); const body = response.body; - if (!flagBool(args.flags, "no-wait") && body.operation_id) { - const operation = await client.waitForOperation(body.operation_id, { + const operation = !flagBool(args.flags, "no-wait") && body.operation_id + ? await client.waitForOperation(body.operation_id, { timeoutMs: flagNumber(args.flags, "timeout") ?? 120_000, pollMs: flagNumber(args.flags, "poll-ms") ?? 1000, sleep: runtime.sleep, - }); - return { - envelope: successEnvelope({ application: body, operation, pack: { sha256: packed.sha256, file_count: packed.file_count } }, { request_id: client.requestId, operation_id: operation.id }), - exitCode: ExitCode.Success, - human: humanLines(update ? "Application release uploaded" : "Application uploaded", [ - ["application_id", body.id], - // The release id is the only handle an application primitive accepts, so - // report it here rather than making the caller read the operation - // result to find it. - ["release_id", body.release_id], - ["operation_id", operation.id], - ["state", operation.state], - ["sha256", packed.sha256], - ]), - }; - } + }) + : null; return { - envelope: jsonBody(response, client.requestId, { sha256: packed.sha256 }), + envelope: jsonBody(response, client.requestId, { + // Keep the historical flat accepted fields and sha256 as aliases while + // exposing the same canonical paths regardless of waiting mode. + application: body, + operation, + pack: { sha256: packed.sha256, file_count: packed.file_count }, + sha256: packed.sha256, + }), exitCode: ExitCode.Success, - human: humanLines(update ? "Application release accepted" : "Application upload accepted", [ + human: humanLines(operation + ? (update ? "Application release uploaded" : "Application uploaded") + : (update ? "Application release accepted" : "Application upload accepted"), [ ["application_id", body.id], + // Application primitives use the release id, not the application id. ["release_id", body.release_id], ["operation_id", body.operation_id], + ["state", operation?.state], ["sha256", packed.sha256], ]), }; diff --git a/plugins/screenrig/cli/dist/commands.js.map b/plugins/screenrig/cli/dist/commands.js.map index 238d3041..cac421d6 100644 --- a/plugins/screenrig/cli/dist/commands.js.map +++ b/plugins/screenrig/cli/dist/commands.js.map @@ -1 +1 @@ -{"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE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.ts b/plugins/screenrig/cli/dist/help-text.d.ts new file mode 100644 index 00000000..4a69e8b2 --- /dev/null +++ b/plugins/screenrig/cli/dist/help-text.d.ts @@ -0,0 +1,5 @@ +export declare const CREDIT_HELP = "Credits:\n Remaining is a nonnegative whole number (never negative; empty remaining\n displays 0). Below 1000 credits, authenticated responses may warn\n credits_low. Until 1 Jan 2027 08:00 UTC (midnight PT), production fails open:\n billed commands are not rejected for empty remaining and do not return\n HTTP 402. After that instant, remaining below 1 credit is payment_required.\n Empty remaining does not stop or shut off screens in this window.\n media generate is the exception: it is billed per token.\n Text input is $10 / 1M tokens, image input is $16 / 1M, image output is\n $60 / 1M. Quality changes how detailed the still is and therefore how\n many tokens it uses. Remaining that cannot cover the debit returns\n payment_required / 402, including during this window."; +export declare const SUMMARIES: Record<string, string>; +export declare const ACTION_SUMMARIES: Record<string, string>; +export declare const NOTES: Record<string, string>; +//# sourceMappingURL=help-text.d.ts.map \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/help-text.d.ts.map b/plugins/screenrig/cli/dist/help-text.d.ts.map new file mode 100644 index 00000000..511ffd32 --- /dev/null +++ b/plugins/screenrig/cli/dist/help-text.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"help-text.d.ts","sourceRoot":"","sources":["../src/help-text.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,4xBAA4xB,CAAC;AAErzB,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAmB5C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkBnD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOxC,CAAC"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/help-text.js b/plugins/screenrig/cli/dist/help-text.js new file mode 100644 index 00000000..13a2723f --- /dev/null +++ b/plugins/screenrig/cli/dist/help-text.js @@ -0,0 +1,50 @@ +import { LOOK_AT_THE_CONTACT_SHEET } from "./playlist-preview.js"; +export const CREDIT_HELP = "Credits:\n Remaining is a nonnegative whole number (never negative; empty remaining\n displays 0). Below 1000 credits, authenticated responses may warn\n credits_low. Until 1 Jan 2027 08:00 UTC (midnight PT), production fails open:\n billed commands are not rejected for empty remaining and do not return\n HTTP 402. After that instant, remaining below 1 credit is payment_required.\n Empty remaining does not stop or shut off screens in this window.\n media generate is the exception: it is billed per token.\n Text input is $10 / 1M tokens, image input is $16 / 1M, image output is\n $60 / 1M. Quality changes how detailed the still is and therefore how\n many tokens it uses. Remaining that cannot cover the debit returns\n payment_required / 402, including during this window."; +export const SUMMARIES = { + account: "Inspect your account and credits", + agent: "Enroll, connect, and manage this agent", + dashboard: "Open the account dashboard", + app: "Pack, upload, and inspect applications", + media: "Generate, upload, and manage images and videos", + compose: "Render and inspect local page compositions", + playlist: "Author, validate, preview, and manage playlists", + screen: "Pair, configure, and inspect screens", + browser: "Complete browser Player setup", + kv: "Read and write application key-value data", + comment: "Read and manage screen and playlist comments", + operations: "Inspect, wait for, or cancel operations", + events: "List or follow account events", + playback: "Inspect playback records", + feedback: "Submit bugs and feature requests", + doctor: "Check this CLI installation and configuration", + version: "Show CLI and protocol versions", + help: "Discover commands and their options", +}; +export const ACTION_SUMMARIES = { + enroll: "Create the first agent with an email address", connect: "Connect this installation with approval", + status: "Inspect this agent's connection", disconnect: "Disconnect this agent", + pack: "Pack a local application directory", upload: "Upload a local file or directory", + update: "Update an existing resource", list: "List resources", show: "Inspect a resource", + generate: "Generate an image from a prompt", download: "Download media to a file", + "upload-batch": "Upload a manifest with resumable state", delete: "Delete a resource", + catalog: "Browse local composition capabilities and examples", batch: "Render a batch of compositions", + render: "Render a composition locally", validate: "Validate a playlist file", + preview: "Render playlist previews and a contact sheet", templates: "Browse playlist templates", + create: "Create a playlist from a file", export: "Export a playlist bundle", import: "Import a playlist bundle", + pair: "Claim a Player pairing code", provision: "Create a screen and browser handoff", + setup: "Complete browser setup from a code", assign: "Assign a playlist to a screen", + "set-timezone": "Set a screen's timezone", archive: "Archive a screen", unarchive: "Restore an archived screen", + "rotate-public-id": "Rotate a screen's public identifier", toast: "Show a temporary screen message", + screenshot: "Capture and download a screen screenshot", get: "Read the current value or operation", + set: "Write a value", wait: "Wait for an operation to finish", cancel: "Cancel an operation", + follow: "Stream account events", bug: "Submit a bug report", feature: "Submit a feature request", +}; +export const NOTES = { + "agent connect": "Approval expires after 24 hours; --timeout defaults to 86400000 ms. Retry agent connect to resume after an interrupted wait.", + "media generate": CREDIT_HELP, + "account show": CREDIT_HELP, + "compose render": LOOK_AT_THE_CONTACT_SHEET, + "compose batch": `Render 1 to 2000 pages. ${LOOK_AT_THE_CONTACT_SHEET}`, + "playlist preview": LOOK_AT_THE_CONTACT_SHEET, +}; +//# sourceMappingURL=help-text.js.map \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/help-text.js.map b/plugins/screenrig/cli/dist/help-text.js.map new file mode 100644 index 00000000..48a7daad --- /dev/null +++ b/plugins/screenrig/cli/dist/help-text.js.map @@ -0,0 +1 @@ +{"version":3,"file":"help-text.js","sourceRoot":"","sources":["../src/help-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAG,yxBAAyxB,CAAC;AAErzB,MAAM,CAAC,MAAM,SAAS,GAA2B;IAC/C,OAAO,EAAE,kCAAkC;IAC3C,KAAK,EAAE,wCAAwC;IAC/C,SAAS,EAAE,4BAA4B;IACvC,GAAG,EAAE,wCAAwC;IAC7C,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,4CAA4C;IACrD,QAAQ,EAAE,iDAAiD;IAC3D,MAAM,EAAE,sCAAsC;IAC9C,OAAO,EAAE,+BAA+B;IACxC,EAAE,EAAE,2CAA2C;IAC/C,OAAO,EAAE,8CAA8C;IACvD,UAAU,EAAE,yCAAyC;IACrD,MAAM,EAAE,+BA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AA0B;CACjG,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA2B;IAC3C,eAAe,EAAE,8HAA8H;IAC/I,gBAAgB,EAAE,WAAW;IAC7B,cAAc,EAAE,WAAW;IAC3B,gBAAgB,EAAE,yBAAyB;IAC3C,eAAe,EAAE,2BAA2B,yBAAyB,EAAE;IACvE,kBAAkB,EAAE,yBAAyB;CAC9C,CAAC"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/help.d.ts b/plugins/screenrig/cli/dist/help.d.ts new file mode 100644 index 00000000..f6e3e22f --- /dev/null +++ b/plugins/screenrig/cli/dist/help.d.ts @@ -0,0 +1,36 @@ +import type { Command } from "commander"; +export { CREDIT_HELP } from "./help-text.js"; +export interface HelpDocument { + path: string[]; + aliases: string[][]; + kind: "group" | "command"; + usage: string; + synopsis: string[]; + commands: Array<{ + name: string; + path: string[]; + kind: "group" | "command"; + summary: string; + help: string; + }>; + options: Array<{ + name: string; + type: "boolean" | "value"; + description: string; + required: boolean; + }>; + globalOptions: Array<{ + name: string; + type: "boolean" | "value"; + description: string; + required: boolean; + }>; + notes: string[]; +} +/** Canonical and alias paths of every descendant leaf, in tree order. */ +export declare function leafCommandPaths(command: Command): string[]; +/** JSON discovery and human help both read the actual Commander command tree. */ +export declare function describeHelp(command: Command): HelpDocument; +export declare function commandHelp(path?: readonly string[]): HelpDocument; +export declare const ROOT_HELP: string; +//# sourceMappingURL=help.d.ts.map \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/help.d.ts.map b/plugins/screenrig/cli/dist/help.d.ts.map new file mode 100644 index 00000000..53a87a31 --- /dev/null +++ b/plugins/screenrig/cli/dist/help.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5G,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACpG,aAAa,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC1G,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAc3D;AAQD,iFAAiF;AACjF,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,CAuB3D;AAED,wBAAgB,WAAW,CAAC,IAAI,GAAE,SAAS,MAAM,EAAO,GAAG,YAAY,CAItE;AAED,eAAO,MAAM,SAAS,QAAsB,CAAC"} \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/help.js b/plugins/screenrig/cli/dist/help.js new file mode 100644 index 00000000..2d65c29f --- /dev/null +++ b/plugins/screenrig/cli/dist/help.js @@ -0,0 +1,61 @@ +import { commandPath, createCommandTree, findCommand } from "./command-tree.js"; +import { NOTES } from "./help-text.js"; +import { usageError } from "./problems.js"; +export { CREDIT_HELP } from "./help-text.js"; +/** Canonical and alias paths of every descendant leaf, in tree order. */ +export function leafCommandPaths(command) { + const paths = []; + const visit = (node) => { + if (node.commands.length) { + node.commands.forEach(visit); + return; + } + const path = commandPath(node); + if (!path.length) + return; + paths.push(path.join(" ")); + for (const alias of node.aliases()) + paths.push([...path.slice(0, -1), alias].join(" ")); + }; + command.commands.forEach(visit); + return paths; +} +function commandInventory(command) { + const paths = leafCommandPaths(command); + if (!paths.length) + return undefined; + return ["All commands:", ...paths.map((path) => ` ${path}`)].join("\n"); +} +/** JSON discovery and human help both read the actual Commander command tree. */ +export function describeHelp(command) { + const helper = command.createHelp(); + const path = commandPath(command); + const note = NOTES[path.join(" ")]; + const notes = note ? [note] : []; + const inventory = commandInventory(command); + const describeOption = (option) => ({ + name: option.long, type: (option.negate || option.isBoolean()) ? "boolean" : "value", description: option.description, required: option.mandatory, + }); + return { + path, + aliases: command.aliases().map((alias) => [...path.slice(0, -1), alias]), + kind: command.commands.length ? "group" : "command", + usage: [command.helpInformation().trimEnd(), inventory, ...notes].filter((part) => part !== undefined).join("\n\n"), + synopsis: [helper.commandUsage(command)], + commands: helper.visibleCommands(command).map((child) => ({ + name: child.name(), path: commandPath(child), kind: child.commands.length ? "group" : "command", + summary: child.description(), help: `screenrig ${commandPath(child).join(" ")} --help`, + })), + options: helper.visibleOptions(command).map(describeOption), + globalOptions: helper.visibleGlobalOptions(command).map(describeOption), + notes, + }; +} +export function commandHelp(path = []) { + const command = findCommand(createCommandTree().root, path); + if (!command) + throw usageError("Unknown help topic."); + return describeHelp(command); +} +export const ROOT_HELP = commandHelp().usage; +//# sourceMappingURL=help.js.map \ No newline at end of file diff --git a/plugins/screenrig/cli/dist/help.js.map b/plugins/screenrig/cli/dist/help.js.map new file mode 100644 index 00000000..7eae9d47 --- /dev/null +++ b/plugins/screen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/plugins/screenrig/cli/node_modules/commander/LICENSE b/plugins/screenrig/cli/node_modules/commander/LICENSE new file mode 100644 index 00000000..10f997ab --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/LICENSE @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca> + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/plugins/screenrig/cli/node_modules/commander/Readme.md b/plugins/screenrig/cli/node_modules/commander/Readme.md new file mode 100644 index 00000000..376458c9 --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/Readme.md @@ -0,0 +1,1176 @@ +# Commander.js + +[![Build Status](https://github.com/tj/commander.js/workflows/build/badge.svg)](https://github.com/tj/commander.js/actions?query=workflow%3A%22build%22) +[![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander) +[![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://npmcharts.com/compare/commander?minimal=true) +[![Install Size](https://packagephobia.now.sh/badge?p=commander)](https://packagephobia.now.sh/result?p=commander) + +The complete solution for [node.js](http://nodejs.org) command-line interfaces. + +Read this in other languages: English | [简体中文](./Readme_zh-CN.md) + +- [Commander.js](#commanderjs) + - [Installation](#installation) + - [Quick Start](#quick-start) + - [Declaring _program_ variable](#declaring-program-variable) + - [Options](#options) + - [Common option types, boolean and value](#common-option-types-boolean-and-value) + - [Default option value](#default-option-value) + - [Other option types, negatable boolean and boolean|value](#other-option-types-negatable-boolean-and-booleanvalue) + - [Required option](#required-option) + - [Variadic option](#variadic-option) + - [Version option](#version-option) + - [More configuration](#more-configuration) + - [Custom option processing](#custom-option-processing) + - [Commands](#commands) + - [Command-arguments](#command-arguments) + - [More configuration](#more-configuration-1) + - [Custom argument processing](#custom-argument-processing) + - [Action handler](#action-handler) + - [Stand-alone executable (sub)commands](#stand-alone-executable-subcommands) + - [Life cycle hooks](#life-cycle-hooks) + - [Automated help](#automated-help) + - [Custom help](#custom-help) + - [Display help after errors](#display-help-after-errors) + - [Display help from code](#display-help-from-code) + - [.name](#name) + - [.usage](#usage) + - [.description and .summary](#description-and-summary) + - [.helpOption(flags, description)](#helpoptionflags-description) + - [.helpCommand()](#helpcommand) + - [Help Groups](#help-groups) + - [More configuration](#more-configuration-2) + - [Custom event listeners](#custom-event-listeners) + - [Bits and pieces](#bits-and-pieces) + - [.parse() and .parseAsync()](#parse-and-parseasync) + - [Parsing Configuration](#parsing-configuration) + - [Legacy options as properties](#legacy-options-as-properties) + - [TypeScript](#typescript) + - [createCommand()](#createcommand) + - [Node options such as `--harmony`](#node-options-such-as---harmony) + - [Debugging stand-alone executable subcommands](#debugging-stand-alone-executable-subcommands) + - [npm run-script](#npm-run-script) + - [Display error](#display-error) + - [Override exit and output handling](#override-exit-and-output-handling) + - [Additional documentation](#additional-documentation) + - [Support](#support) + - [Commander for enterprise](#commander-for-enterprise) + +For information about terms used in this document see: [terminology](./docs/terminology.md) + +## Installation + +```sh +npm install commander +``` + +## Quick Start + +You write code to describe your command line interface. +Commander looks after parsing the arguments into options and command-arguments, +displays usage errors for problems, and implements a help system. + +Commander is strict and displays an error for unrecognised options. +The two most used option types are a boolean option, and an option which takes its value from the following argument. + +Example file: [split.js](./examples/split.js) + +```js +const { program } = require('commander'); + +program + .option('--first') + .option('-s, --separator <char>') + .argument('<string>'); + +program.parse(); + +const options = program.opts(); +const limit = options.first ? 1 : undefined; +console.log(program.args[0].split(options.separator, limit)); +``` + +```console +$ node split.js -s / --fits a/b/c +error: unknown option '--fits' +(Did you mean --first?) +$ node split.js -s / --first a/b/c +[ 'a' ] +``` + +Here is a more complete program using a subcommand and with descriptions for the help. In a multi-command program, you have an action handler for each command (or stand-alone executables for the commands). + +Example file: [string-util.js](./examples/string-util.js) + +```js +const { Command } = require('commander'); +const program = new Command(); + +program + .name('string-util') + .description('CLI to some JavaScript string utilities') + .version('0.8.0'); + +program.command('split') + .description('Split a string into substrings and display as an array') + .argument('<string>', 'string to split') + .option('--first', 'display just the first substring') + .option('-s, --separator <char>', 'separator character', ',') + .action((str, options) => { + const limit = options.first ? 1 : undefined; + console.log(str.split(options.separator, limit)); + }); + +program.parse(); +``` + +```console +$ node string-util.js help split +Usage: string-util split [options] <string> + +Split a string into substrings and display as an array. + +Arguments: + string string to split + +Options: + --first display just the first substring + -s, --separator <char> separator character (default: ",") + -h, --help display help for command + +$ node string-util.js split --separator=/ a/b/c +[ 'a', 'b', 'c' ] +``` + +More samples can be found in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory. + +## Declaring _program_ variable + +Commander exports a global object which is convenient for quick programs. +This is used in the examples in this README for brevity. + +```js +// CommonJS (.cjs) +const { program } = require('commander'); +``` + +For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local `Command` object to use. + +```js +// CommonJS (.cjs) +const { Command } = require('commander'); +const program = new Command(); +``` + +```js +// ECMAScript (.mjs) +import { Command } from 'commander'; +const program = new Command(); +``` + +```ts +// TypeScript (.ts) +import { Command } from 'commander'; +const program = new Command(); +``` + +## Options + +Options are defined with the `.option()` method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma, a space, or a vertical bar (`|`). To allow a wider range of short-ish flags than just single characters, you may also have two long options. + +```js +program + .option('-p, --port <number>', 'server port number') + .option('--trace', 'add extra debugging output') + .option('--ws, --workspace <name>', 'use a custom workspace') +``` + +The parsed options can be accessed by calling `.opts()` on a `Command` object, and are passed to the action handler. + +Multi-word options like `--template-engine` are normalized to camelCase option names, resulting in properties such as `program.opts().templateEngine`. + +An option and its option-argument can be separated by a space, or combined into the same argument. The option-argument can follow the short option directly, or follow an `=` for a long option. + +```sh +serve -p 80 +serve -p80 +serve --port 80 +serve --port=80 +``` + +You can use `--` to indicate the end of the options, and any remaining arguments will be used without being interpreted. + +By default, options on the command line are not positional, and can be specified before or after other arguments. + +There are additional related routines for when `.opts()` is not enough: + +- `.optsWithGlobals()` returns merged local and global option values +- `.getOptionValue()` and `.setOptionValue()` work with a single option value +- `.getOptionValueSource()` and `.setOptionValueWithSource()` include where the option value came from + +### Common option types, boolean and value + +The two most used option types are a boolean option, and an option which takes its value +from the following argument (declared with angle brackets like `--expect <value>`). Both are `undefined` unless specified on command line. + +Example file: [options-common.js](./examples/options-common.js) + +```js +program + .option('-d, --debug', 'output extra debugging') + .option('-s, --small', 'small pizza size') + .option('-p, --pizza-type <type>', 'flavour of pizza'); + +program.parse(process.argv); + +const options = program.opts(); +if (options.debug) console.log(options); +console.log('pizza details:'); +if (options.small) console.log('- small pizza size'); +if (options.pizzaType) console.log(`- ${options.pizzaType}`); +``` + +```console +$ pizza-options -p +error: option '-p, --pizza-type <type>' argument missing +$ pizza-options -d -s -p vegetarian +{ debug: true, small: true, pizzaType: 'vegetarian' } +pizza details: +- small pizza size +- vegetarian +$ pizza-options --pizza-type=cheese +pizza details: +- cheese +``` + +Multiple boolean short options may be combined following the dash, and may be followed by a single short option taking a value. +For example, `-d -s -p cheese` may be written as `-ds -p cheese` or even `-dsp cheese`. + +Options with an expected option-argument are greedy and will consume the following argument whatever the value. +So `--id -xyz` reads `-xyz` as the option-argument. + +`program.parse(arguments)` processes the arguments, leaving any args not consumed by the program options in the `program.args` array. The parameter is optional and defaults to `process.argv`. + +### Default option value + +You can specify a default value for an option. + +Example file: [options-defaults.js](./examples/options-defaults.js) + +```js +program + .option('-c, --cheese <type>', 'add the specified type of cheese', 'blue'); + +program.parse(); + +console.log(`cheese: ${program.opts().cheese}`); +``` + +```console +$ pizza-options +cheese: blue +$ pizza-options --cheese stilton +cheese: stilton +``` + +### Other option types, negatable boolean and boolean|value + +You can define a boolean option long name with a leading `no-` to set the option value to `false` when used. +Defined alone, this also makes the option `true` by default. + +If you define `--foo` first, adding `--no-foo` does not change the default value from what it would +otherwise be. + +Example file: [options-negatable.js](./examples/options-negatable.js) + +```js +program + .option('--no-sauce', 'Remove sauce') + .option('--cheese <flavour>', 'cheese flavour', 'mozzarella') + .option('--no-cheese', 'plain with no cheese') + .parse(); + +const options = program.opts(); +const sauceStr = options.sauce ? 'sauce' : 'no sauce'; +const cheeseStr = (options.cheese === false) ? 'no cheese' : `${options.cheese} cheese`; +console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); +``` + +```console +$ pizza-options +You ordered a pizza with sauce and mozzarella cheese +$ pizza-options --sauce +error: unknown option '--sauce' +$ pizza-options --cheese=blue +You ordered a pizza with sauce and blue cheese +$ pizza-options --no-sauce --no-cheese +You ordered a pizza with no sauce and no cheese +``` + +You can specify an option which may be used as a boolean option but may optionally take an option-argument +(declared with square brackets, like `--optional [value]`). + +Example file: [options-boolean-or-value.js](./examples/options-boolean-or-value.js) + +```js +program + .option('-c, --cheese [type]', 'Add cheese with optional type'); + +program.parse(process.argv); + +const options = program.opts(); +if (options.cheese === undefined) console.log('no cheese'); +else if (options.cheese === true) console.log('add cheese'); +else console.log(`add cheese type ${options.cheese}`); +``` + +```console +$ pizza-options +no cheese +$ pizza-options --cheese +add cheese +$ pizza-options --cheese mozzarella +add cheese type mozzarella +``` + +Options with an optional option-argument are not greedy and will ignore arguments starting with a dash. +So `id` behaves as a boolean option for `--id -ABCD`, but you can use a combined form if needed like `--id=-ABCD`. +Negative numbers are special and are accepted as an option-argument. + +For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-in-depth.md). + +### Required option + +You may specify a required (mandatory) option using `.requiredOption()`. The option must have a value after parsing, usually specified on the command line, or perhaps from a default value (e.g., from environment). + +The method is otherwise the same as `.option()` in format, taking flags and description, and optional default value or custom processing. + +Example file: [options-required.js](./examples/options-required.js) + +```js +program + .requiredOption('-c, --cheese <type>', 'pizza must have cheese'); + +program.parse(); +``` + +```console +$ pizza +error: required option '-c, --cheese <type>' not specified +``` + +### Variadic option + +You may make an option variadic by appending `...` to the value placeholder when declaring the option. On the command line you +can then specify multiple option-arguments, and the parsed option value will be an array. The extra arguments +are read until the first argument starting with a dash. The special argument `--` stops option processing entirely. If a value +is specified in the same argument as the option, then no further values are read. + +Example file: [options-variadic.js](./examples/options-variadic.js) + +```js +program + .option('-n, --number <numbers...>', 'specify numbers') + .option('-l, --letter [letters...]', 'specify letters'); + +program.parse(); + +console.log('Options: ', program.opts()); +console.log('Remaining arguments: ', program.args); +``` + +```console +$ collect -n 1 2 3 --letter a b c +Options: { number: [ '1', '2', '3' ], letter: [ 'a', 'b', 'c' ] } +Remaining arguments: [] +$ collect --letter=A -n80 operand +Options: { number: [ '80' ], letter: [ 'A' ] } +Remaining arguments: [ 'operand' ] +$ collect --letter -n 1 -n 2 3 -- operand +Options: { number: [ '1', '2', '3' ], letter: true } +Remaining arguments: [ 'operand' ] +``` + +For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-in-depth.md). + +### Version option + +The optional `.version()` method adds handling for displaying the command version. The default option flags are `-V` and `--version`. When used, the command prints the version number and exits. + +```js +program.version('0.0.1'); +``` + +```console +$ ./examples/pizza -V +0.0.1 +``` + +You may change the flags and description by passing additional parameters to the `.version()` method, using +the same syntax for flags as the `.option()` method. + +```js +program.version('0.0.1', '-v, --vers', 'output the current version'); +``` + +### More configuration + +You can add most options using the `.option()` method, but there are some additional features available +by constructing an `Option` explicitly for less common cases. + +Example files: [options-extra.js](./examples/options-extra.js), [options-env.js](./examples/options-env.js), [options-conflicts.js](./examples/options-conflicts.js), [options-implies.js](./examples/options-implies.js) + +```js +program + .addOption(new Option('-s, --secret').hideHelp()) + .addOption(new Option('-t, --timeout <delay>', 'timeout in seconds').default(60, 'one minute')) + .addOption(new Option('-d, --drink <size>', 'drink size').choices(['small', 'medium', 'large'])) + .addOption(new Option('-p, --port <number>', 'port number').env('PORT')) + .addOption(new Option('--donate [amount]', 'optional donation in dollars').preset('20').argParser(parseFloat)) + .addOption(new Option('--disable-server', 'disables the server').conflicts('port')) + .addOption(new Option('--free-drink', 'small drink included free ').implies({ drink: 'small' })); +``` + +```console +$ extra --help +Usage: help [options] + +Options: + -t, --timeout <delay> timeout in seconds (default: one minute) + -d, --drink <size> drink cup size (choices: "small", "medium", "large") + -p, --port <number> port number (env: PORT) + --donate [amount] optional donation in dollars (preset: "20") + --disable-server disables the server + --free-drink small drink included free + -h, --help display help for command + +$ extra --drink huge +error: option '-d, --drink <size>' argument 'huge' is invalid. Allowed choices are small, medium, large. + +$ PORT=80 extra --donate --free-drink +Options: { timeout: 60, donate: 20, port: '80', freeDrink: true, drink: 'small' } + +$ extra --disable-server --port 8000 +error: option '--disable-server' cannot be used with option '-p, --port <number>' +``` + +Specify a required (mandatory) option using the `Option` method `.makeOptionMandatory()`. This matches the `Command` method [`.requiredOption()`](#required-option). + +### Custom option processing + +You may specify a function to do custom processing of option-arguments. The callback function receives two parameters, +the user specified option-argument and the previous value for the option. It returns the new value for the option. + +This allows you to coerce the option-argument to the desired type, or accumulate values, or do entirely custom processing. + +You can optionally specify the default/starting value for the option after the function parameter. + +Example file: [options-custom-processing.js](./examples/options-custom-processing.js) + +```js +function myParseInt(value, dummyPrevious) { + // parseInt takes a string and a radix + const parsedValue = parseInt(value, 10); + if (isNaN(parsedValue)) { + throw new commander.InvalidArgumentError('Not a number.'); + } + return parsedValue; +} + +function increaseVerbosity(dummyValue, previous) { + return previous + 1; +} + +function collect(value, previous) { + return previous.concat([value]); +} + +function commaSeparatedList(value, dummyPrevious) { + return value.split(','); +} + +program + .option('-f, --float <number>', 'float argument', parseFloat) + .option('-i, --integer <number>', 'integer argument', myParseInt) + .option('-v, --verbose', 'verbosity that can be increased', increaseVerbosity, 0) + .option('-c, --collect <value>', 'repeatable value', collect, []) + .option('-l, --list <items>', 'comma separated list', commaSeparatedList) +; + +program.parse(); + +const options = program.opts(); +if (options.float !== undefined) console.log(`float: ${options.float}`); +if (options.integer !== undefined) console.log(`integer: ${options.integer}`); +if (options.verbose > 0) console.log(`verbosity: ${options.verbose}`); +if (options.collect.length > 0) console.log(options.collect); +if (options.list !== undefined) console.log(options.list); +``` + +```console +$ custom -f 1e2 +float: 100 +$ custom --integer 2 +integer: 2 +$ custom -v -v -v +verbose: 3 +$ custom -c a -c b -c c +[ 'a', 'b', 'c' ] +$ custom --list x,y,z +[ 'x', 'y', 'z' ] +``` + +## Commands + +You can specify (sub)commands using `.command()` or `.addCommand()`. There are two ways these can be implemented: using an `.action()` handler attached to the command; or as a stand-alone executable file. (More detail about this later.) + +Subcommands may be nested. Example file: [nestedCommands.js](./examples/nestedCommands.js). + +In the first parameter to `.command()` you specify the command name. You may append the command-arguments after the command name, or specify them separately using `.argument()`. The arguments may be `<required>` or `[optional]`, and the last argument may also be `variadic...`. + +You can use `.addCommand()` to add an already configured subcommand to the program. + +For example: + +```js +// Command implemented using action handler (description is supplied separately to `.command`) +// Returns new command for configuring. +program + .command('clone <source> [destination]') + .description('clone a repository into a newly created directory') + .action((source, destination) => { + console.log('clone command called'); + }); + +// Command implemented using stand-alone executable file, indicated by adding description as second parameter to `.command`. +// Returns `this` for adding more commands. +program + .command('start <service>', 'start named service') + .command('stop [service]', 'stop named service, or all if no name supplied'); + +// Command prepared separately. +// Returns `this` for adding more commands. +program + .addCommand(build.makeBuildCommand()); +``` + +Configuration options can be passed with the call to `.command()` and `.addCommand()`. Specifying `hidden: true` will +remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other +subcommand is specified. (Example file: [defaultCommand.js](./examples/defaultCommand.js).) + +You can add alternative names for a command with `.alias()`. (Example file: [alias.js](./examples/alias.js).) + +`.command()` automatically copies the inherited settings from the parent command to the newly created subcommand. This is only done during creation; any later setting changes to the parent are not inherited. + +For safety, `.addCommand()` does not automatically copy the inherited settings from the parent command. There is a helper routine `.copyInheritedSettings()` for copying the settings when they are wanted. + +### Command-arguments + +For subcommands, you can specify the argument syntax in the call to `.command()` (as shown above). This +is the only method usable for subcommands implemented using a stand-alone executable. + +Alternatively, you can instead use the following method. To configure a command, you can use `.argument()` to specify each expected command-argument. +You supply the argument name and an optional description. The argument may be `<required>` or `[optional]`. +You can specify a default value for an optional command-argument. + +Example file: [argument.js](./examples/argument.js) + +```js +program + .version('0.1.0') + .argument('<username>', 'user to login') + .argument('[password]', 'password for user, if required', 'no password given') + .action((username, password) => { + console.log('username:', username); + console.log('password:', password); + }); +``` + +The last argument of a command can be variadic, and _only_ the last argument. To make an argument variadic, simply +append `...` to the argument name. + +A variadic argument is passed to the action handler as an array. + +```js +program + .version('0.1.0') + .command('rmdir') + .argument('<dirs...>') + .action(function (dirs) { + dirs.forEach((dir) => { + console.log('rmdir %s', dir); + }); + }); +``` + +There is a convenience method to add multiple arguments at once, but without descriptions: + +```js +program + .arguments('<username> <password>'); +``` + +#### More configuration + +There are some additional features available by constructing an `Argument` explicitly for less common cases. + +Example file: [arguments-extra.js](./examples/arguments-extra.js) + +```js +program + .addArgument(new commander.Argument('<drink-size>', 'drink cup size').choices(['small', 'medium', 'large'])) + .addArgument(new commander.Argument('[timeout]', 'timeout in seconds').default(60, 'one minute')) +``` + +#### Custom argument processing + +You may specify a function to do custom processing of command-arguments (like for option-arguments). +The callback function receives two parameters, the user specified command-argument and the previous value for the argument. +It returns the new value for the argument. + +The processed argument values are passed to the action handler, and saved as `.processedArgs`. + +You can optionally specify the default/starting value for the argument after the function parameter. + +Example file: [arguments-custom-processing.js](./examples/arguments-custom-processing.js) + +```js +program + .command('add') + .argument('<first>', 'integer argument', myParseInt) + .argument('[second]', 'integer argument', myParseInt, 1000) + .action((first, second) => { + console.log(`${first} + ${second} = ${first + second}`); + }) +; +``` + +### Action handler + +The action handler gets passed a parameter for each command-argument you declared, and two additional parameters +which are the parsed options and the command object itself. + +Example file: [thank.js](./examples/thank.js) + +```js +program + .argument('<name>') + .option('-t, --title <honorific>', 'title to use before name') + .option('-d, --debug', 'display some debugging') + .action((name, options, command) => { + if (options.debug) { + console.error('Called %s with options %o', command.name(), options); + } + const title = options.title ? `${options.title} ` : ''; + console.log(`Thank-you ${title}${name}`); + }); +``` + +If you prefer, you can work with the command directly and skip declaring the parameters for the action handler. If you use a function expression (but not an arrow function), the `this` keyword is set to the running command. + +Example file: [action-this.js](./examples/action-this.js) + +```js +program + .command('serve') + .argument('<script>') + .option('-p, --port <number>', 'port number', 80) + .action(function() { + console.error('Run script %s on port %s', this.args[0], this.opts().port); + }); +``` + +You may supply an `async` action handler, in which case you call `.parseAsync()` rather than `.parse()`. + +```js +async function run() { /* code goes here */ } + +async function main() { + program + .command('run') + .action(run); + await program.parseAsync(process.argv); +} +``` + +A command's options and arguments on the command line are validated when the command is used. Any unknown options, missing arguments, or excess arguments will be reported as an error. + +You can suppress the unknown option check with `.allowUnknownOption()`. You can suppress the excess arguments check with `.allowExcessArguments()`. + +### Stand-alone executable (sub)commands + +When `.command()` is invoked with a description argument, this tells Commander that you're going to use stand-alone executables for subcommands. +Commander will search the files in the directory of the entry script for a file with the name combination `command-subcommand` (like `pm-install` or `pm-search` in the example below). The search includes trying common file extensions, like `.js`. +You may specify a custom name (and path) with the `executableFile` configuration option. +You may specify a custom search directory for subcommands with `.executableDir()`. + +You handle the options for an executable (sub)command in the executable, and don't declare them at the top-level. + +Example file: [pm](./examples/pm) + +```js +program + .name('pm') + .version('0.1.0') + .command('install [package-names...]', 'install one or more packages') + .command('search [query]', 'search with optional query') + .command('update', 'update installed packages', { executableFile: 'myUpdateSubCommand' }) + .command('list', 'list packages installed', { isDefault: true }); + +program.parse(process.argv); +``` + +If the program is designed to be installed globally, make sure the executables have proper modes, like `755`. + +### Life cycle hooks + +You can add callback hooks to a command for life cycle events. + +Example file: [hook.js](./examples/hook.js) + +```js +program + .option('-t, --trace', 'display trace statements for commands') + .hook('preAction', (thisCommand, actionCommand) => { + if (thisCommand.opts().trace) { + console.log(`About to call action handler for subcommand: ${actionCommand.name()}`); + console.log('arguments: %O', actionCommand.args); + console.log('options: %o', actionCommand.opts()); + } + }); +``` + +The callback hook can be `async`, in which case you call `.parseAsync()` rather than `.parse()`. You can add multiple hooks per event. + +The supported events are: + +| event name | when hook called | callback parameters | +| :-- | :-- | :-- | +| `preAction`, `postAction` | before/after action handler for this command and its nested subcommands | `(thisCommand, actionCommand)` | +| `preSubcommand` | before parsing direct subcommand | `(thisCommand, subcommand)` | + +For an overview of the life cycle events, see [parsing life cycle and hooks](./docs/parsing-and-hooks.md). + +## Automated help + +The help information is auto-generated based on the information commander already knows about your program. The default +help option is `-h,--help`. + +Example file: [pizza](./examples/pizza) + +```console +$ node ./examples/pizza --help +Usage: pizza [options] + +An application for pizza ordering + +Options: + -p, --peppers Add peppers + -c, --cheese <type> Add the specified type of cheese (default: "marble") + -C, --no-cheese You do not want any cheese + -h, --help display help for command +``` + +A `help` command is added by default if your command has subcommands. It can be used alone, or with a subcommand name to show +further help for the subcommand. These are effectively the same if the `shell` program has implicit help: + +```sh +shell help +shell --help + +shell help spawn +shell spawn --help +``` + +Long descriptions are wrapped to fit the available width. (However, a description that includes a line-break followed by whitespace is assumed to be pre-formatted and not wrapped.) + +### Custom help + +You can add extra text to be displayed along with the built-in help. + +Example file: [custom-help](./examples/custom-help) + +```js +program + .option('-f, --foo', 'enable some foo'); + +program.addHelpText('after', ` + +Example call: + $ custom-help --help`); +``` + +Yields the following help output: + +```Text +Usage: custom-help [options] + +Options: + -f, --foo enable some foo + -h, --help display help for command + +Example call: + $ custom-help --help +``` + +The positions in order displayed are: + +- `beforeAll`: add to the program for a global banner or header +- `before`: display extra information before built-in help +- `after`: display extra information after built-in help +- `afterAll`: add to the program for a global footer (epilog) + +The positions "beforeAll" and "afterAll" apply to the command and all its subcommands. + +The second parameter can be a string, or a function returning a string. The function is passed a context object for your convenience. The properties are: + +- `error`: a boolean for whether the help is being displayed due to a usage error +- `command`: the `Command` which is displaying the help + +### Display help after errors + +The default behaviour for usage errors is to just display a short error message. +You can change the behaviour to show the full help or a custom help message after an error. + +```js +program.showHelpAfterError(); +// or +program.showHelpAfterError('(add --help for additional information)'); +``` + +```console +$ pizza --unknown +error: unknown option '--unknown' +(add --help for additional information) +``` + +The default behaviour is to suggest correct spelling after an error for an unknown command or option. You +can disable this. + +```js +program.showSuggestionAfterError(false); +``` + +```console +$ pizza --hepl +error: unknown option '--hepl' +(Did you mean --help?) +``` + +### Display help from code + +`.help()`: display help information and exit immediately. You can optionally pass `{ error: true }` to display on stderr and exit with an error status. + +`.outputHelp()`: output help information without exiting. You can optionally pass `{ error: true }` to display on stderr. + +`.helpInformation()`: get the built-in command help information as a string for processing or displaying yourself. + +### .name + +The command name appears in the help, and is also used for locating stand-alone executable subcommands. + +You may specify the program name using `.name()` or in the `Command` constructor. For the program, Commander will +fall back to using the script name from the full arguments passed into `.parse()`. However, the script name varies +depending on how your program is launched, so you may wish to specify it explicitly. + +```js +program.name('pizza'); +const pm = new Command('pm'); +``` + +Subcommands get a name when specified using `.command()`. If you create the subcommand yourself to use with `.addCommand()`, +then set the name using `.name()` or in the `Command` constructor. + +### .usage + +This allows you to customise the usage description in the first line of the help. Given: + +```js +program + .name("my-command") + .usage("[global options] command") +``` + +The help will start with: + +```Text +Usage: my-command [global options] command +``` + +### .description and .summary + +The description appears in the help for the command. You can optionally supply a shorter +summary to use when listed as a subcommand of the program. + +```js +program + .command("duplicate") + .summary("make a copy") + .description(`Make a copy of the current project. +This may require additional disk space. + `); +``` + +### .helpOption(flags, description) + +By default, every command has a help option. You may change the default help flags and description. Pass `false` to disable the built-in help option. + +```js +program + .helpOption('-e, --HELP', 'read more information'); +``` + +Alternatively, use `.addHelpOption()` to add an option you construct yourself. + +### .helpCommand() + +A help command is added by default if your command has subcommands. You can explicitly turn the implicit help command on or off with `.helpCommand(true)` and `.helpCommand(false)`. + +You can both turn on and customise the help command by supplying the name and description: + +```js +program.helpCommand('assist [command]', 'show assistance'); +``` + +Alternatively, use `.addHelpCommand()` to add a command you construct yourself. + +### Help Groups + +The help by default lists options under the the heading `Options:` and commands under `Commands:`. You can create your own groups +with different headings. + +- The high-level way is to set the desired group heading while adding the options and commands, using `.optionsGroup()` and `.commandsGroup()`. +- The low-level way is using `.helpGroup()` on an individual `Option` or `Command`. + +Example file: [help-groups.js](./examples/help-groups.js) + +### More configuration + +The built-in help is formatted using the `Help` class. +You can configure the help by modifying data properties and methods using `.configureHelp()`, or by subclassing `Help` using `.createHelp()` . + +Simple properties include `sortSubcommands`, `sortOptions`, and `showGlobalOptions`. You can add color using the style methods like `.styleTitle()`. + +For more detail and examples of changing the displayed text, color, and layout, see: [Help in Depth](./docs/help-in-depth.md). + +## Custom event listeners + +You can execute custom actions by listening to `command` and `option` events. + +```js +program.on('option:verbose', function () { + process.env.VERBOSE = this.opts().verbose; +}); +``` + +## Bits and pieces + +### .parse() and .parseAsync() + +Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode! + +Or, call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`: + +- `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that +- `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged +- `'user'`: just user arguments + +For example: + +```js +program.parse(); // parse process.argv and auto-detect electron and special node flags +program.parse(process.argv); // assume argv[0] is app and argv[1] is script +program.parse(['--port', '80'], { from: 'user' }); // just user supplied arguments, nothing special about argv[0] +``` + +Use `.parseAsync()` instead of `.parse()` if any of your action handlers are async. + +### Parsing Configuration + +If the default parsing does not suit your needs, there are some behaviours to support other usage patterns. + +By default, program options are recognised before and after subcommands. To only look for program options before subcommands, use `.enablePositionalOptions()`. This lets you use +an option for a different purpose in subcommands. + +Example file: [positional-options.js](./examples/positional-options.js) + +With positional options, the `-b` is a program option in the first line and a subcommand option in the second line: + +```sh +program -b subcommand +program subcommand -b +``` + +By default, options are recognised before and after command-arguments. To only process options that come +before the command-arguments, use `.passThroughOptions()`. This lets you pass the arguments and following options through to another program +without needing to use `--` to end the option processing. +To use pass through options in a subcommand, the program needs to enable positional options. + +Example file: [pass-through-options.js](./examples/pass-through-options.js) + +With pass through options, the `--port=80` is a program option in the first line and passed through as a command-argument in the second line: + +```sh +program --port=80 arg +program arg --port=80 +``` + +By default, the option processing shows an error for an unknown option. To have an unknown option treated as an ordinary command-argument and continue looking for options, use `.allowUnknownOption()`. This lets you mix known and unknown options. + +By default, the argument processing displays an error for more command-arguments than expected. +To suppress the error for excess arguments, use `.allowExcessArguments()`. + +### Legacy options as properties + +Before Commander 7, the option values were stored as properties on the command. +This was convenient to code, but the downside was possible clashes with +existing properties of `Command`. + +You can revert to the old behaviour to run unmodified legacy code by using `.storeOptionsAsProperties()`. + +```js +program + .storeOptionsAsProperties() + .option('-d, --debug') + .action((commandAndOptions) => { + if (commandAndOptions.debug) { + console.error(`Called ${commandAndOptions.name()}`); + } + }); +``` + +### TypeScript + +**extra-typings:** There is an optional project to infer extra type information from the option and argument definitions. +This adds strong typing to the options returned by `.opts()` and the parameters to `.action()`. +For more, see the repo: [commander-js/extra-typings](https://github.com/commander-js/extra-typings). + +```ts +import { Command } from '@commander-js/extra-typings'; +``` + +**ts-node:** If you use `ts-node` and stand-alone executable subcommands written as `.ts` files, you need to call your program through node to get the subcommands called correctly, e.g.: + +```sh +node -r ts-node/register pm.ts +``` + +### createCommand() + +This factory function creates a new command. It is exported and may be used instead of using `new`, like: + +```js +const { createCommand } = require('commander'); +const program = createCommand(); +``` + +`createCommand()` is also a method of the `Command` object, and creates a new command rather than a subcommand. This gets used internally +when creating subcommands using `.command()`, and you may override it to +customise the new subcommand. Example file: [custom-command-class.js](./examples/custom-command-class.js). + +### Node options such as `--harmony` + +You can enable `--harmony` option in two ways: + +- Use `#! /usr/bin/env node --harmony` in the subcommands scripts. (Note: Windows does not support this pattern.) +- Use the `--harmony` option when calling the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning subcommand processes. + +### Debugging stand-alone executable subcommands + +An executable subcommand is launched as a separate child process. + +If you are using the node inspector for [debugging](https://nodejs.org/en/docs/guides/debugging-getting-started/) executable subcommands using `node --inspect` et al., +the inspector port is incremented by 1 for the spawned subcommand. + +If you are using VSCode to debug executable subcommands you need to set the `"autoAttachChildProcesses": true` flag in your `launch.json` configuration. + +### npm run-script + +By default, when you call your program using `run-script`, `npm` will parse any options on the command-line and they will not reach your program. Use + `--` to stop the npm option parsing and pass through all the arguments. + + The synopsis for [`npm run-script`](https://docs.npmjs.com/cli/v9/commands/npm-run-script) explicitly shows the `--` for this reason: + +```console +npm run-script <command> [-- <args>] +``` + +### Display error + +This routine is available to invoke the Commander error handling for your own error conditions. (See also the next section about exit handling.) + +As well as the error message, you can optionally specify the `exitCode` (used with `process.exit()`) +and `code` (used with `CommanderError`). + +```js +program.error('Password must be longer than four characters'); +program.error('Custom processing has failed', { exitCode: 2, code: 'my.custom.error' }); +``` + +### Override exit and output handling + +By default, Commander calls `process.exit()` when it detects errors, or after displaying the help or version. You can override +this behaviour and optionally supply a callback. The default override throws a `CommanderError`. + +The override callback is passed a `CommanderError` with the properties: +- `exitCode`: number +- `code`: string +- `message`: string + +Commander expects the callback to terminate the normal program flow, and will call `process.exit()` if the callback returns. +The normal display of error messages or version or help is not affected by the override, which is called after the display. + +```js +program.exitOverride(); + +try { + program.parse(process.argv); +} catch (err) { + // custom processing... +} +``` + +By default, Commander is configured for a command-line application and writes to stdout and stderr. +You can modify this behaviour for custom applications. In addition, you can modify the display of error messages. + +Example file: [configure-output.js](./examples/configure-output.js) + +```js +function errorColor(str) { + // Add ANSI escape codes to display text in red. + return `\x1b[31m${str}\x1b[0m`; +} + +program + .configureOutput({ + // Visibly override write routines as example! + writeOut: (str) => process.stdout.write(`[OUT] ${str}`), + writeErr: (str) => process.stdout.write(`[ERR] ${str}`), + // Highlight errors in color. + outputError: (str, write) => write(errorColor(str)) + }); +``` + +### Additional documentation + +There is more information available about: + +- [deprecated](./docs/deprecated.md) features still supported for backwards compatibility +- [Help in Depth](./docs/help-in-depth.md) configuring help output +- [options taking varying arguments](./docs/options-in-depth.md) +- [parsing life cycle and hooks](./docs/parsing-and-hooks.md) +- [Release Policy](./docs/release-policy.md) + +## Support + +The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v20. + +Older major versions of Commander receive security updates for 12 months. For more see: [Release Policy](./docs/release-policy.md). + +The main forum for free and community support is the project [Issues](https://github.com/tj/commander.js/issues) on GitHub. + +### Commander for enterprise + +Available as part of the Tidelift Subscription + +The maintainers of Commander and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-commander?utm_source=npm-commander&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/plugins/screenrig/cli/node_modules/commander/esm.mjs b/plugins/screenrig/cli/node_modules/commander/esm.mjs new file mode 100644 index 00000000..796ec3a5 --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/esm.mjs @@ -0,0 +1,16 @@ +import commander from './index.js'; + +// wrapper to provide named exports for ESM. +export const { + program, + createCommand, + createArgument, + createOption, + CommanderError, + InvalidArgumentError, + InvalidOptionArgumentError, // deprecated old name + Command, + Argument, + Option, + Help, +} = commander; diff --git a/plugins/screenrig/cli/node_modules/commander/index.js b/plugins/screenrig/cli/node_modules/commander/index.js new file mode 100644 index 00000000..c30bb21a --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/index.js @@ -0,0 +1,24 @@ +const { Argument } = require('./lib/argument.js'); +const { Command } = require('./lib/command.js'); +const { CommanderError, InvalidArgumentError } = require('./lib/error.js'); +const { Help } = require('./lib/help.js'); +const { Option } = require('./lib/option.js'); + +exports.program = new Command(); + +exports.createCommand = (name) => new Command(name); +exports.createOption = (flags, description) => new Option(flags, description); +exports.createArgument = (name, description) => new Argument(name, description); + +/** + * Expose classes + */ + +exports.Command = Command; +exports.Option = Option; +exports.Argument = Argument; +exports.Help = Help; + +exports.CommanderError = CommanderError; +exports.InvalidArgumentError = InvalidArgumentError; +exports.InvalidOptionArgumentError = InvalidArgumentError; // Deprecated diff --git a/plugins/screenrig/cli/node_modules/commander/lib/argument.js b/plugins/screenrig/cli/node_modules/commander/lib/argument.js new file mode 100644 index 00000000..2c2f840e --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/lib/argument.js @@ -0,0 +1,150 @@ +const { InvalidArgumentError } = require('./error.js'); + +class Argument { + /** + * Initialize a new command argument with the given name and description. + * The default is that the argument is required, and you can explicitly + * indicate this with <> around the name. Put [] around the name for an optional argument. + * + * @param {string} name + * @param {string} [description] + */ + + constructor(name, description) { + this.description = description || ''; + this.variadic = false; + this.parseArg = undefined; + this.defaultValue = undefined; + this.defaultValueDescription = undefined; + this.argChoices = undefined; + + switch (name[0]) { + case '<': // e.g. <required> + this.required = true; + this._name = name.slice(1, -1); + break; + case '[': // e.g. [optional] + this.required = false; + this._name = name.slice(1, -1); + break; + default: + this.required = true; + this._name = name; + break; + } + + if (this._name.endsWith('...')) { + this.variadic = true; + this._name = this._name.slice(0, -3); + } + } + + /** + * Return argument name. + * + * @return {string} + */ + + name() { + return this._name; + } + + /** + * @package + */ + + _collectValue(value, previous) { + if (previous === this.defaultValue || !Array.isArray(previous)) { + return [value]; + } + + previous.push(value); + return previous; + } + + /** + * Set the default value, and optionally supply the description to be displayed in the help. + * + * @param {*} value + * @param {string} [description] + * @return {Argument} + */ + + default(value, description) { + this.defaultValue = value; + this.defaultValueDescription = description; + return this; + } + + /** + * Set the custom handler for processing CLI command arguments into argument values. + * + * @param {Function} [fn] + * @return {Argument} + */ + + argParser(fn) { + this.parseArg = fn; + return this; + } + + /** + * Only allow argument value to be one of choices. + * + * @param {string[]} values + * @return {Argument} + */ + + choices(values) { + this.argChoices = values.slice(); + this.parseArg = (arg, previous) => { + if (!this.argChoices.includes(arg)) { + throw new InvalidArgumentError( + `Allowed choices are ${this.argChoices.join(', ')}.`, + ); + } + if (this.variadic) { + return this._collectValue(arg, previous); + } + return arg; + }; + return this; + } + + /** + * Make argument required. + * + * @returns {Argument} + */ + argRequired() { + this.required = true; + return this; + } + + /** + * Make argument optional. + * + * @returns {Argument} + */ + argOptional() { + this.required = false; + return this; + } +} + +/** + * Takes an argument and returns its human readable equivalent for help usage. + * + * @param {Argument} arg + * @return {string} + * @private + */ + +function humanReadableArgName(arg) { + const nameOutput = arg.name() + (arg.variadic === true ? '...' : ''); + + return arg.required ? '<' + nameOutput + '>' : '[' + nameOutput + ']'; +} + +exports.Argument = Argument; +exports.humanReadableArgName = humanReadableArgName; diff --git a/plugins/screenrig/cli/node_modules/commander/lib/command.js b/plugins/screenrig/cli/node_modules/commander/lib/command.js new file mode 100644 index 00000000..f1cdc429 --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/lib/command.js @@ -0,0 +1,2777 @@ +const EventEmitter = require('node:events').EventEmitter; +const childProcess = require('node:child_process'); +const path = require('node:path'); +const fs = require('node:fs'); +const process = require('node:process'); + +const { Argument, humanReadableArgName } = require('./argument.js'); +const { CommanderError } = require('./error.js'); +const { Help, stripColor } = require('./help.js'); +const { Option, DualOptions } = require('./option.js'); +const { suggestSimilar } = require('./suggestSimilar'); + +class Command extends EventEmitter { + /** + * Initialize a new `Command`. + * + * @param {string} [name] + */ + + constructor(name) { + super(); + /** @type {Command[]} */ + this.commands = []; + /** @type {Option[]} */ + this.options = []; + this.parent = null; + this._allowUnknownOption = false; + this._allowExcessArguments = false; + /** @type {Argument[]} */ + this.registeredArguments = []; + this._args = this.registeredArguments; // deprecated old name + /** @type {string[]} */ + this.args = []; // cli args with options removed + this.rawArgs = []; + this.processedArgs = []; // like .args but after custom processing and collecting variadic + this._scriptPath = null; + this._name = name || ''; + this._optionValues = {}; + this._optionValueSources = {}; // default, env, cli etc + this._storeOptionsAsProperties = false; + this._actionHandler = null; + this._executableHandler = false; + this._executableFile = null; // custom name for executable + this._executableDir = null; // custom search directory for subcommands + this._defaultCommandName = null; + this._exitCallback = null; + this._aliases = []; + this._combineFlagAndOptionalValue = true; + this._description = ''; + this._summary = ''; + this._argsDescription = undefined; // legacy + this._enablePositionalOptions = false; + this._passThroughOptions = false; + this._lifeCycleHooks = {}; // a hash of arrays + /** @type {(boolean | string)} */ + this._showHelpAfterError = false; + this._showSuggestionAfterError = true; + this._savedState = null; // used in save/restoreStateBeforeParse + + // see configureOutput() for docs + this._outputConfiguration = { + writeOut: (str) => process.stdout.write(str), + writeErr: (str) => process.stderr.write(str), + outputError: (str, write) => write(str), + getOutHelpWidth: () => + process.stdout.isTTY ? process.stdout.columns : undefined, + getErrHelpWidth: () => + process.stderr.isTTY ? process.stderr.columns : undefined, + getOutHasColors: () => + useColor() ?? (process.stdout.isTTY && process.stdout.hasColors?.()), + getErrHasColors: () => + useColor() ?? (process.stderr.isTTY && process.stderr.hasColors?.()), + stripColor: (str) => stripColor(str), + }; + + this._hidden = false; + /** @type {(Option | null | undefined)} */ + this._helpOption = undefined; // Lazy created on demand. May be null if help option is disabled. + this._addImplicitHelpCommand = undefined; // undecided whether true or false yet, not inherited + /** @type {Command} */ + this._helpCommand = undefined; // lazy initialised, inherited + this._helpConfiguration = {}; + /** @type {string | undefined} */ + this._helpGroupHeading = undefined; // soft initialised when added to parent + /** @type {string | undefined} */ + this._defaultCommandGroup = undefined; + /** @type {string | undefined} */ + this._defaultOptionGroup = undefined; + } + + /** + * Copy settings that are useful to have in common across root command and subcommands. + * + * (Used internally when adding a command using `.command()` so subcommands inherit parent settings.) + * + * @param {Command} sourceCommand + * @return {Command} `this` command for chaining + */ + copyInheritedSettings(sourceCommand) { + this._outputConfiguration = sourceCommand._outputConfiguration; + this._helpOption = sourceCommand._helpOption; + this._helpCommand = sourceCommand._helpCommand; + this._helpConfiguration = sourceCommand._helpConfiguration; + this._exitCallback = sourceCommand._exitCallback; + this._storeOptionsAsProperties = sourceCommand._storeOptionsAsProperties; + this._combineFlagAndOptionalValue = + sourceCommand._combineFlagAndOptionalValue; + this._allowExcessArguments = sourceCommand._allowExcessArguments; + this._enablePositionalOptions = sourceCommand._enablePositionalOptions; + this._showHelpAfterError = sourceCommand._showHelpAfterError; + this._showSuggestionAfterError = sourceCommand._showSuggestionAfterError; + + return this; + } + + /** + * @returns {Command[]} + * @private + */ + + _getCommandAndAncestors() { + const result = []; + // eslint-disable-next-line @typescript-eslint/no-this-alias + for (let command = this; command; command = command.parent) { + result.push(command); + } + return result; + } + + /** + * Define a command. + * + * There are two styles of command: pay attention to where to put the description. + * + * @example + * // Command implemented using action handler (description is supplied separately to `.command`) + * program + * .command('clone <source> [destination]') + * .description('clone a repository into a newly created directory') + * .action((source, destination) => { + * console.log('clone command called'); + * }); + * + * // Command implemented using separate executable file (description is second parameter to `.command`) + * program + * .command('start <service>', 'start named service') + * .command('stop [service]', 'stop named service, or all if no name supplied'); + * + * @param {string} nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...` + * @param {(object | string)} [actionOptsOrExecDesc] - configuration options (for action), or description (for executable) + * @param {object} [execOpts] - configuration options (for executable) + * @return {Command} returns new command for action handler, or `this` for executable command + */ + + command(nameAndArgs, actionOptsOrExecDesc, execOpts) { + let desc = actionOptsOrExecDesc; + let opts = execOpts; + if (typeof desc === 'object' && desc !== null) { + opts = desc; + desc = null; + } + opts = opts || {}; + const [, name, args] = nameAndArgs.match(/([^ ]+) *(.*)/); + + const cmd = this.createCommand(name); + if (desc) { + cmd.description(desc); + cmd._executableHandler = true; + } + if (opts.isDefault) this._defaultCommandName = cmd._name; + cmd._hidden = !!(opts.noHelp || opts.hidden); // noHelp is deprecated old name for hidden + cmd._executableFile = opts.executableFile || null; // Custom name for executable file, set missing to null to match constructor + if (args) cmd.arguments(args); + this._registerCommand(cmd); + cmd.parent = this; + cmd.copyInheritedSettings(this); + + if (desc) return this; + return cmd; + } + + /** + * Factory routine to create a new unattached command. + * + * See .command() for creating an attached subcommand, which uses this routine to + * create the command. You can override createCommand to customise subcommands. + * + * @param {string} [name] + * @return {Command} new command + */ + + createCommand(name) { + return new Command(name); + } + + /** + * You can customise the help with a subclass of Help by overriding createHelp, + * or by overriding Help properties using configureHelp(). + * + * @return {Help} + */ + + createHelp() { + return Object.assign(new Help(), this.configureHelp()); + } + + /** + * You can customise the help by overriding Help properties using configureHelp(), + * or with a subclass of Help by overriding createHelp(). + * + * @param {object} [configuration] - configuration options + * @return {(Command | object)} `this` command for chaining, or stored configuration + */ + + configureHelp(configuration) { + if (configuration === undefined) return this._helpConfiguration; + + this._helpConfiguration = configuration; + return this; + } + + /** + * The default output goes to stdout and stderr. You can customise this for special + * applications. You can also customise the display of errors by overriding outputError. + * + * The configuration properties are all functions: + * + * // change how output being written, defaults to stdout and stderr + * writeOut(str) + * writeErr(str) + * // change how output being written for errors, defaults to writeErr + * outputError(str, write) // used for displaying errors and not used for displaying help + * // specify width for wrapping help + * getOutHelpWidth() + * getErrHelpWidth() + * // color support, currently only used with Help + * getOutHasColors() + * getErrHasColors() + * stripColor() // used to remove ANSI escape codes if output does not have colors + * + * @param {object} [configuration] - configuration options + * @return {(Command | object)} `this` command for chaining, or stored configuration + */ + + configureOutput(configuration) { + if (configuration === undefined) return this._outputConfiguration; + + this._outputConfiguration = { + ...this._outputConfiguration, + ...configuration, + }; + return this; + } + + /** + * Display the help or a custom message after an error occurs. + * + * @param {(boolean|string)} [displayHelp] + * @return {Command} `this` command for chaining + */ + showHelpAfterError(displayHelp = true) { + if (typeof displayHelp !== 'string') displayHelp = !!displayHelp; + this._showHelpAfterError = displayHelp; + return this; + } + + /** + * Display suggestion of similar commands for unknown commands, or options for unknown options. + * + * @param {boolean} [displaySuggestion] + * @return {Command} `this` command for chaining + */ + showSuggestionAfterError(displaySuggestion = true) { + this._showSuggestionAfterError = !!displaySuggestion; + return this; + } + + /** + * Add a prepared subcommand. + * + * See .command() for creating an attached subcommand which inherits settings from its parent. + * + * @param {Command} cmd - new subcommand + * @param {object} [opts] - configuration options + * @return {Command} `this` command for chaining + */ + + addCommand(cmd, opts) { + if (!cmd._name) { + throw new Error(`Command passed to .addCommand() must have a name +- specify the name in Command constructor or using .name()`); + } + + opts = opts || {}; + if (opts.isDefault) this._defaultCommandName = cmd._name; + if (opts.noHelp || opts.hidden) cmd._hidden = true; // modifying passed command due to existing implementation + + this._registerCommand(cmd); + cmd.parent = this; + cmd._checkForBrokenPassThrough(); + + return this; + } + + /** + * Factory routine to create a new unattached argument. + * + * See .argument() for creating an attached argument, which uses this routine to + * create the argument. You can override createArgument to return a custom argument. + * + * @param {string} name + * @param {string} [description] + * @return {Argument} new argument + */ + + createArgument(name, description) { + return new Argument(name, description); + } + + /** + * Define argument syntax for command. + * + * The default is that the argument is required, and you can explicitly + * indicate this with <> around the name. Put [] around the name for an optional argument. + * + * @example + * program.argument('<input-file>'); + * program.argument('[output-file]'); + * + * @param {string} name + * @param {string} [description] + * @param {(Function|*)} [parseArg] - custom argument processing function or default value + * @param {*} [defaultValue] + * @return {Command} `this` command for chaining + */ + argument(name, description, parseArg, defaultValue) { + const argument = this.createArgument(name, description); + if (typeof parseArg === 'function') { + argument.default(defaultValue).argParser(parseArg); + } else { + argument.default(parseArg); + } + this.addArgument(argument); + return this; + } + + /** + * Define argument syntax for command, adding multiple at once (without descriptions). + * + * See also .argument(). + * + * @example + * program.arguments('<cmd> [env]'); + * + * @param {string} names + * @return {Command} `this` command for chaining + */ + + arguments(names) { + names + .trim() + .split(/ +/) + .forEach((detail) => { + this.argument(detail); + }); + return this; + } + + /** + * Define argument syntax for command, adding a prepared argument. + * + * @param {Argument} argument + * @return {Command} `this` command for chaining + */ + addArgument(argument) { + const previousArgument = this.registeredArguments.slice(-1)[0]; + if (previousArgument?.variadic) { + throw new Error( + `only the last argument can be variadic '${previousArgument.name()}'`, + ); + } + if ( + argument.required && + argument.defaultValue !== undefined && + argument.parseArg === undefined + ) { + throw new Error( + `a default value for a required argument is never used: '${argument.name()}'`, + ); + } + this.registeredArguments.push(argument); + return this; + } + + /** + * Customise or override default help command. By default a help command is automatically added if your command has subcommands. + * + * @example + * program.helpCommand('help [cmd]'); + * program.helpCommand('help [cmd]', 'show help'); + * program.helpCommand(false); // suppress default help command + * program.helpCommand(true); // add help command even if no subcommands + * + * @param {string|boolean} enableOrNameAndArgs - enable with custom name and/or arguments, or boolean to override whether added + * @param {string} [description] - custom description + * @return {Command} `this` command for chaining + */ + + helpCommand(enableOrNameAndArgs, description) { + if (typeof enableOrNameAndArgs === 'boolean') { + this._addImplicitHelpCommand = enableOrNameAndArgs; + if (enableOrNameAndArgs && this._defaultCommandGroup) { + // make the command to store the group + this._initCommandGroup(this._getHelpCommand()); + } + return this; + } + + const nameAndArgs = enableOrNameAndArgs ?? 'help [command]'; + const [, helpName, helpArgs] = nameAndArgs.match(/([^ ]+) *(.*)/); + const helpDescription = description ?? 'display help for command'; + + const helpCommand = this.createCommand(helpName); + helpCommand.helpOption(false); + if (helpArgs) helpCommand.arguments(helpArgs); + if (helpDescription) helpCommand.description(helpDescription); + + this._addImplicitHelpCommand = true; + this._helpCommand = helpCommand; + // init group unless lazy create + if (enableOrNameAndArgs || description) this._initCommandGroup(helpCommand); + + return this; + } + + /** + * Add prepared custom help command. + * + * @param {(Command|string|boolean)} helpCommand - custom help command, or deprecated enableOrNameAndArgs as for `.helpCommand()` + * @param {string} [deprecatedDescription] - deprecated custom description used with custom name only + * @return {Command} `this` command for chaining + */ + addHelpCommand(helpCommand, deprecatedDescription) { + // If not passed an object, call through to helpCommand for backwards compatibility, + // as addHelpCommand was originally used like helpCommand is now. + if (typeof helpCommand !== 'object') { + this.helpCommand(helpCommand, deprecatedDescription); + return this; + } + + this._addImplicitHelpCommand = true; + this._helpCommand = helpCommand; + this._initCommandGroup(helpCommand); + return this; + } + + /** + * Lazy create help command. + * + * @return {(Command|null)} + * @package + */ + _getHelpCommand() { + const hasImplicitHelpCommand = + this._addImplicitHelpCommand ?? + (this.commands.length && + !this._actionHandler && + !this._findCommand('help')); + + if (hasImplicitHelpCommand) { + if (this._helpCommand === undefined) { + this.helpCommand(undefined, undefined); // use default name and description + } + return this._helpCommand; + } + return null; + } + + /** + * Add hook for life cycle event. + * + * @param {string} event + * @param {Function} listener + * @return {Command} `this` command for chaining + */ + + hook(event, listener) { + const allowedValues = ['preSubcommand', 'preAction', 'postAction']; + if (!allowedValues.includes(event)) { + throw new Error(`Unexpected value for event passed to hook : '${event}'. +Expecting one of '${allowedValues.join("', '")}'`); + } + if (this._lifeCycleHooks[event]) { + this._lifeCycleHooks[event].push(listener); + } else { + this._lifeCycleHooks[event] = [listener]; + } + return this; + } + + /** + * Register callback to use as replacement for calling process.exit. + * + * @param {Function} [fn] optional callback which will be passed a CommanderError, defaults to throwing + * @return {Command} `this` command for chaining + */ + + exitOverride(fn) { + if (fn) { + this._exitCallback = fn; + } else { + this._exitCallback = (err) => { + if (err.code !== 'commander.executeSubCommandAsync') { + throw err; + } else { + // Async callback from spawn events, not useful to throw. + } + }; + } + return this; + } + + /** + * Call process.exit, and _exitCallback if defined. + * + * @param {number} exitCode exit code for using with process.exit + * @param {string} code an id string representing the error + * @param {string} message human-readable description of the error + * @return never + * @private + */ + + _exit(exitCode, code, message) { + if (this._exitCallback) { + this._exitCallback(new CommanderError(exitCode, code, message)); + // Expecting this line is not reached. + } + process.exit(exitCode); + } + + /** + * Register callback `fn` for the command. + * + * @example + * program + * .command('serve') + * .description('start service') + * .action(function() { + * // do work here + * }); + * + * @param {Function} fn + * @return {Command} `this` command for chaining + */ + + action(fn) { + const listener = (args) => { + // The .action callback takes an extra parameter which is the command or options. + const expectedArgsCount = this.registeredArguments.length; + const actionArgs = args.slice(0, expectedArgsCount); + if (this._storeOptionsAsProperties) { + actionArgs[expectedArgsCount] = this; // backwards compatible "options" + } else { + actionArgs[expectedArgsCount] = this.opts(); + } + actionArgs.push(this); + + return fn.apply(this, actionArgs); + }; + this._actionHandler = listener; + return this; + } + + /** + * Factory routine to create a new unattached option. + * + * See .option() for creating an attached option, which uses this routine to + * create the option. You can override createOption to return a custom option. + * + * @param {string} flags + * @param {string} [description] + * @return {Option} new option + */ + + createOption(flags, description) { + return new Option(flags, description); + } + + /** + * Wrap parseArgs to catch 'commander.invalidArgument'. + * + * @param {(Option | Argument)} target + * @param {string} value + * @param {*} previous + * @param {string} invalidArgumentMessage + * @private + */ + + _callParseArg(target, value, previous, invalidArgumentMessage) { + try { + return target.parseArg(value, previous); + } catch (err) { + if (err.code === 'commander.invalidArgument') { + const message = `${invalidArgumentMessage} ${err.message}`; + this.error(message, { exitCode: err.exitCode, code: err.code }); + } + throw err; + } + } + + /** + * Check for option flag conflicts. + * Register option if no conflicts found, or throw on conflict. + * + * @param {Option} option + * @private + */ + + _registerOption(option) { + const matchingOption = + (option.short && this._findOption(option.short)) || + (option.long && this._findOption(option.long)); + if (matchingOption) { + const matchingFlag = + option.long && this._findOption(option.long) + ? option.long + : option.short; + throw new Error(`Cannot add option '${option.flags}'${this._name && ` to command '${this._name}'`} due to conflicting flag '${matchingFlag}' +- already used by option '${matchingOption.flags}'`); + } + + this._initOptionGroup(option); + this.options.push(option); + } + + /** + * Check for command name and alias conflicts with existing commands. + * Register command if no conflicts found, or throw on conflict. + * + * @param {Command} command + * @private + */ + + _registerCommand(command) { + const knownBy = (cmd) => { + return [cmd.name()].concat(cmd.aliases()); + }; + + const alreadyUsed = knownBy(command).find((name) => + this._findCommand(name), + ); + if (alreadyUsed) { + const existingCmd = knownBy(this._findCommand(alreadyUsed)).join('|'); + const newCmd = knownBy(command).join('|'); + throw new Error( + `cannot add command '${newCmd}' as already have command '${existingCmd}'`, + ); + } + + this._initCommandGroup(command); + this.commands.push(command); + } + + /** + * Add an option. + * + * @param {Option} option + * @return {Command} `this` command for chaining + */ + addOption(option) { + this._registerOption(option); + + const oname = option.name(); + const name = option.attributeName(); + + // store default value + if (option.negate) { + // --no-foo is special and defaults foo to true, unless a --foo option is already defined + const positiveLongFlag = option.long.replace(/^--no-/, '--'); + if (!this._findOption(positiveLongFlag)) { + this.setOptionValueWithSource( + name, + option.defaultValue === undefined ? true : option.defaultValue, + 'default', + ); + } + } else if (option.defaultValue !== undefined) { + this.setOptionValueWithSource(name, option.defaultValue, 'default'); + } + + // handler for cli and env supplied values + const handleOptionValue = (val, invalidValueMessage, valueSource) => { + // val is null for optional option used without an optional-argument. + // val is undefined for boolean and negated option. + if (val == null && option.presetArg !== undefined) { + val = option.presetArg; + } + + // custom processing + const oldValue = this.getOptionValue(name); + if (val !== null && option.parseArg) { + val = this._callParseArg(option, val, oldValue, invalidValueMessage); + } else if (val !== null && option.variadic) { + val = option._collectValue(val, oldValue); + } + + // Fill-in appropriate missing values. Long winded but easy to follow. + if (val == null) { + if (option.negate) { + val = false; + } else if (option.isBoolean() || option.optional) { + val = true; + } else { + val = ''; // not normal, parseArg might have failed or be a mock function for testing + } + } + this.setOptionValueWithSource(name, val, valueSource); + }; + + this.on('option:' + oname, (val) => { + const invalidValueMessage = `error: option '${option.flags}' argument '${val}' is invalid.`; + handleOptionValue(val, invalidValueMessage, 'cli'); + }); + + if (option.envVar) { + this.on('optionEnv:' + oname, (val) => { + const invalidValueMessage = `error: option '${option.flags}' value '${val}' from env '${option.envVar}' is invalid.`; + handleOptionValue(val, invalidValueMessage, 'env'); + }); + } + + return this; + } + + /** + * Internal implementation shared by .option() and .requiredOption() + * + * @return {Command} `this` command for chaining + * @private + */ + _optionEx(config, flags, description, fn, defaultValue) { + if (typeof flags === 'object' && flags instanceof Option) { + throw new Error( + 'To add an Option object use addOption() instead of option() or requiredOption()', + ); + } + const option = this.createOption(flags, description); + option.makeOptionMandatory(!!config.mandatory); + if (typeof fn === 'function') { + option.default(defaultValue).argParser(fn); + } else if (fn instanceof RegExp) { + // deprecated + const regex = fn; + fn = (val, def) => { + const m = regex.exec(val); + return m ? m[0] : def; + }; + option.default(defaultValue).argParser(fn); + } else { + option.default(fn); + } + + return this.addOption(option); + } + + /** + * Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both. + * + * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required + * option-argument is indicated by `<>` and an optional option-argument by `[]`. + * + * See the README for more details, and see also addOption() and requiredOption(). + * + * @example + * program + * .option('-p, --pepper', 'add pepper') + * .option('--pt, --pizza-type <TYPE>', 'type of pizza') // required option-argument + * .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default + * .option('-t, --tip <VALUE>', 'add tip to purchase cost', parseFloat) // custom parse function + * + * @param {string} flags + * @param {string} [description] + * @param {(Function|*)} [parseArg] - custom option processing function or default value + * @param {*} [defaultValue] + * @return {Command} `this` command for chaining + */ + + option(flags, description, parseArg, defaultValue) { + return this._optionEx({}, flags, description, parseArg, defaultValue); + } + + /** + * Add a required option which must have a value after parsing. This usually means + * the option must be specified on the command line. (Otherwise the same as .option().) + * + * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. + * + * @param {string} flags + * @param {string} [description] + * @param {(Function|*)} [parseArg] - custom option processing function or default value + * @param {*} [defaultValue] + * @return {Command} `this` command for chaining + */ + + requiredOption(flags, description, parseArg, defaultValue) { + return this._optionEx( + { mandatory: true }, + flags, + description, + parseArg, + defaultValue, + ); + } + + /** + * Alter parsing of short flags with optional values. + * + * @example + * // for `.option('-f,--flag [value]'): + * program.combineFlagAndOptionalValue(true); // `-f80` is treated like `--flag=80`, this is the default behaviour + * program.combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b` + * + * @param {boolean} [combine] - if `true` or omitted, an optional value can be specified directly after the flag. + * @return {Command} `this` command for chaining + */ + combineFlagAndOptionalValue(combine = true) { + this._combineFlagAndOptionalValue = !!combine; + return this; + } + + /** + * Allow unknown options on the command line. + * + * @param {boolean} [allowUnknown] - if `true` or omitted, no error will be thrown for unknown options. + * @return {Command} `this` command for chaining + */ + allowUnknownOption(allowUnknown = true) { + this._allowUnknownOption = !!allowUnknown; + return this; + } + + /** + * Allow excess command-arguments on the command line. Pass false to make excess arguments an error. + * + * @param {boolean} [allowExcess] - if `true` or omitted, no error will be thrown for excess arguments. + * @return {Command} `this` command for chaining + */ + allowExcessArguments(allowExcess = true) { + this._allowExcessArguments = !!allowExcess; + return this; + } + + /** + * Enable positional options. Positional means global options are specified before subcommands which lets + * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions. + * The default behaviour is non-positional and global options may appear anywhere on the command line. + * + * @param {boolean} [positional] + * @return {Command} `this` command for chaining + */ + enablePositionalOptions(positional = true) { + this._enablePositionalOptions = !!positional; + return this; + } + + /** + * Pass through options that come after command-arguments rather than treat them as command-options, + * so actual command-options come before command-arguments. Turning this on for a subcommand requires + * positional options to have been enabled on the program (parent commands). + * The default behaviour is non-positional and options may appear before or after command-arguments. + * + * @param {boolean} [passThrough] for unknown options. + * @return {Command} `this` command for chaining + */ + passThroughOptions(passThrough = true) { + this._passThroughOptions = !!passThrough; + this._checkForBrokenPassThrough(); + return this; + } + + /** + * @private + */ + + _checkForBrokenPassThrough() { + if ( + this.parent && + this._passThroughOptions && + !this.parent._enablePositionalOptions + ) { + throw new Error( + `passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`, + ); + } + } + + /** + * Whether to store option values as properties on command object, + * or store separately (specify false). In both cases the option values can be accessed using .opts(). + * + * @param {boolean} [storeAsProperties=true] + * @return {Command} `this` command for chaining + */ + + storeOptionsAsProperties(storeAsProperties = true) { + if (this.options.length) { + throw new Error('call .storeOptionsAsProperties() before adding options'); + } + if (Object.keys(this._optionValues).length) { + throw new Error( + 'call .storeOptionsAsProperties() before setting option values', + ); + } + this._storeOptionsAsProperties = !!storeAsProperties; + return this; + } + + /** + * Retrieve option value. + * + * @param {string} key + * @return {object} value + */ + + getOptionValue(key) { + if (this._storeOptionsAsProperties) { + return this[key]; + } + return this._optionValues[key]; + } + + /** + * Store option value. + * + * @param {string} key + * @param {object} value + * @return {Command} `this` command for chaining + */ + + setOptionValue(key, value) { + return this.setOptionValueWithSource(key, value, undefined); + } + + /** + * Store option value and where the value came from. + * + * @param {string} key + * @param {object} value + * @param {string} source - expected values are default/config/env/cli/implied + * @return {Command} `this` command for chaining + */ + + setOptionValueWithSource(key, value, source) { + if (this._storeOptionsAsProperties) { + this[key] = value; + } else { + this._optionValues[key] = value; + } + this._optionValueSources[key] = source; + return this; + } + + /** + * Get source of option value. + * Expected values are default | config | env | cli | implied + * + * @param {string} key + * @return {string} + */ + + getOptionValueSource(key) { + return this._optionValueSources[key]; + } + + /** + * Get source of option value. See also .optsWithGlobals(). + * Expected values are default | config | env | cli | implied + * + * @param {string} key + * @return {string} + */ + + getOptionValueSourceWithGlobals(key) { + // global overwrites local, like optsWithGlobals + let source; + this._getCommandAndAncestors().forEach((cmd) => { + if (cmd.getOptionValueSource(key) !== undefined) { + source = cmd.getOptionValueSource(key); + } + }); + return source; + } + + /** + * Get user arguments from implied or explicit arguments. + * Side-effects: set _scriptPath if args included script. Used for default program name, and subcommand searches. + * + * @private + */ + + _prepareUserArgs(argv, parseOptions) { + if (argv !== undefined && !Array.isArray(argv)) { + throw new Error('first parameter to parse must be array or undefined'); + } + parseOptions = parseOptions || {}; + + // auto-detect argument conventions if nothing supplied + if (argv === undefined && parseOptions.from === undefined) { + if (process.versions?.electron) { + parseOptions.from = 'electron'; + } + // check node specific options for scenarios where user CLI args follow executable without scriptname + const execArgv = process.execArgv ?? []; + if ( + execArgv.includes('-e') || + execArgv.includes('--eval') || + execArgv.includes('-p') || + execArgv.includes('--print') + ) { + parseOptions.from = 'eval'; // internal usage, not documented + } + } + + // default to using process.argv + if (argv === undefined) { + argv = process.argv; + } + this.rawArgs = argv.slice(); + + // extract the user args and scriptPath + let userArgs; + switch (parseOptions.from) { + case undefined: + case 'node': + this._scriptPath = argv[1]; + userArgs = argv.slice(2); + break; + case 'electron': + // @ts-ignore: because defaultApp is an unknown property + if (process.defaultApp) { + this._scriptPath = argv[1]; + userArgs = argv.slice(2); + } else { + userArgs = argv.slice(1); + } + break; + case 'user': + userArgs = argv.slice(0); + break; + case 'eval': + userArgs = argv.slice(1); + break; + default: + throw new Error( + `unexpected parse option { from: '${parseOptions.from}' }`, + ); + } + + // Find default name for program from arguments. + if (!this._name && this._scriptPath) + this.nameFromFilename(this._scriptPath); + this._name = this._name || 'program'; + + return userArgs; + } + + /** + * Parse `argv`, setting options and invoking commands when defined. + * + * Use parseAsync instead of parse if any of your action handlers are async. + * + * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode! + * + * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`: + * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that + * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged + * - `'user'`: just user arguments + * + * @example + * program.parse(); // parse process.argv and auto-detect electron and special node flags + * program.parse(process.argv); // assume argv[0] is app and argv[1] is script + * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0] + * + * @param {string[]} [argv] - optional, defaults to process.argv + * @param {object} [parseOptions] - optionally specify style of options with from: node/user/electron + * @param {string} [parseOptions.from] - where the args are from: 'node', 'user', 'electron' + * @return {Command} `this` command for chaining + */ + + parse(argv, parseOptions) { + this._prepareForParse(); + const userArgs = this._prepareUserArgs(argv, parseOptions); + this._parseCommand([], userArgs); + + return this; + } + + /** + * Parse `argv`, setting options and invoking commands when defined. + * + * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode! + * + * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`: + * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that + * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged + * - `'user'`: just user arguments + * + * @example + * await program.parseAsync(); // parse process.argv and auto-detect electron and special node flags + * await program.parseAsync(process.argv); // assume argv[0] is app and argv[1] is script + * await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0] + * + * @param {string[]} [argv] + * @param {object} [parseOptions] + * @param {string} parseOptions.from - where the args are from: 'node', 'user', 'electron' + * @return {Promise} + */ + + async parseAsync(argv, parseOptions) { + this._prepareForParse(); + const userArgs = this._prepareUserArgs(argv, parseOptions); + await this._parseCommand([], userArgs); + + return this; + } + + _prepareForParse() { + if (this._savedState === null) { + this.saveStateBeforeParse(); + } else { + this.restoreStateBeforeParse(); + } + } + + /** + * Called the first time parse is called to save state and allow a restore before subsequent calls to parse. + * Not usually called directly, but available for subclasses to save their custom state. + * + * This is called in a lazy way. Only commands used in parsing chain will have state saved. + */ + saveStateBeforeParse() { + this._savedState = { + // name is stable if supplied by author, but may be unspecified for root command and deduced during parsing + _name: this._name, + // option values before parse have default values (including false for negated options) + // shallow clones + _optionValues: { ...this._optionValues }, + _optionValueSources: { ...this._optionValueSources }, + }; + } + + /** + * Restore state before parse for calls after the first. + * Not usually called directly, but available for subclasses to save their custom state. + * + * This is called in a lazy way. Only commands used in parsing chain will have state restored. + */ + restoreStateBeforeParse() { + if (this._storeOptionsAsProperties) + throw new Error(`Can not call parse again when storeOptionsAsProperties is true. +- either make a new Command for each call to parse, or stop storing options as properties`); + + // clear state from _prepareUserArgs + this._name = this._savedState._name; + this._scriptPath = null; + this.rawArgs = []; + // clear state from setOptionValueWithSource + this._optionValues = { ...this._savedState._optionValues }; + this._optionValueSources = { ...this._savedState._optionValueSources }; + // clear state from _parseCommand + this.args = []; + // clear state from _processArguments + this.processedArgs = []; + } + + /** + * Throw if expected executable is missing. Add lots of help for author. + * + * @param {string} executableFile + * @param {string} executableDir + * @param {string} subcommandName + */ + _checkForMissingExecutable(executableFile, executableDir, subcommandName) { + if (fs.existsSync(executableFile)) return; + + const executableDirMessage = executableDir + ? `searched for local subcommand relative to directory '${executableDir}'` + : 'no directory for search for local subcommand, use .executableDir() to supply a custom directory'; + const executableMissing = `'${executableFile}' does not exist + - if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead + - if the default executable name is not suitable, use the executableFile option to supply a custom name or path + - ${executableDirMessage}`; + throw new Error(executableMissing); + } + + /** + * Execute a sub-command executable. + * + * @private + */ + + _executeSubCommand(subcommand, args) { + args = args.slice(); + let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows. + const sourceExt = ['.js', '.ts', '.tsx', '.mjs', '.cjs']; + + function findFile(baseDir, baseName) { + // Look for specified file + const localBin = path.resolve(baseDir, baseName); + if (fs.existsSync(localBin)) return localBin; + + // Stop looking if candidate already has an expected extension. + if (sourceExt.includes(path.extname(baseName))) return undefined; + + // Try all the extensions. + const foundExt = sourceExt.find((ext) => + fs.existsSync(`${localBin}${ext}`), + ); + if (foundExt) return `${localBin}${foundExt}`; + + return undefined; + } + + // Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command. + this._checkForMissingMandatoryOptions(); + this._checkForConflictingOptions(); + + // executableFile and executableDir might be full path, or just a name + let executableFile = + subcommand._executableFile || `${this._name}-${subcommand._name}`; + let executableDir = this._executableDir || ''; + if (this._scriptPath) { + let resolvedScriptPath; // resolve possible symlink for installed npm binary + try { + resolvedScriptPath = fs.realpathSync(this._scriptPath); + } catch { + resolvedScriptPath = this._scriptPath; + } + executableDir = path.resolve( + path.dirname(resolvedScriptPath), + executableDir, + ); + } + + // Look for a local file in preference to a command in PATH. + if (executableDir) { + let localFile = findFile(executableDir, executableFile); + + // Legacy search using prefix of script name instead of command name + if (!localFile && !subcommand._executableFile && this._scriptPath) { + const legacyName = path.basename( + this._scriptPath, + path.extname(this._scriptPath), + ); + if (legacyName !== this._name) { + localFile = findFile( + executableDir, + `${legacyName}-${subcommand._name}`, + ); + } + } + executableFile = localFile || executableFile; + } + + launchWithNode = sourceExt.includes(path.extname(executableFile)); + + let proc; + if (process.platform !== 'win32') { + if (launchWithNode) { + args.unshift(executableFile); + // add executable arguments to spawn + args = incrementNodeInspectorPort(process.execArgv).concat(args); + + proc = childProcess.spawn(process.argv[0], args, { stdio: 'inherit' }); + } else { + proc = childProcess.spawn(executableFile, args, { stdio: 'inherit' }); + } + } else { + this._checkForMissingExecutable( + executableFile, + executableDir, + subcommand._name, + ); + args.unshift(executableFile); + // add executable arguments to spawn + args = incrementNodeInspectorPort(process.execArgv).concat(args); + proc = childProcess.spawn(process.execPath, args, { stdio: 'inherit' }); + } + + if (!proc.killed) { + // testing mainly to avoid leak warnings during unit tests with mocked spawn + const signals = ['SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGINT', 'SIGHUP']; + signals.forEach((signal) => { + process.on(signal, () => { + if (proc.killed === false && proc.exitCode === null) { + // @ts-ignore because signals not typed to known strings + proc.kill(signal); + } + }); + }); + } + + // By default terminate process when spawned process terminates. + const exitCallback = this._exitCallback; + proc.on('close', (code) => { + code = code ?? 1; // code is null if spawned process terminated due to a signal + if (!exitCallback) { + process.exit(code); + } else { + exitCallback( + new CommanderError( + code, + 'commander.executeSubCommandAsync', + '(close)', + ), + ); + } + }); + proc.on('error', (err) => { + // @ts-ignore: because err.code is an unknown property + if (err.code === 'ENOENT') { + this._checkForMissingExecutable( + executableFile, + executableDir, + subcommand._name, + ); + // @ts-ignore: because err.code is an unknown property + } else if (err.code === 'EACCES') { + throw new Error(`'${executableFile}' not executable`); + } + if (!exitCallback) { + process.exit(1); + } else { + const wrappedError = new CommanderError( + 1, + 'commander.executeSubCommandAsync', + '(error)', + ); + wrappedError.nestedError = err; + exitCallback(wrappedError); + } + }); + + // Store the reference to the child process + this.runningCommand = proc; + } + + /** + * @private + */ + + _dispatchSubcommand(commandName, operands, unknown) { + const subCommand = this._findCommand(commandName); + if (!subCommand) this.help({ error: true }); + + subCommand._prepareForParse(); + let promiseChain; + promiseChain = this._chainOrCallSubCommandHook( + promiseChain, + subCommand, + 'preSubcommand', + ); + promiseChain = this._chainOrCall(promiseChain, () => { + if (subCommand._executableHandler) { + this._executeSubCommand(subCommand, operands.concat(unknown)); + } else { + return subCommand._parseCommand(operands, unknown); + } + }); + return promiseChain; + } + + /** + * Invoke help directly if possible, or dispatch if necessary. + * e.g. help foo + * + * @private + */ + + _dispatchHelpCommand(subcommandName) { + if (!subcommandName) { + this.help(); + } + const subCommand = this._findCommand(subcommandName); + if (subCommand && !subCommand._executableHandler) { + subCommand.help(); + } + + // Fallback to parsing the help flag to invoke the help. + return this._dispatchSubcommand( + subcommandName, + [], + [this._getHelpOption()?.long ?? this._getHelpOption()?.short ?? '--help'], + ); + } + + /** + * Check this.args against expected this.registeredArguments. + * + * @private + */ + + _checkNumberOfArguments() { + // too few + this.registeredArguments.forEach((arg, i) => { + if (arg.required && this.args[i] == null) { + this.missingArgument(arg.name()); + } + }); + // too many + if ( + this.registeredArguments.length > 0 && + this.registeredArguments[this.registeredArguments.length - 1].variadic + ) { + return; + } + if (this.args.length > this.registeredArguments.length) { + this._excessArguments(this.args); + } + } + + /** + * Process this.args using this.registeredArguments and save as this.processedArgs! + * + * @private + */ + + _processArguments() { + const myParseArg = (argument, value, previous) => { + // Extra processing for nice error message on parsing failure. + let parsedValue = value; + if (value !== null && argument.parseArg) { + const invalidValueMessage = `error: command-argument value '${value}' is invalid for argument '${argument.name()}'.`; + parsedValue = this._callParseArg( + argument, + value, + previous, + invalidValueMessage, + ); + } + return parsedValue; + }; + + this._checkNumberOfArguments(); + + const processedArgs = []; + this.registeredArguments.forEach((declaredArg, index) => { + let value = declaredArg.defaultValue; + if (declaredArg.variadic) { + // Collect together remaining arguments for passing together as an array. + if (index < this.args.length) { + value = this.args.slice(index); + if (declaredArg.parseArg) { + value = value.reduce((processed, v) => { + return myParseArg(declaredArg, v, processed); + }, declaredArg.defaultValue); + } + } else if (value === undefined) { + value = []; + } + } else if (index < this.args.length) { + value = this.args[index]; + if (declaredArg.parseArg) { + value = myParseArg(declaredArg, value, declaredArg.defaultValue); + } + } + processedArgs[index] = value; + }); + this.processedArgs = processedArgs; + } + + /** + * Once we have a promise we chain, but call synchronously until then. + * + * @param {(Promise|undefined)} promise + * @param {Function} fn + * @return {(Promise|undefined)} + * @private + */ + + _chainOrCall(promise, fn) { + // thenable + if (promise?.then && typeof promise.then === 'function') { + // already have a promise, chain callback + return promise.then(() => fn()); + } + // callback might return a promise + return fn(); + } + + /** + * + * @param {(Promise|undefined)} promise + * @param {string} event + * @return {(Promise|undefined)} + * @private + */ + + _chainOrCallHooks(promise, event) { + let result = promise; + const hooks = []; + this._getCommandAndAncestors() + .reverse() + .filter((cmd) => cmd._lifeCycleHooks[event] !== undefined) + .forEach((hookedCommand) => { + hookedCommand._lifeCycleHooks[event].forEach((callback) => { + hooks.push({ hookedCommand, callback }); + }); + }); + if (event === 'postAction') { + hooks.reverse(); + } + + hooks.forEach((hookDetail) => { + result = this._chainOrCall(result, () => { + return hookDetail.callback(hookDetail.hookedCommand, this); + }); + }); + return result; + } + + /** + * + * @param {(Promise|undefined)} promise + * @param {Command} subCommand + * @param {string} event + * @return {(Promise|undefined)} + * @private + */ + + _chainOrCallSubCommandHook(promise, subCommand, event) { + let result = promise; + if (this._lifeCycleHooks[event] !== undefined) { + this._lifeCycleHooks[event].forEach((hook) => { + result = this._chainOrCall(result, () => { + return hook(this, subCommand); + }); + }); + } + return result; + } + + /** + * Process arguments in context of this command. + * Returns action result, in case it is a promise. + * + * @private + */ + + _parseCommand(operands, unknown) { + const parsed = this.parseOptions(unknown); + this._parseOptionsEnv(); // after cli, so parseArg not called on both cli and env + this._parseOptionsImplied(); + operands = operands.concat(parsed.operands); + unknown = parsed.unknown; + this.args = operands.concat(unknown); + + if (operands && this._findCommand(operands[0])) { + return this._dispatchSubcommand(operands[0], operands.slice(1), unknown); + } + if ( + this._getHelpCommand() && + operands[0] === this._getHelpCommand().name() + ) { + return this._dispatchHelpCommand(operands[1]); + } + if (this._defaultCommandName) { + this._outputHelpIfRequested(unknown); // Run the help for default command from parent rather than passing to default command + return this._dispatchSubcommand( + this._defaultCommandName, + operands, + unknown, + ); + } + if ( + this.commands.length && + this.args.length === 0 && + !this._actionHandler && + !this._defaultCommandName + ) { + // probably missing subcommand and no handler, user needs help (and exit) + this.help({ error: true }); + } + + this._outputHelpIfRequested(parsed.unknown); + this._checkForMissingMandatoryOptions(); + this._checkForConflictingOptions(); + + // We do not always call this check to avoid masking a "better" error, like unknown command. + const checkForUnknownOptions = () => { + if (parsed.unknown.length > 0) { + this.unknownOption(parsed.unknown[0]); + } + }; + + const commandEvent = `command:${this.name()}`; + if (this._actionHandler) { + checkForUnknownOptions(); + this._processArguments(); + + let promiseChain; + promiseChain = this._chainOrCallHooks(promiseChain, 'preAction'); + promiseChain = this._chainOrCall(promiseChain, () => + this._actionHandler(this.processedArgs), + ); + if (this.parent) { + promiseChain = this._chainOrCall(promiseChain, () => { + this.parent.emit(commandEvent, operands, unknown); // legacy + }); + } + promiseChain = this._chainOrCallHooks(promiseChain, 'postAction'); + return promiseChain; + } + if (this.parent?.listenerCount(commandEvent)) { + checkForUnknownOptions(); + this._processArguments(); + this.parent.emit(commandEvent, operands, unknown); // legacy + } else if (operands.length) { + if (this._findCommand('*')) { + // legacy default command + return this._dispatchSubcommand('*', operands, unknown); + } + if (this.listenerCount('command:*')) { + // skip option check, emit event for possible misspelling suggestion + this.emit('command:*', operands, unknown); + } else if (this.commands.length) { + this.unknownCommand(); + } else { + checkForUnknownOptions(); + this._processArguments(); + } + } else if (this.commands.length) { + checkForUnknownOptions(); + // This command has subcommands and nothing hooked up at this level, so display help (and exit). + this.help({ error: true }); + } else { + checkForUnknownOptions(); + this._processArguments(); + // fall through for caller to handle after calling .parse() + } + } + + /** + * Find matching command. + * + * @private + * @return {Command | undefined} + */ + _findCommand(name) { + if (!name) return undefined; + return this.commands.find( + (cmd) => cmd._name === name || cmd._aliases.includes(name), + ); + } + + /** + * Return an option matching `arg` if any. + * + * @param {string} arg + * @return {Option} + * @package + */ + + _findOption(arg) { + return this.options.find((option) => option.is(arg)); + } + + /** + * Display an error message if a mandatory option does not have a value. + * Called after checking for help flags in leaf subcommand. + * + * @private + */ + + _checkForMissingMandatoryOptions() { + // Walk up hierarchy so can call in subcommand after checking for displaying help. + this._getCommandAndAncestors().forEach((cmd) => { + cmd.options.forEach((anOption) => { + if ( + anOption.mandatory && + cmd.getOptionValue(anOption.attributeName()) === undefined + ) { + cmd.missingMandatoryOptionValue(anOption); + } + }); + }); + } + + /** + * Display an error message if conflicting options are used together in this. + * + * @private + */ + _checkForConflictingLocalOptions() { + const definedNonDefaultOptions = this.options.filter((option) => { + const optionKey = option.attributeName(); + if (this.getOptionValue(optionKey) === undefined) { + return false; + } + return this.getOptionValueSource(optionKey) !== 'default'; + }); + + const optionsWithConflicting = definedNonDefaultOptions.filter( + (option) => option.conflictsWith.length > 0, + ); + + optionsWithConflicting.forEach((option) => { + const conflictingAndDefined = definedNonDefaultOptions.find((defined) => + option.conflictsWith.includes(defined.attributeName()), + ); + if (conflictingAndDefined) { + this._conflictingOption(option, conflictingAndDefined); + } + }); + } + + /** + * Display an error message if conflicting options are used together. + * Called after checking for help flags in leaf subcommand. + * + * @private + */ + _checkForConflictingOptions() { + // Walk up hierarchy so can call in subcommand after checking for displaying help. + this._getCommandAndAncestors().forEach((cmd) => { + cmd._checkForConflictingLocalOptions(); + }); + } + + /** + * Parse options from `argv` removing known options, + * and return argv split into operands and unknown arguments. + * + * Side effects: modifies command by storing options. Does not reset state if called again. + * + * Examples: + * + * argv => operands, unknown + * --known kkk op => [op], [] + * op --known kkk => [op], [] + * sub --unknown uuu op => [sub], [--unknown uuu op] + * sub -- --unknown uuu op => [sub --unknown uuu op], [] + * + * @param {string[]} args + * @return {{operands: string[], unknown: string[]}} + */ + + parseOptions(args) { + const operands = []; // operands, not options or values + const unknown = []; // first unknown option and remaining unknown args + let dest = operands; + + function maybeOption(arg) { + return arg.length > 1 && arg[0] === '-'; + } + + const negativeNumberArg = (arg) => { + // return false if not a negative number + if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false; + // negative number is ok unless digit used as an option in command hierarchy + return !this._getCommandAndAncestors().some((cmd) => + cmd.options + .map((opt) => opt.short) + .some((short) => /^-\d$/.test(short)), + ); + }; + + // parse options + let activeVariadicOption = null; + let activeGroup = null; // working through group of short options, like -abc + let i = 0; + while (i < args.length || activeGroup) { + const arg = activeGroup ?? args[i++]; + activeGroup = null; + + // literal + if (arg === '--') { + if (dest === unknown) dest.push(arg); + dest.push(...args.slice(i)); + break; + } + + if ( + activeVariadicOption && + (!maybeOption(arg) || negativeNumberArg(arg)) + ) { + this.emit(`option:${activeVariadicOption.name()}`, arg); + continue; + } + activeVariadicOption = null; + + if (maybeOption(arg)) { + const option = this._findOption(arg); + // recognised option, call listener to assign value with possible custom processing + if (option) { + if (option.required) { + const value = args[i++]; + if (value === undefined) this.optionMissingArgument(option); + this.emit(`option:${option.name()}`, value); + } else if (option.optional) { + let value = null; + // historical behaviour is optional value is following arg unless an option + if ( + i < args.length && + (!maybeOption(args[i]) || negativeNumberArg(args[i])) + ) { + value = args[i++]; + } + this.emit(`option:${option.name()}`, value); + } else { + // boolean flag + this.emit(`option:${option.name()}`); + } + activeVariadicOption = option.variadic ? option : null; + continue; + } + } + + // Look for combo options following single dash, eat first one if known. + if (arg.length > 2 && arg[0] === '-' && arg[1] !== '-') { + const option = this._findOption(`-${arg[1]}`); + if (option) { + if ( + option.required || + (option.optional && this._combineFlagAndOptionalValue) + ) { + // option with value following in same argument + this.emit(`option:${option.name()}`, arg.slice(2)); + } else { + // boolean option + this.emit(`option:${option.name()}`); + // remove the processed option and keep processing group + activeGroup = `-${arg.slice(2)}`; + } + continue; + } + } + + // Look for known long flag with value, like --foo=bar + if (/^--[^=]+=/.test(arg)) { + const index = arg.indexOf('='); + const option = this._findOption(arg.slice(0, index)); + if (option && (option.required || option.optional)) { + this.emit(`option:${option.name()}`, arg.slice(index + 1)); + continue; + } + } + + // Not a recognised option by this command. + // Might be a command-argument, or subcommand option, or unknown option, or help command or option. + + // An unknown option means further arguments also classified as unknown so can be reprocessed by subcommands. + // A negative number in a leaf command is not an unknown option. + if ( + dest === operands && + maybeOption(arg) && + !(this.commands.length === 0 && negativeNumberArg(arg)) + ) { + dest = unknown; + } + + // If using positionalOptions, stop processing our options at subcommand. + if ( + (this._enablePositionalOptions || this._passThroughOptions) && + operands.length === 0 && + unknown.length === 0 + ) { + if (this._findCommand(arg)) { + operands.push(arg); + unknown.push(...args.slice(i)); + break; + } else if ( + this._getHelpCommand() && + arg === this._getHelpCommand().name() + ) { + operands.push(arg, ...args.slice(i)); + break; + } else if (this._defaultCommandName) { + unknown.push(arg, ...args.slice(i)); + break; + } + } + + // If using passThroughOptions, stop processing options at first command-argument. + if (this._passThroughOptions) { + dest.push(arg, ...args.slice(i)); + break; + } + + // add arg + dest.push(arg); + } + + return { operands, unknown }; + } + + /** + * Return an object containing local option values as key-value pairs. + * + * @return {object} + */ + opts() { + if (this._storeOptionsAsProperties) { + // Preserve original behaviour so backwards compatible when still using properties + const result = {}; + const len = this.options.length; + + for (let i = 0; i < len; i++) { + const key = this.options[i].attributeName(); + result[key] = + key === this._versionOptionName ? this._version : this[key]; + } + return result; + } + + return this._optionValues; + } + + /** + * Return an object containing merged local and global option values as key-value pairs. + * + * @return {object} + */ + optsWithGlobals() { + // globals overwrite locals + return this._getCommandAndAncestors().reduce( + (combinedOptions, cmd) => Object.assign(combinedOptions, cmd.opts()), + {}, + ); + } + + /** + * Display error message and exit (or call exitOverride). + * + * @param {string} message + * @param {object} [errorOptions] + * @param {string} [errorOptions.code] - an id string representing the error + * @param {number} [errorOptions.exitCode] - used with process.exit + */ + error(message, errorOptions) { + // output handling + this._outputConfiguration.outputError( + `${message}\n`, + this._outputConfiguration.writeErr, + ); + if (typeof this._showHelpAfterError === 'string') { + this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`); + } else if (this._showHelpAfterError) { + this._outputConfiguration.writeErr('\n'); + this.outputHelp({ error: true }); + } + + // exit handling + const config = errorOptions || {}; + const exitCode = config.exitCode || 1; + const code = config.code || 'commander.error'; + this._exit(exitCode, code, message); + } + + /** + * Apply any option related environment variables, if option does + * not have a value from cli or client code. + * + * @private + */ + _parseOptionsEnv() { + this.options.forEach((option) => { + if (option.envVar && option.envVar in process.env) { + const optionKey = option.attributeName(); + // Priority check. Do not overwrite cli or options from unknown source (client-code). + if ( + this.getOptionValue(optionKey) === undefined || + ['default', 'config', 'env'].includes( + this.getOptionValueSource(optionKey), + ) + ) { + if (option.required || option.optional) { + // option can take a value + // keep very simple, optional always takes value + this.emit(`optionEnv:${option.name()}`, process.env[option.envVar]); + } else { + // boolean + // keep very simple, only care that envVar defined and not the value + this.emit(`optionEnv:${option.name()}`); + } + } + } + }); + } + + /** + * Apply any implied option values, if option is undefined or default value. + * + * @private + */ + _parseOptionsImplied() { + const dualHelper = new DualOptions(this.options); + const hasCustomOptionValue = (optionKey) => { + return ( + this.getOptionValue(optionKey) !== undefined && + !['default', 'implied'].includes(this.getOptionValueSource(optionKey)) + ); + }; + this.options + .filter( + (option) => + option.implied !== undefined && + hasCustomOptionValue(option.attributeName()) && + dualHelper.valueFromOption( + this.getOptionValue(option.attributeName()), + option, + ), + ) + .forEach((option) => { + Object.keys(option.implied) + .filter((impliedKey) => !hasCustomOptionValue(impliedKey)) + .forEach((impliedKey) => { + this.setOptionValueWithSource( + impliedKey, + option.implied[impliedKey], + 'implied', + ); + }); + }); + } + + /** + * Argument `name` is missing. + * + * @param {string} name + * @private + */ + + missingArgument(name) { + const message = `error: missing required argument '${name}'`; + this.error(message, { code: 'commander.missingArgument' }); + } + + /** + * `Option` is missing an argument. + * + * @param {Option} option + * @private + */ + + optionMissingArgument(option) { + const message = `error: option '${option.flags}' argument missing`; + this.error(message, { code: 'commander.optionMissingArgument' }); + } + + /** + * `Option` does not have a value, and is a mandatory option. + * + * @param {Option} option + * @private + */ + + missingMandatoryOptionValue(option) { + const message = `error: required option '${option.flags}' not specified`; + this.error(message, { code: 'commander.missingMandatoryOptionValue' }); + } + + /** + * `Option` conflicts with another option. + * + * @param {Option} option + * @param {Option} conflictingOption + * @private + */ + _conflictingOption(option, conflictingOption) { + // The calling code does not know whether a negated option is the source of the + // value, so do some work to take an educated guess. + const findBestOptionFromValue = (option) => { + const optionKey = option.attributeName(); + const optionValue = this.getOptionValue(optionKey); + const negativeOption = this.options.find( + (target) => target.negate && optionKey === target.attributeName(), + ); + const positiveOption = this.options.find( + (target) => !target.negate && optionKey === target.attributeName(), + ); + if ( + negativeOption && + ((negativeOption.presetArg === undefined && optionValue === false) || + (negativeOption.presetArg !== undefined && + optionValue === negativeOption.presetArg)) + ) { + return negativeOption; + } + return positiveOption || option; + }; + + const getErrorMessage = (option) => { + const bestOption = findBestOptionFromValue(option); + const optionKey = bestOption.attributeName(); + const source = this.getOptionValueSource(optionKey); + if (source === 'env') { + return `environment variable '${bestOption.envVar}'`; + } + return `option '${bestOption.flags}'`; + }; + + const message = `error: ${getErrorMessage(option)} cannot be used with ${getErrorMessage(conflictingOption)}`; + this.error(message, { code: 'commander.conflictingOption' }); + } + + /** + * Unknown option `flag`. + * + * @param {string} flag + * @private + */ + + unknownOption(flag) { + if (this._allowUnknownOption) return; + let suggestion = ''; + + if (flag.startsWith('--') && this._showSuggestionAfterError) { + // Looping to pick up the global options too + let candidateFlags = []; + // eslint-disable-next-line @typescript-eslint/no-this-alias + let command = this; + do { + const moreFlags = command + .createHelp() + .visibleOptions(command) + .filter((option) => option.long) + .map((option) => option.long); + candidateFlags = candidateFlags.concat(moreFlags); + command = command.parent; + } while (command && !command._enablePositionalOptions); + suggestion = suggestSimilar(flag, candidateFlags); + } + + const message = `error: unknown option '${flag}'${suggestion}`; + this.error(message, { code: 'commander.unknownOption' }); + } + + /** + * Excess arguments, more than expected. + * + * @param {string[]} receivedArgs + * @private + */ + + _excessArguments(receivedArgs) { + if (this._allowExcessArguments) return; + + const expected = this.registeredArguments.length; + const s = expected === 1 ? '' : 's'; + const forSubcommand = this.parent ? ` for '${this.name()}'` : ''; + const message = `error: too many arguments${forSubcommand}. Expected ${expected} argument${s} but got ${receivedArgs.length}.`; + this.error(message, { code: 'commander.excessArguments' }); + } + + /** + * Unknown command. + * + * @private + */ + + unknownCommand() { + const unknownName = this.args[0]; + let suggestion = ''; + + if (this._showSuggestionAfterError) { + const candidateNames = []; + this.createHelp() + .visibleCommands(this) + .forEach((command) => { + candidateNames.push(command.name()); + // just visible alias + if (command.alias()) candidateNames.push(command.alias()); + }); + suggestion = suggestSimilar(unknownName, candidateNames); + } + + const message = `error: unknown command '${unknownName}'${suggestion}`; + this.error(message, { code: 'commander.unknownCommand' }); + } + + /** + * Get or set the program version. + * + * This method auto-registers the "-V, --version" option which will print the version number. + * + * You can optionally supply the flags and description to override the defaults. + * + * @param {string} [str] + * @param {string} [flags] + * @param {string} [description] + * @return {(this | string | undefined)} `this` command for chaining, or version string if no arguments + */ + + version(str, flags, description) { + if (str === undefined) return this._version; + this._version = str; + flags = flags || '-V, --version'; + description = description || 'output the version number'; + const versionOption = this.createOption(flags, description); + this._versionOptionName = versionOption.attributeName(); + this._registerOption(versionOption); + + this.on('option:' + versionOption.name(), () => { + this._outputConfiguration.writeOut(`${str}\n`); + this._exit(0, 'commander.version', str); + }); + return this; + } + + /** + * Set the description. + * + * @param {string} [str] + * @param {object} [argsDescription] + * @return {(string|Command)} + */ + description(str, argsDescription) { + if (str === undefined && argsDescription === undefined) + return this._description; + this._description = str; + if (argsDescription) { + this._argsDescription = argsDescription; + } + return this; + } + + /** + * Set the summary. Used when listed as subcommand of parent. + * + * @param {string} [str] + * @return {(string|Command)} + */ + summary(str) { + if (str === undefined) return this._summary; + this._summary = str; + return this; + } + + /** + * Set an alias for the command. + * + * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help. + * + * @param {string} [alias] + * @return {(string|Command)} + */ + + alias(alias) { + if (alias === undefined) return this._aliases[0]; // just return first, for backwards compatibility + + /** @type {Command} */ + // eslint-disable-next-line @typescript-eslint/no-this-alias + let command = this; + if ( + this.commands.length !== 0 && + this.commands[this.commands.length - 1]._executableHandler + ) { + // assume adding alias for last added executable subcommand, rather than this + command = this.commands[this.commands.length - 1]; + } + + if (alias === command._name) + throw new Error("Command alias can't be the same as its name"); + const matchingCommand = this.parent?._findCommand(alias); + if (matchingCommand) { + // c.f. _registerCommand + const existingCmd = [matchingCommand.name()] + .concat(matchingCommand.aliases()) + .join('|'); + throw new Error( + `cannot add alias '${alias}' to command '${this.name()}' as already have command '${existingCmd}'`, + ); + } + + command._aliases.push(alias); + return this; + } + + /** + * Set aliases for the command. + * + * Only the first alias is shown in the auto-generated help. + * + * @param {string[]} [aliases] + * @return {(string[]|Command)} + */ + + aliases(aliases) { + // Getter for the array of aliases is the main reason for having aliases() in addition to alias(). + if (aliases === undefined) return this._aliases; + + aliases.forEach((alias) => this.alias(alias)); + return this; + } + + /** + * Set / get the command usage `str`. + * + * @param {string} [str] + * @return {(string|Command)} + */ + + usage(str) { + if (str === undefined) { + if (this._usage) return this._usage; + + const args = this.registeredArguments.map((arg) => { + return humanReadableArgName(arg); + }); + return [] + .concat( + this.options.length || this._helpOption !== null ? '[options]' : [], + this.commands.length ? '[command]' : [], + this.registeredArguments.length ? args : [], + ) + .join(' '); + } + + this._usage = str; + return this; + } + + /** + * Get or set the name of the command. + * + * @param {string} [str] + * @return {(string|Command)} + */ + + name(str) { + if (str === undefined) return this._name; + this._name = str; + return this; + } + + /** + * Set/get the help group heading for this subcommand in parent command's help. + * + * @param {string} [heading] + * @return {Command | string} + */ + + helpGroup(heading) { + if (heading === undefined) return this._helpGroupHeading ?? ''; + this._helpGroupHeading = heading; + return this; + } + + /** + * Set/get the default help group heading for subcommands added to this command. + * (This does not override a group set directly on the subcommand using .helpGroup().) + * + * @example + * program.commandsGroup('Development Commands:); + * program.command('watch')... + * program.command('lint')... + * ... + * + * @param {string} [heading] + * @returns {Command | string} + */ + commandsGroup(heading) { + if (heading === undefined) return this._defaultCommandGroup ?? ''; + this._defaultCommandGroup = heading; + return this; + } + + /** + * Set/get the default help group heading for options added to this command. + * (This does not override a group set directly on the option using .helpGroup().) + * + * @example + * program + * .optionsGroup('Development Options:') + * .option('-d, --debug', 'output extra debugging') + * .option('-p, --profile', 'output profiling information') + * + * @param {string} [heading] + * @returns {Command | string} + */ + optionsGroup(heading) { + if (heading === undefined) return this._defaultOptionGroup ?? ''; + this._defaultOptionGroup = heading; + return this; + } + + /** + * @param {Option} option + * @private + */ + _initOptionGroup(option) { + if (this._defaultOptionGroup && !option.helpGroupHeading) + option.helpGroup(this._defaultOptionGroup); + } + + /** + * @param {Command} cmd + * @private + */ + _initCommandGroup(cmd) { + if (this._defaultCommandGroup && !cmd.helpGroup()) + cmd.helpGroup(this._defaultCommandGroup); + } + + /** + * Set the name of the command from script filename, such as process.argv[1], + * or require.main.filename, or __filename. + * + * (Used internally and public although not documented in README.) + * + * @example + * program.nameFromFilename(require.main.filename); + * + * @param {string} filename + * @return {Command} + */ + + nameFromFilename(filename) { + this._name = path.basename(filename, path.extname(filename)); + + return this; + } + + /** + * Get or set the directory for searching for executable subcommands of this command. + * + * @example + * program.executableDir(__dirname); + * // or + * program.executableDir('subcommands'); + * + * @param {string} [path] + * @return {(string|null|Command)} + */ + + executableDir(path) { + if (path === undefined) return this._executableDir; + this._executableDir = path; + return this; + } + + /** + * Return program help documentation. + * + * @param {{ error: boolean }} [contextOptions] - pass {error:true} to wrap for stderr instead of stdout + * @return {string} + */ + + helpInformation(contextOptions) { + const helper = this.createHelp(); + const context = this._getOutputContext(contextOptions); + helper.prepareContext({ + error: context.error, + helpWidth: context.helpWidth, + outputHasColors: context.hasColors, + }); + const text = helper.formatHelp(this, helper); + if (context.hasColors) return text; + return this._outputConfiguration.stripColor(text); + } + + /** + * @typedef HelpContext + * @type {object} + * @property {boolean} error + * @property {number} helpWidth + * @property {boolean} hasColors + * @property {function} write - includes stripColor if needed + * + * @returns {HelpContext} + * @private + */ + + _getOutputContext(contextOptions) { + contextOptions = contextOptions || {}; + const error = !!contextOptions.error; + let baseWrite; + let hasColors; + let helpWidth; + if (error) { + baseWrite = (str) => this._outputConfiguration.writeErr(str); + hasColors = this._outputConfiguration.getErrHasColors(); + helpWidth = this._outputConfiguration.getErrHelpWidth(); + } else { + baseWrite = (str) => this._outputConfiguration.writeOut(str); + hasColors = this._outputConfiguration.getOutHasColors(); + helpWidth = this._outputConfiguration.getOutHelpWidth(); + } + const write = (str) => { + if (!hasColors) str = this._outputConfiguration.stripColor(str); + return baseWrite(str); + }; + return { error, write, hasColors, helpWidth }; + } + + /** + * Output help information for this command. + * + * Outputs built-in help, and custom text added using `.addHelpText()`. + * + * @param {{ error: boolean } | Function} [contextOptions] - pass {error:true} to write to stderr instead of stdout + */ + + outputHelp(contextOptions) { + let deprecatedCallback; + if (typeof contextOptions === 'function') { + deprecatedCallback = contextOptions; + contextOptions = undefined; + } + + const outputContext = this._getOutputContext(contextOptions); + /** @type {HelpTextEventContext} */ + const eventContext = { + error: outputContext.error, + write: outputContext.write, + command: this, + }; + + this._getCommandAndAncestors() + .reverse() + .forEach((command) => command.emit('beforeAllHelp', eventContext)); + this.emit('beforeHelp', eventContext); + + let helpInformation = this.helpInformation({ error: outputContext.error }); + if (deprecatedCallback) { + helpInformation = deprecatedCallback(helpInformation); + if ( + typeof helpInformation !== 'string' && + !Buffer.isBuffer(helpInformation) + ) { + throw new Error('outputHelp callback must return a string or a Buffer'); + } + } + outputContext.write(helpInformation); + + if (this._getHelpOption()?.long) { + this.emit(this._getHelpOption().long); // deprecated + } + this.emit('afterHelp', eventContext); + this._getCommandAndAncestors().forEach((command) => + command.emit('afterAllHelp', eventContext), + ); + } + + /** + * You can pass in flags and a description to customise the built-in help option. + * Pass in false to disable the built-in help option. + * + * @example + * program.helpOption('-?, --help' 'show help'); // customise + * program.helpOption(false); // disable + * + * @param {(string | boolean)} flags + * @param {string} [description] + * @return {Command} `this` command for chaining + */ + + helpOption(flags, description) { + // Support enabling/disabling built-in help option. + if (typeof flags === 'boolean') { + if (flags) { + if (this._helpOption === null) this._helpOption = undefined; // reenable + if (this._defaultOptionGroup) { + // make the option to store the group + this._initOptionGroup(this._getHelpOption()); + } + } else { + this._helpOption = null; // disable + } + return this; + } + + // Customise flags and description. + this._helpOption = this.createOption( + flags ?? '-h, --help', + description ?? 'display help for command', + ); + // init group unless lazy create + if (flags || description) this._initOptionGroup(this._helpOption); + + return this; + } + + /** + * Lazy create help option. + * Returns null if has been disabled with .helpOption(false). + * + * @returns {(Option | null)} the help option + * @package + */ + _getHelpOption() { + // Lazy create help option on demand. + if (this._helpOption === undefined) { + this.helpOption(undefined, undefined); + } + return this._helpOption; + } + + /** + * Supply your own option to use for the built-in help option. + * This is an alternative to using helpOption() to customise the flags and description etc. + * + * @param {Option} option + * @return {Command} `this` command for chaining + */ + addHelpOption(option) { + this._helpOption = option; + this._initOptionGroup(option); + return this; + } + + /** + * Output help information and exit. + * + * Outputs built-in help, and custom text added using `.addHelpText()`. + * + * @param {{ error: boolean }} [contextOptions] - pass {error:true} to write to stderr instead of stdout + */ + + help(contextOptions) { + this.outputHelp(contextOptions); + let exitCode = Number(process.exitCode ?? 0); // process.exitCode does allow a string or an integer, but we prefer just a number + if ( + exitCode === 0 && + contextOptions && + typeof contextOptions !== 'function' && + contextOptions.error + ) { + exitCode = 1; + } + // message: do not have all displayed text available so only passing placeholder. + this._exit(exitCode, 'commander.help', '(outputHelp)'); + } + + /** + * // Do a little typing to coordinate emit and listener for the help text events. + * @typedef HelpTextEventContext + * @type {object} + * @property {boolean} error + * @property {Command} command + * @property {function} write + */ + + /** + * Add additional text to be displayed with the built-in help. + * + * Position is 'before' or 'after' to affect just this command, + * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands. + * + * @param {string} position - before or after built-in help + * @param {(string | Function)} text - string to add, or a function returning a string + * @return {Command} `this` command for chaining + */ + + addHelpText(position, text) { + const allowedValues = ['beforeAll', 'before', 'after', 'afterAll']; + if (!allowedValues.includes(position)) { + throw new Error(`Unexpected value for position to addHelpText. +Expecting one of '${allowedValues.join("', '")}'`); + } + + const helpEvent = `${position}Help`; + this.on(helpEvent, (/** @type {HelpTextEventContext} */ context) => { + let helpStr; + if (typeof text === 'function') { + helpStr = text({ error: context.error, command: context.command }); + } else { + helpStr = text; + } + // Ignore falsy value when nothing to output. + if (helpStr) { + context.write(`${helpStr}\n`); + } + }); + return this; + } + + /** + * Output help information if help flags specified + * + * @param {Array} args - array of options to search for help flags + * @private + */ + + _outputHelpIfRequested(args) { + const helpOption = this._getHelpOption(); + const helpRequested = helpOption && args.find((arg) => helpOption.is(arg)); + if (helpRequested) { + this.outputHelp(); + // (Do not have all displayed text available so only passing placeholder.) + this._exit(0, 'commander.helpDisplayed', '(outputHelp)'); + } + } +} + +/** + * Scan arguments and increment port number for inspect calls (to avoid conflicts when spawning new command). + * + * @param {string[]} args - array of arguments from node.execArgv + * @returns {string[]} + * @private + */ + +function incrementNodeInspectorPort(args) { + // Testing for these options: + // --inspect[=[host:]port] + // --inspect-brk[=[host:]port] + // --inspect-port=[host:]port + return args.map((arg) => { + if (!arg.startsWith('--inspect')) { + return arg; + } + let debugOption; + let debugHost = '127.0.0.1'; + let debugPort = '9229'; + let match; + if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) { + // e.g. --inspect + debugOption = match[1]; + } else if ( + (match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null + ) { + debugOption = match[1]; + if (/^\d+$/.test(match[3])) { + // e.g. --inspect=1234 + debugPort = match[3]; + } else { + // e.g. --inspect=localhost + debugHost = match[3]; + } + } else if ( + (match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null + ) { + // e.g. --inspect=localhost:1234 + debugOption = match[1]; + debugHost = match[3]; + debugPort = match[4]; + } + + if (debugOption && debugPort !== '0') { + return `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`; + } + return arg; + }); +} + +/** + * @returns {boolean | undefined} + * @package + */ +function useColor() { + // Test for common conventions. + // NB: the observed behaviour is in combination with how author adds color! For example: + // - we do not test NODE_DISABLE_COLORS, but util:styletext does + // - we do test NO_COLOR, but Chalk does not + // + // References: + // https://no-color.org + // https://bixense.com/clicolors/ + // https://github.com/nodejs/node/blob/0a00217a5f67ef4a22384cfc80eb6dd9a917fdc1/lib/internal/tty.js#L109 + // https://github.com/chalk/supports-color/blob/c214314a14bcb174b12b3014b2b0a8de375029ae/index.js#L33 + // (https://force-color.org recent web page from 2023, does not match major javascript implementations) + + if ( + process.env.NO_COLOR || + process.env.FORCE_COLOR === '0' || + process.env.FORCE_COLOR === 'false' + ) + return false; + if (process.env.FORCE_COLOR || process.env.CLICOLOR_FORCE !== undefined) + return true; + return undefined; +} + +exports.Command = Command; +exports.useColor = useColor; // exporting for tests diff --git a/plugins/screenrig/cli/node_modules/commander/lib/error.js b/plugins/screenrig/cli/node_modules/commander/lib/error.js new file mode 100644 index 00000000..7b5b0d39 --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/lib/error.js @@ -0,0 +1,39 @@ +/** + * CommanderError class + */ +class CommanderError extends Error { + /** + * Constructs the CommanderError class + * @param {number} exitCode suggested exit code which could be used with process.exit + * @param {string} code an id string representing the error + * @param {string} message human-readable description of the error + */ + constructor(exitCode, code, message) { + super(message); + // properly capture stack trace in Node.js + Error.captureStackTrace(this, this.constructor); + this.name = this.constructor.name; + this.code = code; + this.exitCode = exitCode; + this.nestedError = undefined; + } +} + +/** + * InvalidArgumentError class + */ +class InvalidArgumentError extends CommanderError { + /** + * Constructs the InvalidArgumentError class + * @param {string} [message] explanation of why argument is invalid + */ + constructor(message) { + super(1, 'commander.invalidArgument', message); + // properly capture stack trace in Node.js + Error.captureStackTrace(this, this.constructor); + this.name = this.constructor.name; + } +} + +exports.CommanderError = CommanderError; +exports.InvalidArgumentError = InvalidArgumentError; diff --git a/plugins/screenrig/cli/node_modules/commander/lib/help.js b/plugins/screenrig/cli/node_modules/commander/lib/help.js new file mode 100644 index 00000000..9cfa860e --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/lib/help.js @@ -0,0 +1,747 @@ +const { humanReadableArgName } = require('./argument.js'); + +/** + * TypeScript import types for JSDoc, used by Visual Studio Code IntelliSense and `npm run typescript-checkJS` + * https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#import-types + * @typedef { import("./argument.js").Argument } Argument + * @typedef { import("./command.js").Command } Command + * @typedef { import("./option.js").Option } Option + */ + +// Although this is a class, methods are static in style to allow override using subclass or just functions. +class Help { + constructor() { + this.helpWidth = undefined; + this.minWidthToWrap = 40; + this.sortSubcommands = false; + this.sortOptions = false; + this.showGlobalOptions = false; + } + + /** + * prepareContext is called by Commander after applying overrides from `Command.configureHelp()` + * and just before calling `formatHelp()`. + * + * Commander just uses the helpWidth and the rest is provided for optional use by more complex subclasses. + * + * @param {{ error?: boolean, helpWidth?: number, outputHasColors?: boolean }} contextOptions + */ + prepareContext(contextOptions) { + this.helpWidth = this.helpWidth ?? contextOptions.helpWidth ?? 80; + } + + /** + * Get an array of the visible subcommands. Includes a placeholder for the implicit help command, if there is one. + * + * @param {Command} cmd + * @returns {Command[]} + */ + + visibleCommands(cmd) { + const visibleCommands = cmd.commands.filter((cmd) => !cmd._hidden); + const helpCommand = cmd._getHelpCommand(); + if (helpCommand && !helpCommand._hidden) { + visibleCommands.push(helpCommand); + } + if (this.sortSubcommands) { + visibleCommands.sort((a, b) => { + // @ts-ignore: because overloaded return type + return a.name().localeCompare(b.name()); + }); + } + return visibleCommands; + } + + /** + * Compare options for sort. + * + * @param {Option} a + * @param {Option} b + * @returns {number} + */ + compareOptions(a, b) { + const getSortKey = (option) => { + // WYSIWYG for order displayed in help. Short used for comparison if present. No special handling for negated. + return option.short + ? option.short.replace(/^-/, '') + : option.long.replace(/^--/, ''); + }; + return getSortKey(a).localeCompare(getSortKey(b)); + } + + /** + * Get an array of the visible options. Includes a placeholder for the implicit help option, if there is one. + * + * @param {Command} cmd + * @returns {Option[]} + */ + + visibleOptions(cmd) { + const visibleOptions = cmd.options.filter((option) => !option.hidden); + // Built-in help option. + const helpOption = cmd._getHelpOption(); + if (helpOption && !helpOption.hidden) { + // Automatically hide conflicting flags. Bit dubious but a historical behaviour that is convenient for single-command programs. + const removeShort = helpOption.short && cmd._findOption(helpOption.short); + const removeLong = helpOption.long && cmd._findOption(helpOption.long); + if (!removeShort && !removeLong) { + visibleOptions.push(helpOption); // no changes needed + } else if (helpOption.long && !removeLong) { + visibleOptions.push( + cmd.createOption(helpOption.long, helpOption.description), + ); + } else if (helpOption.short && !removeShort) { + visibleOptions.push( + cmd.createOption(helpOption.short, helpOption.description), + ); + } + } + if (this.sortOptions) { + visibleOptions.sort(this.compareOptions); + } + return visibleOptions; + } + + /** + * Get an array of the visible global options. (Not including help.) + * + * @param {Command} cmd + * @returns {Option[]} + */ + + visibleGlobalOptions(cmd) { + if (!this.showGlobalOptions) return []; + + const globalOptions = []; + for ( + let ancestorCmd = cmd.parent; + ancestorCmd; + ancestorCmd = ancestorCmd.parent + ) { + const visibleOptions = ancestorCmd.options.filter( + (option) => !option.hidden, + ); + globalOptions.push(...visibleOptions); + } + if (this.sortOptions) { + globalOptions.sort(this.compareOptions); + } + return globalOptions; + } + + /** + * Get an array of the arguments if any have a description. + * + * @param {Command} cmd + * @returns {Argument[]} + */ + + visibleArguments(cmd) { + // Side effect! Apply the legacy descriptions before the arguments are displayed. + if (cmd._argsDescription) { + cmd.registeredArguments.forEach((argument) => { + argument.description = + argument.description || cmd._argsDescription[argument.name()] || ''; + }); + } + + // If there are any arguments with a description then return all the arguments. + if (cmd.registeredArguments.find((argument) => argument.description)) { + return cmd.registeredArguments; + } + return []; + } + + /** + * Get the command term to show in the list of subcommands. + * + * @param {Command} cmd + * @returns {string} + */ + + subcommandTerm(cmd) { + // Legacy. Ignores custom usage string, and nested commands. + const args = cmd.registeredArguments + .map((arg) => humanReadableArgName(arg)) + .join(' '); + return ( + cmd._name + + (cmd._aliases[0] ? '|' + cmd._aliases[0] : '') + + (cmd.options.length ? ' [options]' : '') + // simplistic check for non-help option + (args ? ' ' + args : '') + ); + } + + /** + * Get the option term to show in the list of options. + * + * @param {Option} option + * @returns {string} + */ + + optionTerm(option) { + return option.flags; + } + + /** + * Get the argument term to show in the list of arguments. + * + * @param {Argument} argument + * @returns {string} + */ + + argumentTerm(argument) { + return argument.name(); + } + + /** + * Get the longest command term length. + * + * @param {Command} cmd + * @param {Help} helper + * @returns {number} + */ + + longestSubcommandTermLength(cmd, helper) { + return helper.visibleCommands(cmd).reduce((max, command) => { + return Math.max( + max, + this.displayWidth( + helper.styleSubcommandTerm(helper.subcommandTerm(command)), + ), + ); + }, 0); + } + + /** + * Get the longest option term length. + * + * @param {Command} cmd + * @param {Help} helper + * @returns {number} + */ + + longestOptionTermLength(cmd, helper) { + return helper.visibleOptions(cmd).reduce((max, option) => { + return Math.max( + max, + this.displayWidth(helper.styleOptionTerm(helper.optionTerm(option))), + ); + }, 0); + } + + /** + * Get the longest global option term length. + * + * @param {Command} cmd + * @param {Help} helper + * @returns {number} + */ + + longestGlobalOptionTermLength(cmd, helper) { + return helper.visibleGlobalOptions(cmd).reduce((max, option) => { + return Math.max( + max, + this.displayWidth(helper.styleOptionTerm(helper.optionTerm(option))), + ); + }, 0); + } + + /** + * Get the longest argument term length. + * + * @param {Command} cmd + * @param {Help} helper + * @returns {number} + */ + + longestArgumentTermLength(cmd, helper) { + return helper.visibleArguments(cmd).reduce((max, argument) => { + return Math.max( + max, + this.displayWidth( + helper.styleArgumentTerm(helper.argumentTerm(argument)), + ), + ); + }, 0); + } + + /** + * Get the command usage to be displayed at the top of the built-in help. + * + * @param {Command} cmd + * @returns {string} + */ + + commandUsage(cmd) { + // Usage + let cmdName = cmd._name; + if (cmd._aliases[0]) { + cmdName = cmdName + '|' + cmd._aliases[0]; + } + let ancestorCmdNames = ''; + for ( + let ancestorCmd = cmd.parent; + ancestorCmd; + ancestorCmd = ancestorCmd.parent + ) { + ancestorCmdNames = ancestorCmd.name() + ' ' + ancestorCmdNames; + } + return ancestorCmdNames + cmdName + ' ' + cmd.usage(); + } + + /** + * Get the description for the command. + * + * @param {Command} cmd + * @returns {string} + */ + + commandDescription(cmd) { + // @ts-ignore: because overloaded return type + return cmd.description(); + } + + /** + * Get the subcommand summary to show in the list of subcommands. + * (Fallback to description for backwards compatibility.) + * + * @param {Command} cmd + * @returns {string} + */ + + subcommandDescription(cmd) { + // @ts-ignore: because overloaded return type + return cmd.summary() || cmd.description(); + } + + /** + * Get the option description to show in the list of options. + * + * @param {Option} option + * @return {string} + */ + + optionDescription(option) { + const extraInfo = []; + + if (option.argChoices) { + extraInfo.push( + // use stringify to match the display of the default value + `choices: ${option.argChoices.map((choice) => JSON.stringify(choice)).join(', ')}`, + ); + } + if (option.defaultValue !== undefined) { + // default for boolean and negated more for programmer than end user, + // but show true/false for boolean option as may be for hand-rolled env or config processing. + const showDefault = + option.required || + option.optional || + (option.isBoolean() && typeof option.defaultValue === 'boolean'); + if (showDefault) { + extraInfo.push( + `default: ${option.defaultValueDescription || JSON.stringify(option.defaultValue)}`, + ); + } + } + // preset for boolean and negated are more for programmer than end user + if (option.presetArg !== undefined && option.optional) { + extraInfo.push(`preset: ${JSON.stringify(option.presetArg)}`); + } + if (option.envVar !== undefined) { + extraInfo.push(`env: ${option.envVar}`); + } + if (extraInfo.length > 0) { + const extraDescription = `(${extraInfo.join(', ')})`; + if (option.description) { + return `${option.description} ${extraDescription}`; + } + return extraDescription; + } + + return option.description; + } + + /** + * Get the argument description to show in the list of arguments. + * + * @param {Argument} argument + * @return {string} + */ + + argumentDescription(argument) { + const extraInfo = []; + if (argument.argChoices) { + extraInfo.push( + // use stringify to match the display of the default value + `choices: ${argument.argChoices.map((choice) => JSON.stringify(choice)).join(', ')}`, + ); + } + if (argument.defaultValue !== undefined) { + extraInfo.push( + `default: ${argument.defaultValueDescription || JSON.stringify(argument.defaultValue)}`, + ); + } + if (extraInfo.length > 0) { + const extraDescription = `(${extraInfo.join(', ')})`; + if (argument.description) { + return `${argument.description} ${extraDescription}`; + } + return extraDescription; + } + return argument.description; + } + + /** + * Format a list of items, given a heading and an array of formatted items. + * + * @param {string} heading + * @param {string[]} items + * @param {Help} helper + * @returns string[] + */ + formatItemList(heading, items, helper) { + if (items.length === 0) return []; + + return [helper.styleTitle(heading), ...items, '']; + } + + /** + * Group items by their help group heading. + * + * @param {Command[] | Option[]} unsortedItems + * @param {Command[] | Option[]} visibleItems + * @param {Function} getGroup + * @returns {Map<string, Command[] | Option[]>} + */ + groupItems(unsortedItems, visibleItems, getGroup) { + const result = new Map(); + // Add groups in order of appearance in unsortedItems. + unsortedItems.forEach((item) => { + const group = getGroup(item); + if (!result.has(group)) result.set(group, []); + }); + // Add items in order of appearance in visibleItems. + visibleItems.forEach((item) => { + const group = getGroup(item); + if (!result.has(group)) { + result.set(group, []); + } + result.get(group).push(item); + }); + return result; + } + + /** + * Generate the built-in help text. + * + * @param {Command} cmd + * @param {Help} helper + * @returns {string} + */ + + formatHelp(cmd, helper) { + const termWidth = helper.padWidth(cmd, helper); + const helpWidth = helper.helpWidth ?? 80; // in case prepareContext() was not called + + function callFormatItem(term, description) { + return helper.formatItem(term, termWidth, description, helper); + } + + // Usage + let output = [ + `${helper.styleTitle('Usage:')} ${helper.styleUsage(helper.commandUsage(cmd))}`, + '', + ]; + + // Description + const commandDescription = helper.commandDescription(cmd); + if (commandDescription.length > 0) { + output = output.concat([ + helper.boxWrap( + helper.styleCommandDescription(commandDescription), + helpWidth, + ), + '', + ]); + } + + // Arguments + const argumentList = helper.visibleArguments(cmd).map((argument) => { + return callFormatItem( + helper.styleArgumentTerm(helper.argumentTerm(argument)), + helper.styleArgumentDescription(helper.argumentDescription(argument)), + ); + }); + output = output.concat( + this.formatItemList('Arguments:', argumentList, helper), + ); + + // Options + const optionGroups = this.groupItems( + cmd.options, + helper.visibleOptions(cmd), + (option) => option.helpGroupHeading ?? 'Options:', + ); + optionGroups.forEach((options, group) => { + const optionList = options.map((option) => { + return callFormatItem( + helper.styleOptionTerm(helper.optionTerm(option)), + helper.styleOptionDescription(helper.optionDescription(option)), + ); + }); + output = output.concat(this.formatItemList(group, optionList, helper)); + }); + + if (helper.showGlobalOptions) { + const globalOptionList = helper + .visibleGlobalOptions(cmd) + .map((option) => { + return callFormatItem( + helper.styleOptionTerm(helper.optionTerm(option)), + helper.styleOptionDescription(helper.optionDescription(option)), + ); + }); + output = output.concat( + this.formatItemList('Global Options:', globalOptionList, helper), + ); + } + + // Commands + const commandGroups = this.groupItems( + cmd.commands, + helper.visibleCommands(cmd), + (sub) => sub.helpGroup() || 'Commands:', + ); + commandGroups.forEach((commands, group) => { + const commandList = commands.map((sub) => { + return callFormatItem( + helper.styleSubcommandTerm(helper.subcommandTerm(sub)), + helper.styleSubcommandDescription(helper.subcommandDescription(sub)), + ); + }); + output = output.concat(this.formatItemList(group, commandList, helper)); + }); + + return output.join('\n'); + } + + /** + * Return display width of string, ignoring ANSI escape sequences. Used in padding and wrapping calculations. + * + * @param {string} str + * @returns {number} + */ + displayWidth(str) { + return stripColor(str).length; + } + + /** + * Style the title for displaying in the help. Called with 'Usage:', 'Options:', etc. + * + * @param {string} str + * @returns {string} + */ + styleTitle(str) { + return str; + } + + styleUsage(str) { + // Usage has lots of parts the user might like to color separately! Assume default usage string which is formed like: + // command subcommand [options] [command] <foo> [bar] + return str + .split(' ') + .map((word) => { + if (word === '[options]') return this.styleOptionText(word); + if (word === '[command]') return this.styleSubcommandText(word); + if (word[0] === '[' || word[0] === '<') + return this.styleArgumentText(word); + return this.styleCommandText(word); // Restrict to initial words? + }) + .join(' '); + } + styleCommandDescription(str) { + return this.styleDescriptionText(str); + } + styleOptionDescription(str) { + return this.styleDescriptionText(str); + } + styleSubcommandDescription(str) { + return this.styleDescriptionText(str); + } + styleArgumentDescription(str) { + return this.styleDescriptionText(str); + } + styleDescriptionText(str) { + return str; + } + styleOptionTerm(str) { + return this.styleOptionText(str); + } + styleSubcommandTerm(str) { + // This is very like usage with lots of parts! Assume default string which is formed like: + // subcommand [options] <foo> [bar] + return str + .split(' ') + .map((word) => { + if (word === '[options]') return this.styleOptionText(word); + if (word[0] === '[' || word[0] === '<') + return this.styleArgumentText(word); + return this.styleSubcommandText(word); // Restrict to initial words? + }) + .join(' '); + } + styleArgumentTerm(str) { + return this.styleArgumentText(str); + } + styleOptionText(str) { + return str; + } + styleArgumentText(str) { + return str; + } + styleSubcommandText(str) { + return str; + } + styleCommandText(str) { + return str; + } + + /** + * Calculate the pad width from the maximum term length. + * + * @param {Command} cmd + * @param {Help} helper + * @returns {number} + */ + + padWidth(cmd, helper) { + return Math.max( + helper.longestOptionTermLength(cmd, helper), + helper.longestGlobalOptionTermLength(cmd, helper), + helper.longestSubcommandTermLength(cmd, helper), + helper.longestArgumentTermLength(cmd, helper), + ); + } + + /** + * Detect manually wrapped and indented strings by checking for line break followed by whitespace. + * + * @param {string} str + * @returns {boolean} + */ + preformatted(str) { + return /\n[^\S\r\n]/.test(str); + } + + /** + * Format the "item", which consists of a term and description. Pad the term and wrap the description, indenting the following lines. + * + * So "TTT", 5, "DDD DDDD DD DDD" might be formatted for this.helpWidth=17 like so: + * TTT DDD DDDD + * DD DDD + * + * @param {string} term + * @param {number} termWidth + * @param {string} description + * @param {Help} helper + * @returns {string} + */ + formatItem(term, termWidth, description, helper) { + const itemIndent = 2; + const itemIndentStr = ' '.repeat(itemIndent); + if (!description) return itemIndentStr + term; + + // Pad the term out to a consistent width, so descriptions are aligned. + const paddedTerm = term.padEnd( + termWidth + term.length - helper.displayWidth(term), + ); + + // Format the description. + const spacerWidth = 2; // between term and description + const helpWidth = this.helpWidth ?? 80; // in case prepareContext() was not called + const remainingWidth = helpWidth - termWidth - spacerWidth - itemIndent; + let formattedDescription; + if ( + remainingWidth < this.minWidthToWrap || + helper.preformatted(description) + ) { + formattedDescription = description; + } else { + const wrappedDescription = helper.boxWrap(description, remainingWidth); + formattedDescription = wrappedDescription.replace( + /\n/g, + '\n' + ' '.repeat(termWidth + spacerWidth), + ); + } + + // Construct and overall indent. + return ( + itemIndentStr + + paddedTerm + + ' '.repeat(spacerWidth) + + formattedDescription.replace(/\n/g, `\n${itemIndentStr}`) + ); + } + + /** + * Wrap a string at whitespace, preserving existing line breaks. + * Wrapping is skipped if the width is less than `minWidthToWrap`. + * + * @param {string} str + * @param {number} width + * @returns {string} + */ + boxWrap(str, width) { + if (width < this.minWidthToWrap) return str; + + const rawLines = str.split(/\r\n|\n/); + // split up text by whitespace + const chunkPattern = /[\s]*[^\s]+/g; + const wrappedLines = []; + rawLines.forEach((line) => { + const chunks = line.match(chunkPattern); + if (chunks === null) { + wrappedLines.push(''); + return; + } + + let sumChunks = [chunks.shift()]; + let sumWidth = this.displayWidth(sumChunks[0]); + chunks.forEach((chunk) => { + const visibleWidth = this.displayWidth(chunk); + // Accumulate chunks while they fit into width. + if (sumWidth + visibleWidth <= width) { + sumChunks.push(chunk); + sumWidth += visibleWidth; + return; + } + wrappedLines.push(sumChunks.join('')); + + const nextChunk = chunk.trimStart(); // trim space at line break + sumChunks = [nextChunk]; + sumWidth = this.displayWidth(nextChunk); + }); + wrappedLines.push(sumChunks.join('')); + }); + + return wrappedLines.join('\n'); + } +} + +/** + * Strip style ANSI escape sequences from the string. In particular, SGR (Select Graphic Rendition) codes. + * + * @param {string} str + * @returns {string} + * @package + */ + +function stripColor(str) { + // eslint-disable-next-line no-control-regex + const sgrPattern = /\x1b\[\d*(;\d*)*m/g; + return str.replace(sgrPattern, ''); +} + +exports.Help = Help; +exports.stripColor = stripColor; diff --git a/plugins/screenrig/cli/node_modules/commander/lib/option.js b/plugins/screenrig/cli/node_modules/commander/lib/option.js new file mode 100644 index 00000000..4a0bd7fa --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/lib/option.js @@ -0,0 +1,380 @@ +const { InvalidArgumentError } = require('./error.js'); + +class Option { + /** + * Initialize a new `Option` with the given `flags` and `description`. + * + * @param {string} flags + * @param {string} [description] + */ + + constructor(flags, description) { + this.flags = flags; + this.description = description || ''; + + this.required = flags.includes('<'); // A value must be supplied when the option is specified. + this.optional = flags.includes('['); // A value is optional when the option is specified. + // variadic test ignores <value,...> et al which might be used to describe custom splitting of single argument + this.variadic = /\w\.\.\.[>\]]$/.test(flags); // The option can take multiple values. + this.mandatory = false; // The option must have a value after parsing, which usually means it must be specified on command line. + const optionFlags = splitOptionFlags(flags); + this.short = optionFlags.shortFlag; // May be a short flag, undefined, or even a long flag (if option has two long flags). + this.long = optionFlags.longFlag; + this.negate = false; + if (this.long) { + this.negate = this.long.startsWith('--no-'); + } + this.defaultValue = undefined; + this.defaultValueDescription = undefined; + this.presetArg = undefined; + this.envVar = undefined; + this.parseArg = undefined; + this.hidden = false; + this.argChoices = undefined; + this.conflictsWith = []; + this.implied = undefined; + this.helpGroupHeading = undefined; // soft initialised when option added to command + } + + /** + * Set the default value, and optionally supply the description to be displayed in the help. + * + * @param {*} value + * @param {string} [description] + * @return {Option} + */ + + default(value, description) { + this.defaultValue = value; + this.defaultValueDescription = description; + return this; + } + + /** + * Preset to use when option used without option-argument, especially optional but also boolean and negated. + * The custom processing (parseArg) is called. + * + * @example + * new Option('--color').default('GREYSCALE').preset('RGB'); + * new Option('--donate [amount]').preset('20').argParser(parseFloat); + * + * @param {*} arg + * @return {Option} + */ + + preset(arg) { + this.presetArg = arg; + return this; + } + + /** + * Add option name(s) that conflict with this option. + * An error will be displayed if conflicting options are found during parsing. + * + * @example + * new Option('--rgb').conflicts('cmyk'); + * new Option('--js').conflicts(['ts', 'jsx']); + * + * @param {(string | string[])} names + * @return {Option} + */ + + conflicts(names) { + this.conflictsWith = this.conflictsWith.concat(names); + return this; + } + + /** + * Specify implied option values for when this option is set and the implied options are not. + * + * The custom processing (parseArg) is not called on the implied values. + * + * @example + * program + * .addOption(new Option('--log', 'write logging information to file')) + * .addOption(new Option('--trace', 'log extra details').implies({ log: 'trace.txt' })); + * + * @param {object} impliedOptionValues + * @return {Option} + */ + implies(impliedOptionValues) { + let newImplied = impliedOptionValues; + if (typeof impliedOptionValues === 'string') { + // string is not documented, but easy mistake and we can do what user probably intended. + newImplied = { [impliedOptionValues]: true }; + } + this.implied = Object.assign(this.implied || {}, newImplied); + return this; + } + + /** + * Set environment variable to check for option value. + * + * An environment variable is only used if when processed the current option value is + * undefined, or the source of the current value is 'default' or 'config' or 'env'. + * + * @param {string} name + * @return {Option} + */ + + env(name) { + this.envVar = name; + return this; + } + + /** + * Set the custom handler for processing CLI option arguments into option values. + * + * @param {Function} [fn] + * @return {Option} + */ + + argParser(fn) { + this.parseArg = fn; + return this; + } + + /** + * Whether the option is mandatory and must have a value after parsing. + * + * @param {boolean} [mandatory=true] + * @return {Option} + */ + + makeOptionMandatory(mandatory = true) { + this.mandatory = !!mandatory; + return this; + } + + /** + * Hide option in help. + * + * @param {boolean} [hide=true] + * @return {Option} + */ + + hideHelp(hide = true) { + this.hidden = !!hide; + return this; + } + + /** + * @package + */ + + _collectValue(value, previous) { + if (previous === this.defaultValue || !Array.isArray(previous)) { + return [value]; + } + + previous.push(value); + return previous; + } + + /** + * Only allow option value to be one of choices. + * + * @param {string[]} values + * @return {Option} + */ + + choices(values) { + this.argChoices = values.slice(); + this.parseArg = (arg, previous) => { + if (!this.argChoices.includes(arg)) { + throw new InvalidArgumentError( + `Allowed choices are ${this.argChoices.join(', ')}.`, + ); + } + if (this.variadic) { + return this._collectValue(arg, previous); + } + return arg; + }; + return this; + } + + /** + * Return option name. + * + * @return {string} + */ + + name() { + if (this.long) { + return this.long.replace(/^--/, ''); + } + return this.short.replace(/^-/, ''); + } + + /** + * Return option name, in a camelcase format that can be used + * as an object attribute key. + * + * @return {string} + */ + + attributeName() { + if (this.negate) { + return camelcase(this.name().replace(/^no-/, '')); + } + return camelcase(this.name()); + } + + /** + * Set the help group heading. + * + * @param {string} heading + * @return {Option} + */ + helpGroup(heading) { + this.helpGroupHeading = heading; + return this; + } + + /** + * Check if `arg` matches the short or long flag. + * + * @param {string} arg + * @return {boolean} + * @package + */ + + is(arg) { + return this.short === arg || this.long === arg; + } + + /** + * Return whether a boolean option. + * + * Options are one of boolean, negated, required argument, or optional argument. + * + * @return {boolean} + * @package + */ + + isBoolean() { + return !this.required && !this.optional && !this.negate; + } +} + +/** + * This class is to make it easier to work with dual options, without changing the existing + * implementation. We support separate dual options for separate positive and negative options, + * like `--build` and `--no-build`, which share a single option value. This works nicely for some + * use cases, but is tricky for others where we want separate behaviours despite + * the single shared option value. + */ +class DualOptions { + /** + * @param {Option[]} options + */ + constructor(options) { + this.positiveOptions = new Map(); + this.negativeOptions = new Map(); + this.dualOptions = new Set(); + options.forEach((option) => { + if (option.negate) { + this.negativeOptions.set(option.attributeName(), option); + } else { + this.positiveOptions.set(option.attributeName(), option); + } + }); + this.negativeOptions.forEach((value, key) => { + if (this.positiveOptions.has(key)) { + this.dualOptions.add(key); + } + }); + } + + /** + * Did the value come from the option, and not from possible matching dual option? + * + * @param {*} value + * @param {Option} option + * @returns {boolean} + */ + valueFromOption(value, option) { + const optionKey = option.attributeName(); + if (!this.dualOptions.has(optionKey)) return true; + + // Use the value to deduce if (probably) came from the option. + const preset = this.negativeOptions.get(optionKey).presetArg; + const negativeValue = preset !== undefined ? preset : false; + return option.negate === (negativeValue === value); + } +} + +/** + * Convert string from kebab-case to camelCase. + * + * @param {string} str + * @return {string} + * @private + */ + +function camelcase(str) { + return str.split('-').reduce((str, word) => { + return str + word[0].toUpperCase() + word.slice(1); + }); +} + +/** + * Split the short and long flag out of something like '-m,--mixed <value>' + * + * @private + */ + +function splitOptionFlags(flags) { + let shortFlag; + let longFlag; + // short flag, single dash and single character + const shortFlagExp = /^-[^-]$/; + // long flag, double dash and at least one character + const longFlagExp = /^--[^-]/; + + const flagParts = flags.split(/[ |,]+/).concat('guard'); + // Normal is short and/or long. + if (shortFlagExp.test(flagParts[0])) shortFlag = flagParts.shift(); + if (longFlagExp.test(flagParts[0])) longFlag = flagParts.shift(); + // Long then short. Rarely used but fine. + if (!shortFlag && shortFlagExp.test(flagParts[0])) + shortFlag = flagParts.shift(); + // Allow two long flags, like '--ws, --workspace' + // This is the supported way to have a shortish option flag. + if (!shortFlag && longFlagExp.test(flagParts[0])) { + shortFlag = longFlag; + longFlag = flagParts.shift(); + } + + // Check for unprocessed flag. Fail noisily rather than silently ignore. + if (flagParts[0].startsWith('-')) { + const unsupportedFlag = flagParts[0]; + const baseError = `option creation failed due to '${unsupportedFlag}' in option flags '${flags}'`; + if (/^-[^-][^-]/.test(unsupportedFlag)) + throw new Error( + `${baseError} +- a short flag is a single dash and a single character + - either use a single dash and a single character (for a short flag) + - or use a double dash for a long option (and can have two, like '--ws, --workspace')`, + ); + if (shortFlagExp.test(unsupportedFlag)) + throw new Error(`${baseError} +- too many short flags`); + if (longFlagExp.test(unsupportedFlag)) + throw new Error(`${baseError} +- too many long flags`); + + throw new Error(`${baseError} +- unrecognised flag format`); + } + if (shortFlag === undefined && longFlag === undefined) + throw new Error( + `option creation failed due to no flags found in '${flags}'.`, + ); + + return { shortFlag, longFlag }; +} + +exports.Option = Option; +exports.DualOptions = DualOptions; diff --git a/plugins/screenrig/cli/node_modules/commander/lib/suggestSimilar.js b/plugins/screenrig/cli/node_modules/commander/lib/suggestSimilar.js new file mode 100644 index 00000000..6047306d --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/lib/suggestSimilar.js @@ -0,0 +1,101 @@ +const maxDistance = 3; + +function editDistance(a, b) { + // https://en.wikipedia.org/wiki/Damerau–Levenshtein_distance + // Calculating optimal string alignment distance, no substring is edited more than once. + // (Simple implementation.) + + // Quick early exit, return worst case. + if (Math.abs(a.length - b.length) > maxDistance) + return Math.max(a.length, b.length); + + // distance between prefix substrings of a and b + const d = []; + + // pure deletions turn a into empty string + for (let i = 0; i <= a.length; i++) { + d[i] = [i]; + } + // pure insertions turn empty string into b + for (let j = 0; j <= b.length; j++) { + d[0][j] = j; + } + + // fill matrix + for (let j = 1; j <= b.length; j++) { + for (let i = 1; i <= a.length; i++) { + let cost = 1; + if (a[i - 1] === b[j - 1]) { + cost = 0; + } else { + cost = 1; + } + d[i][j] = Math.min( + d[i - 1][j] + 1, // deletion + d[i][j - 1] + 1, // insertion + d[i - 1][j - 1] + cost, // substitution + ); + // transposition + if (i > 1 && j > 1 && a[i - 1] === b[j - 2] && a[i - 2] === b[j - 1]) { + d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + 1); + } + } + } + + return d[a.length][b.length]; +} + +/** + * Find close matches, restricted to same number of edits. + * + * @param {string} word + * @param {string[]} candidates + * @returns {string} + */ + +function suggestSimilar(word, candidates) { + if (!candidates || candidates.length === 0) return ''; + // remove possible duplicates + candidates = Array.from(new Set(candidates)); + + const searchingOptions = word.startsWith('--'); + if (searchingOptions) { + word = word.slice(2); + candidates = candidates.map((candidate) => candidate.slice(2)); + } + + let similar = []; + let bestDistance = maxDistance; + const minSimilarity = 0.4; + candidates.forEach((candidate) => { + if (candidate.length <= 1) return; // no one character guesses + + const distance = editDistance(word, candidate); + const length = Math.max(word.length, candidate.length); + const similarity = (length - distance) / length; + if (similarity > minSimilarity) { + if (distance < bestDistance) { + // better edit distance, throw away previous worse matches + bestDistance = distance; + similar = [candidate]; + } else if (distance === bestDistance) { + similar.push(candidate); + } + } + }); + + similar.sort((a, b) => a.localeCompare(b)); + if (searchingOptions) { + similar = similar.map((candidate) => `--${candidate}`); + } + + if (similar.length > 1) { + return `\n(Did you mean one of ${similar.join(', ')}?)`; + } + if (similar.length === 1) { + return `\n(Did you mean ${similar[0]}?)`; + } + return ''; +} + +exports.suggestSimilar = suggestSimilar; diff --git a/plugins/screenrig/cli/node_modules/commander/package-support.json b/plugins/screenrig/cli/node_modules/commander/package-support.json new file mode 100644 index 00000000..47c9b3a0 --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/package-support.json @@ -0,0 +1,19 @@ +{ + "versions": [ + { + "version": "*", + "target": { + "node": "supported" + }, + "response": { + "type": "time-permitting" + }, + "backing": { + "donations": [ + "https://github.com/sponsors/abetomo", + "https://github.com/sponsors/shadowspawn" + ] + } + } + ] +} diff --git a/plugins/screenrig/cli/node_modules/commander/package.json b/plugins/screenrig/cli/node_modules/commander/package.json new file mode 100644 index 00000000..037b699b --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/package.json @@ -0,0 +1,82 @@ +{ + "name": "commander", + "version": "14.0.3", + "description": "the complete solution for node.js command-line programs", + "keywords": [ + "commander", + "command", + "option", + "parser", + "cli", + "argument", + "args", + "argv" + ], + "author": "TJ Holowaychuk <tj@vision-media.ca>", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/tj/commander.js.git" + }, + "scripts": { + "check": "npm run check:type && npm run check:lint && npm run check:format", + "check:format": "prettier --check .", + "check:lint": "eslint .", + "check:type": "npm run check:type:js && npm run check:type:ts", + "check:type:ts": "tsd && tsc -p tsconfig.ts.json", + "check:type:js": "tsc -p tsconfig.js.json", + "fix": "npm run fix:lint && npm run fix:format", + "fix:format": "prettier --write .", + "fix:lint": "eslint --fix .", + "test": "jest && npm run check:type:ts", + "test-all": "jest && npm run test-esm && npm run check", + "test-esm": "node ./tests/esm-imports-test.mjs" + }, + "files": [ + "index.js", + "lib/*.js", + "esm.mjs", + "typings/index.d.ts", + "typings/esm.d.mts", + "package-support.json" + ], + "type": "commonjs", + "main": "./index.js", + "exports": { + ".": { + "require": { + "types": "./typings/index.d.ts", + "default": "./index.js" + }, + "import": { + "types": "./typings/esm.d.mts", + "default": "./esm.mjs" + }, + "default": "./index.js" + }, + "./esm.mjs": { + "types": "./typings/esm.d.mts", + "import": "./esm.mjs" + } + }, + "devDependencies": { + "@eslint/js": "^9.4.0", + "@types/jest": "^30.0.0", + "@types/node": "^22.7.4", + "eslint": "^9.17.0", + "eslint-config-prettier": "^10.0.1", + "eslint-plugin-jest": "^29.0.1", + "globals": "^16.0.0", + "jest": "^30.0.3", + "prettier": "^3.2.5", + "ts-jest": "^29.0.3", + "tsd": "^0.33.0", + "typescript": "^5.0.4", + "typescript-eslint": "^8.12.2" + }, + "types": "typings/index.d.ts", + "engines": { + "node": ">=20" + }, + "support": true +} diff --git a/plugins/screenrig/cli/node_modules/commander/typings/esm.d.mts b/plugins/screenrig/cli/node_modules/commander/typings/esm.d.mts new file mode 100644 index 00000000..40b0230e --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/typings/esm.d.mts @@ -0,0 +1,3 @@ +// Just reexport the types from cjs +// This is a bit indirect. There is not an index.js, but TypeScript will look for index.d.ts for types. +export * from './index.js'; diff --git a/plugins/screenrig/cli/node_modules/commander/typings/index.d.ts b/plugins/screenrig/cli/node_modules/commander/typings/index.d.ts new file mode 100644 index 00000000..9ef79355 --- /dev/null +++ b/plugins/screenrig/cli/node_modules/commander/typings/index.d.ts @@ -0,0 +1,1113 @@ +// Type definitions for commander +// Original definitions by: Alan Agius <https://github.com/alan-agius4>, Marcelo Dezem <https://github.com/mdezem>, vvakame <https://github.com/vvakame>, Jules Randolph <https://github.com/sveinburne> + +/* eslint-disable @typescript-eslint/no-explicit-any */ + +// This is a trick to encourage editor to suggest the known literals while still +// allowing any BaseType value. +// References: +// - https://github.com/microsoft/TypeScript/issues/29729 +// - https://github.com/sindresorhus/type-fest/blob/main/source/literal-union.d.ts +// - https://github.com/sindresorhus/type-fest/blob/main/source/primitive.d.ts +type LiteralUnion<LiteralType, BaseType extends string | number> = + | LiteralType + | (BaseType & Record<never, never>); + +export class CommanderError extends Error { + code: string; + exitCode: number; + message: string; + nestedError?: string; + + /** + * Constructs the CommanderError class + * @param exitCode - suggested exit code which could be used with process.exit + * @param code - an id string representing the error + * @param message - human-readable description of the error + */ + constructor(exitCode: number, code: string, message: string); +} + +export class InvalidArgumentError extends CommanderError { + /** + * Constructs the InvalidArgumentError class + * @param message - explanation of why argument is invalid + */ + constructor(message: string); +} +export { InvalidArgumentError as InvalidOptionArgumentError }; // deprecated old name + +export interface ErrorOptions { + // optional parameter for error() + /** an id string representing the error */ + code?: string; + /** suggested exit code which could be used with process.exit */ + exitCode?: number; +} + +export class Argument { + description: string; + required: boolean; + variadic: boolean; + defaultValue?: any; + defaultValueDescription?: string; + parseArg?: <T>(value: string, previous: T) => T; + argChoices?: string[]; + + /** + * Initialize a new command argument with the given name and description. + * The default is that the argument is required, and you can explicitly + * indicate this with <> around the name. Put [] around the name for an optional argument. + */ + constructor(arg: string, description?: string); + + /** + * Return argument name. + */ + name(): string; + + /** + * Set the default value, and optionally supply the description to be displayed in the help. + */ + default(value: unknown, description?: string): this; + + /** + * Set the custom handler for processing CLI command arguments into argument values. + */ + argParser<T>(fn: (value: string, previous: T) => T): this; + + /** + * Only allow argument value to be one of choices. + */ + choices(values: readonly string[]): this; + + /** + * Make argument required. + */ + argRequired(): this; + + /** + * Make argument optional. + */ + argOptional(): this; +} + +export class Option { + flags: string; + description: string; + + required: boolean; // A value must be supplied when the option is specified. + optional: boolean; // A value is optional when the option is specified. + variadic: boolean; + mandatory: boolean; // The option must have a value after parsing, which usually means it must be specified on command line. + short?: string; + long?: string; + negate: boolean; + defaultValue?: any; + defaultValueDescription?: string; + presetArg?: unknown; + envVar?: string; + parseArg?: <T>(value: string, previous: T) => T; + hidden: boolean; + argChoices?: string[]; + helpGroupHeading?: string; + + constructor(flags: string, description?: string); + + /** + * Set the default value, and optionally supply the description to be displayed in the help. + */ + default(value: unknown, description?: string): this; + + /** + * Preset to use when option used without option-argument, especially optional but also boolean and negated. + * The custom processing (parseArg) is called. + * + * @example + * ```ts + * new Option('--color').default('GREYSCALE').preset('RGB'); + * new Option('--donate [amount]').preset('20').argParser(parseFloat); + * ``` + */ + preset(arg: unknown): this; + + /** + * Add option name(s) that conflict with this option. + * An error will be displayed if conflicting options are found during parsing. + * + * @example + * ```ts + * new Option('--rgb').conflicts('cmyk'); + * new Option('--js').conflicts(['ts', 'jsx']); + * ``` + */ + conflicts(names: string | string[]): this; + + /** + * Specify implied option values for when this option is set and the implied options are not. + * + * The custom processing (parseArg) is not called on the implied values. + * + * @example + * program + * .addOption(new Option('--log', 'write logging information to file')) + * .addOption(new Option('--trace', 'log extra details').implies({ log: 'trace.txt' })); + */ + implies(optionValues: OptionValues): this; + + /** + * Set environment variable to check for option value. + * + * An environment variables is only used if when processed the current option value is + * undefined, or the source of the current value is 'default' or 'config' or 'env'. + */ + env(name: string): this; + + /** + * Set the custom handler for processing CLI option arguments into option values. + */ + argParser<T>(fn: (value: string, previous: T) => T): this; + + /** + * Whether the option is mandatory and must have a value after parsing. + */ + makeOptionMandatory(mandatory?: boolean): this; + + /** + * Hide option in help. + */ + hideHelp(hide?: boolean): this; + + /** + * Only allow option value to be one of choices. + */ + choices(values: readonly string[]): this; + + /** + * Return option name. + */ + name(): string; + + /** + * Return option name, in a camelcase format that can be used + * as an object attribute key. + */ + attributeName(): string; + + /** + * Set the help group heading. + */ + helpGroup(heading: string): this; + + /** + * Return whether a boolean option. + * + * Options are one of boolean, negated, required argument, or optional argument. + */ + isBoolean(): boolean; +} + +export class Help { + /** output helpWidth, long lines are wrapped to fit */ + helpWidth?: number; + minWidthToWrap: number; + sortSubcommands: boolean; + sortOptions: boolean; + showGlobalOptions: boolean; + + constructor(); + + /* + * prepareContext is called by Commander after applying overrides from `Command.configureHelp()` + * and just before calling `formatHelp()`. + * + * Commander just uses the helpWidth and the others are provided for subclasses. + */ + prepareContext(contextOptions: { + error?: boolean; + helpWidth?: number; + outputHasColors?: boolean; + }): void; + + /** Get the command term to show in the list of subcommands. */ + subcommandTerm(cmd: Command): string; + /** Get the command summary to show in the list of subcommands. */ + subcommandDescription(cmd: Command): string; + /** Get the option term to show in the list of options. */ + optionTerm(option: Option): string; + /** Get the option description to show in the list of options. */ + optionDescription(option: Option): string; + /** Get the argument term to show in the list of arguments. */ + argumentTerm(argument: Argument): string; + /** Get the argument description to show in the list of arguments. */ + argumentDescription(argument: Argument): string; + + /** Get the command usage to be displayed at the top of the built-in help. */ + commandUsage(cmd: Command): string; + /** Get the description for the command. */ + commandDescription(cmd: Command): string; + + /** Get an array of the visible subcommands. Includes a placeholder for the implicit help command, if there is one. */ + visibleCommands(cmd: Command): Command[]; + /** Get an array of the visible options. Includes a placeholder for the implicit help option, if there is one. */ + visibleOptions(cmd: Command): Option[]; + /** Get an array of the visible global options. (Not including help.) */ + visibleGlobalOptions(cmd: Command): Option[]; + /** Get an array of the arguments which have descriptions. */ + visibleArguments(cmd: Command): Argument[]; + + /** Get the longest command term length. */ + longestSubcommandTermLength(cmd: Command, helper: Help): number; + /** Get the longest option term length. */ + longestOptionTermLength(cmd: Command, helper: Help): number; + /** Get the longest global option term length. */ + longestGlobalOptionTermLength(cmd: Command, helper: Help): number; + /** Get the longest argument term length. */ + longestArgumentTermLength(cmd: Command, helper: Help): number; + + /** Return display width of string, ignoring ANSI escape sequences. Used in padding and wrapping calculations. */ + displayWidth(str: string): number; + + /** Style the titles. Called with 'Usage:', 'Options:', etc. */ + styleTitle(title: string): string; + + /** Usage: <str> */ + styleUsage(str: string): string; + /** Style for command name in usage string. */ + styleCommandText(str: string): string; + + styleCommandDescription(str: string): string; + styleOptionDescription(str: string): string; + styleSubcommandDescription(str: string): string; + styleArgumentDescription(str: string): string; + /** Base style used by descriptions. */ + styleDescriptionText(str: string): string; + + styleOptionTerm(str: string): string; + styleSubcommandTerm(str: string): string; + styleArgumentTerm(str: string): string; + + /** Base style used in terms and usage for options. */ + styleOptionText(str: string): string; + /** Base style used in terms and usage for subcommands. */ + styleSubcommandText(str: string): string; + /** Base style used in terms and usage for arguments. */ + styleArgumentText(str: string): string; + + /** Calculate the pad width from the maximum term length. */ + padWidth(cmd: Command, helper: Help): number; + + /** + * Wrap a string at whitespace, preserving existing line breaks. + * Wrapping is skipped if the width is less than `minWidthToWrap`. + */ + boxWrap(str: string, width: number): string; + + /** Detect manually wrapped and indented strings by checking for line break followed by whitespace. */ + preformatted(str: string): boolean; + + /** + * Format the "item", which consists of a term and description. Pad the term and wrap the description, indenting the following lines. + * + * So "TTT", 5, "DDD DDDD DD DDD" might be formatted for this.helpWidth=17 like so: + * TTT DDD DDDD + * DD DDD + */ + formatItem( + term: string, + termWidth: number, + description: string, + helper: Help, + ): string; + + /** + * Format a list of items, given a heading and an array of formatted items. + */ + formatItemList(heading: string, items: string[], helper: Help): string[]; + + /** + * Group items by their help group heading. + */ + groupItems<T extends Command | Option>( + unsortedItems: T[], + visibleItems: T[], + getGroup: (item: T) => string, + ): Map<string, T[]>; + + /** Generate the built-in help text. */ + formatHelp(cmd: Command, helper: Help): string; +} +export type HelpConfiguration = Partial<Help>; + +export interface ParseOptions { + from: 'node' | 'electron' | 'user'; +} +export interface HelpContext { + // optional parameter for .help() and .outputHelp() + error: boolean; +} +export interface AddHelpTextContext { + // passed to text function used with .addHelpText() + error: boolean; + command: Command; +} +export interface OutputConfiguration { + writeOut?(str: string): void; + writeErr?(str: string): void; + outputError?(str: string, write: (str: string) => void): void; + + getOutHelpWidth?(): number; + getErrHelpWidth?(): number; + + getOutHasColors?(): boolean; + getErrHasColors?(): boolean; + stripColor?(str: string): string; +} + +export type AddHelpTextPosition = 'beforeAll' | 'before' | 'after' | 'afterAll'; +export type HookEvent = 'preSubcommand' | 'preAction' | 'postAction'; +// The source is a string so author can define their own too. +export type OptionValueSource = + | LiteralUnion<'default' | 'config' | 'env' | 'cli' | 'implied', string> + | undefined; + +export type OptionValues = Record<string, any>; + +export class Command { + args: string[]; + processedArgs: any[]; + readonly commands: readonly Command[]; + readonly options: readonly Option[]; + readonly registeredArguments: readonly Argument[]; + parent: Command | null; + + constructor(name?: string); + + /** + * Set the program version to `str`. + * + * This method auto-registers the "-V, --version" flag + * which will print the version number when passed. + * + * You can optionally supply the flags and description to override the defaults. + */ + version(str: string, flags?: string, description?: string): this; + /** + * Get the program version. + */ + version(): string | undefined; + + /** + * Define a command, implemented using an action handler. + * + * @remarks + * The command description is supplied using `.description`, not as a parameter to `.command`. + * + * @example + * ```ts + * program + * .command('clone <source> [destination]') + * .description('clone a repository into a newly created directory') + * .action((source, destination) => { + * console.log('clone command called'); + * }); + * ``` + * + * @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...` + * @param opts - configuration options + * @returns new command + */ + command( + nameAndArgs: string, + opts?: CommandOptions, + ): ReturnType<this['createCommand']>; + /** + * Define a command, implemented in a separate executable file. + * + * @remarks + * The command description is supplied as the second parameter to `.command`. + * + * @example + * ```ts + * program + * .command('start <service>', 'start named service') + * .command('stop [service]', 'stop named service, or all if no name supplied'); + * ``` + * + * @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...` + * @param description - description of executable command + * @param opts - configuration options + * @returns `this` command for chaining + */ + command( + nameAndArgs: string, + description: string, + opts?: ExecutableCommandOptions, + ): this; + + /** + * Factory routine to create a new unattached command. + * + * See .command() for creating an attached subcommand, which uses this routine to + * create the command. You can override createCommand to customise subcommands. + */ + createCommand(name?: string): Command; + + /** + * Add a prepared subcommand. + * + * See .command() for creating an attached subcommand which inherits settings from its parent. + * + * @returns `this` command for chaining + */ + addCommand(cmd: Command, opts?: CommandOptions): this; + + /** + * Factory routine to create a new unattached argument. + * + * See .argument() for creating an attached argument, which uses this routine to + * create the argument. You can override createArgument to return a custom argument. + */ + createArgument(name: string, description?: string): Argument; + + /** + * Define argument syntax for command. + * + * The default is that the argument is required, and you can explicitly + * indicate this with <> around the name. Put [] around the name for an optional argument. + * + * @example + * ``` + * program.argument('<input-file>'); + * program.argument('[output-file]'); + * ``` + * + * @returns `this` command for chaining + */ + argument<T>( + flags: string, + description: string, + parseArg: (value: string, previous: T) => T, + defaultValue?: T, + ): this; + argument(name: string, description?: string, defaultValue?: unknown): this; + + /** + * Define argument syntax for command, adding a prepared argument. + * + * @returns `this` command for chaining + */ + addArgument(arg: Argument): this; + + /** + * Define argument syntax for command, adding multiple at once (without descriptions). + * + * See also .argument(). + * + * @example + * ``` + * program.arguments('<cmd> [env]'); + * ``` + * + * @returns `this` command for chaining + */ + arguments(names: string): this; + + /** + * Customise or override default help command. By default a help command is automatically added if your command has subcommands. + * + * @example + * ```ts + * program.helpCommand('help [cmd]'); + * program.helpCommand('help [cmd]', 'show help'); + * program.helpCommand(false); // suppress default help command + * program.helpCommand(true); // add help command even if no subcommands + * ``` + */ + helpCommand(nameAndArgs: string, description?: string): this; + helpCommand(enable: boolean): this; + + /** + * Add prepared custom help command. + */ + addHelpCommand(cmd: Command): this; + /** @deprecated since v12, instead use helpCommand */ + addHelpCommand(nameAndArgs: string, description?: string): this; + /** @deprecated since v12, instead use helpCommand */ + addHelpCommand(enable?: boolean): this; + + /** + * Add hook for life cycle event. + */ + hook( + event: HookEvent, + listener: ( + thisCommand: Command, + actionCommand: Command, + ) => void | Promise<void>, + ): this; + + /** + * Register callback to use as replacement for calling process.exit. + */ + exitOverride(callback?: (err: CommanderError) => never | void): this; + + /** + * Display error message and exit (or call exitOverride). + */ + error(message: string, errorOptions?: ErrorOptions): never; + + /** + * You can customise the help with a subclass of Help by overriding createHelp, + * or by overriding Help properties using configureHelp(). + */ + createHelp(): Help; + + /** + * You can customise the help by overriding Help properties using configureHelp(), + * or with a subclass of Help by overriding createHelp(). + */ + configureHelp(configuration: HelpConfiguration): this; + /** Get configuration */ + configureHelp(): HelpConfiguration; + + /** + * The default output goes to stdout and stderr. You can customise this for special + * applications. You can also customise the display of errors by overriding outputError. + * + * The configuration properties are all functions: + * ``` + * // functions to change where being written, stdout and stderr + * writeOut(str) + * writeErr(str) + * // matching functions to specify width for wrapping help + * getOutHelpWidth() + * getErrHelpWidth() + * // functions based on what is being written out + * outputError(str, write) // used for displaying errors, and not used for displaying help + * ``` + */ + configureOutput(configuration: OutputConfiguration): this; + /** Get configuration */ + configureOutput(): OutputConfiguration; + + /** + * Copy settings that are useful to have in common across root command and subcommands. + * + * (Used internally when adding a command using `.command()` so subcommands inherit parent settings.) + */ + copyInheritedSettings(sourceCommand: Command): this; + + /** + * Display the help or a custom message after an error occurs. + */ + showHelpAfterError(displayHelp?: boolean | string): this; + + /** + * Display suggestion of similar commands for unknown commands, or options for unknown options. + */ + showSuggestionAfterError(displaySuggestion?: boolean): this; + + /** + * Register callback `fn` for the command. + * + * @example + * ``` + * program + * .command('serve') + * .description('start service') + * .action(function() { + * // do work here + * }); + * ``` + * + * @returns `this` command for chaining + */ + action(fn: (this: this, ...args: any[]) => void | Promise<void>): this; + + /** + * Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both. + * + * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required + * option-argument is indicated by `<>` and an optional option-argument by `[]`. + * + * See the README for more details, and see also addOption() and requiredOption(). + * + * @example + * + * ```js + * program + * .option('-p, --pepper', 'add pepper') + * .option('--pt, --pizza-type <TYPE>', 'type of pizza') // required option-argument + * .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default + * .option('-t, --tip <VALUE>', 'add tip to purchase cost', parseFloat) // custom parse function + * ``` + * + * @returns `this` command for chaining + */ + option( + flags: string, + description?: string, + defaultValue?: string | boolean | string[], + ): this; + option<T>( + flags: string, + description: string, + parseArg: (value: string, previous: T) => T, + defaultValue?: T, + ): this; + /** @deprecated since v7, instead use choices or a custom function */ + option( + flags: string, + description: string, + regexp: RegExp, + defaultValue?: string | boolean | string[], + ): this; + + /** + * Define a required option, which must have a value after parsing. This usually means + * the option must be specified on the command line. (Otherwise the same as .option().) + * + * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. + */ + requiredOption( + flags: string, + description?: string, + defaultValue?: string | boolean | string[], + ): this; + requiredOption<T>( + flags: string, + description: string, + parseArg: (value: string, previous: T) => T, + defaultValue?: T, + ): this; + /** @deprecated since v7, instead use choices or a custom function */ + requiredOption( + flags: string, + description: string, + regexp: RegExp, + defaultValue?: string | boolean | string[], + ): this; + + /** + * Factory routine to create a new unattached option. + * + * See .option() for creating an attached option, which uses this routine to + * create the option. You can override createOption to return a custom option. + */ + + createOption(flags: string, description?: string): Option; + + /** + * Add a prepared Option. + * + * See .option() and .requiredOption() for creating and attaching an option in a single call. + */ + addOption(option: Option): this; + + /** + * Whether to store option values as properties on command object, + * or store separately (specify false). In both cases the option values can be accessed using .opts(). + * + * @returns `this` command for chaining + */ + storeOptionsAsProperties<T extends OptionValues>(): this & T; + storeOptionsAsProperties<T extends OptionValues>( + storeAsProperties: true, + ): this & T; + storeOptionsAsProperties(storeAsProperties?: boolean): this; + + /** + * Retrieve option value. + */ + getOptionValue(key: string): any; + + /** + * Store option value. + */ + setOptionValue(key: string, value: unknown): this; + + /** + * Store option value and where the value came from. + */ + setOptionValueWithSource( + key: string, + value: unknown, + source: OptionValueSource, + ): this; + + /** + * Get source of option value. + */ + getOptionValueSource(key: string): OptionValueSource | undefined; + + /** + * Get source of option value. See also .optsWithGlobals(). + */ + getOptionValueSourceWithGlobals(key: string): OptionValueSource | undefined; + + /** + * Alter parsing of short flags with optional values. + * + * @example + * ``` + * // for `.option('-f,--flag [value]'): + * .combineFlagAndOptionalValue(true) // `-f80` is treated like `--flag=80`, this is the default behaviour + * .combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b` + * ``` + * + * @returns `this` command for chaining + */ + combineFlagAndOptionalValue(combine?: boolean): this; + + /** + * Allow unknown options on the command line. + * + * @returns `this` command for chaining + */ + allowUnknownOption(allowUnknown?: boolean): this; + + /** + * Allow excess command-arguments on the command line. Pass false to make excess arguments an error. + * + * @returns `this` command for chaining + */ + allowExcessArguments(allowExcess?: boolean): this; + + /** + * Enable positional options. Positional means global options are specified before subcommands which lets + * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions. + * + * The default behaviour is non-positional and global options may appear anywhere on the command line. + * + * @returns `this` command for chaining + */ + enablePositionalOptions(positional?: boolean): this; + + /** + * Pass through options that come after command-arguments rather than treat them as command-options, + * so actual command-options come before command-arguments. Turning this on for a subcommand requires + * positional options to have been enabled on the program (parent commands). + * + * The default behaviour is non-positional and options may appear before or after command-arguments. + * + * @returns `this` command for chaining + */ + passThroughOptions(passThrough?: boolean): this; + + /** + * Parse `argv`, setting options and invoking commands when defined. + * + * Use parseAsync instead of parse if any of your action handlers are async. + * + * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode! + * + * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`: + * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that + * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged + * - `'user'`: just user arguments + * + * @example + * ``` + * program.parse(); // parse process.argv and auto-detect electron and special node flags + * program.parse(process.argv); // assume argv[0] is app and argv[1] is script + * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0] + * ``` + * + * @returns `this` command for chaining + */ + parse(argv?: readonly string[], parseOptions?: ParseOptions): this; + + /** + * Parse `argv`, setting options and invoking commands when defined. + * + * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode! + * + * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`: + * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that + * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged + * - `'user'`: just user arguments + * + * @example + * ``` + * await program.parseAsync(); // parse process.argv and auto-detect electron and special node flags + * await program.parseAsync(process.argv); // assume argv[0] is app and argv[1] is script + * await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0] + * ``` + * + * @returns Promise + */ + parseAsync( + argv?: readonly string[], + parseOptions?: ParseOptions, + ): Promise<this>; + + /** + * Called the first time parse is called to save state and allow a restore before subsequent calls to parse. + * Not usually called directly, but available for subclasses to save their custom state. + * + * This is called in a lazy way. Only commands used in parsing chain will have state saved. + */ + saveStateBeforeParse(): void; + + /** + * Restore state before parse for calls after the first. + * Not usually called directly, but available for subclasses to save their custom state. + * + * This is called in a lazy way. Only commands used in parsing chain will have state restored. + */ + restoreStateBeforeParse(): void; + + /** + * Parse options from `argv` removing known options, + * and return argv split into operands and unknown arguments. + * + * Side effects: modifies command by storing options. Does not reset state if called again. + * + * argv => operands, unknown + * --known kkk op => [op], [] + * op --known kkk => [op], [] + * sub --unknown uuu op => [sub], [--unknown uuu op] + * sub -- --unknown uuu op => [sub --unknown uuu op], [] + */ + parseOptions(argv: string[]): ParseOptionsResult; + + /** + * Return an object containing local option values as key-value pairs + */ + opts<T extends OptionValues>(): T; + + /** + * Return an object containing merged local and global option values as key-value pairs. + */ + optsWithGlobals<T extends OptionValues>(): T; + + /** + * Set the description. + * + * @returns `this` command for chaining + */ + + description(str: string): this; + /** @deprecated since v8, instead use .argument to add command argument with description */ + description(str: string, argsDescription: Record<string, string>): this; + /** + * Get the description. + */ + description(): string; + + /** + * Set the summary. Used when listed as subcommand of parent. + * + * @returns `this` command for chaining + */ + + summary(str: string): this; + /** + * Get the summary. + */ + summary(): string; + + /** + * Set an alias for the command. + * + * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help. + * + * @returns `this` command for chaining + */ + alias(alias: string): this; + /** + * Get alias for the command. + */ + alias(): string; + + /** + * Set aliases for the command. + * + * Only the first alias is shown in the auto-generated help. + * + * @returns `this` command for chaining + */ + aliases(aliases: readonly string[]): this; + /** + * Get aliases for the command. + */ + aliases(): string[]; + + /** + * Set the command usage. + * + * @returns `this` command for chaining + */ + usage(str: string): this; + /** + * Get the command usage. + */ + usage(): string; + + /** + * Set the name of the command. + * + * @returns `this` command for chaining + */ + name(str: string): this; + /** + * Get the name of the command. + */ + name(): string; + + /** + * Set the name of the command from script filename, such as process.argv[1], + * or require.main.filename, or __filename. + * + * (Used internally and public although not documented in README.) + * + * @example + * ```ts + * program.nameFromFilename(require.main.filename); + * ``` + * + * @returns `this` command for chaining + */ + nameFromFilename(filename: string): this; + + /** + * Set the directory for searching for executable subcommands of this command. + * + * @example + * ```ts + * program.executableDir(__dirname); + * // or + * program.executableDir('subcommands'); + * ``` + * + * @returns `this` command for chaining + */ + executableDir(path: string): this; + /** + * Get the executable search directory. + */ + executableDir(): string | null; + + /** + * Set the help group heading for this subcommand in parent command's help. + * + * @returns `this` command for chaining + */ + helpGroup(heading: string): this; + /** + * Get the help group heading for this subcommand in parent command's help. + */ + helpGroup(): string; + + /** + * Set the default help group heading for subcommands added to this command. + * (This does not override a group set directly on the subcommand using .helpGroup().) + * + * @example + * program.commandsGroup('Development Commands:); + * program.command('watch')... + * program.command('lint')... + * ... + * + * @returns `this` command for chaining + */ + commandsGroup(heading: string): this; + /** + * Get the default help group heading for subcommands added to this command. + */ + commandsGroup(): string; + + /** + * Set the default help group heading for options added to this command. + * (This does not override a group set directly on the option using .helpGroup().) + * + * @example + * program + * .optionsGroup('Development Options:') + * .option('-d, --debug', 'output extra debugging') + * .option('-p, --profile', 'output profiling information') + * + * @returns `this` command for chaining + */ + optionsGroup(heading: string): this; + /** + * Get the default help group heading for options added to this command. + */ + optionsGroup(): string; + + /** + * Output help information for this command. + * + * Outputs built-in help, and custom text added using `.addHelpText()`. + * + */ + outputHelp(context?: HelpContext): void; + /** @deprecated since v7 */ + outputHelp(cb: (str: string) => string): void; + + /** + * Return command help documentation. + */ + helpInformation(context?: HelpContext): string; + + /** + * You can pass in flags and a description to override the help + * flags and help description for your command. Pass in false + * to disable the built-in help option. + */ + helpOption(flags?: string | boolean, description?: string): this; + + /** + * Supply your own option to use for the built-in help option. + * This is an alternative to using helpOption() to customise the flags and description etc. + */ + addHelpOption(option: Option): this; + + /** + * Output help information and exit. + * + * Outputs built-in help, and custom text added using `.addHelpText()`. + */ + help(context?: HelpContext): never; + /** @deprecated since v7 */ + help(cb: (str: string) => string): never; + + /** + * Add additional text to be displayed with the built-in help. + * + * Position is 'before' or 'after' to affect just this command, + * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands. + */ + addHelpText(position: AddHelpTextPosition, text: string): this; + addHelpText( + position: AddHelpTextPosition, + text: (context: AddHelpTextContext) => string, + ): this; + + /** + * Add a listener (callback) for when events occur. (Implemented using EventEmitter.) + */ + on(event: string | symbol, listener: (...args: any[]) => void): this; +} + +export interface CommandOptions { + hidden?: boolean; + isDefault?: boolean; + /** @deprecated since v7, replaced by hidden */ + noHelp?: boolean; +} +export interface ExecutableCommandOptions extends CommandOptions { + executableFile?: string; +} + +export interface ParseOptionsResult { + operands: string[]; + unknown: string[]; +} + +export function createCommand(name?: string): Command; +export function createOption(flags: string, description?: string): Option; +export function createArgument(name: string, description?: string): Argument; + +export const program: Command; diff --git a/plugins/screenrig/cli/package.json b/plugins/screenrig/cli/package.json index 2a1fc7d5..2173033c 100644 --- a/plugins/screenrig/cli/package.json +++ b/plugins/screenrig/cli/package.json @@ -95,6 +95,7 @@ "dependencies": { "@napi-rs/canvas": "^1.0.7", "ajv": "8.18.0", - "ajv-formats": "3.0.1" + "ajv-formats": "3.0.1", + "commander": "14.0.3" } } diff --git a/plugins/screenrig/cli/runtime-dependencies.lock.json b/plugins/screenrig/cli/runtime-dependencies.lock.json index e692f9d4..83abb718 100644 --- a/plugins/screenrig/cli/runtime-dependencies.lock.json +++ b/plugins/screenrig/cli/runtime-dependencies.lock.json @@ -1,6 +1,6 @@ { "schema": "screenrig.cli-runtime-dependencies/v1", - "package_lock_sha256": "8db04ab04d13cd267a2355b319a679d82602548d03b38c6ead378a279d28e6d8", + "package_lock_sha256": "9e44ffc2146fd192724dbd8899349b49f0167fa298a82828ca1eee5cdbc97fcb", "packages": [ { "path": "node_modules/@napi-rs/canvas", @@ -100,6 +100,13 @@ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==" }, + { + "path": "node_modules/commander", + "name": "commander", + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz", + "integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==" + }, { "path": "node_modules/fast-deep-equal", "name": "fast-deep-equal", diff --git a/plugins/screenrig/scripts/check-public-repo.py b/plugins/screenrig/scripts/check-public-repo.py index 73a76767..c1e5d588 100644 --- a/plugins/screenrig/scripts/check-public-repo.py +++ b/plugins/screenrig/scripts/check-public-repo.py @@ -29,6 +29,9 @@ def is_cli_version(value: object) -> bool: PLUGIN_REPOSITORY = "https://github.com/screenrig/plugin" CLI_REPOSITORY = "git+https://github.com/screenrig/cli.git" +ALLOWED_CLI_PRODUCTION_DEPENDENCIES = frozenset( + {"@napi-rs/canvas", "ajv", "ajv-formats", "commander"} +) TEXT_SUFFIXES = {"", ".d.ts", ".js", ".json", ".md", ".py", ".sh", ".toml", ".yaml", ".yml"} IGNORED_PARTS = {".git", "node_modules"} @@ -86,16 +89,15 @@ def check_metadata(errors: list[str]) -> None: repository = package.get("repository") if not isinstance(repository, dict) or repository.get("url") != CLI_REPOSITORY: errors.append(f"{package_path.relative_to(ROOT)} repository.url must be {CLI_REPOSITORY}") - allowed_cli_deps = {"@napi-rs/canvas", "ajv", "ajv-formats"} deps = package.get("dependencies") if not isinstance(deps, dict): errors.append(f"{package_path.relative_to(ROOT)} dependencies must be an object") else: - extra = sorted(set(deps) - allowed_cli_deps) - missing = sorted(allowed_cli_deps - set(deps)) + extra = sorted(set(deps) - ALLOWED_CLI_PRODUCTION_DEPENDENCIES) + missing = sorted(ALLOWED_CLI_PRODUCTION_DEPENDENCIES - set(deps)) if extra or missing: errors.append( - f"bundled CLI dependencies must be exactly {sorted(allowed_cli_deps)}; " + f"bundled CLI dependencies must be exactly {sorted(ALLOWED_CLI_PRODUCTION_DEPENDENCIES)}; " f"extra {extra}; missing {missing}" ) for field in ("optionalDependencies", "peerDependencies"): diff --git a/scripts/check-public-repo.py b/scripts/check-public-repo.py index 73a76767..c1e5d588 100644 --- a/scripts/check-public-repo.py +++ b/scripts/check-public-repo.py @@ -29,6 +29,9 @@ def is_cli_version(value: object) -> bool: PLUGIN_REPOSITORY = "https://github.com/screenrig/plugin" CLI_REPOSITORY = "git+https://github.com/screenrig/cli.git" +ALLOWED_CLI_PRODUCTION_DEPENDENCIES = frozenset( + {"@napi-rs/canvas", "ajv", "ajv-formats", "commander"} +) TEXT_SUFFIXES = {"", ".d.ts", ".js", ".json", ".md", ".py", ".sh", ".toml", ".yaml", ".yml"} IGNORED_PARTS = {".git", "node_modules"} @@ -86,16 +89,15 @@ def check_metadata(errors: list[str]) -> None: repository = package.get("repository") if not isinstance(repository, dict) or repository.get("url") != CLI_REPOSITORY: errors.append(f"{package_path.relative_to(ROOT)} repository.url must be {CLI_REPOSITORY}") - allowed_cli_deps = {"@napi-rs/canvas", "ajv", "ajv-formats"} deps = package.get("dependencies") if not isinstance(deps, dict): errors.append(f"{package_path.relative_to(ROOT)} dependencies must be an object") else: - extra = sorted(set(deps) - allowed_cli_deps) - missing = sorted(allowed_cli_deps - set(deps)) + extra = sorted(set(deps) - ALLOWED_CLI_PRODUCTION_DEPENDENCIES) + missing = sorted(ALLOWED_CLI_PRODUCTION_DEPENDENCIES - set(deps)) if extra or missing: errors.append( - f"bundled CLI dependencies must be exactly {sorted(allowed_cli_deps)}; " + f"bundled CLI dependencies must be exactly {sorted(ALLOWED_CLI_PRODUCTION_DEPENDENCIES)}; " f"extra {extra}; missing {missing}" ) for field in ("optionalDependencies", "peerDependencies"): diff --git a/scripts/test-public-dependencies.py b/scripts/test-public-dependencies.py index 496a79d6..f5deb5b2 100644 --- a/scripts/test-public-dependencies.py +++ b/scripts/test-public-dependencies.py @@ -15,7 +15,21 @@ spec.loader.exec_module(checker) +REVIEWED_CLI_PRODUCTION_DEPENDENCIES = { + "@napi-rs/canvas", + "ajv", + "ajv-formats", + "commander", +} + + class DependencyBoundaryTests(unittest.TestCase): + def test_allowlist_is_the_reviewed_production_set(self): + self.assertEqual( + set(checker.ALLOWED_CLI_PRODUCTION_DEPENDENCIES), + REVIEWED_CLI_PRODUCTION_DEPENDENCIES, + ) + def check_with(self, mutation=None): original_load = checker.load @@ -49,6 +63,10 @@ def test_missing_dependency_rejected(self): errors = self.change_dependencies(lambda value: value["dependencies"].pop("ajv")) self.assertTrue(any("missing ['ajv']" in error for error in errors)) + def test_missing_commander_rejected(self): + errors = self.change_dependencies(lambda value: value["dependencies"].pop("commander")) + self.assertTrue(any("missing ['commander']" in error for error in errors)) + def test_malformed_dependencies_rejected(self): errors = self.change_dependencies(lambda value: value.update(dependencies=[])) self.assertTrue(any("dependencies must be an object" in error for error in errors))