@stim-cli/core 1.20.2 → 1.22.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/README.md +2 -0
- package/dist/{core-BkgfKqJ8.mjs → core-BTsCO1nW.mjs} +444 -60
- package/dist/{index-VDWBflH3.d.mts → index-DKq1j8dw.d.mts} +340 -91
- package/dist/index.d.mts +101 -5
- package/dist/index.mjs +3 -3
- package/dist/keyed-delta-BBoOeR2J.mjs +289 -0
- package/dist/noise-DYIbymAJ.d.mts +100 -0
- package/dist/noise-session.d.mts +164 -0
- package/dist/noise-session.mjs +402 -0
- package/dist/noise.d.mts +2 -0
- package/dist/noise.mjs +393 -0
- package/dist/oversight.mjs +16 -6
- package/dist/{ownership-claim-O31Y5iIb.mjs → ownership-claim-DHUs_Dir.mjs} +1 -1
- package/dist/{ownership-claim-Xxxr9MPp.d.mts → ownership-claim-RY3fbm1D.d.mts} +3 -2
- package/dist/ownership-claim.d.mts +2 -2
- package/dist/ownership-claim.mjs +2 -2
- package/dist/phone-protocol.d.mts +85 -16
- package/dist/phone-protocol.mjs +2 -2
- package/dist/{process-identity-BTyww2Xj.d.mts → process-identity-DVNGpF5c.d.mts} +1 -1
- package/dist/process-identity.d.mts +1 -1
- package/dist/process-identity.mjs +3 -1
- package/dist/{protocol-pH632kA3.d.mts → protocol-BjJt4ghB.d.mts} +632 -65
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +81 -10
- package/dist/receive-protocol.d.mts +1 -1
- package/dist/receive-protocol.mjs +20163 -14469
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +1261 -208
- package/dist/toolchain.d.mts +64 -0
- package/dist/toolchain.mjs +326 -0
- package/dist/workspace-link.d.mts +16 -0
- package/dist/workspace-link.mjs +50 -0
- package/package.json +21 -1
- package/dist/status-derived-C13g6eQt.mjs +0 -151
package/dist/protocol.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
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,
|
|
1
|
+
import { $ as DesktopGcEndedEvent, $n as QuietHours, $r as WorkspacesEvent, $t as InputScrollParams, A as BuildProgressEvent, An as MemoryPressure, Ar as StatusEvent, At as FEATURES, B as CachedBuildArtifact, Bn as NotificationsListParams, Br as VIDEO_FOLDED, Bt as FramesSubscribeResult, C as BuildMachineCapacity, Cn as MachineHistory, Cr as ServerUpdateProgress, Ct as DeviceFrameEvent, D as BuildPlanParams, Dn as MachineVolume, Dr as SimulatorCommand, Dt as ERROR_CODES, E as BuildOfferResult, En as MachineUsage, Er as SettingsResult, Et as DuoFramePose, F as BuildSyncResult, Fn as NotificationEntry, Fr as UsageHistory, Ft as FrameEvent, G as ControlEndParams, Gn as PUSH_EVENTS, Gr as VideoPacket, Gt as INPUT_BUTTONS, H as ClientRequest, Hn as PLATFORMS, Hr as VIDEO_KEYFRAME, Ht as HelloParams, I as BuildToolchain, In as NotificationEvent, Ir as UsageSample, It as FrameTarget, J as DEVICE_HOST_METHODS, Jn as PlatformBuildOptions, Jr as WorkspaceFile, Jt as InputButtonParams, K as ControlEndedEvent, Kn as PUSH_TOKEN_PATTERN, Kr as WorkspaceDiff, Kt as INPUT_KEYS, L as BuildsHistoryResult, Ln as NotificationLevel, Lr as UsageSeries, Lt as FramesLiveParams, M as BuildStartParams, Mn as Methods, Mr as TOUCH_PHASES, Mt as FRAME_FPS, N as BuildSwiftpmArtifactQuery, Nn as NOTIFICATION_LEVELS, Nr as TouchPhase, Nt as Feature, O as BuildPlanResult, On as MacosWindow, Or as SimulatorOptions, Ot as ErrorCode, P as BuildSyncParams, Pn as NOTIFICATION_SUPPRESSIONS, Pr as UnsubscribeParams, Pt as FrameDelayedEvent, Q as DesktopBuildProgressEvent, Qn as PushRegisterParams, Qr as WorkspaceRef, Qt as InputRotateParams, R as CAPABILITIES, Rn as NotificationSuppression, Rr as VIDEO_ARTWORK, Rt as FramesSeekParams, S as BuildJobParams, Sn as MachineEvent, Sr as ServerUpdatePackage, St as DeviceFrameArtwork, T as BuildOfferParams, Tn as MachineUpdateStatus, Tr as ServerUpdateStatus, Tt as DeviceUsageSeries, U as ControlBeginParams, Un as PROTOCOL_SCHEMA_FILE, Ur as VIDEO_UNFOLDED, Ut as HelloResult, V as Capability, Vn as NotificationsListResult, Vr as VIDEO_HEADER_VERSION, Vt as GradleOffloadInputs, W as ControlBeginResult, Wn as PROTOCOL_VERSION, Wr as VideoCodec, Wt as HostedSessionRow, X as DesktopBootstrapChallenge, Xn as ProtocolError, Xr as WorkspaceParams, Xt as InputKeyParams, Y as DEVICE_POSTURES, Yn as PlatformRunOptions, Yr as WorkspaceFiles, Yt as InputKey, Z as DesktopBuildEndedEvent, Zn as PushEvent, Zr as WorkspacePatch, Zt as InputPostureParams, _ as BuildCapacity, _n as LogsQueryResult, _r as ServeRoute, _t as DesktopStopProgressEvent, a as ActionResult, an as KeyModifier, ar as RecordingSetResult, at as DesktopReloadEndedEvent, b as BuildGradleArtifactQuery, bn as METHODS, br as ServerResponse, bt as DesktopWorktreeWarmEndedEvent, c as ArchivedListParams, cn as LOG_LEVELS, cr as ReplayKeyframe, ct as DesktopReportSnapshot, d as BUILD_REPO_PATTERN, dn as LogFilter, dr as ReplayRange, dt as DesktopRunProgressEvent, ei as WorkspacesSnapshot, en as InputSimulatorParams, er as RELOAD_PLATFORMS, et as DesktopGcProgressEvent, f as BUILD_RUBY_VERSION_PATTERN, fn as LogLevel, fr as ReplaySpan, ft as DesktopSettingsWriteParams, g as BuildAttachResult, gn as LogsEvent, gr as SERVER_UPDATE_METHODS, gt as DesktopStopEndedEvent, h as BuildArtifactResult, hn as LogsEndedEvent, hr as RotateDirection, ht as DesktopStartProgressEvent, i as ActionParams, in as KEY_MODIFIERS, ir as RecordingSetParams, it as DesktopPlanRefusal, j as BuildReactNativeArtifactQuery, jn as Method, jr as SubscribeResult, jt as FRAME_EDGE, k as BuildPlatform, kn as MacosWindowsEvent, kr as StatsResult, kt as ErrorEvent, l as ArchivedListResult, ln as LOG_SOURCES, lr as ReplayKeyframeParams, lt as DesktopReportTarget, m as BuildArtifactIdentity, mn as LogSource, mr as RequestId, mt as DesktopStartEndedEvent, n as ARCHIVED_PAGE_LIMIT, nn as InputTouchParams, nr as REPLAY_RATES, nt as DesktopMachineAccessEndedEvent, o as ArchiveDetailParams, on as KeyframeParams, or as ReloadPlatform, ot as DesktopReloadProgressEvent, p as BuildAndroidOptions, pn as LogRecord, pr as ReplayTarget, pt as DesktopSettingsWriteResult, q as ControlPlatform, qn as Platform, qr as WorkspaceEvent, qt as InputButton, r as ActionName, rn as InputWindowParams, rr as ROTATE_DIRECTIONS, rt as DesktopMachineAccessProgressEvent, s as ArchiveDetailResult, sn as LEGACY_PUSH_EVENTS, sr as ReplayEndedEvent, st as DesktopReportEvent, t as ACTIONS, tn as InputTextParams, tr as REPLAY_MARKER_KINDS, tt as DesktopLogFilter, u as BUILD_METHODS, un as LegacyPushEvent, ur as ReplayMarker, ut as DesktopRunEndedEvent, v as BuildClientSummary, vn as MAX_INPUT_TEXT, vr as ServerEvent, vt as DesktopWorktreeRemoveEndedEvent, w as BuildMachineReport, wn as MachineHistoryParams, wr as ServerUpdateStartParams, wt as DevicePosture, x as BuildJobOutcome, xn as MachineDetails, xr as ServerUpdateOutcome, xt as DesktopWorktreeWarmProgressEvent, y as BuildFile, yn as MAX_LOG_TAIL, yr as ServerMessage, yt as DesktopWorktreeRemoveProgressEvent, z as CONTROL_END_REASONS, zn as NotificationTarget, zr as VIDEO_CODECS, zt as FramesSeekResult } from "./protocol-BjJt4ghB.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, BuildGradleArtifactQuery, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildReactNativeArtifactQuery, BuildStartParams, BuildSwiftpmArtifactQuery, BuildSyncParams, BuildSyncResult, BuildToolchain, BuildsHistoryResult, CAPABILITIES, CONTROL_END_REASONS, CachedBuildArtifact, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DesktopBootstrapChallenge, DesktopBuildEndedEvent, DesktopBuildProgressEvent, DesktopGcEndedEvent, DesktopGcProgressEvent, DesktopLogFilter, DesktopMachineAccessEndedEvent, DesktopMachineAccessProgressEvent, DesktopPlanRefusal, DesktopReloadEndedEvent, DesktopReloadProgressEvent, DesktopReportEvent, DesktopReportSnapshot, DesktopReportTarget, DesktopRunEndedEvent, DesktopRunProgressEvent, DesktopSettingsWriteParams, DesktopSettingsWriteResult, DesktopStartEndedEvent, DesktopStartProgressEvent, DesktopStopEndedEvent, DesktopStopProgressEvent, DesktopWorktreeRemoveEndedEvent, DesktopWorktreeRemoveProgressEvent, DesktopWorktreeWarmEndedEvent, DesktopWorktreeWarmProgressEvent, DeviceFrameArtwork, DeviceFrameEvent, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, GradleOffloadInputs, HelloParams, HelloResult, HostedSessionRow, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, MachineEvent, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, Platform, PlatformBuildOptions, PlatformRunOptions, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, 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 =
|
|
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
|
|
6
|
-
* project code here to build for it; it never comes with `read` or `control`, and only the
|
|
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,26 @@ 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.
|
|
38
|
+
* `native-gradle-artifact-cache` applies caller cache policy to verified worker-scoped APK reuse.
|
|
39
|
+
* `react-native-peer-cache` offers development archives with build-proven fingerprints, options and toolchains.
|
|
40
|
+
* `native-gradle-peer-cache` queries and fetches completed APKs after rechecking worker-private inputs.
|
|
41
|
+
* `swiftpm-peer-cache` queries and fetches completed SwiftPM apps after rechecking worker-private inputs.
|
|
42
|
+
* `build-dependency-cache` checks dependency warmth against the requested project and install selection.
|
|
37
43
|
* `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
|
|
44
|
+
* `status-views` is `workspaces.subscribe`, `workspace.subscribe`, `machine.subscribe`, `builds.history`,
|
|
45
|
+
* `archived.list`, `worktrees.list` and `maintenance.get`.
|
|
46
|
+
* `desktop-reports` serves cached doctor/GC reports to the authenticated local Desktop connection.
|
|
47
|
+
* `desktop-report-platform` accepts an optional ios/android selector for Desktop doctor reports.
|
|
48
|
+
* `desktop-settings` reads settings for a selected folder on the authenticated local Desktop connection.
|
|
49
|
+
* `desktop-settings-write` mutates settings on the proved local Desktop connection.
|
|
50
|
+
* `desktop-stop` streams private Desktop workspace or slot stop progress and its terminal result.
|
|
51
|
+
* `desktop-start` streams dev-server startup progress and its result on the proved local Desktop connection.
|
|
52
|
+
* `desktop-run` streams platform build/install/launch progress and facts on the proved local Desktop connection.
|
|
53
|
+
* `desktop-build` streams build-only progress and artifact facts on the proved local Desktop connection.
|
|
54
|
+
* `desktop-plan` reads next-build reports for selected folders on the proved local Desktop connection.
|
|
55
|
+
* `desktop-reload` streams reload output and its terminal result on the proved local Desktop connection.
|
|
38
56
|
*/
|
|
39
57
|
const FEATURES = [
|
|
40
58
|
"physical-ios",
|
|
@@ -58,15 +76,64 @@ const FEATURES = [
|
|
|
58
76
|
"hosted-ios-process",
|
|
59
77
|
"native-xcode-build",
|
|
60
78
|
"native-xcode-toolchain",
|
|
79
|
+
"build-artifact-cache",
|
|
61
80
|
"native-gradle-build",
|
|
81
|
+
"native-gradle-artifact-cache",
|
|
82
|
+
"native-gradle-peer-cache",
|
|
83
|
+
"react-native-peer-cache",
|
|
84
|
+
"swiftpm-peer-cache",
|
|
85
|
+
"build-dependency-cache",
|
|
62
86
|
"hosted-android-data",
|
|
63
87
|
"hosted-android-process",
|
|
64
|
-
"server-update"
|
|
88
|
+
"server-update",
|
|
89
|
+
"status-views",
|
|
90
|
+
"desktop-reports",
|
|
91
|
+
"desktop-report-platform",
|
|
92
|
+
"desktop-settings",
|
|
93
|
+
"desktop-settings-write",
|
|
94
|
+
"desktop-full-logs",
|
|
95
|
+
"desktop-doctor-run",
|
|
96
|
+
"desktop-machine-access",
|
|
97
|
+
"desktop-stop",
|
|
98
|
+
"desktop-reload",
|
|
99
|
+
"desktop-start",
|
|
100
|
+
"desktop-run",
|
|
101
|
+
"desktop-build",
|
|
102
|
+
"desktop-gc",
|
|
103
|
+
"desktop-worktree-remove",
|
|
104
|
+
"desktop-worktree-warm",
|
|
105
|
+
"desktop-plan"
|
|
65
106
|
];
|
|
66
107
|
const METHODS = [
|
|
67
108
|
"hello",
|
|
109
|
+
"desktop.authenticate",
|
|
110
|
+
"desktop.reports.get",
|
|
111
|
+
"desktop.reports.subscribe",
|
|
112
|
+
"desktop.reports.invalidate",
|
|
113
|
+
"desktop.settings.get",
|
|
114
|
+
"desktop.settings.write",
|
|
115
|
+
"desktop.logs.subscribe",
|
|
116
|
+
"desktop.doctor.run",
|
|
117
|
+
"desktop.machine-access.subscribe",
|
|
118
|
+
"desktop.stop.subscribe",
|
|
119
|
+
"desktop.reload.subscribe",
|
|
120
|
+
"desktop.start.subscribe",
|
|
121
|
+
"desktop.run.subscribe",
|
|
122
|
+
"desktop.build.subscribe",
|
|
123
|
+
"desktop.gc.subscribe",
|
|
124
|
+
"desktop.worktree.remove.subscribe",
|
|
125
|
+
"desktop.worktree.warm.subscribe",
|
|
126
|
+
"desktop.plan.get",
|
|
127
|
+
"desktop.plan.cancel",
|
|
68
128
|
"route.setup",
|
|
69
129
|
"status.subscribe",
|
|
130
|
+
"workspaces.subscribe",
|
|
131
|
+
"workspace.subscribe",
|
|
132
|
+
"machine.subscribe",
|
|
133
|
+
"builds.history",
|
|
134
|
+
"archived.list",
|
|
135
|
+
"worktrees.list",
|
|
136
|
+
"maintenance.get",
|
|
70
137
|
"logs.query",
|
|
71
138
|
"logs.subscribe",
|
|
72
139
|
"stats.get",
|
|
@@ -106,6 +173,7 @@ const METHODS = [
|
|
|
106
173
|
"build.start",
|
|
107
174
|
"build.cancel",
|
|
108
175
|
"build.artifact",
|
|
176
|
+
"build.cached-artifact",
|
|
109
177
|
"build.attach",
|
|
110
178
|
"device-host.offer",
|
|
111
179
|
"device-host.reserve",
|
|
@@ -142,7 +210,7 @@ const METHODS = [
|
|
|
142
210
|
"device-host.sessions.stop"
|
|
143
211
|
];
|
|
144
212
|
/**
|
|
145
|
-
* The methods that update this server's `stim-server service`. A
|
|
213
|
+
* The methods that update this server's `stim-server service`. A machine this one approved for `build` or
|
|
146
214
|
* `device-host` may call them; they need neither `read` nor `control`.
|
|
147
215
|
*/
|
|
148
216
|
const SERVER_UPDATE_METHODS = [
|
|
@@ -157,6 +225,7 @@ const BUILD_METHODS = [
|
|
|
157
225
|
"build.start",
|
|
158
226
|
"build.cancel",
|
|
159
227
|
"build.artifact",
|
|
228
|
+
"build.cached-artifact",
|
|
160
229
|
"build.attach"
|
|
161
230
|
];
|
|
162
231
|
/** Methods restricted to explicitly approved device-host clients. */
|
|
@@ -191,14 +260,15 @@ const DEVICE_HOST_METHODS = [
|
|
|
191
260
|
const PUSH_TOKEN_PATTERN = "^(Expo|Exponent)PushToken\\[[^\\]\\s]{1,256}\\]$";
|
|
192
261
|
/**
|
|
193
262
|
* `unauthorized`, `pairing-expired` and `protocol-unsupported` refuse the client until it pairs again or
|
|
194
|
-
* updates; `
|
|
263
|
+
* updates; `unknown-secret` means the server does not hold the pairing token or setup ticket (yet), so a client with a
|
|
264
|
+
* setup ticket retries until setup runs; clients retry the others. A network connection's refusals during the
|
|
265
|
+
* handshake arrive as the WebSocket close reason.
|
|
195
266
|
*/
|
|
196
267
|
const ERROR_CODES = [
|
|
197
268
|
"unauthorized",
|
|
198
269
|
"pairing-expired",
|
|
199
270
|
"protocol-unsupported",
|
|
200
|
-
"
|
|
201
|
-
"identity-unavailable",
|
|
271
|
+
"unknown-secret",
|
|
202
272
|
"bad-request",
|
|
203
273
|
"unknown-method",
|
|
204
274
|
"already-authenticated",
|
|
@@ -272,6 +342,7 @@ const REPLAY_MARKER_KINDS = [
|
|
|
272
342
|
"error",
|
|
273
343
|
"crash"
|
|
274
344
|
];
|
|
345
|
+
const ARCHIVED_PAGE_LIMIT = 50;
|
|
275
346
|
const VIDEO_HEADER_VERSION = 1;
|
|
276
347
|
/** The keyframe bit of a {@link VideoPacket}'s flags. */
|
|
277
348
|
const VIDEO_KEYFRAME = 1;
|
|
@@ -354,7 +425,7 @@ const DEVICE_POSTURES = [
|
|
|
354
425
|
"half-open",
|
|
355
426
|
"unfolded"
|
|
356
427
|
];
|
|
357
|
-
/** A client's repository on a remote
|
|
428
|
+
/** A client's repository on a remote machine: letters, digits, `.`, `_` and `-`, at most 80. */
|
|
358
429
|
const BUILD_REPO_PATTERN = "^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$";
|
|
359
430
|
/** A version-manager Ruby installation name, without path separators. */
|
|
360
431
|
const BUILD_RUBY_VERSION_PATTERN = "^(?!\\.{1,2}$)[^/\\\\\\u0000\\r\\n]+$";
|
|
@@ -396,4 +467,4 @@ const CONTROL_END_REASONS = [
|
|
|
396
467
|
"failed"
|
|
397
468
|
];
|
|
398
469
|
//#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 };
|
|
470
|
+
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;
|