@madarco/agentbox 0.25.0 → 0.26.0
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/README.md +8 -7
- package/dist/{_cloud-attach-W2CFNXKO.js → _cloud-attach-7WRQH6XZ.js} +5 -5
- package/dist/{chunk-7PRLM3PH.js → chunk-7ZZAZPYX.js} +3 -3
- package/dist/{chunk-LU3WAHTU.js → chunk-BA2VLJVU.js} +3 -3
- package/dist/{chunk-GHFIKSBJ.js → chunk-DJQMK4RN.js} +12 -4
- package/dist/chunk-DJQMK4RN.js.map +1 -0
- package/dist/{chunk-4UNSBU5R.js → chunk-DQHMDDAT.js} +2 -2
- package/dist/{chunk-LCZOQTIX.js → chunk-I2OAJS3L.js} +40 -377
- package/dist/{chunk-LCZOQTIX.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-7C5MOA4Z.js → chunk-K5KOLYIL.js} +3 -3
- package/dist/{chunk-Y3OPQWAQ.js → chunk-PK2QF4IR.js} +576 -198
- package/dist/chunk-PK2QF4IR.js.map +1 -0
- package/dist/{chunk-VZC5J44U.js → chunk-UIFL7F2G.js} +55 -38
- package/dist/chunk-UIFL7F2G.js.map +1 -0
- package/dist/{chunk-NH3W6HUZ.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-IGQNVIV3.js → dist-5IICYSR6.js} +42 -374
- package/dist/{dist-IGQNVIV3.js.map → dist-5IICYSR6.js.map} +1 -1
- package/dist/{dist-KL73Z37T.js → dist-AR5CHRSV.js} +86 -45
- package/dist/{dist-KL73Z37T.js.map → dist-AR5CHRSV.js.map} +1 -1
- package/dist/{dist-3V5SLNK4.js → dist-DTNYMBQ5.js} +12 -12
- package/dist/{dist-UB3PYSCG.js → dist-K4LNH3EC.js} +6 -6
- package/dist/{dist-BIDAC4H4.js → dist-POVRY7HO.js} +8 -4
- package/dist/{dist-SBDYDH7H.js → dist-U2SVLJUQ.js} +4 -2
- package/dist/{dist-I5OBPLP2.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 +962 -583
- package/dist/index.js.map +1 -1
- package/dist/{prepared-state-OBM2F7CU-DY7TZV4R.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-LNHPLR3L.js → chunk-4QY2VZCF.js} +509 -135
- package/runtime/hub/apps/hub/{chunk-QBJOF5D3.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-MA73PTOR.js → chunk-XZZXPEVV.js} +58 -37
- package/runtime/hub/apps/hub/{dist-7LB4D4ZQ.js → dist-3ENKQN5G.js} +35 -365
- package/runtime/hub/apps/hub/{dist-SIQJD72C.js → dist-6VGJOQYK.js} +84 -43
- package/runtime/hub/apps/hub/{dist-ERQDDSOY.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-ZVY2FWG6.js → dist-RJJ2SDYO.js} +4 -4
- package/runtime/hub/apps/hub/{dist-26KVXHXV.js → dist-TU7D6UTB.js} +37 -366
- package/runtime/hub/apps/hub/{dist-YZJA4WRV.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-OBM2F7CU-ZEYFNYFI.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-5F5SOSDY.js.map +0 -1
- package/dist/chunk-GHFIKSBJ.js.map +0 -1
- package/dist/chunk-NH3W6HUZ.js.map +0 -1
- package/dist/chunk-VZC5J44U.js.map +0 -1
- package/dist/chunk-Y3OPQWAQ.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-W2CFNXKO.js.map → _cloud-attach-7WRQH6XZ.js.map} +0 -0
- /package/dist/{chunk-7PRLM3PH.js.map → chunk-7ZZAZPYX.js.map} +0 -0
- /package/dist/{chunk-LU3WAHTU.js.map → chunk-BA2VLJVU.js.map} +0 -0
- /package/dist/{chunk-4UNSBU5R.js.map → chunk-DQHMDDAT.js.map} +0 -0
- /package/dist/{chunk-7C5MOA4Z.js.map → chunk-K5KOLYIL.js.map} +0 -0
- /package/dist/{dist-3V5SLNK4.js.map → dist-DTNYMBQ5.js.map} +0 -0
- /package/dist/{dist-UB3PYSCG.js.map → dist-K4LNH3EC.js.map} +0 -0
- /package/dist/{dist-BIDAC4H4.js.map → dist-POVRY7HO.js.map} +0 -0
- /package/dist/{dist-I5OBPLP2.js.map → dist-U2SVLJUQ.js.map} +0 -0
- /package/dist/{dist-SBDYDH7H.js.map → dist-XYY6SIKG.js.map} +0 -0
- /package/dist/{prepared-state-OBM2F7CU-DY7TZV4R.js.map → prepared-state-75DIZ55S-W6NU3S3B.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{c82uDoByt-dPQUHilRojD → mrhWWwzD3oh05le9SRnlA}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{c82uDoByt-dPQUHilRojD → mrhWWwzD3oh05le9SRnlA}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{c82uDoByt-dPQUHilRojD → mrhWWwzD3oh05le9SRnlA}/_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
|