liteFlow/liteflow-react-agent/liteflow-react-agent-core
everywhere.z 67a9b9bed7 refactor(react-agent): make all hooks parameterless via slot-bound ctx
- ReActAgentComponent 所有 hook 改为无参签名,新增 protected final ctx() 访问器
- ctx 通过 Slot.setAttachment 按 _react_agent_ctx_<nodeId> 挂载,process() finally 解绑
- 按 nodeId 隔离 attachment key,支持 WHEN 并发场景多个 agent 节点共享 slot
- 7 个测试 cmp 子类全部迁移到新签名
- StubModel 改为持有组件引用,运行时动态调 comp.ctx() 取当次 ctx

破坏性变更:所有 ReActAgentComponent 子类必须更新签名。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 14:22:43 +08:00
..
src/main/java/com/yomahub/liteflow/agent refactor(react-agent): make all hooks parameterless via slot-bound ctx 2026-05-09 14:22:43 +08:00
pom.xml liteflow react agent pom adjust 2026-04-30 23:52:19 +08:00