RoadMap: tick off #2/#4 and partial #6 after the dev-branch refactor
- #2 (Proton ts+map fallback for unbundled debug) — landed in `994633e feat(proton): resolve bare specifiers via TypeScript module resolution` + `6c7e56d refactor(proto-defs)`. Bare specifiers like `@snowluma/proto-defs/oidb` now resolve to the original `.ts` source through `ts.resolveModuleName` (Bundler mode), so tsx/node + vite share the same import surface. - #4 (proto definitions in their own package) — landed in `6c7e56d refactor(proto-defs)`. Moved 13 proto `.ts` files (~3.3k LOC) into the new `@snowluma/proto-defs` workspace package with per-file subpath exports; 44 call sites across core/tests rewritten. - #6 (NapCat-style Api on ctx) — half done. Core side fully landed through 13 sequential commits (3e5dca1→f4c6838) — `bridge.apis.< area>.method()` covers all 13 areas, `BridgeInterface` is gone, the `actions/*` directory is deleted. OneBot side is NOT done: actions still receive an `ApiActionContext` (a flat bag of functions) and call `ctx.bridge.apis.*` directly rather than going through a dedicated OneBot Api class layer.
This commit is contained in:
1 file changed
+5
-3
+5
-3
@@ -1,7 +1,9 @@
|
||||
# V2.0.0 前计划
|
||||
- [x] 统一Uid/Uin提供一个Service,并实现Sqlite持久化,群/好友/入群和好友申请 获取新Uid。
|
||||
- [ ] 优化Debug体验,实现免打包Debug,同时数据目录正确。(Proton兜底思路改成ts+map提取类型,用于tsx和nodejs,vite正常打包的时候剥离)
|
||||
- [x] 优化Debug体验,实现免打包Debug,同时数据目录正确。(Proton兜底思路改成ts+map提取类型,用于tsx和nodejs,vite正常打包的时候剥离)
|
||||
- [ ] 拆分core,架构为Common(公共能力) OneBot(外层封装 协议转换),Core(Api raw能力,基础能力等功能),Bridge(封装和关键解析能力和Event message/sent group/member_add ...)
|
||||
- [ ] 剥离ProtocolBuffer定义到单独package。
|
||||
- [x] 剥离ProtocolBuffer定义到单独package。
|
||||
- [ ] 整理发送和解析消息链路,提高性能。
|
||||
- [ ] 对齐NapCat设计采用Api层,挂到ctx,Core与Onebot都这么设计。
|
||||
- [~] 对齐NapCat设计采用Api层,挂到ctx,Core与Onebot都这么设计。
|
||||
- [x] Core 侧:13 个 Api 类(message/contacts/groupAdmin/groupFile/groupAlbum/interaction/friend/profile/forward/misc/extras/web)已挂到 `bridge.apis.<area>.method()`,`BridgeInterface` + `actions/*` 全部删除。
|
||||
- [ ] OneBot 侧:仍用 `ApiActionContext` 注入函数 + `ctx.bridge.apis.*` 直调,没有独立的 OneBot Api 类层。
|
||||
Reference in new issue
Block a user