AgentModule
Less than 1 minute
AgentModule
Console commands for managing the Warlock agent process.
class AgentModule extends \Hazaar\Warlock\Console\ModuleProperties
agent
Agent runtime instance configured during command preparation.
private Main $agentMethods
configure
Registers agent CLI commands and options.
public configure(): voidprepare
Resolves app context and initializes the agent before command execution.
protected prepare(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | |
$output | Output |
startAgent
Starts the Warlock agent in foreground or daemon mode.
protected startAgent(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | |
$output | Output |
stopAgent
Stops a running Warlock agent process.
protected stopAgent(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | |
$output | Output |
restartAgent
Restarts the Warlock agent by stopping and starting in daemon mode.
protected restartAgent(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | |
$output | Output |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000