chore: tidy agent event streaming types
This commit is contained in:
@@ -28,4 +28,3 @@ export function onAgentEvent(listener: (evt: AgentEventPayload) => void) {
|
||||
listeners.add(listener);
|
||||
return () => listeners.delete(listener);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,13 +3,13 @@ import net from "node:net";
|
||||
import { getHealthSnapshot, type HealthSummary } from "../commands/health.js";
|
||||
import { getStatusSummary, type StatusSummary } from "../commands/status.js";
|
||||
import { defaultRuntime, type RuntimeEnv } from "../runtime.js";
|
||||
import { type AgentEventPayload, onAgentEvent } from "./agent-events.js";
|
||||
import {
|
||||
emitHeartbeatEvent,
|
||||
getLastHeartbeatEvent,
|
||||
type HeartbeatEventPayload,
|
||||
onHeartbeatEvent,
|
||||
} from "./heartbeat-events.js";
|
||||
import { onAgentEvent, type AgentEventPayload } from "./agent-events.js";
|
||||
|
||||
type ControlRequest = {
|
||||
type: "request";
|
||||
|
||||
Reference in New Issue
Block a user