Cherry-pick batch: Discord adapter (1/2) (50 commits)#1962
Merged
alexey-pelykh merged 62 commits intomainfrom Mar 24, 2026
Merged
Cherry-pick batch: Discord adapter (1/2) (50 commits)#1962alexey-pelykh merged 62 commits intomainfrom
alexey-pelykh merged 62 commits intomainfrom
Conversation
…stream discord adapter batch
(cherry picked from commit 002cc07)
(cherry picked from commit 005b25e)
* perf(inbound): trim cold startup import graph * chore(reply): drop redundant inline action type import * fix(inbound): restore warning and maintenance seams * fix(reply): restore type seam and secure forked transcripts (cherry picked from commit 041f0b8)
(cherry picked from commit 0a0ca80)
(cherry picked from commit 0bfaa36)
(cherry picked from commit 2b5fa09)
(cherry picked from commit 3382ef2)
(cherry picked from commit 4aae0d4)
(cherry picked from commit 05634ee)
(cherry picked from commit 1c6676c)
…w#45660) * refactor: move Discord channel implementation to extensions/discord/src/ Move all Discord source files from src/discord/ to extensions/discord/src/, following the extension migration pattern. Source files in src/discord/ are replaced with re-export shims. Channel-plugin files from src/channels/plugins/*/discord* are similarly moved and shimmed. - Copy all .ts source files preserving subdirectory structure (monitor/, voice/) - Move channel-plugin files (actions, normalize, onboarding, outbound, status-issues) - Fix all relative imports to use correct paths from new location - Create re-export shims at original locations for backward compatibility - Delete test files from shim locations (tests live in extension now) - Update tsconfig.plugin-sdk.dts.json rootDir from "src" to "." to accommodate extension files outside src/ - Update write-plugin-sdk-entry-dts.ts to match new declaration output paths * fix: add importOriginal to thread-bindings session-meta mock for extensions test * style: fix formatting in thread-bindings lifecycle test (cherry picked from commit 5682ec3)
(cherry picked from commit 58cf9b8)
(cherry picked from commit 59bcac4)
(cherry picked from commit 6fa0027)
…w#45517) * refactor: make OutboundSendDeps dynamic with channel-ID keys Replace hardcoded per-channel send fields (sendTelegram, sendDiscord, etc.) with a dynamic index-signature type keyed by channel ID. This unblocks moving channel implementations to extensions without breaking the outbound dispatch contract. - OutboundSendDeps and CliDeps are now { [channelId: string]: unknown } - Each outbound adapter resolves its send fn via bracket access with cast - Lazy-loading preserved via createLazySender with module cache - Delete 6 deps-send-*.runtime.ts one-liner re-export files - Harden guardrail scan against deleted-but-tracked files * fix: preserve outbound send-deps compatibility * style: fix formatting issues (import order, extra bracket, trailing whitespace) * fix: resolve type errors from dynamic OutboundSendDeps in tests and extension * fix: remove unused OutboundSendDeps import from deliver.test-helpers (cherry picked from commit 7764f71)
(cherry picked from commit 7964563)
(cherry picked from commit 7ae0941)
(cherry picked from commit 8b001d6)
(cherry picked from commit 8e6a4c2)
(cherry picked from commit 9270094)
(cherry picked from commit 92bea97)
(cherry picked from commit a0e7e3c)
(cherry picked from commit a2518a1)
(cherry picked from commit b4656f1)
(cherry picked from commit c156f7c)
(cherry picked from commit d163278)
(cherry picked from commit d663df7)
(cherry picked from commit e56e492)
(cherry picked from commit f1b2c56)
(cherry picked from commit 85b7bc7)
(cherry picked from commit 8b001d6)
(cherry picked from commit b4656f1)
(cherry picked from commit c156f7c)
(cherry picked from commit 208fb1a)
(cherry picked from commit 2659fc6)
(cherry picked from commit 301594b)
(cherry picked from commit 3eb039c)
(cherry picked from commit 58a51e2)
(cherry picked from commit 59be2c8)
(cherry picked from commit 59d355b)
…rk structure differs from upstream
…ts — fork keeps discord in src/
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.
Cherry-pick batch from upstream
Issue: #1873
Commits: 38 cherry-picked, 12 skipped (empty after conflict resolution — fork structure differs)
Key changes
Adaptation notes
src/plugin-sdk/channel-pairing.tsas prerequisite modulesrc/discord/layoutruntime-*.ts) incompatible with fork structureSee issue for full commit list.
Closes #1873
🤖 Generated with Claude Code