Commit Graph
3 Commits
Author SHA1 Message Date
ypshidifu a5a8c5e011 v2: 将 oc-session-all 从 v1 格式转为 v2 Plugin.define 格式
- 使用 import { Plugin } from "@opencode/plugin/tui"
- 使用 Plugin.define({ id, setup(context) }) 格式
- api.* 调用全部替换为 context.*: api.event.on → context.data.on, api.ui.toast → context.ui.toast.show, api.ui.dialog.* → context.ui.dialog.*, api.command.register + api.keymap.registerLayer 合并为 context.keymap.layer({commands, bindings})
- package.json exports 添加 ./tui 入口点,engines.opencode 升级为 >=2.0.0
- 已通过 minimal-v2-test 验证 v2 格式可正确加载
2026-09-22 15:19:14 +08:00
ypshidifu 47c668f446 添加调试版本插件,修改gitignore允许提交js文件 2026-09-22 11:02:38 +08:00
ypshidifu 6c4d97362f 整合: 将 tui-plugins 目录移入项目根目录,统一代码管理 2026-09-21 19:31:08 +08:00