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: 9
  • Public symbols indexed: 344
  • Symbol pages rendered: 343

Choose an Import

ImportUse it forStart here
@kjanat/dreamclischema builders, CLI assembly, parsing, resolution, errors, help@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/completionshell completion script generators@kjanat/dreamcli/completion
@kjanat/dreamcli/json-schemadefinition documents, input JSON Schema, the meta-schema value@kjanat/dreamcli/json-schema
@kjanat/dreamcli/configconfig file and manifest discovery, custom config formats@kjanat/dreamcli/config
@kjanat/dreamcli/promptthe terminal prompt engine and prompt config resolution@kjanat/dreamcli/prompt
@kjanat/dreamcli/schemagenerated CLI definition meta-schema (export mapping differs by package target)@kjanat/dreamcli/schema
@kjanat/dreamcli/versionthe framework's own build version and revision@kjanat/dreamcli/version

Generated Index

@kjanat/dreamcli

Source entrypoint: src/index.ts

@kjanat/dreamcli detailed page

Functions (28)

SymbolSource
clisrc/core/cli/index.ts
commandsrc/core/schema/command.ts
createArgSchemasrc/core/schema/arg.ts
createCLISchemasrc/core/cli/index.ts
createCommandSchemasrc/core/schema/command.ts
createFlagSchemasrc/core/schema/flag.ts
createOutputsrc/core/output/index.ts
formatHelpsrc/core/help/index.ts
getFlagNegatedNamesrc/core/schema/flag.ts
groupsrc/core/schema/command.ts
includesBeforeSeparatorsrc/core/parse/index.ts
isCLIErrorsrc/core/errors/index.ts
isMainModulesrc/core/cli/index.ts
isParseErrorsrc/core/errors/index.ts
isValidationErrorsrc/core/errors/index.ts
middlewaresrc/core/schema/middleware.ts
osc8src/core/help/ansi.ts
parsesrc/core/parse/index.ts
pluginsrc/core/cli/plugin.ts
readFlagssrc/core/read-flags/index.ts
resolvesrc/core/resolve/index.ts
resolveExampleCommandsrc/core/schema/command.ts
resolvePromptConfigsrc/core/prompt/index.ts
resolveRenderContextsrc/core/cli/index.ts
stripBeforeSeparatorsrc/core/parse/index.ts
tokenizesrc/core/parse/index.ts
visibleWidthsrc/core/help/ansi.ts
wasExplicitsrc/core/schema/provenance.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 (7)

SymbolSource
argsrc/core/schema/arg.ts
DEFINITION_SCHEMA_URLsrc/core/json-schema/constants.ts
DEFINITION_SCHEMA_VERSIONsrc/core/json-schema/constants.ts
DUPLICATE_KEYSsrc/core/schema/cardinality.ts
flagsrc/core/schema/flag.ts
SHELLSsrc/core/completion/shell.ts
SPLIT_FORMATSsrc/core/schema/cardinality.ts

Interfaces (113)

SymbolSource
ActionParamssrc/core/schema/command.ts
ArgConfigsrc/core/schema/arg.ts
ArgDefinitionBasesrc/core/schema/arg.ts
ArgDefinitionByKindsrc/core/schema/arg.ts
ArgFactorysrc/core/schema/arg.ts
ArgSchemasrc/core/schema/arg.ts
ArrayFlagDefinitionsrc/core/schema/flag.ts
BeforeParseParamssrc/core/cli/plugin.ts
BooleanArgDefinitionsrc/core/schema/arg.ts
BooleanFlagDefinitionsrc/core/schema/flag.ts
Builtinssrc/core/cli/builtins.ts
BuiltinsConfigsrc/core/cli/builtins.ts
CLIDefinitionsrc/core/cli/index.ts
CLIErrorJSONsrc/core/errors/index.ts
CLIErrorOptionssrc/core/errors/index.ts
CLIExecuteOptionssrc/core/cli/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
Colorsnode_modules/ansispeck/dist/whitespace.d.ts
CommandArgEntrysrc/core/schema/command.ts
CommandArgEntryDefinitionsrc/core/schema/command.ts
CommandDefinitionsrc/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
CompletionRegistrationOptionssrc/core/cli/index.ts
CompletionsFlagConfigsrc/core/cli/index.ts
ConfigDiscoveryOptionssrc/core/config/index.ts
ConfigFoundsrc/core/config/index.ts
ConfigNotFoundsrc/core/config/index.ts
ConfigSearchPathOptionssrc/core/config/index.ts
ConfigSettingssrc/core/cli/index.ts
ConfigSettingsDefinitionsrc/core/cli/index.ts
ConfirmPromptConfigsrc/core/schema/prompt.ts
CountFlagDefinitionsrc/core/schema/flag.ts
CustomArgDefinitionsrc/core/schema/arg.ts
CustomFlagDefinitionsrc/core/schema/flag.ts
DateFlagOptionssrc/core/schema/value-parsers.ts
DefaultCommandOptionssrc/core/cli/index.ts
DefaultValueOptionssrc/core/schema/flag.ts
DeprecationWarningsrc/core/resolve/contracts.ts
EnumArgDefinitionsrc/core/schema/arg.ts
EnumFlagDefinitionsrc/core/schema/flag.ts
ExampleMetasrc/core/schema/command.ts
FlagConfigsrc/core/schema/flag.ts
FlagDefinitionBasesrc/core/schema/flag.ts
FlagDefinitionByKindsrc/core/schema/flag.ts
FlagFactorysrc/core/schema/flag.ts
FlagNegationsrc/core/schema/flag.ts
FlagSchemasrc/core/schema/flag.ts
FormatLoadersrc/core/config/index.ts
HelpConfigsrc/core/cli/index.ts
HelpLinkssrc/core/cli/help-links.ts
HelpOptionssrc/core/help/index.ts
HelpThemesrc/core/help/theme.ts
InputPromptConfigsrc/core/schema/prompt.ts
InputSourcessrc/core/schema/provenance.ts
InteractiveParamssrc/core/schema/command.ts
JsonSchemaOptionssrc/core/json-schema/index.ts
KeyValueArgDefinitionsrc/core/schema/arg.ts
KeyValueFlagDefinitionsrc/core/schema/flag.ts
ManifestDiscoveryOptionssrc/core/config/package-json.ts
ManifestSettingssrc/core/cli/index.ts
MiddlewareParamssrc/core/schema/middleware.ts
MultiselectPromptConfigsrc/core/schema/prompt.ts
NumberArgDefinitionsrc/core/schema/arg.ts
NumberConstraintssrc/core/schema/number-constraints.ts
NumberFlagDefinitionsrc/core/schema/flag.ts
Outsrc/core/schema/command.ts
OutputOptionssrc/core/output/index.ts
PackageJsonDatasrc/core/config/package-json.ts
PackageRepositorysrc/core/config/package-json.ts
PackageRepositoryUrlOptionssrc/core/config/repository-url.ts
ParseErrorOptionssrc/core/errors/index.ts
ParseOptionssrc/core/parse/index.ts
ParseResultsrc/core/parse/index.ts
PathCheckssrc/core/schema/value-parsers.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
ReadFlagsOptionssrc/core/read-flags/index.ts
RenderContextsrc/core/cli/index.ts
RenderContextOptionssrc/core/cli/index.ts
ResolutionProvenanceRecordsrc/core/resolve/contracts.ts
ResolvedCommandParamssrc/core/cli/plugin.ts
ResolvedManifestSettingssrc/core/cli/index.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
SourceSplitBindingsrc/core/schema/cardinality.ts
SpinnerHandlesrc/core/schema/activity.ts
SpinnerOptionssrc/core/schema/activity.ts
SplitBindingsrc/core/schema/cardinality.ts
SplitOptionssrc/core/schema/cardinality.ts
StandardSchemaV1src/core/schema/standard.ts
StdinBindingsrc/core/schema/stdin.ts
StdinOptionssrc/core/schema/stdin.ts
StringArgDefinitionsrc/core/schema/arg.ts
StringConstraintssrc/core/schema/string-constraints.ts
StringFlagDefinitionsrc/core/schema/flag.ts
TableColumnsrc/core/schema/activity.ts
UrlFlagOptionssrc/core/schema/value-parsers.ts
ValidationErrorOptionssrc/core/errors/index.ts

