SIGN IN SIGN UP

feat(agentflow): enhance state management with StateKeyValueInput and variable support (#6119)

* feat(agentflow): enhance state management with StateKeyValueInput and variable support

- Added StateKeyValueInput component for managing key-value pairs in flow state updates.
- Integrated VariableInput for value fields to support variable syntax.
- Updated MessagesInput and ExpandTextDialog to utilize variable items for enhanced user experience.
- Introduced new types for state updates in core types.
- Enhanced Jest tests to cover new functionality and ensure reliability.

This update improves the flexibility and usability of state management within the agentflow package.

* fix(agentflow): address PR #6119 review feedback

- Add autoFocus prop to VariableInput, apply in ExpandTextDialog for
  consistent focus behavior with RichTextEditor fallback
- Extract duplicated VariableItem→SuggestionItem mapping into shared
  toSuggestionItems utility, used by MessagesInput and NodeInputHandler
- Remove redundant default export from StateKeyValueInput

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* clear selected key and update dropdown when a state key is removed

* cleanup unused type

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
J
Jocelyn Lin committed
fedc6ebc82f28e0ab0fdc9d434986de0a08964a1
Parent: 49a2259
Committed by GitHub <noreply@github.com> on 4/2/2026, 7:10:51 PM