@madarco/agentbox 0.24.1 → 0.24.3

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 +39 -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 +23 -15
  16. package/dist/index.js.map +1 -1
  17. package/package.json +3 -3
  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/{3tBexekuTKIr_6nriQjKE → 4CStLAgdl_oxCRh8votRw}/_buildManifest.js +0 -0
  59. /package/runtime/hub/apps/hub/.next/static/{3tBexekuTKIr_6nriQjKE → 4CStLAgdl_oxCRh8votRw}/_clientMiddlewareManifest.js +0 -0
  60. /package/runtime/hub/apps/hub/.next/static/{3tBexekuTKIr_6nriQjKE → 4CStLAgdl_oxCRh8votRw}/_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.1" : "0.0.0-dev";
380
- var AGENTBOX_COMMIT = true ? "6633bb4ce" : "dev";
379
+ var AGENTBOX_VERSION = true ? "0.24.3" : "0.0.0-dev";
380
+ var AGENTBOX_COMMIT = true ? "6c0233af9" : "dev";
381
381
 
382
382
  // src/index.ts
383
383
  import { existsSync as _existsSync } from "fs";
@@ -4095,7 +4095,7 @@ async function renderDocker(status) {
4095
4095
  }
4096
4096
  async function daytonaStatus() {
4097
4097
  try {
4098
- const mod = await import("./dist-PHYCFYKH.js");
4098
+ const mod = await import("./dist-UWUTNRCK.js");
4099
4099
  return await mod.getDaytonaStatus();
4100
4100
  } catch (err) {
4101
4101
  return {
@@ -4106,7 +4106,7 @@ async function daytonaStatus() {
4106
4106
  }
4107
4107
  async function e2bStatus() {
4108
4108
  try {
4109
- const mod = await import("./dist-7OUOHQPA.js");
4109
+ const mod = await import("./dist-TK3STVUP.js");
4110
4110
  const cred = mod.readE2bCredStatus();
4111
4111
  if (cred.auth === "none") {
4112
4112
  return { configured: false, reason: "not configured \u2014 run `agentbox e2b login`" };
@@ -9367,7 +9367,7 @@ var createCommand = new Command14("create").description(
9367
9367
  }
9368
9368
  outro7("done");
9369
9369
  if (attachClaudeAfter) {
9370
- const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-T6GPR6LJ.js");
9370
+ const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-D5OC7DCC.js");
9371
9371
  await cloudAgentAttach2({
9372
9372
  box: result.record,
9373
9373
  binary: "claude",
@@ -18042,12 +18042,20 @@ async function runPostUpdateRefresh(opts = {}) {
18042
18042
  warn("box image removal", err);
18043
18043
  }
18044
18044
  try {
18045
- const stop = await stopRelay();
18046
- say(stop.stopped ? `stopped relay (pid ${String(stop.pid)})` : "relay was not running");
18047
- const ep = await ensureRelay();
18048
- say(`relay back up on ${ep.hostUrl}`);
18045
+ const hub = await getHubStatus();
18046
+ if (hub.ui || hub.pidAlive) {
18047
+ const stop = await stopHub();
18048
+ say(stop.stopped ? `stopped hub (pid ${String(stop.pid)})` : "hub was not running");
18049
+ const ep = await ensureHub();
18050
+ say(`hub back up on ${ep.hostUrl}`);
18051
+ } else {
18052
+ const stop = await stopRelay();
18053
+ say(stop.stopped ? `stopped relay (pid ${String(stop.pid)})` : "relay was not running");
18054
+ const ep = await ensureRelay();
18055
+ say(`relay back up on ${ep.hostUrl}`);
18056
+ }
18049
18057
  } catch (err) {
18050
- warn("relay reload", err);
18058
+ warn("relay/hub reload", err);
18051
18059
  }
18052
18060
  try {
18053
18061
  await maybeUpdateTray(say);