You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(runtime): extract bots subsystem to separate package #3910
The bots subsystem (16 source files: telegram, discord, slack, wecom, wechat, feishu, dingtalk, qq bridges) is bundled inside packages/runtime/src/bots/ despite being a delivery concern orthogonal to session management. This forces 6 third-party IM SDK dependencies into runtime's direct dependency tree.
Evidence
packages/runtime/src/bots/ — 16 files including base-adapter.ts, bot-registry.ts, and 8 platform-specific bridges
packages/runtime/package.json depends on @slack/web-api, @larksuiteoapi/node-sdk, @wecom/aibot-node-sdk, ws at runtime dependency level
These dependencies are only needed for bot bridges, not for core session management
@maka/runtime/bots is the public export path
Proposed Solution
Extract bots/ into its own package (@maka/bots or @maka/runtime-bots) with a dependency on @maka/runtime for session management types.
Benefits:
Removes 6 third-party IM SDK dependencies from @maka/runtime's dependency tree
Clearer ownership boundary — bot bridges are a delivery concern
Independent versioning and release cycle for bot integrations
Smaller @maka/runtime install footprint for non-bot consumers
Acceptance Criteria
@maka/bots package exists with all 16 bot source files
@maka/runtime no longer depends on IM SDK packages directly
All bot bridge tests pass in the new package
@maka/runtime/bots re-export path is preserved for backward compatibility
Bot registry initialization works from the new package
Activity
Astro-Han commentedon Sep 17, 2026
Closing this as an issue for now: the direction has not been confirmed by a maintainer, and the tracker only keeps proposals that already have an agreed scope. Please continue it in GitHub Discussions (https://github.com/apache/maka/discussions); once the shape and acceptance criteria are settled there, open an issue with that scope and it will be picked up.