Class LocalAgentService
java.lang.Object
com.shaft.pilot.agent.LocalAgentService
Routes SHAFT Autobot requests to local agent CLIs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Agent mode can run without source mutation approval; custom Agent commands still require it. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a service backed by the local JDK process runner.LocalAgentService(Predicate<String> commandAvailable, LocalAgentProcessRunner runner) Creates a service with injectable command discovery and process execution. -
Method Summary
Modifier and TypeMethodDescriptionexecute(LocalAgentRequest request) Executes a local agent request.
-
Field Details
-
AGENT_MODE_APPROVAL_WARNING
@Deprecated(since="2026.6", forRemoval=false) public static final String AGENT_MODE_APPROVAL_WARNINGDeprecated.Agent mode can run without source mutation approval; custom Agent commands still require it.- See Also:
-
-
Constructor Details
-
LocalAgentService
public LocalAgentService()Creates a service backed by the local JDK process runner. -
LocalAgentService
Creates a service with injectable command discovery and process execution.- Parameters:
commandAvailable- executable availability checkrunner- process runner
-
-
Method Details
-
execute
Executes a local agent request.- Parameters:
request- request- Returns:
- safe response
-