@madarco/agentbox 0.29.1 → 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 +24 -0
- package/dist/{_cloud-attach-EUO2OL7W.js → _cloud-attach-7WVNYNJI.js} +6 -6
- package/dist/{chunk-2JHPGPLE.js → chunk-5I7IFACI.js} +2 -2
- package/dist/{chunk-AC3HU25W.js → chunk-5NVHJS7D.js} +2 -2
- package/dist/{chunk-PFEBKXFD.js → chunk-6UCHNX75.js} +19 -12
- package/dist/{chunk-PFEBKXFD.js.map → chunk-6UCHNX75.js.map} +1 -1
- package/dist/{chunk-UEEW5TW7.js → chunk-F77AZT2M.js} +2 -2
- package/dist/{chunk-UTOC2NHC.js → chunk-FCMBVJFQ.js} +2 -2
- package/dist/{chunk-73D2HKA3.js → chunk-HLBK5ZR6.js} +5 -5
- package/dist/{chunk-4KYP775X.js → chunk-JLVUNDUB.js} +26 -7
- package/dist/chunk-JLVUNDUB.js.map +1 -0
- package/dist/{chunk-BIKWXLX7.js → chunk-JTYWZJIU.js} +3 -3
- package/dist/{chunk-7LC5IG5K.js → chunk-LEVYTABB.js} +3 -3
- package/dist/{chunk-FEFLAITR.js → chunk-MS4NWRXN.js} +2 -2
- package/dist/{chunk-WJUKN4L4.js → chunk-N6EBPKTJ.js} +45 -3
- package/dist/chunk-N6EBPKTJ.js.map +1 -0
- package/dist/{chunk-4NUETVTR.js → chunk-OUOV4OM2.js} +7 -7
- package/dist/{chunk-I7BSBUPC.js → chunk-P5A6MT75.js} +7 -7
- package/dist/{chunk-FELVUIIM.js → chunk-RXH634SC.js} +2 -2
- package/dist/{chunk-QDU7YDME.js → chunk-SXXN7JOC.js} +18 -18
- package/dist/{chunk-B4YFG5TB.js → chunk-TDW2T3HR.js} +4 -4
- package/dist/{chunk-S32GHLVU.js → chunk-TPHSVKMX.js} +2 -2
- package/dist/{chunk-53OTEDBS.js → chunk-ZCHWZYIN.js} +3 -3
- package/dist/cloud-backends.js +3 -3
- package/dist/{control-plane-YQFX2ILX.js → control-plane-TOFT56CT.js} +10 -10
- package/dist/{cp-hub-upload-RMJ3XJ65.js → cp-hub-upload-OTBR5SL3.js} +2 -2
- package/dist/{deploy-hetzner-EECQ4JCM.js → deploy-hetzner-EE5CYX4N.js} +4 -4
- package/dist/{dist-Q4UDCSZQ.js → dist-7HSAWFRN.js} +3 -3
- package/dist/{dist-XUOHE22G.js → dist-BVZBXQ2Y.js} +4 -4
- package/dist/{dist-NFF2KEMB.js → dist-GMIBT6IK.js} +43 -19
- package/dist/{dist-NFF2KEMB.js.map → dist-GMIBT6IK.js.map} +1 -1
- package/dist/{dist-NTUHJOK3.js → dist-JSEXGLYK.js} +3 -3
- package/dist/{dist-TXFTYNNE.js → dist-RWFKW4IU.js} +2 -2
- package/dist/{dist-Z2TPC3EN.js → dist-XV77P3RW.js} +3 -3
- package/dist/{dist-E5EXDZG4.js → dist-Y2GCMA6N.js} +2 -2
- package/dist/{hub-3HPYOV5O.js → hub-53E6EFZB.js} +11 -11
- package/dist/{hub-docker-target-ZKAWXVPH.js → hub-docker-target-CS5XHSSA.js} +7 -7
- package/dist/index.js +47 -39
- package/dist/index.js.map +1 -1
- package/dist/{prepare-KIVDQRMN.js → prepare-VTLE7RCJ.js} +15 -15
- package/dist/{prepared-custody-EFSOOAIQ.js → prepared-custody-ATP6GQGW.js} +11 -11
- package/dist/{publish-credentials-F2A5OVCO.js → publish-credentials-NAWOHOLK.js} +3 -3
- package/dist/{registry-O3X2CDDU.js → registry-5CPAQ2KN.js} +3 -3
- package/dist/{remote-docker-share-QDCBM5UM.js → remote-docker-share-XBV76ZAZ.js} +4 -4
- package/dist/{tool-grant-push-6ISDIJKH.js → tool-grant-push-5GJYMC7C.js} +2 -2
- package/package.json +1 -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-BI4MPGQT.js → chunk-CTNPQ75B.js} +7 -7
- package/runtime/hub/apps/hub/{chunk-2WB3A5IN.js → chunk-DJPQLZ5Y.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-RPPOFMPA.js → chunk-GUKVXSIY.js} +25 -6
- package/runtime/hub/apps/hub/{dist-F547YSBE.js → dist-2G5INR3G.js} +2 -2
- package/runtime/hub/apps/hub/{dist-YB3Y2XDK.js → dist-CIB4ZPJW.js} +85 -19
- package/runtime/hub/apps/hub/{dist-W5SGEJLA.js → dist-PI5ZAQGG.js} +1 -1
- package/runtime/hub/apps/hub/{dist-4F6XEJHK.js → dist-VDPNQEZ7.js} +2 -2
- package/runtime/hub/apps/hub/{dist-FEHV4PC7.js → dist-VZM32WR4.js} +1 -1
- package/runtime/hub/apps/hub/{dist-P7NT6VLK.js → dist-Y3LGOZ56.js} +1 -1
- package/runtime/hub/apps/hub/{dist-A3JOKKYG.js → dist-ZOJYJJ26.js} +1 -1
- package/runtime/hub/apps/hub/{hub-worker-I5QBLSRU.js → hub-worker-YQCQKCXS.js} +3 -3
- package/runtime/hub/apps/hub/server.js +8 -8
- package/runtime/hub/apps/hub/tsconfig.tsbuildinfo +1 -1
- package/dist/chunk-4KYP775X.js.map +0 -1
- package/dist/chunk-WJUKN4L4.js.map +0 -1
- /package/dist/{_cloud-attach-EUO2OL7W.js.map → _cloud-attach-7WVNYNJI.js.map} +0 -0
- /package/dist/{chunk-2JHPGPLE.js.map → chunk-5I7IFACI.js.map} +0 -0
- /package/dist/{chunk-AC3HU25W.js.map → chunk-5NVHJS7D.js.map} +0 -0
- /package/dist/{chunk-UEEW5TW7.js.map → chunk-F77AZT2M.js.map} +0 -0
- /package/dist/{chunk-UTOC2NHC.js.map → chunk-FCMBVJFQ.js.map} +0 -0
- /package/dist/{chunk-73D2HKA3.js.map → chunk-HLBK5ZR6.js.map} +0 -0
- /package/dist/{chunk-BIKWXLX7.js.map → chunk-JTYWZJIU.js.map} +0 -0
- /package/dist/{chunk-7LC5IG5K.js.map → chunk-LEVYTABB.js.map} +0 -0
- /package/dist/{chunk-FEFLAITR.js.map → chunk-MS4NWRXN.js.map} +0 -0
- /package/dist/{chunk-4NUETVTR.js.map → chunk-OUOV4OM2.js.map} +0 -0
- /package/dist/{chunk-I7BSBUPC.js.map → chunk-P5A6MT75.js.map} +0 -0
- /package/dist/{chunk-FELVUIIM.js.map → chunk-RXH634SC.js.map} +0 -0
- /package/dist/{chunk-QDU7YDME.js.map → chunk-SXXN7JOC.js.map} +0 -0
- /package/dist/{chunk-B4YFG5TB.js.map → chunk-TDW2T3HR.js.map} +0 -0
- /package/dist/{chunk-S32GHLVU.js.map → chunk-TPHSVKMX.js.map} +0 -0
- /package/dist/{chunk-53OTEDBS.js.map → chunk-ZCHWZYIN.js.map} +0 -0
- /package/dist/{control-plane-YQFX2ILX.js.map → control-plane-TOFT56CT.js.map} +0 -0
- /package/dist/{cp-hub-upload-RMJ3XJ65.js.map → cp-hub-upload-OTBR5SL3.js.map} +0 -0
- /package/dist/{deploy-hetzner-EECQ4JCM.js.map → deploy-hetzner-EE5CYX4N.js.map} +0 -0
- /package/dist/{dist-NTUHJOK3.js.map → dist-7HSAWFRN.js.map} +0 -0
- /package/dist/{dist-Q4UDCSZQ.js.map → dist-BVZBXQ2Y.js.map} +0 -0
- /package/dist/{dist-TXFTYNNE.js.map → dist-JSEXGLYK.js.map} +0 -0
- /package/dist/{dist-XUOHE22G.js.map → dist-RWFKW4IU.js.map} +0 -0
- /package/dist/{dist-Z2TPC3EN.js.map → dist-XV77P3RW.js.map} +0 -0
- /package/dist/{dist-E5EXDZG4.js.map → dist-Y2GCMA6N.js.map} +0 -0
- /package/dist/{hub-3HPYOV5O.js.map → hub-53E6EFZB.js.map} +0 -0
- /package/dist/{hub-docker-target-ZKAWXVPH.js.map → hub-docker-target-CS5XHSSA.js.map} +0 -0
- /package/dist/{prepare-KIVDQRMN.js.map → prepare-VTLE7RCJ.js.map} +0 -0
- /package/dist/{prepared-custody-EFSOOAIQ.js.map → prepared-custody-ATP6GQGW.js.map} +0 -0
- /package/dist/{publish-credentials-F2A5OVCO.js.map → publish-credentials-NAWOHOLK.js.map} +0 -0
- /package/dist/{registry-O3X2CDDU.js.map → registry-5CPAQ2KN.js.map} +0 -0
- /package/dist/{remote-docker-share-QDCBM5UM.js.map → remote-docker-share-XBV76ZAZ.js.map} +0 -0
- /package/dist/{tool-grant-push-6ISDIJKH.js.map → tool-grant-push-5GJYMC7C.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{nDHi_1342DzyGDC14ocQo → 2P6VYtaUNxtdBvOVMolM-}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{nDHi_1342DzyGDC14ocQo → 2P6VYtaUNxtdBvOVMolM-}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{nDHi_1342DzyGDC14ocQo → 2P6VYtaUNxtdBvOVMolM-}/_ssgManifest.js +0 -0
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolvePortlessEnabled,
|
|
8
8
|
resolvePortlessNonInteractive,
|
|
9
9
|
setupPortlessHost
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F77AZT2M.js";
|
|
11
11
|
import {
|
|
12
12
|
adoptHubBox,
|
|
13
13
|
downloadBoxSshKeys,
|
|
@@ -50,17 +50,17 @@ import {
|
|
|
50
50
|
subscribePrompts,
|
|
51
51
|
uploadImageFileToBox,
|
|
52
52
|
withFirewallRepair
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-HLBK5ZR6.js";
|
|
54
54
|
import "./chunk-F4PPZ4SI.js";
|
|
55
55
|
import {
|
|
56
56
|
prepareCommand,
|
|
57
57
|
renderControlBoxProviders,
|
|
58
58
|
runPrepare
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-6UCHNX75.js";
|
|
60
60
|
import {
|
|
61
61
|
sharePreparedBase,
|
|
62
62
|
tryAdoptPreparedBase
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-TDW2T3HR.js";
|
|
64
64
|
import {
|
|
65
65
|
AGENTBOX_COMMIT,
|
|
66
66
|
AGENTBOX_VERSION,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
trayRunning,
|
|
109
109
|
updateCheckEnabled,
|
|
110
110
|
writeUpdateState
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-SXXN7JOC.js";
|
|
112
112
|
import {
|
|
113
113
|
CustodyClient
|
|
114
114
|
} from "./chunk-PAWAGULH.js";
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
reportBoxNotOnAnyHub,
|
|
118
118
|
withHubClient,
|
|
119
119
|
withOwningHub
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-ZCHWZYIN.js";
|
|
121
121
|
import {
|
|
122
122
|
ensureE2bCredentials,
|
|
123
123
|
maskKey as maskKey4,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
readPreparedState as readPreparedState4,
|
|
137
137
|
secretsPath as secretsPath5,
|
|
138
138
|
syncFirewallSource as syncFirewallSource2
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-JTYWZJIU.js";
|
|
140
140
|
import {
|
|
141
141
|
getProvider,
|
|
142
142
|
isKnownProvider,
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
providerSpecFor,
|
|
146
146
|
resolveCreateProviderSpec,
|
|
147
147
|
resolveProviderChoice
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-5I7IFACI.js";
|
|
149
149
|
import {
|
|
150
150
|
dockerHiddenMessage,
|
|
151
151
|
dockerHiddenReason,
|
|
@@ -153,13 +153,13 @@ import {
|
|
|
153
153
|
dockerProvidersHidden,
|
|
154
154
|
isDockerProvider,
|
|
155
155
|
remoteHubConfigured
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-FCMBVJFQ.js";
|
|
157
157
|
import {
|
|
158
158
|
hubCanRunEngine,
|
|
159
159
|
shareHostWith,
|
|
160
160
|
unshareHostFrom,
|
|
161
161
|
unsharedHostReason
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-OUOV4OM2.js";
|
|
163
163
|
import {
|
|
164
164
|
confirm,
|
|
165
165
|
multiselect,
|
|
@@ -182,12 +182,12 @@ import {
|
|
|
182
182
|
setRemoteHostSharer,
|
|
183
183
|
shareRegisteredHost,
|
|
184
184
|
upsertHostAlias
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-MS4NWRXN.js";
|
|
186
186
|
import {
|
|
187
187
|
HubApiClient,
|
|
188
188
|
HubApiError
|
|
189
189
|
} from "./chunk-WHFCJBMO.js";
|
|
190
|
-
import "./chunk-
|
|
190
|
+
import "./chunk-LEVYTABB.js";
|
|
191
191
|
import {
|
|
192
192
|
readControlPlaneEnvMap
|
|
193
193
|
} from "./chunk-5F34YIRI.js";
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
readDaytonaCredStatus,
|
|
206
206
|
readPreparedDaytonaState,
|
|
207
207
|
secretsPath
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-N6EBPKTJ.js";
|
|
209
209
|
import {
|
|
210
210
|
detectEgressIp,
|
|
211
211
|
ensureHetznerCredentials,
|
|
@@ -216,7 +216,7 @@ import {
|
|
|
216
216
|
readPreparedState,
|
|
217
217
|
secretsPath as secretsPath2,
|
|
218
218
|
syncFirewallSource
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-5NVHJS7D.js";
|
|
220
220
|
import {
|
|
221
221
|
detectSbx,
|
|
222
222
|
ensureVercelCredentials,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
readPreparedState as readPreparedState2,
|
|
226
226
|
readVercelCredStatus,
|
|
227
227
|
secretsPath as secretsPath3
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-TPHSVKMX.js";
|
|
229
229
|
import {
|
|
230
230
|
CarrySeedError,
|
|
231
231
|
adminCustodySink,
|
|
@@ -243,7 +243,7 @@ import {
|
|
|
243
243
|
readGitOriginUrl,
|
|
244
244
|
resolveCloudCheckpoint,
|
|
245
245
|
seedAgentVolumesIfFresh
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-JLVUNDUB.js";
|
|
247
247
|
import {
|
|
248
248
|
CODEX_CREDENTIALS_BACKUP_FILE,
|
|
249
249
|
CONTAINER_USER,
|
|
@@ -374,12 +374,12 @@ import {
|
|
|
374
374
|
import {
|
|
375
375
|
cloudBackendForProvider,
|
|
376
376
|
currentCloudBaseFingerprintLive
|
|
377
|
-
} from "./chunk-
|
|
377
|
+
} from "./chunk-RXH634SC.js";
|
|
378
378
|
import {
|
|
379
379
|
getRuntimeProviderNames,
|
|
380
380
|
isRuntimeProvider,
|
|
381
381
|
loadProviderModule
|
|
382
|
-
} from "./chunk-
|
|
382
|
+
} from "./chunk-P5A6MT75.js";
|
|
383
383
|
import {
|
|
384
384
|
BUILD_CONTEXT_DIR,
|
|
385
385
|
DEFAULT_BOX_IMAGE,
|
|
@@ -804,12 +804,12 @@ var ADOPT_TIMEOUT_MS = 4e3;
|
|
|
804
804
|
var REACHABLE_PROBE_MS = 1500;
|
|
805
805
|
async function tryAutoAdopt(ref, cwd, projectRoot) {
|
|
806
806
|
try {
|
|
807
|
-
const { resolveHubTarget } = await import("./hub-
|
|
807
|
+
const { resolveHubTarget } = await import("./hub-53E6EFZB.js");
|
|
808
808
|
const target = await resolveHubTarget();
|
|
809
809
|
if (target.mode !== "remote") return null;
|
|
810
810
|
if (!target.token) return "unreachable";
|
|
811
811
|
const [{ adoptHubBox: adoptHubBox2 }, { HubApiClient: HubApiClient2 }, { deadlineFetch: deadlineFetch2, hostReachable: hostReachable2 }] = await Promise.all(
|
|
812
|
-
[import("./hub-adopt-NCCCMMXL.js"), import("./hub-api-client-5U6WOTZ3.js"), import("./dist-
|
|
812
|
+
[import("./hub-adopt-NCCCMMXL.js"), import("./hub-api-client-5U6WOTZ3.js"), import("./dist-RWFKW4IU.js")]
|
|
813
813
|
);
|
|
814
814
|
const deadline = Date.now() + ADOPT_TIMEOUT_MS;
|
|
815
815
|
const remaining = () => deadline - Date.now();
|
|
@@ -834,7 +834,7 @@ async function tryAutoAdopt(ref, cwd, projectRoot) {
|
|
|
834
834
|
log.info("retry with a longer id prefix, the full name, or the sandbox id");
|
|
835
835
|
process.exit(2);
|
|
836
836
|
}
|
|
837
|
-
const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-
|
|
837
|
+
const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-TOFT56CT.js");
|
|
838
838
|
const { CustodyClient: CustodyClient2 } = await import("./custody-client-L4FEFW4C.js");
|
|
839
839
|
const custodyTarget = await resolveCustodyApiTarget2(void 0, {
|
|
840
840
|
quiet: true,
|
|
@@ -2995,7 +2995,7 @@ async function resolveCreateTarget(input) {
|
|
|
2995
2995
|
fellBackReason: "no git `origin` remote for the control box to clone"
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
|
-
const { resolveCustodyTarget: resolveCustodyTarget2 } = await import("./control-plane-
|
|
2998
|
+
const { resolveCustodyTarget: resolveCustodyTarget2 } = await import("./control-plane-TOFT56CT.js");
|
|
2999
2999
|
const custody = await resolveCustodyTarget2(urlFlag, { quiet: !forceHub });
|
|
3000
3000
|
if (!custody) {
|
|
3001
3001
|
if (forceHub) {
|
|
@@ -8579,7 +8579,7 @@ var propagateCommand = new Command8("propagate").description("Push the host cred
|
|
|
8579
8579
|
});
|
|
8580
8580
|
async function pushCredentialToCustody(agent, content) {
|
|
8581
8581
|
try {
|
|
8582
|
-
const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-
|
|
8582
|
+
const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-TOFT56CT.js");
|
|
8583
8583
|
const target = await resolveCustodyApiTarget2(void 0, { quiet: true, remoteOnly: true });
|
|
8584
8584
|
if (!target) return;
|
|
8585
8585
|
const { CustodyClient: CustodyClient2, planPush } = await import("./custody-client-L4FEFW4C.js");
|
|
@@ -9393,7 +9393,7 @@ var cpCommand = new Command11("cp").description("Copy files between host and box
|
|
|
9393
9393
|
).action(async (paths, opts) => {
|
|
9394
9394
|
try {
|
|
9395
9395
|
if (paths.length >= 2 && isHubDest(paths[paths.length - 1])) {
|
|
9396
|
-
const { uploadToHubCache } = await import("./cp-hub-upload-
|
|
9396
|
+
const { uploadToHubCache } = await import("./cp-hub-upload-OTBR5SL3.js");
|
|
9397
9397
|
await uploadToHubCache(paths.slice(0, -1), process.cwd());
|
|
9398
9398
|
return;
|
|
9399
9399
|
}
|
|
@@ -9934,7 +9934,7 @@ var createCommand = new Command12("create").description(
|
|
|
9934
9934
|
}
|
|
9935
9935
|
outro6("done");
|
|
9936
9936
|
if (attachClaudeAfter && record) {
|
|
9937
|
-
const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-
|
|
9937
|
+
const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-7WVNYNJI.js");
|
|
9938
9938
|
await cloudAgentAttach2({
|
|
9939
9939
|
box: record,
|
|
9940
9940
|
binary: "claude",
|
|
@@ -9973,12 +9973,12 @@ async function fetchBoxListing(opts = {}) {
|
|
|
9973
9973
|
const ttl = apiMemo?.listing.stale === true ? HUB_LIST_FAIL_MEMO_MS : HUB_LIST_MEMO_MS;
|
|
9974
9974
|
if (apiMemo && Date.now() - apiMemo.at < ttl) return apiMemo.listing;
|
|
9975
9975
|
}
|
|
9976
|
-
const { resolveHubTarget } = await import("./hub-
|
|
9976
|
+
const { resolveHubTarget } = await import("./hub-53E6EFZB.js");
|
|
9977
9977
|
const probe = await resolveHubTarget(opts.url).catch(() => null);
|
|
9978
9978
|
if (probe && probe.mode === "remote" && !probe.token) {
|
|
9979
9979
|
return remember({ boxes: [], stale: true, reason: "no-token" }, opts.live);
|
|
9980
9980
|
}
|
|
9981
|
-
const { resolveHubApiTarget: resolveHubApiTarget2 } = await import("./control-plane-
|
|
9981
|
+
const { resolveHubApiTarget: resolveHubApiTarget2 } = await import("./control-plane-TOFT56CT.js");
|
|
9982
9982
|
const target = await resolveHubApiTarget2(opts.url).catch(() => null);
|
|
9983
9983
|
if (target) {
|
|
9984
9984
|
const ceiling = opts.live ? HUB_LIST_LIVE_TIMEOUT_MS : HUB_LIST_TIMEOUT_MS;
|
|
@@ -16103,7 +16103,7 @@ async function scopeFile(global) {
|
|
|
16103
16103
|
}
|
|
16104
16104
|
async function announceGrantChange(global) {
|
|
16105
16105
|
const { root } = await findProjectRoot(process.cwd());
|
|
16106
|
-
const { pushToolGrantChange, describeToolGrantPush } = await import("./tool-grant-push-
|
|
16106
|
+
const { pushToolGrantChange, describeToolGrantPush } = await import("./tool-grant-push-5GJYMC7C.js");
|
|
16107
16107
|
const summary2 = describeToolGrantPush(await pushToolGrantChange({ global, projectRoot: root }));
|
|
16108
16108
|
if (summary2) log47.info(summary2);
|
|
16109
16109
|
}
|
|
@@ -18548,20 +18548,28 @@ var claudeLoginWorkerCommand = new Command49("_claude-login-worker").description
|
|
|
18548
18548
|
import { Command as Command50 } from "commander";
|
|
18549
18549
|
|
|
18550
18550
|
// src/lib/post-update-refresh.ts
|
|
18551
|
+
function cachedTraySha(state) {
|
|
18552
|
+
return remoteCheckFresh(state) ? state.remoteCheck?.trayLatestSha : void 0;
|
|
18553
|
+
}
|
|
18554
|
+
function cachedTrayVersion(state) {
|
|
18555
|
+
return remoteCheckFresh(state) ? state.remoteCheck?.trayLatestVersion : void 0;
|
|
18556
|
+
}
|
|
18551
18557
|
async function maybeUpdateTray() {
|
|
18552
18558
|
const idle = { installAttempted: false, reinstalled: false, note: null };
|
|
18553
18559
|
if (!trayInstalled()) return idle;
|
|
18554
18560
|
const state = readUpdateState();
|
|
18555
|
-
const
|
|
18556
|
-
const
|
|
18557
|
-
const latestSha = cachedSha ?? await fetchTraySidecarSha(winner?.tag ?? STABLE_TRAY_TAG);
|
|
18561
|
+
const winner = await bestTrayRelease(await resolveChannel());
|
|
18562
|
+
const latestSha = await fetchTraySidecarSha(winner?.tag ?? STABLE_TRAY_TAG);
|
|
18558
18563
|
const decision = decideTrayUpdate({
|
|
18559
18564
|
installed: true,
|
|
18560
18565
|
stampedSha: state.traySha,
|
|
18561
|
-
|
|
18566
|
+
// Fall back to the cache only when the live lookup came back empty (offline,
|
|
18567
|
+
// GitHub hiccup) — a stale value is better than none, and an undefined sha
|
|
18568
|
+
// already degrades to a clean "skipped" rather than a spurious download.
|
|
18569
|
+
latestSha: latestSha ?? cachedTraySha(state),
|
|
18562
18570
|
installedVersion: await readInstalledTrayVersion(),
|
|
18563
18571
|
// Same release as the sha above, so the two can't describe different builds.
|
|
18564
|
-
latestVersion: winner?.version ?? state
|
|
18572
|
+
latestVersion: winner?.version ?? (latestSha === void 0 ? cachedTrayVersion(state) : void 0)
|
|
18565
18573
|
});
|
|
18566
18574
|
if (!decision.update) {
|
|
18567
18575
|
return {
|
|
@@ -18607,7 +18615,7 @@ async function runPostUpdateRefresh(opts = {}) {
|
|
|
18607
18615
|
warn("box image check", err);
|
|
18608
18616
|
}
|
|
18609
18617
|
try {
|
|
18610
|
-
const { adoptPreparedBases } = await import("./prepared-custody-
|
|
18618
|
+
const { adoptPreparedBases } = await import("./prepared-custody-ATP6GQGW.js");
|
|
18611
18619
|
const res = await adoptPreparedBases();
|
|
18612
18620
|
if (res.adopted.length > 0) {
|
|
18613
18621
|
say(`adopted the control box's ${res.adopted.join(", ")} base bake(s) \u2014 no re-bake needed`);
|
|
@@ -20302,12 +20310,12 @@ async function resolveHubUpdate(args) {
|
|
|
20302
20310
|
return decideHubUpdate({ record: null, liveVersion: void 0, ...args });
|
|
20303
20311
|
}
|
|
20304
20312
|
try {
|
|
20305
|
-
const { readDeployRecord } = await import("./deploy-hetzner-
|
|
20313
|
+
const { readDeployRecord } = await import("./deploy-hetzner-EE5CYX4N.js");
|
|
20306
20314
|
const record = await readDeployRecord();
|
|
20307
20315
|
if (!record?.url || record.provider === "local") {
|
|
20308
20316
|
return decideHubUpdate({ record, liveVersion: void 0, ...args });
|
|
20309
20317
|
}
|
|
20310
|
-
const { probeControlPlaneStatus } = await import("./control-plane-
|
|
20318
|
+
const { probeControlPlaneStatus } = await import("./control-plane-TOFT56CT.js");
|
|
20311
20319
|
const live = await probeControlPlaneStatus(record.url).catch(() => null);
|
|
20312
20320
|
return decideHubUpdate({ record, liveVersion: live?.version, ...args });
|
|
20313
20321
|
} catch {
|
|
@@ -20642,15 +20650,15 @@ process.env.AGENTBOX_CLI_COMMIT = AGENTBOX_COMMIT;
|
|
|
20642
20650
|
}
|
|
20643
20651
|
installConfigWarningSink();
|
|
20644
20652
|
setCredentialPublisher(async (providerId, fields) => {
|
|
20645
|
-
const { publishProviderCredentials } = await import("./publish-credentials-
|
|
20653
|
+
const { publishProviderCredentials } = await import("./publish-credentials-NAWOHOLK.js");
|
|
20646
20654
|
await publishProviderCredentials(providerId, fields);
|
|
20647
20655
|
});
|
|
20648
20656
|
setRemoteHostSharer(async (alias) => {
|
|
20649
|
-
const { shareAfterAdd } = await import("./remote-docker-share-
|
|
20657
|
+
const { shareAfterAdd } = await import("./remote-docker-share-XBV76ZAZ.js");
|
|
20650
20658
|
await shareAfterAdd(alias);
|
|
20651
20659
|
});
|
|
20652
20660
|
setRemoteHostBaker(async (alias) => {
|
|
20653
|
-
const { runPrepare: runPrepare2 } = await import("./prepare-
|
|
20661
|
+
const { runPrepare: runPrepare2 } = await import("./prepare-VTLE7RCJ.js");
|
|
20654
20662
|
await runPrepare2(`docker:${alias}`, { yes: true, suppressStatus: true });
|
|
20655
20663
|
});
|
|
20656
20664
|
setHubPortlessHooks(dockerHubPortlessHooks);
|