@madarco/agentbox 0.31.2 → 0.31.4

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 (208) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +2 -0
  3. package/dist/_cloud-attach-B3BCOZ7U.js +31 -0
  4. package/dist/{chunk-LBBPEDRD.js → chunk-2MBELUE6.js} +9 -9
  5. package/dist/{chunk-AUBVCSFL.js → chunk-4LSLXBFN.js} +7 -7
  6. package/dist/{chunk-QUD42WO2.js → chunk-4NO5MO2P.js} +6 -6
  7. package/dist/{chunk-3LJH547J.js → chunk-4Y365UYP.js} +2 -2
  8. package/dist/{chunk-2756BRPK.js → chunk-5UX2HAF4.js} +31 -31
  9. package/dist/{chunk-HDSUUWTX.js → chunk-75JF44DH.js} +2 -2
  10. package/dist/{chunk-CDY4CMZX.js → chunk-AAMPHDB2.js} +6 -6
  11. package/dist/{chunk-7N3CJNR5.js → chunk-AWFTAHGF.js} +20 -7
  12. package/dist/chunk-AWFTAHGF.js.map +1 -0
  13. package/dist/{chunk-NS4DBXZR.js → chunk-AYREFYEF.js} +5 -5
  14. package/dist/{chunk-ERLTFI35.js → chunk-BYZPRB7U.js} +5 -5
  15. package/dist/{chunk-DS4K7ISX.js → chunk-C67DVYWA.js} +9 -4
  16. package/dist/chunk-C67DVYWA.js.map +1 -0
  17. package/dist/{chunk-RBEELJCJ.js → chunk-CUIJ2PIN.js} +10 -10
  18. package/dist/{chunk-67JVG72A.js → chunk-ENFWBFBI.js} +4 -4
  19. package/dist/{chunk-TMFNWCUQ.js → chunk-EP4IFSV5.js} +8 -6
  20. package/dist/chunk-EP4IFSV5.js.map +1 -0
  21. package/dist/{chunk-OUKDAUKX.js → chunk-EXF4PLBN.js} +3 -3
  22. package/dist/{chunk-6F6OUFLD.js → chunk-GCS5XAPC.js} +4 -4
  23. package/dist/{chunk-QYUHZOIW.js → chunk-IF4VXKJK.js} +4 -4
  24. package/dist/{chunk-TQL4VWVV.js → chunk-IFPTD73K.js} +2 -2
  25. package/dist/{chunk-IZTWZJMF.js → chunk-IQ6BQ2LX.js} +4 -4
  26. package/dist/{chunk-UMK4HA6G.js → chunk-IQMDGAMB.js} +4 -4
  27. package/dist/{chunk-QOFQZRDG.js → chunk-KCDLAP5Q.js} +4 -4
  28. package/dist/{chunk-ABKHJ2QL.js → chunk-L567TKOK.js} +6 -6
  29. package/dist/{chunk-FUJRTZBN.js → chunk-LR5RNEVO.js} +3 -3
  30. package/dist/{chunk-NGUNB6M2.js → chunk-M6VAID7T.js} +3 -3
  31. package/dist/{chunk-BNMTBKQJ.js → chunk-MBZ4UOWF.js} +4 -4
  32. package/dist/{chunk-BBQ3VYLV.js → chunk-MJZPECVQ.js} +3 -3
  33. package/dist/{chunk-3T4CPP3U.js → chunk-NKHRFR5G.js} +17 -17
  34. package/dist/{chunk-IQJ6OUN5.js → chunk-OXBWZG2N.js} +4 -4
  35. package/dist/{chunk-BKTP27TW.js → chunk-PXH3DERD.js} +3 -3
  36. package/dist/{chunk-BT7OQHZ4.js → chunk-QDVIMN57.js} +4 -4
  37. package/dist/{chunk-EK32GLP5.js → chunk-QT4MOS6R.js} +22 -22
  38. package/dist/{chunk-LFN6QCM6.js → chunk-QWWDG5B7.js} +6 -6
  39. package/dist/{chunk-NWIQQB6U.js → chunk-RUKTOHK7.js} +3 -3
  40. package/dist/{chunk-FDHOIH3V.js → chunk-VOVRWIBC.js} +11 -11
  41. package/dist/{chunk-3S5RZCIG.js → chunk-VQONUZE4.js} +4 -4
  42. package/dist/{chunk-MH63I6AL.js → chunk-VWJBQGXD.js} +6 -6
  43. package/dist/{chunk-KKTCDNRO.js → chunk-X6SZPGL5.js} +7 -7
  44. package/dist/{chunk-H3BU75PN.js → chunk-YL3VEQTS.js} +6 -6
  45. package/dist/{chunk-N5LNX6X2.js → chunk-YSC4VY43.js} +4 -4
  46. package/dist/{chunk-S3LDXOIT.js → chunk-ZUTC2JZM.js} +5 -5
  47. package/dist/{cli-JRP3VNEM.js → cli-7JW54ZTA.js} +9 -9
  48. package/dist/{cli-BILGBUVD.js → cli-7Z7BD23R.js} +8 -8
  49. package/dist/{cli-MCXZDAEN.js → cli-HFLU5QTD.js} +8 -8
  50. package/dist/{cli-YXG2QKDM.js → cli-KT5X4J74.js} +9 -9
  51. package/dist/{cli-UUPHZRKG.js → cli-XRF7WFE5.js} +9 -9
  52. package/dist/cloud-backends.js +5 -5
  53. package/dist/{control-plane-54U2RAMT.js → control-plane-DGLF4MBB.js} +20 -20
  54. package/dist/{cp-hub-upload-7GJQO4FY.js → cp-hub-upload-7YESYCVS.js} +7 -7
  55. package/dist/{custody-client-G4SNQYTT.js → custody-client-P7SCEDU2.js} +5 -5
  56. package/dist/{deploy-hetzner-X6WUZPPJ.js → deploy-hetzner-FOCNRRB2.js} +9 -9
  57. package/dist/{dist-MY3UXECL.js → dist-2CAWJQT5.js} +6 -6
  58. package/dist/{dist-JLQLHSN6.js → dist-36WLI6E2.js} +7 -7
  59. package/dist/{dist-VBOFIW7E.js → dist-54VRDCUU.js} +8 -8
  60. package/dist/{dist-F3HWDZ32.js → dist-63YBVZW4.js} +9 -9
  61. package/dist/{dist-MBPDLQUR.js → dist-BUCKUE4V.js} +2 -2
  62. package/dist/{dist-V3P3SIBU.js → dist-CBPQZPQN.js} +8 -8
  63. package/dist/{dist-JCVHBCEV.js → dist-E4VLIH3H.js} +8 -8
  64. package/dist/{dist-TSPUGLQM.js → dist-FHPNYDCF.js} +3 -3
  65. package/dist/{dist-NC2UMRWF.js → dist-MITAKWKQ.js} +8 -8
  66. package/dist/{dist-RWC4EWSU.js → dist-TJJ6KBNZ.js} +4 -4
  67. package/dist/{dist-HPXCGKM4.js → dist-XSAPZOEG.js} +8 -8
  68. package/dist/{host-reach-drainer-CF7YGFI4.js → host-reach-drainer-XFLSMTSX.js} +2 -2
  69. package/dist/hub-OMGLWQEV.js +39 -0
  70. package/dist/{hub-adopt-OQUIDTUW.js → hub-adopt-IYZ3WXYN.js} +7 -7
  71. package/dist/{hub-api-client-WBXO4BUG.js → hub-api-client-WOZ2BQ6H.js} +4 -4
  72. package/dist/{hub-docker-target-JHOIAOIF.js → hub-docker-target-IQHX6OYX.js} +14 -14
  73. package/dist/index.js +61 -61
  74. package/dist/{plugin-update-FZKBBDMJ.js → plugin-update-2ACFHFUI.js} +5 -5
  75. package/dist/prepare-OOZF37J6.js +45 -0
  76. package/dist/prepared-custody-E7CSZJ6V.js +39 -0
  77. package/dist/{prepared-state-FO74QUCP-RX7DKZ7J.js → prepared-state-FO74QUCP-PZLOM6HD.js} +4 -4
  78. package/dist/{publish-credentials-GKZGTWEI.js → publish-credentials-TO5IIW2T.js} +9 -9
  79. package/dist/{registry-IKU6MBLX.js → registry-X33JZU6B.js} +5 -5
  80. package/dist/relay-7D5NOFKS.js +22 -0
  81. package/dist/{remote-docker-share-YWI2UXGS.js → remote-docker-share-YADHIHXV.js} +11 -11
  82. package/dist/{tool-grant-push-KMMSJPGK.js → tool-grant-push-7G2QAN3J.js} +3 -3
  83. package/package.json +1 -1
  84. package/runtime/_shared/ctl.cjs +26 -8
  85. package/runtime/digitalocean/ctl.cjs +26 -8
  86. package/runtime/docker/packages/ctl/dist/bin.cjs +26 -8
  87. package/runtime/e2b/ctl.cjs +26 -8
  88. package/runtime/hetzner/ctl.cjs +26 -8
  89. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  90. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  91. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  92. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  93. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  94. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  95. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  96. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  97. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  98. package/runtime/hub/apps/hub/.next/server/chunks/_0vg6gvw._.js +22 -22
  99. package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js +28 -19
  100. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_14-qzbg._.js +1 -1
  101. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js +26 -17
  102. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  103. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  104. package/runtime/hub/apps/hub/{chunk-FQY5OEWX.js → chunk-2LE76CT3.js} +19 -6
  105. package/runtime/hub/apps/hub/{chunk-6CRH52LO.js → chunk-7IIG6MIB.js} +9 -9
  106. package/runtime/hub/apps/hub/{chunk-V6HJFB7G.js → chunk-7JBH42LK.js} +3 -3
  107. package/runtime/hub/apps/hub/{chunk-MIEBOFHZ.js → chunk-AAF4CYVH.js} +6 -6
  108. package/runtime/hub/apps/hub/{chunk-IDIFPYTE.js → chunk-AIFVVQPX.js} +7 -5
  109. package/runtime/hub/apps/hub/{chunk-NHYDZVES.js → chunk-F6GOERHP.js} +4 -4
  110. package/runtime/hub/apps/hub/{chunk-V4YXLMFI.js → chunk-SM2XYDPL.js} +8 -3
  111. package/runtime/hub/apps/hub/{dist-RW6RLHQK.js → dist-BKCL4HAA.js} +5 -5
  112. package/runtime/hub/apps/hub/{dist-FM26NQ4V.js → dist-D36FTGG6.js} +1 -1
  113. package/runtime/hub/apps/hub/{dist-I275RO6P.js → dist-DS5LGBGK.js} +2 -2
  114. package/runtime/hub/apps/hub/{dist-VOIDY4IM.js → dist-H7NIUVBD.js} +6 -6
  115. package/runtime/hub/apps/hub/{dist-C2JJTBDD.js → dist-LV6CHJVA.js} +5 -5
  116. package/runtime/hub/apps/hub/{dist-SINRABCR.js → dist-MQADLEEQ.js} +5 -5
  117. package/runtime/hub/apps/hub/{dist-BIXUQKSK.js → dist-RJBPZWSZ.js} +5 -5
  118. package/runtime/hub/apps/hub/{dist-K4GLZWXS.js → dist-VENYRIRW.js} +5 -5
  119. package/runtime/hub/apps/hub/{dist-B5IUHK2B.js → dist-YG4RVC24.js} +6 -6
  120. package/runtime/hub/apps/hub/{dist-VLKRF6NH.js → dist-YOTRYCRK.js} +4 -4
  121. package/runtime/hub/apps/hub/{hub-worker-HSKRQMH5.js → hub-worker-DLFLGKCV.js} +7 -7
  122. package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-UL4TQJT4.js → prepared-state-FO74QUCP-FZ6PT4LA.js} +3 -3
  123. package/runtime/hub/apps/hub/server.js +13 -13
  124. package/runtime/relay/bin.cjs +26 -8
  125. package/runtime/vercel/ctl.cjs +26 -8
  126. package/dist/_cloud-attach-N3JJD7JF.js +0 -31
  127. package/dist/chunk-7N3CJNR5.js.map +0 -1
  128. package/dist/chunk-DS4K7ISX.js.map +0 -1
  129. package/dist/chunk-TMFNWCUQ.js.map +0 -1
  130. package/dist/hub-PITRE4LQ.js +0 -39
  131. package/dist/prepare-WAIDHKO3.js +0 -45
  132. package/dist/prepared-custody-ALF6YHQC.js +0 -39
  133. package/dist/relay-7VSUDQPP.js +0 -22
  134. /package/dist/{_cloud-attach-N3JJD7JF.js.map → _cloud-attach-B3BCOZ7U.js.map} +0 -0
  135. /package/dist/{chunk-LBBPEDRD.js.map → chunk-2MBELUE6.js.map} +0 -0
  136. /package/dist/{chunk-AUBVCSFL.js.map → chunk-4LSLXBFN.js.map} +0 -0
  137. /package/dist/{chunk-QUD42WO2.js.map → chunk-4NO5MO2P.js.map} +0 -0
  138. /package/dist/{chunk-3LJH547J.js.map → chunk-4Y365UYP.js.map} +0 -0
  139. /package/dist/{chunk-2756BRPK.js.map → chunk-5UX2HAF4.js.map} +0 -0
  140. /package/dist/{chunk-HDSUUWTX.js.map → chunk-75JF44DH.js.map} +0 -0
  141. /package/dist/{chunk-CDY4CMZX.js.map → chunk-AAMPHDB2.js.map} +0 -0
  142. /package/dist/{chunk-NS4DBXZR.js.map → chunk-AYREFYEF.js.map} +0 -0
  143. /package/dist/{chunk-ERLTFI35.js.map → chunk-BYZPRB7U.js.map} +0 -0
  144. /package/dist/{chunk-RBEELJCJ.js.map → chunk-CUIJ2PIN.js.map} +0 -0
  145. /package/dist/{chunk-67JVG72A.js.map → chunk-ENFWBFBI.js.map} +0 -0
  146. /package/dist/{chunk-OUKDAUKX.js.map → chunk-EXF4PLBN.js.map} +0 -0
  147. /package/dist/{chunk-6F6OUFLD.js.map → chunk-GCS5XAPC.js.map} +0 -0
  148. /package/dist/{chunk-QYUHZOIW.js.map → chunk-IF4VXKJK.js.map} +0 -0
  149. /package/dist/{chunk-TQL4VWVV.js.map → chunk-IFPTD73K.js.map} +0 -0
  150. /package/dist/{chunk-IZTWZJMF.js.map → chunk-IQ6BQ2LX.js.map} +0 -0
  151. /package/dist/{chunk-UMK4HA6G.js.map → chunk-IQMDGAMB.js.map} +0 -0
  152. /package/dist/{chunk-QOFQZRDG.js.map → chunk-KCDLAP5Q.js.map} +0 -0
  153. /package/dist/{chunk-ABKHJ2QL.js.map → chunk-L567TKOK.js.map} +0 -0
  154. /package/dist/{chunk-FUJRTZBN.js.map → chunk-LR5RNEVO.js.map} +0 -0
  155. /package/dist/{chunk-NGUNB6M2.js.map → chunk-M6VAID7T.js.map} +0 -0
  156. /package/dist/{chunk-BNMTBKQJ.js.map → chunk-MBZ4UOWF.js.map} +0 -0
  157. /package/dist/{chunk-BBQ3VYLV.js.map → chunk-MJZPECVQ.js.map} +0 -0
  158. /package/dist/{chunk-3T4CPP3U.js.map → chunk-NKHRFR5G.js.map} +0 -0
  159. /package/dist/{chunk-IQJ6OUN5.js.map → chunk-OXBWZG2N.js.map} +0 -0
  160. /package/dist/{chunk-BKTP27TW.js.map → chunk-PXH3DERD.js.map} +0 -0
  161. /package/dist/{chunk-BT7OQHZ4.js.map → chunk-QDVIMN57.js.map} +0 -0
  162. /package/dist/{chunk-EK32GLP5.js.map → chunk-QT4MOS6R.js.map} +0 -0
  163. /package/dist/{chunk-LFN6QCM6.js.map → chunk-QWWDG5B7.js.map} +0 -0
  164. /package/dist/{chunk-NWIQQB6U.js.map → chunk-RUKTOHK7.js.map} +0 -0
  165. /package/dist/{chunk-FDHOIH3V.js.map → chunk-VOVRWIBC.js.map} +0 -0
  166. /package/dist/{chunk-3S5RZCIG.js.map → chunk-VQONUZE4.js.map} +0 -0
  167. /package/dist/{chunk-MH63I6AL.js.map → chunk-VWJBQGXD.js.map} +0 -0
  168. /package/dist/{chunk-KKTCDNRO.js.map → chunk-X6SZPGL5.js.map} +0 -0
  169. /package/dist/{chunk-H3BU75PN.js.map → chunk-YL3VEQTS.js.map} +0 -0
  170. /package/dist/{chunk-N5LNX6X2.js.map → chunk-YSC4VY43.js.map} +0 -0
  171. /package/dist/{chunk-S3LDXOIT.js.map → chunk-ZUTC2JZM.js.map} +0 -0
  172. /package/dist/{cli-BILGBUVD.js.map → cli-7JW54ZTA.js.map} +0 -0
  173. /package/dist/{cli-JRP3VNEM.js.map → cli-7Z7BD23R.js.map} +0 -0
  174. /package/dist/{cli-MCXZDAEN.js.map → cli-HFLU5QTD.js.map} +0 -0
  175. /package/dist/{cli-UUPHZRKG.js.map → cli-KT5X4J74.js.map} +0 -0
  176. /package/dist/{cli-YXG2QKDM.js.map → cli-XRF7WFE5.js.map} +0 -0
  177. /package/dist/{control-plane-54U2RAMT.js.map → control-plane-DGLF4MBB.js.map} +0 -0
  178. /package/dist/{cp-hub-upload-7GJQO4FY.js.map → cp-hub-upload-7YESYCVS.js.map} +0 -0
  179. /package/dist/{custody-client-G4SNQYTT.js.map → custody-client-P7SCEDU2.js.map} +0 -0
  180. /package/dist/{deploy-hetzner-X6WUZPPJ.js.map → deploy-hetzner-FOCNRRB2.js.map} +0 -0
  181. /package/dist/{dist-F3HWDZ32.js.map → dist-2CAWJQT5.js.map} +0 -0
  182. /package/dist/{dist-HPXCGKM4.js.map → dist-36WLI6E2.js.map} +0 -0
  183. /package/dist/{dist-VBOFIW7E.js.map → dist-54VRDCUU.js.map} +0 -0
  184. /package/dist/{dist-JLQLHSN6.js.map → dist-63YBVZW4.js.map} +0 -0
  185. /package/dist/{dist-MBPDLQUR.js.map → dist-BUCKUE4V.js.map} +0 -0
  186. /package/dist/{dist-MY3UXECL.js.map → dist-CBPQZPQN.js.map} +0 -0
  187. /package/dist/{dist-JCVHBCEV.js.map → dist-E4VLIH3H.js.map} +0 -0
  188. /package/dist/{dist-NC2UMRWF.js.map → dist-FHPNYDCF.js.map} +0 -0
  189. /package/dist/{dist-RWC4EWSU.js.map → dist-MITAKWKQ.js.map} +0 -0
  190. /package/dist/{dist-TSPUGLQM.js.map → dist-TJJ6KBNZ.js.map} +0 -0
  191. /package/dist/{dist-V3P3SIBU.js.map → dist-XSAPZOEG.js.map} +0 -0
  192. /package/dist/{host-reach-drainer-CF7YGFI4.js.map → host-reach-drainer-XFLSMTSX.js.map} +0 -0
  193. /package/dist/{hub-PITRE4LQ.js.map → hub-OMGLWQEV.js.map} +0 -0
  194. /package/dist/{hub-adopt-OQUIDTUW.js.map → hub-adopt-IYZ3WXYN.js.map} +0 -0
  195. /package/dist/{hub-api-client-WBXO4BUG.js.map → hub-api-client-WOZ2BQ6H.js.map} +0 -0
  196. /package/dist/{hub-docker-target-JHOIAOIF.js.map → hub-docker-target-IQHX6OYX.js.map} +0 -0
  197. /package/dist/{plugin-update-FZKBBDMJ.js.map → plugin-update-2ACFHFUI.js.map} +0 -0
  198. /package/dist/{prepare-WAIDHKO3.js.map → prepare-OOZF37J6.js.map} +0 -0
  199. /package/dist/{prepared-custody-ALF6YHQC.js.map → prepared-custody-E7CSZJ6V.js.map} +0 -0
  200. /package/dist/{prepared-state-FO74QUCP-RX7DKZ7J.js.map → prepared-state-FO74QUCP-PZLOM6HD.js.map} +0 -0
  201. /package/dist/{publish-credentials-GKZGTWEI.js.map → publish-credentials-TO5IIW2T.js.map} +0 -0
  202. /package/dist/{registry-IKU6MBLX.js.map → registry-X33JZU6B.js.map} +0 -0
  203. /package/dist/{relay-7VSUDQPP.js.map → relay-7D5NOFKS.js.map} +0 -0
  204. /package/dist/{remote-docker-share-YWI2UXGS.js.map → remote-docker-share-YADHIHXV.js.map} +0 -0
  205. /package/dist/{tool-grant-push-KMMSJPGK.js.map → tool-grant-push-7G2QAN3J.js.map} +0 -0
  206. /package/runtime/hub/apps/hub/.next/static/{cXSQmUIAB12u7BgxO4JPy → o9_g9S5JH-r8bfNfmPa5H}/_buildManifest.js +0 -0
  207. /package/runtime/hub/apps/hub/.next/static/{cXSQmUIAB12u7BgxO4JPy → o9_g9S5JH-r8bfNfmPa5H}/_clientMiddlewareManifest.js +0 -0
  208. /package/runtime/hub/apps/hub/.next/static/{cXSQmUIAB12u7BgxO4JPy → o9_g9S5JH-r8bfNfmPa5H}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- module.exports=[85233,e=>{"use strict";let t,n;var o=e.i(14747),a=e.i(46063),s=e.i(72939),r=e.i(22734),i=e.i(24868),l=`${s.BOX_HOME}/.claude`,c=`if [ -f ${s.SETUP_GUIDE_PATH} ]; then install -d -o ${s.BOX_USER} -g ${s.BOX_USER} ${l}/skills && install -d -o ${s.BOX_USER} -g ${s.BOX_USER} ${l}/skills/agentbox-setup && install -o ${s.BOX_USER} -g ${s.BOX_USER} -m 0644 ${s.SETUP_GUIDE_PATH} ${l}/skills/agentbox-setup/SKILL.md; fi`,d={id:"claude",aliases:["claude-code"],wireId:"claude-code",sessionName:"claude",binary:"claude",install:{recipe:{kind:"script",url:"https://claude.ai/install.sh",retries:3},runAs:"box-user",alternatesFrom:"install",postInstall:[...(0,s.agentDirPrelude)([l],"claude"),`ln -sfn ${l}/_claude.json ${s.BOX_HOME}/.claude.json`,`ln -sfn ${s.BOX_CREDS_DIR}/claude/.credentials.json ${l}/.credentials.json`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${s.BOX_HOME}/.claude.json ${l}/.credentials.json`,c].join(" && "),alternates:{npm:{recipe:{kind:"npm",package:"@anthropic-ai/claude-code"},runAs:"root",postInstall:[...(0,s.agentDirPrelude)([`${s.BOX_HOME}/.local/bin`,l],"claude"),`ln -sf "$(command -v claude)" ${s.BOX_HOME}/.local/bin/claude`,`ln -sfn ${l}/_claude.json ${s.BOX_HOME}/.claude.json`,`ln -sfn ${s.BOX_CREDS_DIR}/claude/.credentials.json ${l}/.credentials.json`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${s.BOX_HOME}/.local/bin/claude ${s.BOX_HOME}/.claude.json ${l}/.credentials.json`,c].join(" && ")}}},dockerVolume:"agentbox-claude-config",staticPaths:[{hostHomeRel:[".claude"],boxDir:l,exclude:["node_modules","projects","workflows","sessions","history.jsonl","file-history","shell-snapshots","backups","session-env","paste-cache","cache","telemetry","tasks","downloads","chrome","ide","debug","mcp-needs-auth-cache.json","stats-cache.json"]}],credential:{boxRelPath:".credentials.json",boxAbsPath:`${l}/.credentials.json`,hostBackup:(0,o.join)(a.STATE_DIR,"claude-credentials.json"),cloudMountPath:"/home/vscode/.agentbox-creds/claude",cloudSubpath:"claude/",realShape:"claude-oauth",freshness:{jsonPath:["claudeAiOauth","expiresAt"]}},forwardedEnvKeys:["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","CLAUDE_EFFORT","ANTHROPIC_MODEL"],boxRunEnv:{},tuiEnv:{default:{CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN:"1"},fullscreen:{CLAUDE_CODE_NO_FLICKER:"1"},auto:{}},tuiEnvFrom:"tui",settings:[{key:"install",type:"enum",enumValues:["native","npm"],default:"native",description:"How Claude Code is installed into a box image: `native` runs Anthropic's installer (the recommended path), `npm` installs @anthropic-ai/claude-code. Use `npm` on hosts whose egress IP the native CDN 403s. Bake-time - changing it re-derives the agent layer.",affectsBake:!0},{key:"tui",type:"enum",enumValues:["default","fullscreen","auto"],default:"default",description:"Terminal renderer Claude Code uses inside a box. Claude's `fullscreen` renderer repaints differentially and leaves stale characters in the blank areas of the screen over a network transport - visible while scrolling, cleared only by resizing the terminal. Boxes pin the classic renderer; set `fullscreen` to opt back in, or `auto` to let Claude decide. Rides the launch, so it takes effect on the agent's next start."}],seeds:[{bakedPath:s.SETUP_GUIDE_PATH,destRel:"skills/agentbox-setup/SKILL.md",sharedAsset:"agentbox-setup-skill.md",label:"the /agentbox-setup skill"}],caps:{resume:!0,teleport:"full",activitySource:["hooks","scraper"]},pull:{categories:["skills","agents","commands"],jsonMerges:[{rel:"plugins/installed_plugins.json",projection:"plugins"},{rel:"plugins/known_marketplaces.json",projection:"root"}]}},u=`${s.BOX_HOME}/.codex`,p={id:"codex",aliases:[],sessionName:"codex",binary:"codex",install:{recipe:{kind:"npm",package:"@openai/codex"},runAs:"root",packages:["bubblewrap"],packagesOptional:!0,postInstall:[...(0,s.agentDirPrelude)([u],"codex"),`ln -sfn ${s.BOX_CREDS_DIR}/codex/auth.json ${u}/auth.json`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${u}/auth.json`].join(" && ")},dockerVolume:"agentbox-codex-config",staticPaths:[{hostHomeRel:[".codex"],boxDir:u,include:["/.tmp/","/.tmp/marketplaces/***"],exclude:["sessions","log","history.jsonl","hooks.json","external_agent_session_imports.json","sqlite","cache","vendor_imports","tmp","/.tmp/*",".tmp",".codex-global-state.json",".codex-global-state.json.bak",".personality_migration","shell_snapshots","session_index.jsonl","models_cache.json","installation_id","version.json","packages","plugins/.plugin-appserver","computer-use","archived_sessions"]}],credential:{boxRelPath:"auth.json",boxAbsPath:`${u}/auth.json`,hostBackup:(0,o.join)(a.STATE_DIR,"codex-credentials.json"),cloudMountPath:"/home/vscode/.agentbox-creds/codex",cloudSubpath:"codex/",realShape:"nonempty-json"},forwardedEnvKeys:["OPENAI_API_KEY"],boxRunEnv:{},seeds:[{bakedPath:"/usr/local/share/agentbox/codex-hooks.json",destRel:"hooks.json",sharedAsset:"agentbox-codex-hooks.json",label:"Codex activity hooks"}],launchFlags:["--enable","hooks","--dangerously-bypass-hook-trust"],caps:{resume:!0,teleport:"full",activitySource:["hooks","scraper"]},pull:{items:[{group:"data",names:["config.toml","auth.json","prompts"]}]}},h=`${s.BOX_HOME}/.agentbox-example`,m={id:"example",aliases:[],hidden:!0,sessionName:"example",binary:"bash",install:{recipe:{kind:"exec",script:"true"},runAs:"root",postInstall:[...(0,s.agentDirPrelude)([h],"example")].join(" && ")},dockerVolume:"agentbox-example-config",staticPaths:[{hostHomeRel:[".agentbox-example"],boxDir:h}],credential:{boxRelPath:"auth.json",boxAbsPath:`${h}/auth.json`,hostBackup:(0,o.join)(a.STATE_DIR,"example-credentials.json"),cloudMountPath:`${s.BOX_CREDS_DIR}/example`,cloudSubpath:"example/",realShape:"nonempty-json"},forwardedEnvKeys:[],boxRunEnv:{},caps:{resume:!1,teleport:"stub",teleportStubReason:"The example agent is a seam canary with no conversation to teleport. Run `agentbox example` to start a fresh box.",activitySource:[]},pull:{items:[{group:"data",names:["auth.json"]}]}},g=`${s.BOX_HOME}/.openclaw`,f=`${g}/xdg`,b=`${s.BOX_HOME}/.config/openclaw`,x="/opt/agentbox/skills",y="/usr/local/share/agentbox/identity-skill.md",E=s.IDENTITY_RULES_SENTINEL,$="/etc/claude-code/CLAUDE.md",_="/workspace/.agentbox",k=`
1
+ module.exports=[85233,e=>{"use strict";let t,n;var o=e.i(14747),a=e.i(46063),s=e.i(72939),r=e.i(22734),i=e.i(24868),l=`${s.BOX_HOME}/.claude`,c=`if [ -f ${s.SETUP_GUIDE_PATH} ]; then install -d -o ${s.BOX_USER} -g ${s.BOX_USER} ${l}/skills && install -d -o ${s.BOX_USER} -g ${s.BOX_USER} ${l}/skills/agentbox-setup && install -o ${s.BOX_USER} -g ${s.BOX_USER} -m 0644 ${s.SETUP_GUIDE_PATH} ${l}/skills/agentbox-setup/SKILL.md; fi`,d={id:"claude",aliases:["claude-code"],wireId:"claude-code",sessionName:"claude",binary:"claude",install:{recipe:{kind:"script",url:"https://claude.ai/install.sh",retries:3},runAs:"box-user",alternatesFrom:"install",postInstall:[...(0,s.agentDirPrelude)([l],"claude"),`ln -sfn ${l}/_claude.json ${s.BOX_HOME}/.claude.json`,`ln -sfn ${s.BOX_CREDS_DIR}/claude/.credentials.json ${l}/.credentials.json`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${s.BOX_HOME}/.claude.json ${l}/.credentials.json`,c].join(" && "),alternates:{npm:{recipe:{kind:"npm",package:"@anthropic-ai/claude-code"},runAs:"root",postInstall:[...(0,s.agentDirPrelude)([`${s.BOX_HOME}/.local/bin`,l],"claude"),`ln -sf "$(command -v claude)" ${s.BOX_HOME}/.local/bin/claude`,`ln -sfn ${l}/_claude.json ${s.BOX_HOME}/.claude.json`,`ln -sfn ${s.BOX_CREDS_DIR}/claude/.credentials.json ${l}/.credentials.json`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${s.BOX_HOME}/.local/bin/claude ${s.BOX_HOME}/.claude.json ${l}/.credentials.json`,c].join(" && ")}}},dockerVolume:"agentbox-claude-config",staticPaths:[{hostHomeRel:[".claude"],boxDir:l,exclude:["node_modules","projects","workflows","sessions","history.jsonl","file-history","shell-snapshots","backups","session-env","paste-cache","cache","telemetry","tasks","downloads","chrome","ide","debug","mcp-needs-auth-cache.json","stats-cache.json"]}],credential:{boxRelPath:".credentials.json",boxAbsPath:`${l}/.credentials.json`,hostBackup:(0,o.join)(a.STATE_DIR,"claude-credentials.json"),cloudMountPath:"/home/vscode/.agentbox-creds/claude",cloudSubpath:"claude/",realShape:"claude-oauth",freshness:{jsonPath:["claudeAiOauth","expiresAt"]}},forwardedEnvKeys:["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","CLAUDE_EFFORT","ANTHROPIC_MODEL"],boxRunEnv:{},tuiEnv:{default:{CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN:"1"},fullscreen:{CLAUDE_CODE_NO_FLICKER:"1"},auto:{}},tuiEnvFrom:"tui",settings:[{key:"install",type:"enum",enumValues:["native","npm"],default:"native",description:"How Claude Code is installed into a box image: `native` runs Anthropic's installer (the recommended path), `npm` installs @anthropic-ai/claude-code. Use `npm` on hosts whose egress IP the native CDN 403s. Bake-time - changing it re-derives the agent layer.",affectsBake:!0},{key:"tui",type:"enum",enumValues:["default","fullscreen","auto"],default:"default",description:"Terminal renderer Claude Code uses inside a box. Claude's `fullscreen` renderer repaints differentially and leaves stale characters in the blank areas of the screen over a network transport - visible while scrolling, cleared only by resizing the terminal. Boxes pin the classic renderer; set `fullscreen` to opt back in, or `auto` to let Claude decide. Rides the launch, so it takes effect on the agent's next start."}],seeds:[{bakedPath:s.SETUP_GUIDE_PATH,destRel:"skills/agentbox-setup/SKILL.md",sharedAsset:"agentbox-setup-skill.md",label:"the /agentbox-setup skill"}],caps:{resume:!0,teleport:"full",activitySource:["hooks","scraper"]},pull:{categories:["skills","agents","commands"],jsonMerges:[{rel:"plugins/installed_plugins.json",projection:"plugins"},{rel:"plugins/known_marketplaces.json",projection:"root"}]}},u=`${s.BOX_HOME}/.codex`,p={id:"codex",aliases:[],sessionName:"codex",binary:"codex",install:{recipe:{kind:"npm",package:"@openai/codex"},runAs:"root",packages:["bubblewrap"],packagesOptional:!0,postInstall:[...(0,s.agentDirPrelude)([u],"codex"),`ln -sfn ${s.BOX_CREDS_DIR}/codex/auth.json ${u}/auth.json`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${u}/auth.json`].join(" && ")},dockerVolume:"agentbox-codex-config",staticPaths:[{hostHomeRel:[".codex"],boxDir:u,include:["/.tmp/","/.tmp/marketplaces/***"],exclude:["sessions","log","history.jsonl","hooks.json","external_agent_session_imports.json","sqlite","cache","vendor_imports","tmp","/.tmp/*",".tmp",".codex-global-state.json",".codex-global-state.json.bak",".personality_migration","shell_snapshots","session_index.jsonl","models_cache.json","installation_id","version.json","packages","plugins/.plugin-appserver","computer-use","archived_sessions"]}],credential:{boxRelPath:"auth.json",boxAbsPath:`${u}/auth.json`,hostBackup:(0,o.join)(a.STATE_DIR,"codex-credentials.json"),cloudMountPath:"/home/vscode/.agentbox-creds/codex",cloudSubpath:"codex/",realShape:"nonempty-json"},forwardedEnvKeys:["OPENAI_API_KEY"],boxRunEnv:{},seeds:[{bakedPath:"/usr/local/share/agentbox/codex-hooks.json",destRel:"hooks.json",sharedAsset:"agentbox-codex-hooks.json",label:"Codex activity hooks"}],launchFlags:["--enable","hooks","--dangerously-bypass-hook-trust"],caps:{resume:!0,teleport:"full",activitySource:["hooks","scraper"]},pull:{items:[{group:"data",names:["config.toml","auth.json","prompts"]}]}},h=`${s.BOX_HOME}/.agentbox-example`,m={id:"example",aliases:[],hidden:!0,sessionName:"example",binary:"bash",install:{recipe:{kind:"exec",script:"true"},runAs:"root",postInstall:[...(0,s.agentDirPrelude)([h],"example")].join(" && ")},dockerVolume:"agentbox-example-config",staticPaths:[{hostHomeRel:[".agentbox-example"],boxDir:h}],credential:{boxRelPath:"auth.json",boxAbsPath:`${h}/auth.json`,hostBackup:(0,o.join)(a.STATE_DIR,"example-credentials.json"),cloudMountPath:`${s.BOX_CREDS_DIR}/example`,cloudSubpath:"example/",realShape:"nonempty-json"},forwardedEnvKeys:[],boxRunEnv:{},caps:{resume:!1,teleport:"stub",teleportStubReason:"The example agent is a seam canary with no conversation to teleport. Run `agentbox example` to start a fresh box.",activitySource:[]},pull:{items:[{group:"data",names:["auth.json"]}]}},f=`${s.BOX_HOME}/.openclaw`,g=`${f}/xdg`,b=`${s.BOX_HOME}/.config/openclaw`,x="/opt/agentbox/skills",y="/usr/local/share/agentbox/identity-skill.md",E=s.IDENTITY_RULES_SENTINEL,$="/etc/claude-code/CLAUDE.md",_="/workspace/.agentbox",k=`
2
2
  const [skillDir, ctxPath, rawDirs, rawEntries, rawHooksEnabled] = process.argv.slice(2);
3
3
  const read = (s) => {
4
4
  try {
@@ -27,28 +27,37 @@ process.stdout.write(
27
27
  },
28
28
  }),
29
29
  );
30
- `;function O(e){return`'${e.replace(/'/g,"'\\''")}'`}var w=`${g}/.agentbox-model-auth.sha256`,A=`
30
+ `;function O(e){return`'${e.replace(/'/g,"'\\''")}'`}var w=`${f}/.agentbox-model-auth.sha256`,A=`
31
+ let j;
32
+ try { const s = require('fs').readFileSync(0, 'utf8'); j = JSON.parse(s.slice(s.indexOf('{'))); } catch { process.exit(1); }
33
+ process.exit(j?.plugin?.trust?.reason === 'trusted-official' ? 0 : 1);
34
+ `,S=`
31
35
  const j = JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'));
32
36
  process.exit(typeof j?.tokens?.refresh_token === 'string' && j.tokens.refresh_token.length > 0 ? 0 : 1);
33
- `,S={id:"openclaw",aliases:[],sessionName:"openclaw",binary:"openclaw",install:{recipe:{kind:"npm",package:"openclaw",allowScripts:!0},runAs:"root",postInstall:[...(0,s.agentDirPrelude)([g,f,`${s.BOX_HOME}/.config`]),`rm -rf ${b}`,`ln -sfn ${f} ${b}`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${b}`].join(" && ")},dockerVolume:"agentbox-openclaw-config",staticPaths:[{hostHomeRel:[".openclaw"],boxDir:g,exclude:["openclaw.json","openclaw.json.bak","config-journal-fingerprint.key",".agentbox-overlay.json",".agentbox-model-auth.sha256","exec-approvals.json*","state","migration","tmp"]},{hostHomeRel:[".config","openclaw"],boxDir:g,relocToSubpath:"xdg"}],modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"serviceTask",task:"openclaw-model-auth"},promptOnCreate:!0},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new OpenClaw box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box, where OpenClaw imports it and refreshes it independently from then on. `none` leaves model auth for you to configure in the box, and is only valid on its own. `--model-auth` overrides per create."}],forwardedEnvKeys:[],boxRunEnv:{OPENCLAW_WORKSPACE_DIR:"/workspace"},service:{name:"openclaw",command:"openclaw gateway",restart:"always",needs:["openclaw-render"],readyWhen:{http:`http://127.0.0.1:${String(18789)}/healthz`},expose:{port:18789,as:80},rejectsProxyHeaders:!0,repl:["openclaw","tui"],tasks:[{name:"openclaw-onboard",runOnce:"marker",command:"openclaw onboard --non-interactive --accept-risk --mode local --skip-channels --skip-health --no-install-daemon"},{name:"openclaw-model-auth",command:(n=(t=p.credential.boxAbsPath).slice(0,t.lastIndexOf("/")),`set -u
37
+ `,j={id:"openclaw",aliases:[],sessionName:"openclaw",binary:"openclaw",install:{recipe:{kind:"npm",package:"openclaw",allowScripts:!0},runAs:"root",postInstall:[...(0,s.agentDirPrelude)([f,g,`${s.BOX_HOME}/.config`]),`rm -rf ${b}`,`ln -sfn ${g} ${b}`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${b}`].join(" && ")},dockerVolume:"agentbox-openclaw-config",staticPaths:[{hostHomeRel:[".openclaw"],boxDir:f,exclude:["openclaw.json","openclaw.json.bak","config-journal-fingerprint.key",".agentbox-overlay.json",".agentbox-model-auth.sha256","exec-approvals.json*","state","migration","tmp"]},{hostHomeRel:[".config","openclaw"],boxDir:f,relocToSubpath:"xdg"}],modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"serviceTask",task:"openclaw-model-auth"},promptOnCreate:!0},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new OpenClaw box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box, where OpenClaw imports it and refreshes it independently from then on. `none` leaves model auth for you to configure in the box, and is only valid on its own. `--model-auth` overrides per create."}],forwardedEnvKeys:[],boxRunEnv:{OPENCLAW_WORKSPACE_DIR:"/workspace"},service:{name:"openclaw",command:"openclaw gateway",restart:"always",needs:["openclaw-render"],readyWhen:{http:`http://127.0.0.1:${String(18789)}/healthz`},expose:{port:18789,as:80},rejectsProxyHeaders:!0,repl:["openclaw","tui"],tasks:[{name:"openclaw-onboard",runOnce:"marker",command:"openclaw onboard --non-interactive --accept-risk --mode local --skip-channels --skip-health --no-install-daemon"},{name:"openclaw-model-auth",command:(n=(t=p.credential.boxAbsPath).slice(0,t.lastIndexOf("/")),`set -u
34
38
  auth=${O(t)}
35
39
  marker=${O(w)}
36
40
  if [ ! -s "$auth" ]; then echo "openclaw-model-auth: no borrowed Codex login at $auth"; exit 0; fi
37
- if ! node -e ${O(A)} "$auth"; then echo "openclaw-model-auth: $auth is not a Codex ChatGPT login"; exit 0; fi
41
+ if ! node -e ${O(S)} "$auth"; then echo "openclaw-model-auth: $auth is not a Codex ChatGPT login"; exit 0; fi
38
42
  seen=$(sha256sum "$auth" | cut -d" " -f1)
43
+ codex_trusted() { openclaw plugins inspect codex --json 2>/dev/null | node -e ${O(A)}; }
44
+ if ! codex_trusted; then
45
+ echo "openclaw-model-auth: installing the @openclaw/codex plugin"
46
+ openclaw plugins install clawhub:@openclaw/codex --force || exit 0
47
+ fi
39
48
  if [ -f "$marker" ] && [ "$(cat "$marker")" = "$seen" ]; then
40
49
  echo "openclaw-model-auth: this Codex login is already imported"
41
50
  exit 0
42
51
  fi
43
- if [ ! -d ${O(`${g}/extensions/codex`)} ]; then
44
- echo "openclaw-model-auth: installing the @openclaw/codex plugin"
45
- openclaw plugins install clawhub:@openclaw/codex || exit 0
46
- fi
47
52
  echo "openclaw-model-auth: importing the Codex login into the OpenClaw auth store"
48
53
  if openclaw migrate apply codex --from ${O(n)} --include-secrets --item auth:openai --yes --no-backup --force; then
49
54
  printf %s "$seen" > "$marker" && chmod 600 "$marker"
50
55
  fi
51
- exit 0`),needs:["openclaw-onboard"]},{name:"openclaw-agentbox-env",command:["set -u",...[["/usr/local/share/agentbox/setup-guide.md","agentbox-setup"],[y,"agentbox-identity"]].flatMap(([e,t])=>[`if [ -f ${e} ]; then`,` D=${x}/${t}`,' (sudo -n mkdir -p "$D" 2>/dev/null || mkdir -p "$D") || true',` (sudo -n install -m 0644 ${e} "$D/SKILL.md" 2>/dev/null ||`,` install -m 0644 ${e} "$D/SKILL.md") || true`,"fi"]),`IDENTITY_NUDGE=${O("\n## Your identity is not portable yet\n\nThis workspace declares no `identity` replacement rules, so a bot spawned\nfrom it with `agentbox clone` would introduce itself with YOUR name and\nanswer to YOUR handle. On your first turn, follow the `agentbox-identity`\nskill once to write them, then carry on with whatever you were asked.\n")}`,`if [ -f ${$} ]; then`,` mkdir -p ${_} || true`,` TMP=${_}/AGENTS.md.agentbox.tmp`," {"," printf '%s\\n\\n' '<!-- agentbox:box-facts (generated every boot; edit AGENTS.md instead) -->'",` cat ${$}`,` if [ -f ${y} ] && ! grep -qs '${E}' /workspace/agentbox.yaml 2>/dev/null; then`," printf '%s' \"$IDENTITY_NUDGE\""," fi",` } > "$TMP" && mv "$TMP" ${_}/AGENTS.md || true`,"fi","if openclaw config validate >/dev/null 2>&1; then"," DIRS=$(openclaw config get 'skills.load.extraDirs' 2>/dev/null || true)"," ENTRIES=$(openclaw config get 'hooks.internal.entries' 2>/dev/null || true)"," HOOKS=$(openclaw config get 'hooks.internal.enabled' 2>/dev/null || true)"," PROG=/tmp/agentbox-openclaw-config-merge.cjs"," cat > \"$PROG\" <<'AGENTBOX_MERGE_EOF'",k.trim(),"AGENTBOX_MERGE_EOF",` node "$PROG" ${x} .agentbox/AGENTS.md "$DIRS" "$ENTRIES" "$HOOKS" |`," openclaw config patch --stdin >/dev/null || true",' rm -f "$PROG" || true',"fi","exit 0"].join("\n"),needs:["openclaw-model-auth"]},{name:"openclaw-render",command:"agentbox-ctl agent render openclaw",needs:["openclaw-agentbox-env"]}],urlFields:[{label:"token",command:["openclaw","dashboard","--json","--no-open"],jsonPath:"url",fromUrlFragment:"token",fragmentKey:"token"}]},configRender:{file:`${g}/openclaw.json`,overlayKey:"openclaw",applyCmd:"openclaw config patch --stdin",dryRunFlag:"--dry-run",validate:"openclaw config validate"},caps:{surface:"service",resume:!1,teleport:"stub",teleportStubReason:"OpenClaw is a gateway the box hosts, not a conversation you attach to. Open its Control UI with `agentbox openclaw url`.",activitySource:[]},clone:{drop:["AGENTS.md","USER.md"],render:["SOUL.md","IDENTITY.md"],perBoxCarry:[{src:"~/.agentbox/openclaw/{{AGENTBOX_BOX_NAME}}.env",dest:"~/.openclaw/.env",mode:384,optional:!0}]},pull:{categories:["agents"]},stateBackup:{exclude:["tmp"]}};function j(e){return`'${e.replace(/'/g,"'\\''")}'`}var v=`
56
+ if ! codex_trusted; then
57
+ echo "openclaw-model-auth: the @openclaw/codex plugin lost its install record; reinstalling"
58
+ openclaw plugins install clawhub:@openclaw/codex --force || true
59
+ fi
60
+ exit 0`),needs:["openclaw-onboard"]},{name:"openclaw-agentbox-env",command:["set -u",...[["/usr/local/share/agentbox/setup-guide.md","agentbox-setup"],[y,"agentbox-identity"]].flatMap(([e,t])=>[`if [ -f ${e} ]; then`,` D=${x}/${t}`,' (sudo -n mkdir -p "$D" 2>/dev/null || mkdir -p "$D") || true',` (sudo -n install -m 0644 ${e} "$D/SKILL.md" 2>/dev/null ||`,` install -m 0644 ${e} "$D/SKILL.md") || true`,"fi"]),`IDENTITY_NUDGE=${O("\n## Your identity is not portable yet\n\nThis workspace declares no `identity` replacement rules, so a bot spawned\nfrom it with `agentbox clone` would introduce itself with YOUR name and\nanswer to YOUR handle. On your first turn, follow the `agentbox-identity`\nskill once to write them, then carry on with whatever you were asked.\n")}`,`if [ -f ${$} ]; then`,` mkdir -p ${_} || true`,` TMP=${_}/AGENTS.md.agentbox.tmp`," {"," printf '%s\\n\\n' '<!-- agentbox:box-facts (generated every boot; edit AGENTS.md instead) -->'",` cat ${$}`,` if [ -f ${y} ] && ! grep -qs '${E}' /workspace/agentbox.yaml 2>/dev/null; then`," printf '%s' \"$IDENTITY_NUDGE\""," fi",` } > "$TMP" && mv "$TMP" ${_}/AGENTS.md || true`,"fi","if openclaw config validate >/dev/null 2>&1; then"," DIRS=$(openclaw config get 'skills.load.extraDirs' 2>/dev/null || true)"," ENTRIES=$(openclaw config get 'hooks.internal.entries' 2>/dev/null || true)"," HOOKS=$(openclaw config get 'hooks.internal.enabled' 2>/dev/null || true)"," PROG=/tmp/agentbox-openclaw-config-merge.cjs"," cat > \"$PROG\" <<'AGENTBOX_MERGE_EOF'",k.trim(),"AGENTBOX_MERGE_EOF",` node "$PROG" ${x} .agentbox/AGENTS.md "$DIRS" "$ENTRIES" "$HOOKS" |`," openclaw config patch --stdin >/dev/null || true",' rm -f "$PROG" || true',"fi","exit 0"].join("\n"),needs:["openclaw-model-auth"]},{name:"openclaw-render",command:"agentbox-ctl agent render openclaw",needs:["openclaw-agentbox-env"]}],urlFields:[{label:"token",command:["openclaw","dashboard","--json","--no-open"],jsonPath:"url",fromUrlFragment:"token",fragmentKey:"token"}]},configRender:{file:`${f}/openclaw.json`,overlayKey:"openclaw",applyCmd:"openclaw config patch --stdin",dryRunFlag:"--dry-run",validate:"openclaw config validate"},caps:{surface:"service",resume:!1,teleport:"stub",teleportStubReason:"OpenClaw is a gateway the box hosts, not a conversation you attach to. Open its Control UI with `agentbox openclaw url`.",activitySource:[]},clone:{drop:["AGENTS.md","USER.md"],render:["SOUL.md","IDENTITY.md"],perBoxCarry:[{src:"~/.agentbox/openclaw/{{AGENTBOX_BOX_NAME}}.env",dest:"~/.openclaw/.env",mode:384,optional:!0}]},pull:{categories:["agents"]},stateBackup:{exclude:["tmp"]}};function v(e){return`'${e.replace(/'/g,"'\\''")}'`}var P=`
52
61
  const fs = require('fs');
53
62
  const path = require('path');
54
63
  const [seedPath, storePath, key] = process.argv.slice(1);
@@ -85,23 +94,23 @@ store[key] = {
85
94
  };
86
95
  fs.mkdirSync(path.dirname(storePath), { recursive: true });
87
96
  fs.writeFileSync(storePath, JSON.stringify(store, null, 2), { mode: 0o600 });
88
- `;function P(e){let t=e.seedPath??p.credential.boxAbsPath,n=`${e.agentId}-model-auth`;return`set -u
89
- seed=${j(t)}
90
- store=${j(e.storePath)}
91
- marker=${j(e.marker)}
92
- if [ ! -s "$seed" ]; then echo ${j(`${n}: no borrowed Codex login at ${t}`)}; exit 0; fi
97
+ `;function R(e){let t=e.seedPath??p.credential.boxAbsPath,n=`${e.agentId}-model-auth`;return`set -u
98
+ seed=${v(t)}
99
+ store=${v(e.storePath)}
100
+ marker=${v(e.marker)}
101
+ if [ ! -s "$seed" ]; then echo ${v(`${n}: no borrowed Codex login at ${t}`)}; exit 0; fi
93
102
  seen=$(sha256sum "$seed" | cut -d" " -f1)
94
103
  if [ -f "$marker" ] && [ "$(cat "$marker")" = "$seen" ]; then
95
- echo ${j(`${n}: this Codex login is already imported`)}
104
+ echo ${v(`${n}: this Codex login is already imported`)}
96
105
  exit 0
97
106
  fi
98
- if node -e ${j(v)} "$seed" "$store" ${j(e.providerKey)}; then
99
- echo ${j(`${n}: imported the Codex login as ${e.providerKey}`)}
107
+ if node -e ${v(P)} "$seed" "$store" ${v(e.providerKey)}; then
108
+ echo ${v(`${n}: imported the Codex login as ${e.providerKey}`)}
100
109
  printf %s "$seen" > "$marker" && chmod 600 "$marker"
101
110
  else
102
111
  echo "${n}: $seed is not a usable Codex ChatGPT login"
103
112
  fi
104
- exit 0`}function R(e){return`/run/agentbox/model-auth-${e}.sha256`}var I=`${s.BOX_HOME}/.local/share/opencode`,T={id:"opencode",aliases:[],sessionName:"opencode",binary:"opencode",install:{recipe:{kind:"npm",package:"opencode-ai"},runAs:"root",postInstall:[...(0,s.agentDirPrelude)([I],"opencode"),`ln -sfn ${s.BOX_CREDS_DIR}/opencode/auth.json ${I}/auth.json`,`chown -R ${s.BOX_USER}:${s.BOX_USER} ${s.BOX_HOME}/.local`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${I}/auth.json`].join(" && ")},dockerVolume:"agentbox-opencode-config",staticPaths:[{hostHomeRel:[".local","share","opencode"],boxDir:I,exclude:["storage","log","project","cache","bin","repos","snapshot","config"]},{hostHomeRel:[".config","opencode"],boxDir:I,relocToSubpath:"config"},{hostHomeRel:[".local","state","opencode"],boxDir:I,relocToSubpath:".state/opencode",update:!0,exclude:["locks"],stagedAs:"state"}],credential:{boxRelPath:"auth.json",boxAbsPath:`${I}/auth.json`,hostBackup:(0,o.join)(a.STATE_DIR,"opencode-credentials.json"),cloudMountPath:"/home/vscode/.agentbox-creds/opencode",cloudSubpath:"opencode/",realShape:"nonempty-json"},forwardedEnvKeys:["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENROUTER_API_KEY","GEMINI_API_KEY","GOOGLE_GENERATIVE_AI_API_KEY","GOOGLE_API_KEY","GROQ_API_KEY"],boxRunEnv:{OPENCODE_CONFIG_DIR:`${I}/config`,XDG_STATE_HOME:`${I}/.state`},seeds:[{bakedPath:"/usr/local/share/agentbox/opencode-agentbox-plugin.js",destRel:"config/plugins/agentbox-state.js",sharedAsset:"opencode-agentbox-plugin.js",label:"the agentbox-state plugin"}],caps:{resume:!1,teleport:"stub",teleportStubReason:"OpenCode session teleport is not yet supported in agentbox (sessions live in a multi-tenant SQLite DB at ~/.local/share/opencode/opencode.db; per-project extraction is tracked for a follow-up). Run `agentbox opencode` without -c / --resume to start a fresh session, or open an issue if you need this feature.",activitySource:["plugin"]},pull:{items:[{group:"data",names:["auth.json"]},{group:"config",names:["opencode.json","opencode.jsonc","agents","commands","modes","plugins","skills","tools","themes"]}]},modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"command",name:"opencode-model-auth",command:P({agentId:"opencode",storePath:`${I}/auth.json`,providerKey:"openai",marker:R("opencode")})}},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new opencode box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create."}]},N=`${s.BOX_HOME}/.pi/agent`,D={id:"pi",aliases:[],sessionName:"pi",binary:"pi",install:{recipe:{kind:"npm",package:"@earendil-works/pi-coding-agent"},runAs:"root",postInstall:['if [ "$(node -p \'process.versions.node.split(".")[0]\' 2>/dev/null || echo 0)" -lt 22 ]; then echo "agentbox: pi needs Node >= 22.19, but this box has $(node --version 2>/dev/null || echo none). Re-bake this provider\'s base (agentbox prepare --provider <name>) to get a newer Node." >&2; exit 65; fi',...(0,s.agentDirPrelude)([`${s.BOX_HOME}/.pi`,N],"pi"),`ln -sfn ${s.BOX_CREDS_DIR}/pi/auth.json ${N}/auth.json`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${N}/auth.json`].join(" && ")},dockerVolume:"agentbox-pi-config",staticPaths:[{hostHomeRel:[".pi","agent"],boxDir:N,exclude:["sessions","bin","models-store.json","trust.json"]}],credential:{boxRelPath:"auth.json",boxAbsPath:`${N}/auth.json`,hostBackup:(0,o.join)(a.STATE_DIR,"pi-credentials.json"),cloudMountPath:`${s.BOX_CREDS_DIR}/pi`,cloudSubpath:"pi/",realShape:"nonempty-json"},forwardedEnvKeys:["ANTHROPIC_API_KEY","OPENAI_API_KEY","GEMINI_API_KEY","OPENROUTER_API_KEY","XAI_API_KEY","GROQ_API_KEY","AI_GATEWAY_API_KEY","HF_TOKEN","AWS_BEARER_TOKEN_BEDROCK"],boxRunEnv:{PI_SKIP_VERSION_CHECK:"1"},seeds:[{bakedPath:"/usr/local/share/agentbox/pi-agentbox-extension.js",destRel:"extensions/agentbox-state.js",sharedAsset:"pi-agentbox-extension.js",label:"the agentbox-state extension"}],launchFlags:["-a"],caps:{resume:!0,teleport:"full",activitySource:["plugin"]},pull:{items:[{group:"data",names:["auth.json","settings.json","AGENTS.md","SYSTEM.md","APPEND_SYSTEM.md"]}],categories:["extensions","skills","prompts","themes"]},modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"command",name:"pi-model-auth",command:P({agentId:"pi",storePath:`${N}/auth.json`,providerKey:"openai-codex",marker:R("pi")})}},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new pi box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai-codex`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create."}]},C=[1];function B(e){return C.includes(e)}var X={version:1,agents:[]},G=["id","aliases","sessionName","binary","install","dockerVolume","staticPaths","forwardedEnvKeys","boxRunEnv","caps"],H=["npm","script","exec"],U=["root","box-user"];function K(e){if(null===e||"object"!=typeof e)return"not an object";let t=G.filter(t=>void 0===e[t]);if(t.length>0)return`missing required field(s): ${t.join(", ")}`;if("string"!=typeof e.id||0===e.id.length)return"`id` must be a non-empty string";if(!Array.isArray(e.aliases))return"`aliases` must be an array";let n=function(e){if(null===e||"object"!=typeof e)return"`install` must be an object";let t=e.recipe;if(void 0===t||"object"!=typeof t||null===t)return'`install.recipe` is required (`{ kind: "npm" | "script" | "exec", … }`)';let n=t.kind;return"string"==typeof n&&H.includes(n)?"npm"===n&&"string"!=typeof t.package?"`install.recipe.package` is required for the npm recipe":"script"===n&&"string"!=typeof t.url?"`install.recipe.url` is required for the script recipe":"exec"===n&&"string"!=typeof t.script?"`install.recipe.script` is required for the exec recipe":"string"==typeof e.runAs&&U.includes(e.runAs)?null:`\`install.runAs\` must be one of ${U.join(", ")}`:`\`install.recipe.kind\` must be one of ${H.join(", ")}`}(e.install)??(void 0===e.credential?null:function(e){if(null===e||"object"!=typeof e)return"`credential` must be an object";if("string"!=typeof e.boxAbsPath||!e.boxAbsPath.startsWith("/"))return"`credential.boxAbsPath` must be an absolute in-box path";if("string"!=typeof e.hostBackup||!e.hostBackup.startsWith("/"))return"`credential.hostBackup` must be an absolute host path (the fan-out writes to it)";if("string"!=typeof e.cloudSubpath||!e.cloudSubpath.endsWith("/"))return"`credential.cloudSubpath` must be a sub-directory, ending in `/` (e.g. `myagent/`)";if("claude-oauth"!==e.realShape&&"nonempty-json"!==e.realShape)return"`credential.realShape` must be 'claude-oauth' or 'nonempty-json'";let t=e.freshness;if(void 0!==t){let e=t.jsonPath;if(!Array.isArray(e)||0===e.length||e.some(e=>"string"!=typeof e||0===e.length))return"`credential.freshness.jsonPath` must be a non-empty array of property names"}return null}(e.credential))??(void 0===e.clone?null:function(e){if(null===e||"object"!=typeof e)return"`clone` must be an object";for(let t of["drop","render"]){let n=e[t];if(void 0!==n){if(!Array.isArray(n)||n.some(e=>"string"!=typeof e||0===e.length))return`\`clone.${t}\` must be an array of non-empty workspace-relative paths`;for(let e of n)if(e.startsWith("/")||e.split("/").includes(".."))return`\`clone.${t}\` entries must be workspace-relative, without '..' (got "${e}")`}}let t=e.perBoxCarry;if(void 0!==t){if(!Array.isArray(t))return"`clone.perBoxCarry` must be an array";for(let[e,n]of t.entries()){if(null===n||"object"!=typeof n)return`\`clone.perBoxCarry[${e}]\` must be an object`;if("string"!=typeof n.src||!(n.src.startsWith("/")||n.src.startsWith("~/")))return`\`clone.perBoxCarry[${e}].src\` must be an absolute host path or start with '~/'`;if("string"!=typeof n.dest||!(n.dest.startsWith("/")||n.dest.startsWith("~/")))return`\`clone.perBoxCarry[${e}].dest\` must be an absolute in-box path or start with '~/'`;if(void 0!==n.mode&&"number"!=typeof n.mode)return`\`clone.perBoxCarry[${e}].mode\` must be a number (e.g. 0o600)`}}return null}(e.clone))??function(e){if(!Array.isArray(e))return"`staticPaths` must be an array";for(let[t,n]of e.entries()){if(null===n||"object"!=typeof n)return`\`staticPaths[${t}]\` must be an object`;if(!Array.isArray(n.hostHomeRel)||0===n.hostHomeRel.length||n.hostHomeRel.some(e=>"string"!=typeof e||0===e.length))return`\`staticPaths[${t}].hostHomeRel\` must be a non-empty array of non-empty path segments`;if("string"!=typeof n.boxDir||!n.boxDir.startsWith("/"))return`\`staticPaths[${t}].boxDir\` must be an absolute in-box path`}return null}(e.staticPaths);if(null!==n)return n;try{JSON.parse(JSON.stringify(e))}catch{return"not JSON-serializable"}return null}function M(e=a.AGENTS_FILE){try{var t;if(!(0,r.existsSync)(e))return{...X};return(t=JSON.parse((0,r.readFileSync)(e,"utf8")))&&1===t.version&&Array.isArray(t.agents)?t:{...X}}catch{return{...X}}}function L(e=a.AGENTS_FILE){let t=[];for(let n of M(e).agents)if(B(n.apiVersion))for(let e of Object.values(n.specs??{}))null===K(e)&&t.push(e);return t}async function Y(e){let t,n;try{t=await (0,i.readFile)(e,"utf8")}catch(e){if("ENOENT"===e.code)return{...X};throw e}try{n=JSON.parse(t)}catch{throw Error(`${e} is not valid JSON \u2014 fix or remove it before adding an agent`)}let o=n;if(!o||1!==o.version||!Array.isArray(o.agents))throw Error(`${e} is not a recognized agent registry \u2014 fix or remove it`);return o}async function F(e,t){await (0,i.mkdir)((0,o.dirname)(e),{recursive:!0}),await (0,i.writeFile)(e,`${JSON.stringify(t,null,2)}
105
- `,"utf8")}async function V(e,t=a.AGENTS_FILE){let n=await Y(t);n.agents=[...n.agents.filter(t=>t.packageName!==e.packageName),e],await F(t,n)}async function W(e,t=a.AGENTS_FILE){let n=await Y(t),o=n.agents.length;return n.agents=n.agents.filter(t=>t.packageName!==e),n.agents.length!==o&&(await F(t,n),!0)}var J=[d,p,T,D,S,m],q=z(J,L());function z(e,t){let n=new Set(e.flatMap(e=>[e.id,...e.aliases]));return[...e,...t.filter(e=>![e.id,...e.aliases].some(e=>n.has(e)))]}function Q(){return q.filter(e=>!e.hidden)}e.s(["AGENTS_FILE_VERSION",0,1,"AGENT_SPECS",0,q,"BUILTIN_AGENT_SPECS",0,J,"SUPPORTED_AGENT_API_VERSIONS",0,C,"addAgentPluginRecord",0,V,"agentSpecProblem",0,K,"allAgentSpecs",0,function(){return z(J,L())},"builtinAgentIds",0,function(){return J.map(e=>e.id)},"findAgentSpec",0,function(e){return q.find(t=>t.id===e||t.aliases.includes(e))},"isSupportedAgentApiVersion",0,B,"pluginAgentSpecs",0,L,"pluginForAgent",0,function(e,t=a.AGENTS_FILE){return M(t).agents.find(t=>e in(t.specs??{}))},"readAgentRegistrySync",0,M,"removeAgentPluginRecord",0,W,"visibleAgentIds",0,function(){return Q().map(e=>e.id)},"visibleAgentSpecs",0,Q])}];
113
+ exit 0`}function I(e){return`/run/agentbox/model-auth-${e}.sha256`}var T=`${s.BOX_HOME}/.local/share/opencode`,N={id:"opencode",aliases:[],sessionName:"opencode",binary:"opencode",install:{recipe:{kind:"npm",package:"opencode-ai"},runAs:"root",postInstall:[...(0,s.agentDirPrelude)([T],"opencode"),`ln -sfn ${s.BOX_CREDS_DIR}/opencode/auth.json ${T}/auth.json`,`chown -R ${s.BOX_USER}:${s.BOX_USER} ${s.BOX_HOME}/.local`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${T}/auth.json`].join(" && ")},dockerVolume:"agentbox-opencode-config",staticPaths:[{hostHomeRel:[".local","share","opencode"],boxDir:T,exclude:["storage","log","project","cache","bin","repos","snapshot","config"]},{hostHomeRel:[".config","opencode"],boxDir:T,relocToSubpath:"config"},{hostHomeRel:[".local","state","opencode"],boxDir:T,relocToSubpath:".state/opencode",update:!0,exclude:["locks"],stagedAs:"state"}],credential:{boxRelPath:"auth.json",boxAbsPath:`${T}/auth.json`,hostBackup:(0,o.join)(a.STATE_DIR,"opencode-credentials.json"),cloudMountPath:"/home/vscode/.agentbox-creds/opencode",cloudSubpath:"opencode/",realShape:"nonempty-json"},forwardedEnvKeys:["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENROUTER_API_KEY","GEMINI_API_KEY","GOOGLE_GENERATIVE_AI_API_KEY","GOOGLE_API_KEY","GROQ_API_KEY"],boxRunEnv:{OPENCODE_CONFIG_DIR:`${T}/config`,XDG_STATE_HOME:`${T}/.state`},seeds:[{bakedPath:"/usr/local/share/agentbox/opencode-agentbox-plugin.js",destRel:"config/plugins/agentbox-state.js",sharedAsset:"opencode-agentbox-plugin.js",label:"the agentbox-state plugin"}],caps:{resume:!1,teleport:"stub",teleportStubReason:"OpenCode session teleport is not yet supported in agentbox (sessions live in a multi-tenant SQLite DB at ~/.local/share/opencode/opencode.db; per-project extraction is tracked for a follow-up). Run `agentbox opencode` without -c / --resume to start a fresh session, or open an issue if you need this feature.",activitySource:["plugin"]},pull:{items:[{group:"data",names:["auth.json"]},{group:"config",names:["opencode.json","opencode.jsonc","agents","commands","modes","plugins","skills","tools","themes"]}]},modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"command",name:"opencode-model-auth",command:R({agentId:"opencode",storePath:`${T}/auth.json`,providerKey:"openai",marker:I("opencode")})}},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new opencode box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create."}]},D=`${s.BOX_HOME}/.pi/agent`,C={id:"pi",aliases:[],sessionName:"pi",binary:"pi",install:{recipe:{kind:"npm",package:"@earendil-works/pi-coding-agent"},runAs:"root",postInstall:['if [ "$(node -p \'process.versions.node.split(".")[0]\' 2>/dev/null || echo 0)" -lt 22 ]; then echo "agentbox: pi needs Node >= 22.19, but this box has $(node --version 2>/dev/null || echo none). Re-bake this provider\'s base (agentbox prepare --provider <name>) to get a newer Node." >&2; exit 65; fi',...(0,s.agentDirPrelude)([`${s.BOX_HOME}/.pi`,D],"pi"),`ln -sfn ${s.BOX_CREDS_DIR}/pi/auth.json ${D}/auth.json`,`chown -h ${s.BOX_USER}:${s.BOX_USER} ${D}/auth.json`].join(" && ")},dockerVolume:"agentbox-pi-config",staticPaths:[{hostHomeRel:[".pi","agent"],boxDir:D,exclude:["sessions","bin","models-store.json","trust.json"]}],credential:{boxRelPath:"auth.json",boxAbsPath:`${D}/auth.json`,hostBackup:(0,o.join)(a.STATE_DIR,"pi-credentials.json"),cloudMountPath:`${s.BOX_CREDS_DIR}/pi`,cloudSubpath:"pi/",realShape:"nonempty-json"},forwardedEnvKeys:["ANTHROPIC_API_KEY","OPENAI_API_KEY","GEMINI_API_KEY","OPENROUTER_API_KEY","XAI_API_KEY","GROQ_API_KEY","AI_GATEWAY_API_KEY","HF_TOKEN","AWS_BEARER_TOKEN_BEDROCK"],boxRunEnv:{PI_SKIP_VERSION_CHECK:"1"},seeds:[{bakedPath:"/usr/local/share/agentbox/pi-agentbox-extension.js",destRel:"extensions/agentbox-state.js",sharedAsset:"pi-agentbox-extension.js",label:"the agentbox-state extension"}],launchFlags:["-a"],caps:{resume:!0,teleport:"full",activitySource:["plugin"]},pull:{items:[{group:"data",names:["auth.json","settings.json","AGENTS.md","SYSTEM.md","APPEND_SYSTEM.md"]}],categories:["extensions","skills","prompts","themes"]},modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"command",name:"pi-model-auth",command:R({agentId:"pi",storePath:`${D}/auth.json`,providerKey:"openai-codex",marker:I("pi")})}},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new pi box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai-codex`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create."}]},B=[1];function X(e){return B.includes(e)}var G={version:1,agents:[]},H=["id","aliases","sessionName","binary","install","dockerVolume","staticPaths","forwardedEnvKeys","boxRunEnv","caps"],U=["npm","script","exec"],K=["root","box-user"];function M(e){if(null===e||"object"!=typeof e)return"not an object";let t=H.filter(t=>void 0===e[t]);if(t.length>0)return`missing required field(s): ${t.join(", ")}`;if("string"!=typeof e.id||0===e.id.length)return"`id` must be a non-empty string";if(!Array.isArray(e.aliases))return"`aliases` must be an array";let n=function(e){if(null===e||"object"!=typeof e)return"`install` must be an object";let t=e.recipe;if(void 0===t||"object"!=typeof t||null===t)return'`install.recipe` is required (`{ kind: "npm" | "script" | "exec", … }`)';let n=t.kind;return"string"==typeof n&&U.includes(n)?"npm"===n&&"string"!=typeof t.package?"`install.recipe.package` is required for the npm recipe":"script"===n&&"string"!=typeof t.url?"`install.recipe.url` is required for the script recipe":"exec"===n&&"string"!=typeof t.script?"`install.recipe.script` is required for the exec recipe":"string"==typeof e.runAs&&K.includes(e.runAs)?null:`\`install.runAs\` must be one of ${K.join(", ")}`:`\`install.recipe.kind\` must be one of ${U.join(", ")}`}(e.install)??(void 0===e.credential?null:function(e){if(null===e||"object"!=typeof e)return"`credential` must be an object";if("string"!=typeof e.boxAbsPath||!e.boxAbsPath.startsWith("/"))return"`credential.boxAbsPath` must be an absolute in-box path";if("string"!=typeof e.hostBackup||!e.hostBackup.startsWith("/"))return"`credential.hostBackup` must be an absolute host path (the fan-out writes to it)";if("string"!=typeof e.cloudSubpath||!e.cloudSubpath.endsWith("/"))return"`credential.cloudSubpath` must be a sub-directory, ending in `/` (e.g. `myagent/`)";if("claude-oauth"!==e.realShape&&"nonempty-json"!==e.realShape)return"`credential.realShape` must be 'claude-oauth' or 'nonempty-json'";let t=e.freshness;if(void 0!==t){let e=t.jsonPath;if(!Array.isArray(e)||0===e.length||e.some(e=>"string"!=typeof e||0===e.length))return"`credential.freshness.jsonPath` must be a non-empty array of property names"}return null}(e.credential))??(void 0===e.clone?null:function(e){if(null===e||"object"!=typeof e)return"`clone` must be an object";for(let t of["drop","render"]){let n=e[t];if(void 0!==n){if(!Array.isArray(n)||n.some(e=>"string"!=typeof e||0===e.length))return`\`clone.${t}\` must be an array of non-empty workspace-relative paths`;for(let e of n)if(e.startsWith("/")||e.split("/").includes(".."))return`\`clone.${t}\` entries must be workspace-relative, without '..' (got "${e}")`}}let t=e.perBoxCarry;if(void 0!==t){if(!Array.isArray(t))return"`clone.perBoxCarry` must be an array";for(let[e,n]of t.entries()){if(null===n||"object"!=typeof n)return`\`clone.perBoxCarry[${e}]\` must be an object`;if("string"!=typeof n.src||!(n.src.startsWith("/")||n.src.startsWith("~/")))return`\`clone.perBoxCarry[${e}].src\` must be an absolute host path or start with '~/'`;if("string"!=typeof n.dest||!(n.dest.startsWith("/")||n.dest.startsWith("~/")))return`\`clone.perBoxCarry[${e}].dest\` must be an absolute in-box path or start with '~/'`;if(void 0!==n.mode&&"number"!=typeof n.mode)return`\`clone.perBoxCarry[${e}].mode\` must be a number (e.g. 0o600)`}}return null}(e.clone))??function(e){if(!Array.isArray(e))return"`staticPaths` must be an array";for(let[t,n]of e.entries()){if(null===n||"object"!=typeof n)return`\`staticPaths[${t}]\` must be an object`;if(!Array.isArray(n.hostHomeRel)||0===n.hostHomeRel.length||n.hostHomeRel.some(e=>"string"!=typeof e||0===e.length))return`\`staticPaths[${t}].hostHomeRel\` must be a non-empty array of non-empty path segments`;if("string"!=typeof n.boxDir||!n.boxDir.startsWith("/"))return`\`staticPaths[${t}].boxDir\` must be an absolute in-box path`}return null}(e.staticPaths);if(null!==n)return n;try{JSON.parse(JSON.stringify(e))}catch{return"not JSON-serializable"}return null}function L(e=a.AGENTS_FILE){try{var t;if(!(0,r.existsSync)(e))return{...G};return(t=JSON.parse((0,r.readFileSync)(e,"utf8")))&&1===t.version&&Array.isArray(t.agents)?t:{...G}}catch{return{...G}}}function F(e=a.AGENTS_FILE){let t=[];for(let n of L(e).agents)if(X(n.apiVersion))for(let e of Object.values(n.specs??{}))null===M(e)&&t.push(e);return t}async function Y(e){let t,n;try{t=await (0,i.readFile)(e,"utf8")}catch(e){if("ENOENT"===e.code)return{...G};throw e}try{n=JSON.parse(t)}catch{throw Error(`${e} is not valid JSON \u2014 fix or remove it before adding an agent`)}let o=n;if(!o||1!==o.version||!Array.isArray(o.agents))throw Error(`${e} is not a recognized agent registry \u2014 fix or remove it`);return o}async function V(e,t){await (0,i.mkdir)((0,o.dirname)(e),{recursive:!0}),await (0,i.writeFile)(e,`${JSON.stringify(t,null,2)}
114
+ `,"utf8")}async function W(e,t=a.AGENTS_FILE){let n=await Y(t);n.agents=[...n.agents.filter(t=>t.packageName!==e.packageName),e],await V(t,n)}async function J(e,t=a.AGENTS_FILE){let n=await Y(t),o=n.agents.length;return n.agents=n.agents.filter(t=>t.packageName!==e),n.agents.length!==o&&(await V(t,n),!0)}var q=[d,p,N,C,j,m],z=Q(q,F());function Q(e,t){let n=new Set(e.flatMap(e=>[e.id,...e.aliases]));return[...e,...t.filter(e=>![e.id,...e.aliases].some(e=>n.has(e)))]}function Z(){return z.filter(e=>!e.hidden)}e.s(["AGENTS_FILE_VERSION",0,1,"AGENT_SPECS",0,z,"BUILTIN_AGENT_SPECS",0,q,"SUPPORTED_AGENT_API_VERSIONS",0,B,"addAgentPluginRecord",0,W,"agentSpecProblem",0,M,"allAgentSpecs",0,function(){return Q(q,F())},"builtinAgentIds",0,function(){return q.map(e=>e.id)},"findAgentSpec",0,function(e){return z.find(t=>t.id===e||t.aliases.includes(e))},"isSupportedAgentApiVersion",0,X,"pluginAgentSpecs",0,F,"pluginForAgent",0,function(e,t=a.AGENTS_FILE){return L(t).agents.find(t=>e in(t.specs??{}))},"readAgentRegistrySync",0,L,"removeAgentPluginRecord",0,J,"visibleAgentIds",0,function(){return Z().map(e=>e.id)},"visibleAgentSpecs",0,Z])}];
106
115
 
107
116
  //# sourceMappingURL=packages_agent-registry_dist_index_1ze3mqq.js.map
@@ -45,7 +45,7 @@ ${b.detail.slice(-600)}`)}}let g=lv(e),h=g+lw(f.recipe),i="root"===f.runAs?lu(h)
45
45
  ${`${j.stdout}
46
46
  ${j.stderr}`.trim().slice(-600)}`);if(f.postInstall){let b=await a.exec(lu(g+f.postInstall),{user:"root"});if(0!==b.exitCode)throw new lt(`${d.id}: post-install step failed (exit ${String(b.exitCode)}).
47
47
  ${`${b.stdout}
48
- ${b.stderr}`.trim().slice(-600)}`)}if(0!==(await a.exec(["sh","-lc",`command -v ${d.binary}`])).exitCode)throw new lt(`${d.id}: the installer reported success but \`${d.binary}\` is still not on PATH in the box.`);try{let b=await kI(d.id);null!==b&&(await kK(a,d.id,b),c.onProgress?.(`seeded ${d.id} credentials into the box`))}catch(a){c.onProgress?.(`could not seed ${d.id} credentials (${a instanceof Error?a.message:String(a)}); sign in inside the box`)}return{installed:!0}}var lA=["node_modules",".git",".venv","venv","__pycache__","dist",".next","build"];function lB(a){let b=[];return a.forEach((a,c)=>{c>0&&b.push("-o"),b.push("-name",a)}),b}function lC(a){return["find",".","(","-type","d","(",...lB(lA),")","-prune",")","-o","(","-type","f","(",...lB(a),")","-print0",")"]}async function lD(a,b){if(0===b.length)return[];let c=await hT("find",lC(b).slice(1),{cwd:a,reject:!1});return 0!==c.exitCode?[]:String(c.stdout).split("\0").filter(a=>a.length>0)}async function lE(a,b){return(await lD(a,b)).map(a=>a.replace(/^\.\//,"")).filter(a=>a.length>0)}async function lF(a,b,c){let d=await lD(a.hostWorkspace,c);if(0===d.length)return{copied:0};let e=await (0,j.mkdtemp)((0,l.join)((0,k.tmpdir)(),"agentbox-envfiles-")),f=(0,l.join)(e,"envfiles.tar");try{let c=await hT("tar",["-C",a.hostWorkspace,"--null","-T","-","-cf",f],{input:d.join("\0"),reject:!1});if(0!==c.exitCode)return a.onLog(`warning: env-file tar pack failed: ${String(c.stderr).slice(0,300)}`),{copied:0};try{await b.applyTarball(f,a.boxWorkspace,{uid:1e3})}catch(b){return a.onLog(`warning: env-file copy into box failed: ${b instanceof Error?b.message:String(b)}`),{copied:0}}}finally{await (0,j.rm)(e,{recursive:!0,force:!0})}return{copied:d.length}}var lG="/home/vscode";function lH(a){let b=a.lastIndexOf("/");return b<=0?"/":a.slice(0,b)}function lI(a){let b=a.lastIndexOf("/");return b<0?a:a.slice(b+1)}async function lJ(a){try{return await (0,j.stat)(a),!0}catch{return!1}}function lK(a){return a.replace(/[^a-zA-Z0-9]/g,"-")}var lL="/home/vscode/.claude/projects/-workspace";async function lM(a,b=(0,k.homedir)()){if(0===a.length)return null;let c=(0,l.join)(b,".claude","projects",lK(a),"memory");if(!await lJ(c))return null;try{let a=await (0,j.readdir)(c);if(0===a.length)return null}catch{return null}return c}async function lN(a,b){let c=await Promise.all(b.map(async a=>{try{return await (0,j.realpath)(a)}catch{return a}})),d=[],e=new Set;async function f(a,b){if(!e.has(a)){e.add(a);try{let e;try{e=await (0,j.readdir)(a,{withFileTypes:!0})}catch{return}for(let g of e){let e=(0,l.join)(a,g.name),h=b?(0,l.join)(b,g.name):g.name;if(g.isSymbolicLink()){let a;try{a=await (0,j.realpath)(e)}catch{d.push(h);continue}if(!c.some(b=>(function(a,b){let c=(0,l.relative)(a,b);return""===c||!c.startsWith("..")&&!(0,l.isAbsolute)(c)})(b,a))){d.push(h);continue}let b=await (0,j.stat)(a).catch(()=>null);b?.isDirectory()&&await f(a,h)}else g.isDirectory()&&await f(e,h)}}finally{e.delete(a)}}}return await f(a,""),d}async function lO(a){try{return await (0,j.stat)(a),!0}catch{return!1}}async function lP(a){let b=a.transport.seedVolumeFromHost;if(!b)throw Error("seedAgentsVolume requires a transport with seedVolumeFromHost");if(!(a.syncFromHost&&await lO(a.hostAgents))){try{await b.call(a.transport,a.volume,[])}catch(b){a.onLog?.(`skills: volume writable-chown failed (ignored): ${b instanceof Error?b.message:String(b)}`)}return{synced:!1}}let c=(await lN(a.hostAgents,[a.hostAgents])).map(a=>`/${a}`);return await b.call(a.transport,a.volume,[{hostDir:a.hostAgents,destSubpath:"",exclude:c,copyUnsafeLinks:!0}]),c.length>0&&a.onLog?.(`skills: excluded ${String(c.length)} unsyncable symlink(s) from ~/.agents`),{synced:!0}}function lQ(a,b){return void 0===a?"copy":"-"===a?"conflict":a===b?"identical":"conflict"}function lR(a){return a.split("\0").filter(a=>a.length>0)}async function lS(a,b){let c=await a.boxGit(b,["diff","--name-only","--diff-filter=U","-z"]);return 0===c.exitCode?lR(c.stdout):[]}async function lT(a,b,c){let d=c??(()=>{}),e=[];for(let c of a){let a=c.containerPath,f=c.hostMainRepo,g=c.branch,h={containerPath:a,mergeConflicts:[],overlaySkipped:[]},i=await b.resolveHostRef(f);if(!i){d(`resync: ${a}: could not resolve host ref; skipping`),e.push(h);continue}let j=await b.createHostStash(f),k=await b.listHostUntracked(f);if(i!==g){let c=(await b.boxGit(a,["status","--porcelain"])).stdout.split("\n").some(a=>a.length>0&&!a.startsWith("??")),e=!1;c&&(e=0===(await b.boxGit(a,["stash","push","-m","agentbox-resync"])).exitCode);let f=await b.boxGit(a,["rev-list","--count",`${g}..${i}`]),j=0===f.exitCode?f.stdout.trim():"?",k=await b.boxGit(a,["merge","--no-commit",i]),l=0===(await b.boxGit(a,["rev-parse","-q","--verify","MERGE_HEAD"])).exitCode,m=await lS(b,a);if(m.length>0&&(await b.boxGit(a,["checkout","--ours","--",...m]),await b.boxGit(a,["add","--",...m]),h.mergeConflicts.push(...m)),l?(await b.boxGit(a,["-c","user.name=agentbox","-c","user.email=agentbox@users.noreply.github.com","commit","--no-edit"]),d(`resync: ${a}: merged ${j} new host commit(s) from ${i}`+(m.length>0?` (${String(m.length)} conflict(s) kept box version)`:""))):0===k.exitCode?d(`resync: ${a}: ${"0"===j?"already up to date":`fast-forwarded to ${i}`}`):(await b.boxGit(a,["merge","--abort"]),d(`resync: ${a}: merge skipped (${(k.stderr||k.stdout).trim().split("\n")[0]})`)),e&&0!==(await b.boxGit(a,["stash","pop"])).exitCode){for(let c of(await lS(b,a)))await b.boxGit(a,["checkout","--theirs","--",c]),await b.boxGit(a,["reset","-q","--",c]);await b.boxGit(a,["stash","drop"])}}if(j&&0!==(await b.boxGit(a,["stash","apply",j])).exitCode){let c=await lS(b,a);for(let d of c)await b.boxGit(a,["checkout","--ours","--",d]),await b.boxGit(a,["reset","-q","--",d]);c.length>0&&h.overlaySkipped.push(...c)}if(k.length>0){let c=await b.probeUntrackedTokens(a,k),e=[],g=0;for(let a of k){let d=c.get(a),i="";if(void 0!==d&&"-"!==d)try{i=await b.hashHostFile(f,a)}catch{g++;continue}let j=lQ(d,i);"copy"===j?e.push(a):"conflict"===j?h.overlaySkipped.push(a):g++}if(g>0&&d(`resync: ${a}: ${String(g)} untracked host file(s) already identical in box (no-op)`),e.length>0){let c=await b.packHostFiles(f,e);c&&(await b.applyTarToBox(a,c),d(`resync: ${a}: copied ${String(e.length)} untracked host file(s)`))}}e.push(h)}return e}var lU=new Map;async function lV(a,b,c){let d=`${b}.agentbox-snapshot`,e=`import sqlite3,sys
48
+ ${b.stderr}`.trim().slice(-600)}`)}if(0!==(await a.exec(["sh","-lc",`command -v ${d.binary}`])).exitCode)throw new lt(`${d.id}: the installer reported success but \`${d.binary}\` is still not on PATH in the box.`);try{let b=await kI(d.id);null!==b&&(await kK(a,d.id,b),c.onProgress?.(`seeded ${d.id} credentials into the box`))}catch(a){c.onProgress?.(`could not seed ${d.id} credentials (${a instanceof Error?a.message:String(a)}); sign in inside the box`)}return{installed:!0}}var lA=["node_modules",".git",".venv","venv","__pycache__","dist",".next","build"];function lB(a){let b=[];return a.forEach((a,c)=>{c>0&&b.push("-o"),b.push("-name",a)}),b}function lC(a){return["find",".","(","-type","d","(",...lB(lA),")","-prune",")","-o","(","-type","f","(",...lB(a),")","-print0",")"]}async function lD(a,b){if(0===b.length)return[];let c=await hT("find",lC(b).slice(1),{cwd:a,reject:!1});return 0!==c.exitCode?[]:String(c.stdout).split("\0").filter(a=>a.length>0)}async function lE(a,b){return(await lD(a,b)).map(a=>a.replace(/^\.\//,"")).filter(a=>a.length>0)}async function lF(a,b,c){let d=await lD(a.hostWorkspace,c);if(0===d.length)return{copied:0};let e=await (0,j.mkdtemp)((0,l.join)((0,k.tmpdir)(),"agentbox-envfiles-")),f=(0,l.join)(e,"envfiles.tar");try{let c=await hT("tar",["-C",a.hostWorkspace,"--null","-T","-","-cf",f],{input:d.join("\0"),reject:!1,env:{...process.env,COPYFILE_DISABLE:"1"}});if(0!==c.exitCode)return a.onLog(`warning: env-file tar pack failed: ${String(c.stderr).slice(0,300)}`),{copied:0};try{await b.applyTarball(f,a.boxWorkspace,{uid:1e3})}catch(b){return a.onLog(`warning: env-file copy into box failed: ${b instanceof Error?b.message:String(b)}`),{copied:0}}}finally{await (0,j.rm)(e,{recursive:!0,force:!0})}return{copied:d.length}}var lG="/home/vscode";function lH(a){let b=a.lastIndexOf("/");return b<=0?"/":a.slice(0,b)}function lI(a){let b=a.lastIndexOf("/");return b<0?a:a.slice(b+1)}async function lJ(a){try{return await (0,j.stat)(a),!0}catch{return!1}}function lK(a){return a.replace(/[^a-zA-Z0-9]/g,"-")}var lL="/home/vscode/.claude/projects/-workspace";async function lM(a,b=(0,k.homedir)()){if(0===a.length)return null;let c=(0,l.join)(b,".claude","projects",lK(a),"memory");if(!await lJ(c))return null;try{let a=await (0,j.readdir)(c);if(0===a.length)return null}catch{return null}return c}async function lN(a,b){let c=await Promise.all(b.map(async a=>{try{return await (0,j.realpath)(a)}catch{return a}})),d=[],e=new Set;async function f(a,b){if(!e.has(a)){e.add(a);try{let e;try{e=await (0,j.readdir)(a,{withFileTypes:!0})}catch{return}for(let g of e){let e=(0,l.join)(a,g.name),h=b?(0,l.join)(b,g.name):g.name;if(g.isSymbolicLink()){let a;try{a=await (0,j.realpath)(e)}catch{d.push(h);continue}if(!c.some(b=>(function(a,b){let c=(0,l.relative)(a,b);return""===c||!c.startsWith("..")&&!(0,l.isAbsolute)(c)})(b,a))){d.push(h);continue}let b=await (0,j.stat)(a).catch(()=>null);b?.isDirectory()&&await f(a,h)}else g.isDirectory()&&await f(e,h)}}finally{e.delete(a)}}}return await f(a,""),d}async function lO(a){try{return await (0,j.stat)(a),!0}catch{return!1}}async function lP(a){let b=a.transport.seedVolumeFromHost;if(!b)throw Error("seedAgentsVolume requires a transport with seedVolumeFromHost");if(!(a.syncFromHost&&await lO(a.hostAgents))){try{await b.call(a.transport,a.volume,[])}catch(b){a.onLog?.(`skills: volume writable-chown failed (ignored): ${b instanceof Error?b.message:String(b)}`)}return{synced:!1}}let c=(await lN(a.hostAgents,[a.hostAgents])).map(a=>`/${a}`);return await b.call(a.transport,a.volume,[{hostDir:a.hostAgents,destSubpath:"",exclude:c,copyUnsafeLinks:!0}]),c.length>0&&a.onLog?.(`skills: excluded ${String(c.length)} unsyncable symlink(s) from ~/.agents`),{synced:!0}}function lQ(a,b){return void 0===a?"copy":"-"===a?"conflict":a===b?"identical":"conflict"}function lR(a){return a.split("\0").filter(a=>a.length>0)}async function lS(a,b){let c=await a.boxGit(b,["diff","--name-only","--diff-filter=U","-z"]);return 0===c.exitCode?lR(c.stdout):[]}async function lT(a,b,c){let d=c??(()=>{}),e=[];for(let c of a){let a=c.containerPath,f=c.hostMainRepo,g=c.branch,h={containerPath:a,mergeConflicts:[],overlaySkipped:[]},i=await b.resolveHostRef(f);if(!i){d(`resync: ${a}: could not resolve host ref; skipping`),e.push(h);continue}let j=await b.createHostStash(f),k=await b.listHostUntracked(f);if(i!==g){let c=(await b.boxGit(a,["status","--porcelain"])).stdout.split("\n").some(a=>a.length>0&&!a.startsWith("??")),e=!1;c&&(e=0===(await b.boxGit(a,["stash","push","-m","agentbox-resync"])).exitCode);let f=await b.boxGit(a,["rev-list","--count",`${g}..${i}`]),j=0===f.exitCode?f.stdout.trim():"?",k=await b.boxGit(a,["merge","--no-commit",i]),l=0===(await b.boxGit(a,["rev-parse","-q","--verify","MERGE_HEAD"])).exitCode,m=await lS(b,a);if(m.length>0&&(await b.boxGit(a,["checkout","--ours","--",...m]),await b.boxGit(a,["add","--",...m]),h.mergeConflicts.push(...m)),l?(await b.boxGit(a,["-c","user.name=agentbox","-c","user.email=agentbox@users.noreply.github.com","commit","--no-edit"]),d(`resync: ${a}: merged ${j} new host commit(s) from ${i}`+(m.length>0?` (${String(m.length)} conflict(s) kept box version)`:""))):0===k.exitCode?d(`resync: ${a}: ${"0"===j?"already up to date":`fast-forwarded to ${i}`}`):(await b.boxGit(a,["merge","--abort"]),d(`resync: ${a}: merge skipped (${(k.stderr||k.stdout).trim().split("\n")[0]})`)),e&&0!==(await b.boxGit(a,["stash","pop"])).exitCode){for(let c of(await lS(b,a)))await b.boxGit(a,["checkout","--theirs","--",c]),await b.boxGit(a,["reset","-q","--",c]);await b.boxGit(a,["stash","drop"])}}if(j&&0!==(await b.boxGit(a,["stash","apply",j])).exitCode){let c=await lS(b,a);for(let d of c)await b.boxGit(a,["checkout","--ours","--",d]),await b.boxGit(a,["reset","-q","--",d]);c.length>0&&h.overlaySkipped.push(...c)}if(k.length>0){let c=await b.probeUntrackedTokens(a,k),e=[],g=0;for(let a of k){let d=c.get(a),i="";if(void 0!==d&&"-"!==d)try{i=await b.hashHostFile(f,a)}catch{g++;continue}let j=lQ(d,i);"copy"===j?e.push(a):"conflict"===j?h.overlaySkipped.push(a):g++}if(g>0&&d(`resync: ${a}: ${String(g)} untracked host file(s) already identical in box (no-op)`),e.length>0){let c=await b.packHostFiles(f,e);c&&(await b.applyTarToBox(a,c),d(`resync: ${a}: copied ${String(e.length)} untracked host file(s)`))}}e.push(h)}return e}var lU=new Map;async function lV(a,b,c){let d=`${b}.agentbox-snapshot`,e=`import sqlite3,sys
49
49
  src=sqlite3.connect('file:${b}?mode=ro',uri=True)
50
50
  dst=sqlite3.connect('${d}')
51
51
  src.backup(dst); dst.close(); src.close()
@@ -28,27 +28,36 @@ process.stdout.write(
28
28
  }),
29
29
  );
30
30
  `;function y(a){return`'${a.replace(/'/g,"'\\''")}'`}var z=`${p}/.agentbox-model-auth.sha256`,A=`
31
+ let j;
32
+ try { const s = require('fs').readFileSync(0, 'utf8'); j = JSON.parse(s.slice(s.indexOf('{'))); } catch { process.exit(1); }
33
+ process.exit(j?.plugin?.trust?.reason === 'trusted-official' ? 0 : 1);
34
+ `,B=`
31
35
  const j = JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'));
32
36
  process.exit(typeof j?.tokens?.refresh_token === 'string' && j.tokens.refresh_token.length > 0 ? 0 : 1);
33
- `,B={id:"openclaw",aliases:[],sessionName:"openclaw",binary:"openclaw",install:{recipe:{kind:"npm",package:"openclaw",allowScripts:!0},runAs:"root",postInstall:[...(0,f.agentDirPrelude)([p,q,`${f.BOX_HOME}/.config`]),`rm -rf ${r}`,`ln -sfn ${q} ${r}`,`chown -h ${f.BOX_USER}:${f.BOX_USER} ${r}`].join(" && ")},dockerVolume:"agentbox-openclaw-config",staticPaths:[{hostHomeRel:[".openclaw"],boxDir:p,exclude:["openclaw.json","openclaw.json.bak","config-journal-fingerprint.key",".agentbox-overlay.json",".agentbox-model-auth.sha256","exec-approvals.json*","state","migration","tmp"]},{hostHomeRel:[".config","openclaw"],boxDir:p,relocToSubpath:"xdg"}],modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"serviceTask",task:"openclaw-model-auth"},promptOnCreate:!0},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new OpenClaw box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box, where OpenClaw imports it and refreshes it independently from then on. `none` leaves model auth for you to configure in the box, and is only valid on its own. `--model-auth` overrides per create."}],forwardedEnvKeys:[],boxRunEnv:{OPENCLAW_WORKSPACE_DIR:"/workspace"},service:{name:"openclaw",command:"openclaw gateway",restart:"always",needs:["openclaw-render"],readyWhen:{http:`http://127.0.0.1:${String(18789)}/healthz`},expose:{port:18789,as:80},rejectsProxyHeaders:!0,repl:["openclaw","tui"],tasks:[{name:"openclaw-onboard",runOnce:"marker",command:"openclaw onboard --non-interactive --accept-risk --mode local --skip-channels --skip-health --no-install-daemon"},{name:"openclaw-model-auth",command:(c=(b=m.credential.boxAbsPath).slice(0,b.lastIndexOf("/")),`set -u
37
+ `,C={id:"openclaw",aliases:[],sessionName:"openclaw",binary:"openclaw",install:{recipe:{kind:"npm",package:"openclaw",allowScripts:!0},runAs:"root",postInstall:[...(0,f.agentDirPrelude)([p,q,`${f.BOX_HOME}/.config`]),`rm -rf ${r}`,`ln -sfn ${q} ${r}`,`chown -h ${f.BOX_USER}:${f.BOX_USER} ${r}`].join(" && ")},dockerVolume:"agentbox-openclaw-config",staticPaths:[{hostHomeRel:[".openclaw"],boxDir:p,exclude:["openclaw.json","openclaw.json.bak","config-journal-fingerprint.key",".agentbox-overlay.json",".agentbox-model-auth.sha256","exec-approvals.json*","state","migration","tmp"]},{hostHomeRel:[".config","openclaw"],boxDir:p,relocToSubpath:"xdg"}],modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"serviceTask",task:"openclaw-model-auth"},promptOnCreate:!0},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new OpenClaw box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box, where OpenClaw imports it and refreshes it independently from then on. `none` leaves model auth for you to configure in the box, and is only valid on its own. `--model-auth` overrides per create."}],forwardedEnvKeys:[],boxRunEnv:{OPENCLAW_WORKSPACE_DIR:"/workspace"},service:{name:"openclaw",command:"openclaw gateway",restart:"always",needs:["openclaw-render"],readyWhen:{http:`http://127.0.0.1:${String(18789)}/healthz`},expose:{port:18789,as:80},rejectsProxyHeaders:!0,repl:["openclaw","tui"],tasks:[{name:"openclaw-onboard",runOnce:"marker",command:"openclaw onboard --non-interactive --accept-risk --mode local --skip-channels --skip-health --no-install-daemon"},{name:"openclaw-model-auth",command:(c=(b=m.credential.boxAbsPath).slice(0,b.lastIndexOf("/")),`set -u
34
38
  auth=${y(b)}
35
39
  marker=${y(z)}
36
40
  if [ ! -s "$auth" ]; then echo "openclaw-model-auth: no borrowed Codex login at $auth"; exit 0; fi
37
- if ! node -e ${y(A)} "$auth"; then echo "openclaw-model-auth: $auth is not a Codex ChatGPT login"; exit 0; fi
41
+ if ! node -e ${y(B)} "$auth"; then echo "openclaw-model-auth: $auth is not a Codex ChatGPT login"; exit 0; fi
38
42
  seen=$(sha256sum "$auth" | cut -d" " -f1)
43
+ codex_trusted() { openclaw plugins inspect codex --json 2>/dev/null | node -e ${y(A)}; }
44
+ if ! codex_trusted; then
45
+ echo "openclaw-model-auth: installing the @openclaw/codex plugin"
46
+ openclaw plugins install clawhub:@openclaw/codex --force || exit 0
47
+ fi
39
48
  if [ -f "$marker" ] && [ "$(cat "$marker")" = "$seen" ]; then
40
49
  echo "openclaw-model-auth: this Codex login is already imported"
41
50
  exit 0
42
51
  fi
43
- if [ ! -d ${y(`${p}/extensions/codex`)} ]; then
44
- echo "openclaw-model-auth: installing the @openclaw/codex plugin"
45
- openclaw plugins install clawhub:@openclaw/codex || exit 0
46
- fi
47
52
  echo "openclaw-model-auth: importing the Codex login into the OpenClaw auth store"
48
53
  if openclaw migrate apply codex --from ${y(c)} --include-secrets --item auth:openai --yes --no-backup --force; then
49
54
  printf %s "$seen" > "$marker" && chmod 600 "$marker"
50
55
  fi
51
- exit 0`),needs:["openclaw-onboard"]},{name:"openclaw-agentbox-env",command:["set -u",...[["/usr/local/share/agentbox/setup-guide.md","agentbox-setup"],[t,"agentbox-identity"]].flatMap(([a,b])=>[`if [ -f ${a} ]; then`,` D=${s}/${b}`,' (sudo -n mkdir -p "$D" 2>/dev/null || mkdir -p "$D") || true',` (sudo -n install -m 0644 ${a} "$D/SKILL.md" 2>/dev/null ||`,` install -m 0644 ${a} "$D/SKILL.md") || true`,"fi"]),`IDENTITY_NUDGE=${y("\n## Your identity is not portable yet\n\nThis workspace declares no `identity` replacement rules, so a bot spawned\nfrom it with `agentbox clone` would introduce itself with YOUR name and\nanswer to YOUR handle. On your first turn, follow the `agentbox-identity`\nskill once to write them, then carry on with whatever you were asked.\n")}`,`if [ -f ${v} ]; then`,` mkdir -p ${w} || true`,` TMP=${w}/AGENTS.md.agentbox.tmp`," {"," printf '%s\\n\\n' '<!-- agentbox:box-facts (generated every boot; edit AGENTS.md instead) -->'",` cat ${v}`,` if [ -f ${t} ] && ! grep -qs '${u}' /workspace/agentbox.yaml 2>/dev/null; then`," printf '%s' \"$IDENTITY_NUDGE\""," fi",` } > "$TMP" && mv "$TMP" ${w}/AGENTS.md || true`,"fi","if openclaw config validate >/dev/null 2>&1; then"," DIRS=$(openclaw config get 'skills.load.extraDirs' 2>/dev/null || true)"," ENTRIES=$(openclaw config get 'hooks.internal.entries' 2>/dev/null || true)"," HOOKS=$(openclaw config get 'hooks.internal.enabled' 2>/dev/null || true)"," PROG=/tmp/agentbox-openclaw-config-merge.cjs"," cat > \"$PROG\" <<'AGENTBOX_MERGE_EOF'",x.trim(),"AGENTBOX_MERGE_EOF",` node "$PROG" ${s} .agentbox/AGENTS.md "$DIRS" "$ENTRIES" "$HOOKS" |`," openclaw config patch --stdin >/dev/null || true",' rm -f "$PROG" || true',"fi","exit 0"].join("\n"),needs:["openclaw-model-auth"]},{name:"openclaw-render",command:"agentbox-ctl agent render openclaw",needs:["openclaw-agentbox-env"]}],urlFields:[{label:"token",command:["openclaw","dashboard","--json","--no-open"],jsonPath:"url",fromUrlFragment:"token",fragmentKey:"token"}]},configRender:{file:`${p}/openclaw.json`,overlayKey:"openclaw",applyCmd:"openclaw config patch --stdin",dryRunFlag:"--dry-run",validate:"openclaw config validate"},caps:{surface:"service",resume:!1,teleport:"stub",teleportStubReason:"OpenClaw is a gateway the box hosts, not a conversation you attach to. Open its Control UI with `agentbox openclaw url`.",activitySource:[]},clone:{drop:["AGENTS.md","USER.md"],render:["SOUL.md","IDENTITY.md"],perBoxCarry:[{src:"~/.agentbox/openclaw/{{AGENTBOX_BOX_NAME}}.env",dest:"~/.openclaw/.env",mode:384,optional:!0}]},pull:{categories:["agents"]},stateBackup:{exclude:["tmp"]}};function C(a){return`'${a.replace(/'/g,"'\\''")}'`}var D=`
56
+ if ! codex_trusted; then
57
+ echo "openclaw-model-auth: the @openclaw/codex plugin lost its install record; reinstalling"
58
+ openclaw plugins install clawhub:@openclaw/codex --force || true
59
+ fi
60
+ exit 0`),needs:["openclaw-onboard"]},{name:"openclaw-agentbox-env",command:["set -u",...[["/usr/local/share/agentbox/setup-guide.md","agentbox-setup"],[t,"agentbox-identity"]].flatMap(([a,b])=>[`if [ -f ${a} ]; then`,` D=${s}/${b}`,' (sudo -n mkdir -p "$D" 2>/dev/null || mkdir -p "$D") || true',` (sudo -n install -m 0644 ${a} "$D/SKILL.md" 2>/dev/null ||`,` install -m 0644 ${a} "$D/SKILL.md") || true`,"fi"]),`IDENTITY_NUDGE=${y("\n## Your identity is not portable yet\n\nThis workspace declares no `identity` replacement rules, so a bot spawned\nfrom it with `agentbox clone` would introduce itself with YOUR name and\nanswer to YOUR handle. On your first turn, follow the `agentbox-identity`\nskill once to write them, then carry on with whatever you were asked.\n")}`,`if [ -f ${v} ]; then`,` mkdir -p ${w} || true`,` TMP=${w}/AGENTS.md.agentbox.tmp`," {"," printf '%s\\n\\n' '<!-- agentbox:box-facts (generated every boot; edit AGENTS.md instead) -->'",` cat ${v}`,` if [ -f ${t} ] && ! grep -qs '${u}' /workspace/agentbox.yaml 2>/dev/null; then`," printf '%s' \"$IDENTITY_NUDGE\""," fi",` } > "$TMP" && mv "$TMP" ${w}/AGENTS.md || true`,"fi","if openclaw config validate >/dev/null 2>&1; then"," DIRS=$(openclaw config get 'skills.load.extraDirs' 2>/dev/null || true)"," ENTRIES=$(openclaw config get 'hooks.internal.entries' 2>/dev/null || true)"," HOOKS=$(openclaw config get 'hooks.internal.enabled' 2>/dev/null || true)"," PROG=/tmp/agentbox-openclaw-config-merge.cjs"," cat > \"$PROG\" <<'AGENTBOX_MERGE_EOF'",x.trim(),"AGENTBOX_MERGE_EOF",` node "$PROG" ${s} .agentbox/AGENTS.md "$DIRS" "$ENTRIES" "$HOOKS" |`," openclaw config patch --stdin >/dev/null || true",' rm -f "$PROG" || true',"fi","exit 0"].join("\n"),needs:["openclaw-model-auth"]},{name:"openclaw-render",command:"agentbox-ctl agent render openclaw",needs:["openclaw-agentbox-env"]}],urlFields:[{label:"token",command:["openclaw","dashboard","--json","--no-open"],jsonPath:"url",fromUrlFragment:"token",fragmentKey:"token"}]},configRender:{file:`${p}/openclaw.json`,overlayKey:"openclaw",applyCmd:"openclaw config patch --stdin",dryRunFlag:"--dry-run",validate:"openclaw config validate"},caps:{surface:"service",resume:!1,teleport:"stub",teleportStubReason:"OpenClaw is a gateway the box hosts, not a conversation you attach to. Open its Control UI with `agentbox openclaw url`.",activitySource:[]},clone:{drop:["AGENTS.md","USER.md"],render:["SOUL.md","IDENTITY.md"],perBoxCarry:[{src:"~/.agentbox/openclaw/{{AGENTBOX_BOX_NAME}}.env",dest:"~/.openclaw/.env",mode:384,optional:!0}]},pull:{categories:["agents"]},stateBackup:{exclude:["tmp"]}};function D(a){return`'${a.replace(/'/g,"'\\''")}'`}var E=`
52
61
  const fs = require('fs');
53
62
  const path = require('path');
54
63
  const [seedPath, storePath, key] = process.argv.slice(1);
@@ -85,23 +94,23 @@ store[key] = {
85
94
  };
86
95
  fs.mkdirSync(path.dirname(storePath), { recursive: true });
87
96
  fs.writeFileSync(storePath, JSON.stringify(store, null, 2), { mode: 0o600 });
88
- `;function E(a){let b=a.seedPath??m.credential.boxAbsPath,c=`${a.agentId}-model-auth`;return`set -u
89
- seed=${C(b)}
90
- store=${C(a.storePath)}
91
- marker=${C(a.marker)}
92
- if [ ! -s "$seed" ]; then echo ${C(`${c}: no borrowed Codex login at ${b}`)}; exit 0; fi
97
+ `;function F(a){let b=a.seedPath??m.credential.boxAbsPath,c=`${a.agentId}-model-auth`;return`set -u
98
+ seed=${D(b)}
99
+ store=${D(a.storePath)}
100
+ marker=${D(a.marker)}
101
+ if [ ! -s "$seed" ]; then echo ${D(`${c}: no borrowed Codex login at ${b}`)}; exit 0; fi
93
102
  seen=$(sha256sum "$seed" | cut -d" " -f1)
94
103
  if [ -f "$marker" ] && [ "$(cat "$marker")" = "$seen" ]; then
95
- echo ${C(`${c}: this Codex login is already imported`)}
104
+ echo ${D(`${c}: this Codex login is already imported`)}
96
105
  exit 0
97
106
  fi
98
- if node -e ${C(D)} "$seed" "$store" ${C(a.providerKey)}; then
99
- echo ${C(`${c}: imported the Codex login as ${a.providerKey}`)}
107
+ if node -e ${D(E)} "$seed" "$store" ${D(a.providerKey)}; then
108
+ echo ${D(`${c}: imported the Codex login as ${a.providerKey}`)}
100
109
  printf %s "$seen" > "$marker" && chmod 600 "$marker"
101
110
  else
102
111
  echo "${c}: $seed is not a usable Codex ChatGPT login"
103
112
  fi
104
- exit 0`}function F(a){return`/run/agentbox/model-auth-${a}.sha256`}var G=`${f.BOX_HOME}/.local/share/opencode`,H={id:"opencode",aliases:[],sessionName:"opencode",binary:"opencode",install:{recipe:{kind:"npm",package:"opencode-ai"},runAs:"root",postInstall:[...(0,f.agentDirPrelude)([G],"opencode"),`ln -sfn ${f.BOX_CREDS_DIR}/opencode/auth.json ${G}/auth.json`,`chown -R ${f.BOX_USER}:${f.BOX_USER} ${f.BOX_HOME}/.local`,`chown -h ${f.BOX_USER}:${f.BOX_USER} ${G}/auth.json`].join(" && ")},dockerVolume:"agentbox-opencode-config",staticPaths:[{hostHomeRel:[".local","share","opencode"],boxDir:G,exclude:["storage","log","project","cache","bin","repos","snapshot","config"]},{hostHomeRel:[".config","opencode"],boxDir:G,relocToSubpath:"config"},{hostHomeRel:[".local","state","opencode"],boxDir:G,relocToSubpath:".state/opencode",update:!0,exclude:["locks"],stagedAs:"state"}],credential:{boxRelPath:"auth.json",boxAbsPath:`${G}/auth.json`,hostBackup:(0,d.join)(e.STATE_DIR,"opencode-credentials.json"),cloudMountPath:"/home/vscode/.agentbox-creds/opencode",cloudSubpath:"opencode/",realShape:"nonempty-json"},forwardedEnvKeys:["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENROUTER_API_KEY","GEMINI_API_KEY","GOOGLE_GENERATIVE_AI_API_KEY","GOOGLE_API_KEY","GROQ_API_KEY"],boxRunEnv:{OPENCODE_CONFIG_DIR:`${G}/config`,XDG_STATE_HOME:`${G}/.state`},seeds:[{bakedPath:"/usr/local/share/agentbox/opencode-agentbox-plugin.js",destRel:"config/plugins/agentbox-state.js",sharedAsset:"opencode-agentbox-plugin.js",label:"the agentbox-state plugin"}],caps:{resume:!1,teleport:"stub",teleportStubReason:"OpenCode session teleport is not yet supported in agentbox (sessions live in a multi-tenant SQLite DB at ~/.local/share/opencode/opencode.db; per-project extraction is tracked for a follow-up). Run `agentbox opencode` without -c / --resume to start a fresh session, or open an issue if you need this feature.",activitySource:["plugin"]},pull:{items:[{group:"data",names:["auth.json"]},{group:"config",names:["opencode.json","opencode.jsonc","agents","commands","modes","plugins","skills","tools","themes"]}]},modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"command",name:"opencode-model-auth",command:E({agentId:"opencode",storePath:`${G}/auth.json`,providerKey:"openai",marker:F("opencode")})}},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new opencode box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create."}]},I=`${f.BOX_HOME}/.pi/agent`,J={id:"pi",aliases:[],sessionName:"pi",binary:"pi",install:{recipe:{kind:"npm",package:"@earendil-works/pi-coding-agent"},runAs:"root",postInstall:['if [ "$(node -p \'process.versions.node.split(".")[0]\' 2>/dev/null || echo 0)" -lt 22 ]; then echo "agentbox: pi needs Node >= 22.19, but this box has $(node --version 2>/dev/null || echo none). Re-bake this provider\'s base (agentbox prepare --provider <name>) to get a newer Node." >&2; exit 65; fi',...(0,f.agentDirPrelude)([`${f.BOX_HOME}/.pi`,I],"pi"),`ln -sfn ${f.BOX_CREDS_DIR}/pi/auth.json ${I}/auth.json`,`chown -h ${f.BOX_USER}:${f.BOX_USER} ${I}/auth.json`].join(" && ")},dockerVolume:"agentbox-pi-config",staticPaths:[{hostHomeRel:[".pi","agent"],boxDir:I,exclude:["sessions","bin","models-store.json","trust.json"]}],credential:{boxRelPath:"auth.json",boxAbsPath:`${I}/auth.json`,hostBackup:(0,d.join)(e.STATE_DIR,"pi-credentials.json"),cloudMountPath:`${f.BOX_CREDS_DIR}/pi`,cloudSubpath:"pi/",realShape:"nonempty-json"},forwardedEnvKeys:["ANTHROPIC_API_KEY","OPENAI_API_KEY","GEMINI_API_KEY","OPENROUTER_API_KEY","XAI_API_KEY","GROQ_API_KEY","AI_GATEWAY_API_KEY","HF_TOKEN","AWS_BEARER_TOKEN_BEDROCK"],boxRunEnv:{PI_SKIP_VERSION_CHECK:"1"},seeds:[{bakedPath:"/usr/local/share/agentbox/pi-agentbox-extension.js",destRel:"extensions/agentbox-state.js",sharedAsset:"pi-agentbox-extension.js",label:"the agentbox-state extension"}],launchFlags:["-a"],caps:{resume:!0,teleport:"full",activitySource:["plugin"]},pull:{items:[{group:"data",names:["auth.json","settings.json","AGENTS.md","SYSTEM.md","APPEND_SYSTEM.md"]}],categories:["extensions","skills","prompts","themes"]},modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"command",name:"pi-model-auth",command:E({agentId:"pi",storePath:`${I}/auth.json`,providerKey:"openai-codex",marker:F("pi")})}},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new pi box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai-codex`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create."}]},K=[1];function L(a){return K.includes(a)}var M={version:1,agents:[]},N=["id","aliases","sessionName","binary","install","dockerVolume","staticPaths","forwardedEnvKeys","boxRunEnv","caps"],O=["npm","script","exec"],P=["root","box-user"];function Q(a){if(null===a||"object"!=typeof a)return"not an object";let b=N.filter(b=>void 0===a[b]);if(b.length>0)return`missing required field(s): ${b.join(", ")}`;if("string"!=typeof a.id||0===a.id.length)return"`id` must be a non-empty string";if(!Array.isArray(a.aliases))return"`aliases` must be an array";let c=function(a){if(null===a||"object"!=typeof a)return"`install` must be an object";let b=a.recipe;if(void 0===b||"object"!=typeof b||null===b)return'`install.recipe` is required (`{ kind: "npm" | "script" | "exec", … }`)';let c=b.kind;return"string"==typeof c&&O.includes(c)?"npm"===c&&"string"!=typeof b.package?"`install.recipe.package` is required for the npm recipe":"script"===c&&"string"!=typeof b.url?"`install.recipe.url` is required for the script recipe":"exec"===c&&"string"!=typeof b.script?"`install.recipe.script` is required for the exec recipe":"string"==typeof a.runAs&&P.includes(a.runAs)?null:`\`install.runAs\` must be one of ${P.join(", ")}`:`\`install.recipe.kind\` must be one of ${O.join(", ")}`}(a.install)??(void 0===a.credential?null:function(a){if(null===a||"object"!=typeof a)return"`credential` must be an object";if("string"!=typeof a.boxAbsPath||!a.boxAbsPath.startsWith("/"))return"`credential.boxAbsPath` must be an absolute in-box path";if("string"!=typeof a.hostBackup||!a.hostBackup.startsWith("/"))return"`credential.hostBackup` must be an absolute host path (the fan-out writes to it)";if("string"!=typeof a.cloudSubpath||!a.cloudSubpath.endsWith("/"))return"`credential.cloudSubpath` must be a sub-directory, ending in `/` (e.g. `myagent/`)";if("claude-oauth"!==a.realShape&&"nonempty-json"!==a.realShape)return"`credential.realShape` must be 'claude-oauth' or 'nonempty-json'";let b=a.freshness;if(void 0!==b){let a=b.jsonPath;if(!Array.isArray(a)||0===a.length||a.some(a=>"string"!=typeof a||0===a.length))return"`credential.freshness.jsonPath` must be a non-empty array of property names"}return null}(a.credential))??(void 0===a.clone?null:function(a){if(null===a||"object"!=typeof a)return"`clone` must be an object";for(let b of["drop","render"]){let c=a[b];if(void 0!==c){if(!Array.isArray(c)||c.some(a=>"string"!=typeof a||0===a.length))return`\`clone.${b}\` must be an array of non-empty workspace-relative paths`;for(let a of c)if(a.startsWith("/")||a.split("/").includes(".."))return`\`clone.${b}\` entries must be workspace-relative, without '..' (got "${a}")`}}let b=a.perBoxCarry;if(void 0!==b){if(!Array.isArray(b))return"`clone.perBoxCarry` must be an array";for(let[a,c]of b.entries()){if(null===c||"object"!=typeof c)return`\`clone.perBoxCarry[${a}]\` must be an object`;if("string"!=typeof c.src||!(c.src.startsWith("/")||c.src.startsWith("~/")))return`\`clone.perBoxCarry[${a}].src\` must be an absolute host path or start with '~/'`;if("string"!=typeof c.dest||!(c.dest.startsWith("/")||c.dest.startsWith("~/")))return`\`clone.perBoxCarry[${a}].dest\` must be an absolute in-box path or start with '~/'`;if(void 0!==c.mode&&"number"!=typeof c.mode)return`\`clone.perBoxCarry[${a}].mode\` must be a number (e.g. 0o600)`}}return null}(a.clone))??function(a){if(!Array.isArray(a))return"`staticPaths` must be an array";for(let[b,c]of a.entries()){if(null===c||"object"!=typeof c)return`\`staticPaths[${b}]\` must be an object`;if(!Array.isArray(c.hostHomeRel)||0===c.hostHomeRel.length||c.hostHomeRel.some(a=>"string"!=typeof a||0===a.length))return`\`staticPaths[${b}].hostHomeRel\` must be a non-empty array of non-empty path segments`;if("string"!=typeof c.boxDir||!c.boxDir.startsWith("/"))return`\`staticPaths[${b}].boxDir\` must be an absolute in-box path`}return null}(a.staticPaths);if(null!==c)return c;try{JSON.parse(JSON.stringify(a))}catch{return"not JSON-serializable"}return null}function R(a=e.AGENTS_FILE){try{var b;if(!(0,g.existsSync)(a))return{...M};return(b=JSON.parse((0,g.readFileSync)(a,"utf8")))&&1===b.version&&Array.isArray(b.agents)?b:{...M}}catch{return{...M}}}function S(a=e.AGENTS_FILE){let b=[];for(let c of R(a).agents)if(L(c.apiVersion))for(let a of Object.values(c.specs??{}))null===Q(a)&&b.push(a);return b}async function T(a){let b,c;try{b=await (0,h.readFile)(a,"utf8")}catch(a){if("ENOENT"===a.code)return{...M};throw a}try{c=JSON.parse(b)}catch{throw Error(`${a} is not valid JSON \u2014 fix or remove it before adding an agent`)}let d=c;if(!d||1!==d.version||!Array.isArray(d.agents))throw Error(`${a} is not a recognized agent registry \u2014 fix or remove it`);return d}async function U(a,b){await (0,h.mkdir)((0,d.dirname)(a),{recursive:!0}),await (0,h.writeFile)(a,`${JSON.stringify(b,null,2)}
105
- `,"utf8")}async function V(a,b=e.AGENTS_FILE){let c=await T(b);c.agents=[...c.agents.filter(b=>b.packageName!==a.packageName),a],await U(b,c)}async function W(a,b=e.AGENTS_FILE){let c=await T(b),d=c.agents.length;return c.agents=c.agents.filter(b=>b.packageName!==a),c.agents.length!==d&&(await U(b,c),!0)}var X=[k,m,H,J,B,o],Y=Z(X,S());function Z(a,b){let c=new Set(a.flatMap(a=>[a.id,...a.aliases]));return[...a,...b.filter(a=>![a.id,...a.aliases].some(a=>c.has(a)))]}function $(){return Y.filter(a=>!a.hidden)}a.s(["AGENTS_FILE_VERSION",0,1,"AGENT_SPECS",0,Y,"BUILTIN_AGENT_SPECS",0,X,"SUPPORTED_AGENT_API_VERSIONS",0,K,"addAgentPluginRecord",0,V,"agentSpecProblem",0,Q,"allAgentSpecs",0,function(){return Z(X,S())},"builtinAgentIds",0,function(){return X.map(a=>a.id)},"findAgentSpec",0,function(a){return Y.find(b=>b.id===a||b.aliases.includes(a))},"isSupportedAgentApiVersion",0,L,"pluginAgentSpecs",0,S,"pluginForAgent",0,function(a,b=e.AGENTS_FILE){return R(b).agents.find(b=>a in(b.specs??{}))},"readAgentRegistrySync",0,R,"removeAgentPluginRecord",0,W,"visibleAgentIds",0,function(){return $().map(a=>a.id)},"visibleAgentSpecs",0,$])}];
113
+ exit 0`}function G(a){return`/run/agentbox/model-auth-${a}.sha256`}var H=`${f.BOX_HOME}/.local/share/opencode`,I={id:"opencode",aliases:[],sessionName:"opencode",binary:"opencode",install:{recipe:{kind:"npm",package:"opencode-ai"},runAs:"root",postInstall:[...(0,f.agentDirPrelude)([H],"opencode"),`ln -sfn ${f.BOX_CREDS_DIR}/opencode/auth.json ${H}/auth.json`,`chown -R ${f.BOX_USER}:${f.BOX_USER} ${f.BOX_HOME}/.local`,`chown -h ${f.BOX_USER}:${f.BOX_USER} ${H}/auth.json`].join(" && ")},dockerVolume:"agentbox-opencode-config",staticPaths:[{hostHomeRel:[".local","share","opencode"],boxDir:H,exclude:["storage","log","project","cache","bin","repos","snapshot","config"]},{hostHomeRel:[".config","opencode"],boxDir:H,relocToSubpath:"config"},{hostHomeRel:[".local","state","opencode"],boxDir:H,relocToSubpath:".state/opencode",update:!0,exclude:["locks"],stagedAs:"state"}],credential:{boxRelPath:"auth.json",boxAbsPath:`${H}/auth.json`,hostBackup:(0,d.join)(e.STATE_DIR,"opencode-credentials.json"),cloudMountPath:"/home/vscode/.agentbox-creds/opencode",cloudSubpath:"opencode/",realShape:"nonempty-json"},forwardedEnvKeys:["ANTHROPIC_API_KEY","OPENAI_API_KEY","OPENROUTER_API_KEY","GEMINI_API_KEY","GOOGLE_GENERATIVE_AI_API_KEY","GOOGLE_API_KEY","GROQ_API_KEY"],boxRunEnv:{OPENCODE_CONFIG_DIR:`${H}/config`,XDG_STATE_HOME:`${H}/.state`},seeds:[{bakedPath:"/usr/local/share/agentbox/opencode-agentbox-plugin.js",destRel:"config/plugins/agentbox-state.js",sharedAsset:"opencode-agentbox-plugin.js",label:"the agentbox-state plugin"}],caps:{resume:!1,teleport:"stub",teleportStubReason:"OpenCode session teleport is not yet supported in agentbox (sessions live in a multi-tenant SQLite DB at ~/.local/share/opencode/opencode.db; per-project extraction is tracked for a follow-up). Run `agentbox opencode` without -c / --resume to start a fresh session, or open an issue if you need this feature.",activitySource:["plugin"]},pull:{items:[{group:"data",names:["auth.json"]},{group:"config",names:["opencode.json","opencode.jsonc","agents","commands","modes","plugins","skills","tools","themes"]}]},modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"command",name:"opencode-model-auth",command:F({agentId:"opencode",storePath:`${H}/auth.json`,providerKey:"openai",marker:G("opencode")})}},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new opencode box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create."}]},J=`${f.BOX_HOME}/.pi/agent`,K={id:"pi",aliases:[],sessionName:"pi",binary:"pi",install:{recipe:{kind:"npm",package:"@earendil-works/pi-coding-agent"},runAs:"root",postInstall:['if [ "$(node -p \'process.versions.node.split(".")[0]\' 2>/dev/null || echo 0)" -lt 22 ]; then echo "agentbox: pi needs Node >= 22.19, but this box has $(node --version 2>/dev/null || echo none). Re-bake this provider\'s base (agentbox prepare --provider <name>) to get a newer Node." >&2; exit 65; fi',...(0,f.agentDirPrelude)([`${f.BOX_HOME}/.pi`,J],"pi"),`ln -sfn ${f.BOX_CREDS_DIR}/pi/auth.json ${J}/auth.json`,`chown -h ${f.BOX_USER}:${f.BOX_USER} ${J}/auth.json`].join(" && ")},dockerVolume:"agentbox-pi-config",staticPaths:[{hostHomeRel:[".pi","agent"],boxDir:J,exclude:["sessions","bin","models-store.json","trust.json"]}],credential:{boxRelPath:"auth.json",boxAbsPath:`${J}/auth.json`,hostBackup:(0,d.join)(e.STATE_DIR,"pi-credentials.json"),cloudMountPath:`${f.BOX_CREDS_DIR}/pi`,cloudSubpath:"pi/",realShape:"nonempty-json"},forwardedEnvKeys:["ANTHROPIC_API_KEY","OPENAI_API_KEY","GEMINI_API_KEY","OPENROUTER_API_KEY","XAI_API_KEY","GROQ_API_KEY","AI_GATEWAY_API_KEY","HF_TOKEN","AWS_BEARER_TOKEN_BEDROCK"],boxRunEnv:{PI_SKIP_VERSION_CHECK:"1"},seeds:[{bakedPath:"/usr/local/share/agentbox/pi-agentbox-extension.js",destRel:"extensions/agentbox-state.js",sharedAsset:"pi-agentbox-extension.js",label:"the agentbox-state extension"}],launchFlags:["-a"],caps:{resume:!0,teleport:"full",activitySource:["plugin"]},pull:{items:[{group:"data",names:["auth.json","settings.json","AGENTS.md","SYSTEM.md","APPEND_SYSTEM.md"]}],categories:["extensions","skills","prompts","themes"]},modelAuth:{sources:[{kind:"agent",agent:"codex",label:"Your Codex login (ChatGPT subscription OAuth)"}],ingest:{kind:"command",name:"pi-model-auth",command:F({agentId:"pi",storePath:`${J}/auth.json`,providerKey:"openai-codex",marker:G("pi")})}},settings:[{key:"modelAuth",type:"enum-list",enumValues:["none","codex"],default:"none",description:"Which host model-provider logins a new pi box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai-codex`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create."}]},L=[1];function M(a){return L.includes(a)}var N={version:1,agents:[]},O=["id","aliases","sessionName","binary","install","dockerVolume","staticPaths","forwardedEnvKeys","boxRunEnv","caps"],P=["npm","script","exec"],Q=["root","box-user"];function R(a){if(null===a||"object"!=typeof a)return"not an object";let b=O.filter(b=>void 0===a[b]);if(b.length>0)return`missing required field(s): ${b.join(", ")}`;if("string"!=typeof a.id||0===a.id.length)return"`id` must be a non-empty string";if(!Array.isArray(a.aliases))return"`aliases` must be an array";let c=function(a){if(null===a||"object"!=typeof a)return"`install` must be an object";let b=a.recipe;if(void 0===b||"object"!=typeof b||null===b)return'`install.recipe` is required (`{ kind: "npm" | "script" | "exec", … }`)';let c=b.kind;return"string"==typeof c&&P.includes(c)?"npm"===c&&"string"!=typeof b.package?"`install.recipe.package` is required for the npm recipe":"script"===c&&"string"!=typeof b.url?"`install.recipe.url` is required for the script recipe":"exec"===c&&"string"!=typeof b.script?"`install.recipe.script` is required for the exec recipe":"string"==typeof a.runAs&&Q.includes(a.runAs)?null:`\`install.runAs\` must be one of ${Q.join(", ")}`:`\`install.recipe.kind\` must be one of ${P.join(", ")}`}(a.install)??(void 0===a.credential?null:function(a){if(null===a||"object"!=typeof a)return"`credential` must be an object";if("string"!=typeof a.boxAbsPath||!a.boxAbsPath.startsWith("/"))return"`credential.boxAbsPath` must be an absolute in-box path";if("string"!=typeof a.hostBackup||!a.hostBackup.startsWith("/"))return"`credential.hostBackup` must be an absolute host path (the fan-out writes to it)";if("string"!=typeof a.cloudSubpath||!a.cloudSubpath.endsWith("/"))return"`credential.cloudSubpath` must be a sub-directory, ending in `/` (e.g. `myagent/`)";if("claude-oauth"!==a.realShape&&"nonempty-json"!==a.realShape)return"`credential.realShape` must be 'claude-oauth' or 'nonempty-json'";let b=a.freshness;if(void 0!==b){let a=b.jsonPath;if(!Array.isArray(a)||0===a.length||a.some(a=>"string"!=typeof a||0===a.length))return"`credential.freshness.jsonPath` must be a non-empty array of property names"}return null}(a.credential))??(void 0===a.clone?null:function(a){if(null===a||"object"!=typeof a)return"`clone` must be an object";for(let b of["drop","render"]){let c=a[b];if(void 0!==c){if(!Array.isArray(c)||c.some(a=>"string"!=typeof a||0===a.length))return`\`clone.${b}\` must be an array of non-empty workspace-relative paths`;for(let a of c)if(a.startsWith("/")||a.split("/").includes(".."))return`\`clone.${b}\` entries must be workspace-relative, without '..' (got "${a}")`}}let b=a.perBoxCarry;if(void 0!==b){if(!Array.isArray(b))return"`clone.perBoxCarry` must be an array";for(let[a,c]of b.entries()){if(null===c||"object"!=typeof c)return`\`clone.perBoxCarry[${a}]\` must be an object`;if("string"!=typeof c.src||!(c.src.startsWith("/")||c.src.startsWith("~/")))return`\`clone.perBoxCarry[${a}].src\` must be an absolute host path or start with '~/'`;if("string"!=typeof c.dest||!(c.dest.startsWith("/")||c.dest.startsWith("~/")))return`\`clone.perBoxCarry[${a}].dest\` must be an absolute in-box path or start with '~/'`;if(void 0!==c.mode&&"number"!=typeof c.mode)return`\`clone.perBoxCarry[${a}].mode\` must be a number (e.g. 0o600)`}}return null}(a.clone))??function(a){if(!Array.isArray(a))return"`staticPaths` must be an array";for(let[b,c]of a.entries()){if(null===c||"object"!=typeof c)return`\`staticPaths[${b}]\` must be an object`;if(!Array.isArray(c.hostHomeRel)||0===c.hostHomeRel.length||c.hostHomeRel.some(a=>"string"!=typeof a||0===a.length))return`\`staticPaths[${b}].hostHomeRel\` must be a non-empty array of non-empty path segments`;if("string"!=typeof c.boxDir||!c.boxDir.startsWith("/"))return`\`staticPaths[${b}].boxDir\` must be an absolute in-box path`}return null}(a.staticPaths);if(null!==c)return c;try{JSON.parse(JSON.stringify(a))}catch{return"not JSON-serializable"}return null}function S(a=e.AGENTS_FILE){try{var b;if(!(0,g.existsSync)(a))return{...N};return(b=JSON.parse((0,g.readFileSync)(a,"utf8")))&&1===b.version&&Array.isArray(b.agents)?b:{...N}}catch{return{...N}}}function T(a=e.AGENTS_FILE){let b=[];for(let c of S(a).agents)if(M(c.apiVersion))for(let a of Object.values(c.specs??{}))null===R(a)&&b.push(a);return b}async function U(a){let b,c;try{b=await (0,h.readFile)(a,"utf8")}catch(a){if("ENOENT"===a.code)return{...N};throw a}try{c=JSON.parse(b)}catch{throw Error(`${a} is not valid JSON \u2014 fix or remove it before adding an agent`)}let d=c;if(!d||1!==d.version||!Array.isArray(d.agents))throw Error(`${a} is not a recognized agent registry \u2014 fix or remove it`);return d}async function V(a,b){await (0,h.mkdir)((0,d.dirname)(a),{recursive:!0}),await (0,h.writeFile)(a,`${JSON.stringify(b,null,2)}
114
+ `,"utf8")}async function W(a,b=e.AGENTS_FILE){let c=await U(b);c.agents=[...c.agents.filter(b=>b.packageName!==a.packageName),a],await V(b,c)}async function X(a,b=e.AGENTS_FILE){let c=await U(b),d=c.agents.length;return c.agents=c.agents.filter(b=>b.packageName!==a),c.agents.length!==d&&(await V(b,c),!0)}var Y=[k,m,I,K,C,o],Z=$(Y,T());function $(a,b){let c=new Set(a.flatMap(a=>[a.id,...a.aliases]));return[...a,...b.filter(a=>![a.id,...a.aliases].some(a=>c.has(a)))]}function _(){return Z.filter(a=>!a.hidden)}a.s(["AGENTS_FILE_VERSION",0,1,"AGENT_SPECS",0,Z,"BUILTIN_AGENT_SPECS",0,Y,"SUPPORTED_AGENT_API_VERSIONS",0,L,"addAgentPluginRecord",0,W,"agentSpecProblem",0,R,"allAgentSpecs",0,function(){return $(Y,T())},"builtinAgentIds",0,function(){return Y.map(a=>a.id)},"findAgentSpec",0,function(a){return Z.find(b=>b.id===a||b.aliases.includes(a))},"isSupportedAgentApiVersion",0,M,"pluginAgentSpecs",0,T,"pluginForAgent",0,function(a,b=e.AGENTS_FILE){return S(b).agents.find(b=>a in(b.specs??{}))},"readAgentRegistrySync",0,S,"removeAgentPluginRecord",0,X,"visibleAgentIds",0,function(){return _().map(a=>a.id)},"visibleAgentSpecs",0,_])}];
106
115
 
107
116
  //# sourceMappingURL=packages_agent-registry_dist_index_0z476w4.js.map
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/0cz1d0mv5g_q7.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/cXSQmUIAB12u7BgxO4JPy/_buildManifest.js",
11
- "static/cXSQmUIAB12u7BgxO4JPy/_ssgManifest.js",
12
- "static/cXSQmUIAB12u7BgxO4JPy/_clientMiddlewareManifest.js"
10
+ "static/o9_g9S5JH-r8bfNfmPa5H/_buildManifest.js",
11
+ "static/o9_g9S5JH-r8bfNfmPa5H/_ssgManifest.js",
12
+ "static/o9_g9S5JH-r8bfNfmPa5H/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/3o736nio6056k.js",
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3o736nio6056k.js"/><script src="/_next/static/chunks/3oc6y_gbi9g75.js" async=""></script><script src="/_next/static/chunks/0ptag81psa0nj.js" async=""></script><script src="/_next/static/chunks/2vek3z0bw0bke.js" async=""></script><script src="/_next/static/chunks/turbopack-25un8yxrkvr61.js" async=""></script><script src="/_next/static/chunks/2x7nfpuaaba_a.js" async=""></script><script src="/_next/static/chunks/3c49t4evjq8hf.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/3o736nio6056k.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[20699,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\"]\n3:I[92242,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\"]\n4:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"ViewportBoundary\"]\na:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"MetadataBoundary\"]\nc:I[17506,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"cXSQmUIAB12u7BgxO4JPy\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3o736nio6056k.js"/><script src="/_next/static/chunks/3oc6y_gbi9g75.js" async=""></script><script src="/_next/static/chunks/0ptag81psa0nj.js" async=""></script><script src="/_next/static/chunks/2vek3z0bw0bke.js" async=""></script><script src="/_next/static/chunks/turbopack-25un8yxrkvr61.js" async=""></script><script src="/_next/static/chunks/2x7nfpuaaba_a.js" async=""></script><script src="/_next/static/chunks/3c49t4evjq8hf.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/3o736nio6056k.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[20699,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\"]\n3:I[92242,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\"]\n4:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"ViewportBoundary\"]\na:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"MetadataBoundary\"]\nc:I[17506,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"o9_g9S5JH-r8bfNfmPa5H\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>
@@ -908,16 +908,19 @@ function buildModelAuthScript() {
908
908
  // ingest" rather than a failed import.
909
909
  `if ! node -e ${sq(MODEL_AUTH_IS_CODEX_LOGIN)} "$auth"; then echo "openclaw-model-auth: $auth is not a Codex ChatGPT login"; exit 0; fi`,
910
910
  'seen=$(sha256sum "$auth" | cut -d" " -f1)',
911
+ `codex_trusted() { openclaw plugins inspect codex --json 2>/dev/null | node -e ${sq(MODEL_AUTH_PLUGIN_TRUSTED)}; }`,
912
+ // The plugin owns both the import command and the harness the default
913
+ // model runs on. Before the marker gate, so an imported box whose plugin
914
+ // lost its record is repaired rather than skipped. `--force` because the
915
+ // untrusted case leaves the directory behind.
916
+ "if ! codex_trusted; then",
917
+ ' echo "openclaw-model-auth: installing the @openclaw/codex plugin"',
918
+ " openclaw plugins install clawhub:@openclaw/codex --force || exit 0",
919
+ "fi",
911
920
  'if [ -f "$marker" ] && [ "$(cat "$marker")" = "$seen" ]; then',
912
921
  ' echo "openclaw-model-auth: this Codex login is already imported"',
913
922
  " exit 0",
914
923
  "fi",
915
- // The plugin owns both the import command and the harness the default
916
- // model runs on.
917
- `if [ ! -d ${sq(`${OPENCLAW_BOX_DIR}/extensions/codex`)} ]; then`,
918
- ' echo "openclaw-model-auth: installing the @openclaw/codex plugin"',
919
- " openclaw plugins install clawhub:@openclaw/codex || exit 0",
920
- "fi",
921
924
  'echo "openclaw-model-auth: importing the Codex login into the OpenClaw auth store"',
922
925
  // `--no-backup --force`: the pre-migration archive would snapshot a state
923
926
  // dir that is fresh on the boot this runs, and the migration report is
@@ -925,10 +928,20 @@ function buildModelAuthScript() {
925
928
  `if openclaw migrate apply codex --from ${sq(home)} --include-secrets --item auth:openai --yes --no-backup --force; then`,
926
929
  ' printf %s "$seen" > "$marker" && chmod 600 "$marker"',
927
930
  "fi",
931
+ // The one record loss observed happened across the import, not the install.
932
+ "if ! codex_trusted; then",
933
+ ' echo "openclaw-model-auth: the @openclaw/codex plugin lost its install record; reinstalling"',
934
+ " openclaw plugins install clawhub:@openclaw/codex --force || true",
935
+ "fi",
928
936
  "exit 0"
929
937
  ].join("\n");
930
938
  }
931
939
  var MODEL_AUTH_MARKER = `${OPENCLAW_BOX_DIR}/.agentbox-model-auth.sha256`;
940
+ var MODEL_AUTH_PLUGIN_TRUSTED = `
941
+ let j;
942
+ try { const s = require('fs').readFileSync(0, 'utf8'); j = JSON.parse(s.slice(s.indexOf('{'))); } catch { process.exit(1); }
943
+ process.exit(j?.plugin?.trust?.reason === 'trusted-official' ? 0 : 1);
944
+ `;
932
945
  var MODEL_AUTH_IS_CODEX_LOGIN = `
933
946
  const j = JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'));
934
947
  process.exit(typeof j?.tokens?.refresh_token === 'string' && j.tokens.refresh_token.length > 0 ? 0 : 1);
@@ -8,7 +8,7 @@ import {
8
8
  pluginProviderNames,
9
9
  readPreparedStateRaw,
10
10
  writePreparedStateRaw
11
- } from "./chunk-V4YXLMFI.js";
11
+ } from "./chunk-SM2XYDPL.js";
12
12
  import {
13
13
  hashProjectPath,
14
14
  isProviderKind
@@ -42,13 +42,13 @@ async function hydratePreparedFromCustody(custody, providerName, provider, log)
42
42
  // lib/provider-importers.ts
43
43
  import { pathToFileURL } from "node:url";
44
44
  var IMPORTERS = {
45
- docker: () => import("./dist-VLKRF6NH.js"),
46
- daytona: () => import("./dist-SINRABCR.js"),
47
- hetzner: () => import("./dist-VOIDY4IM.js"),
48
- vercel: () => import("./dist-BIXUQKSK.js"),
49
- e2b: () => import("./dist-C2JJTBDD.js"),
50
- digitalocean: () => import("./dist-B5IUHK2B.js"),
51
- "remote-docker": () => import("./dist-RW6RLHQK.js")
45
+ docker: () => import("./dist-YOTRYCRK.js"),
46
+ daytona: () => import("./dist-MQADLEEQ.js"),
47
+ hetzner: () => import("./dist-H7NIUVBD.js"),
48
+ vercel: () => import("./dist-RJBPZWSZ.js"),
49
+ e2b: () => import("./dist-LV6CHJVA.js"),
50
+ digitalocean: () => import("./dist-YG4RVC24.js"),
51
+ "remote-docker": () => import("./dist-BKCL4HAA.js")
52
52
  };
53
53
  var CLOUD_BACKEND_LOADER_ID = "agentbox:hub-builtin-cloud-backends";
54
54
  var cloudBackendLoader = {
@@ -70,7 +70,7 @@ var cloudBackendLoader = {
70
70
  return null;
71
71
  }
72
72
  },
73
- loadCloudCp: async () => import("./dist-K4GLZWXS.js")
73
+ loadCloudCp: async () => import("./dist-VENYRIRW.js")
74
74
  };
75
75
  var runtimeImport = new Function("specifier", "return import(specifier);");
76
76
  async function loadProviderModuleByName(name) {