qwen-code/packages/channels/dingtalk/src
tanzhenxin 7bbd5e6471 fix(channels): address PR review — security, bugs, and reliability
- fix: sanitize remote filenames with basename() and isolate uploads
  in UUID subdirs to prevent path traversal and collision (#2-4, #27)
- fix: use crypto.randomInt() for pairing codes instead of Math.random() (#5)
- fix: pass config.sessionScope instead of hardcoded 'user' (#6);
  add per-channel scope overrides via setChannelScope() for startAll (#7)
- fix: removeSession now returns removed session IDs and persists
  when chatId is provided (#8)
- fix: /clear only removes the cleared session from instructedSessions,
  not all sessions (#9)
- fix: DingTalk @mention stripping now removes only the first mention
  instead of all mentions (#10)
- fix: remove dead TELEGRAF_COMMANDS Set and its guard (#13)
- fix: WeChat cursor saved after message processing, not before (#14)
- fix: crash recovery uses time-window counting instead of resettable
  counter to prevent infinite restart loops (#17)
- fix: call channel.disconnect() before exit on crash exhaustion (#18)
2026-03-31 00:57:59 +00:00
..
DingtalkAdapter.ts fix(channels): address PR review — security, bugs, and reliability 2026-03-31 00:57:59 +00:00
index.ts feat(channels): add ChannelPlugin interface and registry-based factory 2026-03-26 12:34:31 +00:00
markdown.test.ts test(channels): add comprehensive test suites for channel adapters 2026-03-27 15:26:39 +00:00
markdown.ts feat(channels): add DingTalk markdown normalization 2026-03-26 08:34:34 +00:00
media.ts feat(channels): add DingTalk media download support 2026-03-26 08:49:56 +00:00