@madarco/agentbox 0.24.6 → 0.25.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 +59 -0
- package/LICENSE +21 -0
- package/README.md +4 -0
- package/dist/{_cloud-attach-ESCPOKG5.js → _cloud-attach-W2CFNXKO.js} +5 -5
- package/dist/{chunk-RFRWS5CD.js → chunk-4UNSBU5R.js} +2 -2
- package/dist/{chunk-H6A4BQMG.js → chunk-5F5SOSDY.js} +40 -1
- package/dist/chunk-5F5SOSDY.js.map +1 -0
- package/dist/{chunk-7DPDUZ7L.js → chunk-7C5MOA4Z.js} +194 -56
- package/dist/chunk-7C5MOA4Z.js.map +1 -0
- package/dist/{chunk-LJMGHFLZ.js → chunk-7PRLM3PH.js} +3 -3
- package/dist/chunk-G3H2L3O2.js +0 -0
- package/dist/{chunk-4HPLS5HJ.js → chunk-GHFIKSBJ.js} +110 -9
- package/dist/chunk-GHFIKSBJ.js.map +1 -0
- package/dist/{chunk-5JDOTQTM.js → chunk-LCZOQTIX.js} +4 -4
- package/dist/{chunk-QHISF6O6.js → chunk-LU3WAHTU.js} +3 -3
- package/dist/{chunk-CE3S7UDQ.js → chunk-NH3W6HUZ.js} +44 -12
- package/dist/chunk-NH3W6HUZ.js.map +1 -0
- package/dist/{chunk-OSPM4Q5V.js → chunk-VZC5J44U.js} +5 -5
- package/dist/chunk-VZC5J44U.js.map +1 -0
- package/dist/chunk-WJFZJZIM.js +0 -0
- package/dist/{chunk-3MDYQROX.js → chunk-Y3OPQWAQ.js} +11 -11
- package/dist/chunk-Y3OPQWAQ.js.map +1 -0
- package/dist/cloud-poller-SUNA6ZQC-7M5LJHHE.js +0 -0
- package/dist/{dist-TRKHS6I7.js → dist-3V5SLNK4.js} +6 -6
- package/dist/{dist-NOUPH5E6.js → dist-BIDAC4H4.js} +4 -4
- package/dist/{dist-VFPT5TDH.js → dist-I5OBPLP2.js} +6 -6
- package/dist/{dist-3M53BF4E.js → dist-IGQNVIV3.js} +6 -6
- package/dist/dist-KL73Z37T.js +677 -0
- package/dist/dist-KL73Z37T.js.map +1 -0
- package/dist/{dist-HPPHBZTO.js → dist-SBDYDH7H.js} +8 -2
- package/dist/{dist-FGXCG4JY.js → dist-UB3PYSCG.js} +6 -6
- package/dist/index.js +114 -38
- package/dist/index.js.map +1 -1
- package/dist/{prepared-state-BUO75YLZ-46W2PAHH.js → prepared-state-OBM2F7CU-DY7TZV4R.js} +2 -2
- package/package.json +29 -30
- package/runtime/_shared/agentbox-checkpoint-cleanup +0 -0
- package/runtime/_shared/agentbox-dockerd-start +0 -0
- package/runtime/_shared/agentbox-open +0 -0
- package/runtime/_shared/agentbox-portless-trust +0 -0
- package/runtime/_shared/agentbox-vnc-start +0 -0
- package/runtime/_shared/ctl.cjs +31 -4
- package/runtime/_shared/gh-shim +0 -0
- package/runtime/_shared/git-shim +0 -0
- package/runtime/_shared/linear-shim +0 -0
- package/runtime/_shared/ntn-shim +0 -0
- package/runtime/digitalocean/agentbox-checkpoint-cleanup +0 -0
- package/runtime/digitalocean/agentbox-dockerd-start +0 -0
- package/runtime/digitalocean/agentbox-open +0 -0
- package/runtime/digitalocean/agentbox-portless-trust +0 -0
- package/runtime/digitalocean/agentbox-vnc-start +0 -0
- package/runtime/digitalocean/ctl.cjs +31 -4
- package/runtime/digitalocean/gh-shim +0 -0
- package/runtime/digitalocean/git-shim +0 -0
- package/runtime/digitalocean/linear-shim +0 -0
- package/runtime/digitalocean/ntn-shim +0 -0
- package/runtime/digitalocean/scripts/install-box.sh +0 -0
- package/runtime/docker/packages/ctl/dist/bin.cjs +31 -4
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-checkpoint-cleanup +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-dockerd-start +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-open +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-portless-trust +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-sshd-start +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-vnc-start +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/chromium-resolver +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/gh-shim +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/git-shim +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/linear-shim +0 -0
- package/runtime/docker/packages/sandbox-docker/scripts/ntn-shim +0 -0
- package/runtime/e2b/agentbox-checkpoint-cleanup +0 -0
- package/runtime/e2b/agentbox-dockerd-start +0 -0
- package/runtime/e2b/agentbox-open +0 -0
- package/runtime/e2b/agentbox-vnc-start +0 -0
- package/runtime/e2b/ctl.cjs +31 -4
- package/runtime/e2b/gh-shim +0 -0
- package/runtime/e2b/git-shim +0 -0
- package/runtime/e2b/linear-shim +0 -0
- package/runtime/e2b/ntn-shim +0 -0
- package/runtime/e2b/scripts/build-template.sh +0 -0
- package/runtime/hetzner/agentbox-checkpoint-cleanup +0 -0
- package/runtime/hetzner/agentbox-dockerd-start +0 -0
- package/runtime/hetzner/agentbox-open +0 -0
- package/runtime/hetzner/agentbox-portless-trust +0 -0
- package/runtime/hetzner/agentbox-vnc-start +0 -0
- package/runtime/hetzner/ctl.cjs +31 -4
- package/runtime/hetzner/gh-shim +0 -0
- package/runtime/hetzner/git-shim +0 -0
- package/runtime/hetzner/linear-shim +0 -0
- package/runtime/hetzner/ntn-shim +0 -0
- package/runtime/hetzner/scripts/install-box.sh +0 -0
- 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/chunks/[root-of-the-server]__0d1lmiq._.js +6 -6
- package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.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-HY5K55Y5.js → auth-MVL4NCQC.js} +3 -3
- package/runtime/hub/apps/hub/{auth-config-MNW2XGKK.js → auth-config-GRIXACTV.js} +3 -3
- package/runtime/hub/apps/hub/{chunk-OF242BLD.js → chunk-CKBHQ7OI.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-PROXBLRJ.js → chunk-JLG5JJXD.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-EY6HEDTK.js → chunk-LNHPLR3L.js} +11 -11
- package/runtime/hub/apps/hub/{chunk-DNR2YM2G.js → chunk-MA73PTOR.js} +57 -9
- package/runtime/hub/apps/hub/{chunk-TZFWAJVB.js → chunk-OG4KH2FZ.js} +5 -0
- package/runtime/hub/apps/hub/{chunk-5KMJIVZC.js → chunk-QBJOF5D3.js} +111 -10
- package/runtime/hub/apps/hub/chunk-QYJ37CUJ.js +62140 -0
- package/runtime/hub/apps/hub/{chunk-EFW34I43.js → chunk-UDZ3VXRF.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-TRUQCO4U.js → chunk-V3OMPMI3.js} +40 -1
- package/runtime/hub/apps/hub/{cloud-poller-SUNA6ZQC-VSKVMYHL.js → cloud-poller-SUNA6ZQC-YAWTNA2W.js} +1 -1
- package/runtime/hub/apps/hub/{dist-YCRESLWD.js → dist-26KVXHXV.js} +7 -7
- package/runtime/hub/apps/hub/{dist-SX2NXGI6.js → dist-7LB4D4ZQ.js} +7 -7
- package/runtime/hub/apps/hub/{dist-M73U3ZDH.js → dist-ERQDDSOY.js} +7 -7
- package/runtime/hub/apps/hub/{dist-NTKPAYA3.js → dist-IZ2JCN5R.js} +8 -2
- package/runtime/hub/apps/hub/{dist-3DCKZYID.js → dist-SIQJD72C.js} +596 -113
- package/runtime/hub/apps/hub/{dist-RSWTJWRN.js → dist-YZJA4WRV.js} +5 -5
- package/runtime/hub/apps/hub/{dist-KV5ESR24.js → dist-ZVY2FWG6.js} +7 -7
- package/runtime/hub/apps/hub/esm-VGBJAFLR.js +79 -0
- package/runtime/hub/apps/hub/{execa-4DLVNM6E.js → execa-AFY4ZODY.js} +2 -2
- package/runtime/hub/apps/hub/{hub-token-QKQWV2I6.js → hub-token-BJG6Q5II.js} +3 -3
- package/runtime/hub/apps/hub/{prepared-state-BUO75YLZ-KR4YLKDC.js → prepared-state-OBM2F7CU-ZEYFNYFI.js} +3 -3
- package/runtime/hub/apps/hub/server.js +19 -19
- package/runtime/relay/bin.cjs +177 -42
- package/runtime/vercel/agentbox-checkpoint-cleanup +0 -0
- package/runtime/vercel/agentbox-dockerd-start +0 -0
- package/runtime/vercel/agentbox-open +0 -0
- package/runtime/vercel/agentbox-vnc-start +0 -0
- package/runtime/vercel/ctl.cjs +31 -4
- package/runtime/vercel/gh-shim +0 -0
- package/runtime/vercel/git-shim +0 -0
- package/runtime/vercel/linear-shim +0 -0
- package/runtime/vercel/ntn-shim +0 -0
- package/runtime/vercel/scripts/provision.sh +0 -0
- package/dist/chunk-3MDYQROX.js.map +0 -1
- package/dist/chunk-4HPLS5HJ.js.map +0 -1
- package/dist/chunk-7DPDUZ7L.js.map +0 -1
- package/dist/chunk-CE3S7UDQ.js.map +0 -1
- package/dist/chunk-H6A4BQMG.js.map +0 -1
- package/dist/chunk-OSPM4Q5V.js.map +0 -1
- package/dist/dist-2N3XHMBQ.js +0 -322
- package/dist/dist-2N3XHMBQ.js.map +0 -1
- /package/dist/{_cloud-attach-ESCPOKG5.js.map → _cloud-attach-W2CFNXKO.js.map} +0 -0
- /package/dist/{chunk-RFRWS5CD.js.map → chunk-4UNSBU5R.js.map} +0 -0
- /package/dist/{chunk-LJMGHFLZ.js.map → chunk-7PRLM3PH.js.map} +0 -0
- /package/dist/{chunk-5JDOTQTM.js.map → chunk-LCZOQTIX.js.map} +0 -0
- /package/dist/{chunk-QHISF6O6.js.map → chunk-LU3WAHTU.js.map} +0 -0
- /package/dist/{dist-HPPHBZTO.js.map → dist-3V5SLNK4.js.map} +0 -0
- /package/dist/{dist-NOUPH5E6.js.map → dist-BIDAC4H4.js.map} +0 -0
- /package/dist/{dist-TRKHS6I7.js.map → dist-I5OBPLP2.js.map} +0 -0
- /package/dist/{dist-3M53BF4E.js.map → dist-IGQNVIV3.js.map} +0 -0
- /package/dist/{dist-VFPT5TDH.js.map → dist-SBDYDH7H.js.map} +0 -0
- /package/dist/{dist-FGXCG4JY.js.map → dist-UB3PYSCG.js.map} +0 -0
- /package/dist/{prepared-state-BUO75YLZ-46W2PAHH.js.map → prepared-state-OBM2F7CU-DY7TZV4R.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{2LDXStEUVHS2oK1ID_Uvo → c82uDoByt-dPQUHilRojD}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{2LDXStEUVHS2oK1ID_Uvo → c82uDoByt-dPQUHilRojD}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{2LDXStEUVHS2oK1ID_Uvo → c82uDoByt-dPQUHilRojD}/_ssgManifest.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createCloudProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GHFIKSBJ.js";
|
|
5
5
|
import {
|
|
6
6
|
detectPortless,
|
|
7
7
|
portlessDoctorRow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VZC5J44U.js";
|
|
9
9
|
import {
|
|
10
10
|
UserFacingError,
|
|
11
11
|
claudeInstallFingerprint,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
stageOpencodeStaticForUpload,
|
|
26
26
|
writeManagedSecrets,
|
|
27
27
|
writePreparedStateRaw
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Y3OPQWAQ.js";
|
|
29
29
|
|
|
30
30
|
// ../../packages/sandbox-hetzner/dist/chunk-YIQFCUWT.js
|
|
31
31
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -2397,4 +2397,4 @@ export {
|
|
|
2397
2397
|
hetznerProvider,
|
|
2398
2398
|
providerModule
|
|
2399
2399
|
};
|
|
2400
|
-
//# sourceMappingURL=chunk-
|
|
2400
|
+
//# sourceMappingURL=chunk-LCZOQTIX.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
renderInnerCommand,
|
|
9
9
|
resolveCloudCheckpoint,
|
|
10
10
|
writeCloudCheckpointManifest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GHFIKSBJ.js";
|
|
12
12
|
import {
|
|
13
13
|
UserFacingError,
|
|
14
14
|
claudeInstallFingerprint,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
stageOpencodeStaticForUpload,
|
|
25
25
|
writeManagedSecrets,
|
|
26
26
|
writePreparedStateRaw
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Y3OPQWAQ.js";
|
|
28
28
|
|
|
29
29
|
// ../../packages/sandbox-vercel/dist/chunk-6SDDZRAG.js
|
|
30
30
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -1665,4 +1665,4 @@ export {
|
|
|
1665
1665
|
vercelProvider,
|
|
1666
1666
|
providerModule
|
|
1667
1667
|
};
|
|
1668
|
-
//# sourceMappingURL=chunk-
|
|
1668
|
+
//# sourceMappingURL=chunk-LU3WAHTU.js.map
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
startClaudeSession,
|
|
6
6
|
startCodexSession,
|
|
7
7
|
startOpencodeSession
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VZC5J44U.js";
|
|
9
9
|
import {
|
|
10
10
|
PROVIDER_NAMES,
|
|
11
11
|
isProviderKind,
|
|
12
12
|
loadEffectiveConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5F5SOSDY.js";
|
|
14
14
|
import {
|
|
15
15
|
isSupportedApiVersion,
|
|
16
16
|
pluginForProvider,
|
|
17
17
|
pluginProviderNames
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y3OPQWAQ.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/_cloud-attach.ts
|
|
21
21
|
import { spawn as spawn4 } from "child_process";
|
|
@@ -162,12 +162,12 @@ 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-BIDAC4H4.js"),
|
|
166
|
+
daytona: () => import("./dist-KL73Z37T.js"),
|
|
167
|
+
hetzner: () => import("./dist-3V5SLNK4.js"),
|
|
168
|
+
vercel: () => import("./dist-I5OBPLP2.js"),
|
|
169
|
+
e2b: () => import("./dist-UB3PYSCG.js"),
|
|
170
|
+
digitalocean: () => import("./dist-IGQNVIV3.js")
|
|
171
171
|
};
|
|
172
172
|
function pickProviderModule(mod, name) {
|
|
173
173
|
const m = mod;
|
|
@@ -1745,6 +1745,8 @@ function postAnswer(opts) {
|
|
|
1745
1745
|
|
|
1746
1746
|
// src/wrapped-pty/run.ts
|
|
1747
1747
|
var FOOTER_ROWS = 1;
|
|
1748
|
+
var INITIAL_INPUT_SETTLE_MS = 400;
|
|
1749
|
+
var INITIAL_INPUT_DEADLINE_MS = 3e3;
|
|
1748
1750
|
var MIN_INNER_ROWS = 5;
|
|
1749
1751
|
var STATUS_POLL_INTERVAL_MS = 3e3;
|
|
1750
1752
|
var SPINNER_INTERVAL_MS = 120;
|
|
@@ -1811,6 +1813,29 @@ async function runWrappedAttach(opts) {
|
|
|
1811
1813
|
rows: innerRows,
|
|
1812
1814
|
env: opts.env ? { ...process.env, ...opts.env } : process.env
|
|
1813
1815
|
});
|
|
1816
|
+
const sendInitialInput = (input) => {
|
|
1817
|
+
if (!input) return;
|
|
1818
|
+
const target = pty;
|
|
1819
|
+
let sent = false;
|
|
1820
|
+
let armed = false;
|
|
1821
|
+
const send = () => {
|
|
1822
|
+
if (sent) return;
|
|
1823
|
+
sent = true;
|
|
1824
|
+
clearTimeout(fallback);
|
|
1825
|
+
try {
|
|
1826
|
+
target.write(input);
|
|
1827
|
+
} catch {
|
|
1828
|
+
}
|
|
1829
|
+
};
|
|
1830
|
+
target.onData(() => {
|
|
1831
|
+
if (sent || armed) return;
|
|
1832
|
+
armed = true;
|
|
1833
|
+
setTimeout(send, INITIAL_INPUT_SETTLE_MS).unref?.();
|
|
1834
|
+
});
|
|
1835
|
+
const fallback = setTimeout(send, INITIAL_INPUT_DEADLINE_MS);
|
|
1836
|
+
fallback.unref?.();
|
|
1837
|
+
};
|
|
1838
|
+
sendInitialInput(opts.initialInput);
|
|
1814
1839
|
let lastSpawnAt = Date.now();
|
|
1815
1840
|
const resizePty = (c, r) => {
|
|
1816
1841
|
try {
|
|
@@ -2304,6 +2329,7 @@ async function runWrappedAttach(opts) {
|
|
|
2304
2329
|
rows: innerNow,
|
|
2305
2330
|
env: next.env ? { ...process.env, ...next.env } : process.env
|
|
2306
2331
|
});
|
|
2332
|
+
sendInitialInput(next.initialInput);
|
|
2307
2333
|
wireOutput();
|
|
2308
2334
|
lastSpawnAt = Date.now();
|
|
2309
2335
|
checkpointNoticeAt = 0;
|
|
@@ -2566,7 +2592,7 @@ async function cloudAgentAttach(args) {
|
|
|
2566
2592
|
if (resume) extraArgs = resume;
|
|
2567
2593
|
}
|
|
2568
2594
|
const command = buildCloudAttachInnerCommand(args.binary, extraArgs);
|
|
2569
|
-
const safeOpenIn =
|
|
2595
|
+
const safeOpenIn = args.openIn;
|
|
2570
2596
|
if (safeOpenIn && safeOpenIn !== "same" && extraArgs && extraArgs.length > 0) {
|
|
2571
2597
|
await startDetachedSession(provider, box, args.sessionName, command);
|
|
2572
2598
|
}
|
|
@@ -2594,7 +2620,12 @@ async function cloudAgentAttach(args) {
|
|
|
2594
2620
|
} catch {
|
|
2595
2621
|
}
|
|
2596
2622
|
}
|
|
2597
|
-
return {
|
|
2623
|
+
return {
|
|
2624
|
+
command: spec.argv[0],
|
|
2625
|
+
argv: spec.argv.slice(1),
|
|
2626
|
+
env: spec.env,
|
|
2627
|
+
initialInput: spec.initialInput
|
|
2628
|
+
};
|
|
2598
2629
|
};
|
|
2599
2630
|
try {
|
|
2600
2631
|
const code = await runWrappedAttach({
|
|
@@ -2602,6 +2633,7 @@ async function cloudAgentAttach(args) {
|
|
|
2602
2633
|
command: spec.argv[0],
|
|
2603
2634
|
dockerArgv: spec.argv.slice(1),
|
|
2604
2635
|
env: spec.env,
|
|
2636
|
+
initialInput: spec.initialInput,
|
|
2605
2637
|
relayBaseUrl: RELAY_HOST_URL,
|
|
2606
2638
|
boxId: box.id,
|
|
2607
2639
|
boxName: box.name,
|
|
@@ -2765,4 +2797,4 @@ export {
|
|
|
2765
2797
|
agentResumeArgs,
|
|
2766
2798
|
restoreAgentSessions
|
|
2767
2799
|
};
|
|
2768
|
-
//# sourceMappingURL=chunk-
|
|
2800
|
+
//# sourceMappingURL=chunk-NH3W6HUZ.js.map
|