@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.
- package/README.md +2 -0
- package/dist/{core-DisO3hs1.mjs → core-BTsCO1nW.mjs} +215 -7
- package/dist/{index-_wkluvP_.d.mts → index-DKq1j8dw.d.mts} +18 -6
- package/dist/index.d.mts +34 -2
- package/dist/index.mjs +2 -2
- package/dist/oversight.mjs +16 -6
- package/dist/{ownership-claim-Bf8Lq6AY.d.mts → ownership-claim-RY3fbm1D.d.mts} +1 -1
- package/dist/ownership-claim.d.mts +1 -1
- package/dist/phone-protocol.d.mts +4 -4
- package/dist/{process-identity-BTyww2Xj.d.mts → process-identity-DVNGpF5c.d.mts} +1 -1
- package/dist/process-identity.d.mts +1 -1
- package/dist/process-identity.mjs +3 -1
- package/dist/{protocol-D8R_3dkO.d.mts → protocol-BjJt4ghB.d.mts} +331 -6
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +32 -1
- package/dist/receive-protocol.mjs +1626 -1219
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +142 -24
- package/package.json +1 -1
|
@@ -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 {
|
|
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
|
|
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
|
-
|
|
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 {
|
|
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 };
|
package/dist/protocol.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
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",
|