KetraTerm
API · DevelopmentAll versions

valueDomain

Creates a source for one host-owned dynamic value domain.

valuesProvider is called only when the resolved context expects domain. It may perform bounded suspending host work and must cooperate with cancellation. The provider receives the resolved semantic context and owns an independent input or visit budget. The shared source matches the complete snapshot before applying its final candidate limit.

Return

context-aware dynamic value completion source.

Parameters

domain

command-spec value domain served by this source.

sourceId

stable candidate-source id used by ranking feedback.

valuesProvider

suspending bounded value snapshot loader.

allowedCommandNames

optional canonical command/subcommand names to which this source is restricted. An empty set permits every matching value-domain position.

Throws