Skip to content

Type Alias: CommandSource

agentmux


agentmux / command-source / CommandSource

CommandSource = "system" | "user" | { agentId: string; kind: "agent"; }

Defined in: command-source.ts:34

Who initiated a command. Defaults to "system" when not specified (background subscriptions, lifecycle callbacks, etc.).

  • "system" — internal flow (stream tick, history load, mirror sub)
  • "user" — direct user action (click, slash command, keystroke)
  • { kind: "agent"; agentId } — agent app-API surface (future; no callers yet, but the type is in place for when the surface lands)