mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 16:02:29 +00:00
The agent map view was not functional and its components have been removed entirely. The dashboard popout now only supports the kanban board view, with all map-related code, utilities, types, and translations cleaned up accordingly.
42 lines
1.8 KiB
TypeScript
42 lines
1.8 KiB
TypeScript
import type {
|
|
DashboardRevealAgentArgs,
|
|
DashboardSleepWorkspaceArgs,
|
|
DashboardSnapshot,
|
|
DashboardSpawnAgentArgs
|
|
} from '../../shared/dashboard-snapshot'
|
|
import type {
|
|
TerminalPreviewConnectResult,
|
|
TerminalPreviewDataPayload
|
|
} from '../../shared/terminal-preview'
|
|
|
|
export type DashboardApi = {
|
|
openPopout: () => Promise<void>
|
|
publishSnapshot: (snapshot: DashboardSnapshot) => Promise<void>
|
|
getPopoutOpen: () => Promise<boolean>
|
|
onPopoutOpenChanged: (callback: (open: boolean) => void) => () => void
|
|
onSnapshotRequested: (callback: () => void) => () => void
|
|
onRevealAgent: (callback: (args: DashboardRevealAgentArgs) => void) => () => void
|
|
onAckAgent: (callback: (paneKey: string) => void) => () => void
|
|
onSpawnAgent: (callback: (args: DashboardSpawnAgentArgs) => void) => () => void
|
|
onSleepWorkspace: (callback: (args: DashboardSleepWorkspaceArgs) => void) => () => void
|
|
requestSnapshot: () => Promise<void>
|
|
onSnapshot: (callback: (snapshot: DashboardSnapshot) => void) => () => void
|
|
revealAgent: (args: DashboardRevealAgentArgs) => Promise<void>
|
|
ackAgent: (paneKey: string) => Promise<void>
|
|
spawnAgent: (args: DashboardSpawnAgentArgs) => Promise<void>
|
|
sleepWorkspace: (args: DashboardSleepWorkspaceArgs) => Promise<void>
|
|
}
|
|
|
|
export type TerminalPreviewApi = {
|
|
connect: (
|
|
ptyId: string,
|
|
opts?: { scrollbackRows?: number }
|
|
) => Promise<TerminalPreviewConnectResult>
|
|
input: (ptyId: string, data: string) => Promise<boolean>
|
|
/** Claim the PTY grid for the preview dialog; resolves to the size actually in effect. */
|
|
fit: (ptyId: string, cols: number, rows: number) => Promise<{ cols: number; rows: number } | null>
|
|
ack: (ptyId: string, bytes: number) => Promise<void>
|
|
unsubscribe: (ptyId: string) => Promise<void>
|
|
onData: (callback: (payload: TerminalPreviewDataPayload) => void) => () => void
|
|
}
|