@stim-cli/core 1.16.0 → 1.17.1
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/{index-DPo8Bexj.d.mts → index-BTYoTeax.d.mts} +161 -46
- package/dist/phone-protocol.d.mts +20 -5
- package/dist/{protocol-B0KcaUee.d.mts → protocol-BArCKISQ.d.mts} +60 -11
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +11 -3
- package/dist/receive-protocol.mjs +3838 -3343
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +304 -80
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
1
|
+
import { Bn as WebBrowserState, En as RemoteDeviceState, Ft as AndroidDeviceState, Gn as WorktreeGit, Ht as BuildDetail, Kn as WorktreePullRequest, Kt as BuildMissChange, Mn as StatusIssue, Nt as AgentSession, Pn as StatusPayload, Qt as BuildReport, Un as WorkspaceStage, Ut as BuildDiagnostic, Wn as WorktreeFacts, Wt as BuildHistoryEntry, Xt as BuildPlanPayload, Yn as MacosBuild, Yt as BuildPlacement, _n as MachineUsageState, cn as EnvironmentDisk, en as BuildWaitingFor, fn as LastBuildReport, hn as MachineOwner, hr as MaintenancePressure, in as DeviceLeaseState, kn as SimulatorState, ln as EnvironmentState, mr as MaintenancePass, nn as DeviceActivity, on as DiskMeasure, qn as MacosAppRecord, qt as BuildMissReason, ra as HostedMacosPlacement, rn as DeviceAppProcess, rr as ArchivedWorkspace, un as GitChip, ur as MaintenanceAction, wn as PhysicalDeviceState, yn as MetroBundleState, yr as MaintenanceStatus } from "./index-BTYoTeax.mjs";
|
|
2
|
+
import { $n as UsageHistory, An as ReplaySpan, Dn as ReplayKeyframeParams, En as ReplayKeyframe, F as ControlBeginResult, Ft as LogsEndedEvent, G as DevicePosture, Gn as SimulatorCommand, Gt as MachineUsage, H as DeviceFrameArtwork, Ht as MachineHistory, In as ServerEvent, It as LogsEvent, Jn as StatusEvent, Jt as MacosWindowsEvent, K as DeviceUsageSeries, Kn as SimulatorOptions, Kt as MachineVolume, L as ControlEndedEvent, Lt as LogsQueryResult, Mt as LogLevel, Nn as RotateDirection, Nt as LogRecord, On as ReplayMarker, P as ControlBeginParams, Pn as SERVER_UPDATE_METHODS, Pt as LogSource, Tn as ReplayEndedEvent, Tt as KeyModifier, U as DeviceFrameEvent, V as DeviceAuth, Vt as MachineDetails, X as ErrorEvent, Zn as TouchPhase, Zt as Methods, a as ArchiveDetailParams, bt as InputSimulatorParams, ct as HelloParams, dr as WorkspaceFile, en as NotificationEntry, er as UsageSample, fn as PairingAuth, fr as WorkspaceFiles, gn as PushRegisterParams, hn as PushEvent, ht as InputKey, i as ActionResult, jn as ReplayTarget, jt as LogFilter, kn as ReplayRange, ln as PROTOCOL_VERSION, lt as HelloResult, mn as ProtocolError, mr as WorkspacePatch, n as ActionName, nn as NotificationLevel, nt as FrameEvent, on as NotificationsListResult, p as BuildClientSummary, pn as Platform, pt as InputButton, r as ActionParams, rn as NotificationSuppression, rt as FrameTarget, s as BUILD_METHODS, st as FramesSubscribeResult, t as ACTIONS, tn as NotificationEvent, tt as FrameDelayedEvent, ur as WorkspaceDiff, v as BuildMachineReport, w as BuildProgressEvent, x as BuildPlanParams, z as DEVICE_HOST_METHODS } from "./protocol-BArCKISQ.mjs";
|
|
3
3
|
//#region phone-protocol.d.ts
|
|
4
4
|
type PhonePlatform = BuildPlanParams["platform"];
|
|
5
5
|
type PhoneDevicePlatform = Platform;
|
|
@@ -30,7 +30,7 @@ type PhoneDeviceActivity = Omit<DeviceActivity, "state"> & {
|
|
|
30
30
|
state: string;
|
|
31
31
|
};
|
|
32
32
|
type PhoneBuildPhase = string;
|
|
33
|
-
type PhoneBuildReport = Omit<BuildReport, "outcomeKnown" | "placement" | "missProvisional" | "platform" | "state" | "phase" | "outcome" | "cacheLookupOutcome" | "plannedPhases" | "missReason" | "detail"> & {
|
|
33
|
+
type PhoneBuildReport = Omit<BuildReport, "outcomeKnown" | "placement" | "missProvisional" | "platform" | "state" | "phase" | "outcome" | "cacheLookupOutcome" | "plannedPhases" | "missReason" | "detail" | "waitingFor"> & {
|
|
34
34
|
outcomeKnown?: boolean;
|
|
35
35
|
placement?: PhoneBuildPlacement;
|
|
36
36
|
missProvisional?: boolean;
|
|
@@ -45,6 +45,9 @@ type PhoneBuildReport = Omit<BuildReport, "outcomeKnown" | "placement" | "missPr
|
|
|
45
45
|
}[] | null;
|
|
46
46
|
missReason?: PhoneBuildMissReason;
|
|
47
47
|
detail?: PhoneBuildDetail;
|
|
48
|
+
waitingFor?: Omit<BuildWaitingFor, "kind"> & {
|
|
49
|
+
kind: string;
|
|
50
|
+
};
|
|
48
51
|
};
|
|
49
52
|
type PhoneBuildPlacement = string | Exclude<BuildPlacement, string>;
|
|
50
53
|
type PhoneBuildDetail = Omit<BuildDetail, "step" | "unit"> & {
|
|
@@ -278,6 +281,14 @@ type PhoneReplayKeyframe = Omit<ReplayKeyframe, "posture"> & {
|
|
|
278
281
|
type PhoneReplayRange = Omit<ReplayRange, "markers"> & {
|
|
279
282
|
markers: PhoneReplayMarker[];
|
|
280
283
|
};
|
|
284
|
+
type PhoneArchiveDetailResult = {
|
|
285
|
+
builds: Partial<Record<string, PhoneBuildHistoryEntry[]>>;
|
|
286
|
+
recordings: {
|
|
287
|
+
platform: string;
|
|
288
|
+
slot: string;
|
|
289
|
+
spans: PhoneReplaySpan[];
|
|
290
|
+
}[];
|
|
291
|
+
};
|
|
281
292
|
type PhoneReplayEndedEvent = ReplayEndedEvent;
|
|
282
293
|
type PhoneControlBeginParams = ControlBeginParams;
|
|
283
294
|
type PhoneControlBeginResult = Omit<ControlBeginResult, "platform" | "postures"> & {
|
|
@@ -385,7 +396,7 @@ type PhoneHelloResult = OptionalFields<Omit<HelloResult, "server" | "features" |
|
|
|
385
396
|
expiresAt: string;
|
|
386
397
|
};
|
|
387
398
|
};
|
|
388
|
-
type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVICE_HOST_METHODS)[number] | (typeof SERVER_UPDATE_METHODS)[number] | "machines.update.start" | "machines.update.status" | "route.setup" | "hello" | "logs.query" | "machine.get" | "machine.details" | "machine.history" | "workspace.diff" | "frames.subscribe" | "replay.range" | "replay.keyframe" | "build.plan" | "action" | "control.begin" | "notifications.list"> & {
|
|
399
|
+
type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVICE_HOST_METHODS)[number] | (typeof SERVER_UPDATE_METHODS)[number] | "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"> & {
|
|
389
400
|
hello: {
|
|
390
401
|
params: Omit<HelloParams, "auth"> & {
|
|
391
402
|
auth: PhoneClientAuth;
|
|
@@ -410,6 +421,10 @@ type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVIC
|
|
|
410
421
|
params: ReplayTarget;
|
|
411
422
|
result: PhoneReplayRange;
|
|
412
423
|
};
|
|
424
|
+
"archive.detail": {
|
|
425
|
+
params: ArchiveDetailParams;
|
|
426
|
+
result: PhoneArchiveDetailResult;
|
|
427
|
+
};
|
|
413
428
|
"replay.keyframe": {
|
|
414
429
|
params: ReplayKeyframeParams;
|
|
415
430
|
result: PhoneReplayKeyframe;
|
|
@@ -455,4 +470,4 @@ type PhoneResponse<M extends PhoneMethod = PhoneMethod> = {
|
|
|
455
470
|
};
|
|
456
471
|
type PhoneServerMessage = PhoneResponse | PhoneServerEvent;
|
|
457
472
|
//#endregion
|
|
458
|
-
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 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 PhoneClientAuth as ClientAuth, PhoneClientAuth, 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 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 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, 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, PhoneStatusEvent, type PhoneStatusEvent as StatusEvent, 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, PhoneWorkspaceFile, type PhoneWorkspaceFile as WorkspaceFile, PhoneWorkspaceFiles, type PhoneWorkspaceFiles as WorkspaceFiles, PhoneWorkspacePatch, type PhoneWorkspacePatch as WorkspacePatch, PhoneWorktreeFacts, type PhoneWorktreeFacts as WorktreeFacts, PhoneWorktreeGit, type PhoneWorktreeGit as WorktreeGit };
|
|
473
|
+
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 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 PhoneClientAuth as ClientAuth, PhoneClientAuth, 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 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 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, 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, PhoneStatusEvent, type PhoneStatusEvent as StatusEvent, 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, PhoneWorkspaceFile, type PhoneWorkspaceFile as WorkspaceFile, PhoneWorkspaceFiles, type PhoneWorkspaceFiles as WorkspaceFiles, PhoneWorkspacePatch, type PhoneWorkspacePatch as WorkspacePatch, PhoneWorktreeFacts, type PhoneWorktreeFacts as WorktreeFacts, PhoneWorktreeGit, type PhoneWorktreeGit as WorktreeGit };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ci as HostedDeviceOfferRequest, Ei as HostedDeviceRequest, Fc as NdjsonRecord, Oi as HostedDeviceSession, Pn as StatusPayload, Si as HostedDeviceOffer, Ti as HostedDevicePlatform, Wt as BuildHistoryEntry, Xt as BuildPlanPayload, d as HostedLogsPage, ea as HostedAppLaunch, fa as HostedAppDelivery, ma as HostedAppOffer, u as HostedLogsCursor, wi as HostedDevicePhase } from "./index-BTYoTeax.mjs";
|
|
2
2
|
//#region protocol.d.ts
|
|
3
3
|
declare const PROTOCOL_VERSION = 1;
|
|
4
4
|
declare const PROTOCOL_SCHEMA_FILE = "protocol.schema.json";
|
|
@@ -16,8 +16,9 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
16
16
|
* the slot's Stim-owned device instead. `notifications` is `notifications.list` and the `notification` event.
|
|
17
17
|
* `macos-hosted` relays `frames.subscribe` and control for a workspace whose macOS app
|
|
18
18
|
* `stim macos --remote` placed on another Mac.
|
|
19
|
-
* `ios-hosted`
|
|
19
|
+
* `ios-hosted` and `android-hosted` relay hosted native frames and control by workspace slot through the client's server.
|
|
20
20
|
* `hosted-ios-agent` adds session-scoped iOS agent-device grants to installed app launch/attach results.
|
|
21
|
+
* `hosted-android-agent` adds serial-pinned Android agent-device grants to installed app and session attach results.
|
|
21
22
|
* `macos-windows` is the `macos-windows` event on a macOS `frames.subscribe`, naming the window capture follows
|
|
22
23
|
* and the app's other windows.
|
|
23
24
|
* `hosted-congestion` is `device-host.frames.congested`, which lowers the bitrate of a hosted video subscription
|
|
@@ -25,11 +26,12 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
25
26
|
* `macos-window-select` is `input.window`, which pins the view to a macOS app window named by `macos-windows`,
|
|
26
27
|
* bringing it to the front, or with null resumes following the front window.
|
|
27
28
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
29
|
+
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
28
30
|
* `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
|
|
29
31
|
*/
|
|
30
|
-
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", "hosted-ios-agent", "duo-frames", "workspace-diff", "hosted-congestion", "hosted-ios-data", "server-update"];
|
|
32
|
+
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-android-data", "server-update"];
|
|
31
33
|
type Feature = (typeof FEATURES)[number];
|
|
32
|
-
declare const METHODS: readonly ["hello", "route.setup", "status.subscribe", "logs.query", "logs.subscribe", "stats.get", "settings.get", "workspace.files", "workspace.diff", "frames.subscribe", "frames.keyframe", "frames.seek", "frames.live", "replay.range", "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.attach", "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.close", "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"];
|
|
34
|
+
declare const METHODS: readonly ["hello", "route.setup", "status.subscribe", "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.attach", "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.close", "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"];
|
|
33
35
|
/**
|
|
34
36
|
* The methods that update this server's `stim-server service`. A Mac this one approved for `build` or
|
|
35
37
|
* `device-host` may call them; they need neither `read` nor `control`.
|
|
@@ -273,6 +275,19 @@ interface ReplayRange {
|
|
|
273
275
|
spans: ReplaySpan[];
|
|
274
276
|
markers: ReplayMarker[];
|
|
275
277
|
}
|
|
278
|
+
/** An archived[].id from status; the original workspace is not required. */
|
|
279
|
+
interface ArchiveDetailParams {
|
|
280
|
+
archive: string;
|
|
281
|
+
}
|
|
282
|
+
/** Live-shaped build history and closed recording spans for every retained archive device slot. */
|
|
283
|
+
interface ArchiveDetailResult {
|
|
284
|
+
builds: Partial<Record<"ios" | "android", BuildHistoryEntry[]>>;
|
|
285
|
+
recordings: {
|
|
286
|
+
platform: "ios" | "android" | "web";
|
|
287
|
+
slot: string;
|
|
288
|
+
spans: ReplaySpan[];
|
|
289
|
+
}[];
|
|
290
|
+
}
|
|
276
291
|
/** A device slot, as {@link ReplayTarget} names it, and a time in epoch milliseconds on the Mac's clock. */
|
|
277
292
|
interface ReplayKeyframeParams extends ReplayTarget {
|
|
278
293
|
at: number;
|
|
@@ -478,9 +493,9 @@ interface BuildPlanParams {
|
|
|
478
493
|
}
|
|
479
494
|
/** `stim ios|android --plan --json`. It builds, boots and installs nothing, and writes no Stim state. */
|
|
480
495
|
type BuildPlanResult = BuildPlanPayload;
|
|
481
|
-
/** A client's repository on a
|
|
496
|
+
/** A client's repository on a remote Mac: letters, digits, `.`, `_` and `-`, at most 80. */
|
|
482
497
|
declare const BUILD_REPO_PATTERN = "^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$";
|
|
483
|
-
/** Asks a
|
|
498
|
+
/** Asks a remote Mac what it can build, how busy it is, and how warm its copy of `repo` is. */
|
|
484
499
|
interface BuildOfferParams {
|
|
485
500
|
repo: string;
|
|
486
501
|
/** sha256 of the repository's lockfile, compared with the one the machine last installed from. */
|
|
@@ -506,7 +521,7 @@ interface BuildToolchain {
|
|
|
506
521
|
} | null;
|
|
507
522
|
}
|
|
508
523
|
/**
|
|
509
|
-
* How busy the
|
|
524
|
+
* How busy the remote Mac is. `running` counts offloaded builds and `max` is how many it runs at once.
|
|
510
525
|
* `cpus`, `loadPerCore` (5-minute load average per CPU), `builds` (its own Stim native builds plus the offloaded
|
|
511
526
|
* ones), `maxBuilds` (its `concurrency.maxBuilds`, 0 when unlimited) and `maxLoadPerCore` are absent from a
|
|
512
527
|
* stim-server older than them. `declined` is why it would refuse a build now, null when it would take one.
|
|
@@ -686,7 +701,7 @@ interface MachineDetails {
|
|
|
686
701
|
stats: Record<string, unknown> | null;
|
|
687
702
|
statsError?: string;
|
|
688
703
|
/**
|
|
689
|
-
* `
|
|
704
|
+
* `remoteMachines` from `stim doctor --json --platform ios`; empty when `remote.machines` names none. The reply
|
|
690
705
|
* never waits for doctor: `buildMachines` and `buildMachinesError` are the last result a background doctor run
|
|
691
706
|
* settled, `buildMachinesAt` is when it settled, and `buildMachinesPending` is true while that result is stale
|
|
692
707
|
* (or absent) and a refresh is running. A client that wants the refreshed result asks `machine.details` again.
|
|
@@ -696,7 +711,7 @@ interface MachineDetails {
|
|
|
696
711
|
buildMachinesAt?: string;
|
|
697
712
|
buildMachinesPending?: boolean;
|
|
698
713
|
/**
|
|
699
|
-
* The builds this Mac ran for other Macs
|
|
714
|
+
* The builds this Mac ran for other Macs, one entry per client, from the audit log. `today` is
|
|
700
715
|
* this Mac's local calendar day. Absent from a server older than this field.
|
|
701
716
|
*/
|
|
702
717
|
buildClients?: BuildClientSummary[];
|
|
@@ -715,7 +730,7 @@ interface BuildClientSummary {
|
|
|
715
730
|
};
|
|
716
731
|
lastAt: string;
|
|
717
732
|
}
|
|
718
|
-
/** One `
|
|
733
|
+
/** One `remote.machines` entry as `stim doctor --json` reports it; `guide facts doctor` defines the fields. */
|
|
719
734
|
interface BuildMachineReport {
|
|
720
735
|
machine: string;
|
|
721
736
|
state: string;
|
|
@@ -927,7 +942,36 @@ interface MachineUpdateStatus {
|
|
|
927
942
|
error: string | null;
|
|
928
943
|
} | null;
|
|
929
944
|
}
|
|
945
|
+
interface HostedSessionRow {
|
|
946
|
+
id: string;
|
|
947
|
+
client: {
|
|
948
|
+
id: string;
|
|
949
|
+
name: string;
|
|
950
|
+
};
|
|
951
|
+
platform: HostedDevicePlatform;
|
|
952
|
+
device: string | null;
|
|
953
|
+
app: string | null;
|
|
954
|
+
state: HostedDevicePhase;
|
|
955
|
+
parked: boolean;
|
|
956
|
+
since: string;
|
|
957
|
+
workspace: string;
|
|
958
|
+
}
|
|
930
959
|
interface Methods {
|
|
960
|
+
"device-host.sessions": {
|
|
961
|
+
params?: Record<string, never>;
|
|
962
|
+
result: {
|
|
963
|
+
sessions: HostedSessionRow[];
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
"device-host.sessions.stop": {
|
|
967
|
+
params: {
|
|
968
|
+
session: string;
|
|
969
|
+
};
|
|
970
|
+
result: {
|
|
971
|
+
id: string;
|
|
972
|
+
state: "stopping" | "stopped";
|
|
973
|
+
};
|
|
974
|
+
};
|
|
931
975
|
"machines.update.start": {
|
|
932
976
|
params: {
|
|
933
977
|
machine: string;
|
|
@@ -1060,6 +1104,7 @@ interface Methods {
|
|
|
1060
1104
|
session: string;
|
|
1061
1105
|
gatewayPort: number;
|
|
1062
1106
|
secret: string;
|
|
1107
|
+
clientMetroPort?: number;
|
|
1063
1108
|
};
|
|
1064
1109
|
result: {
|
|
1065
1110
|
port: number;
|
|
@@ -1145,6 +1190,10 @@ interface Methods {
|
|
|
1145
1190
|
params: ReplayTarget;
|
|
1146
1191
|
result: ReplayRange;
|
|
1147
1192
|
};
|
|
1193
|
+
"archive.detail": {
|
|
1194
|
+
params: ArchiveDetailParams;
|
|
1195
|
+
result: ArchiveDetailResult;
|
|
1196
|
+
};
|
|
1148
1197
|
"replay.keyframe": {
|
|
1149
1198
|
params: ReplayKeyframeParams;
|
|
1150
1199
|
result: ReplayKeyframe;
|
|
@@ -1462,4 +1511,4 @@ type ServeRoute = {
|
|
|
1462
1511
|
port: number;
|
|
1463
1512
|
};
|
|
1464
1513
|
//#endregion
|
|
1465
|
-
export {
|
|
1514
|
+
export { FRAME_FPS as $, UsageHistory as $n, NOTIFICATION_SUPPRESSIONS as $t, CAPABILITIES as A, ReplaySpan as An, LegacyPushEvent as At, DEVICE_POSTURES as B, ServerUpdatePackage as Bn, METHODS as Bt, BuildPlatform as C, RecordingSetResult as Cn, InputWindowParams as Ct, BuildSyncParams as D, ReplayKeyframeParams as Dn, LEGACY_PUSH_EVENTS as Dt, BuildStartParams as E, ReplayKeyframe as En, KeyframeParams as Et, ControlBeginResult as F, ServeRoute as Fn, LogsEndedEvent as Ft, DevicePosture as G, SimulatorCommand as Gn, MachineUsage as Gt, DeviceFrameArtwork as H, ServerUpdateStartParams as Hn, MachineHistory as Ht, ControlEndParams as I, ServerEvent as In, LogsEvent as It, ERROR_CODES as J, StatusEvent as Jn, MacosWindowsEvent as Jt, DeviceUsageSeries as K, SimulatorOptions as Kn, MachineVolume as Kt, ControlEndedEvent as L, ServerMessage as Ln, LogsQueryResult as Lt, Capability as M, RequestId as Mn, LogLevel as Mt, ClientRequest as N, RotateDirection as Nn, LogRecord as Nt, BuildSyncResult as O, ReplayMarker as On, LOG_LEVELS as Ot, ControlBeginParams as P, SERVER_UPDATE_METHODS as Pn, LogSource as Pt, FRAME_EDGE as Q, UnsubscribeParams as Qn, NOTIFICATION_LEVELS as Qt, ControlPlatform as R, ServerResponse as Rn, MAX_INPUT_TEXT as Rt, BuildPlanResult as S, RecordingSetParams as Sn, InputTouchParams as St, BuildRequestAuth as T, ReplayEndedEvent as Tn, KeyModifier as Tt, DeviceFrameEvent as U, ServerUpdateStatus as Un, MachineHistoryParams as Ut, DeviceAuth as V, ServerUpdateProgress as Vn, MachineDetails as Vt, DeviceHostRequestAuth as W, SettingsResult as Wn, MachineUpdateStatus as Wt, ErrorEvent as X, TOUCH_PHASES as Xn, Method as Xt, ErrorCode as Y, SubscribeResult as Yn, MemoryPressure as Yt, FEATURES as Z, TouchPhase as Zn, Methods as Zt, BuildMachineCapacity as _, QuietHours as _n, InputPostureParams as _t, ArchiveDetailParams as a, NotificationsListParams as an, VIDEO_HEADER_VERSION as ar, FramesSeekParams as at, BuildOfferResult as b, REPLAY_RATES as bn, InputSimulatorParams as bt, BUILD_REPO_PATTERN as c, PROTOCOL_SCHEMA_FILE as cn, VideoCodec as cr, HelloParams as ct, BuildAttachResult as d, PUSH_TOKEN_PATTERN as dn, WorkspaceFile as dr, INPUT_BUTTONS as dt, NotificationEntry as en, UsageSample as er, Feature as et, BuildCapacity as f, PairingAuth as fn, WorkspaceFiles as fr, INPUT_KEYS as ft, BuildJobParams as g, PushRegisterParams as gn, InputKeyParams as gt, BuildJobOutcome as h, PushEvent as hn, InputKey as ht, ActionResult as i, NotificationTarget as in, VIDEO_FOLDED as ir, FramesLiveParams as it, CONTROL_END_REASONS as j, ReplayTarget as jn, LogFilter as jt, BuildToolchain as k, ReplayRange as kn, LOG_SOURCES as kt, BuildAndroidOptions as l, PROTOCOL_VERSION as ln, VideoPacket as lr, HelloResult as lt, BuildFile as m, ProtocolError as mn, WorkspacePatch as mr, InputButtonParams as mt, ActionName as n, NotificationLevel as nn, VIDEO_ARTWORK as nr, FrameEvent as nt, ArchiveDetailResult as o, NotificationsListResult as on, VIDEO_KEYFRAME as or, FramesSeekResult as ot, BuildClientSummary as p, Platform as pn, WorkspaceParams as pr, InputButton as pt, DuoFramePose as q, StatsResult as qn, MacosWindow as qt, ActionParams as r, NotificationSuppression as rn, VIDEO_CODECS as rr, FrameTarget as rt, BUILD_METHODS as s, PLATFORMS as sn, VIDEO_UNFOLDED as sr, FramesSubscribeResult as st, ACTIONS as t, NotificationEvent as tn, UsageSeries as tr, FrameDelayedEvent as tt, BuildArtifactResult as u, PUSH_EVENTS as un, WorkspaceDiff as ur, HostedSessionRow as ut, BuildMachineReport as v, RELOAD_PLATFORMS as vn, InputRotateParams as vt, BuildProgressEvent as w, ReloadPlatform as wn, KEY_MODIFIERS as wt, BuildPlanParams as x, ROTATE_DIRECTIONS as xn, InputTextParams as xt, BuildOfferParams as y, REPLAY_MARKER_KINDS as yn, InputScrollParams as yt, DEVICE_HOST_METHODS as z, ServerUpdateOutcome as zn, MAX_LOG_TAIL as zt };
|
package/dist/protocol.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ACTIONS, ActionName, ActionParams, ActionResult, BUILD_METHODS, BUILD_REPO_PATTERN, BuildAndroidOptions, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildRequestAuth, BuildStartParams, BuildSyncParams, BuildSyncResult, BuildToolchain, CAPABILITIES, CONTROL_END_REASONS, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DeviceAuth, DeviceFrameArtwork, DeviceFrameEvent, DeviceHostRequestAuth, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, HelloParams, HelloResult, 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, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, PairingAuth, Platform, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, 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, StatusEvent, SubscribeResult, TOUCH_PHASES, TouchPhase, UnsubscribeParams, UsageHistory, UsageSample, UsageSeries, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED, VideoCodec, VideoPacket, WorkspaceDiff, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch };
|
|
1
|
+
import { $ as FRAME_FPS, $n as UsageHistory, $t as NOTIFICATION_SUPPRESSIONS, A as CAPABILITIES, An as ReplaySpan, At as LegacyPushEvent, B as DEVICE_POSTURES, Bn as ServerUpdatePackage, Bt as METHODS, C as BuildPlatform, Cn as RecordingSetResult, Ct as InputWindowParams, D as BuildSyncParams, Dn as ReplayKeyframeParams, Dt as LEGACY_PUSH_EVENTS, E as BuildStartParams, En as ReplayKeyframe, Et as KeyframeParams, F as ControlBeginResult, Fn as ServeRoute, Ft as LogsEndedEvent, G as DevicePosture, Gn as SimulatorCommand, Gt as MachineUsage, H as DeviceFrameArtwork, Hn as ServerUpdateStartParams, Ht as MachineHistory, I as ControlEndParams, In as ServerEvent, It as LogsEvent, J as ERROR_CODES, Jn as StatusEvent, Jt as MacosWindowsEvent, K as DeviceUsageSeries, Kn as SimulatorOptions, Kt as MachineVolume, L as ControlEndedEvent, Ln as ServerMessage, Lt as LogsQueryResult, M as Capability, Mn as RequestId, Mt as LogLevel, N as ClientRequest, Nn as RotateDirection, Nt as LogRecord, O as BuildSyncResult, On as ReplayMarker, Ot as LOG_LEVELS, P as ControlBeginParams, Pn as SERVER_UPDATE_METHODS, Pt as LogSource, Q as FRAME_EDGE, Qn as UnsubscribeParams, Qt as NOTIFICATION_LEVELS, R as ControlPlatform, Rn as ServerResponse, Rt as MAX_INPUT_TEXT, S as BuildPlanResult, Sn as RecordingSetParams, St as InputTouchParams, T as BuildRequestAuth, Tn as ReplayEndedEvent, Tt as KeyModifier, U as DeviceFrameEvent, Un as ServerUpdateStatus, Ut as MachineHistoryParams, V as DeviceAuth, Vn as ServerUpdateProgress, Vt as MachineDetails, W as DeviceHostRequestAuth, Wn as SettingsResult, Wt as MachineUpdateStatus, X as ErrorEvent, Xn as TOUCH_PHASES, Xt as Method, Y as ErrorCode, Yn as SubscribeResult, Yt as MemoryPressure, Z as FEATURES, Zn as TouchPhase, Zt as Methods, _ as BuildMachineCapacity, _n as QuietHours, _t as InputPostureParams, a as ArchiveDetailParams, an as NotificationsListParams, ar as VIDEO_HEADER_VERSION, at as FramesSeekParams, b as BuildOfferResult, bn as REPLAY_RATES, bt as InputSimulatorParams, c as BUILD_REPO_PATTERN, cn as PROTOCOL_SCHEMA_FILE, cr as VideoCodec, ct as HelloParams, d as BuildAttachResult, dn as PUSH_TOKEN_PATTERN, dr as WorkspaceFile, dt as INPUT_BUTTONS, en as NotificationEntry, er as UsageSample, et as Feature, f as BuildCapacity, fn as PairingAuth, fr as WorkspaceFiles, ft as INPUT_KEYS, g as BuildJobParams, gn as PushRegisterParams, gt as InputKeyParams, h as BuildJobOutcome, hn as PushEvent, ht as InputKey, i as ActionResult, in as NotificationTarget, ir as VIDEO_FOLDED, it as FramesLiveParams, j as CONTROL_END_REASONS, jn as ReplayTarget, jt as LogFilter, k as BuildToolchain, kn as ReplayRange, kt as LOG_SOURCES, l as BuildAndroidOptions, ln as PROTOCOL_VERSION, lr as VideoPacket, lt as HelloResult, m as BuildFile, mn as ProtocolError, mr as WorkspacePatch, mt as InputButtonParams, n as ActionName, nn as NotificationLevel, nr as VIDEO_ARTWORK, nt as FrameEvent, o as ArchiveDetailResult, on as NotificationsListResult, or as VIDEO_KEYFRAME, ot as FramesSeekResult, p as BuildClientSummary, pn as Platform, pr as WorkspaceParams, pt as InputButton, q as DuoFramePose, qn as StatsResult, qt as MacosWindow, r as ActionParams, rn as NotificationSuppression, rr as VIDEO_CODECS, rt as FrameTarget, s as BUILD_METHODS, sn as PLATFORMS, sr as VIDEO_UNFOLDED, st as FramesSubscribeResult, t as ACTIONS, tn as NotificationEvent, tr as UsageSeries, tt as FrameDelayedEvent, u as BuildArtifactResult, un as PUSH_EVENTS, ur as WorkspaceDiff, ut as HostedSessionRow, v as BuildMachineReport, vn as RELOAD_PLATFORMS, vt as InputRotateParams, w as BuildProgressEvent, wn as ReloadPlatform, wt as KEY_MODIFIERS, x as BuildPlanParams, xn as ROTATE_DIRECTIONS, xt as InputTextParams, y as BuildOfferParams, yn as REPLAY_MARKER_KINDS, yt as InputScrollParams, z as DEVICE_HOST_METHODS, zn as ServerUpdateOutcome, zt as MAX_LOG_TAIL } from "./protocol-BArCKISQ.mjs";
|
|
2
|
+
export { ACTIONS, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, BUILD_METHODS, BUILD_REPO_PATTERN, BuildAndroidOptions, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildRequestAuth, BuildStartParams, BuildSyncParams, BuildSyncResult, BuildToolchain, CAPABILITIES, CONTROL_END_REASONS, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DeviceAuth, DeviceFrameArtwork, DeviceFrameEvent, DeviceHostRequestAuth, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, 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, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, PairingAuth, Platform, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, 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, StatusEvent, SubscribeResult, TOUCH_PHASES, TouchPhase, UnsubscribeParams, UsageHistory, UsageSample, UsageSeries, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED, VideoCodec, VideoPacket, WorkspaceDiff, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch };
|
package/dist/protocol.mjs
CHANGED
|
@@ -19,8 +19,9 @@ const CAPABILITIES = [
|
|
|
19
19
|
* the slot's Stim-owned device instead. `notifications` is `notifications.list` and the `notification` event.
|
|
20
20
|
* `macos-hosted` relays `frames.subscribe` and control for a workspace whose macOS app
|
|
21
21
|
* `stim macos --remote` placed on another Mac.
|
|
22
|
-
* `ios-hosted`
|
|
22
|
+
* `ios-hosted` and `android-hosted` relay hosted native frames and control by workspace slot through the client's server.
|
|
23
23
|
* `hosted-ios-agent` adds session-scoped iOS agent-device grants to installed app launch/attach results.
|
|
24
|
+
* `hosted-android-agent` adds serial-pinned Android agent-device grants to installed app and session attach results.
|
|
24
25
|
* `macos-windows` is the `macos-windows` event on a macOS `frames.subscribe`, naming the window capture follows
|
|
25
26
|
* and the app's other windows.
|
|
26
27
|
* `hosted-congestion` is `device-host.frames.congested`, which lowers the bitrate of a hosted video subscription
|
|
@@ -28,6 +29,7 @@ const CAPABILITIES = [
|
|
|
28
29
|
* `macos-window-select` is `input.window`, which pins the view to a macOS app window named by `macos-windows`,
|
|
29
30
|
* bringing it to the front, or with null resumes following the front window.
|
|
30
31
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
32
|
+
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
31
33
|
* `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
|
|
32
34
|
*/
|
|
33
35
|
const FEATURES = [
|
|
@@ -42,11 +44,14 @@ const FEATURES = [
|
|
|
42
44
|
"device-frames",
|
|
43
45
|
"macos-hosted",
|
|
44
46
|
"ios-hosted",
|
|
47
|
+
"android-hosted",
|
|
45
48
|
"hosted-ios-agent",
|
|
49
|
+
"hosted-android-agent",
|
|
46
50
|
"duo-frames",
|
|
47
51
|
"workspace-diff",
|
|
48
52
|
"hosted-congestion",
|
|
49
53
|
"hosted-ios-data",
|
|
54
|
+
"hosted-android-data",
|
|
50
55
|
"server-update"
|
|
51
56
|
];
|
|
52
57
|
const METHODS = [
|
|
@@ -64,6 +69,7 @@ const METHODS = [
|
|
|
64
69
|
"frames.seek",
|
|
65
70
|
"frames.live",
|
|
66
71
|
"replay.range",
|
|
72
|
+
"archive.detail",
|
|
67
73
|
"replay.keyframe",
|
|
68
74
|
"recording.set",
|
|
69
75
|
"build.plan",
|
|
@@ -122,7 +128,9 @@ const METHODS = [
|
|
|
122
128
|
"server.update.start",
|
|
123
129
|
"server.update.chunk",
|
|
124
130
|
"machines.update.start",
|
|
125
|
-
"machines.update.status"
|
|
131
|
+
"machines.update.status",
|
|
132
|
+
"device-host.sessions",
|
|
133
|
+
"device-host.sessions.stop"
|
|
126
134
|
];
|
|
127
135
|
/**
|
|
128
136
|
* The methods that update this server's `stim-server service`. A Mac this one approved for `build` or
|
|
@@ -336,7 +344,7 @@ const DEVICE_POSTURES = [
|
|
|
336
344
|
"half-open",
|
|
337
345
|
"unfolded"
|
|
338
346
|
];
|
|
339
|
-
/** A client's repository on a
|
|
347
|
+
/** A client's repository on a remote Mac: letters, digits, `.`, `_` and `-`, at most 80. */
|
|
340
348
|
const BUILD_REPO_PATTERN = "^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$";
|
|
341
349
|
/**
|
|
342
350
|
* What stim-server can push, named like the phone's notification settings: work `started` (a workspace began
|