@madarco/agentbox 0.29.0 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/dist/{_cloud-attach-HKRHYCY7.js → _cloud-attach-7WVNYNJI.js} +11 -11
- package/dist/{chunk-GWKGSXDC.js → chunk-5I7IFACI.js} +2 -2
- package/dist/{chunk-QU5BI2HC.js → chunk-5NVHJS7D.js} +4 -4
- package/dist/{chunk-6PIGTR4D.js → chunk-6UCHNX75.js} +22 -15
- package/dist/{chunk-6PIGTR4D.js.map → chunk-6UCHNX75.js.map} +1 -1
- package/dist/{chunk-VY54AX4T.js → chunk-6YSYQZRH.js} +3 -3
- package/dist/{chunk-DYETLPUT.js → chunk-A2TATHHJ.js} +2 -2
- package/dist/{chunk-CO2I3CQI.js → chunk-AUHYXXCA.js} +4 -4
- package/dist/{chunk-GWYD7YBK.js → chunk-CZPVVFCF.js} +5 -5
- package/dist/{chunk-BWE2I5QG.js → chunk-F4PPZ4SI.js} +2 -2
- package/dist/{chunk-VVNXQ4XS.js → chunk-F77AZT2M.js} +8 -8
- package/dist/{chunk-LHOKRCNF.js → chunk-FCMBVJFQ.js} +3 -3
- package/dist/{chunk-NGERWFSA.js → chunk-HLBK5ZR6.js} +14 -11
- package/dist/chunk-HLBK5ZR6.js.map +1 -0
- package/dist/{chunk-EPFXLXCW.js → chunk-I2DEYQLZ.js} +4 -4
- package/dist/{chunk-THUST2QK.js → chunk-JLVUNDUB.js} +28 -9
- package/dist/chunk-JLVUNDUB.js.map +1 -0
- package/dist/{chunk-DBXCFLAR.js → chunk-JTYWZJIU.js} +5 -5
- package/dist/{chunk-EFVTQ7YB.js → chunk-LEVYTABB.js} +4 -4
- package/dist/{chunk-RQURMAPA.js → chunk-MS4NWRXN.js} +5 -5
- package/dist/{chunk-WHJYOO5H.js → chunk-N6EBPKTJ.js} +46 -4
- package/dist/chunk-N6EBPKTJ.js.map +1 -0
- package/dist/{chunk-HP4L45LW.js → chunk-OUOV4OM2.js} +8 -8
- package/dist/{chunk-WGNI24H2.js → chunk-P5A6MT75.js} +9 -9
- package/dist/{chunk-7QU6XENE.js → chunk-PAWAGULH.js} +2 -2
- package/dist/{chunk-HO2ACZES.js → chunk-RXH634SC.js} +2 -2
- package/dist/{chunk-NAT2H7J4.js → chunk-SXXN7JOC.js} +46 -26
- package/dist/chunk-SXXN7JOC.js.map +1 -0
- package/dist/{chunk-RZCLRWNY.js → chunk-TDW2T3HR.js} +6 -6
- package/dist/{chunk-7Q6BG5AN.js → chunk-THKVKVRF.js} +3 -3
- package/dist/{chunk-3INUZQTR.js → chunk-TPHSVKMX.js} +3 -3
- package/dist/{chunk-HNWZO2XU.js → chunk-WDBDFLH3.js} +4 -4
- package/dist/{chunk-OKLEPEWZ.js → chunk-XENTK32L.js} +5 -2
- package/dist/chunk-XENTK32L.js.map +1 -0
- package/dist/{chunk-UPVP6YGJ.js → chunk-ZCHWZYIN.js} +3 -3
- package/dist/cloud-backends.js +4 -4
- package/dist/{control-plane-UKKYXHIQ.js → control-plane-TOFT56CT.js} +16 -16
- package/dist/{cp-hub-upload-BM2OLTOS.js → cp-hub-upload-OTBR5SL3.js} +6 -6
- package/dist/{custody-client-NPXJ46TB.js → custody-client-L4FEFW4C.js} +3 -3
- package/dist/{deploy-hetzner-Y3ILCDRF.js → deploy-hetzner-EE5CYX4N.js} +8 -8
- package/dist/{dist-5OGQ3CJQ.js → dist-3BKIPZR3.js} +3 -3
- package/dist/{dist-MUTFY7FA.js → dist-7HSAWFRN.js} +7 -7
- package/dist/{dist-A5ZEIVAW.js → dist-BVZBXQ2Y.js} +8 -8
- package/dist/{dist-ZNYS7CVF.js → dist-C5B6NGBO.js} +5 -5
- package/dist/{dist-EOGD7KD6.js → dist-GMIBT6IK.js} +47 -23
- package/dist/{dist-EOGD7KD6.js.map → dist-GMIBT6IK.js.map} +1 -1
- package/dist/{dist-7B3VCLZI.js → dist-JSEXGLYK.js} +7 -7
- package/dist/{dist-SMDXLPZO.js → dist-PTYASENV.js} +2 -2
- package/dist/{dist-VTLQKZ2E.js → dist-RWFKW4IU.js} +6 -6
- package/dist/{dist-ZJIJHCZB.js → dist-XV77P3RW.js} +7 -7
- package/dist/{dist-DOEGENNW.js → dist-Y2GCMA6N.js} +7 -7
- package/dist/{host-reach-drainer-ZJU2STQQ.js → host-reach-drainer-N4JSFUBY.js} +2 -2
- package/dist/hub-53E6EFZB.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-CS5XHSSA.js} +11 -11
- package/dist/index.js +61 -53
- package/dist/index.js.map +1 -1
- package/dist/prepare-VTLE7RCJ.js +41 -0
- package/dist/prepared-custody-ATP6GQGW.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-NAWOHOLK.js} +7 -7
- package/dist/{registry-AFKV3EO2.js → registry-5CPAQ2KN.js} +4 -4
- package/dist/{relay-QH6OEY2V.js → relay-3T57T4RI.js} +7 -7
- package/dist/{remote-docker-share-RMS6IB5X.js → remote-docker-share-XBV76ZAZ.js} +8 -8
- package/dist/{tool-grant-push-T6DRBY3W.js → tool-grant-push-5GJYMC7C.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-3AD3MYNV.js → chunk-CTNPQ75B.js} +9 -9
- package/runtime/hub/apps/hub/{chunk-UQ5XNPOF.js → chunk-DJPQLZ5Y.js} +3 -3
- package/runtime/hub/apps/hub/{chunk-GBYD2ODL.js → chunk-G6FJR7TN.js} +4 -1
- package/runtime/hub/apps/hub/{chunk-WHGY7HOC.js → chunk-GUKVXSIY.js} +27 -8
- 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/{dist-CMVSARW5.js → dist-2G5INR3G.js} +5 -5
- package/runtime/hub/apps/hub/{dist-R77W6WJ5.js → dist-CIB4ZPJW.js} +88 -22
- package/runtime/hub/apps/hub/{dist-37EKQ6RZ.js → dist-PI5ZAQGG.js} +4 -4
- package/runtime/hub/apps/hub/{dist-TH2JZYZY.js → dist-VDPNQEZ7.js} +5 -5
- package/runtime/hub/apps/hub/{dist-EOGGFZZS.js → dist-VZM32WR4.js} +4 -4
- package/runtime/hub/apps/hub/{dist-LJBHOO3K.js → dist-W2YXTEQN.js} +1 -1
- package/runtime/hub/apps/hub/{dist-Z2Y5F7AF.js → dist-Y3LGOZ56.js} +4 -4
- package/runtime/hub/apps/hub/{dist-XPRGHQH2.js → dist-ZOJYJJ26.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-YQCQKCXS.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/chunk-THUST2QK.js.map +0 -1
- package/dist/chunk-WHJYOO5H.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-7WVNYNJI.js.map} +0 -0
- /package/dist/{chunk-GWKGSXDC.js.map → chunk-5I7IFACI.js.map} +0 -0
- /package/dist/{chunk-QU5BI2HC.js.map → chunk-5NVHJS7D.js.map} +0 -0
- /package/dist/{chunk-VY54AX4T.js.map → chunk-6YSYQZRH.js.map} +0 -0
- /package/dist/{chunk-DYETLPUT.js.map → chunk-A2TATHHJ.js.map} +0 -0
- /package/dist/{chunk-CO2I3CQI.js.map → chunk-AUHYXXCA.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-VVNXQ4XS.js.map → chunk-F77AZT2M.js.map} +0 -0
- /package/dist/{chunk-LHOKRCNF.js.map → chunk-FCMBVJFQ.js.map} +0 -0
- /package/dist/{chunk-EPFXLXCW.js.map → chunk-I2DEYQLZ.js.map} +0 -0
- /package/dist/{chunk-DBXCFLAR.js.map → chunk-JTYWZJIU.js.map} +0 -0
- /package/dist/{chunk-EFVTQ7YB.js.map → chunk-LEVYTABB.js.map} +0 -0
- /package/dist/{chunk-RQURMAPA.js.map → chunk-MS4NWRXN.js.map} +0 -0
- /package/dist/{chunk-HP4L45LW.js.map → chunk-OUOV4OM2.js.map} +0 -0
- /package/dist/{chunk-WGNI24H2.js.map → chunk-P5A6MT75.js.map} +0 -0
- /package/dist/{chunk-7QU6XENE.js.map → chunk-PAWAGULH.js.map} +0 -0
- /package/dist/{chunk-HO2ACZES.js.map → chunk-RXH634SC.js.map} +0 -0
- /package/dist/{chunk-RZCLRWNY.js.map → chunk-TDW2T3HR.js.map} +0 -0
- /package/dist/{chunk-7Q6BG5AN.js.map → chunk-THKVKVRF.js.map} +0 -0
- /package/dist/{chunk-3INUZQTR.js.map → chunk-TPHSVKMX.js.map} +0 -0
- /package/dist/{chunk-HNWZO2XU.js.map → chunk-WDBDFLH3.js.map} +0 -0
- /package/dist/{chunk-UPVP6YGJ.js.map → chunk-ZCHWZYIN.js.map} +0 -0
- /package/dist/{control-plane-UKKYXHIQ.js.map → control-plane-TOFT56CT.js.map} +0 -0
- /package/dist/{cp-hub-upload-BM2OLTOS.js.map → cp-hub-upload-OTBR5SL3.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-EE5CYX4N.js.map} +0 -0
- /package/dist/{dist-5OGQ3CJQ.js.map → dist-3BKIPZR3.js.map} +0 -0
- /package/dist/{dist-7B3VCLZI.js.map → dist-7HSAWFRN.js.map} +0 -0
- /package/dist/{dist-A5ZEIVAW.js.map → dist-BVZBXQ2Y.js.map} +0 -0
- /package/dist/{dist-MUTFY7FA.js.map → dist-C5B6NGBO.js.map} +0 -0
- /package/dist/{dist-SMDXLPZO.js.map → dist-JSEXGLYK.js.map} +0 -0
- /package/dist/{dist-VTLQKZ2E.js.map → dist-PTYASENV.js.map} +0 -0
- /package/dist/{dist-ZJIJHCZB.js.map → dist-RWFKW4IU.js.map} +0 -0
- /package/dist/{dist-ZNYS7CVF.js.map → dist-XV77P3RW.js.map} +0 -0
- /package/dist/{dist-DOEGENNW.js.map → dist-Y2GCMA6N.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-53E6EFZB.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-CS5XHSSA.js.map} +0 -0
- /package/dist/{prepare-GFWWKWGF.js.map → prepare-VTLE7RCJ.js.map} +0 -0
- /package/dist/{prepared-custody-KU4PDVBT.js.map → prepared-custody-ATP6GQGW.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-NAWOHOLK.js.map} +0 -0
- /package/dist/{registry-AFKV3EO2.js.map → registry-5CPAQ2KN.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-XBV76ZAZ.js.map} +0 -0
- /package/dist/{tool-grant-push-T6DRBY3W.js.map → tool-grant-push-5GJYMC7C.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{XIx10ozuCZRzwSsiCF_5t → 2P6VYtaUNxtdBvOVMolM-}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{XIx10ozuCZRzwSsiCF_5t → 2P6VYtaUNxtdBvOVMolM-}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{XIx10ozuCZRzwSsiCF_5t → 2P6VYtaUNxtdBvOVMolM-}/_ssgManifest.js +0 -0
|
@@ -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-ZCHWZYIN.js";
|
|
11
11
|
import {
|
|
12
12
|
deployControlPlaneToDigitalOcean,
|
|
13
13
|
destroyControlPlaneOnDigitalOcean,
|
|
14
14
|
readDigitalOceanCredStatus,
|
|
15
15
|
updateControlPlaneOnDigitalOcean
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JTYWZJIU.js";
|
|
17
17
|
import {
|
|
18
18
|
providerForCreate
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5I7IFACI.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-LEVYTABB.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-5NVHJS7D.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-TPHSVKMX.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-JLVUNDUB.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-P5A6MT75.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.2" : "0.0.0-dev";
|
|
788
|
+
var AGENTBOX_COMMIT = true ? "1cd08f2f" : "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-CS5XHSSA.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-CS5XHSSA.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-53E6EFZB.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-53E6EFZB.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-ATP6GQGW.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-XBV76ZAZ.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-CS5XHSSA.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-SXXN7JOC.js.map
|