Skip to content

[workspace-split] Phase 7: Extract high-level crates (plugins, teams, daemon, commands, ipc) #76

Description

@yaohaowei0914

Part of #68. Target branch: V1. Depends on #75.

Scope

Extract high-level crates.

  • cc-pluginssrc/plugins/ (4 files, 1,911 LOC)
  • cc-teamssrc/teams/ (11 files, 3,164 LOC)
  • cc-daemonsrc/daemon/ (11 files, 1,487 LOC)
  • cc-commandssrc/commands/ (53 files, 12,626 LOC) — second-biggest crate
  • cc-ipcsrc/ipc/ (21 files, 4,724 LOC)

Special considerations

  • cc-commands has 53 separate command files, but each is <300 LOC. After measuring: if commands crate is a bottleneck, sub-split by domain:
    • cc-commands-session, cc-commands-review, cc-commands-daemon, etc.
  • cc-daemon embeds the Team Memory HTTP proxy — keep the Bun server spawn logic intact
  • cc-ipc is the spine between headless/daemon modes and the frontend; exhaustive integration testing required

Acceptance

  • Five new crates
  • E2E tests: headless mode (JSONL over stdio), daemon mode (HTTP/SSE), Team Memory GET/PUT all pass
  • Slash-command dispatch parity with pre-extraction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions