stim 1.10.1 → 1.12.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.
Files changed (72) hide show
  1. package/dist/{build-progress-BXx-ZBe4.mjs → activity-CCZJs__P.mjs} +9 -182
  2. package/dist/{android-787HhP5w.mjs → android-75Sk2rIR.mjs} +81 -19
  3. package/dist/{android-Bu4mbDzc.mjs → android-B7X-8H7h.mjs} +426 -106
  4. package/dist/{android-DPov-fv2.mjs → android-BQiKJYK0.mjs} +1 -1
  5. package/dist/{android-cas-CITmIeWY.mjs → android-cas-DzLPXiEn.mjs} +7 -7
  6. package/dist/{app-install-Cfmqr3TQ.mjs → app-install-CsZi0SAT.mjs} +1 -1
  7. package/dist/{workspaces-wrH6dXfu.mjs → budget-DbzW5VTD.mjs} +651 -32
  8. package/dist/{dev-client-DExzPiOa.mjs → build-plan-CqntbR7b.mjs} +514 -38
  9. package/dist/build-progress-h60GPV27.mjs +179 -0
  10. package/dist/{cache-manifest-Pubfp8wV.mjs → cache-manifest-DWPF4RKJ.mjs} +1 -1
  11. package/dist/cache-manifest.mjs +1 -1
  12. package/dist/cli.mjs +16 -16
  13. package/dist/collector-run.mjs +4 -4
  14. package/dist/{command-output-D5z2_bcF.mjs → command-output-BWCj5Vh-.mjs} +1 -1
  15. package/dist/{config-BEq0Qw_a.mjs → config-0jCcMM0E.mjs} +10 -1
  16. package/dist/{dependency-state-r9UesA9a.mjs → dependency-state-DNN0yfx6.mjs} +1 -1
  17. package/dist/{deps-DP4eWqea.mjs → deps-CO-_7UOm.mjs} +2 -2
  18. package/dist/{device-Czh5kO8A.mjs → device-9r9xRYDa.mjs} +49 -11
  19. package/dist/{device-lease-CbEaIk7b.mjs → device-lease-B9LAXIUH.mjs} +55 -55
  20. package/dist/{device-pool-BBWLAr55.mjs → device-pool-BoezJd-c.mjs} +4 -4
  21. package/dist/{device-remote-powUHdbK.mjs → device-remote-C0_o-tJH.mjs} +254 -579
  22. package/dist/{doctor-CmqK1LcQ.mjs → doctor-LfDlbR-N.mjs} +20 -19
  23. package/dist/{error-diagnostics-xxWKNO3-.mjs → error-diagnostics-CCxjn31V.mjs} +7 -7
  24. package/dist/{gc-zCDpmdHU.mjs → gc-C4nQFcTX.mjs} +220 -282
  25. package/dist/{guide-DwmaD_Wa.mjs → guide-BPBlh9ML.mjs} +512 -73
  26. package/dist/{guide-status-CWvti2Lg.mjs → guide-status-i9ogHt4v.mjs} +2 -2
  27. package/dist/{idle--jn7pBNe.mjs → idle-S3tFZ53_.mjs} +7 -6
  28. package/dist/{in-use-CNIWU-r-.mjs → in-use-D9XYEgFD.mjs} +7 -7
  29. package/dist/{ios-CbdqTqOc.mjs → ios-CDzWL1mj.mjs} +302 -88
  30. package/dist/{ios-COGcGEcN.mjs → ios-CZWOHTTc.mjs} +24 -19
  31. package/dist/{ios-device-DNjPXBnb.mjs → ios-device-D9cLxVr5.mjs} +1 -1
  32. package/dist/{launch-verify-BhgkYAws.mjs → launch-verify-B2oR_kFN.mjs} +2 -2
  33. package/dist/logs-SzuYudOj.mjs +485 -0
  34. package/dist/merge-state-ytFQCeh4.mjs +262 -0
  35. package/dist/{metro-BWLOJ_Wr.mjs → metro-Dzo30hvJ.mjs} +1 -1
  36. package/dist/{named-ports-DiTfSz6p.mjs → named-ports-Dn1o61D9.mjs} +3 -3
  37. package/dist/{ownership-BfPNRf3-.mjs → ownership-B8d4kXBx.mjs} +49 -16
  38. package/dist/{ownership-D2xbLVoz.mjs → ownership-Dqnrjrio.mjs} +2 -2
  39. package/dist/{ports-CLSSFOuz.mjs → ports-Dp_QTwTC.mjs} +3 -3
  40. package/dist/{project-BXZzOABt.mjs → project-B8rbutVC.mjs} +4 -72
  41. package/dist/{reload-CymyF6Kk.mjs → reload-nocmx8KB.mjs} +9 -9
  42. package/dist/remote-cache-BRsRZru5.mjs +526 -0
  43. package/dist/{server-bare-DVbb7kXH.mjs → server-bare-Gn3ssSdK.mjs} +1 -1
  44. package/dist/{server-expo-BvOCeakp.mjs → server-expo-CeT1nIIk.mjs} +2 -2
  45. package/dist/server-expo-eWi9Coof.mjs +2 -0
  46. package/dist/{settings-DOugPlPz.mjs → settings-BlyDn2Oz.mjs} +14 -5
  47. package/dist/{settings-EWYNwe72.mjs → settings-bE-Gu3Ti.mjs} +23 -11
  48. package/dist/settings.schema.json +73 -1
  49. package/dist/{simslim-DZUxzsjq.mjs → simslim-COtEEP7x.mjs} +152 -96
  50. package/dist/{slot-launch-Dk4oTREM.mjs → slot-launch-DIACGEfH.mjs} +4 -4
  51. package/dist/{spawn-claims-CUleC2cM.mjs → spawn-claims-PT8aQpCa.mjs} +25 -2
  52. package/dist/{start-qWapeB4W.mjs → start-BFstVBlx.mjs} +1 -1
  53. package/dist/{start-RbmFPeZ7.mjs → start-BboE1HIS.mjs} +108 -17
  54. package/dist/{state-WGdIbi_d.mjs → state-DcDgzfu3.mjs} +15 -3
  55. package/dist/{stats-BAgJaLA4.mjs → stats-D8rUTPHd.mjs} +1 -1
  56. package/dist/{stats-DBYJ5bxL.mjs → stats-DiCtmluY.mjs} +4 -4
  57. package/dist/{status-Dr4fRkym.mjs → status-BUASYyy_.mjs} +92 -33
  58. package/dist/{status-Zp8kvexe.mjs → status-DI9Tjo7T.mjs} +255 -38
  59. package/dist/stim-desktop-D0xhpZt8.mjs +29 -0
  60. package/dist/stop-BI7QY76M.mjs +3 -0
  61. package/dist/{stop-DcEv5sk-.mjs → stop-Bn6v-GvS.mjs} +205 -37
  62. package/dist/supervisor-run.mjs +11 -11
  63. package/dist/{workspace-process-lock-BXA96myD.mjs → workspace-process-lock-BvvJTfo_.mjs} +10 -5
  64. package/dist/{worktree-DEG2o9F8.mjs → worktree-B5sTRskL.mjs} +1 -1
  65. package/dist/{worktree-Bd4dRvx7.mjs → worktree-ChDL5fO1.mjs} +17 -16
  66. package/dist/{worktree-BlizKDpZ.mjs → worktree-DeBQSVtR.mjs} +3 -1
  67. package/dist/{xcode-B2tBkf0m.mjs → xcode-BzplpQzc.mjs} +7 -7
  68. package/package.json +5 -5
  69. package/dist/budget-nDCEwtJv.mjs +0 -620
  70. package/dist/logs-MARIy6m9.mjs +0 -209
  71. package/dist/server-expo-DBVTdult.mjs +0 -2
  72. package/dist/stop-DI4BG4Os.mjs +0 -3
