Repository navigation
0.8.4
Adds distinct command notices, warnings and errors, and explicit support for commands that can run while the Agent is working.
New features
notify()displays an informational notice;warn()displays a yellow warning;error()displays a red error.- Custom commands implementing
NeuronInteraction\Command\ConcurrentCommandInterfacecan be admitted and suggested during an active turn. Help and Leave already implement it. Ordinary commands remain unavailable while the Agent is working.
Breaking API changes
Requires Neuron Interaction ~0.8.4.
Replace command calls to say() with notify(). Use warn() and error() for warnings and expected failures.
Command kits have been removed. Register command instances directly:
$commands = (new Commands())->addCommand([
new ClearCommand(),
new ResumeCommand(),
]);Custom commands intended to run during an active turn must implement ConcurrentCommandInterface and preserve state used by the active Agent work.
If using Neuron Interaction's configuration store directly, replace ConfigurationStore::save($configuration) with write($configuration).