Skip to content

0.8.4

Choose a tag to compare

@asterixcapri asterixcapri released this 10 Sep 21:26
· 109 commits to 1.x since this release

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\ConcurrentCommandInterface can 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).