Types (101)

SymbolSource
ActionHandlersrc/core/schema/command.ts
ActivityEventsrc/core/schema/activity.ts
ArgDefaultValuesrc/core/schema/arg.ts
ArgDefinitionsrc/core/schema/arg.ts
ArgDefinitionFragmentV1src/core/json-schema/index.ts
ArgDefinitionOverridessrc/core/schema/arg.ts
ArgElementFragmentV1src/core/json-schema/index.ts
ArgKindsrc/core/schema/arg.ts
ArgParseFnsrc/core/schema/arg.ts
ArgPresencesrc/core/schema/arg.ts
BuiltinModesrc/core/cli/builtins.ts
BuiltinNamesrc/core/cli/builtins.ts
CommandDefinitionDocumentsrc/core/json-schema/index.ts
CommandDefinitionDocumentV1src/core/json-schema/index.ts
CommandDefinitionFragmentV1src/core/json-schema/index.ts
ConfigAdaptersrc/core/config/index.ts
ConfigDiscoveryResultsrc/core/config/index.ts
DefinitionDocumentsrc/core/json-schema/index.ts
DefinitionDocumentV1src/core/json-schema/index.ts
DeriveHandlersrc/core/schema/command.ts
DeriveParamssrc/core/schema/command.ts
DuplicateKeyssrc/core/schema/cardinality.ts
DuplicatePolicysrc/core/schema/flag.ts
ErrorCodesrc/core/errors/index.ts
ExampleCommandsrc/core/schema/command.ts
ExampleDefinitionFragmentV1src/core/json-schema/index.ts
Fallbacksrc/core/schema/activity.ts
FlagDefinitionsrc/core/schema/flag.ts
FlagDefinitionFragmentV1src/core/json-schema/index.ts
FlagDefinitionOverridessrc/core/schema/flag.ts
FlagElementFragmentV1src/core/json-schema/index.ts
FlagKindsrc/core/schema/flag.ts
FlagMapsrc/core/read-flags/index.ts
FlagNegationFragmentV1src/core/json-schema/index.ts
FlagParseFnsrc/core/schema/flag.ts
FlagPathChecksFragmentV1src/core/json-schema/index.ts
FlagPresencesrc/core/schema/flag.ts
FlagStringConstraintsFragmentV1src/core/json-schema/index.ts
HelpDescriptionsrc/core/help/theme.ts
HelpThemeFactorysrc/core/help/theme.ts
InferArgsrc/core/schema/arg.ts
InferArgssrc/core/schema/arg.ts
InferFlagsrc/core/schema/flag.ts
InferFlagssrc/core/schema/flag.ts
InferNameOptionsrc/core/cli/index.ts
InferStandardInputsrc/core/schema/standard.ts
InferStandardOutputsrc/core/schema/standard.ts
InputSchemaBranchsrc/core/json-schema/index.ts
InputSchemaDocumentsrc/core/json-schema/index.ts
InputSchemaPropertysrc/core/json-schema/index.ts
InteractiveResolversrc/core/schema/command.ts
InteractiveResultsrc/core/schema/command.ts
Middlewaresrc/core/schema/middleware.ts
MiddlewareHandlersrc/core/schema/middleware.ts
NumberConstraintViolationsrc/core/schema/number-constraints.ts
PackageJsonAdaptersrc/core/config/package-json.ts
ParseErrorCodesrc/core/errors/index.ts
PathFlagOptionssrc/core/schema/value-parsers.ts
PromptChoiceFragmentV1src/core/json-schema/index.ts
PromptConfigsrc/core/schema/prompt.ts
PromptDefinitionFragmentV1src/core/json-schema/index.ts
PromptKindsrc/core/schema/prompt.ts
PromptResultsrc/core/schema/prompt.ts
ReadFnsrc/core/prompt/index.ts
ResolutionProvenancesrc/core/schema/provenance.ts
ResolvedArgValuesrc/core/schema/arg.ts
ResolvedPromptConfigsrc/core/prompt/index.ts
ResolvedValuesrc/core/schema/flag.ts
Shellsrc/core/completion/shell.ts
SourcesOfsrc/core/schema/provenance.ts
SourceSplitFragmentV1src/core/json-schema/index.ts
SplitFormatsrc/core/schema/cardinality.ts
SplitPolicysrc/core/schema/cardinality.ts
SplitPolicyFragmentV1src/core/json-schema/index.ts
SplitSettingsrc/core/schema/cardinality.ts
StandardSchemaV1FailureResultsrc/core/schema/standard.ts
StandardSchemaV1Issuesrc/core/schema/standard.ts
StandardSchemaV1Optionssrc/core/schema/standard.ts
StandardSchemaV1PathSegmentsrc/core/schema/standard.ts
StandardSchemaV1Propssrc/core/schema/standard.ts
StandardSchemaV1Resultsrc/core/schema/standard.ts
StandardSchemaV1SuccessResultsrc/core/schema/standard.ts
StandardSchemaV1Typessrc/core/schema/standard.ts
StdinBindingFragmentV1src/core/json-schema/index.ts
StdinConsumesrc/core/schema/stdin.ts
StdinWhensrc/core/schema/stdin.ts
StringArgElementConfigsrc/core/schema/arg.ts
StringConstraintViolationsrc/core/schema/string-constraints.ts
StringElementConfigsrc/core/schema/flag.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
WithoutArgElementEligibilitysrc/core/schema/arg.ts
WithoutElementEligibilitysrc/core/schema/flag.ts
WithPresencesrc/core/schema/flag.ts
WithVariadicsrc/core/schema/arg.ts
WriteFnsrc/core/output/writer.ts

@kjanat/dreamcli/completion

Source entrypoint: src/completion.ts

@kjanat/dreamcli/completion detailed page

Functions (5)

SymbolSource
generateBashCompletionsrc/core/completion/shells/bash.ts
generateCompletionsrc/core/completion/index.ts
generateFishCompletionsrc/core/completion/shells/fish.ts
generatePowerShellCompletionsrc/core/completion/shells/powershell.ts
generateZshCompletionsrc/core/completion/shells/zsh.ts

Constants (1)

SymbolSource
SHELLSsrc/core/completion/shell.ts

Interfaces (1)

SymbolSource
CompletionOptionssrc/core/completion/shells/shared.ts

Types (1)

SymbolSource
Shellsrc/core/completion/shell.ts

@kjanat/dreamcli/config

Source entrypoint: src/config.ts

@kjanat/dreamcli/config detailed page

Functions (6)

SymbolSource
buildConfigSearchPathssrc/core/config/index.ts
configFormatsrc/core/config/index.ts
discoverConfigsrc/core/config/index.ts
discoverManifestsrc/core/config/package-json.ts
inferCliNamesrc/core/config/package-json.ts
packageRepositoryUrlsrc/core/config/repository-url.ts

Interfaces (9)

SymbolSource
ConfigDiscoveryOptionssrc/core/config/index.ts
ConfigFoundsrc/core/config/index.ts
ConfigNotFoundsrc/core/config/index.ts
ConfigSearchPathOptionssrc/core/config/index.ts
FormatLoadersrc/core/config/index.ts
ManifestDiscoveryOptionssrc/core/config/package-json.ts
PackageJsonDatasrc/core/config/package-json.ts
PackageRepositorysrc/core/config/package-json.ts
PackageRepositoryUrlOptionssrc/core/config/repository-url.ts

Types (3)

SymbolSource
ConfigAdaptersrc/core/config/index.ts
ConfigDiscoveryResultsrc/core/config/index.ts
PackageJsonAdaptersrc/core/config/package-json.ts

@kjanat/dreamcli/json-schema

Source entrypoint: src/json-schema.ts

@kjanat/dreamcli/json-schema detailed page

Functions (3)

SymbolSource
generateCommandSchemasrc/core/json-schema/index.ts
generateInputSchemasrc/core/json-schema/index.ts
generateSchemasrc/core/json-schema/index.ts

Constants (3)

