Skip to content

API Reference

This page is rebuilt at docs build time from the public entrypoints declared in package.json. Use it to see the complete public surface grouped by subpath and export kind, then jump into the subpath-specific detail pages.

The reference surface is source-backed: symbol routes and example links are derived from src/** and examples/** during docs build.

  • Public entrypoints: 4
  • Public symbols indexed: 160
  • Symbol pages rendered: 159

Choose an Import

ImportUse it forStart here
@kjanat/dreamclischema builders, CLI assembly, parsing, resolution, errors, completions, schema export@kjanat/dreamcli
@kjanat/dreamcli/testkitcommand tests, output capture, scripted prompts, test adapters@kjanat/dreamcli/testkit
@kjanat/dreamcli/runtimeruntime detection, explicit adapters, runtime-only helpers@kjanat/dreamcli/runtime
@kjanat/dreamcli/schemagenerated CLI definition meta-schema JSONschema asset only

Generated Index

@kjanat/dreamcli

Source entrypoint: src/index.ts

@kjanat/dreamcli detailed page

Functions (29)

SymbolSource
buildConfigSearchPathssrc/core/config/index.ts
clisrc/core/cli/index.ts
commandsrc/core/schema/command.ts
configFormatsrc/core/config/index.ts
createArgSchemasrc/core/schema/arg.ts
createOutputsrc/core/output/index.ts
createSchemasrc/core/schema/flag.ts
createTerminalPromptersrc/core/prompt/index.ts
discoverConfigsrc/core/config/index.ts
discoverPackageJsonsrc/core/config/package-json.ts
formatHelpsrc/core/help/index.ts
generateBashCompletionsrc/core/completion/shells/bash.ts
generateCompletionsrc/core/completion/index.ts
generateFishCompletionsrc/core/completion/shells/fish.ts
generateInputSchemasrc/core/json-schema/index.ts
generatePowerShellCompletionsrc/core/completion/shells/powershell.ts
generateSchemasrc/core/json-schema/index.ts
generateZshCompletionsrc/core/completion/shells/zsh.ts
groupsrc/core/schema/command.ts
inferCliNamesrc/core/config/package-json.ts
isCLIErrorsrc/core/errors/index.ts
isParseErrorsrc/core/errors/index.ts
isValidationErrorsrc/core/errors/index.ts
middlewaresrc/core/schema/middleware.ts
parsesrc/core/parse/index.ts
pluginsrc/core/cli/plugin.ts
resolvesrc/core/resolve/index.ts
resolvePromptConfigsrc/core/prompt/index.ts
tokenizesrc/core/parse/index.ts

Classes (7)

SymbolSource
ArgBuildersrc/core/schema/arg.ts
CLIBuildersrc/core/cli/index.ts
CLIErrorsrc/core/errors/index.ts
CommandBuildersrc/core/schema/command.ts
FlagBuildersrc/core/schema/flag.ts
ParseErrorsrc/core/errors/index.ts
ValidationErrorsrc/core/errors/index.ts

Constants (4)

SymbolSource
argsrc/core/schema/arg.ts
definitionMetaSchemasrc/core/json-schema/index.ts
flagsrc/core/schema/flag.ts
SHELLSsrc/core/completion/index.ts

Interfaces (57)

SymbolSource
ActionParamssrc/core/schema/command.ts
ArgConfigsrc/core/schema/arg.ts
ArgFactorysrc/core/schema/arg.ts
ArgSchemasrc/core/schema/arg.ts
BeforeParseParamssrc/core/cli/plugin.ts
CLIErrorJSONsrc/core/errors/index.ts
CLIErrorOptionssrc/core/errors/index.ts
CLIOptionssrc/core/cli/index.ts
CLIPluginsrc/core/cli/plugin.ts
CLIPluginHookssrc/core/cli/plugin.ts
CLIRunOptionssrc/core/cli/index.ts
CLISchemasrc/core/cli/index.ts
CommandArgEntrysrc/core/schema/command.ts
CommandConfigsrc/core/schema/command.ts
CommandExamplesrc/core/schema/command.ts
CommandMetasrc/core/schema/command.ts
CommandSchemasrc/core/schema/command.ts
CompletionOptionssrc/core/completion/shells/shared.ts
ConfigDiscoveryOptionssrc/core/config/index.ts
ConfigFoundsrc/core/config/index.ts
ConfigNotFoundsrc/core/config/index.ts
ConfigSettingssrc/core/cli/index.ts
ConfirmPromptConfigsrc/core/schema/prompt.ts
DeprecationWarningsrc/core/resolve/contracts.ts
FlagConfigsrc/core/schema/flag.ts
FlagFactorysrc/core/schema/flag.ts
FlagSchemasrc/core/schema/flag.ts
FormatLoadersrc/core/config/index.ts
HelpOptionssrc/core/help/index.ts
InputPromptConfigsrc/core/schema/prompt.ts
InteractiveParamssrc/core/schema/command.ts
JsonSchemaOptionssrc/core/json-schema/index.ts
MiddlewareParamssrc/core/schema/middleware.ts
MultiselectPromptConfigsrc/core/schema/prompt.ts
Outsrc/core/schema/command.ts
OutputOptionssrc/core/output/index.ts
PackageJsonDatasrc/core/config/package-json.ts
PackageJsonSettingssrc/core/cli/index.ts
ParseErrorOptionssrc/core/errors/index.ts
ParseResultsrc/core/parse/index.ts
PluginCommandContextsrc/core/cli/plugin.ts
ProgressHandlesrc/core/schema/activity.ts
ProgressOptionssrc/core/schema/activity.ts
PromptConfigBasesrc/core/schema/prompt.ts
PromptEnginesrc/core/prompt/index.ts
ResolvedCommandParamssrc/core/cli/plugin.ts
ResolvedMultiselectPromptConfigsrc/core/prompt/index.ts
ResolvedSelectPromptConfigsrc/core/prompt/index.ts
ResolveOptionssrc/core/resolve/contracts.ts
ResolveResultsrc/core/resolve/contracts.ts
RunResultsrc/core/schema/run.ts
SelectChoicesrc/core/schema/prompt.ts
SelectPromptConfigsrc/core/schema/prompt.ts
SpinnerHandlesrc/core/schema/activity.ts
SpinnerOptionssrc/core/schema/activity.ts
TableColumnsrc/core/schema/activity.ts
ValidationErrorOptionssrc/core/errors/index.ts

Types (42)

SymbolSource
ActionHandlersrc/core/schema/command.ts
ActivityEventsrc/core/schema/activity.ts
ArgKindsrc/core/schema/arg.ts
ArgParseFnsrc/core/schema/arg.ts
ArgPresencesrc/core/schema/arg.ts
ConfigAdaptersrc/core/config/index.ts
ConfigDiscoveryResultsrc/core/config/index.ts
DeriveHandlersrc/core/schema/command.ts
DeriveParamssrc/core/schema/command.ts
ErrorCodesrc/core/errors/index.ts
Fallbacksrc/core/schema/activity.ts
FlagKindsrc/core/schema/flag.ts
FlagParseFnsrc/core/schema/flag.ts
FlagPresencesrc/core/schema/flag.ts
InferArgsrc/core/schema/arg.ts
InferArgssrc/core/schema/arg.ts
InferFlagsrc/core/schema/flag.ts
InferFlagssrc/core/schema/flag.ts
InteractiveResolversrc/core/schema/command.ts
InteractiveResultsrc/core/schema/command.ts
Middlewaresrc/core/schema/middleware.ts
MiddlewareHandlersrc/core/schema/middleware.ts
PackageJsonAdaptersrc/core/config/package-json.ts
ParseErrorCodesrc/core/errors/index.ts
PromptConfigsrc/core/schema/prompt.ts
PromptKindsrc/core/schema/prompt.ts
PromptResultsrc/core/schema/prompt.ts
ReadFnsrc/core/prompt/index.ts
ResolvedArgValuesrc/core/schema/arg.ts
ResolvedPromptConfigsrc/core/prompt/index.ts
ResolvedValuesrc/core/schema/flag.ts
Shellsrc/core/completion/index.ts
TableFormatsrc/core/schema/activity.ts
TableOptionssrc/core/schema/activity.ts
TableStreamsrc/core/schema/activity.ts
Tokensrc/core/parse/index.ts
ValidationErrorCodesrc/core/errors/index.ts
Verbositysrc/core/output/contracts.ts
WithArgPresencesrc/core/schema/arg.ts
WithPresencesrc/core/schema/flag.ts
WithVariadicsrc/core/schema/arg.ts
WriteFnsrc/core/output/writer.ts

@kjanat/dreamcli/runtime

Source entrypoint: src/runtime.ts

@kjanat/dreamcli/runtime detailed page

Functions (5)

SymbolSource
createAdaptersrc/runtime/auto.ts
createBunAdaptersrc/runtime/bun.ts
createDenoAdaptersrc/runtime/deno.ts
createNodeAdaptersrc/runtime/node.ts
detectRuntimesrc/runtime/detect.ts

Classes (1)

SymbolSource
ExitErrorsrc/runtime/adapter.ts

Constants (1)

SymbolSource
RUNTIMESsrc/runtime/detect.ts

Interfaces (1)

SymbolSource
RuntimeAdaptersrc/runtime/adapter.ts

Types (1)

SymbolSource
Runtimesrc/runtime/detect.ts

@kjanat/dreamcli/schema

Source entrypoint: dreamcli.schema.json

Assets (1)

SymbolSource
schemadreamcli.schema.json

@kjanat/dreamcli/testkit

Source entrypoint: src/testkit.ts

@kjanat/dreamcli/testkit detailed page

Functions (4)

SymbolSource
createCaptureOutputsrc/core/output/index.ts
createTestAdaptersrc/runtime/adapter.ts
createTestPromptersrc/core/prompt/index.ts
runCommandsrc/core/testkit/index.ts

Constants (1)

SymbolSource
PROMPT_CANCELsrc/core/prompt/index.ts

Interfaces (5)

SymbolSource
CapturedOutputsrc/core/output/index.ts
RunOptionssrc/core/schema/run.ts
RunResultsrc/core/schema/run.ts
TestAdapterOptionssrc/runtime/adapter.ts
TestPrompterOptionssrc/core/prompt/index.ts

Types (1)

SymbolSource
TestAnswersrc/core/prompt/index.ts
  • CLI Semantics — exact parser, resolver, and root-surface behavior
  • Examples — source-backed examples with Twoslash hover and related symbol links
  • Planner Contract — internal dispatch outcomes and matched-command handoff
  • Resolver Contract — internal precedence, diagnostics, and resolved-value handoff
  • Output Contract — internal routing, activity mode, and cleanup policy facts
  • Testing Commands — higher-level testkit usage patterns
  • Runtime Support — runtime packages and adapter expectations
  • Changelog — release history mirrored inside the docs site
  • Support Matrix — audited support status, evidence, and deferred work

Detailed Reference

Released under the MIT License.