@@ -1,5 +1,5 @@
1
- import { B as parseDeviceSlotKey, D as process_identity_exports, R as deviceSlotKey } from "./config-BEq0Qw_a.mjs";
2
- import { E as supervisorPidFile, N as workspaceStateFile, _ as withWorkspaceStateLock, f as clearWorkspaceStateKey, g as updateWorkspaceState, m as readWorkspaceState } from "./metro-BWLOJ_Wr.mjs";
1
+ import { O as process_identity_exports, V as parseDeviceSlotKey, z as deviceSlotKey } from "./config-0jCcMM0E.mjs";
2
+ import { E as supervisorPidFile, N as workspaceStateFile, _ as withWorkspaceStateLock, f as clearWorkspaceStateKey, g as updateWorkspaceState, m as readWorkspaceState } from "./metro-Dzo30hvJ.mjs";
3
3
  import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
4
4
  import { dirname } from "node:path";
5
5
  //#region src/supervisor/state.ts
@@ -68,6 +68,18 @@ function writeWorkspaceLaunch(root, platform, record, slot = "default") {
68
68
  };
69
69
  });
70
70
  }
71
+ function clearWorkspaceLaunches(root, slot) {
72
+ updateWorkspaceState(root, (state) => {
73
+ if (!state.launches || typeof state.launches !== "object") return state;
74
+ const launches = { ...state.launches };
75
+ delete launches[deviceSlotKey("ios", slot)];
76
+ delete launches[deviceSlotKey("android", slot)];
77
+ return {
78
+ ...state,
79
+ launches
80
+ };
81
+ });
82
+ }
71
83
  function readRemoteSession(root) {
72
84
  const record = readWorkspaceState(root)?.remoteDevice;
73
85
  if (!record || typeof record !== "object") return null;
@@ -130,4 +142,4 @@ function readPidFile(root) {
130
142
  }
131
143
  }
132
144
  //#endregion
133
- export { clearRemoteSession as a, readPidFile as c, readWorkspaceLaunches as d, writePidFile as f, clearManagedMetroTunnel as i, readRemoteSession as l, MODE_EXPO as n, clearWorkspaceSupervisor as o, writeWorkspaceLaunch as p, clearExpoMetroTunnel as r, readMetroTunnel as s, MODE_BARE as t, readRemoteSessionId as u };
145
+ export { clearRemoteSession as a, readMetroTunnel as c, readRemoteSessionId as d, readWorkspaceLaunches as f, clearManagedMetroTunnel as i, readPidFile as l, writeWorkspaceLaunch as m, MODE_EXPO as n, clearWorkspaceLaunches as o, writePidFile as p, clearExpoMetroTunnel as r, clearWorkspaceSupervisor as s, MODE_BARE as t, readRemoteSession as u };
@@ -1,4 +1,4 @@
1
- import { T as withConfigLock, u as getConfigDir } from "./config-BEq0Qw_a.mjs";
1
+ import { E as withConfigLock, d as getConfigDir } from "./config-0jCcMM0E.mjs";
2
2
  import { readFileSync, realpathSync, renameSync, rmSync, writeFileSync } from "node:fs";
3
3
  import { basename, dirname, join, relative, resolve } from "node:path";
4
4
  const PLATFORMS = ["ios", "android"];
@@ -1,7 +1,7 @@
1
- import { s as gitCommonDir, y as repoRoot } from "./worktree-BlizKDpZ.mjs";
2
- import { o as findProjectRoot } from "./project-BXZzOABt.mjs";
3
- import { o as formatLongDuration } from "./command-output-D5z2_bcF.mjs";
4
- import { a as statsProjectKey, r as readStats } from "./stats-BAgJaLA4.mjs";
1
+ import { s as gitCommonDir, y as repoRoot } from "./worktree-DeBQSVtR.mjs";
2
+ import { i as findProjectRoot } from "./project-B8rbutVC.mjs";
3
+ import { o as formatLongDuration } from "./command-output-BWCj5Vh-.mjs";
4
+ import { a as statsProjectKey, r as readStats } from "./stats-D8rUTPHd.mjs";
5
5
  import chalk from "chalk";
6
6
  //#region src/commands/stats.ts
7
7
  const PLATFORMS = ["ios", "android"];
@@ -1,5 +1,5 @@
1
- import { H as projectDeviceSlots } from "./config-BEq0Qw_a.mjs";
2
- import { a as formatElapsed, o as formatLongDuration, r as clockTime, u as plural } from "./command-output-D5z2_bcF.mjs";
1
+ import { U as projectDeviceSlots, z as deviceSlotKey } from "./config-0jCcMM0E.mjs";
2
+ import { a as formatElapsed, o as formatLongDuration, r as clockTime, u as plural } from "./command-output-BWCj5Vh-.mjs";
3
3
  import { sep } from "path";
4
4
  //#region src/status.ts
