@stim-cli/core 1.25.0 → 1.27.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-Cd3b_fBm.mjs → core-B_w6CiKQ.mjs} +4 -2
- package/dist/{index-kR1gVv1b.d.mts → index-DfpdqDFf.d.mts} +225 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/phone-protocol.d.mts +2 -2
- package/dist/{protocol-XMSnfmrX.d.mts → protocol-D21RXxrx.d.mts} +39 -4
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +5 -0
- package/dist/receive-protocol.mjs +1576 -1423
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +596 -47
- package/package.json +1 -1
|
@@ -578,14 +578,16 @@ const LOCKFILES = [
|
|
|
578
578
|
*/
|
|
579
579
|
function dependencyLockfile(root, project = ".") {
|
|
580
580
|
let dir = normalize(project);
|
|
581
|
+
if (isAbsolute(dir)) return null;
|
|
581
582
|
while (true) {
|
|
582
583
|
const file = LOCKFILES.find((name) => existsSync(join(root, dir, name)));
|
|
583
584
|
if (file) return {
|
|
584
585
|
dir,
|
|
585
586
|
file
|
|
586
587
|
};
|
|
587
|
-
|
|
588
|
-
dir
|
|
588
|
+
const parent = dirname(dir);
|
|
589
|
+
if (dir === "." || parent === dir) return null;
|
|
590
|
+
dir = parent;
|
|
589
591
|
}
|
|
590
592
|
}
|
|
591
593
|
/**
|
|
@@ -188,6 +188,7 @@ interface MachineCapacity {
|
|
|
188
188
|
maxBuilds: number;
|
|
189
189
|
maxLoadPerCore: number;
|
|
190
190
|
}
|
|
191
|
+
declare function maxLoadPerCore(): number;
|
|
191
192
|
declare function machineCapacity(): MachineCapacity;
|
|
192
193
|
/** Why a machine with this capacity should not take another native build; null when it can. */
|
|
193
194
|
declare function saturation(capacity: MachineCapacity): string | null;
|
|
@@ -237,6 +238,10 @@ interface IosDeviceRecord {
|
|
|
237
238
|
owned?: boolean;
|
|
238
239
|
serial?: string;
|
|
239
240
|
simslimManaged?: boolean;
|
|
241
|
+
simslimApplied?: {
|
|
242
|
+
profile: string;
|
|
243
|
+
springBoardPid: number;
|
|
244
|
+
};
|
|
240
245
|
schemeApprovals?: string[];
|
|
241
246
|
[key: string]: unknown;
|
|
242
247
|
}
|
|
@@ -333,7 +338,6 @@ interface StimConfig {
|
|
|
333
338
|
machines?: unknown;
|
|
334
339
|
easMaxDurationMinutes?: unknown;
|
|
335
340
|
build?: unknown;
|
|
336
|
-
buildMode?: unknown;
|
|
337
341
|
buildPoolDisabled?: unknown;
|
|
338
342
|
devicePoolDisabled?: unknown;
|
|
339
343
|
};
|
|
@@ -407,6 +411,48 @@ declare function createDebugLog(component: "cli" | "server", { env, now, base }?
|
|
|
407
411
|
base?: () => Record<string, unknown>;
|
|
408
412
|
}): DebugLog;
|
|
409
413
|
//#endregion
|
|
414
|
+
//#region state/trace.d.ts
|
|
415
|
+
declare const TRACE_ENV = "STIM_TRACE";
|
|
416
|
+
/**
|
|
417
|
+
* `args` with the value of any flag or assignment that looks like a secret, credentials in URLs, token shapes and
|
|
418
|
+
* the `exact` values replaced. `program` selects the flags that carry a credential without a secret-looking name,
|
|
419
|
+
* such as `curl -u`.
|
|
420
|
+
*/
|
|
421
|
+
declare function redactArgv(args: readonly string[], exact?: readonly string[], program?: string): string[];
|
|
422
|
+
/** A shell command line with the same redactions as `redactArgv`, clipped to a fixed length. */
|
|
423
|
+
declare function redactCommandLine(command: string, exact?: readonly string[]): string;
|
|
424
|
+
type TraceArgs = Record<string, unknown>;
|
|
425
|
+
type EndSpan = (args?: TraceArgs) => void;
|
|
426
|
+
type Args = TraceArgs;
|
|
427
|
+
interface TracePhases {
|
|
428
|
+
/** Ends the phase in progress and starts `name`; entering the phase already in progress does nothing. */
|
|
429
|
+
enter(name: string, args?: Args): void;
|
|
430
|
+
end(args?: Args): void;
|
|
431
|
+
}
|
|
432
|
+
interface Trace {
|
|
433
|
+
enabled(): boolean;
|
|
434
|
+
/** Starts a span; the returned function ends it, with optional extra args. */
|
|
435
|
+
begin(name: string, args?: TraceArgs): EndSpan;
|
|
436
|
+
/** `begin` for the outermost span of a process: it ends at exit with the exit code. */
|
|
437
|
+
command(name: string, args?: TraceArgs): void;
|
|
438
|
+
/** `begin` for a child process: same event with the `exec` category. */
|
|
439
|
+
beginExec(name: string, args?: TraceArgs): EndSpan;
|
|
440
|
+
/** Runs `fn` inside a span and ends it when `fn` returns or throws. */
|
|
441
|
+
span<T>(name: string, fn: () => T, args?: TraceArgs): T;
|
|
442
|
+
/** `span` for an async `fn`: ends when its promise settles. */
|
|
443
|
+
spanAsync<T>(name: string, fn: () => Promise<T>, args?: TraceArgs): Promise<T>;
|
|
444
|
+
mark(name: string, args?: TraceArgs): void;
|
|
445
|
+
/** A strip of consecutive, non-overlapping phases on its own track. */
|
|
446
|
+
phases(track: string): TracePhases;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Timing spans for one stim process tree, written as Chrome trace events (open the file in Perfetto or
|
|
450
|
+
* chrome://tracing) when `STIM_TRACE=<path>` is set. Unset, every call is one environment check. A stim command
|
|
451
|
+
* (`trace.command`) truncates the file and writes `[`; every other process that inherits the variable appends one
|
|
452
|
+
* event per line, creating the file if it is missing, so the file has no closing bracket. Child process arguments are written through `redactArgv`.
|
|
453
|
+
*/
|
|
454
|
+
declare const trace: Trace;
|
|
455
|
+
//#endregion
|
|
410
456
|
//#region state/home-identity.d.ts
|
|
411
457
|
/** The persistent, nonsecret identity of this Stim home; null until the CLI initializes it. */
|
|
412
458
|
declare function readHomeIdentity(config?: Config | null): string | null;
|
|
@@ -458,6 +504,25 @@ declare function readEasSessionLedger(root?: string): EasSessionLedgerRead;
|
|
|
458
504
|
*/
|
|
459
505
|
declare function countErrorEntries(records: readonly NdjsonRecord[]): number;
|
|
460
506
|
//#endregion
|
|
507
|
+
//#region state/fingerprint-memo.d.ts
|
|
508
|
+
declare const FINGERPRINT_MEMO_SCHEMA = 1;
|
|
509
|
+
/** Full native fingerprints shared by every workspace of this Stim home, one file per platform and static digest. */
|
|
510
|
+
declare function fingerprintMemoDir(platform?: string): string;
|
|
511
|
+
declare function fingerprintMemoFile(platform: string, digest: string): string;
|
|
512
|
+
declare function fingerprintMemoLock(): string;
|
|
513
|
+
/** The full fingerprint a tree with this static digest produced, written by the CLI. */
|
|
514
|
+
interface FingerprintMemoRecord {
|
|
515
|
+
schema: typeof FINGERPRINT_MEMO_SCHEMA;
|
|
516
|
+
platform: string;
|
|
517
|
+
digest: string;
|
|
518
|
+
recordedAt: number;
|
|
519
|
+
hash: string;
|
|
520
|
+
sources: unknown[];
|
|
521
|
+
/** The packages the static check counted as native, to name the ones a disagreeing check found it missed. */
|
|
522
|
+
nativePackages: string[];
|
|
523
|
+
}
|
|
524
|
+
declare function readFingerprintMemo(platform: string, digest: string): FingerprintMemoRecord | null;
|
|
525
|
+
//#endregion
|
|
461
526
|
//#region state/logs-query.d.ts
|
|
462
527
|
interface SinceResult {
|
|
463
528
|
ms?: number;
|
|
@@ -613,6 +678,15 @@ declare function openLogDir(dir: string, { order, signal }?: {
|
|
|
613
678
|
signal?: AbortSignal;
|
|
614
679
|
}): Promise<LogDir>;
|
|
615
680
|
//#endregion
|
|
681
|
+
//#region state/ndjson-tail.d.ts
|
|
682
|
+
/**
|
|
683
|
+
* Returns a reader of `file` and its rotated generation that yields, on every call, the records a full
|
|
684
|
+
* `readNdjsonGenerations(file)` would, while reading only the bytes appended since the previous call. A file renamed
|
|
685
|
+
* to its rotated generation between two calls is finished from there; any other replacement or a shrunk file is
|
|
686
|
+
* read again from its start. A file rewritten in place to at least its previous length is not detected.
|
|
687
|
+
*/
|
|
688
|
+
declare function createNdjsonTail(file: string): () => NdjsonRecord[];
|
|
689
|
+
//#endregion
|
|
616
690
|
//#region state/paths.d.ts
|
|
617
691
|
declare function getConfigPath(): string;
|
|
618
692
|
declare function configLockPath(): string;
|
|
@@ -630,6 +704,8 @@ declare function workspaceEndedAgentsFile(projectRoot: string): string;
|
|
|
630
704
|
declare function workspaceEndedAgentsLock(projectRoot: string): string;
|
|
631
705
|
declare function supervisorPidFile(projectRoot: string): string;
|
|
632
706
|
declare function workspaceStateFile(projectRoot: string): string;
|
|
707
|
+
/** The dependency directories `gc --delete` deleted from the workspace's worktree, apart from state.json so writing it is not workspace activity. */
|
|
708
|
+
declare function workspaceLightenedFile(projectRoot: string): string;
|
|
633
709
|
declare function workspaceStateLock(projectRoot: string): string;
|
|
634
710
|
declare function supervisorLogFile(projectRoot: string): string;
|
|
635
711
|
declare function emulatorLogFile(projectRoot: string): string;
|
|
@@ -658,11 +734,18 @@ declare function easSessionLedgerFile(root?: string): string;
|
|
|
658
734
|
declare function easSessionLedgerLock(root?: string): string;
|
|
659
735
|
/** Where stim-server records, one file per server process, the devices whose frames a client subscribes to. */
|
|
660
736
|
declare function deviceViewersDir(): string;
|
|
737
|
+
declare function budgetSweepFile(): string;
|
|
738
|
+
declare function budgetSweepLock(): string;
|
|
661
739
|
declare function statsFile(): string;
|
|
662
740
|
declare function maintenanceDir(): string;
|
|
663
741
|
declare function maintenanceStateFile(): string;
|
|
664
742
|
declare function maintenanceAttemptFile(): string;
|
|
665
743
|
declare function maintenanceNdjsonFile(): string;
|
|
744
|
+
declare function gcLogDir(): string;
|
|
745
|
+
declare function gcLogFile(): string;
|
|
746
|
+
declare function buildLedgerDir(): string;
|
|
747
|
+
declare function buildLedgerFile(): string;
|
|
748
|
+
declare function buildLedgerLock(): string;
|
|
666
749
|
declare function maintenanceChildLogFile(): string;
|
|
667
750
|
declare function maintenanceRunClaims(): string;
|
|
668
751
|
/** Dependency trees `worktree remove` moved out of a worktree before git removed it; gc deletes what is left. */
|
|
@@ -670,6 +753,8 @@ declare function trashRoot(): string;
|
|
|
670
753
|
declare function archiveRoot(): string;
|
|
671
754
|
declare function archiveDir(id: string): string;
|
|
672
755
|
declare function archiveLock(): string;
|
|
756
|
+
/** Uncommitted changes of removed worktrees: `<repository>/<branch-or-dir>-<timestamp>/` holding `manifest.json`. */
|
|
757
|
+
declare function worktreeArchiveRoot(): string;
|
|
673
758
|
/** This machine's own long-term X25519 key as a client of other machines' stim-servers. */
|
|
674
759
|
declare function clientIdentityKeyFile(): string;
|
|
675
760
|
/**
|
|
@@ -680,6 +765,23 @@ declare function serverLocalSocket(): string;
|
|
|
680
765
|
declare function serverSetupDir(): string;
|
|
681
766
|
declare function setupJournalFile(hash: string): string | null;
|
|
682
767
|
//#endregion
|
|
768
|
+
//#region state/placement.d.ts
|
|
769
|
+
/**
|
|
770
|
+
* The placement words every workload shares (`remote.build`, `ios.remote`, `android.remote`, `macos.remote` and their
|
|
771
|
+
* flags). Anything else a setting holds is a machine name, or for devices `eas` or `proxy`.
|
|
772
|
+
*
|
|
773
|
+
* - `local`: this machine only.
|
|
774
|
+
* - `auto`: this machine first, a remote machine when this one is full or busy.
|
|
775
|
+
* - `remote`: remote machines first, in `remote.machines` order; this machine only when none takes the run.
|
|
776
|
+
* - `remote-only`: remote machines in `remote.machines` order, never this machine.
|
|
777
|
+
*/
|
|
778
|
+
declare const PLACEMENT_WORDS: readonly ["local", "auto", "remote", "remote-only"];
|
|
779
|
+
type PlacementWord = (typeof PLACEMENT_WORDS)[number];
|
|
780
|
+
type AutomaticPlacement = Exclude<PlacementWord, "local">;
|
|
781
|
+
declare function placementWord(value: string): PlacementWord | null;
|
|
782
|
+
declare function prefersRemote(word: PlacementWord): boolean;
|
|
783
|
+
declare function mayRunHere(word: PlacementWord): boolean;
|
|
784
|
+
//#endregion
|
|
683
785
|
//#region state/recordings.d.ts
|
|
684
786
|
/** The footage stim-server keeps per device: the last 15 minutes recorded, however long ago. */
|
|
685
787
|
declare const RECORDING_FOOTAGE_MS: number;
|
|
@@ -821,6 +923,7 @@ type SettingsPayload = {
|
|
|
821
923
|
scope: SettingScope;
|
|
822
924
|
file: string;
|
|
823
925
|
value: unknown;
|
|
926
|
+
replacement?: string;
|
|
824
927
|
}>;
|
|
825
928
|
};
|
|
826
929
|
/** The masked JSON result of a settings set or unset. */
|
|
@@ -835,8 +938,15 @@ interface SettingWriteResult {
|
|
|
835
938
|
declare const REMOTE_DEVICE_BACKENDS: readonly RemoteDeviceBackend[];
|
|
836
939
|
declare const IOS_SIMULATOR_APPS: readonly ["xcode", "siniulator", "stim-desktop"];
|
|
837
940
|
declare const ANDROID_EMULATOR_APPS: readonly ["emulator", "stim-desktop"];
|
|
838
|
-
declare const
|
|
839
|
-
|
|
941
|
+
declare const REPLACED_SETTINGS: Readonly<Record<string, {
|
|
942
|
+
key: string;
|
|
943
|
+
env?: string;
|
|
944
|
+
value: (old: unknown) => string | null;
|
|
945
|
+
}>>;
|
|
946
|
+
declare function replacementAdvice(key: string, old: unknown): {
|
|
947
|
+
key: string;
|
|
948
|
+
command: string | null;
|
|
949
|
+
} | null;
|
|
840
950
|
declare const WEB_VIEWPORTS: readonly ["desktop", "phone"];
|
|
841
951
|
type WebViewport = (typeof WEB_VIEWPORTS)[number];
|
|
842
952
|
declare const SETTINGS: readonly SettingDefinition[];
|
|
@@ -1052,6 +1162,7 @@ type HostedNativeOffer = {
|
|
|
1052
1162
|
cpus: number;
|
|
1053
1163
|
/** Five-minute system load divided by available CPU count. */
|
|
1054
1164
|
loadPerCore: number;
|
|
1165
|
+
maxLoadPerCore?: number;
|
|
1055
1166
|
memoryFreeBytes: number;
|
|
1056
1167
|
memoryPressure: "normal" | "warning" | "critical" | null;
|
|
1057
1168
|
/** Available bytes on the Stim home volume, not necessarily the Android AVD volume. */
|
|
@@ -1222,6 +1333,11 @@ declare function readLastBuilds(state: WorkspaceState | null | undefined): Parti
|
|
|
1222
1333
|
declare function readBuildHistory(state: WorkspaceState | null | undefined): Partial<Record<BuildPlatform, BuildHistoryEntry[]>>;
|
|
1223
1334
|
declare function readWorkspaceState(root: string): WorkspaceState | null;
|
|
1224
1335
|
declare function lastUseFrom(state: WorkspaceState | null, logMtimes: readonly number[]): number;
|
|
1336
|
+
/**
|
|
1337
|
+
* When an ios, android or macos run last finished in the workspace, from its recorded builds (a cache hit counts),
|
|
1338
|
+
* in epoch milliseconds; NaN when it records none. Dev server starts, reloads and logs do not count.
|
|
1339
|
+
*/
|
|
1340
|
+
declare function lastNativeUseFrom(state: WorkspaceState | null): number;
|
|
1225
1341
|
declare const MAINTENANCE_LOG_NAME = "maintenance.ndjson";
|
|
1226
1342
|
/**
|
|
1227
1343
|
* When the workspace was last used, in epoch milliseconds. A workspace that recorded no use falls back to the mtime
|
|
@@ -1322,7 +1438,7 @@ declare function hostedIosPlacements(state: WorkspaceState | null): Record<strin
|
|
|
1322
1438
|
//#endregion
|
|
1323
1439
|
//#region state/maintenance.d.ts
|
|
1324
1440
|
type MaintenanceMode = "off" | "report" | "on";
|
|
1325
|
-
type MaintenanceCheck = "pressure" | "size" | "worktree" | "sweep";
|
|
1441
|
+
type MaintenanceCheck = "pressure" | "size" | "worktree" | "sweep" | "idle";
|
|
1326
1442
|
type MaintenanceActionKind = "would-clear-outputs" | "would-trim-cache" | "would-empty-cache" | "would-shutdown-device" | "would-stop-workspace" | "would-remove-worktree" | "would-remove-orphan" | "would-unregister-cache" | "would-delete-parked-device" | "would-delete-devices" | "would-clear-build-dirs" | "would-delete-dependencies" | "would-stop-gradle-daemons" | "would-delete-gradle-version" | "would-delete-temp-leftovers";
|
|
1327
1443
|
/** Disk pressure: 0 above every threshold, 1 under the budget floor, 2 under the urgent threshold, 3 under the critical threshold or the hard floor. */
|
|
1328
1444
|
type DiskPressureLevel = 0 | 1 | 2 | 3;
|
|
@@ -2560,6 +2676,10 @@ interface TailnetPeer {
|
|
|
2560
2676
|
address: string;
|
|
2561
2677
|
/** Tailscale's `OS` for the node, such as `macOS` or `linux`; absent when the status does not report it. */
|
|
2562
2678
|
os?: string;
|
|
2679
|
+
/** Tailscale's `Online` for the node: whether the control plane sees it connected. Absent when not reported. */
|
|
2680
|
+
online?: boolean;
|
|
2681
|
+
/** When Tailscale last saw the node, as an ISO timestamp; absent when it never did or the status omits it. */
|
|
2682
|
+
lastSeen?: string;
|
|
2563
2683
|
}
|
|
2564
2684
|
declare function parseMachine(entry: string): {
|
|
2565
2685
|
name: string;
|
|
@@ -2622,6 +2742,106 @@ declare function readHostedNativeLogsCheckpoint(home: string, platform?: "ios" |
|
|
|
2622
2742
|
*/
|
|
2623
2743
|
declare function readLogsSince(dir: string, cursor: HostedLogsCursor): HostedLogsPage;
|
|
2624
2744
|
//#endregion
|
|
2745
|
+
//#region state/gc-log.d.ts
|
|
2746
|
+
type GcLogTrigger = "manual" | "desktop" | "maintenance" | "budget";
|
|
2747
|
+
type GcLogStatus = "done" | "kept" | "failed";
|
|
2748
|
+
interface GcLogOptions {
|
|
2749
|
+
delete?: boolean;
|
|
2750
|
+
worktrees?: boolean;
|
|
2751
|
+
olderThan?: number;
|
|
2752
|
+
cache?: string;
|
|
2753
|
+
idleMs?: number;
|
|
2754
|
+
}
|
|
2755
|
+
interface GcLogRecord extends NdjsonRecord {
|
|
2756
|
+
ts: number;
|
|
2757
|
+
src: "gc";
|
|
2758
|
+
level: "info" | "error";
|
|
2759
|
+
msg: string;
|
|
2760
|
+
event: "gc_item";
|
|
2761
|
+
/** The invocation for `stim gc` and budget runs; the `pass` id of `maintenance.ndjson` for maintenance. */
|
|
2762
|
+
runId: string;
|
|
2763
|
+
trigger: GcLogTrigger;
|
|
2764
|
+
/** For maintenance, the command whose invocation started the pass. */
|
|
2765
|
+
via?: string;
|
|
2766
|
+
options?: GcLogOptions;
|
|
2767
|
+
kind: string;
|
|
2768
|
+
status: GcLogStatus;
|
|
2769
|
+
label: string;
|
|
2770
|
+
id: string | null;
|
|
2771
|
+
path: string | null;
|
|
2772
|
+
bytes: number | null;
|
|
2773
|
+
detail: string | null;
|
|
2774
|
+
}
|
|
2775
|
+
declare function isGcLogRecord(record: NdjsonRecord): record is GcLogRecord;
|
|
2776
|
+
declare function readGcLog(file?: string): GcLogRecord[];
|
|
2777
|
+
//#endregion
|
|
2778
|
+
//#region state/build-ledger.d.ts
|
|
2779
|
+
declare const BUILD_LEDGER_CAP = 500;
|
|
2780
|
+
type BuildLedgerPlatform = "ios" | "android" | "macos";
|
|
2781
|
+
type BuildLedgerOutcome = BuildResult;
|
|
2782
|
+
type BuildLedgerCacheResult = "hit" | "miss" | "bypassed";
|
|
2783
|
+
interface BuildLedgerPlacement {
|
|
2784
|
+
where: "local" | "offloaded";
|
|
2785
|
+
/** The build machine that compiled the app, for an offloaded build. */
|
|
2786
|
+
machine?: string;
|
|
2787
|
+
/** The run considered offloading, then built here; `reason` says why. */
|
|
2788
|
+
fellBack?: true;
|
|
2789
|
+
reason?: string;
|
|
2790
|
+
}
|
|
2791
|
+
interface BuildLedgerCache {
|
|
2792
|
+
result: BuildLedgerCacheResult;
|
|
2793
|
+
/** Where a hit came from. */
|
|
2794
|
+
source?: "local" | "remote";
|
|
2795
|
+
key: string | null;
|
|
2796
|
+
fingerprint: string | null;
|
|
2797
|
+
missReason?: string;
|
|
2798
|
+
}
|
|
2799
|
+
interface BuildLedgerFailure {
|
|
2800
|
+
code: string | null;
|
|
2801
|
+
message: string | null;
|
|
2802
|
+
remedy: string | null;
|
|
2803
|
+
/** The phase the run was in when it failed. */
|
|
2804
|
+
phase: string | null;
|
|
2805
|
+
}
|
|
2806
|
+
/** The simulator, emulator or device the run targeted. Never a serial or UDID. */
|
|
2807
|
+
interface BuildLedgerDevice {
|
|
2808
|
+
name: string;
|
|
2809
|
+
runtime?: string;
|
|
2810
|
+
}
|
|
2811
|
+
/** One native build run, as `stim logs --source builds --json` prints it. */
|
|
2812
|
+
interface BuildLedgerRecord extends NdjsonRecord {
|
|
2813
|
+
/** Epoch milliseconds when the run finished. */
|
|
2814
|
+
ts: number;
|
|
2815
|
+
src: "builds";
|
|
2816
|
+
level: "info" | "warn" | "error";
|
|
2817
|
+
msg: string;
|
|
2818
|
+
event: "build";
|
|
2819
|
+
id: string;
|
|
2820
|
+
/** Epoch milliseconds when the run started. */
|
|
2821
|
+
startedAt: number;
|
|
2822
|
+
project: string;
|
|
2823
|
+
workspace: string;
|
|
2824
|
+
branch: string | null;
|
|
2825
|
+
platform: BuildLedgerPlatform;
|
|
2826
|
+
scheme?: string;
|
|
2827
|
+
variant?: string;
|
|
2828
|
+
configuration: string | null;
|
|
2829
|
+
placement: BuildLedgerPlacement;
|
|
2830
|
+
cache: BuildLedgerCache;
|
|
2831
|
+
durationMs: number;
|
|
2832
|
+
/** Milliseconds in each local phase of the run. */
|
|
2833
|
+
phases: Record<string, number>;
|
|
2834
|
+
/** Milliseconds in each phase on the build machine (`sync`, `deps`, `prebuild`, `pods`, `build`, `fetch`). */
|
|
2835
|
+
offloadPhases?: Record<string, number>;
|
|
2836
|
+
outcome: BuildLedgerOutcome;
|
|
2837
|
+
failure?: BuildLedgerFailure;
|
|
2838
|
+
device?: BuildLedgerDevice;
|
|
2839
|
+
stimVersion: string;
|
|
2840
|
+
}
|
|
2841
|
+
declare function isBuildLedgerRecord(record: NdjsonRecord): record is BuildLedgerRecord;
|
|
2842
|
+
/** The ledger's records, oldest first. A missing or unreadable ledger is empty. */
|
|
2843
|
+
declare function readBuildLedger(file?: string): BuildLedgerRecord[];
|
|
2844
|
+
//#endregion
|
|
2625
2845
|
//#region state/agent-device.d.ts
|
|
2626
2846
|
declare function agentDeviceStateDirs(home?: string, env?: NodeJS.ProcessEnv): string[];
|
|
2627
2847
|
declare function agentDeviceStateDirsAsync(home?: string, env?: NodeJS.ProcessEnv): Promise<string[]>;
|
|
@@ -2736,4 +2956,4 @@ declare class KeyedEntities<T> {
|
|
|
2736
2956
|
/** Applies `delta` to `entities` keyed by `key`, keeping the order of `entities` and appending new keys. */
|
|
2737
2957
|
declare function applyKeyedDelta<T>(entities: readonly T[], delta: KeyedDelta<T>, key: (entity: T) => string): T[];
|
|
2738
2958
|
//#endregion
|
|
2739
|
-
export { ReadStatsResult as $, readHostedAppMetadata as $a, getProjectSettings as $c, HostedDevicePlatform as $i, levelRank as $l, StatusIssueCode as $n, recordingEnabled as $o, unreadableHostedIos as $r, LogDirQuery as $s, AndroidDeviceState as $t, readLogsSince as A, HostedAppLaunch as Aa, EasSessionLedgerRead as Ac, buildDiagnostics as Ai, machineCapacity as Al, GitChipPart as An, isLayeredSetting as Ao, readArchives as Ar, serverSetupDir as As, StatusCacheEntry as At, HOSTED_METRO_REQUESTS_KEY as B, parseHostedMacosDevice as Ba, DEBUG_ENV as Bc, readWarmRecord as Bi, AgentDeviceUsage as Bl, NATIVE_BUILD_STEPS as Bn, RecordedDevice as Bo, MaintenanceSize as Br, workspaceAgentDeviceDir as Bs, readDiskUsageFailure as Bt, HOSTED_LOGS_PAGE_BYTES as C, HOSTED_AGENT_DRIVERS as Ca, recordMatches as Cc, MAINTENANCE_LOG_NAME as Ci, MACHINE_CREDENTIALS_VERSION as Cl, DeviceLeaseState as Cn, TUNNEL_MODES as Co, ArchivedWorkspace as Cr, maintenanceChildLogFile as Cs, DeviceViewersRecord as Ct, hostedNativeLogsDir as D, HostedAgentGrant as Da, CreatedDevicePlatform as Dc, WORKSPACE_AGENT_KEY as Di, MachineCapacity as Dl, EnvironmentDisk as Dn, acceptsShape as Do, readArchive as Dr, maintenanceStateFile as Ds, AgentSessionsCache as Dt, hostedMacosLogsDir as E, HostedAgentDriverName as Ea, countErrorEntries as Ec, WARM_KEY as Ei, readBuildMachines as El, EndedAgentSession as En, WebViewport as Eo, linkReplacedArchives as Er, maintenanceRunClaims as Es, stimBuildDigest as Et, endpoint as F, hostedMacosAppSlot as Fa, readJsonFile as Fc, readDevServerStopRequest as Fi, machineCacheUsageFile as Fl, MachineOwnerKind as Fn, runId as Fo, MaintenanceCheck as Fr, sharedPods as Fs, listStatusCacheEntries as Ft, DeviceHostMachineCredential as G, HostedAppOffer as Ga, ParkedMax as Gc, DeviceHostLimits as Gi, AgentActionReaderOptions as Gl, PlannedPhase as Gn, footageDrops as Go, readMaintenanceAttempt as Gr, workspaceGradleBuild as Gs, ACTIVITY_RECENCY_BASES as Gt, HostedMetroRequest as H, HOSTED_APP_CHUNK_BYTES as Ha, createDebugLog as Hc, readWorkspaceState as Hi, agentDeviceUsageFile as Hl, PHYSICAL_DEVICE_CONNECTIONS as Hn, RecordingPlatform as Ho, MaintenanceStatus as Hr, workspaceDerivedData as Hs, readPullRequestCache as Ht, findPeer as I, hostedMacosBundleId as Ia, readJsonObject as Ic, readDeviceIdleShutdowns as Ii, readMachineCacheUsage as Il, MachineUsageState as In, validRunId as Io, MaintenanceMode as Ir, statsFile as Is, pullRequestCacheFile as It, CAPACITY_REFUSAL_LIMIT as J, hostedAppAttempt as Ja, configCorruptRepair as Jc, HostedAndroidDevice as Ji, createAgentActionReader as Jl, STATUS_ISSUE_CODES as Jn, listSegments as Jo, HostedIosStatus as Jr, workspaceMetadataFile as Js, ActiveBuildState as Jt, readDeviceHostMachines as K, HostedAppRecord as Ka, allMetroPorts as Kc, HOSTED_PARKED_CANDIDATES as Ki, AgentRecordSelection as Kl, RemoteDeviceState as Kn, listRecordedDevices as Ko, readMaintenanceState as Kr, workspaceLogErrorIndex as Ks, AGENT_TOOLS as Kt, machineEndpoint as L, parseHostedAgentAccess as La, readStateFile as Lc, readDevicePlacement as Li, SwiftpmCacheUsage as Ll, MacosBuildPlanPayload as Ln, RECORDING_CAP_BYTES as Lo, MaintenancePass as Lr, supervisorLogFile as Ls, readAgentSessionsCache as Lt, TAILNET_MACHINE_PATTERN as M, HostedMacosDevice as Ma, readEasSessionLedger as Mc, parseMissReason as Mi, tryAcquireBuildSlotClaim as Ml, MACHINE_OWNER_KINDS as Mn, settingDefinition as Mo, DiskPressureLevel as Mr, sharedCcache as Ms, diskUsageCacheFile as Mt, TailnetPeer as N, HostedMacosPlacement as Na, validEasSessionClaim as Nc, readBuildHistory as Ni, MachineCacheUsage as Nl, MEMORY_SOURCES as Nn, settingValueError as No, MaintenanceAction as Nr, sharedCompilationCache as Ns, diskUsageFailureFile as Nt, parseHostedLogsCursor as O, HostedAgentIssuedGrant as Oa, CreatedDevices as Oc, WarmRecord as Oi, buildSlotPath as Ol, EnvironmentState as On, coerceSettingText as Oo, readArchiveAsync as Or, pullRequestCacheDir as Os, ENDED_AGENT_RETENTION_MS as Ot, cannotHost as P, hostedAgentDriverName as Pa, isJsonObject as Pc, readDevServerStop as Pi, SimRuntimeUsage as Pl, MachineOwner as Pn, RUN_ID_ENV as Po, MaintenanceActionKind as Pr, sharedGradle as Ps, endedAgentSessionOf as Pt, PLACEMENT_DECISIONS as Q, readHostedApp as Qa, getProject as Qc, HostedDevicePhase as Qi, SOURCES as Ql, StatusIssue as Qn, recordingDeviceName as Qo, parseHostedIosPlacement as Qr, LogDir as Qs, AgentTool as Qt, parseMachine as R, parseHostedAgentGrant as Ra, withStateReadCache as Rc, readIdleStop as Ri, readSwiftpmCacheUsage as Rl, MemorySource as Rn, RECORDING_FOOTAGE_MS as Ro, MaintenancePressure as Rr, supervisorPidFile as Rs, readBuildDetail as Rt, HOSTED_LOGS_FIRST_BYTES as S, readHostedSessions as Sa, readLogTimeline as Sc, LAST_BUILD_KEYS as Si, BuildMachineCredential as Sl, DeviceAppProcess as Sn, SettingsPayload as So, ArchivedUsage as Sr, maintenanceAttemptFile as Ss, wholePhases as St, HostedLogsPage as T, HostedAgentAccess as Ta, tailRead as Tc, READY_PHASE_MS as Ti, parseMachineCredential as Tl, DiskMeasure as Tn, WEB_VIEWPORTS as To, archivedUsage as Tr, maintenanceNdjsonFile as Ts, readViewedDevices as Tt, hostedMetroGateways as U, HostedAppDelivery as Ua, debugLogDir as Uc, workspaceLastUsed as Ui, readAgentDeviceUsage as Ul, PhysicalDeviceConnection as Un, capDrops as Uo, MemoryCulprit as Ur, workspaceEndedAgentsFile as Us, withDerivedFacts as Ut, HostedMetroGateway as V, parseHostedMacosPlacement as Va, DebugLog as Vc, readWorkspaceAgent as Vi, AgentDeviceUsageRoots as Vl, NativeBuildStep as Vn, RecordedSegment as Vo, MaintenanceState as Vr, workspaceBuildDetailFile as Vs, readEndedAgentSessions as Vt, hostedMetroRequests as W, HostedAppFile as Wa, debugLoggingEnabled as Wc, DEVICE_HOST_LIMITS as Wi, readAgentDeviceUsageCache as Wl, PhysicalDeviceState as Wn, closedSegmentName as Wo, parseMaintenanceState as Wr, workspaceEndedAgentsLock as Ws, withGitChip as Wt, HISTORY_LIMIT as X, parseHostedAppManifest as Xa, getConcurrencyLimits as Xc, HostedDeviceOffer as Xi, LEVELS as Xl, StatsPlatform as Xn, openSegmentName as Xo, hostedIosRecords as Xr, workspaceStateFile as Xs, ActivityRecencyBasis as Xt, CAPACITY_REFUSAL_MAX_AGE_MS as Y, hostedAppBlobs as Ya, findEnclosingWorktreeRoot as Yc, HostedDevice as Yi, createAsyncAgentActionReader as Yl, SimulatorState as Yn, listSegmentsAsync as Yo, hostedIosPlacements as Yr, workspaceRecordingsDir as Ys, ActivityDriver as Yt, OffloadSummary as Z, parseHostedAppOffer as Za, getParkedMax as Zc, HostedDeviceOfferRequest as Zi, NdjsonRecord as Zl, StatusCapacity as Zn, recordedBytes as Zo, hostedIosStatus as Zr, workspaceStateLock as Zs, AgentSession as Zt, isSetupJournalPrunable as _, parseHostedOfferRequest as _a, parseSince as _c, DevServerStopRecord as _i, RepoRecord as _l, BuildReport as _n, SettingDefinition as _o, macosAppState as _r, easSessionLedgerFile as _s, readStatsReport as _t, MachineView as a, HostedNativeOffer as aa, QueryCriteria as ac, hostedAndroidStatus as ai, withConfigLock as al, BuildCacheHit as an, settingsJsonSchema as ao, WarmStep as ar, buildMachinesLock as as, StatsCapacityRefusal as at, agentDeviceStateDirs as b, readHostedDevice as ba, queryLogs as bc, IDLE_STOP_KEY as bi, SupervisorRecord as bl, ChecksState as bn, SettingType as bo, readMacosRecord as br, getConfigPath as bs, trimCapacityWaits as bt, SummaryBuild as c, deviceHostRoot as ca, buildCriteria as cc, HostedNativePlacement as ci, automaticMachineEnabled as cl, BuildDiagnostic as cn, ANDROID_PCH_CHOICES as co, WorkspacePhase as cr, createdDevicesFile as cs, StatsRecord as ct, WorktreeRow as d, hostedWorkerSettleMs as da, fileIdentity as dc, unreadableHostedNative as di, ConcurrencyLimits as dl, BuildMissChange as dn, OffloadMode as do, WorktreeGit as dr, deviceHostMachinesFile as ds, decodeStats as dt, HostedDeviceRequest as ea, openLogDir as ec, HostedAndroidPlacement as ei, getRepoSettings as el, AndroidRuntimeFacts as en, rememberHostedAppBlobRename as eo, StatusPayload as er, agentSessionsCacheFile as es, RunEstimates as et, parseNdjsonLine as eu, statusViews as f, parseHostedAndroidDevice as fa, fileSizes as fc, BUILD_HISTORY_KEY as fi, Config as fl, BuildMissReason as fn, REMOTE_DEVICE_BACKENDS as fo, WorktreePullRequest as fr, deviceHostMachinesLock as fs, findProjectRoot as ft, isJournalExpired as g, parseHostedNativeOffer as ga, markerWindow as gc, DEV_SERVER_STOP_REQUEST_KEY as gi, ProjectRecord as gl, BuildPlatform as gn, SETTING_SCOPES as go, MacosProcess as gr, easMachineStateRoot as gs, readStats as gt, SetupJournal as h, parseHostedLocalDeviceCount as ha, logFiles as hc, DEVICE_RECLAIM_REASON as hi, PlatformRecords as hl, BuildPlanPayload as hn, SETTING_GROUPS as ho, MacosBuild as hr, diskUsageWalkClaims as hs, readRunEstimates as ht, ArchivedSummary as i, HostedIosDevice as ia, NATIVE_CRASH_LOG_PREFIX as ic, hostedAndroidRecords as ii, windowsShortDirKey as il, BuildActivity as in, SETTINGS_SCHEMA_URL as io, WORKSPACE_STAGE_KINDS as ir, buildMachinesFile as is, StatsBucket as it, Endpoint as j, HostedMacosChoice as ja, readCreatedDevices as jc, lastUseFrom as ji, saturation as jl, LastBuildReport as jn, isSensitiveReference as jo, readArchivesAsync as jr, setupJournalFile as js, agentSessionOf as jt, readHostedNativeLogsCheckpoint as k, HostedAgentLease as ka, EasSessionClaim as kc, WorkspaceState as ki, buildSlotsDir as kl, GitChip as kn, expectedShape as ko, readArchiveState as kr, serverLocalSocket as ks, PullRequestCacheEntry as kt, SummaryHistoryEntry as l, hostedConsolePort as la, bundleMarkerPlatform as lc, hostedNativeRecords as li, requireAutomaticMachine as ll, BuildHistoryEntry as ln, IOS_SIMULATOR_APPS as lo, WorkspaceStage as lr, createdDevicesLock as ls, StatsReport as lt, SetupCapability as m, parseHostedDevice as ma, isExpoErrorContext as mc, DEVICE_IDLE_SHUTDOWN_KEY as mi, DoctorRunRecord as ml, BuildPlacement as mn, SETTINGS as mo, MacosAppState as mr, diskUsageCacheDir as ms, projectRootDirectories as mt, KeyedEntities as n, HostedDeviceSession as na, LogQueryOptions as nc, hostedAndroidDeviceName as ni, loadConfig as nl, BUILD_PHASES as nn, validHostedAppBlob as no, WEB_PAGE_STATES as nr, archiveLock as ns, RunSample as nt, readNdjsonGenerations as nu, SUMMARY_ARCHIVES as o, assertHostedDeviceLedger as oa, advanceTail as oc, parseHostedAndroidPlacement as oi, withConfigLockAsync as ol, BuildCause as on, ANDROID_COMPILER_CACHE_CHOICES as oo, WebBrowserState as or, clientIdentityKeyFile as os, StatsCapacityWait as ot, workspaceSummary as p, parseHostedChoice as pa, followLogs as pc, BUILD_HISTORY_LIMIT as pi, DeviceRecord as pl, BuildPhase as pn, RemoteDeviceBackend as po, MacosAppRecord as pr, deviceViewersDir as ps, offloadSummary as pt, BuildMachineTotals as q, hostedAppArea as qa, buildWorkerRoot as qc, HostedAndroidChoice as qi, AgentTarget as ql, RunOutcomeKind as qn, listRecordedDevicesAsync as qo, HostedIosPlacement as qr, workspaceLogsDir as qs, APP_PROCESS_STATES as qt, applyKeyedDelta as r, HostedIosChoice as ra, LogQueryPlan as rc, hostedAndroidPlacements as ri, windowsShortDir as rl, BUILD_RESULTS as rn, SETTINGS_SCHEMA_FILE as ro, WORKSPACE_PHASES as rr, archiveRoot as rs, STATS_VERSION as rt, StatusViews as s, deviceHostArea as sa, attachExpoErrorContext as sc, unreadableHostedAndroid as si, AutomaticPoolRole as sl, BuildDetail as sn, ANDROID_EMULATOR_APPS as so, WebPageState as sr, configLockPath as ss, StatsPlacement as st, KeyedDelta as t, HostedDeviceSelectors as ta, ERROR_SOURCES as tc, HostedAndroidStatus as ti, isPathPrefix as tl, AppPresence as tn, validHostedAppArguments as to, TUTORIAL_VERSION as tr, archiveDir as ts, RunHistory as tt, parseNdjsonText as tu, WorkspaceSummary as u, hostedDeviceId as ua, compileGrep as uc, parseHostedNativePlacement as ui, validateAutomaticPool as ul, BuildMissCategory as un, OFFLOAD_MODES as uo, WorktreeFacts as ur, deviceHostMachinesClaims as us, StatsScope as ut, parseSetupJournal as v, parseHostedPlatformDevice as va, planLogQuery as vc, DevServerStopRequest as vi, SettingsObject as vl, BuildResult as vn, SettingEntry as vo, parseMacosRecord as vr, easSessionLedgerLock as vs, statsProjectKey as vt, HostedLogsCursor as w, HOSTED_MACOS_APP_SLOTS as wa, sortByTs as wc, MetroLastStop as wi, MachineCredential as wl, DevicePlacement as wn, TunnelMode as wo, archiveEnabled as wr, maintenanceDir as ws, ViewedDevice as wt, agentDeviceStateDirsAsync as x, readHostedDeviceLedger as xa, readLogRecords as xc, IdleStopRecord as xi, clientIdentity as xl, DeviceActivity as xn, SettingWriteResult as xo, ArchivedBytes as xr, gitMergeCacheDir as xs, trimSamples as xt, readSetupJournal as y, parseHostedRequest as ya, queryJsonLogs as yc, DeviceIdleShutdownRecord as yi, StimConfig as yl, BuildWaitingFor as yn, SettingScope as yo, readHostedMacosApp as yr, emulatorLogFile as ys, trimCapacityRefusals as yt, HOSTED_METRO_GATEWAYS_KEY as z, parseHostedMacosChoice as za, readHomeIdentity as zc, readLastBuilds as zi, swiftpmCacheUsageFile as zl, MetroBundleState as zn, RECORDING_PLATFORMS as zo, MaintenanceRecord as zr, trashRoot as zs, readDiskUsage as zt };
|
|
2959
|
+
export { findPeer as $, hostedMacosAppSlot as $a, queryJsonLogs as $c, readDevServerStopRequest as $i, withConfigLock as $l, MachineUsageState as $n, runId as $o, MaintenanceMode as $r, maintenanceAttemptFile as $s, pullRequestCacheFile as $t, BuildLedgerRecord as A, parseHostedAndroidDevice as Aa, worktreeArchiveRoot as Ac, BUILD_HISTORY_LIMIT as Ai, TracePhases as Al, BuildPhase as An, RemoteDeviceBackend as Ao, MacosAppRecord as Ar, buildLedgerDir as As, offloadSummary as At, machineCacheUsageFile as Au, HOSTED_LOGS_PAGE_BYTES as B, readHostedSessions as Ba, advanceTail as Bc, MAINTENANCE_LOG_NAME as Bi, allMetroPorts as Bl, DeviceLeaseState as Bn, TUNNEL_MODES as Bo, ArchivedWorkspace as Br, deviceHostMachinesFile as Bs, DeviceViewersRecord as Bt, AgentActionReaderOptions as Bu, BuildLedgerCache as C, HostedNativeOffer as Ca, workspaceLightenedFile as Cc, parseHostedAndroidPlacement as Ci, readStateFile as Cl, BuildCause as Cn, settingsJsonSchema as Co, WebBrowserState as Cr, prefersRemote as Cs, StatsCapacityWait as Ct, buildSlotsDir as Cu, BuildLedgerOutcome as D, hostedConsolePort as Da, workspaceRecordingsDir as Dc, parseHostedNativePlacement as Di, TRACE_ENV as Dl, BuildMissCategory as Dn, IOS_SIMULATOR_APPS as Do, WorktreeFacts as Dr, archiveRoot as Ds, StatsScope as Dt, tryAcquireBuildSlotClaim as Du, BuildLedgerFailure as E, deviceHostRoot as Ea, workspaceMetadataFile as Ec, hostedNativeRecords as Ei, EndSpan as El, BuildHistoryEntry as En, ANDROID_PCH_CHOICES as Eo, WorkspaceStage as Er, archiveLock as Es, StatsReport as Et, saturation as Eu, GcLogStatus as F, parseHostedOfferRequest as Fa, ERROR_SOURCES as Fc, DevServerStopRequest as Fi, DebugLog as Fl, BuildResult as Fn, SettingEntry as Fo, parseMacosRecord as Fr, clientIdentityKeyFile as Fs, statsProjectKey as Ft, AgentDeviceUsage as Fu, parseHostedLogsCursor as G, HostedAgentGrant as Ga, fileIdentity as Gc, WarmRecord as Gi, getParkedMax as Gl, EnvironmentState as Gn, coerceSettingText as Go, readArchiveAsync as Gr, easMachineStateRoot as Gs, ENDED_AGENT_RETENTION_MS as Gt, LEVELS as Gu, HostedLogsPage as H, HOSTED_MACOS_APP_SLOTS as Ha, buildCriteria as Hc, READY_PHASE_MS as Hi, configCorruptRepair as Hl, DiskMeasure as Hn, WEB_VIEWPORTS as Ho, archivedUsage as Hr, deviceViewersDir as Hs, readViewedDevices as Ht, AgentTarget as Hu, GcLogTrigger as I, parseHostedPlatformDevice as Ia, LogQueryOptions as Ic, DeviceIdleShutdownRecord as Ii, createDebugLog as Il, BuildWaitingFor as In, SettingScope as Io, readHostedMacosApp as Ir, configLockPath as Is, trimCapacityRefusals as It, AgentDeviceUsageRoots as Iu, Endpoint as J, HostedAppLaunch as Ja, isExpoErrorContext as Jc, lastNativeUseFrom as Ji, getRepoSettings as Jl, LastBuildReport as Jn, isSensitiveReference as Jo, readArchivesAsync as Jr, emulatorLogFile as Js, agentSessionOf as Jt, levelRank as Ju, readHostedNativeLogsCheckpoint as K, HostedAgentIssuedGrant as Ka, fileSizes as Kc, WorkspaceState as Ki, getProject as Kl, GitChip as Kn, expectedShape as Ko, readArchiveState as Kr, easSessionLedgerFile as Ks, PullRequestCacheEntry as Kt, NdjsonRecord as Ku, isGcLogRecord as L, parseHostedRequest as La, LogQueryPlan as Lc, IDLE_STOP_KEY as Li, debugLogDir as Ll, ChecksState as Ln, SettingType as Lo, readMacosRecord as Lr, createdDevicesFile as Ls, trimCapacityWaits as Lt, agentDeviceUsageFile as Lu, readBuildLedger as M, parseHostedDevice as Ma, LogDir as Mc, DEVICE_RECLAIM_REASON as Mi, redactCommandLine as Ml, BuildPlanPayload as Mn, SETTING_GROUPS as Mo, MacosBuild as Mr, buildLedgerLock as Ms, readRunEstimates as Mt, SwiftpmCacheUsage as Mu, GcLogOptions as N, parseHostedLocalDeviceCount as Na, LogDirQuery as Nc, DEV_SERVER_STOP_REQUEST_KEY as Ni, trace as Nl, BuildPlatform as Nn, SETTING_SCOPES as No, MacosProcess as Nr, buildMachinesFile as Ns, readStats as Nt, readSwiftpmCacheUsage as Nu, BuildLedgerPlacement as O, hostedDeviceId as Oa, workspaceStateFile as Oc, unreadableHostedNative as Oi, Trace as Ol, BuildMissChange as On, REMOTE_DEVICE_BACKENDS as Oo, WorktreeGit as Or, budgetSweepFile as Os, decodeStats as Ot, MachineCacheUsage as Ou, GcLogRecord as P, parseHostedNativeOffer as Pa, openLogDir as Pc, DevServerStopRecord as Pi, DEBUG_ENV as Pl, BuildReport as Pn, SettingDefinition as Po, macosAppState as Pr, buildMachinesLock as Ps, readStatsReport as Pt, swiftpmCacheUsageFile as Pu, endpoint as Q, hostedAgentDriverName as Qa, planLogQuery as Qc, readDevServerStop as Qi, windowsShortDirKey as Ql, MachineOwnerKind as Qn, RUN_ID_ENV as Qo, MaintenanceCheck as Qr, gitMergeCacheDir as Qs, listStatusCacheEntries as Qt, readGcLog as R, readHostedDevice as Ra, NATIVE_CRASH_LOG_PREFIX as Rc, IdleStopRecord as Ri, debugLoggingEnabled as Rl, DeviceActivity as Rn, SettingWriteResult as Ro, ArchivedBytes as Rr, createdDevicesLock as Rs, trimSamples as Rt, readAgentDeviceUsage as Ru, BUILD_LEDGER_CAP as S, HostedIosDevice as Sa, workspaceGradleBuild as Sc, hostedAndroidStatus as Si, readJsonObject as Sl, BuildCacheHit as Sn, SETTINGS_SCHEMA_URL as So, WarmStep as Sr, placementWord as Ss, StatsCapacityRefusal as St, buildSlotPath as Su, BuildLedgerDevice as T, deviceHostArea as Ta, workspaceLogsDir as Tc, HostedNativePlacement as Ti, readHomeIdentity as Tl, BuildDiagnostic as Tn, ANDROID_EMULATOR_APPS as To, WorkspacePhase as Tr, archiveDir as Ts, StatsRecord as Tt, maxLoadPerCore as Tu, hostedMacosLogsDir as U, HostedAgentAccess as Ua, bundleMarkerPlatform as Uc, WARM_KEY as Ui, findEnclosingWorktreeRoot as Ul, EndedAgentSession as Un, WebViewport as Uo, linkReplacedArchives as Ur, diskUsageCacheDir as Us, stimBuildDigest as Ut, createAgentActionReader as Uu, HostedLogsCursor as V, HOSTED_AGENT_DRIVERS as Va, attachExpoErrorContext as Vc, MetroLastStop as Vi, buildWorkerRoot as Vl, DevicePlacement as Vn, TunnelMode as Vo, archiveEnabled as Vr, deviceHostMachinesLock as Vs, ViewedDevice as Vt, AgentRecordSelection as Vu, hostedNativeLogsDir as W, HostedAgentDriverName as Wa, compileGrep as Wc, WORKSPACE_AGENT_KEY as Wi, getConcurrencyLimits as Wl, EnvironmentDisk as Wn, acceptsShape as Wo, readArchive as Wr, diskUsageWalkClaims as Ws, AgentSessionsCache as Wt, createAsyncAgentActionReader as Wu, TailnetPeer as X, HostedMacosDevice as Xa, markerWindow as Xc, parseMissReason as Xi, loadConfig as Xl, MEMORY_SOURCES as Xn, settingDefinition as Xo, MaintenanceAction as Xr, gcLogFile as Xs, diskUsageFailureFile as Xt, parseNdjsonText as Xu, TAILNET_MACHINE_PATTERN as Y, HostedMacosChoice as Ya, logFiles as Yc, lastUseFrom as Yi, isPathPrefix as Yl, MACHINE_OWNER_KINDS as Yn, replacementAdvice as Yo, DiskPressureLevel as Yr, gcLogDir as Ys, diskUsageCacheFile as Yt, parseNdjsonLine as Yu, cannotHost as Z, HostedMacosPlacement as Za, parseSince as Zc, readBuildHistory as Zi, windowsShortDir as Zl, MachineOwner as Zn, settingValueError as Zo, MaintenanceActionKind as Zr, getConfigPath as Zs, endedAgentSessionOf as Zt, readNdjsonGenerations as Zu, isSetupJournalPrunable as _, HostedDevicePlatform as _a, workspaceAgentDeviceDir as _c, HostedAndroidPlacement as _i, readCreatedDevices as _l, AndroidRuntimeFacts as _n, readHostedAppMetadata as _o, StatusPayload as _r, recordingEnabled as _s, RunEstimates as _t, MACHINE_CREDENTIALS_VERSION as _u, MachineView as a, readWorkspaceAgent as aa, pullRequestCacheDir as ac, MaintenanceStatus as ai, tailRead as al, readPullRequestCache as an, parseHostedMacosPlacement as ao, PHYSICAL_DEVICE_CONNECTIONS as ar, RecordedSegment as as, HostedMetroRequest as at, ConcurrencyLimits as au, agentDeviceStateDirs as b, HostedDeviceSession as ba, workspaceEndedAgentsFile as bc, hostedAndroidPlacements as bi, isJsonObject as bl, BUILD_RESULTS as bn, validHostedAppBlob as bo, WORKSPACE_PHASES as br, PlacementWord as bs, STATS_VERSION as bt, readBuildMachines as bu, SummaryBuild as c, DEVICE_HOST_LIMITS as ca, setupJournalFile as cc, readMaintenanceAttempt as ci, fingerprintMemoDir as cl, ACTIVITY_RECENCY_BASES as cn, HostedAppFile as co, PlannedPhase as cr, closedSegmentName as cs, DeviceHostMachineCredential as ct, DoctorRunRecord as cu, WorktreeRow as d, HostedAndroidChoice as da, sharedGradle as dc, HostedIosStatus as di, readFingerprintMemo as dl, ActiveBuildState as dn, hostedAppArea as do, STATUS_ISSUE_CODES as dr, listRecordedDevicesAsync as ds, CAPACITY_REFUSAL_LIMIT as dt, RepoRecord as du, readDeviceIdleShutdowns as ea, maintenanceChildLogFile as ec, MaintenancePass as ei, queryLogs as el, readAgentSessionsCache as en, hostedMacosBundleId as eo, MacosBuildPlanPayload as er, validRunId as es, machineEndpoint as et, withConfigLockAsync as eu, statusViews as f, HostedAndroidDevice as fa, sharedPods as fc, hostedIosPlacements as fi, countErrorEntries as fl, ActivityDriver as fn, hostedAppAttempt as fo, SimulatorState as fr, listSegments as fs, CAPACITY_REFUSAL_MAX_AGE_MS as ft, SettingsObject as fu, isJournalExpired as g, HostedDevicePhase as ga, trashRoot as gc, unreadableHostedIos as gi, EasSessionLedgerRead as gl, AndroidDeviceState as gn, readHostedApp as go, StatusIssueCode as gr, recordingDeviceName as gs, ReadStatsResult as gt, BuildMachineCredential as gu, SetupJournal as h, HostedDeviceOfferRequest as ha, supervisorPidFile as hc, parseHostedIosPlacement as hi, EasSessionClaim as hl, AgentTool as hn, parseHostedAppOffer as ho, StatusIssue as hr, recordedBytes as hs, PLACEMENT_DECISIONS as ht, clientIdentity as hu, ArchivedSummary as i, readWarmRecord as ia, maintenanceStateFile as ic, MaintenanceState as ii, sortByTs as il, readEndedAgentSessions as in, parseHostedMacosDevice as io, NativeBuildStep as ir, RecordedDevice as is, HostedMetroGateway as it, validateAutomaticPool as iu, isBuildLedgerRecord as j, parseHostedChoice as ja, createNdjsonTail as jc, DEVICE_IDLE_SHUTDOWN_KEY as ji, redactArgv as jl, BuildPlacement as jn, SETTINGS as jo, MacosAppState as jr, buildLedgerFile as js, projectRootDirectories as jt, readMachineCacheUsage as ju, BuildLedgerPlatform as k, hostedWorkerSettleMs as ka, workspaceStateLock as kc, BUILD_HISTORY_KEY as ki, TraceArgs as kl, BuildMissReason as kn, REPLACED_SETTINGS as ko, WorktreePullRequest as kr, budgetSweepLock as ks, findProjectRoot as kt, SimRuntimeUsage as ku, SummaryHistoryEntry as l, DeviceHostLimits as la, sharedCcache as lc, readMaintenanceState as li, fingerprintMemoFile as ll, AGENT_TOOLS as ln, HostedAppOffer as lo, RemoteDeviceState as lr, footageDrops as ls, readDeviceHostMachines as lt, PlatformRecords as lu, SetupCapability as m, HostedDeviceOffer as ma, supervisorLogFile as mc, hostedIosStatus as mi, CreatedDevices as ml, AgentSession as mn, parseHostedAppManifest as mo, StatusCapacity as mr, openSegmentName as ms, OffloadSummary as mt, SupervisorRecord as mu, KeyedEntities as n, readIdleStop as na, maintenanceNdjsonFile as nc, MaintenanceRecord as ni, readLogTimeline as nl, readDiskUsage as nn, parseHostedAgentGrant as no, MetroBundleState as nr, RECORDING_FOOTAGE_MS as ns, HOSTED_METRO_GATEWAYS_KEY as nt, automaticMachineEnabled as nu, SUMMARY_ARCHIVES as o, readWorkspaceState as oa, serverLocalSocket as oc, MemoryCulprit as oi, FINGERPRINT_MEMO_SCHEMA as ol, withDerivedFacts as on, HOSTED_APP_CHUNK_BYTES as oo, PhysicalDeviceConnection as or, RecordingPlatform as os, hostedMetroGateways as ot, Config as ou, workspaceSummary as p, HostedDevice as pa, statsFile as pc, hostedIosRecords as pi, CreatedDevicePlatform as pl, ActivityRecencyBasis as pn, hostedAppBlobs as po, StatsPlatform as pr, listSegmentsAsync as ps, HISTORY_LIMIT as pt, StimConfig as pu, readLogsSince as q, HostedAgentLease as qa, followLogs as qc, buildDiagnostics as qi, getProjectSettings as ql, GitChipPart as qn, isLayeredSetting as qo, readArchives as qr, easSessionLedgerLock as qs, StatusCacheEntry as qt, SOURCES as qu, applyKeyedDelta as r, readLastBuilds as ra, maintenanceRunClaims as rc, MaintenanceSize as ri, recordMatches as rl, readDiskUsageFailure as rn, parseHostedMacosChoice as ro, NATIVE_BUILD_STEPS as rr, RECORDING_PLATFORMS as rs, HOSTED_METRO_REQUESTS_KEY as rt, requireAutomaticMachine as ru, StatusViews as s, workspaceLastUsed as sa, serverSetupDir as sc, parseMaintenanceState as si, FingerprintMemoRecord as sl, withGitChip as sn, HostedAppDelivery as so, PhysicalDeviceState as sr, capDrops as ss, hostedMetroRequests as st, DeviceRecord as su, KeyedDelta as t, readDevicePlacement as ta, maintenanceDir as tc, MaintenancePressure as ti, readLogRecords as tl, readBuildDetail as tn, parseHostedAgentAccess as to, MemorySource as tr, RECORDING_CAP_BYTES as ts, parseMachine as tt, AutomaticPoolRole as tu, WorkspaceSummary as u, HOSTED_PARKED_CANDIDATES as ua, sharedCompilationCache as uc, HostedIosPlacement as ui, fingerprintMemoLock as ul, APP_PROCESS_STATES as un, HostedAppRecord as uo, RunOutcomeKind as ur, listRecordedDevices as us, BuildMachineTotals as ut, ProjectRecord as uu, parseSetupJournal as v, HostedDeviceRequest as va, workspaceBuildDetailFile as vc, HostedAndroidStatus as vi, readEasSessionLedger as vl, AppPresence as vn, rememberHostedAppBlobRename as vo, TUTORIAL_VERSION as vr, AutomaticPlacement as vs, RunHistory as vt, MachineCredential as vu, BuildLedgerCacheResult as w, assertHostedDeviceLedger as wa, workspaceLogErrorIndex as wc, unreadableHostedAndroid as wi, withStateReadCache as wl, BuildDetail as wn, ANDROID_COMPILER_CACHE_CHOICES as wo, WebPageState as wr, agentSessionsCacheFile as ws, StatsPlacement as wt, machineCapacity as wu, agentDeviceStateDirsAsync as x, HostedIosChoice as xa, workspaceEndedAgentsLock as xc, hostedAndroidRecords as xi, readJsonFile as xl, BuildActivity as xn, SETTINGS_SCHEMA_FILE as xo, WORKSPACE_STAGE_KINDS as xr, mayRunHere as xs, StatsBucket as xt, MachineCapacity as xu, readSetupJournal as y, HostedDeviceSelectors as ya, workspaceDerivedData as yc, hostedAndroidDeviceName as yi, validEasSessionClaim as yl, BUILD_PHASES as yn, validHostedAppArguments as yo, WEB_PAGE_STATES as yr, PLACEMENT_WORDS as ys, RunSample as yt, parseMachineCredential as yu, HOSTED_LOGS_FIRST_BYTES as z, readHostedDeviceLedger as za, QueryCriteria as zc, LAST_BUILD_KEYS as zi, ParkedMax as zl, DeviceAppProcess as zn, SettingsPayload as zo, ArchivedUsage as zr, deviceHostMachinesClaims as zs, wholePhases as zt, readAgentDeviceUsageCache as zu };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as BuildSwiftpmArtifactQuery, M as BuildReactNativeArtifactQuery, m as BuildArtifactIdentity } from "./protocol-
|
|
1
|
+
import { F as BuildSwiftpmArtifactQuery, M as BuildReactNativeArtifactQuery, m as BuildArtifactIdentity } from "./protocol-D21RXxrx.mjs";
|
|
2
2
|
import { Server } from "node:net";
|
|
3
3
|
//#region dir-lock.d.ts
|
|
4
4
|
interface DirLockOptions {
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { C as quotedPath } from "./ownership-claim-DG2GMIoo.mjs";
|
|
2
|
-
import { $ as withDirLockAsync, A as createMetroGateway, B as unitLines, C as workspaceName, D as reactNativeArtifactIdentity, E as swiftpmArtifactQuery, F as storeArtifactAsync, G as ambientWrite, H as validMacosResourceDestination, I as artifactIn, K as withAmbientContext, L as resolveArtifact, M as dependencyLockfile, N as reusableDependencies, O as reactNativeArtifactQuery, P as compiledHelper, Q as withDirLock, R as storeArtifact, S as workspaceLogDir, T as workspaceStateDir, U as ambientContext, V as unitWords, W as ambientEnv, _ as rotatedLogPath, a as buildCacheRoot, b as updateCacheManifest, c as cacheNameSegment, d as ensurePrivateDir, et as withDirLockTransaction, f as hostSimulatorArch, g as rotateLog, h as registerCache, i as buildCacheKey, j as dependencyInstall, k as createMetroBridge, l as cachePathSetting, m as readCacheManifest, n as METRO_NAMED_CACHE_LAYOUT, o as cacheDirRefusal, p as metroCacheRoot, r as STORE_ROOT_TAG, s as cacheManifestLockPath, t as LOG_ROTATE_BYTES, u as configDir, v as sharedStoreRoot, w as workspaceSlug, x as workspaceId, y as tagSharedStore, z as quoteUnitWord } from "./core-
|
|
2
|
+
import { $ as withDirLockAsync, A as createMetroGateway, B as unitLines, C as workspaceName, D as reactNativeArtifactIdentity, E as swiftpmArtifactQuery, F as storeArtifactAsync, G as ambientWrite, H as validMacosResourceDestination, I as artifactIn, K as withAmbientContext, L as resolveArtifact, M as dependencyLockfile, N as reusableDependencies, O as reactNativeArtifactQuery, P as compiledHelper, Q as withDirLock, R as storeArtifact, S as workspaceLogDir, T as workspaceStateDir, U as ambientContext, V as unitWords, W as ambientEnv, _ as rotatedLogPath, a as buildCacheRoot, b as updateCacheManifest, c as cacheNameSegment, d as ensurePrivateDir, et as withDirLockTransaction, f as hostSimulatorArch, g as rotateLog, h as registerCache, i as buildCacheKey, j as dependencyInstall, k as createMetroBridge, l as cachePathSetting, m as readCacheManifest, n as METRO_NAMED_CACHE_LAYOUT, o as cacheDirRefusal, p as metroCacheRoot, r as STORE_ROOT_TAG, s as cacheManifestLockPath, t as LOG_ROTATE_BYTES, u as configDir, v as sharedStoreRoot, w as workspaceSlug, x as workspaceId, y as tagSharedStore, z as quoteUnitWord } from "./core-B_w6CiKQ.mjs";
|
|
3
3
|
export { LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, STORE_ROOT_TAG, ambientContext, ambientEnv, ambientWrite, artifactIn, buildCacheKey, buildCacheRoot, cacheDirRefusal, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, dependencyInstall, dependencyLockfile, ensurePrivateDir, hostSimulatorArch, metroCacheRoot, quoteUnitWord, quotedPath, reactNativeArtifactIdentity, reactNativeArtifactQuery, readCacheManifest, registerCache, resolveArtifact, reusableDependencies, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, storeArtifactAsync, swiftpmArtifactQuery, tagSharedStore, unitLines, unitWords, updateCacheManifest, validMacosResourceDestination, withAmbientContext, withDirLock, withDirLockAsync, withDirLockTransaction, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { $ as DesktopBuildEndedEvent, $n as PushEvent,
|
|
1
|
+
import { $n as MachineUsageState, Ar as MacosAppRecord, Bn as DeviceLeaseState, Br as ArchivedWorkspace, Cr as WebBrowserState, Dr as WorktreeFacts, En as BuildHistoryEntry, Er as WorkspaceStage, Gn as EnvironmentState, Hn as DiskMeasure, In as BuildWaitingFor, Jn as LastBuildReport, Kn as GitChip, Mn as BuildPlanPayload, Mr as MacosBuild, On as BuildMissChange, Or as WorktreeGit, Pn as BuildReport, Rn as DeviceActivity, Tn as BuildDiagnostic, Wn as EnvironmentDisk, Xr as MaintenanceAction, Za as HostedMacosPlacement, Zn as MachineOwner, _r as StatusPayload, a as MachineView, ai as MaintenanceStatus, ei as MaintenancePass, f as statusViews, fr as SimulatorState, gn as AndroidDeviceState, hr as StatusIssue, i as ArchivedSummary, jn as BuildPlacement, kn as BuildMissReason, kr as WorktreePullRequest, lr as RemoteDeviceState, mn as AgentSession, nr as MetroBundleState, on as withDerivedFacts, r as applyKeyedDelta, sr as PhysicalDeviceState, ti as MaintenancePressure, wn as BuildDetail, xn as BuildActivity, zn as DeviceAppProcess, zr as ArchivedUsage } from "./index-DfpdqDFf.mjs";
|
|
2
|
+
import { $ as DesktopBuildEndedEvent, $n as PushEvent, Ar as SimulatorCommand, Bn as NotificationSuppression, Cn as MachineDetails, Ct as DesktopWorktreeWarmProgressEvent, Dt as DeviceUsageSeries, Et as DevicePosture, G as ControlBeginParams, Gt as HelloResult, Ht as FramesSubscribeResult, Ir as TouchPhase, It as FrameDelayedEvent, J as ControlEndedEvent, K as ControlBeginResult, Kn as PROTOCOL_VERSION, Ln as NotificationEntry, Lt as FrameEvent, Nr as StatusEvent, O as BuildPlanParams, On as MachineUsage, Pn as Methods, Qn as ProtocolError, Qr as WorkspaceFiles, Rn as NotificationEvent, Rr as UsageHistory, Rt as FrameTarget, St as DesktopWorktreeWarmEndedEvent, T as BuildMachineReport, Tn as MachineHistory, Tt as DeviceFrameEvent, Un as NotificationsListResult, Wt as HelloParams, X as DEVICE_HOST_METHODS, Xr as WorkspaceEvent, Yn as Platform, Yr as WorkspaceDiff, Yt as InputButton, Zr as WorkspaceFile, Zt as InputKey, _n as LogsEndedEvent, _t as DesktopStartProgressEvent, a as ActionResult, bt as DesktopWorktreeRemoveEndedEvent, c as ArchivedListParams, ct as DesktopReloadProgressEvent, dr as ReplayKeyframe, ei as WorkspacePatch, er as PushRegisterParams, et as DesktopBuildProgressEvent, fr as ReplayKeyframeParams, ft as DesktopRunEndedEvent, gn as LogSource, gr as ReplayTarget, gt as DesktopStartEndedEvent, hn as LogRecord, hr as ReplaySpan, i as ActionParams, j as BuildProgressEvent, jn as MacosWindowsEvent, jr as SimulatorOptions, jt as ErrorEvent, kn as MachineVolume, lt as DesktopReportEvent, mn as LogLevel, mr as ReplayRange, ni as WorkspacesEvent, nn as InputSimulatorParams, nt as DesktopGcProgressEvent, o as ArchiveDetailParams, pn as LogFilter, pr as ReplayMarker, pt as DesktopRunProgressEvent, r as ActionName, sn as KeyModifier, st as DesktopReloadEndedEvent, t as ACTIONS, ti as WorkspaceRef, tt as DesktopGcEndedEvent, u as BUILD_METHODS, ur as ReplayEndedEvent, v as BuildClientSummary, vn as LogsEvent, vr as RotateDirection, vt as DesktopStopEndedEvent, wn as MachineEvent, wt as DeviceFrameArtwork, xr as ServerEvent, xt as DesktopWorktreeRemoveProgressEvent, yn as LogsQueryResult, yr as SERVER_UPDATE_METHODS, yt as DesktopStopProgressEvent, zn as NotificationLevel, zr as UsageSample } from "./protocol-D21RXxrx.mjs";
|
|
3
3
|
//#region phone-protocol.d.ts
|
|
4
4
|
type PhonePlatform = BuildPlanParams["platform"];
|
|
5
5
|
type PhoneDevicePlatform = Platform;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Br as ArchivedWorkspace, Dr as WorktreeFacts, En as BuildHistoryEntry, Gn as EnvironmentState, H as HostedLogsPage, Io as SettingScope, Ja as HostedAppLaunch, Ku as NdjsonRecord, Mn as BuildPlanPayload, Ro as SettingWriteResult, V as HostedLogsCursor, _a as HostedDevicePlatform, _r as StatusPayload, a as MachineView, ai as MaintenanceStatus, ba as HostedDeviceSession, d as WorktreeRow, er as MacosBuildPlanPayload, ga as HostedDevicePhase, ha as HostedDeviceOfferRequest, i as ArchivedSummary, lo as HostedAppOffer, ma as HostedDeviceOffer, so as HostedAppDelivery, t as KeyedDelta, u as WorkspaceSummary, va as HostedDeviceRequest, zr as ArchivedUsage } from "./index-DfpdqDFf.mjs";
|
|
2
2
|
//#region protocol.d.ts
|
|
3
3
|
declare const PROTOCOL_VERSION = 2;
|
|
4
4
|
declare const PROTOCOL_SCHEMA_FILE = "protocol.schema.json";
|
|
@@ -45,10 +45,13 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
45
45
|
* `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
|
|
46
46
|
* `build-compat` accepts `compat` on `build.start`, and in place of `stimBuild` in React Native and SwiftPM artifact
|
|
47
47
|
* queries.
|
|
48
|
+
* `build-jdk` accepts `jdk` on `build.start`, the JDK major an Android build runs on; the machine finds an installed JDK of that
|
|
49
|
+
* major when its default differs.
|
|
48
50
|
* `status-views` is `workspaces.subscribe`, `workspace.subscribe`, `machine.subscribe`, `builds.history`,
|
|
49
51
|
* `archived.list`, `worktrees.list` and `maintenance.get`.
|
|
50
52
|
* `desktop-reports` serves cached doctor/GC reports to the authenticated local Desktop connection.
|
|
51
53
|
* `desktop-report-platform` accepts an optional ios/android selector for Desktop doctor reports.
|
|
54
|
+
* `desktop-report-invalidate-target` accepts a report target in `desktop.reports.invalidate`, which then invalidates only it.
|
|
52
55
|
* `desktop-settings` reads settings for a selected folder on the authenticated local Desktop connection.
|
|
53
56
|
* `desktop-settings-schema` supplies this server's registry-derived settings schema to local Desktop clients.
|
|
54
57
|
* `desktop-settings-write` mutates settings on the proved local Desktop connection.
|
|
@@ -59,7 +62,7 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
59
62
|
* `desktop-plan` reads next-build reports for selected folders on the proved local Desktop connection.
|
|
60
63
|
* `desktop-reload` streams reload output and its terminal result on the proved local Desktop connection.
|
|
61
64
|
*/
|
|
62
|
-
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", "fingerprint-sources", "fingerprint-ignored", "fingerprint-tracked", "swiftpm-peer-cache", "build-dependency-cache", "hosted-android-data", "hosted-android-process", "hosted-metro-ports", "server-update", "build-compat", "status-views", "desktop-reports", "desktop-report-platform", "desktop-settings", "desktop-settings-schema", "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"];
|
|
65
|
+
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", "fingerprint-sources", "fingerprint-ignored", "fingerprint-tracked", "swiftpm-peer-cache", "build-dependency-cache", "hosted-android-data", "hosted-android-process", "hosted-metro-ports", "server-update", "build-compat", "build-jdk", "status-views", "desktop-reports", "desktop-report-platform", "desktop-report-invalidate-target", "desktop-settings", "desktop-settings-schema", "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"];
|
|
63
66
|
type Feature = (typeof FEATURES)[number];
|
|
64
67
|
declare const METHODS: readonly ["hello", "desktop.authenticate", "desktop.reports.get", "desktop.reports.subscribe", "desktop.reports.invalidate", "desktop.settings.get", "desktop.settings.schema", "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.ports", "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"];
|
|
65
68
|
/**
|
|
@@ -743,12 +746,28 @@ interface BuildToolchain {
|
|
|
743
746
|
runtimes: string[];
|
|
744
747
|
/** The major version of the JDK Gradle runs on there. */
|
|
745
748
|
jdk: string | null;
|
|
749
|
+
/** The majors of every JDK it can find, the one `jdk` names included; absent from a stim-server older than this field. */
|
|
750
|
+
jdks?: string[];
|
|
751
|
+
/** What `xcode-select -p` prints on a Mac; absent from a stim-server older than this field, and while DEVELOPER_DIR is set there. */
|
|
752
|
+
developerDir?: string | null;
|
|
753
|
+
/** The Xcode apps in `/Applications`, with the license and first-launch checks of each while `xcode` is null. */
|
|
754
|
+
xcodeApps?: {
|
|
755
|
+
path: string;
|
|
756
|
+
version: string | null;
|
|
757
|
+
build: string | null;
|
|
758
|
+
license?: boolean;
|
|
759
|
+
firstLaunch?: boolean;
|
|
760
|
+
}[];
|
|
746
761
|
/** The NDK, build-tools and platform directories of its Android SDK; null without an SDK. */
|
|
747
762
|
androidSdk: {
|
|
748
763
|
ndk: string[];
|
|
749
764
|
buildTools: string[];
|
|
750
765
|
platforms: string[];
|
|
751
766
|
} | null;
|
|
767
|
+
/** Whether that SDK has its licenses accepted, so Gradle downloads a missing package; absent from a stim-server older than this field. */
|
|
768
|
+
androidLicenses?: boolean;
|
|
769
|
+
/** The SDK directory `androidSdk` was read from; absent from a stim-server older than this field. */
|
|
770
|
+
androidHome?: string;
|
|
752
771
|
}
|
|
753
772
|
/**
|
|
754
773
|
* How busy the remote machine is. `running` counts offloaded builds and `max` is how many it runs at once.
|
|
@@ -871,6 +890,8 @@ interface BuildStartParams {
|
|
|
871
890
|
stimBuild: string;
|
|
872
891
|
/** The client's Stim build compatibility version, compared instead of `stimBuild` by a machine that reports one. */
|
|
873
892
|
compat?: number;
|
|
893
|
+
/** The JDK major the client's Android build ran on; a machine with the `build-jdk` feature builds on a JDK of that major. */
|
|
894
|
+
jdk?: string;
|
|
874
895
|
cacheArtifact?: boolean;
|
|
875
896
|
}
|
|
876
897
|
interface BuildJobParams {
|
|
@@ -1005,10 +1026,24 @@ interface BuildClientSummary {
|
|
|
1005
1026
|
};
|
|
1006
1027
|
lastAt: string;
|
|
1007
1028
|
}
|
|
1029
|
+
/**
|
|
1030
|
+
* The first layer that stops this machine from using a remote machine, as `stim doctor --json` reports it under
|
|
1031
|
+
* `diagnosis`. `code` is stable; `title` is a short label for a status pill; `message` says what failed and
|
|
1032
|
+
* `remedy` what to do. `guide remote` lists the codes.
|
|
1033
|
+
*/
|
|
1034
|
+
interface RemoteDiagnosis {
|
|
1035
|
+
layer: "tailscale" | "peer" | "route" | "server" | "compat";
|
|
1036
|
+
code: string;
|
|
1037
|
+
title: string;
|
|
1038
|
+
message: string;
|
|
1039
|
+
remedy: string;
|
|
1040
|
+
}
|
|
1008
1041
|
/** One `remote.machines` entry as `stim doctor --json` reports it; `guide facts doctor` defines the fields. */
|
|
1009
1042
|
interface BuildMachineReport {
|
|
1010
1043
|
machine: string;
|
|
1011
1044
|
state: string;
|
|
1045
|
+
/** Present for a state that stops at a layer below approval (`tailscale-off`, `not-on-tailnet`, `unreachable`, `outdated`). */
|
|
1046
|
+
diagnosis?: RemoteDiagnosis;
|
|
1012
1047
|
dnsName?: string;
|
|
1013
1048
|
deviceId?: string;
|
|
1014
1049
|
requestedAt?: string;
|
|
@@ -1452,7 +1487,7 @@ interface Methods {
|
|
|
1452
1487
|
result: SubscribeResult;
|
|
1453
1488
|
};
|
|
1454
1489
|
"desktop.reports.invalidate": {
|
|
1455
|
-
params?: Record<string, never
|
|
1490
|
+
params?: Record<string, never> | DesktopReportTarget;
|
|
1456
1491
|
result: Record<string, never>;
|
|
1457
1492
|
};
|
|
1458
1493
|
"desktop.settings.get": {
|
|
@@ -2158,4 +2193,4 @@ type ServeRoute = {
|
|
|
2158
2193
|
port: number;
|
|
2159
2194
|
};
|
|
2160
2195
|
//#endregion
|
|
2161
|
-
export { DesktopBuildEndedEvent as $, PushEvent as $n,
|
|
2196
|
+
export { DesktopBuildEndedEvent as $, PushEvent as $n, WorkspaceParams as $r, InputPostureParams as $t, BuildPlatform as A, MacosWindow as An, SimulatorCommand as Ar, ErrorCode as At, CAPABILITIES as B, NotificationSuppression as Bn, UsageSeries as Br, FramesSeekParams as Bt, BuildJobParams as C, MachineDetails as Cn, ServerResponse as Cr, DesktopWorktreeWarmProgressEvent as Ct, BuildOfferResult as D, MachineUpdateStatus as Dn, ServerUpdateStartParams as Dr, DeviceUsageSeries as Dt, BuildOfferParams as E, MachineHistoryParams as En, ServerUpdateProgress as Er, DevicePosture as Et, BuildSwiftpmArtifactQuery as F, NOTIFICATION_LEVELS as Fn, TOUCH_PHASES as Fr, Feature as Ft, ControlBeginParams as G, PROTOCOL_SCHEMA_FILE as Gn, VIDEO_KEYFRAME as Gr, HelloResult as Gt, CachedBuildArtifact as H, NotificationsListParams as Hn, VIDEO_CODECS as Hr, FramesSubscribeResult as Ht, BuildSyncParams as I, NOTIFICATION_SUPPRESSIONS as In, TouchPhase as Ir, FrameDelayedEvent as It, ControlEndedEvent as J, PUSH_TOKEN_PATTERN as Jn, VideoPacket as Jr, INPUT_KEYS as Jt, ControlBeginResult as K, PROTOCOL_VERSION as Kn, VIDEO_UNFOLDED as Kr, HostedSessionRow as Kt, BuildSyncResult as L, NotificationEntry as Ln, UnsubscribeParams as Lr, FrameEvent as Lt, BuildReactNativeArtifactQuery as M, MemoryPressure as Mn, StatsResult as Mr, FEATURES as Mt, BuildStartParams as N, Method as Nn, StatusEvent as Nr, FRAME_EDGE as Nt, BuildPlanParams as O, MachineUsage as On, ServerUpdateStatus as Or, DuoFramePose as Ot, BuildStimIdentity as P, Methods as Pn, SubscribeResult as Pr, FRAME_FPS as Pt, DesktopBootstrapChallenge as Q, ProtocolError as Qn, WorkspaceFiles as Qr, InputKeyParams as Qt, BuildToolchain as R, NotificationEvent as Rn, UsageHistory as Rr, FrameTarget as Rt, BuildJobOutcome as S, METHODS as Sn, ServerMessage as Sr, DesktopWorktreeWarmEndedEvent as St, BuildMachineReport as T, MachineHistory as Tn, ServerUpdatePackage as Tr, DeviceFrameEvent as Tt, Capability as U, NotificationsListResult as Un, VIDEO_FOLDED as Ur, GradleOffloadInputs as Ut, CONTROL_END_REASONS as V, NotificationTarget as Vn, VIDEO_ARTWORK as Vr, FramesSeekResult as Vt, ClientRequest as W, PLATFORMS as Wn, VIDEO_HEADER_VERSION as Wr, HelloParams as Wt, DEVICE_HOST_METHODS as X, PlatformBuildOptions as Xn, WorkspaceEvent as Xr, InputButtonParams as Xt, ControlPlatform as Y, Platform as Yn, WorkspaceDiff as Yr, InputButton as Yt, DEVICE_POSTURES as Z, PlatformRunOptions as Zn, WorkspaceFile as Zr, InputKey as Zt, BuildCapacity as _, LogsEndedEvent as _n, RequestId as _r, DesktopStartProgressEvent as _t, ActionResult as a, InputWindowParams as an, ROTATE_DIRECTIONS as ar, DesktopMachineAccessProgressEvent as at, BuildFingerprintSource as b, MAX_INPUT_TEXT as bn, ServeRoute as br, DesktopWorktreeRemoveEndedEvent as bt, ArchivedListParams as c, KeyframeParams as cn, ReloadPlatform as cr, DesktopReloadProgressEvent as ct, BUILD_REPO_PATTERN as d, LOG_SOURCES as dn, ReplayKeyframe as dr, DesktopReportTarget as dt, WorkspacePatch as ei, InputRotateParams as en, PushRegisterParams as er, DesktopBuildProgressEvent as et, BUILD_RUBY_VERSION_PATTERN as f, LegacyPushEvent as fn, ReplayKeyframeParams as fr, DesktopRunEndedEvent as ft, BuildAttachResult as g, LogSource as gn, ReplayTarget as gr, DesktopStartEndedEvent as gt, BuildArtifactResult as h, LogRecord as hn, ReplaySpan as hr, DesktopSettingsWriteResult as ht, ActionParams as i, InputTouchParams as in, REPLAY_RATES as ir, DesktopMachineAccessEndedEvent as it, BuildProgressEvent as j, MacosWindowsEvent as jn, SimulatorOptions as jr, ErrorEvent as jt, BuildPlanResult as k, MachineVolume as kn, SettingsResult as kr, ERROR_CODES as kt, ArchivedListResult as l, LEGACY_PUSH_EVENTS as ln, RemoteDiagnosis as lr, DesktopReportEvent as lt, BuildArtifactIdentity as m, LogLevel as mn, ReplayRange as mr, DesktopSettingsWriteParams as mt, ARCHIVED_PAGE_LIMIT as n, WorkspacesEvent as ni, InputSimulatorParams as nn, RELOAD_PLATFORMS as nr, DesktopGcProgressEvent as nt, ArchiveDetailParams as o, KEY_MODIFIERS as on, RecordingSetParams as or, DesktopPlanRefusal as ot, BuildAndroidOptions as p, LogFilter as pn, ReplayMarker as pr, DesktopRunProgressEvent as pt, ControlEndParams as q, PUSH_EVENTS as qn, VideoCodec as qr, INPUT_BUTTONS as qt, ActionName as r, WorkspacesSnapshot as ri, InputTextParams as rn, REPLAY_MARKER_KINDS as rr, DesktopLogFilter as rt, ArchiveDetailResult as s, KeyModifier as sn, RecordingSetResult as sr, DesktopReloadEndedEvent as st, ACTIONS as t, WorkspaceRef as ti, InputScrollParams as tn, QuietHours as tr, DesktopGcEndedEvent as tt, BUILD_METHODS as u, LOG_LEVELS as un, ReplayEndedEvent as ur, DesktopReportSnapshot as ut, BuildClientSummary as v, LogsEvent as vn, RotateDirection as vr, DesktopStopEndedEvent as vt, BuildMachineCapacity as w, MachineEvent as wn, ServerUpdateOutcome as wr, DeviceFrameArtwork as wt, BuildGradleArtifactQuery as x, MAX_LOG_TAIL as xn, ServerEvent as xr, DesktopWorktreeRemoveProgressEvent as xt, BuildFile as y, LogsQueryResult as yn, SERVER_UPDATE_METHODS as yr, DesktopStopProgressEvent as yt, BuildsHistoryResult as z, NotificationLevel as zn, UsageSample as zr, FramesLiveParams as zt };
|