@stim-cli/core 1.21.0 → 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.
@@ -47,14 +47,16 @@ function processStartMicros(pid) {
47
47
  startedAtMicros: Number(match[1]) * 1e6 + Number(match[2])
48
48
  };
49
49
  }
50
- async function waitForProcessExit(record, timeoutMs) {
50
+ async function waitForProcessExit(record, timeoutMs, signal) {
51
51
  const deadline = Date.now() + timeoutMs;
52
52
  while (Date.now() <= deadline) {
53
+ signal?.throwIfAborted();
53
54
  const identity = inspectProcessIdentity(record);
54
55
  if (identity === "different" || identity === "gone") return true;
55
56
  if (Date.now() >= deadline) return false;
56
57
  await new Promise((resolve) => setTimeout(resolve, 100));
57
58
  }
59
+ signal?.throwIfAborted();
58
60
  return false;
59
61
  }
60
62
  //#endregion
@@ -1,4 +1,4 @@
1
- import { Br as MaintenanceStatus, Cr as ArchivedWorkspace, Gl as NdjsonRecord, Ji as HostedDeviceOffer, Oa as HostedAppLaunch, On as EnvironmentState, Qi as HostedDeviceRequest, Sr as ArchivedUsage, T as HostedLogsPage, Ua as HostedAppOffer, Va as HostedAppDelivery, Xi as HostedDevicePhase, Yi as HostedDeviceOfferRequest, Zi as HostedDevicePlatform, _o as SettingScope, a as MachineView, d as WorktreeRow, ea as HostedDeviceSession, er as StatusPayload, hn as BuildPlanPayload, i as ArchivedSummary, ln as BuildHistoryEntry, t as KeyedDelta, u as WorkspaceSummary, ur as WorktreeFacts, w as HostedLogsCursor, yo as SettingWriteResult } from "./index-_wkluvP_.mjs";
1
+ import { $i as HostedDevicePlatform, Aa as HostedAppLaunch, Cr as ArchivedWorkspace, Ga as HostedAppOffer, Hr as MaintenanceStatus, Ln as MacosBuildPlanPayload, On as EnvironmentState, Qi as HostedDevicePhase, Sr as ArchivedUsage, T as HostedLogsPage, Ua as HostedAppDelivery, Xi as HostedDeviceOffer, Yl as NdjsonRecord, Zi as HostedDeviceOfferRequest, a as MachineView, d as WorktreeRow, ea as HostedDeviceRequest, er as StatusPayload, hn as BuildPlanPayload, i as ArchivedSummary, ln as BuildHistoryEntry, na as HostedDeviceSession, t as KeyedDelta, u as WorkspaceSummary, ur as WorktreeFacts, w as HostedLogsCursor, xo as SettingWriteResult, yo as SettingScope } from "./index-DKq1j8dw.mjs";
2
2
  //#region protocol.d.ts
3
3
  declare const PROTOCOL_VERSION = 2;
4
4
  declare const PROTOCOL_SCHEMA_FILE = "protocol.schema.json";
@@ -32,6 +32,11 @@ type Capability = (typeof CAPABILITIES)[number];
32
32
  * `native-xcode-toolchain` accepts native Xcode discovery without unrelated platform or Ruby probes.
33
33
  * `build-artifact-cache` offers and fetches exact completed native Xcode archives without a build job.
34
34
  * `native-gradle-build` accepts declared Gradle transfer inputs with no reusable artifact identity.
35
+ * `native-gradle-artifact-cache` applies caller cache policy to verified worker-scoped APK reuse.
36
+ * `react-native-peer-cache` offers development archives with build-proven fingerprints, options and toolchains.
37
+ * `native-gradle-peer-cache` queries and fetches completed APKs after rechecking worker-private inputs.
38
+ * `swiftpm-peer-cache` queries and fetches completed SwiftPM apps after rechecking worker-private inputs.
39
+ * `build-dependency-cache` checks dependency warmth against the requested project and install selection.
35
40
  * `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
36
41
  * `status-views` is `workspaces.subscribe`, `workspace.subscribe`, `machine.subscribe`, `builds.history`,
37
42
  * `archived.list`, `worktrees.list` and `maintenance.get`.
@@ -40,11 +45,15 @@ type Capability = (typeof CAPABILITIES)[number];
40
45
  * `desktop-settings` reads settings for a selected folder on the authenticated local Desktop connection.
41
46
  * `desktop-settings-write` mutates settings on the proved local Desktop connection.
42
47
  * `desktop-stop` streams private Desktop workspace or slot stop progress and its terminal result.
48
+ * `desktop-start` streams dev-server startup progress and its result on the proved local Desktop connection.
49
+ * `desktop-run` streams platform build/install/launch progress and facts on the proved local Desktop connection.
50
+ * `desktop-build` streams build-only progress and artifact facts on the proved local Desktop connection.
51
+ * `desktop-plan` reads next-build reports for selected folders on the proved local Desktop connection.
43
52
  * `desktop-reload` streams reload output and its terminal result on the proved local Desktop connection.
44
53
  */
45
- 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-ios-process", "native-xcode-build", "native-xcode-toolchain", "build-artifact-cache", "native-gradle-build", "hosted-android-data", "hosted-android-process", "server-update", "status-views", "desktop-reports", "desktop-report-platform", "desktop-settings", "desktop-settings-write", "desktop-full-logs", "desktop-doctor-run", "desktop-stop", "desktop-reload"];
54
+ 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-ios-process", "native-xcode-build", "native-xcode-toolchain", "build-artifact-cache", "native-gradle-build", "native-gradle-artifact-cache", "native-gradle-peer-cache", "react-native-peer-cache", "swiftpm-peer-cache", "build-dependency-cache", "hosted-android-data", "hosted-android-process", "server-update", "status-views", "desktop-reports", "desktop-report-platform", "desktop-settings", "desktop-settings-write", "desktop-full-logs", "desktop-doctor-run", "desktop-machine-access", "desktop-stop", "desktop-reload", "desktop-start", "desktop-run", "desktop-build", "desktop-gc", "desktop-worktree-remove", "desktop-worktree-warm", "desktop-plan"];
46
55
  type Feature = (typeof FEATURES)[number];
47
- declare const METHODS: readonly ["hello", "desktop.authenticate", "desktop.reports.get", "desktop.reports.subscribe", "desktop.reports.invalidate", "desktop.settings.get", "desktop.settings.write", "desktop.logs.subscribe", "desktop.doctor.run", "desktop.stop.subscribe", "desktop.reload.subscribe", "route.setup", "status.subscribe", "workspaces.subscribe", "workspace.subscribe", "machine.subscribe", "builds.history", "archived.list", "worktrees.list", "maintenance.get", "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.cached-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"];
56
+ declare const METHODS: readonly ["hello", "desktop.authenticate", "desktop.reports.get", "desktop.reports.subscribe", "desktop.reports.invalidate", "desktop.settings.get", "desktop.settings.write", "desktop.logs.subscribe", "desktop.doctor.run", "desktop.machine-access.subscribe", "desktop.stop.subscribe", "desktop.reload.subscribe", "desktop.start.subscribe", "desktop.run.subscribe", "desktop.build.subscribe", "desktop.gc.subscribe", "desktop.worktree.remove.subscribe", "desktop.worktree.warm.subscribe", "desktop.plan.get", "desktop.plan.cancel", "route.setup", "status.subscribe", "workspaces.subscribe", "workspace.subscribe", "machine.subscribe", "builds.history", "archived.list", "worktrees.list", "maintenance.get", "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.cached-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"];
48
57
  /**
49
58
  * The methods that update this server's `stim-server service`. A machine this one approved for `build` or
50
59
  * `device-host` may call them; they need neither `read` nor `control`.
@@ -186,6 +195,11 @@ type DesktopSettingsWriteResult = SettingWriteResult | {
186
195
  message: string;
187
196
  remedy: string | null;
188
197
  };
198
+ interface DesktopPlanRefusal {
199
+ code: string;
200
+ message: string;
201
+ remedy: string | null;
202
+ }
189
203
  type DesktopReportTarget = {
190
204
  report: "doctor";
191
205
  cwd: string;
@@ -612,12 +626,81 @@ interface BuildOfferParams {
612
626
  repo: string;
613
627
  /** sha256 of the repository's lockfile, compared with the one the machine last installed from. */
614
628
  lockfile?: string;
629
+ /** The dependency installation to compare with the lockfile, supported by `build-dependency-cache`. */
630
+ dependencies?: {
631
+ project: string;
632
+ packageName: string | null;
633
+ };
615
634
  /** The project's normalized .ruby-version; absent uses the worker's default Ruby. */
616
635
  rubyVersion?: string;
617
636
  native?: "xcode" | "gradle";
618
637
  artifact?: BuildArtifactIdentity;
638
+ gradleArtifact?: BuildGradleArtifactQuery;
639
+ reactNativeArtifact?: BuildReactNativeArtifactQuery;
640
+ swiftpmArtifact?: BuildSwiftpmArtifactQuery;
641
+ }
642
+ /** A post-mutation React Native fingerprint and the requested development build. */
643
+ type BuildReactNativeArtifactQuery = {
644
+ project: string;
645
+ fingerprint: string;
646
+ isExpo: boolean;
647
+ } & ({
648
+ platform: "ios";
649
+ toolchain: {
650
+ stimBuild: string;
651
+ arch: string;
652
+ xcode: string;
653
+ simulatorSdk: string;
654
+ cocoapods: string;
655
+ };
656
+ ios: {
657
+ runtime: string;
658
+ configuration: string;
659
+ scheme: string | null;
660
+ projectPath: string;
661
+ optimizations: {
662
+ compilationCache: boolean;
663
+ swiftCompilationCache: boolean | null;
664
+ prefixMapping: boolean;
665
+ };
666
+ };
667
+ } | {
668
+ platform: "android";
669
+ toolchain: {
670
+ stimBuild: string;
671
+ jdk: string;
672
+ };
673
+ android: BuildAndroidOptions;
674
+ });
675
+ /** A declared native Gradle request with a resolved variant, excluding worker-private inputs and APK identity. */
676
+ interface BuildGradleArtifactQuery {
677
+ project: string;
678
+ sourceDigest: string;
679
+ inputs: GradleOffloadInputs;
680
+ android: BuildAndroidOptions & {
681
+ variant: string;
682
+ };
619
683
  }
620
- /** A native Xcode identity whose key includes its complete inputs, target and toolchain. */
684
+ /** A complete SwiftPM source transfer and repeatable build; private input values stay on the worker. */
685
+ interface BuildSwiftpmArtifactQuery {
686
+ project: string;
687
+ sourceDigest: string;
688
+ stimBuild: string;
689
+ inputs: {
690
+ complete: true;
691
+ ignored: string[];
692
+ outputs: string[];
693
+ localFiles: string[];
694
+ environment: string[];
695
+ };
696
+ build: {
697
+ product: string;
698
+ infoPlist: string;
699
+ resources: Record<string, string>;
700
+ assetCatalog: string | null;
701
+ };
702
+ }
703
+ /** A native artifact identity whose key includes its complete inputs, target and toolchain. */
621
704
  interface BuildArtifactIdentity {
622
705
  fingerprint: string;
623
706
  cacheKey: string;
@@ -626,6 +709,7 @@ interface CachedBuildArtifact extends BuildArtifactIdentity {
626
709
  name: string;
627
710
  size: number;
628
711
  sha256: string;
712
+ androidPackage?: string;
629
713
  }
630
714
  /** The toolchain a build must match exactly on both machines. */
631
715
  interface BuildToolchain {
@@ -738,6 +822,11 @@ interface BuildStartParams {
738
822
  provider: "gradle";
739
823
  sourceDigest: string;
740
824
  inputs: GradleOffloadInputs;
825
+ cache?: {
826
+ read: boolean;
827
+ write: boolean;
828
+ remote: boolean;
829
+ };
741
830
  };
742
831
  packageName?: string | null;
743
832
  isExpo?: boolean;
@@ -749,8 +838,10 @@ interface BuildStartParams {
749
838
  bundleId: string;
750
839
  resources?: Record<string, string>;
751
840
  assetCatalog?: string | null;
841
+ artifactInputs?: BuildSwiftpmArtifactQuery["inputs"];
752
842
  } | null;
753
843
  stimBuild: string;
844
+ cacheArtifact?: boolean;
754
845
  }
755
846
  interface BuildJobParams {
756
847
  job: string;
@@ -1347,6 +1438,13 @@ interface Methods {
1347
1438
  };
1348
1439
  result: Record<string, unknown>;
1349
1440
  };
1441
+ "desktop.machine-access.subscribe": {
1442
+ params: {
1443
+ cwd: string;
1444
+ ticket?: string;
1445
+ };
1446
+ result: SubscribeResult;
1447
+ };
1350
1448
  "desktop.stop.subscribe": {
1351
1449
  params: {
1352
1450
  cwd: string;
@@ -1361,6 +1459,75 @@ interface Methods {
1361
1459
  };
1362
1460
  result: SubscribeResult;
1363
1461
  };
1462
+ "desktop.start.subscribe": {
1463
+ params: {
1464
+ cwd: string;
1465
+ remote?: boolean;
1466
+ resetCache?: boolean;
1467
+ waitSeconds?: number;
1468
+ };
1469
+ result: SubscribeResult;
1470
+ };
1471
+ "desktop.run.subscribe": {
1472
+ params: {
1473
+ cwd: string;
1474
+ options: PlatformRunOptions;
1475
+ };
1476
+ result: SubscribeResult;
1477
+ };
1478
+ "desktop.plan.get": {
1479
+ params: {
1480
+ cwd: string;
1481
+ request?: string;
1482
+ } & ({
1483
+ platform: "ios" | "android";
1484
+ slot?: string;
1485
+ } | {
1486
+ platform: "macos";
1487
+ });
1488
+ result: BuildPlanPayload | MacosBuildPlanPayload | DesktopPlanRefusal;
1489
+ };
1490
+ "desktop.plan.cancel": {
1491
+ params: {
1492
+ request: string;
1493
+ };
1494
+ result: {
1495
+ cancelled: boolean;
1496
+ refusal?: DesktopPlanRefusal;
1497
+ };
1498
+ };
1499
+ "desktop.build.subscribe": {
1500
+ params: {
1501
+ cwd: string;
1502
+ options: PlatformBuildOptions;
1503
+ };
1504
+ result: SubscribeResult;
1505
+ };
1506
+ "desktop.gc.subscribe": {
1507
+ params: {
1508
+ cwd: string;
1509
+ cache?: string;
1510
+ olderThan?: number;
1511
+ worktrees?: boolean;
1512
+ delete?: boolean;
1513
+ idleMs?: number;
1514
+ };
1515
+ result: SubscribeResult;
1516
+ };
1517
+ "desktop.worktree.warm.subscribe": {
1518
+ params: {
1519
+ cwd: string;
1520
+ };
1521
+ result: SubscribeResult;
1522
+ };
1523
+ "desktop.worktree.remove.subscribe": {
1524
+ params: {
1525
+ cwd: string;
1526
+ target?: string;
1527
+ force?: boolean;
1528
+ };
1529
+ result: SubscribeResult;
1530
+ };
1364
1531
  "status.subscribe": {
1365
1532
  params?: Record<string, never>;
1366
1533
  result: SubscribeResult;
@@ -1549,6 +1716,9 @@ interface Methods {
1549
1716
  params: {
1550
1717
  repo: string;
1551
1718
  artifact: BuildArtifactIdentity;
1719
+ gradleArtifact?: BuildGradleArtifactQuery;
1720
+ reactNativeArtifact?: BuildReactNativeArtifactQuery;
1721
+ swiftpmArtifact?: BuildSwiftpmArtifactQuery;
1552
1722
  };
1553
1723
  result: CachedBuildArtifact | null;
1554
1724
  };
@@ -1773,7 +1943,162 @@ interface DesktopReloadEndedEvent {
1773
1943
  stdout: string;
1774
1944
  message: string;
1775
1945
  }
1776
- type ServerEvent = DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopReportEvent | BuildProgressEvent | NotificationEvent | StatusEvent | WorkspacesEvent | WorkspaceEvent | MachineEvent | LogsEvent | LogsEndedEvent | FrameEvent | DeviceFrameEvent | MacosWindowsEvent | FrameDelayedEvent | ReplayEndedEvent | ErrorEvent | ControlEndedEvent;
1946
+ /** Progress chunks from a private Desktop start, before its terminal event. */
1947
+ interface DesktopStartProgressEvent {
1948
+ event: "desktop-start-progress";
1949
+ subscription: string;
1950
+ stream: "stdout" | "stderr";
1951
+ message: string;
1952
+ }
1953
+ /** The start's CLI-compatible JSON, exit status and human summary or refusal. */
1954
+ interface DesktopStartEndedEvent {
1955
+ event: "desktop-start-ended";
1956
+ subscription: string;
1957
+ exitCode: 0 | 1;
1958
+ stdout: string;
1959
+ message: string;
1960
+ }
1961
+ interface NativeRunOptions {
1962
+ slot?: string;
1963
+ metroCheck?: boolean;
1964
+ buildCache?: boolean;
1965
+ remoteBuild?: string;
1966
+ remote?: string;
1967
+ device?: string | boolean;
1968
+ wait?: string | boolean;
1969
+ easProfile?: string;
1970
+ }
1971
+ /** Artifact-only selectors shared by the in-process API and private Desktop transport. */
1972
+ type PlatformBuildOptions = {
1973
+ platform: "ios";
1974
+ configuration?: string;
1975
+ scheme?: string;
1976
+ /** Defaults to the host simulator architecture for Debug, or all architectures otherwise. */
1977
+ arch?: "arm64" | "x86_64" | "all";
1978
+ buildCache?: boolean;
1979
+ remoteBuild?: string;
1980
+ } | {
1981
+ platform: "android";
1982
+ variant?: string;
1983
+ abi?: "arm64-v8a" | "armeabi-v7a" | "x86" | "x86_64" | "all";
1984
+ buildCache?: boolean;
1985
+ remoteBuild?: string;
1986
+ } | {
1987
+ platform: "macos";
1988
+ remoteBuild?: string;
1989
+ };
1990
+ /** Build, install and launch selectors shared by the in-process API and private Desktop transport. */
1991
+ type PlatformRunOptions = (NativeRunOptions & {
1992
+ platform: "ios";
1993
+ configuration?: string;
1994
+ scheme?: string;
1995
+ deviceType?: string;
1996
+ runtime?: string;
1997
+ simulatorApp?: string;
1998
+ }) | (NativeRunOptions & {
1999
+ platform: "android";
2000
+ variant?: string;
2001
+ systemImage?: string;
2002
+ deviceProfile?: string;
2003
+ }) | {
2004
+ platform: "macos";
2005
+ remoteBuild?: string;
2006
+ remote?: string;
2007
+ } | {
2008
+ platform: "web";
2009
+ headed?: boolean;
2010
+ };
2011
+ /** Progress from a private Desktop platform run, before its terminal event. */
2012
+ interface DesktopRunProgressEvent {
2013
+ event: "desktop-run-progress";
2014
+ subscription: string;
2015
+ stream: "stdout" | "stderr";
2016
+ message: string;
2017
+ }
2018
+ /** The run's typed API result or refusal, exit status and summary. */
2019
+ interface DesktopRunEndedEvent {
2020
+ event: "desktop-run-ended";
2021
+ subscription: string;
2022
+ exitCode: 0 | 1;
2023
+ stdout: string;
2024
+ message: string;
2025
+ }
2026
+ /** Progress from a private Desktop artifact build, before its terminal event. */
2027
+ interface DesktopBuildProgressEvent {
2028
+ event: "desktop-build-progress";
2029
+ subscription: string;
2030
+ stream: "stdout" | "stderr";
2031
+ message: string;
2032
+ }
2033
+ /** The build's typed API result or refusal, exit status and summary. */
2034
+ interface DesktopBuildEndedEvent {
2035
+ event: "desktop-build-ended";
2036
+ subscription: string;
2037
+ exitCode: 0 | 1;
2038
+ stdout: string;
2039
+ message: string;
2040
+ }
2041
+ /** Progress from private Desktop garbage collection, before its terminal event. */
2042
+ interface DesktopGcProgressEvent {
2043
+ event: "desktop-gc-progress";
2044
+ subscription: string;
2045
+ stream: "stdout" | "stderr";
2046
+ message: string;
2047
+ }
2048
+ /** The GC JSON report or typed refusal, exit status and summary. */
2049
+ interface DesktopGcEndedEvent {
2050
+ event: "desktop-gc-ended";
2051
+ subscription: string;
2052
+ exitCode: 0 | 1;
2053
+ stdout: string;
2054
+ message: string;
2055
+ }
2056
+ /** Progress from private Desktop worktree removal, before its terminal event. */
2057
+ interface DesktopWorktreeRemoveProgressEvent {
2058
+ event: "desktop-worktree-remove-progress";
2059
+ subscription: string;
2060
+ stream: "stdout" | "stderr";
2061
+ message: string;
2062
+ }
2063
+ /** The removal result or typed refusal, exit status and summary. */
2064
+ interface DesktopWorktreeRemoveEndedEvent {
2065
+ event: "desktop-worktree-remove-ended";
2066
+ subscription: string;
2067
+ exitCode: 0 | 1;
2068
+ stdout: string;
2069
+ message: string;
2070
+ }
2071
+ /** Progress from private Desktop worktree warming, before its terminal event. */
2072
+ interface DesktopWorktreeWarmProgressEvent {
2073
+ event: "desktop-worktree-warm-progress";
2074
+ subscription: string;
2075
+ stream: "stdout" | "stderr";
2076
+ message: string;
2077
+ }
2078
+ /** The warming result or typed refusal, exit status and summary. */
2079
+ interface DesktopWorktreeWarmEndedEvent {
2080
+ event: "desktop-worktree-warm-ended";
2081
+ subscription: string;
2082
+ exitCode: 0 | 1;
2083
+ stdout: string;
2084
+ message: string;
2085
+ }
2086
+ /** Progress from a private Desktop machine-access request. */
2087
+ interface DesktopMachineAccessProgressEvent {
2088
+ event: "desktop-machine-access-progress";
2089
+ subscription: string;
2090
+ stream: "stdout" | "stderr";
2091
+ message: string;
2092
+ }
2093
+ /** The machine-access report or typed refusal after cleanup completes. */
2094
+ interface DesktopMachineAccessEndedEvent {
2095
+ event: "desktop-machine-access-ended";
2096
+ subscription: string;
2097
+ exitCode: 0 | 1;
2098
+ stdout: string;
2099
+ message: string;
2100
+ }
2101
+ type ServerEvent = DesktopMachineAccessProgressEvent | DesktopMachineAccessEndedEvent | DesktopWorktreeWarmProgressEvent | DesktopWorktreeWarmEndedEvent | DesktopWorktreeRemoveProgressEvent | DesktopWorktreeRemoveEndedEvent | DesktopGcProgressEvent | DesktopGcEndedEvent | DesktopBuildProgressEvent | DesktopBuildEndedEvent | DesktopRunProgressEvent | DesktopRunEndedEvent | DesktopStartProgressEvent | DesktopStartEndedEvent | DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopReportEvent | BuildProgressEvent | NotificationEvent | StatusEvent | WorkspacesEvent | WorkspaceEvent | MachineEvent | LogsEvent | LogsEndedEvent | FrameEvent | DeviceFrameEvent | MacosWindowsEvent | FrameDelayedEvent | ReplayEndedEvent | ErrorEvent | ControlEndedEvent;
1777
2102
  type ServerMessage = ServerResponse | ServerEvent;
1778
2103
  type ServeRoute = {
1779
2104
  state: "routed";
@@ -1791,4 +2116,4 @@ type ServeRoute = {
1791
2116
  port: number;
1792
2117
  };
1793
2118
  //#endregion
1794
- export { DesktopReportTarget as $, ServerMessage as $n, LogsQueryResult as $t, BuildStartParams as A, ProtocolError as An, WorkspaceParams as Ar, InputButtonParams as At, ControlBeginParams as B, ReloadPlatform as Bn, KEY_MODIFIERS as Bt, BuildMachineReport as C, NotificationsListResult as Cn, VIDEO_UNFOLDED as Cr, GradleOffloadInputs as Ct, BuildPlanResult as D, PUSH_EVENTS as Dn, WorkspaceEvent as Dr, INPUT_BUTTONS as Dt, BuildPlanParams as E, PROTOCOL_VERSION as En, WorkspaceDiff as Er, HostedSessionRow as Et, CAPABILITIES as F, REPLAY_MARKER_KINDS as Fn, InputScrollParams as Ft, DEVICE_HOST_METHODS as G, ReplayRange as Gn, LOG_SOURCES as Gt, ControlEndParams as H, ReplayKeyframe as Hn, KeyframeParams as Ht, CONTROL_END_REASONS as I, REPLAY_RATES as In, InputSimulatorParams as It, DesktopLogFilter as J, RequestId as Jn, LogLevel as Jt, DEVICE_POSTURES as K, ReplaySpan as Kn, LegacyPushEvent as Kt, CachedBuildArtifact as L, ROTATE_DIRECTIONS as Ln, InputTextParams as Lt, BuildSyncResult as M, PushRegisterParams as Mn, WorkspaceRef as Mr, InputKeyParams as Mt, BuildToolchain as N, QuietHours as Nn, WorkspacesEvent as Nr, InputPostureParams as Nt, BuildPlatform as O, PUSH_TOKEN_PATTERN as On, WorkspaceFile as Or, INPUT_KEYS as Ot, BuildsHistoryResult as P, RELOAD_PLATFORMS as Pn, WorkspacesSnapshot as Pr, InputRotateParams as Pt, DesktopReportSnapshot as Q, ServerEvent as Qn, LogsEvent as Qt, Capability as R, RecordingSetParams as Rn, InputTouchParams as Rt, BuildMachineCapacity as S, NotificationsListParams as Sn, VIDEO_KEYFRAME as Sr, FramesSubscribeResult as St, BuildOfferResult as T, PROTOCOL_SCHEMA_FILE as Tn, VideoPacket as Tr, HelloResult as Tt, ControlEndedEvent as U, ReplayKeyframeParams as Un, LEGACY_PUSH_EVENTS as Ut, ControlBeginResult as V, ReplayEndedEvent as Vn, KeyModifier as Vt, ControlPlatform as W, ReplayMarker as Wn, LOG_LEVELS as Wt, DesktopReloadProgressEvent as X, SERVER_UPDATE_METHODS as Xn, LogSource as Xt, DesktopReloadEndedEvent as Y, RotateDirection as Yn, LogRecord as Yt, DesktopReportEvent as Z, ServeRoute as Zn, LogsEndedEvent as Zt, BuildCapacity as _, NotificationEntry as _n, UsageSeries as _r, FrameEvent as _t, ActionResult as a, MachineHistory as an, ServerUpdateStatus as ar, DeviceFrameEvent as at, BuildJobOutcome as b, NotificationSuppression as bn, VIDEO_FOLDED as br, FramesSeekParams as bt, ArchivedListParams as c, MachineUsage as cn, SimulatorOptions as cr, DuoFramePose as ct, BUILD_REPO_PATTERN as d, MacosWindowsEvent as dn, SubscribeResult as dr, ErrorEvent as dt, MAX_INPUT_TEXT as en, ServerResponse as er, DesktopSettingsWriteParams as et, BUILD_RUBY_VERSION_PATTERN as f, MemoryPressure as fn, TOUCH_PHASES as fr, FEATURES as ft, BuildAttachResult as g, NOTIFICATION_SUPPRESSIONS as gn, UsageSample as gr, FrameDelayedEvent as gt, BuildArtifactResult as h, NOTIFICATION_LEVELS as hn, UsageHistory as hr, Feature as ht, ActionParams as i, MachineEvent as in, ServerUpdateStartParams as ir, DeviceFrameArtwork as it, BuildSyncParams as j, PushEvent as jn, WorkspacePatch as jr, InputKey as jt, BuildProgressEvent as k, Platform as kn, WorkspaceFiles as kr, InputButton as kt, ArchivedListResult as l, MachineVolume as ln, StatsResult as lr, ERROR_CODES as lt, BuildArtifactIdentity as m, Methods as mn, UnsubscribeParams as mr, FRAME_FPS as mt, ARCHIVED_PAGE_LIMIT as n, METHODS as nn, ServerUpdatePackage as nr, DesktopStopEndedEvent as nt, ArchiveDetailParams as o, MachineHistoryParams as on, SettingsResult as or, DevicePosture as ot, BuildAndroidOptions as p, Method as pn, TouchPhase as pr, FRAME_EDGE as pt, DesktopBootstrapChallenge as q, ReplayTarget as qn, LogFilter as qt, ActionName as r, MachineDetails as rn, ServerUpdateProgress as rr, DesktopStopProgressEvent as rt, ArchiveDetailResult as s, MachineUpdateStatus as sn, SimulatorCommand as sr, DeviceUsageSeries as st, ACTIONS as t, MAX_LOG_TAIL as tn, ServerUpdateOutcome as tr, DesktopSettingsWriteResult as tt, BUILD_METHODS as u, MacosWindow as un, StatusEvent as ur, ErrorCode as ut, BuildClientSummary as v, NotificationEvent as vn, VIDEO_ARTWORK as vr, FrameTarget as vt, BuildOfferParams as w, PLATFORMS as wn, VideoCodec as wr, HelloParams as wt, BuildJobParams as x, NotificationTarget as xn, VIDEO_HEADER_VERSION as xr, FramesSeekResult as xt, BuildFile as y, NotificationLevel as yn, VIDEO_CODECS as yr, FramesLiveParams as yt, ClientRequest as z, RecordingSetResult as zn, InputWindowParams as zt };
2119
+ export { DesktopGcEndedEvent as $, QuietHours as $n, WorkspacesEvent as $r, InputScrollParams as $t, BuildProgressEvent as A, MemoryPressure as An, StatusEvent as Ar, FEATURES as At, CachedBuildArtifact as B, NotificationsListParams as Bn, VIDEO_FOLDED as Br, FramesSubscribeResult as Bt, BuildMachineCapacity as C, MachineHistory as Cn, ServerUpdateProgress as Cr, DeviceFrameEvent as Ct, BuildPlanParams as D, MachineVolume as Dn, SimulatorCommand as Dr, ERROR_CODES as Dt, BuildOfferResult as E, MachineUsage as En, SettingsResult as Er, DuoFramePose as Et, BuildSyncResult as F, NotificationEntry as Fn, UsageHistory as Fr, FrameEvent as Ft, ControlEndParams as G, PUSH_EVENTS as Gn, VideoPacket as Gr, INPUT_BUTTONS as Gt, ClientRequest as H, PLATFORMS as Hn, VIDEO_KEYFRAME as Hr, HelloParams as Ht, BuildToolchain as I, NotificationEvent as In, UsageSample as Ir, FrameTarget as It, DEVICE_HOST_METHODS as J, PlatformBuildOptions as Jn, WorkspaceFile as Jr, InputButtonParams as Jt, ControlEndedEvent as K, PUSH_TOKEN_PATTERN as Kn, WorkspaceDiff as Kr, INPUT_KEYS as Kt, BuildsHistoryResult as L, NotificationLevel as Ln, UsageSeries as Lr, FramesLiveParams as Lt, BuildStartParams as M, Methods as Mn, TOUCH_PHASES as Mr, FRAME_FPS as Mt, BuildSwiftpmArtifactQuery as N, NOTIFICATION_LEVELS as Nn, TouchPhase as Nr, Feature as Nt, BuildPlanResult as O, MacosWindow as On, SimulatorOptions as Or, ErrorCode as Ot, BuildSyncParams as P, NOTIFICATION_SUPPRESSIONS as Pn, UnsubscribeParams as Pr, FrameDelayedEvent as Pt, DesktopBuildProgressEvent as Q, PushRegisterParams as Qn, WorkspaceRef as Qr, InputRotateParams as Qt, CAPABILITIES as R, NotificationSuppression as Rn, VIDEO_ARTWORK as Rr, FramesSeekParams as Rt, BuildJobParams as S, MachineEvent as Sn, ServerUpdatePackage as Sr, DeviceFrameArtwork as St, BuildOfferParams as T, MachineUpdateStatus as Tn, ServerUpdateStatus as Tr, DeviceUsageSeries as Tt, ControlBeginParams as U, PROTOCOL_SCHEMA_FILE as Un, VIDEO_UNFOLDED as Ur, HelloResult as Ut, Capability as V, NotificationsListResult as Vn, VIDEO_HEADER_VERSION as Vr, GradleOffloadInputs as Vt, ControlBeginResult as W, PROTOCOL_VERSION as Wn, VideoCodec as Wr, HostedSessionRow as Wt, DesktopBootstrapChallenge as X, ProtocolError as Xn, WorkspaceParams as Xr, InputKeyParams as Xt, DEVICE_POSTURES as Y, PlatformRunOptions as Yn, WorkspaceFiles as Yr, InputKey as Yt, DesktopBuildEndedEvent as Z, PushEvent as Zn, WorkspacePatch as Zr, InputPostureParams as Zt, BuildCapacity as _, LogsQueryResult as _n, ServeRoute as _r, DesktopStopProgressEvent as _t, ActionResult as a, KeyModifier as an, RecordingSetResult as ar, DesktopReloadEndedEvent as at, BuildGradleArtifactQuery as b, METHODS as bn, ServerResponse as br, DesktopWorktreeWarmEndedEvent as bt, ArchivedListParams as c, LOG_LEVELS as cn, ReplayKeyframe as cr, DesktopReportSnapshot as ct, BUILD_REPO_PATTERN as d, LogFilter as dn, ReplayRange as dr, DesktopRunProgressEvent as dt, WorkspacesSnapshot as ei, InputSimulatorParams as en, RELOAD_PLATFORMS as er, DesktopGcProgressEvent as et, BUILD_RUBY_VERSION_PATTERN as f, LogLevel as fn, ReplaySpan as fr, DesktopSettingsWriteParams as ft, BuildAttachResult as g, LogsEvent as gn, SERVER_UPDATE_METHODS as gr, DesktopStopEndedEvent as gt, BuildArtifactResult as h, LogsEndedEvent as hn, RotateDirection as hr, DesktopStartProgressEvent as ht, ActionParams as i, KEY_MODIFIERS as in, RecordingSetParams as ir, DesktopPlanRefusal as it, BuildReactNativeArtifactQuery as j, Method as jn, SubscribeResult as jr, FRAME_EDGE as jt, BuildPlatform as k, MacosWindowsEvent as kn, StatsResult as kr, ErrorEvent as kt, ArchivedListResult as l, LOG_SOURCES as ln, ReplayKeyframeParams as lr, DesktopReportTarget as lt, BuildArtifactIdentity as m, LogSource as mn, RequestId as mr, DesktopStartEndedEvent as mt, ARCHIVED_PAGE_LIMIT as n, InputTouchParams as nn, REPLAY_RATES as nr, DesktopMachineAccessEndedEvent as nt, ArchiveDetailParams as o, KeyframeParams as on, ReloadPlatform as or, DesktopReloadProgressEvent as ot, BuildAndroidOptions as p, LogRecord as pn, ReplayTarget as pr, DesktopSettingsWriteResult as pt, ControlPlatform as q, Platform as qn, WorkspaceEvent as qr, InputButton as qt, ActionName as r, InputWindowParams as rn, ROTATE_DIRECTIONS as rr, DesktopMachineAccessProgressEvent as rt, ArchiveDetailResult as s, LEGACY_PUSH_EVENTS as sn, ReplayEndedEvent as sr, DesktopReportEvent as st, ACTIONS as t, InputTextParams as tn, REPLAY_MARKER_KINDS as tr, DesktopLogFilter as tt, BUILD_METHODS as u, LegacyPushEvent as un, ReplayMarker as ur, DesktopRunEndedEvent as ut, BuildClientSummary as v, MAX_INPUT_TEXT as vn, ServerEvent as vr, DesktopWorktreeRemoveEndedEvent as vt, BuildMachineReport as w, MachineHistoryParams as wn, ServerUpdateStartParams as wr, DevicePosture as wt, BuildJobOutcome as x, MachineDetails as xn, ServerUpdateOutcome as xr, DesktopWorktreeWarmProgressEvent as xt, BuildFile as y, MAX_LOG_TAIL as yn, ServerMessage as yr, DesktopWorktreeRemoveProgressEvent as yt, CONTROL_END_REASONS as z, NotificationTarget as zn, VIDEO_CODECS as zr, FramesSeekResult as zt };
@@ -1,2 +1,2 @@
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 };
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
@@ -35,6 +35,11 @@ const CAPABILITIES = [
35
35
  * `native-xcode-toolchain` accepts native Xcode discovery without unrelated platform or Ruby probes.
36
36
  * `build-artifact-cache` offers and fetches exact completed native Xcode archives without a build job.
37
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.
38
43
  * `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
39
44
  * `status-views` is `workspaces.subscribe`, `workspace.subscribe`, `machine.subscribe`, `builds.history`,
40
45
  * `archived.list`, `worktrees.list` and `maintenance.get`.
@@ -43,6 +48,10 @@ const CAPABILITIES = [
43
48
  * `desktop-settings` reads settings for a selected folder on the authenticated local Desktop connection.
44
49
  * `desktop-settings-write` mutates settings on the proved local Desktop connection.
45
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.
46
55
  * `desktop-reload` streams reload output and its terminal result on the proved local Desktop connection.
47
56
  */
48
57
  const FEATURES = [
@@ -69,6 +78,11 @@ const FEATURES = [
69
78
  "native-xcode-toolchain",
70
79
  "build-artifact-cache",
71
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",
72
86
  "hosted-android-data",
73
87
  "hosted-android-process",
74
88
  "server-update",
@@ -79,8 +93,16 @@ const FEATURES = [
79
93
  "desktop-settings-write",
80
94
  "desktop-full-logs",
81
95
  "desktop-doctor-run",
96
+ "desktop-machine-access",
82
97
  "desktop-stop",
83
- "desktop-reload"
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"
84
106
  ];
85
107
  const METHODS = [
86
108
  "hello",
@@ -92,8 +114,17 @@ const METHODS = [
92
114
  "desktop.settings.write",
93
115
  "desktop.logs.subscribe",
94
116
  "desktop.doctor.run",
117
+ "desktop.machine-access.subscribe",
95
118
  "desktop.stop.subscribe",
96
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",
97
128
  "route.setup",
98
129
  "status.subscribe",
99
130
  "workspaces.subscribe",