Skip to content

0.8.7

Choose a tag to compare

@asterixcapri asterixcapri released this 22 Sep 01:23
· 75 commits to 1.x since this release

Adds custom user-message processing and inline command completion.

New features

Implement NeuronTui\UserMessageProcessorInterface to prepare submitted text for the Agent and customize its displayed form:

public function forAgent(string $input): string;
public function forDisplay(string $content): string;

Register one processor or an array before starting the TUI:

Tui::make($agent)
    ->addUserMessageProcessor($processor)
    ->run();

Preparation follows registration order; display processing follows reverse order. Display processing covers user messages, queued messages, loaded history and picker labels without changing stored history or selection values. Commands and command-generated prompts bypass preparation. A preparation error rejects submission and preserves the draft.

Command suggestions now complete names inline with Tab or Enter while preserving the surrounding draft. Elapsed working time uses minutes, hours and days; the stop keyboard hint is simpler, and conversation areas no longer reserve an empty left column.

Behavior change

Built-in skill-invocation compaction has been removed. Applications that need compact skill labels should implement forDisplay() and register their processor before starting the TUI.