@madarco/agentbox 0.31.3 → 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.
- package/CHANGELOG.md +8 -0
- package/README.md +2 -0
- package/dist/_cloud-attach-B3BCOZ7U.js +31 -0
- package/dist/{chunk-GZHJVCBG.js → chunk-2MBELUE6.js} +9 -9
- package/dist/{chunk-ZMNLEZJB.js → chunk-4LSLXBFN.js} +7 -7
- package/dist/{chunk-VEO6ZYQY.js → chunk-4NO5MO2P.js} +6 -6
- package/dist/{chunk-DKUSSE5G.js → chunk-4Y365UYP.js} +2 -2
- package/dist/{chunk-VIB2FMJJ.js → chunk-5UX2HAF4.js} +31 -31
- package/dist/{chunk-EHLPIWRR.js → chunk-75JF44DH.js} +2 -2
- package/dist/{chunk-MBFN2XNU.js → chunk-AAMPHDB2.js} +6 -6
- package/dist/{chunk-7N3CJNR5.js → chunk-AWFTAHGF.js} +20 -7
- package/dist/chunk-AWFTAHGF.js.map +1 -0
- package/dist/{chunk-WMILLMJZ.js → chunk-AYREFYEF.js} +5 -5
- package/dist/{chunk-XHCGVCSA.js → chunk-BYZPRB7U.js} +5 -5
- package/dist/{chunk-6RREIUAE.js → chunk-C67DVYWA.js} +3 -3
- package/dist/{chunk-JS5DLUUX.js → chunk-CUIJ2PIN.js} +10 -10
- package/dist/{chunk-744IB5WM.js → chunk-ENFWBFBI.js} +4 -4
- package/dist/{chunk-ZK6KD7ME.js → chunk-EP4IFSV5.js} +5 -5
- package/dist/{chunk-SHFU2KSY.js → chunk-EXF4PLBN.js} +3 -3
- package/dist/{chunk-MKZHCLFJ.js → chunk-GCS5XAPC.js} +4 -4
- package/dist/{chunk-Q3BHXL47.js → chunk-IF4VXKJK.js} +4 -4
- package/dist/{chunk-D67Q5MNA.js → chunk-IFPTD73K.js} +2 -2
- package/dist/{chunk-GYUOXSUX.js → chunk-IQ6BQ2LX.js} +4 -4
- package/dist/{chunk-M42UQWVO.js → chunk-IQMDGAMB.js} +4 -4
- package/dist/{chunk-QWUZJCF5.js → chunk-KCDLAP5Q.js} +4 -4
- package/dist/{chunk-W7P2HHFI.js → chunk-L567TKOK.js} +6 -6
- package/dist/{chunk-E2RPG54S.js → chunk-LR5RNEVO.js} +3 -3
- package/dist/{chunk-RNYH5465.js → chunk-M6VAID7T.js} +3 -3
- package/dist/{chunk-UENVVGWE.js → chunk-MBZ4UOWF.js} +4 -4
- package/dist/{chunk-BMZOMC6X.js → chunk-MJZPECVQ.js} +3 -3
- package/dist/{chunk-PYPIECDD.js → chunk-NKHRFR5G.js} +17 -17
- package/dist/{chunk-VNXWOWQ7.js → chunk-OXBWZG2N.js} +4 -4
- package/dist/{chunk-XLFQXROC.js → chunk-PXH3DERD.js} +3 -3
- package/dist/{chunk-QTMUJETE.js → chunk-QDVIMN57.js} +4 -4
- package/dist/{chunk-EZPCCJPE.js → chunk-QT4MOS6R.js} +22 -22
- package/dist/{chunk-SZTHLJ5J.js → chunk-QWWDG5B7.js} +6 -6
- package/dist/{chunk-7PDYVJ2Q.js → chunk-RUKTOHK7.js} +3 -3
- package/dist/{chunk-6GJDU3FN.js → chunk-VOVRWIBC.js} +11 -11
- package/dist/{chunk-QB7XVOYW.js → chunk-VQONUZE4.js} +4 -4
- package/dist/{chunk-V5IMDVV5.js → chunk-VWJBQGXD.js} +6 -6
- package/dist/{chunk-S3SJIWSU.js → chunk-X6SZPGL5.js} +7 -7
- package/dist/{chunk-QER5WHBC.js → chunk-YL3VEQTS.js} +6 -6
- package/dist/{chunk-UWKJ3HIA.js → chunk-YSC4VY43.js} +4 -4
- package/dist/{chunk-FVBEUPVM.js → chunk-ZUTC2JZM.js} +5 -5
- package/dist/{cli-I6TXLNRQ.js → cli-7JW54ZTA.js} +9 -9
- package/dist/{cli-VU2ALT6L.js → cli-7Z7BD23R.js} +8 -8
- package/dist/{cli-YYXO4WX5.js → cli-HFLU5QTD.js} +8 -8
- package/dist/{cli-JNOPYAUM.js → cli-KT5X4J74.js} +9 -9
- package/dist/{cli-W2WNV64V.js → cli-XRF7WFE5.js} +9 -9
- package/dist/cloud-backends.js +5 -5
- package/dist/{control-plane-JUAINN2X.js → control-plane-DGLF4MBB.js} +20 -20
- package/dist/{cp-hub-upload-VHU5TBHQ.js → cp-hub-upload-7YESYCVS.js} +7 -7
- package/dist/{custody-client-5OHF3SEX.js → custody-client-P7SCEDU2.js} +5 -5
- package/dist/{deploy-hetzner-RTQW3B7P.js → deploy-hetzner-FOCNRRB2.js} +9 -9
- package/dist/{dist-EDCGUXVI.js → dist-2CAWJQT5.js} +6 -6
- package/dist/{dist-XWDFVTFR.js → dist-36WLI6E2.js} +7 -7
- package/dist/{dist-5HJBDLJP.js → dist-54VRDCUU.js} +8 -8
- package/dist/{dist-H72NQCKO.js → dist-63YBVZW4.js} +9 -9
- package/dist/{dist-MBPDLQUR.js → dist-BUCKUE4V.js} +2 -2
- package/dist/{dist-7IANPBF4.js → dist-CBPQZPQN.js} +8 -8
- package/dist/{dist-7RMVQOWJ.js → dist-E4VLIH3H.js} +8 -8
- package/dist/{dist-NJOKYHDI.js → dist-FHPNYDCF.js} +3 -3
- package/dist/{dist-H4FFY5TX.js → dist-MITAKWKQ.js} +8 -8
- package/dist/{dist-64YIP2AZ.js → dist-TJJ6KBNZ.js} +4 -4
- package/dist/{dist-UGI5L7BN.js → dist-XSAPZOEG.js} +8 -8
- package/dist/{host-reach-drainer-GTNLQWWM.js → host-reach-drainer-XFLSMTSX.js} +2 -2
- package/dist/hub-OMGLWQEV.js +39 -0
- package/dist/{hub-adopt-TVDMOZSP.js → hub-adopt-IYZ3WXYN.js} +7 -7
- package/dist/{hub-api-client-RISAC6GB.js → hub-api-client-WOZ2BQ6H.js} +4 -4
- package/dist/{hub-docker-target-QEALUMIZ.js → hub-docker-target-IQHX6OYX.js} +14 -14
- package/dist/index.js +61 -61
- package/dist/{plugin-update-LG45ZFCU.js → plugin-update-2ACFHFUI.js} +5 -5
- package/dist/prepare-OOZF37J6.js +45 -0
- package/dist/prepared-custody-E7CSZJ6V.js +39 -0
- package/dist/{prepared-state-FO74QUCP-SW3QMBW5.js → prepared-state-FO74QUCP-PZLOM6HD.js} +4 -4
- package/dist/{publish-credentials-T7DDJVC4.js → publish-credentials-TO5IIW2T.js} +9 -9
- package/dist/{registry-UCFNYOAU.js → registry-X33JZU6B.js} +5 -5
- package/dist/relay-7D5NOFKS.js +22 -0
- package/dist/{remote-docker-share-SY7CWW5R.js → remote-docker-share-YADHIHXV.js} +11 -11
- package/dist/{tool-grant-push-OJHLVAPZ.js → tool-grant-push-7G2QAN3J.js} +3 -3
- package/package.json +1 -1
- package/runtime/_shared/ctl.cjs +20 -7
- package/runtime/digitalocean/ctl.cjs +20 -7
- package/runtime/docker/packages/ctl/dist/bin.cjs +20 -7
- package/runtime/e2b/ctl.cjs +20 -7
- package/runtime/hetzner/ctl.cjs +20 -7
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
- package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js +28 -19
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js +26 -17
- package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
- package/runtime/hub/apps/hub/{chunk-FQY5OEWX.js → chunk-2LE76CT3.js} +19 -6
- package/runtime/hub/apps/hub/{chunk-VNLPJ45F.js → chunk-7IIG6MIB.js} +9 -9
- package/runtime/hub/apps/hub/{chunk-MIETKCV4.js → chunk-7JBH42LK.js} +3 -3
- package/runtime/hub/apps/hub/{chunk-PM2365RW.js → chunk-AAF4CYVH.js} +6 -6
- package/runtime/hub/apps/hub/{chunk-KTWFE5BB.js → chunk-AIFVVQPX.js} +4 -4
- package/runtime/hub/apps/hub/{chunk-ORTYCJ2U.js → chunk-F6GOERHP.js} +4 -4
- package/runtime/hub/apps/hub/{chunk-IDL7RJBP.js → chunk-SM2XYDPL.js} +2 -2
- package/runtime/hub/apps/hub/{dist-LMXU56B2.js → dist-BKCL4HAA.js} +5 -5
- package/runtime/hub/apps/hub/{dist-FM26NQ4V.js → dist-D36FTGG6.js} +1 -1
- package/runtime/hub/apps/hub/{dist-4DVVLHK2.js → dist-DS5LGBGK.js} +2 -2
- package/runtime/hub/apps/hub/{dist-VF56FSKH.js → dist-H7NIUVBD.js} +6 -6
- package/runtime/hub/apps/hub/{dist-3IYYT3II.js → dist-LV6CHJVA.js} +5 -5
- package/runtime/hub/apps/hub/{dist-RWN4Z57N.js → dist-MQADLEEQ.js} +5 -5
- package/runtime/hub/apps/hub/{dist-UPKSCLZ2.js → dist-RJBPZWSZ.js} +5 -5
- package/runtime/hub/apps/hub/{dist-OAS6A7E4.js → dist-VENYRIRW.js} +5 -5
- package/runtime/hub/apps/hub/{dist-WA2LO2DU.js → dist-YG4RVC24.js} +6 -6
- package/runtime/hub/apps/hub/{dist-LOZYEDXA.js → dist-YOTRYCRK.js} +4 -4
- package/runtime/hub/apps/hub/{hub-worker-6JAWRLP2.js → hub-worker-DLFLGKCV.js} +7 -7
- package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-QR6ZNI3Q.js → prepared-state-FO74QUCP-FZ6PT4LA.js} +3 -3
- package/runtime/hub/apps/hub/server.js +13 -13
- package/runtime/relay/bin.cjs +20 -7
- package/runtime/vercel/ctl.cjs +20 -7
- package/dist/_cloud-attach-QB72ZV7T.js +0 -31
- package/dist/chunk-7N3CJNR5.js.map +0 -1
- package/dist/hub-C5B3CRP6.js +0 -39
- package/dist/prepare-6JLTXX65.js +0 -45
- package/dist/prepared-custody-YVVTL2ZM.js +0 -39
- package/dist/relay-W73AIA35.js +0 -22
- /package/dist/{_cloud-attach-QB72ZV7T.js.map → _cloud-attach-B3BCOZ7U.js.map} +0 -0
- /package/dist/{chunk-GZHJVCBG.js.map → chunk-2MBELUE6.js.map} +0 -0
- /package/dist/{chunk-ZMNLEZJB.js.map → chunk-4LSLXBFN.js.map} +0 -0
- /package/dist/{chunk-VEO6ZYQY.js.map → chunk-4NO5MO2P.js.map} +0 -0
- /package/dist/{chunk-DKUSSE5G.js.map → chunk-4Y365UYP.js.map} +0 -0
- /package/dist/{chunk-VIB2FMJJ.js.map → chunk-5UX2HAF4.js.map} +0 -0
- /package/dist/{chunk-EHLPIWRR.js.map → chunk-75JF44DH.js.map} +0 -0
- /package/dist/{chunk-MBFN2XNU.js.map → chunk-AAMPHDB2.js.map} +0 -0
- /package/dist/{chunk-WMILLMJZ.js.map → chunk-AYREFYEF.js.map} +0 -0
- /package/dist/{chunk-XHCGVCSA.js.map → chunk-BYZPRB7U.js.map} +0 -0
- /package/dist/{chunk-6RREIUAE.js.map → chunk-C67DVYWA.js.map} +0 -0
- /package/dist/{chunk-JS5DLUUX.js.map → chunk-CUIJ2PIN.js.map} +0 -0
- /package/dist/{chunk-744IB5WM.js.map → chunk-ENFWBFBI.js.map} +0 -0
- /package/dist/{chunk-ZK6KD7ME.js.map → chunk-EP4IFSV5.js.map} +0 -0
- /package/dist/{chunk-SHFU2KSY.js.map → chunk-EXF4PLBN.js.map} +0 -0
- /package/dist/{chunk-MKZHCLFJ.js.map → chunk-GCS5XAPC.js.map} +0 -0
- /package/dist/{chunk-Q3BHXL47.js.map → chunk-IF4VXKJK.js.map} +0 -0
- /package/dist/{chunk-D67Q5MNA.js.map → chunk-IFPTD73K.js.map} +0 -0
- /package/dist/{chunk-GYUOXSUX.js.map → chunk-IQ6BQ2LX.js.map} +0 -0
- /package/dist/{chunk-M42UQWVO.js.map → chunk-IQMDGAMB.js.map} +0 -0
- /package/dist/{chunk-QWUZJCF5.js.map → chunk-KCDLAP5Q.js.map} +0 -0
- /package/dist/{chunk-W7P2HHFI.js.map → chunk-L567TKOK.js.map} +0 -0
- /package/dist/{chunk-E2RPG54S.js.map → chunk-LR5RNEVO.js.map} +0 -0
- /package/dist/{chunk-RNYH5465.js.map → chunk-M6VAID7T.js.map} +0 -0
- /package/dist/{chunk-UENVVGWE.js.map → chunk-MBZ4UOWF.js.map} +0 -0
- /package/dist/{chunk-BMZOMC6X.js.map → chunk-MJZPECVQ.js.map} +0 -0
- /package/dist/{chunk-PYPIECDD.js.map → chunk-NKHRFR5G.js.map} +0 -0
- /package/dist/{chunk-VNXWOWQ7.js.map → chunk-OXBWZG2N.js.map} +0 -0
- /package/dist/{chunk-XLFQXROC.js.map → chunk-PXH3DERD.js.map} +0 -0
- /package/dist/{chunk-QTMUJETE.js.map → chunk-QDVIMN57.js.map} +0 -0
- /package/dist/{chunk-EZPCCJPE.js.map → chunk-QT4MOS6R.js.map} +0 -0
- /package/dist/{chunk-SZTHLJ5J.js.map → chunk-QWWDG5B7.js.map} +0 -0
- /package/dist/{chunk-7PDYVJ2Q.js.map → chunk-RUKTOHK7.js.map} +0 -0
- /package/dist/{chunk-6GJDU3FN.js.map → chunk-VOVRWIBC.js.map} +0 -0
- /package/dist/{chunk-QB7XVOYW.js.map → chunk-VQONUZE4.js.map} +0 -0
- /package/dist/{chunk-V5IMDVV5.js.map → chunk-VWJBQGXD.js.map} +0 -0
- /package/dist/{chunk-S3SJIWSU.js.map → chunk-X6SZPGL5.js.map} +0 -0
- /package/dist/{chunk-QER5WHBC.js.map → chunk-YL3VEQTS.js.map} +0 -0
- /package/dist/{chunk-UWKJ3HIA.js.map → chunk-YSC4VY43.js.map} +0 -0
- /package/dist/{chunk-FVBEUPVM.js.map → chunk-ZUTC2JZM.js.map} +0 -0
- /package/dist/{cli-I6TXLNRQ.js.map → cli-7JW54ZTA.js.map} +0 -0
- /package/dist/{cli-JNOPYAUM.js.map → cli-7Z7BD23R.js.map} +0 -0
- /package/dist/{cli-VU2ALT6L.js.map → cli-HFLU5QTD.js.map} +0 -0
- /package/dist/{cli-W2WNV64V.js.map → cli-KT5X4J74.js.map} +0 -0
- /package/dist/{cli-YYXO4WX5.js.map → cli-XRF7WFE5.js.map} +0 -0
- /package/dist/{control-plane-JUAINN2X.js.map → control-plane-DGLF4MBB.js.map} +0 -0
- /package/dist/{cp-hub-upload-VHU5TBHQ.js.map → cp-hub-upload-7YESYCVS.js.map} +0 -0
- /package/dist/{custody-client-5OHF3SEX.js.map → custody-client-P7SCEDU2.js.map} +0 -0
- /package/dist/{deploy-hetzner-RTQW3B7P.js.map → deploy-hetzner-FOCNRRB2.js.map} +0 -0
- /package/dist/{dist-64YIP2AZ.js.map → dist-2CAWJQT5.js.map} +0 -0
- /package/dist/{dist-7IANPBF4.js.map → dist-36WLI6E2.js.map} +0 -0
- /package/dist/{dist-5HJBDLJP.js.map → dist-54VRDCUU.js.map} +0 -0
- /package/dist/{dist-EDCGUXVI.js.map → dist-63YBVZW4.js.map} +0 -0
- /package/dist/{dist-H4FFY5TX.js.map → dist-BUCKUE4V.js.map} +0 -0
- /package/dist/{dist-H72NQCKO.js.map → dist-CBPQZPQN.js.map} +0 -0
- /package/dist/{dist-7RMVQOWJ.js.map → dist-E4VLIH3H.js.map} +0 -0
- /package/dist/{dist-MBPDLQUR.js.map → dist-FHPNYDCF.js.map} +0 -0
- /package/dist/{dist-NJOKYHDI.js.map → dist-MITAKWKQ.js.map} +0 -0
- /package/dist/{dist-UGI5L7BN.js.map → dist-TJJ6KBNZ.js.map} +0 -0
- /package/dist/{dist-XWDFVTFR.js.map → dist-XSAPZOEG.js.map} +0 -0
- /package/dist/{host-reach-drainer-GTNLQWWM.js.map → host-reach-drainer-XFLSMTSX.js.map} +0 -0
- /package/dist/{hub-C5B3CRP6.js.map → hub-OMGLWQEV.js.map} +0 -0
- /package/dist/{hub-adopt-TVDMOZSP.js.map → hub-adopt-IYZ3WXYN.js.map} +0 -0
- /package/dist/{hub-api-client-RISAC6GB.js.map → hub-api-client-WOZ2BQ6H.js.map} +0 -0
- /package/dist/{hub-docker-target-QEALUMIZ.js.map → hub-docker-target-IQHX6OYX.js.map} +0 -0
- /package/dist/{plugin-update-LG45ZFCU.js.map → plugin-update-2ACFHFUI.js.map} +0 -0
- /package/dist/{prepare-6JLTXX65.js.map → prepare-OOZF37J6.js.map} +0 -0
- /package/dist/{prepared-custody-YVVTL2ZM.js.map → prepared-custody-E7CSZJ6V.js.map} +0 -0
- /package/dist/{prepared-state-FO74QUCP-SW3QMBW5.js.map → prepared-state-FO74QUCP-PZLOM6HD.js.map} +0 -0
- /package/dist/{publish-credentials-T7DDJVC4.js.map → publish-credentials-TO5IIW2T.js.map} +0 -0
- /package/dist/{registry-UCFNYOAU.js.map → registry-X33JZU6B.js.map} +0 -0
- /package/dist/{relay-W73AIA35.js.map → relay-7D5NOFKS.js.map} +0 -0
- /package/dist/{remote-docker-share-SY7CWW5R.js.map → remote-docker-share-YADHIHXV.js.map} +0 -0
- /package/dist/{tool-grant-push-OJHLVAPZ.js.map → tool-grant-push-7G2QAN3J.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{kg0mtyaaNMvU3P8p7nLPa → o9_g9S5JH-r8bfNfmPa5H}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{kg0mtyaaNMvU3P8p7nLPa → o9_g9S5JH-r8bfNfmPa5H}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{kg0mtyaaNMvU3P8p7nLPa → o9_g9S5JH-r8bfNfmPa5H}/_ssgManifest.js +0 -0
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[20699,["/_next/static/chunks/2x7nfpuaaba_a.js","/_next/static/chunks/3c49t4evjq8hf.js"],"default"]
|
|
3
3
|
3:I[92242,["/_next/static/chunks/2x7nfpuaaba_a.js","/_next/static/chunks/3c49t4evjq8hf.js"],"default"]
|
|
4
4
|
4:[]
|
|
5
|
-
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"o9_g9S5JH-r8bfNfmPa5H"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"
|
|
1
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"o9_g9S5JH-r8bfNfmPa5H"}
|
package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js
CHANGED
|
@@ -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"]}]}},
|
|
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=`${
|
|
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
|
-
`,
|
|
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(
|
|
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
|
-
|
|
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
|
|
89
|
-
seed=${
|
|
90
|
-
store=${
|
|
91
|
-
marker=${
|
|
92
|
-
if [ ! -s "$seed" ]; then echo ${
|
|
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 ${
|
|
104
|
+
echo ${v(`${n}: this Codex login is already imported`)}
|
|
96
105
|
exit 0
|
|
97
106
|
fi
|
|
98
|
-
if node -e ${
|
|
99
|
-
echo ${
|
|
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
|
|
105
|
-
`,"utf8")}async function
|
|
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
|
package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js
CHANGED
|
@@ -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
|
-
`,
|
|
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(
|
|
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
|
-
|
|
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
|
|
89
|
-
seed=${
|
|
90
|
-
store=${
|
|
91
|
-
marker=${
|
|
92
|
-
if [ ! -s "$seed" ]; then echo ${
|
|
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 ${
|
|
104
|
+
echo ${D(`${c}: this Codex login is already imported`)}
|
|
96
105
|
exit 0
|
|
97
106
|
fi
|
|
98
|
-
if node -e ${
|
|
99
|
-
echo ${
|
|
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
|
|
105
|
-
`,"utf8")}async function
|
|
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/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
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,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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\":\"
|
|
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,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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-
|
|
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-
|
|
46
|
-
daytona: () => import("./dist-
|
|
47
|
-
hetzner: () => import("./dist-
|
|
48
|
-
vercel: () => import("./dist-
|
|
49
|
-
e2b: () => import("./dist-
|
|
50
|
-
digitalocean: () => import("./dist-
|
|
51
|
-
"remote-docker": () => import("./dist-
|
|
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-
|
|
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) {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
registerBoxWithRelay,
|
|
15
15
|
skipWebProxyAlias,
|
|
16
16
|
stopBoxPollerOnRelay
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AIFVVQPX.js";
|
|
18
18
|
import {
|
|
19
19
|
AGENTS_STATIC_BOX_DIR,
|
|
20
20
|
AGENT_SYNC_SPECS,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
withServiceSignIn,
|
|
74
74
|
writeCredentialBackup,
|
|
75
75
|
writePreparedStateRaw
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-SM2XYDPL.js";
|
|
77
77
|
import {
|
|
78
78
|
execa
|
|
79
79
|
} from "./chunk-EFW34I43.js";
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
generateBoxId,
|
|
85
85
|
persistentRefusal,
|
|
86
86
|
resolveSyncTopology
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-2LE76CT3.js";
|
|
88
88
|
import {
|
|
89
89
|
agentSettingsFor,
|
|
90
90
|
hashProjectPath,
|