refactor(v3): cli/room.ts 路径助手收敛到 collab-store(防漂移)#202
Open
raysonmeng wants to merge 1 commit into
Open
Conversation
Consolidate resolveDbPath/openStore into collab-store; update currentIdentityId to use readAuthToken instead of inline readFileSync. Removes private duplicates in src/cli/room.ts (identical to collab-store.ts byte-for-byte). Zero behaviour change: error messages still contain 'abg auth login'; 1851 tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012rhWKm1VUSnEVxmjpYwNfc
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.
摘要 / Summary
把
cli/room.ts的私有resolveDbPath/openStore收敛到collab-store.ts(消除与权威实现的逐字节重复 → 防漂移)。dashboard PR(#201) 已收敛了cli/broker.ts的同款,这里补齐cli/room.ts。变更 / Changes(commit
892bc7d)cli/room.ts私有resolveDbPath/openStore(与 collab-store 导出版逐字节等价)→ 改import自 collab-storecurrentIdentityId内部改用collab-store.readAuthToken;清 7 个孤儿 import(node:fs/node:path/SqliteStore/StateDirResolver)/abg auth login/正则、兼容测试 / Test plan
bun run check全绿(1851 pass)🤖 Generated with Claude Code