Miosa.CommandCenter (Miosa v1.0.0)

Copy Markdown View Source

Read-only views of the Optimal AI agent fleet.

Routes live under /api/v1/command-center/ and require a JWT or msk_u_* API key.

Summary

Functions

List all agents in the fleet (GET /command-center/agents).

Stream live command-center events via SSE (GET /command-center/events).

Get fleet-wide metrics snapshot (GET /command-center/metrics).

Top-level fleet snapshot (GET /command-center).

List agent execution presets (GET /command-center/presets).

List currently running agents (GET /command-center/agents/running).

Get agent tier configuration (GET /command-center/tiers).

Functions

agents(client)

@spec agents(Miosa.Client.t()) :: Miosa.Client.result(list())

List all agents in the fleet (GET /command-center/agents).

events(client, callback)

@spec events(Miosa.Client.t(), function()) :: :ok | {:error, Miosa.Error.t()}

Stream live command-center events via SSE (GET /command-center/events).

callback is invoked for each event map with keys type and data. Returns :ok when the stream closes or {:error, reason} on failure.

metrics(client)

@spec metrics(Miosa.Client.t()) :: Miosa.Client.result(map())

Get fleet-wide metrics snapshot (GET /command-center/metrics).

overview(client)

@spec overview(Miosa.Client.t()) :: Miosa.Client.result(map())

Top-level fleet snapshot (GET /command-center).

presets(client)

@spec presets(Miosa.Client.t()) :: Miosa.Client.result(list())

List agent execution presets (GET /command-center/presets).

running_agents(client)

@spec running_agents(Miosa.Client.t()) :: Miosa.Client.result(list())

List currently running agents (GET /command-center/agents/running).

tiers(client)

@spec tiers(Miosa.Client.t()) :: Miosa.Client.result(map())

Get agent tier configuration (GET /command-center/tiers).