@madarco/agentbox 0.29.0 → 0.29.1
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 +22 -0
- package/dist/{_cloud-attach-HKRHYCY7.js → _cloud-attach-EUO2OL7W.js} +11 -11
- package/dist/{chunk-GWKGSXDC.js → chunk-2JHPGPLE.js} +2 -2
- package/dist/{chunk-THUST2QK.js → chunk-4KYP775X.js} +3 -3
- package/dist/{chunk-HP4L45LW.js → chunk-4NUETVTR.js} +8 -8
- package/dist/{chunk-UPVP6YGJ.js → chunk-53OTEDBS.js} +3 -3
- package/dist/{chunk-VY54AX4T.js → chunk-6YSYQZRH.js} +3 -3
- package/dist/{chunk-NGERWFSA.js → chunk-73D2HKA3.js} +14 -11
- package/dist/chunk-73D2HKA3.js.map +1 -0
- package/dist/{chunk-EFVTQ7YB.js → chunk-7LC5IG5K.js} +4 -4
- package/dist/{chunk-DYETLPUT.js → chunk-A2TATHHJ.js} +2 -2
- package/dist/{chunk-QU5BI2HC.js → chunk-AC3HU25W.js} +4 -4
- package/dist/{chunk-CO2I3CQI.js → chunk-AUHYXXCA.js} +4 -4
- package/dist/{chunk-RZCLRWNY.js → chunk-B4YFG5TB.js} +6 -6
- package/dist/{chunk-DBXCFLAR.js → chunk-BIKWXLX7.js} +5 -5
- package/dist/{chunk-GWYD7YBK.js → chunk-CZPVVFCF.js} +5 -5
- package/dist/{chunk-BWE2I5QG.js → chunk-F4PPZ4SI.js} +2 -2
- package/dist/{chunk-RQURMAPA.js → chunk-FEFLAITR.js} +5 -5
- package/dist/{chunk-HO2ACZES.js → chunk-FELVUIIM.js} +2 -2
- package/dist/{chunk-EPFXLXCW.js → chunk-I2DEYQLZ.js} +4 -4
- package/dist/{chunk-WGNI24H2.js → chunk-I7BSBUPC.js} +9 -9
- package/dist/{chunk-7QU6XENE.js → chunk-PAWAGULH.js} +2 -2
- package/dist/{chunk-6PIGTR4D.js → chunk-PFEBKXFD.js} +14 -14
- package/dist/{chunk-NAT2H7J4.js → chunk-QDU7YDME.js} +46 -26
- package/dist/chunk-QDU7YDME.js.map +1 -0
- package/dist/{chunk-3INUZQTR.js → chunk-S32GHLVU.js} +3 -3
- package/dist/{chunk-7Q6BG5AN.js → chunk-THKVKVRF.js} +3 -3
- package/dist/{chunk-VVNXQ4XS.js → chunk-UEEW5TW7.js} +8 -8
- package/dist/{chunk-LHOKRCNF.js → chunk-UTOC2NHC.js} +3 -3
- package/dist/{chunk-HNWZO2XU.js → chunk-WDBDFLH3.js} +4 -4
- package/dist/{chunk-WHJYOO5H.js → chunk-WJUKN4L4.js} +2 -2
- package/dist/{chunk-OKLEPEWZ.js → chunk-XENTK32L.js} +5 -2
- package/dist/chunk-XENTK32L.js.map +1 -0
- package/dist/cloud-backends.js +4 -4
- package/dist/{control-plane-UKKYXHIQ.js → control-plane-YQFX2ILX.js} +16 -16
- package/dist/{cp-hub-upload-BM2OLTOS.js → cp-hub-upload-RMJ3XJ65.js} +6 -6
- package/dist/{custody-client-NPXJ46TB.js → custody-client-L4FEFW4C.js} +3 -3
- package/dist/{deploy-hetzner-Y3ILCDRF.js → deploy-hetzner-EECQ4JCM.js} +8 -8
- package/dist/{dist-5OGQ3CJQ.js → dist-3BKIPZR3.js} +3 -3
- package/dist/{dist-ZNYS7CVF.js → dist-C5B6NGBO.js} +5 -5
- package/dist/{dist-DOEGENNW.js → dist-E5EXDZG4.js} +7 -7
- package/dist/{dist-EOGD7KD6.js → dist-NFF2KEMB.js} +7 -7
- package/dist/{dist-7B3VCLZI.js → dist-NTUHJOK3.js} +7 -7
- package/dist/{dist-SMDXLPZO.js → dist-PTYASENV.js} +2 -2
- package/dist/{dist-MUTFY7FA.js → dist-Q4UDCSZQ.js} +7 -7
- package/dist/{dist-VTLQKZ2E.js → dist-TXFTYNNE.js} +6 -6
- package/dist/{dist-A5ZEIVAW.js → dist-XUOHE22G.js} +8 -8
- package/dist/{dist-ZJIJHCZB.js → dist-Z2TPC3EN.js} +7 -7
- package/dist/{host-reach-drainer-ZJU2STQQ.js → host-reach-drainer-N4JSFUBY.js} +2 -2
- package/dist/hub-3HPYOV5O.js +37 -0
- package/dist/{hub-adopt-OA336ZXZ.js → hub-adopt-NCCCMMXL.js} +6 -6
- package/dist/{hub-docker-target-JKFCABK4.js → hub-docker-target-ZKAWXVPH.js} +11 -11
- package/dist/index.js +48 -48
- package/dist/prepare-KIVDQRMN.js +41 -0
- package/dist/prepared-custody-EFSOOAIQ.js +36 -0
- package/dist/{prepared-state-LNQ7DYSU-AR5RMXAO.js → prepared-state-LNQ7DYSU-2YFSDOCV.js} +3 -3
- package/dist/{publish-credentials-3SQXX45P.js → publish-credentials-F2A5OVCO.js} +7 -7
- package/dist/{registry-AFKV3EO2.js → registry-O3X2CDDU.js} +4 -4
- package/dist/{relay-QH6OEY2V.js → relay-3T57T4RI.js} +7 -7
- package/dist/{remote-docker-share-RMS6IB5X.js → remote-docker-share-QDCBM5UM.js} +8 -8
- package/dist/{tool-grant-push-T6DRBY3W.js → tool-grant-push-6ISDIJKH.js} +3 -3
- package/package.json +1 -1
- package/runtime/_shared/ctl.cjs +4 -1
- package/runtime/digitalocean/ctl.cjs +4 -1
- package/runtime/docker/packages/ctl/dist/bin.cjs +4 -1
- package/runtime/e2b/ctl.cjs +4 -1
- package/runtime/hetzner/ctl.cjs +4 -1
- 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/middleware-build-manifest.js +3 -3
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
- package/runtime/hub/apps/hub/{chunk-UQ5XNPOF.js → chunk-2WB3A5IN.js} +3 -3
- package/runtime/hub/apps/hub/{chunk-3AD3MYNV.js → chunk-BI4MPGQT.js} +9 -9
- package/runtime/hub/apps/hub/{chunk-GBYD2ODL.js → chunk-G6FJR7TN.js} +4 -1
- package/runtime/hub/apps/hub/{chunk-3ZDBZYOY.js → chunk-QGAP34GN.js} +4 -4
- package/runtime/hub/apps/hub/{chunk-H5SUXDZA.js → chunk-QWSP6WJ2.js} +3 -3
- package/runtime/hub/apps/hub/{chunk-WHGY7HOC.js → chunk-RPPOFMPA.js} +2 -2
- package/runtime/hub/apps/hub/{dist-TH2JZYZY.js → dist-4F6XEJHK.js} +5 -5
- package/runtime/hub/apps/hub/{dist-XPRGHQH2.js → dist-A3JOKKYG.js} +4 -4
- package/runtime/hub/apps/hub/{dist-CMVSARW5.js → dist-F547YSBE.js} +5 -5
- package/runtime/hub/apps/hub/{dist-EOGGFZZS.js → dist-FEHV4PC7.js} +4 -4
- package/runtime/hub/apps/hub/{dist-Z2Y5F7AF.js → dist-P7NT6VLK.js} +4 -4
- package/runtime/hub/apps/hub/{dist-LJBHOO3K.js → dist-W2YXTEQN.js} +1 -1
- package/runtime/hub/apps/hub/{dist-37EKQ6RZ.js → dist-W5SGEJLA.js} +4 -4
- package/runtime/hub/apps/hub/{dist-R77W6WJ5.js → dist-YB3Y2XDK.js} +4 -4
- package/runtime/hub/apps/hub/{dist-EGXZRZH2.js → dist-ZTJMZLED.js} +3 -3
- package/runtime/hub/apps/hub/{hub-worker-DXVMUQWF.js → hub-worker-I5QBLSRU.js} +6 -6
- package/runtime/hub/apps/hub/{prepared-state-LNQ7DYSU-ABC2EQVI.js → prepared-state-LNQ7DYSU-4I7FNNNS.js} +2 -2
- package/runtime/hub/apps/hub/server.js +12 -12
- package/runtime/hub/apps/hub/tsconfig.tsbuildinfo +1 -1
- package/runtime/relay/bin.cjs +4 -1
- package/runtime/vercel/ctl.cjs +4 -1
- package/dist/chunk-NAT2H7J4.js.map +0 -1
- package/dist/chunk-NGERWFSA.js.map +0 -1
- package/dist/chunk-OKLEPEWZ.js.map +0 -1
- package/dist/hub-Q4VOF4WN.js +0 -37
- package/dist/prepare-GFWWKWGF.js +0 -41
- package/dist/prepared-custody-KU4PDVBT.js +0 -36
- /package/dist/{_cloud-attach-HKRHYCY7.js.map → _cloud-attach-EUO2OL7W.js.map} +0 -0
- /package/dist/{chunk-GWKGSXDC.js.map → chunk-2JHPGPLE.js.map} +0 -0
- /package/dist/{chunk-THUST2QK.js.map → chunk-4KYP775X.js.map} +0 -0
- /package/dist/{chunk-HP4L45LW.js.map → chunk-4NUETVTR.js.map} +0 -0
- /package/dist/{chunk-UPVP6YGJ.js.map → chunk-53OTEDBS.js.map} +0 -0
- /package/dist/{chunk-VY54AX4T.js.map → chunk-6YSYQZRH.js.map} +0 -0
- /package/dist/{chunk-EFVTQ7YB.js.map → chunk-7LC5IG5K.js.map} +0 -0
- /package/dist/{chunk-DYETLPUT.js.map → chunk-A2TATHHJ.js.map} +0 -0
- /package/dist/{chunk-QU5BI2HC.js.map → chunk-AC3HU25W.js.map} +0 -0
- /package/dist/{chunk-CO2I3CQI.js.map → chunk-AUHYXXCA.js.map} +0 -0
- /package/dist/{chunk-RZCLRWNY.js.map → chunk-B4YFG5TB.js.map} +0 -0
- /package/dist/{chunk-DBXCFLAR.js.map → chunk-BIKWXLX7.js.map} +0 -0
- /package/dist/{chunk-GWYD7YBK.js.map → chunk-CZPVVFCF.js.map} +0 -0
- /package/dist/{chunk-BWE2I5QG.js.map → chunk-F4PPZ4SI.js.map} +0 -0
- /package/dist/{chunk-RQURMAPA.js.map → chunk-FEFLAITR.js.map} +0 -0
- /package/dist/{chunk-HO2ACZES.js.map → chunk-FELVUIIM.js.map} +0 -0
- /package/dist/{chunk-EPFXLXCW.js.map → chunk-I2DEYQLZ.js.map} +0 -0
- /package/dist/{chunk-WGNI24H2.js.map → chunk-I7BSBUPC.js.map} +0 -0
- /package/dist/{chunk-7QU6XENE.js.map → chunk-PAWAGULH.js.map} +0 -0
- /package/dist/{chunk-6PIGTR4D.js.map → chunk-PFEBKXFD.js.map} +0 -0
- /package/dist/{chunk-3INUZQTR.js.map → chunk-S32GHLVU.js.map} +0 -0
- /package/dist/{chunk-7Q6BG5AN.js.map → chunk-THKVKVRF.js.map} +0 -0
- /package/dist/{chunk-VVNXQ4XS.js.map → chunk-UEEW5TW7.js.map} +0 -0
- /package/dist/{chunk-LHOKRCNF.js.map → chunk-UTOC2NHC.js.map} +0 -0
- /package/dist/{chunk-HNWZO2XU.js.map → chunk-WDBDFLH3.js.map} +0 -0
- /package/dist/{chunk-WHJYOO5H.js.map → chunk-WJUKN4L4.js.map} +0 -0
- /package/dist/{control-plane-UKKYXHIQ.js.map → control-plane-YQFX2ILX.js.map} +0 -0
- /package/dist/{cp-hub-upload-BM2OLTOS.js.map → cp-hub-upload-RMJ3XJ65.js.map} +0 -0
- /package/dist/{custody-client-NPXJ46TB.js.map → custody-client-L4FEFW4C.js.map} +0 -0
- /package/dist/{deploy-hetzner-Y3ILCDRF.js.map → deploy-hetzner-EECQ4JCM.js.map} +0 -0
- /package/dist/{dist-5OGQ3CJQ.js.map → dist-3BKIPZR3.js.map} +0 -0
- /package/dist/{dist-7B3VCLZI.js.map → dist-C5B6NGBO.js.map} +0 -0
- /package/dist/{dist-DOEGENNW.js.map → dist-E5EXDZG4.js.map} +0 -0
- /package/dist/{dist-EOGD7KD6.js.map → dist-NFF2KEMB.js.map} +0 -0
- /package/dist/{dist-A5ZEIVAW.js.map → dist-NTUHJOK3.js.map} +0 -0
- /package/dist/{dist-MUTFY7FA.js.map → dist-PTYASENV.js.map} +0 -0
- /package/dist/{dist-SMDXLPZO.js.map → dist-Q4UDCSZQ.js.map} +0 -0
- /package/dist/{dist-VTLQKZ2E.js.map → dist-TXFTYNNE.js.map} +0 -0
- /package/dist/{dist-ZJIJHCZB.js.map → dist-XUOHE22G.js.map} +0 -0
- /package/dist/{dist-ZNYS7CVF.js.map → dist-Z2TPC3EN.js.map} +0 -0
- /package/dist/{host-reach-drainer-ZJU2STQQ.js.map → host-reach-drainer-N4JSFUBY.js.map} +0 -0
- /package/dist/{hub-Q4VOF4WN.js.map → hub-3HPYOV5O.js.map} +0 -0
- /package/dist/{hub-adopt-OA336ZXZ.js.map → hub-adopt-NCCCMMXL.js.map} +0 -0
- /package/dist/{hub-docker-target-JKFCABK4.js.map → hub-docker-target-ZKAWXVPH.js.map} +0 -0
- /package/dist/{prepare-GFWWKWGF.js.map → prepare-KIVDQRMN.js.map} +0 -0
- /package/dist/{prepared-custody-KU4PDVBT.js.map → prepared-custody-EFSOOAIQ.js.map} +0 -0
- /package/dist/{prepared-state-LNQ7DYSU-AR5RMXAO.js.map → prepared-state-LNQ7DYSU-2YFSDOCV.js.map} +0 -0
- /package/dist/{publish-credentials-3SQXX45P.js.map → publish-credentials-F2A5OVCO.js.map} +0 -0
- /package/dist/{registry-AFKV3EO2.js.map → registry-O3X2CDDU.js.map} +0 -0
- /package/dist/{relay-QH6OEY2V.js.map → relay-3T57T4RI.js.map} +0 -0
- /package/dist/{remote-docker-share-RMS6IB5X.js.map → remote-docker-share-QDCBM5UM.js.map} +0 -0
- /package/dist/{tool-grant-push-T6DRBY3W.js.map → tool-grant-push-6ISDIJKH.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{XIx10ozuCZRzwSsiCF_5t → nDHi_1342DzyGDC14ocQo}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{XIx10ozuCZRzwSsiCF_5t → nDHi_1342DzyGDC14ocQo}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{XIx10ozuCZRzwSsiCF_5t → nDHi_1342DzyGDC14ocQo}/_ssgManifest.js +0 -0
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
destroyControlPlaneOnHetzner,
|
|
5
5
|
readHetznerCredStatus,
|
|
6
6
|
updateControlPlaneOnHetzner
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AC3HU25W.js";
|
|
8
8
|
import {
|
|
9
9
|
controlPlaneDeployPath,
|
|
10
10
|
syncAgentboxSshConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XENTK32L.js";
|
|
12
12
|
import {
|
|
13
13
|
loadEffectiveConfig
|
|
14
14
|
} from "./chunk-7LNXTPEE.js";
|
|
@@ -133,7 +133,7 @@ async function purgeLocalControlPlaneState(opts) {
|
|
|
133
133
|
} catch {
|
|
134
134
|
}
|
|
135
135
|
try {
|
|
136
|
-
const { removeHubDockerTarget } = await import("./hub-docker-target-
|
|
136
|
+
const { removeHubDockerTarget } = await import("./hub-docker-target-ZKAWXVPH.js");
|
|
137
137
|
await removeHubDockerTarget(() => {
|
|
138
138
|
});
|
|
139
139
|
} catch {
|
|
@@ -150,4 +150,4 @@ export {
|
|
|
150
150
|
runHetznerDestroy,
|
|
151
151
|
purgeLocalControlPlaneState
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-7LC5IG5K.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveStagedRuntimeRoot,
|
|
12
12
|
writeManagedSecrets,
|
|
13
13
|
writePreparedStateRaw
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XENTK32L.js";
|
|
15
15
|
|
|
16
16
|
// ../../packages/sandbox-e2b/dist/chunk-2LAU2QE4.js
|
|
17
17
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -330,4 +330,4 @@ export {
|
|
|
330
330
|
ensureE2bBaseTemplate,
|
|
331
331
|
currentE2bBaseFileHashes
|
|
332
332
|
};
|
|
333
|
-
//# sourceMappingURL=chunk-
|
|
333
|
+
//# sourceMappingURL=chunk-A2TATHHJ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createCloudProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4KYP775X.js";
|
|
5
5
|
import {
|
|
6
6
|
detectPortless,
|
|
7
7
|
portlessDoctorRow,
|
|
8
8
|
portlessServiceStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I2DEYQLZ.js";
|
|
10
10
|
import {
|
|
11
11
|
SshTunnelManager,
|
|
12
12
|
UserFacingError,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
waitForSsh,
|
|
36
36
|
writeManagedSecrets,
|
|
37
37
|
writePreparedStateRaw
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XENTK32L.js";
|
|
39
39
|
import {
|
|
40
40
|
loadEffectiveConfig,
|
|
41
41
|
mergeConfigYaml
|
|
@@ -2585,4 +2585,4 @@ export {
|
|
|
2585
2585
|
hetznerProvider,
|
|
2586
2586
|
providerModule
|
|
2587
2587
|
};
|
|
2588
|
-
//# sourceMappingURL=chunk-
|
|
2588
|
+
//# sourceMappingURL=chunk-AC3HU25W.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
generateRelayToken
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I2DEYQLZ.js";
|
|
5
5
|
import {
|
|
6
6
|
registrationToBoxRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-THKVKVRF.js";
|
|
8
8
|
import {
|
|
9
9
|
allocateProjectIndex,
|
|
10
10
|
boxSshDirForProvider,
|
|
11
11
|
defaultBoxSshDir,
|
|
12
12
|
readState,
|
|
13
13
|
recordBox
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XENTK32L.js";
|
|
15
15
|
|
|
16
16
|
// src/control-plane/hub-adopt.ts
|
|
17
17
|
import { execa } from "execa";
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
hubBoxToRegistration,
|
|
149
149
|
adoptHubBox
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-AUHYXXCA.js.map
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
isShareablePreparedProvider,
|
|
4
4
|
localBakeBlocksAdoption,
|
|
5
5
|
resolveCustodyTarget
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QDU7YDME.js";
|
|
7
7
|
import {
|
|
8
8
|
pullPreparedFromCustody,
|
|
9
9
|
pushPreparedToCustody,
|
|
10
10
|
writePreparedToCustodyStore
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4KYP775X.js";
|
|
12
12
|
import {
|
|
13
13
|
getRuntimeProviderNames,
|
|
14
14
|
loadProviderModule
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I7BSBUPC.js";
|
|
16
16
|
import {
|
|
17
17
|
readPreparedStateRaw
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XENTK32L.js";
|
|
19
19
|
import {
|
|
20
20
|
boxImageConfigKey,
|
|
21
21
|
isProviderKind,
|
|
@@ -85,7 +85,7 @@ async function sharePreparedBase(providerName, log) {
|
|
|
85
85
|
if (!isShareablePreparedProvider(providerName)) return;
|
|
86
86
|
try {
|
|
87
87
|
if (isControlBox()) {
|
|
88
|
-
const { FsCustodyStore } = await import("./dist-
|
|
88
|
+
const { FsCustodyStore } = await import("./dist-3BKIPZR3.js");
|
|
89
89
|
await writePreparedToCustodyStore(providerName, new FsCustodyStore(), log);
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
adoptPreparedBases,
|
|
107
107
|
sharePreparedBase
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-B4YFG5TB.js.map
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
applyControlPlaneConfig,
|
|
4
4
|
resolveHubDeployAssets
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AC3HU25W.js";
|
|
6
6
|
import {
|
|
7
7
|
createCloudProvider
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4KYP775X.js";
|
|
9
9
|
import {
|
|
10
10
|
detectPortless,
|
|
11
11
|
portlessDoctorRow,
|
|
12
12
|
portlessServiceStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-I2DEYQLZ.js";
|
|
14
14
|
import {
|
|
15
15
|
SshTunnelManager,
|
|
16
16
|
UserFacingError,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
stageOpencodeStaticForUpload,
|
|
39
39
|
waitForSsh,
|
|
40
40
|
writePreparedStateRaw
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XENTK32L.js";
|
|
42
42
|
import {
|
|
43
43
|
loadEffectiveConfig,
|
|
44
44
|
setConfigValue,
|
|
@@ -2268,4 +2268,4 @@ export {
|
|
|
2268
2268
|
digitaloceanProvider,
|
|
2269
2269
|
providerModule
|
|
2270
2270
|
};
|
|
2271
|
-
//# sourceMappingURL=chunk-
|
|
2271
|
+
//# sourceMappingURL=chunk-BIKWXLX7.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
registryRefForSha,
|
|
10
10
|
resolveContextFilesFrom,
|
|
11
11
|
writePreparedStateRaw
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XENTK32L.js";
|
|
13
13
|
|
|
14
14
|
// ../../packages/sandbox-docker/dist/chunk-EAAMZ4OS.js
|
|
15
15
|
import { dirname as dirname2, resolve as resolve2 } from "path";
|
|
@@ -214,7 +214,7 @@ async function buildImage(opts = {}) {
|
|
|
214
214
|
return ref;
|
|
215
215
|
}
|
|
216
216
|
async function pullOrBuild(ref, fingerprint, opts = {}) {
|
|
217
|
-
const { writePreparedDockerState: writePreparedDockerState2 } = await import("./prepared-state-LNQ7DYSU-
|
|
217
|
+
const { writePreparedDockerState: writePreparedDockerState2 } = await import("./prepared-state-LNQ7DYSU-2YFSDOCV.js");
|
|
218
218
|
const registry = opts.registry ?? BOX_IMAGE_REGISTRY;
|
|
219
219
|
const allowPull = opts.allowPull !== false;
|
|
220
220
|
if (allowPull && registry && fingerprint) {
|
|
@@ -267,7 +267,7 @@ async function pullOrBuild(ref, fingerprint, opts = {}) {
|
|
|
267
267
|
return { source: "built" };
|
|
268
268
|
}
|
|
269
269
|
async function ensureImage(ref = DEFAULT_BOX_IMAGE, opts = {}) {
|
|
270
|
-
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2, preparedMatches: preparedMatches2 } = await import("./prepared-state-LNQ7DYSU-
|
|
270
|
+
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2, preparedMatches: preparedMatches2 } = await import("./prepared-state-LNQ7DYSU-2YFSDOCV.js");
|
|
271
271
|
const claudeInstall = opts.claudeInstall ?? await resolveClaudeInstallMode();
|
|
272
272
|
const rawFingerprint = await computeDockerContextFingerprint2({
|
|
273
273
|
contextDir: opts.contextDir
|
|
@@ -321,7 +321,7 @@ function classifyDockerBaseFreshness(input) {
|
|
|
321
321
|
return { state: "fresh" };
|
|
322
322
|
}
|
|
323
323
|
async function evaluateDockerBaseFreshness(opts = {}) {
|
|
324
|
-
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2 } = await import("./prepared-state-LNQ7DYSU-
|
|
324
|
+
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2 } = await import("./prepared-state-LNQ7DYSU-2YFSDOCV.js");
|
|
325
325
|
const ref = opts.ref ?? DEFAULT_BOX_IMAGE;
|
|
326
326
|
const imagePresent = await imageExists(ref);
|
|
327
327
|
if (!imagePresent) return { state: "unprepared" };
|
|
@@ -408,4 +408,4 @@ export {
|
|
|
408
408
|
writePreparedDockerState,
|
|
409
409
|
preparedMatches
|
|
410
410
|
};
|
|
411
|
-
//# sourceMappingURL=chunk-
|
|
411
|
+
//# sourceMappingURL=chunk-CZPVVFCF.js.map
|
|
@@ -5,7 +5,7 @@ async function ensureHostReachDrainer(box) {
|
|
|
5
5
|
try {
|
|
6
6
|
if ((box.provider ?? "docker") === "docker") return;
|
|
7
7
|
if (!box.cloud?.controlPlaneUrl) return;
|
|
8
|
-
const { ensureRelay } = await import("./dist-
|
|
8
|
+
const { ensureRelay } = await import("./dist-C5B6NGBO.js");
|
|
9
9
|
await ensureRelay();
|
|
10
10
|
} catch {
|
|
11
11
|
}
|
|
@@ -14,4 +14,4 @@ async function ensureHostReachDrainer(box) {
|
|
|
14
14
|
export {
|
|
15
15
|
ensureHostReachDrainer
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-F4PPZ4SI.js.map
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
renderInnerCommand,
|
|
14
14
|
resolveCloudCheckpoint,
|
|
15
15
|
writeCloudCheckpointManifest
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4KYP775X.js";
|
|
17
17
|
import {
|
|
18
18
|
detectPortless,
|
|
19
19
|
portlessDoctorRow,
|
|
20
20
|
portlessServiceStatus
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-I2DEYQLZ.js";
|
|
22
22
|
import {
|
|
23
23
|
BUILD_CONTEXT_DIR,
|
|
24
24
|
computeDockerContextFingerprint
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CZPVVFCF.js";
|
|
26
26
|
import {
|
|
27
27
|
BOX_IMAGE_REGISTRY,
|
|
28
28
|
SshTunnelManager,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
sshExec,
|
|
39
39
|
sshOptArgs,
|
|
40
40
|
writePreparedStateRaw
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XENTK32L.js";
|
|
42
42
|
import {
|
|
43
43
|
hashProjectPath,
|
|
44
44
|
loadEffectiveConfig,
|
|
@@ -1305,4 +1305,4 @@ export {
|
|
|
1305
1305
|
remoteDockerProvider,
|
|
1306
1306
|
providerModule
|
|
1307
1307
|
};
|
|
1308
|
-
//# sourceMappingURL=chunk-
|
|
1308
|
+
//# sourceMappingURL=chunk-FEFLAITR.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
loadProviderModule
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I7BSBUPC.js";
|
|
5
5
|
import {
|
|
6
6
|
isProviderKind
|
|
7
7
|
} from "./chunk-7LNXTPEE.js";
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
cloudBackendForProvider,
|
|
22
22
|
currentCloudBaseFingerprintLive
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-FELVUIIM.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
RELAY_CONTAINER_NAME,
|
|
5
5
|
RELAY_IMAGE_REF,
|
|
6
6
|
RELAY_NETWORK_NAME
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-THKVKVRF.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_BOX_IMAGE,
|
|
10
10
|
computeDockerContextFingerprint,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
preparedMatches,
|
|
16
16
|
pullOrBuild,
|
|
17
17
|
readPreparedDockerState
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CZPVVFCF.js";
|
|
19
19
|
import {
|
|
20
20
|
AmbiguousBoxError,
|
|
21
21
|
BOX_HOME,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
syncAgentboxSshConfig,
|
|
80
80
|
trustWorkspace,
|
|
81
81
|
writeClaudeMergedRegistries
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-XENTK32L.js";
|
|
83
83
|
import {
|
|
84
84
|
hashProjectPath,
|
|
85
85
|
loadEffectiveConfig,
|
|
@@ -8471,4 +8471,4 @@ export {
|
|
|
8471
8471
|
ensureBoxBrowser,
|
|
8472
8472
|
ensureBoxBrowserShowingApp
|
|
8473
8473
|
};
|
|
8474
|
-
//# sourceMappingURL=chunk-
|
|
8474
|
+
//# sourceMappingURL=chunk-I2DEYQLZ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
isSupportedApiVersion,
|
|
5
5
|
pluginForProvider,
|
|
6
6
|
pluginProviderNames
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XENTK32L.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-C5B6NGBO.js"),
|
|
17
|
+
daytona: () => import("./dist-NFF2KEMB.js"),
|
|
18
|
+
hetzner: () => import("./dist-NTUHJOK3.js"),
|
|
19
|
+
vercel: () => import("./dist-Z2TPC3EN.js"),
|
|
20
|
+
e2b: () => import("./dist-E5EXDZG4.js"),
|
|
21
|
+
digitalocean: () => import("./dist-XUOHE22G.js"),
|
|
22
|
+
"remote-docker": () => import("./dist-Q4UDCSZQ.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-I7BSBUPC.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
AGENT_SYNC_SPECS,
|
|
7
7
|
isRealAgentCredential,
|
|
8
8
|
readCredentialBackup
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XENTK32L.js";
|
|
10
10
|
|
|
11
11
|
// src/control-plane/custody-client.ts
|
|
12
12
|
import { createHash } from "crypto";
|
|
@@ -190,4 +190,4 @@ export {
|
|
|
190
190
|
planPush,
|
|
191
191
|
collectAgentCredentialUploads
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=chunk-
|
|
193
|
+
//# sourceMappingURL=chunk-PAWAGULH.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
pinAdoptedBase
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B4YFG5TB.js";
|
|
5
5
|
import {
|
|
6
6
|
localExposedLoopbackUrl,
|
|
7
7
|
resolveCustodyTarget,
|
|
8
8
|
resolveHubApiClient,
|
|
9
9
|
resolveHubApiTarget
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QDU7YDME.js";
|
|
11
11
|
import {
|
|
12
12
|
getProvider,
|
|
13
13
|
isKnownProvider
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2JHPGPLE.js";
|
|
15
15
|
import {
|
|
16
16
|
dockerProviderRefusal
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UTOC2NHC.js";
|
|
18
18
|
import {
|
|
19
19
|
controlBoxKnowsHost
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4NUETVTR.js";
|
|
21
21
|
import {
|
|
22
22
|
HubApiClient,
|
|
23
23
|
HubApiError
|
|
@@ -26,23 +26,23 @@ import {
|
|
|
26
26
|
deadlineFetch,
|
|
27
27
|
hostReachable,
|
|
28
28
|
pullPreparedFromCustody
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4KYP775X.js";
|
|
30
30
|
import {
|
|
31
31
|
SHARED_CLAUDE_VOLUME,
|
|
32
32
|
SHARED_CODEX_VOLUME,
|
|
33
33
|
SHARED_OPENCODE_VOLUME,
|
|
34
34
|
volumeExists
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-I2DEYQLZ.js";
|
|
36
36
|
import {
|
|
37
37
|
getRuntimeProviderNames
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-I7BSBUPC.js";
|
|
39
39
|
import {
|
|
40
40
|
DEFAULT_BOX_IMAGE,
|
|
41
41
|
imageInfo
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-CZPVVFCF.js";
|
|
43
43
|
import {
|
|
44
44
|
UserFacingError
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-XENTK32L.js";
|
|
46
46
|
import {
|
|
47
47
|
loadEffectiveConfig,
|
|
48
48
|
parseProviderSpec,
|
|
@@ -190,7 +190,7 @@ async function renderDocker(status) {
|
|
|
190
190
|
}
|
|
191
191
|
async function daytonaStatus() {
|
|
192
192
|
try {
|
|
193
|
-
const mod = await import("./dist-
|
|
193
|
+
const mod = await import("./dist-NFF2KEMB.js");
|
|
194
194
|
return await mod.getDaytonaStatus();
|
|
195
195
|
} catch (err) {
|
|
196
196
|
return {
|
|
@@ -201,7 +201,7 @@ async function daytonaStatus() {
|
|
|
201
201
|
}
|
|
202
202
|
async function e2bStatus() {
|
|
203
203
|
try {
|
|
204
|
-
const mod = await import("./dist-
|
|
204
|
+
const mod = await import("./dist-E5EXDZG4.js");
|
|
205
205
|
const cred = mod.readE2bCredStatus();
|
|
206
206
|
if (cred.auth === "none") {
|
|
207
207
|
return { configured: false, reason: "not configured \u2014 run `agentbox e2b login`" };
|
|
@@ -324,7 +324,7 @@ async function showStatus(opts) {
|
|
|
324
324
|
process.stdout.write(lines.join("\n") + "\n");
|
|
325
325
|
}
|
|
326
326
|
async function hubIsCoLocated() {
|
|
327
|
-
const { resolveHubTarget } = await import("./hub-
|
|
327
|
+
const { resolveHubTarget } = await import("./hub-3HPYOV5O.js");
|
|
328
328
|
const target = await resolveHubTarget(void 0).catch(() => null);
|
|
329
329
|
if (target?.mode === "local") return true;
|
|
330
330
|
return await localExposedLoopbackUrl().catch(() => null) !== null;
|
|
@@ -505,4 +505,4 @@ export {
|
|
|
505
505
|
runPrepare,
|
|
506
506
|
prepareCommand
|
|
507
507
|
};
|
|
508
|
-
//# sourceMappingURL=chunk-
|
|
508
|
+
//# sourceMappingURL=chunk-PFEBKXFD.js.map
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
CustodyClient,
|
|
4
4
|
collectAgentCredentialUploads,
|
|
5
5
|
planPush
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PAWAGULH.js";
|
|
7
7
|
import {
|
|
8
8
|
hubApiTargetFrom,
|
|
9
9
|
withHubClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-53OTEDBS.js";
|
|
11
11
|
import {
|
|
12
12
|
deployControlPlaneToDigitalOcean,
|
|
13
13
|
destroyControlPlaneOnDigitalOcean,
|
|
14
14
|
readDigitalOceanCredStatus,
|
|
15
15
|
updateControlPlaneOnDigitalOcean
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BIKWXLX7.js";
|
|
17
17
|
import {
|
|
18
18
|
providerForCreate
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2JHPGPLE.js";
|
|
20
20
|
import {
|
|
21
21
|
HubApiClient,
|
|
22
22
|
HubApiError
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
runHetznerDeploy,
|
|
31
31
|
runHetznerDestroy,
|
|
32
32
|
runHetznerUpdate
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7LC5IG5K.js";
|
|
34
34
|
import {
|
|
35
35
|
loadControlPlaneEnv,
|
|
36
36
|
readControlPlaneEnvMap,
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
} from "./chunk-5F34YIRI.js";
|
|
39
39
|
import {
|
|
40
40
|
handleLifecycleError
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6YSYQZRH.js";
|
|
42
42
|
import {
|
|
43
43
|
detectEgressIp
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-AC3HU25W.js";
|
|
45
45
|
import {
|
|
46
46
|
createGitDeployment,
|
|
47
47
|
createGitProject,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
projectHasEnv,
|
|
54
54
|
resolveVercelApiAuth,
|
|
55
55
|
upsertProjectEnv
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-S32GHLVU.js";
|
|
57
57
|
import {
|
|
58
58
|
applyProjectSeed,
|
|
59
59
|
deadlineFetch,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
pushPreparedToCustody,
|
|
62
62
|
pushProjectSeedToCustody,
|
|
63
63
|
readGitOriginUrl
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-4KYP775X.js";
|
|
65
65
|
import {
|
|
66
66
|
GitHubAppLeaser,
|
|
67
67
|
PostgresStore,
|
|
@@ -72,11 +72,11 @@ import {
|
|
|
72
72
|
makeControlPlaneCreateBox,
|
|
73
73
|
parseGitRemote,
|
|
74
74
|
toAuthedHttpsUrl
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-THKVKVRF.js";
|
|
76
76
|
import {
|
|
77
77
|
getRuntimeProviderNames,
|
|
78
78
|
loadProviderModule
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-I7BSBUPC.js";
|
|
80
80
|
import {
|
|
81
81
|
AGENTBOX_HUB_SSH_ALIAS,
|
|
82
82
|
AGENT_SYNC_SPECS,
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
relayPort,
|
|
90
90
|
resolveSshConfigTarget,
|
|
91
91
|
stopHub
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-XENTK32L.js";
|
|
93
93
|
import {
|
|
94
94
|
GLOBAL_CONFIG_FILE,
|
|
95
95
|
findProjectRoot,
|
|
@@ -784,8 +784,8 @@ function detectExecutionMethod(input) {
|
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
// src/version.ts
|
|
787
|
-
var AGENTBOX_VERSION = true ? "0.29.
|
|
788
|
-
var AGENTBOX_COMMIT = true ? "
|
|
787
|
+
var AGENTBOX_VERSION = true ? "0.29.1" : "0.0.0-dev";
|
|
788
|
+
var AGENTBOX_COMMIT = true ? "97bb1386" : "dev";
|
|
789
789
|
|
|
790
790
|
// src/commands/install-app.ts
|
|
791
791
|
import { intro, log, outro } from "@clack/prompts";
|
|
@@ -1698,7 +1698,7 @@ async function restoreTunnelIfExposed(log3 = () => {
|
|
|
1698
1698
|
async function readLocalRecord() {
|
|
1699
1699
|
try {
|
|
1700
1700
|
const { readFile: readFile6 } = await import("fs/promises");
|
|
1701
|
-
const { controlPlaneDeployPath } = await import("./dist-
|
|
1701
|
+
const { controlPlaneDeployPath } = await import("./dist-PTYASENV.js");
|
|
1702
1702
|
const rec = JSON.parse(
|
|
1703
1703
|
await readFile6(controlPlaneDeployPath(), "utf8")
|
|
1704
1704
|
);
|
|
@@ -2412,7 +2412,7 @@ var setUrlSub = new Command2("set-url").description("Point boxes + the CLI at a
|
|
|
2412
2412
|
try {
|
|
2413
2413
|
const trimmed = await applyControlPlaneUrl(url);
|
|
2414
2414
|
log2.success(`Set relay.controlPlaneUrl = ${trimmed}`);
|
|
2415
|
-
const { ensureHubDockerTarget } = await import("./hub-docker-target-
|
|
2415
|
+
const { ensureHubDockerTarget } = await import("./hub-docker-target-ZKAWXVPH.js");
|
|
2416
2416
|
await ensureHubDockerTarget((line) => {
|
|
2417
2417
|
log2.info(line);
|
|
2418
2418
|
});
|
|
@@ -2430,7 +2430,7 @@ var unsetUrlSub = new Command2("unset-url").description("Stop using a control pl
|
|
|
2430
2430
|
if (!g.existed && !p.existed) {
|
|
2431
2431
|
log2.info("No control plane was configured (relay.controlPlaneUrl not set).");
|
|
2432
2432
|
} else {
|
|
2433
|
-
const { removeHubDockerTarget } = await import("./hub-docker-target-
|
|
2433
|
+
const { removeHubDockerTarget } = await import("./hub-docker-target-ZKAWXVPH.js");
|
|
2434
2434
|
await removeHubDockerTarget((line) => {
|
|
2435
2435
|
log2.info(line);
|
|
2436
2436
|
});
|
|
@@ -2640,7 +2640,7 @@ async function resolveCustodyTarget(urlFlag, opts = {}) {
|
|
|
2640
2640
|
return { url, adminToken };
|
|
2641
2641
|
}
|
|
2642
2642
|
async function resolveCustodyApiTarget(urlFlag, opts = {}) {
|
|
2643
|
-
const { resolveHubTarget } = await import("./hub-
|
|
2643
|
+
const { resolveHubTarget } = await import("./hub-3HPYOV5O.js");
|
|
2644
2644
|
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.";
|
|
2645
2645
|
const target = await resolveHubTarget(urlFlag);
|
|
2646
2646
|
if (target.mode === "remote") {
|
|
@@ -2659,8 +2659,8 @@ async function resolveCustodyApiTarget(urlFlag, opts = {}) {
|
|
|
2659
2659
|
return { url: api.url, apiKey: api.apiKey };
|
|
2660
2660
|
}
|
|
2661
2661
|
async function autostartLocalHub() {
|
|
2662
|
-
const { ensureHub: ensureHub2 } = await import("./dist-
|
|
2663
|
-
const { rehydrateFromState } = await import("./relay-
|
|
2662
|
+
const { ensureHub: ensureHub2 } = await import("./dist-PTYASENV.js");
|
|
2663
|
+
const { rehydrateFromState } = await import("./relay-3T57T4RI.js");
|
|
2664
2664
|
const s = spinner();
|
|
2665
2665
|
s.start("starting local hub");
|
|
2666
2666
|
try {
|
|
@@ -2674,15 +2674,35 @@ async function autostartLocalHub() {
|
|
|
2674
2674
|
return false;
|
|
2675
2675
|
}
|
|
2676
2676
|
}
|
|
2677
|
+
async function restartLocalHubForToken() {
|
|
2678
|
+
const { ensureHub: ensureHub2, stopHub: stopHub2 } = await import("./dist-PTYASENV.js");
|
|
2679
|
+
const { rehydrateFromState } = await import("./relay-3T57T4RI.js");
|
|
2680
|
+
const s = spinner();
|
|
2681
|
+
s.start("hub token missing \u2014 restarting local hub");
|
|
2682
|
+
try {
|
|
2683
|
+
await stopHub2();
|
|
2684
|
+
const ep = await ensureHub2({ onLog: (line) => s.message(line) });
|
|
2685
|
+
await rehydrateFromState();
|
|
2686
|
+
s.stop(`local hub restarted on ${ep.hostUrl}`);
|
|
2687
|
+
return true;
|
|
2688
|
+
} catch (err) {
|
|
2689
|
+
s.stop("local hub failed to restart");
|
|
2690
|
+
log2.error(err instanceof Error ? err.message : String(err));
|
|
2691
|
+
return false;
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2677
2694
|
async function resolveHubApiTarget(urlFlag, opts = {}) {
|
|
2678
|
-
const { resolveHubTarget } = await import("./hub-
|
|
2695
|
+
const { resolveHubTarget } = await import("./hub-3HPYOV5O.js");
|
|
2679
2696
|
let target = await resolveHubTarget(urlFlag, { preferLocal: opts.preferLocal });
|
|
2680
2697
|
if (target.mode === "local" && !opts.quiet) {
|
|
2681
|
-
const { getHubStatus: getHubStatus2 } = await import("./dist-
|
|
2698
|
+
const { getHubStatus: getHubStatus2, readHubToken } = await import("./dist-PTYASENV.js");
|
|
2682
2699
|
const st = await getHubStatus2();
|
|
2683
2700
|
if (!(st.running && st.ui)) {
|
|
2684
2701
|
if (!await autostartLocalHub()) return null;
|
|
2685
2702
|
target = await resolveHubTarget(urlFlag, { preferLocal: opts.preferLocal });
|
|
2703
|
+
} else if (!await readHubToken()) {
|
|
2704
|
+
if (!await restartLocalHubForToken()) return null;
|
|
2705
|
+
target = await resolveHubTarget(urlFlag, { preferLocal: opts.preferLocal });
|
|
2686
2706
|
}
|
|
2687
2707
|
}
|
|
2688
2708
|
const resolved = hubApiTargetFrom(target);
|
|
@@ -3555,7 +3575,7 @@ async function syncBakesWithControlBox(url) {
|
|
|
3555
3575
|
const hubVersion = (await probeControlPlaneStatus(target.url)).version;
|
|
3556
3576
|
const results = [];
|
|
3557
3577
|
const providers = getRuntimeProviderNames().filter(isShareablePreparedProvider);
|
|
3558
|
-
const { adoptPreparedBases } = await import("./prepared-custody-
|
|
3578
|
+
const { adoptPreparedBases } = await import("./prepared-custody-EFSOOAIQ.js");
|
|
3559
3579
|
const pulled = await adoptPreparedBases().catch(() => ({
|
|
3560
3580
|
adopted: [],
|
|
3561
3581
|
pending: []
|
|
@@ -3661,12 +3681,12 @@ async function syncAgentCredentialsIfChanged(url) {
|
|
|
3661
3681
|
async function finalizeControlBoxState(url) {
|
|
3662
3682
|
await syncAgentCredentials(url, { announce: true });
|
|
3663
3683
|
await syncBakesWithControlBox(url);
|
|
3664
|
-
const { syncSharedHosts } = await import("./remote-docker-share-
|
|
3684
|
+
const { syncSharedHosts } = await import("./remote-docker-share-QDCBM5UM.js");
|
|
3665
3685
|
await syncSharedHosts(url, (line) => {
|
|
3666
3686
|
log2.info(line);
|
|
3667
3687
|
});
|
|
3668
3688
|
try {
|
|
3669
|
-
const { ensureHubDockerTarget } = await import("./hub-docker-target-
|
|
3689
|
+
const { ensureHubDockerTarget } = await import("./hub-docker-target-ZKAWXVPH.js");
|
|
3670
3690
|
await ensureHubDockerTarget((line) => {
|
|
3671
3691
|
log2.info(line);
|
|
3672
3692
|
});
|
|
@@ -3756,4 +3776,4 @@ export {
|
|
|
3756
3776
|
syncAgentCredentialsIfChanged,
|
|
3757
3777
|
controlPlaneSubcommands
|
|
3758
3778
|
};
|
|
3759
|
-
//# sourceMappingURL=chunk-
|
|
3779
|
+
//# sourceMappingURL=chunk-QDU7YDME.js.map
|