@stim-cli/core 1.38.0 → 1.40.0-next.20261103050129.gd5fe899
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{core-Hohf5Wnt.mjs → core-DdPq-c64.mjs} +8 -1
- package/dist/{index-UT7ghV30.d.mts → index-DYumFNYh.d.mts} +220 -17
- package/dist/index.d.mts +7 -2
- package/dist/index.mjs +2 -2
- package/dist/noise-session.d.mts +10 -2
- package/dist/noise-session.mjs +17 -3
- package/dist/phone-protocol.d.mts +5 -9
- package/dist/{protocol-CGriFVo2.d.mts → protocol-_p7V6XGi.d.mts} +124 -26
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +20 -8
- package/dist/receive-protocol.mjs +6837 -7768
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +230 -62
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as DesktopBuildEndedEvent, $n as
|
|
1
|
+
import { Do as BuildDetail, Ec as ArchivedWorkspace, Es as StatusPayload, Fo as BuildPlanPayload, Go as DiskMeasure, Ho as DeviceAppProcess, Is as WorkspaceStage, Jo as EnvironmentState, Kc as MaintenanceAction, Lo as BuildReport, Ls as WorktreeFacts, Mo as BuildMissReason, Ns as WebBrowserState, Oo as BuildDiagnostic, Po as BuildPlacement, Rs as WorktreeGit, Tc as ArchivedUsage, Uo as DeviceLeaseState, Vo as DeviceActivity, Xc as MaintenancePass, Yo as GitChip, Zc as MaintenancePressure, Zo as LastBuildReport, _o as AgentSession, a as MachineView, ad as HostedMacosPlacement, ds as PhysicalDeviceState, en as withDerivedFacts, f as statusViews, gc as MacosAppRecord, gs as SimulatorState, i as ArchivedSummary, jo as BuildMissChange, ko as BuildHistoryEntry, os as MetroBundleState, ps as RemoteDeviceState, qo as EnvironmentDisk, r as applyKeyedDelta, rs as MachineUsageState, tl as MaintenanceStatus, ts as MachineOwner, vc as MacosBuild, wo as BuildActivity, ws as StatusIssue, yo as AndroidDeviceState, zo as BuildWaitingFor, zs as WorktreePullRequest } from "./index-DYumFNYh.mjs";
|
|
2
|
+
import { $ as DesktopBuildEndedEvent, $n as Platform, At as DeviceUsageSeries, Bt as FrameEvent, Cr as SERVER_UPDATE_METHODS, Ct as DesktopWorktreeRemoveProgressEvent, Dn as MachineEvent, Dt as DeviceFrameEvent, En as MachineDetails, Et as DeviceFrameArtwork, Fr as SimulatorOptions, G as ControlBeginParams, Gt as FramesSubscribeResult, Hn as NotificationEvent, Hr as UsageSample, J as ControlEndedEvent, Jt as HelloResult, K as ControlBeginResult, Ln as Methods, Mn as MachineVolume, O as BuildPlanParams, On as MachineHistory, Ot as DevicePosture, Pn as MacosWindowsEvent, Pr as SimulatorCommand, Pt as ErrorEvent, Qt as InputButton, Sn as LogsQueryResult, Sr as RotateDirection, St as DesktopWorktreeRemoveEndedEvent, T as BuildMachineReport, Tr as ServerEvent, Tt as DesktopWorktreeWarmProgressEvent, Un as NotificationLevel, Vn as NotificationEntry, Vr as UsageHistory, Vt as FrameTarget, Wn as NotificationSuppression, X as DEVICE_HOST_METHODS, Xn as PROTOCOL_VERSION, _n as LogLevel, _r as ReplayMarker, a as ActionResult, ai as WorkspacePatch, an as InputSimulatorParams, bn as LogsEndedEvent, br as ReplayTarget, bt as DesktopStopEndedEvent, c as ArchivedListParams, ct as DesktopReloadProgressEvent, dt as DesktopReportEvent, ei as WorkspaceDiff, en as InputKey, et as DesktopBuildProgressEvent, gn as LogFilter, gr as ReplayKeyframeParams, hr as ReplayKeyframe, ht as DesktopRunProgressEvent, i as ActionParams, ir as PushRegisterParams, j as BuildProgressEvent, jn as MachineUsage, lt as DesktopRemedyEndedEvent, mr as ReplayEndedEvent, mt as DesktopRunEndedEvent, ni as WorkspaceFile, nr as ProtocolError, nt as DesktopGcProgressEvent, o as ArchiveDetailParams, oi as WorkspaceRef, qn as NotificationsListResult, qt as HelloParams, r as ActionName, ri as WorkspaceFiles, rr as PushEvent, si as WorkspacesEvent, st as DesktopReloadEndedEvent, t as ACTIONS, ti as WorkspaceEvent, tt as DesktopGcEndedEvent, u as BUILD_METHODS, un as KeyModifier, ut as DesktopRemedyProgressEvent, v as BuildClientSummary, vn as LogRecord, vr as ReplayRange, vt as DesktopStartEndedEvent, wt as DesktopWorktreeWarmEndedEvent, xn as LogsEvent, xt as DesktopStopProgressEvent, yn as LogSource, yr as ReplaySpan, yt as DesktopStartProgressEvent, zr as TouchPhase, zt as FrameDelayedEvent } from "./protocol-_p7V6XGi.mjs";
|
|
3
3
|
//#region phone-protocol.d.ts
|
|
4
4
|
type PhonePlatform = BuildPlanParams["platform"];
|
|
5
5
|
type PhoneDevicePlatform = Platform;
|
|
@@ -413,10 +413,6 @@ type PhoneNotificationsListResult = Omit<NotificationsListResult, "notifications
|
|
|
413
413
|
type PhoneProtocolError = Omit<ProtocolError, "code"> & {
|
|
414
414
|
code: string;
|
|
415
415
|
};
|
|
416
|
-
type PhoneStatusEvent = Omit<StatusEvent, "payload" | "usage"> & {
|
|
417
|
-
payload: PhoneStatusPayload;
|
|
418
|
-
usage?: PhoneStatusUsage;
|
|
419
|
-
};
|
|
420
416
|
type PhoneLogsEndedEvent = LogsEndedEvent;
|
|
421
417
|
type PhoneLogsEvent = Omit<LogsEvent, "records"> & {
|
|
422
418
|
records: PhoneLogRecord[];
|
|
@@ -439,7 +435,7 @@ type PhoneControlEndedEvent = Omit<ControlEndedEvent, "reason"> & {
|
|
|
439
435
|
type PhoneNotificationEvent = Omit<NotificationEvent, "notification"> & {
|
|
440
436
|
notification: PhoneNotificationEntry;
|
|
441
437
|
};
|
|
442
|
-
type PhoneServerEvent = Exclude<ServerEvent, BuildProgressEvent |
|
|
438
|
+
type PhoneServerEvent = Exclude<ServerEvent, BuildProgressEvent | WorkspacesEvent | WorkspaceEvent | MachineEvent | LogsEvent | ErrorEvent | FrameEvent | ControlEndedEvent | NotificationEvent | MacosWindowsEvent | DesktopReportEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopRemedyProgressEvent | DesktopRemedyEndedEvent | DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStartProgressEvent | DesktopStartEndedEvent | DesktopRunProgressEvent | DesktopRunEndedEvent | DesktopBuildProgressEvent | DesktopBuildEndedEvent | DesktopGcProgressEvent | DesktopGcEndedEvent | DesktopWorktreeRemoveProgressEvent | DesktopWorktreeRemoveEndedEvent | DesktopWorktreeWarmProgressEvent | DesktopWorktreeWarmEndedEvent> | PhoneMacosWindowsEvent | PhoneWorkspacesEvent | PhoneWorkspaceEvent | PhoneMachineEvent | PhoneLogsEvent | PhoneErrorEvent | PhoneFrameEvent | PhoneControlEndedEvent | PhoneNotificationEvent;
|
|
443
439
|
/** Fields introduced after protocol v1's initial release remain optional on the receiving client. */
|
|
444
440
|
type OptionalFields<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
445
441
|
type PhoneHelloResult = OptionalFields<Omit<HelloResult, "server" | "features" | "capabilities" | "actions" | "approval">, "device"> & {
|
|
@@ -452,7 +448,7 @@ type PhoneHelloResult = OptionalFields<Omit<HelloResult, "server" | "features" |
|
|
|
452
448
|
expiresAt: string;
|
|
453
449
|
};
|
|
454
450
|
};
|
|
455
|
-
type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVICE_HOST_METHODS)[number] | (typeof SERVER_UPDATE_METHODS)[number] | "desktop.authenticate" | "desktop.reports.get" | "desktop.reports.subscribe" | "desktop.reports.invalidate" | "desktop.settings.get" | "desktop.settings.write" | "desktop.logs.subscribe" | "desktop.doctor.run" | "desktop.stop.subscribe" | "desktop.reload.subscribe" | "desktop.start.subscribe" | "desktop.run.subscribe" | "desktop.build.subscribe" | "desktop.gc.subscribe" | "desktop.worktree.remove.subscribe" | "desktop.worktree.warm.subscribe" | "desktop.plan.get" | "desktop.plan.cancel" | "machines.update.start" | "machines.update.status" | "device-host.sessions" | "device-host.sessions.stop" | "route.setup" | "hello" | "logs.query" | "machine.get" | "machine.details" | "machine.history" | "workspace.diff" | "frames.subscribe" | "replay.range" | "archive.detail" | "replay.keyframe" | "build.plan" | "action" | "control.begin" | "notifications.list" | "builds.history" | "archived.list" | "worktrees.list" | "maintenance.get"> & {
|
|
451
|
+
type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVICE_HOST_METHODS)[number] | (typeof SERVER_UPDATE_METHODS)[number] | "desktop.authenticate" | "desktop.reports.get" | "desktop.reports.subscribe" | "desktop.reports.invalidate" | "desktop.settings.get" | "desktop.settings.write" | "desktop.logs.subscribe" | "desktop.doctor.run" | "desktop.remedy.subscribe" | "desktop.stop.subscribe" | "desktop.reload.subscribe" | "desktop.start.subscribe" | "desktop.run.subscribe" | "desktop.build.subscribe" | "desktop.gc.subscribe" | "desktop.worktree.remove.subscribe" | "desktop.worktree.warm.subscribe" | "desktop.plan.get" | "desktop.plan.cancel" | "machines.update.start" | "machines.update.status" | "device-host.sessions" | "device-host.sessions.stop" | "share.start" | "share.stop" | "share.list" | "route.setup" | "hello" | "logs.query" | "machine.get" | "machine.details" | "machine.history" | "workspace.diff" | "frames.subscribe" | "replay.range" | "archive.detail" | "replay.keyframe" | "build.plan" | "action" | "control.begin" | "notifications.list" | "builds.history" | "archived.list" | "worktrees.list" | "maintenance.get"> & {
|
|
456
452
|
"builds.history": {
|
|
457
453
|
params: WorkspaceRef;
|
|
458
454
|
result: {
|
|
@@ -550,4 +546,4 @@ type PhoneResponse<M extends PhoneMethod = PhoneMethod> = {
|
|
|
550
546
|
};
|
|
551
547
|
type PhoneServerMessage = PhoneResponse | PhoneServerEvent;
|
|
552
548
|
//#endregion
|
|
553
|
-
export { ACTIONS, type PhoneActionName as ActionName, PhoneActionName, type PhoneActionParams as ActionParams, PhoneActionParams, type PhoneActionResult as ActionResult, PhoneActionResult, type PhoneAgentSession as AgentSession, PhoneAgentSession, type PhoneAndroidState as AndroidState, PhoneAndroidState, type PhoneAppPresence as AppPresence, PhoneAppPresence, type PhoneArchiveDetailResult as ArchiveDetailResult, PhoneArchiveDetailResult, type PhoneArchivedSummary as ArchivedSummary, PhoneArchivedSummary, type PhoneArchivedWorkspace as ArchivedWorkspace, PhoneArchivedWorkspace, type PhoneBuildActivity as BuildActivity, PhoneBuildActivity, type PhoneBuildCacheHit as BuildCacheHit, PhoneBuildCacheHit, type PhoneBuildClientSummary as BuildClientSummary, PhoneBuildClientSummary, type PhoneBuildDetail as BuildDetail, PhoneBuildDetail, type PhoneBuildDiagnostic as BuildDiagnostic, PhoneBuildDiagnostic, type PhoneBuildHistoryEntry as BuildHistoryEntry, PhoneBuildHistoryEntry, type PhoneBuildMachineReport as BuildMachineReport, PhoneBuildMachineReport, type PhoneBuildMissCategory as BuildMissCategory, PhoneBuildMissCategory, type PhoneBuildMissChange as BuildMissChange, PhoneBuildMissChange, type PhoneBuildMissReason as BuildMissReason, PhoneBuildMissReason, type PhoneBuildPhase as BuildPhase, PhoneBuildPhase, type PhoneBuildPlacement as BuildPlacement, PhoneBuildPlacement, type PhoneBuildPlan as BuildPlan, PhoneBuildPlan, type PhoneBuildPlanParams as BuildPlanParams, PhoneBuildPlanParams, type PhoneBuildReport as BuildReport, PhoneBuildReport, type PhoneBuildResult as BuildResult, PhoneBuildResult, type PhoneControlBeginParams as ControlBeginParams, PhoneControlBeginParams, type PhoneControlBeginResult as ControlBeginResult, PhoneControlBeginResult, type PhoneControlEndedEvent as ControlEndedEvent, PhoneControlEndedEvent, type PhoneDeviceActivity as DeviceActivity, PhoneDeviceActivity, type PhoneDeviceAppProcess as DeviceAppProcess, PhoneDeviceAppProcess, type PhoneDeviceDisk as DeviceDisk, PhoneDeviceDisk, type PhoneDeviceFrameArtwork as DeviceFrameArtwork, PhoneDeviceFrameArtwork, type PhoneDeviceFrameEvent as DeviceFrameEvent, PhoneDeviceFrameEvent, type PhoneDeviceLeaseState as DeviceLeaseState, PhoneDeviceLeaseState, type PhoneDevicePlatform as DevicePlatform, PhoneDevicePlatform, type PhoneDevicePosture as DevicePosture, PhoneDevicePosture, type PhoneEndedAgentSession as EndedAgentSession, PhoneEndedAgentSession, type PhoneEnvironmentState as EnvironmentState, PhoneEnvironmentState, type PhoneErrorEvent as ErrorEvent, PhoneErrorEvent, type PhoneFrameDelayedEvent as FrameDelayedEvent, PhoneFrameDelayedEvent, type PhoneFrameEvent as FrameEvent, PhoneFrameEvent, type PhoneFrameTarget as FrameTarget, PhoneFrameTarget, type PhoneGitChipFacts as GitChipFacts, PhoneGitChipFacts, type PhoneGitChipPart as GitChipPart, PhoneGitChipPart, type PhoneHelloResult as HelloResult, PhoneHelloResult, type PhoneInputButton as InputButton, PhoneInputButton, type PhoneInputKey as InputKey, PhoneInputKey, type PhoneInputSimulatorParams as InputSimulatorParams, PhoneInputSimulatorParams, type PhoneKeyModifier as KeyModifier, PhoneKeyModifier, type PhoneLastBuild as LastBuild, PhoneLastBuild, type PhoneLogFilter as LogFilter, PhoneLogFilter, type PhoneLogLevel as LogLevel, PhoneLogLevel, type PhoneLogRecord as LogRecord, PhoneLogRecord, type PhoneLogSource as LogSource, PhoneLogSource, type PhoneLogsEndedEvent as LogsEndedEvent, PhoneLogsEndedEvent, type PhoneLogsEvent as LogsEvent, PhoneLogsEvent, type PhoneMachineDetails as MachineDetails, PhoneMachineDetails, type PhoneMachineEvent as MachineEvent, PhoneMachineEvent, type PhoneMachineHistory as MachineHistory, PhoneMachineHistory, type PhoneMachineOwner as MachineOwner, PhoneMachineOwner, type PhoneMachineOwnerKind as MachineOwnerKind, PhoneMachineOwnerKind, type PhoneMachineUsage as MachineUsage, PhoneMachineUsage, type PhoneMachineUsageState as MachineUsageState, PhoneMachineUsageState, type PhoneMachineView as MachineView, PhoneMachineView, type PhoneMachineVolume as MachineVolume, PhoneMachineVolume, type PhoneMacosAppState as MacosAppState, PhoneMacosAppState, type PhoneMacosWindowsEvent as MacosWindowsEvent, PhoneMacosWindowsEvent, type PhoneMemoryPressure as MemoryPressure, PhoneMemoryPressure, type PhoneMethod as Method, PhoneMethod, type PhoneMethods as Methods, PhoneMethods, type PhoneMetroBundle as MetroBundle, PhoneMetroBundle, type PhoneNotificationEntry as NotificationEntry, PhoneNotificationEntry, type PhoneNotificationEvent as NotificationEvent, PhoneNotificationEvent, type PhoneNotificationLevel as NotificationLevel, PhoneNotificationLevel, type PhoneNotificationSuppression as NotificationSuppression, PhoneNotificationSuppression, type PhoneNotificationTarget as NotificationTarget, PhoneNotificationTarget, type PhoneNotificationsListResult as NotificationsListResult, PhoneNotificationsListResult, PROTOCOL_VERSION, type PhonePairingPayload as PairingPayload, PhonePairingPayload, PhoneKeyedDelta, PhoneMaintenanceStatus, PhonePhysicalDeviceState, type PhonePhysicalDeviceState as PhysicalDeviceState, PhonePlatform, type PhonePlatform as Platform, PhoneProtocolError, type PhoneProtocolError as ProtocolError, PhonePullRequestFacts, type PhonePullRequestFacts as PullRequestFacts, PhonePushEvent, type PhonePushEvent as PushEvent, PhonePushRegisterParams, type PhonePushRegisterParams as PushRegisterParams, PhoneReloadPlatform, type PhoneReloadPlatform as ReloadPlatform, PhoneRemoteDeviceState, type PhoneRemoteDeviceState as RemoteDeviceState, PhoneReplayEndedEvent, type PhoneReplayEndedEvent as ReplayEndedEvent, PhoneReplayKeyframe, type PhoneReplayKeyframe as ReplayKeyframe, PhoneReplayMarker, type PhoneReplayMarker as ReplayMarker, PhoneReplayRange, type PhoneReplayRange as ReplayRange, PhoneReplayRate, type PhoneReplayRate as ReplayRate, PhoneReplaySpan, type PhoneReplaySpan as ReplaySpan, PhoneResponse, type PhoneResponse as Response, PhoneRotateDirection, type PhoneRotateDirection as RotateDirection, PhoneServerEvent, type PhoneServerEvent as ServerEvent, PhoneServerMessage, type PhoneServerMessage as ServerMessage, PhoneSimState, type PhoneSimState as SimState, PhoneSimulatorCommand, type PhoneSimulatorCommand as SimulatorCommand, PhoneSimulatorOptions, type PhoneSimulatorOptions as SimulatorOptions, PhoneStackFrame, type PhoneStackFrame as StackFrame, PhoneStageFacts, type PhoneStageFacts as StageFacts,
|
|
549
|
+
export { ACTIONS, type PhoneActionName as ActionName, PhoneActionName, type PhoneActionParams as ActionParams, PhoneActionParams, type PhoneActionResult as ActionResult, PhoneActionResult, type PhoneAgentSession as AgentSession, PhoneAgentSession, type PhoneAndroidState as AndroidState, PhoneAndroidState, type PhoneAppPresence as AppPresence, PhoneAppPresence, type PhoneArchiveDetailResult as ArchiveDetailResult, PhoneArchiveDetailResult, type PhoneArchivedSummary as ArchivedSummary, PhoneArchivedSummary, type PhoneArchivedWorkspace as ArchivedWorkspace, PhoneArchivedWorkspace, type PhoneBuildActivity as BuildActivity, PhoneBuildActivity, type PhoneBuildCacheHit as BuildCacheHit, PhoneBuildCacheHit, type PhoneBuildClientSummary as BuildClientSummary, PhoneBuildClientSummary, type PhoneBuildDetail as BuildDetail, PhoneBuildDetail, type PhoneBuildDiagnostic as BuildDiagnostic, PhoneBuildDiagnostic, type PhoneBuildHistoryEntry as BuildHistoryEntry, PhoneBuildHistoryEntry, type PhoneBuildMachineReport as BuildMachineReport, PhoneBuildMachineReport, type PhoneBuildMissCategory as BuildMissCategory, PhoneBuildMissCategory, type PhoneBuildMissChange as BuildMissChange, PhoneBuildMissChange, type PhoneBuildMissReason as BuildMissReason, PhoneBuildMissReason, type PhoneBuildPhase as BuildPhase, PhoneBuildPhase, type PhoneBuildPlacement as BuildPlacement, PhoneBuildPlacement, type PhoneBuildPlan as BuildPlan, PhoneBuildPlan, type PhoneBuildPlanParams as BuildPlanParams, PhoneBuildPlanParams, type PhoneBuildReport as BuildReport, PhoneBuildReport, type PhoneBuildResult as BuildResult, PhoneBuildResult, type PhoneControlBeginParams as ControlBeginParams, PhoneControlBeginParams, type PhoneControlBeginResult as ControlBeginResult, PhoneControlBeginResult, type PhoneControlEndedEvent as ControlEndedEvent, PhoneControlEndedEvent, type PhoneDeviceActivity as DeviceActivity, PhoneDeviceActivity, type PhoneDeviceAppProcess as DeviceAppProcess, PhoneDeviceAppProcess, type PhoneDeviceDisk as DeviceDisk, PhoneDeviceDisk, type PhoneDeviceFrameArtwork as DeviceFrameArtwork, PhoneDeviceFrameArtwork, type PhoneDeviceFrameEvent as DeviceFrameEvent, PhoneDeviceFrameEvent, type PhoneDeviceLeaseState as DeviceLeaseState, PhoneDeviceLeaseState, type PhoneDevicePlatform as DevicePlatform, PhoneDevicePlatform, type PhoneDevicePosture as DevicePosture, PhoneDevicePosture, type PhoneEndedAgentSession as EndedAgentSession, PhoneEndedAgentSession, type PhoneEnvironmentState as EnvironmentState, PhoneEnvironmentState, type PhoneErrorEvent as ErrorEvent, PhoneErrorEvent, type PhoneFrameDelayedEvent as FrameDelayedEvent, PhoneFrameDelayedEvent, type PhoneFrameEvent as FrameEvent, PhoneFrameEvent, type PhoneFrameTarget as FrameTarget, PhoneFrameTarget, type PhoneGitChipFacts as GitChipFacts, PhoneGitChipFacts, type PhoneGitChipPart as GitChipPart, PhoneGitChipPart, type PhoneHelloResult as HelloResult, PhoneHelloResult, type PhoneInputButton as InputButton, PhoneInputButton, type PhoneInputKey as InputKey, PhoneInputKey, type PhoneInputSimulatorParams as InputSimulatorParams, PhoneInputSimulatorParams, type PhoneKeyModifier as KeyModifier, PhoneKeyModifier, type PhoneLastBuild as LastBuild, PhoneLastBuild, type PhoneLogFilter as LogFilter, PhoneLogFilter, type PhoneLogLevel as LogLevel, PhoneLogLevel, type PhoneLogRecord as LogRecord, PhoneLogRecord, type PhoneLogSource as LogSource, PhoneLogSource, type PhoneLogsEndedEvent as LogsEndedEvent, PhoneLogsEndedEvent, type PhoneLogsEvent as LogsEvent, PhoneLogsEvent, type PhoneMachineDetails as MachineDetails, PhoneMachineDetails, type PhoneMachineEvent as MachineEvent, PhoneMachineEvent, type PhoneMachineHistory as MachineHistory, PhoneMachineHistory, type PhoneMachineOwner as MachineOwner, PhoneMachineOwner, type PhoneMachineOwnerKind as MachineOwnerKind, PhoneMachineOwnerKind, type PhoneMachineUsage as MachineUsage, PhoneMachineUsage, type PhoneMachineUsageState as MachineUsageState, PhoneMachineUsageState, type PhoneMachineView as MachineView, PhoneMachineView, type PhoneMachineVolume as MachineVolume, PhoneMachineVolume, type PhoneMacosAppState as MacosAppState, PhoneMacosAppState, type PhoneMacosWindowsEvent as MacosWindowsEvent, PhoneMacosWindowsEvent, type PhoneMemoryPressure as MemoryPressure, PhoneMemoryPressure, type PhoneMethod as Method, PhoneMethod, type PhoneMethods as Methods, PhoneMethods, type PhoneMetroBundle as MetroBundle, PhoneMetroBundle, type PhoneNotificationEntry as NotificationEntry, PhoneNotificationEntry, type PhoneNotificationEvent as NotificationEvent, PhoneNotificationEvent, type PhoneNotificationLevel as NotificationLevel, PhoneNotificationLevel, type PhoneNotificationSuppression as NotificationSuppression, PhoneNotificationSuppression, type PhoneNotificationTarget as NotificationTarget, PhoneNotificationTarget, type PhoneNotificationsListResult as NotificationsListResult, PhoneNotificationsListResult, PROTOCOL_VERSION, type PhonePairingPayload as PairingPayload, PhonePairingPayload, PhoneKeyedDelta, PhoneMaintenanceStatus, PhonePhysicalDeviceState, type PhonePhysicalDeviceState as PhysicalDeviceState, PhonePlatform, type PhonePlatform as Platform, PhoneProtocolError, type PhoneProtocolError as ProtocolError, PhonePullRequestFacts, type PhonePullRequestFacts as PullRequestFacts, PhonePushEvent, type PhonePushEvent as PushEvent, PhonePushRegisterParams, type PhonePushRegisterParams as PushRegisterParams, PhoneReloadPlatform, type PhoneReloadPlatform as ReloadPlatform, PhoneRemoteDeviceState, type PhoneRemoteDeviceState as RemoteDeviceState, PhoneReplayEndedEvent, type PhoneReplayEndedEvent as ReplayEndedEvent, PhoneReplayKeyframe, type PhoneReplayKeyframe as ReplayKeyframe, PhoneReplayMarker, type PhoneReplayMarker as ReplayMarker, PhoneReplayRange, type PhoneReplayRange as ReplayRange, PhoneReplayRate, type PhoneReplayRate as ReplayRate, PhoneReplaySpan, type PhoneReplaySpan as ReplaySpan, PhoneResponse, type PhoneResponse as Response, PhoneRotateDirection, type PhoneRotateDirection as RotateDirection, PhoneServerEvent, type PhoneServerEvent as ServerEvent, PhoneServerMessage, type PhoneServerMessage as ServerMessage, PhoneSimState, type PhoneSimState as SimState, PhoneSimulatorCommand, type PhoneSimulatorCommand as SimulatorCommand, PhoneSimulatorOptions, type PhoneSimulatorOptions as SimulatorOptions, PhoneStackFrame, type PhoneStackFrame as StackFrame, PhoneStageFacts, type PhoneStageFacts as StageFacts, PhoneStatusIssue, type PhoneStatusIssue as StatusIssue, PhoneStatusPayload, type PhoneStatusPayload as StatusPayload, PhoneStatusUsage, type PhoneStatusUsage as StatusUsage, PhoneTouchPhase, type PhoneTouchPhase as TouchPhase, PhoneUsageSample, type PhoneUsageSample as UsageSample, PhoneWebBrowserState, type PhoneWebBrowserState as WebBrowserState, PhoneWorkspaceDiff, type PhoneWorkspaceDiff as WorkspaceDiff, PhoneWorkspaceDisk, type PhoneWorkspaceDisk as WorkspaceDisk, PhoneWorkspaceEvent, type PhoneWorkspaceEvent as WorkspaceEvent, PhoneWorkspaceFile, type PhoneWorkspaceFile as WorkspaceFile, PhoneWorkspaceFiles, type PhoneWorkspaceFiles as WorkspaceFiles, PhoneWorkspacePatch, type PhoneWorkspacePatch as WorkspacePatch, PhoneWorkspaceSummary, type PhoneWorkspaceSummary as WorkspaceSummary, PhoneWorkspacesEvent, type PhoneWorkspacesEvent as WorkspacesEvent, PhoneWorktreeFacts, type PhoneWorktreeFacts as WorktreeFacts, PhoneWorktreeGit, type PhoneWorktreeGit as WorktreeGit, PhoneWorktreeRow, type PhoneWorktreeRow as WorktreeRow, applyKeyedDelta, statusViews, withDerivedFacts };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ec as ArchivedWorkspace, Fo as BuildPlanPayload, H as HostedLogsCursor, Jo as EnvironmentState, Ls as WorktreeFacts, Su as HostedDeviceRequest, Tc as ArchivedUsage, U as HostedLogsPage, _d as HostedAppOffer, a as MachineView, bu as HostedDevicePhase, d as WorktreeRow, ec as SettingScope, hd as HostedAppDelivery, i as ArchivedSummary, is as MacosBuildPlanPayload, ko as BuildHistoryEntry, nc as SettingWriteResult, nd as HostedAppLaunch, qd as NdjsonRecord, t as KeyedDelta, tl as MaintenanceStatus, u as WorkspaceSummary, vu as HostedDeviceOffer, wu as HostedDeviceSession, xu as HostedDevicePlatform, yu as HostedDeviceOfferRequest } from "./index-DYumFNYh.mjs";
|
|
2
2
|
//#region protocol.d.ts
|
|
3
3
|
declare const PROTOCOL_VERSION = 2;
|
|
4
4
|
declare const PROTOCOL_SCHEMA_FILE = "protocol.schema.json";
|
|
@@ -27,6 +27,7 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
27
27
|
* bringing it to the front, or with null resumes following the front window.
|
|
28
28
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
29
29
|
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
30
|
+
* `hosted-app-state` queries the current process state of an installed iOS or Android app attempt.
|
|
30
31
|
* `hosted-ios-process` and `hosted-android-process` accept native app offers in process mode, with live process readiness and no Metro.
|
|
31
32
|
* `hosted-metro-link` carries hosted Metro over `device-host.metro.link` connections the client opens, so the host never
|
|
32
33
|
* connects to the client.
|
|
@@ -53,9 +54,8 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
53
54
|
* `build-reuse-artifact` accepts `reuseArtifact` with `podsOnWorker` on `build.start`.
|
|
54
55
|
* `build-jdk` accepts `jdk` on `build.start`, the JDK major an Android build runs on; the machine finds an installed JDK of that
|
|
55
56
|
* major when its default differs.
|
|
56
|
-
* `status-views` is `workspaces.subscribe`, `workspace.subscribe`, `machine.subscribe`, `builds.history`,
|
|
57
|
-
* `archived.list`, `worktrees.list` and `maintenance.get`.
|
|
58
57
|
* `desktop-reports` serves cached doctor/GC reports to the authenticated local Desktop connection.
|
|
58
|
+
* `desktop-machine-history` adds machine-wide build and cleanup history to those reports.
|
|
59
59
|
* `desktop-report-platform` accepts an optional ios/android selector for Desktop doctor reports.
|
|
60
60
|
* `desktop-report-invalidate-target` accepts a report target in `desktop.reports.invalidate`, which then invalidates only it.
|
|
61
61
|
* `desktop-settings` reads settings for a selected folder on the authenticated local Desktop connection.
|
|
@@ -66,11 +66,12 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
66
66
|
* `desktop-run` streams platform build/install/launch progress and facts on the proved local Desktop connection.
|
|
67
67
|
* `desktop-build` streams build-only progress and artifact facts on the proved local Desktop connection.
|
|
68
68
|
* `desktop-plan` reads next-build reports for selected folders on the proved local Desktop connection.
|
|
69
|
+
* `share-stop-id` lets `share.stop` take a share `id` and end only that share.
|
|
69
70
|
* `desktop-reload` streams reload output and its terminal result on the proved local Desktop connection.
|
|
70
71
|
*/
|
|
71
|
-
declare const FEATURES: readonly ["physical-ios", "physical-android", "notifications", "macos-window", "macos-windows", "macos-window-select", "macos-window-control", "macos-keyboard-extended", "device-frames", "macos-hosted", "ios-hosted", "android-hosted", "hosted-ios-agent", "hosted-android-agent", "duo-frames", "workspace-diff", "hosted-congestion", "hosted-ios-data", "hosted-ios-process", "native-xcode-build", "native-xcode-toolchain", "build-artifact-cache", "native-gradle-build", "native-gradle-artifact-cache", "native-gradle-peer-cache", "native-gradle-peer-jdk", "react-native-peer-cache", "fingerprint-sources", "fingerprint-ignored", "fingerprint-tracked", "swiftpm-peer-cache", "build-dependency-cache", "hosted-android-data", "hosted-android-process", "hosted-metro-ports", "hosted-metro-link", "hosted-agent-link", "server-update", "build-compat", "build-jdk", "build-reuse-artifact", "
|
|
72
|
+
declare const FEATURES: readonly ["physical-ios", "physical-android", "notifications", "macos-window", "macos-windows", "macos-window-select", "macos-window-control", "macos-keyboard-extended", "device-frames", "macos-hosted", "ios-hosted", "android-hosted", "hosted-ios-agent", "hosted-android-agent", "duo-frames", "workspace-diff", "hosted-congestion", "hosted-ios-data", "hosted-ios-process", "hosted-app-state", "native-xcode-build", "native-xcode-toolchain", "build-artifact-cache", "native-gradle-build", "native-gradle-artifact-cache", "native-gradle-peer-cache", "native-gradle-peer-jdk", "react-native-peer-cache", "fingerprint-sources", "fingerprint-ignored", "fingerprint-tracked", "swiftpm-peer-cache", "build-dependency-cache", "hosted-android-data", "hosted-android-process", "hosted-metro-ports", "hosted-metro-link", "hosted-agent-link", "server-update", "build-compat", "build-jdk", "build-reuse-artifact", "desktop-reports", "desktop-machine-history", "desktop-report-platform", "desktop-report-invalidate-target", "desktop-settings", "desktop-settings-schema", "desktop-settings-write", "desktop-full-logs", "desktop-doctor-run", "desktop-machine-access", "desktop-remedy", "desktop-device-tools", "desktop-stop", "desktop-reload", "desktop-start", "desktop-run", "desktop-build", "desktop-gc", "desktop-worktree-remove", "desktop-worktree-warm", "desktop-plan", "share-stop-id"];
|
|
72
73
|
type Feature = (typeof FEATURES)[number];
|
|
73
|
-
declare const METHODS: readonly ["hello", "desktop.authenticate", "desktop.reports.get", "desktop.reports.subscribe", "desktop.reports.invalidate", "desktop.settings.get", "desktop.settings.schema", "desktop.settings.write", "desktop.logs.subscribe", "desktop.doctor.run", "desktop.machine-access.subscribe", "desktop.stop.subscribe", "desktop.reload.subscribe", "desktop.start.subscribe", "desktop.run.subscribe", "desktop.build.subscribe", "desktop.gc.subscribe", "desktop.worktree.remove.subscribe", "desktop.worktree.warm.subscribe", "desktop.plan.get", "desktop.plan.cancel", "route.setup", "
|
|
74
|
+
declare const METHODS: readonly ["hello", "desktop.authenticate", "desktop.reports.get", "desktop.reports.subscribe", "desktop.reports.invalidate", "desktop.settings.get", "desktop.settings.schema", "desktop.settings.write", "desktop.logs.subscribe", "desktop.doctor.run", "desktop.machine-access.subscribe", "desktop.remedy.subscribe", "desktop.stop.subscribe", "desktop.reload.subscribe", "desktop.start.subscribe", "desktop.run.subscribe", "desktop.build.subscribe", "desktop.gc.subscribe", "desktop.worktree.remove.subscribe", "desktop.worktree.warm.subscribe", "desktop.plan.get", "desktop.plan.cancel", "route.setup", "workspaces.subscribe", "workspace.subscribe", "machine.subscribe", "builds.history", "archived.list", "worktrees.list", "maintenance.get", "logs.query", "logs.subscribe", "stats.get", "settings.get", "workspace.files", "workspace.diff", "frames.subscribe", "frames.keyframe", "frames.seek", "frames.live", "replay.range", "archive.detail", "replay.keyframe", "recording.set", "build.plan", "machine.get", "machine.history", "machine.details", "unsubscribe", "action", "control.begin", "control.end", "input.touch", "input.text", "input.button", "input.rotate", "input.posture", "input.simulator", "input.scroll", "input.key", "input.window", "push.register", "push.unregister", "notifications.list", "build.offer", "build.sync", "build.start", "build.cancel", "build.artifact", "build.cached-artifact", "build.attach", "device-host.runtime.install", "device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.app.state", "device-host.logs.query", "device-host.metro.open", "device-host.metro.ports", "device-host.metro.close", "device-host.metro.link", "device-host.agent.link", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window", "server.update.status", "server.update.start", "server.update.chunk", "machines.update.start", "machines.update.status", "device-host.sessions", "device-host.sessions.stop", "share.start", "share.stop", "share.list"];
|
|
74
75
|
/**
|
|
75
76
|
* The methods that update this server's `stim-server service`. A machine this one approved for `build` or
|
|
76
77
|
* `device-host` may call them; they need neither `read` nor `control`.
|
|
@@ -79,16 +80,17 @@ declare const SERVER_UPDATE_METHODS: readonly ["server.update.status", "server.u
|
|
|
79
80
|
/** The methods a connection with the `build` capability may call; they need `build`, not `read`. */
|
|
80
81
|
declare const BUILD_METHODS: readonly ["build.offer", "build.sync", "build.start", "build.cancel", "build.artifact", "build.cached-artifact", "build.attach"];
|
|
81
82
|
/** Methods restricted to explicitly approved device-host clients. */
|
|
82
|
-
declare const DEVICE_HOST_METHODS: readonly ["device-host.runtime.install", "device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.logs.query", "device-host.metro.open", "device-host.metro.ports", "device-host.metro.close", "device-host.metro.link", "device-host.agent.link", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window"];
|
|
83
|
+
declare const DEVICE_HOST_METHODS: readonly ["device-host.runtime.install", "device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.app.state", "device-host.logs.query", "device-host.metro.open", "device-host.metro.ports", "device-host.metro.close", "device-host.metro.link", "device-host.agent.link", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window"];
|
|
83
84
|
type Method = (typeof METHODS)[number];
|
|
84
85
|
declare const PUSH_TOKEN_PATTERN = "^(Expo|Exponent)PushToken\\[[^\\]\\s]{1,256}\\]$";
|
|
85
86
|
/**
|
|
86
87
|
* `unauthorized`, `pairing-expired` and `protocol-unsupported` refuse the client until it pairs again or
|
|
87
88
|
* updates; `unknown-secret` means the server does not hold the pairing token or setup ticket (yet), so a client with a
|
|
88
|
-
* setup ticket retries until setup runs;
|
|
89
|
-
*
|
|
89
|
+
* setup ticket retries until setup runs; `home-unavailable` means the server cannot read its Stim home, so it cannot
|
|
90
|
+
* tell whether it knows the client, and is never a revocation; clients retry the others. A network connection's
|
|
91
|
+
* refusals during the handshake arrive as the WebSocket close reason.
|
|
90
92
|
*/
|
|
91
|
-
declare const ERROR_CODES: readonly ["unauthorized", "pairing-expired", "protocol-unsupported", "unknown-secret", "bad-request", "unknown-method", "already-authenticated", "unknown-subscription", "unknown-workspace", "limit-exceeded", "slow-client", "status-failed", "logs-failed", "stim-failed", "frames-failed", "forbidden", "unknown-action", "action-busy", "action-failed", "device-busy", "unknown-session", "no-recording", "build-refused", "build-busy"];
|
|
93
|
+
declare const ERROR_CODES: readonly ["unauthorized", "pairing-expired", "protocol-unsupported", "unknown-secret", "home-unavailable", "bad-request", "unknown-method", "already-authenticated", "unknown-subscription", "unknown-workspace", "limit-exceeded", "slow-client", "status-failed", "logs-failed", "stim-failed", "frames-failed", "forbidden", "unknown-action", "action-busy", "action-failed", "device-busy", "unknown-session", "no-recording", "build-refused", "build-busy"];
|
|
92
94
|
type ErrorCode = (typeof ERROR_CODES)[number];
|
|
93
95
|
type RequestId = number | string;
|
|
94
96
|
/**
|
|
@@ -222,7 +224,7 @@ type DesktopReportTarget = {
|
|
|
222
224
|
cwd: string;
|
|
223
225
|
platform?: "ios" | "android";
|
|
224
226
|
} | {
|
|
225
|
-
report: "gc";
|
|
227
|
+
report: "gc" | "gc-history" | "builds";
|
|
226
228
|
};
|
|
227
229
|
interface DesktopReportSnapshot {
|
|
228
230
|
pending: boolean;
|
|
@@ -778,7 +780,8 @@ interface BuildToolchain {
|
|
|
778
780
|
androidHome?: string;
|
|
779
781
|
}
|
|
780
782
|
/**
|
|
781
|
-
* How busy the remote machine is. `running` counts offloaded builds and `max` is how many it runs at once
|
|
783
|
+
* How busy the remote machine is. `running` counts offloaded builds and `max` is how many it runs at once, 0 when
|
|
784
|
+
* unlimited (`server.maxOffloadedBuilds`).
|
|
782
785
|
* `cpus`, `loadPerCore` (5-minute load average per CPU), `builds` (its own Stim native builds plus the offloaded
|
|
783
786
|
* ones), `maxBuilds` (its `concurrency.maxBuilds`, 0 when unlimited), `maxLoadPerCore`, `memoryUsedBytes`
|
|
784
787
|
* (Activity Monitor's Memory Used) and `memoryTotalBytes` are absent from a stim-server older than them. `declined` is why it would refuse a build now, null when it would take one.
|
|
@@ -1292,7 +1295,54 @@ interface HostedSessionRow {
|
|
|
1292
1295
|
since: string;
|
|
1293
1296
|
workspace: string;
|
|
1294
1297
|
}
|
|
1298
|
+
/** A live web share, as `share.list` lists it; never its URL token or password. */
|
|
1299
|
+
interface WebShareRow {
|
|
1300
|
+
id: string;
|
|
1301
|
+
workspace: string;
|
|
1302
|
+
platform: "ios" | "android";
|
|
1303
|
+
slot: string;
|
|
1304
|
+
physical: boolean;
|
|
1305
|
+
control: boolean;
|
|
1306
|
+
expiresAt: string;
|
|
1307
|
+
viewers: number;
|
|
1308
|
+
/** How viewers get in: a generated password, one the person set, or the URL alone. */
|
|
1309
|
+
auth: "generated" | "set" | "none";
|
|
1310
|
+
}
|
|
1311
|
+
interface WebShareStartParams {
|
|
1312
|
+
workspace: string;
|
|
1313
|
+
platform: "ios" | "android";
|
|
1314
|
+
slot?: string;
|
|
1315
|
+
physical?: boolean;
|
|
1316
|
+
control?: boolean;
|
|
1317
|
+
expiresMinutes?: number;
|
|
1318
|
+
/** 8 to 128 characters; never sent back. Without it, and without `passwordless`, the server generates one. */
|
|
1319
|
+
password?: string;
|
|
1320
|
+
passwordless?: boolean;
|
|
1321
|
+
}
|
|
1295
1322
|
interface Methods {
|
|
1323
|
+
"share.start": {
|
|
1324
|
+
params: WebShareStartParams;
|
|
1325
|
+
result: WebShareRow & {
|
|
1326
|
+
url: string;
|
|
1327
|
+
password?: string;
|
|
1328
|
+
warning?: string;
|
|
1329
|
+
};
|
|
1330
|
+
};
|
|
1331
|
+
"share.stop": {
|
|
1332
|
+
params: {
|
|
1333
|
+
workspace: string;
|
|
1334
|
+
id?: string;
|
|
1335
|
+
};
|
|
1336
|
+
result: {
|
|
1337
|
+
stopped: WebShareRow[];
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
"share.list": {
|
|
1341
|
+
params?: Record<string, never>;
|
|
1342
|
+
result: {
|
|
1343
|
+
shares: WebShareRow[];
|
|
1344
|
+
};
|
|
1345
|
+
};
|
|
1296
1346
|
"device-host.sessions": {
|
|
1297
1347
|
params?: Record<string, never>;
|
|
1298
1348
|
result: {
|
|
@@ -1436,6 +1486,15 @@ interface Methods {
|
|
|
1436
1486
|
};
|
|
1437
1487
|
result: HostedAppLaunch;
|
|
1438
1488
|
};
|
|
1489
|
+
"device-host.app.state": {
|
|
1490
|
+
params: {
|
|
1491
|
+
session: string;
|
|
1492
|
+
attempt: string;
|
|
1493
|
+
};
|
|
1494
|
+
result: {
|
|
1495
|
+
state: "running" | "stopped" | "unknown";
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1439
1498
|
"device-host.logs.query": {
|
|
1440
1499
|
params: {
|
|
1441
1500
|
session: string;
|
|
@@ -1557,6 +1616,23 @@ interface Methods {
|
|
|
1557
1616
|
};
|
|
1558
1617
|
result: Record<string, unknown>;
|
|
1559
1618
|
};
|
|
1619
|
+
"desktop.remedy.subscribe": {
|
|
1620
|
+
params: {
|
|
1621
|
+
cwd: string;
|
|
1622
|
+
} & ({
|
|
1623
|
+
action: "doctor-fix";
|
|
1624
|
+
platform?: "ios" | "android";
|
|
1625
|
+
} | {
|
|
1626
|
+
action: "device-unlock";
|
|
1627
|
+
platform?: "ios" | "android";
|
|
1628
|
+
slot?: string;
|
|
1629
|
+
} | {
|
|
1630
|
+
action: "device-tool";
|
|
1631
|
+
request: DeviceToolRequest;
|
|
1632
|
+
slot?: string;
|
|
1633
|
+
});
|
|
1634
|
+
result: SubscribeResult;
|
|
1635
|
+
};
|
|
1560
1636
|
"desktop.machine-access.subscribe": {
|
|
1561
1637
|
params: {
|
|
1562
1638
|
cwd: string;
|
|
@@ -1647,10 +1723,6 @@ interface Methods {
|
|
|
1647
1723
|
};
|
|
1648
1724
|
result: SubscribeResult;
|
|
1649
1725
|
};
|
|
1650
|
-
"status.subscribe": {
|
|
1651
|
-
params?: Record<string, never>;
|
|
1652
|
-
result: SubscribeResult;
|
|
1653
|
-
};
|
|
1654
1726
|
"workspaces.subscribe": {
|
|
1655
1727
|
params?: Record<string, never>;
|
|
1656
1728
|
result: SubscribeResult;
|
|
@@ -1886,15 +1958,6 @@ interface UsageHistory {
|
|
|
1886
1958
|
})[];
|
|
1887
1959
|
devices: DeviceUsageSeries[];
|
|
1888
1960
|
}
|
|
1889
|
-
/** A full status payload, as `stim status --watch --json` prints it, and the server's usage history, when it has one. */
|
|
1890
|
-
interface StatusEvent {
|
|
1891
|
-
event: "status";
|
|
1892
|
-
subscription: string;
|
|
1893
|
-
payload: StatusPayload;
|
|
1894
|
-
usage?: UsageHistory;
|
|
1895
|
-
/** `grantedAt` of the device leases this server holds for phones; absent when it holds none. */
|
|
1896
|
-
ownLeases?: string[];
|
|
1897
|
-
}
|
|
1898
1961
|
/**
|
|
1899
1962
|
* Records for a `logs.subscribe` subscription: first the last `tail` matching records, then new ones as
|
|
1900
1963
|
* they arrive. An archive subscription sends its matching records, then `logs-ended`.
|
|
@@ -2217,6 +2280,41 @@ interface DesktopMachineAccessEndedEvent {
|
|
|
2217
2280
|
stdout: string;
|
|
2218
2281
|
message: string;
|
|
2219
2282
|
}
|
|
2283
|
+
type DeviceToolRequest = {
|
|
2284
|
+
tool: "location";
|
|
2285
|
+
platform: "ios" | "android";
|
|
2286
|
+
set: string;
|
|
2287
|
+
} | {
|
|
2288
|
+
tool: "location";
|
|
2289
|
+
platform: "ios" | "android";
|
|
2290
|
+
clear: true;
|
|
2291
|
+
} | {
|
|
2292
|
+
tool: "permission";
|
|
2293
|
+
platform: "ios" | "android";
|
|
2294
|
+
action: "grant" | "revoke" | "reset";
|
|
2295
|
+
service: string;
|
|
2296
|
+
} | {
|
|
2297
|
+
tool: "push";
|
|
2298
|
+
platform: "ios";
|
|
2299
|
+
payload: string;
|
|
2300
|
+
} | {
|
|
2301
|
+
tool: "network";
|
|
2302
|
+
platform: "android";
|
|
2303
|
+
state: "on" | "off";
|
|
2304
|
+
};
|
|
2305
|
+
interface DesktopRemedyProgressEvent {
|
|
2306
|
+
event: "desktop-remedy-progress";
|
|
2307
|
+
subscription: string;
|
|
2308
|
+
stream: "stdout" | "stderr";
|
|
2309
|
+
message: string;
|
|
2310
|
+
}
|
|
2311
|
+
interface DesktopRemedyEndedEvent {
|
|
2312
|
+
event: "desktop-remedy-ended";
|
|
2313
|
+
subscription: string;
|
|
2314
|
+
exitCode: 0 | 1;
|
|
2315
|
+
stdout: string;
|
|
2316
|
+
message: string;
|
|
2317
|
+
}
|
|
2220
2318
|
/**
|
|
2221
2319
|
* Sent on a `device-host.metro.link` connection when the host pairs it with one Metro stream; binary frames follow.
|
|
2222
2320
|
* Only device-host links receive it, so it is not a `ServerEvent`.
|
|
@@ -2224,7 +2322,7 @@ interface DesktopMachineAccessEndedEvent {
|
|
|
2224
2322
|
interface MetroLinkOpenEvent {
|
|
2225
2323
|
event: "device-host.metro.link.open";
|
|
2226
2324
|
}
|
|
2227
|
-
type ServerEvent = DesktopMachineAccessProgressEvent | DesktopMachineAccessEndedEvent | DesktopWorktreeWarmProgressEvent | DesktopWorktreeWarmEndedEvent | DesktopWorktreeRemoveProgressEvent | DesktopWorktreeRemoveEndedEvent | DesktopGcProgressEvent | DesktopGcEndedEvent | DesktopBuildProgressEvent | DesktopBuildEndedEvent | DesktopRunProgressEvent | DesktopRunEndedEvent | DesktopStartProgressEvent | DesktopStartEndedEvent | DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopReportEvent | BuildProgressEvent | NotificationEvent |
|
|
2325
|
+
type ServerEvent = DesktopRemedyProgressEvent | DesktopRemedyEndedEvent | DesktopMachineAccessProgressEvent | DesktopMachineAccessEndedEvent | DesktopWorktreeWarmProgressEvent | DesktopWorktreeWarmEndedEvent | DesktopWorktreeRemoveProgressEvent | DesktopWorktreeRemoveEndedEvent | DesktopGcProgressEvent | DesktopGcEndedEvent | DesktopBuildProgressEvent | DesktopBuildEndedEvent | DesktopRunProgressEvent | DesktopRunEndedEvent | DesktopStartProgressEvent | DesktopStartEndedEvent | DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopReportEvent | BuildProgressEvent | NotificationEvent | WorkspacesEvent | WorkspaceEvent | MachineEvent | LogsEvent | LogsEndedEvent | FrameEvent | DeviceFrameEvent | MacosWindowsEvent | FrameDelayedEvent | ReplayEndedEvent | ErrorEvent | ControlEndedEvent;
|
|
2228
2326
|
type ServerMessage = ServerResponse | ServerEvent;
|
|
2229
2327
|
type ServeRoute = {
|
|
2230
2328
|
state: "routed";
|
|
@@ -2242,4 +2340,4 @@ type ServeRoute = {
|
|
|
2242
2340
|
port: number;
|
|
2243
2341
|
};
|
|
2244
2342
|
//#endregion
|
|
2245
|
-
export { DesktopBuildEndedEvent as $,
|
|
2343
|
+
export { DesktopBuildEndedEvent as $, Platform as $n, WebShareStartParams as $r, InputButtonParams as $t, BuildPlatform as A, MachineUpdateStatus as An, ServerUpdateProgress as Ar, DeviceUsageSeries as At, CAPABILITIES as B, NOTIFICATION_SUPPRESSIONS as Bn, UnsubscribeParams as Br, FrameEvent as Bt, BuildJobParams as C, MAX_INPUT_TEXT as Cn, SERVER_UPDATE_METHODS as Cr, DesktopWorktreeRemoveProgressEvent as Ct, BuildOfferResult as D, MachineEvent as Dn, ServerResponse as Dr, DeviceFrameEvent as Dt, BuildOfferParams as E, MachineDetails as En, ServerMessage as Er, DeviceFrameArtwork as Et, BuildSwiftpmArtifactQuery as F, MemoryPressure as Fn, SimulatorOptions as Fr, FEATURES as Ft, ControlBeginParams as G, NotificationTarget as Gn, VIDEO_CODECS as Gr, FramesSubscribeResult as Gt, CachedBuildArtifact as H, NotificationEvent as Hn, UsageSample as Hr, FramesLiveParams as Ht, BuildSyncParams as I, Method as In, StatsResult as Ir, FRAME_EDGE as It, ControlEndedEvent as J, PLATFORMS as Jn, VIDEO_KEYFRAME as Jr, HelloResult as Jt, ControlBeginResult as K, NotificationsListParams as Kn, VIDEO_FOLDED as Kr, GradleOffloadInputs as Kt, BuildSyncResult as L, Methods as Ln, SubscribeResult as Lr, FRAME_FPS as Lt, BuildReactNativeArtifactQuery as M, MachineVolume as Mn, ServerUpdateStatus as Mr, ERROR_CODES as Mt, BuildStartParams as N, MacosWindow as Nn, SettingsResult as Nr, ErrorCode as Nt, BuildPlanParams as O, MachineHistory as On, ServerUpdateOutcome as Or, DevicePosture as Ot, BuildStimIdentity as P, MacosWindowsEvent as Pn, SimulatorCommand as Pr, ErrorEvent as Pt, DesktopBootstrapChallenge as Q, PUSH_TOKEN_PATTERN as Qn, WebShareRow as Qr, InputButton as Qt, BuildToolchain as R, MetroLinkOpenEvent as Rn, TOUCH_PHASES as Rr, Feature as Rt, BuildJobOutcome as S, LogsQueryResult as Sn, RotateDirection as Sr, DesktopWorktreeRemoveEndedEvent as St, BuildMachineReport as T, METHODS as Tn, ServerEvent as Tr, DesktopWorktreeWarmProgressEvent as Tt, Capability as U, NotificationLevel as Un, UsageSeries as Ur, FramesSeekParams as Ut, CONTROL_END_REASONS as V, NotificationEntry as Vn, UsageHistory as Vr, FrameTarget as Vt, ClientRequest as W, NotificationSuppression as Wn, VIDEO_ARTWORK as Wr, FramesSeekResult as Wt, DEVICE_HOST_METHODS as X, PROTOCOL_VERSION as Xn, VideoCodec as Xr, INPUT_BUTTONS as Xt, ControlPlatform as Y, PROTOCOL_SCHEMA_FILE as Yn, VIDEO_UNFOLDED as Yr, HostedSessionRow as Yt, DEVICE_POSTURES as Z, PUSH_EVENTS as Zn, VideoPacket as Zr, INPUT_KEYS as Zt, BuildCapacity as _, LogLevel as _n, ReplayMarker as _r, DesktopSettingsWriteResult as _t, ActionResult as a, WorkspacePatch as ai, InputSimulatorParams as an, QuietHours as ar, DesktopMachineAccessProgressEvent as at, BuildFingerprintSource as b, LogsEndedEvent as bn, ReplayTarget as br, DesktopStopEndedEvent as bt, ArchivedListParams as c, WorkspacesSnapshot as ci, InputWindowParams as cn, REPLAY_RATES as cr, DesktopReloadProgressEvent as ct, BUILD_REPO_PATTERN as d, KeyframeParams as dn, RecordingSetResult as dr, DesktopReportEvent as dt, WorkspaceDiff as ei, InputKey as en, PlatformBuildOptions as er, DesktopBuildProgressEvent as et, BUILD_RUBY_VERSION_PATTERN as f, LEGACY_PUSH_EVENTS as fn, ReloadPlatform as fr, DesktopReportSnapshot as ft, BuildAttachResult as g, LogFilter as gn, ReplayKeyframeParams as gr, DesktopSettingsWriteParams as gt, BuildArtifactResult as h, LegacyPushEvent as hn, ReplayKeyframe as hr, DesktopRunProgressEvent as ht, ActionParams as i, WorkspaceParams as ii, InputScrollParams as in, PushRegisterParams as ir, DesktopMachineAccessEndedEvent as it, BuildProgressEvent as j, MachineUsage as jn, ServerUpdateStartParams as jr, DuoFramePose as jt, BuildPlanResult as k, MachineHistoryParams as kn, ServerUpdatePackage as kr, DeviceToolRequest as kt, ArchivedListResult as l, KEY_MODIFIERS as ln, ROTATE_DIRECTIONS as lr, DesktopRemedyEndedEvent as lt, BuildArtifactIdentity as m, LOG_SOURCES as mn, ReplayEndedEvent as mr, DesktopRunEndedEvent as mt, ARCHIVED_PAGE_LIMIT as n, WorkspaceFile as ni, InputPostureParams as nn, ProtocolError as nr, DesktopGcProgressEvent as nt, ArchiveDetailParams as o, WorkspaceRef as oi, InputTextParams as on, RELOAD_PLATFORMS as or, DesktopPlanRefusal as ot, BuildAndroidOptions as p, LOG_LEVELS as pn, RemoteDiagnosis as pr, DesktopReportTarget as pt, ControlEndParams as q, NotificationsListResult as qn, VIDEO_HEADER_VERSION as qr, HelloParams as qt, ActionName as r, WorkspaceFiles as ri, InputRotateParams as rn, PushEvent as rr, DesktopLogFilter as rt, ArchiveDetailResult as s, WorkspacesEvent as si, InputTouchParams as sn, REPLAY_MARKER_KINDS as sr, DesktopReloadEndedEvent as st, ACTIONS as t, WorkspaceEvent as ti, InputKeyParams as tn, PlatformRunOptions as tr, DesktopGcEndedEvent as tt, BUILD_METHODS as u, KeyModifier as un, RecordingSetParams as ur, DesktopRemedyProgressEvent as ut, BuildClientSummary as v, LogRecord as vn, ReplayRange as vr, DesktopStartEndedEvent as vt, BuildMachineCapacity as w, MAX_LOG_TAIL as wn, ServeRoute as wr, DesktopWorktreeWarmEndedEvent as wt, BuildGradleArtifactQuery as x, LogsEvent as xn, RequestId as xr, DesktopStopProgressEvent as xt, BuildFile as y, LogSource as yn, ReplaySpan as yr, DesktopStartProgressEvent as yt, BuildsHistoryResult as z, NOTIFICATION_LEVELS as zn, TouchPhase as zr, FrameDelayedEvent as zt };
|
package/dist/protocol.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as DesktopBuildEndedEvent, $n as
|
|
2
|
-
export { ACTIONS, ARCHIVED_PAGE_LIMIT, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, ArchivedListParams, ArchivedListResult, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_PATTERN, BuildAndroidOptions, BuildArtifactIdentity, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildFingerprintSource, BuildGradleArtifactQuery, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildReactNativeArtifactQuery, BuildStartParams, BuildStimIdentity, BuildSwiftpmArtifactQuery, BuildSyncParams, BuildSyncResult, BuildToolchain, BuildsHistoryResult, CAPABILITIES, CONTROL_END_REASONS, CachedBuildArtifact, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DesktopBootstrapChallenge, DesktopBuildEndedEvent, DesktopBuildProgressEvent, DesktopGcEndedEvent, DesktopGcProgressEvent, DesktopLogFilter, DesktopMachineAccessEndedEvent, DesktopMachineAccessProgressEvent, DesktopPlanRefusal, DesktopReloadEndedEvent, DesktopReloadProgressEvent, DesktopReportEvent, DesktopReportSnapshot, DesktopReportTarget, DesktopRunEndedEvent, DesktopRunProgressEvent, DesktopSettingsWriteParams, DesktopSettingsWriteResult, DesktopStartEndedEvent, DesktopStartProgressEvent, DesktopStopEndedEvent, DesktopStopProgressEvent, DesktopWorktreeRemoveEndedEvent, DesktopWorktreeRemoveProgressEvent, DesktopWorktreeWarmEndedEvent, DesktopWorktreeWarmProgressEvent, DeviceFrameArtwork, DeviceFrameEvent, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, GradleOffloadInputs, HelloParams, HelloResult, HostedSessionRow, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, MachineEvent, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, MetroLinkOpenEvent, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, Platform, PlatformBuildOptions, PlatformRunOptions, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, RemoteDiagnosis, ReplayEndedEvent, ReplayKeyframe, ReplayKeyframeParams, ReplayMarker, ReplayRange, ReplaySpan, ReplayTarget, RequestId, RotateDirection, SERVER_UPDATE_METHODS, ServeRoute, ServerEvent, ServerMessage, ServerResponse, ServerUpdateOutcome, ServerUpdatePackage, ServerUpdateProgress, ServerUpdateStartParams, ServerUpdateStatus, SettingsResult, SimulatorCommand, SimulatorOptions, StatsResult,
|
|
1
|
+
import { $ as DesktopBuildEndedEvent, $n as Platform, $r as WebShareStartParams, $t as InputButtonParams, A as BuildPlatform, An as MachineUpdateStatus, Ar as ServerUpdateProgress, At as DeviceUsageSeries, B as CAPABILITIES, Bn as NOTIFICATION_SUPPRESSIONS, Br as UnsubscribeParams, Bt as FrameEvent, C as BuildJobParams, Cn as MAX_INPUT_TEXT, Cr as SERVER_UPDATE_METHODS, Ct as DesktopWorktreeRemoveProgressEvent, D as BuildOfferResult, Dn as MachineEvent, Dr as ServerResponse, Dt as DeviceFrameEvent, E as BuildOfferParams, En as MachineDetails, Er as ServerMessage, Et as DeviceFrameArtwork, F as BuildSwiftpmArtifactQuery, Fn as MemoryPressure, Fr as SimulatorOptions, Ft as FEATURES, G as ControlBeginParams, Gn as NotificationTarget, Gr as VIDEO_CODECS, Gt as FramesSubscribeResult, H as CachedBuildArtifact, Hn as NotificationEvent, Hr as UsageSample, Ht as FramesLiveParams, I as BuildSyncParams, In as Method, Ir as StatsResult, It as FRAME_EDGE, J as ControlEndedEvent, Jn as PLATFORMS, Jr as VIDEO_KEYFRAME, Jt as HelloResult, K as ControlBeginResult, Kn as NotificationsListParams, Kr as VIDEO_FOLDED, Kt as GradleOffloadInputs, L as BuildSyncResult, Ln as Methods, Lr as SubscribeResult, Lt as FRAME_FPS, M as BuildReactNativeArtifactQuery, Mn as MachineVolume, Mr as ServerUpdateStatus, Mt as ERROR_CODES, N as BuildStartParams, Nn as MacosWindow, Nr as SettingsResult, Nt as ErrorCode, O as BuildPlanParams, On as MachineHistory, Or as ServerUpdateOutcome, Ot as DevicePosture, P as BuildStimIdentity, Pn as MacosWindowsEvent, Pr as SimulatorCommand, Pt as ErrorEvent, Q as DesktopBootstrapChallenge, Qn as PUSH_TOKEN_PATTERN, Qr as WebShareRow, Qt as InputButton, R as BuildToolchain, Rn as MetroLinkOpenEvent, Rr as TOUCH_PHASES, Rt as Feature, S as BuildJobOutcome, Sn as LogsQueryResult, Sr as RotateDirection, St as DesktopWorktreeRemoveEndedEvent, T as BuildMachineReport, Tn as METHODS, Tr as ServerEvent, Tt as DesktopWorktreeWarmProgressEvent, U as Capability, Un as NotificationLevel, Ur as UsageSeries, Ut as FramesSeekParams, V as CONTROL_END_REASONS, Vn as NotificationEntry, Vr as UsageHistory, Vt as FrameTarget, W as ClientRequest, Wn as NotificationSuppression, Wr as VIDEO_ARTWORK, Wt as FramesSeekResult, X as DEVICE_HOST_METHODS, Xn as PROTOCOL_VERSION, Xr as VideoCodec, Xt as INPUT_BUTTONS, Y as ControlPlatform, Yn as PROTOCOL_SCHEMA_FILE, Yr as VIDEO_UNFOLDED, Yt as HostedSessionRow, Z as DEVICE_POSTURES, Zn as PUSH_EVENTS, Zr as VideoPacket, Zt as INPUT_KEYS, _ as BuildCapacity, _n as LogLevel, _r as ReplayMarker, _t as DesktopSettingsWriteResult, a as ActionResult, ai as WorkspacePatch, an as InputSimulatorParams, ar as QuietHours, at as DesktopMachineAccessProgressEvent, b as BuildFingerprintSource, bn as LogsEndedEvent, br as ReplayTarget, bt as DesktopStopEndedEvent, c as ArchivedListParams, ci as WorkspacesSnapshot, cn as InputWindowParams, cr as REPLAY_RATES, ct as DesktopReloadProgressEvent, d as BUILD_REPO_PATTERN, dn as KeyframeParams, dr as RecordingSetResult, dt as DesktopReportEvent, ei as WorkspaceDiff, en as InputKey, er as PlatformBuildOptions, et as DesktopBuildProgressEvent, f as BUILD_RUBY_VERSION_PATTERN, fn as LEGACY_PUSH_EVENTS, fr as ReloadPlatform, ft as DesktopReportSnapshot, g as BuildAttachResult, gn as LogFilter, gr as ReplayKeyframeParams, gt as DesktopSettingsWriteParams, h as BuildArtifactResult, hn as LegacyPushEvent, hr as ReplayKeyframe, ht as DesktopRunProgressEvent, i as ActionParams, ii as WorkspaceParams, in as InputScrollParams, ir as PushRegisterParams, it as DesktopMachineAccessEndedEvent, j as BuildProgressEvent, jn as MachineUsage, jr as ServerUpdateStartParams, jt as DuoFramePose, k as BuildPlanResult, kn as MachineHistoryParams, kr as ServerUpdatePackage, kt as DeviceToolRequest, l as ArchivedListResult, ln as KEY_MODIFIERS, lr as ROTATE_DIRECTIONS, lt as DesktopRemedyEndedEvent, m as BuildArtifactIdentity, mn as LOG_SOURCES, mr as ReplayEndedEvent, mt as DesktopRunEndedEvent, n as ARCHIVED_PAGE_LIMIT, ni as WorkspaceFile, nn as InputPostureParams, nr as ProtocolError, nt as DesktopGcProgressEvent, o as ArchiveDetailParams, oi as WorkspaceRef, on as InputTextParams, or as RELOAD_PLATFORMS, ot as DesktopPlanRefusal, p as BuildAndroidOptions, pn as LOG_LEVELS, pr as RemoteDiagnosis, pt as DesktopReportTarget, q as ControlEndParams, qn as NotificationsListResult, qr as VIDEO_HEADER_VERSION, qt as HelloParams, r as ActionName, ri as WorkspaceFiles, rn as InputRotateParams, rr as PushEvent, rt as DesktopLogFilter, s as ArchiveDetailResult, si as WorkspacesEvent, sn as InputTouchParams, sr as REPLAY_MARKER_KINDS, st as DesktopReloadEndedEvent, t as ACTIONS, ti as WorkspaceEvent, tn as InputKeyParams, tr as PlatformRunOptions, tt as DesktopGcEndedEvent, u as BUILD_METHODS, un as KeyModifier, ur as RecordingSetParams, ut as DesktopRemedyProgressEvent, v as BuildClientSummary, vn as LogRecord, vr as ReplayRange, vt as DesktopStartEndedEvent, w as BuildMachineCapacity, wn as MAX_LOG_TAIL, wr as ServeRoute, wt as DesktopWorktreeWarmEndedEvent, x as BuildGradleArtifactQuery, xn as LogsEvent, xr as RequestId, xt as DesktopStopProgressEvent, y as BuildFile, yn as LogSource, yr as ReplaySpan, yt as DesktopStartProgressEvent, z as BuildsHistoryResult, zn as NOTIFICATION_LEVELS, zr as TouchPhase, zt as FrameDelayedEvent } from "./protocol-_p7V6XGi.mjs";
|
|
2
|
+
export { ACTIONS, ARCHIVED_PAGE_LIMIT, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, ArchivedListParams, ArchivedListResult, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_PATTERN, BuildAndroidOptions, BuildArtifactIdentity, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildFingerprintSource, BuildGradleArtifactQuery, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildReactNativeArtifactQuery, BuildStartParams, BuildStimIdentity, BuildSwiftpmArtifactQuery, BuildSyncParams, BuildSyncResult, BuildToolchain, BuildsHistoryResult, CAPABILITIES, CONTROL_END_REASONS, CachedBuildArtifact, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DesktopBootstrapChallenge, DesktopBuildEndedEvent, DesktopBuildProgressEvent, DesktopGcEndedEvent, DesktopGcProgressEvent, DesktopLogFilter, DesktopMachineAccessEndedEvent, DesktopMachineAccessProgressEvent, DesktopPlanRefusal, DesktopReloadEndedEvent, DesktopReloadProgressEvent, DesktopRemedyEndedEvent, DesktopRemedyProgressEvent, DesktopReportEvent, DesktopReportSnapshot, DesktopReportTarget, DesktopRunEndedEvent, DesktopRunProgressEvent, DesktopSettingsWriteParams, DesktopSettingsWriteResult, DesktopStartEndedEvent, DesktopStartProgressEvent, DesktopStopEndedEvent, DesktopStopProgressEvent, DesktopWorktreeRemoveEndedEvent, DesktopWorktreeRemoveProgressEvent, DesktopWorktreeWarmEndedEvent, DesktopWorktreeWarmProgressEvent, DeviceFrameArtwork, DeviceFrameEvent, DevicePosture, DeviceToolRequest, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, GradleOffloadInputs, HelloParams, HelloResult, HostedSessionRow, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, MachineEvent, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, MetroLinkOpenEvent, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, Platform, PlatformBuildOptions, PlatformRunOptions, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, RemoteDiagnosis, ReplayEndedEvent, ReplayKeyframe, ReplayKeyframeParams, ReplayMarker, ReplayRange, ReplaySpan, ReplayTarget, RequestId, RotateDirection, SERVER_UPDATE_METHODS, ServeRoute, ServerEvent, ServerMessage, ServerResponse, ServerUpdateOutcome, ServerUpdatePackage, ServerUpdateProgress, ServerUpdateStartParams, ServerUpdateStatus, SettingsResult, SimulatorCommand, SimulatorOptions, StatsResult, SubscribeResult, TOUCH_PHASES, TouchPhase, UnsubscribeParams, UsageHistory, UsageSample, UsageSeries, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED, VideoCodec, VideoPacket, WebShareRow, WebShareStartParams, WorkspaceDiff, WorkspaceEvent, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch, WorkspaceRef, WorkspacesEvent, WorkspacesSnapshot };
|
package/dist/protocol.mjs
CHANGED
|
@@ -30,6 +30,7 @@ const CAPABILITIES = [
|
|
|
30
30
|
* bringing it to the front, or with null resumes following the front window.
|
|
31
31
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
32
32
|
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
33
|
+
* `hosted-app-state` queries the current process state of an installed iOS or Android app attempt.
|
|
33
34
|
* `hosted-ios-process` and `hosted-android-process` accept native app offers in process mode, with live process readiness and no Metro.
|
|
34
35
|
* `hosted-metro-link` carries hosted Metro over `device-host.metro.link` connections the client opens, so the host never
|
|
35
36
|
* connects to the client.
|
|
@@ -56,9 +57,8 @@ const CAPABILITIES = [
|
|
|
56
57
|
* `build-reuse-artifact` accepts `reuseArtifact` with `podsOnWorker` on `build.start`.
|
|
57
58
|
* `build-jdk` accepts `jdk` on `build.start`, the JDK major an Android build runs on; the machine finds an installed JDK of that
|
|
58
59
|
* major when its default differs.
|
|
59
|
-
* `status-views` is `workspaces.subscribe`, `workspace.subscribe`, `machine.subscribe`, `builds.history`,
|
|
60
|
-
* `archived.list`, `worktrees.list` and `maintenance.get`.
|
|
61
60
|
* `desktop-reports` serves cached doctor/GC reports to the authenticated local Desktop connection.
|
|
61
|
+
* `desktop-machine-history` adds machine-wide build and cleanup history to those reports.
|
|
62
62
|
* `desktop-report-platform` accepts an optional ios/android selector for Desktop doctor reports.
|
|
63
63
|
* `desktop-report-invalidate-target` accepts a report target in `desktop.reports.invalidate`, which then invalidates only it.
|
|
64
64
|
* `desktop-settings` reads settings for a selected folder on the authenticated local Desktop connection.
|
|
@@ -69,6 +69,7 @@ const CAPABILITIES = [
|
|
|
69
69
|
* `desktop-run` streams platform build/install/launch progress and facts on the proved local Desktop connection.
|
|
70
70
|
* `desktop-build` streams build-only progress and artifact facts on the proved local Desktop connection.
|
|
71
71
|
* `desktop-plan` reads next-build reports for selected folders on the proved local Desktop connection.
|
|
72
|
+
* `share-stop-id` lets `share.stop` take a share `id` and end only that share.
|
|
72
73
|
* `desktop-reload` streams reload output and its terminal result on the proved local Desktop connection.
|
|
73
74
|
*/
|
|
74
75
|
const FEATURES = [
|
|
@@ -91,6 +92,7 @@ const FEATURES = [
|
|
|
91
92
|
"hosted-congestion",
|
|
92
93
|
"hosted-ios-data",
|
|
93
94
|
"hosted-ios-process",
|
|
95
|
+
"hosted-app-state",
|
|
94
96
|
"native-xcode-build",
|
|
95
97
|
"native-xcode-toolchain",
|
|
96
98
|
"build-artifact-cache",
|
|
@@ -113,8 +115,8 @@ const FEATURES = [
|
|
|
113
115
|
"build-compat",
|
|
114
116
|
"build-jdk",
|
|
115
117
|
"build-reuse-artifact",
|
|
116
|
-
"status-views",
|
|
117
118
|
"desktop-reports",
|
|
119
|
+
"desktop-machine-history",
|
|
118
120
|
"desktop-report-platform",
|
|
119
121
|
"desktop-report-invalidate-target",
|
|
120
122
|
"desktop-settings",
|
|
@@ -123,6 +125,8 @@ const FEATURES = [
|
|
|
123
125
|
"desktop-full-logs",
|
|
124
126
|
"desktop-doctor-run",
|
|
125
127
|
"desktop-machine-access",
|
|
128
|
+
"desktop-remedy",
|
|
129
|
+
"desktop-device-tools",
|
|
126
130
|
"desktop-stop",
|
|
127
131
|
"desktop-reload",
|
|
128
132
|
"desktop-start",
|
|
@@ -131,7 +135,8 @@ const FEATURES = [
|
|
|
131
135
|
"desktop-gc",
|
|
132
136
|
"desktop-worktree-remove",
|
|
133
137
|
"desktop-worktree-warm",
|
|
134
|
-
"desktop-plan"
|
|
138
|
+
"desktop-plan",
|
|
139
|
+
"share-stop-id"
|
|
135
140
|
];
|
|
136
141
|
const METHODS = [
|
|
137
142
|
"hello",
|
|
@@ -145,6 +150,7 @@ const METHODS = [
|
|
|
145
150
|
"desktop.logs.subscribe",
|
|
146
151
|
"desktop.doctor.run",
|
|
147
152
|
"desktop.machine-access.subscribe",
|
|
153
|
+
"desktop.remedy.subscribe",
|
|
148
154
|
"desktop.stop.subscribe",
|
|
149
155
|
"desktop.reload.subscribe",
|
|
150
156
|
"desktop.start.subscribe",
|
|
@@ -156,7 +162,6 @@ const METHODS = [
|
|
|
156
162
|
"desktop.plan.get",
|
|
157
163
|
"desktop.plan.cancel",
|
|
158
164
|
"route.setup",
|
|
159
|
-
"status.subscribe",
|
|
160
165
|
"workspaces.subscribe",
|
|
161
166
|
"workspace.subscribe",
|
|
162
167
|
"machine.subscribe",
|
|
@@ -215,6 +220,7 @@ const METHODS = [
|
|
|
215
220
|
"device-host.app.handoff",
|
|
216
221
|
"device-host.app.launch",
|
|
217
222
|
"device-host.app.attach",
|
|
223
|
+
"device-host.app.state",
|
|
218
224
|
"device-host.logs.query",
|
|
219
225
|
"device-host.metro.open",
|
|
220
226
|
"device-host.metro.ports",
|
|
@@ -241,7 +247,10 @@ const METHODS = [
|
|
|
241
247
|
"machines.update.start",
|
|
242
248
|
"machines.update.status",
|
|
243
249
|
"device-host.sessions",
|
|
244
|
-
"device-host.sessions.stop"
|
|
250
|
+
"device-host.sessions.stop",
|
|
251
|
+
"share.start",
|
|
252
|
+
"share.stop",
|
|
253
|
+
"share.list"
|
|
245
254
|
];
|
|
246
255
|
/**
|
|
247
256
|
* The methods that update this server's `stim-server service`. A machine this one approved for `build` or
|
|
@@ -274,6 +283,7 @@ const DEVICE_HOST_METHODS = [
|
|
|
274
283
|
"device-host.app.handoff",
|
|
275
284
|
"device-host.app.launch",
|
|
276
285
|
"device-host.app.attach",
|
|
286
|
+
"device-host.app.state",
|
|
277
287
|
"device-host.logs.query",
|
|
278
288
|
"device-host.metro.open",
|
|
279
289
|
"device-host.metro.ports",
|
|
@@ -299,14 +309,16 @@ const PUSH_TOKEN_PATTERN = "^(Expo|Exponent)PushToken\\[[^\\]\\s]{1,256}\\]$";
|
|
|
299
309
|
/**
|
|
300
310
|
* `unauthorized`, `pairing-expired` and `protocol-unsupported` refuse the client until it pairs again or
|
|
301
311
|
* updates; `unknown-secret` means the server does not hold the pairing token or setup ticket (yet), so a client with a
|
|
302
|
-
* setup ticket retries until setup runs;
|
|
303
|
-
*
|
|
312
|
+
* setup ticket retries until setup runs; `home-unavailable` means the server cannot read its Stim home, so it cannot
|
|
313
|
+
* tell whether it knows the client, and is never a revocation; clients retry the others. A network connection's
|
|
314
|
+
* refusals during the handshake arrive as the WebSocket close reason.
|
|
304
315
|
*/
|
|
305
316
|
const ERROR_CODES = [
|
|
306
317
|
"unauthorized",
|
|
307
318
|
"pairing-expired",
|
|
308
319
|
"protocol-unsupported",
|
|
309
320
|
"unknown-secret",
|
|
321
|
+
"home-unavailable",
|
|
310
322
|
"bad-request",
|
|
311
323
|
"unknown-method",
|
|
312
324
|
"already-authenticated",
|