@stim-cli/core 1.18.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/state.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as readRunEstimates, $a as isLayeredSetting, $i as HostedAgentGrant, $n as readHostedMacosApp, $o as sharedPods, $r as MAINTENANCE_LOG_NAME, $s as ParkedMax, $t as BuildResult, A as DeviceHostMachineCredential, Aa as ANDROID_COMPILER_CACHE_CHOICES, Ac as saturation, Ai as HostedIosChoice, An as StatsPlatform, Ao as deviceHostMachinesClaims, Ar as HostedAndroidPlacement, As as readLogRecords, At as ActiveBuildState, B as RunHistory, Ba as SETTING_SCOPES, Bc as AgentActionReaderOptions, Bi as parseHostedDevice, Bn as WebBrowserState, Bo as gitMergeCacheDir, Br as parseHostedNativePlacement, Bs as readCreatedDevices, Bt as BuildCacheHit, C as pinnedEndpoint, Ca as readHostedAppMetadata, Cc as SupervisorRecord, Ci as HostedDeviceOffer, Cn as PhysicalDeviceConnection, Co as archiveLock, Cr as HostedIosPlacement, Cs as fileSizes, Ct as readEndedAgentSessions, D as HostedMetroRequest, Da as SETTINGS_SCHEMA_FILE, Dc as buildSlotPath, Di as HostedDeviceRequest, Dn as RunOutcomeKind, Do as configLockPath, Dr as hostedIosStatus, Ds as parseSince, Dt as ACTIVITY_RECENCY_BASES, E as HostedMetroGateway, Ea as validHostedAppBlob, Ec as MachineCapacity, Ei as HostedDevicePlatform, En as RemoteDeviceState, Eo as buildMachinesLock, Er as hostedIosRecords, Es as markerWindow, Et as withGitChip, F as HISTORY_LIMIT, Fa as OffloadMode, Fc as AgentDeviceUsage, Fi as deviceHostRoot, Fn as TUTORIAL_VERSION, Fo as easMachineStateRoot, Fr as hostedAndroidStatus, Fs as countErrorEntries, Ft as AndroidDeviceState, G as StatsCapacityWait, Ga as SettingsPayload, Gc as SOURCES, Gi as parseHostedRequest, Gn as WorktreeGit, Go as maintenanceRunClaims, Gr as DEVICE_RECLAIM_REASON, Gs as readJsonObject, Gt as BuildMissCategory, H as STATS_VERSION, Ha as SettingEntry, Hc as createAgentActionReader, Hi as parseHostedNativeOffer, Hn as WorkspacePhase, Ho as maintenanceChildLogFile, Hr as BUILD_HISTORY_KEY, Hs as validEasSessionClaim, Ht as BuildDetail, I as OffloadSummary, Ia as REMOTE_DEVICE_BACKENDS, Ic as AgentDeviceUsageRoots, Ii as hostedConsolePort, In as WEB_PAGE_STATES, Io as easSessionLedgerFile, Ir as parseHostedAndroidPlacement, Is as CreatedDevicePlatform, It as AndroidRuntimeFacts, J as StatsReport, Ja as WEB_VIEWPORTS, Jc as parseNdjsonText, Ji as readHostedSessions, Jn as MacosAppState, Jo as serverSetupDir, Jr as DevServerStopRequest, Js as DEBUG_ENV, Jt as BuildPhase, K as StatsPlacement, Ka as TUNNEL_MODES, Kc as levelRank, Ki as readHostedDevice, Kn as WorktreePullRequest, Ko as maintenanceStateFile, Kr as DEV_SERVER_STOP_REQUEST_KEY, Ks as readStateFile, Kt as BuildMissChange, L as PLACEMENT_DECISIONS, La as RemoteDeviceBackend, Lc as agentDeviceUsageFile, Li as hostedDeviceId, Ln as WORKSPACE_PHASES, Lo as easSessionLedgerLock, Lr as unreadableHostedAndroid, Ls as CreatedDevices, Lt as AppPresence, M as BuildMachineTotals, Ma as ANDROID_PCH_CHOICES, Mc as SwiftpmCacheUsage, Mi as HostedNativeOffer, Mn as StatusIssue, Mo as deviceHostMachinesLock, Mr as hostedAndroidDeviceName, Ms as recordMatches, Mt as ActivityRecencyBasis, N as CAPACITY_REFUSAL_LIMIT, Na as IOS_SIMULATOR_APPS, Nc as readSwiftpmCacheUsage, Ni as assertHostedDeviceLedger, Nn as StatusIssueCode, No as deviceViewersDir, Nr as hostedAndroidPlacements, Ns as sortByTs, Nt as AgentSession, O as hostedMetroGateways, Oa as SETTINGS_SCHEMA_URL, Oc as buildSlotsDir, Oi as HostedDeviceSelectors, On as STATUS_ISSUE_CODES, Oo as createdDevicesFile, Or as parseHostedIosPlacement, Os as queryJsonLogs, Ot as AGENT_TOOLS, P as CAPACITY_REFUSAL_MAX_AGE_MS, Pa as OFFLOAD_MODES, Pc as swiftpmCacheUsageFile, Pi as deviceHostArea, Pn as StatusPayload, Po as diskUsageCacheDir, Pr as hostedAndroidRecords, Ps as tailRead, Pt as AgentTool, Q as offloadSummary, Qa as expectedShape, Qi as HostedAgentDriverName, Qn as parseMacosRecord, Qo as sharedGradle, Qr as LAST_BUILD_KEYS, Qs as debugLoggingEnabled, Qt as BuildReport, R as ReadStatsResult, Ra as SETTINGS, Rc as readAgentDeviceUsage, Ri as parseHostedAndroidDevice, Rn as WORKSPACE_STAGE_KINDS, Ro as emulatorLogFile, Rr as HostedNativePlacement, Rs as EasSessionClaim, Rt as BUILD_PHASES, S as parseMachine, Sa as readHostedApp, Sc as StimConfig, Si as HostedDevice, Sn as PHYSICAL_DEVICE_CONNECTIONS, So as archiveDir, Sr as readMaintenanceState, Ss as compileGrep, St as readDiskUsage, T as HOSTED_METRO_REQUESTS_KEY, Ta as validHostedAppArguments, Tc as readBuildMachines, Ti as HostedDevicePhase, Tn as PlannedPhase, To as buildMachinesFile, Tr as hostedIosPlacements, Ts as logFiles, Tt as withDerivedFacts, U as StatsBucket, Ua as SettingScope, Uc as LEVELS, Ui as parseHostedOfferRequest, Un as WorkspaceStage, Uo as maintenanceDir, Ur as BUILD_HISTORY_LIMIT, Us as isJsonObject, Ut as BuildDiagnostic, V as RunSample, Va as SettingDefinition, Vc as AgentTarget, Vi as parseHostedLocalDeviceCount, Vn as WebPageState, Vo as maintenanceAttemptFile, Vr as unreadableHostedNative, Vs as readEasSessionLedger, Vt as BuildCause, W as StatsCapacityRefusal, Wa as SettingType, Wc as NdjsonRecord, Wi as parseHostedPlatformDevice, Wn as WorktreeFacts, Wo as maintenanceNdjsonFile, Wr as DEVICE_IDLE_SHUTDOWN_KEY, Ws as readJsonFile, Wt as BuildHistoryEntry, X as decodeStats, Xa as acceptsShape, Xi as HOSTED_MACOS_APP_SLOTS, Xn as MacosProcess, Xo as sharedCcache, Xr as IDLE_STOP_KEY, Xs as createDebugLog, Xt as BuildPlanPayload, Y as StatsScope, Ya as WebViewport, Yc as readNdjsonGenerations, Yi as HOSTED_AGENT_DRIVERS, Yn as MacosBuild, Yo as setupJournalFile, Yr as DeviceIdleShutdownRecord, Ys as DebugLog, Yt as BuildPlacement, Z as findProjectRoot, Za as coerceSettingText, Zi as HostedAgentAccess, Zn as macosAppState, Zo as sharedCompilationCache, Zr as IdleStopRecord, Zs as debugLogDir, Zt as BuildPlatform, _ as Endpoint, _a as hostedAppArea, _c as DoctorRunRecord, _i as readWorkspaceAgent, _n as MachineUsageState, _o as openSegmentName, _r as MaintenanceSize, _s as QueryCriteria, _t as endedAgentSessionOf, a as parseSetupJournal, aa as hostedMacosAppSlot, ac as getConcurrencyLimits, ai as WorkspaceState, an as DevicePlacement, ao as validRunId, ar as archivedUsage, as as workspaceDerivedData, at as trimSamples, b as endpoint, ba as parseHostedAppManifest, bc as RepoRecord, bi as HostedAndroidChoice, bn as NATIVE_BUILD_STEPS, bo as recordingEnabled, br as parseMaintenanceState, bs as buildCriteria, bt as readAgentSessionsCache, c as HOSTED_LOGS_FIRST_BYTES, ca as parseHostedAgentGrant, cc as getProjectSetting, ci as parseMissReason, cn as EnvironmentDisk, co as RECORDING_PLATFORMS, cr as readArchiveState, cs as workspaceGradleBuild, ct as ViewedDevice, d as HostedLogsPage, da as parseHostedMacosPlacement, dc as isPathPrefix, di as readDevServerStopRequest, dn as GitChipPart, do as RecordingPlatform, dr as MaintenanceActionKind, ds as workspaceMetadataFile, dt as AgentSessionsCache, ea as HostedAgentLease, ec as allMetroPorts, ei as MetroLastStop, en as BuildWaitingFor, eo as isSensitiveReference, er as readMacosRecord, es as statsFile, et as readStats, f as hostedMacosLogsDir, fa as HOSTED_APP_CHUNK_BYTES, fc as loadConfig, fi as readDeviceIdleShutdowns, fn as LastBuildReport, fo as capDrops, fr as MaintenanceCheck, fs as workspaceRecordingsDir, ft as ENDED_AGENT_RETENTION_MS, g as readLogsSince, ga as HostedAppRecord, gc as DeviceRecord, gi as readWarmRecord, gn as MachineOwnerKind, go as listSegments, gr as MaintenanceRecord, gs as NATIVE_CRASH_LOG_PREFIX, gt as diskUsageCacheFile, h as readHostedNativeLogsCheckpoint, ha as HostedAppOffer, hc as Config, hi as readLastBuilds, hn as MachineOwner, ho as listRecordedDevices, hr as MaintenancePressure, hs as ERROR_SOURCES, ht as agentSessionOf, i as isSetupJournalPrunable, ia as HostedMacosPlacement, ic as findProjectByMetroPort, ii as WarmRecord, in as DeviceLeaseState, io as runId, ir as archiveEnabled, is as workspaceBuildDetailFile, it as trimCapacityWaits, j as readDeviceHostMachines, ja as ANDROID_EMULATOR_APPS, jc as tryAcquireBuildSlotClaim, ji as HostedIosDevice, jn as StatusCapacity, jo as deviceHostMachinesFile, jr as HostedAndroidStatus, js as readLogTimeline, jt as ActivityDriver, k as hostedMetroRequests, ka as settingsJsonSchema, kc as machineCapacity, ki as HostedDeviceSession, kn as SimulatorState, ko as createdDevicesLock, kr as unreadableHostedIos, ks as queryLogs, kt as APP_PROCESS_STATES, l as HOSTED_LOGS_PAGE_BYTES, la as parseHostedMacosChoice, lc as getProjectSettings, li as readBuildHistory, ln as EnvironmentState, lo as RecordedDevice, lr as readArchives, ls as workspaceLogErrorIndex, lt as readViewedDevices, m as parseHostedLogsCursor, ma as HostedAppFile, mc as ConcurrencyLimits, mi as readIdleStop, mn as MEMORY_SOURCES, mo as footageDrops, mr as MaintenancePass, ms as workspaceStateLock, mt as StatusCacheEntry, n as SetupJournal, na as HostedMacosChoice, nc as configCorruptRepair, ni as WARM_KEY, nn as DeviceActivity, no as settingValueError, nr as ArchivedUsage, ns as supervisorPidFile, nt as statsProjectKey, o as readSetupJournal, oa as hostedMacosBundleId, oc as getParkedMax, oi as buildDiagnostics, on as DiskMeasure, oo as RECORDING_CAP_BYTES, or as linkReplacedArchives, os as workspaceEndedAgentsFile, ot as wholePhases, p as hostedNativeLogsDir, pa as HostedAppDelivery, pc as withConfigLock, pi as readDevicePlacement, pn as MACHINE_OWNER_KINDS, po as closedSegmentName, pr as MaintenanceMode, ps as workspaceStateFile, pt as PullRequestCacheEntry, q as StatsRecord, qa as TunnelMode, qc as parseNdjsonLine, qi as readHostedDeviceLedger, qn as MacosAppRecord, qo as pullRequestCacheDir, qr as DevServerStopRecord, qs as withStateReadCache, qt as BuildMissReason, r as isJournalExpired, ra as HostedMacosDevice, rc as findEnclosingWorktreeRoot, ri as WORKSPACE_AGENT_KEY, rn as DeviceAppProcess, ro as RUN_ID_ENV, rr as ArchivedWorkspace, rs as workspaceAgentDeviceDir, rt as trimCapacityRefusals, s as agentDeviceStateDirs, sa as parseHostedAgentAccess, sc as getProject, si as lastUseFrom, sn as EndedAgentSession, so as RECORDING_FOOTAGE_MS, sr as readArchive, ss as workspaceEndedAgentsLock, st as DeviceViewersRecord, t as SetupCapability, ta as HostedAppLaunch, tc as buildWorkerRoot, ti as READY_PHASE_MS, tn as ChecksState, to as settingDefinition, tr as ArchivedBytes, ts as supervisorLogFile, tt as readStatsReport, u as HostedLogsCursor, ua as parseHostedMacosDevice, uc as getRepoSettings, ui as readDevServerStop, un as GitChip, uo as RecordedSegment, ur as MaintenanceAction, us as workspaceLogsDir, ut as stimBuildDigest, v as TAILNET_MACHINE_PATTERN, va as hostedAppAttempt, vc as PlatformRecords, vi as readWorkspaceState, vn as MemorySource, vo as recordedBytes, vr as MaintenanceState, vs as advanceTail, vt as listStatusCacheEntries, w as HOSTED_METRO_GATEWAYS_KEY, wa as rememberHostedAppBlobRename, wc as BuildMachineCredential, wi as HostedDeviceOfferRequest, wn as PhysicalDeviceState, wo as archiveRoot, wr as HostedIosStatus, ws as followLogs, wt as readPullRequestCache, x as findPeer, xa as parseHostedAppOffer, xc as SettingsObject, xi as HostedAndroidDevice, xn as NativeBuildStep, xo as agentSessionsCacheFile, xr as readMaintenanceAttempt, xs as bundleMarkerPlatform, xt as readBuildDetail, y as TailnetPeer, ya as hostedAppBlobs, yc as ProjectRecord, yi as workspaceLastUsed, yn as MetroBundleState, yo as recordingDeviceName, yr as MaintenanceStatus, ys as attachExpoErrorContext, yt as pullRequestCacheFile, z as RunEstimates, za as SETTING_GROUPS, zc as readAgentDeviceUsageCache, zi as parseHostedChoice, zn as WarmStep, zo as getConfigPath, zr as hostedNativeRecords, zs as EasSessionLedgerRead, zt as BUILD_RESULTS } from "./index-DcA9D2PQ.mjs";
2
- export { ACTIVITY_RECENCY_BASES, AGENT_TOOLS, ANDROID_COMPILER_CACHE_CHOICES, ANDROID_EMULATOR_APPS, ANDROID_PCH_CHOICES, APP_PROCESS_STATES, ActiveBuildState, ActivityDriver, ActivityRecencyBasis, AgentActionReaderOptions, AgentDeviceUsage, AgentDeviceUsageRoots, AgentSession, AgentSessionsCache, AgentTarget, AgentTool, AndroidDeviceState, AndroidRuntimeFacts, AppPresence, ArchivedBytes, ArchivedUsage, ArchivedWorkspace, BUILD_HISTORY_KEY, BUILD_HISTORY_LIMIT, BUILD_PHASES, BUILD_RESULTS, BuildCacheHit, BuildCause, BuildDetail, BuildDiagnostic, BuildHistoryEntry, BuildMachineCredential, BuildMachineTotals, BuildMissCategory, BuildMissChange, BuildMissReason, BuildPhase, BuildPlacement, BuildPlanPayload, BuildPlatform, BuildReport, BuildResult, BuildWaitingFor, CAPACITY_REFUSAL_LIMIT, CAPACITY_REFUSAL_MAX_AGE_MS, ChecksState, ConcurrencyLimits, Config, CreatedDevicePlatform, CreatedDevices, DEBUG_ENV, DEVICE_IDLE_SHUTDOWN_KEY, DEVICE_RECLAIM_REASON, DEV_SERVER_STOP_REQUEST_KEY, DebugLog, DevServerStopRecord, DevServerStopRequest, DeviceActivity, DeviceAppProcess, DeviceHostMachineCredential, DeviceIdleShutdownRecord, DeviceLeaseState, DevicePlacement, DeviceRecord, DeviceViewersRecord, DiskMeasure, DoctorRunRecord, ENDED_AGENT_RETENTION_MS, ERROR_SOURCES, EasSessionClaim, EasSessionLedgerRead, EndedAgentSession, Endpoint, EnvironmentDisk, EnvironmentState, GitChip, GitChipPart, HISTORY_LIMIT, HOSTED_AGENT_DRIVERS, HOSTED_APP_CHUNK_BYTES, HOSTED_LOGS_FIRST_BYTES, HOSTED_LOGS_PAGE_BYTES, HOSTED_MACOS_APP_SLOTS, HOSTED_METRO_GATEWAYS_KEY, HOSTED_METRO_REQUESTS_KEY, HostedAgentAccess, HostedAgentDriverName, HostedAgentGrant, HostedAgentLease, HostedAndroidChoice, HostedAndroidDevice, HostedAndroidPlacement, HostedAndroidStatus, HostedAppDelivery, HostedAppFile, HostedAppLaunch, HostedAppOffer, HostedAppRecord, HostedDevice, HostedDeviceOffer, HostedDeviceOfferRequest, HostedDevicePhase, HostedDevicePlatform, HostedDeviceRequest, HostedDeviceSelectors, HostedDeviceSession, HostedIosChoice, HostedIosDevice, HostedIosPlacement, HostedIosStatus, HostedLogsCursor, HostedLogsPage, HostedMacosChoice, HostedMacosDevice, HostedMacosPlacement, HostedMetroGateway, HostedMetroRequest, HostedNativeOffer, HostedNativePlacement, IDLE_STOP_KEY, IOS_SIMULATOR_APPS, IdleStopRecord, LAST_BUILD_KEYS, LEVELS, LastBuildReport, MACHINE_OWNER_KINDS, MAINTENANCE_LOG_NAME, MEMORY_SOURCES, MachineCapacity, MachineOwner, MachineOwnerKind, MachineUsageState, MacosAppRecord, MacosAppState, MacosBuild, MacosProcess, MaintenanceAction, MaintenanceActionKind, MaintenanceCheck, MaintenanceMode, MaintenancePass, MaintenancePressure, MaintenanceRecord, MaintenanceSize, MaintenanceState, MaintenanceStatus, MemorySource, MetroBundleState, MetroLastStop, NATIVE_BUILD_STEPS, NATIVE_CRASH_LOG_PREFIX, NativeBuildStep, NdjsonRecord, OFFLOAD_MODES, OffloadMode, OffloadSummary, PHYSICAL_DEVICE_CONNECTIONS, PLACEMENT_DECISIONS, ParkedMax, PhysicalDeviceConnection, PhysicalDeviceState, PlannedPhase, PlatformRecords, ProjectRecord, PullRequestCacheEntry, QueryCriteria, READY_PHASE_MS, RECORDING_CAP_BYTES, RECORDING_FOOTAGE_MS, RECORDING_PLATFORMS, REMOTE_DEVICE_BACKENDS, RUN_ID_ENV, ReadStatsResult, RecordedDevice, RecordedSegment, RecordingPlatform, RemoteDeviceBackend, RemoteDeviceState, RepoRecord, RunEstimates, RunHistory, RunOutcomeKind, RunSample, SETTINGS, SETTINGS_SCHEMA_FILE, SETTINGS_SCHEMA_URL, SETTING_GROUPS, SETTING_SCOPES, SOURCES, STATS_VERSION, STATUS_ISSUE_CODES, SettingDefinition, SettingEntry, SettingScope, SettingType, SettingsObject, SettingsPayload, SetupCapability, SetupJournal, SimulatorState, StatsBucket, StatsCapacityRefusal, StatsCapacityWait, StatsPlacement, StatsPlatform, StatsRecord, StatsReport, StatsScope, StatusCacheEntry, StatusCapacity, StatusIssue, StatusIssueCode, StatusPayload, StimConfig, SupervisorRecord, SwiftpmCacheUsage, TAILNET_MACHINE_PATTERN, TUNNEL_MODES, TUTORIAL_VERSION, TailnetPeer, TunnelMode, ViewedDevice, WARM_KEY, WEB_PAGE_STATES, WEB_VIEWPORTS, WORKSPACE_AGENT_KEY, WORKSPACE_PHASES, WORKSPACE_STAGE_KINDS, WarmRecord, WarmStep, WebBrowserState, WebPageState, WebViewport, WorkspacePhase, WorkspaceStage, WorkspaceState, WorktreeFacts, WorktreeGit, WorktreePullRequest, acceptsShape, advanceTail, agentDeviceStateDirs, agentDeviceUsageFile, agentSessionOf, agentSessionsCacheFile, allMetroPorts, archiveDir, archiveEnabled, archiveLock, archiveRoot, archivedUsage, assertHostedDeviceLedger, attachExpoErrorContext, buildCriteria, buildDiagnostics, buildMachinesFile, buildMachinesLock, buildSlotPath, buildSlotsDir, buildWorkerRoot, bundleMarkerPlatform, capDrops, closedSegmentName, coerceSettingText, compileGrep, configCorruptRepair, configLockPath, countErrorEntries, createAgentActionReader, createDebugLog, createdDevicesFile, createdDevicesLock, debugLogDir, debugLoggingEnabled, decodeStats, deviceHostArea, deviceHostMachinesClaims, deviceHostMachinesFile, deviceHostMachinesLock, deviceHostRoot, deviceViewersDir, diskUsageCacheDir, diskUsageCacheFile, easMachineStateRoot, easSessionLedgerFile, easSessionLedgerLock, emulatorLogFile, endedAgentSessionOf, endpoint, expectedShape, fileSizes, findEnclosingWorktreeRoot, findPeer, findProjectByMetroPort, findProjectRoot, followLogs, footageDrops, getConcurrencyLimits, getConfigPath, getParkedMax, getProject, getProjectSetting, getProjectSettings, getRepoSettings, gitMergeCacheDir, hostedAndroidDeviceName, hostedAndroidPlacements, hostedAndroidRecords, hostedAndroidStatus, hostedAppArea, hostedAppAttempt, hostedAppBlobs, hostedConsolePort, hostedDeviceId, hostedIosPlacements, hostedIosRecords, hostedIosStatus, hostedMacosAppSlot, hostedMacosBundleId, hostedMacosLogsDir, hostedMetroGateways, hostedMetroRequests, hostedNativeLogsDir, hostedNativeRecords, isJournalExpired, isJsonObject, isLayeredSetting, isPathPrefix, isSensitiveReference, isSetupJournalPrunable, lastUseFrom, levelRank, linkReplacedArchives, listRecordedDevices, listSegments, listStatusCacheEntries, loadConfig, logFiles, machineCapacity, macosAppState, maintenanceAttemptFile, maintenanceChildLogFile, maintenanceDir, maintenanceNdjsonFile, maintenanceRunClaims, maintenanceStateFile, markerWindow, offloadSummary, openSegmentName, parseHostedAgentAccess, parseHostedAgentGrant, parseHostedAndroidDevice, parseHostedAndroidPlacement, parseHostedAppManifest, parseHostedAppOffer, parseHostedChoice, parseHostedDevice, parseHostedIosPlacement, parseHostedLocalDeviceCount, parseHostedLogsCursor, parseHostedMacosChoice, parseHostedMacosDevice, parseHostedMacosPlacement, parseHostedNativeOffer, parseHostedNativePlacement, parseHostedOfferRequest, parseHostedPlatformDevice, parseHostedRequest, parseMachine, parseMacosRecord, parseMaintenanceState, parseMissReason, parseNdjsonLine, parseNdjsonText, parseSetupJournal, parseSince, pinnedEndpoint, pullRequestCacheDir, pullRequestCacheFile, queryJsonLogs, queryLogs, readAgentDeviceUsage, readAgentDeviceUsageCache, readAgentSessionsCache, readArchive, readArchiveState, readArchives, readBuildDetail, readBuildHistory, readBuildMachines, readCreatedDevices, readDevServerStop, readDevServerStopRequest, readDeviceHostMachines, readDeviceIdleShutdowns, readDevicePlacement, readDiskUsage, readEasSessionLedger, readEndedAgentSessions, readHostedApp, readHostedAppMetadata, readHostedDevice, readHostedDeviceLedger, readHostedMacosApp, readHostedNativeLogsCheckpoint, readHostedSessions, readIdleStop, readJsonFile, readJsonObject, readLastBuilds, readLogRecords, readLogTimeline, readLogsSince, readMacosRecord, readMaintenanceAttempt, readMaintenanceState, readNdjsonGenerations, readPullRequestCache, readRunEstimates, readSetupJournal, readStateFile, readStats, readStatsReport, readSwiftpmCacheUsage, readViewedDevices, readWarmRecord, readWorkspaceAgent, readWorkspaceState, recordMatches, recordedBytes, recordingDeviceName, recordingEnabled, rememberHostedAppBlobRename, runId, saturation, serverSetupDir, settingDefinition, settingValueError, settingsJsonSchema, setupJournalFile, sharedCcache, sharedCompilationCache, sharedGradle, sharedPods, sortByTs, statsFile, statsProjectKey, stimBuildDigest, supervisorLogFile, supervisorPidFile, swiftpmCacheUsageFile, tailRead, trimCapacityRefusals, trimCapacityWaits, trimSamples, tryAcquireBuildSlotClaim, unreadableHostedAndroid, unreadableHostedIos, unreadableHostedNative, validEasSessionClaim, validHostedAppArguments, validHostedAppBlob, validRunId, wholePhases, withConfigLock, withDerivedFacts, withGitChip, withStateReadCache, workspaceAgentDeviceDir, workspaceBuildDetailFile, workspaceDerivedData, workspaceEndedAgentsFile, workspaceEndedAgentsLock, workspaceGradleBuild, workspaceLastUsed, workspaceLogErrorIndex, workspaceLogsDir, workspaceMetadataFile, workspaceRecordingsDir, workspaceStateFile, workspaceStateLock };
1
+ import { $ as projectRootDirectories, $a as TunnelMode, $c as createAgentActionReader, $i as readHostedDeviceLedger, $n as MacosAppState, $o as maintenanceStateFile, $r as DevServerStopRecord, $s as readStateFile, $t as BuildPlacement, A as DeviceHostMachineCredential, Aa as rememberHostedAppBlobRename, Ac as ProjectRecord, Ai as HostedDeviceOfferRequest, An as PlannedPhase, Ao as archiveRoot, Ar as HostedIosStatus, As as fileSizes, At as ACTIVITY_RECENCY_BASES, B as RunHistory, Ba as OFFLOAD_MODES, Bc as machineCapacity, Bi as deviceHostArea, Bn as TUTORIAL_VERSION, Bo as diskUsageCacheDir, Br as hostedAndroidRecords, Bs as sortByTs, Bt as AppPresence, C as pinnedEndpoint, Ca as hostedAppArea, Cc as requireAutomaticMachine, Ci as readWorkspaceAgent, Cn as MemorySource, Co as openSegmentName, Cr as MaintenanceState, Cs as NATIVE_CRASH_LOG_PREFIX, Ct as readBuildDetail, D as HostedMetroRequest, Da as parseHostedAppOffer, Dc as DeviceRecord, Di as HostedAndroidDevice, Dn as PHYSICAL_DEVICE_CONNECTIONS, Do as agentSessionsCacheFile, Dr as readMaintenanceAttempt, Ds as buildCriteria, Dt as readPullRequestCache, E as HostedMetroGateway, Ea as parseHostedAppManifest, Ec as Config, Ei as HostedAndroidChoice, En as NativeBuildStep, Eo as recordingEnabled, Er as parseMaintenanceState, Es as attachExpoErrorContext, Et as readEndedAgentSessions, F as HISTORY_LIMIT, Fa as settingsJsonSchema, Fc as BuildMachineCredential, Fi as HostedDeviceSession, Fn as StatsPlatform, Fo as createdDevicesLock, Fr as unreadableHostedIos, Fs as queryJsonLogs, Ft as ActivityRecencyBasis, G as StatsCapacityWait, Ga as SETTING_GROUPS, Gc as swiftpmCacheUsageFile, Gi as parseHostedChoice, Gn as WebBrowserState, Go as emulatorLogFile, Gr as hostedNativeRecords, Gs as EasSessionClaim, Gt as BuildCause, H as STATS_VERSION, Ha as REMOTE_DEVICE_BACKENDS, Hc as tryAcquireBuildSlotClaim, Hi as hostedConsolePort, Hn as WORKSPACE_PHASES, Ho as easMachineStateRoot, Hr as parseHostedAndroidPlacement, Hs as countErrorEntries, Ht as BUILD_RESULTS, I as OffloadSummary, Ia as ANDROID_COMPILER_CACHE_CHOICES, Ic as readBuildMachines, Ii as HostedIosChoice, In as StatusCapacity, Io as deviceHostMachinesClaims, Ir as HostedAndroidPlacement, Is as queryLogs, It as AgentSession, J as StatsReport, Ja as SettingEntry, Jc as agentDeviceUsageFile, Ji as parseHostedNativeOffer, Jn as WorkspaceStage, Jo as maintenanceAttemptFile, Jr as BUILD_HISTORY_KEY, Js as readEasSessionLedger, Jt as BuildHistoryEntry, K as StatsPlacement, Ka as SETTING_SCOPES, Kc as AgentDeviceUsage, Ki as parseHostedDevice, Kn as WebPageState, Ko as getConfigPath, Kr as parseHostedNativePlacement, Ks as EasSessionLedgerRead, Kt as BuildDetail, L as PLACEMENT_DECISIONS, La as ANDROID_EMULATOR_APPS, Lc as MachineCapacity, Li as HostedIosDevice, Ln as StatusIssue, Lo as deviceHostMachinesFile, Lr as HostedAndroidStatus, Ls as readLogRecords, Lt as AgentTool, M as BuildMachineTotals, Ma as validHostedAppBlob, Mc as SettingsObject, Mi as HostedDevicePlatform, Mn as RunOutcomeKind, Mo as buildMachinesLock, Mr as hostedIosRecords, Ms as logFiles, Mt as APP_PROCESS_STATES, N as CAPACITY_REFUSAL_LIMIT, Na as SETTINGS_SCHEMA_FILE, Nc as StimConfig, Ni as HostedDeviceRequest, Nn as STATUS_ISSUE_CODES, No as configLockPath, Nr as hostedIosStatus, Ns as markerWindow, Nt as ActiveBuildState, O as hostedMetroGateways, Oa as readHostedApp, Oc as DoctorRunRecord, Oi as HostedDevice, On as PhysicalDeviceConnection, Oo as archiveDir, Or as readMaintenanceState, Os as bundleMarkerPlatform, Ot as withDerivedFacts, P as CAPACITY_REFUSAL_MAX_AGE_MS, Pa as SETTINGS_SCHEMA_URL, Pc as SupervisorRecord, Pi as HostedDeviceSelectors, Pn as SimulatorState, Po as createdDevicesFile, Pr as parseHostedIosPlacement, Ps as parseSince, Pt as ActivityDriver, Q as offloadSummary, Qa as TUNNEL_MODES, Qc as AgentTarget, Qi as readHostedDevice, Qn as MacosAppRecord, Qo as maintenanceRunClaims, Qr as DEV_SERVER_STOP_REQUEST_KEY, Qs as readJsonObject, Qt as BuildPhase, R as ReadStatsResult, Ra as ANDROID_PCH_CHOICES, Rc as buildSlotPath, Ri as HostedNativeOffer, Rn as StatusIssueCode, Ro as deviceHostMachinesLock, Rr as hostedAndroidDeviceName, Rs as readLogTimeline, Rt as AndroidDeviceState, S as parseMachine, Sa as HostedAppRecord, Sc as automaticMachineEnabled, Si as readWarmRecord, Sn as MacosBuildPlanPayload, So as listSegments, Sr as MaintenanceSize, Ss as ERROR_SOURCES, St as readAgentSessionsCache, T as HOSTED_METRO_REQUESTS_KEY, Ta as hostedAppBlobs, Tc as ConcurrencyLimits, Ti as workspaceLastUsed, Tn as NATIVE_BUILD_STEPS, To as recordingDeviceName, Tr as MemoryCulprit, Ts as advanceTail, Tt as readDiskUsageFailure, U as StatsBucket, Ua as RemoteDeviceBackend, Uc as SwiftpmCacheUsage, Ui as hostedDeviceId, Un as WORKSPACE_STAGE_KINDS, Uo as easSessionLedgerFile, Ur as unreadableHostedAndroid, Us as CreatedDevicePlatform, Ut as BuildActivity, V as RunSample, Va as OffloadMode, Vc as saturation, Vi as deviceHostRoot, Vn as WEB_PAGE_STATES, Vo as diskUsageWalkClaims, Vr as hostedAndroidStatus, Vs as tailRead, Vt as BUILD_PHASES, W as StatsCapacityRefusal, Wa as SETTINGS, Wc as readSwiftpmCacheUsage, Wi as parseHostedAndroidDevice, Wn as WarmStep, Wo as easSessionLedgerLock, Wr as HostedNativePlacement, Ws as CreatedDevices, Wt as BuildCacheHit, X as decodeStats, Xa as SettingType, Xc as readAgentDeviceUsageCache, Xi as parseHostedPlatformDevice, Xn as WorktreeGit, Xo as maintenanceDir, Xr as DEVICE_IDLE_SHUTDOWN_KEY, Xs as isJsonObject, Xt as BuildMissChange, Y as StatsScope, Ya as SettingScope, Yc as readAgentDeviceUsage, Yi as parseHostedOfferRequest, Yn as WorktreeFacts, Yo as maintenanceChildLogFile, Yr as BUILD_HISTORY_LIMIT, Ys as validEasSessionClaim, Yt as BuildMissCategory, Z as findProjectRoot, Za as SettingsPayload, Zc as AgentActionReaderOptions, Zi as parseHostedRequest, Zn as WorktreePullRequest, Zo as maintenanceNdjsonFile, Zr as DEVICE_RECLAIM_REASON, Zs as readJsonFile, Zt as BuildMissReason, _ as Endpoint, _a as parseHostedMacosPlacement, _c as getRepoSettings, _i as readDevServerStopRequest, _n as MACHINE_OWNER_KINDS, _o as RecordingPlatform, _r as MaintenanceCheck, _s as workspaceLogsDir, _t as diskUsageCacheFile, a as parseSetupJournal, aa as HostedAgentGrant, ac as debugLoggingEnabled, ai as MAINTENANCE_LOG_NAME, al as parseNdjsonText, an as ChecksState, ao as isLayeredSetting, ar as readMacosRecord, as as sharedGradle, at as trimCapacityWaits, b as endpoint, ba as HostedAppFile, bc as withConfigLock, bi as readIdleStop, bn as MachineOwnerKind, bo as footageDrops, br as MaintenancePressure, bs as workspaceStateFile, bt as listStatusCacheEntries, c as HOSTED_LOGS_FIRST_BYTES, ca as HostedMacosChoice, cc as buildWorkerRoot, ci as WARM_KEY, cn as DeviceLeaseState, co as settingValueError, cr as ArchivedWorkspace, cs as supervisorLogFile, ct as DeviceViewersRecord, d as HostedLogsPage, da as hostedMacosAppSlot, dc as findProjectByMetroPort, di as WorkspaceState, dn as EndedAgentSession, do as validRunId, dr as linkReplacedArchives, ds as workspaceBuildDetailFile, dt as stimBuildDigest, ea as readHostedSessions, ec as withStateReadCache, ei as DevServerStopRequest, el as LEVELS, en as BuildPlanPayload, eo as WEB_VIEWPORTS, er as MacosBuild, es as pullRequestCacheDir, et as readRunEstimates, f as hostedMacosLogsDir, fa as hostedMacosBundleId, fc as getConcurrencyLimits, fi as buildDiagnostics, fn as EnvironmentDisk, fo as RECORDING_CAP_BYTES, fr as readArchive, fs as workspaceDerivedData, ft as AgentSessionsCache, g as readLogsSince, ga as parseHostedMacosDevice, gc as getProjectSettings, gi as readDevServerStop, gn as LastBuildReport, go as RecordedSegment, gr as MaintenanceActionKind, gs as workspaceLogErrorIndex, gt as agentSessionOf, h as readHostedNativeLogsCheckpoint, ha as parseHostedMacosChoice, hc as getProjectSetting, hi as readBuildHistory, hn as GitChipPart, ho as RecordedDevice, hr as MaintenanceAction, hs as workspaceGradleBuild, ht as StatusCacheEntry, i as isSetupJournalPrunable, ia as HostedAgentDriverName, ic as debugLogDir, ii as LAST_BUILD_KEYS, il as parseNdjsonLine, in as BuildWaitingFor, io as expectedShape, ir as readHostedMacosApp, is as sharedCompilationCache, it as trimCapacityRefusals, j as readDeviceHostMachines, ja as validHostedAppArguments, jc as RepoRecord, ji as HostedDevicePhase, jn as RemoteDeviceState, jo as buildMachinesFile, jr as hostedIosPlacements, js as followLogs, jt as AGENT_TOOLS, k as hostedMetroRequests, ka as readHostedAppMetadata, kc as PlatformRecords, ki as HostedDeviceOffer, kn as PhysicalDeviceState, ko as archiveLock, kr as HostedIosPlacement, ks as compileGrep, kt as withGitChip, l as HOSTED_LOGS_PAGE_BYTES, la as HostedMacosDevice, lc as configCorruptRepair, li as WORKSPACE_AGENT_KEY, ln as DevicePlacement, lo as RUN_ID_ENV, lr as archiveEnabled, ls as supervisorPidFile, lt as ViewedDevice, m as parseHostedLogsCursor, ma as parseHostedAgentGrant, mc as getProject, mi as parseMissReason, mn as GitChip, mo as RECORDING_PLATFORMS, mr as readArchives, ms as workspaceEndedAgentsLock, mt as PullRequestCacheEntry, n as SetupJournal, na as HOSTED_MACOS_APP_SLOTS, nc as DebugLog, ni as IDLE_STOP_KEY, nl as SOURCES, nn as BuildReport, no as acceptsShape, nr as macosAppState, ns as setupJournalFile, nt as readStatsReport, o as readSetupJournal, oa as HostedAgentLease, oc as ParkedMax, oi as MetroLastStop, ol as readNdjsonGenerations, on as DeviceActivity, oo as isSensitiveReference, or as ArchivedBytes, os as sharedPods, ot as trimSamples, p as hostedNativeLogsDir, pa as parseHostedAgentAccess, pc as getParkedMax, pi as lastUseFrom, pn as EnvironmentState, po as RECORDING_FOOTAGE_MS, pr as readArchiveState, ps as workspaceEndedAgentsFile, pt as ENDED_AGENT_RETENTION_MS, q as StatsRecord, qa as SettingDefinition, qc as AgentDeviceUsageRoots, qi as parseHostedLocalDeviceCount, qn as WorkspacePhase, qo as gitMergeCacheDir, qr as unreadableHostedNative, qs as readCreatedDevices, qt as BuildDiagnostic, r as isJournalExpired, ra as HostedAgentAccess, rc as createDebugLog, ri as IdleStopRecord, rl as levelRank, rn as BuildResult, ro as coerceSettingText, rr as parseMacosRecord, rs as sharedCcache, rt as statsProjectKey, s as agentDeviceStateDirs, sa as HostedAppLaunch, sc as allMetroPorts, si as READY_PHASE_MS, sn as DeviceAppProcess, so as settingDefinition, sr as ArchivedUsage, ss as statsFile, st as wholePhases, t as SetupCapability, ta as HOSTED_AGENT_DRIVERS, tc as DEBUG_ENV, ti as DeviceIdleShutdownRecord, tl as NdjsonRecord, tn as BuildPlatform, to as WebViewport, tr as MacosProcess, ts as serverSetupDir, tt as readStats, u as HostedLogsCursor, ua as HostedMacosPlacement, uc as findEnclosingWorktreeRoot, ui as WarmRecord, un as DiskMeasure, uo as runId, ur as archivedUsage, us as workspaceAgentDeviceDir, ut as readViewedDevices, v as TAILNET_MACHINE_PATTERN, va as HOSTED_APP_CHUNK_BYTES, vc as isPathPrefix, vi as readDeviceIdleShutdowns, vn as MEMORY_SOURCES, vo as capDrops, vr as MaintenanceMode, vs as workspaceMetadataFile, vt as diskUsageFailureFile, w as HOSTED_METRO_GATEWAYS_KEY, wa as hostedAppAttempt, wc as validateAutomaticPool, wi as readWorkspaceState, wn as MetroBundleState, wo as recordedBytes, wr as MaintenanceStatus, ws as QueryCriteria, wt as readDiskUsage, x as findPeer, xa as HostedAppOffer, xc as AutomaticPoolRole, xi as readLastBuilds, xn as MachineUsageState, xo as listRecordedDevices, xr as MaintenanceRecord, xs as workspaceStateLock, xt as pullRequestCacheFile, y as TailnetPeer, ya as HostedAppDelivery, yc as loadConfig, yi as readDevicePlacement, yn as MachineOwner, yo as closedSegmentName, yr as MaintenancePass, ys as workspaceRecordingsDir, yt as endedAgentSessionOf, z as RunEstimates, za as IOS_SIMULATOR_APPS, zc as buildSlotsDir, zi as assertHostedDeviceLedger, zn as StatusPayload, zo as deviceViewersDir, zr as hostedAndroidPlacements, zs as recordMatches, zt as AndroidRuntimeFacts } from "./index-DNBFsz-Q.mjs";
2
+ export { ACTIVITY_RECENCY_BASES, AGENT_TOOLS, ANDROID_COMPILER_CACHE_CHOICES, ANDROID_EMULATOR_APPS, ANDROID_PCH_CHOICES, APP_PROCESS_STATES, ActiveBuildState, ActivityDriver, ActivityRecencyBasis, AgentActionReaderOptions, AgentDeviceUsage, AgentDeviceUsageRoots, AgentSession, AgentSessionsCache, AgentTarget, AgentTool, AndroidDeviceState, AndroidRuntimeFacts, AppPresence, ArchivedBytes, ArchivedUsage, ArchivedWorkspace, AutomaticPoolRole, BUILD_HISTORY_KEY, BUILD_HISTORY_LIMIT, BUILD_PHASES, BUILD_RESULTS, BuildActivity, BuildCacheHit, BuildCause, BuildDetail, BuildDiagnostic, BuildHistoryEntry, BuildMachineCredential, BuildMachineTotals, BuildMissCategory, BuildMissChange, BuildMissReason, BuildPhase, BuildPlacement, BuildPlanPayload, BuildPlatform, BuildReport, BuildResult, BuildWaitingFor, CAPACITY_REFUSAL_LIMIT, CAPACITY_REFUSAL_MAX_AGE_MS, ChecksState, ConcurrencyLimits, Config, CreatedDevicePlatform, CreatedDevices, DEBUG_ENV, DEVICE_IDLE_SHUTDOWN_KEY, DEVICE_RECLAIM_REASON, DEV_SERVER_STOP_REQUEST_KEY, DebugLog, DevServerStopRecord, DevServerStopRequest, DeviceActivity, DeviceAppProcess, DeviceHostMachineCredential, DeviceIdleShutdownRecord, DeviceLeaseState, DevicePlacement, DeviceRecord, DeviceViewersRecord, DiskMeasure, DoctorRunRecord, ENDED_AGENT_RETENTION_MS, ERROR_SOURCES, EasSessionClaim, EasSessionLedgerRead, EndedAgentSession, Endpoint, EnvironmentDisk, EnvironmentState, GitChip, GitChipPart, HISTORY_LIMIT, HOSTED_AGENT_DRIVERS, HOSTED_APP_CHUNK_BYTES, HOSTED_LOGS_FIRST_BYTES, HOSTED_LOGS_PAGE_BYTES, HOSTED_MACOS_APP_SLOTS, HOSTED_METRO_GATEWAYS_KEY, HOSTED_METRO_REQUESTS_KEY, HostedAgentAccess, HostedAgentDriverName, HostedAgentGrant, HostedAgentLease, HostedAndroidChoice, HostedAndroidDevice, HostedAndroidPlacement, HostedAndroidStatus, HostedAppDelivery, HostedAppFile, HostedAppLaunch, HostedAppOffer, HostedAppRecord, HostedDevice, HostedDeviceOffer, HostedDeviceOfferRequest, HostedDevicePhase, HostedDevicePlatform, HostedDeviceRequest, HostedDeviceSelectors, HostedDeviceSession, HostedIosChoice, HostedIosDevice, HostedIosPlacement, HostedIosStatus, HostedLogsCursor, HostedLogsPage, HostedMacosChoice, HostedMacosDevice, HostedMacosPlacement, HostedMetroGateway, HostedMetroRequest, HostedNativeOffer, HostedNativePlacement, IDLE_STOP_KEY, IOS_SIMULATOR_APPS, IdleStopRecord, LAST_BUILD_KEYS, LEVELS, LastBuildReport, MACHINE_OWNER_KINDS, MAINTENANCE_LOG_NAME, MEMORY_SOURCES, MachineCapacity, MachineOwner, MachineOwnerKind, MachineUsageState, MacosAppRecord, MacosAppState, MacosBuild, MacosBuildPlanPayload, MacosProcess, MaintenanceAction, MaintenanceActionKind, MaintenanceCheck, MaintenanceMode, MaintenancePass, MaintenancePressure, MaintenanceRecord, MaintenanceSize, MaintenanceState, MaintenanceStatus, MemoryCulprit, MemorySource, MetroBundleState, MetroLastStop, NATIVE_BUILD_STEPS, NATIVE_CRASH_LOG_PREFIX, NativeBuildStep, NdjsonRecord, OFFLOAD_MODES, OffloadMode, OffloadSummary, PHYSICAL_DEVICE_CONNECTIONS, PLACEMENT_DECISIONS, ParkedMax, PhysicalDeviceConnection, PhysicalDeviceState, PlannedPhase, PlatformRecords, ProjectRecord, PullRequestCacheEntry, QueryCriteria, READY_PHASE_MS, RECORDING_CAP_BYTES, RECORDING_FOOTAGE_MS, RECORDING_PLATFORMS, REMOTE_DEVICE_BACKENDS, RUN_ID_ENV, ReadStatsResult, RecordedDevice, RecordedSegment, RecordingPlatform, RemoteDeviceBackend, RemoteDeviceState, RepoRecord, RunEstimates, RunHistory, RunOutcomeKind, RunSample, SETTINGS, SETTINGS_SCHEMA_FILE, SETTINGS_SCHEMA_URL, SETTING_GROUPS, SETTING_SCOPES, SOURCES, STATS_VERSION, STATUS_ISSUE_CODES, SettingDefinition, SettingEntry, SettingScope, SettingType, SettingsObject, SettingsPayload, SetupCapability, SetupJournal, SimulatorState, StatsBucket, StatsCapacityRefusal, StatsCapacityWait, StatsPlacement, StatsPlatform, StatsRecord, StatsReport, StatsScope, StatusCacheEntry, StatusCapacity, StatusIssue, StatusIssueCode, StatusPayload, StimConfig, SupervisorRecord, SwiftpmCacheUsage, TAILNET_MACHINE_PATTERN, TUNNEL_MODES, TUTORIAL_VERSION, TailnetPeer, TunnelMode, ViewedDevice, WARM_KEY, WEB_PAGE_STATES, WEB_VIEWPORTS, WORKSPACE_AGENT_KEY, WORKSPACE_PHASES, WORKSPACE_STAGE_KINDS, WarmRecord, WarmStep, WebBrowserState, WebPageState, WebViewport, WorkspacePhase, WorkspaceStage, WorkspaceState, WorktreeFacts, WorktreeGit, WorktreePullRequest, acceptsShape, advanceTail, agentDeviceStateDirs, agentDeviceUsageFile, agentSessionOf, agentSessionsCacheFile, allMetroPorts, archiveDir, archiveEnabled, archiveLock, archiveRoot, archivedUsage, assertHostedDeviceLedger, attachExpoErrorContext, automaticMachineEnabled, buildCriteria, buildDiagnostics, buildMachinesFile, buildMachinesLock, buildSlotPath, buildSlotsDir, buildWorkerRoot, bundleMarkerPlatform, capDrops, closedSegmentName, coerceSettingText, compileGrep, configCorruptRepair, configLockPath, countErrorEntries, createAgentActionReader, createDebugLog, createdDevicesFile, createdDevicesLock, debugLogDir, debugLoggingEnabled, decodeStats, deviceHostArea, deviceHostMachinesClaims, deviceHostMachinesFile, deviceHostMachinesLock, deviceHostRoot, deviceViewersDir, diskUsageCacheDir, diskUsageCacheFile, diskUsageFailureFile, diskUsageWalkClaims, easMachineStateRoot, easSessionLedgerFile, easSessionLedgerLock, emulatorLogFile, endedAgentSessionOf, endpoint, expectedShape, fileSizes, findEnclosingWorktreeRoot, findPeer, findProjectByMetroPort, findProjectRoot, followLogs, footageDrops, getConcurrencyLimits, getConfigPath, getParkedMax, getProject, getProjectSetting, getProjectSettings, getRepoSettings, gitMergeCacheDir, hostedAndroidDeviceName, hostedAndroidPlacements, hostedAndroidRecords, hostedAndroidStatus, hostedAppArea, hostedAppAttempt, hostedAppBlobs, hostedConsolePort, hostedDeviceId, hostedIosPlacements, hostedIosRecords, hostedIosStatus, hostedMacosAppSlot, hostedMacosBundleId, hostedMacosLogsDir, hostedMetroGateways, hostedMetroRequests, hostedNativeLogsDir, hostedNativeRecords, isJournalExpired, isJsonObject, isLayeredSetting, isPathPrefix, isSensitiveReference, isSetupJournalPrunable, lastUseFrom, levelRank, linkReplacedArchives, listRecordedDevices, listSegments, listStatusCacheEntries, loadConfig, logFiles, machineCapacity, macosAppState, maintenanceAttemptFile, maintenanceChildLogFile, maintenanceDir, maintenanceNdjsonFile, maintenanceRunClaims, maintenanceStateFile, markerWindow, offloadSummary, openSegmentName, parseHostedAgentAccess, parseHostedAgentGrant, parseHostedAndroidDevice, parseHostedAndroidPlacement, parseHostedAppManifest, parseHostedAppOffer, parseHostedChoice, parseHostedDevice, parseHostedIosPlacement, parseHostedLocalDeviceCount, parseHostedLogsCursor, parseHostedMacosChoice, parseHostedMacosDevice, parseHostedMacosPlacement, parseHostedNativeOffer, parseHostedNativePlacement, parseHostedOfferRequest, parseHostedPlatformDevice, parseHostedRequest, parseMachine, parseMacosRecord, parseMaintenanceState, parseMissReason, parseNdjsonLine, parseNdjsonText, parseSetupJournal, parseSince, pinnedEndpoint, projectRootDirectories, pullRequestCacheDir, pullRequestCacheFile, queryJsonLogs, queryLogs, readAgentDeviceUsage, readAgentDeviceUsageCache, readAgentSessionsCache, readArchive, readArchiveState, readArchives, readBuildDetail, readBuildHistory, readBuildMachines, readCreatedDevices, readDevServerStop, readDevServerStopRequest, readDeviceHostMachines, readDeviceIdleShutdowns, readDevicePlacement, readDiskUsage, readDiskUsageFailure, readEasSessionLedger, readEndedAgentSessions, readHostedApp, readHostedAppMetadata, readHostedDevice, readHostedDeviceLedger, readHostedMacosApp, readHostedNativeLogsCheckpoint, readHostedSessions, readIdleStop, readJsonFile, readJsonObject, readLastBuilds, readLogRecords, readLogTimeline, readLogsSince, readMacosRecord, readMaintenanceAttempt, readMaintenanceState, readNdjsonGenerations, readPullRequestCache, readRunEstimates, readSetupJournal, readStateFile, readStats, readStatsReport, readSwiftpmCacheUsage, readViewedDevices, readWarmRecord, readWorkspaceAgent, readWorkspaceState, recordMatches, recordedBytes, recordingDeviceName, recordingEnabled, rememberHostedAppBlobRename, requireAutomaticMachine, runId, saturation, serverSetupDir, settingDefinition, settingValueError, settingsJsonSchema, setupJournalFile, sharedCcache, sharedCompilationCache, sharedGradle, sharedPods, sortByTs, statsFile, statsProjectKey, stimBuildDigest, supervisorLogFile, supervisorPidFile, swiftpmCacheUsageFile, tailRead, trimCapacityRefusals, trimCapacityWaits, trimSamples, tryAcquireBuildSlotClaim, unreadableHostedAndroid, unreadableHostedIos, unreadableHostedNative, validEasSessionClaim, validHostedAppArguments, validHostedAppBlob, validRunId, validateAutomaticPool, wholePhases, withConfigLock, withDerivedFacts, withGitChip, withStateReadCache, workspaceAgentDeviceDir, workspaceBuildDetailFile, workspaceDerivedData, workspaceEndedAgentsFile, workspaceEndedAgentsLock, workspaceGradleBuild, workspaceLastUsed, workspaceLogErrorIndex, workspaceLogsDir, workspaceMetadataFile, workspaceRecordingsDir, workspaceStateFile, workspaceStateLock };
package/dist/state.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { _ as releaseClaim, f as isClaimRefusal, g as readClaimSet, x as tryAcquireClaim } from "./ownership-claim-O31Y5iIb.mjs";
2
2
  import { inspectProcessIdentity } from "./process-identity.mjs";
3
- import { C as workspaceStateDir, h as rotatedLogPath, j as withDirLock, l as configDir, m as rotateLog, t as LOG_ROTATE_BYTES, x as workspaceName } from "./core-DWOUn9xp.mjs";
3
+ import { M as withDirLock, S as workspaceName, g as rotatedLogPath, h as rotateLog, l as configDir, t as LOG_ROTATE_BYTES, u as ensurePrivateDir, w as workspaceStateDir } from "./core-Btea8jlo.mjs";
4
4
  import { appendFileSync, closeSync, existsSync, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, realpathSync, statSync } from "node:fs";
5
5
  import { availableParallelism, homedir, loadavg } from "node:os";
6
6
  import { basename, dirname, isAbsolute, join, posix, relative, resolve, sep } from "node:path";
@@ -148,8 +148,8 @@ function readCompleteLines(path, start) {
148
148
  let fd;
149
149
  try {
150
150
  fd = openSync(path, "r");
151
- const stat = fstatSync(fd);
152
- const size = stat.size;
151
+ const stat = fstatSync(fd, { bigint: true });
152
+ const size = Number(stat.size);
153
153
  const identity = `${stat.dev}:${stat.ino}`;
154
154
  if (size <= start) return {
155
155
  text: "",
@@ -488,6 +488,10 @@ function agentSessionsCacheFile() {
488
488
  function diskUsageCacheDir() {
489
489
  return join(configDir(), "disk-usage");
490
490
  }
491
+ /** The ownership claim root that admits one disk-usage walk at a time on this machine. */
492
+ function diskUsageWalkClaims() {
493
+ return join(configDir(), "disk-usage-walk.claims");
494
+ }
491
495
  /** The remote Macs this Mac paired with, each with its pinned tailnet node and device token. */
492
496
  function buildMachinesFile() {
493
497
  return join(configDir(), "build-machines.json");
@@ -561,10 +565,7 @@ function setupJournalFile(hash) {
561
565
  //#endregion
562
566
  //#region state/config.ts
563
567
  function withConfigLock(fn) {
564
- return withDirLock(configLockPath(), fn, { ensureParent: () => {
565
- const dir = configDir();
566
- if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
567
- } });
568
+ return withDirLock(configLockPath(), fn, { ensureParent: () => ensurePrivateDir(configDir()) });
568
569
  }
569
570
  function configCorruptRepair(path = getConfigPath()) {
570
571
  return `Repair the file, or move it aside to start over: mv "${path}" "${path}.broken"`;
@@ -612,6 +613,7 @@ function registryFromJson(config, key, path) {
612
613
  if (!isJsonObject(value)) throw configCorrupt(`has a ${key} that is not an object: ${JSON.stringify(value)}`, path);
613
614
  const registry = {};
614
615
  for (const [name, entry] of Object.entries(value)) {
616
+ if (name === "__proto__") continue;
615
617
  if (!isJsonObject(entry)) throw configCorrupt(`has a ${key} entry ${JSON.stringify(name)} that is not an object: ${JSON.stringify(entry)}`, path);
616
618
  registry[name] = entry;
617
619
  }
@@ -1004,15 +1006,28 @@ const SETTINGS = [
1004
1006
  default: "Debug",
1005
1007
  description: "Xcode configuration to build, such as Debug or Release"
1006
1008
  },
1009
+ {
1010
+ key: "ios.scheme",
1011
+ type: STRING,
1012
+ scopes: ["workspace", "committed"],
1013
+ description: "Shared Xcode scheme to build when the workspace has several"
1014
+ },
1007
1015
  {
1008
1016
  key: "ios.remote",
1009
1017
  type: {
1010
1018
  kind: "string",
1011
1019
  pattern: TAILNET_MACHINE_PATTERN,
1012
- patternHelp: "eas, proxy, auto, or a tailnet machine name"
1020
+ patternHelp: "eas, proxy, auto, local, or a tailnet machine name"
1013
1021
  },
1014
1022
  scopes: EVERY,
1015
- description: "Default iOS remote target: eas, proxy, or an approved Mac in remote.machines; auto places on an approved Mac when this Mac is full or busy"
1023
+ description: "Default iOS remote target: eas, proxy, or an approved Mac in remote.machines; auto places on an approved Mac when this Mac is full or busy; local runs here, overriding a lower layer"
1024
+ },
1025
+ {
1026
+ key: "ios.projectPath",
1027
+ type: RELATIVE_PATH,
1028
+ scopes: ["workspace", "committed"],
1029
+ default: "ios",
1030
+ description: "Directory under the app that holds a bare React Native app's Xcode project and Podfile"
1016
1031
  },
1017
1032
  {
1018
1033
  key: "ios.simslimProfile",
@@ -1054,7 +1069,11 @@ const SETTINGS = [
1054
1069
  },
1055
1070
  {
1056
1071
  key: "android.deviceProfile",
1057
- type: STRING,
1072
+ type: {
1073
+ kind: "string",
1074
+ pattern: "^[A-Za-z0-9 ._()-]*$",
1075
+ patternHelp: "an avdmanager device id such as pixel_6 or Nexus 5X (`avdmanager list device -c`)"
1076
+ },
1058
1077
  scopes: EVERY,
1059
1078
  default: "pixel_6",
1060
1079
  description: "avdmanager hardware profile id for new owned AVDs"
@@ -1083,12 +1102,36 @@ const SETTINGS = [
1083
1102
  scopes: PROJECT,
1084
1103
  description: "Validated AVD config values"
1085
1104
  },
1105
+ {
1106
+ key: "android.gradleRoot",
1107
+ type: RELATIVE_PATH,
1108
+ scopes: ["workspace", "committed"],
1109
+ default: "android",
1110
+ description: "Directory relative to the app holding gradlew and settings.gradle; may be outside the app but not the repository"
1111
+ },
1112
+ {
1113
+ key: "android.module",
1114
+ type: {
1115
+ kind: "string",
1116
+ pattern: "^(:(?!\\.\\.?(?::|$))[A-Za-z0-9._-]+)+$",
1117
+ patternHelp: "a Gradle project path such as :app"
1118
+ },
1119
+ scopes: ["workspace", "committed"],
1120
+ default: ":app",
1121
+ description: "The app's Gradle project path, such as :app"
1122
+ },
1086
1123
  {
1087
1124
  key: "android.variant",
1088
1125
  type: STRING,
1089
1126
  scopes: PROJECT,
1090
1127
  description: "Gradle build variant"
1091
1128
  },
1129
+ {
1130
+ key: "android.offloadInputs",
1131
+ type: OBJECT,
1132
+ scopes: PROJECT,
1133
+ description: "Native Gradle source sufficiency, exact ignored inputs and generated output directories for build workers"
1134
+ },
1092
1135
  {
1093
1136
  key: "android.keystore",
1094
1137
  type: PATH,
@@ -1107,10 +1150,10 @@ const SETTINGS = [
1107
1150
  type: {
1108
1151
  kind: "string",
1109
1152
  pattern: TAILNET_MACHINE_PATTERN,
1110
- patternHelp: "eas, proxy, auto, or a tailnet machine name"
1153
+ patternHelp: "eas, proxy, auto, local, or a tailnet machine name"
1111
1154
  },
1112
1155
  scopes: EVERY,
1113
- description: "Default Android remote target: eas, proxy, or an approved Mac in remote.machines; auto places on an approved Mac when this Mac is full or busy"
1156
+ description: "Default Android remote target: eas, proxy, or an approved Mac in remote.machines; auto places on an approved Mac when this Mac is full or busy; local runs here, overriding a lower layer"
1114
1157
  },
1115
1158
  {
1116
1159
  key: "metro.tunnel",
@@ -1122,6 +1165,12 @@ const SETTINGS = [
1122
1165
  default: "auto",
1123
1166
  description: "How a remote device reaches Metro; tailscale is tailnet-only and requires explicit selection"
1124
1167
  },
1168
+ {
1169
+ key: "metro.command",
1170
+ type: { kind: "strings" },
1171
+ scopes: ["workspace", "committed"],
1172
+ description: "Command that starts this project's dev server, as an argv array run from the app directory; {port} is replaced with the reserved Metro port"
1173
+ },
1125
1174
  {
1126
1175
  key: "metro.ngrokUrl",
1127
1176
  type: STRING,
@@ -1739,6 +1788,27 @@ const SETTINGS = [
1739
1788
  scopes: MACHINE,
1740
1789
  description: "Tailscale names of the remote Macs this Mac may build on and host owned simulators on, each optionally with :<port> of its tailscale serve route (default 7443); what each is used for follows the build and device-host approvals it grants, which doctor --fix asks for separately"
1741
1790
  },
1791
+ {
1792
+ key: "remote.buildPoolDisabled",
1793
+ type: { kind: "strings" },
1794
+ scopes: MACHINE,
1795
+ default: [],
1796
+ description: "Members excluded from this requester's automatic build placement: local or exact remote.machines entries. Explicit placement and running builds are unaffected; at least one local or configured, approved remote member must stay enabled"
1797
+ },
1798
+ {
1799
+ key: "remote.devicePoolDisabled",
1800
+ type: { kind: "strings" },
1801
+ scopes: MACHINE,
1802
+ default: [],
1803
+ description: "Members excluded from this requester's automatic simulator and emulator placement: local or exact remote.machines entries. Explicit placement and existing sessions are unaffected; at least one local or configured, approved remote member must stay enabled"
1804
+ },
1805
+ {
1806
+ key: "remote.easFallback",
1807
+ type: BOOLEAN,
1808
+ scopes: EVERY,
1809
+ default: false,
1810
+ description: "When ios.remote or android.remote is auto, this Mac is at its concurrency.maxDevices cap and no Mac in remote.machines takes the run, run the simulator or emulator on a billed EAS Simulator instead of waiting or refusing, when eas-cli can"
1811
+ },
1742
1812
  {
1743
1813
  key: "remote.build",
1744
1814
  type: {
@@ -1749,7 +1819,7 @@ const SETTINGS = [
1749
1819
  scopes: MACHINE,
1750
1820
  default: "auto",
1751
1821
  env: "STIM_REMOTE_BUILD",
1752
- description: "Build placement: auto follows remote.buildMode with local fallback; local always builds here; a name in remote.machines requires that remote Mac without fallback. The ios, android and macos --remote-build flag overrides this setting and its environment override"
1822
+ description: "Build placement: auto follows remote.buildMode within enabled automatic pool members; local always builds here; a name in remote.machines requires that remote Mac without fallback. The ios, android and macos --remote-build flag overrides this setting and its environment override"
1753
1823
  },
1754
1824
  {
1755
1825
  key: "remote.buildMode",
@@ -1760,7 +1830,7 @@ const SETTINGS = [
1760
1830
  scopes: MACHINE,
1761
1831
  default: "auto",
1762
1832
  env: "STIM_REMOTE_BUILD_MODE",
1763
- description: "When remote.build is auto, where iOS simulator Debug, Android emulator debug and macOS SwiftPM Debug builds run: auto builds here while this Mac has a free concurrency.maxBuilds slot and its load is under server.maxLoadPerCore, and otherwise builds on a less loaded Mac in remote.machines; force builds on a remote Mac whenever one can take the build; off always builds here"
1833
+ description: "When remote.build is auto, where iOS simulator Debug, Android emulator debug and macOS SwiftPM Debug builds run: auto builds here while this Mac has a free concurrency.maxBuilds slot and its load is under server.maxLoadPerCore, and otherwise builds on a less loaded Mac in remote.machines; force builds on an enabled remote Mac whenever one can take the build; off builds here when local is enabled in remote.buildPoolDisabled"
1764
1834
  },
1765
1835
  {
1766
1836
  key: "server.maxLoadPerCore",
@@ -2057,6 +2127,60 @@ function readBuildMachines() {
2057
2127
  }
2058
2128
  }
2059
2129
  //#endregion
2130
+ //#region state/device-host-machines.ts
2131
+ /** An absent store is empty; unreadable or malformed credentials refuse access without discarding pins. */
2132
+ function readDeviceHostMachines() {
2133
+ let value;
2134
+ try {
2135
+ value = readJsonFile(deviceHostMachinesFile());
2136
+ } catch (error) {
2137
+ if (error.code === "ENOENT") return [];
2138
+ throw error;
2139
+ }
2140
+ if (!isJsonObject(value) || value.version !== 1 || !Array.isArray(value.machines)) throw new Error("Invalid device-host machine credential store");
2141
+ const machines = [];
2142
+ for (const entry of value.machines) {
2143
+ if (!isJsonObject(entry) || ![
2144
+ "machine",
2145
+ "nodeId",
2146
+ "dnsName",
2147
+ "deviceId",
2148
+ "deviceToken",
2149
+ "requestedAt"
2150
+ ].every((key) => typeof entry[key] === "string" && entry[key]) || entry.state !== "pending" && entry.state !== "approved" || machines.some((each) => each.machine === entry.machine)) throw new Error("Invalid device-host machine credential store");
2151
+ const { ticketHash, expiresAt, ...credential } = entry;
2152
+ machines.push({
2153
+ ...credential,
2154
+ ...typeof expiresAt === "string" && expiresAt ? { expiresAt } : {},
2155
+ ...typeof ticketHash === "string" ? { ticketHash } : {}
2156
+ });
2157
+ }
2158
+ return machines;
2159
+ }
2160
+ //#endregion
2161
+ //#region state/automatic-pools.ts
2162
+ function automaticMachineEnabled(role, machine, config = loadConfig()) {
2163
+ const key = `${role}PoolDisabled`;
2164
+ const disabled = config?.remote?.[key];
2165
+ if (disabled === void 0) return true;
2166
+ if (!Array.isArray(disabled) || disabled.some((entry) => typeof entry !== "string" || !entry.trim())) throw Object.assign(/* @__PURE__ */ new Error(`remote.${key} must be a list of machine names or local.`), { code: "STIM_BAD_ARG" });
2167
+ return !disabled.includes(machine);
2168
+ }
2169
+ function requireAutomaticMachine(role, machine) {
2170
+ if (automaticMachineEnabled(role, machine)) return;
2171
+ throw Object.assign(/* @__PURE__ */ new Error(`${machine} is disabled in this requester's automatic ${role} pool.`), {
2172
+ code: role === "build" ? "STIM_OFFLOAD_REFUSED" : "STIM_HOSTING_REFUSED",
2173
+ remedy: `Enable it in remote.${role}PoolDisabled or select a machine explicitly.`
2174
+ });
2175
+ }
2176
+ function validateAutomaticPool(role, config) {
2177
+ if (automaticMachineEnabled(role, "local", config)) return;
2178
+ const configured = config.remote?.machines;
2179
+ const approved = role === "build" ? readBuildMachines() : readDeviceHostMachines();
2180
+ if (Array.isArray(configured) && configured.some((machine) => typeof machine === "string" && automaticMachineEnabled(role, machine, config) && approved.some((entry) => entry.machine === machine && entry.state === "approved"))) return;
2181
+ throw Object.assign(/* @__PURE__ */ new Error(`Keep at least one enabled automatic ${role} pool member: local or a configured, approved remote machine.`), { code: "STIM_BAD_ARG" });
2182
+ }
2183
+ //#endregion
2060
2184
  //#region state/debug-log.ts
2061
2185
  const DEBUG_ENV = "STIM_DEBUG";
2062
2186
  const ENABLED_RECHECK_MS = 5e3;
@@ -2230,7 +2354,7 @@ function isError(record) {
2230
2354
  return record.level === "error" || record.level === "fatal";
2231
2355
  }
2232
2356
  function isExpoLine(record) {
2233
- return record.src === "metro" && record.raw === true && record.event === "expo_stdout";
2357
+ return record.src === "metro" && record.raw === true && (record.event === "expo_stdout" || record.event === "command_stdout");
2234
2358
  }
2235
2359
  /**
2236
2360
  * The number of rows a log list shows for `records`, an error query's result in log order. Stim Desktop's
@@ -3103,7 +3227,7 @@ const WORKSPACE_PHASES = [
3103
3227
  "idle"
3104
3228
  ];
3105
3229
  /** The tutorial format version the installed Stim writes into the tutorial app. */
3106
- const TUTORIAL_VERSION = 1;
3230
+ const TUTORIAL_VERSION = 2;
3107
3231
  /**
3108
3232
  * Where a memory figure comes from. `footprint` is each process's physical footprint, which Activity Monitor's Memory
3109
3233
  * column shows. `rss` sums resident set sizes, which count pages shared between processes once per process, so a
@@ -3283,6 +3407,10 @@ function cacheName(path) {
3283
3407
  function diskUsageCacheFile(path) {
3284
3408
  return join(diskUsageCacheDir(), cacheName(path));
3285
3409
  }
3410
+ /** The file that records when the last walk of `path` failed, so other processes do not repeat it at once. */
3411
+ function diskUsageFailureFile(path) {
3412
+ return join(diskUsageCacheDir(), cacheName(path).replace(/\.json$/, ".failed.json"));
3413
+ }
3286
3414
  /** The file that caches the pull request of the worktree at `path`. */
3287
3415
  function pullRequestCacheFile(path) {
3288
3416
  return join(pullRequestCacheDir(), cacheName(path));
@@ -3382,6 +3510,12 @@ function readDiskUsage(path) {
3382
3510
  measuredAt
3383
3511
  };
3384
3512
  }
3513
+ /** When the last walk of `path` failed (an ISO time), or null when none is recorded. */
3514
+ function readDiskUsageFailure(path) {
3515
+ const entry = readJsonObject(diskUsageFailureFile(path));
3516
+ if (!entry || entry.path !== path || typeof entry.failedAt !== "string") return null;
3517
+ return Number.isFinite(Date.parse(entry.failedAt)) ? entry.failedAt : null;
3518
+ }
3385
3519
  function countOrNull(value) {
3386
3520
  return typeof value === "number" && Number.isInteger(value) && value >= 0 ? value : null;
3387
3521
  }
@@ -3623,7 +3757,7 @@ function buildDiagnostics(value) {
3623
3757
  function devicePlacement(value) {
3624
3758
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
3625
3759
  const record = value;
3626
- if (record.decision !== "local" && record.decision !== "hosted" && record.decision !== "waited-locally" || typeof record.reason !== "string") return null;
3760
+ if (record.decision !== "local" && record.decision !== "hosted" && record.decision !== "waited-locally" && record.decision !== "eas" || typeof record.reason !== "string") return null;
3627
3761
  return {
3628
3762
  decision: record.decision,
3629
3763
  reason: record.reason,
@@ -4168,7 +4302,7 @@ function readStatsReport(key, now) {
4168
4302
  note
4169
4303
  };
4170
4304
  }
4171
- function findProjectRoot(startDir) {
4305
+ function* projectRootDirectories(startDir) {
4172
4306
  let dir;
4173
4307
  try {
4174
4308
  dir = realpathSync(resolve(startDir));
@@ -4176,12 +4310,16 @@ function findProjectRoot(startDir) {
4176
4310
  dir = resolve(startDir);
4177
4311
  }
4178
4312
  while (true) {
4179
- if (existsSync(join(dir, "package.json")) || existsSync(join(dir, "Package.swift"))) return dir;
4313
+ yield dir;
4180
4314
  const parent = dirname(dir);
4181
- if (parent === dir) return null;
4315
+ if (parent === dir) return;
4182
4316
  dir = parent;
4183
4317
  }
4184
4318
  }
4319
+ function findProjectRoot(startDir) {
4320
+ for (const dir of projectRootDirectories(startDir)) if (existsSync(join(dir, "package.json")) || existsSync(join(dir, "Package.swift"))) return dir;
4321
+ return null;
4322
+ }
4185
4323
  //#endregion
4186
4324
  //#region state/device-host.ts
4187
4325
  function deviceHostRoot() {
@@ -4424,7 +4562,7 @@ function validHostedAppArguments(value) {
4424
4562
  return Array.isArray(value) && value.length <= 32 && value.every((argument) => typeof argument === "string" && argument.length <= 1024 && !/[\0\r\n]/.test(argument)) && value.reduce((total, argument) => total + argument.length, 0) <= 8192;
4425
4563
  }
4426
4564
  function parseHostedAppOffer(value) {
4427
- if (!isJsonObject(value) || typeof value.session !== "string" || !/^[a-f0-9-]{36}$/.test(value.session) || !hostedAppAttempt(value.attempt) || typeof value.bundleId !== "string" || !/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}$/.test(value.bundleId) || value.mode !== "development" && value.mode !== "release" || value.devClientScheme !== void 0 && (value.mode !== "development" || typeof value.devClientScheme !== "string" || !/^[a-zA-Z][a-zA-Z0-9+.-]{0,127}$/.test(value.devClientScheme)) || !isJsonObject(value.manifest) || typeof value.manifest.sha256 !== "string" || !/^[0-9a-f]{64}$/.test(value.manifest.sha256) || typeof value.manifest.size !== "number" || !Number.isSafeInteger(value.manifest.size) || value.manifest.size < 1 || value.manifest.size > 8 * 1024 ** 2) return null;
4565
+ if (!isJsonObject(value) || typeof value.session !== "string" || !/^[a-f0-9-]{36}$/.test(value.session) || !hostedAppAttempt(value.attempt) || typeof value.bundleId !== "string" || !/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}$/.test(value.bundleId) || value.mode !== "development" && value.mode !== "release" && value.mode !== "process" || value.devClientScheme !== void 0 && (value.mode !== "development" || typeof value.devClientScheme !== "string" || !/^[a-zA-Z][a-zA-Z0-9+.-]{0,127}$/.test(value.devClientScheme)) || !isJsonObject(value.manifest) || typeof value.manifest.sha256 !== "string" || !/^[0-9a-f]{64}$/.test(value.manifest.sha256) || typeof value.manifest.size !== "number" || !Number.isSafeInteger(value.manifest.size) || value.manifest.size < 1 || value.manifest.size > 8 * 1024 ** 2) return null;
4428
4566
  if (value.arguments !== void 0 && !validHostedAppArguments(value.arguments)) return null;
4429
4567
  return {
4430
4568
  session: value.session,
@@ -4503,37 +4641,6 @@ function readHostedApp(session, attempt, workerHome) {
4503
4641
  };
4504
4642
  }
4505
4643
  //#endregion
4506
- //#region state/device-host-machines.ts
4507
- /** An absent store is empty; unreadable or malformed credentials refuse access without discarding pins. */
4508
- function readDeviceHostMachines() {
4509
- let value;
4510
- try {
4511
- value = readJsonFile(deviceHostMachinesFile());
4512
- } catch (error) {
4513
- if (error.code === "ENOENT") return [];
4514
- throw error;
4515
- }
4516
- if (!isJsonObject(value) || value.version !== 1 || !Array.isArray(value.machines)) throw new Error("Invalid device-host machine credential store");
4517
- const machines = [];
4518
- for (const entry of value.machines) {
4519
- if (!isJsonObject(entry) || ![
4520
- "machine",
4521
- "nodeId",
4522
- "dnsName",
4523
- "deviceId",
4524
- "deviceToken",
4525
- "requestedAt"
4526
- ].every((key) => typeof entry[key] === "string" && entry[key]) || entry.state !== "pending" && entry.state !== "approved" || machines.some((each) => each.machine === entry.machine)) throw new Error("Invalid device-host machine credential store");
4527
- const { ticketHash, expiresAt, ...credential } = entry;
4528
- machines.push({
4529
- ...credential,
4530
- ...typeof expiresAt === "string" && expiresAt ? { expiresAt } : {},
4531
- ...typeof ticketHash === "string" ? { ticketHash } : {}
4532
- });
4533
- }
4534
- return machines;
4535
- }
4536
- //#endregion
4537
4644
  //#region state/macos.ts
4538
4645
  function processRecord(value) {
4539
4646
  if (!value || typeof value !== "object") return void 0;
@@ -5066,4 +5173,4 @@ function isSetupJournalPrunable(journal, now) {
5066
5173
  return Date.parse(journal.expiresAt) + 36e5 < now;
5067
5174
  }
5068
5175
  //#endregion
5069
- export { ACTIVITY_RECENCY_BASES, AGENT_TOOLS, ANDROID_COMPILER_CACHE_CHOICES, ANDROID_EMULATOR_APPS, ANDROID_PCH_CHOICES, APP_PROCESS_STATES, BUILD_HISTORY_KEY, BUILD_HISTORY_LIMIT, BUILD_PHASES, BUILD_RESULTS, CAPACITY_REFUSAL_LIMIT, CAPACITY_REFUSAL_MAX_AGE_MS, DEBUG_ENV, DEVICE_IDLE_SHUTDOWN_KEY, DEVICE_RECLAIM_REASON, DEV_SERVER_STOP_REQUEST_KEY, ENDED_AGENT_RETENTION_MS, ERROR_SOURCES, HISTORY_LIMIT, HOSTED_AGENT_DRIVERS, HOSTED_APP_CHUNK_BYTES, HOSTED_LOGS_FIRST_BYTES, HOSTED_LOGS_PAGE_BYTES, HOSTED_MACOS_APP_SLOTS, HOSTED_METRO_GATEWAYS_KEY, HOSTED_METRO_REQUESTS_KEY, IDLE_STOP_KEY, IOS_SIMULATOR_APPS, LAST_BUILD_KEYS, LEVELS, MACHINE_OWNER_KINDS, MAINTENANCE_LOG_NAME, MEMORY_SOURCES, NATIVE_BUILD_STEPS, NATIVE_CRASH_LOG_PREFIX, OFFLOAD_MODES, PHYSICAL_DEVICE_CONNECTIONS, PLACEMENT_DECISIONS, READY_PHASE_MS, RECORDING_CAP_BYTES, RECORDING_FOOTAGE_MS, RECORDING_PLATFORMS, REMOTE_DEVICE_BACKENDS, RUN_ID_ENV, SETTINGS, SETTINGS_SCHEMA_FILE, SETTINGS_SCHEMA_URL, SETTING_GROUPS, SETTING_SCOPES, SOURCES, STATS_VERSION, STATUS_ISSUE_CODES, TAILNET_MACHINE_PATTERN, TUNNEL_MODES, TUTORIAL_VERSION, WARM_KEY, WEB_PAGE_STATES, WEB_VIEWPORTS, WORKSPACE_AGENT_KEY, WORKSPACE_PHASES, WORKSPACE_STAGE_KINDS, acceptsShape, advanceTail, agentDeviceStateDirs, agentDeviceUsageFile, agentSessionOf, agentSessionsCacheFile, allMetroPorts, archiveDir, archiveEnabled, archiveLock, archiveRoot, archivedUsage, assertHostedDeviceLedger, attachExpoErrorContext, buildCriteria, buildDiagnostics, buildMachinesFile, buildMachinesLock, buildSlotPath, buildSlotsDir, buildWorkerRoot, bundleMarkerPlatform, capDrops, closedSegmentName, coerceSettingText, compileGrep, configCorruptRepair, configLockPath, countErrorEntries, createAgentActionReader, createDebugLog, createdDevicesFile, createdDevicesLock, debugLogDir, debugLoggingEnabled, decodeStats, deviceHostArea, deviceHostMachinesClaims, deviceHostMachinesFile, deviceHostMachinesLock, deviceHostRoot, deviceViewersDir, diskUsageCacheDir, diskUsageCacheFile, easMachineStateRoot, easSessionLedgerFile, easSessionLedgerLock, emulatorLogFile, endedAgentSessionOf, endpoint, expectedShape, fileSizes, findEnclosingWorktreeRoot, findPeer, findProjectByMetroPort, findProjectRoot, followLogs, footageDrops, getConcurrencyLimits, getConfigPath, getParkedMax, getProject, getProjectSetting, getProjectSettings, getRepoSettings, gitMergeCacheDir, hostedAndroidDeviceName, hostedAndroidPlacements, hostedAndroidRecords, hostedAndroidStatus, hostedAppArea, hostedAppAttempt, hostedAppBlobs, hostedConsolePort, hostedDeviceId, hostedIosPlacements, hostedIosRecords, hostedIosStatus, hostedMacosAppSlot, hostedMacosBundleId, hostedMacosLogsDir, hostedMetroGateways, hostedMetroRequests, hostedNativeLogsDir, hostedNativeRecords, isJournalExpired, isJsonObject, isLayeredSetting, isPathPrefix, isSensitiveReference, isSetupJournalPrunable, lastUseFrom, levelRank, linkReplacedArchives, listRecordedDevices, listSegments, listStatusCacheEntries, loadConfig, logFiles, machineCapacity, macosAppState, maintenanceAttemptFile, maintenanceChildLogFile, maintenanceDir, maintenanceNdjsonFile, maintenanceRunClaims, maintenanceStateFile, markerWindow, offloadSummary, openSegmentName, parseHostedAgentAccess, parseHostedAgentGrant, parseHostedAndroidDevice, parseHostedAndroidPlacement, parseHostedAppManifest, parseHostedAppOffer, parseHostedChoice, parseHostedDevice, parseHostedIosPlacement, parseHostedLocalDeviceCount, parseHostedLogsCursor, parseHostedMacosChoice, parseHostedMacosDevice, parseHostedMacosPlacement, parseHostedNativeOffer, parseHostedNativePlacement, parseHostedOfferRequest, parseHostedPlatformDevice, parseHostedRequest, parseMachine, parseMacosRecord, parseMaintenanceState, parseMissReason, parseNdjsonLine, parseNdjsonText, parseSetupJournal, parseSince, pinnedEndpoint, pullRequestCacheDir, pullRequestCacheFile, queryJsonLogs, queryLogs, readAgentDeviceUsage, readAgentDeviceUsageCache, readAgentSessionsCache, readArchive, readArchiveState, readArchives, readBuildDetail, readBuildHistory, readBuildMachines, readCreatedDevices, readDevServerStop, readDevServerStopRequest, readDeviceHostMachines, readDeviceIdleShutdowns, readDevicePlacement, readDiskUsage, readEasSessionLedger, readEndedAgentSessions, readHostedApp, readHostedAppMetadata, readHostedDevice, readHostedDeviceLedger, readHostedMacosApp, readHostedNativeLogsCheckpoint, readHostedSessions, readIdleStop, readJsonFile, readJsonObject, readLastBuilds, readLogRecords, readLogTimeline, readLogsSince, readMacosRecord, readMaintenanceAttempt, readMaintenanceState, readNdjsonGenerations, readPullRequestCache, readRunEstimates, readSetupJournal, readStateFile, readStats, readStatsReport, readSwiftpmCacheUsage, readViewedDevices, readWarmRecord, readWorkspaceAgent, readWorkspaceState, recordMatches, recordedBytes, recordingDeviceName, recordingEnabled, rememberHostedAppBlobRename, runId, saturation, serverSetupDir, settingDefinition, settingValueError, settingsJsonSchema, setupJournalFile, sharedCcache, sharedCompilationCache, sharedGradle, sharedPods, sortByTs, statsFile, statsProjectKey, stimBuildDigest, supervisorLogFile, supervisorPidFile, swiftpmCacheUsageFile, tailRead, trimCapacityRefusals, trimCapacityWaits, trimSamples, tryAcquireBuildSlotClaim, unreadableHostedAndroid, unreadableHostedIos, unreadableHostedNative, validEasSessionClaim, validHostedAppArguments, validHostedAppBlob, validRunId, wholePhases, withConfigLock, withDerivedFacts, withGitChip, withStateReadCache, workspaceAgentDeviceDir, workspaceBuildDetailFile, workspaceDerivedData, workspaceEndedAgentsFile, workspaceEndedAgentsLock, workspaceGradleBuild, workspaceLastUsed, workspaceLogErrorIndex, workspaceLogsDir, workspaceMetadataFile, workspaceRecordingsDir, workspaceStateFile, workspaceStateLock };
5176
+ export { ACTIVITY_RECENCY_BASES, AGENT_TOOLS, ANDROID_COMPILER_CACHE_CHOICES, ANDROID_EMULATOR_APPS, ANDROID_PCH_CHOICES, APP_PROCESS_STATES, BUILD_HISTORY_KEY, BUILD_HISTORY_LIMIT, BUILD_PHASES, BUILD_RESULTS, CAPACITY_REFUSAL_LIMIT, CAPACITY_REFUSAL_MAX_AGE_MS, DEBUG_ENV, DEVICE_IDLE_SHUTDOWN_KEY, DEVICE_RECLAIM_REASON, DEV_SERVER_STOP_REQUEST_KEY, ENDED_AGENT_RETENTION_MS, ERROR_SOURCES, HISTORY_LIMIT, HOSTED_AGENT_DRIVERS, HOSTED_APP_CHUNK_BYTES, HOSTED_LOGS_FIRST_BYTES, HOSTED_LOGS_PAGE_BYTES, HOSTED_MACOS_APP_SLOTS, HOSTED_METRO_GATEWAYS_KEY, HOSTED_METRO_REQUESTS_KEY, IDLE_STOP_KEY, IOS_SIMULATOR_APPS, LAST_BUILD_KEYS, LEVELS, MACHINE_OWNER_KINDS, MAINTENANCE_LOG_NAME, MEMORY_SOURCES, NATIVE_BUILD_STEPS, NATIVE_CRASH_LOG_PREFIX, OFFLOAD_MODES, PHYSICAL_DEVICE_CONNECTIONS, PLACEMENT_DECISIONS, READY_PHASE_MS, RECORDING_CAP_BYTES, RECORDING_FOOTAGE_MS, RECORDING_PLATFORMS, REMOTE_DEVICE_BACKENDS, RUN_ID_ENV, SETTINGS, SETTINGS_SCHEMA_FILE, SETTINGS_SCHEMA_URL, SETTING_GROUPS, SETTING_SCOPES, SOURCES, STATS_VERSION, STATUS_ISSUE_CODES, TAILNET_MACHINE_PATTERN, TUNNEL_MODES, TUTORIAL_VERSION, WARM_KEY, WEB_PAGE_STATES, WEB_VIEWPORTS, WORKSPACE_AGENT_KEY, WORKSPACE_PHASES, WORKSPACE_STAGE_KINDS, acceptsShape, advanceTail, agentDeviceStateDirs, agentDeviceUsageFile, agentSessionOf, agentSessionsCacheFile, allMetroPorts, archiveDir, archiveEnabled, archiveLock, archiveRoot, archivedUsage, assertHostedDeviceLedger, attachExpoErrorContext, automaticMachineEnabled, buildCriteria, buildDiagnostics, buildMachinesFile, buildMachinesLock, buildSlotPath, buildSlotsDir, buildWorkerRoot, bundleMarkerPlatform, capDrops, closedSegmentName, coerceSettingText, compileGrep, configCorruptRepair, configLockPath, countErrorEntries, createAgentActionReader, createDebugLog, createdDevicesFile, createdDevicesLock, debugLogDir, debugLoggingEnabled, decodeStats, deviceHostArea, deviceHostMachinesClaims, deviceHostMachinesFile, deviceHostMachinesLock, deviceHostRoot, deviceViewersDir, diskUsageCacheDir, diskUsageCacheFile, diskUsageFailureFile, diskUsageWalkClaims, easMachineStateRoot, easSessionLedgerFile, easSessionLedgerLock, emulatorLogFile, endedAgentSessionOf, endpoint, expectedShape, fileSizes, findEnclosingWorktreeRoot, findPeer, findProjectByMetroPort, findProjectRoot, followLogs, footageDrops, getConcurrencyLimits, getConfigPath, getParkedMax, getProject, getProjectSetting, getProjectSettings, getRepoSettings, gitMergeCacheDir, hostedAndroidDeviceName, hostedAndroidPlacements, hostedAndroidRecords, hostedAndroidStatus, hostedAppArea, hostedAppAttempt, hostedAppBlobs, hostedConsolePort, hostedDeviceId, hostedIosPlacements, hostedIosRecords, hostedIosStatus, hostedMacosAppSlot, hostedMacosBundleId, hostedMacosLogsDir, hostedMetroGateways, hostedMetroRequests, hostedNativeLogsDir, hostedNativeRecords, isJournalExpired, isJsonObject, isLayeredSetting, isPathPrefix, isSensitiveReference, isSetupJournalPrunable, lastUseFrom, levelRank, linkReplacedArchives, listRecordedDevices, listSegments, listStatusCacheEntries, loadConfig, logFiles, machineCapacity, macosAppState, maintenanceAttemptFile, maintenanceChildLogFile, maintenanceDir, maintenanceNdjsonFile, maintenanceRunClaims, maintenanceStateFile, markerWindow, offloadSummary, openSegmentName, parseHostedAgentAccess, parseHostedAgentGrant, parseHostedAndroidDevice, parseHostedAndroidPlacement, parseHostedAppManifest, parseHostedAppOffer, parseHostedChoice, parseHostedDevice, parseHostedIosPlacement, parseHostedLocalDeviceCount, parseHostedLogsCursor, parseHostedMacosChoice, parseHostedMacosDevice, parseHostedMacosPlacement, parseHostedNativeOffer, parseHostedNativePlacement, parseHostedOfferRequest, parseHostedPlatformDevice, parseHostedRequest, parseMachine, parseMacosRecord, parseMaintenanceState, parseMissReason, parseNdjsonLine, parseNdjsonText, parseSetupJournal, parseSince, pinnedEndpoint, projectRootDirectories, pullRequestCacheDir, pullRequestCacheFile, queryJsonLogs, queryLogs, readAgentDeviceUsage, readAgentDeviceUsageCache, readAgentSessionsCache, readArchive, readArchiveState, readArchives, readBuildDetail, readBuildHistory, readBuildMachines, readCreatedDevices, readDevServerStop, readDevServerStopRequest, readDeviceHostMachines, readDeviceIdleShutdowns, readDevicePlacement, readDiskUsage, readDiskUsageFailure, readEasSessionLedger, readEndedAgentSessions, readHostedApp, readHostedAppMetadata, readHostedDevice, readHostedDeviceLedger, readHostedMacosApp, readHostedNativeLogsCheckpoint, readHostedSessions, readIdleStop, readJsonFile, readJsonObject, readLastBuilds, readLogRecords, readLogTimeline, readLogsSince, readMacosRecord, readMaintenanceAttempt, readMaintenanceState, readNdjsonGenerations, readPullRequestCache, readRunEstimates, readSetupJournal, readStateFile, readStats, readStatsReport, readSwiftpmCacheUsage, readViewedDevices, readWarmRecord, readWorkspaceAgent, readWorkspaceState, recordMatches, recordedBytes, recordingDeviceName, recordingEnabled, rememberHostedAppBlobRename, requireAutomaticMachine, runId, saturation, serverSetupDir, settingDefinition, settingValueError, settingsJsonSchema, setupJournalFile, sharedCcache, sharedCompilationCache, sharedGradle, sharedPods, sortByTs, statsFile, statsProjectKey, stimBuildDigest, supervisorLogFile, supervisorPidFile, swiftpmCacheUsageFile, tailRead, trimCapacityRefusals, trimCapacityWaits, trimSamples, tryAcquireBuildSlotClaim, unreadableHostedAndroid, unreadableHostedIos, unreadableHostedNative, validEasSessionClaim, validHostedAppArguments, validHostedAppBlob, validRunId, validateAutomaticPool, wholePhases, withConfigLock, withDerivedFacts, withGitChip, withStateReadCache, workspaceAgentDeviceDir, workspaceBuildDetailFile, workspaceDerivedData, workspaceEndedAgentsFile, workspaceEndedAgentsLock, workspaceGradleBuild, workspaceLastUsed, workspaceLogErrorIndex, workspaceLogsDir, workspaceMetadataFile, workspaceRecordingsDir, workspaceStateFile, workspaceStateLock };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stim-cli/core",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "Shared internal cache and runtime primitives for Stim packages.",
5
5
  "license": "MIT",
6
6
  "repository": {