diff --git a/CHANGELOG.md b/CHANGELOG.md index 290f807b1..ca0274c74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,90 @@ # Changelog +## [0.21.0] - 2026-11-10 + +### Highlights + +- **Embedded Python on Monty 1.5, with real per-tenant memory limits.** The headline of this release. `python3` now runs on our own Monty forks (`bashkit-monty`, `bashkit-monty-types`, published to crates.io), upgraded from Monty 0.0.19 to 1.4 and re-synced to upstream 1.5.0. Each Python run is charged exactly for its own allocations through `bashkit::MeteredAllocator`, so one tenant can no longer exhaust another's budget or abort the shared process; the time limit now bounds wall-clock time across host calls; and the forks are covered by multi-tenant stress tests, nightly ASan and soak runs, a fuzz target, a Monty-vs-CPython differential fuzzer, a drift check that allows changes only at marked fork edits, and a daily upstream advisory watch ([#2842](https://github.com/everruns/bashkit/pull/2842), [#2855](https://github.com/everruns/bashkit/pull/2855), [#2853](https://github.com/everruns/bashkit/pull/2853), [#2874](https://github.com/everruns/bashkit/pull/2874), [#2875](https://github.com/everruns/bashkit/pull/2875), [#2861](https://github.com/everruns/bashkit/pull/2861), [#2872](https://github.com/everruns/bashkit/pull/2872), [#2887](https://github.com/everruns/bashkit/pull/2887)). **Breaking:** embedders using the `python` feature must install `bashkit::MeteredAllocator` as the global allocator, or `python3` refuses to run. +- **TypeScript resource limits enforced.** ZapCode never read `max_memory`, so doubling a string or array, or joining one shared string many times, aborted the whole process with every tenant. Each `ts` run now has its own heap meter checked at every instruction, output-amplifying builtins size their result first, and `max_duration` bounds wall-clock time across host calls. ZapCode is vendored in-tree on every target, and `padStart`/`padEnd` are capped ([#2909](https://github.com/everruns/bashkit/pull/2909), [#2910](https://github.com/everruns/bashkit/pull/2910)). **Breaking:** the same `MeteredAllocator` requirement now applies to the `typescript` feature. +- **Security audit fixes.** Bounded eval/compgen/path-script recursion with on-demand stack growth, setuid bits dropped on real mounts, caller Host headers dropped before credential injection, `json.dumps` indent preflight, markkit/fetchkit honoring the exec deadline, and fetchkit 0.7.2 for linear readable extraction ([#2867](https://github.com/everruns/bashkit/pull/2867), [#2871](https://github.com/everruns/bashkit/pull/2871), [#2869](https://github.com/everruns/bashkit/pull/2869), [#2868](https://github.com/everruns/bashkit/pull/2868), [#2870](https://github.com/everruns/bashkit/pull/2870), [#2914](https://github.com/everruns/bashkit/pull/2914)). +- **Execution-scoped cancellation for custom builtins** in the language bindings ([#2893](https://github.com/everruns/bashkit/pull/2893), [#2905](https://github.com/everruns/bashkit/pull/2905)). +- **Embedded runtimes are friendlier to agents.** The ~95-call cap on `python3`/`ts` per session is gone, time limits exit 124, deep nesting fails cleanly, and `timeout_seconds` raises the runtime time limit in the Python package ([#2832](https://github.com/everruns/bashkit/pull/2832), [#2833](https://github.com/everruns/bashkit/pull/2833), [#2835](https://github.com/everruns/bashkit/pull/2835), [#2873](https://github.com/everruns/bashkit/pull/2873)). + +### What's Changed + +* fix(deps): pick up fetchkit 0.7.2 linear readable extraction ([#2914](https://github.com/everruns/bashkit/pull/2914)) by @chaliy +* fix(ts): enforce max_memory and wall-clock limit for TypeScript ([#2910](https://github.com/everruns/bashkit/pull/2910)) by @chaliy +* fix(typescript): vendor ZapCode on every target and cap padStart/padEnd ([#2909](https://github.com/everruns/bashkit/pull/2909)) by @chaliy +* fix(examples): read pydantic-ai run result from .output ([#2908](https://github.com/everruns/bashkit/pull/2908)) by @chaliy +* docs(readme): move homepage link into badge row ([#2907](https://github.com/everruns/bashkit/pull/2907)) by @chaliy +* docs: describe bashkit as part of the Everruns community ecosystem ([#2906](https://github.com/everruns/bashkit/pull/2906)) by @chaliy +* fix(bindings): abort the builtin signal when the native deadline wins ([#2905](https://github.com/everruns/bashkit/pull/2905)) by @chaliy +* chore(deps): bump flate2 to 1.1.11 with the vet exemption it needs ([#2904](https://github.com/everruns/bashkit/pull/2904)) by @chaliy +* chore(deps): bump flate2 from 1.1.10 to 1.1.11 in /crates/bashkit/fuzz in the fuzz-dependencies group ([#2897](https://github.com/everruns/bashkit/pull/2897)) by @app/dependabot +* chore(deps): bump @langchain/core from 1.3.4 to 1.3.5 in /crates/bashkit-js in the js-npm group ([#2898](https://github.com/everruns/bashkit/pull/2898)) by @app/dependabot +* chore(deps): bump the examples-npm group across 1 directory with 3 updates ([#2899](https://github.com/everruns/bashkit/pull/2899)) by @app/dependabot +* chore(deps): bump the site-npm group in /site with 3 updates ([#2900](https://github.com/everruns/bashkit/pull/2900)) by @app/dependabot +* chore(ci): bump taiki-e/install-action from 2.90.1 to 2.90.2 in the github-actions group ([#2901](https://github.com/everruns/bashkit/pull/2901)) by @app/dependabot +* chore(ci): move Monty release-drift check to maintenance, keep advisories daily ([#2894](https://github.com/everruns/bashkit/pull/2894)) by @chaliy +* fix(test): stop comparing an implementation-defined cp leftover to the host ([#2903](https://github.com/everruns/bashkit/pull/2903)) by @chaliy +* feat(bindings): execution-scoped cancellation for custom builtins ([#2893](https://github.com/everruns/bashkit/pull/2893)) by @chaliy +* fix(builtins): port uutils' thiserror messages and shared clap args ([#2895](https://github.com/everruns/bashkit/pull/2895)) by @chaliy +* chore(deps): bump the examples-npm group across 2 directories ([#2890](https://github.com/everruns/bashkit/pull/2890)) by @app/dependabot +* chore(deps): bump the docs-grep-agent-uv group in /examples/docs-grep-agent ([#2889](https://github.com/everruns/bashkit/pull/2889)) by @app/dependabot +* chore(deps): bump wrangler from 4.157.0 to 4.158.0 in /site ([#2888](https://github.com/everruns/bashkit/pull/2888)) by @app/dependabot +* chore(ci): bump softprops/action-gh-release from 3.0.3 to 3.0.4 ([#2891](https://github.com/everruns/bashkit/pull/2891)) by @app/dependabot +* ci(workflows): retry the Doppler CLI install once ([#2892](https://github.com/everruns/bashkit/pull/2892)) by @chaliy +* chore(deps): re-sync the Monty forks to upstream 1.5.0 ([#2887](https://github.com/everruns/bashkit/pull/2887)) by @chaliy +* chore(deps): bump russh to 0.65.1 and signal-hook to 0.4.6 ([#2886](https://github.com/everruns/bashkit/pull/2886)) by @chaliy +* chore(deps): bump toml and toml_writer, refreshing their publisher facts ([#2884](https://github.com/everruns/bashkit/pull/2884)) by @chaliy +* chore(deps): bump wrangler from 4.156.2 to 4.157.0 in /site ([#2877](https://github.com/everruns/bashkit/pull/2877)) by @app/dependabot +* chore(ci): bump taiki-e/install-action to v2.90.1 ([#2882](https://github.com/everruns/bashkit/pull/2882)) by @app/dependabot +* fix(test): make the python regex DoS wall-clock bounds hang detectors, not budgets ([#2883](https://github.com/everruns/bashkit/pull/2883)) by @chaliy +* chore(deps): unify pyo3 on 0.30 with compatible companions ([#2863](https://github.com/everruns/bashkit/pull/2863)) by @chaliy +* chore(deps): bump the js-npm group in /crates/bashkit-js with 4 updates ([#2878](https://github.com/everruns/bashkit/pull/2878)) by @app/dependabot +* chore(deps): bump the examples-npm group across 1 directory with 3 updates ([#2879](https://github.com/everruns/bashkit/pull/2879)) by @app/dependabot +* fix(ci): migrate nightly jobs to the new dtolnay/rust-toolchain schema ([#2850](https://github.com/everruns/bashkit/pull/2850)) by @chaliy +* fix(deps): let a Monty fork dependency move ahead of upstream when marked ([#2876](https://github.com/everruns/bashkit/pull/2876)) by @chaliy +* test(python): differential fuzz Monty against CPython ([#2875](https://github.com/everruns/bashkit/pull/2875)) by @chaliy +* fix(python): let timeout_seconds raise the embedded runtime time limit ([#2873](https://github.com/everruns/bashkit/pull/2873)) by @chaliy +* ci(python): sanitize Monty under ASan and soak tenant stress nightly ([#2874](https://github.com/everruns/bashkit/pull/2874)) by @chaliy +* ci(python): watch upstream Monty releases and advisories ([#2872](https://github.com/everruns/bashkit/pull/2872)) by @chaliy +* fix(builtins): markkit/fetchkit respect the exec deadline off the async worker ([#2870](https://github.com/everruns/bashkit/pull/2870)) by @chaliy +* fix(python): preflight json.dumps indent and separators ([#2868](https://github.com/everruns/bashkit/pull/2868)) by @chaliy +* fix(interpreter): bound eval/compgen/path-script recursion and grow stack on demand ([#2867](https://github.com/everruns/bashkit/pull/2867)) by @chaliy +* fix(realfs): drop setuid bits on host files, keep FsLimits on root mounts ([#2871](https://github.com/everruns/bashkit/pull/2871)) by @chaliy +* fix(network): drop caller Host headers and refuse encoded slashes in path rules ([#2869](https://github.com/everruns/bashkit/pull/2869)) by @chaliy +* fix(python): mark the Monty fork edits that turned main red ([#2865](https://github.com/everruns/bashkit/pull/2865)) by @chaliy +* chore(python): CI check that the Monty forks drift only at marked edits ([#2861](https://github.com/everruns/bashkit/pull/2861)) by @chaliy +* fix(python): stop shared-graph repr/compare outliving the time limit ([#2857](https://github.com/everruns/bashkit/pull/2857)) by @chaliy +* test(rg): warm up rg before measuring its bounded-memory walk ([#2862](https://github.com/everruns/bashkit/pull/2862)) by @chaliy +* chore(deps): bump the examples-npm group across 1 directory with 2 updates ([#2859](https://github.com/everruns/bashkit/pull/2859)) by @app/dependabot +* fix(python): multi-tenant stress for Monty python3; bound wall-clock time across host calls ([#2855](https://github.com/everruns/bashkit/pull/2855)) by @chaliy +* fix(rg): search each file as it is read instead of holding every file's text ([#2856](https://github.com/everruns/bashkit/pull/2856)) by @chaliy +* fix(deps): drop the versioning-strategy cargo rejects; commit fixture lockfiles ([#2854](https://github.com/everruns/bashkit/pull/2854)) by @chaliy +* test(python): fuzz the forked Monty python3 nightly ([#2853](https://github.com/everruns/bashkit/pull/2853)) by @chaliy +* fix(deps): make the weekly Dependabot cargo jobs runnable again ([#2852](https://github.com/everruns/bashkit/pull/2852)) by @chaliy +* chore(knowledge): list monty fork crates in trusted publishing check ([#2849](https://github.com/everruns/bashkit/pull/2849)) by @chaliy +* chore(deps): bump the examples-npm group across 1 directory with 3 updates ([#2846](https://github.com/everruns/bashkit/pull/2846)) by @app/dependabot +* chore(deps): bump the docs-grep-agent-uv group in /examples/docs-grep-agent with 2 updates ([#2845](https://github.com/everruns/bashkit/pull/2845)) by @app/dependabot +* chore(deps): bump the site-npm group in /site with 2 updates ([#2844](https://github.com/everruns/bashkit/pull/2844)) by @app/dependabot +* chore(deps): bump @langchain/core from 1.3.2 to 1.3.3 in /crates/bashkit-js in the js-npm group ([#2843](https://github.com/everruns/bashkit/pull/2843)) by @app/dependabot +* feat(python): upgrade embedded Monty to 1.4.0 with per-VM memory metering ([#2842](https://github.com/everruns/bashkit/pull/2842)) by @chaliy +* fix(fs): follow final link under linked dirs; slash keys for implicit parents ([#2841](https://github.com/everruns/bashkit/pull/2841)) by @chaliy +* chore(ci): bump taiki-e/install-action from 2.88.1 to 2.89.1 in the github-actions group ([#2840](https://github.com/everruns/bashkit/pull/2840)) by @app/dependabot +* chore(deps): bump the examples-npm group across 1 directory with 4 updates ([#2839](https://github.com/everruns/bashkit/pull/2839)) by @app/dependabot +* chore(deps): bump langgraph from 1.2.18 to 1.2.19 in /examples/docs-grep-agent in the docs-grep-agent-uv group ([#2838](https://github.com/everruns/bashkit/pull/2838)) by @app/dependabot +* chore(deps): bump wrangler from 4.156.0 to 4.156.1 in /site in the site-npm group ([#2837](https://github.com/everruns/bashkit/pull/2837)) by @app/dependabot +* chore(deps): bump ava from 8.2.0 to 8.3.0 in /crates/bashkit-js in the js-npm group ([#2836](https://github.com/everruns/bashkit/pull/2836)) by @app/dependabot +* fix(typescript): lift the per-call budget cap, exit 124 on timeout, guard deep nesting ([#2835](https://github.com/everruns/bashkit/pull/2835)) by @chaliy +* fix(python): re gate follow-ups: budget before parse, parser pinned with Monty ([#2834](https://github.com/everruns/bashkit/pull/2834)) by @chaliy +* fix(python): accurate LLM hint and exit 124 on Monty time limit ([#2833](https://github.com/everruns/bashkit/pull/2833)) by @chaliy +* fix(python): lift the ~95-call cap and stop echoing the final value ([#2832](https://github.com/everruns/bashkit/pull/2832)) by @chaliy +* fix(python): find blocked imports by parsing, not by line prefix ([#2831](https://github.com/everruns/bashkit/pull/2831)) by @chaliy +* docs: add "How can I support this project?" section to README ([#2828](https://github.com/everruns/bashkit/pull/2828)) by @chaliy + +**Full Changelog**: https://github.com/everruns/bashkit/compare/v0.20.3...v0.21.0 + ## [0.20.3] - 2026-11-04 ### Highlights diff --git a/Cargo.lock b/Cargo.lock index 7265d93ff..60ebca454 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -433,7 +433,7 @@ checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" [[package]] name = "bashkit" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "async-trait", @@ -517,7 +517,7 @@ dependencies = [ [[package]] name = "bashkit-bench" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "bashkit", @@ -532,7 +532,7 @@ dependencies = [ [[package]] name = "bashkit-capi" -version = "0.20.3" +version = "0.21.0" dependencies = [ "bashkit", "serde", @@ -542,7 +542,7 @@ dependencies = [ [[package]] name = "bashkit-cli" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "bashkit", @@ -556,7 +556,7 @@ dependencies = [ [[package]] name = "bashkit-coreutils-port" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "prettyplease", @@ -570,7 +570,7 @@ dependencies = [ [[package]] name = "bashkit-cpython-wasm" -version = "0.20.3" +version = "0.21.0" dependencies = [ "lzma-rs", "wasmtime", @@ -578,7 +578,7 @@ dependencies = [ [[package]] name = "bashkit-eval" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "async-trait", @@ -596,7 +596,7 @@ dependencies = [ [[package]] name = "bashkit-js" -version = "0.20.3" +version = "0.21.0" dependencies = [ "bashkit", "bashkit-scripted-tool", @@ -610,7 +610,7 @@ dependencies = [ [[package]] name = "bashkit-monty" -version = "0.20.3" +version = "0.21.0" dependencies = [ "ahash", "bashkit-monty-types", @@ -651,7 +651,7 @@ dependencies = [ [[package]] name = "bashkit-monty-types" -version = "0.20.3" +version = "0.21.0" dependencies = [ "chrono", "jiff", @@ -669,7 +669,7 @@ dependencies = [ [[package]] name = "bashkit-python" -version = "0.20.3" +version = "0.21.0" dependencies = [ "bashkit", "bashkit-scripted-tool", @@ -682,7 +682,7 @@ dependencies = [ [[package]] name = "bashkit-scripted-tool" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "async-trait", @@ -698,7 +698,7 @@ dependencies = [ [[package]] name = "bashkit-wasm" -version = "0.20.3" +version = "0.21.0" dependencies = [ "bashkit", "console_error_panic_hook", diff --git a/Cargo.toml b/Cargo.toml index 3f7adb6a7..f83d2cee4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ resolver = "2" members = ["crates/*"] [workspace.package] -version = "0.20.3" +version = "0.21.0" edition = "2024" license = "MIT" authors = ["Mykhailo Chalyi ", "Everruns"] diff --git a/README.md b/README.md index 9036d5a9d..cf6302f5e 100644 --- a/README.md +++ b/README.md @@ -442,7 +442,7 @@ Enable the `sqlite` feature to embed [Turso](https://github.com/tursodatabase/tu ```toml [dependencies] -bashkit = { version = "0.20.3", features = ["sqlite"] } +bashkit = { version = "0.21.0", features = ["sqlite"] } ``` ```rust diff --git a/crates/bashkit-cli/Cargo.toml b/crates/bashkit-cli/Cargo.toml index f17aec962..2e6a009bf 100644 --- a/crates/bashkit-cli/Cargo.toml +++ b/crates/bashkit-cli/Cargo.toml @@ -39,7 +39,7 @@ interactive = ["dep:rustyline", "dep:terminal_size", "dep:signal-hook"] # `tzdata` is listed explicitly: an interactive shell must keep honouring # named `TZ=` zones in `date`, which stopped being implied when chrono-tz # moved behind a feature. -bashkit = { path = "../bashkit", version = "0.20.3", default-features = false, features = ["http_client", "ring", "git", "jq", "tzdata"] } +bashkit = { path = "../bashkit", version = "0.21.0", default-features = false, features = ["http_client", "ring", "git", "jq", "tzdata"] } tokio = { workspace = true, features = ["macros", "net", "rt", "rt-multi-thread", "time", "io-std"] } clap.workspace = true anyhow.workspace = true diff --git a/crates/bashkit-js/package.json b/crates/bashkit-js/package.json index 6e81bd9c7..85bb4b07a 100644 --- a/crates/bashkit-js/package.json +++ b/crates/bashkit-js/package.json @@ -1,6 +1,6 @@ { "name": "@everruns/bashkit", - "version": "0.20.3", + "version": "0.21.0", "description": "Sandboxed bash interpreter for JavaScript/TypeScript", "packageManager": "pnpm@10.33.0", "main": "wrapper.js", diff --git a/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock b/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock index cbeabce17..86479c272 100644 --- a/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock +++ b/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock @@ -38,6 +38,15 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +[[package]] +name = "ar_archive_writer" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73cd58deff2140a0a8eae87e417bd01db68a33e148aa93d1e8cd837e55e312b6" +dependencies = [ + "object", +] + [[package]] name = "async-trait" version = "0.1.92" @@ -63,7 +72,7 @@ checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" [[package]] name = "bashkit" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "async-trait", @@ -91,6 +100,7 @@ dependencies = [ "serde_json", "sha1", "sha2", + "stacker", "thiserror", "tokio", "tower", @@ -822,6 +832,15 @@ dependencies = [ "autocfg", ] +[[package]] +name = "object" +version = "0.39.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e5a6c098c7a3b6547378093f5cc30bc54fd361ce711e05293a5cc589562739b" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" version = "1.21.4" @@ -885,6 +904,16 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "psm" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dcd034599e63b970727f70d79e02d62390a4a84f7c6b827c27c46d5ac3fa622" +dependencies = [ + "ar_archive_writer", + "cc", +] + [[package]] name = "quote" version = "1.0.47" @@ -940,7 +969,7 @@ dependencies = [ "getrandom 0.2.17", "libc", "untrusted", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -1097,6 +1126,19 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" +[[package]] +name = "stacker" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "707f49d46706bacf8a2b00d51dace3f9de527c13eec3778f570c411f89e69967" +dependencies = [ + "cc", + "cfg-if", + "libc", + "psm", + "windows-sys 0.61.2", +] + [[package]] name = "subtle" version = "2.6.1" @@ -1401,6 +1443,15 @@ dependencies = [ "windows-targets", ] +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + [[package]] name = "windows-targets" version = "0.52.6" diff --git a/crates/bashkit-monty/Cargo.toml b/crates/bashkit-monty/Cargo.toml index 29931eaa9..acba700c7 100644 --- a/crates/bashkit-monty/Cargo.toml +++ b/crates/bashkit-monty/Cargo.toml @@ -36,7 +36,7 @@ test = false doctest = false [dependencies] -monty-types = { package = "bashkit-monty-types", path = "../bashkit-monty-types", version = "0.20.3", features = ["cpu-clock"] } +monty-types = { package = "bashkit-monty-types", path = "../bashkit-monty-types", version = "0.21.0", features = ["cpu-clock"] } ahash = { version = "0.8.0", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] } fancy-regex = { version = "0.20.0" } diff --git a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock index 4cb8dba79..596752301 100644 --- a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock +++ b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock @@ -38,6 +38,15 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +[[package]] +name = "ar_archive_writer" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73cd58deff2140a0a8eae87e417bd01db68a33e148aa93d1e8cd837e55e312b6" +dependencies = [ + "object", +] + [[package]] name = "async-trait" version = "0.1.92" @@ -63,7 +72,7 @@ checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" [[package]] name = "bashkit" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "async-trait", @@ -91,6 +100,7 @@ dependencies = [ "serde_json", "sha1", "sha2", + "stacker", "thiserror", "tokio", "tower", @@ -667,6 +677,15 @@ dependencies = [ "autocfg", ] +[[package]] +name = "object" +version = "0.39.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e5a6c098c7a3b6547378093f5cc30bc54fd361ce711e05293a5cc589562739b" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" version = "1.21.4" @@ -736,6 +755,16 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "psm" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dcd034599e63b970727f70d79e02d62390a4a84f7c6b827c27c46d5ac3fa622" +dependencies = [ + "ar_archive_writer", + "cc", +] + [[package]] name = "pyo3" version = "0.30.1" @@ -848,7 +877,7 @@ dependencies = [ "getrandom 0.2.17", "libc", "untrusted", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -993,6 +1022,19 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" +[[package]] +name = "stacker" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "707f49d46706bacf8a2b00d51dace3f9de527c13eec3778f570c411f89e69967" +dependencies = [ + "cc", + "cfg-if", + "libc", + "psm", + "windows-sys 0.61.2", +] + [[package]] name = "subtle" version = "2.6.1" @@ -1297,6 +1339,15 @@ dependencies = [ "windows-targets", ] +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + [[package]] name = "windows-targets" version = "0.52.6" diff --git a/crates/bashkit-scripted-tool/Cargo.toml b/crates/bashkit-scripted-tool/Cargo.toml index a48e1ea5a..409950684 100644 --- a/crates/bashkit-scripted-tool/Cargo.toml +++ b/crates/bashkit-scripted-tool/Cargo.toml @@ -30,7 +30,7 @@ jq = ["bashkit/jq"] tracing = ["dep:tracing"] [dependencies] -bashkit = { path = "../bashkit", version = "0.20.3", default-features = false, features = ["bash_tool"] } +bashkit = { path = "../bashkit", version = "0.21.0", default-features = false, features = ["bash_tool"] } tokio = { workspace = true } async-trait = { workspace = true } tower = { workspace = true } diff --git a/crates/bashkit-wasm/package.json b/crates/bashkit-wasm/package.json index fec3ea717..d28a42ce9 100644 --- a/crates/bashkit-wasm/package.json +++ b/crates/bashkit-wasm/package.json @@ -1,6 +1,6 @@ { "name": "@everruns/bashkit-wasm", - "version": "0.20.3", + "version": "0.21.0", "description": "Sandboxed bash interpreter for the browser (WebAssembly). Single-threaded \u2014 no SharedArrayBuffer, no COOP/COEP headers.", "type": "module", "main": "index.js", diff --git a/crates/bashkit/Cargo.toml b/crates/bashkit/Cargo.toml index d0dbaed16..0a4ba01cd 100644 --- a/crates/bashkit/Cargo.toml +++ b/crates/bashkit/Cargo.toml @@ -134,12 +134,12 @@ os_display = "0.1.3" # (`set_memory_probe`, pydantic/monty#740, and `set_checkpoint_hook`) plus its # own per-VM `MeteredAllocator` (src/python_meter.rs). The lib names stay # `monty`/`monty_types`; see knowledge/runtimes/python-builtin.md. -monty = { package = "bashkit-monty", path = "../bashkit-monty", version = "0.20.3", optional = true } -monty-types = { package = "bashkit-monty-types", path = "../bashkit-monty-types", version = "0.20.3", optional = true } +monty = { package = "bashkit-monty", path = "../bashkit-monty", version = "0.21.0", optional = true } +monty-types = { package = "bashkit-monty-types", path = "../bashkit-monty-types", version = "0.21.0", optional = true } # Real CPython 3.14 as a WASI guest, precompiled to Pulley (cpython feature). # See knowledge/runtimes/cpython-wasm.md. -bashkit-cpython-wasm = { path = "../bashkit-cpython-wasm", version = "0.20.3", optional = true } +bashkit-cpython-wasm = { path = "../bashkit-cpython-wasm", version = "0.21.0", optional = true } wasmtime = { workspace = true, optional = true, features = ["pooling-allocator"] } # Embedded TypeScript interpreter (optional) diff --git a/crates/bashkit/docs/cpython.md b/crates/bashkit/docs/cpython.md index 0d78ddbd4..e39c1d201 100644 --- a/crates/bashkit/docs/cpython.md +++ b/crates/bashkit/docs/cpython.md @@ -19,7 +19,7 @@ Enable the `cpython` cargo feature and register the builtins: ```toml [dependencies] -bashkit = { version = "0.20.3", features = ["cpython"] } +bashkit = { version = "0.21.0", features = ["cpython"] } ``` ```rust @@ -242,7 +242,7 @@ executable memory. Enable `cpython-native` instead of `cpython` to compile it to machine code for your target at build time: ```toml -bashkit = { version = "0.20.3", features = ["cpython-native"] } +bashkit = { version = "0.21.0", features = ["cpython-native"] } ``` Calls get 4-10x faster (`print(1)` ~1 ms instead of ~4 ms; CPU-bound code diff --git a/crates/bashkit/docs/logging.md b/crates/bashkit/docs/logging.md index 41c8110dc..7d4614b3f 100644 --- a/crates/bashkit/docs/logging.md +++ b/crates/bashkit/docs/logging.md @@ -14,7 +14,7 @@ Add the `logging` feature to your `Cargo.toml`: ```toml [dependencies] -bashkit = { version = "0.20.3", features = ["logging"] } +bashkit = { version = "0.21.0", features = ["logging"] } tracing-subscriber = "0.3" # or your preferred subscriber ``` diff --git a/crates/bashkit/docs/markkit-fetchkit.md b/crates/bashkit/docs/markkit-fetchkit.md index 4f90506e1..e26d2be1b 100644 --- a/crates/bashkit/docs/markkit-fetchkit.md +++ b/crates/bashkit/docs/markkit-fetchkit.md @@ -12,7 +12,7 @@ as their standalone binaries**: Both are **off by default**. Enable the Cargo features: ```toml -bashkit = { version = "0.20.3", features = ["markkit", "fetchkit"] } +bashkit = { version = "0.21.0", features = ["markkit", "fetchkit"] } ``` ```bash diff --git a/crates/bashkit/docs/sqlite.md b/crates/bashkit/docs/sqlite.md index e55e713f1..180cd6f77 100644 --- a/crates/bashkit/docs/sqlite.md +++ b/crates/bashkit/docs/sqlite.md @@ -13,7 +13,7 @@ the `sqlite` feature. The engine is [Turso](https://github.com/tursodatabase/tur ```toml # Cargo.toml -bashkit = { version = "0.20.3", features = ["sqlite"] } +bashkit = { version = "0.21.0", features = ["sqlite"] } ``` ```rust,ignore diff --git a/crates/bashkit/fuzz/Cargo.lock b/crates/bashkit/fuzz/Cargo.lock index 36cda72a3..6b70a67be 100644 --- a/crates/bashkit/fuzz/Cargo.lock +++ b/crates/bashkit/fuzz/Cargo.lock @@ -157,7 +157,7 @@ checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" [[package]] name = "bashkit" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "async-trait", @@ -216,7 +216,7 @@ dependencies = [ [[package]] name = "bashkit-cpython-wasm" -version = "0.20.3" +version = "0.21.0" dependencies = [ "lzma-rs", "wasmtime", @@ -233,7 +233,7 @@ dependencies = [ [[package]] name = "bashkit-monty" -version = "0.20.3" +version = "0.21.0" dependencies = [ "ahash", "bashkit-monty-types", @@ -273,7 +273,7 @@ dependencies = [ [[package]] name = "bashkit-monty-types" -version = "0.20.3" +version = "0.21.0" dependencies = [ "chrono", "jiff", diff --git a/crates/bashkit/src/lib.rs b/crates/bashkit/src/lib.rs index ad237c73a..552b49dd8 100644 --- a/crates/bashkit/src/lib.rs +++ b/crates/bashkit/src/lib.rs @@ -323,7 +323,7 @@ //! //! ```toml //! [dependencies] -//! bashkit = { version = "0.20.3", features = ["git"] } +//! bashkit = { version = "0.21.0", features = ["git"] } //! ``` //! //! ```rust,ignore @@ -354,7 +354,7 @@ //! //! ```toml //! [dependencies] -//! bashkit = { version = "0.20.3", features = ["python"] } +//! bashkit = { version = "0.21.0", features = ["python"] } //! ``` //! //! ```rust,ignore diff --git a/docs/builtin_typescript.md b/docs/builtin_typescript.md index bc4f234c0..118814015 100644 --- a/docs/builtin_typescript.md +++ b/docs/builtin_typescript.md @@ -12,7 +12,7 @@ Add the `typescript` feature to your `Cargo.toml`: ```toml [dependencies] -bashkit = { version = "0.20.3", features = ["typescript"] } +bashkit = { version = "0.21.0", features = ["typescript"] } ``` Enable TypeScript in the builder: diff --git a/docs/migrating-scripted-tool.md b/docs/migrating-scripted-tool.md index 8381c2c76..aef55f6a9 100644 --- a/docs/migrating-scripted-tool.md +++ b/docs/migrating-scripted-tool.md @@ -23,8 +23,8 @@ features = ["scripted_tool", "python", "typescript", "jq"] After: ```toml -bashkit = { version = "0.20.3", features = ["python", "typescript", "jq"] } -bashkit-scripted-tool = { version = "0.20.3", features = ["python", "typescript", "jq"] } +bashkit = { version = "0.21.0", features = ["python", "typescript", "jq"] } +bashkit-scripted-tool = { version = "0.21.0", features = ["python", "typescript", "jq"] } ``` Keep `bashkit` only if you use it directly (`Bash`, `BashTool`, the `Tool` diff --git a/examples/hyperlight/Cargo.lock b/examples/hyperlight/Cargo.lock index c8cb21b06..896eb16bf 100644 --- a/examples/hyperlight/Cargo.lock +++ b/examples/hyperlight/Cargo.lock @@ -78,7 +78,7 @@ checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" [[package]] name = "bashkit" -version = "0.20.3" +version = "0.21.0" dependencies = [ "anyhow", "async-trait",