DuskArtisanProvider class
Contributes dusk:* commands and MCP tool descriptors to the artisan dispatcher.
Host integration:
// lib/config/app.dart
final appConfig = {
'artisan': {
'providers': [DuskArtisanProvider.new],
},
};
Alpha-2 ships 11 CLI commands (snap / tap / screenshot from alpha-1 + install + type / scroll / wait / hover / drag / modal added in Wave 2 + doctor added in Wave 4b Step 21).
MCP tools: 17 descriptors. The original 6 from alpha-1 (snap / tap / screenshot / hover / drag / type) are preserved verbatim; the 10 new descriptors (scroll / wait_for / dismiss_modals / navigate / navigate_back / get_routes / press_key / select_option / evaluate / close_app) come from Wave 2's handler steps; dusk_find (Step 16) adds the Playwright-Locator-style query-handle resolver as the 17th.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- providerName → String
-
Human-readable provider name (used in collision error messages).
Defaults to the runtime class name.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
commands(
) → List< ArtisanCommand> - Returns the commands this provider contributes to the application.
-
mcpTools(
) → List< McpToolDescriptor> - Returns the MCP tool descriptors this provider contributes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited