@madarco/agentbox 0.23.1 → 0.23.3

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 (65) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{_cloud-attach-HGP3MQEG.js → _cloud-attach-BQRWX3J2.js} +4 -4
  3. package/dist/{chunk-QVWGQJV6.js → chunk-GGRZ3GZO.js} +2 -2
  4. package/dist/{chunk-L5SOSNQI.js → chunk-I6ZRWTPR.js} +26 -4
  5. package/dist/chunk-I6ZRWTPR.js.map +1 -0
  6. package/dist/{chunk-QGL734YX.js → chunk-LA4JMS27.js} +11 -3
  7. package/dist/{chunk-QGL734YX.js.map → chunk-LA4JMS27.js.map} +1 -1
  8. package/dist/{chunk-CKC3CP7Y.js → chunk-LK2JT2OO.js} +19 -7
  9. package/dist/{chunk-CKC3CP7Y.js.map → chunk-LK2JT2OO.js.map} +1 -1
  10. package/dist/{chunk-Q626V2YX.js → chunk-LSQXT5WZ.js} +2 -2
  11. package/dist/{chunk-4AV2L2KY.js → chunk-QEQFZLYR.js} +8 -8
  12. package/dist/{chunk-ERMU7RMK.js → chunk-SFA57TGX.js} +4 -4
  13. package/dist/{chunk-JXDSSSXS.js → chunk-W3FQPFP7.js} +3 -3
  14. package/dist/{dist-Z3GSHEFO.js → dist-CUKBKS3N.js} +5 -5
  15. package/dist/{dist-X3O3HEYD.js → dist-FXQFTT75.js} +5 -5
  16. package/dist/{dist-W5476E2U.js → dist-QO4CTLAX.js} +5 -5
  17. package/dist/{dist-GEHCZJCS.js → dist-V235KVEX.js} +5 -5
  18. package/dist/{dist-JFUUDAI3.js → dist-Z2NEVV55.js} +5 -3
  19. package/dist/index.js +22 -39
  20. package/dist/index.js.map +1 -1
  21. package/dist/{prepared-state-LW2PKTEQ-5YMKG7UN.js → prepared-state-BUO75YLZ-CDTISC2C.js} +2 -2
  22. package/package.json +1 -1
  23. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  24. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  25. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  26. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  27. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  28. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  29. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  30. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  31. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  32. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  33. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +1 -1
  34. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +2 -2
  35. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +2 -2
  36. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
  37. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  38. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  39. package/runtime/hub/apps/hub/.next/static/chunks/{1py5tlz57h7ra.js → 44o5lj23__y1m.js} +1 -1
  40. package/runtime/hub/apps/hub/{chunk-JQFB2CNA.js → chunk-2Z74R6ZT.js} +10 -2
  41. package/runtime/hub/apps/hub/{chunk-6HD4PARX.js → chunk-AR7CEZ2G.js} +25 -3
  42. package/runtime/hub/apps/hub/{chunk-K6RA5GJI.js → chunk-H22XP3NY.js} +18 -6
  43. package/runtime/hub/apps/hub/{dist-OUNL2TCW.js → dist-LNHEG5P4.js} +3 -3
  44. package/runtime/hub/apps/hub/{dist-7GNKBKFV.js → dist-LZNRLUYY.js} +3 -3
  45. package/runtime/hub/apps/hub/{dist-JWVTVHBT.js → dist-Q6G66Z57.js} +3 -3
  46. package/runtime/hub/apps/hub/{dist-L2MMBH7P.js → dist-SD4G36EP.js} +3 -3
  47. package/runtime/hub/apps/hub/{dist-3HR4RIPE.js → dist-VV6Z2CQX.js} +4 -2
  48. package/runtime/hub/apps/hub/{prepared-state-LW2PKTEQ-7BCXARGA.js → prepared-state-BUO75YLZ-CAXQS5Y3.js} +1 -1
  49. package/runtime/hub/apps/hub/server.js +23 -10
  50. package/dist/chunk-L5SOSNQI.js.map +0 -1
  51. /package/dist/{_cloud-attach-HGP3MQEG.js.map → _cloud-attach-BQRWX3J2.js.map} +0 -0
  52. /package/dist/{chunk-QVWGQJV6.js.map → chunk-GGRZ3GZO.js.map} +0 -0
  53. /package/dist/{chunk-Q626V2YX.js.map → chunk-LSQXT5WZ.js.map} +0 -0
  54. /package/dist/{chunk-4AV2L2KY.js.map → chunk-QEQFZLYR.js.map} +0 -0
  55. /package/dist/{chunk-ERMU7RMK.js.map → chunk-SFA57TGX.js.map} +0 -0
  56. /package/dist/{chunk-JXDSSSXS.js.map → chunk-W3FQPFP7.js.map} +0 -0
  57. /package/dist/{dist-JFUUDAI3.js.map → dist-CUKBKS3N.js.map} +0 -0
  58. /package/dist/{dist-X3O3HEYD.js.map → dist-FXQFTT75.js.map} +0 -0
  59. /package/dist/{dist-W5476E2U.js.map → dist-QO4CTLAX.js.map} +0 -0
  60. /package/dist/{dist-GEHCZJCS.js.map → dist-V235KVEX.js.map} +0 -0
  61. /package/dist/{dist-Z3GSHEFO.js.map → dist-Z2NEVV55.js.map} +0 -0
  62. /package/dist/{prepared-state-LW2PKTEQ-5YMKG7UN.js.map → prepared-state-BUO75YLZ-CDTISC2C.js.map} +0 -0
  63. /package/runtime/hub/apps/hub/.next/static/{mcWRLSGubwKk9p3RFz2-Q → 12hWAUQ9O9G3VS4vxKuav}/_buildManifest.js +0 -0
  64. /package/runtime/hub/apps/hub/.next/static/{mcWRLSGubwKk9p3RFz2-Q → 12hWAUQ9O9G3VS4vxKuav}/_clientMiddlewareManifest.js +0 -0
  65. /package/runtime/hub/apps/hub/.next/static/{mcWRLSGubwKk9p3RFz2-Q → 12hWAUQ9O9G3VS4vxKuav}/_ssgManifest.js +0 -0
@@ -2525,7 +2525,7 @@ function resolveContextFilesFrom(fileMap, opts) {
2525
2525
  return out;
2526
2526
  }
2527
2527
 
2528
- // ../../packages/sandbox-docker/dist/chunk-BSXR4H44.js
2528
+ // ../../packages/sandbox-docker/dist/chunk-M4EQJUB5.js
2529
2529
  import { dirname as dirname23, resolve as resolve23 } from "path";
2530
2530
  import { fileURLToPath as fileURLToPath2 } from "url";
2531
2531
  import { execa as execa7 } from "execa";
@@ -2575,8 +2575,11 @@ async function pullImage(target, opts = {}) {
2575
2575
  stdout: "pipe",
2576
2576
  reject: false
2577
2577
  });
2578
+ let heartbeat;
2578
2579
  if (opts.onProgress) {
2580
+ let lastLineAt = Date.now();
2579
2581
  const forward = (chunk) => {
2582
+ lastLineAt = Date.now();
2580
2583
  const text = typeof chunk === "string" ? chunk : chunk.toString("utf8");
2581
2584
  for (const line of text.split(/\r?\n/)) {
2582
2585
  if (line.length > 0) opts.onProgress?.(line);
@@ -2584,9 +2587,18 @@ async function pullImage(target, opts = {}) {
2584
2587
  };
2585
2588
  subprocess.stdout?.on("data", forward);
2586
2589
  subprocess.stderr?.on("data", forward);
2590
+ heartbeat = setInterval(() => {
2591
+ if (Date.now() - lastLineAt >= 2e4) {
2592
+ opts.onProgress?.(`still extracting ${target} \u2014 large layers can take a few minutes`);
2593
+ }
2594
+ }, 2e4);
2595
+ }
2596
+ try {
2597
+ const result = await subprocess;
2598
+ return result.exitCode === 0;
2599
+ } finally {
2600
+ if (heartbeat) clearInterval(heartbeat);
2587
2601
  }
2588
- const result = await subprocess;
2589
- return result.exitCode === 0;
2590
2602
  }
2591
2603
  async function tagImage(source, target) {
2592
2604
  await execa7("docker", ["tag", source, target]);
@@ -2637,7 +2649,7 @@ async function buildImage(opts = {}) {
2637
2649
  return ref;
2638
2650
  }
2639
2651
  async function pullOrBuild(ref, fingerprint, opts = {}) {
2640
- const { writePreparedDockerState: writePreparedDockerState2 } = await import("./prepared-state-LW2PKTEQ-5YMKG7UN.js");
2652
+ const { writePreparedDockerState: writePreparedDockerState2 } = await import("./prepared-state-BUO75YLZ-CDTISC2C.js");
2641
2653
  const registry = opts.registry ?? BOX_IMAGE_REGISTRY;
2642
2654
  const allowPull = opts.allowPull !== false;
2643
2655
  if (allowPull && registry && fingerprint) {
@@ -2664,7 +2676,7 @@ async function pullOrBuild(ref, fingerprint, opts = {}) {
2664
2676
  return { source: "built" };
2665
2677
  }
2666
2678
  async function ensureImage(ref = DEFAULT_BOX_IMAGE, opts = {}) {
2667
- const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2, preparedMatches: preparedMatches2 } = await import("./prepared-state-LW2PKTEQ-5YMKG7UN.js");
2679
+ const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2, preparedMatches: preparedMatches2 } = await import("./prepared-state-BUO75YLZ-CDTISC2C.js");
2668
2680
  const claudeInstall = opts.claudeInstall ?? await resolveClaudeInstallMode();
2669
2681
  const rawFingerprint = await computeDockerContextFingerprint2({
2670
2682
  contextDir: opts.contextDir
@@ -2714,7 +2726,7 @@ function classifyDockerBaseFreshness(input) {
2714
2726
  return { state: "fresh" };
2715
2727
  }
2716
2728
  async function evaluateDockerBaseFreshness(opts = {}) {
2717
- const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2 } = await import("./prepared-state-LW2PKTEQ-5YMKG7UN.js");
2729
+ const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2 } = await import("./prepared-state-BUO75YLZ-CDTISC2C.js");
2718
2730
  const ref = opts.ref ?? DEFAULT_BOX_IMAGE;
2719
2731
  const imagePresent = await imageExists(ref);
2720
2732
  if (!imagePresent) return { state: "unprepared" };
@@ -2904,4 +2916,4 @@ export {
2904
2916
  writePreparedDockerState,
2905
2917
  preparedMatches
2906
2918
  };
2907
- //# sourceMappingURL=chunk-CKC3CP7Y.js.map
2919
+ //# sourceMappingURL=chunk-LK2JT2OO.js.map