@madarco/agentbox 0.22.1 → 0.22.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 (122) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/{_cloud-attach-YH2SU75S.js → _cloud-attach-Y5WZ7F53.js} +5 -5
  3. package/dist/{chunk-KBVD2UUQ.js → chunk-3KAWXDQ4.js} +3 -3
  4. package/dist/{chunk-YZXXBHWG.js → chunk-5DZTXHLQ.js} +3 -3
  5. package/dist/{chunk-O2NDZQHN.js → chunk-7HAGPF4X.js} +2 -2
  6. package/dist/{chunk-O67ZESNL.js → chunk-AYNGC4Z5.js} +4 -4
  7. package/dist/{chunk-GGWVTWJM.js → chunk-BMCT3LBE.js} +16 -13
  8. package/dist/chunk-BMCT3LBE.js.map +1 -0
  9. package/dist/{chunk-ALEYDWAO.js → chunk-ES2DDCAC.js} +303 -87
  10. package/dist/chunk-ES2DDCAC.js.map +1 -0
  11. package/dist/{chunk-VBSRJG53.js → chunk-QT3SHMLY.js} +9 -1
  12. package/dist/chunk-QT3SHMLY.js.map +1 -0
  13. package/dist/{chunk-CDEJ2GQK.js → chunk-S4OWE3UD.js} +4 -4
  14. package/dist/{chunk-W2FLHB54.js → chunk-V2NCCC2B.js} +2 -2
  15. package/dist/{dist-QBXEP4VY.js → dist-2BTJQUJS.js} +2 -2
  16. package/dist/{dist-LJHS4PTC.js → dist-AN5NUXA5.js} +6 -6
  17. package/dist/{dist-EJXUKIR7.js → dist-FNAGMTUI.js} +4 -4
  18. package/dist/{dist-YECTRVGD.js → dist-K5GASNBV.js} +6 -6
  19. package/dist/{dist-UR2DB2HT.js → dist-SJRMFVRV.js} +6 -6
  20. package/dist/{dist-QNV4H6NN.js → dist-VOVN64Y2.js} +6 -6
  21. package/dist/index.js +1108 -727
  22. package/dist/index.js.map +1 -1
  23. package/dist/{prepared-state-5FIGV4BE-BMUK63FD.js → prepared-state-5FIGV4BE-WPHOEDA6.js} +2 -2
  24. package/package.json +5 -5
  25. package/runtime/_shared/ctl.cjs +10 -0
  26. package/runtime/docker/packages/ctl/dist/bin.cjs +10 -0
  27. package/runtime/e2b/ctl.cjs +10 -0
  28. package/runtime/hetzner/ctl.cjs +10 -0
  29. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  30. package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +1 -0
  31. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  32. package/runtime/hub/apps/hub/.next/routes-manifest.json +8 -0
  33. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route/app-paths-manifest.json +3 -0
  34. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route/build-manifest.json +9 -0
  35. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route/server-reference-manifest.json +4 -0
  36. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js +9 -0
  37. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.map +5 -0
  38. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -0
  39. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route_client-reference-manifest.js +3 -0
  40. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  41. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +12 -0
  42. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  43. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -0
  44. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  45. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +12 -0
  46. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  47. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  48. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  49. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  50. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  51. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  52. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  53. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  54. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  55. package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +1 -0
  56. package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_095p8vu._.js +1 -1
  57. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_rename_route_actions_0mf3a9p.js +3 -0
  58. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +1 -1
  59. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +1 -1
  60. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0szd4sh._.js +3 -0
  61. package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +14 -14
  62. package/runtime/hub/apps/hub/.next/server/chunks/_0lgs9kd._.js +3 -0
  63. package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +1 -1
  64. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_09gdzmo._.js +1 -1
  65. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +1 -1
  66. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ro6vh6._.js +1 -1
  67. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0tgpglr._.js +1 -1
  68. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1laion6._.js +1 -1
  69. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +1 -1
  70. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +1 -1
  71. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_components_1z1p98f._.js +1 -1
  72. package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +1 -0
  73. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  74. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  75. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -1
  76. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +24 -0
  77. package/runtime/hub/apps/hub/.next/static/chunks/2xc1sm79a6tsb.js +1 -0
  78. package/runtime/hub/apps/hub/.next/static/chunks/332lo0ac7l2wv.js +1 -0
  79. package/runtime/hub/apps/hub/.next/static/chunks/3gdqmzzl34ilu.js +1 -0
  80. package/runtime/hub/apps/hub/.next/static/chunks/44exu5uemf-ev.js +1 -0
  81. package/runtime/hub/apps/hub/{auth-YBXDRLHG.js → auth-675P3LQS.js} +2 -2
  82. package/runtime/hub/apps/hub/{auth-config-LJGI76HI.js → auth-config-AOBEKRZQ.js} +2 -2
  83. package/runtime/hub/apps/hub/{chunk-OBKLTPIR.js → chunk-56YQBVN2.js} +1 -1
  84. package/runtime/hub/apps/hub/{chunk-LJG4CEGS.js → chunk-5XQ3T3W2.js} +274 -84
  85. package/runtime/hub/apps/hub/{chunk-JDA7BPPN.js → chunk-673QOHSR.js} +3 -3
  86. package/runtime/hub/apps/hub/{chunk-V5KGFHCF.js → chunk-7J6ZFTT4.js} +2 -2
  87. package/runtime/hub/apps/hub/{chunk-AKLBSCSZ.js → chunk-EXQCBM5Q.js} +8 -0
  88. package/runtime/hub/apps/hub/{dist-GGM4BUKM.js → dist-EI54M5DP.js} +4 -4
  89. package/runtime/hub/apps/hub/{dist-ELOY2IUE.js → dist-GCALYJN7.js} +3 -3
  90. package/runtime/hub/apps/hub/{dist-FDBOJ74K.js → dist-K7WHNDZB.js} +4 -4
  91. package/runtime/hub/apps/hub/{dist-CM4YAQLI.js → dist-LYTWBTUL.js} +4 -4
  92. package/runtime/hub/apps/hub/{dist-BF54UNHK.js → dist-MOCUH2OC.js} +4 -4
  93. package/runtime/hub/apps/hub/{dist-IENF7YOD.js → dist-STQK5XM6.js} +1 -1
  94. package/runtime/hub/apps/hub/{hub-token-EW32VDIU.js → hub-token-2BZFBBW3.js} +2 -2
  95. package/runtime/hub/apps/hub/{prepared-state-5FIGV4BE-FIXKBF5A.js → prepared-state-5FIGV4BE-D2HJEY2L.js} +1 -1
  96. package/runtime/hub/apps/hub/server.js +57 -16
  97. package/runtime/relay/bin.cjs +10 -0
  98. package/runtime/vercel/ctl.cjs +10 -0
  99. package/dist/chunk-ALEYDWAO.js.map +0 -1
  100. package/dist/chunk-GGWVTWJM.js.map +0 -1
  101. package/dist/chunk-VBSRJG53.js.map +0 -1
  102. package/runtime/hub/apps/hub/.next/static/chunks/0lq354ziiwxxl.js +0 -1
  103. package/runtime/hub/apps/hub/.next/static/chunks/11vmjdy3390ik.js +0 -1
  104. package/runtime/hub/apps/hub/.next/static/chunks/1svigjdfotduh.js +0 -1
  105. package/runtime/hub/apps/hub/.next/static/chunks/2d5e6t-5j4etp.js +0 -1
  106. /package/dist/{_cloud-attach-YH2SU75S.js.map → _cloud-attach-Y5WZ7F53.js.map} +0 -0
  107. /package/dist/{chunk-KBVD2UUQ.js.map → chunk-3KAWXDQ4.js.map} +0 -0
  108. /package/dist/{chunk-YZXXBHWG.js.map → chunk-5DZTXHLQ.js.map} +0 -0
  109. /package/dist/{chunk-O2NDZQHN.js.map → chunk-7HAGPF4X.js.map} +0 -0
  110. /package/dist/{chunk-O67ZESNL.js.map → chunk-AYNGC4Z5.js.map} +0 -0
  111. /package/dist/{chunk-CDEJ2GQK.js.map → chunk-S4OWE3UD.js.map} +0 -0
  112. /package/dist/{chunk-W2FLHB54.js.map → chunk-V2NCCC2B.js.map} +0 -0
  113. /package/dist/{dist-EJXUKIR7.js.map → dist-2BTJQUJS.js.map} +0 -0
  114. /package/dist/{dist-LJHS4PTC.js.map → dist-AN5NUXA5.js.map} +0 -0
  115. /package/dist/{dist-QBXEP4VY.js.map → dist-FNAGMTUI.js.map} +0 -0
  116. /package/dist/{dist-QNV4H6NN.js.map → dist-K5GASNBV.js.map} +0 -0
  117. /package/dist/{dist-UR2DB2HT.js.map → dist-SJRMFVRV.js.map} +0 -0
  118. /package/dist/{dist-YECTRVGD.js.map → dist-VOVN64Y2.js.map} +0 -0
  119. /package/dist/{prepared-state-5FIGV4BE-BMUK63FD.js.map → prepared-state-5FIGV4BE-WPHOEDA6.js.map} +0 -0
  120. /package/runtime/hub/apps/hub/.next/static/{TpPTWVdZDxqrPlONtJcR5 → zT1paOSXMJpAPsZ1dFK2V}/_buildManifest.js +0 -0
  121. /package/runtime/hub/apps/hub/.next/static/{TpPTWVdZDxqrPlONtJcR5 → zT1paOSXMJpAPsZ1dFK2V}/_clientMiddlewareManifest.js +0 -0
  122. /package/runtime/hub/apps/hub/.next/static/{TpPTWVdZDxqrPlONtJcR5 → zT1paOSXMJpAPsZ1dFK2V}/_ssgManifest.js +0 -0
