@madarco/agentbox 0.25.1 → 0.26.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.
Files changed (121) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +8 -7
  3. package/dist/{_cloud-attach-FGMI2ZHO.js → _cloud-attach-7WRQH6XZ.js} +5 -5
  4. package/dist/{chunk-5VNL6SHJ.js → chunk-7ZZAZPYX.js} +3 -3
  5. package/dist/{chunk-ZTSVY3YL.js → chunk-BA2VLJVU.js} +3 -3
  6. package/dist/{chunk-3BR63LCB.js → chunk-DJQMK4RN.js} +12 -4
  7. package/dist/chunk-DJQMK4RN.js.map +1 -0
  8. package/dist/{chunk-6GZK74GT.js → chunk-DQHMDDAT.js} +2 -2
  9. package/dist/{chunk-P5U6AP6K.js → chunk-I2OAJS3L.js} +40 -377
  10. package/dist/{chunk-P5U6AP6K.js.map → chunk-I2OAJS3L.js.map} +1 -1
  11. package/dist/{chunk-5F5SOSDY.js → chunk-JGZSA5ZI.js} +72 -23
  12. package/dist/chunk-JGZSA5ZI.js.map +1 -0
  13. package/dist/{chunk-67VF2QZC.js → chunk-K5KOLYIL.js} +3 -3
  14. package/dist/{chunk-4LS2TOF3.js → chunk-PK2QF4IR.js} +569 -195
  15. package/dist/chunk-PK2QF4IR.js.map +1 -0
  16. package/dist/{chunk-3PSRBK24.js → chunk-UIFL7F2G.js} +54 -37
  17. package/dist/chunk-UIFL7F2G.js.map +1 -0
  18. package/dist/{chunk-4DBLYT2F.js → chunk-ZY7M7MXH.js} +41 -16
  19. package/dist/chunk-ZY7M7MXH.js.map +1 -0
  20. package/dist/chunk-ZYKNSHOH.js +259 -0
  21. package/dist/chunk-ZYKNSHOH.js.map +1 -0
  22. package/dist/{dist-X7R2EMJL.js → dist-5IICYSR6.js} +42 -374
  23. package/dist/{dist-X7R2EMJL.js.map → dist-5IICYSR6.js.map} +1 -1
  24. package/dist/{dist-5G42NFOG.js → dist-AR5CHRSV.js} +86 -45
  25. package/dist/{dist-5G42NFOG.js.map → dist-AR5CHRSV.js.map} +1 -1
  26. package/dist/{dist-AZUD2LUA.js → dist-DTNYMBQ5.js} +12 -12
  27. package/dist/{dist-MEK44IS5.js → dist-K4LNH3EC.js} +6 -6
  28. package/dist/{dist-SN6ABGMD.js → dist-POVRY7HO.js} +8 -4
  29. package/dist/{dist-SBDYDH7H.js → dist-U2SVLJUQ.js} +4 -2
  30. package/dist/{dist-4I7XHDC3.js → dist-XYY6SIKG.js} +6 -6
  31. package/dist/dist-YA7EXBGG.js +809 -0
  32. package/dist/dist-YA7EXBGG.js.map +1 -0
  33. package/dist/index.js +971 -591
  34. package/dist/index.js.map +1 -1
  35. package/dist/{prepared-state-75DIZ55S-5UAKJX3L.js → prepared-state-75DIZ55S-W6NU3S3B.js} +2 -2
  36. package/package.json +8 -7
  37. package/runtime/_shared/ctl.cjs +83 -36
  38. package/runtime/digitalocean/ctl.cjs +83 -36
  39. package/runtime/docker/packages/ctl/dist/bin.cjs +83 -36
  40. package/runtime/e2b/ctl.cjs +83 -36
  41. package/runtime/hetzner/ctl.cjs +83 -36
  42. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  43. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  44. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +1 -1
  45. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -1
  46. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  47. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  48. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  49. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  50. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  51. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  52. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  53. package/runtime/hub/apps/hub/.next/server/chunks/0-fj_better-auth_dist_adapters_kysely-adapter_index_mjs_0btft52._.js +3 -0
  54. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +5 -5
  55. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +1 -1
  56. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-9g0ae._.js +1 -1
  57. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +1 -1
  58. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__19pc87s._.js → [root-of-the-server]__1k8g143._.js} +2 -2
  59. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +1 -1
  60. package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +4 -4
  61. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0xy-j7z._.js +1 -1
  62. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_010858m.js +1 -1
  63. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_04zwxnx.js +1 -1
  64. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_06exuc7.js +1 -1
  65. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2ldrt.js +1 -1
  66. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2tzep.js +1 -1
  67. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_116nh32.js +1 -1
  68. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_11dyjcb.js +1 -1
  69. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1_4knli.js +1 -1
  70. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__08-1wwu._.js +1 -1
  71. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0c9mbcn._.js +1 -1
  72. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0gdfxj4._.js +1 -1
  73. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0kc-hwp._.js +1 -1
  74. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0lu73p6._.js +1 -1
  75. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__10bfmwi._.js +1 -1
  76. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__18qvdzb._.js +1 -1
  77. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1l2urlw._.js +1 -1
  78. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ro6vh6._.js +1 -1
  79. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  80. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  81. package/runtime/hub/apps/hub/{auth-MVL4NCQC.js → auth-DC44GQZY.js} +2 -2
  82. package/runtime/hub/apps/hub/{auth-config-GRIXACTV.js → auth-config-LALRDYDO.js} +2 -2
  83. package/runtime/hub/apps/hub/{chunk-JLG5JJXD.js → chunk-3FJNKSNZ.js} +1 -1
  84. package/runtime/hub/apps/hub/{chunk-RSENJ2FT.js → chunk-4QY2VZCF.js} +502 -132
  85. package/runtime/hub/apps/hub/{chunk-23AU7VYS.js → chunk-BARD2DI6.js} +11 -3
  86. package/runtime/hub/apps/hub/{chunk-V3OMPMI3.js → chunk-QSMPSV5Z.js} +70 -21
  87. package/runtime/hub/apps/hub/{chunk-GARA7RQW.js → chunk-XZZXPEVV.js} +57 -36
  88. package/runtime/hub/apps/hub/{dist-WZKTIA2R.js → dist-3ENKQN5G.js} +35 -365
  89. package/runtime/hub/apps/hub/{dist-TP4SXMDY.js → dist-6VGJOQYK.js} +84 -43
  90. package/runtime/hub/apps/hub/{dist-JVU3QCLG.js → dist-AE6IV4FV.js} +4 -4
  91. package/runtime/hub/apps/hub/{dist-IZ2JCN5R.js → dist-EQV4L7KP.js} +3 -1
  92. package/runtime/hub/apps/hub/dist-NNBELNA7.js +1017 -0
  93. package/runtime/hub/apps/hub/{dist-DZGSA3US.js → dist-RJJ2SDYO.js} +4 -4
  94. package/runtime/hub/apps/hub/{dist-VWSHZIPN.js → dist-TU7D6UTB.js} +37 -366
  95. package/runtime/hub/apps/hub/{dist-YWY2DSSL.js → dist-WAZKGVYL.js} +7 -3
  96. package/runtime/hub/apps/hub/{hub-token-BJG6Q5II.js → hub-token-COBZGSLS.js} +2 -2
  97. package/runtime/hub/apps/hub/package.json +1 -0
  98. package/runtime/hub/apps/hub/{prepared-state-75DIZ55S-JDILR4OP.js → prepared-state-75DIZ55S-NYEDSU2U.js} +1 -1
  99. package/runtime/hub/apps/hub/server.js +20 -16
  100. package/runtime/relay/bin.cjs +57 -20
  101. package/runtime/vercel/ctl.cjs +83 -36
  102. package/dist/chunk-3BR63LCB.js.map +0 -1
  103. package/dist/chunk-3PSRBK24.js.map +0 -1
  104. package/dist/chunk-4DBLYT2F.js.map +0 -1
  105. package/dist/chunk-4LS2TOF3.js.map +0 -1
  106. package/dist/chunk-5F5SOSDY.js.map +0 -1
  107. package/runtime/hub/apps/hub/.next/server/chunks/0zhp_better-auth_dist_adapters_kysely-adapter_index_mjs_1rl4qnh._.js +0 -3
  108. /package/dist/{_cloud-attach-FGMI2ZHO.js.map → _cloud-attach-7WRQH6XZ.js.map} +0 -0
  109. /package/dist/{chunk-5VNL6SHJ.js.map → chunk-7ZZAZPYX.js.map} +0 -0
  110. /package/dist/{chunk-ZTSVY3YL.js.map → chunk-BA2VLJVU.js.map} +0 -0
  111. /package/dist/{chunk-6GZK74GT.js.map → chunk-DQHMDDAT.js.map} +0 -0
  112. /package/dist/{chunk-67VF2QZC.js.map → chunk-K5KOLYIL.js.map} +0 -0
  113. /package/dist/{dist-4I7XHDC3.js.map → dist-DTNYMBQ5.js.map} +0 -0
  114. /package/dist/{dist-MEK44IS5.js.map → dist-K4LNH3EC.js.map} +0 -0
  115. /package/dist/{dist-AZUD2LUA.js.map → dist-POVRY7HO.js.map} +0 -0
  116. /package/dist/{dist-SBDYDH7H.js.map → dist-U2SVLJUQ.js.map} +0 -0
  117. /package/dist/{dist-SN6ABGMD.js.map → dist-XYY6SIKG.js.map} +0 -0
  118. /package/dist/{prepared-state-75DIZ55S-5UAKJX3L.js.map → prepared-state-75DIZ55S-W6NU3S3B.js.map} +0 -0
  119. /package/runtime/hub/apps/hub/.next/static/{fo5EgsHa6PFLTBagfLiuM → mJYh9UHTsLaGGyRjBSvme}/_buildManifest.js +0 -0
  120. /package/runtime/hub/apps/hub/.next/static/{fo5EgsHa6PFLTBagfLiuM → mJYh9UHTsLaGGyRjBSvme}/_clientMiddlewareManifest.js +0 -0
  121. /package/runtime/hub/apps/hub/.next/static/{fo5EgsHa6PFLTBagfLiuM → mJYh9UHTsLaGGyRjBSvme}/_ssgManifest.js +0 -0
@@ -22,7 +22,7 @@ import {
22
22
  readBoxStatus,
23
23
  registerBoxWithRelay,
24
24
  syncClaudeCredentials
25
- } from "./chunk-GARA7RQW.js";
25
+ } from "./chunk-XZZXPEVV.js";
26
26
  import {
27
27
  AGENT_SYNC_SPECS,
28
28
  BOX_DYNAMIC_SYNC_MANIFEST,
@@ -71,7 +71,7 @@ import {
71
71
  stageOpencodeStateForUpload,
72
72
  stageOpencodeStaticForUpload,
73
73
  writeCredentialBackup
74
- } from "./chunk-RSENJ2FT.js";
74
+ } from "./chunk-4QY2VZCF.js";
75
75
  import {
76
76
  execa
77
77
  } from "./chunk-UDZ3VXRF.js";
@@ -81,7 +81,7 @@ import {
81
81
  projectDirSegment,
82
82
  require_dist,
83
83
  sanitizeMnemonic
84
- } from "./chunk-V3OMPMI3.js";
84
+ } from "./chunk-QSMPSV5Z.js";
85
85
  import {
86
86
  __toESM
87
87
  } from "./chunk-OG4KH2FZ.js";
@@ -2254,6 +2254,8 @@ function createCloudProvider(backend, opts = {}) {
2254
2254
  const inbound = typeof inboundOpt === "string" && inboundOpt.trim() !== "" ? inboundOpt.trim() : void 0;
2255
2255
  const projectOpt = req.providerOptions?.["project"];
2256
2256
  const project = typeof projectOpt === "string" && projectOpt.trim() !== "" ? projectOpt.trim() : void 0;
2257
+ const hostOpt = req.providerOptions?.["remoteHost"];
2258
+ const host = typeof hostOpt === "string" && hostOpt.trim() !== "" ? hostOpt.trim() : void 0;
2257
2259
  const classOpt = req.providerOptions?.["sandboxClass"];
2258
2260
  const sandboxClass = typeof classOpt === "string" && classOpt.trim() !== "" ? classOpt.trim() : void 0;
2259
2261
  const relayToken = generateRelayToken();
@@ -2317,6 +2319,7 @@ function createCloudProvider(backend, opts = {}) {
2317
2319
  size,
2318
2320
  location,
2319
2321
  project,
2322
+ host,
2320
2323
  inbound,
2321
2324
  sandboxClass,
2322
2325
  timeoutMs,
@@ -3118,6 +3121,9 @@ async function openWebAppOnVncScreen(box, provider) {
3118
3121
  }
3119
3122
 
3120
3123
  export {
3124
+ quoteShellArgv,
3125
+ quoteShellArg,
3126
+ bashScript,
3121
3127
  cloudSnapshotName,
3122
3128
  listCloudCheckpoints,
3123
3129
  resolveCloudCheckpoint,
@@ -3125,6 +3131,8 @@ export {
3125
3131
  currentCloudBaseFingerprint,
3126
3132
  baseFreshnessFromFingerprints,
3127
3133
  removeCloudCheckpointDir,
3134
+ CLOUD_WEB_PROXY_PORT,
3135
+ CLOUD_VNC_PORT,
3128
3136
  createCloudProvider,
3129
3137
  hostTermForCloud,
3130
3138
  renderInnerCommand,
@@ -7359,7 +7359,7 @@ var PROVIDERS = [
7359
7359
  name: "daytona",
7360
7360
  kind: "cloud",
7361
7361
  label: "Daytona (cloud sandbox)",
7362
- loginHint: "approve a browser sign-in link",
7362
+ loginHint: "paste an API key from the Daytona dashboard",
7363
7363
  rebuildMinutes: "7",
7364
7364
  blurb: "Daytona Cloud sandboxes",
7365
7365
  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).",
@@ -7404,6 +7404,16 @@ var PROVIDERS = [
7404
7404
  blurb: "DigitalOcean Droplets",
7405
7405
  sizeDesc: "Per-provider override of `box.size` for digitalocean. Droplet size slug (e.g. `s-2vcpu-4gb`, `s-4vcpu-8gb`).",
7406
7406
  imageDesc: "Per-provider override of `box.image` for digitalocean (numeric snapshot id). Written by `agentbox prepare --provider digitalocean`."
7407
+ },
7408
+ {
7409
+ name: "remote-docker",
7410
+ kind: "cloud",
7411
+ label: "Remote Docker (your own machine over SSH)",
7412
+ loginHint: "point it at an SSH host you can already reach (no login needed)",
7413
+ rebuildMinutes: "1-3",
7414
+ blurb: "Docker on a remote machine over SSH",
7415
+ 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).",
7416
+ 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."
7407
7417
  }
7408
7418
  ];
7409
7419
  var PROVIDER_NAMES = PROVIDERS.map((p) => p.name);
@@ -7419,7 +7429,7 @@ function providerMeta(name) {
7419
7429
  return m;
7420
7430
  }
7421
7431
  function providerKeyCap(name) {
7422
- return name.charAt(0).toUpperCase() + name.slice(1);
7432
+ return name.split("-").filter((seg) => seg.length > 0).map((seg) => seg.charAt(0).toUpperCase() + seg.slice(1)).join("");
7423
7433
  }
7424
7434
  function perProviderConfigKey(base, provider) {
7425
7435
  return `box.${base}${providerKeyCap(provider)}`;
@@ -7435,6 +7445,7 @@ var BUILT_IN_DEFAULTS = {
7435
7445
  defaultCheckpointVercel: "",
7436
7446
  defaultCheckpointE2b: "",
7437
7447
  defaultCheckpointDigitalocean: "",
7448
+ defaultCheckpointRemoteDocker: "",
7438
7449
  size: "",
7439
7450
  sizeDocker: "",
7440
7451
  sizeDaytona: "",
@@ -7442,6 +7453,7 @@ var BUILT_IN_DEFAULTS = {
7442
7453
  sizeVercel: "",
7443
7454
  sizeE2b: "",
7444
7455
  sizeDigitalocean: "",
7456
+ sizeRemoteDocker: "",
7445
7457
  withPlaywright: false,
7446
7458
  claudeInstall: "native",
7447
7459
  withEnv: false,
@@ -7459,6 +7471,9 @@ var BUILT_IN_DEFAULTS = {
7459
7471
  imageVercel: "",
7460
7472
  imageE2b: "",
7461
7473
  imageDigitalocean: "",
7474
+ // Empty = the provider derives the fingerprint-tagged ref itself and ensures
7475
+ // it on the remote engine; set only to pin a hand-built image there.
7476
+ imageRemoteDocker: "",
7462
7477
  // Mirrors BOX_IMAGE_REGISTRY in @agentbox/sandbox-docker. Empty disables the
7463
7478
  // registry pull (always build the docker base image locally).
7464
7479
  imageRegistry: "ghcr.io/madarco/agentbox/box",
@@ -7480,6 +7495,9 @@ var BUILT_IN_DEFAULTS = {
7480
7495
  // Empty = leave boxes in the account's default project (DigitalOcean's own
7481
7496
  // behavior). There is no sane default id to pick — it differs per account.
7482
7497
  digitaloceanProject: "",
7498
+ // Empty = no default remote engine; `--provider remote-docker` then errors
7499
+ // unless the SSH destination came from `docker:<host>` / `--remote-host`.
7500
+ remoteDockerHost: "",
7483
7501
  vercelTimeoutMs: 27e5,
7484
7502
  vercelNetworkPolicy: "",
7485
7503
  e2bTimeoutMs: 27e5,
@@ -7755,6 +7773,11 @@ var KEY_REGISTRY = [
7755
7773
  type: "string",
7756
7774
  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."
7757
7775
  },
7776
+ {
7777
+ key: "box.remoteDockerHost",
7778
+ type: "string",
7779
+ 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."
7780
+ },
7758
7781
  {
7759
7782
  key: "box.vercelTimeoutMs",
7760
7783
  type: "int",
@@ -8050,7 +8073,7 @@ function coerceTypedValue(raw, desc, where) {
8050
8073
  return raw;
8051
8074
  }
8052
8075
  }
8053
- function parseUserConfig(text, where) {
8076
+ function parseUserConfig(text, where, opts = {}) {
8054
8077
  let doc;
8055
8078
  try {
8056
8079
  doc = (0, import_yaml.parse)(text);
@@ -8063,9 +8086,9 @@ function parseUserConfig(text, where) {
8063
8086
  if (!isPlainObject(doc)) {
8064
8087
  throw new UserConfigError(`${where}: top-level must be a mapping`);
8065
8088
  }
8066
- return parseUserConfigObject(doc, where);
8089
+ return parseUserConfigObject(doc, where, opts);
8067
8090
  }
8068
- function parseUserConfigObject(doc, where) {
8091
+ function parseUserConfigObject(doc, where, opts = {}) {
8069
8092
  if (doc === null || doc === void 0) return {};
8070
8093
  if (!isPlainObject(doc)) {
8071
8094
  throw new UserConfigError(`${where}: must be a mapping`);
@@ -8083,22 +8106,23 @@ function parseUserConfigObject(doc, where) {
8083
8106
  }
8084
8107
  const branchSpec = BRANCHES.get(branchName);
8085
8108
  if (!branchSpec) {
8086
- throw new UserConfigError(
8087
- `${where}: unknown config section "${branchName}" (known: ${[...BRANCHES.keys()].join(", ")})`
8109
+ opts.onWarning?.(
8110
+ `${where}: unknown config section "${branchName}" \u2014 ignored (typo, or set by a newer agentbox)`
8088
8111
  );
8112
+ continue;
8089
8113
  }
8090
8114
  if (branchRaw === null || branchRaw === void 0) continue;
8091
8115
  if (!isPlainObject(branchRaw)) {
8092
8116
  throw new UserConfigError(`${where}.${branchName}: must be a mapping`);
8093
8117
  }
8094
- const branchOut = parseBranchObject(branchSpec, branchName, branchRaw, "", where);
8118
+ const branchOut = parseBranchObject(branchSpec, branchName, branchRaw, "", where, opts);
8095
8119
  if (Object.keys(branchOut).length > 0) {
8096
8120
  out[branchName] = branchOut;
8097
8121
  }
8098
8122
  }
8099
8123
  return out;
8100
8124
  }
8101
- function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where) {
8125
+ function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where, opts) {
8102
8126
  const out = {};
8103
8127
  for (const [name, value] of Object.entries(raw)) {
8104
8128
  if (value === void 0) continue;
@@ -8109,7 +8133,7 @@ function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where)
8109
8133
  continue;
8110
8134
  }
8111
8135
  if (isPlainObject(value) && branchHasLeafBelow(branchSpec, qualified)) {
8112
- const sub = parseBranchObject(branchSpec, branchName, value, qualified, where);
8136
+ const sub = parseBranchObject(branchSpec, branchName, value, qualified, where, opts);
8113
8137
  if (Object.keys(sub).length > 0) out[name] = sub;
8114
8138
  continue;
8115
8139
  }
@@ -8119,8 +8143,8 @@ function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where)
8119
8143
  `${where}.${branchName}.${qualified} was renamed to ${renamedTo} \u2014 update your config`
8120
8144
  );
8121
8145
  }
8122
- throw new UserConfigError(
8123
- `${where}.${branchName}: unknown key "${qualified}" (known: ${[...branchSpec.leaves.keys()].join(", ")})`
8146
+ opts.onWarning?.(
8147
+ `${where}.${branchName}: unknown key "${qualified}" \u2014 ignored (typo, or set by a newer agentbox)`
8124
8148
  );
8125
8149
  }
8126
8150
  return out;
@@ -8244,7 +8268,15 @@ async function configPathFor(scope, cwd) {
8244
8268
  if (scope === "project") return projectConfigFile(root.root);
8245
8269
  return workspaceConfigFile(root.root);
8246
8270
  }
8247
- async function loadOptionalUserConfig(path) {
8271
+ var warningSink = null;
8272
+ function setConfigWarningSink(fn) {
8273
+ warningSink = fn;
8274
+ }
8275
+ function collectWarning(into, message) {
8276
+ into.push(message);
8277
+ warningSink?.(message);
8278
+ }
8279
+ async function loadOptionalUserConfig(path, warnings) {
8248
8280
  let text;
8249
8281
  try {
8250
8282
  text = await readFile(path, "utf8");
@@ -8252,9 +8284,9 @@ async function loadOptionalUserConfig(path) {
8252
8284
  if (err.code === "ENOENT") return {};
8253
8285
  throw err;
8254
8286
  }
8255
- return parseUserConfig(text, path);
8287
+ return parseUserConfig(text, path, { onWarning: (m) => collectWarning(warnings, m) });
8256
8288
  }
8257
- async function loadProjectAgentboxDefaults(workspacePath) {
8289
+ async function loadProjectAgentboxDefaults(workspacePath, warnings = []) {
8258
8290
  const path = workspaceConfigFile(workspacePath);
8259
8291
  let text;
8260
8292
  try {
@@ -8274,16 +8306,19 @@ async function loadProjectAgentboxDefaults(workspacePath) {
8274
8306
  }
8275
8307
  const defaults = doc["defaults"];
8276
8308
  if (defaults === void 0 || defaults === null) return {};
8277
- return parseUserConfigObject(defaults, `${path} defaults`);
8309
+ return parseUserConfigObject(defaults, `${path} defaults`, {
8310
+ onWarning: (m) => collectWarning(warnings, m)
8311
+ });
8278
8312
  }
8279
8313
  async function loadEffectiveConfig(cwd, opts = {}) {
8280
8314
  const projectRoot = await findProjectRoot(cwd);
8281
8315
  const projectPath = projectConfigFile(projectRoot.root);
8282
8316
  const workspacePath = projectRoot.hasAgentboxYaml ? workspaceConfigFile(projectRoot.root) : null;
8317
+ const warnings = [];
8283
8318
  const [globalValues, projectValues, workspaceValues] = await Promise.all([
8284
- loadOptionalUserConfig(GLOBAL_CONFIG_FILE),
8285
- loadOptionalUserConfig(projectPath),
8286
- workspacePath ? loadProjectAgentboxDefaults(projectRoot.root) : Promise.resolve({})
8319
+ loadOptionalUserConfig(GLOBAL_CONFIG_FILE, warnings),
8320
+ loadOptionalUserConfig(projectPath, warnings),
8321
+ workspacePath ? loadProjectAgentboxDefaults(projectRoot.root, warnings) : Promise.resolve({})
8287
8322
  ]);
8288
8323
  const cliValues = opts.cliOverrides ?? {};
8289
8324
  const { effective, sources } = mergeLayers({
@@ -8304,7 +8339,8 @@ async function loadEffectiveConfig(cwd, opts = {}) {
8304
8339
  sources,
8305
8340
  projectRoot: projectRoot.root,
8306
8341
  projectHash: hashProjectPath(projectRoot.root),
8307
- hasAgentboxYaml: projectRoot.hasAgentboxYaml
8342
+ hasAgentboxYaml: projectRoot.hasAgentboxYaml,
8343
+ warnings
8308
8344
  };
8309
8345
  }
8310
8346
  function mergeLayers(input) {
@@ -8533,7 +8569,19 @@ async function readExistingDoc(path) {
8533
8569
  if (err.code === "ENOENT") return {};
8534
8570
  throw err;
8535
8571
  }
8536
- return parseUserConfig(text, path);
8572
+ let doc;
8573
+ try {
8574
+ doc = (0, import_yaml3.parse)(text);
8575
+ } catch (err) {
8576
+ throw new UserConfigError(
8577
+ `${path}: yaml parse error: ${err instanceof Error ? err.message : String(err)}`
8578
+ );
8579
+ }
8580
+ if (doc === null || doc === void 0) return {};
8581
+ if (typeof doc !== "object" || Array.isArray(doc)) {
8582
+ throw new UserConfigError(`${path}: top-level must be a mapping`);
8583
+ }
8584
+ return doc;
8537
8585
  }
8538
8586
  var CURRENT_CONFIG_SCHEMA = 1;
8539
8587
  function stampSchema(doc) {
@@ -8639,6 +8687,7 @@ export {
8639
8687
  projectMetaFile,
8640
8688
  workspaceConfigFile,
8641
8689
  configPathFor,
8690
+ setConfigWarningSink,
8642
8691
  loadProjectAgentboxDefaults,
8643
8692
  loadEffectiveConfig,
8644
8693
  resolveBoxImage,
@@ -78,7 +78,7 @@ import {
78
78
  upstreamRef,
79
79
  writeClaudeMergedRegistries,
80
80
  writeCredentialBackup
81
- } from "./chunk-RSENJ2FT.js";
81
+ } from "./chunk-4QY2VZCF.js";
82
82
  import {
83
83
  execa
84
84
  } from "./chunk-UDZ3VXRF.js";
@@ -92,7 +92,7 @@ import {
92
92
  require_dist,
93
93
  sanitizeMnemonic,
94
94
  setConfigValue
95
- } from "./chunk-V3OMPMI3.js";
95
+ } from "./chunk-QSMPSV5Z.js";
96
96
  import {
97
97
  __toESM
98
98
  } from "./chunk-OG4KH2FZ.js";
@@ -200,7 +200,7 @@ function parseBackoff(raw, where) {
200
200
  if (!isPlainObject2(raw)) {
201
201
  throw new ConfigError(`${where}.backoff must be a mapping`);
202
202
  }
203
- rejectUnknownKeys(raw, BACKOFF_KEYS, `${where}.backoff`);
203
+ warnUnknownKeys(raw, BACKOFF_KEYS, `${where}.backoff`);
204
204
  const initialMs = parseNonNegativeInt(
205
205
  raw.initial_ms,
206
206
  `${where}.backoff.initial_ms`,
@@ -213,10 +213,13 @@ function parseBackoff(raw, where) {
213
213
  }
214
214
  return { initialMs, maxMs, factor };
215
215
  }
216
- function rejectUnknownKeys(obj, allowed, where) {
216
+ var unknownKeyWarnings = [];
217
+ function warnUnknownKeys(obj, allowed, where) {
217
218
  for (const key of Object.keys(obj)) {
218
219
  if (!allowed.has(key)) {
219
- throw new ConfigError(`${where} has unknown key "${key}"`);
220
+ unknownKeyWarnings.push(
221
+ `${where} has unknown key "${key}" \u2014 ignored (typo, or written by a newer agentbox)`
222
+ );
220
223
  }
221
224
  }
222
225
  }
@@ -282,7 +285,7 @@ function parseReadyWhen(raw, where) {
282
285
  if (!isPlainObject2(raw)) {
283
286
  throw new ConfigError(`${where}.ready_when must be a mapping`);
284
287
  }
285
- rejectUnknownKeys(raw, PROBE_KEYS, `${where}.ready_when`);
288
+ warnUnknownKeys(raw, PROBE_KEYS, `${where}.ready_when`);
286
289
  const kinds = [];
287
290
  if (raw.port !== void 0) kinds.push("port");
288
291
  if (raw.log_match !== void 0) kinds.push("log_match");
@@ -441,7 +444,7 @@ function parseImage(raw, where, defaultName) {
441
444
  if (!isPlainObject2(raw)) {
442
445
  throw new ConfigError(`${where}.image must be an image ref string or a mapping`);
443
446
  }
444
- rejectUnknownKeys(raw, IMAGE_KEYS, `${where}.image`);
447
+ warnUnknownKeys(raw, IMAGE_KEYS, `${where}.image`);
445
448
  const name = assertString(raw.name, `${where}.image.name`).trim();
446
449
  if (name.length === 0) throw new ConfigError(`${where}.image.name must not be empty`);
447
450
  const ports = parsePorts(raw.ports, `${where}.image`);
@@ -465,7 +468,7 @@ function parseExpose(raw, where) {
465
468
  if (!isPlainObject2(raw)) {
466
469
  throw new ConfigError(`${where}.expose must be a mapping`);
467
470
  }
468
- rejectUnknownKeys(raw, EXPOSE_KEYS, `${where}.expose`);
471
+ warnUnknownKeys(raw, EXPOSE_KEYS, `${where}.expose`);
469
472
  if (raw.port === void 0) {
470
473
  throw new ConfigError(`${where}.expose.port is required`);
471
474
  }
@@ -489,7 +492,7 @@ function parseService(name, raw) {
489
492
  if (!isPlainObject2(raw)) {
490
493
  throw new ConfigError(`${where} must be a mapping`);
491
494
  }
492
- rejectUnknownKeys(raw, SERVICE_KEYS, where);
495
+ warnUnknownKeys(raw, SERVICE_KEYS, where);
493
496
  const hasImage = raw.image !== void 0 && raw.image !== null;
494
497
  const hasCommand = raw.command !== void 0 && raw.command !== null;
495
498
  if (hasImage && hasCommand) {
@@ -560,7 +563,7 @@ function parseTask(name, raw) {
560
563
  if (!isPlainObject2(raw)) {
561
564
  throw new ConfigError(`${where} must be a mapping`);
562
565
  }
563
- rejectUnknownKeys(raw, TASK_KEYS, where);
566
+ warnUnknownKeys(raw, TASK_KEYS, where);
564
567
  const command = parseCommand(raw.command, where);
565
568
  const cwd = raw.cwd === void 0 ? void 0 : assertString(raw.cwd, `${where}.cwd`);
566
569
  const env = parseEnv(raw.env, where);
@@ -630,17 +633,20 @@ function validateUnitGraph(tasks, services) {
630
633
  }
631
634
  }
632
635
  function parseConfig(text) {
636
+ unknownKeyWarnings = [];
633
637
  let doc;
634
638
  try {
635
639
  doc = (0, import_yaml.parse)(text);
636
640
  } catch (err) {
637
641
  throw new ConfigError(`yaml parse error: ${err instanceof Error ? err.message : String(err)}`);
638
642
  }
639
- if (doc === null || doc === void 0) return { services: [], tasks: [], replacements: {} };
643
+ if (doc === null || doc === void 0) {
644
+ return { services: [], tasks: [], replacements: {}, warnings: [] };
645
+ }
640
646
  if (!isPlainObject2(doc)) {
641
647
  throw new ConfigError("top-level config must be a mapping");
642
648
  }
643
- rejectUnknownKeys(doc, TOP_LEVEL_KEYS, "(root)");
649
+ warnUnknownKeys(doc, TOP_LEVEL_KEYS, "(root)");
644
650
  const services = [];
645
651
  const servicesRaw = doc.services;
646
652
  if (servicesRaw !== void 0 && servicesRaw !== null) {
@@ -686,7 +692,7 @@ function parseConfig(text) {
686
692
  } catch (err) {
687
693
  throw new ConfigError(err instanceof Error ? err.message : String(err));
688
694
  }
689
- return { services, tasks, replacements };
695
+ return { services, tasks, replacements, warnings: unknownKeyWarnings };
690
696
  }
691
697
  async function loadConfig(path) {
692
698
  let text;
@@ -694,7 +700,7 @@ async function loadConfig(path) {
694
700
  text = await readFile2(path, "utf8");
695
701
  } catch (err) {
696
702
  if (err.code === "ENOENT") {
697
- return { services: [], tasks: [], replacements: {} };
703
+ return { services: [], tasks: [], replacements: {}, warnings: [] };
698
704
  }
699
705
  throw err;
700
706
  }
@@ -1349,7 +1355,7 @@ var GitHubAppLeaser = class {
1349
1355
  }
1350
1356
  };
1351
1357
 
1352
- // ../../packages/relay/dist/chunk-MWEABU6N.js
1358
+ // ../../packages/relay/dist/chunk-GEIE6TWJ.js
1353
1359
  import { spawn as spawn3 } from "child_process";
1354
1360
  import { createServer } from "http";
1355
1361
  import { mkdtemp, rm as rm2 } from "fs/promises";
@@ -1636,7 +1642,7 @@ function getConnector(service) {
1636
1642
  return null;
1637
1643
  }
1638
1644
 
1639
- // ../../packages/relay/dist/chunk-MWEABU6N.js
1645
+ // ../../packages/relay/dist/chunk-GEIE6TWJ.js
1640
1646
  import { randomUUID as randomUUID3 } from "crypto";
1641
1647
  import { randomUUID as randomUUID22 } from "crypto";
1642
1648
  import { spawn as spawn5 } from "child_process";
@@ -2213,6 +2219,10 @@ async function resolveCloudBackend(name) {
2213
2219
  const pkg = "@agentbox/sandbox-digitalocean";
2214
2220
  return loadCloudBackend(pkg, async () => (await import(pkg)).digitaloceanBackend);
2215
2221
  }
2222
+ if (name === "remote-docker") {
2223
+ const pkg = "@agentbox/sandbox-remote-docker";
2224
+ return loadCloudBackend(pkg, async () => (await import(pkg)).remoteDockerBackend);
2225
+ }
2216
2226
  const plugin = pluginForProvider(name);
2217
2227
  if (plugin) {
2218
2228
  if (!isSupportedApiVersion(plugin.apiVersion)) {
@@ -12223,7 +12233,30 @@ async function dockerChecks() {
12223
12233
  ];
12224
12234
  }
12225
12235
  const cliRes = { label: "docker cli", status: "ok", detail: cli };
12226
- const info = await execa("docker", ["info"], { reject: false });
12236
+ const [info, img, vols, portless] = await Promise.all([
12237
+ // Daemon reachability. On Linux the most common failure is not a stopped
12238
+ // daemon but the user missing from the `docker` group — `docker info` then
12239
+ // exits non-zero with "permission denied" on the socket.
12240
+ execa("docker", ["info"], { reject: false }),
12241
+ imageInfo(DEFAULT_BOX_IMAGE).then(
12242
+ (i) => ({ ok: true, i }),
12243
+ (err) => ({ ok: false, err })
12244
+ ),
12245
+ Promise.all(
12246
+ [SHARED_CLAUDE_VOLUME, SHARED_CODEX_VOLUME, SHARED_OPENCODE_VOLUME].map(async (n) => ({
12247
+ name: n,
12248
+ exists: await volumeExists(n).catch(() => false)
12249
+ }))
12250
+ ),
12251
+ // OrbStack serves per-box .orb.local URLs natively; Portless only matters on
12252
+ // plain Docker Desktop / Linux docker engine — so the engine decides whether
12253
+ // the row exists at all.
12254
+ (async () => {
12255
+ const engine = await detectEngine().catch(() => "other");
12256
+ if (engine === "orbstack") return null;
12257
+ return portlessDoctorRow(await detectPortless());
12258
+ })()
12259
+ ]);
12227
12260
  if (info.exitCode !== 0) {
12228
12261
  const permDenied = `${info.stderr ?? ""}`.toLowerCase().includes("permission denied");
12229
12262
  let hint;
@@ -12245,22 +12278,12 @@ async function dockerChecks() {
12245
12278
  ];
12246
12279
  }
12247
12280
  const daemonRes = { label: "docker daemon", status: "ok", detail: "reachable" };
12248
- let imgRes;
12249
- try {
12250
- const img = await imageInfo(DEFAULT_BOX_IMAGE);
12251
- imgRes = img.exists ? { label: "box image", status: "ok", detail: `${DEFAULT_BOX_IMAGE} built` } : {
12252
- label: "box image",
12253
- status: "warn",
12254
- detail: `${DEFAULT_BOX_IMAGE} not built`,
12255
- hint: "run `agentbox prepare --provider docker` (or let the wizard do it)"
12256
- };
12257
- } catch (err) {
12258
- imgRes = { label: "box image", status: "warn", detail: errSummary(err) };
12259
- }
12260
- const volNames = [SHARED_CLAUDE_VOLUME, SHARED_CODEX_VOLUME, SHARED_OPENCODE_VOLUME];
12261
- const vols = await Promise.all(
12262
- volNames.map(async (n) => ({ name: n, exists: await volumeExists(n).catch(() => false) }))
12263
- );
12281
+ const imgRes = !img.ok ? { label: "box image", status: "warn", detail: errSummary(img.err) } : img.i.exists ? { label: "box image", status: "ok", detail: `${DEFAULT_BOX_IMAGE} built` } : {
12282
+ label: "box image",
12283
+ status: "warn",
12284
+ detail: `${DEFAULT_BOX_IMAGE} not built`,
12285
+ hint: "run `agentbox prepare --provider docker` (or let the wizard do it)"
12286
+ };
12264
12287
  const present = vols.filter((v) => v.exists).length;
12265
12288
  const volRes = {
12266
12289
  label: "shared volumes",
@@ -12268,9 +12291,7 @@ async function dockerChecks() {
12268
12291
  detail: `${String(present)}/${String(vols.length)} present (seeded lazily)`
12269
12292
  };
12270
12293
  const results = [cliRes, daemonRes, imgRes, volRes];
12271
- if (await detectEngine().catch(() => "other") !== "orbstack") {
12272
- results.push(portlessDoctorRow(await detectPortless()));
12273
- }
12294
+ if (portless) results.push(portless);
12274
12295
  return results;
12275
12296
  }
12276
12297
  var providerModule = {