@stim-cli/core 1.37.0 → 1.39.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.
@@ -484,6 +484,7 @@ interface IdleStopRecord {
484
484
  }
485
485
  declare function readIdleStop(state: WorkspaceState | null | undefined): IdleStopRecord | null;
486
486
  declare const DEVICE_RECLAIM_REASON = "reclaimed for a waiting run";
487
+ declare const DEVICE_METRO_IDLE_STOP_REASON = "Metro's idle stop";
487
488
  declare const DEVICE_IDLE_SHUTDOWN_KEY = "deviceIdleShutdowns";
488
489
  /** An owned simulator or emulator shut down after being idle. */
489
490
  interface DeviceIdleShutdownRecord {
@@ -980,6 +981,8 @@ declare function replacementAdvice(key: string, old: unknown): {
980
981
  key: string;
981
982
  command: string | null;
982
983
  } | null;
984
+ declare const SHARE_DEFAULT_PORT = 7790;
985
+ declare const SHARE_EXPOSURES: readonly ["auto", "tailscale", "proxy"];
983
986
  declare const WEB_VIEWPORTS: readonly ["desktop", "phone"];
984
987
  type WebViewport = (typeof WEB_VIEWPORTS)[number];
985
988
  declare const SETTINGS: readonly SettingDefinition[];
@@ -1003,7 +1006,7 @@ type StatsPlatform = "ios" | "android";
1003
1006
  /** A platform whose build reports phases: the stats platforms and `macos`. */
1004
1007
  type BuildPlatform = StatsPlatform | "macos";
1005
1008
  type RunOutcomeKind = "hit" | "cold";
1006
- declare const BUILD_PHASES: readonly ["prepare", "cache-lookup", "wait", "prebuild", "pods", "compile", "device", "install", "launch"];
1009
+ declare const BUILD_PHASES: readonly ["prepare", "cleanup", "cache-lookup", "wait", "prebuild", "pods", "compile", "device", "install", "launch"];
1007
1010
  type BuildPhase = (typeof BUILD_PHASES)[number];
1008
1011
  type ActiveBuildState = "running" | "stale" | "unknown";
1009
1012
  /**
@@ -1213,6 +1216,11 @@ interface BuildPlanPayload {
1213
1216
  };
1214
1217
  /** With ios.remote or android.remote set to auto or a Mac, where the plan assumes the device runs, such as `this machine; auto may use janics-mac-mini`. */
1215
1218
  placement?: string;
1219
+ /** Resolved build preference; automatic worker availability and compatibility are checked at run time. */
1220
+ buildPlacement?: {
1221
+ preference: string;
1222
+ reason: string;
1223
+ };
1216
1224
  }
1217
1225
  /** The read-only `stim macos --plan --json` payload; SwiftPM work and worker availability remain unknown. */
1218
1226
  interface MacosBuildPlanPayload {
@@ -1644,6 +1652,8 @@ interface EnvironmentState {
1644
1652
  stateDir: string;
1645
1653
  installed?: boolean;
1646
1654
  };
1655
+ /** The verified canonical Git checkout root, including primary checkouts; null outside Git or when unreadable. This does not imply removable worktree ownership. */
1656
+ checkout?: string | null;
1647
1657
  worktree?: WorktreeFacts | null;
1648
1658
  remoteDevices?: RemoteDeviceState[];
1649
1659
  /** The physical devices this workspace leases, in every slot; absent when it leases none. */
@@ -1828,6 +1838,8 @@ interface MachineCapacity {
1828
1838
  maxLoadPerCore: number;
1829
1839
  }
1830
1840
  declare function maxLoadPerCore(): number;
1841
+ /** `server.maxOffloadedBuilds`: how many builds from other machines run here at once, 0 when unlimited. */
1842
+ declare function maxOffloadedBuilds(): number;
1831
1843
  /** The 5-minute load average per CPU, rounded to one decimal, and the CPU count it divides by. */
1832
1844
  declare function loadPerCore(): {
1833
1845
  cpus: number;
@@ -2083,8 +2095,13 @@ interface StimConfig {
2083
2095
  acceptClientBuilds?: unknown;
2084
2096
  lanAddresses?: unknown;
2085
2097
  maxLoadPerCore?: unknown;
2098
+ maxOffloadedBuilds?: unknown;
2086
2099
  workerRoot?: unknown;
2087
- gradleDaemonIdleMinutes?: unknown;
2100
+ };
2101
+ share?: {
2102
+ exposure?: unknown;
2103
+ publicUrl?: unknown;
2104
+ port?: unknown;
2088
2105
  };
2089
2106
  remote?: {
2090
2107
  machines?: unknown;
@@ -2628,15 +2645,17 @@ declare function diskUsageCacheFile(path: string): string;
2628
2645
  declare function diskUsageFailureFile(path: string): string;
2629
2646
  /** The file that caches the pull request of the worktree at `path`. */
2630
2647
  declare function pullRequestCacheFile(path: string): string;
2631
- /** One file of the disk-usage or pull-request cache. */
2648
+ /** The file that caches the merge verdict of the worktree at `path`. */
2649
+ declare function gitMergeCacheFile(path: string): string;
2650
+ /** One file of the disk-usage, pull-request or git-merge cache. */
2632
2651
  interface StatusCacheEntry {
2633
- kind: "disk-usage" | "pull-request";
2652
+ kind: "disk-usage" | "pull-request" | "git-merge";
2634
2653
  file: string;
2635
2654
  /** The folder or worktree the file caches, or null when the file does not record one under its own name. */
2636
2655
  path: string | null;
2637
2656
  bytes: number;
2638
2657
  }
2639
- /** Every finished file in the disk-usage and pull-request caches; a file being written is not listed. */
2658
+ /** Every finished file in the disk-usage, pull-request and git-merge caches; a file being written is not listed. */
2640
2659
  declare function listStatusCacheEntries(): StatusCacheEntry[];
2641
2660
  /**
2642
2661
  * A worktree's cached pull request lookup: the branch and HEAD it was looked up for, and when. `containsHead` and
@@ -2712,8 +2731,10 @@ interface StatsBucket {
2712
2731
  misses: number;
2713
2732
  coldRuns: number;
2714
2733
  coldRunMs: number;
2734
+ coldCleanupMs?: number;
2715
2735
  hitRuns: number;
2716
2736
  hitRunMs: number;
2737
+ hitCleanupMs?: number;
2717
2738
  timeSavedMs: number;
2718
2739
  firstRunAt: string;
2719
2740
  lastRunAt: string;
@@ -2721,6 +2742,7 @@ interface StatsBucket {
2721
2742
  lastPodsMs?: number;
2722
2743
  offloadedRuns?: number;
2723
2744
  offloadedRunMs?: number;
2745
+ offloadedCleanupMs?: number;
2724
2746
  lastOffloadHost?: string;
2725
2747
  }
2726
2748
  type StatsScope = Partial<Record<StatsPlatform, StatsBucket>>;
@@ -3147,4 +3169,4 @@ declare class KeyedEntities<T> {
3147
3169
  /** Applies `delta` to `entities` keyed by `key`, keeping the order of `entities` and appending new keys. */
3148
3170
  declare function applyKeyedDelta<T>(entities: readonly T[], delta: KeyedDelta<T>, key: (entity: T) => string): T[];
3149
3171
  //#endregion
3150
- export { hostedMetroLinks as $, maxLoadPerCore as $a, unreadableHostedAndroid as $c, getProject as $i, HostedNativeOffer as $l, easSessionLedgerLock as $n, NativeBuildStep as $o, followLogs as $r, expectedShape as $s, withDerivedFacts as $t, validHostedAppBlob as $u, BuildLedgerPlatform as A, Endpoint as Aa, MaintenancePressure as Ac, withStateReadCache as Ai, readDevicePlacement as Al, agentSessionsCacheFile as An, BuildWaitingFor as Ao, workspaceLogErrorIndex as Ar, WorktreePullRequest as As, trimCapacityWaits as At, HostedMacosPlacement as Au, HOSTED_LOGS_FIRST_BYTES as B, localEndpoint as Ba, HostedIosStatus as Bc, DEBUG_ENV as Bi, HostedAndroidChoice as Bl, buildMachinesLock as Bn, GitChip as Bo, openLogDir as Br, SETTING_SCOPES as Bs, StatusCacheEntry as Bt, HostedAppDelivery as Bu, BuildLedgerBoot as C, clientIdentity as Ca, readArchivesAsync as Cc, readNdjsonGenerations as Cd, readCreatedDevices as Ci, lastNativeUseFrom as Cl, recordingEnabled as Cn, BuildMissReason as Co, workspaceAgentDeviceDir as Cr, WarmStep as Cs, offloadSummary as Ct, HostedAgentDriverName as Cu, BuildLedgerFailure as D, parseMachineCredential as Da, MaintenanceCheck as Dc, readJsonFile as Di, readDevServerStop as Dl, mayRunHere as Dn, BuildPlatform as Do, workspaceEndedAgentsLock as Dr, WorkspaceStage as Ds, readStatsReport as Dt, HostedAppLaunch as Du, BuildLedgerDevice as E, MachineCredential as Ea, MaintenanceActionKind as Ec, isJsonObject as Ei, readBuildHistory as El, PlacementWord as En, BuildPlanPayload as Eo, workspaceEndedAgentsFile as Er, WorkspacePhase as Es, readStats as Et, HostedAgentLease as Eu, GcLogRecord as F, WrongTailnet as Fa, MemoryCulprit as Fc, TraceArgs as Fi, readWorkspaceState as Fl, budgetSweepLock as Fn, DevicePlacement as Fo, workspaceStateLock as Fr, REMOTE_DEVICE_BACKENDS as Fs, readViewedDevices as Ft, parseHostedAgentGrant as Fu, hostedNativeLogsDir as G, tailscaleEnv as Ga, unreadableHostedIos as Gc, ParkedMax as Gi, HostedDevicePhase as Gl, deviceHostMachinesClaims as Gn, MEMORY_SOURCES as Go, QueryCriteria as Gr, SettingWriteResult as Gs, listStatusCacheEntries as Gt, hostedAppAttempt as Gu, HostedLogsCursor as H, parseMachine as Ha, hostedIosRecords as Hc, createDebugLog as Hi, HostedDevice as Hl, configLockPath as Hn, LastBuildReport as Ho, LogQueryOptions as Hr, SettingEntry as Hs, diskUsageCacheFile as Ht, HostedAppOffer as Hu, GcLogStatus as I, cannotHost as Ia, parseMaintenanceState as Ic, TracePhases as Ii, workspaceLastUsed as Il, buildLedgerDir as In, DiskMeasure as Io, worktreeArchiveRoot as Ir, REPLACED_SETTINGS as Is, stimBuildDigest as It, parseHostedMacosChoice as Iu, readLogsSince as J, buildSlotPath as Ja, hostedAndroidDeviceName as Jc, configCorruptRepair as Ji, HostedDeviceSelectors as Jl, deviceViewersDir as Jn, MachineUsageState as Jo, buildCriteria as Jr, TunnelMode as Js, readBuildDetail as Jt, parseHostedAppOffer as Ju, parseHostedLogsCursor as K, wrongTailnet as Ka, HostedAndroidPlacement as Kc, allMetroPorts as Ki, HostedDevicePlatform as Kl, deviceHostMachinesFile as Kn, MachineOwner as Ko, advanceTail as Kr, SettingsPayload as Ks, pullRequestCacheFile as Kt, hostedAppBlobs as Ku, GcLogTrigger as L, currentTailnet as La, readMaintenanceAttempt as Lc, redactArgv as Li, DEVICE_HOST_LIMITS as Ll, buildLedgerFile as Ln, EndedAgentSession as Lo, createNdjsonTail as Lr, RemoteDeviceBackend as Ls, AgentSessionsCache as Lt, parseHostedMacosDevice as Lu, isBuildLedgerRecord as M, TAILNET_MACHINE_PATTERN as Ma, MaintenanceSize as Mc, EndSpan as Mi, readLastBuilds as Ml, archiveLock as Mn, DeviceActivity as Mo, workspaceMetadataFile as Mr, ANDROID_EMULATOR_APPS as Ms, wholePhases as Mt, hostedMacosAppSlot as Mu, readBuildLedger as N, TailnetIdentity as Na, MaintenanceState as Nc, TRACE_ENV as Ni, readWarmRecord as Nl, archiveRoot as Nn, DeviceAppProcess as No, workspaceRecordingsDir as Nr, ANDROID_PCH_CHOICES as Ns, DeviceViewersRecord as Nt, hostedMacosBundleId as Nu, BuildLedgerOutcome as O, readBuildMachines as Oa, MaintenanceMode as Oc, readJsonObject as Oi, readDevServerStopRequest as Ol, placementWord as On, BuildReport as Oo, workspaceGradleBuild as Or, WorktreeFacts as Os, statsProjectKey as Ot, HostedMacosChoice as Ou, GcLogOptions as P, TailnetPeer as Pa, MaintenanceStatus as Pc, Trace as Pi, readWorkspaceAgent as Pl, budgetSweepFile as Pn, DeviceLeaseState as Po, workspaceStateFile as Pr, IOS_SIMULATOR_APPS as Ps, ViewedDevice as Pt, parseHostedAgentAccess as Pu, HostedMetroRequest as Q, machineCapacity as Qa, parseHostedAndroidPlacement as Qc, getPlatformDeviceLimits as Qi, HostedLocalPlatformCounts as Ql, easSessionLedgerFile as Qn, NATIVE_BUILD_STEPS as Qo, fileSizes as Qr, coerceSettingText as Qs, readPullRequestCache as Qt, validHostedAppArguments as Qu, isGcLogRecord as R, endpoint as Ra, readMaintenanceState as Rc, redactCommandLine as Ri, DeviceHostLimits as Rl, buildLedgerLock as Rn, EnvironmentDisk as Ro, LogDir as Rr, SETTINGS as Rs, ENDED_AGENT_RETENTION_MS as Rt, parseHostedMacosPlacement as Ru, BUILD_LEDGER_CAP as S, SupervisorRecord as Sa, readArchives as Sc, parseNdjsonText as Sd, EasSessionLedgerRead as Si, buildDiagnostics as Sl, recordingDeviceName as Sn, BuildMissChange as So, trashRoot as Sr, WORKSPACE_STAGE_KINDS as Ss, findProjectRoot as St, HostedAgentAccess as Su, BuildLedgerCacheResult as T, MACHINE_CREDENTIALS_VERSION as Ta, MaintenanceAction as Tc, validEasSessionClaim as Ti, parseMissReason as Tl, PLACEMENT_WORDS as Tn, BuildPlacement as To, workspaceDerivedData as Tr, WebPageState as Ts, readRunEstimates as Tt, HostedAgentIssuedGrant as Tu, HostedLogsPage as U, parseTailnetIdentity as Ua, hostedIosStatus as Uc, debugLogDir as Ui, HostedDeviceOffer as Ul, createdDevicesFile as Un, LoadState as Uo, LogQueryPlan as Ur, SettingScope as Us, diskUsageFailureFile as Ut, HostedAppRecord as Uu, HOSTED_LOGS_PAGE_BYTES as V, machineEndpoint as Va, hostedIosPlacements as Vc, DebugLog as Vi, HostedAndroidDevice as Vl, clientIdentityKeyFile as Vn, GitChipPart as Vo, ERROR_SOURCES as Vr, SettingDefinition as Vs, agentSessionOf as Vt, HostedAppFile as Vu, hostedMacosLogsDir as W, sameTailnet as Wa, parseHostedIosPlacement as Wc, debugLoggingEnabled as Wi, HostedDeviceOfferRequest as Wl, createdDevicesLock as Wn, MACHINE_OWNER_KINDS as Wo, NATIVE_CRASH_LOG_PREFIX as Wr, SettingType as Ws, endedAgentSessionOf as Wt, hostedAppArea as Wu, HOSTED_METRO_REQUESTS_KEY as X, loadPerCore as Xa, hostedAndroidRecords as Xc, getConcurrencyLimits as Xi, HostedIosChoice as Xl, diskUsageWalkClaims as Xn, MemorySource as Xo, compileGrep as Xr, WebViewport as Xs, readDiskUsageFailure as Xt, readHostedAppMetadata as Xu, HOSTED_METRO_LINKS_KEY as Y, buildSlotsDir as Ya, hostedAndroidPlacements as Yc, findEnclosingWorktreeRoot as Yi, HostedDeviceSession as Yl, diskUsageCacheDir as Yn, MacosBuildPlanPayload as Yo, bundleMarkerPlatform as Yr, WEB_VIEWPORTS as Ys, readDiskUsage as Yt, readHostedApp as Yu, HostedMetroLinks as Z, loadState as Za, hostedAndroidStatus as Zc, getParkedMax as Zi, HostedIosDevice as Zl, easMachineStateRoot as Zn, MetroBundleState as Zo, fileIdentity as Zr, acceptsShape as Zs, readEndedAgentSessions as Zt, rememberHostedAppBlobRename as Zu, isSetupJournalPrunable as _, PlatformRecords as _a, archivedUsage as _c, LEVELS as _d, readFingerprintMemo as _i, READY_PHASE_MS as _l, listRecordedDevicesAsync as _n, BuildCause as _o, sharedGradle as _r, StatusPayload as _s, StatsPlacement as _t, readHostedDevice as _u, MachineView as a, windowsShortDirKey as aa, MacosAppRecord as ac, readSwiftpmCacheUsage as ad, queryJsonLogs as ai, BUILD_HISTORY_LIMIT as al, runId as an, ActiveBuildState as ao, maintenanceAttemptFile as ar, RunOutcomeKind as as, CAPACITY_REFUSAL_MAX_AGE_MS as at, hostedIdleStopHours as au, agentDeviceStateDirs as b, SettingsObject as ba, readArchiveAsync as bc, levelRank as bd, CreatedDevices as bi, WarmRecord as bl, openSegmentName as bn, BuildHistoryEntry as bo, supervisorLogFile as br, WEB_PAGE_STATES as bs, StatsScope as bt, HOSTED_AGENT_DRIVERS as bu, SummaryBuild as c, AutomaticPoolRole as ca, MacosProcess as cc, AgentDeviceUsageRoots as cd, readLogTimeline as ci, DEV_SERVER_STOP_REQUEST_KEY as cl, RECORDING_FOOTAGE_MS as cn, AgentSession as co, maintenanceNdjsonFile as cr, StatsPlatform as cs, PLACEMENT_DECISIONS as ct, parseHostedAndroidDevice as cu, WorktreeRow as d, validateAutomaticPool as da, readHostedMacosApp as dc, readAgentDeviceUsageCache as dd, tailRead as di, DeviceIdleShutdownRecord as dl, RecordedSegment as dn, AndroidRuntimeFacts as do, pullRequestCacheDir as dr, StatusCapacity as ds, RunHistory as dt, parseHostedLocalDeviceCount as du, getProjectSettings as ea, isLayeredSetting as ec, MachineCacheUsage as ed, isExpoErrorContext as ei, HostedNativePlacement as el, withGitChip as en, saturation as eo, emulatorLogFile as er, PHYSICAL_DEVICE_CONNECTIONS as es, hostedMetroRequests as et, assertHostedDeviceLedger as eu, statusViews as f, ConcurrencyLimits as fa, readMacosRecord as fc, AgentActionReaderOptions as fd, FINGERPRINT_MEMO_SCHEMA as fi, IDLE_STOP_KEY as fl, RecordingPlatform as fn, AppPresence as fo, serverLocalSocket as fr, StatusCapacityLoad as fs, RunSample as ft, parseHostedLocalPlatformCounts as fu, isJournalExpired as g, PlatformDeviceLimits as ga, archiveEnabled as gc, createAsyncAgentActionReader as gd, fingerprintMemoLock as gi, MetroLastStop as gl, listRecordedDevices as gn, BuildCacheHit as go, sharedCompilationCache as gr, StatusIssueCode as gs, StatsCapacityWait as gt, parseHostedRequest as gu, SetupJournal as h, DoctorRunRecord as ha, ArchivedWorkspace as hc, createAgentActionReader as hd, fingerprintMemoFile as hi, MAINTENANCE_LOG_NAME as hl, footageDrops as hn, BuildActivity as ho, sharedCcache as hr, StatusIssue as hs, StatsCapacityRefusal as ht, parseHostedPlatformDevice as hu, ArchivedSummary as i, windowsShortDir as ia, settingValueError as ic, SwiftpmCacheUsage as id, planLogQuery as ii, BUILD_HISTORY_KEY as il, RUN_ID_ENV as in, APP_PROCESS_STATES as io, gitMergeCacheDir as ir, RemoteDeviceState as is, CAPACITY_REFUSAL_LIMIT as it, hostedDeviceId as iu, BuildLedgerRecord as j, MachineTransport as ja, MaintenanceRecord as jc, readHomeIdentity as ji, readIdleStop as jl, archiveDir as jn, ChecksState as jo, workspaceLogsDir as jr, ANDROID_COMPILER_CACHE_CHOICES as js, trimSamples as jt, hostedAgentDriverName as ju, BuildLedgerPlacement as k, DEFAULT_SERVER_PORT as ka, MaintenancePass as kc, readStateFile as ki, readDeviceIdleShutdowns as kl, prefersRemote as kn, BuildResult as ko, workspaceLightenedFile as kr, WorktreeGit as ks, trimCapacityRefusals as kt, HostedMacosDevice as ku, SummaryHistoryEntry as l, automaticMachineEnabled as la, macosAppState as lc, agentDeviceUsageFile as ld, recordMatches as li, DevServerStopRecord as ll, RECORDING_PLATFORMS as ln, AgentTool as lo, maintenanceRunClaims as lr, StatusBuildSlotHolder as ls, ReadStatsResult as lt, parseHostedChoice as lu, SetupCapability as m, DeviceRecord as ma, ArchivedUsage as mc, AgentTarget as md, fingerprintMemoDir as mi, LAST_BUILD_KEYS as ml, closedSegmentName as mn, BUILD_RESULTS as mo, setupJournalFile as mr, StatusDeviceSlots as ms, StatsBucket as mt, parseHostedOfferRequest as mu, KeyedEntities as n, isPathPrefix as na, replacementAdvice as nc, machineCacheUsageFile as nd, markerWindow as ni, parseHostedNativePlacement as nl, SETTINGS_SCHEMA_URL as nn, ACTIVITY_RECENCY_BASES as no, gcLogFile as nr, PhysicalDeviceState as ns, readDeviceHostMachines as nt, deviceHostRoot as nu, SUMMARY_ARCHIVES as o, withConfigLock as oa, MacosAppState as oc, swiftpmCacheUsageFile as od, queryLogs as oi, DEVICE_IDLE_SHUTDOWN_KEY as ol, validRunId as on, ActivityDriver as oo, maintenanceChildLogFile as or, STATUS_ISSUE_CODES as os, HISTORY_LIMIT as ot, hostedMemoryRefusal as ou, workspaceSummary as p, Config as pa, ArchivedBytes as pc, AgentRecordSelection as pd, FingerprintMemoRecord as pi, IdleStopRecord as pl, capDrops as pn, BUILD_PHASES as po, serverSetupDir as pr, StatusDeviceSlotHolder as ps, STATS_VERSION as pt, parseHostedNativeOffer as pu, readHostedNativeLogsCheckpoint as q, MachineCapacity as qa, HostedAndroidStatus as qc, buildWorkerRoot as qi, HostedDeviceRequest as ql, deviceHostMachinesLock as qn, MachineOwnerKind as qo, attachExpoErrorContext as qr, TUNNEL_MODES as qs, readAgentSessionsCache as qt, parseHostedAppManifest as qu, applyKeyedDelta as r, loadConfig as ra, settingDefinition as rc, readMachineCacheUsage as rd, parseSince as ri, unreadableHostedNative as rl, settingsJsonSchema as rn, AGENT_TOOLS as ro, getConfigPath as rr, PlannedPhase as rs, BuildMachineTotals as rt, hostedConsolePort as ru, StatusViews as s, withConfigLockAsync as sa, MacosBuild as sc, AgentDeviceUsage as sd, readLogRecords as si, DEVICE_RECLAIM_REASON as sl, RECORDING_CAP_BYTES as sn, ActivityRecencyBasis as so, maintenanceDir as sr, SimulatorState as ss, OffloadSummary as st, hostedWorkerSettleMs as su, KeyedDelta as t, getRepoSettings as ta, isSensitiveReference as tc, SimRuntimeUsage as td, logFiles as ti, hostedNativeRecords as tl, SETTINGS_SCHEMA_FILE as tn, tryAcquireBuildSlotClaim as to, gcLogDir as tr, PhysicalDeviceConnection as ts, DeviceHostMachineCredential as tt, deviceHostArea as tu, WorkspaceSummary as u, requireAutomaticMachine as ua, parseMacosRecord as uc, readAgentDeviceUsage as ud, sortByTs as ui, DevServerStopRequest as ul, RecordedDevice as un, AndroidDeviceState as uo, maintenanceStateFile as ur, StatusBuildSlots as us, RunEstimates as ut, parseHostedDevice as uu, parseSetupJournal as v, ProjectRecord as va, linkReplacedArchives as vc, NdjsonRecord as vd, countErrorEntries as vi, WARM_KEY as vl, listSegments as vn, BuildDetail as vo, sharedPods as vr, StatusPlatformDeviceSlots as vs, StatsRecord as vt, readHostedDeviceLedger as vu, BuildLedgerCache as w, BuildMachineCredential as wa, DiskPressureLevel as wc, readEasSessionLedger as wi, lastUseFrom as wl, AutomaticPlacement as wn, BuildPhase as wo, workspaceBuildDetailFile as wr, WebBrowserState as ws, projectRootDirectories as wt, HostedAgentGrant as wu, agentDeviceStateDirsAsync as x, StimConfig as xa, readArchiveState as xc, parseNdjsonLine as xd, EasSessionClaim as xi, WorkspaceState as xl, recordedBytes as xn, BuildMissCategory as xo, supervisorPidFile as xr, WORKSPACE_PHASES as xs, decodeStats as xt, HOSTED_MACOS_APP_SLOTS as xu, readSetupJournal as y, RepoRecord as ya, readArchive as yc, SOURCES as yd, CreatedDevicePlatform as yi, WORKSPACE_AGENT_KEY as yl, listSegmentsAsync as yn, BuildDiagnostic as yo, statsFile as yr, TUTORIAL_VERSION as ys, StatsReport as yt, readHostedSessions as yu, readGcLog as z, findPeer as za, HostedIosPlacement as zc, trace as zi, HOSTED_PARKED_CANDIDATES as zl, buildMachinesFile as zn, EnvironmentState as zo, LogDirQuery as zr, SETTING_GROUPS as zs, PullRequestCacheEntry as zt, HOSTED_APP_CHUNK_BYTES as zu };
3172
+ export { hostedMetroLinks as $, machineCapacity as $a, hostedAndroidPlacements as $c, getPlatformDeviceLimits as $i, HostedDeviceSelectors as $l, easSessionLedgerFile as $n, MetroBundleState as $o, fileSizes as $r, WEB_VIEWPORTS as $s, readPullRequestCache as $t, parseHostedAppOffer as $u, BuildLedgerPlatform as A, DEFAULT_SERVER_PORT as Aa, MaintenanceActionKind as Ac, readStateFile as Ai, parseMissReason as Al, prefersRemote as An, BuildReport as Ao, workspaceLightenedFile as Ar, WorktreeFacts as As, trimCapacityWaits as At, HostedAgentIssuedGrant as Au, HOSTED_LOGS_FIRST_BYTES as B, findPeer as Ba, parseMaintenanceState as Bc, trace as Bi, readWorkspaceState as Bl, buildMachinesFile as Bn, EnvironmentDisk as Bo, LogDirQuery as Br, SETTINGS as Bs, StatusCacheEntry as Bt, parseHostedAgentGrant as Bu, BuildLedgerBoot as C, SupervisorRecord as Ca, readArchive as Cc, NdjsonRecord as Cd, EasSessionLedgerRead as Ci, WARM_KEY as Cl, recordingDeviceName as Cn, BuildMissCategory as Co, trashRoot as Cr, WORKSPACE_PHASES as Cs, offloadSummary as Ct, readHostedDeviceLedger as Cu, BuildLedgerFailure as D, MachineCredential as Da, readArchivesAsync as Dc, parseNdjsonText as Dd, isJsonObject as Di, buildDiagnostics as Dl, PlacementWord as Dn, BuildPlacement as Do, workspaceEndedAgentsFile as Dr, WebPageState as Ds, readStatsReport as Dt, HostedAgentAccess as Du, BuildLedgerDevice as E, MACHINE_CREDENTIALS_VERSION as Ea, readArchives as Ec, parseNdjsonLine as Ed, validEasSessionClaim as Ei, WorkspaceState as El, PLACEMENT_WORDS as En, BuildPhase as Eo, workspaceDerivedData as Er, WebBrowserState as Es, readStats as Et, HOSTED_MACOS_APP_SLOTS as Eu, GcLogRecord as F, TailnetPeer as Fa, MaintenanceRecord as Fc, Trace as Fi, readDevicePlacement as Fl, budgetSweepFile as Fn, DeviceAppProcess as Fo, workspaceStateFile as Fr, ANDROID_PCH_CHOICES as Fs, readViewedDevices as Ft, HostedMacosPlacement as Fu, hostedNativeLogsDir as G, sameTailnet as Ga, hostedIosPlacements as Gc, debugLoggingEnabled as Gi, HostedAndroidChoice as Gl, createdDevicesLock as Gn, LoadState as Go, NATIVE_CRASH_LOG_PREFIX as Gr, SettingDefinition as Gs, gitMergeCacheFile as Gt, HostedAppDelivery as Gu, HostedLogsCursor as H, machineEndpoint as Ha, readMaintenanceState as Hc, DebugLog as Hi, DEVICE_HOST_LIMITS as Hl, clientIdentityKeyFile as Hn, GitChip as Ho, ERROR_SOURCES as Hr, SETTING_SCOPES as Hs, diskUsageCacheFile as Ht, parseHostedMacosDevice as Hu, GcLogStatus as I, WrongTailnet as Ia, MaintenanceSize as Ic, TraceArgs as Ii, readIdleStop as Il, budgetSweepLock as In, DeviceLeaseState as Io, workspaceStateLock as Ir, IOS_SIMULATOR_APPS as Is, stimBuildDigest as It, hostedAgentDriverName as Iu, readLogsSince as J, MachineCapacity as Ja, parseHostedIosPlacement as Jc, buildWorkerRoot as Ji, HostedDeviceOffer as Jl, deviceHostMachinesLock as Jn, MachineOwner as Jo, attachExpoErrorContext as Jr, SettingType as Js, readAgentSessionsCache as Jt, HostedAppRecord as Ju, parseHostedLogsCursor as K, tailscaleEnv as Ka, hostedIosRecords as Kc, ParkedMax as Ki, HostedAndroidDevice as Kl, deviceHostMachinesClaims as Kn, MACHINE_OWNER_KINDS as Ko, QueryCriteria as Kr, SettingEntry as Ks, listStatusCacheEntries as Kt, HostedAppFile as Ku, GcLogTrigger as L, cannotHost as La, MaintenanceState as Lc, TracePhases as Li, readLastBuilds as Ll, buildLedgerDir as Ln, DevicePlacement as Lo, worktreeArchiveRoot as Lr, REMOTE_DEVICE_BACKENDS as Ls, AgentSessionsCache as Lt, hostedMacosAppSlot as Lu, isBuildLedgerRecord as M, MachineTransport as Ma, MaintenanceMode as Mc, readHomeIdentity as Mi, readDevServerStop as Ml, archiveDir as Mn, BuildWaitingFor as Mo, workspaceLogsDir as Mr, WorktreePullRequest as Ms, wholePhases as Mt, HostedAppLaunch as Mu, readBuildLedger as N, TAILNET_MACHINE_PATTERN as Na, MaintenancePass as Nc, EndSpan as Ni, readDevServerStopRequest as Nl, archiveLock as Nn, ChecksState as No, workspaceMetadataFile as Nr, ANDROID_COMPILER_CACHE_CHOICES as Ns, DeviceViewersRecord as Nt, HostedMacosChoice as Nu, BuildLedgerOutcome as O, parseMachineCredential as Oa, DiskPressureLevel as Oc, readNdjsonGenerations as Od, readJsonFile as Oi, lastNativeUseFrom as Ol, mayRunHere as On, BuildPlanPayload as Oo, workspaceEndedAgentsLock as Or, WorkspacePhase as Os, statsProjectKey as Ot, HostedAgentDriverName as Ou, GcLogOptions as P, TailnetIdentity as Pa, MaintenancePressure as Pc, TRACE_ENV as Pi, readDeviceIdleShutdowns as Pl, archiveRoot as Pn, DeviceActivity as Po, workspaceRecordingsDir as Pr, ANDROID_EMULATOR_APPS as Ps, ViewedDevice as Pt, HostedMacosDevice as Pu, HostedMetroRequest as Q, loadState as Qa, hostedAndroidDeviceName as Qc, getParkedMax as Qi, HostedDeviceRequest as Ql, easMachineStateRoot as Qn, MemorySource as Qo, fileIdentity as Qr, TunnelMode as Qs, readEndedAgentSessions as Qt, parseHostedAppManifest as Qu, isGcLogRecord as R, currentTailnet as Ra, MaintenanceStatus as Rc, redactArgv as Ri, readWarmRecord as Rl, buildLedgerFile as Rn, DiskMeasure as Ro, createNdjsonTail as Rr, REPLACED_SETTINGS as Rs, ENDED_AGENT_RETENTION_MS as Rt, hostedMacosBundleId as Ru, BUILD_LEDGER_CAP as S, StimConfig as Sa, linkReplacedArchives as Sc, LEVELS as Sd, EasSessionClaim as Si, READY_PHASE_MS as Sl, recordedBytes as Sn, BuildHistoryEntry as So, supervisorPidFile as Sr, WEB_PAGE_STATES as Ss, findProjectRoot as St, readHostedDevice as Su, BuildLedgerCacheResult as T, BuildMachineCredential as Ta, readArchiveState as Tc, levelRank as Td, readEasSessionLedger as Ti, WarmRecord as Tl, AutomaticPlacement as Tn, BuildMissReason as To, workspaceBuildDetailFile as Tr, WarmStep as Ts, readRunEstimates as Tt, HOSTED_AGENT_DRIVERS as Tu, HostedLogsPage as U, parseMachine as Ua, HostedIosPlacement as Uc, createDebugLog as Ui, DeviceHostLimits as Ul, configLockPath as Un, GitChipPart as Uo, LogQueryOptions as Ur, SHARE_DEFAULT_PORT as Us, diskUsageFailureFile as Ut, parseHostedMacosPlacement as Uu, HOSTED_LOGS_PAGE_BYTES as V, localEndpoint as Va, readMaintenanceAttempt as Vc, DEBUG_ENV as Vi, workspaceLastUsed as Vl, buildMachinesLock as Vn, EnvironmentState as Vo, openLogDir as Vr, SETTING_GROUPS as Vs, agentSessionOf as Vt, parseHostedMacosChoice as Vu, hostedMacosLogsDir as W, parseTailnetIdentity as Wa, HostedIosStatus as Wc, debugLogDir as Wi, HOSTED_PARKED_CANDIDATES as Wl, createdDevicesFile as Wn, LastBuildReport as Wo, LogQueryPlan as Wr, SHARE_EXPOSURES as Ws, endedAgentSessionOf as Wt, HOSTED_APP_CHUNK_BYTES as Wu, HOSTED_METRO_REQUESTS_KEY as X, buildSlotsDir as Xa, HostedAndroidPlacement as Xc, findEnclosingWorktreeRoot as Xi, HostedDevicePhase as Xl, diskUsageCacheDir as Xn, MachineUsageState as Xo, bundleMarkerPlatform as Xr, SettingsPayload as Xs, readDiskUsage as Xt, hostedAppAttempt as Xu, HOSTED_METRO_LINKS_KEY as Y, buildSlotPath as Ya, unreadableHostedIos as Yc, configCorruptRepair as Yi, HostedDeviceOfferRequest as Yl, deviceViewersDir as Yn, MachineOwnerKind as Yo, buildCriteria as Yr, SettingWriteResult as Ys, readBuildDetail as Yt, hostedAppArea as Yu, HostedMetroLinks as Z, loadPerCore as Za, HostedAndroidStatus as Zc, getConcurrencyLimits as Zi, HostedDevicePlatform as Zl, diskUsageWalkClaims as Zn, MacosBuildPlanPayload as Zo, compileGrep as Zr, TUNNEL_MODES as Zs, readDiskUsageFailure as Zt, hostedAppBlobs as Zu, isSetupJournalPrunable as _, PlatformDeviceLimits as _a, ArchivedBytes as _c, AgentActionReaderOptions as _d, fingerprintMemoLock as _i, IDLE_STOP_KEY as _l, listRecordedDevices as _n, BuildActivity as _o, sharedCompilationCache as _r, StatusIssue as _s, StatsPlacement as _t, parseHostedLocalPlatformCounts as _u, MachineView as a, windowsShortDir as aa, isSensitiveReference as ac, MachineCacheUsage as ad, planLogQuery as ai, hostedNativeRecords as al, RUN_ID_ENV as an, AGENT_TOOLS as ao, gitMergeCacheDir as ar, PlannedPhase as as, CAPACITY_REFUSAL_MAX_AGE_MS as at, assertHostedDeviceLedger as au, agentDeviceStateDirs as b, RepoRecord as ba, archiveEnabled as bc, createAgentActionReader as bd, CreatedDevicePlatform as bi, MAINTENANCE_LOG_NAME as bl, listSegmentsAsync as bn, BuildDetail as bo, statsFile as br, StatusPlatformDeviceSlots as bs, StatsScope as bt, parseHostedPlatformDevice as bu, SummaryBuild as c, withConfigLockAsync as ca, settingValueError as cc, readMachineCacheUsage as cd, readLogRecords as ci, BUILD_HISTORY_KEY as cl, RECORDING_CAP_BYTES as cn, ActivityDriver as co, maintenanceDir as cr, STATUS_ISSUE_CODES as cs, PLACEMENT_DECISIONS as ct, hostedConsolePort as cu, WorktreeRow as d, requireAutomaticMachine as da, MacosBuild as dc, swiftpmCacheUsageFile as dd, sortByTs as di, DEVICE_METRO_IDLE_STOP_REASON as dl, RecordedDevice as dn, AgentTool as do, maintenanceStateFile as dr, StatusBuildSlotHolder as ds, RunHistory as dt, hostedMemoryRefusal as du, getProject as ea, WebViewport as ec, readHostedApp as ed, followLogs as ei, hostedAndroidRecords as el, withDerivedFacts as en, maxLoadPerCore as eo, easSessionLedgerLock as er, NATIVE_BUILD_STEPS as es, hostedMetroRequests as et, HostedDeviceSession as eu, statusViews as f, validateAutomaticPool as fa, MacosProcess as fc, AgentDeviceUsage as fd, tailRead as fi, DEVICE_RECLAIM_REASON as fl, RecordedSegment as fn, AndroidDeviceState as fo, pullRequestCacheDir as fr, StatusBuildSlots as fs, RunSample as ft, hostedWorkerSettleMs as fu, isJournalExpired as g, DoctorRunRecord as ga, readMacosRecord as gc, readAgentDeviceUsageCache as gd, fingerprintMemoFile as gi, DeviceIdleShutdownRecord as gl, footageDrops as gn, BUILD_RESULTS as go, sharedCcache as gr, StatusDeviceSlots as gs, StatsCapacityWait as gt, parseHostedLocalDeviceCount as gu, SetupJournal as h, DeviceRecord as ha, readHostedMacosApp as hc, readAgentDeviceUsage as hd, fingerprintMemoDir as hi, DevServerStopRequest as hl, closedSegmentName as hn, BUILD_PHASES as ho, setupJournalFile as hr, StatusDeviceSlotHolder as hs, StatsCapacityRefusal as ht, parseHostedDevice as hu, ArchivedSummary as i, loadConfig as ia, isLayeredSetting as ic, validHostedAppBlob as id, parseSince as ii, HostedNativePlacement as il, settingsJsonSchema as in, ACTIVITY_RECENCY_BASES as io, getConfigPath as ir, PhysicalDeviceState as is, CAPACITY_REFUSAL_LIMIT as it, HostedNativeOffer as iu, BuildLedgerRecord as j, Endpoint as ja, MaintenanceCheck as jc, withStateReadCache as ji, readBuildHistory as jl, agentSessionsCacheFile as jn, BuildResult as jo, workspaceLogErrorIndex as jr, WorktreeGit as js, trimSamples as jt, HostedAgentLease as ju, BuildLedgerPlacement as k, readBuildMachines as ka, MaintenanceAction as kc, readJsonObject as ki, lastUseFrom as kl, placementWord as kn, BuildPlatform as ko, workspaceGradleBuild as kr, WorkspaceStage as ks, trimCapacityRefusals as kt, HostedAgentGrant as ku, SummaryHistoryEntry as l, AutomaticPoolRole as la, MacosAppRecord as lc, SwiftpmCacheUsage as ld, readLogTimeline as li, BUILD_HISTORY_LIMIT as ll, RECORDING_FOOTAGE_MS as ln, ActivityRecencyBasis as lo, maintenanceNdjsonFile as lr, SimulatorState as ls, ReadStatsResult as lt, hostedDeviceId as lu, SetupCapability as m, Config as ma, parseMacosRecord as mc, agentDeviceUsageFile as md, FingerprintMemoRecord as mi, DevServerStopRecord as ml, capDrops as mn, AppPresence as mo, serverSetupDir as mr, StatusCapacityLoad as ms, StatsBucket as mt, parseHostedChoice as mu, KeyedEntities as n, getRepoSettings as na, coerceSettingText as nc, rememberHostedAppBlobRename as nd, logFiles as ni, parseHostedAndroidPlacement as nl, SETTINGS_SCHEMA_FILE as nn, saturation as no, gcLogDir as nr, PHYSICAL_DEVICE_CONNECTIONS as ns, readDeviceHostMachines as nt, HostedIosDevice as nu, SUMMARY_ARCHIVES as o, windowsShortDirKey as oa, replacementAdvice as oc, SimRuntimeUsage as od, queryJsonLogs as oi, parseHostedNativePlacement as ol, runId as on, APP_PROCESS_STATES as oo, maintenanceAttemptFile as or, RemoteDeviceState as os, HISTORY_LIMIT as ot, deviceHostArea as ou, workspaceSummary as p, ConcurrencyLimits as pa, macosAppState as pc, AgentDeviceUsageRoots as pd, FINGERPRINT_MEMO_SCHEMA as pi, DEV_SERVER_STOP_REQUEST_KEY as pl, RecordingPlatform as pn, AndroidRuntimeFacts as po, serverLocalSocket as pr, StatusCapacity as ps, STATS_VERSION as pt, parseHostedAndroidDevice as pu, readHostedNativeLogsCheckpoint as q, wrongTailnet as qa, hostedIosStatus as qc, allMetroPorts as qi, HostedDevice as ql, deviceHostMachinesFile as qn, MEMORY_SOURCES as qo, advanceTail as qr, SettingScope as qs, pullRequestCacheFile as qt, HostedAppOffer as qu, applyKeyedDelta as r, isPathPrefix as ra, expectedShape as rc, validHostedAppArguments as rd, markerWindow as ri, unreadableHostedAndroid as rl, SETTINGS_SCHEMA_URL as rn, tryAcquireBuildSlotClaim as ro, gcLogFile as rr, PhysicalDeviceConnection as rs, BuildMachineTotals as rt, HostedLocalPlatformCounts as ru, StatusViews as s, withConfigLock as sa, settingDefinition as sc, machineCacheUsageFile as sd, queryLogs as si, unreadableHostedNative as sl, validRunId as sn, ActiveBuildState as so, maintenanceChildLogFile as sr, RunOutcomeKind as ss, OffloadSummary as st, deviceHostRoot as su, KeyedDelta as t, getProjectSettings as ta, acceptsShape as tc, readHostedAppMetadata as td, isExpoErrorContext as ti, hostedAndroidStatus as tl, withGitChip as tn, maxOffloadedBuilds as to, emulatorLogFile as tr, NativeBuildStep as ts, DeviceHostMachineCredential as tt, HostedIosChoice as tu, WorkspaceSummary as u, automaticMachineEnabled as ua, MacosAppState as uc, readSwiftpmCacheUsage as ud, recordMatches as ui, DEVICE_IDLE_SHUTDOWN_KEY as ul, RECORDING_PLATFORMS as un, AgentSession as uo, maintenanceRunClaims as ur, StatsPlatform as us, RunEstimates as ut, hostedIdleStopHours as uu, parseSetupJournal as v, PlatformRecords as va, ArchivedUsage as vc, AgentRecordSelection as vd, readFingerprintMemo as vi, IdleStopRecord as vl, listRecordedDevicesAsync as vn, BuildCacheHit as vo, sharedGradle as vr, StatusIssueCode as vs, StatsRecord as vt, parseHostedNativeOffer as vu, BuildLedgerCache as w, clientIdentity as wa, readArchiveAsync as wc, SOURCES as wd, readCreatedDevices as wi, WORKSPACE_AGENT_KEY as wl, recordingEnabled as wn, BuildMissChange as wo, workspaceAgentDeviceDir as wr, WORKSPACE_STAGE_KINDS as ws, projectRootDirectories as wt, readHostedSessions as wu, agentDeviceStateDirsAsync as x, SettingsObject as xa, archivedUsage as xc, createAsyncAgentActionReader as xd, CreatedDevices as xi, MetroLastStop as xl, openSegmentName as xn, BuildDiagnostic as xo, supervisorLogFile as xr, TUTORIAL_VERSION as xs, decodeStats as xt, parseHostedRequest as xu, readSetupJournal as y, ProjectRecord as ya, ArchivedWorkspace as yc, AgentTarget as yd, countErrorEntries as yi, LAST_BUILD_KEYS as yl, listSegments as yn, BuildCause as yo, sharedPods as yr, StatusPayload as ys, StatsReport as yt, parseHostedOfferRequest as yu, readGcLog as z, endpoint as za, MemoryCulprit as zc, redactCommandLine as zi, readWorkspaceAgent as zl, buildLedgerLock as zn, EndedAgentSession as zo, LogDir as zr, RemoteDeviceBackend as zs, PullRequestCacheEntry as zt, parseHostedAgentAccess 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-vj7I82Au.mjs";
1
+ import { F as BuildSwiftpmArtifactQuery, M as BuildReactNativeArtifactQuery, m as BuildArtifactIdentity } from "./protocol-D8N3IFDO.mjs";
2
2
  import { Server, Socket } from "node:net";
3
3
  //#region dir-lock.d.ts
4
4
  interface DirLockOptions {
@@ -1,5 +1,5 @@
1
- import { $t as withDerivedFacts, Ac as MaintenancePressure, Ao as BuildWaitingFor, As as WorktreePullRequest, Au as HostedMacosPlacement, Bo as GitChip, Co as BuildMissReason, Ds as WorkspaceStage, Eo as BuildPlanPayload, Ho as LastBuildReport, Io as DiskMeasure, Jo as MachineUsageState, Ko as MachineOwner, Mo as DeviceActivity, No as DeviceAppProcess, Oo as BuildReport, Os as WorktreeFacts, Pc as MaintenanceStatus, Po as DeviceLeaseState, Ro as EnvironmentDisk, So as BuildMissChange, Tc as MaintenanceAction, To as BuildPlacement, Zo as MetroBundleState, _s as StatusPayload, a as MachineView, ac as MacosAppRecord, bo as BuildHistoryEntry, co as AgentSession, f as statusViews, hc as ArchivedWorkspace, ho as BuildActivity, hs as StatusIssue, i as ArchivedSummary, is as RemoteDeviceState, kc as MaintenancePass, ks as WorktreeGit, mc as ArchivedUsage, ns as PhysicalDeviceState, r as applyKeyedDelta, sc as MacosBuild, ss as SimulatorState, uo as AndroidDeviceState, vo as BuildDetail, ws as WebBrowserState, yo as BuildDiagnostic, zo as EnvironmentState } from "./index-CkOGNKg6.mjs";
2
- import { $ as DesktopBuildEndedEvent, $n as ProtocolError, $r as WorkspaceFiles, Bn as NotificationLevel, Br as UsageSample, Cn as MachineDetails, Ct as DesktopWorktreeWarmProgressEvent, Dt as DeviceUsageSeries, Et as DevicePosture, G as ControlBeginParams, Gt as HelloResult, Ht as FramesSubscribeResult, It as FrameDelayedEvent, J as ControlEndedEvent, K as ControlBeginResult, Lr as TouchPhase, Lt as FrameEvent, Mr as SimulatorOptions, O as BuildPlanParams, On as MachineUsage, Pn as Methods, Pr as StatusEvent, Qr as WorkspaceFile, Rn as NotificationEntry, Rt as FrameTarget, Sr as ServerEvent, St as DesktopWorktreeWarmEndedEvent, T as BuildMachineReport, Tn as MachineHistory, Tt as DeviceFrameEvent, Vn as NotificationSuppression, Wn as NotificationsListResult, Wt as HelloParams, X as DEVICE_HOST_METHODS, Xn as Platform, Xr as WorkspaceDiff, Yt as InputButton, Zr as WorkspaceEvent, Zt as InputKey, _n as LogsEndedEvent, _r as ReplayTarget, _t as DesktopStartProgressEvent, a as ActionResult, br as SERVER_UPDATE_METHODS, bt as DesktopWorktreeRemoveEndedEvent, c as ArchivedListParams, ct as DesktopReloadProgressEvent, dr as ReplayEndedEvent, er as PushEvent, et as DesktopBuildProgressEvent, fr as ReplayKeyframe, ft as DesktopRunEndedEvent, gn as LogSource, gr as ReplaySpan, gt as DesktopStartEndedEvent, hn as LogRecord, hr as ReplayRange, i as ActionParams, j as BuildProgressEvent, jn as MacosWindowsEvent, jr as SimulatorCommand, jt as ErrorEvent, kn as MachineVolume, lt as DesktopReportEvent, mn as LogLevel, mr as ReplayMarker, ni as WorkspaceRef, nn as InputSimulatorParams, nt as DesktopGcProgressEvent, o as ArchiveDetailParams, pn as LogFilter, pr as ReplayKeyframeParams, pt as DesktopRunProgressEvent, qn as PROTOCOL_VERSION, r as ActionName, ri as WorkspacesEvent, sn as KeyModifier, st as DesktopReloadEndedEvent, t as ACTIONS, ti as WorkspacePatch, tr as PushRegisterParams, tt as DesktopGcEndedEvent, u as BUILD_METHODS, v as BuildClientSummary, vn as LogsEvent, vt as DesktopStopEndedEvent, wn as MachineEvent, wt as DeviceFrameArtwork, xt as DesktopWorktreeRemoveProgressEvent, yn as LogsQueryResult, yr as RotateDirection, yt as DesktopStopProgressEvent, zn as NotificationEvent, zr as UsageHistory } from "./protocol-vj7I82Au.mjs";
1
+ import { $o as MetroBundleState, Ao as BuildReport, As as WorktreeFacts, Bo as EnvironmentDisk, Do as BuildPlacement, Es as WebBrowserState, Fo as DeviceAppProcess, Fu as HostedMacosPlacement, Ho as GitChip, Io as DeviceLeaseState, Jo as MachineOwner, Mo as BuildWaitingFor, Ms as WorktreePullRequest, Nc as MaintenancePass, Oo as BuildPlanPayload, Pc as MaintenancePressure, Po as DeviceActivity, Rc as MaintenanceStatus, Ro as DiskMeasure, So as BuildHistoryEntry, To as BuildMissReason, Vo as EnvironmentState, Wo as LastBuildReport, Xo as MachineUsageState, _o as BuildActivity, _s as StatusIssue, a as MachineView, bo as BuildDetail, dc as MacosBuild, en as withDerivedFacts, f as statusViews, fo as AndroidDeviceState, i as ArchivedSummary, is as PhysicalDeviceState, js as WorktreeGit, kc as MaintenanceAction, ks as WorkspaceStage, lc as MacosAppRecord, ls as SimulatorState, os as RemoteDeviceState, r as applyKeyedDelta, uo as AgentSession, vc as ArchivedUsage, wo as BuildMissChange, xo as BuildDiagnostic, yc as ArchivedWorkspace, ys as StatusPayload } from "./index-DRnTwJ-z.mjs";
2
+ import { $ as DesktopBuildEndedEvent, $n as Platform, At as DeviceUsageSeries, Bt as FrameEvent, Cr as SERVER_UPDATE_METHODS, Ct as DesktopWorktreeRemoveProgressEvent, Dn as MachineEvent, Dt as DeviceFrameEvent, En as MachineDetails, Et as DeviceFrameArtwork, Fr as SimulatorOptions, G as ControlBeginParams, Gt as FramesSubscribeResult, Hn as NotificationEvent, Hr as UsageSample, J as ControlEndedEvent, Jt as HelloResult, K as ControlBeginResult, Ln as Methods, Mn as MachineVolume, O as BuildPlanParams, On as MachineHistory, Ot as DevicePosture, Pn as MacosWindowsEvent, Pr as SimulatorCommand, Pt as ErrorEvent, Qt as InputButton, Sn as LogsQueryResult, Sr as RotateDirection, St as DesktopWorktreeRemoveEndedEvent, T as BuildMachineReport, Tr as ServerEvent, Tt as DesktopWorktreeWarmProgressEvent, Un as NotificationLevel, Vn as NotificationEntry, Vr as UsageHistory, Vt as FrameTarget, Wn as NotificationSuppression, X as DEVICE_HOST_METHODS, Xn as PROTOCOL_VERSION, _n as LogLevel, _r as ReplayMarker, a as ActionResult, ai as WorkspacePatch, an as InputSimulatorParams, bn as LogsEndedEvent, br as ReplayTarget, bt as DesktopStopEndedEvent, c as ArchivedListParams, ct as DesktopReloadProgressEvent, dt as DesktopReportEvent, ei as WorkspaceDiff, en as InputKey, et as DesktopBuildProgressEvent, gn as LogFilter, gr as ReplayKeyframeParams, hr as ReplayKeyframe, ht as DesktopRunProgressEvent, i as ActionParams, ir as PushRegisterParams, j as BuildProgressEvent, jn as MachineUsage, lt as DesktopRemedyEndedEvent, mr as ReplayEndedEvent, mt as DesktopRunEndedEvent, ni as WorkspaceFile, nr as ProtocolError, nt as DesktopGcProgressEvent, o as ArchiveDetailParams, oi as WorkspaceRef, qn as NotificationsListResult, qt as HelloParams, r as ActionName, ri as WorkspaceFiles, rr as PushEvent, si as WorkspacesEvent, st as DesktopReloadEndedEvent, t as ACTIONS, ti as WorkspaceEvent, tt as DesktopGcEndedEvent, u as BUILD_METHODS, un as KeyModifier, ut as DesktopRemedyProgressEvent, v as BuildClientSummary, vn as LogRecord, vr as ReplayRange, vt as DesktopStartEndedEvent, wt as DesktopWorktreeWarmEndedEvent, xn as LogsEvent, xt as DesktopStopProgressEvent, yn as LogSource, yr as ReplaySpan, yt as DesktopStartProgressEvent, zr as TouchPhase, zt as FrameDelayedEvent } from "./protocol-D8N3IFDO.mjs";
3
3
  //#region phone-protocol.d.ts
4
4
  type PhonePlatform = BuildPlanParams["platform"];
5
5
  type PhoneDevicePlatform = Platform;
@@ -413,10 +413,6 @@ type PhoneNotificationsListResult = Omit<NotificationsListResult, "notifications
413
413
  type PhoneProtocolError = Omit<ProtocolError, "code"> & {
414
414
  code: string;
415
415
  };
416
- type PhoneStatusEvent = Omit<StatusEvent, "payload" | "usage"> & {
417
- payload: PhoneStatusPayload;
418
- usage?: PhoneStatusUsage;
419
- };
420
416
  type PhoneLogsEndedEvent = LogsEndedEvent;
421
417
  type PhoneLogsEvent = Omit<LogsEvent, "records"> & {
422
418
  records: PhoneLogRecord[];
@@ -439,7 +435,7 @@ type PhoneControlEndedEvent = Omit<ControlEndedEvent, "reason"> & {
439
435
  type PhoneNotificationEvent = Omit<NotificationEvent, "notification"> & {
440
436
  notification: PhoneNotificationEntry;
441
437
  };
442
- type PhoneServerEvent = Exclude<ServerEvent, BuildProgressEvent | StatusEvent | WorkspacesEvent | WorkspaceEvent | MachineEvent | LogsEvent | ErrorEvent | FrameEvent | ControlEndedEvent | NotificationEvent | MacosWindowsEvent | DesktopReportEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStartProgressEvent | DesktopStartEndedEvent | DesktopRunProgressEvent | DesktopRunEndedEvent | DesktopBuildProgressEvent | DesktopBuildEndedEvent | DesktopGcProgressEvent | DesktopGcEndedEvent | DesktopWorktreeRemoveProgressEvent | DesktopWorktreeRemoveEndedEvent | DesktopWorktreeWarmProgressEvent | DesktopWorktreeWarmEndedEvent> | PhoneMacosWindowsEvent | PhoneStatusEvent | PhoneWorkspacesEvent | PhoneWorkspaceEvent | PhoneMachineEvent | PhoneLogsEvent | PhoneErrorEvent | PhoneFrameEvent | PhoneControlEndedEvent | PhoneNotificationEvent;
438
+ type PhoneServerEvent = Exclude<ServerEvent, BuildProgressEvent | WorkspacesEvent | WorkspaceEvent | MachineEvent | LogsEvent | ErrorEvent | FrameEvent | ControlEndedEvent | NotificationEvent | MacosWindowsEvent | DesktopReportEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopRemedyProgressEvent | DesktopRemedyEndedEvent | DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStartProgressEvent | DesktopStartEndedEvent | DesktopRunProgressEvent | DesktopRunEndedEvent | DesktopBuildProgressEvent | DesktopBuildEndedEvent | DesktopGcProgressEvent | DesktopGcEndedEvent | DesktopWorktreeRemoveProgressEvent | DesktopWorktreeRemoveEndedEvent | DesktopWorktreeWarmProgressEvent | DesktopWorktreeWarmEndedEvent> | PhoneMacosWindowsEvent | PhoneWorkspacesEvent | PhoneWorkspaceEvent | PhoneMachineEvent | PhoneLogsEvent | PhoneErrorEvent | PhoneFrameEvent | PhoneControlEndedEvent | PhoneNotificationEvent;
443
439
  /** Fields introduced after protocol v1's initial release remain optional on the receiving client. */
444
440
  type OptionalFields<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
445
441
  type PhoneHelloResult = OptionalFields<Omit<HelloResult, "server" | "features" | "capabilities" | "actions" | "approval">, "device"> & {
@@ -452,7 +448,7 @@ type PhoneHelloResult = OptionalFields<Omit<HelloResult, "server" | "features" |
452
448
  expiresAt: string;
453
449
  };
454
450
  };
455
- type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVICE_HOST_METHODS)[number] | (typeof SERVER_UPDATE_METHODS)[number] | "desktop.authenticate" | "desktop.reports.get" | "desktop.reports.subscribe" | "desktop.reports.invalidate" | "desktop.settings.get" | "desktop.settings.write" | "desktop.logs.subscribe" | "desktop.doctor.run" | "desktop.stop.subscribe" | "desktop.reload.subscribe" | "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" | "machines.update.start" | "machines.update.status" | "device-host.sessions" | "device-host.sessions.stop" | "route.setup" | "hello" | "logs.query" | "machine.get" | "machine.details" | "machine.history" | "workspace.diff" | "frames.subscribe" | "replay.range" | "archive.detail" | "replay.keyframe" | "build.plan" | "action" | "control.begin" | "notifications.list" | "builds.history" | "archived.list" | "worktrees.list" | "maintenance.get"> & {
451
+ type PhoneMethods = Omit<Methods, (typeof BUILD_METHODS)[number] | (typeof DEVICE_HOST_METHODS)[number] | (typeof SERVER_UPDATE_METHODS)[number] | "desktop.authenticate" | "desktop.reports.get" | "desktop.reports.subscribe" | "desktop.reports.invalidate" | "desktop.settings.get" | "desktop.settings.write" | "desktop.logs.subscribe" | "desktop.doctor.run" | "desktop.remedy.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" | "machines.update.start" | "machines.update.status" | "device-host.sessions" | "device-host.sessions.stop" | "share.start" | "share.stop" | "share.list" | "route.setup" | "hello" | "logs.query" | "machine.get" | "machine.details" | "machine.history" | "workspace.diff" | "frames.subscribe" | "replay.range" | "archive.detail" | "replay.keyframe" | "build.plan" | "action" | "control.begin" | "notifications.list" | "builds.history" | "archived.list" | "worktrees.list" | "maintenance.get"> & {
456
452
  "builds.history": {
457
453
  params: WorkspaceRef;
458
454
  result: {
@@ -550,4 +546,4 @@ type PhoneResponse<M extends PhoneMethod = PhoneMethod> = {
550
546
  };
551
547
  type PhoneServerMessage = PhoneResponse | PhoneServerEvent;
552
548
  //#endregion
553
- 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 PhoneArchivedSummary as ArchivedSummary, PhoneArchivedSummary, type PhoneArchivedWorkspace as ArchivedWorkspace, PhoneArchivedWorkspace, 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 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 PhoneMachineEvent as MachineEvent, PhoneMachineEvent, 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 PhoneMachineView as MachineView, PhoneMachineView, 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, PhoneKeyedDelta, 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, PhoneWorkspaceEvent, type PhoneWorkspaceEvent as WorkspaceEvent, PhoneWorkspaceFile, type PhoneWorkspaceFile as WorkspaceFile, PhoneWorkspaceFiles, type PhoneWorkspaceFiles as WorkspaceFiles, PhoneWorkspacePatch, type PhoneWorkspacePatch as WorkspacePatch, PhoneWorkspaceSummary, type PhoneWorkspaceSummary as WorkspaceSummary, PhoneWorkspacesEvent, type PhoneWorkspacesEvent as WorkspacesEvent, PhoneWorktreeFacts, type PhoneWorktreeFacts as WorktreeFacts, PhoneWorktreeGit, type PhoneWorktreeGit as WorktreeGit, PhoneWorktreeRow, type PhoneWorktreeRow as WorktreeRow, applyKeyedDelta, statusViews, withDerivedFacts };
549
+ 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 PhoneArchivedSummary as ArchivedSummary, PhoneArchivedSummary, type PhoneArchivedWorkspace as ArchivedWorkspace, PhoneArchivedWorkspace, 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 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 PhoneMachineEvent as MachineEvent, PhoneMachineEvent, 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 PhoneMachineView as MachineView, PhoneMachineView, 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, PhoneKeyedDelta, 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, 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, PhoneWorkspaceEvent, type PhoneWorkspaceEvent as WorkspaceEvent, PhoneWorkspaceFile, type PhoneWorkspaceFile as WorkspaceFile, PhoneWorkspaceFiles, type PhoneWorkspaceFiles as WorkspaceFiles, PhoneWorkspacePatch, type PhoneWorkspacePatch as WorkspacePatch, PhoneWorkspaceSummary, type PhoneWorkspaceSummary as WorkspaceSummary, PhoneWorkspacesEvent, type PhoneWorkspacesEvent as WorkspacesEvent, PhoneWorktreeFacts, type PhoneWorktreeFacts as WorktreeFacts, PhoneWorktreeGit, type PhoneWorktreeGit as WorktreeGit, PhoneWorktreeRow, type PhoneWorktreeRow as WorktreeRow, applyKeyedDelta, statusViews, withDerivedFacts };
@@ -1,4 +1,4 @@
1
- import { Bu as HostedAppDelivery, Du as HostedAppLaunch, Eo as BuildPlanPayload, Gl as HostedDevicePhase, Gs as SettingWriteResult, H as HostedLogsCursor, Hu as HostedAppOffer, Kl as HostedDevicePlatform, Os as WorktreeFacts, Pc as MaintenanceStatus, U as HostedLogsPage, Ul as HostedDeviceOffer, Us as SettingScope, Wl as HostedDeviceOfferRequest, Yl as HostedDeviceSession, Yo as MacosBuildPlanPayload, _s as StatusPayload, a as MachineView, bo as BuildHistoryEntry, d as WorktreeRow, hc as ArchivedWorkspace, i as ArchivedSummary, mc as ArchivedUsage, ql as HostedDeviceRequest, t as KeyedDelta, u as WorkspaceSummary, vd as NdjsonRecord, zo as EnvironmentState } from "./index-CkOGNKg6.mjs";
1
+ import { As as WorktreeFacts, Cd as NdjsonRecord, Gu as HostedAppDelivery, H as HostedLogsCursor, Jl as HostedDeviceOffer, Mu as HostedAppLaunch, Oo as BuildPlanPayload, Ql as HostedDeviceRequest, Rc as MaintenanceStatus, So as BuildHistoryEntry, U as HostedLogsPage, Vo as EnvironmentState, Xl as HostedDevicePhase, Yl as HostedDeviceOfferRequest, Ys as SettingWriteResult, Zl as HostedDevicePlatform, Zo as MacosBuildPlanPayload, a as MachineView, d as WorktreeRow, eu as HostedDeviceSession, i as ArchivedSummary, qs as SettingScope, qu as HostedAppOffer, t as KeyedDelta, u as WorkspaceSummary, vc as ArchivedUsage, yc as ArchivedWorkspace } from "./index-DRnTwJ-z.mjs";
2
2
  //#region protocol.d.ts
3
3
  declare const PROTOCOL_VERSION = 2;
4
4
  declare const PROTOCOL_SCHEMA_FILE = "protocol.schema.json";
@@ -27,6 +27,7 @@ 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-app-state` queries the current process state of an installed iOS or Android app attempt.
30
31
  * `hosted-ios-process` and `hosted-android-process` accept native app offers in process mode, with live process readiness and no Metro.
31
32
  * `hosted-metro-link` carries hosted Metro over `device-host.metro.link` connections the client opens, so the host never
32
33
  * connects to the client.
@@ -44,6 +45,7 @@ type Capability = (typeof CAPABILITIES)[number];
44
45
  * `fingerprint-ignored` accepts `fingerprintIgnored` on `build.start`, the paths the caller's git ignored that the machine's git cannot.
45
46
  * `fingerprint-tracked` accepts `fingerprintTracked` on `build.start`, the top-level entries the caller's git tracks although an ignore pattern matches them.
46
47
  * `native-gradle-peer-cache` queries and fetches completed APKs after rechecking worker-private inputs.
48
+ * `native-gradle-peer-jdk` accepts an exact JDK major on native Gradle artifact queries.
47
49
  * `swiftpm-peer-cache` queries and fetches completed SwiftPM apps after rechecking worker-private inputs.
48
50
  * `build-dependency-cache` checks dependency warmth against the requested project and install selection.
49
51
  * `server-update` is `server.update.status`, `server.update.start` and `server.update.chunk`.
@@ -52,9 +54,8 @@ type Capability = (typeof CAPABILITIES)[number];
52
54
  * `build-reuse-artifact` accepts `reuseArtifact` with `podsOnWorker` on `build.start`.
53
55
  * `build-jdk` accepts `jdk` on `build.start`, the JDK major an Android build runs on; the machine finds an installed JDK of that
54
56
  * major when its default differs.
55
- * `status-views` is `workspaces.subscribe`, `workspace.subscribe`, `machine.subscribe`, `builds.history`,
56
- * `archived.list`, `worktrees.list` and `maintenance.get`.
57
57
  * `desktop-reports` serves cached doctor/GC reports to the authenticated local Desktop connection.
58
+ * `desktop-machine-history` adds machine-wide build and cleanup history to those reports.
58
59
  * `desktop-report-platform` accepts an optional ios/android selector for Desktop doctor reports.
59
60
  * `desktop-report-invalidate-target` accepts a report target in `desktop.reports.invalidate`, which then invalidates only it.
60
61
  * `desktop-settings` reads settings for a selected folder on the authenticated local Desktop connection.
@@ -67,9 +68,9 @@ type Capability = (typeof CAPABILITIES)[number];
67
68
  * `desktop-plan` reads next-build reports for selected folders on the proved local Desktop connection.
68
69
  * `desktop-reload` streams reload output and its terminal result on the proved local Desktop connection.
69
70
  */
70
- 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", "hosted-metro-link", "hosted-agent-link", "server-update", "build-compat", "build-jdk", "build-reuse-artifact", "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"];
71
+ 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", "hosted-app-state", "native-xcode-build", "native-xcode-toolchain", "build-artifact-cache", "native-gradle-build", "native-gradle-artifact-cache", "native-gradle-peer-cache", "native-gradle-peer-jdk", "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", "hosted-metro-link", "hosted-agent-link", "server-update", "build-compat", "build-jdk", "build-reuse-artifact", "desktop-reports", "desktop-machine-history", "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-remedy", "desktop-device-tools", "desktop-stop", "desktop-reload", "desktop-start", "desktop-run", "desktop-build", "desktop-gc", "desktop-worktree-remove", "desktop-worktree-warm", "desktop-plan"];
71
72
  type Feature = (typeof FEATURES)[number];
72
- 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.metro.link", "device-host.agent.link", "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"];
73
+ 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.remedy.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", "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.runtime.install", "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.app.state", "device-host.logs.query", "device-host.metro.open", "device-host.metro.ports", "device-host.metro.close", "device-host.metro.link", "device-host.agent.link", "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", "share.start", "share.stop", "share.list"];
73
74
  /**
74
75
  * The methods that update this server's `stim-server service`. A machine this one approved for `build` or
75
76
  * `device-host` may call them; they need neither `read` nor `control`.
@@ -78,7 +79,7 @@ declare const SERVER_UPDATE_METHODS: readonly ["server.update.status", "server.u
78
79
  /** The methods a connection with the `build` capability may call; they need `build`, not `read`. */
79
80
  declare const BUILD_METHODS: readonly ["build.offer", "build.sync", "build.start", "build.cancel", "build.artifact", "build.cached-artifact", "build.attach"];
80
81
  /** Methods restricted to explicitly approved device-host clients. */
81
- declare const DEVICE_HOST_METHODS: readonly ["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.metro.link", "device-host.agent.link", "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"];
82
+ declare const DEVICE_HOST_METHODS: readonly ["device-host.runtime.install", "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.app.state", "device-host.logs.query", "device-host.metro.open", "device-host.metro.ports", "device-host.metro.close", "device-host.metro.link", "device-host.agent.link", "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"];
82
83
  type Method = (typeof METHODS)[number];
83
84
  declare const PUSH_TOKEN_PATTERN = "^(Expo|Exponent)PushToken\\[[^\\]\\s]{1,256}\\]$";
84
85
  /**
@@ -221,7 +222,7 @@ type DesktopReportTarget = {
221
222
  cwd: string;
222
223
  platform?: "ios" | "android";
223
224
  } | {
224
- report: "gc";
225
+ report: "gc" | "gc-history" | "builds";
225
226
  };
226
227
  interface DesktopReportSnapshot {
227
228
  pending: boolean;
@@ -700,6 +701,8 @@ type BuildReactNativeArtifactQuery = {
700
701
  /** A declared native Gradle request with a resolved variant, excluding worker-private inputs and APK identity. */
701
702
  interface BuildGradleArtifactQuery {
702
703
  project: string;
704
+ /** The exact JDK major to revalidate, sent only with native-gradle-peer-jdk. */
705
+ jdk?: string;
703
706
  sourceDigest: string;
704
707
  inputs: GradleOffloadInputs;
705
708
  android: BuildAndroidOptions & {
@@ -775,7 +778,8 @@ interface BuildToolchain {
775
778
  androidHome?: string;
776
779
  }
777
780
  /**
778
- * How busy the remote machine is. `running` counts offloaded builds and `max` is how many it runs at once.
781
+ * How busy the remote machine is. `running` counts offloaded builds and `max` is how many it runs at once, 0 when
782
+ * unlimited (`server.maxOffloadedBuilds`).
779
783
  * `cpus`, `loadPerCore` (5-minute load average per CPU), `builds` (its own Stim native builds plus the offloaded
780
784
  * ones), `maxBuilds` (its `concurrency.maxBuilds`, 0 when unlimited), `maxLoadPerCore`, `memoryUsedBytes`
781
785
  * (Activity Monitor's Memory Used) and `memoryTotalBytes` are absent from a stim-server older than them. `declined` is why it would refuse a build now, null when it would take one.
@@ -1289,7 +1293,53 @@ interface HostedSessionRow {
1289
1293
  since: string;
1290
1294
  workspace: string;
1291
1295
  }
1296
+ /** A live web share, as `share.list` lists it; never its URL token or password. */
1297
+ interface WebShareRow {
1298
+ id: string;
1299
+ workspace: string;
1300
+ platform: "ios" | "android";
1301
+ slot: string;
1302
+ physical: boolean;
1303
+ control: boolean;
1304
+ expiresAt: string;
1305
+ viewers: number;
1306
+ /** How viewers get in: a generated password, one the person set, or the URL alone. */
1307
+ auth: "generated" | "set" | "none";
1308
+ }
1309
+ interface WebShareStartParams {
1310
+ workspace: string;
1311
+ platform: "ios" | "android";
1312
+ slot?: string;
1313
+ physical?: boolean;
1314
+ control?: boolean;
1315
+ expiresMinutes?: number;
1316
+ /** 8 to 128 characters; never sent back. Without it, and without `passwordless`, the server generates one. */
1317
+ password?: string;
1318
+ passwordless?: boolean;
1319
+ }
1292
1320
  interface Methods {
1321
+ "share.start": {
1322
+ params: WebShareStartParams;
1323
+ result: WebShareRow & {
1324
+ url: string;
1325
+ password?: string;
1326
+ warning?: string;
1327
+ };
1328
+ };
1329
+ "share.stop": {
1330
+ params: {
1331
+ workspace: string;
1332
+ };
1333
+ result: {
1334
+ stopped: WebShareRow[];
1335
+ };
1336
+ };
1337
+ "share.list": {
1338
+ params?: Record<string, never>;
1339
+ result: {
1340
+ shares: WebShareRow[];
1341
+ };
1342
+ };
1293
1343
  "device-host.sessions": {
1294
1344
  params?: Record<string, never>;
1295
1345
  result: {
@@ -1348,6 +1398,14 @@ interface Methods {
1348
1398
  };
1349
1399
  result: WorkspaceDiff;
1350
1400
  };
1401
+ "device-host.runtime.install": {
1402
+ params: {
1403
+ runtime: string;
1404
+ };
1405
+ result: {
1406
+ ok: true;
1407
+ };
1408
+ };
1351
1409
  "device-host.offer": {
1352
1410
  params: HostedDeviceOfferRequest;
1353
1411
  result: HostedDeviceOffer;
@@ -1425,6 +1483,15 @@ interface Methods {
1425
1483
  };
1426
1484
  result: HostedAppLaunch;
1427
1485
  };
1486
+ "device-host.app.state": {
1487
+ params: {
1488
+ session: string;
1489
+ attempt: string;
1490
+ };
1491
+ result: {
1492
+ state: "running" | "stopped" | "unknown";
1493
+ };
1494
+ };
1428
1495
  "device-host.logs.query": {
1429
1496
  params: {
1430
1497
  session: string;
@@ -1546,6 +1613,23 @@ interface Methods {
1546
1613
  };
1547
1614
  result: Record<string, unknown>;
1548
1615
  };
1616
+ "desktop.remedy.subscribe": {
1617
+ params: {
1618
+ cwd: string;
1619
+ } & ({
1620
+ action: "doctor-fix";
1621
+ platform?: "ios" | "android";
1622
+ } | {
1623
+ action: "device-unlock";
1624
+ platform?: "ios" | "android";
1625
+ slot?: string;
1626
+ } | {
1627
+ action: "device-tool";
1628
+ request: DeviceToolRequest;
1629
+ slot?: string;
1630
+ });
1631
+ result: SubscribeResult;
1632
+ };
1549
1633
  "desktop.machine-access.subscribe": {
1550
1634
  params: {
1551
1635
  cwd: string;
@@ -1636,10 +1720,6 @@ interface Methods {
1636
1720
  };
1637
1721
  result: SubscribeResult;
1638
1722
  };
1639
- "status.subscribe": {
1640
- params?: Record<string, never>;
1641
- result: SubscribeResult;
1642
- };
1643
1723
  "workspaces.subscribe": {
1644
1724
  params?: Record<string, never>;
1645
1725
  result: SubscribeResult;
@@ -1875,15 +1955,6 @@ interface UsageHistory {
1875
1955
  })[];
1876
1956
  devices: DeviceUsageSeries[];
1877
1957
  }
1878
- /** A full status payload, as `stim status --watch --json` prints it, and the server's usage history, when it has one. */
1879
- interface StatusEvent {
1880
- event: "status";
1881
- subscription: string;
1882
- payload: StatusPayload;
1883
- usage?: UsageHistory;
1884
- /** `grantedAt` of the device leases this server holds for phones; absent when it holds none. */
1885
- ownLeases?: string[];
1886
- }
1887
1958
  /**
1888
1959
  * Records for a `logs.subscribe` subscription: first the last `tail` matching records, then new ones as
1889
1960
  * they arrive. An archive subscription sends its matching records, then `logs-ended`.
@@ -2206,6 +2277,41 @@ interface DesktopMachineAccessEndedEvent {
2206
2277
  stdout: string;
2207
2278
  message: string;
2208
2279
  }
2280
+ type DeviceToolRequest = {
2281
+ tool: "location";
2282
+ platform: "ios" | "android";
2283
+ set: string;
2284
+ } | {
2285
+ tool: "location";
2286
+ platform: "ios" | "android";
2287
+ clear: true;
2288
+ } | {
2289
+ tool: "permission";
2290
+ platform: "ios" | "android";
2291
+ action: "grant" | "revoke" | "reset";
2292
+ service: string;
2293
+ } | {
2294
+ tool: "push";
2295
+ platform: "ios";
2296
+ payload: string;
2297
+ } | {
2298
+ tool: "network";
2299
+ platform: "android";
2300
+ state: "on" | "off";
2301
+ };
2302
+ interface DesktopRemedyProgressEvent {
2303
+ event: "desktop-remedy-progress";
2304
+ subscription: string;
2305
+ stream: "stdout" | "stderr";
2306
+ message: string;
2307
+ }
2308
+ interface DesktopRemedyEndedEvent {
2309
+ event: "desktop-remedy-ended";
2310
+ subscription: string;
2311
+ exitCode: 0 | 1;
2312
+ stdout: string;
2313
+ message: string;
2314
+ }
2209
2315
  /**
2210
2316
  * Sent on a `device-host.metro.link` connection when the host pairs it with one Metro stream; binary frames follow.
2211
2317
  * Only device-host links receive it, so it is not a `ServerEvent`.
@@ -2213,7 +2319,7 @@ interface DesktopMachineAccessEndedEvent {
2213
2319
  interface MetroLinkOpenEvent {
2214
2320
  event: "device-host.metro.link.open";
2215
2321
  }
2216
- type ServerEvent = DesktopMachineAccessProgressEvent | DesktopMachineAccessEndedEvent | DesktopWorktreeWarmProgressEvent | DesktopWorktreeWarmEndedEvent | DesktopWorktreeRemoveProgressEvent | DesktopWorktreeRemoveEndedEvent | DesktopGcProgressEvent | DesktopGcEndedEvent | DesktopBuildProgressEvent | DesktopBuildEndedEvent | DesktopRunProgressEvent | DesktopRunEndedEvent | DesktopStartProgressEvent | DesktopStartEndedEvent | DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopReportEvent | BuildProgressEvent | NotificationEvent | StatusEvent | WorkspacesEvent | WorkspaceEvent | MachineEvent | LogsEvent | LogsEndedEvent | FrameEvent | DeviceFrameEvent | MacosWindowsEvent | FrameDelayedEvent | ReplayEndedEvent | ErrorEvent | ControlEndedEvent;
2322
+ type ServerEvent = DesktopRemedyProgressEvent | DesktopRemedyEndedEvent | DesktopMachineAccessProgressEvent | DesktopMachineAccessEndedEvent | DesktopWorktreeWarmProgressEvent | DesktopWorktreeWarmEndedEvent | DesktopWorktreeRemoveProgressEvent | DesktopWorktreeRemoveEndedEvent | DesktopGcProgressEvent | DesktopGcEndedEvent | DesktopBuildProgressEvent | DesktopBuildEndedEvent | DesktopRunProgressEvent | DesktopRunEndedEvent | DesktopStartProgressEvent | DesktopStartEndedEvent | DesktopReloadProgressEvent | DesktopReloadEndedEvent | DesktopStopProgressEvent | DesktopStopEndedEvent | DesktopReportEvent | BuildProgressEvent | NotificationEvent | WorkspacesEvent | WorkspaceEvent | MachineEvent | LogsEvent | LogsEndedEvent | FrameEvent | DeviceFrameEvent | MacosWindowsEvent | FrameDelayedEvent | ReplayEndedEvent | ErrorEvent | ControlEndedEvent;
2217
2323
  type ServerMessage = ServerResponse | ServerEvent;
2218
2324
  type ServeRoute = {
2219
2325
  state: "routed";
@@ -2231,4 +2337,4 @@ type ServeRoute = {
2231
2337
  port: number;
2232
2338
  };
2233
2339
  //#endregion
2234
- export { DesktopBuildEndedEvent as $, ProtocolError as $n, WorkspaceFiles as $r, InputPostureParams as $t, BuildPlatform as A, MacosWindow as An, SettingsResult as Ar, ErrorCode as At, CAPABILITIES as B, NotificationLevel as Bn, UsageSample as Br, FramesSeekParams as Bt, BuildJobParams as C, MachineDetails as Cn, ServerMessage as Cr, DesktopWorktreeWarmProgressEvent as Ct, BuildOfferResult as D, MachineUpdateStatus as Dn, ServerUpdateProgress as Dr, DeviceUsageSeries as Dt, BuildOfferParams as E, MachineHistoryParams as En, ServerUpdatePackage as Er, DevicePosture as Et, BuildSwiftpmArtifactQuery as F, MetroLinkOpenEvent as Fn, SubscribeResult as Fr, Feature as Ft, ControlBeginParams as G, PLATFORMS as Gn, VIDEO_HEADER_VERSION as Gr, HelloResult as Gt, CachedBuildArtifact as H, NotificationTarget as Hn, VIDEO_ARTWORK as Hr, FramesSubscribeResult as Ht, BuildSyncParams as I, NOTIFICATION_LEVELS as In, TOUCH_PHASES as Ir, FrameDelayedEvent as It, ControlEndedEvent as J, PUSH_EVENTS as Jn, VideoCodec as Jr, INPUT_KEYS as Jt, ControlBeginResult as K, PROTOCOL_SCHEMA_FILE as Kn, VIDEO_KEYFRAME as Kr, HostedSessionRow as Kt, BuildSyncResult as L, NOTIFICATION_SUPPRESSIONS as Ln, TouchPhase as Lr, FrameEvent as Lt, BuildReactNativeArtifactQuery as M, MemoryPressure as Mn, SimulatorOptions as Mr, FEATURES as Mt, BuildStartParams as N, Method as Nn, StatsResult as Nr, FRAME_EDGE as Nt, BuildPlanParams as O, MachineUsage as On, ServerUpdateStartParams as Or, DuoFramePose as Ot, BuildStimIdentity as P, Methods as Pn, StatusEvent as Pr, FRAME_FPS as Pt, DesktopBootstrapChallenge as Q, PlatformRunOptions as Qn, WorkspaceFile as Qr, InputKeyParams as Qt, BuildToolchain as R, NotificationEntry as Rn, UnsubscribeParams as Rr, FrameTarget as Rt, BuildJobOutcome as S, METHODS as Sn, ServerEvent as Sr, DesktopWorktreeWarmEndedEvent as St, BuildMachineReport as T, MachineHistory as Tn, ServerUpdateOutcome as Tr, DeviceFrameEvent as Tt, Capability as U, NotificationsListParams as Un, VIDEO_CODECS as Ur, GradleOffloadInputs as Ut, CONTROL_END_REASONS as V, NotificationSuppression as Vn, UsageSeries as Vr, FramesSeekResult as Vt, ClientRequest as W, NotificationsListResult as Wn, VIDEO_FOLDED as Wr, HelloParams as Wt, DEVICE_HOST_METHODS as X, Platform as Xn, WorkspaceDiff as Xr, InputButtonParams as Xt, ControlPlatform as Y, PUSH_TOKEN_PATTERN as Yn, VideoPacket as Yr, InputButton as Yt, DEVICE_POSTURES as Z, PlatformBuildOptions as Zn, WorkspaceEvent as Zr, InputKey as Zt, BuildCapacity as _, LogsEndedEvent as _n, ReplayTarget as _r, DesktopStartProgressEvent as _t, ActionResult as a, InputWindowParams as an, REPLAY_RATES as ar, DesktopMachineAccessProgressEvent as at, BuildFingerprintSource as b, MAX_INPUT_TEXT as bn, SERVER_UPDATE_METHODS as br, DesktopWorktreeRemoveEndedEvent as bt, ArchivedListParams as c, KeyframeParams as cn, RecordingSetResult as cr, DesktopReloadProgressEvent as ct, BUILD_REPO_PATTERN as d, LOG_SOURCES as dn, ReplayEndedEvent as dr, DesktopReportTarget as dt, WorkspaceParams as ei, InputRotateParams as en, PushEvent as er, DesktopBuildProgressEvent as et, BUILD_RUBY_VERSION_PATTERN as f, LegacyPushEvent as fn, ReplayKeyframe as fr, DesktopRunEndedEvent as ft, BuildAttachResult as g, LogSource as gn, ReplaySpan as gr, DesktopStartEndedEvent as gt, BuildArtifactResult as h, LogRecord as hn, ReplayRange as hr, DesktopSettingsWriteResult as ht, ActionParams as i, WorkspacesSnapshot as ii, InputTouchParams as in, REPLAY_MARKER_KINDS as ir, DesktopMachineAccessEndedEvent as it, BuildProgressEvent as j, MacosWindowsEvent as jn, SimulatorCommand as jr, ErrorEvent as jt, BuildPlanResult as k, MachineVolume as kn, ServerUpdateStatus as kr, ERROR_CODES as kt, ArchivedListResult as l, LEGACY_PUSH_EVENTS as ln, ReloadPlatform as lr, DesktopReportEvent as lt, BuildArtifactIdentity as m, LogLevel as mn, ReplayMarker as mr, DesktopSettingsWriteParams as mt, ARCHIVED_PAGE_LIMIT as n, WorkspaceRef as ni, InputSimulatorParams as nn, QuietHours as nr, DesktopGcProgressEvent as nt, ArchiveDetailParams as o, KEY_MODIFIERS as on, ROTATE_DIRECTIONS as or, DesktopPlanRefusal as ot, BuildAndroidOptions as p, LogFilter as pn, ReplayKeyframeParams as pr, DesktopRunProgressEvent as pt, ControlEndParams as q, PROTOCOL_VERSION as qn, VIDEO_UNFOLDED as qr, INPUT_BUTTONS as qt, ActionName as r, WorkspacesEvent as ri, InputTextParams as rn, RELOAD_PLATFORMS as rr, DesktopLogFilter as rt, ArchiveDetailResult as s, KeyModifier as sn, RecordingSetParams as sr, DesktopReloadEndedEvent as st, ACTIONS as t, WorkspacePatch as ti, InputScrollParams as tn, PushRegisterParams as tr, DesktopGcEndedEvent as tt, BUILD_METHODS as u, LOG_LEVELS as un, RemoteDiagnosis as ur, DesktopReportSnapshot as ut, BuildClientSummary as v, LogsEvent as vn, RequestId as vr, DesktopStopEndedEvent as vt, BuildMachineCapacity as w, MachineEvent as wn, ServerResponse as wr, DeviceFrameArtwork as wt, BuildGradleArtifactQuery as x, MAX_LOG_TAIL as xn, ServeRoute as xr, DesktopWorktreeRemoveProgressEvent as xt, BuildFile as y, LogsQueryResult as yn, RotateDirection as yr, DesktopStopProgressEvent as yt, BuildsHistoryResult as z, NotificationEvent as zn, UsageHistory as zr, FramesLiveParams as zt };
2340
+ export { DesktopBuildEndedEvent as $, Platform as $n, WebShareStartParams as $r, InputButtonParams as $t, BuildPlatform as A, MachineUpdateStatus as An, ServerUpdateProgress as Ar, DeviceUsageSeries as At, CAPABILITIES as B, NOTIFICATION_SUPPRESSIONS as Bn, UnsubscribeParams as Br, FrameEvent as Bt, BuildJobParams as C, MAX_INPUT_TEXT as Cn, SERVER_UPDATE_METHODS as Cr, DesktopWorktreeRemoveProgressEvent as Ct, BuildOfferResult as D, MachineEvent as Dn, ServerResponse as Dr, DeviceFrameEvent as Dt, BuildOfferParams as E, MachineDetails as En, ServerMessage as Er, DeviceFrameArtwork as Et, BuildSwiftpmArtifactQuery as F, MemoryPressure as Fn, SimulatorOptions as Fr, FEATURES as Ft, ControlBeginParams as G, NotificationTarget as Gn, VIDEO_CODECS as Gr, FramesSubscribeResult as Gt, CachedBuildArtifact as H, NotificationEvent as Hn, UsageSample as Hr, FramesLiveParams as Ht, BuildSyncParams as I, Method as In, StatsResult as Ir, FRAME_EDGE as It, ControlEndedEvent as J, PLATFORMS as Jn, VIDEO_KEYFRAME as Jr, HelloResult as Jt, ControlBeginResult as K, NotificationsListParams as Kn, VIDEO_FOLDED as Kr, GradleOffloadInputs as Kt, BuildSyncResult as L, Methods as Ln, SubscribeResult as Lr, FRAME_FPS as Lt, BuildReactNativeArtifactQuery as M, MachineVolume as Mn, ServerUpdateStatus as Mr, ERROR_CODES as Mt, BuildStartParams as N, MacosWindow as Nn, SettingsResult as Nr, ErrorCode as Nt, BuildPlanParams as O, MachineHistory as On, ServerUpdateOutcome as Or, DevicePosture as Ot, BuildStimIdentity as P, MacosWindowsEvent as Pn, SimulatorCommand as Pr, ErrorEvent as Pt, DesktopBootstrapChallenge as Q, PUSH_TOKEN_PATTERN as Qn, WebShareRow as Qr, InputButton as Qt, BuildToolchain as R, MetroLinkOpenEvent as Rn, TOUCH_PHASES as Rr, Feature as Rt, BuildJobOutcome as S, LogsQueryResult as Sn, RotateDirection as Sr, DesktopWorktreeRemoveEndedEvent as St, BuildMachineReport as T, METHODS as Tn, ServerEvent as Tr, DesktopWorktreeWarmProgressEvent as Tt, Capability as U, NotificationLevel as Un, UsageSeries as Ur, FramesSeekParams as Ut, CONTROL_END_REASONS as V, NotificationEntry as Vn, UsageHistory as Vr, FrameTarget as Vt, ClientRequest as W, NotificationSuppression as Wn, VIDEO_ARTWORK as Wr, FramesSeekResult as Wt, DEVICE_HOST_METHODS as X, PROTOCOL_VERSION as Xn, VideoCodec as Xr, INPUT_BUTTONS as Xt, ControlPlatform as Y, PROTOCOL_SCHEMA_FILE as Yn, VIDEO_UNFOLDED as Yr, HostedSessionRow as Yt, DEVICE_POSTURES as Z, PUSH_EVENTS as Zn, VideoPacket as Zr, INPUT_KEYS as Zt, BuildCapacity as _, LogLevel as _n, ReplayMarker as _r, DesktopSettingsWriteResult as _t, ActionResult as a, WorkspacePatch as ai, InputSimulatorParams as an, QuietHours as ar, DesktopMachineAccessProgressEvent as at, BuildFingerprintSource as b, LogsEndedEvent as bn, ReplayTarget as br, DesktopStopEndedEvent as bt, ArchivedListParams as c, WorkspacesSnapshot as ci, InputWindowParams as cn, REPLAY_RATES as cr, DesktopReloadProgressEvent as ct, BUILD_REPO_PATTERN as d, KeyframeParams as dn, RecordingSetResult as dr, DesktopReportEvent as dt, WorkspaceDiff as ei, InputKey as en, PlatformBuildOptions as er, DesktopBuildProgressEvent as et, BUILD_RUBY_VERSION_PATTERN as f, LEGACY_PUSH_EVENTS as fn, ReloadPlatform as fr, DesktopReportSnapshot as ft, BuildAttachResult as g, LogFilter as gn, ReplayKeyframeParams as gr, DesktopSettingsWriteParams as gt, BuildArtifactResult as h, LegacyPushEvent as hn, ReplayKeyframe as hr, DesktopRunProgressEvent as ht, ActionParams as i, WorkspaceParams as ii, InputScrollParams as in, PushRegisterParams as ir, DesktopMachineAccessEndedEvent as it, BuildProgressEvent as j, MachineUsage as jn, ServerUpdateStartParams as jr, DuoFramePose as jt, BuildPlanResult as k, MachineHistoryParams as kn, ServerUpdatePackage as kr, DeviceToolRequest as kt, ArchivedListResult as l, KEY_MODIFIERS as ln, ROTATE_DIRECTIONS as lr, DesktopRemedyEndedEvent as lt, BuildArtifactIdentity as m, LOG_SOURCES as mn, ReplayEndedEvent as mr, DesktopRunEndedEvent as mt, ARCHIVED_PAGE_LIMIT as n, WorkspaceFile as ni, InputPostureParams as nn, ProtocolError as nr, DesktopGcProgressEvent as nt, ArchiveDetailParams as o, WorkspaceRef as oi, InputTextParams as on, RELOAD_PLATFORMS as or, DesktopPlanRefusal as ot, BuildAndroidOptions as p, LOG_LEVELS as pn, RemoteDiagnosis as pr, DesktopReportTarget as pt, ControlEndParams as q, NotificationsListResult as qn, VIDEO_HEADER_VERSION as qr, HelloParams as qt, ActionName as r, WorkspaceFiles as ri, InputRotateParams as rn, PushEvent as rr, DesktopLogFilter as rt, ArchiveDetailResult as s, WorkspacesEvent as si, InputTouchParams as sn, REPLAY_MARKER_KINDS as sr, DesktopReloadEndedEvent as st, ACTIONS as t, WorkspaceEvent as ti, InputKeyParams as tn, PlatformRunOptions as tr, DesktopGcEndedEvent as tt, BUILD_METHODS as u, KeyModifier as un, RecordingSetParams as ur, DesktopRemedyProgressEvent as ut, BuildClientSummary as v, LogRecord as vn, ReplayRange as vr, DesktopStartEndedEvent as vt, BuildMachineCapacity as w, MAX_LOG_TAIL as wn, ServeRoute as wr, DesktopWorktreeWarmEndedEvent as wt, BuildGradleArtifactQuery as x, LogsEvent as xn, RequestId as xr, DesktopStopProgressEvent as xt, BuildFile as y, LogSource as yn, ReplaySpan as yr, DesktopStartProgressEvent as yt, BuildsHistoryResult as z, NOTIFICATION_LEVELS as zn, TouchPhase as zr, FrameDelayedEvent as zt };