@stim-cli/core 1.15.0 → 1.17.0

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.d.mts CHANGED
@@ -33,6 +33,7 @@ declare function storeArtifact(dest: string, buildPath: string, { runFile, overw
33
33
  * Returns `<dir>/<name>-<hash>`, compiling it with `compile` first when it is missing. The hash covers `version` and
34
34
  * each input's name and bytes, so a changed source or compiler builds a new helper beside the old one. `compile`
35
35
  * writes to a private temporary path that is renamed into place, so concurrent builders never expose a partial file.
36
+ * Pruning is best effort and keeps this helper, the newest previous build, helpers modified in the last ten minutes and running helpers. It runs after a build and on the first call per process.
36
37
  */
37
38
  declare function compiledHelper({ dir, name, inputs, version, compile }: {
38
39
  dir: string;
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { S as quotedPath } from "./ownership-claim-O31Y5iIb.mjs";
2
- import { A as validMacosResourceDestination, C as workspaceStateDir, D as artifactIn, E as compiledHelper, O as resolveArtifact, S as workspaceSlug, T as createMetroGateway, _ as tagSharedStore, a as buildCacheRoot, b as workspaceLogDir, c as cachePathSetting, d as metroCacheRoot, f as readCacheManifest, g as sharedStoreRoot, h as rotatedLogPath, i as buildCacheKey, j as withDirLock, k as storeArtifact, l as configDir, m as rotateLog, n as METRO_NAMED_CACHE_LAYOUT, o as cacheManifestLockPath, p as registerCache, r as STORE_ROOT_TAG, s as cacheNameSegment, t as LOG_ROTATE_BYTES, u as hostSimulatorArch, v as updateCacheManifest, w as createMetroBridge, x as workspaceName, y as workspaceId } from "./core-BwaxUjLX.mjs";
2
+ import { A as validMacosResourceDestination, C as workspaceStateDir, D as artifactIn, E as compiledHelper, O as resolveArtifact, S as workspaceSlug, T as createMetroGateway, _ as tagSharedStore, a as buildCacheRoot, b as workspaceLogDir, c as cachePathSetting, d as metroCacheRoot, f as readCacheManifest, g as sharedStoreRoot, h as rotatedLogPath, i as buildCacheKey, j as withDirLock, k as storeArtifact, l as configDir, m as rotateLog, n as METRO_NAMED_CACHE_LAYOUT, o as cacheManifestLockPath, p as registerCache, r as STORE_ROOT_TAG, s as cacheNameSegment, t as LOG_ROTATE_BYTES, u as hostSimulatorArch, v as updateCacheManifest, w as createMetroBridge, x as workspaceName, y as workspaceId } from "./core-DWOUn9xp.mjs";
3
3
  export { LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, STORE_ROOT_TAG, artifactIn, buildCacheKey, buildCacheRoot, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, hostSimulatorArch, metroCacheRoot, quotedPath, readCacheManifest, registerCache, resolveArtifact, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, tagSharedStore, updateCacheManifest, validMacosResourceDestination, withDirLock, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
@@ -1,5 +1,5 @@
1
- import { Br as HostedMacosPlacement, Bt as AndroidDeviceState, Cr as MacosAppRecord, En as PhysicalDeviceState, Gn as WorktreeFacts, In as StatusPayload, Jt as BuildDiagnostic, Kn as WorktreeGit, On as RemoteDeviceState, Pn as StatusIssue, Qt as BuildMissReason, Rt as AgentSession, Tr as MacosBuild, Vn as WebBrowserState, Wn as WorkspaceStage, Yt as BuildHistoryEntry, Zt as BuildMissChange, _n as MachineOwner, an as DeviceActivity, cn as DiskMeasure, dn as EnvironmentState, en as BuildPlacement, fn as GitChip, jn as SimulatorState, mn as LastBuildReport, nn as BuildReport, on as DeviceAppProcess, qn as WorktreePullRequest, qt as BuildDetail, sn as DeviceLeaseState, tn as BuildPlanPayload, un as EnvironmentDisk, xn as MetroBundleState, yn as MachineUsageState } from "./index-DgLuTAvh.mjs";
2
- import { $ as FrameDelayedEvent, $t as NotificationSuppression, An as SERVER_UPDATE_METHODS, At as LogRecord, B as DeviceFrameArtwork, Cn as ReplayKeyframeParams, Dn as ReplayTarget, En as ReplaySpan, F as ControlEndedEvent, Hn as SimulatorOptions, Ht as MachineVolume, J as ErrorEvent, L as DEVICE_HOST_METHODS, Lt as MachineDetails, M as ControlBeginParams, Mn as ServerEvent, Mt as LogsEvent, N as ControlBeginResult, Nt as LogsQueryResult, Ot as LogFilter, Qt as NotificationLevel, Rt as MachineHistory, S as BuildProgressEvent, Sn as ReplayKeyframe, St as KeyModifier, Tn as ReplayRange, U as DevicePosture, V as DeviceFrameEvent, Vn as SimulatorCommand, Vt as MachineUsage, W as DeviceUsageSeries, Wn as StatusEvent, Wt as MacosWindowsEvent, Xn as UsageSample, Xt as NotificationEntry, Yn as UsageHistory, Zt as NotificationEvent, _t as InputSimulatorParams, a as BUILD_METHODS, an as PROTOCOL_VERSION, at as FramesSubscribeResult, cn as PairingAuth, cr as WorkspaceFiles, d as BuildClientSummary, dn as PushEvent, et as FrameEvent, fn as PushRegisterParams, ft as InputKey, g as BuildMachineReport, i as ActionResult, jt as LogSource, kn as RotateDirection, kt as LogLevel, ln as Platform, n as ActionName, nn as NotificationsListResult, or as WorkspaceDiff, ot as HelloParams, qn as TouchPhase, qt as Methods, r as ActionParams, sr as WorkspaceFile, st as HelloResult, t as ACTIONS, tt as FrameTarget, un as ProtocolError, ur as WorkspacePatch, ut as InputButton, wn as ReplayMarker, xn as ReplayEndedEvent, y as BuildPlanParams, z as DeviceAuth } from "./protocol-BjnE921M.mjs";
1
+ import { $t as BuildWaitingFor, Cn as PhysicalDeviceState, Ft as AndroidDeviceState, Gn as WorktreePullRequest, Hn as WorkspaceStage, Ht as BuildDetail, Jn as MacosBuild, Kn as MacosAppRecord, Kt as BuildMissChange, Nn as StatusPayload, Nt as AgentSession, On as SimulatorState, Tn as RemoteDeviceState, Un as WorktreeFacts, Ut as BuildDiagnostic, Wn as WorktreeGit, Wt as BuildHistoryEntry, Xt as BuildPlanPayload, Yt as BuildPlacement, Zt as BuildReport, an as DiskMeasure, cn as EnvironmentState, dn as LastBuildReport, gn as MachineUsageState, jn as StatusIssue, ln as GitChip, lr as MaintenanceAction, mn as MachineOwner, mr as MaintenancePressure, na as HostedMacosPlacement, nn as DeviceAppProcess, nr as ArchivedWorkspace, pr as MaintenancePass, qt as BuildMissReason, rn as DeviceLeaseState, sn as EnvironmentDisk, tn as DeviceActivity, vn as MetroBundleState, vr as MaintenanceStatus, zn as WebBrowserState } from "./index-DPp8a4-9.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-CfT6YiG_.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"> & {
@@ -210,7 +213,30 @@ type PhoneLastBuild = Omit<LastBuildReport, "platform" | "status" | "cacheHit" |
210
213
  };
211
214
  type PhoneBuildDiagnostic = BuildDiagnostic;
212
215
  type PhoneDeviceLeaseState = DeviceLeaseState;
213
- type PhoneStatusPayload = Omit<StatusPayload, "environments" | "machine" | "unprovisionedWorktrees"> & {
216
+ type PhoneMaintenanceStatus = Omit<MaintenanceStatus, "mode" | "lastPass" | "plan" | "pressure" | "sizes" | "recent"> & {
217
+ mode: string;
218
+ lastPass: (Omit<MaintenancePass, "mode" | "freedBytes" | "stopped"> & {
219
+ mode: string;
220
+ freedBytes: number;
221
+ stopped: number;
222
+ }) | null;
223
+ plan: (Omit<MaintenanceAction, "kind"> & {
224
+ kind: string;
225
+ })[];
226
+ pressure: (Omit<MaintenancePressure, "memory"> & {
227
+ memory: Omit<MaintenancePressure["memory"], "level"> & {
228
+ level: string | null;
229
+ };
230
+ }) | null;
231
+ };
232
+ type PhoneStatusPayload = Omit<StatusPayload, "environments" | "machine" | "unprovisionedWorktrees" | "archived" | "maintenance"> & {
233
+ maintenance?: PhoneMaintenanceStatus;
234
+ archived?: (Omit<ArchivedWorkspace, "agents" | "builds"> & {
235
+ agents: PhoneEndedAgentSession[];
236
+ builds: Omit<ArchivedWorkspace["builds"], "last"> & {
237
+ last: PhoneLastBuild | null;
238
+ };
239
+ })[];
214
240
  unprovisionedWorktrees?: PhoneWorktreeFacts[];
215
241
  environments: PhoneEnvironmentState[];
216
242
  machine?: PhoneMachineUsageState | null;
@@ -255,6 +281,14 @@ type PhoneReplayKeyframe = Omit<ReplayKeyframe, "posture"> & {
255
281
  type PhoneReplayRange = Omit<ReplayRange, "markers"> & {
256
282
  markers: PhoneReplayMarker[];
257
283
  };
284
+ type PhoneArchiveDetailResult = {
285
+ builds: Partial<Record<string, PhoneBuildHistoryEntry[]>>;
286
+ recordings: {
287
+ platform: string;
288
+ slot: string;
289
+ spans: PhoneReplaySpan[];
290
+ }[];
291
+ };
258
292
  type PhoneReplayEndedEvent = ReplayEndedEvent;
259
293
  type PhoneControlBeginParams = ControlBeginParams;
260
294
  type PhoneControlBeginResult = Omit<ControlBeginResult, "platform" | "postures"> & {
@@ -327,6 +361,7 @@ type PhoneStatusEvent = Omit<StatusEvent, "payload" | "usage"> & {
327
361
  payload: PhoneStatusPayload;
328
362
  usage?: PhoneStatusUsage;
329
363
  };
364
+ type PhoneLogsEndedEvent = LogsEndedEvent;
330
365
  type PhoneLogsEvent = Omit<LogsEvent, "records"> & {
331
366
  records: PhoneLogRecord[];
332
367
  };
@@ -361,7 +396,7 @@ type PhoneHelloResult = OptionalFields<Omit<HelloResult, "server" | "features" |
361
396
  expiresAt: string;
362
397
  };
363
398
  };
364
- 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"> & {
365
400
  hello: {
366
401
  params: Omit<HelloParams, "auth"> & {
367
402
  auth: PhoneClientAuth;
@@ -386,6 +421,10 @@ type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVIC
386
421
  params: ReplayTarget;
387
422
  result: PhoneReplayRange;
388
423
  };
424
+ "archive.detail": {
425
+ params: ArchiveDetailParams;
426
+ result: PhoneArchiveDetailResult;
427
+ };
389
428
  "replay.keyframe": {
390
429
  params: ReplayKeyframeParams;
391
430
  result: PhoneReplayKeyframe;
@@ -431,4 +470,4 @@ type PhoneResponse<M extends PhoneMethod = PhoneMethod> = {
431
470
  };
432
471
  type PhoneServerMessage = PhoneResponse | PhoneServerEvent;
433
472
  //#endregion
434
- 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 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, 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 { C as HostedDeviceRequest, In as StatusPayload, Jr as HostedAppDelivery, Lr as HostedAppLaunch, T as HostedDeviceSession, Xr as HostedAppOffer, Za as NdjsonRecord, b as HostedDeviceOfferRequest, i as HostedLogsPage, r as HostedLogsCursor, tn as BuildPlanPayload, y as HostedDeviceOffer } from "./index-DgLuTAvh.mjs";
1
+ import { $i as HostedAppLaunch, Ci as HostedDevicePhase, Di as HostedDeviceSession, Nn as StatusPayload, Pc as NdjsonRecord, Si as HostedDeviceOfferRequest, Ti as HostedDeviceRequest, Wt as BuildHistoryEntry, Xt as BuildPlanPayload, d as HostedLogsPage, da as HostedAppDelivery, pa as HostedAppOffer, u as HostedLogsCursor, wi as HostedDevicePlatform, xi as HostedDeviceOffer } from "./index-DPp8a4-9.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,17 +16,22 @@ 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` and `android-hosted` relay hosted native frames and control by workspace slot through the client's server.
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.
19
22
  * `macos-windows` is the `macos-windows` event on a macOS `frames.subscribe`, naming the window capture follows
20
23
  * and the app's other windows.
21
24
  * `hosted-congestion` is `device-host.frames.congested`, which lowers the bitrate of a hosted video subscription
22
25
  * whose client is behind.
23
26
  * `macos-window-select` is `input.window`, which pins the view to a macOS app window named by `macos-windows`,
24
27
  * bringing it to the front, or with null resumes following the front window.
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.
25
30
  * `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
26
31
  */
27
- 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", "duo-frames", "workspace-diff", "hosted-congestion", "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"];
28
33
  type Feature = (typeof FEATURES)[number];
29
- 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"];
30
35
  /**
31
36
  * The methods that update this server's `stim-server service`. A Mac this one approved for `build` or
32
37
  * `device-host` may call them; they need neither `read` nor `control`.
@@ -61,11 +66,13 @@ interface DeviceAuth {
61
66
  interface BuildRequestAuth {
62
67
  request: "build";
63
68
  deviceName: string;
69
+ setupTicket?: string;
64
70
  }
65
71
  /** Requests explicit device hosting approval; grants no read, control or build access. */
66
72
  interface DeviceHostRequestAuth {
67
73
  request: "device-host";
68
74
  deviceName: string;
75
+ setupTicket?: string;
69
76
  }
70
77
  interface HelloParams {
71
78
  protocol: number;
@@ -116,18 +123,19 @@ interface SubscribeResult {
116
123
  interface UnsubscribeParams {
117
124
  subscription: string;
118
125
  }
119
- declare const LOG_SOURCES: readonly ["metro", "client", "device", "build", "agent"];
126
+ declare const LOG_SOURCES: readonly ["metro", "client", "device", "build", "agent", "maintenance"];
120
127
  type LogSource = (typeof LOG_SOURCES)[number];
121
128
  declare const LOG_LEVELS: readonly ["debug", "info", "warn", "error", "fatal"];
122
129
  type LogLevel = (typeof LOG_LEVELS)[number];
123
130
  declare const MAX_LOG_TAIL = 5e3;
124
131
  /**
125
132
  * The Stim Desktop log viewer's filters, passed to `stim logs`. `workspace` is an environment `path` from a
126
- * status payload. Without `sources`, `errors` keeps the CLI's default error scope. `tail` defaults to
127
- * {@link MAX_LOG_TAIL}, which is also its maximum.
133
+ * status payload. Exactly one of `workspace` or `archive` (an `archived[].id`) is required. Without `sources`,
134
+ * `errors` keeps the CLI's default error scope. `tail` defaults to {@link MAX_LOG_TAIL}, which is also its maximum.
128
135
  */
129
136
  interface LogFilter {
130
- workspace: string;
137
+ workspace?: string;
138
+ archive?: string;
131
139
  sources?: LogSource[];
132
140
  level?: LogLevel;
133
141
  slot?: string;
@@ -175,13 +183,16 @@ declare const FRAME_EDGE: {
175
183
  * cable, and an Android phone over adb. `fps` caps how many frames a second this
176
184
  * subscription gets, and `maxEdge` asks for frames scaled to fit that many pixels; the server may send smaller
177
185
  * frames, and larger ones while another subscriber of the same device asks for more.
186
+ * Exactly one of `workspace` or `archive` (an `archived[].id`) is required. An archive needs `at`,
187
+ * cannot be physical, and cannot return to live.
178
188
  */
179
189
  interface FrameTarget {
180
190
  /** Requests installed ordinary-device artwork for this live subscription. */
181
191
  deviceFrame?: boolean;
182
192
  /** Requests a composed Duo image carrying the pose used to map its input. */
183
193
  duoFrame?: boolean;
184
- workspace: string;
194
+ workspace?: string;
195
+ archive?: string;
185
196
  platform: Platform;
186
197
  slot?: string;
187
198
  physical?: boolean;
@@ -229,9 +240,10 @@ interface FramesSeekResult {
229
240
  interface FramesLiveParams {
230
241
  subscription: string;
231
242
  }
232
- /** A device slot of a workspace, as `frames.subscribe` names it. */
243
+ /** A device slot with exactly one of `workspace` or `archive` (an `archived[].id`), as `frames.subscribe` names it. */
233
244
  interface ReplayTarget {
234
- workspace: string;
245
+ workspace?: string;
246
+ archive?: string;
235
247
  platform: Platform;
236
248
  slot?: string;
237
249
  }
@@ -263,6 +275,19 @@ interface ReplayRange {
263
275
  spans: ReplaySpan[];
264
276
  markers: ReplayMarker[];
265
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
+ }
266
291
  /** A device slot, as {@link ReplayTarget} names it, and a time in epoch milliseconds on the Mac's clock. */
267
292
  interface ReplayKeyframeParams extends ReplayTarget {
268
293
  at: number;
@@ -917,7 +942,36 @@ interface MachineUpdateStatus {
917
942
  error: string | null;
918
943
  } | null;
919
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
+ }
920
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
+ };
921
975
  "machines.update.start": {
922
976
  params: {
923
977
  machine: string;
@@ -1050,6 +1104,7 @@ interface Methods {
1050
1104
  session: string;
1051
1105
  gatewayPort: number;
1052
1106
  secret: string;
1107
+ clientMetroPort?: number;
1053
1108
  };
1054
1109
  result: {
1055
1110
  port: number;
@@ -1135,6 +1190,10 @@ interface Methods {
1135
1190
  params: ReplayTarget;
1136
1191
  result: ReplayRange;
1137
1192
  };
1193
+ "archive.detail": {
1194
+ params: ArchiveDetailParams;
1195
+ result: ArchiveDetailResult;
1196
+ };
1138
1197
  "replay.keyframe": {
1139
1198
  params: ReplayKeyframeParams;
1140
1199
  result: ReplayKeyframe;
@@ -1299,15 +1358,22 @@ interface StatusEvent {
1299
1358
  }
1300
1359
  /**
1301
1360
  * Records for a `logs.subscribe` subscription: first the last `tail` matching records, then new ones as
1302
- * they arrive.
1361
+ * they arrive. An archive subscription sends its matching records, then `logs-ended`.
1303
1362
  */
1304
1363
  interface LogsEvent {
1305
1364
  event: "logs";
1306
1365
  subscription: string;
1307
1366
  records: LogRecord[];
1308
1367
  }
1368
+ /** All matching archived log records were sent; the subscription has been released. */
1369
+ interface LogsEndedEvent {
1370
+ event: "logs-ended";
1371
+ subscription: string;
1372
+ }
1309
1373
  /** A subscription ended because its source failed or the client fell behind; the client may resubscribe. */
1310
1374
  interface ErrorEvent {
1375
+ platform?: Platform;
1376
+ slot?: string;
1311
1377
  event: "error";
1312
1378
  subscription: string;
1313
1379
  error: ProtocolError;
@@ -1329,6 +1395,8 @@ interface DeviceFrameArtwork {
1329
1395
  foreground: string;
1330
1396
  }
1331
1397
  interface DeviceFrameEvent {
1398
+ platform?: Platform;
1399
+ slot?: string;
1332
1400
  event: "device-frame";
1333
1401
  subscription: string;
1334
1402
  artwork: DeviceFrameArtwork | null;
@@ -1387,6 +1455,8 @@ interface FrameEvent {
1387
1455
  * frames stopped when the server knows, such as a locked iPhone or one another app captures.
1388
1456
  */
1389
1457
  interface FrameDelayedEvent {
1458
+ platform?: Platform;
1459
+ slot?: string;
1390
1460
  event: "frame-delayed";
1391
1461
  subscription: string;
1392
1462
  delayed: boolean;
@@ -1398,6 +1468,8 @@ declare const CONTROL_END_REASONS: readonly ["idle", "taken-over", "device-gone"
1398
1468
  * stopped or changed owner, the device lost `control`, or input could not reach the device.
1399
1469
  */
1400
1470
  interface ControlEndedEvent {
1471
+ platform?: ControlPlatform;
1472
+ slot?: string;
1401
1473
  event: "control-ended";
1402
1474
  session: string;
1403
1475
  reason: (typeof CONTROL_END_REASONS)[number];
@@ -1421,7 +1493,7 @@ interface BuildProgressEvent {
1421
1493
  record?: Record<string, unknown>;
1422
1494
  outcome?: BuildJobOutcome;
1423
1495
  }
1424
- type ServerEvent = BuildProgressEvent | NotificationEvent | StatusEvent | LogsEvent | FrameEvent | DeviceFrameEvent | MacosWindowsEvent | FrameDelayedEvent | ReplayEndedEvent | ErrorEvent | ControlEndedEvent;
1496
+ type ServerEvent = BuildProgressEvent | NotificationEvent | StatusEvent | LogsEvent | LogsEndedEvent | FrameEvent | DeviceFrameEvent | MacosWindowsEvent | FrameDelayedEvent | ReplayEndedEvent | ErrorEvent | ControlEndedEvent;
1425
1497
  type ServerMessage = ServerResponse | ServerEvent;
1426
1498
  type ServeRoute = {
1427
1499
  state: "routed";
@@ -1439,4 +1511,4 @@ type ServeRoute = {
1439
1511
  port: number;
1440
1512
  };
1441
1513
  //#endregion
1442
- export { FrameDelayedEvent as $, VIDEO_CODECS as $n, NotificationSuppression as $t, Capability as A, SERVER_UPDATE_METHODS as An, LogRecord as At, DeviceFrameArtwork as B, SettingsResult as Bn, MachineUpdateStatus as Bt, BuildRequestAuth as C, ReplayKeyframeParams as Cn, KeyframeParams as Ct, BuildToolchain as D, ReplayTarget as Dn, LegacyPushEvent as Dt, BuildSyncResult as E, ReplaySpan as En, LOG_SOURCES as Et, ControlEndedEvent as F, ServerUpdateOutcome as Fn, MAX_LOG_TAIL as Ft, DuoFramePose as G, SubscribeResult as Gn, MemoryPressure as Gt, DeviceHostRequestAuth as H, SimulatorOptions as Hn, MachineVolume as Ht, ControlPlatform as I, ServerUpdatePackage as In, METHODS as It, ErrorEvent as J, UnsubscribeParams as Jn, NOTIFICATION_LEVELS as Jt, ERROR_CODES as K, TOUCH_PHASES as Kn, Method as Kt, DEVICE_HOST_METHODS as L, ServerUpdateProgress as Ln, MachineDetails as Lt, ControlBeginParams as M, ServerEvent as Mn, LogsEvent as Mt, ControlBeginResult as N, ServerMessage as Nn, LogsQueryResult as Nt, CAPABILITIES as O, RequestId as On, LogFilter as Ot, ControlEndParams as P, ServerResponse as Pn, MAX_INPUT_TEXT as Pt, Feature as Q, VIDEO_ARTWORK as Qn, NotificationLevel as Qt, DEVICE_POSTURES as R, ServerUpdateStartParams as Rn, MachineHistory as Rt, BuildProgressEvent as S, ReplayKeyframe as Sn, KeyModifier as St, BuildSyncParams as T, ReplayRange as Tn, LOG_LEVELS as Tt, DevicePosture as U, StatsResult as Un, MacosWindow as Ut, DeviceFrameEvent as V, SimulatorCommand as Vn, MachineUsage as Vt, DeviceUsageSeries as W, StatusEvent as Wn, MacosWindowsEvent as Wt, FRAME_EDGE as X, UsageSample as Xn, NotificationEntry as Xt, FEATURES as Y, UsageHistory as Yn, NOTIFICATION_SUPPRESSIONS as Yt, FRAME_FPS as Z, UsageSeries as Zn, NotificationEvent as Zt, BuildOfferParams as _, ROTATE_DIRECTIONS as _n, InputSimulatorParams as _t, BUILD_METHODS as a, PROTOCOL_VERSION as an, VideoPacket as ar, FramesSubscribeResult as at, BuildPlanResult as b, ReloadPlatform as bn, InputWindowParams as bt, BuildArtifactResult as c, PairingAuth as cn, WorkspaceFiles as cr, INPUT_BUTTONS as ct, BuildClientSummary as d, PushEvent as dn, InputButtonParams as dt, NotificationTarget as en, VIDEO_FOLDED as er, FrameEvent as et, BuildFile as f, PushRegisterParams as fn, InputKey as ft, BuildMachineReport as g, REPLAY_RATES as gn, InputScrollParams as gt, BuildMachineCapacity as h, REPLAY_MARKER_KINDS as hn, InputRotateParams as ht, ActionResult as i, PROTOCOL_SCHEMA_FILE as in, VideoCodec as ir, FramesSeekResult as it, ClientRequest as j, ServeRoute as jn, LogSource as jt, CONTROL_END_REASONS as k, RotateDirection as kn, LogLevel as kt, BuildAttachResult as l, Platform as ln, WorkspaceParams as lr, INPUT_KEYS as lt, BuildJobParams as m, RELOAD_PLATFORMS as mn, InputPostureParams as mt, ActionName as n, NotificationsListResult as nn, VIDEO_KEYFRAME as nr, FramesLiveParams as nt, BUILD_REPO_PATTERN as o, PUSH_EVENTS as on, WorkspaceDiff as or, HelloParams as ot, BuildJobOutcome as p, QuietHours as pn, InputKeyParams as pt, ErrorCode as q, TouchPhase as qn, Methods as qt, ActionParams as r, PLATFORMS as rn, VIDEO_UNFOLDED as rr, FramesSeekParams as rt, BuildAndroidOptions as s, PUSH_TOKEN_PATTERN as sn, WorkspaceFile as sr, HelloResult as st, ACTIONS as t, NotificationsListParams as tn, VIDEO_HEADER_VERSION as tr, FrameTarget as tt, BuildCapacity as u, ProtocolError as un, WorkspacePatch as ur, InputButton as ut, BuildOfferResult as v, RecordingSetParams as vn, InputTextParams as vt, BuildStartParams as w, ReplayMarker as wn, LEGACY_PUSH_EVENTS as wt, BuildPlatform as x, ReplayEndedEvent as xn, KEY_MODIFIERS as xt, BuildPlanParams as y, RecordingSetResult as yn, InputTouchParams as yt, DeviceAuth as z, ServerUpdateStatus as zn, MachineHistoryParams as zt };
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 };
@@ -1,2 +1,2 @@
1
- import { $ as FrameDelayedEvent, $n as VIDEO_CODECS, $t as NotificationSuppression, A as Capability, An as SERVER_UPDATE_METHODS, At as LogRecord, B as DeviceFrameArtwork, Bn as SettingsResult, Bt as MachineUpdateStatus, C as BuildRequestAuth, Cn as ReplayKeyframeParams, Ct as KeyframeParams, D as BuildToolchain, Dn as ReplayTarget, Dt as LegacyPushEvent, E as BuildSyncResult, En as ReplaySpan, Et as LOG_SOURCES, F as ControlEndedEvent, Fn as ServerUpdateOutcome, Ft as MAX_LOG_TAIL, G as DuoFramePose, Gn as SubscribeResult, Gt as MemoryPressure, H as DeviceHostRequestAuth, Hn as SimulatorOptions, Ht as MachineVolume, I as ControlPlatform, In as ServerUpdatePackage, It as METHODS, J as ErrorEvent, Jn as UnsubscribeParams, Jt as NOTIFICATION_LEVELS, K as ERROR_CODES, Kn as TOUCH_PHASES, Kt as Method, L as DEVICE_HOST_METHODS, Ln as ServerUpdateProgress, Lt as MachineDetails, M as ControlBeginParams, Mn as ServerEvent, Mt as LogsEvent, N as ControlBeginResult, Nn as ServerMessage, Nt as LogsQueryResult, O as CAPABILITIES, On as RequestId, Ot as LogFilter, P as ControlEndParams, Pn as ServerResponse, Pt as MAX_INPUT_TEXT, Q as Feature, Qn as VIDEO_ARTWORK, Qt as NotificationLevel, R as DEVICE_POSTURES, Rn as ServerUpdateStartParams, Rt as MachineHistory, S as BuildProgressEvent, Sn as ReplayKeyframe, St as KeyModifier, T as BuildSyncParams, Tn as ReplayRange, Tt as LOG_LEVELS, U as DevicePosture, Un as StatsResult, Ut as MacosWindow, V as DeviceFrameEvent, Vn as SimulatorCommand, Vt as MachineUsage, W as DeviceUsageSeries, Wn as StatusEvent, Wt as MacosWindowsEvent, X as FRAME_EDGE, Xn as UsageSample, Xt as NotificationEntry, Y as FEATURES, Yn as UsageHistory, Yt as NOTIFICATION_SUPPRESSIONS, Z as FRAME_FPS, Zn as UsageSeries, Zt as NotificationEvent, _ as BuildOfferParams, _n as ROTATE_DIRECTIONS, _t as InputSimulatorParams, a as BUILD_METHODS, an as PROTOCOL_VERSION, ar as VideoPacket, at as FramesSubscribeResult, b as BuildPlanResult, bn as ReloadPlatform, bt as InputWindowParams, c as BuildArtifactResult, cn as PairingAuth, cr as WorkspaceFiles, ct as INPUT_BUTTONS, d as BuildClientSummary, dn as PushEvent, dt as InputButtonParams, en as NotificationTarget, er as VIDEO_FOLDED, et as FrameEvent, f as BuildFile, fn as PushRegisterParams, ft as InputKey, g as BuildMachineReport, gn as REPLAY_RATES, gt as InputScrollParams, h as BuildMachineCapacity, hn as REPLAY_MARKER_KINDS, ht as InputRotateParams, i as ActionResult, in as PROTOCOL_SCHEMA_FILE, ir as VideoCodec, it as FramesSeekResult, j as ClientRequest, jn as ServeRoute, jt as LogSource, k as CONTROL_END_REASONS, kn as RotateDirection, kt as LogLevel, l as BuildAttachResult, ln as Platform, lr as WorkspaceParams, lt as INPUT_KEYS, m as BuildJobParams, mn as RELOAD_PLATFORMS, mt as InputPostureParams, n as ActionName, nn as NotificationsListResult, nr as VIDEO_KEYFRAME, nt as FramesLiveParams, o as BUILD_REPO_PATTERN, on as PUSH_EVENTS, or as WorkspaceDiff, ot as HelloParams, p as BuildJobOutcome, pn as QuietHours, pt as InputKeyParams, q as ErrorCode, qn as TouchPhase, qt as Methods, r as ActionParams, rn as PLATFORMS, rr as VIDEO_UNFOLDED, rt as FramesSeekParams, s as BuildAndroidOptions, sn as PUSH_TOKEN_PATTERN, sr as WorkspaceFile, st as HelloResult, t as ACTIONS, tn as NotificationsListParams, tr as VIDEO_HEADER_VERSION, tt as FrameTarget, u as BuildCapacity, un as ProtocolError, ur as WorkspacePatch, ut as InputButton, v as BuildOfferResult, vn as RecordingSetParams, vt as InputTextParams, w as BuildStartParams, wn as ReplayMarker, wt as LEGACY_PUSH_EVENTS, x as BuildPlatform, xn as ReplayEndedEvent, xt as KEY_MODIFIERS, y as BuildPlanParams, yn as RecordingSetResult, yt as InputTouchParams, z as DeviceAuth, zn as ServerUpdateStatus, zt as MachineHistoryParams } from "./protocol-BjnE921M.mjs";
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, 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-CfT6YiG_.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,12 +19,17 @@ 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` and `android-hosted` relay hosted native frames and control by workspace slot through the client's server.
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.
22
25
  * `macos-windows` is the `macos-windows` event on a macOS `frames.subscribe`, naming the window capture follows
23
26
  * and the app's other windows.
24
27
  * `hosted-congestion` is `device-host.frames.congested`, which lowers the bitrate of a hosted video subscription
25
28
  * whose client is behind.
26
29
  * `macos-window-select` is `input.window`, which pins the view to a macOS app window named by `macos-windows`,
27
30
  * bringing it to the front, or with null resumes following the front window.
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.
28
33
  * `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
29
34
  */
30
35
  const FEATURES = [
@@ -38,9 +43,15 @@ const FEATURES = [
38
43
  "macos-keyboard-extended",
39
44
  "device-frames",
40
45
  "macos-hosted",
46
+ "ios-hosted",
47
+ "android-hosted",
48
+ "hosted-ios-agent",
49
+ "hosted-android-agent",
41
50
  "duo-frames",
42
51
  "workspace-diff",
43
52
  "hosted-congestion",
53
+ "hosted-ios-data",
54
+ "hosted-android-data",
44
55
  "server-update"
45
56
  ];
46
57
  const METHODS = [
@@ -58,6 +69,7 @@ const METHODS = [
58
69
  "frames.seek",
59
70
  "frames.live",
60
71
  "replay.range",
72
+ "archive.detail",
61
73
  "replay.keyframe",
62
74
  "recording.set",
63
75
  "build.plan",
@@ -116,7 +128,9 @@ const METHODS = [
116
128
  "server.update.start",
117
129
  "server.update.chunk",
118
130
  "machines.update.start",
119
- "machines.update.status"
131
+ "machines.update.status",
132
+ "device-host.sessions",
133
+ "device-host.sessions.stop"
120
134
  ];
121
135
  /**
122
136
  * The methods that update this server's `stim-server service`. A Mac this one approved for `build` or
@@ -202,7 +216,8 @@ const LOG_SOURCES = [
202
216
  "client",
203
217
  "device",
204
218
  "build",
205
- "agent"
219
+ "agent",
220
+ "maintenance"
206
221
  ];
207
222
  const LOG_LEVELS = [
208
223
  "debug",