@madarco/agentbox 0.27.1 → 0.27.2

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 (146) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{_cloud-attach-WDGM6FL5.js → _cloud-attach-FVD5YJCE.js} +6 -4
  3. package/dist/{chunk-NEF6MDJO.js → chunk-2PCU4OF5.js} +4 -4
  4. package/dist/{chunk-JE6UI5YR.js → chunk-47BVC7FN.js} +7 -59
  5. package/dist/chunk-47BVC7FN.js.map +1 -0
  6. package/dist/chunk-5ZK5MQA2.js +64 -0
  7. package/dist/chunk-5ZK5MQA2.js.map +1 -0
  8. package/dist/{chunk-26IKZRTT.js → chunk-A4OVGMVL.js} +23 -16
  9. package/dist/chunk-A4OVGMVL.js.map +1 -0
  10. package/dist/{chunk-KWOEUFVA.js → chunk-EZWPCTUO.js} +2 -2
  11. package/dist/{chunk-IDH5A4RR.js → chunk-F6NQZ4DC.js} +2 -2
  12. package/dist/chunk-IMN62QY5.js +285 -0
  13. package/dist/chunk-IMN62QY5.js.map +1 -0
  14. package/dist/{chunk-V5XXJH63.js → chunk-JNFUWQ4N.js} +2 -2
  15. package/dist/{chunk-UJEH2NJT.js → chunk-JRXNVEV3.js} +2 -271
  16. package/dist/chunk-JRXNVEV3.js.map +1 -0
  17. package/dist/{chunk-LL7NCMUU.js → chunk-QAJQXZ3N.js} +3 -3
  18. package/dist/{chunk-SJ75AIA2.js → chunk-QJT2XOKH.js} +8 -6
  19. package/dist/{chunk-SJ75AIA2.js.map → chunk-QJT2XOKH.js.map} +1 -1
  20. package/dist/{chunk-HR7NHH5J.js → chunk-RK2CEABS.js} +205 -5
  21. package/dist/{chunk-HR7NHH5J.js.map → chunk-RK2CEABS.js.map} +1 -1
  22. package/dist/cloud-backends.js +28 -0
  23. package/dist/cloud-backends.js.map +1 -0
  24. package/dist/{dist-O3LKOIE7.js → dist-2SXD3ITR.js} +6 -5
  25. package/dist/{dist-O3LKOIE7.js.map → dist-2SXD3ITR.js.map} +1 -1
  26. package/dist/{dist-FTKS2GI4.js → dist-4KTWNGU6.js} +6 -5
  27. package/dist/{dist-WVYAURMF.js → dist-6ZOCQZIP.js} +6 -5
  28. package/dist/{dist-OO52HARR.js → dist-7VCYREHM.js} +22 -20
  29. package/dist/{dist-KQTMCVME.js → dist-TL4YW7KZ.js} +6 -5
  30. package/dist/{dist-KQTMCVME.js.map → dist-TL4YW7KZ.js.map} +1 -1
  31. package/dist/{dist-TSFVB7AI.js → dist-UUOX4DBX.js} +6 -5
  32. package/dist/{dist-TSFVB7AI.js.map → dist-UUOX4DBX.js.map} +1 -1
  33. package/dist/dist-XSEK7LX3.js +156 -0
  34. package/dist/{dist-Z6L5MM5D.js → dist-YGXQMN2K.js} +6 -5
  35. package/dist/index.js +58 -54
  36. package/dist/index.js.map +1 -1
  37. package/dist/{prepared-state-75DIZ55S-TNJXWMXV.js → prepared-state-75DIZ55S-B33TDOJZ.js} +3 -2
  38. package/dist/prepared-state-75DIZ55S-B33TDOJZ.js.map +1 -0
  39. package/package.json +1 -1
  40. package/runtime/_shared/ctl.cjs +186 -172
  41. package/runtime/digitalocean/ctl.cjs +186 -172
  42. package/runtime/docker/packages/ctl/dist/bin.cjs +186 -172
  43. package/runtime/e2b/ctl.cjs +186 -172
  44. package/runtime/hetzner/ctl.cjs +186 -172
  45. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  46. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  47. package/runtime/hub/apps/hub/.next/prerender-manifest.json +3 -3
  48. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +1 -1
  49. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  50. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +12 -12
  51. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  52. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +11 -11
  53. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  54. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +8 -8
  55. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  56. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +1 -1
  57. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
  58. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  59. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  60. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  61. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  62. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  63. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  64. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  65. package/runtime/hub/apps/hub/.next/server/chunks/151__@better-auth_core_dist_0ecdp_3._.js +1 -1
  66. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04h15ml._.js +1 -1
  67. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04jgk9x._.js +1 -1
  68. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07ednlo._.js +1 -1
  69. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a7djvw._.js +1 -1
  70. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ig1bot._.js +1 -1
  71. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0szd4sh._.js +1 -1
  72. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t7o5ed._.js +1 -1
  73. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-0flwc._.js +1 -1
  74. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-9g0ae._.js +1 -1
  75. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1e4z_-v._.js → [root-of-the-server]__11izd5j._.js} +2 -2
  76. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13ioh5z._.js +1 -1
  77. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13jwk_k._.js +1 -1
  78. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16_uteg._.js +1 -1
  79. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16p2m-g._.js +1 -1
  80. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_gu2yk._.js +1 -1
  81. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ai-945._.js +1 -1
  82. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bu2zio._.js +1 -1
  83. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ctczev._.js +1 -1
  84. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f2sueq._.js +1 -1
  85. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9zctr._.js +1 -1
  86. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1md9kdw._.js +1 -1
  87. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mttufy._.js +1 -1
  88. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pp5oib._.js +1 -1
  89. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qwhzmi._.js +1 -1
  90. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1thipug._.js +1 -1
  91. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xeczo7._.js +1 -1
  92. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20503l7._.js +1 -1
  93. package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +2 -2
  94. package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +3 -3
  95. package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +1 -1
  96. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_03s-ah2._.js +1 -1
  97. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +1 -1
  98. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +1 -1
  99. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r4px38._.js +1 -1
  100. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_18w2zeh._.js +1 -1
  101. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +1 -1
  102. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +1 -1
  103. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +1 -1
  104. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
  105. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +1 -1
  106. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +1 -1
  107. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  108. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  109. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -1
  110. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +18 -18
  111. package/runtime/hub/apps/hub/.next/static/chunks/{30de2x24ntwkg.js → 1-maeq_pl3z29.js} +1 -1
  112. package/runtime/hub/apps/hub/.next/static/chunks/{2gfw8-qyx5xi_.js → 1f-pwhlfklk8h.js} +1 -1
  113. package/runtime/hub/apps/hub/.next/static/chunks/{3tqnniym2yvpb.js → 1g922r_mc5ciw.js} +1 -1
  114. package/runtime/hub/apps/hub/.next/static/chunks/{070w7h5rh5ja6.js → 2k1tvmngrtdgs.js} +1 -1
  115. package/runtime/hub/apps/hub/.next/static/chunks/{3e5n630psqst8.js → 2omimeqtc8qnp.js} +1 -1
  116. package/runtime/hub/apps/hub/.next/static/chunks/{2awpm9w8crker.js → 3urpddxa8b_je.js} +1 -1
  117. package/runtime/hub/apps/hub/{chunk-YJ5MJOXK.js → chunk-5ARPIPV4.js} +194 -171
  118. package/runtime/hub/apps/hub/{chunk-EHBJKZCL.js → chunk-AEIOQFZ4.js} +245 -2
  119. package/runtime/hub/apps/hub/dist-2EOAT3PC.js +155 -0
  120. package/runtime/hub/apps/hub/{dist-LYDHYTP2.js → dist-DQIL673Y.js} +2 -2
  121. package/runtime/hub/apps/hub/{dist-GTVVXCBP.js → dist-EURE7AUA.js} +2 -2
  122. package/runtime/hub/apps/hub/{dist-JG45OFT2.js → dist-EYHD64SR.js} +16 -16
  123. package/runtime/hub/apps/hub/{dist-G6TXUSPZ.js → dist-GFXXCXLS.js} +2 -2
  124. package/runtime/hub/apps/hub/{dist-DX6IYMAH.js → dist-IVA2PC7N.js} +2 -2
  125. package/runtime/hub/apps/hub/{dist-6FPPUSWZ.js → dist-MMTT7VYJ.js} +1 -1
  126. package/runtime/hub/apps/hub/{dist-3I7KUI6W.js → dist-TAWVTJGU.js} +2 -2
  127. package/runtime/hub/apps/hub/server.js +28 -15
  128. package/runtime/relay/bin.cjs +37 -3
  129. package/runtime/vercel/ctl.cjs +186 -172
  130. package/dist/chunk-26IKZRTT.js.map +0 -1
  131. package/dist/chunk-JE6UI5YR.js.map +0 -1
  132. package/dist/chunk-UJEH2NJT.js.map +0 -1
  133. /package/dist/{_cloud-attach-WDGM6FL5.js.map → _cloud-attach-FVD5YJCE.js.map} +0 -0
  134. /package/dist/{chunk-NEF6MDJO.js.map → chunk-2PCU4OF5.js.map} +0 -0
  135. /package/dist/{chunk-KWOEUFVA.js.map → chunk-EZWPCTUO.js.map} +0 -0
  136. /package/dist/{chunk-IDH5A4RR.js.map → chunk-F6NQZ4DC.js.map} +0 -0
  137. /package/dist/{chunk-V5XXJH63.js.map → chunk-JNFUWQ4N.js.map} +0 -0
  138. /package/dist/{chunk-LL7NCMUU.js.map → chunk-QAJQXZ3N.js.map} +0 -0
  139. /package/dist/{dist-FTKS2GI4.js.map → dist-4KTWNGU6.js.map} +0 -0
  140. /package/dist/{dist-OO52HARR.js.map → dist-6ZOCQZIP.js.map} +0 -0
  141. /package/dist/{dist-WVYAURMF.js.map → dist-7VCYREHM.js.map} +0 -0
  142. /package/dist/{dist-Z6L5MM5D.js.map → dist-XSEK7LX3.js.map} +0 -0
  143. /package/dist/{prepared-state-75DIZ55S-TNJXWMXV.js.map → dist-YGXQMN2K.js.map} +0 -0
  144. /package/runtime/hub/apps/hub/.next/static/{PWF2iHQOg9-rRyfqVDLrh → Wddru2A-5szSWhZWYoMwi}/_buildManifest.js +0 -0
  145. /package/runtime/hub/apps/hub/.next/static/{PWF2iHQOg9-rRyfqVDLrh → Wddru2A-5szSWhZWYoMwi}/_clientMiddlewareManifest.js +0 -0
  146. /package/runtime/hub/apps/hub/.next/static/{PWF2iHQOg9-rRyfqVDLrh → Wddru2A-5szSWhZWYoMwi}/_ssgManifest.js +0 -0
@@ -22,20 +22,22 @@ import {
22
22
  readBoxStatus,
23
23
  registerBoxWithRelay,
24
24
  syncClaudeCredentials
25
- } from "./chunk-26IKZRTT.js";
25
+ } from "./chunk-A4OVGMVL.js";
26
26
  import {
27
27
  hashProjectPath,
28
28
  loadEffectiveConfig,
29
29
  projectDirSegment,
30
30
  sanitizeMnemonic
31
31
  } from "./chunk-JGZSA5ZI.js";
32
+ import {
33
+ DEFAULT_BOX_IMAGE
34
+ } from "./chunk-IMN62QY5.js";
32
35
  import {
33
36
  AGENT_SYNC_SPECS,
34
37
  BOX_DYNAMIC_SYNC_MANIFEST,
35
38
  BOX_HOME,
36
39
  BOX_MEMORY_DIR,
37
40
  BOX_WORKFLOWS_DIR,
38
- DEFAULT_BOX_IMAGE,
39
41
  SEED_MARKER,
40
42
  SYNC_DRYRUN_ENV,
41
43
  UserFacingError,
@@ -77,7 +79,7 @@ import {
77
79
  stageOpencodeStateForUpload,
78
80
  stageOpencodeStaticForUpload,
79
81
  writeCredentialBackup
80
- } from "./chunk-UJEH2NJT.js";
82
+ } from "./chunk-JRXNVEV3.js";
81
83
 
82
84
  // ../../packages/sandbox-cloud/dist/index.js
83
85
  import { basename as basename2, resolve } from "path";
@@ -3087,6 +3089,26 @@ function defaultCommand(kind, opts) {
3087
3089
  function shellSingle(s) {
3088
3090
  return "'" + s.replace(/'/g, "'\\''") + "'";
3089
3091
  }
3092
+ function emptyCloudStats(provider) {
3093
+ return {
3094
+ source: provider,
3095
+ live: false,
3096
+ cpuPercent: null,
3097
+ memUsedBytes: null,
3098
+ memLimitBytes: null,
3099
+ memPercent: null,
3100
+ pids: null,
3101
+ diskUsedBytes: null,
3102
+ snapshotDiskBytes: null,
3103
+ checkpointVolumeBytes: null,
3104
+ netRxBytes: null,
3105
+ netTxBytes: null,
3106
+ blockReadBytes: null,
3107
+ blockWriteBytes: null,
3108
+ limits: { memoryBytes: null, cpus: null, pidsLimit: null, disk: null },
3109
+ warnings: []
3110
+ };
3111
+ }
3090
3112
  function remoteTarFor(kind) {
3091
3113
  return `/tmp/agentbox-seed-${kind}.tar.gz`;
3092
3114
  }
@@ -3163,14 +3185,183 @@ async function openWebAppOnVncScreen(box, provider) {
3163
3185
  return { opened: false, reason: err instanceof Error ? err.message : String(err) };
3164
3186
  }
3165
3187
  }
3188
+ function makeMockCloudBackend(opts = {}) {
3189
+ const name = opts.name ?? "mock";
3190
+ const calls = [];
3191
+ const sandboxes = /* @__PURE__ */ new Map();
3192
+ const snapshots = /* @__PURE__ */ new Map();
3193
+ for (const pre of opts.preloaded ?? []) {
3194
+ sandboxes.set(pre.id, {
3195
+ id: pre.id,
3196
+ name: pre.name ?? pre.id,
3197
+ state: pre.state ?? "running",
3198
+ createdAt: pre.createdAt ?? (/* @__PURE__ */ new Date()).toISOString(),
3199
+ image: "mock/preloaded",
3200
+ files: /* @__PURE__ */ new Map()
3201
+ });
3202
+ }
3203
+ const record = async (method, args) => {
3204
+ calls.push({ method, args });
3205
+ if (opts.beforeCall) await opts.beforeCall(method, args);
3206
+ };
3207
+ const requireSandbox = (id) => {
3208
+ const sb = sandboxes.get(id);
3209
+ if (!sb) throw new Error(`mock backend: sandbox ${id} not found`);
3210
+ return sb;
3211
+ };
3212
+ const backend = {
3213
+ name,
3214
+ get calls() {
3215
+ return calls;
3216
+ },
3217
+ get sandboxes() {
3218
+ return Array.from(sandboxes.values());
3219
+ },
3220
+ clearCalls() {
3221
+ calls.length = 0;
3222
+ },
3223
+ async provision(req) {
3224
+ await record("provision", [req]);
3225
+ const id = `mock-${String(sandboxes.size + 1)}-${req.name}`;
3226
+ sandboxes.set(id, {
3227
+ id,
3228
+ name: req.name,
3229
+ state: "running",
3230
+ createdAt: (/* @__PURE__ */ new Date()).toISOString(),
3231
+ image: req.snapshot ?? req.image,
3232
+ files: /* @__PURE__ */ new Map()
3233
+ });
3234
+ return { sandboxId: id };
3235
+ },
3236
+ async get(sandboxId) {
3237
+ await record("get", [sandboxId]);
3238
+ return sandboxes.has(sandboxId) ? { sandboxId } : null;
3239
+ },
3240
+ async list() {
3241
+ await record("list", []);
3242
+ return Array.from(sandboxes.values()).map((sb) => ({
3243
+ sandboxId: sb.id,
3244
+ name: sb.name,
3245
+ createdAt: sb.createdAt,
3246
+ state: sb.state
3247
+ }));
3248
+ },
3249
+ async start(h) {
3250
+ await record("start", [h]);
3251
+ const sb = requireSandbox(h.sandboxId);
3252
+ sb.state = "running";
3253
+ },
3254
+ async stop(h) {
3255
+ await record("stop", [h]);
3256
+ const sb = requireSandbox(h.sandboxId);
3257
+ sb.state = "stopped";
3258
+ },
3259
+ async pause(h) {
3260
+ await record("pause", [h]);
3261
+ const sb = requireSandbox(h.sandboxId);
3262
+ sb.state = "paused";
3263
+ },
3264
+ async resume(h) {
3265
+ await record("resume", [h]);
3266
+ const sb = requireSandbox(h.sandboxId);
3267
+ sb.state = "running";
3268
+ },
3269
+ async destroy(h) {
3270
+ await record("destroy", [h]);
3271
+ sandboxes.delete(h.sandboxId);
3272
+ },
3273
+ async state(h) {
3274
+ await record("state", [h]);
3275
+ const sb = sandboxes.get(h.sandboxId);
3276
+ return sb ? sb.state : "missing";
3277
+ },
3278
+ async exec(h, cmd, opts2) {
3279
+ await record("exec", [h, cmd, opts2]);
3280
+ requireSandbox(h.sandboxId);
3281
+ return { exitCode: 0, stdout: "", stderr: "" };
3282
+ },
3283
+ async uploadFile(h, localPath, remotePath) {
3284
+ await record("uploadFile", [h, localPath, remotePath]);
3285
+ const sb = requireSandbox(h.sandboxId);
3286
+ sb.files.set(remotePath, new Uint8Array([0]));
3287
+ },
3288
+ async downloadFile(h, remotePath, localPath) {
3289
+ await record("downloadFile", [h, remotePath, localPath]);
3290
+ const sb = requireSandbox(h.sandboxId);
3291
+ if (!sb.files.has(remotePath)) {
3292
+ throw new Error(`mock backend: ${remotePath} not in sandbox ${h.sandboxId}`);
3293
+ }
3294
+ },
3295
+ async listFiles(h, remoteDir) {
3296
+ await record("listFiles", [h, remoteDir]);
3297
+ const sb = requireSandbox(h.sandboxId);
3298
+ const prefix = remoteDir.endsWith("/") ? remoteDir : `${remoteDir}/`;
3299
+ const out = [];
3300
+ for (const p of sb.files.keys()) {
3301
+ if (p.startsWith(prefix)) {
3302
+ out.push({ name: p.slice(prefix.length), isDir: false });
3303
+ }
3304
+ }
3305
+ return out;
3306
+ },
3307
+ async previewUrl(h, port) {
3308
+ await record("previewUrl", [h, port]);
3309
+ requireSandbox(h.sandboxId);
3310
+ return { url: `https://${String(port)}-${h.sandboxId}.mock.preview`, token: "mock-token" };
3311
+ },
3312
+ async signedPreviewUrl(h, port, expiresInSeconds) {
3313
+ await record("signedPreviewUrl", [h, port, expiresInSeconds]);
3314
+ requireSandbox(h.sandboxId);
3315
+ return {
3316
+ url: `https://${String(port)}-${h.sandboxId}-signed${String(expiresInSeconds)}.mock.preview`
3317
+ };
3318
+ },
3319
+ async attachArgv(h) {
3320
+ await record("attachArgv", [h]);
3321
+ requireSandbox(h.sandboxId);
3322
+ return ["ssh", "-o", "StrictHostKeyChecking=no", `mock-token@${h.sandboxId}.mock.ssh`];
3323
+ },
3324
+ async revokeAttachToken(h, argv) {
3325
+ await record("revokeAttachToken", [h, argv]);
3326
+ },
3327
+ async ensureVolume(volumeName) {
3328
+ await record("ensureVolume", [volumeName]);
3329
+ return { volumeId: `vol-${volumeName}` };
3330
+ },
3331
+ async createSnapshot(h, snapshotName) {
3332
+ await record("createSnapshot", [h, snapshotName]);
3333
+ requireSandbox(h.sandboxId);
3334
+ snapshots.set(snapshotName, { id: snapshotName });
3335
+ },
3336
+ async deleteSnapshot(snapshotName) {
3337
+ await record("deleteSnapshot", [snapshotName]);
3338
+ snapshots.delete(snapshotName);
3339
+ }
3340
+ };
3341
+ return backend;
3342
+ }
3166
3343
 
3167
3344
  export {
3168
3345
  quoteShellArgv,
3169
3346
  quoteShellArg,
3170
3347
  bashScript,
3348
+ createCloudSyncTransport,
3171
3349
  ensureAgentVolumesForCloud,
3172
3350
  seedAgentVolumesIfFresh,
3351
+ ensureAgentHomeDirsOwned,
3352
+ seedOpencodeModelState,
3173
3353
  agentSpecsForCloud,
3354
+ extractCloudAgentCredentials,
3355
+ reconcileAgentCredentials,
3356
+ reconcileAgentCredentialsViaTransport,
3357
+ seedDynamicConfig,
3358
+ seedClaudeJsonAtCreate,
3359
+ seedGitIdentity,
3360
+ seedGitCredentials,
3361
+ uploadEnvFiles,
3362
+ makeCloudSync,
3363
+ CLOUD_CHECKPOINTS_ROOT,
3364
+ CLOUD_SNAPSHOT_NAME_PREFIX,
3174
3365
  cloudSnapshotName,
3175
3366
  listCloudBackendDirs,
3176
3367
  listCloudCheckpoints,
@@ -3181,12 +3372,21 @@ export {
3181
3372
  baseFreshnessFromFingerprints,
3182
3373
  removeCloudCheckpointDir,
3183
3374
  probeCloudCheckpoint,
3375
+ pullCloudDirContents,
3376
+ uploadToCloudBox,
3377
+ downloadFromCloudBox,
3378
+ kickCloudBootstrap,
3379
+ seedCloudWorkspace,
3380
+ CLOUD_WORKSPACE_DIR,
3184
3381
  CLOUD_WEB_PROXY_PORT,
3185
3382
  CLOUD_VNC_PORT,
3186
3383
  createCloudProvider,
3187
3384
  hostTermForCloud,
3188
3385
  renderInnerCommand,
3386
+ emptyCloudStats,
3387
+ buildAgentStaticSeedCommands,
3189
3388
  seedAgentStaticIntoCloudBox,
3190
- openWebAppOnVncScreen
3389
+ openWebAppOnVncScreen,
3390
+ makeMockCloudBackend
3191
3391
  };
3192
- //# sourceMappingURL=chunk-HR7NHH5J.js.map
3392
+ //# sourceMappingURL=chunk-RK2CEABS.js.map