@madarco/agentbox 0.24.6 → 0.25.1
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 +69 -0
- package/LICENSE +21 -0
- package/README.md +4 -0
- package/dist/{_cloud-attach-ESCPOKG5.js → _cloud-attach-FGMI2ZHO.js} +5 -5
- package/dist/{chunk-4HPLS5HJ.js → chunk-3BR63LCB.js} +110 -9
- package/dist/chunk-3BR63LCB.js.map +1 -0
- package/dist/{chunk-OSPM4Q5V.js → chunk-3PSRBK24.js} +6 -6
- package/dist/chunk-3PSRBK24.js.map +1 -0
- package/dist/{chunk-CE3S7UDQ.js → chunk-4DBLYT2F.js} +44 -12
- package/dist/chunk-4DBLYT2F.js.map +1 -0
- package/dist/{chunk-3MDYQROX.js → chunk-4LS2TOF3.js} +17 -13
- package/dist/chunk-4LS2TOF3.js.map +1 -0
- package/dist/{chunk-H6A4BQMG.js → chunk-5F5SOSDY.js} +40 -1
- package/dist/chunk-5F5SOSDY.js.map +1 -0
- package/dist/{chunk-LJMGHFLZ.js → chunk-5VNL6SHJ.js} +3 -3
- package/dist/{chunk-7DPDUZ7L.js → chunk-67VF2QZC.js} +194 -56
- package/dist/chunk-67VF2QZC.js.map +1 -0
- package/dist/{chunk-RFRWS5CD.js → chunk-6GZK74GT.js} +2 -2
- package/dist/chunk-G3H2L3O2.js +0 -0
- package/dist/{chunk-5JDOTQTM.js → chunk-P5U6AP6K.js} +4 -4
- package/dist/chunk-WJFZJZIM.js +0 -0
- package/dist/{chunk-QHISF6O6.js → chunk-ZTSVY3YL.js} +3 -3
- package/dist/cloud-poller-SUNA6ZQC-7M5LJHHE.js +0 -0
- package/dist/{dist-VFPT5TDH.js → dist-4I7XHDC3.js} +6 -6
- package/dist/dist-5G42NFOG.js +677 -0
- package/dist/dist-5G42NFOG.js.map +1 -0
- package/dist/{dist-TRKHS6I7.js → dist-AZUD2LUA.js} +6 -6
- package/dist/{dist-FGXCG4JY.js → dist-MEK44IS5.js} +6 -6
- package/dist/{dist-HPPHBZTO.js → dist-SBDYDH7H.js} +8 -2
- package/dist/{dist-NOUPH5E6.js → dist-SN6ABGMD.js} +4 -4
- package/dist/{dist-3M53BF4E.js → dist-X7R2EMJL.js} +6 -6
- package/dist/index.js +114 -38
- package/dist/index.js.map +1 -1
- package/dist/{prepared-state-BUO75YLZ-46W2PAHH.js → prepared-state-75DIZ55S-5UAKJX3L.js} +2 -2
- package/package.json +29 -30
- 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 +31 -4
- 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/digitalocean/agentbox-checkpoint-cleanup +0 -0
- package/runtime/digitalocean/agentbox-dockerd-start +0 -0
- package/runtime/digitalocean/agentbox-open +0 -0
- package/runtime/digitalocean/agentbox-portless-trust +0 -0
- package/runtime/digitalocean/agentbox-vnc-start +0 -0
- package/runtime/digitalocean/ctl.cjs +31 -4
- package/runtime/digitalocean/gh-shim +0 -0
- package/runtime/digitalocean/git-shim +0 -0
- package/runtime/digitalocean/linear-shim +0 -0
- package/runtime/digitalocean/ntn-shim +0 -0
- package/runtime/digitalocean/scripts/install-box.sh +0 -0
- package/runtime/docker/packages/ctl/dist/bin.cjs +31 -4
- 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 +0 -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 +31 -4
- 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 +31 -4
- 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/build-manifest.json +3 -3
- 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/[root-of-the-server]__0d1lmiq._.js +6 -6
- package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.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-HY5K55Y5.js → auth-MVL4NCQC.js} +3 -3
- package/runtime/hub/apps/hub/{auth-config-MNW2XGKK.js → auth-config-GRIXACTV.js} +3 -3
- package/runtime/hub/apps/hub/{chunk-5KMJIVZC.js → chunk-23AU7VYS.js} +111 -10
- package/runtime/hub/apps/hub/{chunk-OF242BLD.js → chunk-CKBHQ7OI.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-DNR2YM2G.js → chunk-GARA7RQW.js} +58 -10
- package/runtime/hub/apps/hub/{chunk-PROXBLRJ.js → chunk-JLG5JJXD.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-TZFWAJVB.js → chunk-OG4KH2FZ.js} +5 -0
- package/runtime/hub/apps/hub/chunk-QYJ37CUJ.js +62140 -0
- package/runtime/hub/apps/hub/{chunk-EY6HEDTK.js → chunk-RSENJ2FT.js} +17 -13
- package/runtime/hub/apps/hub/{chunk-EFW34I43.js → chunk-UDZ3VXRF.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-TRUQCO4U.js → chunk-V3OMPMI3.js} +40 -1
- package/runtime/hub/apps/hub/{cloud-poller-SUNA6ZQC-VSKVMYHL.js → cloud-poller-SUNA6ZQC-YAWTNA2W.js} +1 -1
- package/runtime/hub/apps/hub/{dist-KV5ESR24.js → dist-DZGSA3US.js} +7 -7
- package/runtime/hub/apps/hub/{dist-NTKPAYA3.js → dist-IZ2JCN5R.js} +8 -2
- package/runtime/hub/apps/hub/{dist-M73U3ZDH.js → dist-JVU3QCLG.js} +7 -7
- package/runtime/hub/apps/hub/{dist-3DCKZYID.js → dist-TP4SXMDY.js} +596 -113
- package/runtime/hub/apps/hub/{dist-YCRESLWD.js → dist-VWSHZIPN.js} +7 -7
- package/runtime/hub/apps/hub/{dist-SX2NXGI6.js → dist-WZKTIA2R.js} +7 -7
- package/runtime/hub/apps/hub/{dist-RSWTJWRN.js → dist-YWY2DSSL.js} +5 -5
- package/runtime/hub/apps/hub/esm-VGBJAFLR.js +79 -0
- package/runtime/hub/apps/hub/{execa-4DLVNM6E.js → execa-AFY4ZODY.js} +2 -2
- package/runtime/hub/apps/hub/{hub-token-QKQWV2I6.js → hub-token-BJG6Q5II.js} +3 -3
- package/runtime/hub/apps/hub/{prepared-state-BUO75YLZ-KR4YLKDC.js → prepared-state-75DIZ55S-JDILR4OP.js} +3 -3
- package/runtime/hub/apps/hub/server.js +19 -19
- package/runtime/relay/bin.cjs +177 -42
- 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 +31 -4
- 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/dist/chunk-3MDYQROX.js.map +0 -1
- package/dist/chunk-4HPLS5HJ.js.map +0 -1
- package/dist/chunk-7DPDUZ7L.js.map +0 -1
- package/dist/chunk-CE3S7UDQ.js.map +0 -1
- package/dist/chunk-H6A4BQMG.js.map +0 -1
- package/dist/chunk-OSPM4Q5V.js.map +0 -1
- package/dist/dist-2N3XHMBQ.js +0 -322
- package/dist/dist-2N3XHMBQ.js.map +0 -1
- /package/dist/{_cloud-attach-ESCPOKG5.js.map → _cloud-attach-FGMI2ZHO.js.map} +0 -0
- /package/dist/{chunk-LJMGHFLZ.js.map → chunk-5VNL6SHJ.js.map} +0 -0
- /package/dist/{chunk-RFRWS5CD.js.map → chunk-6GZK74GT.js.map} +0 -0
- /package/dist/{chunk-5JDOTQTM.js.map → chunk-P5U6AP6K.js.map} +0 -0
- /package/dist/{chunk-QHISF6O6.js.map → chunk-ZTSVY3YL.js.map} +0 -0
- /package/dist/{dist-HPPHBZTO.js.map → dist-4I7XHDC3.js.map} +0 -0
- /package/dist/{dist-NOUPH5E6.js.map → dist-AZUD2LUA.js.map} +0 -0
- /package/dist/{dist-FGXCG4JY.js.map → dist-MEK44IS5.js.map} +0 -0
- /package/dist/{dist-TRKHS6I7.js.map → dist-SBDYDH7H.js.map} +0 -0
- /package/dist/{dist-VFPT5TDH.js.map → dist-SN6ABGMD.js.map} +0 -0
- /package/dist/{dist-3M53BF4E.js.map → dist-X7R2EMJL.js.map} +0 -0
- /package/dist/{prepared-state-BUO75YLZ-46W2PAHH.js.map → prepared-state-75DIZ55S-5UAKJX3L.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{2LDXStEUVHS2oK1ID_Uvo → fo5EgsHa6PFLTBagfLiuM}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{2LDXStEUVHS2oK1ID_Uvo → fo5EgsHa6PFLTBagfLiuM}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{2LDXStEUVHS2oK1ID_Uvo → fo5EgsHa6PFLTBagfLiuM}/_ssgManifest.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
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
2
|
import {
|
|
3
3
|
execa
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UDZ3VXRF.js";
|
|
5
5
|
|
|
6
6
|
// ../../packages/core/dist/index.js
|
|
7
7
|
import { randomBytes } from "crypto";
|
|
@@ -3663,8 +3663,12 @@ function resolveContextFilesFrom(fileMap, opts) {
|
|
|
3663
3663
|
}
|
|
3664
3664
|
return out;
|
|
3665
3665
|
}
|
|
3666
|
+
var BOX_IMAGE_REGISTRY = "ghcr.io/madarco/agentbox/box";
|
|
3667
|
+
function registryRefForSha(sha, registry = BOX_IMAGE_REGISTRY) {
|
|
3668
|
+
return `${registry}:sha-${sha.slice(0, 16)}`;
|
|
3669
|
+
}
|
|
3666
3670
|
|
|
3667
|
-
// ../../packages/sandbox-docker/dist/chunk-
|
|
3671
|
+
// ../../packages/sandbox-docker/dist/chunk-6T2XZZB5.js
|
|
3668
3672
|
import { dirname as dirname23, resolve as resolve23 } from "path";
|
|
3669
3673
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
3670
3674
|
import { existsSync as existsSync5 } from "fs";
|
|
@@ -3673,17 +3677,13 @@ import { dirname as dirname7, resolve as resolve4 } from "path";
|
|
|
3673
3677
|
var DEFAULT_BOX_IMAGE = "agentbox/box:dev";
|
|
3674
3678
|
async function resolveClaudeInstallMode() {
|
|
3675
3679
|
try {
|
|
3676
|
-
const { loadEffectiveConfig } = await import("./dist-
|
|
3680
|
+
const { loadEffectiveConfig } = await import("./dist-IZ2JCN5R.js");
|
|
3677
3681
|
const cfg = await loadEffectiveConfig(process.cwd());
|
|
3678
3682
|
return cfg.effective.box.claudeInstall;
|
|
3679
3683
|
} catch {
|
|
3680
3684
|
return "native";
|
|
3681
3685
|
}
|
|
3682
3686
|
}
|
|
3683
|
-
var BOX_IMAGE_REGISTRY = "ghcr.io/madarco/agentbox/box";
|
|
3684
|
-
function registryRefForSha(sha, registry = BOX_IMAGE_REGISTRY) {
|
|
3685
|
-
return `${registry}:sha-${sha.slice(0, 16)}`;
|
|
3686
|
-
}
|
|
3687
3687
|
var here = dirname7(fileURLToPath(import.meta.url));
|
|
3688
3688
|
function resolveDockerBuild() {
|
|
3689
3689
|
const override = process.env.AGENTBOX_DOCKER_CONTEXT;
|
|
@@ -3787,7 +3787,7 @@ async function buildImage(opts = {}) {
|
|
|
3787
3787
|
return ref;
|
|
3788
3788
|
}
|
|
3789
3789
|
async function pullOrBuild(ref, fingerprint, opts = {}) {
|
|
3790
|
-
const { writePreparedDockerState: writePreparedDockerState2 } = await import("./prepared-state-
|
|
3790
|
+
const { writePreparedDockerState: writePreparedDockerState2 } = await import("./prepared-state-75DIZ55S-JDILR4OP.js");
|
|
3791
3791
|
const registry = opts.registry ?? BOX_IMAGE_REGISTRY;
|
|
3792
3792
|
const allowPull = opts.allowPull !== false;
|
|
3793
3793
|
if (allowPull && registry && fingerprint) {
|
|
@@ -3814,7 +3814,7 @@ async function pullOrBuild(ref, fingerprint, opts = {}) {
|
|
|
3814
3814
|
return { source: "built" };
|
|
3815
3815
|
}
|
|
3816
3816
|
async function ensureImage(ref = DEFAULT_BOX_IMAGE, opts = {}) {
|
|
3817
|
-
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2, preparedMatches: preparedMatches2 } = await import("./prepared-state-
|
|
3817
|
+
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2, preparedMatches: preparedMatches2 } = await import("./prepared-state-75DIZ55S-JDILR4OP.js");
|
|
3818
3818
|
const claudeInstall = opts.claudeInstall ?? await resolveClaudeInstallMode();
|
|
3819
3819
|
const rawFingerprint = await computeDockerContextFingerprint2({
|
|
3820
3820
|
contextDir: opts.contextDir
|
|
@@ -3844,8 +3844,12 @@ async function ensureImage(ref = DEFAULT_BOX_IMAGE, opts = {}) {
|
|
|
3844
3844
|
onProgress: opts.onProgress,
|
|
3845
3845
|
dockerfile: opts.dockerfile,
|
|
3846
3846
|
contextDir: opts.contextDir,
|
|
3847
|
-
//
|
|
3848
|
-
|
|
3847
|
+
// npm mode pulls too. CI publishes both install variants, and `fingerprint`
|
|
3848
|
+
// is already folded with the mode above — so the pull asks for the npm
|
|
3849
|
+
// image's own tag and hits. (It used to be native-only, which meant npm
|
|
3850
|
+
// users rebuilt the image locally on every first create, forever.) A tag
|
|
3851
|
+
// that genuinely isn't published still falls back to a local build.
|
|
3852
|
+
allowPull: opts.allowPull,
|
|
3849
3853
|
registry: opts.registry,
|
|
3850
3854
|
buildArgs: npm ? { AGENTBOX_CLAUDE_INSTALL: "npm" } : void 0
|
|
3851
3855
|
});
|
|
@@ -3864,7 +3868,7 @@ function classifyDockerBaseFreshness(input) {
|
|
|
3864
3868
|
return { state: "fresh" };
|
|
3865
3869
|
}
|
|
3866
3870
|
async function evaluateDockerBaseFreshness(opts = {}) {
|
|
3867
|
-
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2 } = await import("./prepared-state-
|
|
3871
|
+
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2 } = await import("./prepared-state-75DIZ55S-JDILR4OP.js");
|
|
3868
3872
|
const ref = opts.ref ?? DEFAULT_BOX_IMAGE;
|
|
3869
3873
|
const imagePresent = await imageExists(ref);
|
|
3870
3874
|
if (!imagePresent) return { state: "unprepared" };
|
|
@@ -4043,9 +4047,9 @@ export {
|
|
|
4043
4047
|
readCliStamp,
|
|
4044
4048
|
DOCKER_CONTEXT_FILE_MAP,
|
|
4045
4049
|
resolveContextFilesFrom,
|
|
4046
|
-
DEFAULT_BOX_IMAGE,
|
|
4047
4050
|
BOX_IMAGE_REGISTRY,
|
|
4048
4051
|
registryRefForSha,
|
|
4052
|
+
DEFAULT_BOX_IMAGE,
|
|
4049
4053
|
DOCKERFILE_PATH,
|
|
4050
4054
|
BUILD_CONTEXT_DIR,
|
|
4051
4055
|
imageExists,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__commonJS,
|
|
4
4
|
__require,
|
|
5
5
|
__toESM
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OG4KH2FZ.js";
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
|
|
9
9
|
var require_identity = __commonJS({
|
|
@@ -7468,6 +7468,13 @@ var BUILT_IN_DEFAULTS = {
|
|
|
7468
7468
|
pidsLimit: 0,
|
|
7469
7469
|
disk: "",
|
|
7470
7470
|
bundleDepth: void 0,
|
|
7471
|
+
daytonaClass: "linux-vm",
|
|
7472
|
+
// Empty = derive from the class: linux-vm implies us-east-1 (the only
|
|
7473
|
+
// region with VM runners), container keeps Daytona's own default.
|
|
7474
|
+
daytonaRegion: "",
|
|
7475
|
+
daytonaTimeoutMs: 15e5,
|
|
7476
|
+
// Empty = the fingerprint-tagged image CI publishes to GHCR.
|
|
7477
|
+
daytonaVmBaseImage: "",
|
|
7471
7478
|
hetznerLocation: "nbg1",
|
|
7472
7479
|
digitaloceanRegion: "nyc3",
|
|
7473
7480
|
// Empty = leave boxes in the account's default project (DigitalOcean's own
|
|
@@ -7713,6 +7720,26 @@ var KEY_REGISTRY = [
|
|
|
7713
7720
|
type: "int",
|
|
7714
7721
|
description: "Cap git bundle history shipped to cloud sandboxes (daytona, hetzner). 0 = full history. Unset = adaptive default (last 200 commits; re-bundle at 100 if the bundle exceeds 20 MB). Ignored for docker (which bind-mounts .git/)."
|
|
7715
7722
|
},
|
|
7723
|
+
{
|
|
7724
|
+
key: "box.daytonaClass",
|
|
7725
|
+
type: "string",
|
|
7726
|
+
description: "Daytona sandbox class for new --provider daytona boxes: `linux-vm` (default) or `container`. `linux-vm` gives real pause/resume (CPU + memory frozen, running processes survive) and a much faster base bake, but runs only in `us-east-1` \u2014 the sole region with VM runners. Choose `container` to stay in a shared region (e.g. `eu`). Changing this needs a re-bake: `agentbox prepare --provider daytona --force`. Daytona-only."
|
|
7727
|
+
},
|
|
7728
|
+
{
|
|
7729
|
+
key: "box.daytonaRegion",
|
|
7730
|
+
type: "string",
|
|
7731
|
+
description: "Daytona region new --provider daytona boxes are created in (e.g. `us`, `eu`, `us-east-1`). Empty (the default) derives it from `box.daytonaClass`: `linux-vm` implies `us-east-1`, `container` uses the account default. Only `us-east-1` has linux-vm runners, so pairing `linux-vm` with another region fails at create. Daytona-only."
|
|
7732
|
+
},
|
|
7733
|
+
{
|
|
7734
|
+
key: "box.daytonaTimeoutMs",
|
|
7735
|
+
type: "int",
|
|
7736
|
+
description: "Idle timeout (ms) a new --provider daytona box is created with, after which Daytona auto-stops it. The host keepalive loop pushes this forward while the agent is working, so only genuinely idle boxes lapse. Default 1500000 (25 min). 0 disables auto-stop entirely. Unlike vercel/e2b (absolute session TTLs) this is an *inactivity* window. Daytona-only."
|
|
7737
|
+
},
|
|
7738
|
+
{
|
|
7739
|
+
key: "box.daytonaVmBaseImage",
|
|
7740
|
+
type: "string",
|
|
7741
|
+
description: "Registry image the daytona `linux-vm` base snapshot is baked from. Empty (the default) uses the fingerprint-tagged box image CI publishes (`ghcr.io/madarco/agentbox/box:sha-<context-sha>`). Daytona can only build a VM snapshot from a prebuilt image, never a Dockerfile, so a build context with no published image (a locally modified `Dockerfile.box`) has nothing to boot and falls back to the container class -- set this to bake a VM from your own published image instead. Must be amd64 and carry an explicit tag or digest. Daytona-only."
|
|
7742
|
+
},
|
|
7716
7743
|
{
|
|
7717
7744
|
key: "box.hetznerLocation",
|
|
7718
7745
|
type: "string",
|
|
@@ -8363,6 +8390,15 @@ function resolveBoxSize(cfg, provider) {
|
|
|
8363
8390
|
if (perProvider.length > 0) return perProvider;
|
|
8364
8391
|
return cfg.box.size;
|
|
8365
8392
|
}
|
|
8393
|
+
var DAYTONA_VM_REGION = "us-east-1";
|
|
8394
|
+
function resolveDaytonaClass(cfg) {
|
|
8395
|
+
return cfg.box.daytonaClass === "container" ? "container" : "linux-vm";
|
|
8396
|
+
}
|
|
8397
|
+
function resolveDaytonaRegion(cfg) {
|
|
8398
|
+
const explicit = (cfg.box.daytonaRegion ?? "").trim();
|
|
8399
|
+
if (explicit.length > 0) return explicit;
|
|
8400
|
+
return resolveDaytonaClass(cfg) === "linux-vm" ? DAYTONA_VM_REGION : "";
|
|
8401
|
+
}
|
|
8366
8402
|
async function setConfigValue(scope, key, value, cwd, opts = {}) {
|
|
8367
8403
|
if (!lookupKey(key)) {
|
|
8368
8404
|
throw new UserConfigError(`unknown key "${key}"`);
|
|
@@ -8610,6 +8646,9 @@ export {
|
|
|
8610
8646
|
resolveDefaultCheckpoint,
|
|
8611
8647
|
defaultCheckpointConfigKey,
|
|
8612
8648
|
resolveBoxSize,
|
|
8649
|
+
DAYTONA_VM_REGION,
|
|
8650
|
+
resolveDaytonaClass,
|
|
8651
|
+
resolveDaytonaRegion,
|
|
8613
8652
|
setConfigValue,
|
|
8614
8653
|
unsetConfigValue,
|
|
8615
8654
|
listProjectsConfigured,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ve,
|
|
9
9
|
we,
|
|
10
10
|
ye
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CKBHQ7OI.js";
|
|
12
12
|
import {
|
|
13
13
|
createCloudProvider,
|
|
14
14
|
currentCloudBaseFingerprint,
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
renderInnerCommand,
|
|
19
19
|
resolveCloudCheckpoint,
|
|
20
20
|
writeCloudCheckpointManifest
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-23AU7VYS.js";
|
|
22
|
+
import "./chunk-GARA7RQW.js";
|
|
23
23
|
import "./chunk-3LAHFDJF.js";
|
|
24
24
|
import {
|
|
25
25
|
UserFacingError,
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
stageAllAgentStatic,
|
|
35
35
|
writeManagedSecrets,
|
|
36
36
|
writePreparedStateRaw
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-RSENJ2FT.js";
|
|
38
|
+
import "./chunk-UDZ3VXRF.js";
|
|
39
|
+
import "./chunk-V3OMPMI3.js";
|
|
40
|
+
import "./chunk-OG4KH2FZ.js";
|
|
41
41
|
|
|
42
42
|
// ../../packages/sandbox-e2b/dist/chunk-WQRH5SXA.js
|
|
43
43
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -2,6 +2,7 @@ import { createRequire as __cr } from 'node:module'; import { fileURLToPath as _
|
|
|
2
2
|
import {
|
|
3
3
|
BUILT_IN_DEFAULTS,
|
|
4
4
|
CLOUD_PROVIDER_NAMES,
|
|
5
|
+
DAYTONA_VM_REGION,
|
|
5
6
|
GLOBAL_CONFIG_FILE,
|
|
6
7
|
KEY_REGISTRY,
|
|
7
8
|
PROJECTS_DIR,
|
|
@@ -35,17 +36,20 @@ import {
|
|
|
35
36
|
registerProject,
|
|
36
37
|
resolveBoxImage,
|
|
37
38
|
resolveBoxSize,
|
|
39
|
+
resolveDaytonaClass,
|
|
40
|
+
resolveDaytonaRegion,
|
|
38
41
|
resolveDefaultCheckpoint,
|
|
39
42
|
sanitizeMnemonic,
|
|
40
43
|
setConfigValue,
|
|
41
44
|
unregisterProject,
|
|
42
45
|
unsetConfigValue,
|
|
43
46
|
workspaceConfigFile
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-V3OMPMI3.js";
|
|
48
|
+
import "./chunk-OG4KH2FZ.js";
|
|
46
49
|
export {
|
|
47
50
|
BUILT_IN_DEFAULTS,
|
|
48
51
|
CLOUD_PROVIDER_NAMES,
|
|
52
|
+
DAYTONA_VM_REGION,
|
|
49
53
|
GLOBAL_CONFIG_FILE,
|
|
50
54
|
KEY_REGISTRY,
|
|
51
55
|
PROJECTS_DIR,
|
|
@@ -79,6 +83,8 @@ export {
|
|
|
79
83
|
registerProject,
|
|
80
84
|
resolveBoxImage,
|
|
81
85
|
resolveBoxSize,
|
|
86
|
+
resolveDaytonaClass,
|
|
87
|
+
resolveDaytonaRegion,
|
|
82
88
|
resolveDefaultCheckpoint,
|
|
83
89
|
sanitizeMnemonic,
|
|
84
90
|
setConfigValue,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
ve,
|
|
12
12
|
we,
|
|
13
13
|
ye
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CKBHQ7OI.js";
|
|
15
15
|
import {
|
|
16
16
|
createCloudProvider,
|
|
17
17
|
currentCloudBaseFingerprint,
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
renderInnerCommand,
|
|
22
22
|
resolveCloudCheckpoint,
|
|
23
23
|
writeCloudCheckpointManifest
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-23AU7VYS.js";
|
|
25
|
+
import "./chunk-GARA7RQW.js";
|
|
26
26
|
import "./chunk-3LAHFDJF.js";
|
|
27
27
|
import {
|
|
28
28
|
UserFacingError,
|
|
@@ -39,12 +39,12 @@ import {
|
|
|
39
39
|
stageOpencodeStaticForUpload,
|
|
40
40
|
writeManagedSecrets,
|
|
41
41
|
writePreparedStateRaw
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-RSENJ2FT.js";
|
|
43
43
|
import {
|
|
44
44
|
execa
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-UDZ3VXRF.js";
|
|
46
|
+
import "./chunk-V3OMPMI3.js";
|
|
47
|
+
import "./chunk-OG4KH2FZ.js";
|
|
48
48
|
|
|
49
49
|
// ../../packages/sandbox-vercel/dist/chunk-6SDDZRAG.js
|
|
50
50
|
import { existsSync, readFileSync } from "fs";
|