WrapperNameResolver typedef

WrapperNameResolver = String? Function()

Signature for an injected wrapper-name resolver.

Returns the basename (without .dart) of the consumer wrapper file auto-delegation should dispatch against: 'dispatcher' for the canonical bin/dispatcher.dart, 'artisan' for legacy bin/artisan.dart, or null when no wrapper is present (auto-delegation skips and falls through to the standalone path).

Defaults to defaultConsumerWrapperName which probes the real filesystem; tests inject a deterministic stub. The previous boolean WrapperExistsCheck seam remains supported for backward compatibility with existing tests, but new callers should prefer WrapperNameResolver so the delegate token matches the wrapper file actually on disk (legacy bin/artisan.dart-only consumers must keep resolving via :artisan).

Implementation

typedef WrapperNameResolver = String? Function();