Skip to content

refactor(runtime): extract bots subsystem to separate package #3910

Closed as not planned

Description

@0xMudit

Summary

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

Labels

refactor, help wanted

Activity

  1. added theissue type on Aug 29, 2026
  2. added
    enhancement
    on Sep 17, 2026
  3. Astro-Han commented on Sep 17, 2026

    @Astro-Han
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions