Skip to content

[FEAT] Add forProject() scoped bus channels to BusClient and BusTui #15

@four-bytes-robby

Description

@four-bytes-robby

Purpose

Complete the project-scoped bus API by adding forProject(id) to both BusClient and BusTui.

What's missing

forService and forSession exist but forProject was planned and marked done without being implemented.

Changes

  • BusClient.forProject(id) + ScopedBusClient.forProject(id) — prefix-based, same mechanics as forSession
  • BusTui.forProject(id) + ScopedBusTui.forProject(id) — same

Channels: brain/{projectId}/status (project-level) vs brain/{sessionId}/status (session-level).

Used by four-opencode-brain to publish startup/ingest status to a project-scoped channel so all sessions in the project receive it via useProjectBus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions