@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.
- package/CHANGELOG.md +18 -0
- package/README.md +2 -0
- package/dist/_cloud-attach-B3BCOZ7U.js +31 -0
- package/dist/{chunk-LBBPEDRD.js → chunk-2MBELUE6.js} +9 -9
- package/dist/{chunk-AUBVCSFL.js → chunk-4LSLXBFN.js} +7 -7
- package/dist/{chunk-QUD42WO2.js → chunk-4NO5MO2P.js} +6 -6
- package/dist/{chunk-3LJH547J.js → chunk-4Y365UYP.js} +2 -2
- package/dist/{chunk-2756BRPK.js → chunk-5UX2HAF4.js} +31 -31
- package/dist/{chunk-HDSUUWTX.js → chunk-75JF44DH.js} +2 -2
- package/dist/{chunk-CDY4CMZX.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-NS4DBXZR.js → chunk-AYREFYEF.js} +5 -5
- package/dist/{chunk-ERLTFI35.js → chunk-BYZPRB7U.js} +5 -5
- package/dist/{chunk-DS4K7ISX.js → chunk-C67DVYWA.js} +9 -4
- package/dist/chunk-C67DVYWA.js.map +1 -0
- package/dist/{chunk-RBEELJCJ.js → chunk-CUIJ2PIN.js} +10 -10
- package/dist/{chunk-67JVG72A.js → chunk-ENFWBFBI.js} +4 -4
- package/dist/{chunk-TMFNWCUQ.js → chunk-EP4IFSV5.js} +8 -6
- package/dist/chunk-EP4IFSV5.js.map +1 -0
- package/dist/{chunk-OUKDAUKX.js → chunk-EXF4PLBN.js} +3 -3
- package/dist/{chunk-6F6OUFLD.js → chunk-GCS5XAPC.js} +4 -4
- package/dist/{chunk-QYUHZOIW.js → chunk-IF4VXKJK.js} +4 -4
- package/dist/{chunk-TQL4VWVV.js → chunk-IFPTD73K.js} +2 -2
- package/dist/{chunk-IZTWZJMF.js → chunk-IQ6BQ2LX.js} +4 -4
- package/dist/{chunk-UMK4HA6G.js → chunk-IQMDGAMB.js} +4 -4
- package/dist/{chunk-QOFQZRDG.js → chunk-KCDLAP5Q.js} +4 -4
- package/dist/{chunk-ABKHJ2QL.js → chunk-L567TKOK.js} +6 -6
- package/dist/{chunk-FUJRTZBN.js → chunk-LR5RNEVO.js} +3 -3
- package/dist/{chunk-NGUNB6M2.js → chunk-M6VAID7T.js} +3 -3
- package/dist/{chunk-BNMTBKQJ.js → chunk-MBZ4UOWF.js} +4 -4
- package/dist/{chunk-BBQ3VYLV.js → chunk-MJZPECVQ.js} +3 -3
- package/dist/{chunk-3T4CPP3U.js → chunk-NKHRFR5G.js} +17 -17
- package/dist/{chunk-IQJ6OUN5.js → chunk-OXBWZG2N.js} +4 -4
- package/dist/{chunk-BKTP27TW.js → chunk-PXH3DERD.js} +3 -3
- package/dist/{chunk-BT7OQHZ4.js → chunk-QDVIMN57.js} +4 -4
- package/dist/{chunk-EK32GLP5.js → chunk-QT4MOS6R.js} +22 -22
- package/dist/{chunk-LFN6QCM6.js → chunk-QWWDG5B7.js} +6 -6
- package/dist/{chunk-NWIQQB6U.js → chunk-RUKTOHK7.js} +3 -3
- package/dist/{chunk-FDHOIH3V.js → chunk-VOVRWIBC.js} +11 -11
- package/dist/{chunk-3S5RZCIG.js → chunk-VQONUZE4.js} +4 -4
- package/dist/{chunk-MH63I6AL.js → chunk-VWJBQGXD.js} +6 -6
- package/dist/{chunk-KKTCDNRO.js → chunk-X6SZPGL5.js} +7 -7
- package/dist/{chunk-H3BU75PN.js → chunk-YL3VEQTS.js} +6 -6
- package/dist/{chunk-N5LNX6X2.js → chunk-YSC4VY43.js} +4 -4
- package/dist/{chunk-S3LDXOIT.js → chunk-ZUTC2JZM.js} +5 -5
- package/dist/{cli-JRP3VNEM.js → cli-7JW54ZTA.js} +9 -9
- package/dist/{cli-BILGBUVD.js → cli-7Z7BD23R.js} +8 -8
- package/dist/{cli-MCXZDAEN.js → cli-HFLU5QTD.js} +8 -8
- package/dist/{cli-YXG2QKDM.js → cli-KT5X4J74.js} +9 -9
- package/dist/{cli-UUPHZRKG.js → cli-XRF7WFE5.js} +9 -9
- package/dist/cloud-backends.js +5 -5
- package/dist/{control-plane-54U2RAMT.js → control-plane-DGLF4MBB.js} +20 -20
- package/dist/{cp-hub-upload-7GJQO4FY.js → cp-hub-upload-7YESYCVS.js} +7 -7
- package/dist/{custody-client-G4SNQYTT.js → custody-client-P7SCEDU2.js} +5 -5
- package/dist/{deploy-hetzner-X6WUZPPJ.js → deploy-hetzner-FOCNRRB2.js} +9 -9
- package/dist/{dist-MY3UXECL.js → dist-2CAWJQT5.js} +6 -6
- package/dist/{dist-JLQLHSN6.js → dist-36WLI6E2.js} +7 -7
- package/dist/{dist-VBOFIW7E.js → dist-54VRDCUU.js} +8 -8
- package/dist/{dist-F3HWDZ32.js → dist-63YBVZW4.js} +9 -9
- package/dist/{dist-MBPDLQUR.js → dist-BUCKUE4V.js} +2 -2
- package/dist/{dist-V3P3SIBU.js → dist-CBPQZPQN.js} +8 -8
- package/dist/{dist-JCVHBCEV.js → dist-E4VLIH3H.js} +8 -8
- package/dist/{dist-TSPUGLQM.js → dist-FHPNYDCF.js} +3 -3
- package/dist/{dist-NC2UMRWF.js → dist-MITAKWKQ.js} +8 -8
- package/dist/{dist-RWC4EWSU.js → dist-TJJ6KBNZ.js} +4 -4
- package/dist/{dist-HPXCGKM4.js → dist-XSAPZOEG.js} +8 -8
- package/dist/{host-reach-drainer-CF7YGFI4.js → host-reach-drainer-XFLSMTSX.js} +2 -2
- package/dist/hub-OMGLWQEV.js +39 -0
- package/dist/{hub-adopt-OQUIDTUW.js → hub-adopt-IYZ3WXYN.js} +7 -7
- package/dist/{hub-api-client-WBXO4BUG.js → hub-api-client-WOZ2BQ6H.js} +4 -4
- package/dist/{hub-docker-target-JHOIAOIF.js → hub-docker-target-IQHX6OYX.js} +14 -14
- package/dist/index.js +61 -61
- package/dist/{plugin-update-FZKBBDMJ.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-RX7DKZ7J.js → prepared-state-FO74QUCP-PZLOM6HD.js} +4 -4
- package/dist/{publish-credentials-GKZGTWEI.js → publish-credentials-TO5IIW2T.js} +9 -9
- package/dist/{registry-IKU6MBLX.js → registry-X33JZU6B.js} +5 -5
- package/dist/relay-7D5NOFKS.js +22 -0
- package/dist/{remote-docker-share-YWI2UXGS.js → remote-docker-share-YADHIHXV.js} +11 -11
- package/dist/{tool-grant-push-KMMSJPGK.js → tool-grant-push-7G2QAN3J.js} +3 -3
- package/package.json +1 -1
- package/runtime/_shared/ctl.cjs +26 -8
- package/runtime/digitalocean/ctl.cjs +26 -8
- package/runtime/docker/packages/ctl/dist/bin.cjs +26 -8
- package/runtime/e2b/ctl.cjs +26 -8
- package/runtime/hetzner/ctl.cjs +26 -8
- 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/_0vg6gvw._.js +22 -22
- 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/_14-qzbg._.js +1 -1
- 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-6CRH52LO.js → chunk-7IIG6MIB.js} +9 -9
- package/runtime/hub/apps/hub/{chunk-V6HJFB7G.js → chunk-7JBH42LK.js} +3 -3
- package/runtime/hub/apps/hub/{chunk-MIEBOFHZ.js → chunk-AAF4CYVH.js} +6 -6
- package/runtime/hub/apps/hub/{chunk-IDIFPYTE.js → chunk-AIFVVQPX.js} +7 -5
- package/runtime/hub/apps/hub/{chunk-NHYDZVES.js → chunk-F6GOERHP.js} +4 -4
- package/runtime/hub/apps/hub/{chunk-V4YXLMFI.js → chunk-SM2XYDPL.js} +8 -3
- package/runtime/hub/apps/hub/{dist-RW6RLHQK.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-I275RO6P.js → dist-DS5LGBGK.js} +2 -2
- package/runtime/hub/apps/hub/{dist-VOIDY4IM.js → dist-H7NIUVBD.js} +6 -6
- package/runtime/hub/apps/hub/{dist-C2JJTBDD.js → dist-LV6CHJVA.js} +5 -5
- package/runtime/hub/apps/hub/{dist-SINRABCR.js → dist-MQADLEEQ.js} +5 -5
- package/runtime/hub/apps/hub/{dist-BIXUQKSK.js → dist-RJBPZWSZ.js} +5 -5
- package/runtime/hub/apps/hub/{dist-K4GLZWXS.js → dist-VENYRIRW.js} +5 -5
- package/runtime/hub/apps/hub/{dist-B5IUHK2B.js → dist-YG4RVC24.js} +6 -6
- package/runtime/hub/apps/hub/{dist-VLKRF6NH.js → dist-YOTRYCRK.js} +4 -4
- package/runtime/hub/apps/hub/{hub-worker-HSKRQMH5.js → hub-worker-DLFLGKCV.js} +7 -7
- package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-UL4TQJT4.js → prepared-state-FO74QUCP-FZ6PT4LA.js} +3 -3
- package/runtime/hub/apps/hub/server.js +13 -13
- package/runtime/relay/bin.cjs +26 -8
- package/runtime/vercel/ctl.cjs +26 -8
- package/dist/_cloud-attach-N3JJD7JF.js +0 -31
- package/dist/chunk-7N3CJNR5.js.map +0 -1
- package/dist/chunk-DS4K7ISX.js.map +0 -1
- package/dist/chunk-TMFNWCUQ.js.map +0 -1
- package/dist/hub-PITRE4LQ.js +0 -39
- package/dist/prepare-WAIDHKO3.js +0 -45
- package/dist/prepared-custody-ALF6YHQC.js +0 -39
- package/dist/relay-7VSUDQPP.js +0 -22
- /package/dist/{_cloud-attach-N3JJD7JF.js.map → _cloud-attach-B3BCOZ7U.js.map} +0 -0
- /package/dist/{chunk-LBBPEDRD.js.map → chunk-2MBELUE6.js.map} +0 -0
- /package/dist/{chunk-AUBVCSFL.js.map → chunk-4LSLXBFN.js.map} +0 -0
- /package/dist/{chunk-QUD42WO2.js.map → chunk-4NO5MO2P.js.map} +0 -0
- /package/dist/{chunk-3LJH547J.js.map → chunk-4Y365UYP.js.map} +0 -0
- /package/dist/{chunk-2756BRPK.js.map → chunk-5UX2HAF4.js.map} +0 -0
- /package/dist/{chunk-HDSUUWTX.js.map → chunk-75JF44DH.js.map} +0 -0
- /package/dist/{chunk-CDY4CMZX.js.map → chunk-AAMPHDB2.js.map} +0 -0
- /package/dist/{chunk-NS4DBXZR.js.map → chunk-AYREFYEF.js.map} +0 -0
- /package/dist/{chunk-ERLTFI35.js.map → chunk-BYZPRB7U.js.map} +0 -0
- /package/dist/{chunk-RBEELJCJ.js.map → chunk-CUIJ2PIN.js.map} +0 -0
- /package/dist/{chunk-67JVG72A.js.map → chunk-ENFWBFBI.js.map} +0 -0
- /package/dist/{chunk-OUKDAUKX.js.map → chunk-EXF4PLBN.js.map} +0 -0
- /package/dist/{chunk-6F6OUFLD.js.map → chunk-GCS5XAPC.js.map} +0 -0
- /package/dist/{chunk-QYUHZOIW.js.map → chunk-IF4VXKJK.js.map} +0 -0
- /package/dist/{chunk-TQL4VWVV.js.map → chunk-IFPTD73K.js.map} +0 -0
- /package/dist/{chunk-IZTWZJMF.js.map → chunk-IQ6BQ2LX.js.map} +0 -0
- /package/dist/{chunk-UMK4HA6G.js.map → chunk-IQMDGAMB.js.map} +0 -0
- /package/dist/{chunk-QOFQZRDG.js.map → chunk-KCDLAP5Q.js.map} +0 -0
- /package/dist/{chunk-ABKHJ2QL.js.map → chunk-L567TKOK.js.map} +0 -0
- /package/dist/{chunk-FUJRTZBN.js.map → chunk-LR5RNEVO.js.map} +0 -0
- /package/dist/{chunk-NGUNB6M2.js.map → chunk-M6VAID7T.js.map} +0 -0
- /package/dist/{chunk-BNMTBKQJ.js.map → chunk-MBZ4UOWF.js.map} +0 -0
- /package/dist/{chunk-BBQ3VYLV.js.map → chunk-MJZPECVQ.js.map} +0 -0
- /package/dist/{chunk-3T4CPP3U.js.map → chunk-NKHRFR5G.js.map} +0 -0
- /package/dist/{chunk-IQJ6OUN5.js.map → chunk-OXBWZG2N.js.map} +0 -0
- /package/dist/{chunk-BKTP27TW.js.map → chunk-PXH3DERD.js.map} +0 -0
- /package/dist/{chunk-BT7OQHZ4.js.map → chunk-QDVIMN57.js.map} +0 -0
- /package/dist/{chunk-EK32GLP5.js.map → chunk-QT4MOS6R.js.map} +0 -0
- /package/dist/{chunk-LFN6QCM6.js.map → chunk-QWWDG5B7.js.map} +0 -0
- /package/dist/{chunk-NWIQQB6U.js.map → chunk-RUKTOHK7.js.map} +0 -0
- /package/dist/{chunk-FDHOIH3V.js.map → chunk-VOVRWIBC.js.map} +0 -0
- /package/dist/{chunk-3S5RZCIG.js.map → chunk-VQONUZE4.js.map} +0 -0
- /package/dist/{chunk-MH63I6AL.js.map → chunk-VWJBQGXD.js.map} +0 -0
- /package/dist/{chunk-KKTCDNRO.js.map → chunk-X6SZPGL5.js.map} +0 -0
- /package/dist/{chunk-H3BU75PN.js.map → chunk-YL3VEQTS.js.map} +0 -0
- /package/dist/{chunk-N5LNX6X2.js.map → chunk-YSC4VY43.js.map} +0 -0
- /package/dist/{chunk-S3LDXOIT.js.map → chunk-ZUTC2JZM.js.map} +0 -0
- /package/dist/{cli-BILGBUVD.js.map → cli-7JW54ZTA.js.map} +0 -0
- /package/dist/{cli-JRP3VNEM.js.map → cli-7Z7BD23R.js.map} +0 -0
- /package/dist/{cli-MCXZDAEN.js.map → cli-HFLU5QTD.js.map} +0 -0
- /package/dist/{cli-UUPHZRKG.js.map → cli-KT5X4J74.js.map} +0 -0
- /package/dist/{cli-YXG2QKDM.js.map → cli-XRF7WFE5.js.map} +0 -0
- /package/dist/{control-plane-54U2RAMT.js.map → control-plane-DGLF4MBB.js.map} +0 -0
- /package/dist/{cp-hub-upload-7GJQO4FY.js.map → cp-hub-upload-7YESYCVS.js.map} +0 -0
- /package/dist/{custody-client-G4SNQYTT.js.map → custody-client-P7SCEDU2.js.map} +0 -0
- /package/dist/{deploy-hetzner-X6WUZPPJ.js.map → deploy-hetzner-FOCNRRB2.js.map} +0 -0
- /package/dist/{dist-F3HWDZ32.js.map → dist-2CAWJQT5.js.map} +0 -0
- /package/dist/{dist-HPXCGKM4.js.map → dist-36WLI6E2.js.map} +0 -0
- /package/dist/{dist-VBOFIW7E.js.map → dist-54VRDCUU.js.map} +0 -0
- /package/dist/{dist-JLQLHSN6.js.map → dist-63YBVZW4.js.map} +0 -0
- /package/dist/{dist-MBPDLQUR.js.map → dist-BUCKUE4V.js.map} +0 -0
- /package/dist/{dist-MY3UXECL.js.map → dist-CBPQZPQN.js.map} +0 -0
- /package/dist/{dist-JCVHBCEV.js.map → dist-E4VLIH3H.js.map} +0 -0
- /package/dist/{dist-NC2UMRWF.js.map → dist-FHPNYDCF.js.map} +0 -0
- /package/dist/{dist-RWC4EWSU.js.map → dist-MITAKWKQ.js.map} +0 -0
- /package/dist/{dist-TSPUGLQM.js.map → dist-TJJ6KBNZ.js.map} +0 -0
- /package/dist/{dist-V3P3SIBU.js.map → dist-XSAPZOEG.js.map} +0 -0
- /package/dist/{host-reach-drainer-CF7YGFI4.js.map → host-reach-drainer-XFLSMTSX.js.map} +0 -0
- /package/dist/{hub-PITRE4LQ.js.map → hub-OMGLWQEV.js.map} +0 -0
- /package/dist/{hub-adopt-OQUIDTUW.js.map → hub-adopt-IYZ3WXYN.js.map} +0 -0
- /package/dist/{hub-api-client-WBXO4BUG.js.map → hub-api-client-WOZ2BQ6H.js.map} +0 -0
- /package/dist/{hub-docker-target-JHOIAOIF.js.map → hub-docker-target-IQHX6OYX.js.map} +0 -0
- /package/dist/{plugin-update-FZKBBDMJ.js.map → plugin-update-2ACFHFUI.js.map} +0 -0
- /package/dist/{prepare-WAIDHKO3.js.map → prepare-OOZF37J6.js.map} +0 -0
- /package/dist/{prepared-custody-ALF6YHQC.js.map → prepared-custody-E7CSZJ6V.js.map} +0 -0
- /package/dist/{prepared-state-FO74QUCP-RX7DKZ7J.js.map → prepared-state-FO74QUCP-PZLOM6HD.js.map} +0 -0
- /package/dist/{publish-credentials-GKZGTWEI.js.map → publish-credentials-TO5IIW2T.js.map} +0 -0
- /package/dist/{registry-IKU6MBLX.js.map → registry-X33JZU6B.js.map} +0 -0
- /package/dist/{relay-7VSUDQPP.js.map → relay-7D5NOFKS.js.map} +0 -0
- /package/dist/{remote-docker-share-YWI2UXGS.js.map → remote-docker-share-YADHIHXV.js.map} +0 -0
- /package/dist/{tool-grant-push-KMMSJPGK.js.map → tool-grant-push-7G2QAN3J.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{cXSQmUIAB12u7BgxO4JPy → o9_g9S5JH-r8bfNfmPa5H}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{cXSQmUIAB12u7BgxO4JPy → o9_g9S5JH-r8bfNfmPa5H}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{cXSQmUIAB12u7BgxO4JPy → o9_g9S5JH-r8bfNfmPa5H}/_ssgManifest.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,24 @@ Entries are generated from the commit history with `/release-notes` and then
|
|
|
9
9
|
hand-reviewed — they describe what changed for someone using the `agentbox`
|
|
10
10
|
CLI, not the raw commits.
|
|
11
11
|
|
|
12
|
+
## [0.31.4] - 2026-09-11
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- **An OpenClaw box borrowing your Codex login could open on model setup and never recover.**
|
|
17
|
+
If the `@openclaw/codex` plugin install left OpenClaw not trusting the plugin, every
|
|
18
|
+
turn failed; the model-auth task now reinstalls it, including on the next restart.
|
|
19
|
+
|
|
20
|
+
## [0.31.3] - 2026-09-11
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **Env files pushed into a box from a Mac could arrive with `._*` junk beside
|
|
25
|
+
them.** The two env-file tars — the shared sync concern (every provider) and
|
|
26
|
+
docker's wizard-picked file copy — were the last archive-creating tars without
|
|
27
|
+
`COPYFILE_DISABLE`. A source scan now asserts every one of them sets it, so
|
|
28
|
+
the rule is a repo fact rather than a comment on the call sites that remembered.
|
|
29
|
+
|
|
12
30
|
## [0.31.2] - 2026-09-10
|
|
13
31
|
|
|
14
32
|
### Fixed
|
package/README.md
CHANGED
|
@@ -208,6 +208,8 @@ Full guide: [Build a provider](https://agent-box.sh/docs/build-a-provider) (and
|
|
|
208
208
|
|
|
209
209
|
Bug reports, docs fixes, and provider work are welcome — see [CONTRIBUTING.md](https://github.com/madarco/agentbox/blob/main/CONTRIBUTING.md). First-time contributors sign a one-line [CLA](https://github.com/madarco/agentbox/blob/main/.github/CLA.md) on their first pull request. Security issues go through [SECURITY.md](https://github.com/madarco/agentbox/blob/main/SECURITY.md), not a public issue.
|
|
210
210
|
|
|
211
|
+
For new sandbox providers, see [Build a provider](https://agent-box.sh/docs/build-a-provider) and the authoring reference [`docs/provider-plugins.md`](https://github.com/madarco/agentbox/blob/main/docs/provider-plugins.md).
|
|
212
|
+
|
|
211
213
|
# Author
|
|
212
214
|
|
|
213
215
|
[Marco D'Alia](https://www.madarco.net) - [@madarco](https://x.com/madarco) - [Linkedin](https://www.linkedin.com/in/marcodalia/)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
cloudAgentAttach,
|
|
4
|
+
cloudAgentStartDetached
|
|
5
|
+
} from "./chunk-NKHRFR5G.js";
|
|
6
|
+
import "./chunk-ZUTC2JZM.js";
|
|
7
|
+
import "./chunk-IFPTD73K.js";
|
|
8
|
+
import "./chunk-4Y365UYP.js";
|
|
9
|
+
import "./chunk-M6VAID7T.js";
|
|
10
|
+
import "./chunk-PXH3DERD.js";
|
|
11
|
+
import {
|
|
12
|
+
buildCloudAttachInnerCommand,
|
|
13
|
+
verifyDetachedSession
|
|
14
|
+
} from "./chunk-MBZ4UOWF.js";
|
|
15
|
+
import "./chunk-EP4IFSV5.js";
|
|
16
|
+
import "./chunk-KCDLAP5Q.js";
|
|
17
|
+
import "./chunk-MNDKP4VS.js";
|
|
18
|
+
import "./chunk-2MBELUE6.js";
|
|
19
|
+
import "./chunk-X6SZPGL5.js";
|
|
20
|
+
import "./chunk-C67DVYWA.js";
|
|
21
|
+
import "./chunk-AWFTAHGF.js";
|
|
22
|
+
import "./chunk-ES6DXNUA.js";
|
|
23
|
+
import "./chunk-QESXSSO6.js";
|
|
24
|
+
import "./chunk-6V366IZC.js";
|
|
25
|
+
export {
|
|
26
|
+
buildCloudAttachInnerCommand,
|
|
27
|
+
cloudAgentAttach,
|
|
28
|
+
cloudAgentStartDetached,
|
|
29
|
+
verifyDetachedSession
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=_cloud-attach-B3BCOZ7U.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
isSupportedApiVersion,
|
|
5
5
|
pluginForProvider,
|
|
6
6
|
pluginProviderNames
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C67DVYWA.js";
|
|
8
8
|
import {
|
|
9
9
|
PROVIDER_NAMES,
|
|
10
10
|
isProviderKind
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
// src/provider/loaders.ts
|
|
14
14
|
import { pathToFileURL } from "url";
|
|
15
15
|
var IMPORTERS = {
|
|
16
|
-
docker: () => import("./dist-
|
|
17
|
-
daytona: () => import("./dist-
|
|
18
|
-
hetzner: () => import("./dist-
|
|
19
|
-
vercel: () => import("./dist-
|
|
20
|
-
e2b: () => import("./dist-
|
|
21
|
-
digitalocean: () => import("./dist-
|
|
22
|
-
"remote-docker": () => import("./dist-
|
|
16
|
+
docker: () => import("./dist-2CAWJQT5.js"),
|
|
17
|
+
daytona: () => import("./dist-54VRDCUU.js"),
|
|
18
|
+
hetzner: () => import("./dist-XSAPZOEG.js"),
|
|
19
|
+
vercel: () => import("./dist-MITAKWKQ.js"),
|
|
20
|
+
e2b: () => import("./dist-E4VLIH3H.js"),
|
|
21
|
+
digitalocean: () => import("./dist-63YBVZW4.js"),
|
|
22
|
+
"remote-docker": () => import("./dist-CBPQZPQN.js")
|
|
23
23
|
};
|
|
24
24
|
function pickProviderModule(mod, name) {
|
|
25
25
|
const m = mod;
|
|
@@ -64,4 +64,4 @@ export {
|
|
|
64
64
|
getRuntimeProviderNames,
|
|
65
65
|
isRuntimeProvider
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-2MBELUE6.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
stripAnsi,
|
|
20
20
|
trimUrl,
|
|
21
21
|
withLoginDefaults
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-M6VAID7T.js";
|
|
23
23
|
import {
|
|
24
24
|
ClaudeSessionError,
|
|
25
25
|
SHARED_CLAUDE_VOLUME,
|
|
@@ -34,25 +34,25 @@ import {
|
|
|
34
34
|
runInteractiveClaudeLogin,
|
|
35
35
|
startClaudeSession,
|
|
36
36
|
warmUpClaudeCredentials
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YSC4VY43.js";
|
|
38
38
|
import {
|
|
39
39
|
syncClaudeCredentials,
|
|
40
40
|
volumeClaudeCredentials
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-EP4IFSV5.js";
|
|
42
42
|
import {
|
|
43
43
|
DEFAULT_BOX_IMAGE,
|
|
44
44
|
ensureImage,
|
|
45
45
|
imageExists,
|
|
46
46
|
variantImageRef
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-X6SZPGL5.js";
|
|
48
48
|
import {
|
|
49
49
|
STATE_DIR,
|
|
50
50
|
hostBackupHasCredentials,
|
|
51
51
|
resolveAgentSpec
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-C67DVYWA.js";
|
|
53
53
|
import {
|
|
54
54
|
resolveAgentLauncher
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-AWFTAHGF.js";
|
|
56
56
|
import {
|
|
57
57
|
loadEffectiveConfig
|
|
58
58
|
} from "./chunk-ES6DXNUA.js";
|
|
@@ -1037,4 +1037,4 @@ export {
|
|
|
1037
1037
|
agentModule,
|
|
1038
1038
|
runClaudeLogin
|
|
1039
1039
|
};
|
|
1040
|
-
//# sourceMappingURL=chunk-
|
|
1040
|
+
//# sourceMappingURL=chunk-4LSLXBFN.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
runInteractiveOpencodeLogin,
|
|
12
12
|
startOpencodeSession,
|
|
13
13
|
volumeHasOpencodeAuth
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IQ6BQ2LX.js";
|
|
15
15
|
import {
|
|
16
16
|
INVALID_CODE,
|
|
17
17
|
URL_BODY,
|
|
@@ -26,17 +26,17 @@ import {
|
|
|
26
26
|
text,
|
|
27
27
|
trimUrl,
|
|
28
28
|
withLoginDefaults
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-M6VAID7T.js";
|
|
30
30
|
import {
|
|
31
31
|
OPENCODE_CREDENTIALS_BACKUP_FILE,
|
|
32
32
|
extractOpencodeCredentials
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EP4IFSV5.js";
|
|
34
34
|
import {
|
|
35
35
|
ensureImage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-X6SZPGL5.js";
|
|
37
37
|
import {
|
|
38
38
|
resolveAgentSpec
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-C67DVYWA.js";
|
|
40
40
|
|
|
41
41
|
// ../../packages/agent-opencode/dist/cli/index.js
|
|
42
42
|
import { access } from "fs/promises";
|
|
@@ -294,4 +294,4 @@ export {
|
|
|
294
294
|
opencodeCliSpec,
|
|
295
295
|
agentModule
|
|
296
296
|
};
|
|
297
|
-
//# sourceMappingURL=chunk-
|
|
297
|
+
//# sourceMappingURL=chunk-4NO5MO2P.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getRuntimeProviderNames,
|
|
4
4
|
isRuntimeProvider,
|
|
5
5
|
loadProviderModule
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2MBELUE6.js";
|
|
7
7
|
import {
|
|
8
8
|
REMOTE_DOCKER,
|
|
9
9
|
parseProviderSpec
|
|
@@ -68,4 +68,4 @@ export {
|
|
|
68
68
|
providerForBox,
|
|
69
69
|
providerForCreate
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-4Y365UYP.js.map
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
hubApiTargetFrom,
|
|
4
4
|
withHubClient
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZUTC2JZM.js";
|
|
6
6
|
import {
|
|
7
7
|
CustodyClient,
|
|
8
8
|
collectAgentCredentialUploads,
|
|
9
9
|
planPush
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EXF4PLBN.js";
|
|
11
11
|
import {
|
|
12
12
|
compareSemver,
|
|
13
13
|
isNewer
|
|
@@ -23,16 +23,16 @@ import {
|
|
|
23
23
|
projectHasEnv,
|
|
24
24
|
resolveVercelApiAuth,
|
|
25
25
|
upsertProjectEnv
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GCS5XAPC.js";
|
|
27
27
|
import {
|
|
28
28
|
deployControlPlaneToDigitalOcean,
|
|
29
29
|
destroyControlPlaneOnDigitalOcean,
|
|
30
30
|
readDigitalOceanCredStatus,
|
|
31
31
|
updateControlPlaneOnDigitalOcean
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AAMPHDB2.js";
|
|
33
33
|
import {
|
|
34
34
|
providerForCreate
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-4Y365UYP.js";
|
|
36
36
|
import {
|
|
37
37
|
assertReachableRecord,
|
|
38
38
|
persistDeployRecord,
|
|
@@ -42,14 +42,14 @@ import {
|
|
|
42
42
|
runHetznerDeploy,
|
|
43
43
|
runHetznerDestroy,
|
|
44
44
|
runHetznerUpdate
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-VQONUZE4.js";
|
|
46
46
|
import {
|
|
47
47
|
openCommandLog
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-M6VAID7T.js";
|
|
49
49
|
import {
|
|
50
50
|
HubApiClient,
|
|
51
51
|
HubApiError
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-PXH3DERD.js";
|
|
53
53
|
import {
|
|
54
54
|
loadControlPlaneEnv,
|
|
55
55
|
readControlPlaneEnvMap,
|
|
@@ -57,10 +57,10 @@ import {
|
|
|
57
57
|
} from "./chunk-QNYGNHM2.js";
|
|
58
58
|
import {
|
|
59
59
|
handleLifecycleError
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-YL3VEQTS.js";
|
|
61
61
|
import {
|
|
62
62
|
detectEgressIp
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-AYREFYEF.js";
|
|
64
64
|
import {
|
|
65
65
|
applyProjectSeed,
|
|
66
66
|
deadlineFetch,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
pushPreparedToCustody,
|
|
69
69
|
pushProjectSeedToCustody,
|
|
70
70
|
readGitOriginUrl
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-MBZ4UOWF.js";
|
|
72
72
|
import {
|
|
73
73
|
GitHubAppLeaser,
|
|
74
74
|
PostgresStore,
|
|
@@ -79,11 +79,11 @@ import {
|
|
|
79
79
|
makeControlPlaneCreateBox,
|
|
80
80
|
parseGitRemote,
|
|
81
81
|
toAuthedHttpsUrl
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-KCDLAP5Q.js";
|
|
83
83
|
import {
|
|
84
84
|
getRuntimeProviderNames,
|
|
85
85
|
loadProviderModule
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-2MBELUE6.js";
|
|
87
87
|
import {
|
|
88
88
|
AGENTBOX_HUB_SSH_ALIAS,
|
|
89
89
|
AGENT_SYNC_SPECS,
|
|
@@ -95,10 +95,10 @@ import {
|
|
|
95
95
|
relayPort,
|
|
96
96
|
resolveSshConfigTarget,
|
|
97
97
|
stopHub
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-C67DVYWA.js";
|
|
99
99
|
import {
|
|
100
100
|
isAgentKind
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-AWFTAHGF.js";
|
|
102
102
|
import {
|
|
103
103
|
GLOBAL_CONFIG_FILE,
|
|
104
104
|
findProjectRoot,
|
|
@@ -814,8 +814,8 @@ function detectExecutionMethod(input) {
|
|
|
814
814
|
}
|
|
815
815
|
|
|
816
816
|
// src/version.ts
|
|
817
|
-
var AGENTBOX_VERSION = true ? "0.31.
|
|
818
|
-
var AGENTBOX_COMMIT = true ? "
|
|
817
|
+
var AGENTBOX_VERSION = true ? "0.31.4" : "0.0.0-dev";
|
|
818
|
+
var AGENTBOX_COMMIT = true ? "186cbf81" : "dev";
|
|
819
819
|
|
|
820
820
|
// src/commands/install-app.ts
|
|
821
821
|
import { intro, log, outro } from "@clack/prompts";
|
|
@@ -1695,7 +1695,7 @@ async function restoreTunnelIfExposed(log3 = () => {
|
|
|
1695
1695
|
async function readLocalRecord() {
|
|
1696
1696
|
try {
|
|
1697
1697
|
const { readFile: readFile6 } = await import("fs/promises");
|
|
1698
|
-
const { controlPlaneDeployPath } = await import("./dist-
|
|
1698
|
+
const { controlPlaneDeployPath } = await import("./dist-FHPNYDCF.js");
|
|
1699
1699
|
const rec = JSON.parse(
|
|
1700
1700
|
await readFile6(controlPlaneDeployPath(), "utf8")
|
|
1701
1701
|
);
|
|
@@ -2305,7 +2305,7 @@ var setUrlSub = new Command2("set-url").description("Point boxes + the CLI at a
|
|
|
2305
2305
|
try {
|
|
2306
2306
|
const trimmed = await applyControlPlaneUrl(url);
|
|
2307
2307
|
log2.success(`Set relay.controlPlaneUrl = ${trimmed}`);
|
|
2308
|
-
const { ensureHubDockerTarget } = await import("./hub-docker-target-
|
|
2308
|
+
const { ensureHubDockerTarget } = await import("./hub-docker-target-IQHX6OYX.js");
|
|
2309
2309
|
await ensureHubDockerTarget((line) => {
|
|
2310
2310
|
log2.info(line);
|
|
2311
2311
|
});
|
|
@@ -2323,7 +2323,7 @@ var unsetUrlSub = new Command2("unset-url").description("Stop using a control pl
|
|
|
2323
2323
|
if (!g.existed && !p.existed) {
|
|
2324
2324
|
log2.info("No control plane was configured (relay.controlPlaneUrl not set).");
|
|
2325
2325
|
} else {
|
|
2326
|
-
const { removeHubDockerTarget } = await import("./hub-docker-target-
|
|
2326
|
+
const { removeHubDockerTarget } = await import("./hub-docker-target-IQHX6OYX.js");
|
|
2327
2327
|
await removeHubDockerTarget((line) => {
|
|
2328
2328
|
log2.info(line);
|
|
2329
2329
|
});
|
|
@@ -2536,7 +2536,7 @@ async function resolveCustodyTarget(urlFlag, opts = {}) {
|
|
|
2536
2536
|
return { url, adminToken };
|
|
2537
2537
|
}
|
|
2538
2538
|
async function resolveCustodyApiTarget(urlFlag, opts = {}) {
|
|
2539
|
-
const { resolveHubTarget } = await import("./hub-
|
|
2539
|
+
const { resolveHubTarget } = await import("./hub-OMGLWQEV.js");
|
|
2540
2540
|
const noCredentialError = "A control box is configured but no custody credential is available. Set AGENTBOX_HUB_API_KEY\n(or AGENTBOX_RELAY_ADMIN_TOKEN), or run this from the machine that ran `agentbox hub setup`\n(it writes both to ~/.agentbox/control-plane) \u2014 custody / SSH-key pull needs one of them.";
|
|
2541
2541
|
const target = await resolveHubTarget(urlFlag);
|
|
2542
2542
|
if (target.mode === "remote") {
|
|
@@ -2555,8 +2555,8 @@ async function resolveCustodyApiTarget(urlFlag, opts = {}) {
|
|
|
2555
2555
|
return { url: api.url, apiKey: api.apiKey };
|
|
2556
2556
|
}
|
|
2557
2557
|
async function autostartLocalHub() {
|
|
2558
|
-
const { ensureHub: ensureHub2 } = await import("./dist-
|
|
2559
|
-
const { rehydrateFromState } = await import("./relay-
|
|
2558
|
+
const { ensureHub: ensureHub2 } = await import("./dist-FHPNYDCF.js");
|
|
2559
|
+
const { rehydrateFromState } = await import("./relay-7D5NOFKS.js");
|
|
2560
2560
|
const s = spinner();
|
|
2561
2561
|
s.start("starting local hub");
|
|
2562
2562
|
try {
|
|
@@ -2571,8 +2571,8 @@ async function autostartLocalHub() {
|
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
2573
2573
|
async function restartLocalHubForToken() {
|
|
2574
|
-
const { ensureHub: ensureHub2, stopHub: stopHub2 } = await import("./dist-
|
|
2575
|
-
const { rehydrateFromState } = await import("./relay-
|
|
2574
|
+
const { ensureHub: ensureHub2, stopHub: stopHub2 } = await import("./dist-FHPNYDCF.js");
|
|
2575
|
+
const { rehydrateFromState } = await import("./relay-7D5NOFKS.js");
|
|
2576
2576
|
const s = spinner();
|
|
2577
2577
|
s.start("hub token missing \u2014 restarting local hub");
|
|
2578
2578
|
try {
|
|
@@ -2588,10 +2588,10 @@ async function restartLocalHubForToken() {
|
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
async function resolveHubApiTarget(urlFlag, opts = {}) {
|
|
2591
|
-
const { resolveHubTarget } = await import("./hub-
|
|
2591
|
+
const { resolveHubTarget } = await import("./hub-OMGLWQEV.js");
|
|
2592
2592
|
let target = await resolveHubTarget(urlFlag, { preferLocal: opts.preferLocal });
|
|
2593
2593
|
if (target.mode === "local" && !opts.quiet) {
|
|
2594
|
-
const { getHubStatus: getHubStatus2, readHubToken } = await import("./dist-
|
|
2594
|
+
const { getHubStatus: getHubStatus2, readHubToken } = await import("./dist-FHPNYDCF.js");
|
|
2595
2595
|
const st = await getHubStatus2();
|
|
2596
2596
|
if (!(st.running && st.ui)) {
|
|
2597
2597
|
if (!await autostartLocalHub()) return null;
|
|
@@ -3483,7 +3483,7 @@ async function syncBakesWithControlBox(url) {
|
|
|
3483
3483
|
const hubVersion = (await probeControlPlaneStatus(target.url)).version;
|
|
3484
3484
|
const results = [];
|
|
3485
3485
|
const providers = getRuntimeProviderNames().filter(isShareablePreparedProvider);
|
|
3486
|
-
const { adoptPreparedBases } = await import("./prepared-custody-
|
|
3486
|
+
const { adoptPreparedBases } = await import("./prepared-custody-E7CSZJ6V.js");
|
|
3487
3487
|
const pulled = await adoptPreparedBases().catch(() => ({
|
|
3488
3488
|
adopted: [],
|
|
3489
3489
|
pending: []
|
|
@@ -3589,12 +3589,12 @@ async function syncAgentCredentialsIfChanged(url) {
|
|
|
3589
3589
|
async function finalizeControlBoxState(url) {
|
|
3590
3590
|
await syncAgentCredentials(url, { announce: true });
|
|
3591
3591
|
await syncBakesWithControlBox(url);
|
|
3592
|
-
const { syncSharedHosts } = await import("./remote-docker-share-
|
|
3592
|
+
const { syncSharedHosts } = await import("./remote-docker-share-YADHIHXV.js");
|
|
3593
3593
|
await syncSharedHosts(url, (line) => {
|
|
3594
3594
|
log2.info(line);
|
|
3595
3595
|
});
|
|
3596
3596
|
try {
|
|
3597
|
-
const { ensureHubDockerTarget } = await import("./hub-docker-target-
|
|
3597
|
+
const { ensureHubDockerTarget } = await import("./hub-docker-target-IQHX6OYX.js");
|
|
3598
3598
|
await ensureHubDockerTarget((line) => {
|
|
3599
3599
|
log2.info(line);
|
|
3600
3600
|
});
|
|
@@ -3681,4 +3681,4 @@ export {
|
|
|
3681
3681
|
syncAgentCredentialsIfChanged,
|
|
3682
3682
|
controlPlaneSubcommands
|
|
3683
3683
|
};
|
|
3684
|
-
//# sourceMappingURL=chunk-
|
|
3684
|
+
//# sourceMappingURL=chunk-5UX2HAF4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
loadProviderModule
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2MBELUE6.js";
|
|
5
5
|
import {
|
|
6
6
|
isProviderKind
|
|
7
7
|
} from "./chunk-ES6DXNUA.js";
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
cloudBackendForProvider,
|
|
22
22
|
currentCloudBaseFingerprintLive
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-75JF44DH.js.map
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
applyControlPlaneConfig,
|
|
4
4
|
resolveHubDeployAssets
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AYREFYEF.js";
|
|
6
6
|
import {
|
|
7
7
|
createCloudProvider,
|
|
8
8
|
stageAllAgentStatic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MBZ4UOWF.js";
|
|
10
10
|
import {
|
|
11
11
|
detectPortless,
|
|
12
12
|
portlessDoctorRow,
|
|
13
13
|
portlessServiceStatus
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EP4IFSV5.js";
|
|
15
15
|
import {
|
|
16
16
|
SshTunnelManager,
|
|
17
17
|
agentSetArg,
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
variantFingerprint,
|
|
41
41
|
waitForSsh,
|
|
42
42
|
writePreparedStateRaw
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-C67DVYWA.js";
|
|
44
44
|
import {
|
|
45
45
|
UserFacingError,
|
|
46
46
|
resolveAgentInstall
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-AWFTAHGF.js";
|
|
48
48
|
import {
|
|
49
49
|
loadEffectiveConfig,
|
|
50
50
|
setConfigValue,
|
|
@@ -2537,4 +2537,4 @@ export {
|
|
|
2537
2537
|
digitaloceanProvider,
|
|
2538
2538
|
providerModule
|
|
2539
2539
|
};
|
|
2540
|
-
//# sourceMappingURL=chunk-
|
|
2540
|
+
//# sourceMappingURL=chunk-AAMPHDB2.js.map
|
|
@@ -923,16 +923,19 @@ function buildModelAuthScript() {
|
|
|
923
923
|
// ingest" rather than a failed import.
|
|
924
924
|
`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`,
|
|
925
925
|
'seen=$(sha256sum "$auth" | cut -d" " -f1)',
|
|
926
|
+
`codex_trusted() { openclaw plugins inspect codex --json 2>/dev/null | node -e ${sq(MODEL_AUTH_PLUGIN_TRUSTED)}; }`,
|
|
927
|
+
// The plugin owns both the import command and the harness the default
|
|
928
|
+
// model runs on. Before the marker gate, so an imported box whose plugin
|
|
929
|
+
// lost its record is repaired rather than skipped. `--force` because the
|
|
930
|
+
// untrusted case leaves the directory behind.
|
|
931
|
+
"if ! codex_trusted; then",
|
|
932
|
+
' echo "openclaw-model-auth: installing the @openclaw/codex plugin"',
|
|
933
|
+
" openclaw plugins install clawhub:@openclaw/codex --force || exit 0",
|
|
934
|
+
"fi",
|
|
926
935
|
'if [ -f "$marker" ] && [ "$(cat "$marker")" = "$seen" ]; then',
|
|
927
936
|
' echo "openclaw-model-auth: this Codex login is already imported"',
|
|
928
937
|
" exit 0",
|
|
929
938
|
"fi",
|
|
930
|
-
// The plugin owns both the import command and the harness the default
|
|
931
|
-
// model runs on.
|
|
932
|
-
`if [ ! -d ${sq(`${OPENCLAW_BOX_DIR}/extensions/codex`)} ]; then`,
|
|
933
|
-
' echo "openclaw-model-auth: installing the @openclaw/codex plugin"',
|
|
934
|
-
" openclaw plugins install clawhub:@openclaw/codex || exit 0",
|
|
935
|
-
"fi",
|
|
936
939
|
'echo "openclaw-model-auth: importing the Codex login into the OpenClaw auth store"',
|
|
937
940
|
// `--no-backup --force`: the pre-migration archive would snapshot a state
|
|
938
941
|
// dir that is fresh on the boot this runs, and the migration report is
|
|
@@ -940,10 +943,20 @@ function buildModelAuthScript() {
|
|
|
940
943
|
`if openclaw migrate apply codex --from ${sq(home)} --include-secrets --item auth:openai --yes --no-backup --force; then`,
|
|
941
944
|
' printf %s "$seen" > "$marker" && chmod 600 "$marker"',
|
|
942
945
|
"fi",
|
|
946
|
+
// The one record loss observed happened across the import, not the install.
|
|
947
|
+
"if ! codex_trusted; then",
|
|
948
|
+
' echo "openclaw-model-auth: the @openclaw/codex plugin lost its install record; reinstalling"',
|
|
949
|
+
" openclaw plugins install clawhub:@openclaw/codex --force || true",
|
|
950
|
+
"fi",
|
|
943
951
|
"exit 0"
|
|
944
952
|
].join("\n");
|
|
945
953
|
}
|
|
946
954
|
var MODEL_AUTH_MARKER = `${OPENCLAW_BOX_DIR}/.agentbox-model-auth.sha256`;
|
|
955
|
+
var MODEL_AUTH_PLUGIN_TRUSTED = `
|
|
956
|
+
let j;
|
|
957
|
+
try { const s = require('fs').readFileSync(0, 'utf8'); j = JSON.parse(s.slice(s.indexOf('{'))); } catch { process.exit(1); }
|
|
958
|
+
process.exit(j?.plugin?.trust?.reason === 'trusted-official' ? 0 : 1);
|
|
959
|
+
`;
|
|
947
960
|
var MODEL_AUTH_IS_CODEX_LOGIN = `
|
|
948
961
|
const j = JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'));
|
|
949
962
|
process.exit(typeof j?.tokens?.refresh_token === 'string' && j.tokens.refresh_token.length > 0 ? 0 : 1);
|
|
@@ -1956,4 +1969,4 @@ export {
|
|
|
1956
1969
|
builtinAgentIds,
|
|
1957
1970
|
findAgentSpec
|
|
1958
1971
|
};
|
|
1959
|
-
//# sourceMappingURL=chunk-
|
|
1972
|
+
//# sourceMappingURL=chunk-AWFTAHGF.js.map
|