chore(cli): remove unused <thread-id> from CAS commands #105
Reference in New Issue
Block a user
Delete Branch "chore/cleanup-cas-thread-id"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Remove the vestigial
<thread-id>parameter from all CAS CLI commands.Why
CAS is global (not per-thread). The underlying
cmdCas*functions already droppedthreadIdin #103, but the CLI dispatch layer still parsed and required it from users — then discarded it. This confused users into thinking CAS was per-thread.Changes
commands/cas/dispatch.ts— all 4 dispatch functions simplified:cas get <hash>(was:cas get <thread-id> <hash>)cas put <content>(was:cas put <thread-id> <content>)cas list(was:cas list <thread-id>)cas rm <hash>(was:cas rm <thread-id> <hash>)skill.ts— develop topic CAS table updated to matchRef
Follow-up from #103 review feedback
LGTM. Clean removal of the vestigial
<thread-id>param from all 4 CAS dispatch functions + skill doc. Consistent, no leftover references. ✅LGTM ✅ 干净利落,正好是上次 review 提的那个点。
—— 小墨 🖊️