@@ -21,14 +21,14 @@ import {
21
21
  portlessUnalias,
22
22
  registerBoxWithRelay,
23
23
  syncClaudeCredentials
24
- } from "./chunk-V5KGFHCF.js";
24
+ } from "./chunk-7J6ZFTT4.js";
25
25
  import {
26
26
  hashProjectPath,
27
27
  loadEffectiveConfig,
28
28
  projectDirSegment,
29
29
  require_dist,
30
30
  sanitizeMnemonic
31
- } from "./chunk-AKLBSCSZ.js";
31
+ } from "./chunk-EXQCBM5Q.js";
32
32
  import {
33
33
  BOX_DYNAMIC_SYNC_MANIFEST,
34
34
  BOX_HOME,
@@ -67,7 +67,7 @@ import {
67
67
  stageOpencodeCredentialsForUpload,
68
68
  stageOpencodeStateForUpload,
69
69
  stageOpencodeStaticForUpload
70
- } from "./chunk-LJG4CEGS.js";
70
+ } from "./chunk-5XQ3T3W2.js";
71
71
  import {
72
72
  execa
73
73
  } from "./chunk-EFW34I43.js";
@@ -9,7 +9,7 @@ import {
9
9
  require_dist,
10
10
  sanitizeMnemonic,
11
11
  setConfigValue
12
- } from "./chunk-AKLBSCSZ.js";
12
+ } from "./chunk-EXQCBM5Q.js";
13
13
  import {
14
14
  AmbiguousBoxError,
15
15
  BOX_HOME,
@@ -73,7 +73,7 @@ import {
73
73
  setInstallMethodNative,
74
74
  trustWorkspace,
75
75
  upstreamRef
76
- } from "./chunk-LJG4CEGS.js";
76
+ } from "./chunk-5XQ3T3W2.js";
77
77
  import {
78
78
  execa
79
79
  } from "./chunk-EFW34I43.js";
@@ -7533,6 +7533,9 @@ var BUILT_IN_DEFAULTS = {
7533
7533
  pruneProjectConfigs: true,
7534
7534
  pruneProjectConfigsEvery: 50
7535
7535
  },
7536
+ update: {
7537
+ check: true
7538
+ },
7536
7539
  integrations: {
7537
7540
  notion: { enabled: false },
7538
7541
  linear: { enabled: false }
@@ -7901,6 +7904,11 @@ var KEY_REGISTRY = [
7901
7904
  type: "int",
7902
7905
  description: "Run the orphan project-config sweep every N successful `agentbox create`."
7903
7906
  },
7907
+ {
7908
+ key: "update.check",
7909
+ type: "bool",
7910
+ description: 'Daily background check for a newer published agentbox (npm registry) and menu-bar app (release sha sidecar), plus the "newer version available" nudge. At most one network probe per 24h; false disables both.'
7911
+ },
7904
7912
  {
7905
7913
  key: "integrations.notion.enabled",
7906
7914
  type: "bool",
@@ -12,12 +12,12 @@ import {
12
12
  } from "./chunk-OF242BLD.js";
13
13
  import {
14
14
  createCloudProvider
15
- } from "./chunk-JDA7BPPN.js";
15
+ } from "./chunk-673QOHSR.js";
16
16
  import {
17
17
  detectPortless,
18
18
  portlessDoctorRow
19
- } from "./chunk-V5KGFHCF.js";
20
- import "./chunk-AKLBSCSZ.js";
19
+ } from "./chunk-7J6ZFTT4.js";
20
+ import "./chunk-EXQCBM5Q.js";
21
21
  import "./chunk-3LAHFDJF.js";
22
22
  import {
23
23
  UserFacingError,
@@ -34,7 +34,7 @@ import {
34
34
  stageOpencodeStaticForUpload,
35
35
  writeManagedSecrets,
36
36
  writePreparedStateRaw
37
- } from "./chunk-LJG4CEGS.js";
37
+ } from "./chunk-5XQ3T3W2.js";
38
38
  import {
39
39
  execa
40
40
  } from "./chunk-EFW34I43.js";
@@ -217,8 +217,8 @@ import {
217
217
  vscodeServerVolumeName,
218
218
  waitForTmuxPaneContent,
219
219
  warmUpClaudeCredentials
220
- } from "./chunk-V5KGFHCF.js";
221
- import "./chunk-AKLBSCSZ.js";
220
+ } from "./chunk-7J6ZFTT4.js";
221
+ import "./chunk-EXQCBM5Q.js";
222
222
  import "./chunk-3LAHFDJF.js";
223
223
  import {
224
224
  AmbiguousBoxError,
@@ -265,7 +265,7 @@ import {
265
265
  stageDynamicSyncTarball,
266
266
  tagImage,
267
267
  writePreparedDockerState
268
- } from "./chunk-LJG4CEGS.js";
268
+ } from "./chunk-5XQ3T3W2.js";
269
269
  import "./chunk-EFW34I43.js";
270
270
  import "./chunk-TZFWAJVB.js";
271
271
  export {
@@ -13,9 +13,9 @@ import {
13
13
  } from "./chunk-OF242BLD.js";
14
14
  import {
15
15
  createCloudProvider
16
- } from "./chunk-JDA7BPPN.js";
17
- import "./chunk-V5KGFHCF.js";
18
- import "./chunk-AKLBSCSZ.js";
16
+ } from "./chunk-673QOHSR.js";
17
+ import "./chunk-7J6ZFTT4.js";
18
+ import "./chunk-EXQCBM5Q.js";
19
19
  import "./chunk-3LAHFDJF.js";
