// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import type { IDaemonInstallationChange } from './DaemonInstallationChange'; import type { IDaemonProtocolVersion } from './DaemonProtocolVersion'; import type { IDaemonWorkspaceStatus } from './DaemonWorkspaceStatus'; /** What a ping asks the daemon to leave out of its pong. Older daemons ignore it and leave nothing out. @beta */ export interface IDaemonPingPayload { /** * Leave `workspace.warmSet` out of the pong. It names every retained, protected and watched project, which in a * large repo makes the pong hundreds of kilobytes. A client that pings only to learn that the daemon is ready sets * this. */ readonly omitWarmSet?: boolean; } /** The liveness reply. @beta */ export interface IDaemonPongMessage { readonly kind: 'pong'; readonly payload: { /** The daemon implementation version, when reported by protocol 0.2 or newer. */ readonly daemonVersion?: string; /** The daemon wire protocol version, when reported by protocol 0.2 or newer. */ readonly protocolVersion?: IDaemonProtocolVersion; /** The daemon process ID, when reported by protocol 0.6 or newer. */ readonly pid?: number; /** The process's resident memory in bytes, when reported by protocol 0.6 or newer. */ readonly residentMemoryBytes?: number; /** Optional generation and warm accounting; older peers may omit this snapshot. */ readonly workspace?: IDaemonWorkspaceStatus; /** * Present when the daemon found its own installation removed or replaced after it started. Its next request * restarts it. Older daemons omit it. */ readonly installationChange?: IDaemonInstallationChange; readonly uptimeMs: number; }; }