Skip to content

0.8.5

Choose a tag to compare

@asterixcapri asterixcapri released this 10 Sep 20:58
· 101 commits to 1.x since this release

Commands can replace the Agent's history directly, and applications can inject user preferences through ConfigurationStore.

New features

  • The displayed conversation follows history replacement after a command and before its notices, warnings, errors or prompts. Existing display state is preserved when the history object is unchanged.
  • Inject configurationStore: into Tui::make() or the constructor. Commands access the same preferences through $adapter->configurationStore().
  • Adds focused basic, sessions, model and full examples. The model example persists the selected model between runs.

Breaking API changes

Requires Neuron Interaction ~0.8.5.

  • Custom commands now implement run(CommandAdapterInterface $adapter, string $value): void. Replace the previous CommandArguments parameter with the raw string value.
  • Replace SelectionRequest with Selection when calling requestSelection().
  • Replace $adapter->useSession($session) with $adapter->agent()->setChatHistory($session). Synchronization detects replacement of the history object, not arbitrary edits inside the same object.
  • The new configurationStore parameter precedes inputHistory. If passing input history positionally, update that argument position or use inputHistory:.

Neuron Interaction configuration now uses direct preferences instead of named Configuration objects:

$settings->write('model', $model);
$model = $settings->read('model', $defaultModel);

The fallback determines the expected value type. Legacy named configurations are not read automatically; migrate any saved preferences your application needs.