20
20
  import {
21
21
  DOCKER_CONTEXT_FILE_MAP,
@@ -29,7 +29,7 @@ import {
29
29
  stageAllAgentStatic,
30
30
  writeManagedSecrets,
31
31
  writePreparedStateRaw
32
- } from "./chunk-LJG4CEGS.js";
32
+ } from "./chunk-5XQ3T3W2.js";
33
33
  import "./chunk-EFW34I43.js";
34
34
  import "./chunk-TZFWAJVB.js";
35
35
 
@@ -21,9 +21,9 @@ import {
21
21
  renderInnerCommand,
22
22
  resolveCloudCheckpoint,
23
23
  writeCloudCheckpointManifest
24
- } from "./chunk-JDA7BPPN.js";
25
- import "./chunk-V5KGFHCF.js";
26
- import "./chunk-AKLBSCSZ.js";
24
+ } from "./chunk-673QOHSR.js";
25
+ import "./chunk-7J6ZFTT4.js";
26
+ import "./chunk-EXQCBM5Q.js";
27
27
  import "./chunk-3LAHFDJF.js";
28
28
  import {
29
29
  UserFacingError,
@@ -40,7 +40,7 @@ import {
40
40
  stageOpencodeStaticForUpload,
41
41
  writeManagedSecrets,
42
42
  writePreparedStateRaw
43
- } from "./chunk-LJG4CEGS.js";
43
+ } from "./chunk-5XQ3T3W2.js";
44
44
  import {
45
45
  execa
46
46
  } from "./chunk-EFW34I43.js";
@@ -18,9 +18,9 @@ import {
18
18
  renderInnerCommand,
19
19
  resolveCloudCheckpoint,
20
20
  writeCloudCheckpointManifest
21
- } from "./chunk-JDA7BPPN.js";
22
- import "./chunk-V5KGFHCF.js";
23
- import "./chunk-AKLBSCSZ.js";
21
+ } from "./chunk-673QOHSR.js";
22
+ import "./chunk-7J6ZFTT4.js";
23
+ import "./chunk-EXQCBM5Q.js";
24
24
  import "./chunk-3LAHFDJF.js";
25
25
  import {
26
26
  UserFacingError,
@@ -35,7 +35,7 @@ import {
35
35
  stageAllAgentStatic,
36
36
  writeManagedSecrets,
37
37
  writePreparedStateRaw
38
- } from "./chunk-LJG4CEGS.js";
38
+ } from "./chunk-5XQ3T3W2.js";
39
39
  import "./chunk-EFW34I43.js";
40
40
  import "./chunk-TZFWAJVB.js";
41
41
 
@@ -41,7 +41,7 @@ import {
41
41
  unregisterProject,
42
42
  unsetConfigValue,
43
43
  workspaceConfigFile
44
- } from "./chunk-AKLBSCSZ.js";
44
+ } from "./chunk-EXQCBM5Q.js";
45
45
  import "./chunk-TZFWAJVB.js";
46
46
  export {
47
47
  BUILT_IN_DEFAULTS,
@@ -1,8 +1,8 @@
1
1
  import { createRequire as __cr } from 'node:module'; import { fileURLToPath as __f } from 'node:url'; import { dirname as __d } from 'node:path'; const require = __cr(import.meta.url); const __filename = __f(import.meta.url); const __dirname = __d(__filename);
2
2
  import {
3
3
  AUTH_TOKEN_PATH
4
- } from "./chunk-OBKLTPIR.js";
5
- import "./chunk-AKLBSCSZ.js";
4
+ } from "./chunk-56YQBVN2.js";
5
+ import "./chunk-EXQCBM5Q.js";
6
6
  import "./chunk-TZFWAJVB.js";
7
7
 
8
8
  // lib/hub-token.ts
@@ -6,7 +6,7 @@ import {
6
6
  readPreparedDockerState,
7
7
  resolveContextFiles,
8
8
  writePreparedDockerState
9
- } from "./chunk-LJG4CEGS.js";
9
+ } from "./chunk-5XQ3T3W2.js";
10
10
  import "./chunk-EFW34I43.js";
11
11
  import "./chunk-TZFWAJVB.js";
