@madarco/agentbox 0.22.2 → 0.23.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/CHANGELOG.md +56 -0
- package/dist/{_cloud-attach-Y5WZ7F53.js → _cloud-attach-RFPLNACE.js} +4 -4
- package/dist/{chunk-BMCT3LBE.js → chunk-6OQENOJZ.js} +8 -8
- package/dist/{chunk-ES2DDCAC.js → chunk-CKC3CP7Y.js} +284 -154
- package/dist/chunk-CKC3CP7Y.js.map +1 -0
- package/dist/{chunk-AYNGC4Z5.js → chunk-ERMU7RMK.js} +43 -58
- package/dist/{chunk-AYNGC4Z5.js.map → chunk-ERMU7RMK.js.map} +1 -1
- package/dist/chunk-G3H2L3O2.js +0 -0
- package/dist/{chunk-3KAWXDQ4.js → chunk-JXDSSSXS.js} +3 -3
- package/dist/{chunk-S4OWE3UD.js → chunk-L5SOSNQI.js} +3 -3
- package/dist/{chunk-V2NCCC2B.js → chunk-Q626V2YX.js} +2 -2
- package/dist/{chunk-5DZTXHLQ.js → chunk-QGL734YX.js} +169 -52
- package/dist/chunk-QGL734YX.js.map +1 -0
- package/dist/chunk-QT3SHMLY.js +0 -0
- package/dist/{chunk-7HAGPF4X.js → chunk-QVWGQJV6.js} +2 -2
- package/dist/chunk-WJFZJZIM.js +0 -0
- package/dist/cloud-poller-SUNA6ZQC-7M5LJHHE.js +0 -0
- package/dist/dist-2BTJQUJS.js +0 -0
- package/dist/{dist-SJRMFVRV.js → dist-GEHCZJCS.js} +5 -5
- package/dist/{dist-AN5NUXA5.js → dist-GJCIKH2C.js} +5 -5
- package/dist/{dist-FNAGMTUI.js → dist-JFUUDAI3.js} +17 -3
- package/dist/{dist-VOVN64Y2.js → dist-W5476E2U.js} +5 -5
- package/dist/{dist-K5GASNBV.js → dist-Z3GSHEFO.js} +7 -6
- package/dist/index.js +391 -215
- package/dist/index.js.map +1 -1
- package/dist/{prepared-state-5FIGV4BE-WPHOEDA6.js → prepared-state-LW2PKTEQ-5YMKG7UN.js} +2 -2
- package/package.json +28 -27
- package/runtime/_shared/agentbox-checkpoint-cleanup +0 -0
- package/runtime/_shared/agentbox-dockerd-start +0 -0
- package/runtime/_shared/agentbox-open +0 -0
- package/runtime/_shared/agentbox-portless-trust +0 -0
- package/runtime/_shared/agentbox-vnc-start +0 -0
- package/runtime/_shared/ctl.cjs +3 -1
- package/runtime/_shared/gh-shim +0 -0
- package/runtime/_shared/git-shim +0 -0
- package/runtime/_shared/linear-shim +0 -0
- package/runtime/_shared/ntn-shim +0 -0
- package/runtime/docker/Dockerfile.box +12 -0
- package/runtime/docker/packages/ctl/dist/bin.cjs +3 -1
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-checkpoint-cleanup +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-dockerd-start +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-open +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-portless-trust +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-sshd-start +44 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-vnc-start +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/chromium-resolver +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/gh-shim +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/git-shim +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/linear-shim +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/ntn-shim +0 -0
- package/runtime/e2b/agentbox-checkpoint-cleanup +0 -0
- package/runtime/e2b/agentbox-dockerd-start +0 -0
- package/runtime/e2b/agentbox-open +0 -0
- package/runtime/e2b/agentbox-vnc-start +0 -0
- package/runtime/e2b/ctl.cjs +3 -1
- package/runtime/e2b/gh-shim +0 -0
- package/runtime/e2b/git-shim +0 -0
- package/runtime/e2b/linear-shim +0 -0
- package/runtime/e2b/ntn-shim +0 -0
- package/runtime/e2b/scripts/build-template.sh +0 -0
- package/runtime/hetzner/agentbox-checkpoint-cleanup +0 -0
- package/runtime/hetzner/agentbox-dockerd-start +0 -0
- package/runtime/hetzner/agentbox-open +0 -0
- package/runtime/hetzner/agentbox-portless-trust +0 -0
- package/runtime/hetzner/agentbox-vnc-start +0 -0
- package/runtime/hetzner/ctl.cjs +3 -1
- package/runtime/hetzner/gh-shim +0 -0
- package/runtime/hetzner/git-shim +0 -0
- package/runtime/hetzner/linear-shim +0 -0
- package/runtime/hetzner/ntn-shim +0 -0
- package/runtime/hetzner/scripts/install-box.sh +0 -0
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
- package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +2 -0
- package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/routes-manifest.json +14 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +2 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_open-targets_route_actions_1z-vd4m.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_open_route_actions_1agwl8h.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ql4fjo._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vs8fma._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w9ud8u._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yhb0gc._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-0flwc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1a50b07._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dn_3i1._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hqla7-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1js2jdv._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nepkp-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q5bqse._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1thipug._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v9om6g._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_06f2faq._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0f3molr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ro6vh6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0b_hsjl._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +2 -0
- package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/1py5tlz57h7ra.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/{3y2c7woqhtx9s.js → 23fswvjrabu89.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/3nedwutnzpdis.css +3 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3p86ecqhr_7yy.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3qof5hg87qf5n.js +1 -0
- package/runtime/hub/apps/hub/{chunk-673QOHSR.js → chunk-6HD4PARX.js} +9 -9
- package/runtime/hub/apps/hub/{chunk-7J6ZFTT4.js → chunk-JQFB2CNA.js} +132 -16
- package/runtime/hub/apps/hub/{chunk-5XQ3T3W2.js → chunk-K6RA5GJI.js} +231 -126
- package/runtime/hub/apps/hub/{dist-GCALYJN7.js → dist-3HR4RIPE.js} +17 -3
- package/runtime/hub/apps/hub/{dist-EI54M5DP.js → dist-7GNKBKFV.js} +29 -42
- package/runtime/hub/apps/hub/{dist-MOCUH2OC.js → dist-JWVTVHBT.js} +4 -4
- package/runtime/hub/apps/hub/{dist-LYTWBTUL.js → dist-OUNL2TCW.js} +4 -4
- package/runtime/hub/apps/hub/{dist-K7WHNDZB.js → dist-TOHA4OA5.js} +4 -4
- package/runtime/hub/apps/hub/{prepared-state-5FIGV4BE-D2HJEY2L.js → prepared-state-LW2PKTEQ-7BCXARGA.js} +1 -1
- package/runtime/hub/apps/hub/server.js +105 -24
- package/runtime/relay/bin.cjs +3 -1
- package/runtime/vercel/agentbox-checkpoint-cleanup +0 -0
- package/runtime/vercel/agentbox-dockerd-start +0 -0
- package/runtime/vercel/agentbox-open +0 -0
- package/runtime/vercel/agentbox-vnc-start +0 -0
- package/runtime/vercel/ctl.cjs +3 -1
- package/runtime/vercel/gh-shim +0 -0
- package/runtime/vercel/git-shim +0 -0
- package/runtime/vercel/linear-shim +0 -0
- package/runtime/vercel/ntn-shim +0 -0
- package/runtime/vercel/scripts/provision.sh +0 -0
- package/LICENSE +0 -21
- package/dist/chunk-5DZTXHLQ.js.map +0 -1
- package/dist/chunk-ES2DDCAC.js.map +0 -1
- package/runtime/hub/apps/hub/.next/static/chunks/0dx4alyqu7cq1.css +0 -3
- package/runtime/hub/apps/hub/.next/static/chunks/332lo0ac7l2wv.js +0 -1
- package/runtime/hub/apps/hub/.next/static/chunks/3gdqmzzl34ilu.js +0 -1
- package/runtime/hub/apps/hub/.next/static/chunks/44exu5uemf-ev.js +0 -1
- /package/dist/{_cloud-attach-Y5WZ7F53.js.map → _cloud-attach-RFPLNACE.js.map} +0 -0
- /package/dist/{chunk-BMCT3LBE.js.map → chunk-6OQENOJZ.js.map} +0 -0
- /package/dist/{chunk-3KAWXDQ4.js.map → chunk-JXDSSSXS.js.map} +0 -0
- /package/dist/{chunk-S4OWE3UD.js.map → chunk-L5SOSNQI.js.map} +0 -0
- /package/dist/{chunk-V2NCCC2B.js.map → chunk-Q626V2YX.js.map} +0 -0
- /package/dist/{chunk-7HAGPF4X.js.map → chunk-QVWGQJV6.js.map} +0 -0
- /package/dist/{dist-SJRMFVRV.js.map → dist-GEHCZJCS.js.map} +0 -0
- /package/dist/{dist-AN5NUXA5.js.map → dist-GJCIKH2C.js.map} +0 -0
- /package/dist/{dist-FNAGMTUI.js.map → dist-JFUUDAI3.js.map} +0 -0
- /package/dist/{dist-K5GASNBV.js.map → dist-W5476E2U.js.map} +0 -0
- /package/dist/{dist-VOVN64Y2.js.map → dist-Z3GSHEFO.js.map} +0 -0
- /package/dist/{prepared-state-5FIGV4BE-WPHOEDA6.js.map → prepared-state-LW2PKTEQ-5YMKG7UN.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{zT1paOSXMJpAPsZ1dFK2V → 6WtaFwavHBpin3eT7-HjR}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{zT1paOSXMJpAPsZ1dFK2V → 6WtaFwavHBpin3eT7-HjR}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{zT1paOSXMJpAPsZ1dFK2V → 6WtaFwavHBpin3eT7-HjR}/_ssgManifest.js +0 -0
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
SHARED_VSCODE_EXTENSIONS_VOLUME,
|
|
39
39
|
SHELL_SESSION_PREFIX,
|
|
40
40
|
SNAPSHOTS_ROOT,
|
|
41
|
+
SSH_CONTAINER_PORT,
|
|
41
42
|
TERM_FALLBACK_SNIPPET,
|
|
42
43
|
VNC_CONTAINER_PORT,
|
|
43
44
|
WORKTREE_ROOT,
|
|
@@ -122,10 +123,12 @@ import {
|
|
|
122
123
|
ideProfile,
|
|
123
124
|
ideServerVolumeName,
|
|
124
125
|
inspectBox,
|
|
126
|
+
installAuthorizedKey,
|
|
125
127
|
installPortless,
|
|
126
128
|
isShellSessionName,
|
|
127
129
|
killShellSession,
|
|
128
130
|
launchDockerdDaemon,
|
|
131
|
+
launchSshdDaemon,
|
|
129
132
|
launchVncDaemon,
|
|
130
133
|
listAllCheckpointImages,
|
|
131
134
|
listAllCheckpoints,
|
|
@@ -161,6 +164,7 @@ import {
|
|
|
161
164
|
pullToHost,
|
|
162
165
|
readBoxStatus,
|
|
163
166
|
rebuildPluginNativeDeps,
|
|
167
|
+
refreshBoxSshd,
|
|
164
168
|
refreshExport,
|
|
165
169
|
registerBoxWithRelay,
|
|
166
170
|
rehydrateRelayRegistry,
|
|
@@ -191,6 +195,7 @@ import {
|
|
|
191
195
|
seedWorkspaceFromDir,
|
|
192
196
|
setEngineOverride,
|
|
193
197
|
setRelayNotice,
|
|
198
|
+
setUpBoxSshd,
|
|
194
199
|
shellLabel,
|
|
195
200
|
shellSessionInfo,
|
|
196
201
|
shellSessionName,
|
|
@@ -217,8 +222,7 @@ import {
|
|
|
217
222
|
vscodeServerVolumeName,
|
|
218
223
|
waitForTmuxPaneContent,
|
|
219
224
|
warmUpClaudeCredentials
|
|
220
|
-
} from "./chunk-
|
|
221
|
-
import "./chunk-EXQCBM5Q.js";
|
|
225
|
+
} from "./chunk-JQFB2CNA.js";
|
|
222
226
|
import "./chunk-3LAHFDJF.js";
|
|
223
227
|
import {
|
|
224
228
|
AmbiguousBoxError,
|
|
@@ -237,11 +241,13 @@ import {
|
|
|
237
241
|
autoPickProjectBox,
|
|
238
242
|
buildHostEnvFindArgs,
|
|
239
243
|
buildHostSyncManifest,
|
|
244
|
+
classifyDockerBaseFreshness,
|
|
240
245
|
computeDockerContextFingerprint,
|
|
241
246
|
computeSyncDelta,
|
|
242
247
|
detectGitRepos,
|
|
243
248
|
encodeClaudeProjectsKey,
|
|
244
249
|
ensureImage,
|
|
250
|
+
evaluateDockerBaseFreshness,
|
|
245
251
|
findBox,
|
|
246
252
|
hostBackupHasCredentials,
|
|
247
253
|
hostClaudeBackupExpired,
|
|
@@ -265,8 +271,9 @@ import {
|
|
|
265
271
|
stageDynamicSyncTarball,
|
|
266
272
|
tagImage,
|
|
267
273
|
writePreparedDockerState
|
|
268
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-K6RA5GJI.js";
|
|
269
275
|
import "./chunk-EFW34I43.js";
|
|
276
|
+
import "./chunk-EXQCBM5Q.js";
|
|
270
277
|
import "./chunk-TZFWAJVB.js";
|
|
271
278
|
export {
|
|
272
279
|
AmbiguousBoxError,
|
|
@@ -317,6 +324,7 @@ export {
|
|
|
317
324
|
SHARED_VSCODE_EXTENSIONS_VOLUME,
|
|
318
325
|
SHELL_SESSION_PREFIX,
|
|
319
326
|
SNAPSHOTS_ROOT,
|
|
327
|
+
SSH_CONTAINER_PORT,
|
|
320
328
|
STATE_DIR,
|
|
321
329
|
STATE_FILE,
|
|
322
330
|
TERM_FALLBACK_SNIPPET,
|
|
@@ -358,6 +366,7 @@ export {
|
|
|
358
366
|
buildVscodeMounts,
|
|
359
367
|
carrySourceHash,
|
|
360
368
|
checkpointImageTag,
|
|
369
|
+
classifyDockerBaseFreshness,
|
|
361
370
|
claudeSessionInfo,
|
|
362
371
|
clearRelayNotice,
|
|
363
372
|
codexSessionInfo,
|
|
@@ -394,6 +403,7 @@ export {
|
|
|
394
403
|
ensureOpencodeVolume,
|
|
395
404
|
ensureRelay,
|
|
396
405
|
ensureVscodeVolumes,
|
|
406
|
+
evaluateDockerBaseFreshness,
|
|
397
407
|
execInBox,
|
|
398
408
|
extractCodexCredentials,
|
|
399
409
|
extractOpencodeCredentials,
|
|
@@ -417,11 +427,13 @@ export {
|
|
|
417
427
|
imageExists,
|
|
418
428
|
imageInfo,
|
|
419
429
|
inspectBox,
|
|
430
|
+
installAuthorizedKey,
|
|
420
431
|
installPortless,
|
|
421
432
|
isRealAgentCredential,
|
|
422
433
|
isShellSessionName,
|
|
423
434
|
killShellSession,
|
|
424
435
|
launchDockerdDaemon,
|
|
436
|
+
launchSshdDaemon,
|
|
425
437
|
launchVncDaemon,
|
|
426
438
|
listAllCheckpointImages,
|
|
427
439
|
listAllCheckpoints,
|
|
@@ -465,6 +477,7 @@ export {
|
|
|
465
477
|
rebuildPluginNativeDeps,
|
|
466
478
|
recordBox,
|
|
467
479
|
recordLastAgent,
|
|
480
|
+
refreshBoxSshd,
|
|
468
481
|
refreshExport,
|
|
469
482
|
registerBoxWithRelay,
|
|
470
483
|
registryRefForSha,
|
|
@@ -501,6 +514,7 @@ export {
|
|
|
501
514
|
seedWorkspaceFromDir,
|
|
502
515
|
setEngineOverride,
|
|
503
516
|
setRelayNotice,
|
|
517
|
+
setUpBoxSshd,
|
|
504
518
|
shellLabel,
|
|
505
519
|
shellSessionInfo,
|
|
506
520
|
shellSessionName,
|
|
@@ -12,12 +12,11 @@ import {
|
|
|
12
12
|
} from "./chunk-OF242BLD.js";
|
|
13
13
|
import {
|
|
14
14
|
createCloudProvider
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6HD4PARX.js";
|
|
16
16
|
import {
|
|
17
17
|
detectPortless,
|
|
18
18
|
portlessDoctorRow
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-EXQCBM5Q.js";
|
|
19
|
+
} from "./chunk-JQFB2CNA.js";
|
|
21
20
|
import "./chunk-3LAHFDJF.js";
|
|
22
21
|
import {
|
|
23
22
|
UserFacingError,
|
|
@@ -25,6 +24,7 @@ import {
|
|
|
25
24
|
computeContextSha256,
|
|
26
25
|
errSummary,
|
|
27
26
|
hostOpenCommand,
|
|
27
|
+
mintSshKey,
|
|
28
28
|
preparedStatePathFor,
|
|
29
29
|
readCliStamp,
|
|
30
30
|
readPreparedStateRaw,
|
|
@@ -34,10 +34,11 @@ import {
|
|
|
34
34
|
stageOpencodeStaticForUpload,
|
|
35
35
|
writeManagedSecrets,
|
|
36
36
|
writePreparedStateRaw
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-K6RA5GJI.js";
|
|
38
38
|
import {
|
|
39
39
|
execa
|
|
40
40
|
} from "./chunk-EFW34I43.js";
|
|
41
|
+
import "./chunk-EXQCBM5Q.js";
|
|
41
42
|
import "./chunk-TZFWAJVB.js";
|
|
42
43
|
|
|
43
44
|
// ../../packages/sandbox-hetzner/dist/chunk-3ZWBEZND.js
|
|
@@ -787,20 +788,19 @@ async function currentHetznerBaseFingerprintLive(claudeInstall = "native") {
|
|
|
787
788
|
|
|
788
789
|
// ../../packages/sandbox-hetzner/dist/index.js
|
|
789
790
|
import { existsSync as existsSync22 } from "fs";
|
|
790
|
-
import { rm as rm2, rename, mkdir as
|
|
791
|
-
import { join as
|
|
791
|
+
import { rm as rm2, rename, mkdir as mkdir2 } from "fs/promises";
|
|
792
|
+
import { join as join3 } from "path";
|
|
792
793
|
import { resolve as resolvePath } from "path";
|
|
793
|
-
import { join
|
|
794
|
-
import {
|
|
795
|
-
import { dirname as dirname2, join, resolve as resolve4 } from "path";
|
|
794
|
+
import { join } from "path";
|
|
795
|
+
import { dirname as dirname2, resolve as resolve4 } from "path";
|
|
796
796
|
import { existsSync as existsSync3 } from "fs";
|
|
797
|
-
import { mkdir
|
|
797
|
+
import { mkdir, rm } from "fs/promises";
|
|
798
798
|
import { createServer } from "net";
|
|
799
799
|
import { homedir as homedir3 } from "os";
|
|
800
|
-
import { dirname as dirname22, join as
|
|
801
|
-
import { mkdir as
|
|
800
|
+
import { dirname as dirname22, join as join2, resolve as resolve22 } from "path";
|
|
801
|
+
import { mkdir as mkdir3, rm as rm3, writeFile } from "fs/promises";
|
|
802
802
|
import { homedir as homedir22, tmpdir } from "os";
|
|
803
|
-
import { join as
|
|
803
|
+
import { join as join4 } from "path";
|
|
804
804
|
function generatePrepareCloudInit(opts) {
|
|
805
805
|
const pubkey = opts.sshPubkey.trim();
|
|
806
806
|
return [
|
|
@@ -916,19 +916,6 @@ async function pollUntil(label, check, opts = {}) {
|
|
|
916
916
|
interval = Math.min(interval * 2, max);
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
async function mintSshKey(targetDir, comment) {
|
|
920
|
-
const dir = resolve4(targetDir);
|
|
921
|
-
const priv = join(dir, "id_ed25519");
|
|
922
|
-
const pub = `${priv}.pub`;
|
|
923
|
-
await mkdir(dir, { recursive: true, mode: 448 });
|
|
924
|
-
await execa(
|
|
925
|
-
"ssh-keygen",
|
|
926
|
-
["-t", "ed25519", "-N", "", "-C", comment, "-f", priv, "-q"],
|
|
927
|
-
{ stdio: "pipe" }
|
|
928
|
-
);
|
|
929
|
-
const publicKey = (await readFile(pub, "utf8")).trim();
|
|
930
|
-
return { dir, privatePath: priv, publicPath: pub, publicKey };
|
|
931
|
-
}
|
|
932
919
|
async function mintPrepareKey() {
|
|
933
920
|
const root = resolve4(homedirOrCwd(), ".agentbox", "hetzner", `prepare-${Date.now().toString(36)}`);
|
|
934
921
|
const key = await mintSshKey(root, `agentbox-prepare-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}`);
|
|
@@ -1132,7 +1119,7 @@ async function prepareHetzner(opts = {}) {
|
|
|
1132
1119
|
host: ip,
|
|
1133
1120
|
user: "root",
|
|
1134
1121
|
identity: key.privatePath,
|
|
1135
|
-
knownHosts:
|
|
1122
|
+
knownHosts: join(key.dir, "known_hosts")
|
|
1136
1123
|
};
|
|
1137
1124
|
const up = await waitForSsh(sshTarget, PREPARE_SSH_DEADLINE_MS);
|
|
1138
1125
|
if (!up) {
|
|
@@ -1325,9 +1312,9 @@ var SshTunnelManager = class {
|
|
|
1325
1312
|
*/
|
|
1326
1313
|
async open(opts) {
|
|
1327
1314
|
const boxSshDir = opts.boxSshDir ?? defaultBoxSshDir(opts.boxId);
|
|
1328
|
-
await
|
|
1329
|
-
const controlPath =
|
|
1330
|
-
const knownHosts =
|
|
1315
|
+
await mkdir(boxSshDir, { recursive: true, mode: 448 });
|
|
1316
|
+
const controlPath = join2(boxSshDir, "control.sock");
|
|
1317
|
+
const knownHosts = join2(boxSshDir, "known_hosts");
|
|
1331
1318
|
const user = opts.vpsUser ?? "vscode";
|
|
1332
1319
|
const tunnel = {
|
|
1333
1320
|
controlPath,
|
|
@@ -1501,7 +1488,7 @@ var SshTunnelManager = class {
|
|
|
1501
1488
|
registerExisting(boxId, opts) {
|
|
1502
1489
|
const boxSshDir = opts.boxSshDir ?? defaultBoxSshDir(opts.boxId);
|
|
1503
1490
|
this.boxes.set(boxId, {
|
|
1504
|
-
controlPath:
|
|
1491
|
+
controlPath: join2(boxSshDir, "control.sock"),
|
|
1505
1492
|
vpsHost: opts.vpsHost,
|
|
1506
1493
|
vpsUser: opts.vpsUser ?? "vscode",
|
|
1507
1494
|
identity: opts.identity,
|
|
@@ -1624,12 +1611,12 @@ function perBoxDir(sandboxId) {
|
|
|
1624
1611
|
}
|
|
1625
1612
|
async function ensurePerBoxState(sandboxId) {
|
|
1626
1613
|
const dir = perBoxDir(sandboxId);
|
|
1627
|
-
const sshDir =
|
|
1628
|
-
await
|
|
1614
|
+
const sshDir = join3(dir, "ssh");
|
|
1615
|
+
await mkdir2(sshDir, { recursive: true, mode: 448 });
|
|
1629
1616
|
return {
|
|
1630
1617
|
dir,
|
|
1631
|
-
identity:
|
|
1632
|
-
knownHosts:
|
|
1618
|
+
identity: join3(sshDir, "id_ed25519"),
|
|
1619
|
+
knownHosts: join3(sshDir, "known_hosts")
|
|
1633
1620
|
};
|
|
1634
1621
|
}
|
|
1635
1622
|
function bashScript(s) {
|
|
@@ -2147,9 +2134,9 @@ async function deployControlPlaneToHetzner(opts) {
|
|
|
2147
2134
|
labels: { "agentbox.managed": "true", "agentbox.role": "control-plane" }
|
|
2148
2135
|
})
|
|
2149
2136
|
);
|
|
2150
|
-
const keyDir =
|
|
2137
|
+
const keyDir = join4(homedir22(), ".agentbox", "control-plane", "ssh", stamp);
|
|
2151
2138
|
const key = await mintSshKey(keyDir, `agentbox-control-plane-${stamp}`);
|
|
2152
|
-
const knownHosts =
|
|
2139
|
+
const knownHosts = join4(keyDir, "known_hosts");
|
|
2153
2140
|
log(`provisioning ${opts.serverType ?? "cx23"} VPS (cloning ${repoUrl}@${repoRef})\u2026`);
|
|
2154
2141
|
const { server } = await withHetznerRetry(
|
|
2155
2142
|
{ method: "createServer", retryOnAmbiguous: false, attemptTimeoutMs: 12e4 },
|
|
@@ -2178,12 +2165,12 @@ async function deployControlPlaneToHetzner(opts) {
|
|
|
2178
2165
|
if (cloned.exitCode !== 0) {
|
|
2179
2166
|
throw new Error("repo clone did not complete on the VPS (cloud-init failed)");
|
|
2180
2167
|
}
|
|
2181
|
-
const staging =
|
|
2182
|
-
await
|
|
2168
|
+
const staging = join4(tmpdir(), `agentbox-cp-deploy-${stamp}`);
|
|
2169
|
+
await mkdir3(staging, { recursive: true });
|
|
2183
2170
|
try {
|
|
2184
|
-
const envLocal =
|
|
2185
|
-
const caddyLocal =
|
|
2186
|
-
const composeLocal =
|
|
2171
|
+
const envLocal = join4(staging, "control-plane.env");
|
|
2172
|
+
const caddyLocal = join4(staging, "Caddyfile");
|
|
2173
|
+
const composeLocal = join4(staging, "docker-compose.caddy.yml");
|
|
2187
2174
|
await writeFile(envLocal, opts.envContent, { mode: 384 });
|
|
2188
2175
|
await writeFile(caddyLocal, caddyfile(domain));
|
|
2189
2176
|
await writeFile(composeLocal, CADDY_COMPOSE);
|
|
@@ -18,9 +18,8 @@ import {
|
|
|
18
18
|
renderInnerCommand,
|
|
19
19
|
resolveCloudCheckpoint,
|
|
20
20
|
writeCloudCheckpointManifest
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-EXQCBM5Q.js";
|
|
21
|
+
} from "./chunk-6HD4PARX.js";
|
|
22
|
+
import "./chunk-JQFB2CNA.js";
|
|
24
23
|
import "./chunk-3LAHFDJF.js";
|
|
25
24
|
import {
|
|
26
25
|
UserFacingError,
|
|
@@ -35,8 +34,9 @@ import {
|
|
|
35
34
|
stageAllAgentStatic,
|
|
36
35
|
writeManagedSecrets,
|
|
37
36
|
writePreparedStateRaw
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-K6RA5GJI.js";
|
|
39
38
|
import "./chunk-EFW34I43.js";
|
|
39
|
+
import "./chunk-EXQCBM5Q.js";
|
|
40
40
|
import "./chunk-TZFWAJVB.js";
|
|
41
41
|
|
|
42
42
|
// ../../packages/sandbox-e2b/dist/chunk-4FOXSEPX.js
|
|
@@ -21,9 +21,8 @@ import {
|
|
|
21
21
|
renderInnerCommand,
|
|
22
22
|
resolveCloudCheckpoint,
|
|
23
23
|
writeCloudCheckpointManifest
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-EXQCBM5Q.js";
|
|
24
|
+
} from "./chunk-6HD4PARX.js";
|
|
25
|
+
import "./chunk-JQFB2CNA.js";
|
|
27
26
|
import "./chunk-3LAHFDJF.js";
|
|
28
27
|
import {
|
|
29
28
|
UserFacingError,
|
|
@@ -40,10 +39,11 @@ import {
|
|
|
40
39
|
stageOpencodeStaticForUpload,
|
|
41
40
|
writeManagedSecrets,
|
|
42
41
|
writePreparedStateRaw
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-K6RA5GJI.js";
|
|
44
43
|
import {
|
|
45
44
|
execa
|
|
46
45
|
} from "./chunk-EFW34I43.js";
|
|
46
|
+
import "./chunk-EXQCBM5Q.js";
|
|
47
47
|
import "./chunk-TZFWAJVB.js";
|
|
48
48
|
|
|
49
49
|
// ../../packages/sandbox-vercel/dist/chunk-6SDDZRAG.js
|
|
@@ -13,9 +13,8 @@ import {
|
|
|
13
13
|
} from "./chunk-OF242BLD.js";
|
|
14
14
|
import {
|
|
15
15
|
createCloudProvider
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-EXQCBM5Q.js";
|
|
16
|
+
} from "./chunk-6HD4PARX.js";
|
|
17
|
+
import "./chunk-JQFB2CNA.js";
|
|
19
18
|
import "./chunk-3LAHFDJF.js";
|
|
20
19
|
import {
|
|
21
20
|
DOCKER_CONTEXT_FILE_MAP,
|
|
@@ -29,8 +28,9 @@ import {
|
|
|
29
28
|
stageAllAgentStatic,
|
|
30
29
|
writeManagedSecrets,
|
|
31
30
|
writePreparedStateRaw
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-K6RA5GJI.js";
|
|
33
32
|
import "./chunk-EFW34I43.js";
|
|
33
|
+
import "./chunk-EXQCBM5Q.js";
|
|
34
34
|
import "./chunk-TZFWAJVB.js";
|
|
35
35
|
|
|
36
36
|
// ../../packages/sandbox-daytona/dist/chunk-6WHCUMQO.js
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; import { fileURLToPath as __f } from 'node:url'; import { dirname as __d } from 'node:path'; const require = __cr(import.meta.url); const __filename = __f(import.meta.url); const __dirname = __d(__filename);
|
|
2
|
+
import {
|
|
3
|
+
hubProfile
|
|
4
|
+
} from "./chunk-56YQBVN2.js";
|
|
2
5
|
import {
|
|
3
6
|
baseFreshnessFromFingerprints,
|
|
4
7
|
currentCloudBaseFingerprint
|
|
5
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6HD4PARX.js";
|
|
6
9
|
import {
|
|
7
10
|
enqueuePrepareJob,
|
|
8
11
|
enqueueQueueJob,
|
|
@@ -14,19 +17,7 @@ import {
|
|
|
14
17
|
readJob,
|
|
15
18
|
startRelayDaemon,
|
|
16
19
|
writeQueueLoginCode
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
PROVIDER_NAMES,
|
|
20
|
-
findProjectRoot,
|
|
21
|
-
hashProjectPath,
|
|
22
|
-
isProviderKind,
|
|
23
|
-
listProjectsConfigured,
|
|
24
|
-
loadEffectiveConfig,
|
|
25
|
-
providerMeta,
|
|
26
|
-
registerProject,
|
|
27
|
-
resolveDefaultCheckpoint,
|
|
28
|
-
unregisterProject
|
|
29
|
-
} from "./chunk-EXQCBM5Q.js";
|
|
20
|
+
} from "./chunk-JQFB2CNA.js";
|
|
30
21
|
import "./chunk-3LAHFDJF.js";
|
|
31
22
|
import {
|
|
32
23
|
BOX_WORKSPACE,
|
|
@@ -45,8 +36,20 @@ import {
|
|
|
45
36
|
secretsEnvPath,
|
|
46
37
|
setBoxDisplayName,
|
|
47
38
|
syncAgentboxSshConfig
|
|
48
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-K6RA5GJI.js";
|
|
49
40
|
import "./chunk-EFW34I43.js";
|
|
41
|
+
import {
|
|
42
|
+
PROVIDER_NAMES,
|
|
43
|
+
findProjectRoot,
|
|
44
|
+
hashProjectPath,
|
|
45
|
+
isProviderKind,
|
|
46
|
+
listProjectsConfigured,
|
|
47
|
+
loadEffectiveConfig,
|
|
48
|
+
providerMeta,
|
|
49
|
+
registerProject,
|
|
50
|
+
resolveDefaultCheckpoint,
|
|
51
|
+
unregisterProject
|
|
52
|
+
} from "./chunk-EXQCBM5Q.js";
|
|
50
53
|
import "./chunk-TZFWAJVB.js";
|
|
51
54
|
|
|
52
55
|
// server.ts
|
|
@@ -64,11 +67,11 @@ import { promisify } from "node:util";
|
|
|
64
67
|
var execFileAsync = promisify(execFile);
|
|
65
68
|
var DISPLAY_NAME_MAX = 60;
|
|
66
69
|
var IMPORTERS = {
|
|
67
|
-
docker: () => import("./dist-
|
|
68
|
-
daytona: () => import("./dist-
|
|
69
|
-
hetzner: () => import("./dist-
|
|
70
|
-
vercel: () => import("./dist-
|
|
71
|
-
e2b: () => import("./dist-
|
|
70
|
+
docker: () => import("./dist-3HR4RIPE.js"),
|
|
71
|
+
daytona: () => import("./dist-TOHA4OA5.js"),
|
|
72
|
+
hetzner: () => import("./dist-7GNKBKFV.js"),
|
|
73
|
+
vercel: () => import("./dist-OUNL2TCW.js"),
|
|
74
|
+
e2b: () => import("./dist-JWVTVHBT.js")
|
|
72
75
|
};
|
|
73
76
|
var prepareEnqueueChain = /* @__PURE__ */ new Map();
|
|
74
77
|
async function providerForBox(box) {
|
|
@@ -119,11 +122,24 @@ function mapBox(b) {
|
|
|
119
122
|
createdAt,
|
|
120
123
|
lastActivity: createdAt,
|
|
121
124
|
host: hostLabel(b),
|
|
125
|
+
provider: b.provider ?? "docker",
|
|
122
126
|
commits: null,
|
|
123
127
|
filesTouched: null,
|
|
124
128
|
error: status === "error" ? b.claudeSessionTitle ?? "Agent reported an error" : null,
|
|
125
129
|
webUrl: eps.find((e) => e.kind === "web")?.url ?? null,
|
|
126
|
-
vncUrl: eps.find((e) => e.kind === "vnc")?.url ?? null
|
|
130
|
+
vncUrl: eps.find((e) => e.kind === "vnc")?.url ?? null,
|
|
131
|
+
// Raw host-side fields for native clients (tray) — see Box for semantics.
|
|
132
|
+
state: b.state,
|
|
133
|
+
name: b.name,
|
|
134
|
+
projectRoot: root,
|
|
135
|
+
projectIndex: b.projectIndex,
|
|
136
|
+
vncEnabled: b.vncEnabled ?? false,
|
|
137
|
+
gitWorktrees: b.gitWorktrees?.map((w) => ({ kind: w.kind, branch: w.branch })),
|
|
138
|
+
claudeSessionTitle: b.claudeSessionTitle,
|
|
139
|
+
codexSessionTitle: b.codexSessionTitle,
|
|
140
|
+
opencodeSessionTitle: b.opencodeSessionTitle,
|
|
141
|
+
claudeActivity: b.claudeActivity,
|
|
142
|
+
codexActivity: b.codexActivity
|
|
127
143
|
};
|
|
128
144
|
}
|
|
129
145
|
async function hostBranchOf(repo) {
|
|
@@ -228,9 +244,14 @@ function mapJobToBox(job, status) {
|
|
|
228
244
|
createdAt,
|
|
229
245
|
lastActivity: createdAt,
|
|
230
246
|
host: job.providerName === "docker" ? "local \xB7 docker" : job.providerName,
|
|
247
|
+
provider: job.providerName ?? "docker",
|
|
231
248
|
commits: null,
|
|
232
249
|
filesTouched: null,
|
|
233
|
-
error: status === "error" ? job.reason ?? "create failed" : null
|
|
250
|
+
error: status === "error" ? job.reason ?? "create failed" : null,
|
|
251
|
+
// Raw host-side fields so native clients can group/label the synthetic row.
|
|
252
|
+
// `state` is deliberately absent — that's the synthetic-box marker.
|
|
253
|
+
name: job.boxName,
|
|
254
|
+
projectRoot: root
|
|
234
255
|
};
|
|
235
256
|
}
|
|
236
257
|
function isProviderConfigured(id) {
|
|
@@ -314,7 +335,14 @@ function listProviders(jobs) {
|
|
|
314
335
|
var FRESHNESS_TTL_MS = 6e4;
|
|
315
336
|
var freshnessCache = /* @__PURE__ */ new Map();
|
|
316
337
|
async function providerBaseFreshness(id, claudeInstall) {
|
|
317
|
-
if (id === "docker")
|
|
338
|
+
if (id === "docker") {
|
|
339
|
+
try {
|
|
340
|
+
const { evaluateDockerBaseFreshness } = await import("./dist-3HR4RIPE.js");
|
|
341
|
+
return await evaluateDockerBaseFreshness({ claudeInstall });
|
|
342
|
+
} catch {
|
|
343
|
+
return { state: "unknown" };
|
|
344
|
+
}
|
|
345
|
+
}
|
|
318
346
|
const stored = currentCloudBaseFingerprint(id);
|
|
319
347
|
const cached = freshnessCache.get(id);
|
|
320
348
|
let live;
|
|
@@ -340,7 +368,7 @@ async function listProvidersWithFreshness(base) {
|
|
|
340
368
|
}
|
|
341
369
|
return Promise.all(
|
|
342
370
|
base.map(async (p) => {
|
|
343
|
-
if (!isProviderKind(p.id)
|
|
371
|
+
if (!isProviderKind(p.id)) return p;
|
|
344
372
|
const fresh = await providerBaseFreshness(p.id, claudeInstall);
|
|
345
373
|
return {
|
|
346
374
|
...p,
|
|
@@ -566,6 +594,34 @@ function parseGitStatus(out) {
|
|
|
566
594
|
}
|
|
567
595
|
return { ok: true, branch: branch === "(detached)" ? void 0 : branch, dirty, ahead, behind };
|
|
568
596
|
}
|
|
597
|
+
function canOpenInHostApps() {
|
|
598
|
+
return hubProfile() === "localhost" && process.platform === "darwin";
|
|
599
|
+
}
|
|
600
|
+
function cleanCliError(e) {
|
|
601
|
+
const raw = e.stdout?.trim() || e.stderr?.trim() || e.message || "command failed";
|
|
602
|
+
const cleaned = raw.replace(/[\u0000-\u001f]+/g, "\n").replace(/\[[0-9;]*m/g, "").split("\n").map((line) => line.replace(/^[^\p{L}\p{N}'"(]+/u, "").trim()).filter((line) => line.length > 0).join(" ");
|
|
603
|
+
return cleaned || "command failed";
|
|
604
|
+
}
|
|
605
|
+
var OPEN_TARGETS_TTL_MS = 6e4;
|
|
606
|
+
var openTargetsCache = null;
|
|
607
|
+
async function probeOpenTargets() {
|
|
608
|
+
const now = Date.now();
|
|
609
|
+
if (openTargetsCache && now - openTargetsCache.at < OPEN_TARGETS_TTL_MS) {
|
|
610
|
+
return openTargetsCache.value;
|
|
611
|
+
}
|
|
612
|
+
const entry = process.env["AGENTBOX_CLI_ENTRY"];
|
|
613
|
+
if (!entry) return null;
|
|
614
|
+
try {
|
|
615
|
+
const { stdout } = await execFileAsync(process.execPath, [entry, "open", "--targets", "--json"], {
|
|
616
|
+
timeout: 1e4
|
|
617
|
+
});
|
|
618
|
+
const value = JSON.parse(stdout);
|
|
619
|
+
openTargetsCache = { at: now, value };
|
|
620
|
+
return value;
|
|
621
|
+
} catch {
|
|
622
|
+
return null;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
569
625
|
function createHubBackend(handle) {
|
|
570
626
|
return {
|
|
571
627
|
// authMode is layered on by source.ts (an env-derived concern), so the host
|
|
@@ -593,6 +649,13 @@ function createHubBackend(handle) {
|
|
|
593
649
|
async providersWithFreshness() {
|
|
594
650
|
return listProvidersWithFreshness(listProviders(await loadQueue()));
|
|
595
651
|
},
|
|
652
|
+
start: (id) => runLifecycle(id, async (box, provider) => {
|
|
653
|
+
const state = await provider.probeState(box);
|
|
654
|
+
if (state === "running") return;
|
|
655
|
+
if (state === "paused") await provider.resume(box);
|
|
656
|
+
else await provider.start(box);
|
|
657
|
+
await hubWriteSshConfig(box, provider);
|
|
658
|
+
}),
|
|
596
659
|
pause: (id) => runLifecycle(id, (box, provider) => provider.pause(box)),
|
|
597
660
|
resume: (id) => runLifecycle(id, async (box, provider) => {
|
|
598
661
|
await provider.resume(box);
|
|
@@ -811,6 +874,24 @@ function createHubBackend(handle) {
|
|
|
811
874
|
} catch (err) {
|
|
812
875
|
return { ok: false, error: errMsg(err) };
|
|
813
876
|
}
|
|
877
|
+
},
|
|
878
|
+
async openTargets() {
|
|
879
|
+
if (!canOpenInHostApps()) return { supported: false, targets: null };
|
|
880
|
+
return { supported: true, targets: await probeOpenTargets() };
|
|
881
|
+
},
|
|
882
|
+
async openIn(id, app) {
|
|
883
|
+
if (!canOpenInHostApps()) {
|
|
884
|
+
return { ok: false, error: "open-in actions require a local hub running on macOS" };
|
|
885
|
+
}
|
|
886
|
+
const entry = process.env["AGENTBOX_CLI_ENTRY"];
|
|
887
|
+
if (!entry) return { ok: false, error: "hub is missing AGENTBOX_CLI_ENTRY; cannot launch host apps" };
|
|
888
|
+
try {
|
|
889
|
+
await execFileAsync(process.execPath, [entry, "open", id, "--in", app], { timeout: 2e4 });
|
|
890
|
+
return { ok: true };
|
|
891
|
+
} catch (err) {
|
|
892
|
+
const e = err;
|
|
893
|
+
return { ok: false, error: cleanCliError(e) };
|
|
894
|
+
}
|
|
814
895
|
}
|
|
815
896
|
};
|
|
816
897
|
}
|
package/runtime/relay/bin.cjs
CHANGED
|
@@ -18102,6 +18102,8 @@ async function readState(path6 = STATE_FILE) {
|
|
|
18102
18102
|
if ((b.provider ?? "docker") === "docker" && !b.docker) {
|
|
18103
18103
|
b.docker = projectDockerFields(b);
|
|
18104
18104
|
}
|
|
18105
|
+
const legacySsh = b.cloud?.ssh;
|
|
18106
|
+
if (!b.ssh && legacySsh) b.ssh = legacySsh;
|
|
18105
18107
|
}
|
|
18106
18108
|
return parsed;
|
|
18107
18109
|
} catch (err) {
|
|
@@ -18153,7 +18155,7 @@ function hostOpenCommand() {
|
|
|
18153
18155
|
return process.platform === "linux" ? "xdg-open" : "open";
|
|
18154
18156
|
}
|
|
18155
18157
|
var PLUGINS_FILE = (0, import_path4.join)((0, import_os3.homedir)(), ".agentbox", "plugins.json");
|
|
18156
|
-
var SUPPORTED_SDK_API_VERSIONS = [1];
|
|
18158
|
+
var SUPPORTED_SDK_API_VERSIONS = [1, 2];
|
|
18157
18159
|
function isSupportedApiVersion(v) {
|
|
18158
18160
|
return SUPPORTED_SDK_API_VERSIONS.includes(v);
|
|
18159
18161
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/runtime/vercel/ctl.cjs
CHANGED
|
@@ -19667,6 +19667,8 @@ async function readState(path6 = STATE_FILE) {
|
|
|
19667
19667
|
if ((b.provider ?? "docker") === "docker" && !b.docker) {
|
|
19668
19668
|
b.docker = projectDockerFields(b);
|
|
19669
19669
|
}
|
|
19670
|
+
const legacySsh = b.cloud?.ssh;
|
|
19671
|
+
if (!b.ssh && legacySsh) b.ssh = legacySsh;
|
|
19670
19672
|
}
|
|
19671
19673
|
return parsed;
|
|
19672
19674
|
} catch (err) {
|
|
@@ -19718,7 +19720,7 @@ function hostOpenCommand() {
|
|
|
19718
19720
|
return process.platform === "linux" ? "xdg-open" : "open";
|
|
19719
19721
|
}
|
|
19720
19722
|
var PLUGINS_FILE = (0, import_path5.join)((0, import_os4.homedir)(), ".agentbox", "plugins.json");
|
|
19721
|
-
var SUPPORTED_SDK_API_VERSIONS = [1];
|
|
19723
|
+
var SUPPORTED_SDK_API_VERSIONS = [1, 2];
|
|
19722
19724
|
function isSupportedApiVersion(v) {
|
|
19723
19725
|
return SUPPORTED_SDK_API_VERSIONS.includes(v);
|
|
19724
19726
|
}
|
package/runtime/vercel/gh-shim
CHANGED
|
File without changes
|
package/runtime/vercel/git-shim
CHANGED
|
File without changes
|
|
File without changes
|
package/runtime/vercel/ntn-shim
CHANGED
|
File without changes
|
|
File without changes
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 AgentBox contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|