SymbolSource
DEFINITION_SCHEMA_URLsrc/core/json-schema/constants.ts
DEFINITION_SCHEMA_VERSIONsrc/core/json-schema/constants.ts
definitionMetaSchemasrc/core/json-schema/index.ts

Interfaces (1)

SymbolSource
JsonSchemaOptionssrc/core/json-schema/index.ts

Types (21)

SymbolSource
ArgDefinitionFragmentV1src/core/json-schema/index.ts
ArgElementFragmentV1src/core/json-schema/index.ts
CommandDefinitionDocumentsrc/core/json-schema/index.ts
CommandDefinitionDocumentV1src/core/json-schema/index.ts
CommandDefinitionFragmentV1src/core/json-schema/index.ts
DefinitionDocumentsrc/core/json-schema/index.ts
DefinitionDocumentV1src/core/json-schema/index.ts
ExampleDefinitionFragmentV1src/core/json-schema/index.ts
FlagDefinitionFragmentV1src/core/json-schema/index.ts
FlagElementFragmentV1src/core/json-schema/index.ts
FlagNegationFragmentV1src/core/json-schema/index.ts
FlagPathChecksFragmentV1src/core/json-schema/index.ts
FlagStringConstraintsFragmentV1src/core/json-schema/index.ts
InputSchemaBranchsrc/core/json-schema/index.ts
InputSchemaDocumentsrc/core/json-schema/index.ts
InputSchemaPropertysrc/core/json-schema/index.ts
PromptChoiceFragmentV1src/core/json-schema/index.ts
PromptDefinitionFragmentV1src/core/json-schema/index.ts
SourceSplitFragmentV1src/core/json-schema/index.ts
SplitPolicyFragmentV1src/core/json-schema/index.ts
StdinBindingFragmentV1src/core/json-schema/index.ts

@kjanat/dreamcli/prompt

Source entrypoint: src/prompt.ts

@kjanat/dreamcli/prompt detailed page

Functions (2)

SymbolSource
createTerminalPromptersrc/core/prompt/terminal.ts
resolvePromptConfigsrc/core/prompt/index.ts

Interfaces (3)

SymbolSource
PromptEnginesrc/core/prompt/index.ts
ResolvedMultiselectPromptConfigsrc/core/prompt/index.ts
ResolvedSelectPromptConfigsrc/core/prompt/index.ts

Types (2)

SymbolSource
ReadFnsrc/core/prompt/index.ts
ResolvedPromptConfigsrc/core/prompt/index.ts

@kjanat/dreamcli/runtime

Source entrypoint: src/runtime.ts

@kjanat/dreamcli/runtime detailed page

Functions (4)

SymbolSource
createAdaptersrc/runtime/auto.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 (5)

SymbolSource
DenoNamespacesrc/runtime/deno.ts
GlobalForDetectsrc/runtime/detect.ts
NodeProcesssrc/runtime/node.ts
RuntimeAdaptersrc/runtime/adapter.ts
TerminalSizesrc/runtime/adapter.ts

Types (1)

SymbolSource
Runtimesrc/runtime/detect.ts

@kjanat/dreamcli/schema

Source entrypoint: dreamcli.schema.json

@kjanat/dreamcli/schema detailed page

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/test-prompter.ts
runCommandsrc/core/testkit/index.ts

Constants (1)

SymbolSource
PROMPT_CANCELsrc/core/prompt/test-prompter.ts

Interfaces (6)

SymbolSource
CapturedOutputsrc/core/output/index.ts
RunCommandOptionssrc/core/testkit/index.ts
RunOptionssrc/core/schema/run.ts
RunResultsrc/core/schema/run.ts
TestAdapterOptionssrc/runtime/adapter.ts
TestPrompterOptionssrc/core/prompt/test-prompter.ts

Types (1)

SymbolSource
TestAnswersrc/core/prompt/test-prompter.ts

@kjanat/dreamcli/version

Source entrypoint: src/version.ts

@kjanat/dreamcli/version detailed page

Constants (2)

SymbolSource
DREAMCLI_REVISIONsrc/version.ts
DREAMCLI_VERSIONsrc/version.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.