@stim-cli/core 1.15.0 → 1.16.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 { $n as MaintenanceAction, $t as EnvironmentDisk, An as WebBrowserState, Bt as BuildMissChange, Cn as StatusIssue, Dt as AgentSession, Fn as WorktreeGit, Gt as BuildReport, In as WorktreePullRequest, It as BuildDetail, Jt as DeviceActivity, Ln as MacosAppRecord, Lt as BuildDiagnostic, Nn as WorkspaceStage, Pn as WorktreeFacts, Rt as BuildHistoryEntry, Tn as StatusPayload, Ut as BuildPlacement, Vt as BuildMissReason, Wt as BuildPlanPayload, Xt as DeviceLeaseState, Yt as DeviceAppProcess, Zt as DiskMeasure, _n as RemoteDeviceState, bn as SimulatorState, cn as MachineUsageState, cr as MaintenanceStatus, en as EnvironmentState, hn as PhysicalDeviceState, ir as MaintenancePressure, ji as HostedMacosPlacement, kt as AndroidDeviceState, on as MachineOwner, qn as ArchivedWorkspace, rn as LastBuildReport, rr as MaintenancePass, tn as GitChip, un as MetroBundleState, zn as MacosBuild } from "./index-DPo8Bexj.mjs";
2
+ import { $ as FrameDelayedEvent, $t as NotificationLevel, An as RotateDirection, At as LogRecord, B as DeviceFrameArtwork, Cn as ReplayKeyframe, Dn as ReplaySpan, En as ReplayRange, F as ControlEndedEvent, Gn as StatusEvent, Gt as MacosWindowsEvent, Hn as SimulatorCommand, Ht as MachineUsage, J as ErrorEvent, Jn as TouchPhase, Jt as Methods, L as DEVICE_HOST_METHODS, M as ControlBeginParams, Mt as LogsEndedEvent, N as ControlBeginResult, Nn as ServerEvent, Nt as LogsEvent, On as ReplayTarget, Ot as LogFilter, Pt as LogsQueryResult, Qt as NotificationEvent, Rt as MachineDetails, S as BuildProgressEvent, Sn as ReplayEndedEvent, St as KeyModifier, Tn as ReplayMarker, U as DevicePosture, Un as SimulatorOptions, Ut as MachineVolume, V as DeviceFrameEvent, W as DeviceUsageSeries, Xn as UsageHistory, Zn as UsageSample, Zt as NotificationEntry, _t as InputSimulatorParams, a as BUILD_METHODS, at as FramesSubscribeResult, cr as WorkspaceFile, d as BuildClientSummary, dn as ProtocolError, dr as WorkspacePatch, en as NotificationSuppression, et as FrameEvent, fn as PushEvent, ft as InputKey, g as BuildMachineReport, i as ActionResult, jn as SERVER_UPDATE_METHODS, jt as LogSource, kt as LogLevel, ln as PairingAuth, lr as WorkspaceFiles, n as ActionName, on as PROTOCOL_VERSION, ot as HelloParams, pn as PushRegisterParams, r as ActionParams, rn as NotificationsListResult, sr as WorkspaceDiff, st as HelloResult, t as ACTIONS, tt as FrameTarget, un as Platform, ut as InputButton, wn as ReplayKeyframeParams, y as BuildPlanParams, z as DeviceAuth, zt as MachineHistory } from "./protocol-B0KcaUee.mjs";
3
3
  //#region phone-protocol.d.ts
4
4
  type PhonePlatform = BuildPlanParams["platform"];
5
5
  type PhoneDevicePlatform = Platform;
@@ -210,7 +210,30 @@ type PhoneLastBuild = Omit<LastBuildReport, "platform" | "status" | "cacheHit" |
210
210
  };
211
211
  type PhoneBuildDiagnostic = BuildDiagnostic;
212
212
  type PhoneDeviceLeaseState = DeviceLeaseState;
213
- type PhoneStatusPayload = Omit<StatusPayload, "environments" | "machine" | "unprovisionedWorktrees"> & {
213
+ type PhoneMaintenanceStatus = Omit<MaintenanceStatus, "mode" | "lastPass" | "plan" | "pressure" | "sizes" | "recent"> & {
214
+ mode: string;
215
+ lastPass: (Omit<MaintenancePass, "mode" | "freedBytes" | "stopped"> & {
216
+ mode: string;
217
+ freedBytes: number;
218
+ stopped: number;
219
+ }) | null;
220
+ plan: (Omit<MaintenanceAction, "kind"> & {
221
+ kind: string;
222
+ })[];
223
+ pressure: (Omit<MaintenancePressure, "memory"> & {
224
+ memory: Omit<MaintenancePressure["memory"], "level"> & {
225
+ level: string | null;
226
+ };
227
+ }) | null;
228
+ };
229
+ type PhoneStatusPayload = Omit<StatusPayload, "environments" | "machine" | "unprovisionedWorktrees" | "archived" | "maintenance"> & {
230
+ maintenance?: PhoneMaintenanceStatus;
231
+ archived?: (Omit<ArchivedWorkspace, "agents" | "builds"> & {
232
+ agents: PhoneEndedAgentSession[];
233
+ builds: Omit<ArchivedWorkspace["builds"], "last"> & {
234
+ last: PhoneLastBuild | null;
235
+ };
236
+ })[];
214
237
  unprovisionedWorktrees?: PhoneWorktreeFacts[];
215
238
  environments: PhoneEnvironmentState[];
216
239
  machine?: PhoneMachineUsageState | null;
@@ -327,6 +350,7 @@ type PhoneStatusEvent = Omit<StatusEvent, "payload" | "usage"> & {
327
350
  payload: PhoneStatusPayload;
328
351
  usage?: PhoneStatusUsage;
329
352
  };
353
+ type PhoneLogsEndedEvent = LogsEndedEvent;
330
354
  type PhoneLogsEvent = Omit<LogsEvent, "records"> & {
331
355
  records: PhoneLogRecord[];
332
356
  };
@@ -431,4 +455,4 @@ type PhoneResponse<M extends PhoneMethod = PhoneMethod> = {
431
455
  };
432
456
  type PhoneServerMessage = PhoneResponse | PhoneServerEvent;
433
457
  //#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 };
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 };
@@ -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 { Bi as HostedAppDelivery, Hi as HostedAppOffer, Oi as HostedAppLaunch, Qr as HostedDeviceOfferRequest, Tn as StatusPayload, Wt as BuildPlanPayload, Zr as HostedDeviceOffer, d as HostedLogsPage, ri as HostedDeviceSession, sc as NdjsonRecord, ti as HostedDeviceRequest, u as HostedLogsCursor } from "./index-DPo8Bexj.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,15 +16,18 @@ 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` relays iOS simulator 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.
19
21
  * `macos-windows` is the `macos-windows` event on a macOS `frames.subscribe`, naming the window capture follows
20
22
  * and the app's other windows.
21
23
  * `hosted-congestion` is `device-host.frames.congested`, which lowers the bitrate of a hosted video subscription
22
24
  * whose client is behind.
23
25
  * `macos-window-select` is `input.window`, which pins the view to a macOS app window named by `macos-windows`,
24
26
  * bringing it to the front, or with null resumes following the front window.
27
+ * `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
25
28
  * `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
26
29
  */
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"];
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"];
28
31
  type Feature = (typeof FEATURES)[number];
29
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"];
30
33
  /**
@@ -61,11 +64,13 @@ interface DeviceAuth {
61
64
  interface BuildRequestAuth {
62
65
  request: "build";
63
66
  deviceName: string;
67
+ setupTicket?: string;
64
68
  }
65
69
  /** Requests explicit device hosting approval; grants no read, control or build access. */
66
70
  interface DeviceHostRequestAuth {
67
71
  request: "device-host";
68
72
  deviceName: string;
73
+ setupTicket?: string;
69
74
  }
70
75
  interface HelloParams {
71
76
  protocol: number;
@@ -116,18 +121,19 @@ interface SubscribeResult {
116
121
  interface UnsubscribeParams {
117
122
  subscription: string;
118
123
  }
119
- declare const LOG_SOURCES: readonly ["metro", "client", "device", "build", "agent"];
124
+ declare const LOG_SOURCES: readonly ["metro", "client", "device", "build", "agent", "maintenance"];
120
125
  type LogSource = (typeof LOG_SOURCES)[number];
121
126
  declare const LOG_LEVELS: readonly ["debug", "info", "warn", "error", "fatal"];
122
127
  type LogLevel = (typeof LOG_LEVELS)[number];
123
128
  declare const MAX_LOG_TAIL = 5e3;
124
129
  /**
125
130
  * 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.
131
+ * status payload. Exactly one of `workspace` or `archive` (an `archived[].id`) is required. Without `sources`,
132
+ * `errors` keeps the CLI's default error scope. `tail` defaults to {@link MAX_LOG_TAIL}, which is also its maximum.
128
133
  */
129
134
  interface LogFilter {
130
- workspace: string;
135
+ workspace?: string;
136
+ archive?: string;
131
137
  sources?: LogSource[];
132
138
  level?: LogLevel;
133
139
  slot?: string;
@@ -175,13 +181,16 @@ declare const FRAME_EDGE: {
175
181
  * cable, and an Android phone over adb. `fps` caps how many frames a second this
176
182
  * subscription gets, and `maxEdge` asks for frames scaled to fit that many pixels; the server may send smaller
177
183
  * frames, and larger ones while another subscriber of the same device asks for more.
184
+ * Exactly one of `workspace` or `archive` (an `archived[].id`) is required. An archive needs `at`,
185
+ * cannot be physical, and cannot return to live.
178
186
  */
179
187
  interface FrameTarget {
180
188
  /** Requests installed ordinary-device artwork for this live subscription. */
181
189
  deviceFrame?: boolean;
182
190
  /** Requests a composed Duo image carrying the pose used to map its input. */
183
191
  duoFrame?: boolean;
184
- workspace: string;
192
+ workspace?: string;
193
+ archive?: string;
185
194
  platform: Platform;
186
195
  slot?: string;
187
196
  physical?: boolean;
@@ -229,9 +238,10 @@ interface FramesSeekResult {
229
238
  interface FramesLiveParams {
230
239
  subscription: string;
231
240
  }
232
- /** A device slot of a workspace, as `frames.subscribe` names it. */
241
+ /** A device slot with exactly one of `workspace` or `archive` (an `archived[].id`), as `frames.subscribe` names it. */
233
242
  interface ReplayTarget {
234
- workspace: string;
243
+ workspace?: string;
244
+ archive?: string;
235
245
  platform: Platform;
236
246
  slot?: string;
237
247
  }
@@ -1299,15 +1309,22 @@ interface StatusEvent {
1299
1309
  }
1300
1310
  /**
1301
1311
  * Records for a `logs.subscribe` subscription: first the last `tail` matching records, then new ones as
1302
- * they arrive.
1312
+ * they arrive. An archive subscription sends its matching records, then `logs-ended`.
1303
1313
  */
1304
1314
  interface LogsEvent {
1305
1315
  event: "logs";
1306
1316
  subscription: string;
1307
1317
  records: LogRecord[];
1308
1318
  }
1319
+ /** All matching archived log records were sent; the subscription has been released. */
1320
+ interface LogsEndedEvent {
1321
+ event: "logs-ended";
1322
+ subscription: string;
1323
+ }
1309
1324
  /** A subscription ended because its source failed or the client fell behind; the client may resubscribe. */
1310
1325
  interface ErrorEvent {
1326
+ platform?: Platform;
1327
+ slot?: string;
1311
1328
  event: "error";
1312
1329
  subscription: string;
1313
1330
  error: ProtocolError;
@@ -1329,6 +1346,8 @@ interface DeviceFrameArtwork {
1329
1346
  foreground: string;
1330
1347
  }
1331
1348
  interface DeviceFrameEvent {
1349
+ platform?: Platform;
1350
+ slot?: string;
1332
1351
  event: "device-frame";
1333
1352
  subscription: string;
1334
1353
  artwork: DeviceFrameArtwork | null;
@@ -1387,6 +1406,8 @@ interface FrameEvent {
1387
1406
  * frames stopped when the server knows, such as a locked iPhone or one another app captures.
1388
1407
  */
1389
1408
  interface FrameDelayedEvent {
1409
+ platform?: Platform;
1410
+ slot?: string;
1390
1411
  event: "frame-delayed";
1391
1412
  subscription: string;
1392
1413
  delayed: boolean;
@@ -1398,6 +1419,8 @@ declare const CONTROL_END_REASONS: readonly ["idle", "taken-over", "device-gone"
1398
1419
  * stopped or changed owner, the device lost `control`, or input could not reach the device.
1399
1420
  */
1400
1421
  interface ControlEndedEvent {
1422
+ platform?: ControlPlatform;
1423
+ slot?: string;
1401
1424
  event: "control-ended";
1402
1425
  session: string;
1403
1426
  reason: (typeof CONTROL_END_REASONS)[number];
@@ -1421,7 +1444,7 @@ interface BuildProgressEvent {
1421
1444
  record?: Record<string, unknown>;
1422
1445
  outcome?: BuildJobOutcome;
1423
1446
  }
1424
- type ServerEvent = BuildProgressEvent | NotificationEvent | StatusEvent | LogsEvent | FrameEvent | DeviceFrameEvent | MacosWindowsEvent | FrameDelayedEvent | ReplayEndedEvent | ErrorEvent | ControlEndedEvent;
1447
+ type ServerEvent = BuildProgressEvent | NotificationEvent | StatusEvent | LogsEvent | LogsEndedEvent | FrameEvent | DeviceFrameEvent | MacosWindowsEvent | FrameDelayedEvent | ReplayEndedEvent | ErrorEvent | ControlEndedEvent;
1425
1448
  type ServerMessage = ServerResponse | ServerEvent;
1426
1449
  type ServeRoute = {
1427
1450
  state: "routed";
@@ -1439,4 +1462,4 @@ type ServeRoute = {
1439
1462
  port: number;
1440
1463
  };
1441
1464
  //#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 };
1465
+ export { FrameDelayedEvent as $, VIDEO_ARTWORK as $n, NotificationLevel as $t, Capability as A, RotateDirection as An, LogRecord as At, DeviceFrameArtwork as B, ServerUpdateStatus as Bn, MachineHistoryParams as Bt, BuildRequestAuth as C, ReplayKeyframe as Cn, KeyframeParams as Ct, BuildToolchain as D, ReplaySpan as Dn, LegacyPushEvent as Dt, BuildSyncResult as E, ReplayRange as En, LOG_SOURCES as Et, ControlEndedEvent as F, ServerResponse as Fn, MAX_INPUT_TEXT as Ft, DuoFramePose as G, StatusEvent as Gn, MacosWindowsEvent as Gt, DeviceHostRequestAuth as H, SimulatorCommand as Hn, MachineUsage as Ht, ControlPlatform as I, ServerUpdateOutcome as In, MAX_LOG_TAIL as It, ErrorEvent as J, TouchPhase as Jn, Methods as Jt, ERROR_CODES as K, SubscribeResult as Kn, MemoryPressure as Kt, DEVICE_HOST_METHODS as L, ServerUpdatePackage as Ln, METHODS as Lt, ControlBeginParams as M, ServeRoute as Mn, LogsEndedEvent as Mt, ControlBeginResult as N, ServerEvent as Nn, LogsEvent as Nt, CAPABILITIES as O, ReplayTarget as On, LogFilter as Ot, ControlEndParams as P, ServerMessage as Pn, LogsQueryResult as Pt, Feature as Q, UsageSeries as Qn, NotificationEvent as Qt, DEVICE_POSTURES as R, ServerUpdateProgress as Rn, MachineDetails as Rt, BuildProgressEvent as S, ReplayEndedEvent as Sn, KeyModifier as St, BuildSyncParams as T, ReplayMarker as Tn, LOG_LEVELS as Tt, DevicePosture as U, SimulatorOptions as Un, MachineVolume as Ut, DeviceFrameEvent as V, SettingsResult as Vn, MachineUpdateStatus as Vt, DeviceUsageSeries as W, StatsResult as Wn, MacosWindow as Wt, FRAME_EDGE as X, UsageHistory as Xn, NOTIFICATION_SUPPRESSIONS as Xt, FEATURES as Y, UnsubscribeParams as Yn, NOTIFICATION_LEVELS as Yt, FRAME_FPS as Z, UsageSample as Zn, NotificationEntry as Zt, BuildOfferParams as _, REPLAY_RATES as _n, InputSimulatorParams as _t, BUILD_METHODS as a, PROTOCOL_SCHEMA_FILE as an, VideoCodec as ar, FramesSubscribeResult as at, BuildPlanResult as b, RecordingSetResult as bn, InputWindowParams as bt, BuildArtifactResult as c, PUSH_TOKEN_PATTERN as cn, WorkspaceFile as cr, INPUT_BUTTONS as ct, BuildClientSummary as d, ProtocolError as dn, WorkspacePatch as dr, InputButtonParams as dt, NotificationSuppression as en, VIDEO_CODECS as er, FrameEvent as et, BuildFile as f, PushEvent as fn, InputKey as ft, BuildMachineReport as g, REPLAY_MARKER_KINDS as gn, InputScrollParams as gt, BuildMachineCapacity as h, RELOAD_PLATFORMS as hn, InputRotateParams as ht, ActionResult as i, PLATFORMS as in, VIDEO_UNFOLDED as ir, FramesSeekResult as it, ClientRequest as j, SERVER_UPDATE_METHODS as jn, LogSource as jt, CONTROL_END_REASONS as k, RequestId as kn, LogLevel as kt, BuildAttachResult as l, PairingAuth as ln, WorkspaceFiles as lr, INPUT_KEYS as lt, BuildJobParams as m, QuietHours as mn, InputPostureParams as mt, ActionName as n, NotificationsListParams as nn, VIDEO_HEADER_VERSION as nr, FramesLiveParams as nt, BUILD_REPO_PATTERN as o, PROTOCOL_VERSION as on, VideoPacket as or, HelloParams as ot, BuildJobOutcome as p, PushRegisterParams as pn, InputKeyParams as pt, ErrorCode as q, TOUCH_PHASES as qn, Method as qt, ActionParams as r, NotificationsListResult as rn, VIDEO_KEYFRAME as rr, FramesSeekParams as rt, BuildAndroidOptions as s, PUSH_EVENTS as sn, WorkspaceDiff as sr, HelloResult as st, ACTIONS as t, NotificationTarget as tn, VIDEO_FOLDED as tr, FrameTarget as tt, BuildCapacity as u, Platform as un, WorkspaceParams as ur, InputButton as ut, BuildOfferResult as v, ROTATE_DIRECTIONS as vn, InputTextParams as vt, BuildStartParams as w, ReplayKeyframeParams as wn, LEGACY_PUSH_EVENTS as wt, BuildPlatform as x, ReloadPlatform as xn, KEY_MODIFIERS as xt, BuildPlanParams as y, RecordingSetParams as yn, InputTouchParams as yt, DeviceAuth as z, ServerUpdateStartParams as zn, MachineHistory 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 FrameDelayedEvent, $n as VIDEO_ARTWORK, $t as NotificationLevel, A as Capability, An as RotateDirection, At as LogRecord, B as DeviceFrameArtwork, Bn as ServerUpdateStatus, Bt as MachineHistoryParams, C as BuildRequestAuth, Cn as ReplayKeyframe, Ct as KeyframeParams, D as BuildToolchain, Dn as ReplaySpan, Dt as LegacyPushEvent, E as BuildSyncResult, En as ReplayRange, Et as LOG_SOURCES, F as ControlEndedEvent, Fn as ServerResponse, Ft as MAX_INPUT_TEXT, G as DuoFramePose, Gn as StatusEvent, Gt as MacosWindowsEvent, H as DeviceHostRequestAuth, Hn as SimulatorCommand, Ht as MachineUsage, I as ControlPlatform, In as ServerUpdateOutcome, It as MAX_LOG_TAIL, J as ErrorEvent, Jn as TouchPhase, Jt as Methods, K as ERROR_CODES, Kn as SubscribeResult, Kt as MemoryPressure, L as DEVICE_HOST_METHODS, Ln as ServerUpdatePackage, Lt as METHODS, M as ControlBeginParams, Mn as ServeRoute, Mt as LogsEndedEvent, N as ControlBeginResult, Nn as ServerEvent, Nt as LogsEvent, O as CAPABILITIES, On as ReplayTarget, Ot as LogFilter, P as ControlEndParams, Pn as ServerMessage, Pt as LogsQueryResult, Q as Feature, Qn as UsageSeries, Qt as NotificationEvent, R as DEVICE_POSTURES, Rn as ServerUpdateProgress, Rt as MachineDetails, S as BuildProgressEvent, Sn as ReplayEndedEvent, St as KeyModifier, T as BuildSyncParams, Tn as ReplayMarker, Tt as LOG_LEVELS, U as DevicePosture, Un as SimulatorOptions, Ut as MachineVolume, V as DeviceFrameEvent, Vn as SettingsResult, Vt as MachineUpdateStatus, W as DeviceUsageSeries, Wn as StatsResult, Wt as MacosWindow, X as FRAME_EDGE, Xn as UsageHistory, Xt as NOTIFICATION_SUPPRESSIONS, Y as FEATURES, Yn as UnsubscribeParams, Yt as NOTIFICATION_LEVELS, Z as FRAME_FPS, Zn as UsageSample, Zt as NotificationEntry, _ as BuildOfferParams, _n as REPLAY_RATES, _t as InputSimulatorParams, a as BUILD_METHODS, an as PROTOCOL_SCHEMA_FILE, ar as VideoCodec, at as FramesSubscribeResult, b as BuildPlanResult, bn as RecordingSetResult, bt as InputWindowParams, c as BuildArtifactResult, cn as PUSH_TOKEN_PATTERN, cr as WorkspaceFile, ct as INPUT_BUTTONS, d as BuildClientSummary, dn as ProtocolError, dr as WorkspacePatch, dt as InputButtonParams, en as NotificationSuppression, er as VIDEO_CODECS, et as FrameEvent, f as BuildFile, fn as PushEvent, ft as InputKey, g as BuildMachineReport, gn as REPLAY_MARKER_KINDS, gt as InputScrollParams, h as BuildMachineCapacity, hn as RELOAD_PLATFORMS, ht as InputRotateParams, i as ActionResult, in as PLATFORMS, ir as VIDEO_UNFOLDED, it as FramesSeekResult, j as ClientRequest, jn as SERVER_UPDATE_METHODS, jt as LogSource, k as CONTROL_END_REASONS, kn as RequestId, kt as LogLevel, l as BuildAttachResult, ln as PairingAuth, lr as WorkspaceFiles, lt as INPUT_KEYS, m as BuildJobParams, mn as QuietHours, mt as InputPostureParams, n as ActionName, nn as NotificationsListParams, nr as VIDEO_HEADER_VERSION, nt as FramesLiveParams, o as BUILD_REPO_PATTERN, on as PROTOCOL_VERSION, or as VideoPacket, ot as HelloParams, p as BuildJobOutcome, pn as PushRegisterParams, pt as InputKeyParams, q as ErrorCode, qn as TOUCH_PHASES, qt as Method, r as ActionParams, rn as NotificationsListResult, rr as VIDEO_KEYFRAME, rt as FramesSeekParams, s as BuildAndroidOptions, sn as PUSH_EVENTS, sr as WorkspaceDiff, st as HelloResult, t as ACTIONS, tn as NotificationTarget, tr as VIDEO_FOLDED, tt as FrameTarget, u as BuildCapacity, un as Platform, ur as WorkspaceParams, ut as InputButton, v as BuildOfferResult, vn as ROTATE_DIRECTIONS, vt as InputTextParams, w as BuildStartParams, wn as ReplayKeyframeParams, wt as LEGACY_PUSH_EVENTS, x as BuildPlatform, xn as ReloadPlatform, xt as KEY_MODIFIERS, y as BuildPlanParams, yn as RecordingSetParams, yt as InputTouchParams, z as DeviceAuth, zn as ServerUpdateStartParams, zt as MachineHistory } from "./protocol-B0KcaUee.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, 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,15 @@ 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` relays iOS simulator 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.
22
24
  * `macos-windows` is the `macos-windows` event on a macOS `frames.subscribe`, naming the window capture follows
23
25
  * and the app's other windows.
24
26
  * `hosted-congestion` is `device-host.frames.congested`, which lowers the bitrate of a hosted video subscription
25
27
  * whose client is behind.
26
28
  * `macos-window-select` is `input.window`, which pins the view to a macOS app window named by `macos-windows`,
27
29
  * bringing it to the front, or with null resumes following the front window.
30
+ * `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
28
31
  * `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
29
32
  */
30
33
  const FEATURES = [
@@ -38,9 +41,12 @@ const FEATURES = [
38
41
  "macos-keyboard-extended",
39
42
  "device-frames",
40
43
  "macos-hosted",
44
+ "ios-hosted",
45
+ "hosted-ios-agent",
41
46
  "duo-frames",
42
47
  "workspace-diff",
43
48
  "hosted-congestion",
49
+ "hosted-ios-data",
44
50
  "server-update"
45
51
  ];
46
52
  const METHODS = [
@@ -202,7 +208,8 @@ const LOG_SOURCES = [
202
208
  "client",
203
209
  "device",
204
210
  "build",
205
- "agent"
211
+ "agent",
212
+ "maintenance"
206
213
  ];
207
214
  const LOG_LEVELS = [
208
215
  "debug",