openclaw/extensions/msteams/src
scoootscooob 7764f717e9
refactor: make OutboundSendDeps dynamic with channel-ID keys (#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
2026-03-14 02:42:21 -07:00
..
attachments test: share msteams safe fetch assertions 2026-03-13 21:40:53 +00:00
monitor-handler refactor: share dual text command gating 2026-03-14 01:41:17 +00:00
attachments.test.ts test: dedupe msteams attachment redirects 2026-03-13 23:35:27 +00:00
attachments.ts
channel.directory.test.ts test: share directory runtime helpers 2026-03-14 02:40:27 +00:00
channel.ts Teams: use scoped plugin SDK channel imports 2026-03-07 16:26:59 -08:00
conversation-store-fs.test.ts
conversation-store-fs.ts
conversation-store-memory.ts
conversation-store.ts
directory-live.ts
errors.test.ts
errors.ts
file-consent-helpers.test.ts
file-consent-helpers.ts
file-consent.ts
file-lock.ts
graph-chat.ts
graph-upload.test.ts refactor: share teams drive upload flow 2026-03-13 16:51:59 +00:00
graph-upload.ts refactor: share teams drive upload flow 2026-03-13 16:51:59 +00:00
graph-users.test.ts
graph-users.ts
graph.ts
inbound.test.ts
inbound.ts
index.ts
media-helpers.test.ts
media-helpers.ts
mentions.test.ts
mentions.ts
messenger.test.ts test: dedupe msteams revoked thread context 2026-03-13 23:35:27 +00:00
messenger.ts
monitor-handler.file-consent.test.ts test: dedupe msteams consent auth fixtures 2026-03-13 21:54:39 +00:00
monitor-handler.ts
monitor-types.ts
monitor.lifecycle.test.ts CI: restore main detect-secrets scan (#38438) 2026-03-07 10:06:35 -08:00
monitor.test.ts
monitor.ts
onboarding.ts refactor: share onboarding allowlist entry parsing 2026-03-08 00:05:24 +00:00
outbound.test.ts
outbound.ts refactor: make OutboundSendDeps dynamic with channel-ID keys (#45517) 2026-03-14 02:42:21 -07:00
pending-uploads.ts
policy.test.ts test: dedupe msteams policy route fixtures 2026-03-13 21:54:39 +00:00
policy.ts fix(routing): require ids for slack and msteams allowlists 2026-03-13 01:44:42 +00:00
polls-store-memory.ts
polls-store.test.ts
polls.test.ts
polls.ts
probe.test.ts
probe.ts refactor: share trimmed list normalization in provider helpers 2026-03-07 23:27:51 +00:00
reply-dispatcher.ts
resolve-allowlist.test.ts fix(msteams): use General channel conversation ID as team key for Bot Framework compatibility (#41838) 2026-03-10 09:13:41 +01:00
resolve-allowlist.ts fix(msteams): use General channel conversation ID as team key for Bot Framework compatibility (#41838) 2026-03-10 09:13:41 +01:00
revoked-context.test.ts
revoked-context.ts
runtime.ts refactor: harden browser runtime profile handling 2026-03-09 00:25:43 +00:00
sdk-types.ts
sdk.ts
secret-input.ts
send-context.ts
send.test.ts
send.ts refactor(extensions): reuse shared helper primitives 2026-03-07 10:41:05 +00:00
sent-message-cache.test.ts
sent-message-cache.ts
storage.ts
store-fs.ts
test-runtime.ts
token-response.test.ts
token-response.ts
token.test.ts CI: restore main detect-secrets scan (#38438) 2026-03-07 10:06:35 -08:00
token.ts