@madarco/agentbox 0.25.1 → 0.26.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 +48 -0
- package/README.md +8 -7
- package/dist/{_cloud-attach-FGMI2ZHO.js → _cloud-attach-7WRQH6XZ.js} +5 -5
- package/dist/{chunk-5VNL6SHJ.js → chunk-7ZZAZPYX.js} +3 -3
- package/dist/{chunk-ZTSVY3YL.js → chunk-BA2VLJVU.js} +3 -3
- package/dist/{chunk-3BR63LCB.js → chunk-DJQMK4RN.js} +12 -4
- package/dist/chunk-DJQMK4RN.js.map +1 -0
- package/dist/{chunk-6GZK74GT.js → chunk-DQHMDDAT.js} +2 -2
- package/dist/{chunk-P5U6AP6K.js → chunk-I2OAJS3L.js} +40 -377
- package/dist/{chunk-P5U6AP6K.js.map → chunk-I2OAJS3L.js.map} +1 -1
- package/dist/{chunk-5F5SOSDY.js → chunk-JGZSA5ZI.js} +72 -23
- package/dist/chunk-JGZSA5ZI.js.map +1 -0
- package/dist/{chunk-67VF2QZC.js → chunk-K5KOLYIL.js} +3 -3
- package/dist/{chunk-4LS2TOF3.js → chunk-PK2QF4IR.js} +569 -195
- package/dist/chunk-PK2QF4IR.js.map +1 -0
- package/dist/{chunk-3PSRBK24.js → chunk-UIFL7F2G.js} +54 -37
- package/dist/chunk-UIFL7F2G.js.map +1 -0
- package/dist/{chunk-4DBLYT2F.js → chunk-ZY7M7MXH.js} +41 -16
- package/dist/chunk-ZY7M7MXH.js.map +1 -0
- package/dist/chunk-ZYKNSHOH.js +259 -0
- package/dist/chunk-ZYKNSHOH.js.map +1 -0
- package/dist/{dist-X7R2EMJL.js → dist-5IICYSR6.js} +42 -374
- package/dist/{dist-X7R2EMJL.js.map → dist-5IICYSR6.js.map} +1 -1
- package/dist/{dist-5G42NFOG.js → dist-AR5CHRSV.js} +86 -45
- package/dist/{dist-5G42NFOG.js.map → dist-AR5CHRSV.js.map} +1 -1
- package/dist/{dist-AZUD2LUA.js → dist-DTNYMBQ5.js} +12 -12
- package/dist/{dist-MEK44IS5.js → dist-K4LNH3EC.js} +6 -6
- package/dist/{dist-SN6ABGMD.js → dist-POVRY7HO.js} +8 -4
- package/dist/{dist-SBDYDH7H.js → dist-U2SVLJUQ.js} +4 -2
- package/dist/{dist-4I7XHDC3.js → dist-XYY6SIKG.js} +6 -6
- package/dist/dist-YA7EXBGG.js +809 -0
- package/dist/dist-YA7EXBGG.js.map +1 -0
- package/dist/index.js +971 -591
- package/dist/index.js.map +1 -1
- package/dist/{prepared-state-75DIZ55S-5UAKJX3L.js → prepared-state-75DIZ55S-W6NU3S3B.js} +2 -2
- package/package.json +8 -7
- package/runtime/_shared/ctl.cjs +83 -36
- package/runtime/digitalocean/ctl.cjs +83 -36
- package/runtime/docker/packages/ctl/dist/bin.cjs +83 -36
- package/runtime/e2b/ctl.cjs +83 -36
- package/runtime/hetzner/ctl.cjs +83 -36
- 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/(auth)/api/auth/[...all]/route.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -1
- 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/0-fj_better-auth_dist_adapters_kysely-adapter_index_mjs_0btft52._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +5 -5
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-9g0ae._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__19pc87s._.js → [root-of-the-server]__1k8g143._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +4 -4
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0xy-j7z._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_010858m.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_04zwxnx.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_06exuc7.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2ldrt.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2tzep.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_116nh32.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_11dyjcb.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1_4knli.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__08-1wwu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0c9mbcn._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0gdfxj4._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0kc-hwp._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0lu73p6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__10bfmwi._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__18qvdzb._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1l2urlw._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ro6vh6._.js +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/{auth-MVL4NCQC.js → auth-DC44GQZY.js} +2 -2
- package/runtime/hub/apps/hub/{auth-config-GRIXACTV.js → auth-config-LALRDYDO.js} +2 -2
- package/runtime/hub/apps/hub/{chunk-JLG5JJXD.js → chunk-3FJNKSNZ.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-RSENJ2FT.js → chunk-4QY2VZCF.js} +502 -132
- package/runtime/hub/apps/hub/{chunk-23AU7VYS.js → chunk-BARD2DI6.js} +11 -3
- package/runtime/hub/apps/hub/{chunk-V3OMPMI3.js → chunk-QSMPSV5Z.js} +70 -21
- package/runtime/hub/apps/hub/{chunk-GARA7RQW.js → chunk-XZZXPEVV.js} +57 -36
- package/runtime/hub/apps/hub/{dist-WZKTIA2R.js → dist-3ENKQN5G.js} +35 -365
- package/runtime/hub/apps/hub/{dist-TP4SXMDY.js → dist-6VGJOQYK.js} +84 -43
- package/runtime/hub/apps/hub/{dist-JVU3QCLG.js → dist-AE6IV4FV.js} +4 -4
- package/runtime/hub/apps/hub/{dist-IZ2JCN5R.js → dist-EQV4L7KP.js} +3 -1
- package/runtime/hub/apps/hub/dist-NNBELNA7.js +1017 -0
- package/runtime/hub/apps/hub/{dist-DZGSA3US.js → dist-RJJ2SDYO.js} +4 -4
- package/runtime/hub/apps/hub/{dist-VWSHZIPN.js → dist-TU7D6UTB.js} +37 -366
- package/runtime/hub/apps/hub/{dist-YWY2DSSL.js → dist-WAZKGVYL.js} +7 -3
- package/runtime/hub/apps/hub/{hub-token-BJG6Q5II.js → hub-token-COBZGSLS.js} +2 -2
- package/runtime/hub/apps/hub/package.json +1 -0
- package/runtime/hub/apps/hub/{prepared-state-75DIZ55S-JDILR4OP.js → prepared-state-75DIZ55S-NYEDSU2U.js} +1 -1
- package/runtime/hub/apps/hub/server.js +20 -16
- package/runtime/relay/bin.cjs +57 -20
- package/runtime/vercel/ctl.cjs +83 -36
- package/dist/chunk-3BR63LCB.js.map +0 -1
- package/dist/chunk-3PSRBK24.js.map +0 -1
- package/dist/chunk-4DBLYT2F.js.map +0 -1
- package/dist/chunk-4LS2TOF3.js.map +0 -1
- package/dist/chunk-5F5SOSDY.js.map +0 -1
- package/runtime/hub/apps/hub/.next/server/chunks/0zhp_better-auth_dist_adapters_kysely-adapter_index_mjs_1rl4qnh._.js +0 -3
- /package/dist/{_cloud-attach-FGMI2ZHO.js.map → _cloud-attach-7WRQH6XZ.js.map} +0 -0
- /package/dist/{chunk-5VNL6SHJ.js.map → chunk-7ZZAZPYX.js.map} +0 -0
- /package/dist/{chunk-ZTSVY3YL.js.map → chunk-BA2VLJVU.js.map} +0 -0
- /package/dist/{chunk-6GZK74GT.js.map → chunk-DQHMDDAT.js.map} +0 -0
- /package/dist/{chunk-67VF2QZC.js.map → chunk-K5KOLYIL.js.map} +0 -0
- /package/dist/{dist-4I7XHDC3.js.map → dist-DTNYMBQ5.js.map} +0 -0
- /package/dist/{dist-MEK44IS5.js.map → dist-K4LNH3EC.js.map} +0 -0
- /package/dist/{dist-AZUD2LUA.js.map → dist-POVRY7HO.js.map} +0 -0
- /package/dist/{dist-SBDYDH7H.js.map → dist-U2SVLJUQ.js.map} +0 -0
- /package/dist/{dist-SN6ABGMD.js.map → dist-XYY6SIKG.js.map} +0 -0
- /package/dist/{prepared-state-75DIZ55S-5UAKJX3L.js.map → prepared-state-75DIZ55S-W6NU3S3B.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{fo5EgsHa6PFLTBagfLiuM → mJYh9UHTsLaGGyRjBSvme}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{fo5EgsHa6PFLTBagfLiuM → mJYh9UHTsLaGGyRjBSvme}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{fo5EgsHa6PFLTBagfLiuM → mJYh9UHTsLaGGyRjBSvme}/_ssgManifest.js +0 -0
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
startClaudeSession,
|
|
6
6
|
startCodexSession,
|
|
7
7
|
startOpencodeSession
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UIFL7F2G.js";
|
|
9
9
|
import {
|
|
10
10
|
PROVIDER_NAMES,
|
|
11
11
|
isProviderKind,
|
|
12
12
|
loadEffectiveConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JGZSA5ZI.js";
|
|
14
14
|
import {
|
|
15
15
|
isSupportedApiVersion,
|
|
16
16
|
pluginForProvider,
|
|
17
17
|
pluginProviderNames
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PK2QF4IR.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/_cloud-attach.ts
|
|
21
21
|
import { spawn as spawn4 } from "child_process";
|
|
@@ -162,12 +162,13 @@ async function withFirewallRepair(provider, box, opts, attempt) {
|
|
|
162
162
|
// src/provider/loaders.ts
|
|
163
163
|
import { pathToFileURL } from "url";
|
|
164
164
|
var IMPORTERS = {
|
|
165
|
-
docker: () => import("./dist-
|
|
166
|
-
daytona: () => import("./dist-
|
|
167
|
-
hetzner: () => import("./dist-
|
|
168
|
-
vercel: () => import("./dist-
|
|
169
|
-
e2b: () => import("./dist-
|
|
170
|
-
digitalocean: () => import("./dist-
|
|
165
|
+
docker: () => import("./dist-POVRY7HO.js"),
|
|
166
|
+
daytona: () => import("./dist-AR5CHRSV.js"),
|
|
167
|
+
hetzner: () => import("./dist-DTNYMBQ5.js"),
|
|
168
|
+
vercel: () => import("./dist-XYY6SIKG.js"),
|
|
169
|
+
e2b: () => import("./dist-K4LNH3EC.js"),
|
|
170
|
+
digitalocean: () => import("./dist-5IICYSR6.js"),
|
|
171
|
+
"remote-docker": () => import("./dist-YA7EXBGG.js")
|
|
171
172
|
};
|
|
172
173
|
function pickProviderModule(mod, name) {
|
|
173
174
|
const m = mod;
|
|
@@ -205,12 +206,35 @@ function isRuntimeProvider(name) {
|
|
|
205
206
|
return isProviderKind(name) || pluginProviderNames().includes(name);
|
|
206
207
|
}
|
|
207
208
|
|
|
209
|
+
// src/provider/spec.ts
|
|
210
|
+
var REMOTE_DOCKER = "remote-docker";
|
|
211
|
+
function parseProviderSpec(spec) {
|
|
212
|
+
const raw = spec.trim();
|
|
213
|
+
const colon = raw.indexOf(":");
|
|
214
|
+
if (colon < 0) return { name: raw };
|
|
215
|
+
const base = raw.slice(0, colon);
|
|
216
|
+
const host = raw.slice(colon + 1).trim();
|
|
217
|
+
if (base !== "docker" && base !== REMOTE_DOCKER) {
|
|
218
|
+
return { name: raw };
|
|
219
|
+
}
|
|
220
|
+
if (host.length === 0) {
|
|
221
|
+
throw new Error(
|
|
222
|
+
`provider "${raw}" names no host \u2014 write \`${base}:<ssh-host>\` (an ~/.ssh/config alias or [user@]host[:port])`
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
return { name: REMOTE_DOCKER, remoteHost: host };
|
|
226
|
+
}
|
|
227
|
+
|
|
208
228
|
// src/provider/registry.ts
|
|
209
229
|
function isKnownProvider(name) {
|
|
210
|
-
|
|
230
|
+
try {
|
|
231
|
+
return isRuntimeProvider(parseProviderSpec(name).name);
|
|
232
|
+
} catch {
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
211
235
|
}
|
|
212
236
|
async function getProvider(name) {
|
|
213
|
-
const mod = await loadProviderModule(name);
|
|
237
|
+
const mod = await loadProviderModule(parseProviderSpec(name).name);
|
|
214
238
|
if (mod.ensureCredentials) await mod.ensureCredentials();
|
|
215
239
|
return mod.provider;
|
|
216
240
|
}
|
|
@@ -219,13 +243,13 @@ async function providerForBox(box) {
|
|
|
219
243
|
}
|
|
220
244
|
async function providerForCreate(choice) {
|
|
221
245
|
const flag = choice.flag?.trim();
|
|
222
|
-
const
|
|
223
|
-
if (typeof
|
|
246
|
+
const spec = flag && flag.length > 0 ? flag : choice.config.box.provider;
|
|
247
|
+
if (typeof spec !== "string" || spec.length === 0 || !isKnownProvider(spec)) {
|
|
224
248
|
throw new Error(
|
|
225
|
-
`unknown sandbox provider "${String(
|
|
249
|
+
`unknown sandbox provider "${String(spec)}" (known: ${getRuntimeProviderNames().join(", ")})`
|
|
226
250
|
);
|
|
227
251
|
}
|
|
228
|
-
return getProvider(
|
|
252
|
+
return getProvider(spec);
|
|
229
253
|
}
|
|
230
254
|
|
|
231
255
|
// src/wrapped-pty/run.ts
|
|
@@ -2756,6 +2780,7 @@ export {
|
|
|
2756
2780
|
loadProviderModule,
|
|
2757
2781
|
getRuntimeProviderNames,
|
|
2758
2782
|
isRuntimeProvider,
|
|
2783
|
+
parseProviderSpec,
|
|
2759
2784
|
isKnownProvider,
|
|
2760
2785
|
getProvider,
|
|
2761
2786
|
providerForBox,
|
|
@@ -2797,4 +2822,4 @@ export {
|
|
|
2797
2822
|
agentResumeArgs,
|
|
2798
2823
|
restoreAgentSessions
|
|
2799
2824
|
};
|
|
2800
|
-
//# sourceMappingURL=chunk-
|
|
2825
|
+
//# sourceMappingURL=chunk-ZY7M7MXH.js.map
|