@stim-cli/core 1.20.2 → 1.21.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.
@@ -1,2 +1,2 @@
1
- import { $ as FRAME_EDGE, $n as TouchPhase, $t as Methods, A as BuildToolchain, An as ReplayMarker, At as LOG_LEVELS, B as DEVICE_HOST_METHODS, Bn as ServerResponse, Bt as MAX_INPUT_TEXT, C as BuildPlanResult, Cn as ROTATE_DIRECTIONS, Ct as InputTextParams, D as BuildStartParams, Dn as ReplayEndedEvent, Dt as KeyModifier, E as BuildRequestAuth, En as ReloadPlatform, Et as KEY_MODIFIERS, F as ControlBeginParams, Fn as RotateDirection, Ft as LogRecord, G as DeviceHostRequestAuth, Gn as ServerUpdateStatus, Gt as MachineHistoryParams, H as DeviceAuth, Hn as ServerUpdatePackage, Ht as METHODS, I as ControlBeginResult, In as SERVER_UPDATE_METHODS, It as LogSource, J as DuoFramePose, Jn as SimulatorOptions, Jt as MachineVolume, K as DevicePosture, Kn as SettingsResult, Kt as MachineUpdateStatus, L as ControlEndParams, Ln as ServeRoute, Lt as LogsEndedEvent, M as CONTROL_END_REASONS, Mn as ReplaySpan, Mt as LegacyPushEvent, N as Capability, Nn as ReplayTarget, Nt as LogFilter, O as BuildSyncParams, On as ReplayKeyframe, Ot as KeyframeParams, P as ClientRequest, Pn as RequestId, Pt as LogLevel, Q as FEATURES, Qn as TOUCH_PHASES, Qt as Method, R as ControlEndedEvent, Rn as ServerEvent, Rt as LogsEvent, S as BuildPlanParams, Sn as REPLAY_RATES, St as InputSimulatorParams, T as BuildProgressEvent, Tn as RecordingSetResult, Tt as InputWindowParams, U as DeviceFrameArtwork, Un as ServerUpdateProgress, Ut as MachineDetails, V as DEVICE_POSTURES, Vn as ServerUpdateOutcome, Vt as MAX_LOG_TAIL, W as DeviceFrameEvent, Wn as ServerUpdateStartParams, Wt as MachineHistory, X as ErrorCode, Xn as StatusEvent, Xt as MacosWindowsEvent, Y as ERROR_CODES, Yn as StatsResult, Yt as MacosWindow, Z as ErrorEvent, Zn as SubscribeResult, Zt as MemoryPressure, _ as BuildJobParams, _n as PushEvent, _t as InputKey, a as ArchiveDetailParams, an as NotificationSuppression, ar as VIDEO_CODECS, at as FramesLiveParams, b as BuildOfferParams, bn as RELOAD_PLATFORMS, bt as InputRotateParams, c as BUILD_REPO_PATTERN, cn as NotificationsListResult, cr as VIDEO_KEYFRAME, ct as FramesSubscribeResult, d as BuildArtifactResult, dn as PROTOCOL_VERSION, dr as VideoPacket, dt as HelloResult, en as NOTIFICATION_LEVELS, er as UnsubscribeParams, et as FRAME_FPS, f as BuildAttachResult, fn as PUSH_EVENTS, fr as WorkspaceDiff, ft as HostedSessionRow, g as BuildJobOutcome, gn as ProtocolError, gr as WorkspacePatch, gt as InputButtonParams, h as BuildFile, hn as Platform, hr as WorkspaceParams, ht as InputButton, i as ActionResult, in as NotificationLevel, ir as VIDEO_ARTWORK, it as FrameTarget, j as CAPABILITIES, jn as ReplayRange, jt as LOG_SOURCES, k as BuildSyncResult, kn as ReplayKeyframeParams, kt as LEGACY_PUSH_EVENTS, l as BUILD_RUBY_VERSION_PATTERN, ln as PLATFORMS, lr as VIDEO_UNFOLDED, lt as GradleOffloadInputs, m as BuildClientSummary, mn as PairingAuth, mr as WorkspaceFiles, mt as INPUT_KEYS, n as ActionName, nn as NotificationEntry, nr as UsageSample, nt as FrameDelayedEvent, o as ArchiveDetailResult, on as NotificationTarget, or as VIDEO_FOLDED, ot as FramesSeekParams, p as BuildCapacity, pn as PUSH_TOKEN_PATTERN, pr as WorkspaceFile, pt as INPUT_BUTTONS, q as DeviceUsageSeries, qn as SimulatorCommand, qt as MachineUsage, r as ActionParams, rn as NotificationEvent, rr as UsageSeries, rt as FrameEvent, s as BUILD_METHODS, sn as NotificationsListParams, sr as VIDEO_HEADER_VERSION, st as FramesSeekResult, t as ACTIONS, tn as NOTIFICATION_SUPPRESSIONS, tr as UsageHistory, tt as Feature, u as BuildAndroidOptions, un as PROTOCOL_SCHEMA_FILE, ur as VideoCodec, ut as HelloParams, v as BuildMachineCapacity, vn as PushRegisterParams, vt as InputKeyParams, w as BuildPlatform, wn as RecordingSetParams, wt as InputTouchParams, x as BuildOfferResult, xn as REPLAY_MARKER_KINDS, xt as InputScrollParams, y as BuildMachineReport, yn as QuietHours, yt as InputPostureParams, z as ControlPlatform, zn as ServerMessage, zt as LogsQueryResult } from "./protocol-pH632kA3.mjs";
2
- export { ACTIONS, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_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, GradleOffloadInputs, HelloParams, HelloResult, HostedSessionRow, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, 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 DesktopReportTarget, $n as ServerMessage, $t as LogsQueryResult, A as BuildStartParams, An as ProtocolError, Ar as WorkspaceParams, At as InputButtonParams, B as ControlBeginParams, Bn as ReloadPlatform, Bt as KEY_MODIFIERS, C as BuildMachineReport, Cn as NotificationsListResult, Cr as VIDEO_UNFOLDED, Ct as GradleOffloadInputs, D as BuildPlanResult, Dn as PUSH_EVENTS, Dr as WorkspaceEvent, Dt as INPUT_BUTTONS, E as BuildPlanParams, En as PROTOCOL_VERSION, Er as WorkspaceDiff, Et as HostedSessionRow, F as CAPABILITIES, Fn as REPLAY_MARKER_KINDS, Ft as InputScrollParams, G as DEVICE_HOST_METHODS, Gn as ReplayRange, Gt as LOG_SOURCES, H as ControlEndParams, Hn as ReplayKeyframe, Ht as KeyframeParams, I as CONTROL_END_REASONS, In as REPLAY_RATES, It as InputSimulatorParams, J as DesktopLogFilter, Jn as RequestId, Jt as LogLevel, K as DEVICE_POSTURES, Kn as ReplaySpan, Kt as LegacyPushEvent, L as CachedBuildArtifact, Ln as ROTATE_DIRECTIONS, Lt as InputTextParams, M as BuildSyncResult, Mn as PushRegisterParams, Mr as WorkspaceRef, Mt as InputKeyParams, N as BuildToolchain, Nn as QuietHours, Nr as WorkspacesEvent, Nt as InputPostureParams, O as BuildPlatform, On as PUSH_TOKEN_PATTERN, Or as WorkspaceFile, Ot as INPUT_KEYS, P as BuildsHistoryResult, Pn as RELOAD_PLATFORMS, Pr as WorkspacesSnapshot, Pt as InputRotateParams, Q as DesktopReportSnapshot, Qn as ServerEvent, Qt as LogsEvent, R as Capability, Rn as RecordingSetParams, Rt as InputTouchParams, S as BuildMachineCapacity, Sn as NotificationsListParams, Sr as VIDEO_KEYFRAME, St as FramesSubscribeResult, T as BuildOfferResult, Tn as PROTOCOL_SCHEMA_FILE, Tr as VideoPacket, Tt as HelloResult, U as ControlEndedEvent, Un as ReplayKeyframeParams, Ut as LEGACY_PUSH_EVENTS, V as ControlBeginResult, Vn as ReplayEndedEvent, Vt as KeyModifier, W as ControlPlatform, Wn as ReplayMarker, Wt as LOG_LEVELS, X as DesktopReloadProgressEvent, Xn as SERVER_UPDATE_METHODS, Xt as LogSource, Y as DesktopReloadEndedEvent, Yn as RotateDirection, Yt as LogRecord, Z as DesktopReportEvent, Zn as ServeRoute, Zt as LogsEndedEvent, _ as BuildCapacity, _n as NotificationEntry, _r as UsageSeries, _t as FrameEvent, a as ActionResult, an as MachineHistory, ar as ServerUpdateStatus, at as DeviceFrameEvent, b as BuildJobOutcome, bn as NotificationSuppression, br as VIDEO_FOLDED, bt as FramesSeekParams, c as ArchivedListParams, cn as MachineUsage, cr as SimulatorOptions, ct as DuoFramePose, d as BUILD_REPO_PATTERN, dn as MacosWindowsEvent, dr as SubscribeResult, dt as ErrorEvent, en as MAX_INPUT_TEXT, er as ServerResponse, et as DesktopSettingsWriteParams, f as BUILD_RUBY_VERSION_PATTERN, fn as MemoryPressure, fr as TOUCH_PHASES, ft as FEATURES, g as BuildAttachResult, gn as NOTIFICATION_SUPPRESSIONS, gr as UsageSample, gt as FrameDelayedEvent, h as BuildArtifactResult, hn as NOTIFICATION_LEVELS, hr as UsageHistory, ht as Feature, i as ActionParams, in as MachineEvent, ir as ServerUpdateStartParams, it as DeviceFrameArtwork, j as BuildSyncParams, jn as PushEvent, jr as WorkspacePatch, jt as InputKey, k as BuildProgressEvent, kn as Platform, kr as WorkspaceFiles, kt as InputButton, l as ArchivedListResult, ln as MachineVolume, lr as StatsResult, lt as ERROR_CODES, m as BuildArtifactIdentity, mn as Methods, mr as UnsubscribeParams, mt as FRAME_FPS, n as ARCHIVED_PAGE_LIMIT, nn as METHODS, nr as ServerUpdatePackage, nt as DesktopStopEndedEvent, o as ArchiveDetailParams, on as MachineHistoryParams, or as SettingsResult, ot as DevicePosture, p as BuildAndroidOptions, pn as Method, pr as TouchPhase, pt as FRAME_EDGE, q as DesktopBootstrapChallenge, qn as ReplayTarget, qt as LogFilter, r as ActionName, rn as MachineDetails, rr as ServerUpdateProgress, rt as DesktopStopProgressEvent, s as ArchiveDetailResult, sn as MachineUpdateStatus, sr as SimulatorCommand, st as DeviceUsageSeries, t as ACTIONS, tn as MAX_LOG_TAIL, tr as ServerUpdateOutcome, tt as DesktopSettingsWriteResult, u as BUILD_METHODS, un as MacosWindow, ur as StatusEvent, ut as ErrorCode, v as BuildClientSummary, vn as NotificationEvent, vr as VIDEO_ARTWORK, vt as FrameTarget, w as BuildOfferParams, wn as PLATFORMS, wr as VideoCodec, wt as HelloParams, x as BuildJobParams, xn as NotificationTarget, xr as VIDEO_HEADER_VERSION, xt as FramesSeekResult, y as BuildFile, yn as NotificationLevel, yr as VIDEO_CODECS, yt as FramesLiveParams, z as ClientRequest, zn as RecordingSetResult, zt as InputWindowParams } from "./protocol-D8R_3dkO.mjs";
2
+ export { ACTIONS, ARCHIVED_PAGE_LIMIT, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, ArchivedListParams, ArchivedListResult, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_PATTERN, BuildAndroidOptions, BuildArtifactIdentity, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildStartParams, BuildSyncParams, BuildSyncResult, BuildToolchain, BuildsHistoryResult, CAPABILITIES, CONTROL_END_REASONS, CachedBuildArtifact, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DesktopBootstrapChallenge, DesktopLogFilter, DesktopReloadEndedEvent, DesktopReloadProgressEvent, DesktopReportEvent, DesktopReportSnapshot, DesktopReportTarget, DesktopSettingsWriteParams, DesktopSettingsWriteResult, DesktopStopEndedEvent, DesktopStopProgressEvent, DeviceFrameArtwork, DeviceFrameEvent, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, GradleOffloadInputs, HelloParams, HelloResult, HostedSessionRow, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, MachineEvent, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, 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, WorkspaceEvent, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch, WorkspaceRef, WorkspacesEvent, WorkspacesSnapshot };
package/dist/protocol.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  //#region protocol.ts
2
- const PROTOCOL_VERSION = 1;
2
+ const PROTOCOL_VERSION = 2;
3
3
  const PROTOCOL_SCHEMA_FILE = "protocol.schema.json";
