Dashboard › cli › Distillation
b64cbea2-d632-4156-ab4e-606c3fb5617d["lore_tm_v1_TqGZP97By6DM5jygj25lk_k7zS0ZfF3fLzkXUD0SAPc","lore_tm_v1_mXeG0Wia3ShDMh0j5JU0TiBkikV0u1YZ32cuwbrkVv8","lore_tm_v1_1NtYKSl3tWl9EQN3WSHb8wTItroDm7t4P5FS6xzjuOs","lore_tm_v1_DMr16D3ADExYo-voW2mue-9k5F8B8PROt_4ncAoOT0M","lore_tm_v1_Ea89Pxa0BlzP522QA03RuZYvz4D8izF_Ng5ZyCdEGrk"]
packages/cli/patches/@stricli%2Fcore@1.2.8.patch modifies Stricli’s dist/index.cjs, dist/index.js, dist/index.d.cts, and dist/index.d.ts.matchTopLevelFlag(input, topLevelFlags) and optional ScannerConfiguration.topLevelFlags with booleanFlags: ReadonlySet<string> and valueFlags: ReadonlySet<string>. Allowed global flags are recognized at any unresolved route depth and forwarded through unprocessedInputs; value flags support a following argv token or inline --flag=value. The behavior is inert when unset.expectTopLevelFlagValue to forward the next token for a value-taking global flag, except built-ins --help, -h, --helpAll, --help-all, and --version; -- still activates argument treatment when allowArgumentEscapeSequence is enabled.versionRequested to scanner state, recognizes --version at any route depth, and moves version rendering from a first-input-only check in runApplication() to a post-scan check guarded by config.versionInfo; output remains currentVersion + "\n" with ExitCode.Success.DocumentationConfiguration.renderHelp(ctx), where ctx contains prefix: readonly string[], unprocessedInputs: readonly string[], and helpRequested: boolean | "all". A returned string is written verbatim to stdout with ExitCode.Success; undefined falls back to built-in formatHelp.withDefaults(config) now propagates config.scanner?.topLevelFlags into scanner configuration and config.documentation?.renderHelp into documentation configuration.-H as the helpAll alias: route scanning recognizes only --helpAll and --help-all, help documentation emits an empty alias, usage generation always emits the long help-all flag, and buildCommand() reserves only alias "h" rather than both "h" and "H".check:patches requires the matchTopLevelFlag, any-depth versionRequested, and pluggable-help-renderer markers.packages/cli/test/lib/introspect.property.test.ts uses fast-check, Vitest, and DEFAULT_NUM_RUNS for property-based route-tree introspection tests.extractFlags property test asserts that it “always returns one FlagInfo per input entry”; it also verifies preservation of flag names and that boolean flags whose source optional is undefined produce optional: true.getPositionalString tuple property asserts that it “always produces angle-bracket placeholders”: each parameter renders as <placeholder> or [<placeholder>] when optional, with missing placeholders defaulting to arg${index}.getPositionalString array property asserts that it “always includes ellipsis” (...), including when its generated placeholder is empty and therefore passed as undefined.extractAllRoutes property asserts that it “never includes hidden entries”; specifically, names that occur only on hidden entries must not appear in extracted routes, while duplicate names that also have a visible entry are excluded from the hidden-only set.packages/cli/test/lib/introspect.property.test.ts generate flag kinds "boolean", "parsed", or "enum"; lowercase-letter names of length 1–10; flag maps and one-level route maps with 0–5 entries; and commands with { brief, parameters: { flags, aliases: {} } }.placeholder/customUsage matches. Notable custom usages are packages/cli/src/commands/project/create.ts line 609 with customUsage: ["[<org>/]<name>:<platform>..."] and packages/cli/src/commands/agent-conversation/view.ts line 63 with customUsage: [USAGE].packages/cli/src/commands/project/create.ts uses placeholder: "name:platform"; packages/cli/src/commands/agent-conversation/view.ts uses "org/conversation-id"; and packages/cli/src/commands/agent-conversation/list.ts uses "org"."monitor-slug command" in packages/cli/src/commands/monitor/run.ts, "key value" in packages/cli/src/commands/cli/defaults.ts, "e.g. I love this tool!" in packages/cli/src/commands/cli/feedback.ts, "org/project/dashboard/title" in packages/cli/src/commands/dashboard/widget/add.ts, "org/project-or-trace-id" in packages/cli/src/commands/log/list.ts, and "trace-id/span-id" in packages/cli/src/commands/span/view.ts.formatCommandExamples(cmd.examples) in packages/cli/script/generate-skill.ts and packages/cli/script/generate-command-docs.ts; formatCommandExamples(examples: readonly string[]) in packages/cli/script/generate-skill-markdown.ts; example validation in packages/cli/script/check-fragments.ts; metadata assignment metadata.__examples = docs.examples in packages/cli/src/lib/command.ts; declaration and mapping of __examples in packages/cli/src/lib/introspect.ts; and tests in packages/cli/test/script/generate-skill-markdown.test.ts, packages/cli/test/lib/introspect.test.ts, and packages/cli/test/lib/command.test.ts.