fix(browser): lazy-load browser CLI runtime

Co-authored-by: pandego <7780875+pandego@users.noreply.github.com>
Co-authored-by: Tianworld <3580442280@qq.com>
This commit is contained in:
Peter Steinberger
2026-04-25 11:39:32 +01:00
parent 27aae62d99
commit 776d2ab65d
11 changed files with 514 additions and 50 deletions

View File

@@ -1,7 +1,31 @@
// Public CLI/output helpers for plugins that share terminal-facing command behavior.
export * from "../cli/command-format.js";
export {
buildCommandGroupEntries,
defineImportedCommandGroupSpec,
defineImportedCommandGroupSpecs,
defineImportedProgramCommandGroupSpec,
defineImportedProgramCommandGroupSpecs,
resolveCommandGroupEntries,
type CommandGroupDescriptorSpec,
type ImportedCommandGroupDefinition,
type ImportedProgramCommandGroupDefinition,
type NamedCommandDescriptor,
} from "../cli/program/command-group-descriptors.js";
export {
findCommandGroupEntry,
getCommandGroupNames,
registerCommandGroupByName,
registerCommandGroups,
registerLazyCommandGroup,
removeCommandGroupNames,
type CommandGroupEntry,
type CommandGroupPlaceholder,
} from "../cli/program/register-command-groups.js";
export * from "../cli/parse-duration.js";
export { resolveCliArgvInvocation, type CliArgvInvocation } from "../cli/argv-invocation.js";
export { shouldEagerRegisterSubcommands } from "../cli/command-registration-policy.js";
export * from "../cli/wait.js";
export { stylePromptTitle } from "../terminal/prompt-style.js";
export * from "../version.js";