@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
@@ -12871,7 +12871,7 @@ function sanitizeGitArgs(args) {
12871
12871
  return Array.isArray(args) ? args.filter((a2) => typeof a2 === "string") : [];
12872
12872
  }
12873
12873
 
12874
- // ../relay/dist/chunk-MWEABU6N.js
12874
+ // ../relay/dist/chunk-GEIE6TWJ.js
12875
12875
  var import_child_process = require("child_process");
12876
12876
  var import_http2 = require("http");
12877
12877
 
@@ -19650,7 +19650,7 @@ var {
19650
19650
  getCancelSignal: getCancelSignal2
19651
19651
  } = getIpcExport();
19652
19652
 
19653
- // ../relay/dist/chunk-MWEABU6N.js
19653
+ // ../relay/dist/chunk-GEIE6TWJ.js
19654
19654
  var import_promises20 = require("fs/promises");
19655
19655
  var import_os6 = require("os");
19656
19656
  var import_path10 = require("path");
@@ -20036,7 +20036,7 @@ var CODEX_STATIC_EXCLUDES = resolveAgentSpec("codex").staticPaths[0]?.exclude ??
20036
20036
  var CODEX_STATIC_INCLUDES = resolveAgentSpec("codex").staticPaths[0]?.include ?? [];
20037
20037
  var OPENCODE_DATA_EXCLUDES = resolveAgentSpec("opencode").staticPaths[0]?.exclude ?? [];
20038
20038
 
20039
- // ../relay/dist/chunk-MWEABU6N.js
20039
+ // ../relay/dist/chunk-GEIE6TWJ.js
20040
20040
  var import_child_process2 = require("child_process");
20041
20041
  var import_crypto5 = require("crypto");
20042
20042
  var import_child_process3 = require("child_process");
@@ -20066,7 +20066,7 @@ var PROVIDERS = [
20066
20066
  name: "daytona",
20067
20067
  kind: "cloud",
20068
20068
  label: "Daytona (cloud sandbox)",
20069
- loginHint: "approve a browser sign-in link",
20069
+ loginHint: "paste an API key from the Daytona dashboard",
20070
20070
  rebuildMinutes: "7",
20071
20071
  blurb: "Daytona Cloud sandboxes",
20072
20072
  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).",
@@ -20111,6 +20111,16 @@ var PROVIDERS = [
20111
20111
  blurb: "DigitalOcean Droplets",
20112
20112
  sizeDesc: "Per-provider override of `box.size` for digitalocean. Droplet size slug (e.g. `s-2vcpu-4gb`, `s-4vcpu-8gb`).",
20113
20113
  imageDesc: "Per-provider override of `box.image` for digitalocean (numeric snapshot id). Written by `agentbox prepare --provider digitalocean`."
20114
+ },
20115
+ {
20116
+ name: "remote-docker",
20117
+ kind: "cloud",
20118
+ label: "Remote Docker (your own machine over SSH)",
20119
+ loginHint: "point it at an SSH host you can already reach (no login needed)",
20120
+ rebuildMinutes: "1-3",
20121
+ blurb: "Docker on a remote machine over SSH",
20122
+ 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).",
20123
+ 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."
20114
20124
  }
20115
20125
  ];
20116
20126
  var PROVIDER_NAMES = PROVIDERS.map((p) => p.name);
@@ -20118,7 +20128,7 @@ var CLOUD_PROVIDER_NAMES = PROVIDERS.filter(
20118
20128
  (p) => p.kind === "cloud"
20119
20129
  ).map((p) => p.name);
20120
20130
  function providerKeyCap(name) {
20121
- return name.charAt(0).toUpperCase() + name.slice(1);
20131
+ return name.split("-").filter((seg) => seg.length > 0).map((seg) => seg.charAt(0).toUpperCase() + seg.slice(1)).join("");
20122
20132
  }
20123
20133
  function perProviderConfigKey(base, provider) {
20124
20134
  return `box.${base}${providerKeyCap(provider)}`;
@@ -20134,6 +20144,7 @@ var BUILT_IN_DEFAULTS = {
20134
20144
  defaultCheckpointVercel: "",
20135
20145
  defaultCheckpointE2b: "",
20136
20146
  defaultCheckpointDigitalocean: "",
20147
+ defaultCheckpointRemoteDocker: "",
20137
20148
  size: "",
20138
20149
  sizeDocker: "",
20139
20150
  sizeDaytona: "",
@@ -20141,6 +20152,7 @@ var BUILT_IN_DEFAULTS = {
20141
20152
  sizeVercel: "",
20142
20153
  sizeE2b: "",
20143
20154
  sizeDigitalocean: "",
20155
+ sizeRemoteDocker: "",
20144
20156
  withPlaywright: false,
20145
20157
  claudeInstall: "native",
20146
20158
  withEnv: false,
@@ -20158,6 +20170,9 @@ var BUILT_IN_DEFAULTS = {
20158
20170
  imageVercel: "",
20159
20171
  imageE2b: "",
20160
20172
  imageDigitalocean: "",
20173
+ // Empty = the provider derives the fingerprint-tagged ref itself and ensures
20174
+ // it on the remote engine; set only to pin a hand-built image there.
20175
+ imageRemoteDocker: "",
20161
20176
  // Mirrors BOX_IMAGE_REGISTRY in @agentbox/sandbox-docker. Empty disables the
20162
20177
  // registry pull (always build the docker base image locally).
20163
20178
  imageRegistry: "ghcr.io/madarco/agentbox/box",
@@ -20179,6 +20194,9 @@ var BUILT_IN_DEFAULTS = {
20179
20194
  // Empty = leave boxes in the account's default project (DigitalOcean's own
20180
20195
  // behavior). There is no sane default id to pick — it differs per account.
20181
20196
  digitaloceanProject: "",
20197
+ // Empty = no default remote engine; `--provider remote-docker` then errors
20198
+ // unless the SSH destination came from `docker:<host>` / `--remote-host`.
20199
+ remoteDockerHost: "",
20182
20200
  vercelTimeoutMs: 27e5,
20183
20201
  vercelNetworkPolicy: "",
20184
20202
  e2bTimeoutMs: 27e5,
@@ -20454,6 +20472,11 @@ var KEY_REGISTRY = [
20454
20472
  type: "string",
20455
20473
  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."
20456
20474
  },
20475
+ {
20476
+ key: "box.remoteDockerHost",
20477
+ type: "string",
20478
+ 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."
20479
+ },
20457
20480
  {
20458
20481
  key: "box.vercelTimeoutMs",
20459
20482
  type: "int",
@@ -20746,7 +20769,7 @@ function coerceTypedValue(raw, desc, where) {
20746
20769
  return raw;
20747
20770
  }
20748
20771
  }
20749
- function parseUserConfig(text, where) {
20772
+ function parseUserConfig(text, where, opts = {}) {
20750
20773
  let doc;
20751
20774
  try {
20752
20775
  doc = (0, import_yaml.parse)(text);
@@ -20759,9 +20782,9 @@ function parseUserConfig(text, where) {
20759
20782
  if (!isPlainObject3(doc)) {
20760
20783
  throw new UserConfigError(`${where}: top-level must be a mapping`);
20761
20784
  }
20762
- return parseUserConfigObject(doc, where);
20785
+ return parseUserConfigObject(doc, where, opts);
20763
20786
  }
20764
- function parseUserConfigObject(doc, where) {
20787
+ function parseUserConfigObject(doc, where, opts = {}) {
20765
20788
  if (doc === null || doc === void 0) return {};
20766
20789
  if (!isPlainObject3(doc)) {
20767
20790
  throw new UserConfigError(`${where}: must be a mapping`);
@@ -20779,22 +20802,23 @@ function parseUserConfigObject(doc, where) {
20779
20802
  }
20780
20803
  const branchSpec = BRANCHES.get(branchName);
20781
20804
  if (!branchSpec) {
20782
- throw new UserConfigError(
20783
- `${where}: unknown config section "${branchName}" (known: ${[...BRANCHES.keys()].join(", ")})`
20805
+ opts.onWarning?.(
20806
+ `${where}: unknown config section "${branchName}" \u2014 ignored (typo, or set by a newer agentbox)`
20784
20807
  );
20808
+ continue;
20785
20809
  }
20786
20810
  if (branchRaw === null || branchRaw === void 0) continue;
20787
20811
  if (!isPlainObject3(branchRaw)) {
20788
20812
  throw new UserConfigError(`${where}.${branchName}: must be a mapping`);
20789
20813
  }
20790
- const branchOut = parseBranchObject(branchSpec, branchName, branchRaw, "", where);
20814
+ const branchOut = parseBranchObject(branchSpec, branchName, branchRaw, "", where, opts);
20791
20815
  if (Object.keys(branchOut).length > 0) {
20792
20816
  out[branchName] = branchOut;
20793
20817
  }
20794
20818
  }
20795
20819
  return out;
20796
20820
  }
20797
- function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where) {
20821
+ function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where, opts) {
20798
20822
  const out = {};
20799
20823
  for (const [name, value] of Object.entries(raw)) {
20800
20824
  if (value === void 0) continue;
@@ -20805,7 +20829,7 @@ function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where)
20805
20829
  continue;
20806
20830
  }
20807
20831
  if (isPlainObject3(value) && branchHasLeafBelow(branchSpec, qualified)) {
20808
- const sub = parseBranchObject(branchSpec, branchName, value, qualified, where);
20832
+ const sub = parseBranchObject(branchSpec, branchName, value, qualified, where, opts);
20809
20833
  if (Object.keys(sub).length > 0) out[name] = sub;
20810
20834
  continue;
20811
20835
  }
@@ -20815,8 +20839,8 @@ function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where)
20815
20839
  `${where}.${branchName}.${qualified} was renamed to ${renamedTo} \u2014 update your config`
20816
20840
  );
20817
20841
  }
20818
- throw new UserConfigError(
20819
- `${where}.${branchName}: unknown key "${qualified}" (known: ${[...branchSpec.leaves.keys()].join(", ")})`
20842
+ opts.onWarning?.(
20843
+ `${where}.${branchName}: unknown key "${qualified}" \u2014 ignored (typo, or set by a newer agentbox)`
20820
20844
  );
20821
20845
  }
20822
20846
  return out;
@@ -20880,7 +20904,12 @@ function projectConfigFile(absPath) {
20880
20904
  function workspaceConfigFile(workspacePath) {
20881
20905
  return (0, import_path8.join)(workspacePath, WORKSPACE_CONFIG_BASENAME);
20882
20906
  }
20883
- async function loadOptionalUserConfig(path6) {
20907
+ var warningSink = null;
20908
+ function collectWarning(into, message) {
20909
+ into.push(message);
20910
+ warningSink?.(message);
20911
+ }
20912
+ async function loadOptionalUserConfig(path6, warnings) {
20884
20913
  let text;
20885
20914
  try {
20886
20915
  text = await (0, import_promises18.readFile)(path6, "utf8");
@@ -20888,9 +20917,9 @@ async function loadOptionalUserConfig(path6) {
20888
20917
  if (err.code === "ENOENT") return {};
20889
20918
  throw err;
20890
20919
  }
20891
- return parseUserConfig(text, path6);
20920
+ return parseUserConfig(text, path6, { onWarning: (m) => collectWarning(warnings, m) });
20892
20921
  }
20893
- async function loadProjectAgentboxDefaults(workspacePath) {
20922
+ async function loadProjectAgentboxDefaults(workspacePath, warnings = []) {
20894
20923
  const path6 = workspaceConfigFile(workspacePath);
20895
20924
  let text;
20896
20925
  try {
@@ -20910,16 +20939,19 @@ async function loadProjectAgentboxDefaults(workspacePath) {
20910
20939
  }
20911
20940
  const defaults = doc["defaults"];
20912
20941
  if (defaults === void 0 || defaults === null) return {};
20913
- return parseUserConfigObject(defaults, `${path6} defaults`);
20942
+ return parseUserConfigObject(defaults, `${path6} defaults`, {
20943
+ onWarning: (m) => collectWarning(warnings, m)
20944
+ });
20914
20945
  }
20915
20946
  async function loadEffectiveConfig(cwd, opts = {}) {
20916
20947
  const projectRoot = await findProjectRoot(cwd);
20917
20948
  const projectPath = projectConfigFile(projectRoot.root);
20918
20949
  const workspacePath = projectRoot.hasAgentboxYaml ? workspaceConfigFile(projectRoot.root) : null;
20950
+ const warnings = [];
20919
20951
  const [globalValues, projectValues, workspaceValues] = await Promise.all([
20920
- loadOptionalUserConfig(GLOBAL_CONFIG_FILE),
20921
- loadOptionalUserConfig(projectPath),
20922
- workspacePath ? loadProjectAgentboxDefaults(projectRoot.root) : Promise.resolve({})
20952
+ loadOptionalUserConfig(GLOBAL_CONFIG_FILE, warnings),
20953
+ loadOptionalUserConfig(projectPath, warnings),
20954
+ workspacePath ? loadProjectAgentboxDefaults(projectRoot.root, warnings) : Promise.resolve({})
20923
20955
  ]);
20924
20956
  const cliValues = opts.cliOverrides ?? {};
20925
20957
  const { effective, sources } = mergeLayers({
@@ -20940,7 +20972,8 @@ async function loadEffectiveConfig(cwd, opts = {}) {
20940
20972
  sources,
20941
20973
  projectRoot: projectRoot.root,
20942
20974
  projectHash: hashProjectPath(projectRoot.root),
20943
- hasAgentboxYaml: projectRoot.hasAgentboxYaml
20975
+ hasAgentboxYaml: projectRoot.hasAgentboxYaml,
20976
+ warnings
20944
20977
  };
20945
20978
  }
20946
20979
  function mergeLayers(input) {
@@ -21273,7 +21306,7 @@ function getConnector(service) {
21273
21306
  return null;
21274
21307
  }
21275
21308
 
21276
- // ../relay/dist/chunk-MWEABU6N.js
21309
+ // ../relay/dist/chunk-GEIE6TWJ.js
21277
21310
  var import_crypto6 = require("crypto");
21278
21311
  var import_crypto7 = require("crypto");
21279
21312
  var import_path11 = require("path");
@@ -21836,6 +21869,10 @@ async function resolveCloudBackend(name) {
21836
21869
  const pkg = "@agentbox/sandbox-digitalocean";
21837
21870
  return loadCloudBackend(pkg, async () => (await import(pkg)).digitaloceanBackend);
21838
21871
  }
21872
+ if (name === "remote-docker") {
21873
+ const pkg = "@agentbox/sandbox-remote-docker";
21874
+ return loadCloudBackend(pkg, async () => (await import(pkg)).remoteDockerBackend);
21875
+ }
21839
21876
  const plugin = pluginForProvider(name);
21840
21877
  if (plugin) {
21841
21878
  if (!isSupportedApiVersion(plugin.apiVersion)) {
@@ -24413,7 +24450,7 @@ function parseBackoff(raw, where) {
24413
24450
  if (!isPlainObject5(raw)) {
24414
24451
  throw new ConfigError(`${where}.backoff must be a mapping`);
24415
24452
  }
24416
- rejectUnknownKeys(raw, BACKOFF_KEYS, `${where}.backoff`);
24453
+ warnUnknownKeys(raw, BACKOFF_KEYS, `${where}.backoff`);
24417
24454
  const initialMs = parseNonNegativeInt(
24418
24455
  raw.initial_ms,
24419
24456
  `${where}.backoff.initial_ms`,
@@ -24426,10 +24463,13 @@ function parseBackoff(raw, where) {
24426
24463
  }
24427
24464
  return { initialMs, maxMs, factor };
24428
24465
  }
24429
- function rejectUnknownKeys(obj, allowed, where) {
24466
+ var unknownKeyWarnings = [];
24467
+ function warnUnknownKeys(obj, allowed, where) {
24430
24468
  for (const key of Object.keys(obj)) {
24431
24469
  if (!allowed.has(key)) {
24432
- throw new ConfigError(`${where} has unknown key "${key}"`);
24470
+ unknownKeyWarnings.push(
24471
+ `${where} has unknown key "${key}" \u2014 ignored (typo, or written by a newer agentbox)`
24472
+ );
24433
24473
  }
24434
24474
  }
24435
24475
  }
@@ -24495,7 +24535,7 @@ function parseReadyWhen(raw, where) {
24495
24535
  if (!isPlainObject5(raw)) {
24496
24536
  throw new ConfigError(`${where}.ready_when must be a mapping`);
24497
24537
  }
24498
- rejectUnknownKeys(raw, PROBE_KEYS, `${where}.ready_when`);
24538
+ warnUnknownKeys(raw, PROBE_KEYS, `${where}.ready_when`);
24499
24539
  const kinds = [];
24500
24540
  if (raw.port !== void 0) kinds.push("port");
24501
24541
  if (raw.log_match !== void 0) kinds.push("log_match");
@@ -24654,7 +24694,7 @@ function parseImage(raw, where, defaultName) {
24654
24694
  if (!isPlainObject5(raw)) {
24655
24695
  throw new ConfigError(`${where}.image must be an image ref string or a mapping`);
24656
24696
  }
24657
- rejectUnknownKeys(raw, IMAGE_KEYS, `${where}.image`);
24697
+ warnUnknownKeys(raw, IMAGE_KEYS, `${where}.image`);
24658
24698
  const name = assertString(raw.name, `${where}.image.name`).trim();
24659
24699
  if (name.length === 0) throw new ConfigError(`${where}.image.name must not be empty`);
24660
24700
  const ports = parsePorts(raw.ports, `${where}.image`);
@@ -24678,7 +24718,7 @@ function parseExpose(raw, where) {
24678
24718
  if (!isPlainObject5(raw)) {
24679
24719
  throw new ConfigError(`${where}.expose must be a mapping`);
24680
24720
  }
24681
- rejectUnknownKeys(raw, EXPOSE_KEYS, `${where}.expose`);
24721
+ warnUnknownKeys(raw, EXPOSE_KEYS, `${where}.expose`);
24682
24722
  if (raw.port === void 0) {
24683
24723
  throw new ConfigError(`${where}.expose.port is required`);
24684
24724
  }
@@ -24702,7 +24742,7 @@ function parseService(name, raw) {
24702
24742
  if (!isPlainObject5(raw)) {
24703
24743
  throw new ConfigError(`${where} must be a mapping`);
24704
24744
  }
24705
- rejectUnknownKeys(raw, SERVICE_KEYS, where);
24745
+ warnUnknownKeys(raw, SERVICE_KEYS, where);
24706
24746
  const hasImage = raw.image !== void 0 && raw.image !== null;
24707
24747
  const hasCommand = raw.command !== void 0 && raw.command !== null;
24708
24748
  if (hasImage && hasCommand) {
@@ -24773,7 +24813,7 @@ function parseTask(name, raw) {
24773
24813
  if (!isPlainObject5(raw)) {
24774
24814
  throw new ConfigError(`${where} must be a mapping`);
24775
24815
  }
24776
- rejectUnknownKeys(raw, TASK_KEYS, where);
24816
+ warnUnknownKeys(raw, TASK_KEYS, where);
24777
24817
  const command = parseCommand2(raw.command, where);
24778
24818
  const cwd = raw.cwd === void 0 ? void 0 : assertString(raw.cwd, `${where}.cwd`);
24779
24819
  const env = parseEnv(raw.env, where);
@@ -24843,17 +24883,20 @@ function validateUnitGraph(tasks, services) {
24843
24883
  }
24844
24884
  }
24845
24885
  function parseConfig(text) {
24886
+ unknownKeyWarnings = [];
24846
24887
  let doc;
24847
24888
  try {
24848
24889
  doc = (0, import_yaml5.parse)(text);
24849
24890
  } catch (err) {
24850
24891
  throw new ConfigError(`yaml parse error: ${err instanceof Error ? err.message : String(err)}`);
24851
24892
  }
24852
- if (doc === null || doc === void 0) return { services: [], tasks: [], replacements: {} };
24893
+ if (doc === null || doc === void 0) {
24894
+ return { services: [], tasks: [], replacements: {}, warnings: [] };
24895
+ }
24853
24896
  if (!isPlainObject5(doc)) {
24854
24897
  throw new ConfigError("top-level config must be a mapping");
24855
24898
  }
24856
- rejectUnknownKeys(doc, TOP_LEVEL_KEYS, "(root)");
24899
+ warnUnknownKeys(doc, TOP_LEVEL_KEYS, "(root)");
24857
24900
  const services = [];
24858
24901
  const servicesRaw = doc.services;
24859
24902
  if (servicesRaw !== void 0 && servicesRaw !== null) {
@@ -24899,7 +24942,7 @@ function parseConfig(text) {
24899
24942
  } catch (err) {
24900
24943
  throw new ConfigError(err instanceof Error ? err.message : String(err));
24901
24944
  }
24902
- return { services, tasks, replacements: replacements2 };
24945
+ return { services, tasks, replacements: replacements2, warnings: unknownKeyWarnings };
24903
24946
  }
24904
24947
  async function loadConfig(path6) {
24905
24948
  let text;
@@ -24907,7 +24950,7 @@ async function loadConfig(path6) {
24907
24950
  text = await (0, import_promises22.readFile)(path6, "utf8");
24908
24951
  } catch (err) {
24909
24952
  if (err.code === "ENOENT") {
24910
- return { services: [], tasks: [], replacements: {} };
24953
+ return { services: [], tasks: [], replacements: {}, warnings: [] };
24911
24954
  }
24912
24955
  throw err;
24913
24956
  }
@@ -26939,6 +26982,8 @@ function resolveBoxRelayPort() {
26939
26982
  }
26940
26983
  var daemonCommand = new Command("daemon").description("Run the agentbox-ctl supervisor in the foreground").option("--socket <path>", "unix socket path", DEFAULT_SOCKET_PATH).option("--config <path>", "path to agentbox.yaml", DEFAULT_CONFIG_PATH).option("--log-dir <path>", "where per-service log files are written", DEFAULT_LOG_DIR).option("--state-dir <path>", "where run_once task markers are written", DEFAULT_STATE_DIR).option("--workspace <path>", "cwd for service processes", "/workspace").action(async (opts) => {
26941
26984
  const cfg = await loadConfig(opts.config);
26985
+ for (const w of cfg.warnings) process.stderr.write(`agentbox-ctl: warning: ${w}
26986
+ `);
26942
26987
  const webProxyPort = Number(process.env.AGENTBOX_WEB_PROXY_PORT) || void 0;
26943
26988
  const sup = new Supervisor({
26944
26989
  workspace: opts.workspace,
@@ -27747,6 +27792,8 @@ var validateCommand = new Command("validate").description("Check agentbox.yaml f
27747
27792
  }
27748
27793
  try {
27749
27794
  const cfg = await loadConfig(path6);
27795
+ for (const w of cfg.warnings) process.stderr.write(`warning: ${w}
27796
+ `);
27750
27797
  process.stdout.write(`OK: ${String(cfg.services.length)} service(s)
27751
27798
  `);
27752
27799
  } catch (err) {