@stim-cli/core 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DPo8Bexj.d.mts → index-DPp8a4-9.d.mts} +133 -20
- package/dist/phone-protocol.d.mts +20 -5
- package/dist/{protocol-B0KcaUee.d.mts → protocol-CfT6YiG_.d.mts} +54 -5
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +10 -2
- package/dist/receive-protocol.mjs +3838 -3343
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +274 -48
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $i as HostedAppLaunch, Ci as HostedDevicePhase, Di as HostedDeviceSession, Nn as StatusPayload, Pc as NdjsonRecord, Si as HostedDeviceOfferRequest, Ti as HostedDeviceRequest, Wt as BuildHistoryEntry, Xt as BuildPlanPayload, d as HostedLogsPage, da as HostedAppDelivery, pa as HostedAppOffer, u as HostedLogsCursor, wi as HostedDevicePlatform, xi as HostedDeviceOffer } from "./index-DPp8a4-9.mjs";
|
|
2
2
|
//#region protocol.d.ts
|
|
3
3
|
declare const PROTOCOL_VERSION = 1;
|
|
4
4
|
declare const PROTOCOL_SCHEMA_FILE = "protocol.schema.json";
|
|
@@ -16,8 +16,9 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
16
16
|
* the slot's Stim-owned device instead. `notifications` is `notifications.list` and the `notification` event.
|
|
17
17
|
* `macos-hosted` relays `frames.subscribe` and control for a workspace whose macOS app
|
|
18
18
|
* `stim macos --remote` placed on another Mac.
|
|
19
|
-
* `ios-hosted`
|
|
19
|
+
* `ios-hosted` and `android-hosted` relay hosted native frames and control by workspace slot through the client's server.
|
|
20
20
|
* `hosted-ios-agent` adds session-scoped iOS agent-device grants to installed app launch/attach results.
|
|
21
|
+
* `hosted-android-agent` adds serial-pinned Android agent-device grants to installed app and session attach results.
|
|
21
22
|
* `macos-windows` is the `macos-windows` event on a macOS `frames.subscribe`, naming the window capture follows
|
|
22
23
|
* and the app's other windows.
|
|
23
24
|
* `hosted-congestion` is `device-host.frames.congested`, which lowers the bitrate of a hosted video subscription
|
|
@@ -25,11 +26,12 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
25
26
|
* `macos-window-select` is `input.window`, which pins the view to a macOS app window named by `macos-windows`,
|
|
26
27
|
* bringing it to the front, or with null resumes following the front window.
|
|
27
28
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
29
|
+
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
28
30
|
* `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
|
|
29
31
|
*/
|
|
30
|
-
declare const FEATURES: readonly ["physical-ios", "physical-android", "notifications", "macos-window", "macos-windows", "macos-window-select", "macos-window-control", "macos-keyboard-extended", "device-frames", "macos-hosted", "ios-hosted", "hosted-ios-agent", "duo-frames", "workspace-diff", "hosted-congestion", "hosted-ios-data", "server-update"];
|
|
32
|
+
declare const FEATURES: readonly ["physical-ios", "physical-android", "notifications", "macos-window", "macos-windows", "macos-window-select", "macos-window-control", "macos-keyboard-extended", "device-frames", "macos-hosted", "ios-hosted", "android-hosted", "hosted-ios-agent", "hosted-android-agent", "duo-frames", "workspace-diff", "hosted-congestion", "hosted-ios-data", "hosted-android-data", "server-update"];
|
|
31
33
|
type Feature = (typeof FEATURES)[number];
|
|
32
|
-
declare const METHODS: readonly ["hello", "route.setup", "status.subscribe", "logs.query", "logs.subscribe", "stats.get", "settings.get", "workspace.files", "workspace.diff", "frames.subscribe", "frames.keyframe", "frames.seek", "frames.live", "replay.range", "replay.keyframe", "recording.set", "build.plan", "machine.get", "machine.history", "machine.details", "unsubscribe", "action", "control.begin", "control.end", "input.touch", "input.text", "input.button", "input.rotate", "input.posture", "input.simulator", "input.scroll", "input.key", "input.window", "push.register", "push.unregister", "notifications.list", "build.offer", "build.sync", "build.start", "build.cancel", "build.artifact", "build.attach", "device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.logs.query", "device-host.metro.open", "device-host.metro.close", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window", "server.update.status", "server.update.start", "server.update.chunk", "machines.update.start", "machines.update.status"];
|
|
34
|
+
declare const METHODS: readonly ["hello", "route.setup", "status.subscribe", "logs.query", "logs.subscribe", "stats.get", "settings.get", "workspace.files", "workspace.diff", "frames.subscribe", "frames.keyframe", "frames.seek", "frames.live", "replay.range", "archive.detail", "replay.keyframe", "recording.set", "build.plan", "machine.get", "machine.history", "machine.details", "unsubscribe", "action", "control.begin", "control.end", "input.touch", "input.text", "input.button", "input.rotate", "input.posture", "input.simulator", "input.scroll", "input.key", "input.window", "push.register", "push.unregister", "notifications.list", "build.offer", "build.sync", "build.start", "build.cancel", "build.artifact", "build.attach", "device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.logs.query", "device-host.metro.open", "device-host.metro.close", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window", "server.update.status", "server.update.start", "server.update.chunk", "machines.update.start", "machines.update.status", "device-host.sessions", "device-host.sessions.stop"];
|
|
33
35
|
/**
|
|
34
36
|
* The methods that update this server's `stim-server service`. A Mac this one approved for `build` or
|
|
35
37
|
* `device-host` may call them; they need neither `read` nor `control`.
|
|
@@ -273,6 +275,19 @@ interface ReplayRange {
|
|
|
273
275
|
spans: ReplaySpan[];
|
|
274
276
|
markers: ReplayMarker[];
|
|
275
277
|
}
|
|
278
|
+
/** An archived[].id from status; the original workspace is not required. */
|
|
279
|
+
interface ArchiveDetailParams {
|
|
280
|
+
archive: string;
|
|
281
|
+
}
|
|
282
|
+
/** Live-shaped build history and closed recording spans for every retained archive device slot. */
|
|
283
|
+
interface ArchiveDetailResult {
|
|
284
|
+
builds: Partial<Record<"ios" | "android", BuildHistoryEntry[]>>;
|
|
285
|
+
recordings: {
|
|
286
|
+
platform: "ios" | "android" | "web";
|
|
287
|
+
slot: string;
|
|
288
|
+
spans: ReplaySpan[];
|
|
289
|
+
}[];
|
|
290
|
+
}
|
|
276
291
|
/** A device slot, as {@link ReplayTarget} names it, and a time in epoch milliseconds on the Mac's clock. */
|
|
277
292
|
interface ReplayKeyframeParams extends ReplayTarget {
|
|
278
293
|
at: number;
|
|
@@ -927,7 +942,36 @@ interface MachineUpdateStatus {
|
|
|
927
942
|
error: string | null;
|
|
928
943
|
} | null;
|
|
929
944
|
}
|
|
945
|
+
interface HostedSessionRow {
|
|
946
|
+
id: string;
|
|
947
|
+
client: {
|
|
948
|
+
id: string;
|
|
949
|
+
name: string;
|
|
950
|
+
};
|
|
951
|
+
platform: HostedDevicePlatform;
|
|
952
|
+
device: string | null;
|
|
953
|
+
app: string | null;
|
|
954
|
+
state: HostedDevicePhase;
|
|
955
|
+
parked: boolean;
|
|
956
|
+
since: string;
|
|
957
|
+
workspace: string;
|
|
958
|
+
}
|
|
930
959
|
interface Methods {
|
|
960
|
+
"device-host.sessions": {
|
|
961
|
+
params?: Record<string, never>;
|
|
962
|
+
result: {
|
|
963
|
+
sessions: HostedSessionRow[];
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
"device-host.sessions.stop": {
|
|
967
|
+
params: {
|
|
968
|
+
session: string;
|
|
969
|
+
};
|
|
970
|
+
result: {
|
|
971
|
+
id: string;
|
|
972
|
+
state: "stopping" | "stopped";
|
|
973
|
+
};
|
|
974
|
+
};
|
|
931
975
|
"machines.update.start": {
|
|
932
976
|
params: {
|
|
933
977
|
machine: string;
|
|
@@ -1060,6 +1104,7 @@ interface Methods {
|
|
|
1060
1104
|
session: string;
|
|
1061
1105
|
gatewayPort: number;
|
|
1062
1106
|
secret: string;
|
|
1107
|
+
clientMetroPort?: number;
|
|
1063
1108
|
};
|
|
1064
1109
|
result: {
|
|
1065
1110
|
port: number;
|
|
@@ -1145,6 +1190,10 @@ interface Methods {
|
|
|
1145
1190
|
params: ReplayTarget;
|
|
1146
1191
|
result: ReplayRange;
|
|
1147
1192
|
};
|
|
1193
|
+
"archive.detail": {
|
|
1194
|
+
params: ArchiveDetailParams;
|
|
1195
|
+
result: ArchiveDetailResult;
|
|
1196
|
+
};
|
|
1148
1197
|
"replay.keyframe": {
|
|
1149
1198
|
params: ReplayKeyframeParams;
|
|
1150
1199
|
result: ReplayKeyframe;
|
|
@@ -1462,4 +1511,4 @@ type ServeRoute = {
|
|
|
1462
1511
|
port: number;
|
|
1463
1512
|
};
|
|
1464
1513
|
//#endregion
|
|
1465
|
-
export {
|
|
1514
|
+
export { FRAME_FPS as $, UsageHistory as $n, NOTIFICATION_SUPPRESSIONS as $t, CAPABILITIES as A, ReplaySpan as An, LegacyPushEvent as At, DEVICE_POSTURES as B, ServerUpdatePackage as Bn, METHODS as Bt, BuildPlatform as C, RecordingSetResult as Cn, InputWindowParams as Ct, BuildSyncParams as D, ReplayKeyframeParams as Dn, LEGACY_PUSH_EVENTS as Dt, BuildStartParams as E, ReplayKeyframe as En, KeyframeParams as Et, ControlBeginResult as F, ServeRoute as Fn, LogsEndedEvent as Ft, DevicePosture as G, SimulatorCommand as Gn, MachineUsage as Gt, DeviceFrameArtwork as H, ServerUpdateStartParams as Hn, MachineHistory as Ht, ControlEndParams as I, ServerEvent as In, LogsEvent as It, ERROR_CODES as J, StatusEvent as Jn, MacosWindowsEvent as Jt, DeviceUsageSeries as K, SimulatorOptions as Kn, MachineVolume as Kt, ControlEndedEvent as L, ServerMessage as Ln, LogsQueryResult as Lt, Capability as M, RequestId as Mn, LogLevel as Mt, ClientRequest as N, RotateDirection as Nn, LogRecord as Nt, BuildSyncResult as O, ReplayMarker as On, LOG_LEVELS as Ot, ControlBeginParams as P, SERVER_UPDATE_METHODS as Pn, LogSource as Pt, FRAME_EDGE as Q, UnsubscribeParams as Qn, NOTIFICATION_LEVELS as Qt, ControlPlatform as R, ServerResponse as Rn, MAX_INPUT_TEXT as Rt, BuildPlanResult as S, RecordingSetParams as Sn, InputTouchParams as St, BuildRequestAuth as T, ReplayEndedEvent as Tn, KeyModifier as Tt, DeviceFrameEvent as U, ServerUpdateStatus as Un, MachineHistoryParams as Ut, DeviceAuth as V, ServerUpdateProgress as Vn, MachineDetails as Vt, DeviceHostRequestAuth as W, SettingsResult as Wn, MachineUpdateStatus as Wt, ErrorEvent as X, TOUCH_PHASES as Xn, Method as Xt, ErrorCode as Y, SubscribeResult as Yn, MemoryPressure as Yt, FEATURES as Z, TouchPhase as Zn, Methods as Zt, BuildMachineCapacity as _, QuietHours as _n, InputPostureParams as _t, ArchiveDetailParams as a, NotificationsListParams as an, VIDEO_HEADER_VERSION as ar, FramesSeekParams as at, BuildOfferResult as b, REPLAY_RATES as bn, InputSimulatorParams as bt, BUILD_REPO_PATTERN as c, PROTOCOL_SCHEMA_FILE as cn, VideoCodec as cr, HelloParams as ct, BuildAttachResult as d, PUSH_TOKEN_PATTERN as dn, WorkspaceFile as dr, INPUT_BUTTONS as dt, NotificationEntry as en, UsageSample as er, Feature as et, BuildCapacity as f, PairingAuth as fn, WorkspaceFiles as fr, INPUT_KEYS as ft, BuildJobParams as g, PushRegisterParams as gn, InputKeyParams as gt, BuildJobOutcome as h, PushEvent as hn, InputKey as ht, ActionResult as i, NotificationTarget as in, VIDEO_FOLDED as ir, FramesLiveParams as it, CONTROL_END_REASONS as j, ReplayTarget as jn, LogFilter as jt, BuildToolchain as k, ReplayRange as kn, LOG_SOURCES as kt, BuildAndroidOptions as l, PROTOCOL_VERSION as ln, VideoPacket as lr, HelloResult as lt, BuildFile as m, ProtocolError as mn, WorkspacePatch as mr, InputButtonParams as mt, ActionName as n, NotificationLevel as nn, VIDEO_ARTWORK as nr, FrameEvent as nt, ArchiveDetailResult as o, NotificationsListResult as on, VIDEO_KEYFRAME as or, FramesSeekResult as ot, BuildClientSummary as p, Platform as pn, WorkspaceParams as pr, InputButton as pt, DuoFramePose as q, StatsResult as qn, MacosWindow as qt, ActionParams as r, NotificationSuppression as rn, VIDEO_CODECS as rr, FrameTarget as rt, BUILD_METHODS as s, PLATFORMS as sn, VIDEO_UNFOLDED as sr, FramesSubscribeResult as st, ACTIONS as t, NotificationEvent as tn, UsageSeries as tr, FrameDelayedEvent as tt, BuildArtifactResult as u, PUSH_EVENTS as un, WorkspaceDiff as ur, HostedSessionRow as ut, BuildMachineReport as v, RELOAD_PLATFORMS as vn, InputRotateParams as vt, BuildProgressEvent as w, ReloadPlatform as wn, KEY_MODIFIERS as wt, BuildPlanParams as x, ROTATE_DIRECTIONS as xn, InputTextParams as xt, BuildOfferParams as y, REPLAY_MARKER_KINDS as yn, InputScrollParams as yt, DEVICE_HOST_METHODS as z, ServerUpdateOutcome as zn, MAX_LOG_TAIL as zt };
|
package/dist/protocol.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ACTIONS, ActionName, ActionParams, ActionResult, BUILD_METHODS, BUILD_REPO_PATTERN, BuildAndroidOptions, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildRequestAuth, BuildStartParams, BuildSyncParams, BuildSyncResult, BuildToolchain, CAPABILITIES, CONTROL_END_REASONS, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DeviceAuth, DeviceFrameArtwork, DeviceFrameEvent, DeviceHostRequestAuth, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, HelloParams, HelloResult, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, PairingAuth, Platform, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, ReplayEndedEvent, ReplayKeyframe, ReplayKeyframeParams, ReplayMarker, ReplayRange, ReplaySpan, ReplayTarget, RequestId, RotateDirection, SERVER_UPDATE_METHODS, ServeRoute, ServerEvent, ServerMessage, ServerResponse, ServerUpdateOutcome, ServerUpdatePackage, ServerUpdateProgress, ServerUpdateStartParams, ServerUpdateStatus, SettingsResult, SimulatorCommand, SimulatorOptions, StatsResult, StatusEvent, SubscribeResult, TOUCH_PHASES, TouchPhase, UnsubscribeParams, UsageHistory, UsageSample, UsageSeries, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED, VideoCodec, VideoPacket, WorkspaceDiff, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch };
|
|
1
|
+
import { $ as FRAME_FPS, $n as UsageHistory, $t as NOTIFICATION_SUPPRESSIONS, A as CAPABILITIES, An as ReplaySpan, At as LegacyPushEvent, B as DEVICE_POSTURES, Bn as ServerUpdatePackage, Bt as METHODS, C as BuildPlatform, Cn as RecordingSetResult, Ct as InputWindowParams, D as BuildSyncParams, Dn as ReplayKeyframeParams, Dt as LEGACY_PUSH_EVENTS, E as BuildStartParams, En as ReplayKeyframe, Et as KeyframeParams, F as ControlBeginResult, Fn as ServeRoute, Ft as LogsEndedEvent, G as DevicePosture, Gn as SimulatorCommand, Gt as MachineUsage, H as DeviceFrameArtwork, Hn as ServerUpdateStartParams, Ht as MachineHistory, I as ControlEndParams, In as ServerEvent, It as LogsEvent, J as ERROR_CODES, Jn as StatusEvent, Jt as MacosWindowsEvent, K as DeviceUsageSeries, Kn as SimulatorOptions, Kt as MachineVolume, L as ControlEndedEvent, Ln as ServerMessage, Lt as LogsQueryResult, M as Capability, Mn as RequestId, Mt as LogLevel, N as ClientRequest, Nn as RotateDirection, Nt as LogRecord, O as BuildSyncResult, On as ReplayMarker, Ot as LOG_LEVELS, P as ControlBeginParams, Pn as SERVER_UPDATE_METHODS, Pt as LogSource, Q as FRAME_EDGE, Qn as UnsubscribeParams, Qt as NOTIFICATION_LEVELS, R as ControlPlatform, Rn as ServerResponse, Rt as MAX_INPUT_TEXT, S as BuildPlanResult, Sn as RecordingSetParams, St as InputTouchParams, T as BuildRequestAuth, Tn as ReplayEndedEvent, Tt as KeyModifier, U as DeviceFrameEvent, Un as ServerUpdateStatus, Ut as MachineHistoryParams, V as DeviceAuth, Vn as ServerUpdateProgress, Vt as MachineDetails, W as DeviceHostRequestAuth, Wn as SettingsResult, Wt as MachineUpdateStatus, X as ErrorEvent, Xn as TOUCH_PHASES, Xt as Method, Y as ErrorCode, Yn as SubscribeResult, Yt as MemoryPressure, Z as FEATURES, Zn as TouchPhase, Zt as Methods, _ as BuildMachineCapacity, _n as QuietHours, _t as InputPostureParams, a as ArchiveDetailParams, an as NotificationsListParams, ar as VIDEO_HEADER_VERSION, at as FramesSeekParams, b as BuildOfferResult, bn as REPLAY_RATES, bt as InputSimulatorParams, c as BUILD_REPO_PATTERN, cn as PROTOCOL_SCHEMA_FILE, cr as VideoCodec, ct as HelloParams, d as BuildAttachResult, dn as PUSH_TOKEN_PATTERN, dr as WorkspaceFile, dt as INPUT_BUTTONS, en as NotificationEntry, er as UsageSample, et as Feature, f as BuildCapacity, fn as PairingAuth, fr as WorkspaceFiles, ft as INPUT_KEYS, g as BuildJobParams, gn as PushRegisterParams, gt as InputKeyParams, h as BuildJobOutcome, hn as PushEvent, ht as InputKey, i as ActionResult, in as NotificationTarget, ir as VIDEO_FOLDED, it as FramesLiveParams, j as CONTROL_END_REASONS, jn as ReplayTarget, jt as LogFilter, k as BuildToolchain, kn as ReplayRange, kt as LOG_SOURCES, l as BuildAndroidOptions, ln as PROTOCOL_VERSION, lr as VideoPacket, lt as HelloResult, m as BuildFile, mn as ProtocolError, mr as WorkspacePatch, mt as InputButtonParams, n as ActionName, nn as NotificationLevel, nr as VIDEO_ARTWORK, nt as FrameEvent, o as ArchiveDetailResult, on as NotificationsListResult, or as VIDEO_KEYFRAME, ot as FramesSeekResult, p as BuildClientSummary, pn as Platform, pr as WorkspaceParams, pt as InputButton, q as DuoFramePose, qn as StatsResult, qt as MacosWindow, r as ActionParams, rn as NotificationSuppression, rr as VIDEO_CODECS, rt as FrameTarget, s as BUILD_METHODS, sn as PLATFORMS, sr as VIDEO_UNFOLDED, st as FramesSubscribeResult, t as ACTIONS, tn as NotificationEvent, tr as UsageSeries, tt as FrameDelayedEvent, u as BuildArtifactResult, un as PUSH_EVENTS, ur as WorkspaceDiff, ut as HostedSessionRow, v as BuildMachineReport, vn as RELOAD_PLATFORMS, vt as InputRotateParams, w as BuildProgressEvent, wn as ReloadPlatform, wt as KEY_MODIFIERS, x as BuildPlanParams, xn as ROTATE_DIRECTIONS, xt as InputTextParams, y as BuildOfferParams, yn as REPLAY_MARKER_KINDS, yt as InputScrollParams, z as DEVICE_HOST_METHODS, zn as ServerUpdateOutcome, zt as MAX_LOG_TAIL } from "./protocol-CfT6YiG_.mjs";
|
|
2
|
+
export { ACTIONS, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, BUILD_METHODS, BUILD_REPO_PATTERN, BuildAndroidOptions, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildRequestAuth, BuildStartParams, BuildSyncParams, BuildSyncResult, BuildToolchain, CAPABILITIES, CONTROL_END_REASONS, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DeviceAuth, DeviceFrameArtwork, DeviceFrameEvent, DeviceHostRequestAuth, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, HelloParams, HelloResult, HostedSessionRow, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, PairingAuth, Platform, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, ReplayEndedEvent, ReplayKeyframe, ReplayKeyframeParams, ReplayMarker, ReplayRange, ReplaySpan, ReplayTarget, RequestId, RotateDirection, SERVER_UPDATE_METHODS, ServeRoute, ServerEvent, ServerMessage, ServerResponse, ServerUpdateOutcome, ServerUpdatePackage, ServerUpdateProgress, ServerUpdateStartParams, ServerUpdateStatus, SettingsResult, SimulatorCommand, SimulatorOptions, StatsResult, StatusEvent, SubscribeResult, TOUCH_PHASES, TouchPhase, UnsubscribeParams, UsageHistory, UsageSample, UsageSeries, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED, VideoCodec, VideoPacket, WorkspaceDiff, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch };
|
package/dist/protocol.mjs
CHANGED
|
@@ -19,8 +19,9 @@ const CAPABILITIES = [
|
|
|
19
19
|
* the slot's Stim-owned device instead. `notifications` is `notifications.list` and the `notification` event.
|
|
20
20
|
* `macos-hosted` relays `frames.subscribe` and control for a workspace whose macOS app
|
|
21
21
|
* `stim macos --remote` placed on another Mac.
|
|
22
|
-
* `ios-hosted`
|
|
22
|
+
* `ios-hosted` and `android-hosted` relay hosted native frames and control by workspace slot through the client's server.
|
|
23
23
|
* `hosted-ios-agent` adds session-scoped iOS agent-device grants to installed app launch/attach results.
|
|
24
|
+
* `hosted-android-agent` adds serial-pinned Android agent-device grants to installed app and session attach results.
|
|
24
25
|
* `macos-windows` is the `macos-windows` event on a macOS `frames.subscribe`, naming the window capture follows
|
|
25
26
|
* and the app's other windows.
|
|
26
27
|
* `hosted-congestion` is `device-host.frames.congested`, which lowers the bitrate of a hosted video subscription
|
|
@@ -28,6 +29,7 @@ const CAPABILITIES = [
|
|
|
28
29
|
* `macos-window-select` is `input.window`, which pins the view to a macOS app window named by `macos-windows`,
|
|
29
30
|
* bringing it to the front, or with null resumes following the front window.
|
|
30
31
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
32
|
+
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
31
33
|
* `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
|
|
32
34
|
*/
|
|
33
35
|
const FEATURES = [
|
|
@@ -42,11 +44,14 @@ const FEATURES = [
|
|
|
42
44
|
"device-frames",
|
|
43
45
|
"macos-hosted",
|
|
44
46
|
"ios-hosted",
|
|
47
|
+
"android-hosted",
|
|
45
48
|
"hosted-ios-agent",
|
|
49
|
+
"hosted-android-agent",
|
|
46
50
|
"duo-frames",
|
|
47
51
|
"workspace-diff",
|
|
48
52
|
"hosted-congestion",
|
|
49
53
|
"hosted-ios-data",
|
|
54
|
+
"hosted-android-data",
|
|
50
55
|
"server-update"
|
|
51
56
|
];
|
|
52
57
|
const METHODS = [
|
|
@@ -64,6 +69,7 @@ const METHODS = [
|
|
|
64
69
|
"frames.seek",
|
|
65
70
|
"frames.live",
|
|
66
71
|
"replay.range",
|
|
72
|
+
"archive.detail",
|
|
67
73
|
"replay.keyframe",
|
|
68
74
|
"recording.set",
|
|
69
75
|
"build.plan",
|
|
@@ -122,7 +128,9 @@ const METHODS = [
|
|
|
122
128
|
"server.update.start",
|
|
123
129
|
"server.update.chunk",
|
|
124
130
|
"machines.update.start",
|
|
125
|
-
"machines.update.status"
|
|
131
|
+
"machines.update.status",
|
|
132
|
+
"device-host.sessions",
|
|
133
|
+
"device-host.sessions.stop"
|
|
126
134
|
];
|
|
127
135
|
/**
|
|
128
136
|
* The methods that update this server's `stim-server service`. A Mac this one approved for `build` or
|