RunbookPortAdapter class
Adapter wrapping a RunbookExecutor and a runbook registry to expose the standard port.RunbookPort contract.
Note: the internal Runbook type in runbooks/runbook.dart has the
same name as a concept in mcp_bundle, but the bundle does not export
a conflicting Runbook class. The bundle's RunbookExecution and
RunbookDescriptor types, however, clash with the internal
RunbookExecution type (see runbooks/runbook.dart), so the bundle
types are imported under the port prefix.
- Implemented types
Constructors
-
RunbookPortAdapter({required RunbookExecutor executor, required Map<
String, Runbook Function()> registry})
Properties
- executor → RunbookExecutor
-
The underlying executor.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
registry
→ Map<
String, Runbook Function()> -
Runbook id → runbook factory. Factories are used instead of static
instances so that each invocation gets a fresh configuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
listRunbooks(
) → Future< List< RunbookDescriptor> > -
List available runbooks.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runRunbook(
String id, Map< String, dynamic> input) → Future<RunbookExecution> -
Execute a runbook.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited