@stim-cli/core 1.17.1 → 1.18.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 isSensitiveReference, $i as HostedAgentLease, $n as readHostedMacosApp, $o as workspaceAgentDeviceDir, $r as MetroLastStop, $s as getProjectSetting, $t as BuildResult, A as DeviceHostMachineCredential, Aa as ANDROID_EMULATOR_APPS, Ac as readAgentDeviceUsageCache, Ai as HostedIosDevice, An as StatsPlatform, Ao as diskUsageCacheDir, Ar as HostedAndroidPlacement, As as tailRead, At as ActiveBuildState, B as RunHistory, Ba as SettingDefinition, Bc as readNdjsonGenerations, Bi as parseHostedLocalDeviceCount, Bn as WebBrowserState, Bo as maintenanceNdjsonFile, Br as parseHostedNativePlacement, Bs as readJsonFile, Bt as BuildCacheHit, C as pinnedEndpoint, Ca as rememberHostedAppBlobRename, Cc as SwiftpmCacheUsage, Ci as HostedDeviceOfferRequest, Cn as PhysicalDeviceConnection, Co as configLockPath, Cr as HostedIosPlacement, Cs as parseSince, Ct as readEndedAgentSessions, D as HostedMetroRequest, Da as SETTINGS_SCHEMA_URL, Dc as AgentDeviceUsageRoots, Di as HostedDeviceSelectors, Dn as RunOutcomeKind, Do as deviceHostMachinesFile, Dr as hostedIosStatus, Ds as readLogTimeline, Dt as ACTIVITY_RECENCY_BASES, E as HostedMetroGateway, Ea as SETTINGS_SCHEMA_FILE, Ec as AgentDeviceUsage, Ei as HostedDeviceRequest, En as RemoteDeviceState, Eo as deviceHostMachinesClaims, Er as hostedIosRecords, Es as readLogRecords, Et as withGitChip, F as HISTORY_LIMIT, Fa as REMOTE_DEVICE_BACKENDS, Fc as NdjsonRecord, Fi as hostedConsolePort, Fn as TUTORIAL_VERSION, Fo as getConfigPath, Fr as hostedAndroidStatus, Fs as EasSessionLedgerRead, Ft as AndroidDeviceState, G as StatsCapacityWait, Ga as TUNNEL_MODES, Gi as readHostedDevice, Gn as WorktreeGit, Go as setupJournalFile, Gr as DEVICE_RECLAIM_REASON, Gs as allMetroPorts, Gt as BuildMissCategory, H as STATS_VERSION, Ha as SettingScope, Hi as parseHostedOfferRequest, Hn as WorkspacePhase, Ho as maintenanceStateFile, Hr as BUILD_HISTORY_KEY, Hs as readStateFile, Ht as BuildDetail, I as OffloadSummary, Ia as RemoteDeviceBackend, Ic as SOURCES, Ii as hostedDeviceId, In as WEB_PAGE_STATES, Io as gitMergeCacheDir, Ir as parseHostedAndroidPlacement, Is as readCreatedDevices, It as AndroidRuntimeFacts, J as StatsReport, Ja as WebViewport, Ji as HOSTED_AGENT_DRIVERS, Jn as MacosAppState, Jo as sharedGradle, Jr as DevServerStopRequest, Js as findEnclosingWorktreeRoot, Jt as BuildPhase, K as StatsPlacement, Ka as TunnelMode, Ki as readHostedDeviceLedger, Kn as WorktreePullRequest, Ko as sharedCcache, Kr as DEV_SERVER_STOP_REQUEST_KEY, Ks as buildWorkerRoot, Kt as BuildMissChange, L as PLACEMENT_DECISIONS, La as SETTINGS, Lc as levelRank, Li as parseHostedAndroidDevice, Ln as WORKSPACE_PHASES, Lo as maintenanceAttemptFile, Lr as unreadableHostedAndroid, Ls as readEasSessionLedger, Lt as AppPresence, M as BuildMachineTotals, Ma as IOS_SIMULATOR_APPS, Mc as AgentTarget, Mi as assertHostedDeviceLedger, Mn as StatusIssue, Mo as easSessionLedgerFile, Mr as hostedAndroidDeviceName, Ms as CreatedDevicePlatform, Mt as ActivityRecencyBasis, N as CAPACITY_REFUSAL_LIMIT, Na as OFFLOAD_MODES, Nc as createAgentActionReader, Ni as deviceHostArea, Nn as StatusIssueCode, No as easSessionLedgerLock, Nr as hostedAndroidPlacements, Ns as CreatedDevices, Nt as AgentSession, O as hostedMetroGateways, Oa as settingsJsonSchema, Oc as agentDeviceUsageFile, Oi as HostedDeviceSession, On as STATUS_ISSUE_CODES, Oo as deviceHostMachinesLock, Or as parseHostedIosPlacement, Os as recordMatches, Ot as AGENT_TOOLS, P as CAPACITY_REFUSAL_MAX_AGE_MS, Pa as OffloadMode, Pc as LEVELS, Pi as deviceHostRoot, Pn as StatusPayload, Po as emulatorLogFile, Pr as hostedAndroidRecords, Ps as EasSessionClaim, Pt as AgentTool, Q as offloadSummary, Qa as isLayeredSetting, Qi as HostedAgentGrant, Qn as parseMacosRecord, Qo as supervisorPidFile, Qr as LAST_BUILD_KEYS, Qs as getProject, Qt as BuildReport, R as ReadStatsResult, Ra as SETTING_GROUPS, Rc as parseNdjsonLine, Ri as parseHostedChoice, Rn as WORKSPACE_STAGE_KINDS, Ro as maintenanceChildLogFile, Rr as HostedNativePlacement, Rs as validEasSessionClaim, Rt as BUILD_PHASES, S as parseMachine, Sa as readHostedAppMetadata, Sc as tryAcquireBuildSlotClaim, Si as HostedDeviceOffer, Sn as PHYSICAL_DEVICE_CONNECTIONS, So as buildMachinesLock, Sr as readMaintenanceState, Ss as markerWindow, St as readDiskUsage, T as HOSTED_METRO_REQUESTS_KEY, Ta as validHostedAppBlob, Tc as swiftpmCacheUsageFile, Ti as HostedDevicePlatform, Tn as PlannedPhase, To as createdDevicesLock, Tr as hostedIosPlacements, Ts as queryLogs, Tt as withDerivedFacts, U as StatsBucket, Ua as SettingType, Ui as parseHostedPlatformDevice, Un as WorkspaceStage, Uo as pullRequestCacheDir, Ur as BUILD_HISTORY_LIMIT, Us as withStateReadCache, Ut as BuildDiagnostic, V as RunSample, Va as SettingEntry, Vi as parseHostedNativeOffer, Vn as WebPageState, Vo as maintenanceRunClaims, Vr as unreadableHostedNative, Vs as readJsonObject, Vt as BuildCause, W as StatsCapacityRefusal, Wa as SettingsPayload, Wi as parseHostedRequest, Wn as WorktreeFacts, Wo as serverSetupDir, Wr as DEVICE_IDLE_SHUTDOWN_KEY, Ws as ParkedMax, Wt as BuildHistoryEntry, X as decodeStats, Xa as coerceSettingText, Xi as HostedAgentAccess, Xn as MacosProcess, Xo as statsFile, Xr as IDLE_STOP_KEY, Xs as getConcurrencyLimits, Xt as BuildPlanPayload, Y as StatsScope, Ya as acceptsShape, Yi as HOSTED_MACOS_APP_SLOTS, Yn as MacosBuild, Yo as sharedPods, Yr as DeviceIdleShutdownRecord, Ys as findProjectByMetroPort, Yt as BuildPlacement, Z as findProjectRoot, Za as expectedShape, Zi as HostedAgentDriverName, Zn as macosAppState, Zo as supervisorLogFile, Zr as IdleStopRecord, Zs as getParkedMax, Zt as BuildPlatform, _ as Endpoint, _a as hostedAppAttempt, _c as MachineCapacity, _i as readWorkspaceState, _n as MachineUsageState, _o as agentSessionsCacheFile, _r as MaintenanceSize, _s as bundleMarkerPlatform, _t as endedAgentSessionOf, a as parseSetupJournal, aa as hostedMacosBundleId, ac as ConcurrencyLimits, ai as buildDiagnostics, an as DevicePlacement, ao as RecordedDevice, ar as archivedUsage, as as workspaceLogErrorIndex, at as trimSamples, b as endpoint, ba as parseHostedAppOffer, bc as machineCapacity, bi as HostedAndroidDevice, bn as NATIVE_BUILD_STEPS, bo as archiveRoot, br as parseMaintenanceState, bs as followLogs, bt as readAgentSessionsCache, c as HOSTED_LOGS_FIRST_BYTES, ca as parseHostedMacosChoice, cc as DoctorRunRecord, ci as readBuildHistory, cn as EnvironmentDisk, co as capDrops, cr as readArchiveState, cs as workspaceRecordingsDir, ct as ViewedDevice, d as HostedLogsPage, da as HOSTED_APP_CHUNK_BYTES, dc as RepoRecord, di as readDeviceIdleShutdowns, dn as GitChipPart, do as listRecordedDevices, dr as MaintenanceActionKind, ds as ERROR_SOURCES, dt as AgentSessionsCache, ea as HostedAppLaunch, ec as getProjectSettings, ei as READY_PHASE_MS, en as BuildWaitingFor, eo as settingDefinition, er as readMacosRecord, es as workspaceBuildDetailFile, et as readStats, f as hostedMacosLogsDir, fa as HostedAppDelivery, fc as SettingsObject, fi as readDevicePlacement, fn as LastBuildReport, fo as listSegments, fr as MaintenanceCheck, fs as NATIVE_CRASH_LOG_PREFIX, ft as ENDED_AGENT_RETENTION_MS, g as readLogsSince, ga as hostedAppArea, gc as readBuildMachines, gi as readWorkspaceAgent, gn as MachineOwnerKind, go as recordingEnabled, gr as MaintenanceRecord, gs as buildCriteria, gt as diskUsageCacheFile, h as readHostedNativeLogsCheckpoint, ha as HostedAppRecord, hc as BuildMachineCredential, hi as readWarmRecord, hn as MachineOwner, ho as recordingDeviceName, hr as MaintenancePressure, hs as attachExpoErrorContext, ht as agentSessionOf, i as isSetupJournalPrunable, ia as hostedMacosAppSlot, ic as withConfigLock, ii as WorkspaceState, in as DeviceLeaseState, io as RECORDING_PLATFORMS, ir as archiveEnabled, is as workspaceGradleBuild, it as trimCapacityWaits, j as readDeviceHostMachines, ja as ANDROID_PCH_CHOICES, jc as AgentActionReaderOptions, ji as HostedNativeOffer, jn as StatusCapacity, jo as easMachineStateRoot, jr as HostedAndroidStatus, js as countErrorEntries, jt as ActivityDriver, k as hostedMetroRequests, ka as ANDROID_COMPILER_CACHE_CHOICES, kc as readAgentDeviceUsage, ki as HostedIosChoice, kn as SimulatorState, ko as deviceViewersDir, kr as unreadableHostedIos, ks as sortByTs, kt as APP_PROCESS_STATES, l as HOSTED_LOGS_PAGE_BYTES, la as parseHostedMacosDevice, lc as PlatformRecords, li as readDevServerStop, ln as EnvironmentState, lo as closedSegmentName, lr as readArchives, ls as workspaceStateFile, lt as readViewedDevices, m as parseHostedLogsCursor, ma as HostedAppOffer, mc as SupervisorRecord, mi as readLastBuilds, mn as MEMORY_SOURCES, mo as recordedBytes, mr as MaintenancePass, ms as advanceTail, mt as StatusCacheEntry, n as SetupJournal, na as HostedMacosDevice, nc as isPathPrefix, ni as WORKSPACE_AGENT_KEY, nn as DeviceActivity, no as RECORDING_CAP_BYTES, nr as ArchivedUsage, ns as workspaceEndedAgentsFile, nt as statsProjectKey, o as readSetupJournal, oa as parseHostedAgentAccess, oc as Config, oi as lastUseFrom, on as DiskMeasure, oo as RecordedSegment, or as linkReplacedArchives, os as workspaceLogsDir, ot as wholePhases, p as hostedNativeLogsDir, pa as HostedAppFile, pc as StimConfig, pi as readIdleStop, pn as MACHINE_OWNER_KINDS, po as openSegmentName, pr as MaintenanceMode, ps as QueryCriteria, pt as PullRequestCacheEntry, q as StatsRecord, qa as WEB_VIEWPORTS, qi as readHostedSessions, qn as MacosAppRecord, qo as sharedCompilationCache, qr as DevServerStopRecord, qs as configCorruptRepair, qt as BuildMissReason, r as isJournalExpired, ra as HostedMacosPlacement, rc as loadConfig, ri as WarmRecord, rn as DeviceAppProcess, ro as RECORDING_FOOTAGE_MS, rr as ArchivedWorkspace, rs as workspaceEndedAgentsLock, rt as trimCapacityRefusals, s as agentDeviceStateDirs, sa as parseHostedAgentGrant, sc as DeviceRecord, si as parseMissReason, sn as EndedAgentSession, so as RecordingPlatform, sr as readArchive, ss as workspaceMetadataFile, st as DeviceViewersRecord, t as SetupCapability, ta as HostedMacosChoice, tc as getRepoSettings, ti as WARM_KEY, tn as ChecksState, to as settingValueError, tr as ArchivedBytes, ts as workspaceDerivedData, tt as readStatsReport, u as HostedLogsCursor, ua as parseHostedMacosPlacement, uc as ProjectRecord, ui as readDevServerStopRequest, un as GitChip, uo as footageDrops, ur as MaintenanceAction, us as workspaceStateLock, ut as stimBuildDigest, v as TAILNET_MACHINE_PATTERN, va as hostedAppBlobs, vc as buildSlotPath, vi as workspaceLastUsed, vn as MemorySource, vo as archiveDir, vr as MaintenanceState, vs as compileGrep, vt as listStatusCacheEntries, w as HOSTED_METRO_GATEWAYS_KEY, wa as validHostedAppArguments, wc as readSwiftpmCacheUsage, wi as HostedDevicePhase, wn as PhysicalDeviceState, wo as createdDevicesFile, wr as HostedIosStatus, ws as queryJsonLogs, wt as readPullRequestCache, x as findPeer, xa as readHostedApp, xc as saturation, xi as HostedDevice, xn as NativeBuildStep, xo as buildMachinesFile, xr as readMaintenanceAttempt, xs as logFiles, xt as readBuildDetail, y as TailnetPeer, ya as parseHostedAppManifest, yc as buildSlotsDir, yi as HostedAndroidChoice, yn as MetroBundleState, yo as archiveLock, yr as MaintenanceStatus, ys as fileSizes, yt as pullRequestCacheFile, z as RunEstimates, za as SETTING_SCOPES, zc as parseNdjsonText, zi as parseHostedDevice, zn as WarmStep, zo as maintenanceDir, zr as hostedNativeRecords, zs as isJsonObject, zt as BUILD_RESULTS } from "./index-BTYoTeax.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, DEVICE_IDLE_SHUTDOWN_KEY, DEVICE_RECLAIM_REASON, DEV_SERVER_STOP_REQUEST_KEY, 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, 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, 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, createdDevicesFile, createdDevicesLock, 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, 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, wholePhases, withConfigLock, withDerivedFacts, withGitChip, withStateReadCache, workspaceAgentDeviceDir, workspaceBuildDetailFile, workspaceDerivedData, workspaceEndedAgentsFile, workspaceEndedAgentsLock, workspaceGradleBuild, workspaceLastUsed, workspaceLogErrorIndex, workspaceLogsDir, workspaceMetadataFile, workspaceRecordingsDir, workspaceStateFile, workspaceStateLock };
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 };
package/dist/state.mjs CHANGED
@@ -1,10 +1,10 @@
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, x as workspaceName } from "./core-DWOUn9xp.mjs";
4
- import { closeSync, existsSync, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, realpathSync, statSync } from "node:fs";
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";
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";
7
- import { createHash } from "node:crypto";
7
+ import { createHash, randomBytes } from "node:crypto";
8
8
  import { isIP } from "node:net";
9
9
  import { AsyncLocalStorage } from "node:async_hooks";
10
10
  import { StringDecoder } from "node:string_decoder";
@@ -1421,7 +1421,7 @@ const SETTINGS = [
1421
1421
  scopes: MACHINE,
1422
1422
  env: "STIM_BUDGET_MAX_COMMITTED_MEMORY_GB",
1423
1423
  scopedHomeValue: 0,
1424
- description: "Estimated memory, in GB, of live environments before idle ones are reclaimed; unset is 60% of RAM, 0 is off"
1424
+ description: "Estimated memory, in GB, of active environments before idle ones are reclaimed; unset is 60% of RAM, 0 is off"
1425
1425
  },
1426
1426
  {
1427
1427
  key: "budget.maxLiveWorkspaces",
@@ -1429,20 +1429,24 @@ const SETTINGS = [
1429
1429
  scopes: MACHINE,
1430
1430
  env: "STIM_BUDGET_MAX_LIVE_WORKSPACES",
1431
1431
  scopedHomeValue: 0,
1432
- description: "Live workspaces before idle ones are reclaimed; unset or 0 means no limit"
1432
+ description: "Active workspaces before idle ones are reclaimed; unset or 0 means no limit"
1433
1433
  },
1434
1434
  {
1435
1435
  key: "maintenance.mode",
1436
1436
  type: {
1437
1437
  kind: "choice",
1438
- choices: ["off", "report"]
1438
+ choices: [
1439
+ "off",
1440
+ "report",
1441
+ "on"
1442
+ ]
1439
1443
  },
1440
1444
  scopes: MACHINE,
1441
- default: "report",
1445
+ default: "on",
1442
1446
  env: "STIM_MAINTENANCE",
1443
1447
  scopedHomeValue: "off",
1444
1448
  ciValue: "off",
1445
- description: "Automatic resource maintenance. report measures, plans and logs what it would do and never deletes or stops anything; off disables it. Off under STIM_HOME or CI unless STIM_MAINTENANCE is set"
1449
+ description: "Automatic resource maintenance. on removes what gc would remove under the caps and floors below and logs every action; report measures, plans and logs what it would do and never deletes anything; off disables it. Off under STIM_HOME or CI unless STIM_MAINTENANCE is set"
1446
1450
  },
1447
1451
  {
1448
1452
  key: "maintenance.pressureCheckMinutes",
@@ -1560,6 +1564,69 @@ const SETTINGS = [
1560
1564
  env: "STIM_MAINTENANCE_CAP_TARGET_PERCENT",
1561
1565
  description: "Plan toward this percentage of each size cap"
1562
1566
  },
1567
+ {
1568
+ key: "maintenance.worktreeCheckMinutes",
1569
+ type: {
1570
+ kind: "number",
1571
+ integer: true,
1572
+ minimum: 1
1573
+ },
1574
+ scopes: MACHINE,
1575
+ default: 15,
1576
+ env: "STIM_MAINTENANCE_WORKTREE_CHECK_MINUTES",
1577
+ description: "Finished-worktree check interval in minutes"
1578
+ },
1579
+ {
1580
+ key: "maintenance.sweepHours",
1581
+ type: {
1582
+ kind: "number",
1583
+ integer: true,
1584
+ minimum: 0
1585
+ },
1586
+ scopes: MACHINE,
1587
+ default: 24,
1588
+ env: "STIM_MAINTENANCE_SWEEP_HOURS",
1589
+ description: "Age sweep interval in hours; 0 turns the age sweep off"
1590
+ },
1591
+ {
1592
+ key: "maintenance.olderThanDays",
1593
+ type: {
1594
+ kind: "number",
1595
+ integer: true,
1596
+ minimum: 1
1597
+ },
1598
+ scopes: MACHINE,
1599
+ default: 7,
1600
+ env: "STIM_MAINTENANCE_OLDER_THAN_DAYS",
1601
+ description: "Age in days for the age sweep: unused workspace build outputs and shared cache entries"
1602
+ },
1603
+ {
1604
+ key: "maintenance.protectRecentHours",
1605
+ type: {
1606
+ kind: "number",
1607
+ integer: true,
1608
+ minimum: 0
1609
+ },
1610
+ scopes: MACHINE,
1611
+ default: 2,
1612
+ env: "STIM_MAINTENANCE_PROTECT_RECENT_HOURS",
1613
+ description: "Cache entries used within this many hours are never evicted"
1614
+ },
1615
+ {
1616
+ key: "maintenance.removeFinishedWorktrees",
1617
+ type: BOOLEAN,
1618
+ scopes: MACHINE,
1619
+ default: true,
1620
+ env: "STIM_MAINTENANCE_REMOVE_FINISHED_WORKTREES",
1621
+ description: "Remove clean linked worktrees whose branch or pull request finished, under gc.worktreeGraceMinutes"
1622
+ },
1623
+ {
1624
+ key: "maintenance.keep",
1625
+ type: BOOLEAN,
1626
+ scopes: PROJECT,
1627
+ default: false,
1628
+ description: "Pin this workspace: automatic maintenance never clears its build outputs or removes its worktree"
1629
+ },
1563
1630
  {
1564
1631
  key: "maintenance.workspaceOutputsMaxGb",
1565
1632
  type: {
@@ -1604,6 +1671,17 @@ const SETTINGS = [
1604
1671
  env: "STIM_CACHES_SWIFT_COMPILATION_CACHE_MAX_GB",
1605
1672
  description: "Swift compilation-cache cap in GiB; planned emptying is whole; 0 means no cap"
1606
1673
  },
1674
+ {
1675
+ key: "caches.ccacheMaxGb",
1676
+ type: {
1677
+ kind: "number",
1678
+ exclusiveMinimum: 0
1679
+ },
1680
+ scopes: MACHINE,
1681
+ default: 5,
1682
+ env: "STIM_CACHES_CCACHE_MAX_GB",
1683
+ description: "ccache size limit in GiB, passed to ccache as CCACHE_MAXSIZE; ccache evicts by itself"
1684
+ },
1607
1685
  {
1608
1686
  key: "gc.worktreeGraceMinutes",
1609
1687
  type: CAPACITY,
@@ -1630,6 +1708,14 @@ const SETTINGS = [
1630
1708
  scopedHomeValue: 0,
1631
1709
  description: "Parked emulators kept for adoption; 0 turns parking off"
1632
1710
  },
1711
+ {
1712
+ key: "debug.logs",
1713
+ type: { kind: "boolean" },
1714
+ scopes: MACHINE,
1715
+ default: false,
1716
+ env: "STIM_DEBUG",
1717
+ description: "Debug-level logging. While on, the CLI records its commands, child processes and requests to other Macs, and stim-server records every request with its timings, under STIM_HOME/logs/debug/ with rotation. Nothing is sent anywhere, and records never carry arguments, tokens or tickets"
1718
+ },
1633
1719
  {
1634
1720
  key: "hosting.agentDriver",
1635
1721
  type: {
@@ -1958,6 +2044,7 @@ function parseCredential(value) {
1958
2044
  deviceToken,
1959
2045
  state,
1960
2046
  requestedAt,
2047
+ ...typeof value.expiresAt === "string" && value.expiresAt ? { expiresAt: value.expiresAt } : {},
1961
2048
  ...typeof value.ticketHash === "string" ? { ticketHash: value.ticketHash } : {}
1962
2049
  };
1963
2050
  }
@@ -1970,6 +2057,82 @@ function readBuildMachines() {
1970
2057
  }
1971
2058
  }
1972
2059
  //#endregion
2060
+ //#region state/debug-log.ts
2061
+ const DEBUG_ENV = "STIM_DEBUG";
2062
+ const ENABLED_RECHECK_MS = 5e3;
2063
+ const ROTATE_CHECK_BYTES = 262144;
2064
+ const SECRET_KEY = /token|secret|ticket|password|passphrase|authorization|credential|cookie|apikey/i;
2065
+ const MAX_DEPTH = 4;
2066
+ function debugLogDir() {
2067
+ return join(configDir(), "logs", "debug");
2068
+ }
2069
+ /** The `STIM_DEBUG` override (1/true on, 0/false off, anything else off), else the machine setting `debug.logs`. Never throws. */
2070
+ function debugLoggingEnabled(env = process.env) {
2071
+ const definition = settingDefinition("debug.logs");
2072
+ const raw = env[DEBUG_ENV];
2073
+ if (raw !== void 0 && raw !== "") {
2074
+ const value = coerceSettingText(definition, raw);
2075
+ return settingValueError(definition, value) === null && value === true;
2076
+ }
2077
+ try {
2078
+ return loadConfig()?.debug?.logs === true;
2079
+ } catch {
2080
+ return false;
2081
+ }
2082
+ }
2083
+ function scrub(value, depth = 0) {
2084
+ if (depth > MAX_DEPTH) return "[truncated]";
2085
+ if (Array.isArray(value)) return value.slice(0, 50).map((each) => scrub(each, depth + 1));
2086
+ if (value && typeof value === "object") {
2087
+ const out = {};
2088
+ for (const [key, each] of Object.entries(value)) out[key] = SECRET_KEY.test(key) ? "[redacted]" : scrub(each, depth + 1);
2089
+ return out;
2090
+ }
2091
+ return typeof value === "string" && value.length > 500 ? `${value.slice(0, 500)}...` : value;
2092
+ }
2093
+ /**
2094
+ * Debug-level records for one component (`cli` or `server`). Off by default; `STIM_DEBUG=1` or `debug.logs` turns it
2095
+ * on. Callers pass names, durations and codes, never arguments, environment values, tokens or tickets.
2096
+ */
2097
+ function createDebugLog(component, { env = process.env, now = Date.now, base = () => ({}) } = {}) {
2098
+ let checkedAt = Number.NEGATIVE_INFINITY;
2099
+ let on = false;
2100
+ let unchecked = ROTATE_CHECK_BYTES;
2101
+ const enabled = () => {
2102
+ const at = now();
2103
+ if (at - checkedAt >= ENABLED_RECHECK_MS) {
2104
+ checkedAt = at;
2105
+ on = debugLoggingEnabled(env);
2106
+ }
2107
+ return on;
2108
+ };
2109
+ return {
2110
+ enabled,
2111
+ log(event, fields = {}) {
2112
+ if (!enabled()) return;
2113
+ try {
2114
+ const file = join(debugLogDir(), `${component}.ndjson`);
2115
+ const line = `${JSON.stringify({
2116
+ ts: now(),
2117
+ level: "debug",
2118
+ src: component,
2119
+ event,
2120
+ pid: process.pid,
2121
+ ...base(),
2122
+ ...scrub(fields)
2123
+ })}\n`;
2124
+ mkdirSync(debugLogDir(), { recursive: true });
2125
+ if (unchecked >= ROTATE_CHECK_BYTES) {
2126
+ unchecked = 0;
2127
+ rotateLog(file, LOG_ROTATE_BYTES);
2128
+ }
2129
+ appendFileSync(file, line, { mode: 384 });
2130
+ unchecked += line.length;
2131
+ } catch {}
2132
+ }
2133
+ };
2134
+ }
2135
+ //#endregion
1973
2136
  //#region state/ledgers.ts
1974
2137
  function ids(value) {
1975
2138
  return Array.isArray(value) ? value.filter((entry) => typeof entry === "string" && entry !== "") : [];
@@ -2127,7 +2290,8 @@ const SOURCES = [
2127
2290
  "device",
2128
2291
  "build",
2129
2292
  "agent",
2130
- "maintenance"
2293
+ "maintenance",
2294
+ "placement"
2131
2295
  ];
2132
2296
  function levelRank(level) {
2133
2297
  const i = LEVELS.indexOf(level);
@@ -2739,6 +2903,23 @@ function recordingEnabled(env, layers) {
2739
2903
  return true;
2740
2904
  }
2741
2905
  //#endregion
2906
+ //#region state/run-id.ts
2907
+ const RUN_ID_ENV = "STIM_RUN_ID";
2908
+ const RUN_ID_PATTERN = /^[A-Za-z0-9._-]{1,64}$/;
2909
+ /** A run id as the CLI and stim-server accept it: letters, digits, `.`, `_` and `-`, at most 64. Null otherwise. */
2910
+ function validRunId(value) {
2911
+ return typeof value === "string" && RUN_ID_PATTERN.test(value) ? value : null;
2912
+ }
2913
+ let current = null;
2914
+ /**
2915
+ * The id of this CLI invocation: `STIM_RUN_ID` when it holds a valid id (Stim Desktop passes one), else a random one.
2916
+ * The CLI entry exports it back to `STIM_RUN_ID` so processes the run starts inherit it; this function does not.
2917
+ */
2918
+ function runId(env = process.env) {
2919
+ if (current === null) current = validRunId(env["STIM_RUN_ID"]) ?? randomBytes(6).toString("hex");
2920
+ return current;
2921
+ }
2922
+ //#endregion
2742
2923
  //#region state/settings-schema.ts
2743
2924
  const SETTINGS_SCHEMA_FILE = "settings.schema.json";
2744
2925
  const SETTINGS_SCHEMA_URL = `https://unpkg.com/stim/dist/${SETTINGS_SCHEMA_FILE}`;
@@ -3512,7 +3693,8 @@ function historyEntry(platform, value) {
3512
3693
  slot: typeof record.slot === "string" && record.slot ? record.slot : "default",
3513
3694
  configuration: typeof record.configuration === "string" ? record.configuration : null,
3514
3695
  cacheKey: typeof record.cacheKey === "string" ? record.cacheKey : null,
3515
- phases: historyPhases(record.phases)
3696
+ phases: historyPhases(record.phases),
3697
+ ...typeof record.compileSteps === "number" && Number.isInteger(record.compileSteps) && record.compileSteps >= 0 ? { compileSteps: record.compileSteps } : {}
3516
3698
  };
3517
3699
  }
3518
3700
  /** Each platform's recorded runs, newest first, at most `BUILD_HISTORY_LIMIT` each. */
@@ -3543,11 +3725,13 @@ function lastUseFrom(state, logMtimes) {
3543
3725
  ].filter(Number.isFinite);
3544
3726
  return candidates.length ? Math.max(...candidates) : NaN;
3545
3727
  }
3728
+ const MAINTENANCE_LOG_NAME = "maintenance.ndjson";
3546
3729
  function workspaceLastUsed(root) {
3547
3730
  const logs = workspaceLogsDir(root);
3548
3731
  let mtimes = [];
3549
3732
  try {
3550
3733
  mtimes = readdirSync(logs).flatMap((name) => {
3734
+ if (name.startsWith("maintenance.ndjson")) return [];
3551
3735
  try {
3552
3736
  return [statSync(join(logs, name)).mtimeMs];
3553
3737
  } catch {
@@ -4340,9 +4524,10 @@ function readDeviceHostMachines() {
4340
4524
  "deviceToken",
4341
4525
  "requestedAt"
4342
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");
4343
- const { ticketHash, ...credential } = entry;
4527
+ const { ticketHash, expiresAt, ...credential } = entry;
4344
4528
  machines.push({
4345
4529
  ...credential,
4530
+ ...typeof expiresAt === "string" && expiresAt ? { expiresAt } : {},
4346
4531
  ...typeof ticketHash === "string" ? { ticketHash } : {}
4347
4532
  });
4348
4533
  }
@@ -4363,7 +4548,7 @@ function processRecord(value) {
4363
4548
  }
4364
4549
  function parseMacosRecord(value) {
4365
4550
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
4366
- const { launchId, arguments: args, product, bundle, bundleId, executable, build, supervisor, app, host, hostLaunched } = value;
4551
+ const { launchId, arguments: args, product, displayName, bundle, bundleId, executable, build, supervisor, app, host, hostLaunched } = value;
4367
4552
  if (typeof launchId !== "string" || !Array.isArray(args) || args.some((arg) => typeof arg !== "string")) return null;
4368
4553
  if ([
4369
4554
  product,
@@ -4385,6 +4570,7 @@ function parseMacosRecord(value) {
4385
4570
  launchId,
4386
4571
  arguments: args,
4387
4572
  product,
4573
+ ...typeof displayName === "string" ? { displayName } : {},
4388
4574
  bundle,
4389
4575
  bundleId,
4390
4576
  executable,
@@ -4665,7 +4851,10 @@ const KINDS = [
4665
4851
  "would-trim-cache",
4666
4852
  "would-empty-cache",
4667
4853
  "would-shutdown-device",
4668
- "would-stop-workspace"
4854
+ "would-stop-workspace",
4855
+ "would-remove-worktree",
4856
+ "would-remove-orphan",
4857
+ "would-unregister-cache"
4669
4858
  ];
4670
4859
  /** Rejects missing, corrupt or unsupported payloads without throwing. */
4671
4860
  function parseMaintenanceState(value) {
@@ -4681,7 +4870,11 @@ function parseMaintenanceState(value) {
4681
4870
  "ccache",
4682
4871
  "other"
4683
4872
  ].includes(String(size.category)) && (size.workspace === void 0 || typeof size.workspace === "string") && (size.blocked === void 0 || typeof size.blocked === "string") && (size.idleDays === void 0 || nullableNumber(size.idleDays)))) return null;
4684
- if (!Array.isArray(value.plan) || !value.plan.every((action) => isJsonObject(action) && KINDS.includes(String(action.kind)) && typeof action.target === "string" && finite(action.bytes) && typeof action.reason === "string" && (action.workspace === void 0 || typeof action.workspace === "string"))) return null;
4873
+ if (!Array.isArray(value.plan) || !value.plan.every((action) => isJsonObject(action) && KINDS.includes(String(action.kind)) && typeof action.target === "string" && finite(action.bytes) && typeof action.reason === "string" && (action.workspace === void 0 || typeof action.workspace === "string") && (action.dir === void 0 || typeof action.dir === "string") && (action.olderThanDays === void 0 || finite(action.olderThanDays)) && (action.check === void 0 || [
4874
+ "worktree",
4875
+ "sweep",
4876
+ "disk"
4877
+ ].includes(String(action.check))))) return null;
4685
4878
  if (!Array.isArray(value.recent) || !value.recent.every((record) => isJsonObject(record) && record.src === "maintenance" && finite(record.ts) && typeof record.msg === "string" && [
4686
4879
  "debug",
4687
4880
  "info",
@@ -4693,8 +4886,8 @@ function parseMaintenanceState(value) {
4693
4886
  "maintenance_skip",
4694
4887
  "maintenance_failure",
4695
4888
  "maintenance_check"
4696
- ].includes(String(record.event)) && typeof record.pass === "string" && typeof record.trigger === "string" && record.mode === "report")) return null;
4697
- if (value.lastPass !== null && (!isJsonObject(value.lastPass) || !finite(value.lastPass.startedAt) || !finite(value.lastPass.durationMs) || typeof value.lastPass.trigger !== "string" || value.lastPass.mode !== "report" || value.lastPass.freedBytes !== 0 || value.lastPass.stopped !== 0 || !finite(value.lastPass.actions) || !strings(value.lastPass.blocked))) return null;
4889
+ ].includes(String(record.event)) && typeof record.pass === "string" && typeof record.trigger === "string" && (record.mode === "report" || record.mode === "on"))) return null;
4890
+ if (value.lastPass !== null && (!isJsonObject(value.lastPass) || !finite(value.lastPass.startedAt) || !finite(value.lastPass.durationMs) || typeof value.lastPass.trigger !== "string" || value.lastPass.mode !== "report" && value.lastPass.mode !== "on" || !finite(value.lastPass.freedBytes) || value.lastPass.stopped !== 0 || !finite(value.lastPass.actions) || !strings(value.lastPass.blocked))) return null;
4698
4891
  if (value.pressure !== null) {
4699
4892
  const pressure = value.pressure;
4700
4893
  if (!isJsonObject(pressure) || !Array.isArray(pressure.disk) || !pressure.disk.every((disk) => isJsonObject(disk) && typeof disk.volume === "string" && finite(disk.freeMb)) || !nullableNumber(pressure.warningSince) || !isJsonObject(pressure.memory) || ![
@@ -4873,4 +5066,4 @@ function isSetupJournalPrunable(journal, now) {
4873
5066
  return Date.parse(journal.expiresAt) + 36e5 < now;
4874
5067
  }
4875
5068
  //#endregion
4876
- 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, 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, 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, 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, createdDevicesFile, createdDevicesLock, 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, 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, wholePhases, withConfigLock, withDerivedFacts, withGitChip, withStateReadCache, workspaceAgentDeviceDir, workspaceBuildDetailFile, workspaceDerivedData, workspaceEndedAgentsFile, workspaceEndedAgentsLock, workspaceGradleBuild, workspaceLastUsed, workspaceLogErrorIndex, workspaceLogsDir, workspaceMetadataFile, workspaceRecordingsDir, workspaceStateFile, workspaceStateLock };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stim-cli/core",
3
- "version": "1.17.1",
3
+ "version": "1.18.0",
4
4
  "description": "Shared internal cache and runtime primitives for Stim packages.",
5
5
  "license": "MIT",
6
6
  "repository": {