openclaw/docs/zh-CN
max 223eee0a20
refactor: unify peer kind to ChatType, rename dm to direct (#11881)
* fix: use .js extension for ESM imports of RoutePeerKind

The imports incorrectly used .ts extension which doesn't resolve
with moduleResolution: NodeNext. Changed to .js and added 'type'
import modifier.

* fix tsconfig

* refactor: unify peer kind to ChatType, rename dm to direct

- Replace RoutePeerKind with ChatType throughout codebase
- Change 'dm' literal values to 'direct' in routing/session keys
- Keep backward compat: normalizeChatType accepts 'dm' -> 'direct'
- Add ChatType export to plugin-sdk, deprecate RoutePeerKind
- Update session key parsing to accept both 'dm' and 'direct' markers
- Update all channel monitors and extensions to use ChatType

BREAKING CHANGE: Session keys now use 'direct' instead of 'dm'.
Existing 'dm' keys still work via backward compat layer.

* fix tests

* test: update session key expectations for dmdirect migration

- Fix test expectations to expect :direct: in generated output
- Add explicit backward compat test for normalizeChatType('dm')
- Keep input test data with :dm: keys to verify backward compat

* fix: accept legacy 'dm' in session key parsing for backward compat

getDmHistoryLimitFromSessionKey now accepts both :dm: and :direct:
to ensure old session keys continue to work correctly.

* test: add explicit backward compat tests for dmdirect migration

- session-key.test.ts: verify both :dm: and :direct: keys are valid
- getDmHistoryLimitFromSessionKey: verify both formats work

* feat: backward compat for resetByType.dm config key

* test: skip unix-path Nix tests on Windows
2026-02-09 09:20:52 +09:00
..
automation docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
channels docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
cli docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
concepts docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
debug Docs: add zh-CN translations 2026-02-02 16:38:25 +01:00
diagnostics Docs: update zh-CN translations and pipeline 2026-02-03 13:23:00 -08:00
experiments docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
gateway docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
help docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
hooks docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
install docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
nodes docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
platforms docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
plugins docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
providers docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
refactor refactor: unify peer kind to ChatType, rename dm to direct (#11881) 2026-02-09 09:20:52 +09:00
reference docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
security Docs: update zh-CN translations and pipeline 2026-02-03 13:23:00 -08:00
start docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
tools docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
web docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
AGENTS.md Docs(zh-CN): add AGENTS translation workflow 2026-02-03 13:23:15 -08:00
brave-search.md Docs: update zh-CN translations and pipeline 2026-02-03 13:23:00 -08:00
date-time.md Docs: normalize zh-CN terminology + tone 2026-02-02 16:38:25 +01:00
index.md 🤖 docs: mirror landing revamp for zh-CN 2026-02-04 10:42:12 -08:00
logging.md Docs: update zh-CN translations and pipeline 2026-02-03 13:23:00 -08:00
network.md docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
perplexity.md Docs: update zh-CN translations and pipeline 2026-02-03 13:23:00 -08:00
pi-dev.md Docs: update zh-CN translations and pipeline 2026-02-03 13:23:00 -08:00
pi.md Docs: update zh-CN translations and pipeline 2026-02-03 13:23:00 -08:00
prose.md docs: canonicalize docs paths and align zh navigation (#11428) 2026-02-07 15:40:35 -05:00
tts.md Docs: update zh-CN translations and pipeline 2026-02-03 13:23:00 -08:00
vps.md docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00