5
5
  const IOS_SIM_MB = 1500;
@@ -22,7 +22,27 @@ function poolLine({ platform, parked, max }) {
22
22
  const what = plural(parked, `parked ${platform === "ios" ? "iOS simulator" : "Android emulator"}`);
23
23
  return max > 0 ? `pool: ${what} (max ${max})` : `pool: ${what} (parking off; gc --delete removes them)`;
24
24
  }
25
- function environmentState(project, { simsByUdid = {}, metro = null, worktrees = [], simsAvailable = true, androidRuntime = null, androidRuntimes = {}, supervisor = null, logs = null, remote = null, idleStop = null } = {}) {
25
+ const RECENT_LAUNCH_MS = 18e5;
26
+ function avdExpected({ slot, serial, launches, leasedIds, running, now }) {
27
+ if (serial && leasedIds.has(serial)) return true;
28
+ const launch = launches[deviceSlotKey("android", slot)];
29
+ if (!launch) return false;
30
+ return running || now - Date.parse(launch.launchedAt) < 18e5;
31
+ }
32
+ function androidStatus(android, androidRuntime, androidDeviceProfile) {
33
+ if (!android) return null;
34
+ return {
35
+ name: android.avdName ?? android.serial,
36
+ owned: Boolean(android.owned),
37
+ physical: Boolean(android.serial && !android.avdName),
38
+ ...androidRuntime ? {
39
+ serial: androidRuntime.serial,
40
+ state: androidRuntime.state
41
+ } : {},
42
+ ...androidDeviceProfile ? { deviceProfile: androidDeviceProfile } : {}
43
+ };
44
+ }
45
+ function environmentState(project, { simsByUdid = {}, metro = null, worktrees = [], simsAvailable = true, androidRuntime = null, androidRuntimes = {}, androidDeviceProfile = null, androidDeviceProfiles = {}, supervisor = null, logs = null, remote = null, idleStop = null, launches = {}, leasedIds = /* @__PURE__ */ new Set(), now = Date.now(), slot = "default", workspaceRunning = false } = {}) {
26
46
  const ios = project.platforms?.ios;
27
47
  const android = project.platforms?.android;
28
48
  const sim = ios ? simsByUdid[ios.deviceUdid] : null;
@@ -34,20 +54,35 @@ function environmentState(project, { simsByUdid = {}, metro = null, worktrees =
34
54
  if (simBooted) memoryMb += IOS_SIM_MB;
35
55
  if (androidDetected) memoryMb += ANDROID_EMULATOR_MB;
36
56
  if (metroRunning) memoryMb += METRO_MB;
37
- const warnings = [];
38
- if (metro?.notOurs) warnings.push(`port ${project.metroPort}: ${metro.notOurs}`);
39
- if (ios && !sim && simsAvailable) warnings.push(`recorded sim ${ios.deviceUdid} no longer exists`);
40
- if (simBooted && project.metroPort && !metroRunning) warnings.push("simulator is booted with no Metro serving it");
57
+ const running = workspaceRunning || metroRunning || supervisor?.status === "ours";
58
+ const issues = [];
59
+ const add = (code, message, remedy, severity = "warning") => issues.push({
60
+ code,
61
+ severity,
62
+ message,
63
+ remedy,
64
+ workspace: project.__path,
65
+ ...slot === "default" ? {} : { slot }
66
+ });
67
+ const slotFlag = slot === "default" ? "" : ` --slot ${slot}`;
68
+ if (metro?.notOurs && slot === "default") add("port-not-ours", `port ${project.metroPort}: ${metro.notOurs}`, "stim guide errors teardown", "error");
69
+ if (ios && !sim && simsAvailable) add("sim-missing", `recorded sim ${ios.deviceUdid} no longer exists`, `stim ios${slotFlag}`);
70
+ if (simBooted && project.metroPort && !metroRunning) add("sim-without-metro", "simulator is booted with no Metro serving it", "stim start");
41
71
  if (androidRuntime && android?.avdName) {
42
72
  const recordedSerial = android.consolePort ? `emulator-${android.consolePort}` : android.serial;
43
- if (androidRuntime.serial && recordedSerial && androidRuntime.serial !== recordedSerial) warnings.push(`owned AVD ${android.avdName} changed serial (${recordedSerial} -> ${androidRuntime.serial}); rerun your \`stim android\` command in this workspace to restore Metro forwarding, then reopen agent-device on ${androidRuntime.serial}`);
44
- if (androidRuntime.state === "missing") warnings.push(`recorded AVD ${android.avdName} no longer exists`);
45
- if (androidRuntime.state === "not-detected") warnings.push(`owned AVD ${android.avdName} is not detected by adb; rerun your \`stim android\` command in this workspace to reconnect`);
46
- if (androidRuntime.error) warnings.push(`could not check owned AVD ${android.avdName}: ${androidRuntime.error}`);
73
+ const expected = avdExpected({
74
+ slot,
75
+ serial: recordedSerial,
76
+ launches,
77
+ leasedIds,
78
+ running,
79
+ now
80
+ });
81
+ for (const [code, message] of androidIssues(android, recordedSerial, androidRuntime, expected)) add(code, message, code === "avd-unchecked" ? "stim doctor" : `stim android${slotFlag}`);
47
82
  }
48
- if (supervisor && supervisor.alive === false) warnings.push(`stale supervisor record for ${project.__path}`);
83
+ if (supervisor?.status === "unverified") add("supervisor-unverified", `supervisor pid ${supervisor.pid} could not be verified${supervisor.reason ? `: ${supervisor.reason}` : ""}`, "stim guide errors teardown", "error");
49
84
  const slots = [];
50
- for (const { slot, platforms } of projectDeviceSlots(project).slice(1)) {
85
+ for (const { slot: name, platforms } of projectDeviceSlots(project).slice(1)) {
51
86
  const deviceState = environmentState({
52
87
  ...project,
53
88
  platforms,
@@ -56,45 +91,44 @@ function environmentState(project, { simsByUdid = {}, metro = null, worktrees =
56
91
  simsByUdid,
57
92
  simsAvailable,
58
93
  metro,
59
- androidRuntime: androidRuntimes[slot]
94
+ androidRuntime: androidRuntimes[name],
95
+ androidDeviceProfile: androidDeviceProfiles[name],
96
+ launches,
97
+ leasedIds,
98
+ now,
99
+ slot: name,
100
+ workspaceRunning: running
60
101
  });
61
102
  slots.push({
62
- slot,
103
+ slot: name,
63
104
  ios: deviceState.ios,
64
105
  android: deviceState.android
65
106
  });
66
107
  memoryMb += deviceState.memoryMb - (metroRunning ? METRO_MB : 0);
67
108
  live ||= deviceState.live;
68
- warnings.push(...deviceState.warnings.map((warning) => `${slot}: ${warning}`));
109
+ issues.push(...deviceState.issues);
69
110
  }
70
111
  return {
71
112
  path: project.__path,
72
113
  ...slots.length ? { slots } : {},
73
114
  live,
74
115
  memoryMb,
75
- warnings,
116
+ warnings: issues.map(issueText),
117
+ issues,
76
118
  ios: ios ? {
77
119
  name: sim?.name ?? null,
78
120
  udid: ios.deviceUdid,
79
121
  owned: Boolean(ios.owned),
80
122
  state: sim?.state ?? (simsAvailable ? "missing" : "unknown")
81
123
  } : null,
82
- android: android ? {
83
- name: android.avdName ?? android.serial,
84
- owned: Boolean(android.owned),
85
- physical: Boolean(android.serial && !android.avdName),
86
- ...androidRuntime ? {
87
- serial: androidRuntime.serial,
88
- state: androidRuntime.state
89
- } : {}
90
- } : null,
124
+ android: androidStatus(android, androidRuntime, androidDeviceProfile),
91
125
  metro: project.metroPort ? {
92
126
  port: project.metroPort,
93
127
  running: metroRunning,
94
128
  pid: metro?.metro?.pid ?? null,
95
129
  ...idleStop && !metroRunning ? { idleStop } : {}
96
130
  } : null,
97
- supervisor: supervisor ? {
131
+ supervisor: supervisor && supervisor.status !== "stale" ? {
98
132
  pid: supervisor.pid ?? null,
99
133
  mode: supervisor.mode ?? null,
100
134
  startedAt: supervisor.startedAt ?? null,
@@ -104,10 +138,21 @@ function environmentState(project, { simsByUdid = {}, metro = null, worktrees =
104
138
  dir: logs.dir,
105
139
  errorsSinceMarker: logs.errorsSinceMarker ?? 0
106
140
  } : null,
107
- worktree: worktrees.find((w) => w.path === project.__path) ?? null,
141
+ worktree: enclosingWorktree(worktrees, project.__path),
108
142
  remoteDevices: remote ? [remote] : []
109
143
  };
110
144
  }
145
+ function androidIssues(android, recordedSerial, runtime, expected) {
146
+ const issues = [];
147
+ if (runtime.serial && recordedSerial && runtime.serial !== recordedSerial) issues.push(["avd-serial-changed", `owned AVD ${android.avdName} changed serial (${recordedSerial} -> ${runtime.serial}), so Metro forwarding is lost; rerun with the same build options, then reopen agent-device on ${runtime.serial}`]);
148
+ if (runtime.state === "missing") issues.push(["avd-missing", `recorded AVD ${android.avdName} no longer exists`]);
149
+ if (runtime.state === "not-detected" && expected) issues.push(["avd-not-detected", `owned AVD ${android.avdName} is not detected by adb`]);
150
+ if (runtime.error) issues.push(["avd-unchecked", `could not check owned AVD ${android.avdName}: ${runtime.error}`]);
151
+ return issues;
152
+ }
153
+ function issueText(issue) {
154
+ return `${issue.slot ? `${issue.slot}: ` : ""}${issue.message}; run \`${issue.remedy}\``;
155
+ }
111
156
  function activityLabel(activity, now) {
112
157
  if (!activity) return null;
113
158
  if (activity.state === "driven") {
@@ -172,11 +217,25 @@ function diskLine(volumes) {
172
217
  function tightVolumes(volumes) {
173
218
  return (volumes || []).filter((v) => v && diskIsTight(v.disk));
174
219
  }
220
+ function contains(dir, path) {
221
+ return path === dir || path.startsWith(dir.endsWith(sep) ? dir : dir + sep);
222
+ }
223
+ function enclosingWorktree(worktrees, path) {
224
+ return worktrees.filter((w) => contains(w.path, path)).toSorted((a, b) => b.path.length - a.path.length)[0] ?? null;
225
+ }
226
+ /** One line for a worktree's git summary, such as `2 changed, 1 untracked, ahead 3, merged into origin/main`. */
227
+ function gitSummaryText(git) {
228
+ const parts = [
229
+ git.changed ? `${git.changed} changed` : "",
230
+ git.untracked ? `${git.untracked} untracked` : "",
231
+ git.ahead ? `ahead ${git.ahead}` : "",
232
+ git.behind ? `behind ${git.behind}` : "",
233
+ git.mergedInto ? `merged into ${git.mergedInto}` : ""
234
+ ].filter(Boolean);
235
+ return parts.length ? parts.join(", ") : "clean";
236
+ }
175
237
  function unprovisionedWorktrees(worktrees, projectPaths) {
176
- return worktrees.filter((w) => {
177
- const inside = w.path.endsWith(sep) ? w.path : w.path + sep;
178
- return !projectPaths.some((p) => p === w.path || p.startsWith(inside));
179
- });
238
+ return worktrees.filter((w) => !projectPaths.some((p) => contains(w.path, p)));
180
239
  }
181
240
  function deviceLeaseStates(entries, { root, now }) {
182
241
  return entries.map((entry) => {
@@ -213,4 +272,4 @@ function deviceLeaseLines(states, now) {
213
272
  return lines;
214
273
  }
215
274
  //#endregion
216
- export { diskLine as a, parseDfFree as c, remoteDeviceState as d, tightVolumes as f, deviceLeaseStates as i, poolLine as l, capacity as n, environmentState as o, unprovisionedWorktrees as p, deviceLeaseLines as r, formatSpace as s, activityLabel as t, remoteDeviceLine as u };
275
+ export { deviceLeaseStates as a, formatSpace as c, poolLine as d, remoteDeviceLine as f, unprovisionedWorktrees as h, deviceLeaseLines as i, gitSummaryText as l, tightVolumes as m, activityLabel as n, diskLine as o, remoteDeviceState as p, capacity as r, environmentState as s, RECENT_LAUNCH_MS as t, parseDfFree as u };