12
12
  export {
@@ -2,7 +2,7 @@ import { createRequire as __cr } from 'node:module'; import { fileURLToPath as _
2
2
  import {
3
3
  baseFreshnessFromFingerprints,
4
4
  currentCloudBaseFingerprint
5
- } from "./chunk-JDA7BPPN.js";
5
+ } from "./chunk-673QOHSR.js";
6
6
  import {
7
7
  enqueuePrepareJob,
8
8
  enqueueQueueJob,
@@ -14,7 +14,7 @@ import {
14
14
  readJob,
15
15
  startRelayDaemon,
16
16
  writeQueueLoginCode
17
- } from "./chunk-V5KGFHCF.js";
17
+ } from "./chunk-7J6ZFTT4.js";
18
18
  import {
19
19
  PROVIDER_NAMES,
20
20
  findProjectRoot,
@@ -26,10 +26,11 @@ import {
26
26
  registerProject,
27
27
  resolveDefaultCheckpoint,
28
28
  unregisterProject
29
- } from "./chunk-AKLBSCSZ.js";
29
+ } from "./chunk-EXQCBM5Q.js";
30
30
  import "./chunk-3LAHFDJF.js";
31
31
  import {
32
32
  BOX_WORKSPACE,
33
+ autoWriteSshConfig,
33
34
  boxGitCheckout,
34
35
  boxGitNewBranch,
35
36
  boxGitPull,
@@ -41,8 +42,10 @@ import {
41
42
  normalizeLastAgent,
42
43
  readPreparedStateRaw,
43
44
  readState,
44
- secretsEnvPath
45
- } from "./chunk-LJG4CEGS.js";
45
+ secretsEnvPath,
46
+ setBoxDisplayName,
47
+ syncAgentboxSshConfig
48
+ } from "./chunk-5XQ3T3W2.js";
46
49
  import "./chunk-EFW34I43.js";
47
50
  import "./chunk-TZFWAJVB.js";
48
51
 
@@ -59,12 +62,13 @@ import os from "node:os";
59
62
  import path from "node:path";
60
63
  import { promisify } from "node:util";
61
64
  var execFileAsync = promisify(execFile);
65
+ var DISPLAY_NAME_MAX = 60;
62
66
  var IMPORTERS = {
63
- docker: () => import("./dist-ELOY2IUE.js"),
64
- daytona: () => import("./dist-FDBOJ74K.js"),
65
- hetzner: () => import("./dist-GGM4BUKM.js"),
66
- vercel: () => import("./dist-CM4YAQLI.js"),
67
- e2b: () => import("./dist-BF54UNHK.js")
67
+ docker: () => import("./dist-GCALYJN7.js"),
68
+ daytona: () => import("./dist-K7WHNDZB.js"),
69
+ hetzner: () => import("./dist-EI54M5DP.js"),
70
+ vercel: () => import("./dist-LYTWBTUL.js"),
71
+ e2b: () => import("./dist-MOCUH2OC.js")
68
72
  };
69
73
  var prepareEnqueueChain = /* @__PURE__ */ new Map();
70
74
  async function providerForBox(box) {
@@ -105,7 +109,10 @@ function mapBox(b) {
105
109
  projectId: hashProjectPath(root),
106
110
  repo: path.basename(root),
107
111
  branch: b.gitWorktrees?.[0]?.branch ?? b.cloud?.workspaceBranch ?? "",
108
- task: b.claudeSessionTitle ?? b.codexSessionTitle ?? b.opencodeSessionTitle ?? b.name,
112
+ // A user-set display label (via rename) wins over the live agent session
113
+ // title as the box's primary label; else fall back to the session title, then name.
114
+ task: b.displayName?.trim() || b.claudeSessionTitle || b.codexSessionTitle || b.opencodeSessionTitle || b.name,
115
+ displayName: b.displayName?.trim() || null,
109
116
  // Normalize the frozen wire spelling ('claude-code') to the UI label ('claude').
110
117
  agent: normalizeLastAgent(b.lastAgent) ?? "claude",
111
118
  status,
@@ -457,6 +464,19 @@ async function runLifecycle(id, op) {
457
464
  }
458
465
  }
459
466
  var errMsg = (err) => err instanceof Error ? err.message : String(err);
467
+ async function hubWriteSshConfig(box, provider) {
468
+ try {
469
+ const cfg = await loadEffectiveConfig(box.workspacePath);
470
+ await autoWriteSshConfig(
471
+ box,
472
+ provider,
473
+ cfg.effective.ssh.autoConfig,
474
+ (m) => console.warn(`[hub] ${m}`)
475
+ );
476
+ } catch (err) {
477
+ console.warn(`[hub] ssh-config write for ${box.name} failed: ${errMsg(err)}`);
478
+ }
479
+ }
460
480
  async function resolveBoxProvider(id) {
461
481
  const { boxes } = await readState();
462
482
  const box = boxes.find((b) => b.id === id);
@@ -574,9 +594,30 @@ function createHubBackend(handle) {
574
594
  return listProvidersWithFreshness(listProviders(await loadQueue()));
575
595
  },
576
596
  pause: (id) => runLifecycle(id, (box, provider) => provider.pause(box)),
577
- resume: (id) => runLifecycle(id, (box, provider) => provider.resume(box)),
597
+ resume: (id) => runLifecycle(id, async (box, provider) => {
598
+ await provider.resume(box);
599
+ await hubWriteSshConfig(box, provider);
600
+ }),
578
601
  stop: (id) => runLifecycle(id, (box, provider) => provider.stop(box)),
579
- destroy: (id) => runLifecycle(id, (box, provider) => provider.destroy(box)),
602
+ destroy: (id) => runLifecycle(id, async (box, provider) => {
603
+ await provider.destroy(box);
604
+ await syncAgentboxSshConfig().catch(() => {
605
+ });
606
+ }),
607
+ async rename(id, displayName) {
608
+ try {
609
+ if (displayName.trim().length > DISPLAY_NAME_MAX) {
610
+ return { ok: false, error: `name too long (max ${DISPLAY_NAME_MAX} chars)` };
611
+ }
612
+ const { boxes } = await readState();
613
+ const box = boxes.find((b) => b.id === id);
614
+ if (!box) return { ok: false, error: `box ${id} not found` };
615
+ await setBoxDisplayName(id, displayName);
616
+ return { ok: true };
617
+ } catch (err) {
618
+ return { ok: false, error: errMsg(err) };
619
+ }
620
+ },
580
621
  // Mirror POST /admin/prompts/answer's block branch, in-process: resolving
581
622
  // the entry fulfills the Promise the /rpc handler is awaiting (box unblocks),
582
623
  // and the broadcast clears any attached-terminal footer.
@@ -781,9 +822,9 @@ var host = process.env.AGENTBOX_HUB_HOST ?? "127.0.0.1";
781
822
  process.env.AGENTBOX_HUB_PROFILE ??= host === "127.0.0.1" ? "localhost" : "hetzner";
782
823
  if (host !== "127.0.0.1") process.env.AGENTBOX_HUB_AUTH ??= "on";
783
824
  async function main() {
784
- const { authMode } = await import("./auth-config-LJGI76HI.js");
825
+ const { authMode } = await import("./auth-config-AOBEKRZQ.js");
785
826
  if (process.env.AGENTBOX_HUB_PROFILE === "localhost" && process.env.AGENTBOX_HUB_AUTH !== "off") {
786
- const { ensureHubToken } = await import("./hub-token-EW32VDIU.js");
827
+ const { ensureHubToken } = await import("./hub-token-2BZFBBW3.js");
787
828
  process.env.AGENTBOX_HUB_TOKEN = await ensureHubToken();
788
829
  }
789
830
  const dir = import.meta.dirname;
@@ -813,7 +854,7 @@ async function main() {
813
854
  globalThis.__AGENTBOX_HUB_NOTIFIER = daemon.handle.hubNotifier;
814
855
  const mode = authMode();
815
856
  if (mode === "password") {
816
- const { ensureAuthReady } = await import("./auth-YBXDRLHG.js");
857
+ const { ensureAuthReady } = await import("./auth-675P3LQS.js");
817
858
  await ensureAuthReady();
818
859
  process.stdout.write("agentbox-hub: auth ready\n");
819
860
  }
@@ -18143,6 +18143,8 @@ function findBox(idOrName, state) {
18143
18143
  if (prefixMatches.length > 1) return { kind: "ambiguous", matches: prefixMatches };
18144
18144
  const byName = state.boxes.find((b) => b.name === q);
18145
18145
  if (byName) return { kind: "ok", box: byName };
18146
+ const byDisplayName = state.boxes.find((b) => b.displayName === q);
18147
+ if (byDisplayName) return { kind: "ok", box: byDisplayName };
18146
18148
  const byContainer = state.boxes.find((b) => b.container === q);
18147
18149
  if (byContainer) return { kind: "ok", box: byContainer };
18148
18150
  return { kind: "none" };
@@ -18952,6 +18954,9 @@ var BUILT_IN_DEFAULTS = {
18952
18954
  pruneProjectConfigs: true,
18953
18955
  pruneProjectConfigsEvery: 50
18954
18956
  },
18957
+ update: {
18958
+ check: true
18959
+ },
18955
18960
  integrations: {
18956
18961
  notion: { enabled: false },
18957
18962
  linear: { enabled: false }
@@ -19320,6 +19325,11 @@ var KEY_REGISTRY = [
19320
19325
  type: "int",
19321
19326
  description: "Run the orphan project-config sweep every N successful `agentbox create`."
19322
19327
  },
19328
+ {
19329
+ key: "update.check",
19330
+ type: "bool",
19331
+ description: 'Daily background check for a newer published agentbox (npm registry) and menu-bar app (release sha sidecar), plus the "newer version available" nudge. At most one network probe per 24h; false disables both.'
19332
+ },
19323
19333
  {
19324
19334
  key: "integrations.notion.enabled",
19325
19335
  type: "bool",
@@ -19708,6 +19708,8 @@ function findBox(idOrName, state) {
19708
19708
  if (prefixMatches.length > 1) return { kind: "ambiguous", matches: prefixMatches };
19709
19709
  const byName = state.boxes.find((b) => b.name === q);
19710
19710
  if (byName) return { kind: "ok", box: byName };
19711
+ const byDisplayName = state.boxes.find((b) => b.displayName === q);
19712
+ if (byDisplayName) return { kind: "ok", box: byDisplayName };
19711
19713
  const byContainer = state.boxes.find((b) => b.container === q);
19712
19714
  if (byContainer) return { kind: "ok", box: byContainer };
19713
19715
  return { kind: "none" };
@@ -20129,6 +20131,9 @@ var BUILT_IN_DEFAULTS = {
20129
20131
  pruneProjectConfigs: true,
20130
20132
  pruneProjectConfigsEvery: 50
20131
20133
  },
20134
+ update: {
20135
+ check: true
20136
+ },
20132
20137
  integrations: {
20133
20138
  notion: { enabled: false },
20134
20139
  linear: { enabled: false }
@@ -20497,6 +20502,11 @@ var KEY_REGISTRY = [
20497
20502
  type: "int",
20498
20503
  description: "Run the orphan project-config sweep every N successful `agentbox create`."
20499
20504
  },
20505
+ {
20506
+ key: "update.check",
20507
+ type: "bool",
20508
+ description: 'Daily background check for a newer published agentbox (npm registry) and menu-bar app (release sha sidecar), plus the "newer version available" nudge. At most one network probe per 24h; false disables both.'
20509
+ },
20500
20510
  {
20501
20511
  key: "integrations.notion.enabled",
20502
20512
  type: "bool",