HostExtension class final
A host's declared extension: named tools + an explicit per-profile matrix state (E6).
Constructors
-
HostExtension({required String name, List<
AgentTool> tools = const [], required Map<String, CapabilityState> profileStates}) - Validates and builds. Throws HostProfileViolation on an E6 gap (missing built-in profile, blank reason, a transport state — tool extensions have no transport dimension), an empty name, or an empty/duplicate tool id.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Registrant id — E7 collision reports name both sides; keep it the
thing a host user would recognize (
cli-plugins,yoclip).final -
profileStates
→ Map<
String, CapabilityState> -
The matrix declaration: profile name → state. Every built-in profile
(the keys of
builtInProfiles) MUST be present — E6, no implicit default. Extra keys are custom profiles; they are validated at wire time (a state must exist for whatever the host actually wires).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tools
→ List<
AgentTool> -
The tools contributed on profiles where the extension is
on.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stateFor(
String profileName) → CapabilityState? -
The declared state for
profileName, or null when the profile is a custom one this extension does not declare (validated at wire time). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited