mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 09:27:29 +00:00
27 lines
926 B
TypeScript
27 lines
926 B
TypeScript
import type {
|
|
LocalhostWorktreeLabelResult,
|
|
LocalhostWorktreeLabelRoute
|
|
} from '../../shared/localhost-worktree-labels'
|
|
import type {
|
|
WorkspacePortAdvertisedUrlChangedEvent,
|
|
WorkspacePortKillRequest,
|
|
WorkspacePortKillResult,
|
|
WorkspacePortPageProbeRequest,
|
|
WorkspacePortPageProbeResult,
|
|
WorkspacePortScanRequest,
|
|
WorkspacePortScanResult
|
|
} from '../../shared/workspace-ports'
|
|
|
|
export type WorkspacePortsApi = {
|
|
scan: (args: WorkspacePortScanRequest) => Promise<WorkspacePortScanResult>
|
|
kill: (args: WorkspacePortKillRequest) => Promise<WorkspacePortKillResult>
|
|
probePage: (args: WorkspacePortPageProbeRequest) => Promise<WorkspacePortPageProbeResult>
|
|
onAdvertisedUrlChanged: (
|
|
callback: (event: WorkspacePortAdvertisedUrlChangedEvent) => void
|
|
) => () => void
|
|
}
|
|
|
|
export type LocalhostWorktreeLabelsApi = {
|
|
register: (args: LocalhostWorktreeLabelRoute) => Promise<LocalhostWorktreeLabelResult>
|
|
}
|