@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.
@@ -1,4 +1,4 @@
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";
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` relays iOS simulator frames and control by workspace slot through the client's server.
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 { 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 };
1514
+ export { FRAME_FPS as $, UsageHistory as $n, NOTIFICATION_SUPPRESSIONS as $t, CAPABILITIES as A, ReplaySpan as An, LegacyPushEvent as At, DEVICE_POSTURES as B, ServerUpdatePackage as Bn, METHODS as Bt, BuildPlatform as C, RecordingSetResult as Cn, InputWindowParams as Ct, BuildSyncParams as D, ReplayKeyframeParams as Dn, LEGACY_PUSH_EVENTS as Dt, BuildStartParams as E, ReplayKeyframe as En, KeyframeParams as Et, ControlBeginResult as F, ServeRoute as Fn, LogsEndedEvent as Ft, DevicePosture as G, SimulatorCommand as Gn, MachineUsage as Gt, DeviceFrameArtwork as H, ServerUpdateStartParams as Hn, MachineHistory as Ht, ControlEndParams as I, ServerEvent as In, LogsEvent as It, ERROR_CODES as J, StatusEvent as Jn, MacosWindowsEvent as Jt, DeviceUsageSeries as K, SimulatorOptions as Kn, MachineVolume as Kt, ControlEndedEvent as L, ServerMessage as Ln, LogsQueryResult as Lt, Capability as M, RequestId as Mn, LogLevel as Mt, ClientRequest as N, RotateDirection as Nn, LogRecord as Nt, BuildSyncResult as O, ReplayMarker as On, LOG_LEVELS as Ot, ControlBeginParams as P, SERVER_UPDATE_METHODS as Pn, LogSource as Pt, FRAME_EDGE as Q, UnsubscribeParams as Qn, NOTIFICATION_LEVELS as Qt, ControlPlatform as R, ServerResponse as Rn, MAX_INPUT_TEXT as Rt, BuildPlanResult as S, RecordingSetParams as Sn, InputTouchParams as St, BuildRequestAuth as T, ReplayEndedEvent as Tn, KeyModifier as Tt, DeviceFrameEvent as U, ServerUpdateStatus as Un, MachineHistoryParams as Ut, DeviceAuth as V, ServerUpdateProgress as Vn, MachineDetails as Vt, DeviceHostRequestAuth as W, SettingsResult as Wn, MachineUpdateStatus as Wt, ErrorEvent as X, TOUCH_PHASES as Xn, Method as Xt, ErrorCode as Y, SubscribeResult as Yn, MemoryPressure as Yt, FEATURES as Z, TouchPhase as Zn, Methods as Zt, BuildMachineCapacity as _, QuietHours as _n, InputPostureParams as _t, ArchiveDetailParams as a, NotificationsListParams as an, VIDEO_HEADER_VERSION as ar, FramesSeekParams as at, BuildOfferResult as b, REPLAY_RATES as bn, InputSimulatorParams as bt, BUILD_REPO_PATTERN as c, PROTOCOL_SCHEMA_FILE as cn, VideoCodec as cr, HelloParams as ct, BuildAttachResult as d, PUSH_TOKEN_PATTERN as dn, WorkspaceFile as dr, INPUT_BUTTONS as dt, NotificationEntry as en, UsageSample as er, Feature as et, BuildCapacity as f, PairingAuth as fn, WorkspaceFiles as fr, INPUT_KEYS as ft, BuildJobParams as g, PushRegisterParams as gn, InputKeyParams as gt, BuildJobOutcome as h, PushEvent as hn, InputKey as ht, ActionResult as i, NotificationTarget as in, VIDEO_FOLDED as ir, FramesLiveParams as it, CONTROL_END_REASONS as j, ReplayTarget as jn, LogFilter as jt, BuildToolchain as k, ReplayRange as kn, LOG_SOURCES as kt, BuildAndroidOptions as l, PROTOCOL_VERSION as ln, VideoPacket as lr, HelloResult as lt, BuildFile as m, ProtocolError as mn, WorkspacePatch as mr, InputButtonParams as mt, ActionName as n, NotificationLevel as nn, VIDEO_ARTWORK as nr, FrameEvent as nt, ArchiveDetailResult as o, NotificationsListResult as on, VIDEO_KEYFRAME as or, FramesSeekResult as ot, BuildClientSummary as p, Platform as pn, WorkspaceParams as pr, InputButton as pt, DuoFramePose as q, StatsResult as qn, MacosWindow as qt, ActionParams as r, NotificationSuppression as rn, VIDEO_CODECS as rr, FrameTarget as rt, BUILD_METHODS as s, PLATFORMS as sn, VIDEO_UNFOLDED as sr, FramesSubscribeResult as st, ACTIONS as t, NotificationEvent as tn, UsageSeries as tr, FrameDelayedEvent as tt, BuildArtifactResult as u, PUSH_EVENTS as un, WorkspaceDiff as ur, HostedSessionRow as ut, BuildMachineReport as v, RELOAD_PLATFORMS as vn, InputRotateParams as vt, BuildProgressEvent as w, ReloadPlatform as wn, KEY_MODIFIERS as wt, BuildPlanParams as x, ROTATE_DIRECTIONS as xn, InputTextParams as xt, BuildOfferParams as y, REPLAY_MARKER_KINDS as yn, InputScrollParams as yt, DEVICE_HOST_METHODS as z, ServerUpdateOutcome as zn, MAX_LOG_TAIL as zt };
@@ -1,2 +1,2 @@
1
- import { $ as FrameDelayedEvent, $n as VIDEO_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 };
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` relays iOS simulator frames and control by workspace slot through the client's server.
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