Expose refresh intent in preflight API types

This commit is contained in:
Brennan Benson
2026-11-13 10:40:56 -08:00
parent cf4c8f11a5
commit 5fe7308e99
+10 -2
View File
@@ -48,7 +48,11 @@ export type PreflightApi = {
) => Promise<PreflightStatus>
/** Complete by default; background callers opt into host-owned enabled preferences. */
detectAgents: (
args?: PreflightRuntimeContext & { enabledOnly?: boolean; wakeWslDistro?: boolean }
args?: PreflightRuntimeContext & {
enabledOnly?: boolean
wakeWslDistro?: boolean
userInitiated?: boolean
}
) => Promise<string[]>
/** A WSL distro a background check was refused for is running now; re-ask. Desktop only. */
onWslDistroRunning?: (callback: (distro: string) => void) => () => void
@@ -56,7 +60,11 @@ export type PreflightApi = {
zcodeInteractiveCapability: () => Promise<ZCodeInteractiveCapability>
/** `wakeWslDistro`: a user act that may start a stopped WSL distro; background refreshes omit it. */
refreshAgents: (
args?: PreflightRuntimeContext & { enabledOnly?: boolean; wakeWslDistro?: boolean }
args?: PreflightRuntimeContext & {
enabledOnly?: boolean
wakeWslDistro?: boolean
userInitiated?: boolean
}
) => Promise<RefreshAgentsResult>
detectRemoteAgents: (args: { connectionId: string }) => Promise<string[]>
detectRemoteWindowsTerminalCapabilities: (args: { connectionId: string }) => Promise<{