4
4
  /**
5
- * `read` serves state. `control` also runs {@link ACTIONS}; only the Mac grants it. `build` lets another Mac run
6
- * project code here to build for it; it never comes with `read` or `control`, and only the Mac approves it.
5
+ * `read` serves state. `control` also runs {@link ACTIONS}; only the machine grants it. `build` lets another machine run
6
+ * project code here to build for it; it never comes with `read` or `control`, and only the machine approves it.
7
7
  * `device-host` permits a client's native app code in its own hosted sessions, and grants no other capability.
8
8
  */
9
9
  const CAPABILITIES = [
@@ -33,8 +33,17 @@ const CAPABILITIES = [
33
33
  * `hosted-ios-process` and `hosted-android-process` accept native app offers in process mode, with live process readiness and no Metro.
34
34
  * `native-xcode-build` accepts native Xcode provider requests with a separate source-transfer identity.
35
35
  * `native-xcode-toolchain` accepts native Xcode discovery without unrelated platform or Ruby probes.
36
+ * `build-artifact-cache` offers and fetches exact completed native Xcode archives without a build job.
36
37
  * `native-gradle-build` accepts declared Gradle transfer inputs with no reusable artifact identity.
37
38
  * `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
39
+ * `status-views` is `workspaces.subscribe`, `workspace.subscribe`, `machine.subscribe`, `builds.history`,
40
+ * `archived.list`, `worktrees.list` and `maintenance.get`.
41
+ * `desktop-reports` serves cached doctor/GC reports to the authenticated local Desktop connection.
42
+ * `desktop-report-platform` accepts an optional ios/android selector for Desktop doctor reports.
43
+ * `desktop-settings` reads settings for a selected folder on the authenticated local Desktop connection.
44
+ * `desktop-settings-write` mutates settings on the proved local Desktop connection.
45
+ * `desktop-stop` streams private Desktop workspace or slot stop progress and its terminal result.
46
+ * `desktop-reload` streams reload output and its terminal result on the proved local Desktop connection.
38
47
  */
39
48
  const FEATURES = [
40
49
  "physical-ios",
@@ -58,15 +67,42 @@ const FEATURES = [
58
67
  "hosted-ios-process",
59
68
  "native-xcode-build",
60
69
  "native-xcode-toolchain",
70
+ "build-artifact-cache",
61
71
  "native-gradle-build",
62
72
  "hosted-android-data",
63
73
  "hosted-android-process",
64
- "server-update"
74
+ "server-update",
75
+ "status-views",
76
+ "desktop-reports",
77
+ "desktop-report-platform",
78
+ "desktop-settings",
79
+ "desktop-settings-write",
80
+ "desktop-full-logs",
81
+ "desktop-doctor-run",
82
+ "desktop-stop",
83
+ "desktop-reload"
65
84
  ];
66
85
  const METHODS = [
67
86
  "hello",
87
+ "desktop.authenticate",
88
+ "desktop.reports.get",
89
+ "desktop.reports.subscribe",
90
+ "desktop.reports.invalidate",
91
+ "desktop.settings.get",
92
+ "desktop.settings.write",
93
+ "desktop.logs.subscribe",
94
+ "desktop.doctor.run",
95
+ "desktop.stop.subscribe",
96
+ "desktop.reload.subscribe",
68
97
  "route.setup",
69
98
  "status.subscribe",
99
+ "workspaces.subscribe",
100
+ "workspace.subscribe",
101
+ "machine.subscribe",
102
+ "builds.history",
103
+ "archived.list",
104
+ "worktrees.list",
105
+ "maintenance.get",
70
106
  "logs.query",
71
107
  "logs.subscribe",
72
108
  "stats.get",
@@ -106,6 +142,7 @@ const METHODS = [
106
142
  "build.start",
107
143
  "build.cancel",
108
144
  "build.artifact",
145
+ "build.cached-artifact",
109
146
  "build.attach",
110
147
  "device-host.offer",
111
148
  "device-host.reserve",
@@ -142,7 +179,7 @@ const METHODS = [
142
179
  "device-host.sessions.stop"
143
180
  ];
144
181
  /**
145
- * The methods that update this server's `stim-server service`. A Mac this one approved for `build` or
182
+ * The methods that update this server's `stim-server service`. A machine this one approved for `build` or
146
183
  * `device-host` may call them; they need neither `read` nor `control`.
147
184
  */
148
185
  const SERVER_UPDATE_METHODS = [
@@ -157,6 +194,7 @@ const BUILD_METHODS = [
157
194
  "build.start",
158
195
  "build.cancel",
159
196
  "build.artifact",
197
+ "build.cached-artifact",
160
198
  "build.attach"
161
199
  ];
162
200
  /** Methods restricted to explicitly approved device-host clients. */
@@ -191,14 +229,15 @@ const DEVICE_HOST_METHODS = [
191
229
  const PUSH_TOKEN_PATTERN = "^(Expo|Exponent)PushToken\\[[^\\]\\s]{1,256}\\]$";
192
230
  /**
193
231
  * `unauthorized`, `pairing-expired` and `protocol-unsupported` refuse the client until it pairs again or
194
- * updates; `approval-pending` refuses a build client until the Mac approves it; clients retry the others.
232
+ * updates; `unknown-secret` means the server does not hold the pairing token or setup ticket (yet), so a client with a
233
+ * setup ticket retries until setup runs; clients retry the others. A network connection's refusals during the
234
+ * handshake arrive as the WebSocket close reason.
195
235
  */
196
236
  const ERROR_CODES = [
197
237
  "unauthorized",
198
238
  "pairing-expired",
199
239
  "protocol-unsupported",
200
- "approval-pending",
201
- "identity-unavailable",
240
+ "unknown-secret",
202
241
  "bad-request",
203
242
  "unknown-method",
204
243
  "already-authenticated",
@@ -272,6 +311,7 @@ const REPLAY_MARKER_KINDS = [
272
311
  "error",
273
312
  "crash"
274
313
  ];
314
+ const ARCHIVED_PAGE_LIMIT = 50;
275
315
  const VIDEO_HEADER_VERSION = 1;
276
316
  /** The keyframe bit of a {@link VideoPacket}'s flags. */
277
317
  const VIDEO_KEYFRAME = 1;
@@ -354,7 +394,7 @@ const DEVICE_POSTURES = [
354
394
  "half-open",
355
395
  "unfolded"
356
396
  ];
357
- /** A client's repository on a remote Mac: letters, digits, `.`, `_` and `-`, at most 80. */
397
+ /** A client's repository on a remote machine: letters, digits, `.`, `_` and `-`, at most 80. */
358
398
  const BUILD_REPO_PATTERN = "^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$";
359
399
  /** A version-manager Ruby installation name, without path separators. */
360
400
  const BUILD_RUBY_VERSION_PATTERN = "^(?!\\.{1,2}$)[^/\\\\\\u0000\\r\\n]+$";
@@ -396,4 +436,4 @@ const CONTROL_END_REASONS = [
396
436
  "failed"
397
437
  ];
398
438
  //#endregion
399
- export { ACTIONS, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_PATTERN, CAPABILITIES, CONTROL_END_REASONS, DEVICE_HOST_METHODS, DEVICE_POSTURES, ERROR_CODES, FEATURES, FRAME_EDGE, FRAME_FPS, INPUT_BUTTONS, INPUT_KEYS, KEY_MODIFIERS, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, SERVER_UPDATE_METHODS, TOUCH_PHASES, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED };
439
+ export { ACTIONS, ARCHIVED_PAGE_LIMIT, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_PATTERN, CAPABILITIES, CONTROL_END_REASONS, DEVICE_HOST_METHODS, DEVICE_POSTURES, ERROR_CODES, FEATURES, FRAME_EDGE, FRAME_FPS, INPUT_BUTTONS, INPUT_KEYS, KEY_MODIFIERS, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, SERVER_UPDATE_METHODS, TOUCH_PHASES, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED };
@@ -17,7 +17,7 @@ interface RpcIssue {
17
17
  }
18
18
  /** The first schema violation of a result for `method`, or null when it is valid. */
19
19
  declare function rpcResultIssue<M extends PhoneMethod>(method: M, value: unknown): RpcIssue | null;
20
- /** The first schema violation of a phone event, or null when it is valid. */
20
+ /** The first schema violation of a phone event, checked against the schema of its own `event` name, or null when it is valid. */
21
21
  declare function rpcEventIssue(value: unknown): RpcIssue | null;
22
22
  /** The first schema violation of an RPC error object, or null when it is valid. */
23
23
  declare function rpcErrorIssue(value: unknown): RpcIssue | null;