You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/docs/gateway
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
10 months ago
..
security docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
authentication.md revert(docs): undo markdownlint autofix churn 10 months ago
background-process.md Docs: add nav titles across docs (#5689) 10 months ago
bonjour.md Docs: enable markdownlint autofixables except list numbering (#10476) 10 months ago
bridge-protocol.md Docs: add nav titles across docs (#5689) 10 months ago
cli-backends.md chore: apply local workspace updates (#9911) 10 months ago
configuration-examples.md chore: apply local workspace updates (#9911) 10 months ago
configuration.md refactor: unify peer kind to ChatType, rename dm to direct (#11881) 10 months ago
discovery.md Docs: add nav titles across docs (#5689) 10 months ago
doctor.md Docs: add nav titles across docs (#5689) 10 months ago
gateway-lock.md Docs: add nav titles across docs (#5689) 10 months ago
health.md Docs: add nav titles across docs (#5689) 10 months ago
heartbeat.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
index.md Docs: enable markdownlint autofixables except list numbering (#10476) 10 months ago
local-models.md Docs: enable markdownlint autofixables except list numbering (#10476) 10 months ago
logging.md Docs: add nav titles across docs (#5689) 10 months ago
multiple-gateways.md Docs: add nav titles across docs (#5689) 10 months ago
network-model.md Docs: landing page revamp (#8885) 10 months ago
openai-http-api.md Docs: add nav titles across docs (#5689) 10 months ago
openresponses-http-api.md Docs: add nav titles across docs (#5689) 10 months ago
pairing.md Docs: add nav titles across docs (#5689) 10 months ago
protocol.md Docs: add nav titles across docs (#5689) 10 months ago
remote-gateway-readme.md Docs: add nav titles across docs (#5689) 10 months ago
remote.md docs: restructure Get Started tab and improve onboarding flow (#9950) 10 months ago
sandbox-vs-tool-policy-vs-elevated.md chore: Run `pnpm format:fix`. 10 months ago
sandboxing.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
tailscale.md Docs: enable markdownlint autofixables except list numbering (#10476) 10 months ago
tools-invoke-http-api.md Docs: add nav titles across docs (#5689) 10 months ago
troubleshooting.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago