@madarco/agentbox 0.23.2 → 0.23.4

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 (143) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/{_cloud-attach-LP5CIO7S.js → _cloud-attach-BQRWX3J2.js} +3 -3
  3. package/dist/chunk-G3H2L3O2.js +0 -0
  4. package/dist/chunk-GGRZ3GZO.js +0 -0
  5. package/dist/{chunk-C47ZA42C.js → chunk-I6ZRWTPR.js} +25 -3
  6. package/dist/chunk-I6ZRWTPR.js.map +1 -0
  7. package/dist/{chunk-AGSLJ3NE.js → chunk-LA4JMS27.js} +10 -2
  8. package/dist/{chunk-AGSLJ3NE.js.map → chunk-LA4JMS27.js.map} +1 -1
  9. package/dist/chunk-LK2JT2OO.js +0 -0
  10. package/dist/chunk-LSQXT5WZ.js +0 -0
  11. package/dist/{chunk-J3GSZ33V.js → chunk-QEQFZLYR.js} +7 -7
  12. package/dist/chunk-QT3SHMLY.js +0 -0
  13. package/dist/{chunk-7D7K4UXW.js → chunk-SFA57TGX.js} +3 -3
  14. package/dist/{chunk-TZLNJBIM.js → chunk-W3FQPFP7.js} +2 -2
  15. package/dist/chunk-WJFZJZIM.js +0 -0
  16. package/dist/cloud-poller-SUNA6ZQC-7M5LJHHE.js +0 -0
  17. package/dist/dist-2BTJQUJS.js +0 -0
  18. package/dist/{dist-VMR6UEP2.js → dist-CUKBKS3N.js} +4 -4
  19. package/dist/{dist-HENU2IVK.js → dist-FXQFTT75.js} +3 -3
  20. package/dist/{dist-UIOWLT3C.js → dist-QO4CTLAX.js} +4 -4
  21. package/dist/{dist-OTSXYV6X.js → dist-V235KVEX.js} +3 -3
  22. package/dist/{dist-NUZ2RMOP.js → dist-Z2NEVV55.js} +4 -2
  23. package/dist/index.js +44 -53
  24. package/dist/index.js.map +1 -1
  25. package/dist/prepared-state-BUO75YLZ-CDTISC2C.js +0 -0
  26. package/package.json +28 -27
  27. package/runtime/_shared/agentbox-checkpoint-cleanup +0 -0
  28. package/runtime/_shared/agentbox-dockerd-start +0 -0
  29. package/runtime/_shared/agentbox-open +0 -0
  30. package/runtime/_shared/agentbox-portless-trust +0 -0
  31. package/runtime/_shared/agentbox-vnc-start +0 -0
  32. package/runtime/_shared/ctl.cjs +0 -0
  33. package/runtime/_shared/gh-shim +0 -0
  34. package/runtime/_shared/git-shim +0 -0
  35. package/runtime/_shared/linear-shim +0 -0
  36. package/runtime/_shared/ntn-shim +0 -0
  37. package/runtime/docker/packages/ctl/dist/bin.cjs +0 -0
  38. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-checkpoint-cleanup +0 -0
  39. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-dockerd-start +0 -0
  40. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-open +0 -0
  41. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-portless-trust +0 -0
  42. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-sshd-start +0 -0
  43. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-vnc-start +0 -0
  44. package/runtime/docker/packages/sandbox-docker/scripts/chromium-resolver +0 -0
  45. package/runtime/docker/packages/sandbox-docker/scripts/gh-shim +0 -0
  46. package/runtime/docker/packages/sandbox-docker/scripts/git-shim +0 -0
  47. package/runtime/docker/packages/sandbox-docker/scripts/linear-shim +0 -0
  48. package/runtime/docker/packages/sandbox-docker/scripts/ntn-shim +0 -0
  49. package/runtime/e2b/agentbox-checkpoint-cleanup +0 -0
  50. package/runtime/e2b/agentbox-dockerd-start +0 -0
  51. package/runtime/e2b/agentbox-open +0 -0
  52. package/runtime/e2b/agentbox-vnc-start +0 -0
  53. package/runtime/e2b/ctl.cjs +0 -0
  54. package/runtime/e2b/gh-shim +0 -0
  55. package/runtime/e2b/git-shim +0 -0
  56. package/runtime/e2b/linear-shim +0 -0
  57. package/runtime/e2b/ntn-shim +0 -0
  58. package/runtime/e2b/scripts/build-template.sh +0 -0
  59. package/runtime/hetzner/agentbox-checkpoint-cleanup +0 -0
  60. package/runtime/hetzner/agentbox-dockerd-start +0 -0
  61. package/runtime/hetzner/agentbox-open +0 -0
  62. package/runtime/hetzner/agentbox-portless-trust +0 -0
  63. package/runtime/hetzner/agentbox-vnc-start +0 -0
  64. package/runtime/hetzner/ctl.cjs +0 -0
  65. package/runtime/hetzner/gh-shim +0 -0
  66. package/runtime/hetzner/git-shim +0 -0
  67. package/runtime/hetzner/linear-shim +0 -0
  68. package/runtime/hetzner/ntn-shim +0 -0
  69. package/runtime/hetzner/scripts/install-box.sh +0 -0
  70. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  71. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  72. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js.nft.json +1 -1
  73. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
  74. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
  75. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  76. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
  77. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  78. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  79. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  80. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
  81. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  82. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
  83. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  84. package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js.nft.json +1 -1
  85. package/runtime/hub/apps/hub/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  86. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  87. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  88. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  89. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  90. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  91. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  92. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  93. package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js.nft.json +1 -1
  94. package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  95. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +1 -1
  96. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +2 -2
  97. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +2 -2
  98. package/runtime/hub/apps/hub/.next/server/chunks/ssr/{09xn_next_dist_0iwlo01._.js → 09xn_next_dist_1uccfbf._.js} +2 -2
  99. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0vdzfiw._.js +3 -0
  100. package/runtime/hub/apps/hub/.next/server/chunks/ssr/{[root-of-the-server]__0cpdgd0._.js → [root-of-the-server]__1bd_5o3._.js} +2 -2
  101. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
  102. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  103. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  104. package/runtime/hub/apps/hub/.next/static/chunks/000a1sa7te1h8.js +1 -0
  105. package/runtime/hub/apps/hub/.next/static/chunks/20hq7-0depjid.js +1 -0
  106. package/runtime/hub/apps/hub/.next/static/chunks/3dfjrxx-dy644.css +3 -0
  107. package/runtime/hub/apps/hub/{chunk-TS3DHXYG.js → chunk-2Z74R6ZT.js} +9 -1
  108. package/runtime/hub/apps/hub/{chunk-5C7T5LX3.js → chunk-AR7CEZ2G.js} +24 -2
  109. package/runtime/hub/apps/hub/{dist-3ILQQGCH.js → dist-LNHEG5P4.js} +2 -2
  110. package/runtime/hub/apps/hub/{dist-CJHZ37LW.js → dist-LZNRLUYY.js} +2 -2
  111. package/runtime/hub/apps/hub/{dist-PKOFN4OD.js → dist-Q6G66Z57.js} +2 -2
  112. package/runtime/hub/apps/hub/{dist-WRKJHF6W.js → dist-SD4G36EP.js} +2 -2
  113. package/runtime/hub/apps/hub/{dist-6R5YPL5S.js → dist-VV6Z2CQX.js} +3 -1
  114. package/runtime/hub/apps/hub/package.json +1 -0
  115. package/runtime/hub/apps/hub/server.js +22 -9
  116. package/runtime/relay/bin.cjs +0 -0
  117. package/runtime/vercel/agentbox-checkpoint-cleanup +0 -0
  118. package/runtime/vercel/agentbox-dockerd-start +0 -0
  119. package/runtime/vercel/agentbox-open +0 -0
  120. package/runtime/vercel/agentbox-vnc-start +0 -0
  121. package/runtime/vercel/ctl.cjs +0 -0
  122. package/runtime/vercel/gh-shim +0 -0
  123. package/runtime/vercel/git-shim +0 -0
  124. package/runtime/vercel/linear-shim +0 -0
  125. package/runtime/vercel/ntn-shim +0 -0
  126. package/runtime/vercel/scripts/provision.sh +0 -0
  127. package/LICENSE +0 -21
  128. package/dist/chunk-C47ZA42C.js.map +0 -1
  129. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1bq2f8q._.js +0 -3
  130. package/runtime/hub/apps/hub/.next/static/chunks/1py5tlz57h7ra.js +0 -1
  131. package/runtime/hub/apps/hub/.next/static/chunks/3rm29i8e-lb25.css +0 -3
  132. /package/dist/{_cloud-attach-LP5CIO7S.js.map → _cloud-attach-BQRWX3J2.js.map} +0 -0
  133. /package/dist/{chunk-J3GSZ33V.js.map → chunk-QEQFZLYR.js.map} +0 -0
  134. /package/dist/{chunk-7D7K4UXW.js.map → chunk-SFA57TGX.js.map} +0 -0
  135. /package/dist/{chunk-TZLNJBIM.js.map → chunk-W3FQPFP7.js.map} +0 -0
  136. /package/dist/{dist-NUZ2RMOP.js.map → dist-CUKBKS3N.js.map} +0 -0
  137. /package/dist/{dist-HENU2IVK.js.map → dist-FXQFTT75.js.map} +0 -0
  138. /package/dist/{dist-UIOWLT3C.js.map → dist-QO4CTLAX.js.map} +0 -0
  139. /package/dist/{dist-OTSXYV6X.js.map → dist-V235KVEX.js.map} +0 -0
  140. /package/dist/{dist-VMR6UEP2.js.map → dist-Z2NEVV55.js.map} +0 -0
  141. /package/runtime/hub/apps/hub/.next/static/{W7Oc_BUsChvL4rrhfKZRY → eVq-z4zld_8DGQudbYogV}/_buildManifest.js +0 -0
  142. /package/runtime/hub/apps/hub/.next/static/{W7Oc_BUsChvL4rrhfKZRY → eVq-z4zld_8DGQudbYogV}/_clientMiddlewareManifest.js +0 -0
  143. /package/runtime/hub/apps/hub/.next/static/{W7Oc_BUsChvL4rrhfKZRY → eVq-z4zld_8DGQudbYogV}/_ssgManifest.js +0 -0
File without changes
File without changes
@@ -5,7 +5,7 @@ import {
5
5
  startClaudeSession,
6
6
  startCodexSession,
7
7
  startOpencodeSession
8
- } from "./chunk-AGSLJ3NE.js";
8
+ } from "./chunk-LA4JMS27.js";
9
9
  import {
10
10
  PROVIDER_NAMES,
11
11
  isProviderKind,
@@ -153,11 +153,11 @@ async function withFirewallRepair(provider, box, opts, attempt) {
153
153
  // src/provider/loaders.ts
154
154
  import { pathToFileURL } from "url";
155
155
  var IMPORTERS = {
156
- docker: () => import("./dist-NUZ2RMOP.js"),
157
- daytona: () => import("./dist-HENU2IVK.js"),
158
- hetzner: () => import("./dist-VMR6UEP2.js"),
159
- vercel: () => import("./dist-UIOWLT3C.js"),
160
- e2b: () => import("./dist-OTSXYV6X.js")
156
+ docker: () => import("./dist-Z2NEVV55.js"),
157
+ daytona: () => import("./dist-FXQFTT75.js"),
158
+ hetzner: () => import("./dist-CUKBKS3N.js"),
159
+ vercel: () => import("./dist-QO4CTLAX.js"),
160
+ e2b: () => import("./dist-V235KVEX.js")
161
161
  };
162
162
  function pickProviderModule(mod, name) {
163
163
  const m = mod;
@@ -2755,4 +2755,4 @@ export {
2755
2755
  agentResumeArgs,
2756
2756
  restoreAgentSessions
2757
2757
  };
2758
- //# sourceMappingURL=chunk-J3GSZ33V.js.map
2758
+ //# sourceMappingURL=chunk-QEQFZLYR.js.map
File without changes
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createCloudProvider
4
- } from "./chunk-C47ZA42C.js";
4
+ } from "./chunk-I6ZRWTPR.js";
5
5
  import {
6
6
  detectPortless,
7
7
  portlessDoctorRow
8
- } from "./chunk-AGSLJ3NE.js";
8
+ } from "./chunk-LA4JMS27.js";
9
9
  import {
10
10
  UserFacingError,
11
11
  claudeInstallFingerprint,
@@ -2263,4 +2263,4 @@ export {
2263
2263
  hetznerProvider,
2264
2264
  providerModule
2265
2265
  };
2266
- //# sourceMappingURL=chunk-7D7K4UXW.js.map
2266
+ //# sourceMappingURL=chunk-SFA57TGX.js.map
@@ -8,7 +8,7 @@ import {
8
8
  renderInnerCommand,
9
9
  resolveCloudCheckpoint,
10
10
  writeCloudCheckpointManifest
11
- } from "./chunk-C47ZA42C.js";
11
+ } from "./chunk-I6ZRWTPR.js";
12
12
  import {
13
13
  UserFacingError,
14
14
  claudeInstallFingerprint,
@@ -1651,4 +1651,4 @@ export {
1651
1651
  vercelProvider,
1652
1652
  providerModule
1653
1653
  };
1654
- //# sourceMappingURL=chunk-TZLNJBIM.js.map
1654
+ //# sourceMappingURL=chunk-W3FQPFP7.js.map
File without changes
File without changes
File without changes
@@ -44,9 +44,9 @@ import {
44
44
  waitForSsh,
45
45
  withHetznerRetry,
46
46
  writePreparedState
47
- } from "./chunk-7D7K4UXW.js";
48
- import "./chunk-C47ZA42C.js";
49
- import "./chunk-AGSLJ3NE.js";
47
+ } from "./chunk-SFA57TGX.js";
48
+ import "./chunk-I6ZRWTPR.js";
49
+ import "./chunk-LA4JMS27.js";
50
50
  import "./chunk-QT3SHMLY.js";
51
51
  import {
52
52
  mintSshKey
@@ -100,4 +100,4 @@ export {
100
100
  withHetznerRetry,
101
101
  writePreparedState
102
102
  };
103
- //# sourceMappingURL=dist-VMR6UEP2.js.map
103
+ //# sourceMappingURL=dist-CUKBKS3N.js.map
@@ -16,8 +16,8 @@ import {
16
16
  } from "./chunk-GGRZ3GZO.js";
17
17
  import {
18
18
  createCloudProvider
19
- } from "./chunk-C47ZA42C.js";
20
- import "./chunk-AGSLJ3NE.js";
19
+ } from "./chunk-I6ZRWTPR.js";
20
+ import "./chunk-LA4JMS27.js";
21
21
  import "./chunk-QT3SHMLY.js";
22
22
  import {
23
23
  claudeInstallFingerprint,
@@ -299,4 +299,4 @@ export {
299
299
  resolveDockerfileContext,
300
300
  setDaytonaCredentials
301
301
  };
302
- //# sourceMappingURL=dist-HENU2IVK.js.map
302
+ //# sourceMappingURL=dist-FXQFTT75.js.map
@@ -34,9 +34,9 @@ import {
34
34
  vercelBackend,
35
35
  vercelProvider,
36
36
  writePreparedState
37
- } from "./chunk-TZLNJBIM.js";
38
- import "./chunk-C47ZA42C.js";
39
- import "./chunk-AGSLJ3NE.js";
37
+ } from "./chunk-W3FQPFP7.js";
38
+ import "./chunk-I6ZRWTPR.js";
39
+ import "./chunk-LA4JMS27.js";
40
40
  import "./chunk-QT3SHMLY.js";
41
41
  import "./chunk-LK2JT2OO.js";
42
42
  import "./chunk-G3H2L3O2.js";
@@ -77,4 +77,4 @@ export {
77
77
  vercelProvider,
78
78
  writePreparedState
79
79
  };
80
- //# sourceMappingURL=dist-UIOWLT3C.js.map
80
+ //# sourceMappingURL=dist-QO4CTLAX.js.map
@@ -30,8 +30,8 @@ import {
30
30
  renderInnerCommand,
31
31
  resolveCloudCheckpoint,
32
32
  writeCloudCheckpointManifest
33
- } from "./chunk-C47ZA42C.js";
34
- import "./chunk-AGSLJ3NE.js";
33
+ } from "./chunk-I6ZRWTPR.js";
34
+ import "./chunk-LA4JMS27.js";
35
35
  import "./chunk-QT3SHMLY.js";
36
36
  import {
37
37
  claudeInstallFingerprint,
@@ -750,4 +750,4 @@ export {
750
750
  updatePreparedState,
751
751
  writePreparedState
752
752
  };
753
- //# sourceMappingURL=dist-OTSXYV6X.js.map
753
+ //# sourceMappingURL=dist-V235KVEX.js.map
@@ -96,6 +96,7 @@ import {
96
96
  ensureAgentboxTasksFile,
97
97
  ensureAgentsVolume,
98
98
  ensureBoxBrowser,
99
+ ensureBoxBrowserShowingApp,
99
100
  ensureClaudeVolume,
100
101
  ensureCodexInstalled,
101
102
  ensureCodexVolume,
@@ -222,7 +223,7 @@ import {
222
223
  vscodeServerVolumeName,
223
224
  waitForTmuxPaneContent,
224
225
  warmUpClaudeCredentials
225
- } from "./chunk-AGSLJ3NE.js";
226
+ } from "./chunk-LA4JMS27.js";
226
227
  import "./chunk-QT3SHMLY.js";
227
228
  import {
228
229
  AmbiguousBoxError,
@@ -392,6 +393,7 @@ export {
392
393
  ensureAgentboxTasksFile,
393
394
  ensureAgentsVolume,
394
395
  ensureBoxBrowser,
396
+ ensureBoxBrowserShowingApp,
395
397
  ensureClaudeVolume,
396
398
  ensureCodexInstalled,
397
399
  ensureCodexVolume,
@@ -544,4 +546,4 @@ export {
544
546
  warmUpClaudeCredentials,
545
547
  writePreparedDockerState
546
548
  };
547
- //# sourceMappingURL=dist-NUZ2RMOP.js.map
549
+ //# sourceMappingURL=dist-Z2NEVV55.js.map
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ import {
49
49
  subscribePrompts,
50
50
  uploadImageFileToBox,
51
51
  withFirewallRepair
52
- } from "./chunk-J3GSZ33V.js";
52
+ } from "./chunk-QEQFZLYR.js";
53
53
  import {
54
54
  daytonaBackend,
55
55
  ensureDaytonaCredentials,
@@ -69,7 +69,7 @@ import {
69
69
  readPreparedState,
70
70
  secretsPath as secretsPath2,
71
71
  syncFirewallSource
72
- } from "./chunk-7D7K4UXW.js";
72
+ } from "./chunk-SFA57TGX.js";
73
73
  import {
74
74
  createGitDeployment,
75
75
  createGitProject,
@@ -88,7 +88,7 @@ import {
88
88
  resolveVercelApiAuth,
89
89
  secretsPath as secretsPath3,
90
90
  upsertProjectEnv
91
- } from "./chunk-TZLNJBIM.js";
91
+ } from "./chunk-W3FQPFP7.js";
92
92
  import {
93
93
  agentSpecsForCloud,
94
94
  baseFreshnessFromFingerprints,
@@ -97,10 +97,11 @@ import {
97
97
  listAllCloudCheckpoints,
98
98
  listCloudBackendDirs,
99
99
  listCloudCheckpoints,
100
+ openWebAppOnVncScreen,
100
101
  probeCloudCheckpoint,
101
102
  resolveCloudCheckpoint,
102
103
  seedAgentVolumesIfFresh
103
- } from "./chunk-C47ZA42C.js";
104
+ } from "./chunk-I6ZRWTPR.js";
104
105
  import {
105
106
  ALL_CONNECTORS,
106
107
  BOX_STATUS_EVENT,
@@ -151,6 +152,7 @@ import {
151
152
  enqueueQueueJob,
152
153
  ensureAgentboxTasksFile,
153
154
  ensureBoxBrowser,
155
+ ensureBoxBrowserShowingApp,
154
156
  ensureClaudeVolume,
155
157
  ensureCodexInstalled,
156
158
  ensureCodexVolume,
@@ -248,7 +250,7 @@ import {
248
250
  waitForTmuxPaneContent,
249
251
  warmUpClaudeCredentials,
250
252
  writeJob
251
- } from "./chunk-AGSLJ3NE.js";
253
+ } from "./chunk-LA4JMS27.js";
252
254
  import {
253
255
  BUILT_IN_DEFAULTS,
254
256
  CLOUD_PROVIDER_NAMES,
@@ -341,8 +343,8 @@ import {
341
343
  } from "./chunk-WJFZJZIM.js";
342
344
 
343
345
  // src/version.ts
344
- var AGENTBOX_VERSION = true ? "0.23.2" : "0.0.0-dev";
345
- var AGENTBOX_COMMIT = true ? "ae37e1f96" : "dev";
346
+ var AGENTBOX_VERSION = true ? "0.23.4" : "0.0.0-dev";
347
+ var AGENTBOX_COMMIT = true ? "359a05a3a" : "dev";
346
348
 
347
349
  // src/index.ts
348
350
  import { existsSync as _existsSync } from "fs";
@@ -3736,7 +3738,7 @@ async function renderDocker(status) {
3736
3738
  }
3737
3739
  async function daytonaStatus() {
3738
3740
  try {
3739
- const mod = await import("./dist-HENU2IVK.js");
3741
+ const mod = await import("./dist-FXQFTT75.js");
3740
3742
  return await mod.getDaytonaStatus();
3741
3743
  } catch (err) {
3742
3744
  return {
@@ -3747,7 +3749,7 @@ async function daytonaStatus() {
3747
3749
  }
3748
3750
  async function e2bStatus() {
3749
3751
  try {
3750
- const mod = await import("./dist-OTSXYV6X.js");
3752
+ const mod = await import("./dist-V235KVEX.js");
3751
3753
  const cred = mod.readE2bCredStatus();
3752
3754
  if (cred.auth === "none") {
3753
3755
  return { configured: false, reason: "not configured \u2014 run `agentbox e2b login`" };
@@ -7292,41 +7294,49 @@ function resolveCmuxBinary(seams = realSeams()) {
7292
7294
  }
7293
7295
  return void 0;
7294
7296
  }
7297
+ function targetInfo(available, reason) {
7298
+ return available ? { available } : { available, reason };
7299
+ }
7295
7300
  function detectOpenTargets(seams = realSeams()) {
7296
7301
  return {
7297
7302
  claude: {
7298
7303
  // Claude desktop has no add-SSH deep link; `open --in claude` writes the
7299
7304
  // box into the app's own settings (sshConfigs) instead — same persistent
7300
7305
  // SSH requirement as codex, since the app connects on its own later.
7301
- available: macAppInstalled("Claude.app", seams),
7306
+ ...targetInfo(macAppInstalled("Claude.app", seams), "Claude desktop is not installed"),
7302
7307
  providers: [...PERSISTENT_SSH_PROVIDERS]
7303
7308
  },
7304
7309
  codex: {
7305
- available: macAppInstalled("Codex.app", seams),
7310
+ ...targetInfo(macAppInstalled("Codex.app", seams), "Codex is not installed"),
7306
7311
  providers: [...PERSISTENT_SSH_PROVIDERS]
7307
7312
  },
7308
- herdr: {
7309
- available: pathHasBinary("herdr", seams) || defaultHerdrSocketPath(seams) !== void 0
7310
- },
7311
- cmux: {
7312
- available: pathHasBinary("cmux", seams) || macAppInstalled("cmux.app", seams)
7313
- },
7313
+ herdr: targetInfo(
7314
+ pathHasBinary("herdr", seams) || defaultHerdrSocketPath(seams) !== void 0,
7315
+ "Herdr is not installed"
7316
+ ),
7317
+ cmux: targetInfo(
7318
+ pathHasBinary("cmux", seams) || macAppInstalled("cmux.app", seams),
7319
+ "cmux is not installed"
7320
+ ),
7314
7321
  vscode: {
7315
7322
  // PATH shim OR the .app bundle — a freshly-dragged VS Code/Cursor has no
7316
7323
  // `code`/`cursor` on PATH until the user runs the "Install 'code' command"
7317
7324
  // step, but `agentbox open --in vscode` can launch it from the bundle.
7318
- available: VSCODE_APPS.some(
7319
- (a) => pathHasBinary(a.cli, seams) || macAppInstalled(a.appName, seams)
7325
+ ...targetInfo(
7326
+ VSCODE_APPS.some((a) => pathHasBinary(a.cli, seams) || macAppInstalled(a.appName, seams)),
7327
+ "VS Code / Cursor is not installed"
7320
7328
  ),
7321
7329
  providers: [...IDE_PROVIDERS]
7322
7330
  },
7323
- iterm2: {
7324
- available: macAppInstalled("iTerm.app", seams)
7325
- },
7331
+ iterm2: targetInfo(macAppInstalled("iTerm.app", seams), "iTerm2 is not installed"),
7326
7332
  finder: {
7327
- // The OS file-manager reveal always works (Finder on macOS, xdg-open
7328
- // elsewhere); provider gating is what limits `open` to SSH-capable boxes.
7329
- available: true,
7333
+ // The file-manager reveal itself always works, but `open --in finder`
7334
+ // mounts /workspace via sshfs first — without the sshfs binary the whole
7335
+ // action fails, so sshfs presence IS the availability.
7336
+ ...targetInfo(
7337
+ pathHasBinary("sshfs", seams),
7338
+ "sshfs is not installed \u2014 install with `brew install macfuse sshfs`"
7339
+ ),
7330
7340
  providers: [...SSH_MOUNT_PROVIDERS]
7331
7341
  }
7332
7342
  };
@@ -7337,7 +7347,7 @@ function codexAddUrl(alias) {
7337
7347
  function renderTargets(report) {
7338
7348
  const lines = OPEN_IN_APPS.map((app) => {
7339
7349
  const info = report[app];
7340
- const status = info.available ? "available" : "not installed";
7350
+ const status = info.available ? "available" : info.reason ?? "not installed";
7341
7351
  const scope = info.providers ? ` (${info.providers.join(", ")} boxes)` : "";
7342
7352
  return `${app}: ${status}${info.available ? scope : ""}`;
7343
7353
  });
@@ -8345,7 +8355,7 @@ var createCommand = new Command13("create").description(
8345
8355
  }
8346
8356
  outro7("done");
8347
8357
  if (attachClaudeAfter) {
8348
- const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-LP5CIO7S.js");
8358
+ const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-BQRWX3J2.js");
8349
8359
  await cloudAgentAttach2({
8350
8360
  box: result.record,
8351
8361
  binary: "claude",
@@ -17030,13 +17040,10 @@ var screenCommand = new Command51("screen").description("Open a box's VNC (noVNC
17030
17040
  } else if (insp.state === "missing") {
17031
17041
  throw new Error(`box ${box.name} has no container; was it destroyed?`);
17032
17042
  }
17033
- const persisted = await readBoxStatus(box);
17034
- const exposePort = persisted?.services.find((s) => s.expose)?.expose?.port;
17035
- const inBoxUrl = exposePort !== void 0 ? box.portlessUrl ?? `http://localhost:${String(exposePort)}` : "about:blank";
17036
- const br = await ensureBoxBrowser(box.container, void 0, inBoxUrl);
17043
+ const br = await ensureBoxBrowserShowingApp(box);
17037
17044
  if (br.up && !br.alreadyRunning) {
17038
17045
  log51.info(
17039
- exposePort !== void 0 ? `opened ${inBoxUrl} in the in-box browser (visible in the VNC view)` : "started in-box browser"
17046
+ br.target !== "about:blank" ? `opened ${br.target} in the in-box browser (visible in the VNC view)` : "started in-box browser"
17040
17047
  );
17041
17048
  } else if (br.alreadyRunning) {
17042
17049
  log51.info("in-box browser already running; left it untouched");
@@ -17070,27 +17077,11 @@ var screenCommand = new Command51("screen").description("Open a box's VNC (noVNC
17070
17077
  } else if (state === "missing") {
17071
17078
  throw new Error(`cloud sandbox for ${box.name} is missing; was it deleted?`);
17072
17079
  }
17073
- const persisted = await readBoxStatus(box);
17074
- const hasWebService = persisted?.services.some((s) => s.expose) ?? false;
17075
- if (hasWebService) {
17076
- try {
17077
- const webUrl = await p.resolveUrl(box, { kind: "web" });
17078
- const q = `'${webUrl.replace(/'/g, "'\\''")}'`;
17079
- const br = await p.exec(box, ["bash", "-lc", `agent-browser open --headed ${q}`], {
17080
- user: "vscode"
17081
- });
17082
- if (br.exitCode === 0) {
17083
- log51.info(`opened ${webUrl} in the in-box browser (visible in the VNC view)`);
17084
- } else {
17085
- log51.warn(
17086
- `could not open in-box browser (continuing): ${br.stderr.trim() || br.stdout.trim() || `exit ${String(br.exitCode)}`}`
17087
- );
17088
- }
17089
- } catch (err) {
17090
- log51.warn(
17091
- `in-box browser skipped: ${err instanceof Error ? err.message : String(err)}`
17092
- );
17093
- }
17080
+ const br = await openWebAppOnVncScreen(box, p);
17081
+ if (br.opened) {
17082
+ log51.info(`opened ${br.target ?? ""} in the in-box browser (visible in the VNC view)`);
17083
+ } else if (br.reason && br.reason !== "no web service") {
17084
+ log51.warn(`could not open in-box browser (continuing): ${br.reason}`);
17094
17085
  }
17095
17086
  const base = await p.resolveUrl(box, { kind: "vnc", ttl });
17096
17087
  url = `${base.replace(/\/$/, "")}/vnc.html?autoconnect=1&password=${encodeURIComponent(box.vncPassword)}`;