@stim-cli/core 1.18.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{core-DWOUn9xp.mjs → core-Btea8jlo.mjs} +14 -2
- package/dist/{index-DcA9D2PQ.d.mts → index-DNBFsz-Q.d.mts} +69 -6
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +2 -2
- package/dist/phone-protocol.d.mts +8 -4
- package/dist/{protocol-DXP_JLAv.d.mts → protocol-Bp-bcZIR.d.mts} +36 -8
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +9 -0
- package/dist/receive-protocol.mjs +1873 -1485
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +160 -53
- package/package.json +1 -1
|
@@ -431,6 +431,17 @@ function absoluteEnvPath(name) {
|
|
|
431
431
|
function configDir() {
|
|
432
432
|
return absoluteEnvPath("STIM_HOME") || path.join(os.homedir(), ".stim");
|
|
433
433
|
}
|
|
434
|
+
/** Creates `dir` and its missing parents owner-only, and narrows an existing `dir` that grants group or other access when the filesystem and owner allow it. */
|
|
435
|
+
function ensurePrivateDir(dir) {
|
|
436
|
+
fs.mkdirSync(dir, {
|
|
437
|
+
recursive: true,
|
|
438
|
+
mode: 448
|
|
439
|
+
});
|
|
440
|
+
if (process.platform === "win32") return;
|
|
441
|
+
try {
|
|
442
|
+
if ((fs.statSync(dir).mode & 63) !== 0) fs.chmodSync(dir, 448);
|
|
443
|
+
} catch {}
|
|
444
|
+
}
|
|
434
445
|
function workspaceSlug(projectRoot) {
|
|
435
446
|
return path.basename(path.resolve(projectRoot)).normalize("NFKD").replace(/[^A-Za-z0-9]+/g, "-").replace(/^-+|-+$/g, "").toLowerCase().slice(0, 48) || "workspace";
|
|
436
447
|
}
|
|
@@ -534,7 +545,8 @@ function buildCacheKey(platform, fingerprintHash, options = {}) {
|
|
|
534
545
|
const compiler = typeof opts.compiler === "string" ? slug(opts.compiler) : "";
|
|
535
546
|
const profile = typeof opts.buildProfile === "string" ? slug(opts.buildProfile) : "";
|
|
536
547
|
const scheme = platform === "ios" && typeof opts.scheme === "string" && opts.scheme ? createHash("sha256").update(opts.scheme).digest("hex") : "";
|
|
537
|
-
|
|
548
|
+
const gradleProject = platform === "android" && typeof opts.gradleProject === "string" && opts.gradleProject ? createHash("sha256").update(opts.gradleProject).digest("hex") : "";
|
|
549
|
+
return `${fingerprintHash}-${buildVariant(platform, opts)}-${target}${abi ? `-${abi}` : ""}${allArch}${compiler ? `-${compiler}` : ""}${profile ? `-${profile}` : ""}${scheme ? `-scheme-${scheme}` : ""}${gradleProject ? `-gradle-${gradleProject}` : ""}`;
|
|
538
550
|
}
|
|
539
551
|
const METRO_NAMED_CACHE_LAYOUT = "metro-named-v1";
|
|
540
552
|
function cacheManifestLockPath(file) {
|
|
@@ -600,4 +612,4 @@ function matchesCache(cache, match) {
|
|
|
600
612
|
return match.layout === void 0 || cache.layout === match.layout;
|
|
601
613
|
}
|
|
602
614
|
//#endregion
|
|
603
|
-
export {
|
|
615
|
+
export { storeArtifact as A, workspaceSlug as C, compiledHelper as D, createMetroGateway as E, withDirLock as M, artifactIn as O, workspaceName as S, createMetroBridge as T, sharedStoreRoot as _, buildCacheRoot as a, workspaceId as b, cachePathSetting as c, hostSimulatorArch as d, metroCacheRoot as f, rotatedLogPath as g, rotateLog as h, buildCacheKey as i, validMacosResourceDestination as j, resolveArtifact as k, configDir as l, registerCache as m, METRO_NAMED_CACHE_LAYOUT as n, cacheManifestLockPath as o, readCacheManifest as p, STORE_ROOT_TAG as r, cacheNameSegment as s, LOG_ROTATE_BYTES as t, ensurePrivateDir as u, tagSharedStore as v, workspaceStateDir as w, workspaceLogDir as x, updateCacheManifest as y };
|
|
@@ -289,11 +289,19 @@ interface StimConfig {
|
|
|
289
289
|
machines?: unknown;
|
|
290
290
|
build?: unknown;
|
|
291
291
|
buildMode?: unknown;
|
|
292
|
+
buildPoolDisabled?: unknown;
|
|
293
|
+
devicePoolDisabled?: unknown;
|
|
292
294
|
};
|
|
293
295
|
[key: string]: unknown;
|
|
294
296
|
}
|
|
295
297
|
type Config = StimConfig;
|
|
296
298
|
//#endregion
|
|
299
|
+
//#region state/automatic-pools.d.ts
|
|
300
|
+
type AutomaticPoolRole = "build" | "device";
|
|
301
|
+
declare function automaticMachineEnabled(role: AutomaticPoolRole, machine: string, config?: StimConfig | null): boolean;
|
|
302
|
+
declare function requireAutomaticMachine(role: AutomaticPoolRole, machine: string): void;
|
|
303
|
+
declare function validateAutomaticPool(role: AutomaticPoolRole, config: StimConfig): void;
|
|
304
|
+
//#endregion
|
|
297
305
|
//#region state/config.d.ts
|
|
298
306
|
declare function withConfigLock<T>(fn: () => T): T;
|
|
299
307
|
declare function configCorruptRepair(path?: string): string;
|
|
@@ -513,6 +521,8 @@ declare function gitMergeCacheDir(): string;
|
|
|
513
521
|
declare function pullRequestCacheDir(): string;
|
|
514
522
|
declare function agentSessionsCacheFile(): string;
|
|
515
523
|
declare function diskUsageCacheDir(): string;
|
|
524
|
+
/** The ownership claim root that admits one disk-usage walk at a time on this machine. */
|
|
525
|
+
declare function diskUsageWalkClaims(): string;
|
|
516
526
|
/** The remote Macs this Mac paired with, each with its pinned tailnet node and device token. */
|
|
517
527
|
declare function buildMachinesFile(): string;
|
|
518
528
|
declare function buildMachinesLock(): string;
|
|
@@ -646,7 +656,7 @@ interface SettingDefinition {
|
|
|
646
656
|
type: SettingType;
|
|
647
657
|
scopes: readonly SettingScope[];
|
|
648
658
|
description: string;
|
|
649
|
-
default?: string | number | boolean;
|
|
659
|
+
default?: string | number | boolean | readonly string[];
|
|
650
660
|
env?: string;
|
|
651
661
|
sensitive?: boolean;
|
|
652
662
|
committedAt?: "repository";
|
|
@@ -724,7 +734,7 @@ interface HostedAppOffer {
|
|
|
724
734
|
session: string;
|
|
725
735
|
attempt: string;
|
|
726
736
|
bundleId: string;
|
|
727
|
-
mode: "development" | "release";
|
|
737
|
+
mode: "development" | "release" | "process";
|
|
728
738
|
devClientScheme?: string;
|
|
729
739
|
arguments?: string[];
|
|
730
740
|
manifest: {
|
|
@@ -1165,6 +1175,17 @@ interface MaintenanceSize {
|
|
|
1165
1175
|
idleDays?: number | null;
|
|
1166
1176
|
blocked?: string;
|
|
1167
1177
|
}
|
|
1178
|
+
/**
|
|
1179
|
+
* A process whose physical footprint, as `top` reports it, is abnormally large. `command` is the one command that
|
|
1180
|
+
* safely restarts or stops it, null when Stim knows none; `note` says what that command does.
|
|
1181
|
+
*/
|
|
1182
|
+
interface MemoryCulprit {
|
|
1183
|
+
pid: number;
|
|
1184
|
+
name: string;
|
|
1185
|
+
bytes: number;
|
|
1186
|
+
command: string | null;
|
|
1187
|
+
note: string | null;
|
|
1188
|
+
}
|
|
1168
1189
|
interface MaintenancePressure {
|
|
1169
1190
|
disk: {
|
|
1170
1191
|
volume: string;
|
|
@@ -1174,6 +1195,8 @@ interface MaintenancePressure {
|
|
|
1174
1195
|
level: "normal" | "warning" | "critical" | null;
|
|
1175
1196
|
availableBytes: number | null;
|
|
1176
1197
|
pressured: boolean;
|
|
1198
|
+
/** Read only while the level is warning or critical; absent otherwise. */
|
|
1199
|
+
culprits?: MemoryCulprit[];
|
|
1177
1200
|
};
|
|
1178
1201
|
warningSince: number | null;
|
|
1179
1202
|
}
|
|
@@ -1396,6 +1419,8 @@ interface BuildReport {
|
|
|
1396
1419
|
missProvisional?: true;
|
|
1397
1420
|
/** What the native build tool is doing now, once it printed a line Stim recognizes. */
|
|
1398
1421
|
detail?: BuildDetail;
|
|
1422
|
+
/** What the `device` or `launch` phase is waiting on, once Stim observed it; absent otherwise and from older Stim. */
|
|
1423
|
+
activity?: BuildActivity;
|
|
1399
1424
|
placement: BuildPlacement;
|
|
1400
1425
|
/** While `phase` is `wait`: the workspace whose build of the same artifact this run waits on, when it is known. */
|
|
1401
1426
|
waitingOn?: {
|
|
@@ -1403,6 +1428,18 @@ interface BuildReport {
|
|
|
1403
1428
|
};
|
|
1404
1429
|
waitingFor?: BuildWaitingFor;
|
|
1405
1430
|
}
|
|
1431
|
+
/**
|
|
1432
|
+
* What a run's `device` or `launch` phase is waiting on. `booting` lasts while the run waits for the owned simulator or
|
|
1433
|
+
* emulator it started booting. `bundling` starts when the app's bundle request reaches this workspace's
|
|
1434
|
+
* Metro and ends when Metro delivered it; `percent` is Metro's own progress for that request, present only once Metro
|
|
1435
|
+
* reported one. `waiting-ready` lasts while the app reports its readiness pending. `startedAt` is when the evidence was
|
|
1436
|
+
* recorded.
|
|
1437
|
+
*/
|
|
1438
|
+
interface BuildActivity {
|
|
1439
|
+
name: "booting" | "bundling" | "waiting-ready";
|
|
1440
|
+
startedAt: string;
|
|
1441
|
+
percent?: number;
|
|
1442
|
+
}
|
|
1406
1443
|
/** One phase a running build is expected to go through, and its median duration in comparable runs. */
|
|
1407
1444
|
interface PlannedPhase {
|
|
1408
1445
|
phase: BuildPhase;
|
|
@@ -1431,7 +1468,7 @@ interface BuildDetail {
|
|
|
1431
1468
|
type BuildCacheHit = "local" | "remote" | false;
|
|
1432
1469
|
/** A platform's most recent `ios` or `android` run in one workspace. */
|
|
1433
1470
|
interface DevicePlacement {
|
|
1434
|
-
decision: "local" | "hosted" | "waited-locally";
|
|
1471
|
+
decision: "local" | "hosted" | "waited-locally" | "eas";
|
|
1435
1472
|
reason: string;
|
|
1436
1473
|
machine?: string;
|
|
1437
1474
|
}
|
|
@@ -1543,6 +1580,21 @@ interface BuildPlanPayload {
|
|
|
1543
1580
|
/** With ios.remote or android.remote set to auto or a Mac, where the plan assumes the device runs, such as `this Mac; auto may use janics-mac-mini`. */
|
|
1544
1581
|
placement?: string;
|
|
1545
1582
|
}
|
|
1583
|
+
/** The read-only `stim macos --plan --json` payload; SwiftPM work and worker availability remain unknown. */
|
|
1584
|
+
interface MacosBuildPlanPayload {
|
|
1585
|
+
platform: "macos";
|
|
1586
|
+
product: string;
|
|
1587
|
+
buildMachine: string;
|
|
1588
|
+
fingerprint: null;
|
|
1589
|
+
cacheKey: null;
|
|
1590
|
+
cacheHit: false;
|
|
1591
|
+
provider: null;
|
|
1592
|
+
cacheSkipped: false;
|
|
1593
|
+
prebuild: null;
|
|
1594
|
+
outcome: null;
|
|
1595
|
+
expectedMs: null;
|
|
1596
|
+
basis: number;
|
|
1597
|
+
}
|
|
1546
1598
|
type ActivityState = "driven" | "active" | "idle" | "unknown";
|
|
1547
1599
|
interface ActivityDriver {
|
|
1548
1600
|
tool: string;
|
|
@@ -1608,7 +1660,7 @@ interface WorktreeFacts {
|
|
|
1608
1660
|
path: string;
|
|
1609
1661
|
branch?: string;
|
|
1610
1662
|
repository?: string;
|
|
1611
|
-
/** Null when git could not be read in time,
|
|
1663
|
+
/** Null when git could not be read in time, the worktree is in a folder status does not open, or one-shot status skipped an idle environment or an unprovisioned worktree. */
|
|
1612
1664
|
git?: WorktreeGit | null;
|
|
1613
1665
|
/** Null when GitHub has no pull request for the branch; absent when unknown, such as without `gh`. */
|
|
1614
1666
|
pullRequest?: WorktreePullRequest | null;
|
|
@@ -1868,7 +1920,7 @@ interface AndroidDeviceState {
|
|
|
1868
1920
|
idleShutdown?: DeviceIdleShutdownRecord;
|
|
1869
1921
|
}
|
|
1870
1922
|
/** The tutorial format version the installed Stim writes into the tutorial app. */
|
|
1871
|
-
declare const TUTORIAL_VERSION =
|
|
1923
|
+
declare const TUTORIAL_VERSION = 2;
|
|
1872
1924
|
interface EnvironmentState {
|
|
1873
1925
|
slots?: {
|
|
1874
1926
|
slot: string;
|
|
@@ -1882,6 +1934,10 @@ interface EnvironmentState {
|
|
|
1882
1934
|
tutorial?: {
|
|
1883
1935
|
version: number;
|
|
1884
1936
|
};
|
|
1937
|
+
/** When `stim doctor` last ran in this workspace, per platform; absent until it has run. */
|
|
1938
|
+
doctorRuns?: Partial<Record<"ios" | "android", {
|
|
1939
|
+
at: string;
|
|
1940
|
+
}>>;
|
|
1885
1941
|
live: boolean;
|
|
1886
1942
|
phase?: WorkspacePhase;
|
|
1887
1943
|
/** When the warm started (`warming`) or finished (`ready`); null for `live` and `idle`. */
|
|
@@ -1936,8 +1992,10 @@ interface EnvironmentState {
|
|
|
1936
1992
|
dir: string;
|
|
1937
1993
|
errorsSinceMarker: number;
|
|
1938
1994
|
} | null;
|
|
1995
|
+
/** `installed` is whether the agent-device executable is on the PATH of the process that ran status. */
|
|
1939
1996
|
agentDevice?: {
|
|
1940
1997
|
stateDir: string;
|
|
1998
|
+
installed?: boolean;
|
|
1941
1999
|
};
|
|
1942
2000
|
worktree?: WorktreeFacts | null;
|
|
1943
2001
|
remoteDevices?: RemoteDeviceState[];
|
|
@@ -2037,6 +2095,8 @@ declare function withDerivedFacts<T extends EnvironmentState>(env: T): T;
|
|
|
2037
2095
|
//#region state/status-measures.d.ts
|
|
2038
2096
|
/** The file that caches `path`'s measured size, one file per folder. */
|
|
2039
2097
|
declare function diskUsageCacheFile(path: string): string;
|
|
2098
|
+
/** The file that records when the last walk of `path` failed, so other processes do not repeat it at once. */
|
|
2099
|
+
declare function diskUsageFailureFile(path: string): string;
|
|
2040
2100
|
/** The file that caches the pull request of the worktree at `path`. */
|
|
2041
2101
|
declare function pullRequestCacheFile(path: string): string;
|
|
2042
2102
|
/** One file of the disk-usage or pull-request cache. */
|
|
@@ -2061,6 +2121,8 @@ interface PullRequestCacheEntry {
|
|
|
2061
2121
|
declare function readPullRequestCache(path: string): PullRequestCacheEntry | null;
|
|
2062
2122
|
/** The cached size of the folder at `path`, or null before it was measured. */
|
|
2063
2123
|
declare function readDiskUsage(path: string): DiskMeasure | null;
|
|
2124
|
+
/** When the last walk of `path` failed (an ISO time), or null when none is recorded. */
|
|
2125
|
+
declare function readDiskUsageFailure(path: string): string | null;
|
|
2064
2126
|
/** The running build's tool detail its process last wrote, when the file belongs to the build with `claimId`. */
|
|
2065
2127
|
declare function readBuildDetail(root: string, claimId: string): BuildDetail | null;
|
|
2066
2128
|
/** The coding-agent sessions `status --watch` last found running on this Mac, and when it looked. */
|
|
@@ -2261,6 +2323,7 @@ declare function readStatsReport(key: string | null, now: number): {
|
|
|
2261
2323
|
report: StatsReport;
|
|
2262
2324
|
note: string | null;
|
|
2263
2325
|
};
|
|
2326
|
+
declare function projectRootDirectories(startDir: string): Generator<string>;
|
|
2264
2327
|
declare function findProjectRoot(startDir: string): string | null;
|
|
2265
2328
|
//#endregion
|
|
2266
2329
|
//#region state/device-host-machines.d.ts
|
|
@@ -2397,4 +2460,4 @@ declare function readSetupJournal(hash: string): SetupJournal | null;
|
|
|
2397
2460
|
declare function isJournalExpired(journal: SetupJournal, now?: number): boolean;
|
|
2398
2461
|
declare function isSetupJournalPrunable(journal: SetupJournal, now: number): boolean;
|
|
2399
2462
|
//#endregion
|
|
2400
|
-
export { readRunEstimates as $, isLayeredSetting as $a, HostedAgentGrant as $i, readHostedMacosApp as $n, sharedPods as $o, MAINTENANCE_LOG_NAME as $r, ParkedMax as $s, BuildResult as $t, DeviceHostMachineCredential as A, ANDROID_COMPILER_CACHE_CHOICES as Aa, saturation as Ac, HostedIosChoice as Ai, StatsPlatform as An, deviceHostMachinesClaims as Ao, HostedAndroidPlacement as Ar, readLogRecords as As, ActiveBuildState as At, RunHistory as B, SETTING_SCOPES as Ba, AgentActionReaderOptions as Bc, parseHostedDevice as Bi, WebBrowserState as Bn, gitMergeCacheDir as Bo, parseHostedNativePlacement as Br, readCreatedDevices as Bs, BuildCacheHit as Bt, pinnedEndpoint as C, readHostedAppMetadata as Ca, SupervisorRecord as Cc, HostedDeviceOffer as Ci, PhysicalDeviceConnection as Cn, archiveLock as Co, HostedIosPlacement as Cr, fileSizes as Cs, readEndedAgentSessions as Ct, HostedMetroRequest as D, SETTINGS_SCHEMA_FILE as Da, buildSlotPath as Dc, HostedDeviceRequest as Di, RunOutcomeKind as Dn, configLockPath as Do, hostedIosStatus as Dr, parseSince as Ds, ACTIVITY_RECENCY_BASES as Dt, HostedMetroGateway as E, validHostedAppBlob as Ea, MachineCapacity as Ec, HostedDevicePlatform as Ei, RemoteDeviceState as En, buildMachinesLock as Eo, hostedIosRecords as Er, markerWindow as Es, withGitChip as Et, HISTORY_LIMIT as F, OffloadMode as Fa, AgentDeviceUsage as Fc, deviceHostRoot as Fi, TUTORIAL_VERSION as Fn, easMachineStateRoot as Fo, hostedAndroidStatus as Fr, countErrorEntries as Fs, AndroidDeviceState as Ft, StatsCapacityWait as G, SettingsPayload as Ga, SOURCES as Gc, parseHostedRequest as Gi, WorktreeGit as Gn, maintenanceRunClaims as Go, DEVICE_RECLAIM_REASON as Gr, readJsonObject as Gs, BuildMissCategory as Gt, STATS_VERSION as H, SettingEntry as Ha, createAgentActionReader as Hc, parseHostedNativeOffer as Hi, WorkspacePhase as Hn, maintenanceChildLogFile as Ho, BUILD_HISTORY_KEY as Hr, validEasSessionClaim as Hs, BuildDetail as Ht, OffloadSummary as I, REMOTE_DEVICE_BACKENDS as Ia, AgentDeviceUsageRoots as Ic, hostedConsolePort as Ii, WEB_PAGE_STATES as In, easSessionLedgerFile as Io, parseHostedAndroidPlacement as Ir, CreatedDevicePlatform as Is, AndroidRuntimeFacts as It, StatsReport as J, WEB_VIEWPORTS as Ja, parseNdjsonText as Jc, readHostedSessions as Ji, MacosAppState as Jn, serverSetupDir as Jo, DevServerStopRequest as Jr, DEBUG_ENV as Js, BuildPhase as Jt, StatsPlacement as K, TUNNEL_MODES as Ka, levelRank as Kc, readHostedDevice as Ki, WorktreePullRequest as Kn, maintenanceStateFile as Ko, DEV_SERVER_STOP_REQUEST_KEY as Kr, readStateFile as Ks, BuildMissChange as Kt, PLACEMENT_DECISIONS as L, RemoteDeviceBackend as La, agentDeviceUsageFile as Lc, hostedDeviceId as Li, WORKSPACE_PHASES as Ln, easSessionLedgerLock as Lo, unreadableHostedAndroid as Lr, CreatedDevices as Ls, AppPresence as Lt, BuildMachineTotals as M, ANDROID_PCH_CHOICES as Ma, SwiftpmCacheUsage as Mc, HostedNativeOffer as Mi, StatusIssue as Mn, deviceHostMachinesLock as Mo, hostedAndroidDeviceName as Mr, recordMatches as Ms, ActivityRecencyBasis as Mt, CAPACITY_REFUSAL_LIMIT as N, IOS_SIMULATOR_APPS as Na, readSwiftpmCacheUsage as Nc, assertHostedDeviceLedger as Ni, StatusIssueCode as Nn, deviceViewersDir as No, hostedAndroidPlacements as Nr, sortByTs as Ns, AgentSession as Nt, hostedMetroGateways as O, SETTINGS_SCHEMA_URL as Oa, buildSlotsDir as Oc, HostedDeviceSelectors as Oi, STATUS_ISSUE_CODES as On, createdDevicesFile as Oo, parseHostedIosPlacement as Or, queryJsonLogs as Os, AGENT_TOOLS as Ot, CAPACITY_REFUSAL_MAX_AGE_MS as P, OFFLOAD_MODES as Pa, swiftpmCacheUsageFile as Pc, deviceHostArea as Pi, StatusPayload as Pn, diskUsageCacheDir as Po, hostedAndroidRecords as Pr, tailRead as Ps, AgentTool as Pt, offloadSummary as Q, expectedShape as Qa, HostedAgentDriverName as Qi, parseMacosRecord as Qn, sharedGradle as Qo, LAST_BUILD_KEYS as Qr, debugLoggingEnabled as Qs, BuildReport as Qt, ReadStatsResult as R, SETTINGS as Ra, readAgentDeviceUsage as Rc, parseHostedAndroidDevice as Ri, WORKSPACE_STAGE_KINDS as Rn, emulatorLogFile as Ro, HostedNativePlacement as Rr, EasSessionClaim as Rs, BUILD_PHASES as Rt, parseMachine as S, readHostedApp as Sa, StimConfig as Sc, HostedDevice as Si, PHYSICAL_DEVICE_CONNECTIONS as Sn, archiveDir as So, readMaintenanceState as Sr, compileGrep as Ss, readDiskUsage as St, HOSTED_METRO_REQUESTS_KEY as T, validHostedAppArguments as Ta, readBuildMachines as Tc, HostedDevicePhase as Ti, PlannedPhase as Tn, buildMachinesFile as To, hostedIosPlacements as Tr, logFiles as Ts, withDerivedFacts as Tt, StatsBucket as U, SettingScope as Ua, LEVELS as Uc, parseHostedOfferRequest as Ui, WorkspaceStage as Un, maintenanceDir as Uo, BUILD_HISTORY_LIMIT as Ur, isJsonObject as Us, BuildDiagnostic as Ut, RunSample as V, SettingDefinition as Va, AgentTarget as Vc, parseHostedLocalDeviceCount as Vi, WebPageState as Vn, maintenanceAttemptFile as Vo, unreadableHostedNative as Vr, readEasSessionLedger as Vs, BuildCause as Vt, StatsCapacityRefusal as W, SettingType as Wa, NdjsonRecord as Wc, parseHostedPlatformDevice as Wi, WorktreeFacts as Wn, maintenanceNdjsonFile as Wo, DEVICE_IDLE_SHUTDOWN_KEY as Wr, readJsonFile as Ws, BuildHistoryEntry as Wt, decodeStats as X, acceptsShape as Xa, HOSTED_MACOS_APP_SLOTS as Xi, MacosProcess as Xn, sharedCcache as Xo, IDLE_STOP_KEY as Xr, createDebugLog as Xs, BuildPlanPayload as Xt, StatsScope as Y, WebViewport as Ya, readNdjsonGenerations as Yc, HOSTED_AGENT_DRIVERS as Yi, MacosBuild as Yn, setupJournalFile as Yo, DeviceIdleShutdownRecord as Yr, DebugLog as Ys, BuildPlacement as Yt, findProjectRoot as Z, coerceSettingText as Za, HostedAgentAccess as Zi, macosAppState as Zn, sharedCompilationCache as Zo, IdleStopRecord as Zr, debugLogDir as Zs, BuildPlatform as Zt, Endpoint as _, hostedAppArea as _a, DoctorRunRecord as _c, readWorkspaceAgent as _i, MachineUsageState as _n, openSegmentName as _o, MaintenanceSize as _r, QueryCriteria as _s, endedAgentSessionOf as _t, parseSetupJournal as a, hostedMacosAppSlot as aa, getConcurrencyLimits as ac, WorkspaceState as ai, DevicePlacement as an, validRunId as ao, archivedUsage as ar, workspaceDerivedData as as, trimSamples as at, endpoint as b, parseHostedAppManifest as ba, RepoRecord as bc, HostedAndroidChoice as bi, NATIVE_BUILD_STEPS as bn, recordingEnabled as bo, parseMaintenanceState as br, buildCriteria as bs, readAgentSessionsCache as bt, HOSTED_LOGS_FIRST_BYTES as c, parseHostedAgentGrant as ca, getProjectSetting as cc, parseMissReason as ci, EnvironmentDisk as cn, RECORDING_PLATFORMS as co, readArchiveState as cr, workspaceGradleBuild as cs, ViewedDevice as ct, HostedLogsPage as d, parseHostedMacosPlacement as da, isPathPrefix as dc, readDevServerStopRequest as di, GitChipPart as dn, RecordingPlatform as do, MaintenanceActionKind as dr, workspaceMetadataFile as ds, AgentSessionsCache as dt, HostedAgentLease as ea, allMetroPorts as ec, MetroLastStop as ei, BuildWaitingFor as en, isSensitiveReference as eo, readMacosRecord as er, statsFile as es, readStats as et, hostedMacosLogsDir as f, HOSTED_APP_CHUNK_BYTES as fa, loadConfig as fc, readDeviceIdleShutdowns as fi, LastBuildReport as fn, capDrops as fo, MaintenanceCheck as fr, workspaceRecordingsDir as fs, ENDED_AGENT_RETENTION_MS as ft, readLogsSince as g, HostedAppRecord as ga, DeviceRecord as gc, readWarmRecord as gi, MachineOwnerKind as gn, listSegments as go, MaintenanceRecord as gr, NATIVE_CRASH_LOG_PREFIX as gs, diskUsageCacheFile as gt, readHostedNativeLogsCheckpoint as h, HostedAppOffer as ha, Config as hc, readLastBuilds as hi, MachineOwner as hn, listRecordedDevices as ho, MaintenancePressure as hr, ERROR_SOURCES as hs, agentSessionOf as ht, isSetupJournalPrunable as i, HostedMacosPlacement as ia, findProjectByMetroPort as ic, WarmRecord as ii, DeviceLeaseState as in, runId as io, archiveEnabled as ir, workspaceBuildDetailFile as is, trimCapacityWaits as it, readDeviceHostMachines as j, ANDROID_EMULATOR_APPS as ja, tryAcquireBuildSlotClaim as jc, HostedIosDevice as ji, StatusCapacity as jn, deviceHostMachinesFile as jo, HostedAndroidStatus as jr, readLogTimeline as js, ActivityDriver as jt, hostedMetroRequests as k, settingsJsonSchema as ka, machineCapacity as kc, HostedDeviceSession as ki, SimulatorState as kn, createdDevicesLock as ko, unreadableHostedIos as kr, queryLogs as ks, APP_PROCESS_STATES as kt, HOSTED_LOGS_PAGE_BYTES as l, parseHostedMacosChoice as la, getProjectSettings as lc, readBuildHistory as li, EnvironmentState as ln, RecordedDevice as lo, readArchives as lr, workspaceLogErrorIndex as ls, readViewedDevices as lt, parseHostedLogsCursor as m, HostedAppFile as ma, ConcurrencyLimits as mc, readIdleStop as mi, MEMORY_SOURCES as mn, footageDrops as mo, MaintenancePass as mr, workspaceStateLock as ms, StatusCacheEntry as mt, SetupJournal as n, HostedMacosChoice as na, configCorruptRepair as nc, WARM_KEY as ni, DeviceActivity as nn, settingValueError as no, ArchivedUsage as nr, supervisorPidFile as ns, statsProjectKey as nt, readSetupJournal as o, hostedMacosBundleId as oa, getParkedMax as oc, buildDiagnostics as oi, DiskMeasure as on, RECORDING_CAP_BYTES as oo, linkReplacedArchives as or, workspaceEndedAgentsFile as os, wholePhases as ot, hostedNativeLogsDir as p, HostedAppDelivery as pa, withConfigLock as pc, readDevicePlacement as pi, MACHINE_OWNER_KINDS as pn, closedSegmentName as po, MaintenanceMode as pr, workspaceStateFile as ps, PullRequestCacheEntry as pt, StatsRecord as q, TunnelMode as qa, parseNdjsonLine as qc, readHostedDeviceLedger as qi, MacosAppRecord as qn, pullRequestCacheDir as qo, DevServerStopRecord as qr, withStateReadCache as qs, BuildMissReason as qt, isJournalExpired as r, HostedMacosDevice as ra, findEnclosingWorktreeRoot as rc, WORKSPACE_AGENT_KEY as ri, DeviceAppProcess as rn, RUN_ID_ENV as ro, ArchivedWorkspace as rr, workspaceAgentDeviceDir as rs, trimCapacityRefusals as rt, agentDeviceStateDirs as s, parseHostedAgentAccess as sa, getProject as sc, lastUseFrom as si, EndedAgentSession as sn, RECORDING_FOOTAGE_MS as so, readArchive as sr, workspaceEndedAgentsLock as ss, DeviceViewersRecord as st, SetupCapability as t, HostedAppLaunch as ta, buildWorkerRoot as tc, READY_PHASE_MS as ti, ChecksState as tn, settingDefinition as to, ArchivedBytes as tr, supervisorLogFile as ts, readStatsReport as tt, HostedLogsCursor as u, parseHostedMacosDevice as ua, getRepoSettings as uc, readDevServerStop as ui, GitChip as un, RecordedSegment as uo, MaintenanceAction as ur, workspaceLogsDir as us, stimBuildDigest as ut, TAILNET_MACHINE_PATTERN as v, hostedAppAttempt as va, PlatformRecords as vc, readWorkspaceState as vi, MemorySource as vn, recordedBytes as vo, MaintenanceState as vr, advanceTail as vs, listStatusCacheEntries as vt, HOSTED_METRO_GATEWAYS_KEY as w, rememberHostedAppBlobRename as wa, BuildMachineCredential as wc, HostedDeviceOfferRequest as wi, PhysicalDeviceState as wn, archiveRoot as wo, HostedIosStatus as wr, followLogs as ws, readPullRequestCache as wt, findPeer as x, parseHostedAppOffer as xa, SettingsObject as xc, HostedAndroidDevice as xi, NativeBuildStep as xn, agentSessionsCacheFile as xo, readMaintenanceAttempt as xr, bundleMarkerPlatform as xs, readBuildDetail as xt, TailnetPeer as y, hostedAppBlobs as ya, ProjectRecord as yc, workspaceLastUsed as yi, MetroBundleState as yn, recordingDeviceName as yo, MaintenanceStatus as yr, attachExpoErrorContext as ys, pullRequestCacheFile as yt, RunEstimates as z, SETTING_GROUPS as za, readAgentDeviceUsageCache as zc, parseHostedChoice as zi, WarmStep as zn, getConfigPath as zo, hostedNativeRecords as zr, EasSessionLedgerRead as zs, BUILD_RESULTS as zt };
|
|
2463
|
+
export { projectRootDirectories as $, TunnelMode as $a, createAgentActionReader as $c, readHostedDeviceLedger as $i, MacosAppState as $n, maintenanceStateFile as $o, DevServerStopRecord as $r, readStateFile as $s, BuildPlacement as $t, DeviceHostMachineCredential as A, rememberHostedAppBlobRename as Aa, ProjectRecord as Ac, HostedDeviceOfferRequest as Ai, PlannedPhase as An, archiveRoot as Ao, HostedIosStatus as Ar, fileSizes as As, ACTIVITY_RECENCY_BASES as At, RunHistory as B, OFFLOAD_MODES as Ba, machineCapacity as Bc, deviceHostArea as Bi, TUTORIAL_VERSION as Bn, diskUsageCacheDir as Bo, hostedAndroidRecords as Br, sortByTs as Bs, AppPresence as Bt, pinnedEndpoint as C, hostedAppArea as Ca, requireAutomaticMachine as Cc, readWorkspaceAgent as Ci, MemorySource as Cn, openSegmentName as Co, MaintenanceState as Cr, NATIVE_CRASH_LOG_PREFIX as Cs, readBuildDetail as Ct, HostedMetroRequest as D, parseHostedAppOffer as Da, DeviceRecord as Dc, HostedAndroidDevice as Di, PHYSICAL_DEVICE_CONNECTIONS as Dn, agentSessionsCacheFile as Do, readMaintenanceAttempt as Dr, buildCriteria as Ds, readPullRequestCache as Dt, HostedMetroGateway as E, parseHostedAppManifest as Ea, Config as Ec, HostedAndroidChoice as Ei, NativeBuildStep as En, recordingEnabled as Eo, parseMaintenanceState as Er, attachExpoErrorContext as Es, readEndedAgentSessions as Et, HISTORY_LIMIT as F, settingsJsonSchema as Fa, BuildMachineCredential as Fc, HostedDeviceSession as Fi, StatsPlatform as Fn, createdDevicesLock as Fo, unreadableHostedIos as Fr, queryJsonLogs as Fs, ActivityRecencyBasis as Ft, StatsCapacityWait as G, SETTING_GROUPS as Ga, swiftpmCacheUsageFile as Gc, parseHostedChoice as Gi, WebBrowserState as Gn, emulatorLogFile as Go, hostedNativeRecords as Gr, EasSessionClaim as Gs, BuildCause as Gt, STATS_VERSION as H, REMOTE_DEVICE_BACKENDS as Ha, tryAcquireBuildSlotClaim as Hc, hostedConsolePort as Hi, WORKSPACE_PHASES as Hn, easMachineStateRoot as Ho, parseHostedAndroidPlacement as Hr, countErrorEntries as Hs, BUILD_RESULTS as Ht, OffloadSummary as I, ANDROID_COMPILER_CACHE_CHOICES as Ia, readBuildMachines as Ic, HostedIosChoice as Ii, StatusCapacity as In, deviceHostMachinesClaims as Io, HostedAndroidPlacement as Ir, queryLogs as Is, AgentSession as It, StatsReport as J, SettingEntry as Ja, agentDeviceUsageFile as Jc, parseHostedNativeOffer as Ji, WorkspaceStage as Jn, maintenanceAttemptFile as Jo, BUILD_HISTORY_KEY as Jr, readEasSessionLedger as Js, BuildHistoryEntry as Jt, StatsPlacement as K, SETTING_SCOPES as Ka, AgentDeviceUsage as Kc, parseHostedDevice as Ki, WebPageState as Kn, getConfigPath as Ko, parseHostedNativePlacement as Kr, EasSessionLedgerRead as Ks, BuildDetail as Kt, PLACEMENT_DECISIONS as L, ANDROID_EMULATOR_APPS as La, MachineCapacity as Lc, HostedIosDevice as Li, StatusIssue as Ln, deviceHostMachinesFile as Lo, HostedAndroidStatus as Lr, readLogRecords as Ls, AgentTool as Lt, BuildMachineTotals as M, validHostedAppBlob as Ma, SettingsObject as Mc, HostedDevicePlatform as Mi, RunOutcomeKind as Mn, buildMachinesLock as Mo, hostedIosRecords as Mr, logFiles as Ms, APP_PROCESS_STATES as Mt, CAPACITY_REFUSAL_LIMIT as N, SETTINGS_SCHEMA_FILE as Na, StimConfig as Nc, HostedDeviceRequest as Ni, STATUS_ISSUE_CODES as Nn, configLockPath as No, hostedIosStatus as Nr, markerWindow as Ns, ActiveBuildState as Nt, hostedMetroGateways as O, readHostedApp as Oa, DoctorRunRecord as Oc, HostedDevice as Oi, PhysicalDeviceConnection as On, archiveDir as Oo, readMaintenanceState as Or, bundleMarkerPlatform as Os, withDerivedFacts as Ot, CAPACITY_REFUSAL_MAX_AGE_MS as P, SETTINGS_SCHEMA_URL as Pa, SupervisorRecord as Pc, HostedDeviceSelectors as Pi, SimulatorState as Pn, createdDevicesFile as Po, parseHostedIosPlacement as Pr, parseSince as Ps, ActivityDriver as Pt, offloadSummary as Q, TUNNEL_MODES as Qa, AgentTarget as Qc, readHostedDevice as Qi, MacosAppRecord as Qn, maintenanceRunClaims as Qo, DEV_SERVER_STOP_REQUEST_KEY as Qr, readJsonObject as Qs, BuildPhase as Qt, ReadStatsResult as R, ANDROID_PCH_CHOICES as Ra, buildSlotPath as Rc, HostedNativeOffer as Ri, StatusIssueCode as Rn, deviceHostMachinesLock as Ro, hostedAndroidDeviceName as Rr, readLogTimeline as Rs, AndroidDeviceState as Rt, parseMachine as S, HostedAppRecord as Sa, automaticMachineEnabled as Sc, readWarmRecord as Si, MacosBuildPlanPayload as Sn, listSegments as So, MaintenanceSize as Sr, ERROR_SOURCES as Ss, readAgentSessionsCache as St, HOSTED_METRO_REQUESTS_KEY as T, hostedAppBlobs as Ta, ConcurrencyLimits as Tc, workspaceLastUsed as Ti, NATIVE_BUILD_STEPS as Tn, recordingDeviceName as To, MemoryCulprit as Tr, advanceTail as Ts, readDiskUsageFailure as Tt, StatsBucket as U, RemoteDeviceBackend as Ua, SwiftpmCacheUsage as Uc, hostedDeviceId as Ui, WORKSPACE_STAGE_KINDS as Un, easSessionLedgerFile as Uo, unreadableHostedAndroid as Ur, CreatedDevicePlatform as Us, BuildActivity as Ut, RunSample as V, OffloadMode as Va, saturation as Vc, deviceHostRoot as Vi, WEB_PAGE_STATES as Vn, diskUsageWalkClaims as Vo, hostedAndroidStatus as Vr, tailRead as Vs, BUILD_PHASES as Vt, StatsCapacityRefusal as W, SETTINGS as Wa, readSwiftpmCacheUsage as Wc, parseHostedAndroidDevice as Wi, WarmStep as Wn, easSessionLedgerLock as Wo, HostedNativePlacement as Wr, CreatedDevices as Ws, BuildCacheHit as Wt, decodeStats as X, SettingType as Xa, readAgentDeviceUsageCache as Xc, parseHostedPlatformDevice as Xi, WorktreeGit as Xn, maintenanceDir as Xo, DEVICE_IDLE_SHUTDOWN_KEY as Xr, isJsonObject as Xs, BuildMissChange as Xt, StatsScope as Y, SettingScope as Ya, readAgentDeviceUsage as Yc, parseHostedOfferRequest as Yi, WorktreeFacts as Yn, maintenanceChildLogFile as Yo, BUILD_HISTORY_LIMIT as Yr, validEasSessionClaim as Ys, BuildMissCategory as Yt, findProjectRoot as Z, SettingsPayload as Za, AgentActionReaderOptions as Zc, parseHostedRequest as Zi, WorktreePullRequest as Zn, maintenanceNdjsonFile as Zo, DEVICE_RECLAIM_REASON as Zr, readJsonFile as Zs, BuildMissReason as Zt, Endpoint as _, parseHostedMacosPlacement as _a, getRepoSettings as _c, readDevServerStopRequest as _i, MACHINE_OWNER_KINDS as _n, RecordingPlatform as _o, MaintenanceCheck as _r, workspaceLogsDir as _s, diskUsageCacheFile as _t, parseSetupJournal as a, HostedAgentGrant as aa, debugLoggingEnabled as ac, MAINTENANCE_LOG_NAME as ai, parseNdjsonText as al, ChecksState as an, isLayeredSetting as ao, readMacosRecord as ar, sharedGradle as as, trimCapacityWaits as at, endpoint as b, HostedAppFile as ba, withConfigLock as bc, readIdleStop as bi, MachineOwnerKind as bn, footageDrops as bo, MaintenancePressure as br, workspaceStateFile as bs, listStatusCacheEntries as bt, HOSTED_LOGS_FIRST_BYTES as c, HostedMacosChoice as ca, buildWorkerRoot as cc, WARM_KEY as ci, DeviceLeaseState as cn, settingValueError as co, ArchivedWorkspace as cr, supervisorLogFile as cs, DeviceViewersRecord as ct, HostedLogsPage as d, hostedMacosAppSlot as da, findProjectByMetroPort as dc, WorkspaceState as di, EndedAgentSession as dn, validRunId as do, linkReplacedArchives as dr, workspaceBuildDetailFile as ds, stimBuildDigest as dt, readHostedSessions as ea, withStateReadCache as ec, DevServerStopRequest as ei, LEVELS as el, BuildPlanPayload as en, WEB_VIEWPORTS as eo, MacosBuild as er, pullRequestCacheDir as es, readRunEstimates as et, hostedMacosLogsDir as f, hostedMacosBundleId as fa, getConcurrencyLimits as fc, buildDiagnostics as fi, EnvironmentDisk as fn, RECORDING_CAP_BYTES as fo, readArchive as fr, workspaceDerivedData as fs, AgentSessionsCache as ft, readLogsSince as g, parseHostedMacosDevice as ga, getProjectSettings as gc, readDevServerStop as gi, LastBuildReport as gn, RecordedSegment as go, MaintenanceActionKind as gr, workspaceLogErrorIndex as gs, agentSessionOf as gt, readHostedNativeLogsCheckpoint as h, parseHostedMacosChoice as ha, getProjectSetting as hc, readBuildHistory as hi, GitChipPart as hn, RecordedDevice as ho, MaintenanceAction as hr, workspaceGradleBuild as hs, StatusCacheEntry as ht, isSetupJournalPrunable as i, HostedAgentDriverName as ia, debugLogDir as ic, LAST_BUILD_KEYS as ii, parseNdjsonLine as il, BuildWaitingFor as in, expectedShape as io, readHostedMacosApp as ir, sharedCompilationCache as is, trimCapacityRefusals as it, readDeviceHostMachines as j, validHostedAppArguments as ja, RepoRecord as jc, HostedDevicePhase as ji, RemoteDeviceState as jn, buildMachinesFile as jo, hostedIosPlacements as jr, followLogs as js, AGENT_TOOLS as jt, hostedMetroRequests as k, readHostedAppMetadata as ka, PlatformRecords as kc, HostedDeviceOffer as ki, PhysicalDeviceState as kn, archiveLock as ko, HostedIosPlacement as kr, compileGrep as ks, withGitChip as kt, HOSTED_LOGS_PAGE_BYTES as l, HostedMacosDevice as la, configCorruptRepair as lc, WORKSPACE_AGENT_KEY as li, DevicePlacement as ln, RUN_ID_ENV as lo, archiveEnabled as lr, supervisorPidFile as ls, ViewedDevice as lt, parseHostedLogsCursor as m, parseHostedAgentGrant as ma, getProject as mc, parseMissReason as mi, GitChip as mn, RECORDING_PLATFORMS as mo, readArchives as mr, workspaceEndedAgentsLock as ms, PullRequestCacheEntry as mt, SetupJournal as n, HOSTED_MACOS_APP_SLOTS as na, DebugLog as nc, IDLE_STOP_KEY as ni, SOURCES as nl, BuildReport as nn, acceptsShape as no, macosAppState as nr, setupJournalFile as ns, readStatsReport as nt, readSetupJournal as o, HostedAgentLease as oa, ParkedMax as oc, MetroLastStop as oi, readNdjsonGenerations as ol, DeviceActivity as on, isSensitiveReference as oo, ArchivedBytes as or, sharedPods as os, trimSamples as ot, hostedNativeLogsDir as p, parseHostedAgentAccess as pa, getParkedMax as pc, lastUseFrom as pi, EnvironmentState as pn, RECORDING_FOOTAGE_MS as po, readArchiveState as pr, workspaceEndedAgentsFile as ps, ENDED_AGENT_RETENTION_MS as pt, StatsRecord as q, SettingDefinition as qa, AgentDeviceUsageRoots as qc, parseHostedLocalDeviceCount as qi, WorkspacePhase as qn, gitMergeCacheDir as qo, unreadableHostedNative as qr, readCreatedDevices as qs, BuildDiagnostic as qt, isJournalExpired as r, HostedAgentAccess as ra, createDebugLog as rc, IdleStopRecord as ri, levelRank as rl, BuildResult as rn, coerceSettingText as ro, parseMacosRecord as rr, sharedCcache as rs, statsProjectKey as rt, agentDeviceStateDirs as s, HostedAppLaunch as sa, allMetroPorts as sc, READY_PHASE_MS as si, DeviceAppProcess as sn, settingDefinition as so, ArchivedUsage as sr, statsFile as ss, wholePhases as st, SetupCapability as t, HOSTED_AGENT_DRIVERS as ta, DEBUG_ENV as tc, DeviceIdleShutdownRecord as ti, NdjsonRecord as tl, BuildPlatform as tn, WebViewport as to, MacosProcess as tr, serverSetupDir as ts, readStats as tt, HostedLogsCursor as u, HostedMacosPlacement as ua, findEnclosingWorktreeRoot as uc, WarmRecord as ui, DiskMeasure as un, runId as uo, archivedUsage as ur, workspaceAgentDeviceDir as us, readViewedDevices as ut, TAILNET_MACHINE_PATTERN as v, HOSTED_APP_CHUNK_BYTES as va, isPathPrefix as vc, readDeviceIdleShutdowns as vi, MEMORY_SOURCES as vn, capDrops as vo, MaintenanceMode as vr, workspaceMetadataFile as vs, diskUsageFailureFile as vt, HOSTED_METRO_GATEWAYS_KEY as w, hostedAppAttempt as wa, validateAutomaticPool as wc, readWorkspaceState as wi, MetroBundleState as wn, recordedBytes as wo, MaintenanceStatus as wr, QueryCriteria as ws, readDiskUsage as wt, findPeer as x, HostedAppOffer as xa, AutomaticPoolRole as xc, readLastBuilds as xi, MachineUsageState as xn, listRecordedDevices as xo, MaintenanceRecord as xr, workspaceStateLock as xs, pullRequestCacheFile as xt, TailnetPeer as y, HostedAppDelivery as ya, loadConfig as yc, readDevicePlacement as yi, MachineOwner as yn, closedSegmentName as yo, MaintenancePass as yr, workspaceRecordingsDir as ys, endedAgentSessionOf as yt, RunEstimates as z, IOS_SIMULATOR_APPS as za, buildSlotsDir as zc, assertHostedDeviceLedger as zi, StatusPayload as zn, deviceViewersDir as zo, hostedAndroidPlacements as zr, recordMatches as zs, AndroidRuntimeFacts as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -63,6 +63,8 @@ declare function createMetroBridge({ gatewayPort, peer, secret }: {
|
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region index.d.ts
|
|
65
65
|
declare function configDir(): string;
|
|
66
|
+
/** Creates `dir` and its missing parents owner-only, and narrows an existing `dir` that grants group or other access when the filesystem and owner allow it. */
|
|
67
|
+
declare function ensurePrivateDir(dir: string): void;
|
|
66
68
|
declare function workspaceSlug(projectRoot: string): string;
|
|
67
69
|
declare function workspaceId(projectRoot: string): string;
|
|
68
70
|
declare function workspaceName(projectRoot: string): string;
|
|
@@ -88,6 +90,7 @@ interface BuildRunOptions {
|
|
|
88
90
|
arch?: string;
|
|
89
91
|
configuration?: string;
|
|
90
92
|
scheme?: string;
|
|
93
|
+
gradleProject?: string;
|
|
91
94
|
buildConfiguration?: string;
|
|
92
95
|
isSimulator?: boolean;
|
|
93
96
|
device?: string | boolean | null;
|
|
@@ -121,4 +124,4 @@ declare function readCacheManifest(file: string): CacheManifest;
|
|
|
121
124
|
declare function updateCacheManifest(file: string, mutate: (caches: Array<Record<string, unknown>>) => Array<Record<string, unknown>>): CacheManifest;
|
|
122
125
|
declare function registerCache({ dir, name, prune, note, entriesDepth, layout, replaces }: RegisterOptions): void;
|
|
123
126
|
//#endregion
|
|
124
|
-
export { BuildRunOptions, CacheManifest, CacheRegistrationMatch, type DirLockOptions, LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, type MetroBridge, RegisterOptions, STORE_ROOT_TAG, type StoreArtifactOptions, artifactIn, buildCacheKey, buildCacheRoot, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, hostSimulatorArch, metroCacheRoot, quotedPath, readCacheManifest, registerCache, resolveArtifact, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, tagSharedStore, updateCacheManifest, validMacosResourceDestination, withDirLock, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
|
|
127
|
+
export { BuildRunOptions, CacheManifest, CacheRegistrationMatch, type DirLockOptions, LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, type MetroBridge, RegisterOptions, STORE_ROOT_TAG, type StoreArtifactOptions, artifactIn, buildCacheKey, buildCacheRoot, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, ensurePrivateDir, hostSimulatorArch, metroCacheRoot, quotedPath, readCacheManifest, registerCache, resolveArtifact, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, tagSharedStore, updateCacheManifest, validMacosResourceDestination, withDirLock, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { S as quotedPath } from "./ownership-claim-O31Y5iIb.mjs";
|
|
2
|
-
import { A as
|
|
3
|
-
export { LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, STORE_ROOT_TAG, artifactIn, buildCacheKey, buildCacheRoot, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, hostSimulatorArch, metroCacheRoot, quotedPath, readCacheManifest, registerCache, resolveArtifact, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, tagSharedStore, updateCacheManifest, validMacosResourceDestination, withDirLock, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
|
|
2
|
+
import { A as storeArtifact, C as workspaceSlug, D as compiledHelper, E as createMetroGateway, M as withDirLock, O as artifactIn, S as workspaceName, T as createMetroBridge, _ as sharedStoreRoot, a as buildCacheRoot, b as workspaceId, c as cachePathSetting, d as hostSimulatorArch, f as metroCacheRoot, g as rotatedLogPath, h as rotateLog, i as buildCacheKey, j as validMacosResourceDestination, k as resolveArtifact, l as configDir, m as registerCache, n as METRO_NAMED_CACHE_LAYOUT, o as cacheManifestLockPath, p as readCacheManifest, r as STORE_ROOT_TAG, s as cacheNameSegment, t as LOG_ROTATE_BYTES, u as ensurePrivateDir, v as tagSharedStore, w as workspaceStateDir, x as workspaceLogDir, y as updateCacheManifest } from "./core-Btea8jlo.mjs";
|
|
3
|
+
export { LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, STORE_ROOT_TAG, artifactIn, buildCacheKey, buildCacheRoot, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, ensurePrivateDir, hostSimulatorArch, metroCacheRoot, quotedPath, readCacheManifest, registerCache, resolveArtifact, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, tagSharedStore, updateCacheManifest, validMacosResourceDestination, withDirLock, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { $t as BuildPlacement, Gn as WebBrowserState, It as AgentSession, Jn as WorkspaceStage, Jt as BuildHistoryEntry, Kt as BuildDetail, Ln as StatusIssue, Pn as SimulatorState, Qn as MacosAppRecord, Rt as AndroidDeviceState, Ut as BuildActivity, Xn as WorktreeGit, Xt as BuildMissChange, Yn as WorktreeFacts, Zn as WorktreePullRequest, Zt as BuildMissReason, br as MaintenancePressure, cn as DeviceLeaseState, cr as ArchivedWorkspace, en as BuildPlanPayload, er as MacosBuild, fn as EnvironmentDisk, gn as LastBuildReport, hr as MaintenanceAction, in as BuildWaitingFor, jn as RemoteDeviceState, kn as PhysicalDeviceState, mn as GitChip, nn as BuildReport, on as DeviceActivity, pn as EnvironmentState, qt as BuildDiagnostic, sn as DeviceAppProcess, ua as HostedMacosPlacement, un as DiskMeasure, wn as MetroBundleState, wr as MaintenanceStatus, xn as MachineUsageState, yn as MachineOwner, yr as MaintenancePass, zn as StatusPayload } from "./index-DNBFsz-Q.mjs";
|
|
2
|
+
import { $n as TouchPhase, $t as Methods, An as ReplayMarker, B as DEVICE_HOST_METHODS, Dn as ReplayEndedEvent, Dt as KeyModifier, F as ControlBeginParams, Fn as RotateDirection, Ft as LogRecord, H as DeviceAuth, I as ControlBeginResult, In as SERVER_UPDATE_METHODS, It as LogSource, Jn as SimulatorOptions, Jt as MachineVolume, K as DevicePosture, Lt as LogsEndedEvent, Mn as ReplaySpan, Nn as ReplayTarget, Nt as LogFilter, On as ReplayKeyframe, Pt as LogLevel, R as ControlEndedEvent, Rn as ServerEvent, Rt as LogsEvent, S as BuildPlanParams, St as InputSimulatorParams, T as BuildProgressEvent, U as DeviceFrameArtwork, Ut as MachineDetails, W as DeviceFrameEvent, Wt as MachineHistory, Xn as StatusEvent, Xt as MacosWindowsEvent, Z as ErrorEvent, _n as PushEvent, _t as InputKey, a as ArchiveDetailParams, an as NotificationSuppression, cn as NotificationsListResult, ct as FramesSubscribeResult, dn as PROTOCOL_VERSION, dt as HelloResult, fr as WorkspaceDiff, gn as ProtocolError, gr as WorkspacePatch, hn as Platform, ht as InputButton, i as ActionResult, in as NotificationLevel, it as FrameTarget, jn as ReplayRange, kn as ReplayKeyframeParams, m as BuildClientSummary, mn as PairingAuth, mr as WorkspaceFiles, n as ActionName, nn as NotificationEntry, nr as UsageSample, nt as FrameDelayedEvent, pr as WorkspaceFile, q as DeviceUsageSeries, qn as SimulatorCommand, qt as MachineUsage, r as ActionParams, rn as NotificationEvent, rt as FrameEvent, s as BUILD_METHODS, t as ACTIONS, tr as UsageHistory, ut as HelloParams, vn as PushRegisterParams, y as BuildMachineReport, zt as LogsQueryResult } from "./protocol-Bp-bcZIR.mjs";
|
|
3
3
|
//#region phone-protocol.d.ts
|
|
4
4
|
type PhonePlatform = BuildPlanParams["platform"];
|
|
5
5
|
type PhoneDevicePlatform = Platform;
|
|
@@ -30,7 +30,7 @@ type PhoneDeviceActivity = Omit<DeviceActivity, "state"> & {
|
|
|
30
30
|
state: string;
|
|
31
31
|
};
|
|
32
32
|
type PhoneBuildPhase = string;
|
|
33
|
-
type PhoneBuildReport = Omit<BuildReport, "outcomeKnown" | "placement" | "missProvisional" | "platform" | "state" | "phase" | "outcome" | "cacheLookupOutcome" | "plannedPhases" | "missReason" | "detail" | "waitingFor"> & {
|
|
33
|
+
type PhoneBuildReport = Omit<BuildReport, "outcomeKnown" | "placement" | "missProvisional" | "platform" | "state" | "phase" | "outcome" | "cacheLookupOutcome" | "plannedPhases" | "missReason" | "detail" | "activity" | "waitingFor"> & {
|
|
34
34
|
outcomeKnown?: boolean;
|
|
35
35
|
placement?: PhoneBuildPlacement;
|
|
36
36
|
missProvisional?: boolean;
|
|
@@ -45,6 +45,7 @@ type PhoneBuildReport = Omit<BuildReport, "outcomeKnown" | "placement" | "missPr
|
|
|
45
45
|
}[] | null;
|
|
46
46
|
missReason?: PhoneBuildMissReason;
|
|
47
47
|
detail?: PhoneBuildDetail;
|
|
48
|
+
activity?: PhoneBuildActivity;
|
|
48
49
|
waitingFor?: Omit<BuildWaitingFor, "kind"> & {
|
|
49
50
|
kind: string;
|
|
50
51
|
};
|
|
@@ -54,6 +55,9 @@ type PhoneBuildDetail = Omit<BuildDetail, "step" | "unit"> & {
|
|
|
54
55
|
step: string | null;
|
|
55
56
|
unit: string | null;
|
|
56
57
|
};
|
|
58
|
+
type PhoneBuildActivity = Omit<BuildActivity, "name"> & {
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
57
61
|
type PhoneBuildCacheHit = string | false;
|
|
58
62
|
type PhoneBuildMissCategory = string;
|
|
59
63
|
type PhoneBuildMissChange = Omit<BuildMissChange, "change" | "category"> & {
|
|
@@ -477,4 +481,4 @@ type PhoneResponse<M extends PhoneMethod = PhoneMethod> = {
|
|
|
477
481
|
};
|
|
478
482
|
type PhoneServerMessage = PhoneResponse | PhoneServerEvent;
|
|
479
483
|
//#endregion
|
|
480
|
-
export { ACTIONS, type PhoneActionName as ActionName, PhoneActionName, type PhoneActionParams as ActionParams, PhoneActionParams, type PhoneActionResult as ActionResult, PhoneActionResult, type PhoneAgentSession as AgentSession, PhoneAgentSession, type PhoneAndroidState as AndroidState, PhoneAndroidState, type PhoneAppPresence as AppPresence, PhoneAppPresence, type PhoneArchiveDetailResult as ArchiveDetailResult, PhoneArchiveDetailResult, type PhoneBuildCacheHit as BuildCacheHit, PhoneBuildCacheHit, type PhoneBuildClientSummary as BuildClientSummary, PhoneBuildClientSummary, type PhoneBuildDetail as BuildDetail, PhoneBuildDetail, type PhoneBuildDiagnostic as BuildDiagnostic, PhoneBuildDiagnostic, type PhoneBuildHistoryEntry as BuildHistoryEntry, PhoneBuildHistoryEntry, type PhoneBuildMachineReport as BuildMachineReport, PhoneBuildMachineReport, type PhoneBuildMissCategory as BuildMissCategory, PhoneBuildMissCategory, type PhoneBuildMissChange as BuildMissChange, PhoneBuildMissChange, type PhoneBuildMissReason as BuildMissReason, PhoneBuildMissReason, type PhoneBuildPhase as BuildPhase, PhoneBuildPhase, type PhoneBuildPlacement as BuildPlacement, PhoneBuildPlacement, type PhoneBuildPlan as BuildPlan, PhoneBuildPlan, type PhoneBuildPlanParams as BuildPlanParams, PhoneBuildPlanParams, type PhoneBuildReport as BuildReport, PhoneBuildReport, type PhoneBuildResult as BuildResult, PhoneBuildResult, type PhoneClientAuth as ClientAuth, PhoneClientAuth, type PhoneControlBeginParams as ControlBeginParams, PhoneControlBeginParams, type PhoneControlBeginResult as ControlBeginResult, PhoneControlBeginResult, type PhoneControlEndedEvent as ControlEndedEvent, PhoneControlEndedEvent, type PhoneDeviceActivity as DeviceActivity, PhoneDeviceActivity, type PhoneDeviceAppProcess as DeviceAppProcess, PhoneDeviceAppProcess, type PhoneDeviceDisk as DeviceDisk, PhoneDeviceDisk, type PhoneDeviceFrameArtwork as DeviceFrameArtwork, PhoneDeviceFrameArtwork, type PhoneDeviceFrameEvent as DeviceFrameEvent, PhoneDeviceFrameEvent, type PhoneDeviceLeaseState as DeviceLeaseState, PhoneDeviceLeaseState, type PhoneDevicePlatform as DevicePlatform, PhoneDevicePlatform, type PhoneDevicePosture as DevicePosture, PhoneDevicePosture, type PhoneEndedAgentSession as EndedAgentSession, PhoneEndedAgentSession, type PhoneEnvironmentState as EnvironmentState, PhoneEnvironmentState, type PhoneErrorEvent as ErrorEvent, PhoneErrorEvent, type PhoneFrameDelayedEvent as FrameDelayedEvent, PhoneFrameDelayedEvent, type PhoneFrameEvent as FrameEvent, PhoneFrameEvent, type PhoneFrameTarget as FrameTarget, PhoneFrameTarget, type PhoneGitChipFacts as GitChipFacts, PhoneGitChipFacts, type PhoneGitChipPart as GitChipPart, PhoneGitChipPart, type PhoneHelloResult as HelloResult, PhoneHelloResult, type PhoneInputButton as InputButton, PhoneInputButton, type PhoneInputKey as InputKey, PhoneInputKey, type PhoneInputSimulatorParams as InputSimulatorParams, PhoneInputSimulatorParams, type PhoneKeyModifier as KeyModifier, PhoneKeyModifier, type PhoneLastBuild as LastBuild, PhoneLastBuild, type PhoneLogFilter as LogFilter, PhoneLogFilter, type PhoneLogLevel as LogLevel, PhoneLogLevel, type PhoneLogRecord as LogRecord, PhoneLogRecord, type PhoneLogSource as LogSource, PhoneLogSource, type PhoneLogsEndedEvent as LogsEndedEvent, PhoneLogsEndedEvent, type PhoneLogsEvent as LogsEvent, PhoneLogsEvent, type PhoneMachineDetails as MachineDetails, PhoneMachineDetails, type PhoneMachineHistory as MachineHistory, PhoneMachineHistory, type PhoneMachineOwner as MachineOwner, PhoneMachineOwner, type PhoneMachineOwnerKind as MachineOwnerKind, PhoneMachineOwnerKind, type PhoneMachineUsage as MachineUsage, PhoneMachineUsage, type PhoneMachineUsageState as MachineUsageState, PhoneMachineUsageState, type PhoneMachineVolume as MachineVolume, PhoneMachineVolume, type PhoneMacosAppState as MacosAppState, PhoneMacosAppState, type PhoneMacosWindowsEvent as MacosWindowsEvent, PhoneMacosWindowsEvent, type PhoneMemoryPressure as MemoryPressure, PhoneMemoryPressure, type PhoneMethod as Method, PhoneMethod, type PhoneMethods as Methods, PhoneMethods, type PhoneMetroBundle as MetroBundle, PhoneMetroBundle, type PhoneNotificationEntry as NotificationEntry, PhoneNotificationEntry, type PhoneNotificationEvent as NotificationEvent, PhoneNotificationEvent, type PhoneNotificationLevel as NotificationLevel, PhoneNotificationLevel, type PhoneNotificationSuppression as NotificationSuppression, PhoneNotificationSuppression, type PhoneNotificationTarget as NotificationTarget, PhoneNotificationTarget, type PhoneNotificationsListResult as NotificationsListResult, PhoneNotificationsListResult, PROTOCOL_VERSION, type PhonePairingPayload as PairingPayload, PhonePairingPayload, PhoneMaintenanceStatus, PhonePhysicalDeviceState, type PhonePhysicalDeviceState as PhysicalDeviceState, PhonePlatform, type PhonePlatform as Platform, PhoneProtocolError, type PhoneProtocolError as ProtocolError, PhonePullRequestFacts, type PhonePullRequestFacts as PullRequestFacts, PhonePushEvent, type PhonePushEvent as PushEvent, PhonePushRegisterParams, type PhonePushRegisterParams as PushRegisterParams, PhoneReloadPlatform, type PhoneReloadPlatform as ReloadPlatform, PhoneRemoteDeviceState, type PhoneRemoteDeviceState as RemoteDeviceState, PhoneReplayEndedEvent, type PhoneReplayEndedEvent as ReplayEndedEvent, PhoneReplayKeyframe, type PhoneReplayKeyframe as ReplayKeyframe, PhoneReplayMarker, type PhoneReplayMarker as ReplayMarker, PhoneReplayRange, type PhoneReplayRange as ReplayRange, PhoneReplayRate, type PhoneReplayRate as ReplayRate, PhoneReplaySpan, type PhoneReplaySpan as ReplaySpan, PhoneResponse, type PhoneResponse as Response, PhoneRotateDirection, type PhoneRotateDirection as RotateDirection, PhoneServerEvent, type PhoneServerEvent as ServerEvent, PhoneServerMessage, type PhoneServerMessage as ServerMessage, PhoneSimState, type PhoneSimState as SimState, PhoneSimulatorCommand, type PhoneSimulatorCommand as SimulatorCommand, PhoneSimulatorOptions, type PhoneSimulatorOptions as SimulatorOptions, PhoneStackFrame, type PhoneStackFrame as StackFrame, PhoneStageFacts, type PhoneStageFacts as StageFacts, PhoneStatusEvent, type PhoneStatusEvent as StatusEvent, PhoneStatusIssue, type PhoneStatusIssue as StatusIssue, PhoneStatusPayload, type PhoneStatusPayload as StatusPayload, PhoneStatusUsage, type PhoneStatusUsage as StatusUsage, PhoneTouchPhase, type PhoneTouchPhase as TouchPhase, PhoneUsageSample, type PhoneUsageSample as UsageSample, PhoneWebBrowserState, type PhoneWebBrowserState as WebBrowserState, PhoneWorkspaceDiff, type PhoneWorkspaceDiff as WorkspaceDiff, PhoneWorkspaceDisk, type PhoneWorkspaceDisk as WorkspaceDisk, PhoneWorkspaceFile, type PhoneWorkspaceFile as WorkspaceFile, PhoneWorkspaceFiles, type PhoneWorkspaceFiles as WorkspaceFiles, PhoneWorkspacePatch, type PhoneWorkspacePatch as WorkspacePatch, PhoneWorktreeFacts, type PhoneWorktreeFacts as WorktreeFacts, PhoneWorktreeGit, type PhoneWorktreeGit as WorktreeGit };
|
|
484
|
+
export { ACTIONS, type PhoneActionName as ActionName, PhoneActionName, type PhoneActionParams as ActionParams, PhoneActionParams, type PhoneActionResult as ActionResult, PhoneActionResult, type PhoneAgentSession as AgentSession, PhoneAgentSession, type PhoneAndroidState as AndroidState, PhoneAndroidState, type PhoneAppPresence as AppPresence, PhoneAppPresence, type PhoneArchiveDetailResult as ArchiveDetailResult, PhoneArchiveDetailResult, type PhoneBuildActivity as BuildActivity, PhoneBuildActivity, type PhoneBuildCacheHit as BuildCacheHit, PhoneBuildCacheHit, type PhoneBuildClientSummary as BuildClientSummary, PhoneBuildClientSummary, type PhoneBuildDetail as BuildDetail, PhoneBuildDetail, type PhoneBuildDiagnostic as BuildDiagnostic, PhoneBuildDiagnostic, type PhoneBuildHistoryEntry as BuildHistoryEntry, PhoneBuildHistoryEntry, type PhoneBuildMachineReport as BuildMachineReport, PhoneBuildMachineReport, type PhoneBuildMissCategory as BuildMissCategory, PhoneBuildMissCategory, type PhoneBuildMissChange as BuildMissChange, PhoneBuildMissChange, type PhoneBuildMissReason as BuildMissReason, PhoneBuildMissReason, type PhoneBuildPhase as BuildPhase, PhoneBuildPhase, type PhoneBuildPlacement as BuildPlacement, PhoneBuildPlacement, type PhoneBuildPlan as BuildPlan, PhoneBuildPlan, type PhoneBuildPlanParams as BuildPlanParams, PhoneBuildPlanParams, type PhoneBuildReport as BuildReport, PhoneBuildReport, type PhoneBuildResult as BuildResult, PhoneBuildResult, type PhoneClientAuth as ClientAuth, PhoneClientAuth, type PhoneControlBeginParams as ControlBeginParams, PhoneControlBeginParams, type PhoneControlBeginResult as ControlBeginResult, PhoneControlBeginResult, type PhoneControlEndedEvent as ControlEndedEvent, PhoneControlEndedEvent, type PhoneDeviceActivity as DeviceActivity, PhoneDeviceActivity, type PhoneDeviceAppProcess as DeviceAppProcess, PhoneDeviceAppProcess, type PhoneDeviceDisk as DeviceDisk, PhoneDeviceDisk, type PhoneDeviceFrameArtwork as DeviceFrameArtwork, PhoneDeviceFrameArtwork, type PhoneDeviceFrameEvent as DeviceFrameEvent, PhoneDeviceFrameEvent, type PhoneDeviceLeaseState as DeviceLeaseState, PhoneDeviceLeaseState, type PhoneDevicePlatform as DevicePlatform, PhoneDevicePlatform, type PhoneDevicePosture as DevicePosture, PhoneDevicePosture, type PhoneEndedAgentSession as EndedAgentSession, PhoneEndedAgentSession, type PhoneEnvironmentState as EnvironmentState, PhoneEnvironmentState, type PhoneErrorEvent as ErrorEvent, PhoneErrorEvent, type PhoneFrameDelayedEvent as FrameDelayedEvent, PhoneFrameDelayedEvent, type PhoneFrameEvent as FrameEvent, PhoneFrameEvent, type PhoneFrameTarget as FrameTarget, PhoneFrameTarget, type PhoneGitChipFacts as GitChipFacts, PhoneGitChipFacts, type PhoneGitChipPart as GitChipPart, PhoneGitChipPart, type PhoneHelloResult as HelloResult, PhoneHelloResult, type PhoneInputButton as InputButton, PhoneInputButton, type PhoneInputKey as InputKey, PhoneInputKey, type PhoneInputSimulatorParams as InputSimulatorParams, PhoneInputSimulatorParams, type PhoneKeyModifier as KeyModifier, PhoneKeyModifier, type PhoneLastBuild as LastBuild, PhoneLastBuild, type PhoneLogFilter as LogFilter, PhoneLogFilter, type PhoneLogLevel as LogLevel, PhoneLogLevel, type PhoneLogRecord as LogRecord, PhoneLogRecord, type PhoneLogSource as LogSource, PhoneLogSource, type PhoneLogsEndedEvent as LogsEndedEvent, PhoneLogsEndedEvent, type PhoneLogsEvent as LogsEvent, PhoneLogsEvent, type PhoneMachineDetails as MachineDetails, PhoneMachineDetails, type PhoneMachineHistory as MachineHistory, PhoneMachineHistory, type PhoneMachineOwner as MachineOwner, PhoneMachineOwner, type PhoneMachineOwnerKind as MachineOwnerKind, PhoneMachineOwnerKind, type PhoneMachineUsage as MachineUsage, PhoneMachineUsage, type PhoneMachineUsageState as MachineUsageState, PhoneMachineUsageState, type PhoneMachineVolume as MachineVolume, PhoneMachineVolume, type PhoneMacosAppState as MacosAppState, PhoneMacosAppState, type PhoneMacosWindowsEvent as MacosWindowsEvent, PhoneMacosWindowsEvent, type PhoneMemoryPressure as MemoryPressure, PhoneMemoryPressure, type PhoneMethod as Method, PhoneMethod, type PhoneMethods as Methods, PhoneMethods, type PhoneMetroBundle as MetroBundle, PhoneMetroBundle, type PhoneNotificationEntry as NotificationEntry, PhoneNotificationEntry, type PhoneNotificationEvent as NotificationEvent, PhoneNotificationEvent, type PhoneNotificationLevel as NotificationLevel, PhoneNotificationLevel, type PhoneNotificationSuppression as NotificationSuppression, PhoneNotificationSuppression, type PhoneNotificationTarget as NotificationTarget, PhoneNotificationTarget, type PhoneNotificationsListResult as NotificationsListResult, PhoneNotificationsListResult, PROTOCOL_VERSION, type PhonePairingPayload as PairingPayload, PhonePairingPayload, PhoneMaintenanceStatus, PhonePhysicalDeviceState, type PhonePhysicalDeviceState as PhysicalDeviceState, PhonePlatform, type PhonePlatform as Platform, PhoneProtocolError, type PhoneProtocolError as ProtocolError, PhonePullRequestFacts, type PhonePullRequestFacts as PullRequestFacts, PhonePushEvent, type PhonePushEvent as PushEvent, PhonePushRegisterParams, type PhonePushRegisterParams as PushRegisterParams, PhoneReloadPlatform, type PhoneReloadPlatform as ReloadPlatform, PhoneRemoteDeviceState, type PhoneRemoteDeviceState as RemoteDeviceState, PhoneReplayEndedEvent, type PhoneReplayEndedEvent as ReplayEndedEvent, PhoneReplayKeyframe, type PhoneReplayKeyframe as ReplayKeyframe, PhoneReplayMarker, type PhoneReplayMarker as ReplayMarker, PhoneReplayRange, type PhoneReplayRange as ReplayRange, PhoneReplayRate, type PhoneReplayRate as ReplayRate, PhoneReplaySpan, type PhoneReplaySpan as ReplaySpan, PhoneResponse, type PhoneResponse as Response, PhoneRotateDirection, type PhoneRotateDirection as RotateDirection, PhoneServerEvent, type PhoneServerEvent as ServerEvent, PhoneServerMessage, type PhoneServerMessage as ServerMessage, PhoneSimState, type PhoneSimState as SimState, PhoneSimulatorCommand, type PhoneSimulatorCommand as SimulatorCommand, PhoneSimulatorOptions, type PhoneSimulatorOptions as SimulatorOptions, PhoneStackFrame, type PhoneStackFrame as StackFrame, PhoneStageFacts, type PhoneStageFacts as StageFacts, PhoneStatusEvent, type PhoneStatusEvent as StatusEvent, PhoneStatusIssue, type PhoneStatusIssue as StatusIssue, PhoneStatusPayload, type PhoneStatusPayload as StatusPayload, PhoneStatusUsage, type PhoneStatusUsage as StatusUsage, PhoneTouchPhase, type PhoneTouchPhase as TouchPhase, PhoneUsageSample, type PhoneUsageSample as UsageSample, PhoneWebBrowserState, type PhoneWebBrowserState as WebBrowserState, PhoneWorkspaceDiff, type PhoneWorkspaceDiff as WorkspaceDiff, PhoneWorkspaceDisk, type PhoneWorkspaceDisk as WorkspaceDisk, PhoneWorkspaceFile, type PhoneWorkspaceFile as WorkspaceFile, PhoneWorkspaceFiles, type PhoneWorkspaceFiles as WorkspaceFiles, PhoneWorkspacePatch, type PhoneWorkspacePatch as WorkspacePatch, PhoneWorktreeFacts, type PhoneWorktreeFacts as WorktreeFacts, PhoneWorktreeGit, type PhoneWorktreeGit as WorktreeGit };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ai as HostedDeviceOfferRequest, Fi as HostedDeviceSession, Jt as BuildHistoryEntry, Mi as HostedDevicePlatform, Ni as HostedDeviceRequest, d as HostedLogsPage, en as BuildPlanPayload, ji as HostedDevicePhase, ki as HostedDeviceOffer, sa as HostedAppLaunch, tl as NdjsonRecord, u as HostedLogsCursor, xa as HostedAppOffer, ya as HostedAppDelivery, zn as StatusPayload } from "./index-DNBFsz-Q.mjs";
|
|
2
2
|
//#region protocol.d.ts
|
|
3
3
|
declare const PROTOCOL_VERSION = 1;
|
|
4
4
|
declare const PROTOCOL_SCHEMA_FILE = "protocol.schema.json";
|
|
@@ -27,9 +27,13 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
27
27
|
* bringing it to the front, or with null resumes following the front window.
|
|
28
28
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
29
29
|
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
30
|
+
* `hosted-ios-process` and `hosted-android-process` accept native app offers in process mode, with live process readiness and no Metro.
|
|
31
|
+
* `native-xcode-build` accepts native Xcode provider requests with a separate source-transfer identity.
|
|
32
|
+
* `native-xcode-toolchain` accepts native Xcode discovery without unrelated platform or Ruby probes.
|
|
33
|
+
* `native-gradle-build` accepts declared Gradle transfer inputs with no reusable artifact identity.
|
|
30
34
|
* `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
|
|
31
35
|
*/
|
|
32
|
-
declare const FEATURES: readonly ["physical-ios", "physical-android", "notifications", "macos-window", "macos-windows", "macos-window-select", "macos-window-control", "macos-keyboard-extended", "device-frames", "macos-hosted", "ios-hosted", "android-hosted", "hosted-ios-agent", "hosted-android-agent", "duo-frames", "workspace-diff", "hosted-congestion", "hosted-ios-data", "hosted-android-data", "server-update"];
|
|
36
|
+
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", "native-gradle-build", "hosted-android-data", "hosted-android-process", "server-update"];
|
|
33
37
|
type Feature = (typeof FEATURES)[number];
|
|
34
38
|
declare const METHODS: readonly ["hello", "route.setup", "status.subscribe", "logs.query", "logs.subscribe", "stats.get", "settings.get", "workspace.files", "workspace.diff", "frames.subscribe", "frames.keyframe", "frames.seek", "frames.live", "replay.range", "archive.detail", "replay.keyframe", "recording.set", "build.plan", "machine.get", "machine.history", "machine.details", "unsubscribe", "action", "control.begin", "control.end", "input.touch", "input.text", "input.button", "input.rotate", "input.posture", "input.simulator", "input.scroll", "input.key", "input.window", "push.register", "push.unregister", "notifications.list", "build.offer", "build.sync", "build.start", "build.cancel", "build.artifact", "build.attach", "device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.logs.query", "device-host.metro.open", "device-host.metro.close", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window", "server.update.status", "server.update.start", "server.update.chunk", "machines.update.start", "machines.update.status", "device-host.sessions", "device-host.sessions.stop"];
|
|
35
39
|
/**
|
|
@@ -94,13 +98,13 @@ interface HelloResult {
|
|
|
94
98
|
protocol: number;
|
|
95
99
|
/**
|
|
96
100
|
* The Mac's name, this package's version, the version of the `stim` it runs, and the home directory of the
|
|
97
|
-
* user it runs as, so clients can show paths under it as `~/...`.
|
|
101
|
+
* user it runs as, so clients can show paths under it as `~/...`. A pending approval result has no `home`.
|
|
98
102
|
*/
|
|
99
103
|
server: {
|
|
100
104
|
name: string;
|
|
101
105
|
version: string;
|
|
102
106
|
stim: string;
|
|
103
|
-
home
|
|
107
|
+
home?: string;
|
|
104
108
|
};
|
|
105
109
|
capabilities: Capability[];
|
|
106
110
|
features: Feature[];
|
|
@@ -506,6 +510,7 @@ interface BuildOfferParams {
|
|
|
506
510
|
lockfile?: string;
|
|
507
511
|
/** The project's normalized .ruby-version; absent uses the worker's default Ruby. */
|
|
508
512
|
rubyVersion?: string;
|
|
513
|
+
native?: "xcode" | "gradle";
|
|
509
514
|
}
|
|
510
515
|
/** The toolchain a build must match exactly on both Macs. */
|
|
511
516
|
interface BuildToolchain {
|
|
@@ -558,7 +563,7 @@ interface BuildOfferResult {
|
|
|
558
563
|
/** One file of the client's checkout. A `link` blob holds the symlink's target. */
|
|
559
564
|
interface BuildFile {
|
|
560
565
|
path: string;
|
|
561
|
-
kind: "file" | "exec" | "link";
|
|
566
|
+
kind: "file" | "exec" | "link" | "directory";
|
|
562
567
|
size: number;
|
|
563
568
|
sha256: string;
|
|
564
569
|
}
|
|
@@ -582,10 +587,18 @@ interface BuildAndroidOptions {
|
|
|
582
587
|
gradleBuildCache: boolean;
|
|
583
588
|
pch: "auto" | "on" | "off";
|
|
584
589
|
compilerCache: "ccache" | "none";
|
|
590
|
+
gradleRoot?: string | null;
|
|
591
|
+
module?: string | null;
|
|
592
|
+
}
|
|
593
|
+
interface GradleOffloadInputs {
|
|
594
|
+
complete: true;
|
|
595
|
+
ignored: string[];
|
|
596
|
+
outputs: string[];
|
|
585
597
|
}
|
|
586
598
|
/**
|
|
587
599
|
* Builds the synced manifest of `repo`. The machine refuses unless its fingerprint equals `fingerprint`. iOS
|
|
588
600
|
* needs `runtime`; Android needs `android`; macOS needs `macos` and uses the manifest digest as its fingerprint.
|
|
601
|
+
* Declared native Gradle jobs use a null fingerprint; their sourceDigest is only a transfer identity.
|
|
589
602
|
*/
|
|
590
603
|
interface BuildStartParams {
|
|
591
604
|
repo: string;
|
|
@@ -593,8 +606,21 @@ interface BuildStartParams {
|
|
|
593
606
|
platform: "ios" | "android" | "macos";
|
|
594
607
|
configuration?: string | null;
|
|
595
608
|
scheme?: string | null;
|
|
609
|
+
iosProjectPath?: string | null;
|
|
596
610
|
runtime?: string | null;
|
|
597
|
-
fingerprint: string;
|
|
611
|
+
fingerprint: string | null;
|
|
612
|
+
native?: {
|
|
613
|
+
provider: "xcode";
|
|
614
|
+
sourceDigest: string;
|
|
615
|
+
cacheKey: string;
|
|
616
|
+
arch: "arm64" | "x86_64" | null;
|
|
617
|
+
/** The non-file parameters of the client's artifact identity, so the machine can name what differs. */
|
|
618
|
+
parameters: Record<string, unknown>;
|
|
619
|
+
} | {
|
|
620
|
+
provider: "gradle";
|
|
621
|
+
sourceDigest: string;
|
|
622
|
+
inputs: GradleOffloadInputs;
|
|
623
|
+
};
|
|
598
624
|
packageName?: string | null;
|
|
599
625
|
isExpo?: boolean;
|
|
600
626
|
optimizations?: Record<string, unknown> | null;
|
|
@@ -629,7 +655,9 @@ interface BuildArtifactResult {
|
|
|
629
655
|
type BuildJobOutcome = {
|
|
630
656
|
ok: true;
|
|
631
657
|
artifact: BuildArtifactResult;
|
|
632
|
-
fingerprint: string;
|
|
658
|
+
fingerprint: string | null;
|
|
659
|
+
sourceDigest?: string;
|
|
660
|
+
androidPackage?: string;
|
|
633
661
|
compilationCache: Record<string, unknown>;
|
|
634
662
|
timings: Record<string, number>;
|
|
635
663
|
} | {
|
|
@@ -1521,4 +1549,4 @@ type ServeRoute = {
|
|
|
1521
1549
|
port: number;
|
|
1522
1550
|
};
|
|
1523
1551
|
//#endregion
|
|
1524
|
-
export { FRAME_EDGE as $,
|
|
1552
|
+
export { FRAME_EDGE as $, TouchPhase as $n, Methods as $t, BuildToolchain as A, ReplayMarker as An, LOG_LEVELS as At, DEVICE_HOST_METHODS as B, ServerResponse as Bn, MAX_INPUT_TEXT as Bt, BuildPlanResult as C, ROTATE_DIRECTIONS as Cn, InputTextParams as Ct, BuildStartParams as D, ReplayEndedEvent as Dn, KeyModifier as Dt, BuildRequestAuth as E, ReloadPlatform as En, KEY_MODIFIERS as Et, ControlBeginParams as F, RotateDirection as Fn, LogRecord as Ft, DeviceHostRequestAuth as G, ServerUpdateStatus as Gn, MachineHistoryParams as Gt, DeviceAuth as H, ServerUpdatePackage as Hn, METHODS as Ht, ControlBeginResult as I, SERVER_UPDATE_METHODS as In, LogSource as It, DuoFramePose as J, SimulatorOptions as Jn, MachineVolume as Jt, DevicePosture as K, SettingsResult as Kn, MachineUpdateStatus as Kt, ControlEndParams as L, ServeRoute as Ln, LogsEndedEvent as Lt, CONTROL_END_REASONS as M, ReplaySpan as Mn, LegacyPushEvent as Mt, Capability as N, ReplayTarget as Nn, LogFilter as Nt, BuildSyncParams as O, ReplayKeyframe as On, KeyframeParams as Ot, ClientRequest as P, RequestId as Pn, LogLevel as Pt, FEATURES as Q, TOUCH_PHASES as Qn, Method as Qt, ControlEndedEvent as R, ServerEvent as Rn, LogsEvent as Rt, BuildPlanParams as S, REPLAY_RATES as Sn, InputSimulatorParams as St, BuildProgressEvent as T, RecordingSetResult as Tn, InputWindowParams as Tt, DeviceFrameArtwork as U, ServerUpdateProgress as Un, MachineDetails as Ut, DEVICE_POSTURES as V, ServerUpdateOutcome as Vn, MAX_LOG_TAIL as Vt, DeviceFrameEvent as W, ServerUpdateStartParams as Wn, MachineHistory as Wt, ErrorCode as X, StatusEvent as Xn, MacosWindowsEvent as Xt, ERROR_CODES as Y, StatsResult as Yn, MacosWindow as Yt, ErrorEvent as Z, SubscribeResult as Zn, MemoryPressure as Zt, BuildJobParams as _, PushEvent as _n, InputKey as _t, ArchiveDetailParams as a, NotificationSuppression as an, VIDEO_CODECS as ar, FramesLiveParams as at, BuildOfferParams as b, RELOAD_PLATFORMS as bn, InputRotateParams as bt, BUILD_REPO_PATTERN as c, NotificationsListResult as cn, VIDEO_KEYFRAME as cr, FramesSubscribeResult as ct, BuildArtifactResult as d, PROTOCOL_VERSION as dn, VideoPacket as dr, HelloResult as dt, NOTIFICATION_LEVELS as en, UnsubscribeParams as er, FRAME_FPS as et, BuildAttachResult as f, PUSH_EVENTS as fn, WorkspaceDiff as fr, HostedSessionRow as ft, BuildJobOutcome as g, ProtocolError as gn, WorkspacePatch as gr, InputButtonParams as gt, BuildFile as h, Platform as hn, WorkspaceParams as hr, InputButton as ht, ActionResult as i, NotificationLevel as in, VIDEO_ARTWORK as ir, FrameTarget as it, CAPABILITIES as j, ReplayRange as jn, LOG_SOURCES as jt, BuildSyncResult as k, ReplayKeyframeParams as kn, LEGACY_PUSH_EVENTS as kt, BUILD_RUBY_VERSION_PATTERN as l, PLATFORMS as ln, VIDEO_UNFOLDED as lr, GradleOffloadInputs as lt, BuildClientSummary as m, PairingAuth as mn, WorkspaceFiles as mr, INPUT_KEYS as mt, ActionName as n, NotificationEntry as nn, UsageSample as nr, FrameDelayedEvent as nt, ArchiveDetailResult as o, NotificationTarget as on, VIDEO_FOLDED as or, FramesSeekParams as ot, BuildCapacity as p, PUSH_TOKEN_PATTERN as pn, WorkspaceFile as pr, INPUT_BUTTONS as pt, DeviceUsageSeries as q, SimulatorCommand as qn, MachineUsage as qt, ActionParams as r, NotificationEvent as rn, UsageSeries as rr, FrameEvent as rt, BUILD_METHODS as s, NotificationsListParams as sn, VIDEO_HEADER_VERSION as sr, FramesSeekResult as st, ACTIONS as t, NOTIFICATION_SUPPRESSIONS as tn, UsageHistory as tr, Feature as tt, BuildAndroidOptions as u, PROTOCOL_SCHEMA_FILE as un, VideoCodec as ur, HelloParams as ut, BuildMachineCapacity as v, PushRegisterParams as vn, InputKeyParams as vt, BuildPlatform as w, RecordingSetParams as wn, InputTouchParams as wt, BuildOfferResult as x, REPLAY_MARKER_KINDS as xn, InputScrollParams as xt, BuildMachineReport as y, QuietHours as yn, InputPostureParams as yt, ControlPlatform as z, ServerMessage as zn, LogsQueryResult as zt };
|
package/dist/protocol.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as FRAME_EDGE, $n as
|
|
2
|
-
export { ACTIONS, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_PATTERN, BuildAndroidOptions, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildRequestAuth, BuildStartParams, BuildSyncParams, BuildSyncResult, BuildToolchain, CAPABILITIES, CONTROL_END_REASONS, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DeviceAuth, DeviceFrameArtwork, DeviceFrameEvent, DeviceHostRequestAuth, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, HelloParams, HelloResult, HostedSessionRow, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, PairingAuth, Platform, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, ReplayEndedEvent, ReplayKeyframe, ReplayKeyframeParams, ReplayMarker, ReplayRange, ReplaySpan, ReplayTarget, RequestId, RotateDirection, SERVER_UPDATE_METHODS, ServeRoute, ServerEvent, ServerMessage, ServerResponse, ServerUpdateOutcome, ServerUpdatePackage, ServerUpdateProgress, ServerUpdateStartParams, ServerUpdateStatus, SettingsResult, SimulatorCommand, SimulatorOptions, StatsResult, StatusEvent, SubscribeResult, TOUCH_PHASES, TouchPhase, UnsubscribeParams, UsageHistory, UsageSample, UsageSeries, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED, VideoCodec, VideoPacket, WorkspaceDiff, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch };
|
|
1
|
+
import { $ as FRAME_EDGE, $n as TouchPhase, $t as Methods, A as BuildToolchain, An as ReplayMarker, At as LOG_LEVELS, B as DEVICE_HOST_METHODS, Bn as ServerResponse, Bt as MAX_INPUT_TEXT, C as BuildPlanResult, Cn as ROTATE_DIRECTIONS, Ct as InputTextParams, D as BuildStartParams, Dn as ReplayEndedEvent, Dt as KeyModifier, E as BuildRequestAuth, En as ReloadPlatform, Et as KEY_MODIFIERS, F as ControlBeginParams, Fn as RotateDirection, Ft as LogRecord, G as DeviceHostRequestAuth, Gn as ServerUpdateStatus, Gt as MachineHistoryParams, H as DeviceAuth, Hn as ServerUpdatePackage, Ht as METHODS, I as ControlBeginResult, In as SERVER_UPDATE_METHODS, It as LogSource, J as DuoFramePose, Jn as SimulatorOptions, Jt as MachineVolume, K as DevicePosture, Kn as SettingsResult, Kt as MachineUpdateStatus, L as ControlEndParams, Ln as ServeRoute, Lt as LogsEndedEvent, M as CONTROL_END_REASONS, Mn as ReplaySpan, Mt as LegacyPushEvent, N as Capability, Nn as ReplayTarget, Nt as LogFilter, O as BuildSyncParams, On as ReplayKeyframe, Ot as KeyframeParams, P as ClientRequest, Pn as RequestId, Pt as LogLevel, Q as FEATURES, Qn as TOUCH_PHASES, Qt as Method, R as ControlEndedEvent, Rn as ServerEvent, Rt as LogsEvent, S as BuildPlanParams, Sn as REPLAY_RATES, St as InputSimulatorParams, T as BuildProgressEvent, Tn as RecordingSetResult, Tt as InputWindowParams, U as DeviceFrameArtwork, Un as ServerUpdateProgress, Ut as MachineDetails, V as DEVICE_POSTURES, Vn as ServerUpdateOutcome, Vt as MAX_LOG_TAIL, W as DeviceFrameEvent, Wn as ServerUpdateStartParams, Wt as MachineHistory, X as ErrorCode, Xn as StatusEvent, Xt as MacosWindowsEvent, Y as ERROR_CODES, Yn as StatsResult, Yt as MacosWindow, Z as ErrorEvent, Zn as SubscribeResult, Zt as MemoryPressure, _ as BuildJobParams, _n as PushEvent, _t as InputKey, a as ArchiveDetailParams, an as NotificationSuppression, ar as VIDEO_CODECS, at as FramesLiveParams, b as BuildOfferParams, bn as RELOAD_PLATFORMS, bt as InputRotateParams, c as BUILD_REPO_PATTERN, cn as NotificationsListResult, cr as VIDEO_KEYFRAME, ct as FramesSubscribeResult, d as BuildArtifactResult, dn as PROTOCOL_VERSION, dr as VideoPacket, dt as HelloResult, en as NOTIFICATION_LEVELS, er as UnsubscribeParams, et as FRAME_FPS, f as BuildAttachResult, fn as PUSH_EVENTS, fr as WorkspaceDiff, ft as HostedSessionRow, g as BuildJobOutcome, gn as ProtocolError, gr as WorkspacePatch, gt as InputButtonParams, h as BuildFile, hn as Platform, hr as WorkspaceParams, ht as InputButton, i as ActionResult, in as NotificationLevel, ir as VIDEO_ARTWORK, it as FrameTarget, j as CAPABILITIES, jn as ReplayRange, jt as LOG_SOURCES, k as BuildSyncResult, kn as ReplayKeyframeParams, kt as LEGACY_PUSH_EVENTS, l as BUILD_RUBY_VERSION_PATTERN, ln as PLATFORMS, lr as VIDEO_UNFOLDED, lt as GradleOffloadInputs, m as BuildClientSummary, mn as PairingAuth, mr as WorkspaceFiles, mt as INPUT_KEYS, n as ActionName, nn as NotificationEntry, nr as UsageSample, nt as FrameDelayedEvent, o as ArchiveDetailResult, on as NotificationTarget, or as VIDEO_FOLDED, ot as FramesSeekParams, p as BuildCapacity, pn as PUSH_TOKEN_PATTERN, pr as WorkspaceFile, pt as INPUT_BUTTONS, q as DeviceUsageSeries, qn as SimulatorCommand, qt as MachineUsage, r as ActionParams, rn as NotificationEvent, rr as UsageSeries, rt as FrameEvent, s as BUILD_METHODS, sn as NotificationsListParams, sr as VIDEO_HEADER_VERSION, st as FramesSeekResult, t as ACTIONS, tn as NOTIFICATION_SUPPRESSIONS, tr as UsageHistory, tt as Feature, u as BuildAndroidOptions, un as PROTOCOL_SCHEMA_FILE, ur as VideoCodec, ut as HelloParams, v as BuildMachineCapacity, vn as PushRegisterParams, vt as InputKeyParams, w as BuildPlatform, wn as RecordingSetParams, wt as InputTouchParams, x as BuildOfferResult, xn as REPLAY_MARKER_KINDS, xt as InputScrollParams, y as BuildMachineReport, yn as QuietHours, yt as InputPostureParams, z as ControlPlatform, zn as ServerMessage, zt as LogsQueryResult } from "./protocol-Bp-bcZIR.mjs";
|
|
2
|
+
export { ACTIONS, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_PATTERN, BuildAndroidOptions, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildRequestAuth, BuildStartParams, BuildSyncParams, BuildSyncResult, BuildToolchain, CAPABILITIES, CONTROL_END_REASONS, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DeviceAuth, DeviceFrameArtwork, DeviceFrameEvent, DeviceHostRequestAuth, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, 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, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, PairingAuth, Platform, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, ReplayEndedEvent, ReplayKeyframe, ReplayKeyframeParams, ReplayMarker, ReplayRange, ReplaySpan, ReplayTarget, RequestId, RotateDirection, SERVER_UPDATE_METHODS, ServeRoute, ServerEvent, ServerMessage, ServerResponse, ServerUpdateOutcome, ServerUpdatePackage, ServerUpdateProgress, ServerUpdateStartParams, ServerUpdateStatus, SettingsResult, SimulatorCommand, SimulatorOptions, StatsResult, StatusEvent, SubscribeResult, TOUCH_PHASES, TouchPhase, UnsubscribeParams, UsageHistory, UsageSample, UsageSeries, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED, VideoCodec, VideoPacket, WorkspaceDiff, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch };
|
package/dist/protocol.mjs
CHANGED
|
@@ -30,6 +30,10 @@ const CAPABILITIES = [
|
|
|
30
30
|
* bringing it to the front, or with null resumes following the front window.
|
|
31
31
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
32
32
|
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
33
|
+
* `hosted-ios-process` and `hosted-android-process` accept native app offers in process mode, with live process readiness and no Metro.
|
|
34
|
+
* `native-xcode-build` accepts native Xcode provider requests with a separate source-transfer identity.
|
|
35
|
+
* `native-xcode-toolchain` accepts native Xcode discovery without unrelated platform or Ruby probes.
|
|
36
|
+
* `native-gradle-build` accepts declared Gradle transfer inputs with no reusable artifact identity.
|
|
33
37
|
* `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
|
|
34
38
|
*/
|
|
35
39
|
const FEATURES = [
|
|
@@ -51,7 +55,12 @@ const FEATURES = [
|
|
|
51
55
|
"workspace-diff",
|
|
52
56
|
"hosted-congestion",
|
|
53
57
|
"hosted-ios-data",
|
|
58
|
+
"hosted-ios-process",
|
|
59
|
+
"native-xcode-build",
|
|
60
|
+
"native-xcode-toolchain",
|
|
61
|
+
"native-gradle-build",
|
|
54
62
|
"hosted-android-data",
|
|
63
|
+
"hosted-android-process",
|
|
55
64
|
"server-update"
|
|
56
65
|
];
|
|
57
66
|
const METHODS = [
|