@madarco/agentbox 0.24.0 → 0.24.2

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 (60) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/{_cloud-attach-T6GPR6LJ.js → _cloud-attach-D5OC7DCC.js} +3 -3
  3. package/dist/{chunk-RYQLFKCP.js → chunk-24PXPJI3.js} +8 -8
  4. package/dist/{chunk-NACA6AM7.js → chunk-3253DDXI.js} +3 -3
  5. package/dist/{chunk-I654PBHA.js → chunk-5WF7PAH2.js} +3 -3
  6. package/dist/{chunk-I654PBHA.js.map → chunk-5WF7PAH2.js.map} +1 -1
  7. package/dist/{chunk-K2EDQGZP.js → chunk-QMA3DB5L.js} +2 -2
  8. package/dist/{chunk-6U2S6QWD.js → chunk-SS6ZEKLL.js} +2 -2
  9. package/dist/{dist-B7TNWGVG.js → dist-2JWYYJZR.js} +2 -2
  10. package/dist/{dist-KYV3LEHG.js → dist-3NFY6M53.js} +4 -4
  11. package/dist/{dist-Z7KEPQC7.js → dist-72EYR5DW.js} +4 -4
  12. package/dist/{dist-3KIJ2KQ2.js → dist-FWB3MIQ5.js} +3 -3
  13. package/dist/{dist-7OUOHQPA.js → dist-TK3STVUP.js} +3 -3
  14. package/dist/{dist-PHYCFYKH.js → dist-UWUTNRCK.js} +3 -3
  15. package/dist/index.js +89 -18
  16. package/dist/index.js.map +1 -1
  17. package/package.json +7 -7
  18. package/runtime/_shared/ctl.cjs +4 -4
  19. package/runtime/digitalocean/ctl.cjs +4 -4
  20. package/runtime/docker/packages/ctl/dist/bin.cjs +4 -4
  21. package/runtime/e2b/ctl.cjs +4 -4
  22. package/runtime/hetzner/ctl.cjs +4 -4
  23. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  24. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  25. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  26. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  27. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  28. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  29. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  30. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  31. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  32. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vxaujy._.js +2 -2
  33. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nepkp-._.js +2 -2
  34. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  35. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  36. package/runtime/hub/apps/hub/{chunk-FGBXEXUV.js → chunk-IRIK4DQF.js} +9 -5
  37. package/runtime/hub/apps/hub/{chunk-YVELHPNY.js → chunk-OJAHNFNV.js} +1 -1
  38. package/runtime/hub/apps/hub/{dist-4SXAJBOC.js → dist-6AEQJL7W.js} +2 -2
  39. package/runtime/hub/apps/hub/{dist-YM5J25H6.js → dist-7GTRUGLC.js} +1 -1
  40. package/runtime/hub/apps/hub/{dist-33ZNVTC6.js → dist-DLPVQMKD.js} +2 -2
  41. package/runtime/hub/apps/hub/{dist-XULFTIMT.js → dist-HHHK5LRX.js} +2 -2
  42. package/runtime/hub/apps/hub/{dist-UJVIROA4.js → dist-PRUR2E5L.js} +2 -2
  43. package/runtime/hub/apps/hub/{dist-EPJFN2J3.js → dist-PWBKGUDG.js} +2 -2
  44. package/runtime/hub/apps/hub/server.js +9 -9
  45. package/runtime/relay/bin.cjs +7 -3
  46. package/runtime/vercel/ctl.cjs +4 -4
  47. /package/dist/{_cloud-attach-T6GPR6LJ.js.map → _cloud-attach-D5OC7DCC.js.map} +0 -0
  48. /package/dist/{chunk-RYQLFKCP.js.map → chunk-24PXPJI3.js.map} +0 -0
  49. /package/dist/{chunk-NACA6AM7.js.map → chunk-3253DDXI.js.map} +0 -0
  50. /package/dist/{chunk-K2EDQGZP.js.map → chunk-QMA3DB5L.js.map} +0 -0
  51. /package/dist/{chunk-6U2S6QWD.js.map → chunk-SS6ZEKLL.js.map} +0 -0
  52. /package/dist/{dist-B7TNWGVG.js.map → dist-2JWYYJZR.js.map} +0 -0
  53. /package/dist/{dist-KYV3LEHG.js.map → dist-3NFY6M53.js.map} +0 -0
  54. /package/dist/{dist-Z7KEPQC7.js.map → dist-72EYR5DW.js.map} +0 -0
  55. /package/dist/{dist-3KIJ2KQ2.js.map → dist-FWB3MIQ5.js.map} +0 -0
  56. /package/dist/{dist-7OUOHQPA.js.map → dist-TK3STVUP.js.map} +0 -0
  57. /package/dist/{dist-PHYCFYKH.js.map → dist-UWUTNRCK.js.map} +0 -0
  58. /package/runtime/hub/apps/hub/.next/static/{XtIjHGqvY4mQsOY2-m1Jy → qi16fW9z3QBAzMjpOdRMQ}/_buildManifest.js +0 -0
  59. /package/runtime/hub/apps/hub/.next/static/{XtIjHGqvY4mQsOY2-m1Jy → qi16fW9z3QBAzMjpOdRMQ}/_clientMiddlewareManifest.js +0 -0
  60. /package/runtime/hub/apps/hub/.next/static/{XtIjHGqvY4mQsOY2-m1Jy → qi16fW9z3QBAzMjpOdRMQ}/_ssgManifest.js +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  renderInnerCommand,
9
9
  resolveCloudCheckpoint,
10
10
  writeCloudCheckpointManifest
11
- } from "./chunk-6U2S6QWD.js";
11
+ } from "./chunk-SS6ZEKLL.js";
12
12
  import {
13
13
  UserFacingError,
14
14
  claudeInstallFingerprint,
@@ -1665,4 +1665,4 @@ export {
1665
1665
  vercelProvider,
1666
1666
  providerModule
1667
1667
  };
1668
- //# sourceMappingURL=chunk-K2EDQGZP.js.map
1668
+ //# sourceMappingURL=chunk-QMA3DB5L.js.map
@@ -22,7 +22,7 @@ import {
22
22
  readBoxStatus,
23
23
  registerBoxWithRelay,
24
24
  syncClaudeCredentials
25
- } from "./chunk-I654PBHA.js";
25
+ } from "./chunk-5WF7PAH2.js";
26
26
  import {
27
27
  hashProjectPath,
28
28
  loadEffectiveConfig,
@@ -3072,4 +3072,4 @@ export {
3072
3072
  renderInnerCommand,
3073
3073
  openWebAppOnVncScreen
3074
3074
  };
3075
- //# sourceMappingURL=chunk-6U2S6QWD.js.map
3075
+ //# sourceMappingURL=chunk-SS6ZEKLL.js.map
@@ -225,7 +225,7 @@ import {
225
225
  vscodeServerVolumeName,
226
226
  waitForTmuxPaneContent,
227
227
  warmUpClaudeCredentials
228
- } from "./chunk-I654PBHA.js";
228
+ } from "./chunk-5WF7PAH2.js";
229
229
  import "./chunk-UIRBYL4G.js";
230
230
  import {
231
231
  AmbiguousBoxError,
@@ -550,4 +550,4 @@ export {
550
550
  warmUpClaudeCredentials,
551
551
  writePreparedDockerState
552
552
  };
553
- //# sourceMappingURL=dist-B7TNWGVG.js.map
553
+ //# sourceMappingURL=dist-2JWYYJZR.js.map
@@ -46,9 +46,9 @@ import {
46
46
  waitForSsh,
47
47
  withHetznerRetry,
48
48
  writePreparedState
49
- } from "./chunk-NACA6AM7.js";
50
- import "./chunk-6U2S6QWD.js";
51
- import "./chunk-I654PBHA.js";
49
+ } from "./chunk-3253DDXI.js";
50
+ import "./chunk-SS6ZEKLL.js";
51
+ import "./chunk-5WF7PAH2.js";
52
52
  import "./chunk-UIRBYL4G.js";
53
53
  import {
54
54
  mintSshKey
@@ -104,4 +104,4 @@ export {
104
104
  withHetznerRetry,
105
105
  writePreparedState
106
106
  };
107
- //# sourceMappingURL=dist-KYV3LEHG.js.map
107
+ //# sourceMappingURL=dist-3NFY6M53.js.map
@@ -34,9 +34,9 @@ import {
34
34
  vercelBackend,
35
35
  vercelProvider,
36
36
  writePreparedState
37
- } from "./chunk-K2EDQGZP.js";
38
- import "./chunk-6U2S6QWD.js";
39
- import "./chunk-I654PBHA.js";
37
+ } from "./chunk-QMA3DB5L.js";
38
+ import "./chunk-SS6ZEKLL.js";
39
+ import "./chunk-5WF7PAH2.js";
40
40
  import "./chunk-UIRBYL4G.js";
41
41
  import "./chunk-DEDTPG2D.js";
42
42
  import "./chunk-G3H2L3O2.js";
@@ -77,4 +77,4 @@ export {
77
77
  vercelProvider,
78
78
  writePreparedState
79
79
  };
80
- //# sourceMappingURL=dist-Z7KEPQC7.js.map
80
+ //# sourceMappingURL=dist-72EYR5DW.js.map
@@ -32,11 +32,11 @@ import {
32
32
  } from "./chunk-WLHJZPFJ.js";
33
33
  import {
34
34
  createCloudProvider
35
- } from "./chunk-6U2S6QWD.js";
35
+ } from "./chunk-SS6ZEKLL.js";
36
36
  import {
37
37
  detectPortless,
38
38
  portlessDoctorRow
39
- } from "./chunk-I654PBHA.js";
39
+ } from "./chunk-5WF7PAH2.js";
40
40
  import "./chunk-UIRBYL4G.js";
41
41
  import {
42
42
  UserFacingError,
@@ -1434,4 +1434,4 @@ export {
1434
1434
  withDigitalOceanRetry,
1435
1435
  writePreparedState
1436
1436
  };
1437
- //# sourceMappingURL=dist-3KIJ2KQ2.js.map
1437
+ //# sourceMappingURL=dist-FWB3MIQ5.js.map
@@ -30,8 +30,8 @@ import {
30
30
  renderInnerCommand,
31
31
  resolveCloudCheckpoint,
32
32
  writeCloudCheckpointManifest
33
- } from "./chunk-6U2S6QWD.js";
34
- import "./chunk-I654PBHA.js";
33
+ } from "./chunk-SS6ZEKLL.js";
34
+ import "./chunk-5WF7PAH2.js";
35
35
  import "./chunk-UIRBYL4G.js";
36
36
  import {
37
37
  claudeInstallFingerprint,
@@ -795,4 +795,4 @@ export {
795
795
  updatePreparedState,
796
796
  writePreparedState
797
797
  };
798
- //# sourceMappingURL=dist-7OUOHQPA.js.map
798
+ //# sourceMappingURL=dist-TK3STVUP.js.map
@@ -17,8 +17,8 @@ import {
17
17
  } from "./chunk-5KHEH47T.js";
18
18
  import {
19
19
  createCloudProvider
20
- } from "./chunk-6U2S6QWD.js";
21
- import "./chunk-I654PBHA.js";
20
+ } from "./chunk-SS6ZEKLL.js";
21
+ import "./chunk-5WF7PAH2.js";
22
22
  import "./chunk-UIRBYL4G.js";
23
23
  import {
24
24
  claudeInstallFingerprint,
@@ -319,4 +319,4 @@ export {
319
319
  resolveDockerfileContext,
320
320
  setDaytonaCredentials
321
321
  };
322
- //# sourceMappingURL=dist-PHYCFYKH.js.map
322
+ //# sourceMappingURL=dist-UWUTNRCK.js.map
package/dist/index.js CHANGED
@@ -61,7 +61,7 @@ import {
61
61
  subscribePrompts,
62
62
  uploadImageFileToBox,
63
63
  withFirewallRepair
64
- } from "./chunk-RYQLFKCP.js";
64
+ } from "./chunk-24PXPJI3.js";
65
65
  import {
66
66
  daytonaBackend,
67
67
  ensureDaytonaCredentials,
@@ -81,7 +81,7 @@ import {
81
81
  readPreparedState,
82
82
  secretsPath as secretsPath2,
83
83
  syncFirewallSource
84
- } from "./chunk-NACA6AM7.js";
84
+ } from "./chunk-3253DDXI.js";
85
85
  import {
86
86
  createGitDeployment,
87
87
  createGitProject,
@@ -100,7 +100,7 @@ import {
100
100
  resolveVercelApiAuth,
101
101
  secretsPath as secretsPath3,
102
102
  upsertProjectEnv
103
- } from "./chunk-K2EDQGZP.js";
103
+ } from "./chunk-QMA3DB5L.js";
104
104
  import {
105
105
  agentSpecsForCloud,
106
106
  baseFreshnessFromFingerprints,
@@ -113,7 +113,7 @@ import {
113
113
  probeCloudCheckpoint,
114
114
  resolveCloudCheckpoint,
115
115
  seedAgentVolumesIfFresh
116
- } from "./chunk-6U2S6QWD.js";
116
+ } from "./chunk-SS6ZEKLL.js";
117
117
  import {
118
118
  ALL_CONNECTORS,
119
119
  BOX_STATUS_EVENT,
@@ -264,7 +264,7 @@ import {
264
264
  waitForTmuxPaneContent,
265
265
  warmUpClaudeCredentials,
266
266
  writeJob
267
- } from "./chunk-I654PBHA.js";
267
+ } from "./chunk-5WF7PAH2.js";
268
268
  import {
269
269
  BUILT_IN_DEFAULTS,
270
270
  CLOUD_PROVIDER_NAMES,
@@ -376,8 +376,8 @@ import {
376
376
  } from "./chunk-WJFZJZIM.js";
377
377
 
378
378
  // src/version.ts
379
- var AGENTBOX_VERSION = true ? "0.24.0" : "0.0.0-dev";
380
- var AGENTBOX_COMMIT = true ? "163dbbd2f" : "dev";
379
+ var AGENTBOX_VERSION = true ? "0.24.2" : "0.0.0-dev";
380
+ var AGENTBOX_COMMIT = true ? "92f77253c" : "dev";
381
381
 
382
382
  // src/index.ts
383
383
  import { existsSync as _existsSync } from "fs";
@@ -1172,11 +1172,13 @@ function readUpdateState() {
1172
1172
  const state = { version: STATE_VERSION };
1173
1173
  if (typeof parsed.lastRunVersion === "string") state.lastRunVersion = parsed.lastRunVersion;
1174
1174
  if (typeof parsed.traySha === "string") state.traySha = parsed.traySha;
1175
+ if (typeof parsed.trayDeclinedSha === "string") state.trayDeclinedSha = parsed.trayDeclinedSha;
1175
1176
  if (parsed.remoteCheck !== void 0 && typeof parsed.remoteCheck === "object" && typeof parsed.remoteCheck.checkedAt === "string") {
1176
1177
  state.remoteCheck = {
1177
1178
  checkedAt: parsed.remoteCheck.checkedAt,
1178
1179
  ...typeof parsed.remoteCheck.npmLatest === "string" ? { npmLatest: parsed.remoteCheck.npmLatest } : {},
1179
- ...typeof parsed.remoteCheck.trayLatestSha === "string" ? { trayLatestSha: parsed.remoteCheck.trayLatestSha } : {}
1180
+ ...typeof parsed.remoteCheck.trayLatestSha === "string" ? { trayLatestSha: parsed.remoteCheck.trayLatestSha } : {},
1181
+ ...typeof parsed.remoteCheck.trayLatestVersion === "string" ? { trayLatestVersion: parsed.remoteCheck.trayLatestVersion } : {}
1180
1182
  };
1181
1183
  }
1182
1184
  return state;
@@ -1282,6 +1284,27 @@ function parseSidecarSha(body) {
1282
1284
  const first = body.trim().split(/\s+/)[0]?.toLowerCase();
1283
1285
  return first && /^[0-9a-f]{64}$/.test(first) ? first : void 0;
1284
1286
  }
1287
+ async function fetchTrayLatestVersion(tag2 = DEFAULT_TAG) {
1288
+ try {
1289
+ const { stdout } = await execa("curl", [
1290
+ "-fsSL",
1291
+ "--max-time",
1292
+ "5",
1293
+ `${RELEASE_BASE}/${tag2}/version.json`
1294
+ ]);
1295
+ return parseVersionManifest(stdout);
1296
+ } catch {
1297
+ return void 0;
1298
+ }
1299
+ }
1300
+ function parseVersionManifest(body) {
1301
+ try {
1302
+ const parsed = JSON.parse(body);
1303
+ return typeof parsed.version === "string" && parsed.version !== "" ? parsed.version : void 0;
1304
+ } catch {
1305
+ return void 0;
1306
+ }
1307
+ }
1285
1308
  function decideTrayUpdate(input) {
1286
1309
  if (!input.installed) return { update: false, reason: "not-installed" };
1287
1310
  if (input.latestSha === void 0) return { update: false, reason: "no-latest-sha" };
@@ -1289,6 +1312,14 @@ function decideTrayUpdate(input) {
1289
1312
  if (input.stampedSha !== input.latestSha) return { update: true, reason: "mismatch" };
1290
1313
  return { update: false, reason: "up-to-date" };
1291
1314
  }
1315
+ function shouldPromptTrayUpdate(input) {
1316
+ if (input.declinedSha !== void 0 && input.declinedSha === input.latestSha) return false;
1317
+ return decideTrayUpdate({
1318
+ installed: input.installed,
1319
+ stampedSha: input.stampedSha,
1320
+ latestSha: input.latestSha
1321
+ }).update;
1322
+ }
1292
1323
  async function trayRunning() {
1293
1324
  return await execa("pgrep", ["-x", APP_NAME]).catch(() => null) !== null;
1294
1325
  }
@@ -4064,7 +4095,7 @@ async function renderDocker(status) {
4064
4095
  }
4065
4096
  async function daytonaStatus() {
4066
4097
  try {
4067
- const mod = await import("./dist-PHYCFYKH.js");
4098
+ const mod = await import("./dist-UWUTNRCK.js");
4068
4099
  return await mod.getDaytonaStatus();
4069
4100
  } catch (err) {
4070
4101
  return {
@@ -4075,7 +4106,7 @@ async function daytonaStatus() {
4075
4106
  }
4076
4107
  async function e2bStatus() {
4077
4108
  try {
4078
- const mod = await import("./dist-7OUOHQPA.js");
4109
+ const mod = await import("./dist-TK3STVUP.js");
4079
4110
  const cred = mod.readE2bCredStatus();
4080
4111
  if (cred.auth === "none") {
4081
4112
  return { configured: false, reason: "not configured \u2014 run `agentbox e2b login`" };
@@ -9336,7 +9367,7 @@ var createCommand = new Command14("create").description(
9336
9367
  }
9337
9368
  outro7("done");
9338
9369
  if (attachClaudeAfter) {
9339
- const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-T6GPR6LJ.js");
9370
+ const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-D5OC7DCC.js");
9340
9371
  await cloudAgentAttach2({
9341
9372
  box: result.record,
9342
9373
  binary: "claude",
@@ -18119,6 +18150,17 @@ async function fetchNpmLatest() {
18119
18150
  return void 0;
18120
18151
  }
18121
18152
  }
18153
+ function mergeRemoteCheck(fetched, prev) {
18154
+ const npmLatest = fetched.npmLatest ?? prev?.npmLatest;
18155
+ const trayLatestSha = fetched.trayLatestSha ?? prev?.trayLatestSha;
18156
+ const shaMoved = fetched.trayLatestSha !== void 0 && fetched.trayLatestSha !== prev?.trayLatestSha;
18157
+ const trayLatestVersion = fetched.trayLatestVersion ?? (shaMoved ? void 0 : prev?.trayLatestVersion);
18158
+ return {
18159
+ ...npmLatest !== void 0 ? { npmLatest } : {},
18160
+ ...trayLatestSha !== void 0 ? { trayLatestSha } : {},
18161
+ ...trayLatestVersion !== void 0 ? { trayLatestVersion } : {}
18162
+ };
18163
+ }
18122
18164
  function maybeStartRemoteCheck() {
18123
18165
  const state = readUpdateState();
18124
18166
  if (remoteCheckFresh(state)) return null;
@@ -18129,20 +18171,21 @@ function maybeStartRemoteCheck() {
18129
18171
  const run = async () => {
18130
18172
  let npmLatest;
18131
18173
  let trayLatestSha;
18174
+ let trayLatestVersion;
18132
18175
  if (await updateCheckEnabled()) {
18133
- [npmLatest, trayLatestSha] = await Promise.all([
18176
+ [npmLatest, trayLatestSha, trayLatestVersion] = await Promise.all([
18134
18177
  nudgeEligible(method, AGENTBOX_VERSION) ? fetchNpmLatest() : Promise.resolve(void 0),
18135
- trayInstalled() ? fetchTraySidecarSha() : Promise.resolve(void 0)
18178
+ trayInstalled() ? fetchTraySidecarSha() : Promise.resolve(void 0),
18179
+ trayInstalled() ? fetchTrayLatestVersion() : Promise.resolve(void 0)
18136
18180
  ]);
18137
18181
  }
18138
- const prev = readUpdateState().remoteCheck;
18139
- npmLatest ??= prev?.npmLatest;
18140
- trayLatestSha ??= prev?.trayLatestSha;
18141
18182
  writeUpdateState({
18142
18183
  remoteCheck: {
18143
18184
  checkedAt: (/* @__PURE__ */ new Date()).toISOString(),
18144
- ...npmLatest !== void 0 ? { npmLatest } : {},
18145
- ...trayLatestSha !== void 0 ? { trayLatestSha } : {}
18185
+ ...mergeRemoteCheck(
18186
+ { npmLatest, trayLatestSha, trayLatestVersion },
18187
+ readUpdateState().remoteCheck
18188
+ )
18146
18189
  }
18147
18190
  });
18148
18191
  };
@@ -20058,6 +20101,34 @@ if (AGENTBOX_VERSION !== "0.0.0-dev") {
20058
20101
  } catch (err) {
20059
20102
  process.stderr.write(
20060
20103
  `post-update refresh failed: ${err instanceof Error ? err.message : String(err)}
20104
+ `
20105
+ );
20106
+ }
20107
+ } else if (isFirstRunHookEligible(argv) && argv[2] !== "self-update" && shouldPromptTrayUpdate({
20108
+ installed: trayInstalled(),
20109
+ stampedSha: state.traySha,
20110
+ latestSha: state.remoteCheck?.trayLatestSha,
20111
+ declinedSha: state.trayDeclinedSha
20112
+ })) {
20113
+ const latestSha = state.remoteCheck?.trayLatestSha;
20114
+ const latestVersion = state.remoteCheck?.trayLatestVersion;
20115
+ versionPromptShown = true;
20116
+ try {
20117
+ const yes = await confirm({
20118
+ message: latestVersion ? `the AgentBox menu-bar app has an update (${latestVersion}) \u2014 install it now?` : "the AgentBox menu-bar app has an update \u2014 install it now?",
20119
+ initialValue: true
20120
+ });
20121
+ if (yes) {
20122
+ await maybeUpdateTray((msg) => {
20123
+ process.stdout.write(`${msg}
20124
+ `);
20125
+ });
20126
+ } else {
20127
+ writeUpdateState({ trayDeclinedSha: latestSha });
20128
+ }
20129
+ } catch (err) {
20130
+ process.stderr.write(
20131
+ `menu-bar app update failed: ${err instanceof Error ? err.message : String(err)}
20061
20132
  `
20062
20133
  );
20063
20134
  }