Conversation
- HookConfig 新增 disabled 属性,用于启停开关 - hookId 计算时跳过 disabled 字段,确保禁用状态不影响插件复用 - 界面提供 Switch 切换启用/禁用状态 - 支持 Type/Command/Args/CWD/Config 自定义配置 - 快速添加官方插件 (proxy-anthropic-ping, proxy-plugin-droid) - 高级 JSON 编辑模式可选
- 新增hook插入到列表顶部并自动展开 - hook卡片默认折叠,点击展开编辑 - 修复dialog双层滚动问题 - 简化工具栏和卡片样式
- 使用@dnd-kit实现hooks列表拖拽排序 - 添加拖拽手柄GripVertical图标 - EditInstanceDialog改用ScrollArea统一滚动行为 - 新增hook插入顶部并自动展开
- 标题显示完整命令: command + args - Args输入使用本地状态,支持换行编辑,blur时提交
- 使用稳定的唯一ID (useRef) 解决拖拽排序不生效 - EditInstanceDialog改用原生div滚动替代ScrollArea - 拖拽时同步重排hookIds数组
- 使用HookWithId类型,每个hook携带稳定_id - 添加DragOverlay显示拖拽中的项目 - 使用Map存储configTexts/configErrors (按_id索引) - 参考ForwardRulesList实现方式
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能
修复