@madarco/agentbox 0.25.1 → 0.26.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 +36 -0
- package/README.md +8 -7
- package/dist/{_cloud-attach-FGMI2ZHO.js → _cloud-attach-7WRQH6XZ.js} +5 -5
- package/dist/{chunk-5VNL6SHJ.js → chunk-7ZZAZPYX.js} +3 -3
- package/dist/{chunk-ZTSVY3YL.js → chunk-BA2VLJVU.js} +3 -3
- package/dist/{chunk-3BR63LCB.js → chunk-DJQMK4RN.js} +12 -4
- package/dist/chunk-DJQMK4RN.js.map +1 -0
- package/dist/{chunk-6GZK74GT.js → chunk-DQHMDDAT.js} +2 -2
- package/dist/{chunk-P5U6AP6K.js → chunk-I2OAJS3L.js} +40 -377
- package/dist/{chunk-P5U6AP6K.js.map → chunk-I2OAJS3L.js.map} +1 -1
- package/dist/{chunk-5F5SOSDY.js → chunk-JGZSA5ZI.js} +72 -23
- package/dist/chunk-JGZSA5ZI.js.map +1 -0
- package/dist/{chunk-67VF2QZC.js → chunk-K5KOLYIL.js} +3 -3
- package/dist/{chunk-4LS2TOF3.js → chunk-PK2QF4IR.js} +569 -195
- package/dist/chunk-PK2QF4IR.js.map +1 -0
- package/dist/{chunk-3PSRBK24.js → chunk-UIFL7F2G.js} +54 -37
- package/dist/chunk-UIFL7F2G.js.map +1 -0
- package/dist/{chunk-4DBLYT2F.js → chunk-ZY7M7MXH.js} +41 -16
- package/dist/chunk-ZY7M7MXH.js.map +1 -0
- package/dist/chunk-ZYKNSHOH.js +259 -0
- package/dist/chunk-ZYKNSHOH.js.map +1 -0
- package/dist/{dist-X7R2EMJL.js → dist-5IICYSR6.js} +42 -374
- package/dist/{dist-X7R2EMJL.js.map → dist-5IICYSR6.js.map} +1 -1
- package/dist/{dist-5G42NFOG.js → dist-AR5CHRSV.js} +86 -45
- package/dist/{dist-5G42NFOG.js.map → dist-AR5CHRSV.js.map} +1 -1
- package/dist/{dist-AZUD2LUA.js → dist-DTNYMBQ5.js} +12 -12
- package/dist/{dist-MEK44IS5.js → dist-K4LNH3EC.js} +6 -6
- package/dist/{dist-SN6ABGMD.js → dist-POVRY7HO.js} +8 -4
- package/dist/{dist-SBDYDH7H.js → dist-U2SVLJUQ.js} +4 -2
- package/dist/{dist-4I7XHDC3.js → dist-XYY6SIKG.js} +6 -6
- package/dist/dist-YA7EXBGG.js +809 -0
- package/dist/dist-YA7EXBGG.js.map +1 -0
- package/dist/index.js +962 -583
- package/dist/index.js.map +1 -1
- package/dist/{prepared-state-75DIZ55S-5UAKJX3L.js → prepared-state-75DIZ55S-W6NU3S3B.js} +2 -2
- package/package.json +5 -4
- package/runtime/_shared/ctl.cjs +83 -36
- package/runtime/digitalocean/ctl.cjs +83 -36
- package/runtime/docker/packages/ctl/dist/bin.cjs +83 -36
- package/runtime/e2b/ctl.cjs +83 -36
- package/runtime/hetzner/ctl.cjs +83 -36
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
- package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +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/chunks/0-fj_better-auth_dist_adapters_kysely-adapter_index_mjs_0btft52._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +5 -5
- 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]__1-9g0ae._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__19pc87s._.js → [root-of-the-server]__1k8g143._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +4 -4
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0xy-j7z._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_010858m.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_04zwxnx.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_06exuc7.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2ldrt.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2tzep.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_116nh32.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_11dyjcb.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1_4knli.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__08-1wwu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0c9mbcn._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0gdfxj4._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0kc-hwp._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0lu73p6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__10bfmwi._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__18qvdzb._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1l2urlw._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ro6vh6._.js +1 -1
- 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/{auth-MVL4NCQC.js → auth-DC44GQZY.js} +2 -2
- package/runtime/hub/apps/hub/{auth-config-GRIXACTV.js → auth-config-LALRDYDO.js} +2 -2
- package/runtime/hub/apps/hub/{chunk-JLG5JJXD.js → chunk-3FJNKSNZ.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-RSENJ2FT.js → chunk-4QY2VZCF.js} +502 -132
- package/runtime/hub/apps/hub/{chunk-23AU7VYS.js → chunk-BARD2DI6.js} +11 -3
- package/runtime/hub/apps/hub/{chunk-V3OMPMI3.js → chunk-QSMPSV5Z.js} +70 -21
- package/runtime/hub/apps/hub/{chunk-GARA7RQW.js → chunk-XZZXPEVV.js} +57 -36
- package/runtime/hub/apps/hub/{dist-WZKTIA2R.js → dist-3ENKQN5G.js} +35 -365
- package/runtime/hub/apps/hub/{dist-TP4SXMDY.js → dist-6VGJOQYK.js} +84 -43
- package/runtime/hub/apps/hub/{dist-JVU3QCLG.js → dist-AE6IV4FV.js} +4 -4
- package/runtime/hub/apps/hub/{dist-IZ2JCN5R.js → dist-EQV4L7KP.js} +3 -1
- package/runtime/hub/apps/hub/dist-NNBELNA7.js +1017 -0
- package/runtime/hub/apps/hub/{dist-DZGSA3US.js → dist-RJJ2SDYO.js} +4 -4
- package/runtime/hub/apps/hub/{dist-VWSHZIPN.js → dist-TU7D6UTB.js} +37 -366
- package/runtime/hub/apps/hub/{dist-YWY2DSSL.js → dist-WAZKGVYL.js} +7 -3
- package/runtime/hub/apps/hub/{hub-token-BJG6Q5II.js → hub-token-COBZGSLS.js} +2 -2
- package/runtime/hub/apps/hub/package.json +1 -0
- package/runtime/hub/apps/hub/{prepared-state-75DIZ55S-JDILR4OP.js → prepared-state-75DIZ55S-NYEDSU2U.js} +1 -1
- package/runtime/hub/apps/hub/server.js +20 -16
- package/runtime/relay/bin.cjs +57 -20
- package/runtime/vercel/ctl.cjs +83 -36
- package/dist/chunk-3BR63LCB.js.map +0 -1
- package/dist/chunk-3PSRBK24.js.map +0 -1
- package/dist/chunk-4DBLYT2F.js.map +0 -1
- package/dist/chunk-4LS2TOF3.js.map +0 -1
- package/dist/chunk-5F5SOSDY.js.map +0 -1
- package/runtime/hub/apps/hub/.next/server/chunks/0zhp_better-auth_dist_adapters_kysely-adapter_index_mjs_1rl4qnh._.js +0 -3
- /package/dist/{_cloud-attach-FGMI2ZHO.js.map → _cloud-attach-7WRQH6XZ.js.map} +0 -0
- /package/dist/{chunk-5VNL6SHJ.js.map → chunk-7ZZAZPYX.js.map} +0 -0
- /package/dist/{chunk-ZTSVY3YL.js.map → chunk-BA2VLJVU.js.map} +0 -0
- /package/dist/{chunk-6GZK74GT.js.map → chunk-DQHMDDAT.js.map} +0 -0
- /package/dist/{chunk-67VF2QZC.js.map → chunk-K5KOLYIL.js.map} +0 -0
- /package/dist/{dist-4I7XHDC3.js.map → dist-DTNYMBQ5.js.map} +0 -0
- /package/dist/{dist-MEK44IS5.js.map → dist-K4LNH3EC.js.map} +0 -0
- /package/dist/{dist-AZUD2LUA.js.map → dist-POVRY7HO.js.map} +0 -0
- /package/dist/{dist-SBDYDH7H.js.map → dist-U2SVLJUQ.js.map} +0 -0
- /package/dist/{dist-SN6ABGMD.js.map → dist-XYY6SIKG.js.map} +0 -0
- /package/dist/{prepared-state-75DIZ55S-5UAKJX3L.js.map → prepared-state-75DIZ55S-W6NU3S3B.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{fo5EgsHa6PFLTBagfLiuM → mrhWWwzD3oh05le9SRnlA}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{fo5EgsHa6PFLTBagfLiuM → mrhWWwzD3oh05le9SRnlA}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{fo5EgsHa6PFLTBagfLiuM → mrhWWwzD3oh05le9SRnlA}/_ssgManifest.js +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
baseFreshnessFromFingerprints,
|
|
4
4
|
currentCloudBaseFingerprint,
|
|
5
5
|
openWebAppOnVncScreen
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BARD2DI6.js";
|
|
7
7
|
import {
|
|
8
8
|
deleteJob,
|
|
9
9
|
enqueuePrepareJob,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
readJob,
|
|
18
18
|
startRelayDaemon,
|
|
19
19
|
writeQueueLoginCode
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XZZXPEVV.js";
|
|
21
21
|
import "./chunk-3LAHFDJF.js";
|
|
22
22
|
import {
|
|
23
23
|
BOX_WORKSPACE,
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
secretsEnvPath,
|
|
37
37
|
setBoxDisplayName,
|
|
38
38
|
syncAgentboxSshConfig
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4QY2VZCF.js";
|
|
40
40
|
import "./chunk-UDZ3VXRF.js";
|
|
41
41
|
import {
|
|
42
42
|
hubProfile
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3FJNKSNZ.js";
|
|
44
44
|
import {
|
|
45
45
|
PROVIDER_NAMES,
|
|
46
46
|
findProjectRoot,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
registerProject,
|
|
53
53
|
resolveDefaultCheckpoint,
|
|
54
54
|
unregisterProject
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-QSMPSV5Z.js";
|
|
56
56
|
import "./chunk-OG4KH2FZ.js";
|
|
57
57
|
|
|
58
58
|
// server.ts
|
|
@@ -70,12 +70,13 @@ import { promisify } from "node:util";
|
|
|
70
70
|
var execFileAsync = promisify(execFile);
|
|
71
71
|
var DISPLAY_NAME_MAX = 60;
|
|
72
72
|
var IMPORTERS = {
|
|
73
|
-
docker: () => import("./dist-
|
|
74
|
-
daytona: () => import("./dist-
|
|
75
|
-
hetzner: () => import("./dist-
|
|
76
|
-
vercel: () => import("./dist-
|
|
77
|
-
e2b: () => import("./dist-
|
|
78
|
-
digitalocean: () => import("./dist-
|
|
73
|
+
docker: () => import("./dist-WAZKGVYL.js"),
|
|
74
|
+
daytona: () => import("./dist-6VGJOQYK.js"),
|
|
75
|
+
hetzner: () => import("./dist-TU7D6UTB.js"),
|
|
76
|
+
vercel: () => import("./dist-AE6IV4FV.js"),
|
|
77
|
+
e2b: () => import("./dist-RJJ2SDYO.js"),
|
|
78
|
+
digitalocean: () => import("./dist-3ENKQN5G.js"),
|
|
79
|
+
"remote-docker": () => import("./dist-NNBELNA7.js")
|
|
79
80
|
};
|
|
80
81
|
var prepareEnqueueChain = /* @__PURE__ */ new Map();
|
|
81
82
|
async function providerForBox(box) {
|
|
@@ -269,7 +270,10 @@ var PROVIDER_CRED_KEYS = {
|
|
|
269
270
|
daytona: ["DAYTONA_API_KEY", "DAYTONA_JWT_TOKEN"],
|
|
270
271
|
hetzner: ["HCLOUD_TOKEN"],
|
|
271
272
|
vercel: ["VERCEL_TOKEN", "VERCEL_OIDC_TOKEN", "VERCEL_AUTH_SOURCE"],
|
|
272
|
-
digitalocean: ["DIGITALOCEAN_TOKEN"]
|
|
273
|
+
digitalocean: ["DIGITALOCEAN_TOKEN"],
|
|
274
|
+
// remote-docker authenticates as you, over your own ~/.ssh/config — there is
|
|
275
|
+
// no credential to store, so there is none to check.
|
|
276
|
+
"remote-docker": []
|
|
273
277
|
};
|
|
274
278
|
function readSecretsKeys() {
|
|
275
279
|
const out = /* @__PURE__ */ new Set();
|
|
@@ -342,7 +346,7 @@ var freshnessCache = /* @__PURE__ */ new Map();
|
|
|
342
346
|
async function providerBaseFreshness(id, claudeInstall) {
|
|
343
347
|
if (id === "docker") {
|
|
344
348
|
try {
|
|
345
|
-
const { evaluateDockerBaseFreshness } = await import("./dist-
|
|
349
|
+
const { evaluateDockerBaseFreshness } = await import("./dist-WAZKGVYL.js");
|
|
346
350
|
return await evaluateDockerBaseFreshness({ claudeInstall });
|
|
347
351
|
} catch {
|
|
348
352
|
return { state: "unknown" };
|
|
@@ -935,9 +939,9 @@ var host = process.env.AGENTBOX_HUB_HOST ?? "127.0.0.1";
|
|
|
935
939
|
process.env.AGENTBOX_HUB_PROFILE ??= host === "127.0.0.1" ? "localhost" : "hetzner";
|
|
936
940
|
if (host !== "127.0.0.1") process.env.AGENTBOX_HUB_AUTH ??= "on";
|
|
937
941
|
async function main() {
|
|
938
|
-
const { authMode } = await import("./auth-config-
|
|
942
|
+
const { authMode } = await import("./auth-config-LALRDYDO.js");
|
|
939
943
|
if (process.env.AGENTBOX_HUB_PROFILE === "localhost" && process.env.AGENTBOX_HUB_AUTH !== "off") {
|
|
940
|
-
const { ensureHubToken } = await import("./hub-token-
|
|
944
|
+
const { ensureHubToken } = await import("./hub-token-COBZGSLS.js");
|
|
941
945
|
process.env.AGENTBOX_HUB_TOKEN = await ensureHubToken();
|
|
942
946
|
}
|
|
943
947
|
const dir = import.meta.dirname;
|
|
@@ -967,7 +971,7 @@ async function main() {
|
|
|
967
971
|
globalThis.__AGENTBOX_HUB_NOTIFIER = daemon.handle.hubNotifier;
|
|
968
972
|
const mode = authMode();
|
|
969
973
|
if (mode === "password") {
|
|
970
|
-
const { ensureAuthReady } = await import("./auth-
|
|
974
|
+
const { ensureAuthReady } = await import("./auth-DC44GQZY.js");
|
|
971
975
|
await ensureAuthReady();
|
|
972
976
|
process.stdout.write("agentbox-hub: auth ready\n");
|
|
973
977
|
}
|
package/runtime/relay/bin.cjs
CHANGED
|
@@ -18937,7 +18937,7 @@ var PROVIDERS = [
|
|
|
18937
18937
|
name: "daytona",
|
|
18938
18938
|
kind: "cloud",
|
|
18939
18939
|
label: "Daytona (cloud sandbox)",
|
|
18940
|
-
loginHint: "
|
|
18940
|
+
loginHint: "paste an API key from the Daytona dashboard",
|
|
18941
18941
|
rebuildMinutes: "7",
|
|
18942
18942
|
blurb: "Daytona Cloud sandboxes",
|
|
18943
18943
|
sizeDesc: "Per-provider override of `box.size` for daytona. `cpu-memory-disk` GB spec (e.g. `4-8-20`). Only honored on the image/Dockerfile create path; on the snapshot path the size is fixed at bake time (Daytona rejects custom resources on snapshot-resume).",
|
|
@@ -18982,6 +18982,16 @@ var PROVIDERS = [
|
|
|
18982
18982
|
blurb: "DigitalOcean Droplets",
|
|
18983
18983
|
sizeDesc: "Per-provider override of `box.size` for digitalocean. Droplet size slug (e.g. `s-2vcpu-4gb`, `s-4vcpu-8gb`).",
|
|
18984
18984
|
imageDesc: "Per-provider override of `box.image` for digitalocean (numeric snapshot id). Written by `agentbox prepare --provider digitalocean`."
|
|
18985
|
+
},
|
|
18986
|
+
{
|
|
18987
|
+
name: "remote-docker",
|
|
18988
|
+
kind: "cloud",
|
|
18989
|
+
label: "Remote Docker (your own machine over SSH)",
|
|
18990
|
+
loginHint: "point it at an SSH host you can already reach (no login needed)",
|
|
18991
|
+
rebuildMinutes: "1-3",
|
|
18992
|
+
blurb: "Docker on a remote machine over SSH",
|
|
18993
|
+
sizeDesc: "Per-provider override of `box.size` for remote-docker. `cpu-memory` GB spec (e.g. `4-8`) mapped to the container's `--cpus` / `--memory`. Empty = unlimited (the remote engine's defaults).",
|
|
18994
|
+
imageDesc: "Per-provider override of `box.image` for remote-docker (a docker image ref on the REMOTE engine). Normally left empty: the provider derives a fingerprint-tagged ref (`agentbox/box:<sha12>`) and ensures it on the remote itself."
|
|
18985
18995
|
}
|
|
18986
18996
|
];
|
|
18987
18997
|
var PROVIDER_NAMES = PROVIDERS.map((p) => p.name);
|
|
@@ -18989,7 +18999,7 @@ var CLOUD_PROVIDER_NAMES = PROVIDERS.filter(
|
|
|
18989
18999
|
(p) => p.kind === "cloud"
|
|
18990
19000
|
).map((p) => p.name);
|
|
18991
19001
|
function providerKeyCap(name) {
|
|
18992
|
-
return name.charAt(0).toUpperCase() +
|
|
19002
|
+
return name.split("-").filter((seg) => seg.length > 0).map((seg) => seg.charAt(0).toUpperCase() + seg.slice(1)).join("");
|
|
18993
19003
|
}
|
|
18994
19004
|
function perProviderConfigKey(base, provider) {
|
|
18995
19005
|
return `box.${base}${providerKeyCap(provider)}`;
|
|
@@ -19005,6 +19015,7 @@ var BUILT_IN_DEFAULTS = {
|
|
|
19005
19015
|
defaultCheckpointVercel: "",
|
|
19006
19016
|
defaultCheckpointE2b: "",
|
|
19007
19017
|
defaultCheckpointDigitalocean: "",
|
|
19018
|
+
defaultCheckpointRemoteDocker: "",
|
|
19008
19019
|
size: "",
|
|
19009
19020
|
sizeDocker: "",
|
|
19010
19021
|
sizeDaytona: "",
|
|
@@ -19012,6 +19023,7 @@ var BUILT_IN_DEFAULTS = {
|
|
|
19012
19023
|
sizeVercel: "",
|
|
19013
19024
|
sizeE2b: "",
|
|
19014
19025
|
sizeDigitalocean: "",
|
|
19026
|
+
sizeRemoteDocker: "",
|
|
19015
19027
|
withPlaywright: false,
|
|
19016
19028
|
claudeInstall: "native",
|
|
19017
19029
|
withEnv: false,
|
|
@@ -19029,6 +19041,9 @@ var BUILT_IN_DEFAULTS = {
|
|
|
19029
19041
|
imageVercel: "",
|
|
19030
19042
|
imageE2b: "",
|
|
19031
19043
|
imageDigitalocean: "",
|
|
19044
|
+
// Empty = the provider derives the fingerprint-tagged ref itself and ensures
|
|
19045
|
+
// it on the remote engine; set only to pin a hand-built image there.
|
|
19046
|
+
imageRemoteDocker: "",
|
|
19032
19047
|
// Mirrors BOX_IMAGE_REGISTRY in @agentbox/sandbox-docker. Empty disables the
|
|
19033
19048
|
// registry pull (always build the docker base image locally).
|
|
19034
19049
|
imageRegistry: "ghcr.io/madarco/agentbox/box",
|
|
@@ -19050,6 +19065,9 @@ var BUILT_IN_DEFAULTS = {
|
|
|
19050
19065
|
// Empty = leave boxes in the account's default project (DigitalOcean's own
|
|
19051
19066
|
// behavior). There is no sane default id to pick — it differs per account.
|
|
19052
19067
|
digitaloceanProject: "",
|
|
19068
|
+
// Empty = no default remote engine; `--provider remote-docker` then errors
|
|
19069
|
+
// unless the SSH destination came from `docker:<host>` / `--remote-host`.
|
|
19070
|
+
remoteDockerHost: "",
|
|
19053
19071
|
vercelTimeoutMs: 27e5,
|
|
19054
19072
|
vercelNetworkPolicy: "",
|
|
19055
19073
|
e2bTimeoutMs: 27e5,
|
|
@@ -19325,6 +19343,11 @@ var KEY_REGISTRY = [
|
|
|
19325
19343
|
type: "string",
|
|
19326
19344
|
description: "DigitalOcean Project new --provider digitalocean boxes are placed in \u2014 a name or the project's UUID. Unset (the default) leaves boxes in the account's default project. Set it per repo via `agentbox.yaml`, or globally at `agentbox digitalocean login`. DigitalOcean-only; ignored by other providers."
|
|
19327
19345
|
},
|
|
19346
|
+
{
|
|
19347
|
+
key: "box.remoteDockerHost",
|
|
19348
|
+
type: "string",
|
|
19349
|
+
description: "Default SSH destination new --provider remote-docker boxes run their container on \u2014 an `~/.ssh/config` alias or `[user@]host[:port]`. Overridable per-create with `agentbox docker:<host> \u2026` or `--remote-host`. SSH auth comes entirely from your own `~/.ssh/config` + agent. remote-docker-only; ignored by other providers."
|
|
19350
|
+
},
|
|
19328
19351
|
{
|
|
19329
19352
|
key: "box.vercelTimeoutMs",
|
|
19330
19353
|
type: "int",
|
|
@@ -19617,7 +19640,7 @@ function coerceTypedValue(raw, desc, where) {
|
|
|
19617
19640
|
return raw;
|
|
19618
19641
|
}
|
|
19619
19642
|
}
|
|
19620
|
-
function parseUserConfig(text, where) {
|
|
19643
|
+
function parseUserConfig(text, where, opts = {}) {
|
|
19621
19644
|
let doc;
|
|
19622
19645
|
try {
|
|
19623
19646
|
doc = (0, import_yaml.parse)(text);
|
|
@@ -19630,9 +19653,9 @@ function parseUserConfig(text, where) {
|
|
|
19630
19653
|
if (!isPlainObject2(doc)) {
|
|
19631
19654
|
throw new UserConfigError(`${where}: top-level must be a mapping`);
|
|
19632
19655
|
}
|
|
19633
|
-
return parseUserConfigObject(doc, where);
|
|
19656
|
+
return parseUserConfigObject(doc, where, opts);
|
|
19634
19657
|
}
|
|
19635
|
-
function parseUserConfigObject(doc, where) {
|
|
19658
|
+
function parseUserConfigObject(doc, where, opts = {}) {
|
|
19636
19659
|
if (doc === null || doc === void 0) return {};
|
|
19637
19660
|
if (!isPlainObject2(doc)) {
|
|
19638
19661
|
throw new UserConfigError(`${where}: must be a mapping`);
|
|
@@ -19650,22 +19673,23 @@ function parseUserConfigObject(doc, where) {
|
|
|
19650
19673
|
}
|
|
19651
19674
|
const branchSpec = BRANCHES.get(branchName);
|
|
19652
19675
|
if (!branchSpec) {
|
|
19653
|
-
|
|
19654
|
-
`${where}: unknown config section "${branchName}"
|
|
19676
|
+
opts.onWarning?.(
|
|
19677
|
+
`${where}: unknown config section "${branchName}" \u2014 ignored (typo, or set by a newer agentbox)`
|
|
19655
19678
|
);
|
|
19679
|
+
continue;
|
|
19656
19680
|
}
|
|
19657
19681
|
if (branchRaw === null || branchRaw === void 0) continue;
|
|
19658
19682
|
if (!isPlainObject2(branchRaw)) {
|
|
19659
19683
|
throw new UserConfigError(`${where}.${branchName}: must be a mapping`);
|
|
19660
19684
|
}
|
|
19661
|
-
const branchOut = parseBranchObject(branchSpec, branchName, branchRaw, "", where);
|
|
19685
|
+
const branchOut = parseBranchObject(branchSpec, branchName, branchRaw, "", where, opts);
|
|
19662
19686
|
if (Object.keys(branchOut).length > 0) {
|
|
19663
19687
|
out[branchName] = branchOut;
|
|
19664
19688
|
}
|
|
19665
19689
|
}
|
|
19666
19690
|
return out;
|
|
19667
19691
|
}
|
|
19668
|
-
function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where) {
|
|
19692
|
+
function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where, opts) {
|
|
19669
19693
|
const out = {};
|
|
19670
19694
|
for (const [name, value] of Object.entries(raw)) {
|
|
19671
19695
|
if (value === void 0) continue;
|
|
@@ -19676,7 +19700,7 @@ function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where)
|
|
|
19676
19700
|
continue;
|
|
19677
19701
|
}
|
|
19678
19702
|
if (isPlainObject2(value) && branchHasLeafBelow(branchSpec, qualified)) {
|
|
19679
|
-
const sub = parseBranchObject(branchSpec, branchName, value, qualified, where);
|
|
19703
|
+
const sub = parseBranchObject(branchSpec, branchName, value, qualified, where, opts);
|
|
19680
19704
|
if (Object.keys(sub).length > 0) out[name] = sub;
|
|
19681
19705
|
continue;
|
|
19682
19706
|
}
|
|
@@ -19686,8 +19710,8 @@ function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where)
|
|
|
19686
19710
|
`${where}.${branchName}.${qualified} was renamed to ${renamedTo} \u2014 update your config`
|
|
19687
19711
|
);
|
|
19688
19712
|
}
|
|
19689
|
-
|
|
19690
|
-
`${where}.${branchName}: unknown key "${qualified}"
|
|
19713
|
+
opts.onWarning?.(
|
|
19714
|
+
`${where}.${branchName}: unknown key "${qualified}" \u2014 ignored (typo, or set by a newer agentbox)`
|
|
19691
19715
|
);
|
|
19692
19716
|
}
|
|
19693
19717
|
return out;
|
|
@@ -19751,7 +19775,12 @@ function projectConfigFile(absPath) {
|
|
|
19751
19775
|
function workspaceConfigFile(workspacePath) {
|
|
19752
19776
|
return (0, import_path7.join)(workspacePath, WORKSPACE_CONFIG_BASENAME);
|
|
19753
19777
|
}
|
|
19754
|
-
|
|
19778
|
+
var warningSink = null;
|
|
19779
|
+
function collectWarning(into, message) {
|
|
19780
|
+
into.push(message);
|
|
19781
|
+
warningSink?.(message);
|
|
19782
|
+
}
|
|
19783
|
+
async function loadOptionalUserConfig(path6, warnings) {
|
|
19755
19784
|
let text;
|
|
19756
19785
|
try {
|
|
19757
19786
|
text = await (0, import_promises17.readFile)(path6, "utf8");
|
|
@@ -19759,9 +19788,9 @@ async function loadOptionalUserConfig(path6) {
|
|
|
19759
19788
|
if (err.code === "ENOENT") return {};
|
|
19760
19789
|
throw err;
|
|
19761
19790
|
}
|
|
19762
|
-
return parseUserConfig(text, path6);
|
|
19791
|
+
return parseUserConfig(text, path6, { onWarning: (m) => collectWarning(warnings, m) });
|
|
19763
19792
|
}
|
|
19764
|
-
async function loadProjectAgentboxDefaults(workspacePath) {
|
|
19793
|
+
async function loadProjectAgentboxDefaults(workspacePath, warnings = []) {
|
|
19765
19794
|
const path6 = workspaceConfigFile(workspacePath);
|
|
19766
19795
|
let text;
|
|
19767
19796
|
try {
|
|
@@ -19781,16 +19810,19 @@ async function loadProjectAgentboxDefaults(workspacePath) {
|
|
|
19781
19810
|
}
|
|
19782
19811
|
const defaults = doc["defaults"];
|
|
19783
19812
|
if (defaults === void 0 || defaults === null) return {};
|
|
19784
|
-
return parseUserConfigObject(defaults, `${path6} defaults
|
|
19813
|
+
return parseUserConfigObject(defaults, `${path6} defaults`, {
|
|
19814
|
+
onWarning: (m) => collectWarning(warnings, m)
|
|
19815
|
+
});
|
|
19785
19816
|
}
|
|
19786
19817
|
async function loadEffectiveConfig(cwd, opts = {}) {
|
|
19787
19818
|
const projectRoot = await findProjectRoot(cwd);
|
|
19788
19819
|
const projectPath = projectConfigFile(projectRoot.root);
|
|
19789
19820
|
const workspacePath = projectRoot.hasAgentboxYaml ? workspaceConfigFile(projectRoot.root) : null;
|
|
19821
|
+
const warnings = [];
|
|
19790
19822
|
const [globalValues, projectValues, workspaceValues] = await Promise.all([
|
|
19791
|
-
loadOptionalUserConfig(GLOBAL_CONFIG_FILE),
|
|
19792
|
-
loadOptionalUserConfig(projectPath),
|
|
19793
|
-
workspacePath ? loadProjectAgentboxDefaults(projectRoot.root) : Promise.resolve({})
|
|
19823
|
+
loadOptionalUserConfig(GLOBAL_CONFIG_FILE, warnings),
|
|
19824
|
+
loadOptionalUserConfig(projectPath, warnings),
|
|
19825
|
+
workspacePath ? loadProjectAgentboxDefaults(projectRoot.root, warnings) : Promise.resolve({})
|
|
19794
19826
|
]);
|
|
19795
19827
|
const cliValues = opts.cliOverrides ?? {};
|
|
19796
19828
|
const { effective, sources } = mergeLayers({
|
|
@@ -19811,7 +19843,8 @@ async function loadEffectiveConfig(cwd, opts = {}) {
|
|
|
19811
19843
|
sources,
|
|
19812
19844
|
projectRoot: projectRoot.root,
|
|
19813
19845
|
projectHash: hashProjectPath(projectRoot.root),
|
|
19814
|
-
hasAgentboxYaml: projectRoot.hasAgentboxYaml
|
|
19846
|
+
hasAgentboxYaml: projectRoot.hasAgentboxYaml,
|
|
19847
|
+
warnings
|
|
19815
19848
|
};
|
|
19816
19849
|
}
|
|
19817
19850
|
function mergeLayers(input) {
|
|
@@ -20492,6 +20525,10 @@ async function resolveCloudBackend(name) {
|
|
|
20492
20525
|
const pkg = "@agentbox/sandbox-digitalocean";
|
|
20493
20526
|
return loadCloudBackend(pkg, async () => (await import(pkg)).digitaloceanBackend);
|
|
20494
20527
|
}
|
|
20528
|
+
if (name === "remote-docker") {
|
|
20529
|
+
const pkg = "@agentbox/sandbox-remote-docker";
|
|
20530
|
+
return loadCloudBackend(pkg, async () => (await import(pkg)).remoteDockerBackend);
|
|
20531
|
+
}
|
|
20495
20532
|
const plugin = pluginForProvider(name);
|
|
20496
20533
|
if (plugin) {
|
|
20497
20534
|
if (!isSupportedApiVersion(plugin.apiVersion)) {
|