diff --git a/.github/scripts/repair-v8-prebuilt.sh b/.github/scripts/repair-v8-prebuilt.sh deleted file mode 100755 index 74caebc95..000000000 --- a/.github/scripts/repair-v8-prebuilt.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash -# v8-goose downloads a prebuilt librusty_v8 archive into target//gn_out -# and emits a rustc-link-search pointing at it. Cargo caches that build script -# output and replays it on later builds instead of re-running the script, but -# the Rust cache action prunes target/ before saving, so a restored cache can -# keep the replayed link-search while the 131MB archive is gone. Linking then -# fails with "could not find native static library `rusty_v8`". -# -# Drop the cached build script output whenever a directory it advertises is -# missing, which forces the script to re-run and download the archive again. -set -euo pipefail - -[ -d target ] || exit 0 - -find target -type f -path '*/build/v8-goose-*/output' -print0 | - while IFS= read -r -d '' output; do - while IFS= read -r dir; do - [ -n "$dir" ] || continue - [ -d "$dir" ] && continue - echo "v8-goose build output references missing $dir; forcing a rebuild" - rm -rf "$(dirname "$output")" - break - done < <(sed -n 's/^cargo:rustc-link-search=\(.*\)$/\1/p' "$output") - done diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 103dcdec7..23070bdaa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,9 +93,6 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 - - name: Repair stale v8 prebuilt marker - run: .github/scripts/repair-v8-prebuilt.sh - - name: Install Dependencies run: | sudo apt update -y @@ -321,9 +318,6 @@ jobs: sudo apt update -y sudo apt install -y libdbus-1-dev libxcb1-dev - - name: Repair stale v8 prebuilt marker - run: .github/scripts/repair-v8-prebuilt.sh - - name: Check with MSRV toolchain run: cargo check --workspace --locked --all-targets env: @@ -340,9 +334,6 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 - - name: Repair stale v8 prebuilt marker - run: .github/scripts/repair-v8-prebuilt.sh - - name: Lint run: | source ./bin/activate-hermit @@ -350,7 +341,7 @@ jobs: # play nicely with hermit-managed rust hermit uninstall rustup export CARGO_INCREMENTAL=0 - cargo clippy --workspace --all-targets --exclude v8 -- -D warnings + cargo clippy --workspace --all-targets -- -D warnings schema-check: name: Check Generated Schemas are Up-to-Date diff --git a/Cargo.lock b/Cargo.lock index c628af1b0..7a81d2fff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "addr2line" -version = "0.25.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b" -dependencies = [ - "gimli", -] - [[package]] name = "adler2" version = "2.0.1" @@ -76,8 +67,8 @@ dependencies = [ "blocking", "futures", "futures-concurrency", - "rustc-hash 2.1.3", - "rustix 1.1.4", + "rustc-hash", + "rustix", "schemars 1.2.2", "serde", "serde_json", @@ -153,6 +144,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "aligned-vec" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b" +dependencies = [ + "equator", +] + [[package]] name = "alloc-no-stdlib" version = "2.0.4" @@ -258,12 +258,12 @@ dependencies = [ ] [[package]] -name = "ar_archive_writer" -version = "0.5.3" +name = "arbitrary" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73cd58deff2140a0a8eae87e417bd01db68a33e148aa93d1e8cd837e55e312b6" +checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed" dependencies = [ - "object 0.39.1", + "derive_arbitrary", ] [[package]] @@ -298,12 +298,6 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" -[[package]] -name = "ascii" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16" - [[package]] name = "askama" version = "0.16.1" @@ -329,7 +323,7 @@ dependencies = [ "memchr", "proc-macro2", "quote", - "rustc-hash 2.1.3", + "rustc-hash", "serde", "serde_derive", "syn 3.0.5", @@ -350,7 +344,7 @@ version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c5ae75772275d268b03ab8bdccdd12117b6169ee23256942b34e46c9f476583" dependencies = [ - "rustc-hash 2.1.3", + "rustc-hash", "serde", "serde_derive", "unicode-ident", @@ -382,7 +376,7 @@ dependencies = [ "proc-macro2", "quote", "syn 2.0.119", - "synstructure", + "synstructure 0.13.2", ] [[package]] @@ -406,17 +400,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "ast_node" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2eb025ef00a6da925cf40870b9c8d008526b6004ece399cb0974209720f0b194" -dependencies = [ - "quote", - "swc_macros_common", - "syn 2.0.119", -] - [[package]] name = "async-channel" version = "2.5.0" @@ -454,7 +437,7 @@ dependencies = [ "futures-lite", "parking", "polling", - "rustix 1.1.4", + "rustix", "slab", "windows-sys 0.61.2", ] @@ -470,12 +453,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "async-once-cell" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4288f83726785267c6f2ef073a3d83dc3f9b81464e9f99898240cced85fce35a" - [[package]] name = "async-process" version = "2.5.0" @@ -491,7 +468,7 @@ dependencies = [ "cfg-if", "event-listener", "futures-lite", - "rustix 1.1.4", + "rustix", ] [[package]] @@ -506,7 +483,7 @@ dependencies = [ "cfg-if", "futures-core", "futures-io", - "rustix 1.1.4", + "rustix", "signal-hook-registry", "slab", "windows-sys 0.61.2", @@ -1154,12 +1131,6 @@ dependencies = [ "tower-service", ] -[[package]] -name = "az" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be5eb007b7cacc6c660343e96f650fedf4b5a77512399eb952ca6642cf8d13f7" - [[package]] name = "backon" version = "1.6.0" @@ -1171,21 +1142,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "backtrace" -version = "0.3.76" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6" -dependencies = [ - "addr2line", - "cfg-if", - "libc", - "miniz_oxide 0.8.9", - "object 0.37.3", - "rustc-demangle", - "windows-link", -] - [[package]] name = "base16ct" version = "0.2.0" @@ -1198,24 +1154,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd307490d624467aa6f74b0eabb77633d1f758a7b25f12bceb0b22e08d9726f6" -[[package]] -name = "base32" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "022dfe9eb35f19ebbcb51e0b40a5ab759f46ad60cadf7297e0bd085afb50e076" - [[package]] name = "base64" version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" -[[package]] -name = "base64" -version = "0.21.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" - [[package]] name = "base64" version = "0.22.1" @@ -1290,19 +1234,10 @@ dependencies = [ "thiserror 2.0.20", "toml 0.9.12+spec-1.1.0", "unicode-segmentation", - "unicode-width 0.2.2", + "unicode-width", "walkdir", ] -[[package]] -name = "better_scoped_tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cd228125315b132eed175bf47619ac79b945b26e56b848ba203ae4ea8603609" -dependencies = [ - "scoped-tls", -] - [[package]] name = "bincode" version = "1.3.3" @@ -1327,274 +1262,11 @@ dependencies = [ "proc-macro2", "quote", "regex", - "rustc-hash 2.1.3", + "rustc-hash", "shlex 1.3.0", "syn 2.0.119", ] -[[package]] -name = "biome_console" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bff6dcd31afe7872430d10b3b79d66ba01e090c3a000ba826e91830bca95d0c" -dependencies = [ - "biome_markup", - "biome_text_size", - "schemars 0.8.22", - "serde", - "termcolor", - "unicode-segmentation", - "unicode-width 0.1.14", -] - -[[package]] -name = "biome_deserialize" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9969c2b032155b05dc837c71337149800bdc56b07ecc3cfd7c2d963db07f049" -dependencies = [ - "biome_console", - "biome_diagnostics", - "biome_json_parser", - "biome_json_syntax", - "biome_rowan", - "bitflags 2.13.2", - "indexmap 1.9.3", - "serde", - "serde_json", - "tracing", -] - -[[package]] -name = "biome_diagnostics" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92eeba94d7926178e59511b85cdcd0398ba1cc54a9f658ec261184e20028dd0e" -dependencies = [ - "backtrace", - "biome_console", - "biome_diagnostics_categories", - "biome_diagnostics_macros", - "biome_rowan", - "biome_text_edit", - "biome_text_size", - "bitflags 2.13.2", - "bpaf", - "serde", - "termcolor", - "unicode-width 0.1.14", -] - -[[package]] -name = "biome_diagnostics_categories" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4e8ef1f8a683438b2c6e68c996d66ceeb4764c3672e1eb20c9e6b404056a3d4" -dependencies = [ - "quote", - "serde", -] - -[[package]] -name = "biome_diagnostics_macros" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9a4eeb40457bd8ed3ea91d2b48ad12e80dc92eb083f909a8b5ad1d1b71d5c4" -dependencies = [ - "proc-macro-error", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "biome_formatter" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fd09e51dc9b0b6e52017ef6dacea26c3291181b42a3dbbccc61d47b8f9330d1" -dependencies = [ - "biome_console", - "biome_deserialize", - "biome_diagnostics", - "biome_rowan", - "cfg-if", - "countme", - "drop_bomb", - "indexmap 1.9.3", - "rustc-hash 1.1.0", - "tracing", - "unicode-width 0.1.14", -] - -[[package]] -name = "biome_js_factory" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb1ed97002c53c737b765e2dc8f25da2f91ecec03385d2280afa5ab94456972a" -dependencies = [ - "biome_js_syntax", - "biome_rowan", -] - -[[package]] -name = "biome_js_formatter" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e010bc8836e38c7168a9bfbec9391efa3bd6b5e9b321e05d613fc511d1e5db51" -dependencies = [ - "biome_console", - "biome_deserialize", - "biome_diagnostics_categories", - "biome_formatter", - "biome_js_factory", - "biome_js_syntax", - "biome_js_unicode_table", - "biome_json_syntax", - "biome_rowan", - "biome_text_size", - "cfg-if", - "smallvec", - "tracing", - "unicode-width 0.1.14", -] - -[[package]] -name = "biome_js_parser" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cef3036cef3632c72c83cc1197c3af868ae440ec2576a494ea812fafe5ee18e" -dependencies = [ - "biome_console", - "biome_diagnostics", - "biome_js_factory", - "biome_js_syntax", - "biome_js_unicode_table", - "biome_parser", - "biome_rowan", - "bitflags 2.13.2", - "cfg-if", - "drop_bomb", - "indexmap 1.9.3", - "rustc-hash 1.1.0", - "serde", - "serde_json", - "smallvec", - "tracing", - "unicode-bom", -] - -[[package]] -name = "biome_js_syntax" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "874ff2a6f691d231195a02b85243c5e2ba820973f7ba71e29f320aaabe1a749e" -dependencies = [ - "biome_console", - "biome_diagnostics", - "biome_rowan", -] - -[[package]] -name = "biome_js_unicode_table" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b174dd2a0e5d74e1763045a9eb021bf89c38e3bf48f5852653635688a8675b9" - -[[package]] -name = "biome_json_factory" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ec30f94381f11b6c4f2cb49492cf02b34dec74fd8cf01b7b1b10138d2f6b41e" -dependencies = [ - "biome_json_syntax", - "biome_rowan", -] - -[[package]] -name = "biome_json_parser" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baddbd7fee954d8b20b6db922e77c70db8d73fadeb43bae254e7fb2e0364a553" -dependencies = [ - "biome_console", - "biome_diagnostics", - "biome_js_unicode_table", - "biome_json_factory", - "biome_json_syntax", - "biome_parser", - "biome_rowan", - "tracing", - "unicode-bom", -] - -[[package]] -name = "biome_json_syntax" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97bb81952034ac0a4e5100d939c4286862193361a687c21aa0c15da388b29b32" -dependencies = [ - "biome_rowan", -] - -[[package]] -name = "biome_markup" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b75b241c9346a7a55968398e51502333c18e200bec5d72b08d448084045e02" -dependencies = [ - "proc-macro-error", - "proc-macro2", - "quote", -] - -[[package]] -name = "biome_parser" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33531b8a29ce80cfd320f3278a167ec41985d9b4701013184d95aef9642bf761" -dependencies = [ - "biome_console", - "biome_diagnostics", - "biome_rowan", - "bitflags 2.13.2", - "drop_bomb", -] - -[[package]] -name = "biome_rowan" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e46e82f8245181cdf45794f3025db1daa4865e8730214345e540eae570957aa" -dependencies = [ - "biome_text_edit", - "biome_text_size", - "countme", - "hashbrown 0.12.3", - "memoffset", - "rustc-hash 1.1.0", - "tracing", -] - -[[package]] -name = "biome_text_edit" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81ff84924f11cc4d9a5ee2a3b59630aa9f2c2c359f7623ac541b1ff82390d80b" -dependencies = [ - "biome_text_size", - "serde", - "similar", -] - -[[package]] -name = "biome_text_size" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e945f7da7f14dd66563ca6be0133014e6a1cbe935247f7b5ee8e28b2b8282f6" -dependencies = [ - "serde", -] - [[package]] name = "bit-set" version = "0.8.0" @@ -1640,18 +1312,6 @@ dependencies = [ "serde_core", ] -[[package]] -name = "bitvec" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddcec3d12c579d40898fe0a9a358a803c23e9c52ca3c425707f81c9436211837" -dependencies = [ - "funty", - "radium", - "tap", - "wyz", -] - [[package]] name = "blake3" version = "1.8.7" @@ -1720,6 +1380,150 @@ dependencies = [ "piper", ] +[[package]] +name = "boa_ast" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9221b0a090572b4a118b46c5874c0781fe4bc9546b85f0a615b8bfb609ca4ed7" +dependencies = [ + "arbitrary", + "bitflags 2.13.2", + "boa_interner", + "boa_macros", + "boa_string", + "indexmap 2.14.2", + "num-bigint 0.5.1", + "rustc-hash", + "strum 0.28.0", +] + +[[package]] +name = "boa_engine" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d6aaf7fdc4299df68adb67e1a5440a51d34630a1f5271b9698fd74bc97b60d9" +dependencies = [ + "aligned-vec", + "arrayvec", + "async-channel", + "bitflags 2.13.2", + "boa_ast", + "boa_gc", + "boa_interner", + "boa_macros", + "boa_parser", + "boa_string", + "bytemuck", + "cfg-if", + "cow-utils", + "dashmap", + "dynify", + "fast-float2", + "futures-concurrency", + "futures-lite", + "hashbrown 0.17.1", + "icu_normalizer", + "indexmap 2.14.2", + "intrusive-collections", + "itertools 0.15.0", + "num-bigint 0.5.1", + "num-integer", + "num-traits", + "num_enum", + "oneshot 0.2.1", + "pastey", + "portable-atomic", + "rand 0.10.2", + "regress", + "rustc-hash", + "ryu-js", + "serde", + "serde_json", + "small_btree", + "static_assertions", + "tag_ptr", + "tap", + "thin-vec", + "thiserror 2.0.20", + "time", +] + +[[package]] +name = "boa_gc" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af82119558ab1002d1978c8459b53a3ebb506177d29a3aca37c07c1777b1d966" +dependencies = [ + "arrayvec", + "boa_macros", + "boa_string", + "hashbrown 0.17.1", + "thin-vec", +] + +[[package]] +name = "boa_interner" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "317c631e791f5cb7d0017e43c0a758b0eaffd40c34c4c360e2a6be7752b78cd1" +dependencies = [ + "arbitrary", + "boa_gc", + "boa_macros", + "hashbrown 0.17.1", + "indexmap 2.14.2", + "once_cell", + "phf 0.14.0", + "rustc-hash", + "static_assertions", +] + +[[package]] +name = "boa_macros" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b882fd440dc0f4b7441367cf89567bb077920356750c9a76a16c002d8ec2fa5c" +dependencies = [ + "cfg-if", + "cow-utils", + "proc-macro2", + "quote", + "syn 3.0.5", + "synstructure 0.14.0", +] + +[[package]] +name = "boa_parser" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "641e81b3c8cbb7a2140547fb3ea534e9edf210b4e8c920b5fa864a919e11fbcf" +dependencies = [ + "bitflags 2.13.2", + "boa_ast", + "boa_interner", + "boa_macros", + "fast-float2", + "icu_properties", + "num-bigint 0.5.1", + "num-traits", + "regress", + "rustc-hash", +] + +[[package]] +name = "boa_string" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30bf86c2bcff5bf2547acbfc516c5d3108ca527cb131511d749bf6fbef762c0e" +dependencies = [ + "fast-float2", + "itoa", + "pastey", + "rustc-hash", + "ryu-js", + "static_assertions", +] + [[package]] name = "bon" version = "3.10.1" @@ -1749,36 +1553,6 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc0b364ead1874514c8c2855ab558056ebfeb775653e7ae45ff72f28f8f3166c" -[[package]] -name = "boxed_error" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17d4f95e880cfd28c4ca5a006cf7f6af52b4bcb7b5866f573b2faa126fb7affb" -dependencies = [ - "quote", - "syn 2.0.119", -] - -[[package]] -name = "bpaf" -version = "0.9.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c670d65eea33846872d5ccf668c00a94c5c67dbdcc0289ea1c362671ce1ddb82" -dependencies = [ - "bpaf_derive", -] - -[[package]] -name = "bpaf_derive" -version = "0.5.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f7e98cee839b19076cb3ce1afdb62bb182e04ff5f71f70188827002fae91094" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "brotli" version = "8.0.4" @@ -1825,9 +1599,6 @@ name = "bumpalo" version = "3.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" -dependencies = [ - "allocator-api2", -] [[package]] name = "bytecount" @@ -1873,16 +1644,6 @@ version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" -[[package]] -name = "bytes-str" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "577d2bf5650f8554d5a372af5ac93535110a0fc75b3e702bb853369febf227c2" -dependencies = [ - "bytes", - "serde", -] - [[package]] name = "bytes-utils" version = "0.1.4" @@ -1908,22 +1669,6 @@ dependencies = [ "libbz2-rs-sys", ] -[[package]] -name = "cache_control" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bf2a5fb3207c12b5d208ebc145f967fea5cac41a021c37417ccc31ba40f39ee" - -[[package]] -name = "calendrical_calculations" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5abbd6eeda6885048d357edc66748eea6e0268e3dd11f326fff5bd248d779c26" -dependencies = [ - "core_maths", - "displaydoc", -] - [[package]] name = "camino" version = "1.2.6" @@ -2038,28 +1783,6 @@ dependencies = [ "ug-metal", ] -[[package]] -name = "capacity_builder" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f2d24a6dcf0cd402a21b65d35340f3a49ff3475dc5fdac91d22d2733e6641c6" -dependencies = [ - "capacity_builder_macros", - "ecow", - "hipstr", - "itoa", -] - -[[package]] -name = "capacity_builder_macros" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b4a6cae9efc04cc6cbb8faf338d2c497c165c83e74509cf4dbedea948bbf6e5" -dependencies = [ - "quote", - "syn 2.0.119", -] - [[package]] name = "cargo-platform" version = "0.3.3" @@ -2412,20 +2135,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "136c8c4c3823846e8ba6d4bda011b4e5d5827b8bb0ac26c31f9ab31abe9f54f2" dependencies = [ "unicode-segmentation", - "unicode-width 0.2.2", -] - -[[package]] -name = "compact_str" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f86b9c4c00838774a6d902ef931eff7470720c51d90c2e32cfe15dc304737b3f" -dependencies = [ - "castaway", - "cfg-if", - "itoa", - "ryu", - "static_assertions", + "unicode-width", ] [[package]] @@ -2480,7 +2190,7 @@ checksum = "e96a4956774c13c126a8b5af4daa79384f4d826534c95a02d76afb39e2ab64e3" dependencies = [ "encode_unicode", "libc", - "unicode-width 0.2.2", + "unicode-width", "windows-sys 0.61.2", ] @@ -2535,12 +2245,6 @@ dependencies = [ "unicode-segmentation", ] -[[package]] -name = "cooked-waker" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147be55d677052dabc6b22252d5dd0fd4c29c8c27aa4f2fbef0f94aa003b406f" - [[package]] name = "cookie" version = "0.18.2" @@ -2623,15 +2327,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48" -[[package]] -name = "core_maths" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30" -dependencies = [ - "libm", -] - [[package]] name = "countio" version = "0.3.0" @@ -2642,10 +2337,10 @@ dependencies = [ ] [[package]] -name = "countme" -version = "3.0.1" +name = "cow-utils" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636" +checksum = "417bef24afe1460300965a25ff4a24b8b45ad011948302ec221e8a0a81eb2c79" [[package]] name = "cpubits" @@ -3029,19 +2724,6 @@ dependencies = [ "serde", ] -[[package]] -name = "dashmap" -version = "5.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" -dependencies = [ - "cfg-if", - "hashbrown 0.14.5", - "lock_api", - "once_cell", - "parking_lot_core", -] - [[package]] name = "dashmap" version = "6.2.1" @@ -3082,12 +2764,6 @@ dependencies = [ "syn 3.0.5", ] -[[package]] -name = "data-url" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376" - [[package]] name = "dbus" version = "0.9.12" @@ -3128,16 +2804,6 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "092966b41edc516079bdf31ec78a2e0588d1d0c08f78b91d8307215928642b2b" -[[package]] -name = "debugid" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d" -dependencies = [ - "serde", - "uuid", -] - [[package]] name = "defmt" version = "1.1.1" @@ -3169,356 +2835,6 @@ dependencies = [ "thiserror 2.0.20", ] -[[package]] -name = "deno_ast" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30c2f6f65154faed61e45d6578566f9fab9d2a330c35c87366706883701cce51" -dependencies = [ - "base64 0.22.1", - "capacity_builder", - "deno_error", - "deno_media_type", - "deno_terminal", - "dprint-swc-ext", - "percent-encoding", - "serde", - "swc_atoms", - "swc_common", - "swc_config", - "swc_config_macro", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_codegen_macros", - "swc_ecma_lexer", - "swc_ecma_loader", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_classes", - "swc_ecma_transforms_macros", - "swc_ecma_transforms_proposal", - "swc_ecma_transforms_react", - "swc_ecma_transforms_typescript", - "swc_ecma_utils", - "swc_ecma_visit", - "swc_eq_ignore_macros", - "swc_macros_common", - "swc_sourcemap", - "swc_visit", - "text_lines", - "thiserror 2.0.20", - "unicode-width 0.2.2", - "url", -] - -[[package]] -name = "deno_cache_dir" -version = "0.26.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7862aa4b7aad895ee979a3078bd25da192a1810b30cb5a7e764fed38d065eba9" -dependencies = [ - "async-trait", - "base32", - "base64 0.21.7", - "boxed_error", - "cache_control", - "chrono", - "data-url", - "deno_error", - "deno_media_type", - "deno_path_util", - "http 1.5.0", - "indexmap 2.14.2", - "log", - "once_cell", - "parking_lot", - "serde", - "serde_json", - "sha2 0.10.9", - "sys_traits", - "thiserror 2.0.20", - "url", -] - -[[package]] -name = "deno_config" -version = "0.77.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba166cbf37d43fb2d34d9a1dce8ce2c0f9b84727a99db0ed12564c05a46886b4" -dependencies = [ - "boxed_error", - "capacity_builder", - "chrono", - "deno_error", - "deno_maybe_sync", - "deno_package_json", - "deno_path_util", - "deno_semver", - "glob", - "ignore", - "import_map", - "indexmap 2.14.2", - "jsonc-parser", - "log", - "serde", - "serde_json", - "sys_traits", - "thiserror 2.0.20", - "url", -] - -[[package]] -name = "deno_core" -version = "0.381.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77660b04f5368bcd69a42e0fdd6343e325eb781ec7d79bbf49ff2548ae4f17b6" -dependencies = [ - "anyhow", - "az", - "bincode", - "bit-set", - "bit-vec 0.8.0", - "boxed_error", - "bytes", - "capacity_builder", - "cooked-waker", - "deno_core_icudata", - "deno_error", - "deno_ops", - "deno_path_util", - "deno_unsync", - "futures", - "indexmap 2.14.2", - "libc", - "parking_lot", - "percent-encoding", - "pin-project", - "serde", - "serde_json", - "serde_v8", - "smallvec", - "sourcemap", - "static_assertions", - "thiserror 2.0.20", - "tokio", - "url", - "v8", - "wasm_dep_analyzer", -] - -[[package]] -name = "deno_core_icudata" -version = "0.77.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9efff8990a82c1ae664292507e1a5c6749ddd2312898cdf9cd7cb1fd4bc64c6" - -[[package]] -name = "deno_error" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfafd2219b29886a71aecbb3449e462deed1b2c474dc5b12f855f0e58c478931" -dependencies = [ - "deno_error_macro", - "libc", - "serde", - "serde_json", - "tokio", - "url", -] - -[[package]] -name = "deno_error_macro" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c28ede88783f14cd8aae46ca89f230c226b40e4a81ab06fa52ed72af84beb2f" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - -[[package]] -name = "deno_lockfile" -version = "0.32.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d71c0df1464034be21a9472e7ec8f9a21958418d203fa2c40507fb5cafe799d" -dependencies = [ - "async-trait", - "deno_semver", - "serde", - "serde_json", - "thiserror 2.0.20", -] - -[[package]] -name = "deno_maybe_sync" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "042601bdeb305f3accea03d005ab106305960bbfc1b9649fe14d8ee29decf8dc" - -[[package]] -name = "deno_media_type" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac0109d26ff08a089642a79b45c65f91a849404c1ef3ec78c837a412956d8808" -dependencies = [ - "data-url", - "serde", - "url", -] - -[[package]] -name = "deno_npm" -version = "0.42.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ff75f741a6ead7e13ed60151071d886310d75942845fff8b523423115772e3f" -dependencies = [ - "async-trait", - "capacity_builder", - "chrono", - "deno_error", - "deno_lockfile", - "deno_semver", - "futures", - "indexmap 2.14.2", - "log", - "monch", - "serde", - "serde_json", - "thiserror 2.0.20", - "url", -] - -[[package]] -name = "deno_ops" -version = "0.257.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dd9aa20a48be11c922d9451a524afecde323a22d5defacc1dd79f8deac728fb" -dependencies = [ - "indexmap 2.14.2", - "proc-macro2", - "quote", - "stringcase", - "strum 0.27.2", - "strum_macros 0.27.2", - "syn 2.0.119", - "syn-match", - "thiserror 2.0.20", -] - -[[package]] -name = "deno_package_json" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52308462288a304df2d659a8c3aa71426bee546843d23820605666e7c99b91e9" -dependencies = [ - "boxed_error", - "deno_error", - "deno_maybe_sync", - "deno_path_util", - "deno_semver", - "indexmap 2.14.2", - "serde", - "serde_json", - "sys_traits", - "thiserror 2.0.20", - "url", -] - -[[package]] -name = "deno_path_util" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78c7e98943f0d068928906db0c7bde89de684fa32c6a8018caacc4cee2cdd72b" -dependencies = [ - "deno_error", - "percent-encoding", - "sys_traits", - "thiserror 2.0.20", - "url", -] - -[[package]] -name = "deno_resolver" -version = "0.58.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbbc1abe929b6f3719871c4075154c6334d516b88c046b5c2ba7d7998ae62301" -dependencies = [ - "anyhow", - "async-once-cell", - "async-trait", - "base32", - "boxed_error", - "capacity_builder", - "chrono", - "deno_cache_dir", - "deno_config", - "deno_error", - "deno_lockfile", - "deno_maybe_sync", - "deno_media_type", - "deno_npm", - "deno_package_json", - "deno_path_util", - "deno_semver", - "deno_terminal", - "deno_unsync", - "dissimilar", - "futures", - "import_map", - "indexmap 2.14.2", - "jsonc-parser", - "log", - "node_resolver", - "once_cell", - "parking_lot", - "phf 0.11.3", - "serde", - "serde_json", - "sys_traits", - "thiserror 2.0.20", - "twox-hash", - "url", -] - -[[package]] -name = "deno_semver" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d46d2fd6959170a6e9f6607a6f79683868fa82ceac56ca520ab014e4fa5b21" -dependencies = [ - "capacity_builder", - "deno_error", - "ecow", - "hipstr", - "monch", - "once_cell", - "serde", - "thiserror 2.0.20", - "url", -] - -[[package]] -name = "deno_terminal" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3ba8041ae7319b3ca6a64c399df4112badcbbe0868b4517637647614bede4be" -dependencies = [ - "once_cell", - "termcolor", -] - -[[package]] -name = "deno_unsync" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6742a724e8becb372a74c650a1aefb8924a5b8107f7d75b3848763ea24b27a87" -dependencies = [ - "futures-util", - "parking_lot", - "tokio", -] - [[package]] name = "der" version = "0.7.10" @@ -3552,7 +2868,7 @@ dependencies = [ "asn1-rs", "displaydoc", "nom 7.1.3", - "num-bigint", + "num-bigint 0.4.8", "num-traits", "rusticata-macros", ] @@ -3577,6 +2893,17 @@ dependencies = [ "serde_core", ] +[[package]] +name = "derive_arbitrary" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b034bd7d5f032402a2479444dcc6f74e36a03f31854d41680fb240ef682a1ac" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + [[package]] name = "derive_builder" version = "0.20.2" @@ -3637,12 +2964,6 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab03c107fafeb3ee9f5925686dbb7a73bc76e3932abb0d2b365cb64b169cf04c" -[[package]] -name = "diff" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" - [[package]] name = "digest" version = "0.10.7" @@ -3667,38 +2988,6 @@ dependencies = [ "ctutils", ] -[[package]] -name = "diplomat" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9adb46b05e2f53dcf6a7dfc242e4ce9eb60c369b6b6eb10826a01e93167f59c6" -dependencies = [ - "diplomat_core", - "proc-macro2", - "quote", - "syn 2.0.119", -] - -[[package]] -name = "diplomat-runtime" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0569bd3caaf13829da7ee4e83dbf9197a0e1ecd72772da6d08f0b4c9285c8d29" - -[[package]] -name = "diplomat_core" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51731530ed7f2d4495019abc7df3744f53338e69e2863a6a64ae91821c763df1" -dependencies = [ - "proc-macro2", - "quote", - "serde", - "smallvec", - "strck", - "syn 2.0.119", -] - [[package]] name = "dirs" version = "6.0.0" @@ -3752,12 +3041,6 @@ dependencies = [ "syn 3.0.5", ] -[[package]] -name = "dissimilar" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59f8e79d1fbf76bdfbde321e902714bf6c49df88a7dda6fc682fc2979226962d" - [[package]] name = "dlopen2" version = "0.8.2" @@ -3807,28 +3090,6 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1435fa1053d8b2fbbe9be7e97eca7f33d37b28409959813daefc1446a14247f1" -[[package]] -name = "dprint-swc-ext" -version = "0.26.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "661f154a87e7459f54a2f4a1c615661a416a822b4a9e3ad0491dce2bd080421f" -dependencies = [ - "num-bigint", - "rustc-hash 2.1.3", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_lexer", - "swc_ecma_parser", - "text_lines", -] - -[[package]] -name = "drop_bomb" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bda8e21c04aca2ae33ffc2fd8c23134f3cac46db123ba97bd9d3f3b8a4a85e1" - [[package]] name = "dtor" version = "1.0.6" @@ -3866,6 +3127,26 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d926b4d407d372f141f93bb444696142c29d32962ccbd3531117cf3aa0bfa9" +[[package]] +name = "dynify" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81acb15628a3e22358bf73de5e7e62360b8a777dbcb5fc9ac7dfa9ae73723747" +dependencies = [ + "dynify-macros", +] + +[[package]] +name = "dynify-macros" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec431cd708430d5029356535259c5d645d60edd3d39c54e5eea9782d46caa7d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "ecb" version = "0.2.1" @@ -3889,15 +3170,6 @@ dependencies = [ "spki 0.7.3", ] -[[package]] -name = "ecow" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78e4f79b296fbaab6ce2e22d52cb4c7f010fe0ebe7a32e34fa25885fd797bd02" -dependencies = [ - "serde", -] - [[package]] name = "ed25519" version = "2.2.3" @@ -4082,6 +3354,26 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe" +[[package]] +name = "equator" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc" +dependencies = [ + "equator-macro", +] + +[[package]] +name = "equator-macro" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "equivalent" version = "1.0.2" @@ -4199,6 +3491,12 @@ dependencies = [ "regex-syntax", ] +[[package]] +name = "fast-float2" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6e8948ce679d00a02a94739ea185595dca7118ed04feb991127e443bd3d761f" + [[package]] name = "fastrand" version = "2.5.0" @@ -4394,7 +3692,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e246562084dde8ebbcc943b261c406ce4f68e5032ec28029a251a47d6a295500" dependencies = [ "num", - "num-bigint", + "num-bigint 0.4.8", ] [[package]] @@ -4406,16 +3704,6 @@ dependencies = [ "futures-core", ] -[[package]] -name = "from_variant" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ff35a391aef949120a0340d690269b3d9f63460a6106e99bd07b961f345ea9" -dependencies = [ - "swc_macros_common", - "syn 2.0.119", -] - [[package]] name = "fs-err" version = "3.3.1" @@ -4442,22 +3730,6 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" -[[package]] -name = "fslock" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04412b8935272e3a9bae6f48c7bfff74c2911f60525404edfdd28e49884c3bfb" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "funty" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" - [[package]] name = "futures" version = "0.3.34" @@ -4872,7 +4144,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" dependencies = [ - "rustix 1.1.4", + "rustix", "windows-link", ] @@ -4947,12 +4219,6 @@ dependencies = [ "weezl 0.1.12", ] -[[package]] -name = "gimli" -version = "0.32.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" - [[package]] name = "git-version" version = "0.3.9" @@ -5036,6 +4302,7 @@ dependencies = [ "axum-server", "base64 0.23.1", "blake3", + "boa_engine", "byteorder", "bytes", "candle-core", @@ -5062,8 +4329,6 @@ dependencies = [ "goose-sdk-types", "goose-test-support", "http 1.5.0", - "icu_calendar", - "icu_locale", "ignore", "image 0.24.9", "include_dir", @@ -5082,20 +4347,19 @@ dependencies = [ "oauth2", "once_cell", "openssl", - "opentelemetry 0.32.0", + "opentelemetry", "opentelemetry-appender-tracing", - "opentelemetry-otlp 0.32.0", + "opentelemetry-otlp", "opentelemetry-stdout", - "opentelemetry_sdk 0.32.1", + "opentelemetry_sdk", "pastey", - "pctx_code_mode", "pem 4.0.0", "rand 0.10.2", "rayon", "rcgen", "regex", "reqwest 0.13.5", - "rmcp 3.4.1", + "rmcp", "rubato", "rustls", "schemars 1.2.2", @@ -5168,7 +4432,7 @@ dependencies = [ "futures", "goose-provider-types", "js-sys", - "rmcp 3.4.1", + "rmcp", "schemars 1.2.2", "serde", "serde_json", @@ -5218,7 +4482,7 @@ dependencies = [ "rand 0.10.2", "regex", "reqwest 0.13.5", - "rmcp 3.4.1", + "rmcp", "rustyline", "serde", "serde_json", @@ -5253,7 +4517,7 @@ dependencies = [ "goose-provider-types", "include_dir", "minijinja", - "rmcp 3.4.1", + "rmcp", "serde", "serde_json", "tokio", @@ -5295,7 +4559,7 @@ dependencies = [ "minijinja", "pulldown-cmark", "regex", - "rmcp 3.4.1", + "rmcp", "safemlx", "safemlx-lm", "safemlx-lm-utils", @@ -5321,7 +4585,7 @@ dependencies = [ "lopdf", "once_cell", "process-wrap 9.1.0", - "rmcp 3.4.1", + "rmcp", "schemars 1.2.2", "serde", "serde_json", @@ -5351,7 +4615,7 @@ dependencies = [ "rand 0.10.2", "regex", "reqwest 0.13.5", - "rmcp 3.4.1", + "rmcp", "serde", "serde_json", "strum 0.28.0", @@ -5385,7 +4649,7 @@ dependencies = [ "pem 4.0.0", "pkcs8 0.11.0", "reqwest 0.13.5", - "rmcp 3.4.1", + "rmcp", "sec1 0.8.1", "serde", "serde_json", @@ -5434,7 +4698,7 @@ dependencies = [ "goose-context-management", "goose-providers", "goose-sdk-types", - "rmcp 3.4.1", + "rmcp", "serde_json", "thiserror 2.0.20", "tokio", @@ -5467,8 +4731,8 @@ version = "1.55.0" dependencies = [ "axum", "env-lock", - "opentelemetry 0.32.0", - "rmcp 3.4.1", + "opentelemetry", + "rmcp", "schemars 1.2.2", "serde", "serde_json", @@ -5486,15 +4750,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "gzip-header" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86848f4fd157d91041a62c78046fb7b248bcc2dce78376d436a1756e9a038577" -dependencies = [ - "crc32fast", -] - [[package]] name = "h2" version = "0.4.19" @@ -5529,22 +4784,6 @@ dependencies = [ "zerocopy", ] -[[package]] -name = "handlebars" -version = "6.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75c54236f9045c8004a77942bebc52145b4844639db934a5c70fe08617fbe61a" -dependencies = [ - "derive_builder", - "log", - "num-order", - "pest", - "pest_derive", - "serde", - "serde_json", - "thiserror 2.0.20", -] - [[package]] name = "hashbrown" version = "0.12.3" @@ -5556,10 +4795,6 @@ name = "hashbrown" version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" -dependencies = [ - "ahash", - "allocator-api2", -] [[package]] name = "hashbrown" @@ -5672,17 +4907,6 @@ dependencies = [ "xet-runtime", ] -[[package]] -name = "hipstr" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97971ffc85d4c98de12e2608e992a43f5294ebb625fdb045b27c731b64c4c6d6" -dependencies = [ - "serde", - "serde_bytes", - "sptr", -] - [[package]] name = "hkdf" version = "0.12.4" @@ -5728,20 +4952,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "hstr" -version = "3.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83bb87e4b300d73412f6dcc7022ee7741452b51b155c2b06e5994d0770c2dbe2" -dependencies = [ - "hashbrown 0.14.5", - "new_debug_unreachable", - "once_cell", - "rustc-hash 2.1.3", - "serde", - "triomphe", -] - [[package]] name = "html5gum" version = "0.8.4" @@ -5871,19 +5081,6 @@ dependencies = [ "webpki-roots 1.0.9", ] -[[package]] -name = "hyper-timeout" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" -dependencies = [ - "hyper", - "hyper-util", - "pin-project-lite", - "tokio", - "tower-service", -] - [[package]] name = "hyper-tls" version = "0.6.0" @@ -5949,56 +5146,20 @@ dependencies = [ "cc", ] -[[package]] -name = "icu_calendar" -version = "2.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f0e52e009b6b16ba9c0693578796f2dd4aaa59a7f8f920423706714a89ac4e" -dependencies = [ - "calendrical_calculations", - "displaydoc", - "icu_calendar_data", - "icu_locale", - "icu_locale_core", - "icu_provider", - "tinystr", - "zerovec", -] - -[[package]] -name = "icu_calendar_data" -version = "2.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "527f04223b17edfe0bd43baf14a0cb1b017830db65f3950dc00224860a9a446d" - [[package]] name = "icu_collections" -version = "2.1.1" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" dependencies = [ "displaydoc", "potential_utf", + "utf8_iter", "yoke 0.8.3", "zerofrom", "zerovec", ] -[[package]] -name = "icu_locale" -version = "2.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "532b11722e350ab6bf916ba6eb0efe3ee54b932666afec989465f9243fe6dd60" -dependencies = [ - "icu_collections", - "icu_locale_core", - "icu_locale_data", - "icu_provider", - "potential_utf", - "tinystr", - "zerovec", -] - [[package]] name = "icu_locale_core" version = "2.3.0" @@ -6007,44 +5168,40 @@ checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" dependencies = [ "displaydoc", "litemap", - "serde", "tinystr", "writeable", "zerovec", ] -[[package]] -name = "icu_locale_data" -version = "2.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c5f1d16b4c3a2642d3a719f18f6b06070ab0aef246a6418130c955ae08aa831" - [[package]] name = "icu_normalizer" -version = "2.1.1" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" dependencies = [ "icu_collections", "icu_normalizer_data", "icu_properties", "icu_provider", "smallvec", + "utf16_iter", + "write16", "zerovec", ] [[package]] name = "icu_normalizer_data" -version = "2.1.1" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" +checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" [[package]] name = "icu_properties" -version = "2.1.2" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" dependencies = [ + "displaydoc", "icu_collections", "icu_locale_core", "icu_properties_data", @@ -6055,9 +5212,9 @@ dependencies = [ [[package]] name = "icu_properties_data" -version = "2.1.2" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" +checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" [[package]] name = "icu_provider" @@ -6067,8 +5224,6 @@ checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" dependencies = [ "displaydoc", "icu_locale_core", - "serde", - "stable_deref_trait", "writeable", "yoke 0.8.3", "zerofrom", @@ -6109,12 +5264,6 @@ dependencies = [ "icu_properties", ] -[[package]] -name = "if_chain" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd62e6b5e86ea8eeeb8db1de02880a6abc01a397b2ebb64b5d74ac255318f5cb" - [[package]] name = "ignore" version = "0.4.33" @@ -6172,23 +5321,6 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09e54e57b4c48b40f7aec75635392b12b3421fa26fe8b4332e63138ed278459c" -[[package]] -name = "import_map" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f83a4958a41489355816028239fee373797435384d162f4908e7980c83c3bb1b" -dependencies = [ - "boxed_error", - "deno_error", - "indexmap 2.14.2", - "log", - "percent-encoding", - "serde", - "serde_json", - "thiserror 2.0.20", - "url", -] - [[package]] name = "include_dir" version = "0.7.4" @@ -6239,7 +5371,7 @@ checksum = "9433806cd6b4ec1aba79c021c7e4c58fb4c3b9977c085062e611ac929998fb0c" dependencies = [ "console", "portable-atomic", - "unicode-width 0.2.2", + "unicode-width", "unit-prefix", "web-time", ] @@ -6283,6 +5415,12 @@ dependencies = [ "tempfile", ] +[[package]] +name = "intrusive-collections" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4275b20e6057cd7733fd8df8a5a31701e4fe44497dad0f3fa0e1c4fb971506be" + [[package]] name = "ipconfig" version = "0.3.4" @@ -6337,7 +5475,7 @@ dependencies = [ "portable-atomic", "rand 0.10.2", "reqwest 0.13.5", - "rustc-hash 2.1.3", + "rustc-hash", "rustls", "rustls-pki-types", "serde", @@ -6440,7 +5578,7 @@ dependencies = [ "bytes", "cfg_aliases", "clap", - "dashmap 6.2.1", + "dashmap", "data-encoding", "derive_more", "getrandom 0.4.3", @@ -6496,18 +5634,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "is-macro" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8267aa6001e25494f3015f9663bbd88a18240c74483afa5f0934a1b3e4c388e9" -dependencies = [ - "heck", - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "is-wsl" version = "0.4.0" @@ -6557,12 +5683,6 @@ version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" -[[package]] -name = "ixdtf" -version = "0.6.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d3667095d64c3ecffc96463a21157b04bf3e252f6e8d5750b20c02e33c194e3" - [[package]] name = "jetscii" version = "0.5.3" @@ -6727,15 +5847,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "jsonc-parser" -version = "0.27.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01958dcb05b69d9612853b47df8f7881810e4f61b5cedd8894be04291f28ccb9" -dependencies = [ - "serde_json", -] - [[package]] name = "jsonschema" version = "0.55.1" @@ -6822,7 +5933,6 @@ checksum = "eebcc3aff044e5944a8fbaf69eb277d11986064cba30c468730e8b9909fb551c" dependencies = [ "byteorder", "dbus-secret-service", - "linux-keyutils", "log", "openssl", "security-framework 2.11.1", @@ -6848,29 +5958,6 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e037a2e1d8d5fdbd49b16a4ea09d5d6401c1f29eca5ff29d03d3824dba16256a" -[[package]] -name = "lazy-regex" -version = "3.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4994ba703f78b083e2f7946dac9251abd83fd43a0365f030e99b69be5b4b9ef9" -dependencies = [ - "lazy-regex-proc_macros", - "once_cell", - "regex", -] - -[[package]] -name = "lazy-regex-proc_macros" -version = "3.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd97232314824e6dbef1918a871bb93f51070455e3715bf26e19a6d01aa977a0" -dependencies = [ - "proc-macro2", - "quote", - "regex", - "syn 2.0.119", -] - [[package]] name = "lazy_static" version = "1.5.0" @@ -6966,22 +6053,6 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e57c38c1e860fd37c604281cdfb1dd2216977fd76a50f85ba2f388ef3219616" -[[package]] -name = "linux-keyutils" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83270a18e9f90d0707c41e9f35efada77b64c0e6f3f1810e71c8368a864d5590" -dependencies = [ - "bitflags 2.13.2", - "libc", -] - -[[package]] -name = "linux-raw-sys" -version = "0.4.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" - [[package]] name = "linux-raw-sys" version = "0.12.1" @@ -7194,15 +6265,6 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5449c8c750f1a07ea702bbd212bd999fceece9b3d1508b17023b3e174583124b" -[[package]] -name = "memoffset" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" -dependencies = [ - "autocfg", -] - [[package]] name = "metal" version = "0.29.0" @@ -7333,12 +6395,6 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "monch" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b52c1b33ff98142aecea13138bd399b68aa7ab5d9546c300988c345004001eea" - [[package]] name = "monostate" version = "0.1.18" @@ -7419,7 +6475,7 @@ dependencies = [ "ndk-context", "rand 0.10.2", "reqwest 0.13.5", - "rustc-hash 2.1.3", + "rustc-hash", "rustls", "simple-dns", "system-configuration 0.8.0", @@ -7682,12 +6738,6 @@ dependencies = [ "wmi", ] -[[package]] -name = "new_debug_unreachable" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" - [[package]] name = "nibble_vec" version = "0.1.0" @@ -7709,37 +6759,6 @@ dependencies = [ "libc", ] -[[package]] -name = "node_resolver" -version = "0.65.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01957d40d64724eb35d92ac2ccd5b4be660072639c82c3bf831a24ba325a15f8" -dependencies = [ - "anyhow", - "async-trait", - "boxed_error", - "capacity_builder", - "dashmap 5.5.3", - "deno_error", - "deno_maybe_sync", - "deno_media_type", - "deno_package_json", - "deno_path_util", - "deno_semver", - "futures", - "lazy-regex", - "log", - "once_cell", - "path-clean", - "pretty_assertions", - "regex", - "serde", - "serde_json", - "sys_traits", - "thiserror 2.0.20", - "url", -] - [[package]] name = "nom" version = "7.1.3" @@ -7771,7 +6790,7 @@ dependencies = [ "noq-proto", "noq-udp", "pin-project-lite", - "rustc-hash 2.1.3", + "rustc-hash", "rustls", "socket2", "thiserror 2.0.20", @@ -7798,7 +6817,7 @@ dependencies = [ "rand 0.10.2", "rand_pcg", "ring", - "rustc-hash 2.1.3", + "rustc-hash", "rustls", "rustls-pki-types", "rustls-platform-verifier", @@ -7847,7 +6866,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23" dependencies = [ - "num-bigint", + "num-bigint 0.4.8", "num-complex", "num-integer", "num-iter", @@ -7863,7 +6882,17 @@ checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367" dependencies = [ "num-integer", "num-traits", - "rand 0.8.8", +] + +[[package]] +name = "num-bigint" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93e7820bc0a80a0238e650327316f929ba18d5be054b647490a3a6a339f3e7c0" +dependencies = [ + "arbitrary", + "num-integer", + "num-traits", "serde", ] @@ -7935,28 +6964,13 @@ dependencies = [ "num-traits", ] -[[package]] -name = "num-modular" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd8e500409e6cd603b03e477c26a6caecdc27ac58979a53e881c75eafc079f44" - -[[package]] -name = "num-order" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "537b596b97c40fcf8056d153049eb22f481c17ebce72a513ec9286e4986d1bb6" -dependencies = [ - "num-modular", -] - [[package]] name = "num-rational" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" dependencies = [ - "num-bigint", + "num-bigint 0.4.8", "num-integer", "num-traits", ] @@ -8003,6 +7017,15 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "num_threads" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" +dependencies = [ + "libc", +] + [[package]] name = "oauth2" version = "5.0.0" @@ -8182,24 +7205,6 @@ dependencies = [ "objc2-security", ] -[[package]] -name = "object" -version = "0.37.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe" -dependencies = [ - "memchr", -] - -[[package]] -name = "object" -version = "0.39.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e5a6c098c7a3b6547378093f5cc30bc54fd361ce711e05293a5cc589562739b" -dependencies = [ - "memchr", -] - [[package]] name = "oid-registry" version = "0.8.1" @@ -8227,6 +7232,12 @@ version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "269bca4c2591a28585d6bf10d9ed0332b7d76900a1b02bec41bdc3a2cdcda107" +[[package]] +name = "oneshot" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfe21416a02c693fb9f980befcb230ecc70b0b3d1cc4abf88b9675c4c1457f0c" + [[package]] name = "onig" version = "6.5.3" @@ -8324,20 +7335,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "opentelemetry" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b84bcd6ae87133e903af7ef497404dda70c60d0ea14895fc8a5e6722754fc2a0" -dependencies = [ - "futures-core", - "futures-sink", - "js-sys", - "pin-project-lite", - "thiserror 2.0.20", - "tracing", -] - [[package]] name = "opentelemetry" version = "0.32.0" @@ -8358,25 +7355,12 @@ version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c0080f0dc1d7c786f467cd85a4e395fcab11ee852004f39a29a18ab7c25d837" dependencies = [ - "opentelemetry 0.32.0", + "opentelemetry", "tracing", "tracing-core", "tracing-subscriber", ] -[[package]] -name = "opentelemetry-http" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7a6d09a73194e6b66df7c8f1b680f156d916a1a942abf2de06823dd02b7855d" -dependencies = [ - "async-trait", - "bytes", - "http 1.5.0", - "opentelemetry 0.31.0", - "reqwest 0.12.28", -] - [[package]] name = "opentelemetry-http" version = "0.32.0" @@ -8386,29 +7370,10 @@ dependencies = [ "async-trait", "bytes", "http 1.5.0", - "opentelemetry 0.32.0", + "opentelemetry", "reqwest 0.13.5", ] -[[package]] -name = "opentelemetry-otlp" -version = "0.31.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f69cd6acbb9af919df949cd1ec9e5e7fdc2ef15d234b6b795aaa525cc02f71f" -dependencies = [ - "http 1.5.0", - "opentelemetry 0.31.0", - "opentelemetry-http 0.31.0", - "opentelemetry-proto 0.31.0", - "opentelemetry_sdk 0.31.0", - "prost", - "reqwest 0.12.28", - "thiserror 2.0.20", - "tokio", - "tonic", - "tracing", -] - [[package]] name = "opentelemetry-otlp" version = "0.32.0" @@ -8416,36 +7381,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9966929966d17620d7c316c643ba62631826e10021409357772d5eea84f62c35" dependencies = [ "http 1.5.0", - "opentelemetry 0.32.0", - "opentelemetry-http 0.32.0", - "opentelemetry-proto 0.32.0", - "opentelemetry_sdk 0.32.1", + "opentelemetry", + "opentelemetry-http", + "opentelemetry-proto", + "opentelemetry_sdk", "prost", "reqwest 0.13.5", "thiserror 2.0.20", ] -[[package]] -name = "opentelemetry-proto" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7175df06de5eaee9909d4805a3d07e28bb752c34cab57fa9cff549da596b30f" -dependencies = [ - "opentelemetry 0.31.0", - "opentelemetry_sdk 0.31.0", - "prost", - "tonic", - "tonic-prost", -] - [[package]] name = "opentelemetry-proto" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56d658ba1faf63f7b9c492cfbe6e0ec365440a16132d3270c1065f7b33f1b638" dependencies = [ - "opentelemetry 0.32.0", - "opentelemetry_sdk 0.32.1", + "opentelemetry", + "opentelemetry_sdk", "prost", ] @@ -8456,23 +7408,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1b1c6a247d79091f0062a5f4bd058589525cf987a8d4c169440d9c1be72f0ad" dependencies = [ "chrono", - "opentelemetry 0.32.0", - "opentelemetry_sdk 0.32.1", -] - -[[package]] -name = "opentelemetry_sdk" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e14ae4f5991976fd48df6d843de219ca6d31b01daaab2dad5af2badeded372bd" -dependencies = [ - "futures-channel", - "futures-executor", - "futures-util", - "opentelemetry 0.31.0", - "percent-encoding", - "rand 0.9.5", - "thiserror 2.0.20", + "opentelemetry", + "opentelemetry_sdk", ] [[package]] @@ -8484,7 +7421,7 @@ dependencies = [ "futures-channel", "futures-executor", "futures-util", - "opentelemetry 0.32.0", + "opentelemetry", "percent-encoding", "portable-atomic", "rand 0.9.5", @@ -8547,15 +7484,6 @@ dependencies = [ "seize", ] -[[package]] -name = "par-core" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e96cbd21255b7fb29a5d51ef38a779b517a91abd59e2756c039583f43ef4c90f" -dependencies = [ - "once_cell", -] - [[package]] name = "parking" version = "2.2.1" @@ -8597,12 +7525,6 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4" -[[package]] -name = "path-clean" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecba01bf2678719532c5e3059e0b5f0811273d94b397088b82e3bd0a78c78fdd" - [[package]] name = "path_abs" version = "0.5.1" @@ -8618,159 +7540,6 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" -[[package]] -name = "pctx_code_execution_runtime" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e01051b22c295cb8f086eea10bcec6eec80ce730fed65124c9bdb589cf2aead" -dependencies = [ - "anyhow", - "deno_core", - "deno_error", - "pctx_config", - "pctx_registry", - "rmcp 1.8.0", - "serde", - "serde_json", - "thiserror 2.0.20", - "tokio", - "tracing", - "url", -] - -[[package]] -name = "pctx_code_mode" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8fdd1f9347e088aed901765f30a71e0497f00a870700699d49958446505ac43" -dependencies = [ - "futures", - "pctx_codegen", - "pctx_config", - "pctx_executor", - "pctx_registry", - "schemars 1.2.2", - "serde", - "serde_json", - "thiserror 2.0.20", - "tokio", - "tracing", - "utoipa", -] - -[[package]] -name = "pctx_codegen" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f3311888d45e8f353bc2be9dfd5e1c9a0fb3ed8852b9a4c42b2d1bcbf1d9c63" -dependencies = [ - "biome_formatter", - "biome_js_formatter", - "biome_js_parser", - "biome_js_syntax", - "handlebars", - "heck", - "indexmap 2.14.2", - "regex", - "schemars 0.8.22", - "serde", - "serde_json", - "thiserror 2.0.20", - "tracing", - "unicode-ident", -] - -[[package]] -name = "pctx_config" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c89eac48aabd3fdd2ed13839c006aff8be43f5ba70858378162551414103199d" -dependencies = [ - "anyhow", - "base64 0.22.1", - "camino", - "http 1.5.0", - "indexmap 2.14.2", - "keyring", - "opentelemetry-otlp 0.31.1", - "opentelemetry_sdk 0.31.0", - "reqwest 0.13.5", - "rmcp 1.8.0", - "serde", - "serde_json", - "shlex 1.3.0", - "thiserror 2.0.20", - "tokio", - "tonic", - "tracing", - "url", -] - -[[package]] -name = "pctx_deno_transpiler" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d0569477b4b06a749da9d37ddc3f9876444bd532f06bac0709010f0c85efc2d" -dependencies = [ - "deno_ast", - "thiserror 2.0.20", -] - -[[package]] -name = "pctx_executor" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e0d802923b9f2426c95664036639ca2a979816ad1f58d086f970f68dadb5643" -dependencies = [ - "deno_core", - "deno_resolver", - "futures", - "node_resolver", - "pctx_code_execution_runtime", - "pctx_deno_transpiler", - "pctx_registry", - "pctx_type_check_runtime", - "regex", - "serde", - "serde_json", - "sys_traits", - "tempfile", - "thiserror 2.0.20", - "tracing", - "windows-sys 0.59.0", -] - -[[package]] -name = "pctx_registry" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12170e60727861d257a5bd70646ab81a97c4d917046fc38ff90a58543d6b688c" -dependencies = [ - "deno_error", - "pctx_config", - "rmcp 1.8.0", - "serde", - "serde_json", - "thiserror 2.0.20", - "tokio", - "tracing", -] - -[[package]] -name = "pctx_type_check_runtime" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda6e59419494a65a7915ae4780708de2e72c70af21d68b7dfd64e1540c838cc" -dependencies = [ - "deno_ast", - "deno_core", - "futures", - "once_cell", - "serde", - "serde_json", - "thiserror 2.0.20", -] - [[package]] name = "pem" version = "3.0.6" @@ -8815,48 +7584,6 @@ version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" -[[package]] -name = "pest" -version = "2.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d45aeb61b4bf818e12d4205f2466f8c4748f85f4fce0146d1c03d69d753f0ad" -dependencies = [ - "memchr", - "ucd-trie", -] - -[[package]] -name = "pest_derive" -version = "2.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89cc5a242e25ed4e7704d0be240f2cfbe20a8c27e7e252d94835be93d92dc39f" -dependencies = [ - "pest", - "pest_generator", -] - -[[package]] -name = "pest_generator" -version = "2.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7abf21475cc3820fe4b2ca2dc2142902f67a02189f3b5b3a229f4febc01a43e5" -dependencies = [ - "pest", - "pest_meta", - "proc-macro2", - "quote", - "syn 2.0.119", -] - -[[package]] -name = "pest_meta" -version = "2.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adba4db388f687393c18c51348d44a41d870ca9df71a2c98172ea3035dc6936e" -dependencies = [ - "pest", -] - [[package]] name = "pharos" version = "0.5.3" @@ -8867,16 +7594,6 @@ dependencies = [ "rustc_version", ] -[[package]] -name = "phf" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" -dependencies = [ - "phf_macros 0.11.3", - "phf_shared 0.11.3", -] - [[package]] name = "phf" version = "0.12.1" @@ -8892,21 +7609,11 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6" dependencies = [ - "phf_macros 0.14.0", + "phf_macros", "phf_shared 0.14.0", "serde", ] -[[package]] -name = "phf_generator" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" -dependencies = [ - "phf_shared 0.11.3", - "rand 0.8.8", -] - [[package]] name = "phf_generator" version = "0.14.0" @@ -8917,48 +7624,26 @@ dependencies = [ "phf_shared 0.14.0", ] -[[package]] -name = "phf_macros" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" -dependencies = [ - "phf_generator 0.11.3", - "phf_shared 0.11.3", - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "phf_macros" version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085" dependencies = [ - "phf_generator 0.14.0", + "phf_generator", "phf_shared 0.14.0", "proc-macro2", "quote", "syn 2.0.119", ] -[[package]] -name = "phf_shared" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" -dependencies = [ - "siphasher 1.0.3", -] - [[package]] name = "phf_shared" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06005508882fb681fd97892ecff4b7fd0fee13ef1aa569f8695dae7ab9099981" dependencies = [ - "siphasher 1.0.3", + "siphasher", ] [[package]] @@ -8967,7 +7652,7 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89" dependencies = [ - "siphasher 1.0.3", + "siphasher", ] [[package]] @@ -9105,7 +7790,7 @@ dependencies = [ "concurrent-queue", "hermit-abi", "pin-project-lite", - "rustix 1.1.4", + "rustix", "windows-sys 0.61.2", ] @@ -9169,8 +7854,6 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" dependencies = [ - "serde_core", - "writeable", "zerovec", ] @@ -9215,16 +7898,6 @@ dependencies = [ "termtree", ] -[[package]] -name = "pretty_assertions" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ae130e2f271fbc2ac3a40fb1d07180839cdbbe443c7a27e1e3c13c5cac0116d" -dependencies = [ - "diff", - "yansi", -] - [[package]] name = "prettyplease" version = "0.2.37" @@ -9263,29 +7936,6 @@ dependencies = [ "toml_edit", ] -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" -dependencies = [ - "proc-macro2", - "quote", - "version_check", -] - [[package]] name = "proc-macro2" version = "1.0.107" @@ -9301,12 +7951,8 @@ version = "9.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2e842efad9119158434d193c6682e2ebee4b44d6ad801d7b349623b3f57cdf55" dependencies = [ - "futures", "indexmap 2.14.2", "nix", - "tokio", - "tracing", - "windows 0.62.2", ] [[package]] @@ -9352,16 +7998,6 @@ version = "2.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33cb294fe86a74cbcf50d4445b37da762029549ebeea341421c7c70370f86cac" -[[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 = "publicsuffix" version = "2.3.0" @@ -9472,7 +8108,7 @@ dependencies = [ "pin-project-lite", "quinn-proto", "quinn-udp", - "rustc-hash 2.1.3", + "rustc-hash", "rustls", "socket2", "thiserror 2.0.20", @@ -9494,7 +8130,7 @@ dependencies = [ "rand 0.10.2", "rand_pcg", "ring", - "rustc-hash 2.1.3", + "rustc-hash", "rustls", "rustls-pki-types", "slab", @@ -9539,12 +8175,6 @@ version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" -[[package]] -name = "radium" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" - [[package]] name = "radix_trie" version = "0.3.0" @@ -9818,6 +8448,15 @@ version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +[[package]] +name = "regress" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32eef8b209c3c1c15dbad02c1f30f9539f00dc7253e0cbcdaae442a50a09d7c1" +dependencies = [ + "memchr", +] + [[package]] name = "reloadable-core" version = "0.1.0" @@ -9843,9 +8482,7 @@ checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" dependencies = [ "base64 0.22.1", "bytes", - "futures-channel", "futures-core", - "futures-util", "http 1.5.0", "http-body 1.1.0", "http-body-util", @@ -9943,16 +8580,6 @@ dependencies = [ "tower-service", ] -[[package]] -name = "resb" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22d392791f3c6802a1905a509e9d1a6039cbbcb5e9e00e5a6d3661f7c874f390" -dependencies = [ - "potential_utf", - "serde_core", -] - [[package]] name = "rfc6979" version = "0.4.0" @@ -9986,33 +8613,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "rmcp" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d1f571c72940a19d9532fe52dbea8bc9912bf1d766c2970bb824056b86f3f59" -dependencies = [ - "async-trait", - "base64 0.22.1", - "chrono", - "futures", - "http 1.5.0", - "pastey", - "pin-project-lite", - "process-wrap 9.1.0", - "reqwest 0.13.5", - "rmcp-macros 1.8.0", - "schemars 1.2.2", - "serde", - "serde_json", - "sse-stream", - "thiserror 2.0.20", - "tokio", - "tokio-stream", - "tokio-util", - "tracing", -] - [[package]] name = "rmcp" version = "3.4.1" @@ -10036,7 +8636,7 @@ dependencies = [ "process-wrap 10.0.0", "rand 0.10.2", "reqwest 0.13.5", - "rmcp-macros 3.4.1", + "rmcp-macros", "schemars 1.2.2", "serde", "serde_json", @@ -10051,19 +8651,6 @@ dependencies = [ "uuid", ] -[[package]] -name = "rmcp-macros" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aad0035b69380782d78ea95b508327e6deaa2235909053e596eea8f27b5e1d5" -dependencies = [ - "darling 0.23.0", - "proc-macro2", - "quote", - "serde_json", - "syn 2.0.119", -] - [[package]] name = "rmcp-macros" version = "3.4.1" @@ -10117,18 +8704,6 @@ dependencies = [ "windowfunctions", ] -[[package]] -name = "rustc-demangle" -version = "0.1.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b74b56ffa8bb2830709a538c2cbcae9aa062db0d2a42563bfb09bdaae44020eb" - -[[package]] -name = "rustc-hash" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" - [[package]] name = "rustc-hash" version = "2.1.3" @@ -10153,19 +8728,6 @@ dependencies = [ "nom 7.1.3", ] -[[package]] -name = "rustix" -version = "0.38.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" -dependencies = [ - "bitflags 2.13.2", - "errno", - "libc", - "linux-raw-sys 0.4.15", - "windows-sys 0.59.0", -] - [[package]] name = "rustix" version = "1.1.4" @@ -10175,7 +8737,7 @@ dependencies = [ "bitflags 2.13.2", "errno", "libc", - "linux-raw-sys 0.12.1", + "linux-raw-sys", "windows-sys 0.61.2", ] @@ -10312,7 +8874,7 @@ dependencies = [ "nix", "radix_trie", "unicode-segmentation", - "unicode-width 0.2.2", + "unicode-width", "utf8parse", "windows-sys 0.61.2", ] @@ -10469,19 +9031,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "schemars" -version = "0.8.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" -dependencies = [ - "dyn-clone", - "indexmap 1.9.3", - "schemars_derive 0.8.22", - "serde", - "serde_json", -] - [[package]] name = "schemars" version = "0.9.0" @@ -10503,23 +9052,11 @@ dependencies = [ "chrono", "dyn-clone", "ref-cast", - "schemars_derive 1.2.2", + "schemars_derive", "serde", "serde_json", ] -[[package]] -name = "schemars_derive" -version = "0.8.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" -dependencies = [ - "proc-macro2", - "quote", - "serde_derive_internals 0.29.1", - "syn 2.0.119", -] - [[package]] name = "schemars_derive" version = "1.2.2" @@ -10528,7 +9065,7 @@ checksum = "d98c67716b46af2f0b8cf752abc930f6f9aecfbf671ecfb531db8a31dbe4e2ba" dependencies = [ "proc-macro2", "quote", - "serde_derive_internals 0.30.0", + "serde_derive_internals", "syn 3.0.5", ] @@ -10692,17 +9229,6 @@ dependencies = [ "syn 3.0.5", ] -[[package]] -name = "serde_derive_internals" -version = "0.29.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "serde_derive_internals" version = "0.30.0" @@ -10791,20 +9317,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_v8" -version = "0.290.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21a52aca5a5661aea9c2ccf8c2f985f2381266d7aab03a0d02beadb4ae1190ea" -dependencies = [ - "deno_error", - "num-bigint", - "serde", - "smallvec", - "thiserror 2.0.20", - "v8", -] - [[package]] name = "serde_with" version = "3.23.0" @@ -11208,10 +9720,6 @@ name = "similar" version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" -dependencies = [ - "bstr", - "unicode-segmentation", -] [[package]] name = "simple-dns" @@ -11228,18 +9736,12 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d585997b0ac10be3c5ee635f1bab02d512760d14b7c468801ac8a01d9ae5f1d" dependencies = [ - "num-bigint", + "num-bigint 0.4.8", "num-traits", "thiserror 2.0.20", "time", ] -[[package]] -name = "siphasher" -version = "0.3.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" - [[package]] name = "siphasher" version = "1.0.3" @@ -11252,6 +9754,15 @@ version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" +[[package]] +name = "small_btree" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ba60d2df92ba73864714808ca68c059734853e6ab722b40e1cf543ebb3a057a" +dependencies = [ + "arrayvec", +] + [[package]] name = "smallvec" version = "1.16.1" @@ -11261,17 +9772,6 @@ dependencies = [ "serde", ] -[[package]] -name = "smartstring" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fb72c633efbaa2dd666986505016c32c3044395ceaf881518399d2f4127ee29" -dependencies = [ - "autocfg", - "static_assertions", - "version_check", -] - [[package]] name = "smawk" version = "0.3.3" @@ -11313,24 +9813,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea06cc588e43c632923a55450401b8f25e628131571d4e1baea1bdfdb2b5ed06" -[[package]] -name = "sourcemap" -version = "9.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "314d62a489431668f719ada776ca1d49b924db951b7450f8974c9ae51ab05ad7" -dependencies = [ - "base64-simd", - "bitvec", - "data-encoding", - "debugid", - "if_chain", - "rustc-hash 2.1.3", - "serde", - "serde_json", - "unicode-id-start", - "url", -] - [[package]] name = "spez" version = "0.1.2" @@ -11389,12 +9871,6 @@ dependencies = [ "unicode-segmentation", ] -[[package]] -name = "sptr" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a" - [[package]] name = "sqlx" version = "0.9.0" @@ -11592,19 +10068,6 @@ 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 = "static_assertions" version = "1.1.0" @@ -11627,38 +10090,12 @@ version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8207e78455ffdf55661170876f88daf85356e4edd54e0a3dbc79586ca1e50cbe" -[[package]] -name = "strck" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42316e70da376f3d113a68d138a60d8a9883c604fe97942721ec2068dab13a9f" -dependencies = [ - "unicode-ident", -] - [[package]] name = "streaming-iterator" version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520" -[[package]] -name = "string_enum" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae36a4951ca7bd1cfd991c241584a9824a70f6aff1e7d4f693fb3f2465e4030e" -dependencies = [ - "quote", - "swc_macros_common", - "syn 2.0.119", -] - -[[package]] -name = "stringcase" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72abeda133c49d7bddece6c154728f83eec8172380c80ab7096da9487e20d27c" - [[package]] name = "stringprep" version = "0.1.5" @@ -11724,387 +10161,6 @@ version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" -[[package]] -name = "swc_allocator" -version = "4.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d7eefd2c8b228a8c73056482b2ae4b3a1071fbe07638e3b55ceca8570cc48bb" -dependencies = [ - "allocator-api2", - "bumpalo", - "hashbrown 0.14.5", - "rustc-hash 2.1.3", -] - -[[package]] -name = "swc_atoms" -version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4ccbe2ecad10ad7432100f878a107b1d972a8aee83ca53184d00c23a078bb8a" -dependencies = [ - "hstr", - "once_cell", - "serde", -] - -[[package]] -name = "swc_common" -version = "17.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "259b675d633a26d24efe3802a9d88858c918e6e8f062d3222d3aa02d56a2cf4c" -dependencies = [ - "anyhow", - "ast_node", - "better_scoped_tls", - "bytes-str", - "either", - "from_variant", - "new_debug_unreachable", - "num-bigint", - "once_cell", - "rustc-hash 2.1.3", - "serde", - "siphasher 0.3.11", - "swc_atoms", - "swc_eq_ignore_macros", - "swc_sourcemap", - "swc_visit", - "tracing", - "unicode-width 0.2.2", - "url", -] - -[[package]] -name = "swc_config" -version = "3.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72e90b52ee734ded867104612218101722ad87ff4cf74fe30383bd244a533f97" -dependencies = [ - "anyhow", - "bytes-str", - "indexmap 2.14.2", - "serde", - "serde_json", - "swc_config_macro", -] - -[[package]] -name = "swc_config_macro" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b416e8ce6de17dc5ea496e10c7012b35bbc0e3fef38d2e065eed936490db0b3" -dependencies = [ - "proc-macro2", - "quote", - "swc_macros_common", - "syn 2.0.119", -] - -[[package]] -name = "swc_ecma_ast" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a573a0c72850dec8d4d8085f152d5778af35a2520c3093b242d2d1d50776da7c" -dependencies = [ - "bitflags 2.13.2", - "is-macro", - "num-bigint", - "once_cell", - "phf 0.11.3", - "rustc-hash 2.1.3", - "serde", - "string_enum", - "swc_atoms", - "swc_common", - "swc_visit", - "unicode-id-start", -] - -[[package]] -name = "swc_ecma_codegen" -version = "20.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff2a6ee1ec49dda8dedeac54e4147b4e8b3f278d9bb34ab28983257a393d34ed" -dependencies = [ - "ascii", - "compact_str 0.7.1", - "memchr", - "num-bigint", - "once_cell", - "regex", - "rustc-hash 2.1.3", - "ryu-js", - "serde", - "swc_allocator", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen_macros", - "swc_sourcemap", - "tracing", -] - -[[package]] -name = "swc_ecma_codegen_macros" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e276dc62c0a2625a560397827989c82a93fd545fcf6f7faec0935a82cc4ddbb8" -dependencies = [ - "proc-macro2", - "swc_macros_common", - "syn 2.0.119", -] - -[[package]] -name = "swc_ecma_lexer" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e82f7747e052c6ff6e111fa4adeb14e33b46ee6e94fe5ef717601f651db48fc" -dependencies = [ - "bitflags 2.13.2", - "either", - "num-bigint", - "rustc-hash 2.1.3", - "seq-macro", - "serde", - "smallvec", - "smartstring", - "stacker", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "tracing", -] - -[[package]] -name = "swc_ecma_loader" -version = "17.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbcababb48f0d46587a0a854b2c577eb3a56fa99687de558338021e93cd2c8f5" -dependencies = [ - "anyhow", - "pathdiff", - "rustc-hash 2.1.3", - "serde", - "swc_atoms", - "swc_common", - "tracing", -] - -[[package]] -name = "swc_ecma_parser" -version = "27.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f1a51af1a92cd4904c073b293e491bbc0918400a45d58227b34c961dd6f52d7" -dependencies = [ - "bitflags 2.13.2", - "either", - "num-bigint", - "phf 0.11.3", - "rustc-hash 2.1.3", - "seq-macro", - "serde", - "smartstring", - "stacker", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "tracing", -] - -[[package]] -name = "swc_ecma_transforms_base" -version = "30.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "250f6f165578ca4fee47bd57585c1b9597c94bf4ea6591df47f2b5fa5b1883fe" -dependencies = [ - "better_scoped_tls", - "indexmap 2.14.2", - "once_cell", - "par-core", - "phf 0.11.3", - "rustc-hash 2.1.3", - "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_utils", - "swc_ecma_visit", - "tracing", -] - -[[package]] -name = "swc_ecma_transforms_classes" -version = "30.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d3ab35eff4a980e02d708798ae4c35bc017612292adbffe7b7b554df772fdf5" -dependencies = [ - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_transforms_macros" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc777288799bf6786e5200325a56e4fbabba590264a4a48a0c70b16ad0cf5cd8" -dependencies = [ - "proc-macro2", - "quote", - "swc_macros_common", - "syn 2.0.119", -] - -[[package]] -name = "swc_ecma_transforms_proposal" -version = "30.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2d7748d4112c87ce1885260035e4a43cebfe7661a40174b7d77a0a04760a257" -dependencies = [ - "either", - "rustc-hash 2.1.3", - "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base", - "swc_ecma_transforms_classes", - "swc_ecma_utils", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_transforms_react" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03de12e38e47ac1c96ac576f793ad37a9d7b16fbf4f2203881f89152f2498682" -dependencies = [ - "base64 0.22.1", - "bytes-str", - "indexmap 2.14.2", - "once_cell", - "rustc-hash 2.1.3", - "serde", - "sha1 0.10.7", - "string_enum", - "swc_atoms", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_transforms_typescript" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4408800fdeb541fabf3659db622189a0aeb386f57b6103f9294ff19dfde4f7b0" -dependencies = [ - "bytes-str", - "rustc-hash 2.1.3", - "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base", - "swc_ecma_transforms_react", - "swc_ecma_utils", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_utils" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fb99e179988cabd473779a4452ab942bcb777176983ca3cbaf22a8f056a65b0" -dependencies = [ - "indexmap 2.14.2", - "num_cpus", - "once_cell", - "par-core", - "rustc-hash 2.1.3", - "ryu-js", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_visit", - "tracing", -] - -[[package]] -name = "swc_ecma_visit" -version = "18.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9611a72a4008d62608547a394e5d72a5245413104db096d95a52368a8cc1d63" -dependencies = [ - "new_debug_unreachable", - "num-bigint", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_visit", - "tracing", -] - -[[package]] -name = "swc_eq_ignore_macros" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c16ce73424a6316e95e09065ba6a207eba7765496fed113702278b7711d4b632" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - -[[package]] -name = "swc_macros_common" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aae1efbaa74943dc5ad2a2fb16cbd78b77d7e4d63188f3c5b4df2b4dcd2faaae" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - -[[package]] -name = "swc_sourcemap" -version = "9.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de08ef00f816acdd1a58ee8a81c0e1a59eefef2093aefe5611f256fa6b64c4d7" -dependencies = [ - "base64-simd", - "bitvec", - "bytes-str", - "data-encoding", - "debugid", - "if_chain", - "rustc-hash 2.1.3", - "serde", - "serde_json", - "unicode-id-start", - "url", -] - -[[package]] -name = "swc_visit" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62fb71484b486c185e34d2172f0eabe7f4722742aad700f426a494bb2de232a2" -dependencies = [ - "either", - "new_debug_unreachable", -] - [[package]] name = "symlink" version = "0.1.0" @@ -12270,17 +10326,6 @@ dependencies = [ "symphonia-core", ] -[[package]] -name = "syn" -version = "1.0.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - [[package]] name = "syn" version = "2.0.119" @@ -12303,17 +10348,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "syn-match" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54b8f0a9004d6aafa6a588602a1119e6cdaacec9921aa1605383e6e7d6258fd6" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "sync_wrapper" version = "1.0.2" @@ -12334,6 +10368,17 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + [[package]] name = "syntect" version = "5.3.0" @@ -12362,26 +10407,6 @@ dependencies = [ "libc", ] -[[package]] -name = "sys_traits" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f74a2c95f72e36fa6bd04a40d15623a9904bab1cc2fa6c6135b09d774a65088" -dependencies = [ - "sys_traits_macros", -] - -[[package]] -name = "sys_traits_macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "181f22127402abcf8ee5c83ccd5b408933fec36a6095cf82cda545634692657e" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "sysctl" version = "0.6.0" @@ -12442,6 +10467,12 @@ dependencies = [ "libc", ] +[[package]] +name = "tag_ptr" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0e973b34477b7823833469eb0f5a3a60370fef7a453e02d751b59180d0a5a05" + [[package]] name = "tap" version = "1.0.1" @@ -12467,52 +10498,10 @@ dependencies = [ "fastrand", "getrandom 0.4.3", "once_cell", - "rustix 1.1.4", + "rustix", "windows-sys 0.61.2", ] -[[package]] -name = "temporal_capi" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a151e402c2bdb6a3a2a2f3f225eddaead2e7ce7dd5d3fa2090deb11b17aa4ed8" -dependencies = [ - "diplomat", - "diplomat-runtime", - "icu_calendar", - "icu_locale", - "num-traits", - "temporal_rs", - "timezone_provider", - "writeable", - "zoneinfo64", -] - -[[package]] -name = "temporal_rs" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88afde3bd75d2fc68d77a914bece426aa08aa7649ffd0cdd4a11c3d4d33474d1" -dependencies = [ - "core_maths", - "icu_calendar", - "icu_locale", - "ixdtf", - "num-traits", - "timezone_provider", - "tinystr", - "writeable", -] - -[[package]] -name = "termcolor" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" -dependencies = [ - "winapi-util", -] - [[package]] name = "terminal-colorsaurus" version = "1.0.3" @@ -12578,15 +10567,6 @@ dependencies = [ "test-case-core", ] -[[package]] -name = "text_lines" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fd5828de7deaa782e1dd713006ae96b3bee32d3279b79eb67ecf8072c059bcf" -dependencies = [ - "serde", -] - [[package]] name = "textwrap" version = "0.16.2" @@ -12595,9 +10575,15 @@ checksum = "c13547615a44dc9c452a8a534638acdf07120d4b6847c8178705da06306a3057" dependencies = [ "smawk", "unicode-linebreak", - "unicode-width 0.2.2", + "unicode-width", ] +[[package]] +name = "thin-vec" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6a4b9ba8738cb4a4f399d37e266becfd475e75eb73425b87a05a2f2039ba63e" + [[package]] name = "thiserror" version = "1.0.69" @@ -12690,7 +10676,7 @@ dependencies = [ "fancy-regex 0.17.0", "lazy_static", "regex", - "rustc-hash 2.1.3", + "rustc-hash", ] [[package]] @@ -12701,7 +10687,9 @@ checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134" dependencies = [ "deranged", "js-sys", + "libc", "num-conv", + "num_threads", "powerfmt", "serde_core", "time-core", @@ -12724,18 +10712,6 @@ dependencies = [ "time-core", ] -[[package]] -name = "timezone_provider" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df9ba0000e9e73862f3e7ca1ff159e2ddf915c9d8bb11e38a7874760f445d993" -dependencies = [ - "tinystr", - "zerotrie", - "zerovec", - "zoneinfo64", -] - [[package]] name = "tinystr" version = "0.8.4" @@ -12743,7 +10719,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" dependencies = [ "displaydoc", - "serde_core", "zerovec", ] @@ -12782,7 +10757,7 @@ checksum = "b238e22d44a15349529690fb07bd645cf58149a1b1e44d6cb5bd1641ff1a6223" dependencies = [ "ahash", "aho-corasick", - "compact_str 0.9.1", + "compact_str", "dary_heap", "derive_builder", "esaxx-rs", @@ -12814,7 +10789,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7afbf6e88718afcc138bad01d6ccc3051dbbc3b2ce9793d8b8a3aeb610969cfc" dependencies = [ "ahash", - "compact_str 0.9.1", + "compact_str", "daachorse", "dary_heap", "derive_builder", @@ -12937,7 +10912,7 @@ dependencies = [ "chrono", "futures", "log", - "num-bigint", + "num-bigint 0.4.8", "pem 3.0.6", "proc-macro2", "rcgen", @@ -13135,46 +11110,6 @@ version = "1.1.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" -[[package]] -name = "tonic" -version = "0.14.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac2a5518c70fa84342385732db33fb3f44bc4cc748936eb5833d2df34d6445ef" -dependencies = [ - "async-trait", - "axum", - "base64 0.22.1", - "bytes", - "h2", - "http 1.5.0", - "http-body 1.1.0", - "http-body-util", - "hyper", - "hyper-timeout", - "hyper-util", - "percent-encoding", - "pin-project", - "socket2", - "sync_wrapper", - "tokio", - "tokio-stream", - "tower", - "tower-layer", - "tower-service", - "tracing", -] - -[[package]] -name = "tonic-prost" -version = "0.14.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50849f68853be452acf590cde0b146665b8d507b3b8af17261df47e02c209ea0" -dependencies = [ - "bytes", - "prost", - "tonic", -] - [[package]] name = "tower" version = "0.5.3" @@ -13183,12 +11118,9 @@ checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" dependencies = [ "futures-core", "futures-util", - "indexmap 2.14.2", "pin-project-lite", - "slab", "sync_wrapper", "tokio", - "tokio-util", "tower-layer", "tower-service", "tracing", @@ -13320,7 +11252,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adbc64cba7137545b8044cb1fe9814f7aacf3c6b5f9b45be8bb5db538befdb26" dependencies = [ "js-sys", - "opentelemetry 0.32.0", + "opentelemetry", "smallvec", "tracing", "tracing-core", @@ -13470,16 +11402,6 @@ dependencies = [ "tree-sitter-language", ] -[[package]] -name = "triomphe" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b40688ea6389c8171614b25491f71d4a27946e0c7ce2da1c6de27e25abf1a0ae" -dependencies = [ - "serde", - "stable_deref_trait", -] - [[package]] name = "try-lock" version = "0.2.5" @@ -13546,12 +11468,6 @@ version = "1.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "214ca0b2191785cbc06209b9ca1861e048e39b5ba33574b3cedd58363d5bb5f6" -[[package]] -name = "ucd-trie" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" - [[package]] name = "ug" version = "0.5.0" @@ -13641,24 +11557,12 @@ version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" -[[package]] -name = "unicode-bom" -version = "2.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eec5d1121208364f6793f7d2e222bf75a915c19557537745b195b253dd64217" - [[package]] name = "unicode-general-category" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b993bddc193ae5bd0d623b49ec06ac3e9312875fdae725a975c51db1cc1677f" -[[package]] -name = "unicode-id-start" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81b79ad29b5e19de4260020f8919b443b2ef0277d242ce532ec7b7a2cc8b6007" - [[package]] name = "unicode-ident" version = "1.0.24" @@ -13701,12 +11605,6 @@ version = "1.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" -[[package]] -name = "unicode-width" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" - [[package]] name = "unicode-width" version = "0.2.2" @@ -13816,7 +11714,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf233eb014b595e8997c98df4ac6863b486a4ac6d54bd00230c7700753d7ef13" dependencies = [ "anyhow", - "siphasher 1.0.3", + "siphasher", "uniffi_internal_macros", "uniffi_pipeline", ] @@ -13905,6 +11803,12 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + [[package]] name = "utf8_iter" version = "1.0.4" @@ -13917,29 +11821,6 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" -[[package]] -name = "utoipa" -version = "5.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bde15df68e80b16c7d16b9616e80770ad158988daa56a27dccd1e55558b0160" -dependencies = [ - "indexmap 2.14.2", - "serde", - "serde_json", - "utoipa-gen", -] - -[[package]] -name = "utoipa-gen" -version = "5.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ba0b99ee52df3028635d93840c797102da61f8a7bb3cf751032455895b52ef8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "uuid" version = "1.26.1" @@ -13961,30 +11842,6 @@ dependencies = [ "vsimd", ] -[[package]] -name = "v8" -version = "145.0.0" -dependencies = [ - "v8-goose", -] - -[[package]] -name = "v8-goose" -version = "145.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f84468f393984251db025e944544590a8fb429d5088b78102bd72f09232f0da" -dependencies = [ - "bindgen", - "bitflags 2.13.2", - "fslock", - "gzip-header", - "home", - "miniz_oxide 0.8.9", - "paste", - "temporal_capi", - "which 6.0.3", -] - [[package]] name = "v_escape-base" version = "0.1.0" @@ -14194,16 +12051,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "wasm_dep_analyzer" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a10e6b67c951a84de7029487e0e0a496860dae49f6699edd279d5ff35b8fbf54" -dependencies = [ - "deno_error", - "thiserror 2.0.20", -] - [[package]] name = "web-sys" version = "0.3.105" @@ -14288,18 +12135,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4ca08e5ef825b65b056d9efbd95c8750683f0a6d0466d02e96dc2e4e360f3d2" -[[package]] -name = "which" -version = "6.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4ee928febd44d98f2f459a4a79bd4d928591333a494a10a868418ac1b39cf1f" -dependencies = [ - "either", - "home", - "rustix 0.38.44", - "winsafe", -] - [[package]] name = "which" version = "7.0.3" @@ -14308,7 +12143,7 @@ checksum = "24d643ce3fd3e5b54854602a080f34fb10ab75e0b813ee32d00ca2b44fa74762" dependencies = [ "either", "env_home", - "rustix 1.1.4", + "rustix", "winsafe", ] @@ -14563,15 +12398,6 @@ dependencies = [ "windows-targets 0.52.6", ] -[[package]] -name = "windows-sys" -version = "0.59.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" -dependencies = [ - "windows-targets 0.52.6", -] - [[package]] name = "windows-sys" version = "0.60.2" @@ -14850,6 +12676,12 @@ dependencies = [ "windows-core 0.62.2", ] +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + [[package]] name = "writeable" version = "0.6.4" @@ -14875,15 +12707,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "wyz" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" -dependencies = [ - "tap", -] - [[package]] name = "x11rb" version = "0.13.2" @@ -14891,7 +12714,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" dependencies = [ "gethostname", - "rustix 1.1.4", + "rustix", "x11rb-protocol", ] @@ -15066,7 +12889,7 @@ dependencies = [ "konst", "libc", "more-asserts", - "oneshot", + "oneshot 0.1.13", "pin-project", "rand 0.10.2", "reqwest 0.13.5", @@ -15098,12 +12921,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7008a9d8ba97a7e47d9b2df63fcdb8dade303010c5a7cd5bf2469d4da6eba673" -[[package]] -name = "yansi" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" - [[package]] name = "yasna" version = "0.6.0" @@ -15146,7 +12963,7 @@ dependencies = [ "proc-macro2", "quote", "syn 2.0.119", - "synstructure", + "synstructure 0.13.2", ] [[package]] @@ -15158,7 +12975,7 @@ dependencies = [ "proc-macro2", "quote", "syn 2.0.119", - "synstructure", + "synstructure 0.13.2", ] [[package]] @@ -15199,7 +13016,7 @@ dependencies = [ "proc-macro2", "quote", "syn 2.0.119", - "synstructure", + "synstructure 0.13.2", ] [[package]] @@ -15231,7 +13048,6 @@ dependencies = [ "displaydoc", "yoke 0.8.3", "zerofrom", - "zerovec", ] [[package]] @@ -15240,7 +13056,6 @@ version = "0.11.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" dependencies = [ - "serde", "yoke 0.8.3", "zerofrom", "zerovec-derive", @@ -15283,19 +13098,6 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" -[[package]] -name = "zoneinfo64" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb2e5597efbe7c421da8a7fd396b20b571704e787c21a272eecf35dfe9d386f0" -dependencies = [ - "calendrical_calculations", - "icu_locale_core", - "potential_utf", - "resb", - "serde", -] - [[package]] name = "zopfli" version = "0.8.3" diff --git a/Cargo.toml b/Cargo.toml index 9e075f139..bc4c025eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,6 @@ [workspace] members = [ "crates/*", - # Mainly for cargo-machete to not error out during inspection. - "vendor/v8", ] resolver = "2" @@ -108,14 +106,7 @@ tree-sitter-typescript = { version = "0.23", default-features = false } llama-cpp-2 = { version = "=0.1.146", default-features = false, features = ["sampler", "mtmd"] } llama-cpp-sys-2 = { version = "=0.1.146", default-features = false } -# These are needed because temporal_rs 0.1 (a transitive dep via PCTX) enables unstable features on icu_calendar without pinning the dependency version -# A fix is available in temporal_rs 0.2 but PCTX has not updated -# They are just here to pin the version, and can be removed if PCTX updates temporal_rs -icu_calendar = { version = "=2.1.1", default-features = false } -icu_locale = { version = "=2.1.1", default-features = false } - [patch.crates-io] -v8 = { path = "vendor/v8" } cudaforge = { git = "https://github.com/jbg/cudaforge", rev = "e7c1967340e40673db98dc9e17da0f04834a456f" } # Dependencies don't need debug info. You rarely step-debug into third-party diff --git a/RISCV_SETUP.md b/RISCV_SETUP.md index e31c88a68..aba98742d 100644 --- a/RISCV_SETUP.md +++ b/RISCV_SETUP.md @@ -1,6 +1,6 @@ # Building goose for RISC-V (riscv64gc-unknown-linux-gnu) -This document describes how to build goose-cli for RISC-V 64-bit systems with full V8/code-mode support. +This document describes how to build goose-cli for RISC-V 64-bit systems. > [!WARNING] > This is an experimental, community-contributed build process. RISC-V is not @@ -8,17 +8,16 @@ This document describes how to build goose-cli for RISC-V 64-bit systems with fu ## Prerequisites -- Rust 1.96.1+ (no toolchain upgrade needed) -- RISC-V cross-compilation toolchain: `gcc-riscv64-linux-gnu` +- The Rust toolchain pinned in `rust-toolchain.toml` - Target: `rustup target add riscv64gc-unknown-linux-gnu` +- For cross-compilation, a RISC-V toolchain such as `gcc-riscv64-linux-gnu` + and the target libraries required by Goose's native dependencies -### Linker Configuration +### Linker configuration -Building **on** RISC-V hardware needs nothing extra - the native linker is -used automatically. +Building on RISC-V hardware uses the native linker automatically. -**Cross-compiling** (e.g. from x86_64) needs the cross linker, otherwise -rustc invokes the host `cc` and linking fails. Either export: +Cross-compiling (e.g. from x86_64) needs the cross linker. Either export: ```bash export CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc @@ -34,252 +33,30 @@ linker = "riscv64-linux-gnu-gcc" Adjust the binary name if your distribution ships the cross gcc under a different name. -## Overview - -V8 152.2.0 is the first version with pre-built RISC-V binaries. However: -- Current goose uses v8 145.0.0 via deno_core 0.381.1 (no RISC-V support) -- Upgrading requires patching deno_core and serde_v8 for V8 152 API changes -- These patches are intrusive and affect all platforms if applied via Cargo.toml patches - -## Setup Steps - -### 1. Clone rusty_v8 v152.2.0 +## Build Run from the repository root: -```bash -git init vendor/rusty_v8 -git -C vendor/rusty_v8 remote add origin https://github.com/denoland/rusty_v8.git -git -C vendor/rusty_v8 fetch --depth 1 origin 2768994f664e8a6e3aba27503606c58339136e2a -git -C vendor/rusty_v8 checkout --detach FETCH_HEAD -rm -rf vendor/rusty_v8/.git -``` - -This provides v8 152.2.0 with RISC-V support. Cargo will download pre-built binaries automatically. - -### 2. Vendor deno_core 0.381.1 - -Run from the repository root: - -```bash -wget -P vendor https://static.crates.io/crates/deno_core/deno_core-0.381.1.crate -echo "77660b04f5368bcd69a42e0fdd6343e325eb781ec7d79bbf49ff2548ae4f17b6 vendor/deno_core-0.381.1.crate" | sha256sum --check -tar -C vendor -xzf vendor/deno_core-0.381.1.crate -mv vendor/deno_core-0.381.1 vendor/deno_core -rm vendor/deno_core-0.381.1.crate -``` - -### 3. Vendor serde_v8 0.290.0 - -Run from the repository root: - -```bash -wget -P vendor https://static.crates.io/crates/serde_v8/serde_v8-0.290.0.crate -echo "21a52aca5a5661aea9c2ccf8c2f985f2381266d7aab03a0d02beadb4ae1190ea vendor/serde_v8-0.290.0.crate" | sha256sum --check -tar -C vendor -xzf vendor/serde_v8-0.290.0.crate -mv vendor/serde_v8-0.290.0 vendor/serde_v8 -rm vendor/serde_v8-0.290.0.crate -``` - -### 4. Apply Patches - -#### vendor/v8 — drop it from the workspace - -The cloned `vendor/rusty_v8` is itself the `v8` crate at `152.2.0`, so the -root `[patch.crates-io]` entry points straight at it (see step 6). The -committed `vendor/v8` shim is not edited, but it must leave the workspace: -it pulls in `v8-goose`, which declares `links = "rusty_v8"`, and once the -patch resolves denoland's `v8` 152 (also `links = "rusty_v8"`) a workspace -containing both fails with "more than one crate with links=rusty_v8". Remove -`vendor/v8` from `members` and add it to `exclude` (see step 6). - -#### vendor/deno_core/Cargo.toml - -Update the v8 and ICU-data dependencies: - -```toml -[dependencies.v8] -version = "152.2.0" # was 145.0.0 -default-features = false - -[dependencies.deno_core_icudata] -version = "0.78.0" # was 0.77.0; V8 152 needs the ICU 78 data blob -optional = true -``` - -#### vendor/serde_v8/Cargo.toml - -Update v8 dependency: - -```toml -[dependencies.v8] -version = "152.2.0" # was 145.0.0 -default-features = false -``` - -### 5. Source Patches to vendor/deno_core - -These patches adapt deno_core 0.381.1 to V8 152 API changes. - -#### Wrap `v8::Global::open()` calls in `unsafe {}` - -V8 152 marked `Global::open()` as unsafe. Affected files: -- `error.rs` (2 locations) -- `modules/map.rs` (9 locations) -- `runtime/jsrealm.rs` (1 location) -- `runtime/jsruntime.rs` (3 locations) -- `ops_builtin_v8.rs` (1 location) - -Example: -```rust -// Before: -let cb = callback.open(scope); - -// After: -let cb = unsafe { callback.open(scope) }; -``` - -#### Disable fast-call path in `runtime/bindings.rs` - -Fast-call API causes SIGILL on RISC-V during snapshot creation: - -```rust -// Replace lines ~600-605: -let template = builder.build(scope); -// (Remove the if/else with fast_function) -``` - -#### Update `WasmStreaming` in `ops_builtin.rs` - -```rust -// Before: -pub struct WasmStreamingResource(pub(crate) RefCell); - -// After: -pub struct WasmStreamingResource(pub(crate) RefCell>); -``` - -#### Update ICU data in `runtime/setup.rs` - -The initializer name and the data blob must match (see the -`deno_core_icudata` bump above) — `set_common_data_78` rejects the ICU 77 -blob and V8 initialization fails. - -```rust -// Line ~19: -v8::icu::set_common_data_78(deno_core_icudata::ICU_DATA).unwrap(); -// was: set_common_data_77 - -// Line ~24 - remove this line: -" --no-validate-asm", // Remove - V8 13+ doesn't support this flag -``` - -### 6. Update Root Cargo.toml - -Add workspace exclusion and patches: - -```toml -[workspace] -members = ["crates/*"] # drop "vendor/v8" (see step 4) -exclude = ["vendor/v8", "vendor/rusty_v8"] -resolver = "2" - -# Relax ICU pins (temporal 0.2.6 handles this): -icu_calendar = { version = ">=2.1", default-features = false } -icu_locale = { version = ">=2.1", default-features = false } - -[patch.crates-io] -deno_core = { path = "vendor/deno_core" } -serde_v8 = { path = "vendor/serde_v8" } -v8 = { path = "vendor/rusty_v8" } # was vendor/v8; rusty_v8 is the v8 crate -# ... existing patches -``` - -### 7. Update crates/goose/Cargo.toml - -Relax ICU pins: - -```toml -icu_calendar = { version = ">=2.1", default-features = false } -icu_locale = { version = ">=2.1", default-features = false } -``` - -### 8. RISC-V Update Command Handling (already in repo) - -`crates/goose-cli/src/commands/update.rs` already handles RISC-V: - -- `asset_name()` includes the riscv64gc-gnu asset name so the function - compiles on RISC-V (otherwise every branch is cfg-disabled and the body - would evaluate to `()` instead of `&'static str`). -- `update()` bails early on riscv64 with a clear error, because release - artifacts are not published for this platform yet: - -```rust -#[cfg(all(target_arch = "riscv64", not(feature = "disable-update")))] -{ - bail!("Self-update is not supported on riscv64: no release artifacts are published for this platform."); -} -``` - -Once RISC-V assets are added to the release pipeline, remove that bail -block and drop `not(target_arch = "riscv64")` from the main branch. - -Because the bail makes the rest of the module cfg-disabled on riscv64, -the file also carries a module-level allow so `clippy -D warnings` stays -clean for RISC-V builds (inert on other targets): - -```rust -#![cfg_attr(target_arch = "riscv64", allow(dead_code, unused_imports, unused_variables))] -``` - -### 9. Update Dependencies - -Update only the dependencies this setup changes, not the whole lockfile: - -```bash -cargo update deno_core_icudata icu_calendar icu_locale temporal_rs -``` - -Expected changes: -- v8: 145.0.0 → 152.2.0 (local, via the patch) -- deno_core_icudata: 0.77.0 → 0.78.0 -- temporal_rs: 0.1.2 → 0.2.6 -- icu_calendar: 2.1.1 → 2.3.0 - -### 10. Build - ```bash cargo build --release --target riscv64gc-unknown-linux-gnu -p goose-cli --bin goose ``` Output: `target/riscv64gc-unknown-linux-gnu/release/goose` -## Complete Patch Script - -See `scripts/setup-riscv.sh` for automated setup. - -## Known Issues - -- Fast-call optimization disabled (SIGILL on RISC-V snapshot creation) -- Patches affect all platforms when using vendored deno_core -- Adds ~2.6MB vendor dependencies to repository - -## Alternative: Conditional Compilation - -For production PR, consider: -1. Keep deno_core/serde_v8 patches in separate git branch -2. Document manual setup steps -3. Only commit minimal changes (update.rs, CI workflow) -4. Let users apply patches locally for RISC-V builds +Self-update is unavailable on RISC-V because release artifacts are not published +for this platform. Rebuild from source to update. ## Verification -```bash -# Check architecture -file target/riscv64gc-unknown-linux-gnu/release/goose -# Output: ELF 64-bit LSB pie executable, UCB RISC-V +Check the binary's architecture: -# Test execution (on RISC-V hardware) +```bash +file target/riscv64gc-unknown-linux-gnu/release/goose +``` + +On RISC-V hardware, run: + +```bash ./target/riscv64gc-unknown-linux-gnu/release/goose --version ./target/riscv64gc-unknown-linux-gnu/release/goose doctor ``` diff --git a/crates/goose-cli/src/session/output.rs b/crates/goose-cli/src/session/output.rs index 7deebb896..748bbf793 100644 --- a/crates/goose-cli/src/session/output.rs +++ b/crates/goose-cli/src/session/output.rs @@ -583,7 +583,9 @@ fn render_tool_request(req: &ToolRequest, theme: Theme, debug: bool) { Ok(call) => match call.name.to_string().as_str() { name if is_shell_tool_name(name) => render_shell_request(call, debug), name if is_file_tool_name(name) => render_text_editor_request(call, debug), - "execute_typescript" | "execute_code" => render_execute_code_request(call, debug), + "execute_javascript" | "execute_typescript" | "execute_code" => { + render_execute_code_request(call, debug) + } "delegate" => render_delegate_request(call, debug), "subagent" => render_delegate_request(call, debug), TODO_WRITE_TOOL_NAME_COMPLETE => render_todo_request(call, debug), @@ -1033,13 +1035,19 @@ pub fn render_subagent_tool_call( arguments: Option<&JsonObject>, debug: bool, ) { - if tool_name == "code_execution__execute_typescript" { + if matches!( + tool_name, + "execute_javascript" + | "code_execution__execute_javascript" + | "execute_typescript" + | "code_execution__execute_typescript" + ) { let tool_graph = arguments .and_then(|args| args.get("tool_graph")) .and_then(Value::as_array) .filter(|arr| !arr.is_empty()); if let Some(tool_graph) = tool_graph { - return render_subagent_tool_graph(subagent_id, tool_graph); + return render_subagent_tool_graph(subagent_id, tool_name, tool_graph); } } let tool_header = format!( @@ -1053,7 +1061,7 @@ pub fn render_subagent_tool_call( println!(); } -fn render_subagent_tool_graph(subagent_id: &str, tool_graph: &[Value]) { +fn render_subagent_tool_graph(subagent_id: &str, tool_name: &str, tool_graph: &[Value]) { let short_id = subagent_id.rsplit('_').next().unwrap_or(subagent_id); let count = tool_graph.len(); let plural = if count == 1 { "" } else { "s" }; @@ -1062,7 +1070,7 @@ fn render_subagent_tool_graph(subagent_id: &str, tool_graph: &[Value]) { " {} {} {} {} tool call{}", style("▸").dim(), style(format!("[subagent:{}]", short_id)).dim(), - style("execute_typescript").dim(), + style(ToolNameParts::from(tool_name).tool_name).dim(), style(count).dim(), plural, ); @@ -1770,9 +1778,9 @@ mod tests { #[test] fn tool_confirmation_shows_execute_code_and_graph() { let arguments = json!({ - "code": "await developer.shell({ command: \"cat ~/.ssh/id_rsa\" });", + "code": "async function run() { return await tools.call(\"shell\", { command: \"cat ~/.ssh/id_rsa\" }); }", "tool_graph": [{ - "tool": "developer/read", + "tool": "text_editor", "description": "read package manifest", "depends_on": [] }] @@ -1781,9 +1789,9 @@ mod tests { .unwrap() .clone(); - let rendered = format_tool_confirmation("execute_typescript", &arguments); + let rendered = format_tool_confirmation("execute_javascript", &arguments); - assert!(rendered.contains("execute_typescript")); + assert!(rendered.contains("execute_javascript")); assert!(rendered.contains("read package manifest")); assert!(rendered.contains("cat ~/.ssh/id_rsa")); } @@ -1942,6 +1950,10 @@ mod tests { format_subagent_tool_call_message("subagent_42", "developer__shell"), "[subagent:42] shell | developer" ); + assert_eq!( + format_subagent_tool_call_message("subagent_42", "code_execution__execute_javascript"), + "[subagent:42] execute_javascript | Code Mode" + ); assert_eq!( format_subagent_tool_call_message("subagent_42", "code_execution__execute_typescript"), "[subagent:42] execute_typescript | Code Mode" diff --git a/crates/goose-local-inference/src/lib.rs b/crates/goose-local-inference/src/lib.rs index f402b3910..f36ccdeae 100644 --- a/crates/goose-local-inference/src/lib.rs +++ b/crates/goose-local-inference/src/lib.rs @@ -604,11 +604,11 @@ fn strip_image_parts_from_messages(messages: &mut [Value]) { /// the model: /// /// - `ToolRequest` with a `"command"` argument → `$ command` -/// - `ToolRequest` with a `"code"` argument → `` ```execute_typescript\n…\n``` `` +/// - `ToolRequest` with a `"code"` argument → `` ```execute_javascript\n…\n``` `` +/// - Code-mode discovery requests → their named fences with JSON arguments /// - `ToolResponse` → `Command output:\n…` /// -/// Only `developer__shell` and `code_execution__execute_typescript` style tool calls are -/// recognized (by argument shape, not tool name). Tool calls from other extensions +/// Shell, JavaScript, and code-mode discovery calls are recognized. Tool calls from other extensions /// (e.g. custom MCP tools made by a native-tool-calling model earlier in the /// conversation) are silently dropped, since the emulator path has no syntax to /// represent them. @@ -625,7 +625,13 @@ fn extract_text_content(msg: &Message) -> String { } MessageContent::ToolRequest(req) => { if let Ok(call) = &req.tool_call { - if let Some(cmd) = call + if matches!( + call.name.as_ref(), + "list_functions" | "get_function_details" + ) { + let arguments = call.arguments.clone().unwrap_or_default(); + parts.push(format!("```{}\n{}\n```", call.name, json!(arguments))); + } else if let Some(cmd) = call .arguments .as_ref() .and_then(|a| a.get("command")) @@ -638,7 +644,7 @@ fn extract_text_content(msg: &Message) -> String { .and_then(|a| a.get("code")) .and_then(|v| v.as_str()) { - parts.push(format!("```execute_typescript\n{}\n```", code)); + parts.push(format!("```execute_javascript\n{}\n```", code)); } } } @@ -1106,4 +1112,23 @@ mod tests { assert_eq!(extract_text_content(&message), "ordinary user content"); } + + #[test] + fn preserves_discovery_requests_in_emulated_history() { + for (name, arguments) in [ + ("list_functions", json!({})), + ( + "get_function_details", + json!({"functions": ["example__search"]}), + ), + ] { + let request = rmcp::model::CallToolRequestParams::new(name) + .with_arguments(arguments.as_object().unwrap().clone()); + let message = Message::assistant().with_tool_request("discovery", Ok(request)); + assert_eq!( + extract_text_content(&message), + format!("```{name}\n{arguments}\n```") + ); + } + } } diff --git a/crates/goose-local-inference/src/llamacpp/inference_emulated_tools.rs b/crates/goose-local-inference/src/llamacpp/inference_emulated_tools.rs index 0eaf4a66f..4b44abceb 100644 --- a/crates/goose-local-inference/src/llamacpp/inference_emulated_tools.rs +++ b/crates/goose-local-inference/src/llamacpp/inference_emulated_tools.rs @@ -1,7 +1,7 @@ //! Tool call emulation for models without native tool-calling support. //! //! The model is prompted to emit shell commands as `$ command` on a new line and -//! code blocks as `` ```execute_typescript `` fenced blocks. A streaming parser detects these +//! code blocks as `` ```execute_javascript `` fenced blocks. A streaming parser detects these //! patterns and converts them into tool-call messages. //! //! # Known false-positive scenarios @@ -13,178 +13,31 @@ //! a shell command. Mid-sentence `$` (e.g. "costs $50") is safe — only `\n$` or //! `$` at the very start of output triggers command detection. //! -//! - **`` ```execute_typescript `` as a top-level explanatory fence.** If the model +//! - **`` ```execute_javascript `` as a top-level explanatory fence.** If the model //! uses this exact fence tag in prose, the content will be executed. Nested Markdown //! examples and fences with other info strings remain text. //! //! These are inherent to text-based tool emulation. Models with native tool-calling //! support should use the `inference_native_tools` path instead. -use goose_provider_types::conversation::message::{Message, MessageContent}; +use goose_provider_types::conversation::message::Message; use goose_provider_types::errors::ProviderError; -use rmcp::model::{CallToolRequestParams, Tool}; -use serde_json::json; -use std::borrow::Cow; -use uuid::Uuid; use super::super::{finalize_usage, thinking_output::ThinkingOutputFilter, StreamSender}; use super::inference_engine::{ generation_loop, prepare_generation, GenerationContext, StopSuffixTrimmer, TokenAction, }; -use crate::tool_emulation::{EmulatorAction, StreamingEmulatorParser}; - -const SHELL_TOOL: &str = "developer__shell"; -const CODE_EXECUTION_TOOL: &str = "code_execution__execute_typescript"; - -pub(super) fn load_tiny_model_prompt() -> String { - use std::env; - - let os = if cfg!(target_os = "macos") { - "macos" - } else if cfg!(target_os = "linux") { - "linux" - } else if cfg!(target_os = "windows") { - "windows" - } else { - "unknown" - }; - - let working_directory = env::current_dir() - .map(|p| p.display().to_string()) - .unwrap_or_else(|_| "unknown".to_string()); - - let shell = env::var("SHELL").unwrap_or_else(|_| "/bin/sh".to_string()); - - let context = json!({ - "os": os, - "working_directory": working_directory, - "shell": shell, - }); - - crate::prompt_template::render_template("tiny_model_system.md", &context).unwrap_or_else(|e| { - tracing::warn!("Failed to load tiny_model_system.md: {:?}", e); - "You are Goose, an AI assistant. You can execute shell commands by starting lines with $." - .to_string() - }) -} - -pub(super) fn build_emulator_tool_description(tools: &[Tool], code_mode_enabled: bool) -> String { - let mut tool_desc = String::new(); - - if code_mode_enabled { - tool_desc.push_str("\n\n# Running Code\n\n"); - tool_desc.push_str( - "You can call tools by writing code in a ```execute block. \ - The code runs immediately — do not explain it, just run it.\n\n", - ); - tool_desc.push_str("Example — counting files in /tmp:\n\n"); - tool_desc.push_str("```execute_typescript\nasync function run() {\n"); - tool_desc.push_str( - " const result = await Developer.shell({ command: \"ls -1 /tmp | wc -l\" });\n", - ); - tool_desc.push_str(" return result;\n}\n```\n\n"); - tool_desc.push_str("Rules:\n"); - tool_desc.push_str("- Code MUST define async function run() and return a result\n"); - tool_desc.push_str("- All function calls are async — use await\n"); - tool_desc.push_str("- Use ```execute for tool calls, $ for simple shell one-liners\n\n"); - tool_desc.push_str("Available functions:\n\n"); - - for tool in tools { - if tool.name.starts_with("code_execution__") { - continue; - } - let parts: Vec<&str> = tool.name.splitn(2, "__").collect(); - if parts.len() == 2 { - let namespace = { - let mut c = parts[0].chars(); - match c.next() { - None => String::new(), - Some(first) => first.to_uppercase().chain(c).collect::(), - } - }; - let camel_name: String = parts[1] - .split('_') - .enumerate() - .map(|(i, part)| { - if i == 0 { - part.to_string() - } else { - let mut c = part.chars(); - match c.next() { - None => String::new(), - Some(first) => first.to_uppercase().chain(c).collect(), - } - } - }) - .collect(); - let desc = tool.description.as_ref().map(|d| d.as_ref()).unwrap_or(""); - tool_desc.push_str(&format!("- {namespace}.{camel_name}(): {desc}\n")); - } - } - } else { - tool_desc.push_str("\n\n# Tools\n\nYou have access to the following tools:\n\n"); - for tool in tools { - let desc = tool - .description - .as_ref() - .map(|d| d.as_ref()) - .unwrap_or("No description"); - tool_desc.push_str(&format!("- {}: {}\n", tool.name, desc)); - } - } - - tool_desc -} +use crate::tool_emulation::{message_for_emulator_action, EmulatorAction, StreamingEmulatorParser}; fn send_emulator_action( action: &EmulatorAction, message_id: &str, tx: &StreamSender, ) -> Result { - match action { - EmulatorAction::Text(text) => { - let mut message = Message::assistant().with_text(text); - message.id = Some(message_id.to_string()); - tx.blocking_send(Ok((Some(message), None))) - .map_err(|_| ())?; - Ok(false) - } - EmulatorAction::ShellCommand(command) => { - let tool_id = Uuid::new_v4().to_string(); - let mut args = serde_json::Map::new(); - args.insert("command".to_string(), json!(command)); - let tool_call = - CallToolRequestParams::new(Cow::Borrowed(SHELL_TOOL)).with_arguments(args); - let mut message = Message::assistant(); - message - .content - .push(MessageContent::tool_request(tool_id, Ok(tool_call))); - message.id = Some(message_id.to_string()); - tx.blocking_send(Ok((Some(message), None))) - .map_err(|_| ())?; - Ok(true) - } - EmulatorAction::ExecuteCode(code) => { - let tool_id = Uuid::new_v4().to_string(); - let wrapped = if code.contains("async function run()") { - code.clone() - } else { - format!("async function run() {{\n{}\n}}", code) - }; - let mut args = serde_json::Map::new(); - args.insert("code".to_string(), json!(wrapped)); - let tool_call = - CallToolRequestParams::new(Cow::Borrowed(CODE_EXECUTION_TOOL)).with_arguments(args); - let mut message = Message::assistant(); - message - .content - .push(MessageContent::tool_request(tool_id, Ok(tool_call))); - message.id = Some(message_id.to_string()); - tx.blocking_send(Ok((Some(message), None))) - .map_err(|_| ())?; - Ok(true) - } - } + let (message, is_tool) = message_for_emulator_action(action, message_id); + tx.blocking_send(Ok((Some(message), None))) + .map_err(|_| ())?; + Ok(is_tool) } pub(super) fn generate_with_emulated_tools( diff --git a/crates/goose-local-inference/src/llamacpp/mod.rs b/crates/goose-local-inference/src/llamacpp/mod.rs index faf0ff294..798f55848 100644 --- a/crates/goose-local-inference/src/llamacpp/mod.rs +++ b/crates/goose-local-inference/src/llamacpp/mod.rs @@ -13,14 +13,13 @@ use llama_cpp_2::model::{ChatTemplateResult, LlamaChatTemplate, LlamaModel}; use llama_cpp_2::openai::OpenAIChatTemplateParams; use llama_cpp_2::{list_llama_ggml_backend_devices, LlamaBackendDeviceType, LogOptions}; -use self::inference_emulated_tools::{ - build_emulator_tool_description, generate_with_emulated_tools, load_tiny_model_prompt, -}; +use self::inference_emulated_tools::generate_with_emulated_tools; use self::inference_engine::{GenerationContext, LoadedChatTemplates, LoadedModel}; use self::inference_native_tools::generate_with_native_tools; use crate::backend::{BackendLoadedModel, LocalGenerationRequest, LocalInferenceBackend}; use crate::model::{ChatTemplate, ModelSettings, ToolCallingMode}; use crate::multimodal::ExtractedImage; +use crate::tool_emulation::{build_emulator_tool_description, load_tiny_model_prompt}; use crate::tool_parsing::compact_tools_json; use crate::{build_openai_messages_json, build_openai_text_messages_json, ResolvedModelPaths}; use goose_provider_types::errors::ProviderError; @@ -28,7 +27,7 @@ use goose_provider_types::formats::openai::format_tools; pub(super) const LLAMACPP_BACKEND_ID: &str = "llamacpp"; -const CODE_EXECUTION_TOOL: &str = "code_execution__execute_typescript"; +const CODE_EXECUTION_TOOL: &str = "execute_javascript"; pub(super) fn builtin_chat_template_names() -> Vec { let count = unsafe { llama_cpp_sys_2::llama_chat_builtin_templates(std::ptr::null_mut(), 0) }; diff --git a/crates/goose-local-inference/src/tool_emulation.rs b/crates/goose-local-inference/src/tool_emulation.rs index 4e9046f7f..f22be01ae 100644 --- a/crates/goose-local-inference/src/tool_emulation.rs +++ b/crates/goose-local-inference/src/tool_emulation.rs @@ -1,28 +1,21 @@ //! Shared text-based tool call emulation for local inference backends. //! //! Models that do not have native tool-calling support are prompted to emit shell commands -//! as `$ command` on a new line and code blocks as ```execute_typescript fenced blocks. +//! as `$ command` on a new line, JavaScript in ```execute_javascript fences, and +//! JSON discovery arguments in ```list_functions or ```get_function_details fences. //! The parser converts those patterns into Goose tool-call messages. use pulldown_cmark::{CodeBlockKind, Event, Parser, Tag}; -#[cfg(feature = "mlx")] -use goose_provider_types::conversation::message::{Message, MessageContent}; -#[cfg(feature = "mlx")] +use goose_provider_types::conversation::message::Message; use rmcp::model::{CallToolRequestParams, Tool}; -#[cfg(feature = "mlx")] use serde_json::json; -#[cfg(feature = "mlx")] use std::borrow::Cow; -#[cfg(feature = "mlx")] use uuid::Uuid; -#[cfg(feature = "mlx")] pub(crate) const SHELL_TOOL: &str = "developer__shell"; -#[cfg(feature = "mlx")] -pub(crate) const CODE_EXECUTION_TOOL: &str = "code_execution__execute_typescript"; +pub(crate) const CODE_EXECUTION_TOOL: &str = "execute_javascript"; -#[cfg(feature = "mlx")] pub(crate) fn load_tiny_model_prompt() -> String { use std::env; @@ -55,27 +48,27 @@ pub(crate) fn load_tiny_model_prompt() -> String { }) } -#[cfg(feature = "mlx")] pub(crate) fn build_emulator_tool_description(tools: &[Tool], code_mode_enabled: bool) -> String { let mut tool_desc = String::new(); if code_mode_enabled { tool_desc.push_str("\n\n# Running Code\n\n"); tool_desc.push_str( - "You can call tools by writing code in a ```execute_typescript block. \ + "You can call tools by writing code in a ```execute_javascript block. \ The code runs immediately — do not explain it, just run it.\n\n", ); - tool_desc.push_str("Example — counting files in /tmp:\n\n"); - tool_desc.push_str("```execute_typescript\nasync function run() {\n"); tool_desc.push_str( - " const result = await Developer.shell({ command: \"ls -1 /tmp | wc -l\" });\n", - ); - tool_desc.push_str(" return result;\n}\n```\n\n"); - tool_desc.push_str("Rules:\n"); - tool_desc.push_str("- Code MUST define async function run() and return a result\n"); - tool_desc.push_str("- All function calls are async — use await\n"); - tool_desc.push_str( - "- Use ```execute_typescript for tool calls, $ for simple shell one-liners\n\n", + "Discover exact tool names first:\n\n\ + ```list_functions\n{}\n```\n\n\ + Inspect unfamiliar tools using their discovered names:\n\n\ + ```get_function_details\n{\"functions\": [\"extension__tool_name\"]}\n```\n\n\ + Then call the discovered tool from JavaScript:\n\n\ + ```execute_javascript\nasync function run() {\n\ + return await tools.call(\"extension__tool_name\", {});\n}\n```\n\n\ + Await tool calls and batch independent calls with Promise.all.\n\ + Return or log only information needed for the next step.\n\ + Use the discovery fences above directly; discovery tools cannot be called through tools.call.\n\ + Use $ for simple shell one-liners.\n\n", ); tool_desc.push_str("Available functions:\n\n"); @@ -83,33 +76,8 @@ pub(crate) fn build_emulator_tool_description(tools: &[Tool], code_mode_enabled: if tool.name.starts_with("code_execution__") { continue; } - let parts: Vec<&str> = tool.name.splitn(2, "__").collect(); - if parts.len() == 2 { - let namespace = { - let mut c = parts[0].chars(); - match c.next() { - None => String::new(), - Some(first) => first.to_uppercase().chain(c).collect::(), - } - }; - let camel_name: String = parts[1] - .split('_') - .enumerate() - .map(|(i, part)| { - if i == 0 { - part.to_string() - } else { - let mut c = part.chars(); - match c.next() { - None => String::new(), - Some(first) => first.to_uppercase().chain(c).collect(), - } - } - }) - .collect(); - let desc = tool.description.as_ref().map(|d| d.as_ref()).unwrap_or(""); - tool_desc.push_str(&format!("- {namespace}.{camel_name}(): {desc}\n")); - } + let desc = tool.description.as_deref().unwrap_or(""); + tool_desc.push_str(&format!("- {}: {desc}\n", tool.name)); } } else { tool_desc.push_str("\n\n# Tools\n\nYou have access to the following tools:\n\n"); @@ -130,6 +98,10 @@ pub(crate) enum EmulatorAction { Text(String), ShellCommand(String), ExecuteCode(String), + DiscoveryCall { + name: &'static str, + arguments: serde_json::Map, + }, } // pulldown-cmark parses complete documents, so fail closed once reparsing would become expensive. @@ -139,7 +111,10 @@ const MAX_MARKDOWN_PARSE_BYTES: usize = 1024 * 1024; #[derive(Clone, Copy)] enum ParserState { Normal, - InExecuteBlock { fence_len: usize }, + InToolBlock { + fence_len: usize, + name: &'static str, + }, } pub(crate) struct StreamingEmulatorParser { @@ -151,7 +126,7 @@ pub(crate) struct StreamingEmulatorParser { code_mode_enabled: bool, } -fn execute_fence_len(line: &str) -> Option { +fn tool_fence(line: &str) -> Option<(usize, &'static str)> { let line = line.strip_suffix('\r').unwrap_or(line); let indent = line.bytes().take_while(|byte| *byte == b' ').count(); if indent > 3 { @@ -164,10 +139,13 @@ fn execute_fence_len(line: &str) -> Option { return None; } - rest.get(fence_len..)? - .trim_matches([' ', '\t']) - .eq("execute_typescript") - .then_some(fence_len) + let name = match rest.get(fence_len..)?.trim_matches([' ', '\t']) { + "execute_javascript" => CODE_EXECUTION_TOOL, + "list_functions" => "list_functions", + "get_function_details" => "get_function_details", + _ => return None, + }; + Some((fence_len, name)) } fn is_closing_fence(line: &str, minimum_len: usize) -> bool { @@ -187,7 +165,7 @@ fn is_closing_fence(line: &str, minimum_len: usize) -> bool { .is_some_and(|suffix| suffix.bytes().all(|byte| matches!(byte, b' ' | b'\t'))) } -fn is_top_level_execute_fence(markdown: &str, line_start: usize) -> bool { +fn is_top_level_tool_fence(markdown: &str, line_start: usize) -> bool { let mut depth = 0; for (event, range) in Parser::new(markdown).into_offset_iter() { match event { @@ -197,7 +175,7 @@ fn is_top_level_execute_fence(markdown: &str, line_start: usize) -> bool { && matches!( tag, Tag::CodeBlock(CodeBlockKind::Fenced(ref info)) - if info.as_ref() == "execute_typescript" + if matches!(info.as_ref(), "execute_javascript" | "list_functions" | "get_function_details") ) { return true; @@ -335,7 +313,7 @@ impl StreamingEmulatorParser { loop { match self.state { - ParserState::InExecuteBlock { fence_len } => { + ParserState::InToolBlock { fence_len, name } => { let Some((closing_start, consumed)) = closing_fence_range(&self.buffer, fence_len, false) else { @@ -353,7 +331,7 @@ impl StreamingEmulatorParser { self.buffer.replace_range(..consumed, ""); self.state = ParserState::Normal; if !code.trim().is_empty() { - results.push(EmulatorAction::ExecuteCode(code)); + results.push(fenced_action(name, code)); } } ParserState::Normal => { @@ -377,9 +355,9 @@ impl StreamingEmulatorParser { self.buffer.replace_range(..=line_end, ""); if self.code_mode_enabled { - if let Some(fence_len) = execute_fence_len(&line) { - if self.markdown_matches(markdown_range, is_top_level_execute_fence) { - self.state = ParserState::InExecuteBlock { fence_len }; + if let Some((fence_len, name)) = tool_fence(&line) { + if self.markdown_matches(markdown_range, is_top_level_tool_fence) { + self.state = ParserState::InToolBlock { fence_len, name }; continue; } } @@ -408,7 +386,7 @@ impl StreamingEmulatorParser { let mut results = self.process_chunk(""); match self.state { - ParserState::InExecuteBlock { fence_len } => { + ParserState::InToolBlock { fence_len, name } => { let code_end = closing_fence_range(&self.buffer, fence_len, true) .map(|(closing_start, _)| { closing_start @@ -423,7 +401,7 @@ impl StreamingEmulatorParser { .expect("code boundary must be a character boundary"); let code = code.strip_suffix('\r').unwrap_or(code).trim(); if !code.is_empty() { - results.push(EmulatorAction::ExecuteCode(code.to_string())); + results.push(fenced_action(name, code.to_string())); } } ParserState::Normal if !self.buffer.is_empty() => { @@ -438,8 +416,8 @@ impl StreamingEmulatorParser { }); if self.code_mode_enabled - && execute_fence_len(&line).is_some() - && self.markdown_matches(markdown_range, is_top_level_execute_fence) + && tool_fence(&line).is_some() + && self.markdown_matches(markdown_range, is_top_level_tool_fence) { } else if let Some(command) = line.strip_prefix('$') { if self.markdown_matches(markdown_range, is_top_level_paragraph_line) { @@ -466,32 +444,32 @@ impl StreamingEmulatorParser { } } -#[cfg(feature = "mlx")] +fn fenced_action(name: &'static str, body: String) -> EmulatorAction { + if name == CODE_EXECUTION_TOOL { + return EmulatorAction::ExecuteCode(body); + } + match serde_json::from_str(&body) { + Ok(arguments) => EmulatorAction::DiscoveryCall { name, arguments }, + Err(_) => EmulatorAction::Text(format!("```{name}\n{body}\n```\n")), + } +} + pub(crate) fn message_for_emulator_action( action: &EmulatorAction, message_id: &str, ) -> (Message, bool) { - match action { + let (name, arguments) = match action { EmulatorAction::Text(text) => { let mut message = Message::assistant().with_text(text); message.id = Some(message_id.to_string()); - (message, false) + return (message, false); } EmulatorAction::ShellCommand(command) => { - let tool_id = Uuid::new_v4().to_string(); let mut args = serde_json::Map::new(); args.insert("command".to_string(), json!(command)); - let tool_call = - CallToolRequestParams::new(Cow::Borrowed(SHELL_TOOL)).with_arguments(args); - let mut message = Message::assistant(); - message - .content - .push(MessageContent::tool_request(tool_id, Ok(tool_call))); - message.id = Some(message_id.to_string()); - (message, true) + (SHELL_TOOL, args) } EmulatorAction::ExecuteCode(code) => { - let tool_id = Uuid::new_v4().to_string(); let wrapped = if code.contains("async function run()") { code.clone() } else { @@ -499,16 +477,15 @@ pub(crate) fn message_for_emulator_action( }; let mut args = serde_json::Map::new(); args.insert("code".to_string(), json!(wrapped)); - let tool_call = - CallToolRequestParams::new(Cow::Borrowed(CODE_EXECUTION_TOOL)).with_arguments(args); - let mut message = Message::assistant(); - message - .content - .push(MessageContent::tool_request(tool_id, Ok(tool_call))); - message.id = Some(message_id.to_string()); - (message, true) + (CODE_EXECUTION_TOOL, args) } - } + EmulatorAction::DiscoveryCall { name, arguments } => (*name, arguments.clone()), + }; + let tool_call = CallToolRequestParams::new(Cow::Borrowed(name)).with_arguments(arguments); + let mut message = + Message::assistant().with_tool_request(Uuid::new_v4().to_string(), Ok(tool_call)); + message.id = Some(message_id.to_string()); + (message, true) } #[cfg(test)] @@ -604,7 +581,7 @@ mod tests { #[test] fn top_level_execute_block_after_text_is_detected() { - let input = "Here's the code:\n```execute_typescript\nconsole.log('hi');\n```\n"; + let input = "Here's the code:\n```execute_javascript\nconsole.log('hi');\n```\n"; let actions = parse_all(input, true); assert_eq!(text(&actions), "Here's the code:\n"); @@ -613,7 +590,7 @@ mod tests { #[test] fn execute_fence_can_be_split_across_chunks() { - let input = "```execute_typescript\nlet x = 1;\n```\n"; + let input = "```execute_javascript\nlet x = 1;\n```\n"; let chunks: Vec = input.chars().map(|ch| ch.to_string()).collect(); let chunk_refs: Vec<&str> = chunks.iter().map(String::as_str).collect(); let actions = parse_chunks(&chunk_refs, true); @@ -623,7 +600,7 @@ mod tests { #[test] fn execute_blocks_are_disabled_without_code_mode() { - let input = "```execute_typescript\nlet x = 1;\n```\n"; + let input = "```execute_javascript\nlet x = 1;\n```\n"; let actions = parse_all(input, false); assert_eq!(text(&actions), input); @@ -633,11 +610,11 @@ mod tests { #[test] fn nested_execute_fences_remain_text() { let cases = [ - "````markdown\n```execute_typescript\ninert();\n```\n````\n", - "~~~markdown\n```execute_typescript\ninert();\n```\n~~~\n", - "> ```execute_typescript\n> inert();\n> ```\n", - "- ```execute_typescript\n inert();\n ```\n", - "
\n```execute_typescript\ninert();\n```\n\n", + "````markdown\n```execute_javascript\ninert();\n```\n````\n", + "~~~markdown\n```execute_javascript\ninert();\n```\n~~~\n", + "> ```execute_javascript\n> inert();\n> ```\n", + "- ```execute_javascript\n inert();\n ```\n", + "
\n```execute_javascript\ninert();\n```\n\n", ]; for input in cases { @@ -649,16 +626,16 @@ mod tests { #[test] fn invalid_fence_info_does_not_hide_following_execute() { - let input = "```execute_typescript```\n```execute_typescript\nsafe();\n```\n"; + let input = "```execute_javascript```\n```execute_javascript\nsafe();\n```\n"; let actions = parse_all(input, true); assert_eq!(execute_blocks(&actions), ["safe();"]); - assert!(text(&actions).contains("```execute_typescript```")); + assert!(text(&actions).contains("```execute_javascript```")); } #[test] fn longer_execute_fence_requires_matching_close() { - let input = "````execute_typescript\nlet before = 1;\n```\nlet after = 2;\n````\n"; + let input = "````execute_javascript\nlet before = 1;\n```\nlet after = 2;\n````\n"; let actions = parse_all(input, true); assert_eq!( @@ -672,7 +649,7 @@ mod tests { let mut parser = StreamingEmulatorParser::new(true); assert!(parser - .process_chunk("```execute_typescript\nlet x = 1;\n```") + .process_chunk("```execute_javascript\nlet x = 1;\n```") .iter() .all(|action| !matches!(action, EmulatorAction::ExecuteCode(_)))); assert!(parser @@ -686,7 +663,7 @@ mod tests { #[test] fn unicode_whitespace_does_not_close_execute_fence() { - let input = "```execute_typescript\nlet before = 1;\n```\u{a0}\nlet after = 2;\n```\n"; + let input = "```execute_javascript\nlet before = 1;\n```\u{a0}\nlet after = 2;\n```\n"; let actions = parse_all(input, true); assert_eq!( @@ -713,19 +690,71 @@ mod tests { #[test] fn eof_flushes_closed_and_unclosed_execute_blocks() { for (input, expected) in [ - ("```execute_typescript\nsafe();\n```", "safe();"), - ("```execute_typescript\nsafe();", "safe();"), + ("```execute_javascript\nsafe();\n```", "safe();"), + ("```execute_javascript\nsafe();", "safe();"), ] { let actions = parse_all(input, true); assert_eq!(execute_blocks(&actions), [expected]); } } - #[cfg(feature = "mlx")] #[test] - fn tool_description_uses_execute_typescript_fence() { + fn tool_description_uses_execute_javascript_fence() { let description = build_emulator_tool_description(&[], true); - assert!(description.contains("```execute_typescript")); + assert!(description.contains("```execute_javascript")); + assert!(description.contains("```list_functions\n{}")); + assert!(description.contains("```get_function_details\n{\"functions\":")); + } + + #[test] + fn discovery_fences_emit_direct_calls_with_original_arguments() { + for (name, arguments) in [ + ("list_functions", json!({})), + ( + "get_function_details", + json!({"functions": ["example__search"]}), + ), + ] { + let input = format!("```{name}\n{arguments}\n```\n"); + for chunks in [ + vec![input.as_str()], + input.split_inclusive('\n').collect(), + input.split_inclusive('e').collect(), + ] { + let actions = parse_chunks(&chunks, true); + assert_eq!(actions.len(), 1); + let (message, is_tool) = message_for_emulator_action(&actions[0], "discovery"); + assert!(is_tool); + assert_eq!(message.id.as_deref(), Some("discovery")); + let request = message.content[0] + .as_tool_request() + .unwrap() + .tool_call + .as_ref() + .unwrap(); + assert_eq!(request.name, name); + assert_eq!( + request.arguments.as_ref().unwrap(), + arguments.as_object().unwrap() + ); + } + } + } + + #[test] + fn discovery_requires_code_mode_and_top_level_json_fences() { + for input in [ + "````markdown\n```list_functions\n{}\n```\n````\n", + "> ```get_function_details\n> {}\n> ```\n", + "```list_functions\nnot json\n```\n", + "```get_function_details\n[]\n```\n", + ] { + let actions = parse_all(input, true); + assert!(actions.iter().all(|a| matches!(a, EmulatorAction::Text(_)))); + } + let input = "```list_functions\n{}\n```\n"; + let actions = parse_all(input, false); + assert_eq!(text(&actions), input); } } diff --git a/crates/goose/Cargo.toml b/crates/goose/Cargo.toml index fb3746dab..c04363e79 100644 --- a/crates/goose/Cargo.toml +++ b/crates/goose/Cargo.toml @@ -20,7 +20,7 @@ otel = [ "dep:opentelemetry-otlp", "dep:opentelemetry-stdout", ] -code-mode = ["dep:pctx_code_mode"] +code-mode = ["dep:boa_engine"] tree-sitter = [ "dep:tree-sitter", "dep:tree-sitter-go", @@ -251,16 +251,10 @@ aws-lc-rs = { version = "1.17", default-features = false, optional = true } openssl = { version = "0.10.66", default-features = false, optional = true } pem = { version = "4.0.0", default-features = false, features = ["std"], optional = true } -pctx_code_mode = { version = "0.5.0", default-features = false, optional = true } - -# These are needed because temporal_rs 0.1 (a transitive dep via PCTX) enables unstable features on icu_calendar without pinning the dependency version -# A fix is available in temporal_rs 0.2 but PCTX has not updated -# They are just here to pin the version, and can be removed if PCTX updates temporal_rs -icu_calendar = { version = "=2.1.1", default-features = false } -icu_locale = { version = "=2.1.1", default-features = false } image = { version = "0.24.9", default-features = false, features = ["png", "jpeg", "gif", "webp"] } subtle = { version = "2.5", default-features = false, features = ["std"] } gethostname = "1.1.0" +boa_engine = { version = "0.22", default-features = false, optional = true, features = ["fuzz"] } [target.'cfg(target_os = "windows")'.dependencies] winapi = { workspace = true, features = ["accctrl", "aclapi", "fileapi", "handleapi", "minwinbase", "sddl", "securitybaseapi", "winbase", "winerror"] } @@ -333,8 +327,4 @@ path = "src/bin/generate_acp_schema.rs" ignored = [ # Used only on windows "winapi", - - # Included only to pin version - "icu_calendar", - "icu_locale", ] diff --git a/crates/goose/src/agents/platform_extensions/code_execution.rs b/crates/goose/src/agents/platform_extensions/code_execution.rs index 355da8a19..be388f834 100644 --- a/crates/goose/src/agents/platform_extensions/code_execution.rs +++ b/crates/goose/src/agents/platform_extensions/code_execution.rs @@ -1,19 +1,13 @@ +use super::javascript::{self, ToolCallback, ToolFuture}; use crate::agents::extension::PlatformExtensionContext; use crate::agents::extension_manager::{ - get_tool_owner, get_tool_resource_uri, is_tool_owned_by_extension, CallRequest, ExtensionLease, + get_tool_resource_uri, is_tool_owned_by_extension, CallRequest, ExtensionLease, }; use crate::agents::mcp_client::{Error, McpClientTrait}; use crate::agents::reply_parts::is_tool_visible_to_model; use crate::agents::tool_execution::ToolCallContext; use anyhow::Result; use async_trait::async_trait; -use pctx_code_mode::{ - config::ToolDisclosure, - descriptions::{tools as tool_descriptions, workflow::get_workflow_description}, - model::{CallbackConfig, ExecuteBashInput, ExecuteTypescriptInput, GetFunctionDetailsInput}, - registry::{CallbackFn, PctxRegistry}, - CodeMode, -}; use rmcp::model::{ CallToolRequestParams, CallToolResult, ContentBlock, Implementation, InitializeResult, JsonObject, ListToolsResult, Role, ServerCapabilities, Tool as McpTool, ToolAnnotations, @@ -21,268 +15,142 @@ use rmcp::model::{ use schemars::{schema_for, JsonSchema}; use serde::{Deserialize, Serialize}; use serde_json::{json, Value}; -use std::collections::hash_map::DefaultHasher; -use std::future::Future; -use std::hash::{Hash, Hasher}; -use std::pin::Pin; use std::sync::Arc; use std::time::Duration; -use tokio::sync::RwLock; use tokio_util::sync::CancellationToken; pub static EXTENSION_NAME: &str = "code_execution"; +const INSTRUCTIONS: &str = "Discover exact Goose tool names with list_functions and inspect unfamiliar parameters with get_function_details. Write JavaScript defining async function run() and execute it with execute_javascript. Call tools using await tools.call(\"extension__tool_name\", { ... }); no imports or generated namespaces are needed. Await every tool call and batch independent operations with Promise.all. Return or log only information needed for the next step. JavaScript contexts are isolated, with no filesystem, shell, network, packages, or environment access; use discovered tools for authorized external operations."; + pub struct CodeExecutionClient { info: InitializeResult, context: PlatformExtensionContext, - disclosure: ToolDisclosure, - state: RwLock>, } #[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)] struct ToolGraphNode { - /// Tool name in format "server/tool" (e.g., "developer/shell") + /// Exact Goose tool name, such as shell or extension__tool_name. tool: String, - /// Brief description of what this call does (e.g., "list files in /src") + /// Brief description of what this call does. description: String, - /// Indices of nodes this depends on (empty if no dependencies) + /// Indices of nodes this depends on (empty if independent). #[serde(default)] depends_on: Vec, } #[derive(Debug, Serialize, Deserialize, JsonSchema)] pub struct ExecuteWithToolGraph { - #[serde(flatten)] - input: ExecuteTypescriptInput, - /// DAG of tool calls showing execution flow. Each node represents a tool call. - /// Use depends_on to show data flow (e.g., node 1 uses output from node 0). + /// JavaScript defining async function run(). Await tools.call(name, arguments). + code: String, + /// Optional DAG of tool calls for desktop display. #[serde(default)] tool_graph: Vec, } -impl CodeExecutionClient { - pub fn new(context: PlatformExtensionContext, disclosure: ToolDisclosure) -> Result { - let info = InitializeResult::new(ServerCapabilities::builder().enable_tools().build()) - .with_server_info( - Implementation::new(EXTENSION_NAME.to_string(), "1.0.0".to_string()) - .with_title("Code Mode"), - ) - .with_instructions(get_workflow_description(disclosure)); +#[derive(Deserialize, JsonSchema)] +struct GetFunctionDetailsInput { + /// Exact tool names returned by list_functions. + functions: Vec, +} - Ok(Self { - info, - context, - disclosure, - state: RwLock::new(None), +fn callable_catalog(tools: Vec) -> Vec { + tools + .into_iter() + .filter(|tool| { + get_tool_resource_uri(tool).is_none() + && is_tool_visible_to_model(tool) + && !is_tool_owned_by_extension(tool, EXTENSION_NAME) + && !is_summon_delegate(tool) }) + .collect() +} + +fn function_details(catalog: &[McpTool], names: &[String]) -> Result { + names + .iter() + .map(|name| { + let tool = catalog + .iter() + .find(|tool| tool.name == *name) + .ok_or_else(|| unknown_tool(name))?; + Ok(json!({ + "name": tool.name, + "description": tool.description, + "input_schema": tool.input_schema, + "output_schema": tool.output_schema, + })) + }) + .collect::, String>>() + .map(Value::Array) +} + +fn unknown_tool(name: &str) -> String { + format!("Unknown tool {name:?}; use list_functions and get_function_details to discover callable tools in the current snapshot") +} + +impl CodeExecutionClient { + pub fn new(context: PlatformExtensionContext) -> Result { + let info = InitializeResult::new(ServerCapabilities::builder().enable_tools().build()) + .with_server_info(Implementation::new(EXTENSION_NAME, "1.0.0").with_title("Code Mode")) + .with_instructions(INSTRUCTIONS); + Ok(Self { info, context }) } - fn callback_configs(tools: Vec) -> Vec { - let mut cfgs = vec![]; - for tool in tools { - if get_tool_resource_uri(&tool).is_some() - || !is_tool_visible_to_model(&tool) - || is_summon_delegate(&tool) - { - continue; - } - - let (name, namespace) = if let Some((prefix, tool_name)) = tool.name.split_once("__") { - (tool_name.to_string(), Some(prefix.to_string())) - } else if let Some(owner) = get_tool_owner(&tool) { - (tool.name.to_string(), Some(owner)) - } else { - (tool.name.to_string(), None) - }; - - cfgs.push(CallbackConfig { - name, - namespace, - description: tool.description.as_ref().map(|d| d.to_string()), - input_schema: Some(json!(tool.input_schema)), - output_schema: None, - }) - } - cfgs - } - - /// Get the cached CodeMode, rebuilding if callback configs have changed - async fn get_code_mode(&self, lease: &ExtensionLease) -> Result { - let cfgs = Self::callback_configs(lease.tools_excluding(EXTENSION_NAME).await); - self.get_code_mode_for_configs(cfgs).await - } - - async fn get_code_mode_for_configs( - &self, - cfgs: Vec, - ) -> Result { - let current_hash = CodeModeState::hash(&cfgs); - - // Use cache if no state change - { - let guard = self.state.read().await; - if let Some(state) = guard.as_ref() { - if state.hash == current_hash { - return Ok(state.code_mode.clone()); - } - } - } - - // Rebuild CodeMode & cache - let mut guard = self.state.write().await; - // Double-check after acquiring write lock - if let Some(state) = guard.as_ref() { - if state.hash == current_hash { - return Ok(state.code_mode.clone()); - } - } - - let state = CodeModeState::new(cfgs)?; - let code_mode = state.code_mode.clone(); - *guard = Some(state); - - Ok(code_mode) - } - - /// Build a PctxRegistry with all tool callbacks registered - fn build_callback_registry( + async fn handle_execute_javascript( &self, ctx: &ToolCallContext, - code_mode: &CodeMode, + arguments: Option, cancellation_token: CancellationToken, - rt: tokio::runtime::Handle, - ) -> Result { + ) -> Result, String> { + let input: ExecuteWithToolGraph = parse_arguments(arguments)?; + let catalog = + callable_catalog(dispatching_lease(ctx).tools_excluding(EXTENSION_NAME).await); let manager = self .context .extension_manager .as_ref() .and_then(|w| w.upgrade()) .ok_or("Extension manager not available")?; - - let registry = PctxRegistry::default(); - for cfg in code_mode.callbacks() { - let full_name = format!( - "{}{}", - cfg.namespace - .clone() - .map(|n| format!("{n}__")) - .unwrap_or_default(), - cfg.name - ); - let callback = create_tool_callback( - ctx.clone(), - full_name, - manager.clone(), - cancellation_token.clone(), - rt.clone(), - ); - registry - .add_callback(&cfg.id(), callback) - .map_err(|e| format!("Failed to register callback: {e}"))?; - } - - Ok(registry) - } - - /// Handle the list_functions tool call - async fn handle_list_functions( - &self, - lease: &ExtensionLease, - ) -> Result, String> { - let code_mode = self.get_code_mode(lease).await?; - let output = code_mode.list_functions(); - - Ok(vec![ContentBlock::text(output.code)]) - } - - /// Handle the get_function_details tool call - async fn handle_get_function_details( - &self, - lease: &ExtensionLease, - arguments: Option, - ) -> Result, String> { - let input: GetFunctionDetailsInput = arguments - .map(|args| serde_json::from_value(Value::Object(args))) - .transpose() - .map_err(|e| format!("Failed to parse arguments: {e}"))? - .ok_or("Missing arguments for get_function_details")?; - - let code_mode = self.get_code_mode(lease).await?; - let output = code_mode.get_function_details(input); - - Ok(vec![ContentBlock::text(output.code)]) - } - - /// Handle the execute bash tool call - async fn handle_execute_bash( - &self, - lease: &ExtensionLease, - arguments: Option, - cancellation_token: CancellationToken, - ) -> Result, String> { - let input: ExecuteBashInput = arguments - .map(|args| serde_json::from_value(Value::Object(args))) - .transpose() - .map_err(|e| format!("Failed to parse arguments: {e}"))? - .ok_or("Missing arguments for execute_bash")?; - let command = input.command; - let code_mode = self.get_code_mode(lease).await?; - - let dispatch_token = cancellation_token.child_token(); - let output = run_in_deno_runtime( + let dispatch = cancellation_token.child_token(); + let callback: ToolCallback = Arc::new({ + let ctx = ctx.clone(); + let dispatch = dispatch.clone(); + let rt = tokio::runtime::Handle::current(); + move |name, args| { + if !catalog.iter().any(|tool| tool.name == name) { + return Box::pin(async move { Err(unknown_tool(&name)) }); + } + if dispatch.is_cancelled() { + return Box::pin(async { Err("Execution cancelled".into()) }); + } + dispatch_tool( + ctx.clone(), + name, + manager.clone(), + dispatch.clone(), + rt.clone(), + args, + ) + } + }); + let output = javascript::execute( + input.code, + callback, execution_timeout(), cancellation_token, - dispatch_token, - move || async move { - code_mode - .execute_bash(&command) - .await - .map_err(|e| format!("Bash execution error: {e}")) - }, + dispatch, ) .await?; - - Ok(vec![ContentBlock::text(format!( - "Exit Code: {}\n\n# STDOUT\n{}\n\n# STDERR\n{}", - output.exit_code, output.stdout, output.stderr - ))]) + Ok(vec![ContentBlock::text(output)]) } +} - /// Handle the execute typescript tool call - async fn handle_execute_typescript( - &self, - ctx: &ToolCallContext, - arguments: Option, - cancellation_token: CancellationToken, - ) -> Result, String> { - let args: ExecuteWithToolGraph = arguments - .map(|args| serde_json::from_value(Value::Object(args))) - .transpose() - .map_err(|e| format!("Failed to parse arguments: {e}"))? - .ok_or("Missing arguments for execute_typescript")?; - - let code_mode = self.get_code_mode(dispatching_lease(ctx)).await?; - let dispatch_token = cancellation_token.child_token(); - let rt = tokio::runtime::Handle::current(); - let registry = self.build_callback_registry(ctx, &code_mode, dispatch_token.clone(), rt)?; - let code = args.input.code.clone(); - let disclosure = self.disclosure; - - let output = run_in_deno_runtime( - execution_timeout(), - cancellation_token, - dispatch_token, - move || async move { - code_mode - .execute_typescript(&code, disclosure, Some(registry)) - .await - .map_err(|e| format!("Typescript execution error: {e}")) - }, - ) - .await?; - - Ok(vec![ContentBlock::text(output.markdown())]) - } +fn parse_arguments( + arguments: Option, +) -> Result { + serde_json::from_value(Value::Object(arguments.ok_or("Missing arguments")?)) + .map_err(|e| format!("Invalid arguments: {e}; inspect the tool's input schema")) } fn is_summon_delegate(tool: &McpTool) -> bool { @@ -296,100 +164,33 @@ fn execution_timeout() -> Duration { Duration::from_secs(secs) } -/// Deno runtime is not Send, so execution runs in a blocking task with its -/// own tokio runtime. pctx serializes all executions behind a process-wide -/// V8 mutex, so a hung script would wedge code execution for every session: -/// bound the wait with the extension timeout and honor cancellation. -/// -/// `dispatch_token` is the child token shared with the callback dispatches that -/// a script makes back into Goose tools. When execution is abandoned (timeout -/// or cancellation), the token is cancelled so an in-flight nested tool call -/// (e.g. a long `developer.shell` command) is told to stop instead of running -/// on in the background. -/// Grace period for nested tool calls to observe a dispatched cancellation -/// signal and clean up (e.g. kill child processes) before the task future is -/// abandoned. -const DISPATCH_DRAIN_TIMEOUT: Duration = Duration::from_millis(500); - -async fn run_in_deno_runtime( - timeout: Duration, - cancellation_token: CancellationToken, - dispatch_token: CancellationToken, - task: F, -) -> Result -where - F: FnOnce() -> Fut + Send + 'static, - Fut: Future>, - T: Send + 'static, -{ - tokio::task::spawn_blocking(move || { - let rt = tokio::runtime::Builder::new_current_thread() - .enable_all() - .build() - .map_err(|e| format!("Failed to create runtime: {e}"))?; - - rt.block_on(async move { - let task_future = task(); - tokio::pin!(task_future); - - tokio::select! { - _ = cancellation_token.cancelled() => { - dispatch_token.cancel(); - let _ = tokio::time::timeout( - DISPATCH_DRAIN_TIMEOUT, - &mut task_future, - ).await; - Err("Execution cancelled".to_string()) - } - _ = tokio::time::sleep(timeout) => { - dispatch_token.cancel(); - let _ = tokio::time::timeout( - DISPATCH_DRAIN_TIMEOUT, - &mut task_future, - ).await; - Err(format!( - "Execution timed out after {} seconds", - timeout.as_secs() - )) - } - result = &mut task_future => result, - } - }) - }) - .await - .map_err(|e| format!("Execution task failed: {e}"))? -} - fn dispatching_lease(ctx: &ToolCallContext) -> &ExtensionLease { ctx.extension_lease() .expect("platform tool calls are dispatched through a lease") } -fn create_tool_callback( +fn dispatch_tool( ctx: ToolCallContext, full_name: String, manager: Arc, cancellation_token: CancellationToken, rt: tokio::runtime::Handle, -) -> CallbackFn { - Arc::new(move |args: Option| { - let ctx = ctx.clone(); - let full_name = full_name.clone(); - let manager = manager.clone(); - let cancellation_token = cancellation_token.clone(); - let rt = rt.clone(); - Box::pin(async move { - let tool_call = { - let mut params = CallToolRequestParams::new(full_name); - if let Some(args) = args.and_then(|v| v.as_object().cloned()) { - params = params.with_arguments(args); - } - params - }; - - let handle = rt.spawn(async move { + args: Value, +) -> ToolFuture { + Box::pin(async move { + let arguments = args + .as_object() + .cloned() + .ok_or("Tool arguments must be a JSON object")?; + let tool_call = CallToolRequestParams::new(full_name).with_arguments(arguments); + let handle = rt.spawn(async move { + let execution = async { let dispatch_result = dispatching_lease(&ctx) - .call(tool_call, CallRequest::from(&ctx), cancellation_token) + .call( + tool_call, + CallRequest::from(&ctx), + cancellation_token.clone(), + ) .await; match dispatch_result { Ok(dispatch_result) => match manager @@ -397,24 +198,37 @@ fn create_tool_callback( .result .await { + Ok(result) if result.is_error == Some(true) => { + Err(callback_result_to_value(&result).to_string()) + } Ok(result) => Ok(callback_result_to_value(&result)), Err(e) => Err(format!("Tool error: {}", e.message)), }, Err(e) => Err(format!("Dispatch error: {e}")), } - }); - - struct AbortOnDrop(tokio::task::AbortHandle); - impl Drop for AbortOnDrop { - fn drop(&mut self) { - self.0.abort(); + }; + tokio::pin!(execution); + tokio::select! { + biased; + result = &mut execution => result, + _ = cancellation_token.cancelled() => { + // Cleanup runs on Goose's runtime even if the Boa worker cannot yield. + tokio::time::timeout(javascript::DRAIN_TIMEOUT, &mut execution) + .await + .unwrap_or_else(|_| Err("Execution cancelled".into())) } } - let _guard = AbortOnDrop(handle.abort_handle()); - handle - .await - .unwrap_or_else(|e| Err(format!("Callback task failed: {e}"))) - }) as Pin> + Send>> + }); + struct AbortOnDrop(tokio::task::AbortHandle); + impl Drop for AbortOnDrop { + fn drop(&mut self) { + self.0.abort(); + } + } + let _guard = AbortOnDrop(handle.abort_handle()); + handle + .await + .unwrap_or_else(|e| Err(format!("Callback task failed: {e}"))) }) } @@ -443,116 +257,27 @@ fn callback_result_to_value(result: &CallToolResult) -> Value { #[async_trait] impl McpClientTrait for CodeExecutionClient { - #[allow(clippy::too_many_lines)] async fn list_tools( &self, - _session_id: &str, - _next_cursor: Option, - _cancellation_token: CancellationToken, + _: &str, + _: Option, + _: CancellationToken, ) -> Result { fn schema() -> JsonObject { serde_json::to_value(schema_for!(T)) - .map(|v| v.as_object().unwrap().clone()) .expect("valid schema") + .as_object() + .expect("object schema") + .clone() } - - // Empty schema for list_functions (no parameters) - let empty_schema: JsonObject = serde_json::from_value(json!({ - "type": "object", - "properties": {}, - "required": [] - })) - .expect("valid schema"); - - let tools = match self.disclosure { - ToolDisclosure::Catalog => { - vec![ - McpTool::new( - "list_functions".to_string(), - tool_descriptions::LIST_FUNCTIONS.to_string(), - empty_schema, - ) - .annotate(ToolAnnotations::from_raw( - Some("List functions".to_string()), - Some(true), - Some(false), - Some(true), - Some(false), - )), - McpTool::new( - "get_function_details".to_string(), - tool_descriptions::GET_FUNCTION_DETAILS.to_string(), - schema::(), - ) - .annotate(ToolAnnotations::from_raw( - Some("Get function details".to_string()), - Some(true), - Some(false), - Some(true), - Some(false), - )), - McpTool::new( - "execute_typescript".to_string(), - tool_descriptions::EXECUTE_TYPESCRIPT_CATALOG.to_string(), - schema::(), - ) - .annotate(ToolAnnotations::from_raw( - Some("Execute TypeScript".to_string()), - Some(false), - Some(true), - Some(false), - Some(true), - )), - ] - } - ToolDisclosure::Filesystem => { - vec![ - McpTool::new( - "execute_bash".to_string(), - tool_descriptions::EXECUTE_BASH.to_string(), - schema::(), - ) - .annotate(ToolAnnotations::from_raw( - Some("Execute Bash".to_string()), - Some(false), - Some(true), - Some(false), - Some(true), - )), - McpTool::new( - "execute_typescript".to_string(), - tool_descriptions::EXECUTE_TYPESCRIPT_FILESYSTEM.to_string(), - schema::(), - ) - .annotate(ToolAnnotations::from_raw( - Some("Execute TypeScript".to_string()), - Some(false), - Some(true), - Some(false), - Some(true), - )), - ] - } - ToolDisclosure::Sidecar => { - vec![McpTool::new( - "execute_typescript".to_string(), - tool_descriptions::EXECUTE_TYPESCRIPT_SIDECAR.to_string(), - schema::(), - ) - .annotate(ToolAnnotations::from_raw( - Some("Execute TypeScript".to_string()), - Some(false), - Some(true), - Some(false), - Some(true), - ))] - } - }; - + let read_only = + ToolAnnotations::from_raw(None, Some(true), Some(false), Some(true), Some(false)); Ok(ListToolsResult { - meta: None, - next_cursor: None, - tools, + tools: vec![ + McpTool::new("list_functions", "List callable tools with their exact Goose names and short descriptions. Inspect unfamiliar parameters with get_function_details before calling tools.", json!({"type":"object","properties":{}}).as_object().unwrap().clone()).annotate(read_only.clone()), + McpTool::new("get_function_details", "Get descriptions and original JSON input/output schemas for exact tool names returned by list_functions. Schemas are data, including recursive references.", schema::()).annotate(read_only), + McpTool::new("execute_javascript", format!("Execute JavaScript and return captured console output, the JSON result, or an error. {INSTRUCTIONS}"), schema::()).annotate(ToolAnnotations::from_raw(Some("Execute JavaScript".into()), Some(false), Some(true), Some(false), Some(true))), + ], ..Default::default() }) } @@ -564,121 +289,43 @@ impl McpClientTrait for CodeExecutionClient { arguments: Option, cancellation_token: CancellationToken, ) -> Result { - let lease = dispatching_lease(ctx); let result = match name { - "list_functions" => self.handle_list_functions(lease).await, - "get_function_details" => self.handle_get_function_details(lease, arguments).await, - "execute_bash" => { - self.handle_execute_bash(lease, arguments, cancellation_token) - .await + "list_functions" => { + let catalog = + callable_catalog(dispatching_lease(ctx).tools_excluding(EXTENSION_NAME).await); + let functions: Vec<_> = catalog.iter().map(|tool| json!({ + "name": tool.name, + "description": tool.description.as_deref().unwrap_or("").lines().next().unwrap_or("").chars().take(240).collect::() + })).collect(); + Ok(vec![ContentBlock::text(json!(functions).to_string())]) } - "execute_typescript" => { - self.handle_execute_typescript(ctx, arguments, cancellation_token) + "get_function_details" => { + let catalog = + callable_catalog(dispatching_lease(ctx).tools_excluding(EXTENSION_NAME).await); + parse_arguments::(arguments) + .and_then(|input| function_details(&catalog, &input.functions)) + .map(|details| vec![ContentBlock::text(details.to_string())]) + } + "execute_javascript" => { + self.handle_execute_javascript(ctx, arguments, cancellation_token) .await } _ => Err(format!("Unknown tool: {name}")), }; - - match result { - Ok(content) => Ok(CallToolResult::success(content)), - Err(error) => Ok(CallToolResult::error(vec![ContentBlock::text(format!( - "Error: {error}" - ))])), - } + Ok(match result { + Ok(content) => CallToolResult::success(content), + Err(error) => CallToolResult::error(vec![ContentBlock::text(javascript::limit_error( + format!("Error: {error}"), + ))]), + }) } fn get_info(&self) -> Option<&InitializeResult> { Some(&self.info) } - async fn get_moim(&self, _session_id: &str, tools: &[McpTool]) -> Option { - let code_mode = self - .get_code_mode_for_configs(Self::callback_configs(tools.to_vec())) - .await - .ok()?; - - let disclosure_style_moim = match self.disclosure { - ToolDisclosure::Catalog => { - let function_count = code_mode.list_functions().functions.len(); - catalog_disclosure_moim(function_count) - } - ToolDisclosure::Filesystem => { - let available_filepaths: Vec<_> = code_mode - .virtual_fs().keys().map(String::from).collect(); - format!("Use execute_bash to search and read the tool signatures and input/output types before calling execute_typescript. The available files are: {}", available_filepaths.join(", ")) - }, - ToolDisclosure::Sidecar => "Prioritize calling tools with the execute_typescript tool, especially when multiple tools can be called in one script.".into(), - }; - - Some(format!( - indoc::indoc! {r#" - ALWAYS batch multiple tool operations into ONE execute_typescript call. - - WRONG: Separate execute_typescript calls for read file, then write file - - RIGHT: One execute_typescript with an async run() function that reads AND writes AND logs/returns as little information as needed for the next step. - - {} - "#}, - disclosure_style_moim - )) - } -} - -fn catalog_disclosure_moim(function_count: usize) -> String { - if function_count == 0 { - "No execute_typescript callback functions are currently registered.".to_string() - } else { - format!( - "{function_count} callback functions are available only from inside execute_typescript. Do not call callback function names directly as tools. Use list_functions and get_function_details to inspect signatures before writing one execute_typescript call." - ) - } -} - -pub fn get_tool_disclosure() -> ToolDisclosure { - let config = crate::config::Config::global(); - let tool_disclosure_str: String = config - .get_param("CODE_MODE_TOOL_DISCLOSURE") - .unwrap_or_else(|_| "catalog".to_string()); - serde_json::from_value(serde_json::json!(tool_disclosure_str)).unwrap_or_default() -} - -struct CodeModeState { - code_mode: CodeMode, - hash: u64, -} - -impl CodeModeState { - fn new(cfgs: Vec) -> Result { - let hash = Self::hash(&cfgs); - - let (code_mode, report) = CodeMode::default().with_callbacks(&cfgs); - if !report.failed.is_empty() { - let failures = report - .failed - .iter() - .map(|failure| format!("{}: {}", failure.id, failure.reason)) - .collect::>() - .join(", "); - return Err(format!( - "failed adding callback configs to CodeMode: {failures}" - )); - } - - Ok(Self { code_mode, hash }) - } - - /// Compute order-independent hash of callback configs - fn hash(cfgs: &[CallbackConfig]) -> u64 { - let mut cfg_strings: Vec<_> = cfgs - .iter() - .filter_map(|c| serde_json::to_string(c).ok()) - .collect(); - cfg_strings.sort(); - - let mut hasher = DefaultHasher::new(); - for s in cfg_strings { - s.hash(&mut hasher); - } - hasher.finish() + async fn get_moim(&self, _: &str, tools: &[McpTool]) -> Option { + Some(format!("{} callable tools are available through execute_javascript in this snapshot. {INSTRUCTIONS}", callable_catalog(tools.to_vec()).len())) } } @@ -687,7 +334,6 @@ mod tests { use super::*; use crate::agents::extension::ExtensionConfig; use crate::agents::extension_manager::ExtensionManager; - use pctx_code_mode::model::FunctionId; use rmcp::model::{Annotations, EmbeddedResource, MetaObject, ResourceContents, TextContent}; #[test] @@ -736,6 +382,107 @@ mod tests { struct VisibilityClient; + struct PendingClient { + started: Arc, + released: Arc, + } + + #[async_trait] + impl McpClientTrait for PendingClient { + async fn list_tools( + &self, + session_id: &str, + next_cursor: Option, + cancellation_token: CancellationToken, + ) -> Result { + VisibilityClient + .list_tools(session_id, next_cursor, cancellation_token) + .await + } + + async fn call_tool( + &self, + _: &ToolCallContext, + _: &str, + _: Option, + _: CancellationToken, + ) -> Result { + struct Released(Arc); + impl Drop for Released { + fn drop(&mut self) { + self.0.notify_one(); + } + } + let _guard = Released(self.released.clone()); + self.started.notify_one(); + std::future::pending().await + } + + fn get_info(&self) -> Option<&InitializeResult> { + None + } + } + + #[tokio::test] + async fn cancelled_dispatch_releases_tools_without_polling_the_worker_future() { + use futures::FutureExt; + + let temp = tempfile::tempdir().unwrap(); + let manager = Arc::new(ExtensionManager::with_data_dir(temp.path().join("manager"))); + let session = manager + .get_context() + .session_manager + .create_session( + temp.path().to_path_buf(), + "blocked-worker".into(), + crate::session::session_manager::SessionType::Hidden, + crate::config::GooseMode::default(), + ) + .await + .unwrap(); + let started = Arc::new(tokio::sync::Notify::new()); + let released = Arc::new(tokio::sync::Notify::new()); + manager + .add_client( + &session.id, + ExtensionConfig::Builtin { + name: "pending".into(), + description: String::new(), + display_name: None, + timeout: None, + bundled: None, + available_tools: vec![], + }, + Arc::new(PendingClient { + started: started.clone(), + released: released.clone(), + }), + None, + ) + .await; + let lease = Arc::new(manager.scope_lease(&session.id).await); + let ctx = ToolCallContext::new(session.id, None, None).with_extension_lease(lease); + let dispatch = CancellationToken::new(); + let mut callback = dispatch_tool( + ctx, + "pending__ordinary".into(), + manager, + dispatch.clone(), + tokio::runtime::Handle::current(), + json!({}), + ); + assert!(callback.as_mut().now_or_never().is_none()); + tokio::time::timeout(Duration::from_secs(2), started.notified()) + .await + .unwrap(); + dispatch.cancel(); + tokio::time::timeout(Duration::from_secs(2), released.notified()) + .await + .unwrap(); + // The Boa worker could be blocked here: callback has not been polled again. + drop(callback); + } + #[async_trait] impl McpClientTrait for VisibilityClient { async fn list_tools( @@ -783,10 +530,28 @@ mod tests { &self, _ctx: &ToolCallContext, _name: &str, - _arguments: Option, + arguments: Option, _cancellation_token: CancellationToken, ) -> Result { - Err(Error::TransportClosed) + if arguments + .as_ref() + .is_some_and(|args| args.get("fail") == Some(&json!(true))) + { + return Ok(CallToolResult::error(vec![ContentBlock::text( + "permission denied", + )])); + } + let mut result = CallToolResult::success(vec![ + ContentBlock::text( + json!({"summary": "visible", "arguments": arguments}).to_string(), + ), + ContentBlock::Text( + TextContent::new("hidden audience secret") + .with_annotations(Annotations::default().with_audience(vec![Role::User])), + ), + ]); + result.structured_content = Some(json!({"hidden": "structured secret"})); + Ok(result) } fn get_info(&self) -> Option<&InitializeResult> { @@ -795,7 +560,7 @@ mod tests { } #[tokio::test] - async fn callback_configs_exclude_tools_hidden_from_model() { + async fn catalog_excludes_tools_hidden_from_model() { let temp = tempfile::tempdir().unwrap(); let manager = Arc::new(ExtensionManager::with_data_dir(temp.path().join("manager"))); manager @@ -815,21 +580,20 @@ mod tests { .await; let lease = manager.scope_lease("test-session").await; - let configs = - CodeExecutionClient::callback_configs(lease.tools_excluding(EXTENSION_NAME).await); + let configs = callable_catalog(lease.tools_excluding(EXTENSION_NAME).await); let names = configs .iter() - .map(|config| config.name.as_str()) + .map(|config| config.name.as_ref()) .collect::>(); - assert!(!names.contains(&"app_only")); - assert!(names.contains(&"model_visible")); - assert!(names.contains(&"ordinary")); - assert!(configs.iter().all(|config| config.output_schema.is_none())); + assert!(!names.contains(&"visibility__app_only")); + assert!(names.contains(&"visibility__model_visible")); + assert!(names.contains(&"visibility__ordinary")); + assert!(configs.iter().any(|config| config.output_schema.is_some())); } #[tokio::test] - async fn callback_configs_leave_delegate_to_direct_tool_calls() { + async fn catalog_leaves_delegate_to_direct_tool_calls() { let temp = tempfile::tempdir().unwrap(); let manager = Arc::new(ExtensionManager::with_data_dir(temp.path().join("manager"))); let session = manager @@ -858,11 +622,10 @@ mod tests { .unwrap(); let lease = manager.current_lease(&session.id).await.unwrap(); - let configs = - CodeExecutionClient::callback_configs(lease.tools_excluding(EXTENSION_NAME).await); + let configs = callable_catalog(lease.tools_excluding(EXTENSION_NAME).await); let names = configs .iter() - .map(|config| config.name.as_str()) + .map(|config| config.name.as_ref()) .collect::>(); assert!(names.contains(&"load")); @@ -902,31 +665,40 @@ mod tests { .disable(&session.id, "extensionmanager") .await .unwrap(); - let callback = create_tool_callback( - ToolCallContext::new( - session.id.clone(), - Some(session.working_dir.clone()), - Some("manage".to_string()), + let tool_name = lease + .tools() + .await + .into_iter() + .find(|tool| tool.name.ends_with("manage_extensions")) + .unwrap() + .name + .to_string(); + let ctx = ToolCallContext::new( + session.id.clone(), + Some(session.working_dir.clone()), + Some("manage".into()), + ) + .with_extension_lease(lease); + let mut context = manager.get_context().clone(); + context.extension_manager = Some(Arc::downgrade(&manager)); + let client = CodeExecutionClient::new(context).unwrap(); + let code = format!("async function run() {{ return await tools.call({}, {{action: 'enable', extension_name: 'todo'}}); }}", json!(tool_name)); + let result = client + .call_tool( + &ctx, + "execute_javascript", + Some(json!({"code": code}).as_object().unwrap().clone()), + CancellationToken::new(), ) - .with_extension_lease(lease), - "functions.extensionmanager__manage_extensions".to_string(), - Arc::clone(&manager), - CancellationToken::new(), - tokio::runtime::Handle::current(), - ); - - callback(Some(json!({ - "action": "enable", - "extension_name": "analyze", - }))) - .await - .unwrap(); + .await + .unwrap(); + assert_ne!(result.is_error, Some(true), "{result:?}"); assert!(manager .list_extensions(&session.id) .await .unwrap() - .contains(&"analyze".to_string())); + .contains(&"todo".to_string())); let stored_session = manager .get_context() .session_manager @@ -940,328 +712,167 @@ mod tests { assert!(stored_extensions .extensions .iter() - .any(|config| config.key() == "analyze")); + .any(|config| config.key() == "todo")); } - #[tokio::test] - async fn run_in_deno_runtime_times_out_on_hung_execution() { - let result: Result<(), String> = run_in_deno_runtime( - Duration::from_millis(50), - CancellationToken::new(), - CancellationToken::new(), - std::future::pending, - ) - .await; - - assert!(result.unwrap_err().contains("timed out")); - } - - #[tokio::test] - async fn run_in_deno_runtime_honors_cancellation() { - let token = CancellationToken::new(); - token.cancel(); - - let result: Result<(), String> = run_in_deno_runtime( - Duration::from_secs(60), - token, - CancellationToken::new(), - std::future::pending, - ) - .await; - - assert_eq!(result.unwrap_err(), "Execution cancelled"); - } - - #[tokio::test] - async fn run_in_deno_runtime_cancels_dispatch_token_when_abandoned() { - // On timeout, an in-flight nested tool call (via the dispatch token) - // must be told to stop rather than left running in the background. - let dispatch_token = CancellationToken::new(); - let result: Result<(), String> = run_in_deno_runtime( - Duration::from_millis(50), - CancellationToken::new(), - dispatch_token.clone(), - std::future::pending, - ) - .await; - assert!(result.unwrap_err().contains("timed out")); - assert!(dispatch_token.is_cancelled()); - - // On cancellation, the child dispatch token is likewise cancelled. - let outer = CancellationToken::new(); - outer.cancel(); - let dispatch_token = outer.child_token(); - let result: Result<(), String> = run_in_deno_runtime( - Duration::from_secs(60), - outer, - dispatch_token.clone(), - std::future::pending, - ) - .await; - assert_eq!(result.unwrap_err(), "Execution cancelled"); - assert!(dispatch_token.is_cancelled()); - } - - #[tokio::test] - async fn run_in_deno_runtime_drains_task_on_timeout() { - use std::sync::atomic::{AtomicBool, Ordering}; - - let dispatch_token = CancellationToken::new(); - let observed = Arc::new(AtomicBool::new(false)); - let task_token = dispatch_token.clone(); - let task_observed = observed.clone(); - - let result: Result<(), String> = run_in_deno_runtime( - Duration::from_millis(50), - CancellationToken::new(), - dispatch_token.clone(), - move || async move { - task_token.cancelled().await; - task_observed.store(true, Ordering::SeqCst); - Ok(()) - }, - ) - .await; - - assert!( - result.unwrap_err().contains("timed out"), - "should report timeout" - ); - assert!( - observed.load(Ordering::SeqCst), - "task should observe dispatch token cancellation before being dropped" - ); - } - - /// Exercises the real Deno/V8 stack: a script whose event loop never - /// resolves must time out instead of wedging forever, and a normal - /// script must run right after, proving pctx's process-wide V8 mutex - /// was released (i.e. one hung execution no longer blocks other sessions). - #[tokio::test(flavor = "multi_thread", worker_threads = 2)] - async fn real_v8_hung_script_times_out_and_frees_the_runtime() { - let hung = CodeMode::default(); - let hung_result = run_in_deno_runtime( - Duration::from_secs(2), - CancellationToken::new(), - CancellationToken::new(), - move || async move { - hung.execute_typescript( - "async function run() { await new Promise(() => {}); }", - ToolDisclosure::default(), - None, - ) - .await - .map_err(|e| format!("execution error: {e}")) - }, - ) - .await; - assert!( - hung_result.unwrap_err().contains("timed out"), - "hung script should time out" - ); - - let normal = CodeMode::default(); - let normal_result = run_in_deno_runtime( - Duration::from_secs(60), - CancellationToken::new(), - CancellationToken::new(), - move || async move { - normal - .execute_typescript( - "async function run() { return 1 + 1; }", - ToolDisclosure::default(), - None, - ) - .await - .map_err(|e| format!("execution error: {e}")) - }, - ) - .await - .expect("normal script should run after a prior timeout"); - assert!( - normal_result.success, - "normal script should succeed once the V8 mutex is released: {}", - normal_result.stderr - ); - } - - #[tokio::test(flavor = "multi_thread", worker_threads = 2)] - async fn callback_completing_from_main_runtime_does_not_hang() { - let rt = tokio::runtime::Handle::current(); - let (tx, rx) = tokio::sync::oneshot::channel::(); - let rx = Arc::new(std::sync::Mutex::new(Some(rx))); - - let callback: CallbackFn = Arc::new({ - let rt = rt.clone(); - move |_args: Option| { - let rt = rt.clone(); - let rx = rx.clone(); - Box::pin(async move { - let receiver = rx.lock().unwrap().take().expect("receiver taken once"); - let handle = rt.spawn(async move { - receiver.await.map_err(|_| "channel closed".to_string()) - }); - handle.await.unwrap_or_else(|e| Err(e.to_string())) - }) as Pin> + Send>> - } - }); - - rt.spawn(async move { - tokio::time::sleep(Duration::from_millis(20)).await; - let _ = tx.send(serde_json::json!({"done": true})); - }); - - let cfg = CallbackConfig { - name: "ping".to_string(), - namespace: Some("Test".to_string()), - description: Some("ping".to_string()), - input_schema: None, - output_schema: None, - }; - let code_mode = CodeMode::default() - .with_callback(&cfg) - .expect("add callback"); - let registry = PctxRegistry::default(); - registry.add_callback(&cfg.id(), callback).unwrap(); - - let result = run_in_deno_runtime( - Duration::from_secs(5), - CancellationToken::new(), - CancellationToken::new(), - move || async move { - code_mode - .execute_typescript( - "async function run() { return await Test.ping(); }", - ToolDisclosure::default(), - Some(registry), - ) - .await - .map_err(|e| format!("execution error: {e}")) - }, - ) - .await - .expect("script should not time out"); - - assert!(result.success, "callback should succeed: {}", result.stderr); - } - - #[test] - fn catalog_moim_mentions_inspection_tools_without_function_names() { - let moim = catalog_disclosure_moim(3); - - assert!(moim.contains("3 callback functions")); - assert!(moim.contains("list_functions")); - assert!(moim.contains("get_function_details")); - assert!(!moim.contains("extract_relations")); - assert!(!moim.contains("ask_heimdall")); - } - - #[tokio::test] - async fn moim_uses_the_supplied_tool_snapshot() { + async fn discovery_and_execution_share_the_lease_snapshot() { let temp = tempfile::tempdir().unwrap(); let manager = Arc::new(ExtensionManager::with_data_dir(temp.path().join("manager"))); + let session = manager + .get_context() + .session_manager + .create_session( + temp.path().to_path_buf(), + "snapshot-session".into(), + crate::session::session_manager::SessionType::Hidden, + crate::config::GooseMode::default(), + ) + .await + .unwrap(); + manager + .add_client( + &session.id, + ExtensionConfig::Builtin { + name: "visibility".into(), + description: String::new(), + display_name: None, + timeout: None, + bundled: None, + available_tools: vec![], + }, + Arc::new(VisibilityClient), + None, + ) + .await; + let lease = Arc::new(manager.scope_lease(&session.id).await); + let ctx = ToolCallContext::new(session.id.clone(), None, None) + .with_extension_lease(lease.clone()); let mut context = manager.get_context().clone(); context.extension_manager = Some(Arc::downgrade(&manager)); - let client = CodeExecutionClient::new(context, ToolDisclosure::Catalog).unwrap(); - let tool = McpTool::new( - "leased__tool".to_string(), - "Leased tool".to_string(), - JsonObject::new(), - ); - - let moim = client.get_moim("session", &[tool]).await.unwrap(); - assert!(moim.contains("1 callback functions")); - - let moim = client.get_moim("session", &[]).await.unwrap(); - assert!(moim.contains("No execute_typescript callback functions")); - } - - #[tokio::test] - async fn execute_bash_annotations_require_approval() { - let temp = tempfile::tempdir().unwrap(); - let client = CodeExecutionClient::new( - PlatformExtensionContext { - extension_manager: None, - providers: Default::default(), - session_manager: Arc::new(crate::session::SessionManager::new( - temp.path().join("sessions"), - )), - scheduler: None, - }, - ToolDisclosure::Filesystem, - ) - .unwrap(); - - let tools = client - .list_tools("test", None, CancellationToken::new()) + let client = CodeExecutionClient::new(context).unwrap(); + let listed = client + .call_tool(&ctx, "list_functions", None, CancellationToken::new()) .await - .unwrap() - .tools; - let execute_bash = tools - .iter() - .find(|tool| tool.name == "execute_bash") .unwrap(); - let annotations = execute_bash.annotations.as_ref().unwrap(); - - assert_eq!(annotations.title.as_deref(), Some("Execute Bash")); - assert_eq!(annotations.read_only_hint, Some(false)); - assert_eq!(annotations.destructive_hint, Some(true)); - assert_eq!(annotations.idempotent_hint, Some(false)); - assert_eq!(annotations.open_world_hint, Some(true)); - } - - fn self_referential_any_schema() -> Value { - json!({ - "$ref": "#/$defs/Any", - "$defs": { - "Any": { - "anyOf": [ - {"type": "string"}, - {"type": "number"}, - { - "type": "object", - "additionalProperties": {"$ref": "#/$defs/Any"} - } - ] - } - } - }) + let listed = callback_result_to_value(&listed); + assert!(listed + .as_array() + .unwrap() + .iter() + .any(|tool| tool["name"] == "visibility__ordinary")); + assert!(!listed.to_string().contains("app_only")); + manager.disable(&session.id, "visibility").await.unwrap(); + let details = client + .call_tool( + &ctx, + "get_function_details", + Some( + json!({"functions": ["visibility__model_visible"]}) + .as_object() + .unwrap() + .clone(), + ), + CancellationToken::new(), + ) + .await + .unwrap(); + let details = callback_result_to_value(&details); + assert!(details[0]["output_schema"].is_object()); + let result = client.call_tool(&ctx, "execute_javascript", Some(json!({"code": r#"async function run() { + const first = await tools.call("visibility__ordinary", {query: "first"}); + const batch = await Promise.all([tools.call("visibility__ordinary", {query: first.summary}), tools.call("visibility__model_visible", {})]); + try { await tools.call("visibility__ordinary", {fail: true}); } catch (e) { console.log(e.message); } + try { await tools.call("visibility__app_only", {}); } catch (e) { console.log(e.message); } + return batch; + }"#}).as_object().unwrap().clone()), CancellationToken::new()).await.unwrap(); + assert_ne!(result.is_error, Some(true), "{result:?}"); + let output = callback_result_to_value(&result).to_string(); + assert!(output.contains("visible")); + assert!(output.contains("permission denied")); + assert!(output.contains("list_functions")); + assert!(!output.contains("secret")); + assert!(callable_catalog( + manager + .current_lease(&session.id) + .await + .unwrap() + .tools() + .await + ) + .iter() + .all(|tool| !tool.name.starts_with("visibility__"))); } #[test] - fn code_mode_preserves_types_for_self_referential_schema() { - let cfg = CallbackConfig { - name: "retain".to_string(), - namespace: Some("hindsight".to_string()), - description: Some("Store a memory".to_string()), - input_schema: Some(json!({ - "type": "object", - "properties": {"content": {"type": "string"}}, - "required": ["content"] - })), - output_schema: Some(self_referential_any_schema()), - }; + fn recursive_schemas_and_names_are_preserved_as_data() { + let recursive = json!({"$ref": "#/$defs/Any", "$defs": {"Any": {"anyOf": [{"type": "string"}, {"type": "object", "additionalProperties": {"$ref": "#/$defs/Any"}}]}}}); + let mut tool = McpTool::new( + "Unusual-name__snake_case", + "A description", + JsonObject::new(), + ); + tool.output_schema = Some(Arc::new(recursive.as_object().unwrap().clone())); + let details = function_details(&[tool], &["Unusual-name__snake_case".into()]).unwrap(); + assert_eq!(details[0]["output_schema"], recursive); + assert_eq!(details[0]["name"], "Unusual-name__snake_case"); + } - let code_mode = CodeMode::default() - .with_callback(&cfg) - .expect("recursive schemas should be supported"); - let details = code_mode.get_function_details(GetFunctionDetailsInput { - functions: vec![FunctionId { - mod_name: "Hindsight".to_string(), - fn_name: "retain".to_string(), - }], - }); - let function = details - .functions - .first() - .expect("hindsight.retain should have generated details"); - - assert_ne!(function.output_type, "any"); - assert!( - function.types.contains("export type RetainOutputAny =") - && function.types.contains("[key: string]: RetainOutputAny"), - "expected RetainOutputAny to reference itself, got: {}", - function.types + #[tokio::test] + async fn moim_uses_supplied_snapshot_and_advertises_only_three_tools() { + let temp = tempfile::tempdir().unwrap(); + let manager = ExtensionManager::with_data_dir(temp.path().join("manager")); + let client = CodeExecutionClient::new(manager.get_context().clone()).unwrap(); + let tool = McpTool::new("leased__tool", "Leased tool", JsonObject::new()); + assert!(client + .get_moim("session", &[tool]) + .await + .unwrap() + .contains("1 callable tools")); + assert!(client + .get_moim("session", &[]) + .await + .unwrap() + .contains("0 callable tools")); + let names = client + .list_tools("session", None, CancellationToken::new()) + .await + .unwrap() + .tools + .into_iter() + .map(|tool| tool.name.to_string()) + .collect::>(); + assert_eq!( + names, + [ + "list_functions", + "get_function_details", + "execute_javascript" + ] ); } + #[test] + fn catalog_excludes_resources_code_mode_and_delegation() { + let make = |name, meta: Value| { + McpTool::new(name, "description", JsonObject::new()) + .with_meta(MetaObject(meta.as_object().unwrap().clone())) + }; + let tools = vec![ + make("shell", json!({"goose_extension": "developer"})), + make( + "execute_javascript", + json!({"goose_extension": "code_execution"}), + ), + make("delegate", json!({"goose_extension": "summon"})), + make( + "resource__view", + json!({"ui": {"resourceUri": "ui://example"}}), + ), + make("hidden__tool", json!({"ui": {"visibility": ["app"]}})), + ]; + let names = callable_catalog(tools) + .into_iter() + .map(|tool| tool.name.to_string()) + .collect::>(); + assert_eq!(names, ["shell"]); + } } diff --git a/crates/goose/src/agents/platform_extensions/javascript.rs b/crates/goose/src/agents/platform_extensions/javascript.rs new file mode 100644 index 000000000..3e1d4e326 --- /dev/null +++ b/crates/goose/src/agents/platform_extensions/javascript.rs @@ -0,0 +1,1030 @@ +use boa_engine::{ + builtins::promise::PromiseState, + job::{Job, JobExecutor}, + js_string, + module::IdleModuleLoader, + object::{builtins::JsPromise, ObjectInitializer}, + property::{Attribute, PropertyKey}, + Context, JsArgs, JsError, JsNativeError, JsResult, JsValue, NativeFunction, Script, Source, +}; +use futures::{stream::FuturesUnordered, FutureExt, StreamExt}; +use serde_json::Value; +use std::{ + cell::RefCell, + collections::{HashSet, VecDeque}, + future::Future, + io::{self, Write}, + pin::Pin, + rc::Rc, + sync::Arc, + time::Duration, +}; +use tokio_util::sync::CancellationToken; + +pub(super) type ToolFuture = Pin> + Send>>; +pub(super) type ToolCallback = Arc ToolFuture + Send + Sync>; + +const INSTRUCTION_LIMIT: usize = 2_000_000; +static WORKER_SLOTS: tokio::sync::Semaphore = tokio::sync::Semaphore::const_new(4); +pub(super) const DRAIN_TIMEOUT: Duration = Duration::from_millis(500); +const SHUTDOWN_TIMEOUT: Duration = Duration::from_secs(1); +const OUTPUT_LIMIT: usize = 1_000_000; +const OUTPUT_LIMIT_ERROR: &str = + "Output limit exceeded; return or log only information needed for the next step"; +const ERROR_TRUNCATED: &str = "\n[Error truncated: output limit exceeded]"; + +pub(super) fn limit_error(mut error: String) -> String { + if error.len() > OUTPUT_LIMIT { + let mut end = OUTPUT_LIMIT - ERROR_TRUNCATED.len(); + while !error.is_char_boundary(end) { + end -= 1; + } + error.truncate(end); + error.push_str(ERROR_TRUNCATED); + } + error +} + +#[derive(Default)] +struct Output(Vec); + +impl Write for Output { + fn write(&mut self, bytes: &[u8]) -> io::Result { + if bytes.len() > OUTPUT_LIMIT - self.0.len() { + return Err(io::Error::other(OUTPUT_LIMIT_ERROR)); + } + self.0.extend_from_slice(bytes); + Ok(bytes.len()) + } + + fn flush(&mut self) -> io::Result<()> { + Ok(()) + } +} + +struct HostState { + callback: ToolCallback, + output: Output, +} + +#[derive(Default)] +struct Jobs(RefCell>); + +impl JobExecutor for Jobs { + fn enqueue_job(self: Rc, job: Job, _: &mut Context) { + self.0.borrow_mut().push_back(job); + } + + fn run_jobs(self: Rc, _: &mut Context) -> JsResult<()> { + Err(JsNativeError::error() + .with_message("Jobs must run on the JavaScript worker") + .into()) + } +} + +fn json_value(value: &JsValue, context: &mut Context) -> JsResult> { + fn convert( + value: &JsValue, + context: &mut Context, + seen: &mut HashSet, + remaining: &mut usize, + depth: usize, + ) -> JsResult> { + if depth > 64 || *remaining == 0 { + return Err(JsNativeError::range() + .with_message("JSON value exceeds the depth or item limit") + .into()); + } + *remaining -= 1; + if value.is_callable() { + return Err(JsNativeError::typ() + .with_message("Functions are not JSON values") + .into()); + } + let Some(object) = value.as_object() else { + return value.to_json(context); + }; + if !seen.insert(object.clone()) { + return Err(JsNativeError::typ() + .with_message("cyclic object value") + .into()); + } + let result = if object.is_array() { + let length = object.get(js_string!("length"), context)?.to_u32(context)? as usize; + if length > *remaining { + return Err(JsNativeError::range() + .with_message("JSON array exceeds the item limit") + .into()); + } + let mut array = Vec::with_capacity(length); + for index in 0..length { + let item = object.get(index as u32, context)?; + array.push( + convert(&item, context, seen, remaining, depth + 1)?.unwrap_or(Value::Null), + ); + } + Value::Array(array) + } else { + let mut map = serde_json::Map::new(); + for key in object.own_property_keys(context)? { + let name = match &key { + PropertyKey::String(name) => name.to_std_string_escaped(), + PropertyKey::Index(index) => index.get().to_string(), + PropertyKey::Symbol(_) => { + return Err(JsNativeError::typ() + .with_message("Symbols are not JSON values") + .into()) + } + }; + let item = object.get(key, context)?; + if let Some(item) = convert(&item, context, seen, remaining, depth + 1)? { + map.insert(name, item); + } + } + Value::Object(map) + }; + seen.remove(&object); + Ok(Some(result)) + } + convert(value, context, &mut HashSet::new(), &mut 10_000, 0) +} + +async fn call_tool( + _: &JsValue, + args: &[JsValue], + context: &RefCell<&mut Context>, +) -> JsResult { + let (name, arguments, callback) = { + let context = &mut context.borrow_mut(); + let name = args.get_or_undefined(0).as_string().ok_or_else(|| { + JsNativeError::typ().with_message("tools.call requires an exact tool name string; use list_functions to discover names") + })?.to_std_string_escaped(); + let arguments = json_value(args.get_or_undefined(1), context) + .map_err(|e| { + JsNativeError::typ().with_message(format!("{name}: arguments must be JSON: {e}")) + })? + .ok_or_else(|| { + JsNativeError::typ().with_message(format!( + "{name}: pass a JSON argument object, using {{}} for no arguments" + )) + })?; + if !arguments.is_object() { + return Err(JsNativeError::typ() + .with_message(format!("{name}: arguments must be a JSON object")) + .into()); + } + let callback = context + .get_data::() + .expect("worker host state") + .callback + .clone(); + (name, arguments, callback) + }; + let result = callback(name.clone(), arguments) + .await + .map_err(|e| JsNativeError::error().with_message(format!("Tool {name} failed: {e}")))?; + JsValue::from_json(&result, &mut context.borrow_mut()) +} + +fn console(_: &JsValue, args: &[JsValue], context: &mut Context) -> JsResult { + let line = args + .iter() + .map(|value| { + if let Some(string) = value.as_string() { + Ok(string.to_std_string_escaped()) + } else { + json_value(value, context) + .map(|v| v.map_or_else(|| "undefined".into(), |v| v.to_string())) + } + }) + .collect::>>()? + .join(" "); + let mut state = context + .remove_data::() + .expect("worker host state"); + let result = state + .output + .write_all(line.as_bytes()) + .and_then(|()| state.output.write_all(b"\n")); + context.insert_data(*state); + result.map_err(|_| JsNativeError::range().with_message(OUTPUT_LIMIT_ERROR))?; + Ok(JsValue::undefined()) +} + +async fn evaluate( + code: &str, + callback: ToolCallback, + dispatch: CancellationToken, +) -> Result { + let jobs = Rc::new(Jobs::default()); + // Boa exposes its context-wide instruction counter through the fuzz feature. + // Unlike per-loop limits, it also bounds synchronous promise continuations. + let mut context = Context::builder() + .job_executor(jobs.clone()) + .module_loader(Rc::new(IdleModuleLoader)) + .can_block(false) + .instructions_remaining(INSTRUCTION_LIMIT) + .build() + .map_err(|e| e.to_string())?; + context + .runtime_limits_mut() + .set_loop_iteration_limit(100_000); + context.runtime_limits_mut().set_recursion_limit(128); + context.insert_data(HostState { + callback, + output: Output::default(), + }); + let tools = ObjectInitializer::new(&mut context) + .function( + NativeFunction::from_async_fn(call_tool), + js_string!("call"), + 2, + ) + .build(); + context + .register_global_property(js_string!("tools"), tools, Attribute::READONLY) + .map_err(|e| e.to_string())?; + let mut console_object = ObjectInitializer::new(&mut context); + for method in ["log", "info", "warn", "error", "debug"] { + console_object.function(NativeFunction::from_fn_ptr(console), js_string!(method), 0); + } + let console_object = console_object.build(); + context + .register_global_property(js_string!("console"), console_object, Attribute::READONLY) + .map_err(|e| e.to_string())?; + + let source = format!("{code}\n;run();"); + let script = Script::parse( + Source::from_bytes(&source).with_path(std::path::Path::new("code_mode.js")), + None, + &mut context, + ) + .map_err(|e| format!("JavaScript syntax error: {e}. Define async function run() {{ ... }}."))?; + let value = script + .evaluate_async_with_budget(&mut context, 1024) + .await + .map_err(|e| e.to_string())?; + let promise = value + .as_object() + .and_then(|obj| JsPromise::from_object(obj).ok()) + .ok_or("Define async function run() { ... } and await tool calls")?; + let context = RefCell::new(&mut context); + let mut pending = FuturesUnordered::new(); + let result = async { + loop { + let job = jobs.0.borrow_mut().pop_front(); + if let Some(job) = job { + let result = match job { + Job::AsyncJob(job) => { + pending.push(job.call(&context)); + Ok(JsValue::undefined()) + } + Job::PromiseJob(job) => job.call(&mut context.borrow_mut()), + Job::GenericJob(job) => job.call(&mut context.borrow_mut()), + Job::FinalizationRegistryCleanupJob(_) => Ok(JsValue::undefined()), + _ => return Err("Timers are not available in code mode".into()), + }; + result.map_err(|e| e.to_string())?; + } + if let Some(Some(result)) = pending.next().now_or_never() { + result.map_err(|e| e.to_string())?; + } + { + match promise.state() { + PromiseState::Pending => { + if jobs.0.borrow().is_empty() && pending.is_empty() { + std::future::pending::<()>().await; + } + } + PromiseState::Rejected(value) => { + return Err(JsError::from_opaque(value).to_string()) + } + PromiseState::Fulfilled(value) => { + let context = &mut context.borrow_mut(); + let result = json_value(&value, context).map_err(|e| { + format!( + "Unsupported JavaScript return value; return JSON or undefined: {e}" + ) + })?; + let mut state = context + .remove_data::() + .expect("worker host state"); + let mut output = std::mem::take(&mut state.output); + context.insert_data(*state); + if let Some(result) = result { + output + .write_all(b"Result: ") + .map_err(|_| OUTPUT_LIMIT_ERROR)?; + serde_json::to_writer(&mut output, &result) + .map_err(|_| OUTPUT_LIMIT_ERROR)?; + } + return String::from_utf8(output.0).map_err(|e| e.to_string()); + } + } + } + if jobs.0.borrow().is_empty() && !pending.is_empty() { + if let Some(result) = pending.next().await { + result.map_err(|e| e.to_string())?; + } + } else { + tokio::task::yield_now().await; + } + } + } + .await; + dispatch.cancel(); + let _ = tokio::time::timeout(DRAIN_TIMEOUT, async { + while pending.next().await.is_some() {} + }) + .await; + result +} + +pub(super) async fn execute( + code: String, + callback: ToolCallback, + timeout: Duration, + cancellation: CancellationToken, + dispatch: CancellationToken, +) -> Result { + execute_with_slots( + code, + callback, + timeout, + cancellation, + dispatch, + &WORKER_SLOTS, + ) + .await +} + +async fn execute_with_slots( + code: String, + callback: ToolCallback, + timeout: Duration, + cancellation: CancellationToken, + dispatch: CancellationToken, + slots: &'static tokio::sync::Semaphore, +) -> Result { + let cancel_on_drop = dispatch.clone().drop_guard(); + let deadline = tokio::time::Instant::now() + timeout; + let permit = tokio::select! { + biased; + _ = cancellation.cancelled() => return Err("Execution cancelled".into()), + _ = tokio::time::sleep_until(deadline) => { + return Err(format!("Execution timed out after {} seconds while waiting for a JavaScript worker", timeout.as_secs_f64())); + } + permit = slots.acquire() => permit.map_err(|e| format!("JavaScript workers unavailable: {e}"))?, + }; + let worker_cancellation = cancellation.child_token(); + let stop_worker = worker_cancellation.clone(); + let _stop_on_drop = stop_worker.clone().drop_guard(); + let worker_dispatch = dispatch.clone(); + let (sender, receiver) = tokio::sync::oneshot::channel(); + std::thread::Builder::new().name("goose-javascript".into()).spawn(move || { + // The worker retains its slot even if the caller stops waiting for it. + let _permit = permit; + let result = tokio::runtime::Builder::new_current_thread().enable_all().build() + .map_err(|e| e.to_string()).and_then(|runtime| runtime.block_on(async { + let execution = evaluate(&code, callback, worker_dispatch.clone()); + tokio::pin!(execution); + let result = tokio::select! { + biased; + _ = worker_cancellation.cancelled() => Err("Execution cancelled".into()), + _ = tokio::time::sleep_until(deadline) => Err(format!("Execution timed out after {} seconds", timeout.as_secs_f64())), + result = &mut execution => { + worker_dispatch.cancel(); + return result; + }, + }; + worker_dispatch.cancel(); + // Let dispatched tools observe cancellation and perform cleanup before + // dropping their futures (which aborts any remaining dispatch tasks). + let _ = tokio::time::timeout(DRAIN_TIMEOUT, &mut execution).await; + result + })); + let _ = sender.send(result); + }).map_err(|e| format!("Could not start JavaScript worker: {e}"))?; + tokio::pin!(receiver); + let result = tokio::select! { + biased; + _ = cancellation.cancelled() => { + dispatch.cancel(); + stop_worker.cancel(); + // Synchronous Boa work may not yield; do not wait indefinitely for it. + let _ = tokio::time::timeout(SHUTDOWN_TIMEOUT, receiver).await; + Err("Execution cancelled".into()) + } + _ = tokio::time::sleep_until(deadline) => { + dispatch.cancel(); + stop_worker.cancel(); + let _ = tokio::time::timeout(SHUTDOWN_TIMEOUT, receiver).await; + Err(format!("Execution timed out after {} seconds", timeout.as_secs_f64())) + } + result = &mut receiver => result.map_err(|e| format!("JavaScript worker failed: {e}"))?, + }; + drop(cancel_on_drop); + result.map_err(limit_error) +} +#[cfg(test)] +mod tests { + use super::*; + use serde_json::json; + use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; + + async fn execute( + code: String, + callback: ToolCallback, + timeout: Duration, + cancellation: CancellationToken, + dispatch: CancellationToken, + ) -> Result { + // Keep timeout-focused tests independent of pool saturation, tested separately below. + static SLOTS: tokio::sync::Semaphore = tokio::sync::Semaphore::const_new(32); + execute_with_slots(code, callback, timeout, cancellation, dispatch, &SLOTS).await + } + + #[tokio::test] + async fn worker_capacity_bounds_concurrency_and_waiting_is_cancellable() { + static SLOTS: tokio::sync::Semaphore = tokio::sync::Semaphore::const_new(2); + let active = Arc::new(AtomicUsize::new(0)); + let peak = Arc::new(AtomicUsize::new(0)); + let started = Arc::new(tokio::sync::Notify::new()); + let release = CancellationToken::new(); + let callback: ToolCallback = Arc::new({ + let active = active.clone(); + let peak = peak.clone(); + let started = started.clone(); + let release = release.clone(); + move |_, _| { + let active = active.clone(); + let peak = peak.clone(); + let started = started.clone(); + let release = release.clone(); + Box::pin(async move { + struct Active(Arc); + impl Drop for Active { + fn drop(&mut self) { + self.0.fetch_sub(1, Ordering::SeqCst); + } + } + let count = active.fetch_add(1, Ordering::SeqCst) + 1; + let _active = Active(active); + peak.fetch_max(count, Ordering::SeqCst); + started.notify_one(); + release.cancelled().await; + Ok(json!(true)) + }) + } + }); + let spawn = || { + tokio::spawn(execute_with_slots( + "async function run() { return await tools.call('wait', {}); }".into(), + callback.clone(), + Duration::from_secs(10), + CancellationToken::new(), + CancellationToken::new(), + &SLOTS, + )) + }; + let first = spawn(); + let second = spawn(); + tokio::time::timeout(Duration::from_secs(2), async { + while active.load(Ordering::SeqCst) < 2 { + started.notified().await; + } + }) + .await + .unwrap(); + assert_eq!(SLOTS.available_permits(), 0); + let dispatch = CancellationToken::new(); + let error = execute_with_slots( + "async function run() { return 42; }".into(), + echo(), + Duration::from_millis(50), + CancellationToken::new(), + dispatch.clone(), + &SLOTS, + ) + .await + .unwrap_err(); + assert!(error.contains("waiting for a JavaScript worker"), "{error}"); + assert!(dispatch.is_cancelled()); + let token = CancellationToken::new(); + let dispatch = CancellationToken::new(); + let queued = execute_with_slots( + "async function run() { return 42; }".into(), + echo(), + Duration::from_secs(10), + token.clone(), + dispatch.clone(), + &SLOTS, + ); + tokio::pin!(queued); + assert!(queued.as_mut().now_or_never().is_none()); + token.cancel(); + assert_eq!(queued.await.unwrap_err(), "Execution cancelled"); + assert!(dispatch.is_cancelled()); + release.cancel(); + assert_eq!(first.await.unwrap().unwrap(), "Result: true"); + assert_eq!(second.await.unwrap().unwrap(), "Result: true"); + assert_eq!(peak.load(Ordering::SeqCst), 2); + assert_eq!( + execute_with_slots( + "async function run() { return 42; }".into(), + echo(), + Duration::from_secs(2), + CancellationToken::new(), + CancellationToken::new(), + &SLOTS, + ) + .await + .unwrap(), + "Result: 42" + ); + } + + #[tokio::test] + async fn abandoned_worker_retains_capacity_until_it_finishes() { + static SLOTS: tokio::sync::Semaphore = tokio::sync::Semaphore::const_new(1); + let started = Arc::new(tokio::sync::Notify::new()); + let (release, blocked) = std::sync::mpsc::channel(); + let blocked = std::sync::Mutex::new(blocked); + let callback: ToolCallback = Arc::new({ + let started = started.clone(); + move |_, _| { + started.notify_one(); + let _ = blocked.lock().unwrap().recv_timeout(Duration::from_secs(5)); + Box::pin(async { Ok(Value::Null) }) + } + }); + let token = CancellationToken::new(); + let execution = tokio::spawn(execute_with_slots( + "async function run() { await tools.call('block', {}); }".into(), + callback, + Duration::from_secs(10), + token.clone(), + CancellationToken::new(), + &SLOTS, + )); + tokio::time::timeout(Duration::from_secs(2), started.notified()) + .await + .unwrap(); + token.cancel(); + let result = tokio::time::timeout(Duration::from_secs(2), execution).await; + let held = SLOTS.available_permits() == 0; + let queued = execute_with_slots( + "async function run() { return 7; }".into(), + echo(), + Duration::from_millis(50), + CancellationToken::new(), + CancellationToken::new(), + &SLOTS, + ) + .await; + let _ = release.send(()); + assert_eq!(result.unwrap().unwrap().unwrap_err(), "Execution cancelled"); + assert!(held); + assert!(queued + .unwrap_err() + .contains("waiting for a JavaScript worker")); + assert_eq!( + execute_with_slots( + "async function run() { return 9; }".into(), + echo(), + Duration::from_secs(2), + CancellationToken::new(), + CancellationToken::new(), + &SLOTS, + ) + .await + .unwrap(), + "Result: 9" + ); + } + + fn echo() -> ToolCallback { + Arc::new(|name, args| { + Box::pin(async move { + match name.as_str() { + "echo" => Ok(args), + "fail" => Err("permission denied".into()), + _ => Err("Unknown tool; use list_functions and get_function_details".into()), + } + }) + }) + } + + async fn run(code: &str) -> Result { + execute( + code.into(), + echo(), + Duration::from_millis(300), + CancellationToken::new(), + CancellationToken::new(), + ) + .await + } + + #[tokio::test] + async fn sequential_parallel_and_caught_errors() { + let result = run(r#"async function run() { + const a = await tools.call("echo", {value: 1}); + const both = await Promise.all([tools.call("echo", {value: a.value + 1}), tools.call("echo", {value: 3})]); + try { await tools.call("fail", {}); } catch (e) { console.log(e.message); } + console.info("done", both); + return both; + }"#).await.unwrap(); + assert!( + result.contains("Tool fail failed: permission denied"), + "{result}" + ); + assert!( + result.contains(r#"Result: [{"value":2},{"value":3}]"#), + "{result}" + ); + } + + #[tokio::test] + async fn calls_are_actually_parallel() { + let started = Arc::new(AtomicUsize::new(0)); + let callback: ToolCallback = Arc::new(move |_, _| { + let started = started.clone(); + Box::pin(async move { + started.fetch_add(1, Ordering::SeqCst); + while started.load(Ordering::SeqCst) < 2 { + tokio::task::yield_now().await; + } + Ok(json!(true)) + }) + }); + let result = execute("async function run() { return await Promise.all([tools.call('one', {}), tools.call('two', {})]); }".into(), callback, Duration::from_secs(2), CancellationToken::new(), CancellationToken::new()).await.unwrap(); + assert!(result.contains("[true,true]")); + } + + #[tokio::test] + async fn mistakes_are_actionable() { + for (code, expected) in [ + ("async function run() { const = 1; }", "syntax error"), + ( + "async function run() { throw new Error('failure'); }", + "failure", + ), + ("async function run() { return 1n; }", "bigint"), + ( + "async function run() { const x = {}; x.x = x; return x; }", + "cyclic", + ), + ( + "async function run() { await tools.call('echo', 1); }", + "JSON object", + ), + ( + "async function run() { await tools.call('missing', {}); }", + "list_functions", + ), + ] { + let error = run(code).await.unwrap_err(); + assert!(error.contains(expected), "{error}"); + } + } + + #[tokio::test] + async fn runaway_scripts_stop_and_next_context_is_fresh() { + for code in [ + "async function run() { while (true) {} }", + "async function run() { function recurse() { recurse(); } recurse(); }", + "async function run() { await new Promise(() => {}); }", + "async function run() { await Promise.resolve(); while (true) {} }", + "async function run() { await Promise.resolve().then(() => { while (true) {} }); }", + "async function run() { while (true) { await Promise.resolve(); } }", + "async function run() { while (true) { for (let i=0; i<90000; i++) {} } }", + ] { + assert!(run(code).await.is_err(), "{code}"); + assert_eq!( + run("async function run() { return 42; }").await.unwrap(), + "Result: 42" + ); + } + run("async function run() { globalThis.secret = 42; }") + .await + .unwrap(); + assert_eq!( + run("async function run() { return typeof secret; }") + .await + .unwrap(), + "Result: \"undefined\"" + ); + } + + #[tokio::test] + async fn cancellation_releases_callbacks_and_other_sessions_run() { + let token = CancellationToken::new(); + let dispatch = token.child_token(); + let observed = Arc::new(AtomicBool::new(false)); + let callback: ToolCallback = Arc::new({ + let dispatch = dispatch.clone(); + let observed = observed.clone(); + move |_, _| { + let dispatch = dispatch.clone(); + let observed = observed.clone(); + Box::pin(async move { + dispatch.cancelled().await; + observed.store(true, Ordering::SeqCst); + Ok(Value::Null) + }) + } + }); + let execution = execute( + "async function run() { await tools.call('wait', {}); await new Promise(() => {}); }" + .into(), + callback, + Duration::from_secs(2), + token.clone(), + dispatch, + ); + let cancel = async { + tokio::time::sleep(Duration::from_millis(30)).await; + token.cancel(); + }; + let (result, _, normal) = + tokio::join!(execution, cancel, run("async function run() { return 7; }")); + assert_eq!(result.unwrap_err(), "Execution cancelled"); + assert!(observed.load(Ordering::SeqCst)); + assert_eq!(normal.unwrap(), "Result: 7"); + assert_eq!( + run("async function run() { return 8; }").await.unwrap(), + "Result: 8" + ); + } + + #[tokio::test] + async fn host_capabilities_are_absent() { + let output = run("async function run() { return [typeof fetch, typeof process, typeof Deno, typeof require, typeof setTimeout]; }").await.unwrap(); + assert_eq!( + output, + "Result: [\"undefined\",\"undefined\",\"undefined\",\"undefined\",\"undefined\"]" + ); + assert!( + run("async function run() { return await import('file:///etc/passwd'); }") + .await + .is_err() + ); + } + + #[tokio::test] + async fn output_limit_includes_serialized_results_and_console_output() { + for body in [ + "return 'xxxxxxxxxxxxxxxx'.repeat(62500);", + "console.log('xxxxxxxxxxxxxxxx'.repeat(62500));", + "console.log('xxxxxxxxxxxxxxxx'.repeat(37500)); return 'yyyyyyyyyyyyyyyy'.repeat(37500);", + "return ['xxxxxxxxxxxxxxxx'.repeat(37500), 'yyyyyyyyyyyyyyyy'.repeat(37500)];", + "return '\\u0000\\u0000\\u0000\\u0000'.repeat(50000);", + "return '\\u20ac\\u20ac\\u20ac\\u20ac\\u20ac'.repeat(70000);", + ] { + let error = execute( + format!("async function run() {{ {body} }}"), + echo(), + Duration::from_secs(5), + CancellationToken::new(), + CancellationToken::new(), + ) + .await + .unwrap_err(); + assert!(error.contains(OUTPUT_LIMIT_ERROR), "{body}: {error}"); + } + let length = OUTPUT_LIMIT - "ok\nResult: \"\"".len(); + let result = execute( + format!( + "async function run() {{ console.log('ok'); return 'xxxxxxxxxxxxxxxx'.repeat({}) + 'x'.repeat({}); }}", + length / 16, + length % 16, + ), + echo(), + Duration::from_secs(5), + CancellationToken::new(), + CancellationToken::new(), + ) + .await + .unwrap(); + assert_eq!(result.len(), OUTPUT_LIMIT); + assert!(result.starts_with("ok\nResult: \"")); + assert_eq!( + run("async function run() { return 42; }").await.unwrap(), + "Result: 42" + ); + } + + #[tokio::test] + async fn rejected_values_and_callback_errors_are_bounded() { + for body in [ + "throw new Error('xxxxxxxxxxxxxxxx'.repeat(62500));", + "throw 'xxxxxxxxxxxxxxxx'.repeat(62500);", + "await Promise.reject(new Error('\u{20ac}\u{20ac}\u{20ac}\u{20ac}\u{20ac}'.repeat(70000)));", + ] { + let error = execute( + format!("async function run() {{ {body} }}"), + echo(), + Duration::from_secs(5), + CancellationToken::new(), + CancellationToken::new(), + ).await.unwrap_err(); + assert!(error.len() <= OUTPUT_LIMIT); + assert!(error.ends_with(ERROR_TRUNCATED)); + } + let callback: ToolCallback = + Arc::new(|_, _| Box::pin(async { Err("server error ".repeat(100_000)) })); + let error = execute( + "async function run() { await tools.call('example__fail', {}); }".into(), + callback, + Duration::from_secs(5), + CancellationToken::new(), + CancellationToken::new(), + ) + .await + .unwrap_err(); + assert!(error.len() <= OUTPUT_LIMIT); + assert!(error.contains("example__fail")); + assert!(error.ends_with(ERROR_TRUNCATED)); + assert_eq!( + run("async function run() { return 7; }").await.unwrap(), + "Result: 7" + ); + } + + #[tokio::test] + async fn synchronous_worker_work_does_not_block_cancellation_or_timeout() { + for cancel in [true, false] { + let started = Arc::new(tokio::sync::Notify::new()); + let (release, blocked) = std::sync::mpsc::channel(); + let blocked = Arc::new(std::sync::Mutex::new(blocked)); + let callback: ToolCallback = Arc::new({ + let started = started.clone(); + move |_, _| { + started.notify_one(); + // Simulate synchronous native work that cannot poll cancellation. + let _ = blocked.lock().unwrap().recv_timeout(Duration::from_secs(5)); + Box::pin(async { Ok(Value::Null) }) + } + }); + let token = CancellationToken::new(); + let dispatch = CancellationToken::new(); + let execution = execute( + "async function run() { return await tools.call('block', {}); }".into(), + callback, + if cancel { + Duration::from_secs(10) + } else { + Duration::from_millis(100) + }, + token.clone(), + dispatch.clone(), + ); + let control = async { + started.notified().await; + if cancel { + token.cancel(); + } + }; + let (result, _) = tokio::join!( + tokio::time::timeout(Duration::from_secs(2), execution), + control, + ); + let _ = release.send(()); + let error = result + .expect("cancellation must not wait for synchronous work") + .unwrap_err(); + assert!( + error.contains(if cancel { "cancelled" } else { "timed out" }), + "{error}" + ); + assert!(dispatch.is_cancelled()); + assert_eq!( + run("async function run() { return 7; }").await.unwrap(), + "Result: 7" + ); + } + } + #[tokio::test] + async fn cancellation_in_promise_continuations_drains_in_flight_calls() { + for continuation in [ + "await Promise.resolve(); while (true) { for (let i=0; i<90000; i++) {} }", + "await Promise.resolve().then(() => { while (true) { for (let i=0; i<90000; i++) {} } });", + "while (true) { await Promise.resolve(); }", + ] { + let token = CancellationToken::new(); + let dispatch = token.child_token(); + let started = Arc::new(tokio::sync::Notify::new()); + let observed = Arc::new(AtomicBool::new(false)); + let callback: ToolCallback = Arc::new({ + let dispatch = dispatch.clone(); + let started = started.clone(); + let observed = observed.clone(); + move |_, _| { + let dispatch = dispatch.clone(); + let started = started.clone(); + let observed = observed.clone(); + Box::pin(async move { + started.notify_one(); + dispatch.cancelled().await; + observed.store(true, Ordering::SeqCst); + Ok(Value::Null) + }) + } + }); + let code = format!("async function run() {{ const waiting = tools.call('wait', {{}}); {continuation} }}"); + let execution = execute(code, callback, Duration::from_secs(2), token.clone(), dispatch); + let cancel = async { started.notified().await; token.cancel(); }; + let (result, _) = tokio::join!(execution, cancel); + assert_eq!(result.unwrap_err(), "Execution cancelled"); + assert!(observed.load(Ordering::SeqCst)); + assert_eq!(run("async function run() { return 9; }").await.unwrap(), "Result: 9"); + } + } + + #[tokio::test] + async fn timeout_drops_uncooperative_callbacks() { + struct Released(Arc); + impl Drop for Released { + fn drop(&mut self) { + self.0.store(true, Ordering::SeqCst); + } + } + let released = Arc::new(AtomicBool::new(false)); + let callback: ToolCallback = Arc::new({ + let released = released.clone(); + move |_, _| { + let guard = Released(released.clone()); + Box::pin(async move { + let _guard = guard; + std::future::pending().await + }) + } + }); + let result = execute( + "async function run() { await tools.call('wait', {}); }".into(), + callback, + Duration::from_millis(30), + CancellationToken::new(), + CancellationToken::new(), + ) + .await; + assert!(result.unwrap_err().contains("timed out")); + assert!(released.load(Ordering::SeqCst)); + assert_eq!( + run("async function run() { return 10; }").await.unwrap(), + "Result: 10" + ); + } + #[tokio::test] + async fn errors_include_source_locations_and_stacks() { + let syntax = run("async function run() {\n const = 1;\n }") + .await + .unwrap_err(); + assert!( + syntax.contains("line 2") && syntax.contains("col"), + "{syntax}" + ); + let runtime = run( + "async function run() { function broken() { throw new Error('boom'); } broken(); }", + ) + .await + .unwrap_err(); + assert!( + runtime.contains("broken") && runtime.contains("code_mode.js"), + "{runtime}" + ); + assert!(run("async function run() { return () => 1; }") + .await + .unwrap_err() + .contains("Functions are not JSON")); + } + #[tokio::test] + async fn failed_execution_cancels_and_drains_sibling_callbacks() { + let dispatch = CancellationToken::new(); + let observed = Arc::new(AtomicBool::new(false)); + let callback: ToolCallback = Arc::new({ + let dispatch = dispatch.clone(); + let observed = observed.clone(); + move |name, _| { + let dispatch = dispatch.clone(); + let observed = observed.clone(); + Box::pin(async move { + if name == "fail" { + return Err("denied".into()); + } + dispatch.cancelled().await; + observed.store(true, Ordering::SeqCst); + Ok(Value::Null) + }) + } + }); + let result = execute("async function run() { return await Promise.all([tools.call('fail', {}), tools.call('wait', {})]); }".into(), callback, Duration::from_secs(2), CancellationToken::new(), dispatch).await; + assert!(result.unwrap_err().contains("Tool fail failed: denied")); + assert!(observed.load(Ordering::SeqCst)); + assert_eq!( + run("async function run() { return 11; }").await.unwrap(), + "Result: 11" + ); + } +} diff --git a/crates/goose/src/agents/platform_extensions/mod.rs b/crates/goose/src/agents/platform_extensions/mod.rs index d5c88ec79..e8801865b 100644 --- a/crates/goose/src/agents/platform_extensions/mod.rs +++ b/crates/goose/src/agents/platform_extensions/mod.rs @@ -8,6 +8,8 @@ pub mod chatrecall; pub mod code_execution; pub mod developer; pub mod ext_manager; +#[cfg(feature = "code-mode")] +mod javascript; #[cfg(feature = "scheduler")] pub mod scheduler; pub mod summarize; @@ -162,11 +164,7 @@ pub static PLATFORM_EXTENSIONS: Lazy hidden: false, client_factory: |ctx| { Some(Box::new( - code_execution::CodeExecutionClient::new( - ctx, - code_execution::get_tool_disclosure(), - ) - .unwrap(), + code_execution::CodeExecutionClient::new(ctx).unwrap(), )) }, }, diff --git a/crates/goose/src/agents/reply_parts.rs b/crates/goose/src/agents/reply_parts.rs index c79bbe958..b48596a1d 100644 --- a/crates/goose/src/agents/reply_parts.rs +++ b/crates/goose/src/agents/reply_parts.rs @@ -187,48 +187,11 @@ pub(crate) fn prepare_inference_tools( ) -> Vec { #[cfg(feature = "code-mode")] if code_execution_active { - let disclosure_style = - crate::agents::platform_extensions::code_execution::get_tool_disclosure(); - - tools = tools - .into_iter() - .filter_map(|mut tool| match disclosure_style { - pctx_code_mode::config::ToolDisclosure::Catalog - | pctx_code_mode::config::ToolDisclosure::Filesystem => { - // in catalog & filesystem styles, progressive search is handled - // by pctx, so we want to omit all non-first-class extensions - // from the standard tool list - if crate::agents::extension_manager::get_tool_owner(&tool).is_some_and( - |owner| crate::agents::extension_manager::is_first_class_extension(&owner), - ) || crate::agents::extension_manager::get_tool_resource_uri(&tool).is_some() - { - Some(tool) - } else { - None - } - } - pctx_code_mode::config::ToolDisclosure::Sidecar => { - // in sidecar style there is no progressive search, just a way to chain tools - // together with typescript - // add output schema to description since many model providers drop the - // output schema when presenting tools to the model - let output_schema = tool - .output_schema - .as_ref() - .map(|schema| serde_json::json!(schema).to_string()) - .unwrap_or("unknown".to_string()); - let description = - format!("The successful return schema of this tool is:\n{output_schema}"); - tool.description = Some( - tool.description - .map(|current| format!("{current}\n{description}")) - .unwrap_or(description) - .into(), - ); - Some(tool) - } - }) - .collect(); + tools.retain(|tool| { + crate::agents::extension_manager::get_tool_owner(tool).is_some_and(|owner| { + crate::agents::extension_manager::is_first_class_extension(&owner) + }) || crate::agents::extension_manager::get_tool_resource_uri(tool).is_some() + }); } #[cfg(not(feature = "code-mode"))] @@ -1490,6 +1453,27 @@ mod tests { assert!(result.is_ok()); } + #[cfg(feature = "code-mode")] + #[test] + fn code_mode_keeps_first_class_and_resource_tools() { + let mut first_class = + make_tool_with_meta(Some(serde_json::json!({"goose_extension": "developer"}))); + first_class.name = "shell".into(); + let mut resource = make_tool_with_meta(Some( + serde_json::json!({"ui": {"resourceUri": "ui://example"}}), + )); + resource.name = "resource__view".into(); + let ordinary = make_tool_with_meta(None); + let hidden = make_tool_with_meta(Some( + serde_json::json!({"goose_extension": "developer", "ui": {"visibility": ["app"]}}), + )); + let filtered = prepare_inference_tools(vec![ordinary, first_class, resource, hidden], true); + let names = filtered + .iter() + .map(|tool| tool.name.as_ref()) + .collect::>(); + assert_eq!(names, ["resource__view", "shell"]); + } } #[cfg(test)] diff --git a/crates/goose/src/agents/snapshots/goose__agents__prompt_manager__tests__all_platform_extensions.snap b/crates/goose/src/agents/snapshots/goose__agents__prompt_manager__tests__all_platform_extensions.snap index cdd985cf4..dcc5bad12 100644 --- a/crates/goose/src/agents/snapshots/goose__agents__prompt_manager__tests__all_platform_extensions.snap +++ b/crates/goose/src/agents/snapshots/goose__agents__prompt_manager__tests__all_platform_extensions.snap @@ -86,16 +86,7 @@ Two modes: ## code_execution ### Instructions -General: - - BATCH MULTIPLE TOOL CALLS INTO ONE `execute_typescript` CALL. - - These tools exists to reduce round-trips. When a task requires multiple tool calls: - - WRONG: Multiple `execute_typescript` calls, each with one tool - - RIGHT: One `execute_typescript` call with a script that calls all needed tools - - Only `return` and `console.log` data you need, tools could have very large responses. - - IMPORTANT: All tool calls are ASYNC. Use await for each call. -WORKFLOW: - 1. Use the `list_functions` and `get_function_details` tools to discover tools signatures and input/output types. - 2. Write ONE script that calls ALL tools needed for the task and execute that script with `execute_typescript`, no need to import anything, all the namespaces returned by `list_functions` and `get_function_details` will be available globally. +Discover exact Goose tool names with list_functions and inspect unfamiliar parameters with get_function_details. Write JavaScript defining async function run() and execute it with execute_javascript. Call tools using await tools.call("extension__tool_name", { ... }); no imports or generated namespaces are needed. Await every tool call and batch independent operations with Promise.all. Return or log only information needed for the next step. JavaScript contexts are isolated, with no filesystem, shell, network, packages, or environment access; use discovered tools for authorized external operations. ## developer ### Instructions diff --git a/crates/goose/tests/acp_common_tests/mod.rs b/crates/goose/tests/acp_common_tests/mod.rs index ea5cbbc9b..c47a1199e 100644 --- a/crates/goose/tests/acp_common_tests/mod.rs +++ b/crates/goose/tests/acp_common_tests/mod.rs @@ -1265,7 +1265,7 @@ pub async fn run_prompt_basic() { pub async fn run_prompt_codemode() { let expected_session_id = C::expected_session_id(); let prompt = - "Search for getCode and write tools. Use them to save the code to /tmp/result.txt."; + "Search for get_code and write tools. Use them to save the code to /tmp/result.txt."; let mcp = McpFixture::new().await; let openai = OpenAiFixture::new( vec![ @@ -1274,7 +1274,7 @@ pub async fn run_prompt_codemode() { include_str!("../acp_test_data/openai_builtin_search.txt"), ), ( - r#"export async function getCode"#.into(), + "mcp-fixture__get_code".into(), include_str!("../acp_test_data/openai_builtin_execute.txt"), ), ( diff --git a/crates/goose/tests/acp_test_data/openai_builtin_execute.txt b/crates/goose/tests/acp_test_data/openai_builtin_execute.txt index c2a49be2d..4e959cd4e 100644 --- a/crates/goose/tests/acp_test_data/openai_builtin_execute.txt +++ b/crates/goose/tests/acp_test_data/openai_builtin_execute.txt @@ -1,508 +1,508 @@ -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_HCUq7OYIqj233H77wpqAtSGP","type":"function","function":{"name":"execute_typescript","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"XbIx"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_HCUq7OYIqj233H77wpqAtSGP","type":"function","function":{"name":"execute_javascript","arguments":"{\"code\": \"async function run() { const code = await tools.call(\\\"mcp-fixture__get_code\\\", {}); return await tools.call(\\\"write\\\", {path: \\\"/tmp/result.txt\\\", content: code}); }\", \"tool_graph\": [{\"tool\": \"mcp-fixture__get_code\", \"description\": \"Get code\", \"depends_on\": []}, {\"tool\": \"write\", \"description\": \"Write code to /tmp/result.txt\", \"depends_on\": [0]}]}"}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"XbIx"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"0WAOew1EJA"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"0WAOew1EJA"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"PdQalDVBc"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"PdQalDVBc"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"SUSOxe2S"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"SUSOxe2S"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"async"}}]},"finish_reason":null}],"usage":null,"obfuscation":"lGNpX0hf"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"lGNpX0hf"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" function"}}]},"finish_reason":null}],"usage":null,"obfuscation":"1wCB"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"1wCB"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" run"}}]},"finish_reason":null}],"usage":null,"obfuscation":"LNRcwubzP"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"LNRcwubzP"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"()"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Aq7vRtDvlF4"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Aq7vRtDvlF4"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" {\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"lb2NCrdyI"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"lb2NCrdyI"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ErsVOWq6Z3Xu"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ErsVOWq6Z3Xu"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"qNMOJVTHLUp4"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"qNMOJVTHLUp4"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" //"}}]},"finish_reason":null}],"usage":null,"obfuscation":"6n2KlzcsTp"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"6n2KlzcsTp"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Step"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Syxh8KgO"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Syxh8KgO"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"LVrPhgFXXORS"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"LVrPhgFXXORS"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"1"}}]},"finish_reason":null}],"usage":null,"obfuscation":"HJcsbkgldODt"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"HJcsbkgldODt"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"meGjHjoA1xft"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"meGjHjoA1xft"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Get"}}]},"finish_reason":null}],"usage":null,"obfuscation":"6ue6xAtTS"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"6ue6xAtTS"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"tFmcmr9A"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"tFmcmr9A"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" from"}}]},"finish_reason":null}],"usage":null,"obfuscation":"YlOG2Pln"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"YlOG2Pln"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" MCP"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Uxh9l06s6"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Uxh9l06s6"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" fixture"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Pzqu4"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Pzqu4"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"kOYakk7vCs"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"kOYakk7vCs"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"Ew0I4Yv7lsZu"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Ew0I4Yv7lsZu"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" const"}}]},"finish_reason":null}],"usage":null,"obfuscation":"BwnGXcl"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"BwnGXcl"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"DYK3JLN8"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"DYK3JLN8"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"7T6NXmfl7g"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7T6NXmfl7g"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ="}}]},"finish_reason":null}],"usage":null,"obfuscation":"rYrRL7FpIpl"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"rYrRL7FpIpl"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" await"}}]},"finish_reason":null}],"usage":null,"obfuscation":"aKhInCt"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"aKhInCt"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Mc"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TiUrBUJ3S8"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"TiUrBUJ3S8"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"p"}}]},"finish_reason":null}],"usage":null,"obfuscation":"rUBZNYrMu5QX"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"rUBZNYrMu5QX"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Fixture"}}]},"finish_reason":null}],"usage":null,"obfuscation":"JAVgEJ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"JAVgEJ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".get"}}]},"finish_reason":null}],"usage":null,"obfuscation":"9SzQLFQkS"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"9SzQLFQkS"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"35KBxpEwO"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"35KBxpEwO"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"({"}}]},"finish_reason":null}],"usage":null,"obfuscation":"JrhE1JHlm54"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"JrhE1JHlm54"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"});"}}]},"finish_reason":null}],"usage":null,"obfuscation":"wohXvQg7Ob"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"wohXvQg7Ob"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"lVazpoueAIq"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"lVazpoueAIq"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"j5Kk4o8z8KVq"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"j5Kk4o8z8KVq"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"1GWCRFnUwLOm"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"1GWCRFnUwLOm"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" let"}}]},"finish_reason":null}],"usage":null,"obfuscation":"QfhWFYeVO"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"QfhWFYeVO"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"y2sgZpV8"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"y2sgZpV8"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ="}}]},"finish_reason":null}],"usage":null,"obfuscation":"CSJpY7ykRgo"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"CSJpY7ykRgo"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ''"}}]},"finish_reason":null}],"usage":null,"obfuscation":"d8X4iNvkfT"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"d8X4iNvkfT"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":";\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"SHsYhZpXT5"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"SHsYhZpXT5"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"eaM94gaV3SjW"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"eaM94gaV3SjW"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"oBdwnsKEn6Pe"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"oBdwnsKEn6Pe"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" if"}}]},"finish_reason":null}],"usage":null,"obfuscation":"MOdNd1VIdT"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"MOdNd1VIdT"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ("}}]},"finish_reason":null}],"usage":null,"obfuscation":"LaNZf51HyNY"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"LaNZf51HyNY"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zpRHAvyvj"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"zpRHAvyvj"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"RiV1yS7ugy"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"RiV1yS7ugy"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" !="}}]},"finish_reason":null}],"usage":null,"obfuscation":"4UaTQI4oY6"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"4UaTQI4oY6"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" null"}}]},"finish_reason":null}],"usage":null,"obfuscation":"CksUZb6e"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"CksUZb6e"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":")"}}]},"finish_reason":null}],"usage":null,"obfuscation":"du3S3fRcNGFJ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"du3S3fRcNGFJ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" {\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"peNFo8PaO"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"peNFo8PaO"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"y3HGwbdgGGN2"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"y3HGwbdgGGN2"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"2yRkpk4hHq"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"2yRkpk4hHq"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" if"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Fqx4l55lFk"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Fqx4l55lFk"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ("}}]},"finish_reason":null}],"usage":null,"obfuscation":"R3Nn65bbShk"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"R3Nn65bbShk"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"typeof"}}]},"finish_reason":null}],"usage":null,"obfuscation":"KNuxb26"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"KNuxb26"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"y3VY7fiz"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"y3VY7fiz"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"GzFgdFnlEk"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"GzFgdFnlEk"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ==="}}]},"finish_reason":null}],"usage":null,"obfuscation":"QZYQNItUp"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"QZYQNItUp"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" '"}}]},"finish_reason":null}],"usage":null,"obfuscation":"BxFluNL3LiS"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"BxFluNL3LiS"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"string"}}]},"finish_reason":null}],"usage":null,"obfuscation":"EYS4Szt"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"EYS4Szt"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"')"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ld3QawCCj8j"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ld3QawCCj8j"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" {\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"AhXpCgGSW"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"AhXpCgGSW"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"HR4oVYvrKIp0"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"HR4oVYvrKIp0"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"GRH0AMvt"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"GRH0AMvt"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"b22NAPWU"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"b22NAPWU"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ="}}]},"finish_reason":null}],"usage":null,"obfuscation":"jXZz9g9tus1"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"jXZz9g9tus1"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"EzPoaNwG"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"EzPoaNwG"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"dNp3Z4YURy"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"dNp3Z4YURy"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":";\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"SFijuwxEh0"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"SFijuwxEh0"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ta4OC28eSsDQ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ta4OC28eSsDQ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"KmW5WLpYfl"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"KmW5WLpYfl"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" }"}}]},"finish_reason":null}],"usage":null,"obfuscation":"67HBmLCOU18"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"67HBmLCOU18"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" else"}}]},"finish_reason":null}],"usage":null,"obfuscation":"SWcwdCbt"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"SWcwdCbt"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" if"}}]},"finish_reason":null}],"usage":null,"obfuscation":"H6DUToAyQ4"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"H6DUToAyQ4"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ("}}]},"finish_reason":null}],"usage":null,"obfuscation":"quSQs2d3Leu"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"quSQs2d3Leu"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"typeof"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Yth9o7r"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Yth9o7r"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"4VQXKZnb"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"4VQXKZnb"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Z3wtnBjMxE"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Z3wtnBjMxE"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ==="}}]},"finish_reason":null}],"usage":null,"obfuscation":"0TPK99588"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"0TPK99588"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" '"}}]},"finish_reason":null}],"usage":null,"obfuscation":"WY5WPQzxzYm"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"WY5WPQzxzYm"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"object"}}]},"finish_reason":null}],"usage":null,"obfuscation":"7uUOdgI"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7uUOdgI"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"')"}}]},"finish_reason":null}],"usage":null,"obfuscation":"HvcmQAC33mi"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"HvcmQAC33mi"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" {\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"gZ29HXtRa"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"gZ29HXtRa"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2BVcAHxoKTBJ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"2BVcAHxoKTBJ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"8ZgPj7ct"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"8ZgPj7ct"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ibY235FW"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ibY235FW"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ="}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZioVR8c4ry5"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZioVR8c4ry5"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"uw5DCPUr"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"uw5DCPUr"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"easTNJ4HTi"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"easTNJ4HTi"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2f996DsH"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"2f996DsH"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ??"}}]},"finish_reason":null}],"usage":null,"obfuscation":"antE6IcDfK"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"antE6IcDfK"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Tb6mqsJT"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Tb6mqsJT"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"F9SNOWaJ4s"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"F9SNOWaJ4s"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".content"}}]},"finish_reason":null}],"usage":null,"obfuscation":"AcXac"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"AcXac"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ??"}}]},"finish_reason":null}],"usage":null,"obfuscation":"1AJwttqKUC"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"1AJwttqKUC"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"vKazIIc2"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"vKazIIc2"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"digOEQ8L8K"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"digOEQ8L8K"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".output"}}]},"finish_reason":null}],"usage":null,"obfuscation":"buFsGY"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"buFsGY"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ??"}}]},"finish_reason":null}],"usage":null,"obfuscation":"0teoOOb2Ps"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"0teoOOb2Ps"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ''"}}]},"finish_reason":null}],"usage":null,"obfuscation":"d8wkQgBHJX"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"d8wkQgBHJX"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":";\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"7ZG1t8y03p"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7ZG1t8y03p"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"pyBBgSFqywgy"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"pyBBgSFqywgy"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"j9yOeuhITh"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"j9yOeuhITh"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" }\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"KPPU04Hw7"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"KPPU04Hw7"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"5LX55vkRR8kW"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"5LX55vkRR8kW"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"PxYDQQzmC8oa"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"PxYDQQzmC8oa"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" }\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZhtYKzY50"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZhtYKzY50"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"lTheErkcOz2I"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"lTheErkcOz2I"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"1NujUoinnFdC"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"1NujUoinnFdC"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" if"}}]},"finish_reason":null}],"usage":null,"obfuscation":"LnpOMGO1gA"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"LnpOMGO1gA"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" (!"}}]},"finish_reason":null}],"usage":null,"obfuscation":"PG0Ukg0lIG"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"PG0Ukg0lIG"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"seyEOZxMx"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"seyEOZxMx"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":")"}}]},"finish_reason":null}],"usage":null,"obfuscation":"8HgFZ5FIEiyd"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"8HgFZ5FIEiyd"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" {\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"pe3d5DOxz"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"pe3d5DOxz"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"pO4Zjn4nYjUN"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"pO4Zjn4nYjUN"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"PwrHo1elqK"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"PwrHo1elqK"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"j5wyQvGu"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"j5wyQvGu"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ="}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZbcOhXhUldx"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZbcOhXhUldx"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" '//"}}]},"finish_reason":null}],"usage":null,"obfuscation":"quGPXmBjM"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"quGPXmBjM"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" no"}}]},"finish_reason":null}],"usage":null,"obfuscation":"IAwIEo6A6a"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"IAwIEo6A6a"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"h5ERm6Sh"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"h5ERm6Sh"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" returned"}}]},"finish_reason":null}],"usage":null,"obfuscation":"WOaC"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"WOaC"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" by"}}]},"finish_reason":null}],"usage":null,"obfuscation":"5gcyoClkTY"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"5gcyoClkTY"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Mc"}}]},"finish_reason":null}],"usage":null,"obfuscation":"0zteWyELKW"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"0zteWyELKW"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"p"}}]},"finish_reason":null}],"usage":null,"obfuscation":"B5cHXJmChBms"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"B5cHXJmChBms"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Fixture"}}]},"finish_reason":null}],"usage":null,"obfuscation":"0Xe1QR"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"0Xe1QR"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".get"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2vHYUwQDp"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"2vHYUwQDp"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"9JwUpRtnt"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"9JwUpRtnt"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"()"}}]},"finish_reason":null}],"usage":null,"obfuscation":"1zjaqiXZl2f"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"1zjaqiXZl2f"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"';"}}]},"finish_reason":null}],"usage":null,"obfuscation":"bYFdw3hFiAw"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"bYFdw3hFiAw"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"3GhBmzN37pV"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"3GhBmzN37pV"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"e5RqErjJCYzD"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"e5RqErjJCYzD"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"vkgozuoVy8n6"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"vkgozuoVy8n6"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" }\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"4JNc8Okf2"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"4JNc8Okf2"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"eEpcildyEGUi"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"eEpcildyEGUi"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"kZJv2yzDAT"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"kZJv2yzDAT"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"NJaDVEBJleAZ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"NJaDVEBJleAZ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" //"}}]},"finish_reason":null}],"usage":null,"obfuscation":"AkzTH2plV3"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"AkzTH2plV3"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Step"}}]},"finish_reason":null}],"usage":null,"obfuscation":"VGDFoeiS"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"VGDFoeiS"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"NdzacxSwRwkc"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"NdzacxSwRwkc"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null}],"usage":null,"obfuscation":"dO0VtCqWvSue"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"dO0VtCqWvSue"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"3EmacbMeJWDm"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"3EmacbMeJWDm"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Write"}}]},"finish_reason":null}],"usage":null,"obfuscation":"UB5FQGQ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"UB5FQGQ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" the"}}]},"finish_reason":null}],"usage":null,"obfuscation":"4KMEtFkPe"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"4KMEtFkPe"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" retrieved"}}]},"finish_reason":null}],"usage":null,"obfuscation":"7mp"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7mp"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"xFHKGtd8"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"xFHKGtd8"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" to"}}]},"finish_reason":null}],"usage":null,"obfuscation":"XWtWyabOHo"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"XWtWyabOHo"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" /"}}]},"finish_reason":null}],"usage":null,"obfuscation":"GI413xIkvDP"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"GI413xIkvDP"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"8Hwwo1OP5F"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"8Hwwo1OP5F"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/result"}}]},"finish_reason":null}],"usage":null,"obfuscation":"vr2pwB"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"vr2pwB"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"WcJiQyK6D"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"WcJiQyK6D"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cR0x5ORkfO"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"cR0x5ORkfO"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"g4ZejTLDefCP"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"g4ZejTLDefCP"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" const"}}]},"finish_reason":null}],"usage":null,"obfuscation":"LKWKME4"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"LKWKME4"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" write"}}]},"finish_reason":null}],"usage":null,"obfuscation":"i4nxJ43"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"i4nxJ43"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"hVAkN7PbyW"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"hVAkN7PbyW"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" ="}}]},"finish_reason":null}],"usage":null,"obfuscation":"ilkxXcex9UU"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ilkxXcex9UU"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" await"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cYjPDlD"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"cYjPDlD"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Developer"}}]},"finish_reason":null}],"usage":null,"obfuscation":"G6t"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"G6t"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"."}}]},"finish_reason":null}],"usage":null,"obfuscation":"OOxdzNJq"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"OOxdzNJq"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"write"}}]},"finish_reason":null}],"usage":null,"obfuscation":"MiMZRWA"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"MiMZRWA"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"({"}}]},"finish_reason":null}],"usage":null,"obfuscation":"7sQdVn1KZH3"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7sQdVn1KZH3"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"L6lFRm1PNqG"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"L6lFRm1PNqG"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Su0Qw704RLRe"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Su0Qw704RLRe"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"rkfEW2QLpO"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"rkfEW2QLpO"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"jGD2QcOd"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"jGD2QcOd"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ne7pCHdniACu"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ne7pCHdniACu"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" '/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"A7rPtw8xwm"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"A7rPtw8xwm"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"scv4frvmOL"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"scv4frvmOL"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/result"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2eELSy"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"2eELSy"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"1KSuOUume"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"1KSuOUume"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"',"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2bfPK90ZMWR"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"2bfPK90ZMWR"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"GSiHQg8iM2E"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"GSiHQg8iM2E"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"56PdyUx8eBvQ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"56PdyUx8eBvQ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"XurvUHlgwc"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"XurvUHlgwc"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" // command"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZsYLy"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZsYLy"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"PFlue8D49Rzx"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"PFlue8D49Rzx"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" '"}}]},"finish_reason":null}],"usage":null,"obfuscation":"JUShQEjjAxm"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"JUShQEjjAxm"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"write"}}]},"finish_reason":null}],"usage":null,"obfuscation":"MB5hRzt5"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"MB5hRzt5"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"',"}}]},"finish_reason":null}],"usage":null,"obfuscation":"unqKUoz76aS"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"unqKUoz76aS"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"P39riGC0HKA"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"P39riGC0HKA"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"sJxnV6swTye6"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"sJxnV6swTye6"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"xVJI6wFQLA"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"xVJI6wFQLA"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" content"}}]},"finish_reason":null}],"usage":null,"obfuscation":"aYkuCMJQ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"aYkuCMJQ"} data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"DQ5IKXUC"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"YaxTVILdGh6I"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"YaxTVILdGh6I"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"tTzYfOHr"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"tTzYfOHr"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":",\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"EKsCaMI5g9"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"EKsCaMI5g9"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"kKCqlBzwhCq8"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"kKCqlBzwhCq8"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"KLo6QPM5VKk0"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"KLo6QPM5VKk0"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" });"}}]},"finish_reason":null}],"usage":null,"obfuscation":"DNqh4g1Na"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"DNqh4g1Na"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"u1iriNCPeXk"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"u1iriNCPeXk"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"PRv5bSbXOVAK"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"PRv5bSbXOVAK"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zBm488IA2h"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"zBm488IA2h"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"5BmN6XMBvJK8"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"5BmN6XMBvJK8"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" return"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Jzvgzr"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Jzvgzr"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" {"}}]},"finish_reason":null}],"usage":null,"obfuscation":"dqpuXK9vmsI"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"dqpuXK9vmsI"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"0QRLI8kv"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"0QRLI8kv"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]},"finish_reason":null}],"usage":null,"obfuscation":"1GL4TASp6ipg"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"1GL4TASp6ipg"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" write"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Czgd0iL"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Czgd0iL"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Res"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Bv304pNXQg"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Bv304pNXQg"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" }"}}]},"finish_reason":null}],"usage":null,"obfuscation":"fZGuBvkzNzz"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"fZGuBvkzNzz"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":";\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ManURNiZBB"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ManURNiZBB"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"hN2gPjbJkn1b"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"hN2gPjbJkn1b"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}\\"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Hke7vUJzSM"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Hke7vUJzSM"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n"}}]},"finish_reason":null}],"usage":null,"obfuscation":"naUuxvnxWvXs"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"naUuxvnxWvXs"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"HYQQNm55"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"HYQQNm55"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"lmbBNO1kI"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"lmbBNO1kI"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_graph"}}]},"finish_reason":null}],"usage":null,"obfuscation":"qdrnpGB"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"qdrnpGB"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":["}}]},"finish_reason":null}],"usage":null,"obfuscation":"OYQjmFkz5"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"OYQjmFkz5"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7yVjHnHF8g"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7yVjHnHF8g"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"QEEhae2TJ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"QEEhae2TJ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"kEukkQGI"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"kEukkQGI"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"M"}}]},"finish_reason":null}],"usage":null,"obfuscation":"LYxfiGayx20v"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"LYxfiGayx20v"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"cp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zEf2SuFI3cH"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"zEf2SuFI3cH"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Fixture"}}]},"finish_reason":null}],"usage":null,"obfuscation":"S2GG1i"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"S2GG1i"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".get"}}]},"finish_reason":null}],"usage":null,"obfuscation":"likS7Y45F"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"likS7Y45F"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TwySl39OJ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"TwySl39OJ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"2p2DjdVv"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"2p2DjdVv"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"description"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Zk"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Zk"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZBeDt6sM"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZBeDt6sM"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Get"}}]},"finish_reason":null}],"usage":null,"obfuscation":"7bjcsaItXQ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7bjcsaItXQ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"LtDIcbNq"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"LtDIcbNq"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"A1kFK8sA"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"A1kFK8sA"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"depends"}}]},"finish_reason":null}],"usage":null,"obfuscation":"AyIA9i"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"AyIA9i"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_on"}}]},"finish_reason":null}],"usage":null,"obfuscation":"9F4q7ARQQd"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"9F4q7ARQQd"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":[]"}}]},"finish_reason":null}],"usage":null,"obfuscation":"jAVbSgQF"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"jAVbSgQF"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"},{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"XUbEQMwJ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"XUbEQMwJ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Eehl1Y6Xt"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Eehl1Y6Xt"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"T3iH8KKU"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"T3iH8KKU"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Developer"}}]},"finish_reason":null}],"usage":null,"obfuscation":"jzRU"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"jzRU"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"."}}]},"finish_reason":null}],"usage":null,"obfuscation":"zeeCDR1q"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"zeeCDR1q"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"write"}}]},"finish_reason":null}],"usage":null,"obfuscation":"8YZ1VtI"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"8YZ1VtI"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"R15EQTSl"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"R15EQTSl"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"description"}}]},"finish_reason":null}],"usage":null,"obfuscation":"v8"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"v8"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"uCS5hMDz"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"uCS5hMDz"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Write"}}]},"finish_reason":null}],"usage":null,"obfuscation":"b4P9og82"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"b4P9og82"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" code"}}]},"finish_reason":null}],"usage":null,"obfuscation":"CkksRy3s"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"CkksRy3s"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" to"}}]},"finish_reason":null}],"usage":null,"obfuscation":"7z4KadqiCw"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7z4KadqiCw"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" /"}}]},"finish_reason":null}],"usage":null,"obfuscation":"XYeWQ4H9N5X"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"XYeWQ4H9N5X"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"qADuBhZQgw"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"qADuBhZQgw"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/result"}}]},"finish_reason":null}],"usage":null,"obfuscation":"0tqRXZ"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"0tqRXZ"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"59jHzUi0h"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"59jHzUi0h"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"QRyYho94"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"QRyYho94"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"depends"}}]},"finish_reason":null}],"usage":null,"obfuscation":"61NYkx"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"61NYkx"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_on"}}]},"finish_reason":null}],"usage":null,"obfuscation":"WHWBsd5Jkg"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"WHWBsd5Jkg"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":["}}]},"finish_reason":null}],"usage":null,"obfuscation":"xyMuvvQ1H"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"xyMuvvQ1H"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"0"}}]},"finish_reason":null}],"usage":null,"obfuscation":"NkL223rTveiY"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"NkL223rTveiY"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"]}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"5FvupEDfMHe"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"5FvupEDfMHe"} -data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"]}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"uDYSO0oHbmz"} +data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"usage":null,"obfuscation":"uDYSO0oHbmz"} data: {"id":"chatcmpl-D64NZp69RkEyXdUoDaCBj7fSYll8J","object":"chat.completion.chunk","created":1770339173,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":"9sRJO4xoviH"} diff --git a/crates/goose/tests/acp_test_data/openai_builtin_search.txt b/crates/goose/tests/acp_test_data/openai_builtin_search.txt index 487f98852..00bc27450 100644 --- a/crates/goose/tests/acp_test_data/openai_builtin_search.txt +++ b/crates/goose/tests/acp_test_data/openai_builtin_search.txt @@ -1,36 +1,36 @@ data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null},"finish_reason":null}],"obfuscation":"bj"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_mhfEtsDu6HJHTgoyc3rUDTNh","type":"function","function":{"name":"list_functions","arguments":""}}]},"finish_reason":null}],"obfuscation":"iPDqUVdKwkKN3F"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_mhfEtsDu6HJHTgoyc3rUDTNh","type":"function","function":{"name":"list_functions","arguments":"{}"}}]},"finish_reason":null}],"obfuscation":"iPDqUVdKwkKN3F"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{}"}}]},"finish_reason":null}],"obfuscation":"1sK4gwd8S5s"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"1sK4gwd8S5s"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_AwLicLqHJBNM33BX8pjZeB9H","type":"function","function":{"name":"get_function_details","arguments":""}}]},"finish_reason":null}],"obfuscation":"Nb9YXNVD"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_AwLicLqHJBNM33BX8pjZeB9H","type":"function","function":{"name":"get_function_details","arguments":"{\"functions\": [\"mcp-fixture__get_code\", \"write\"]}"}}]},"finish_reason":null}],"obfuscation":"Nb9YXNVD"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{\"fu"}}]},"finish_reason":null}],"obfuscation":"WfhGNuZ8"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"WfhGNuZ8"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"nctio"}}]},"finish_reason":null}],"obfuscation":"onePKs8g"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"onePKs8g"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ns\": ["}}]},"finish_reason":null}],"obfuscation":"1i6Ns7"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"1i6Ns7"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"\"Mcp"}}]},"finish_reason":null}],"obfuscation":"SxKZ9zQ8"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"SxKZ9zQ8"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"Fixtu"}}]},"finish_reason":null}],"obfuscation":"oRNvv26j"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"oRNvv26j"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"re.get"}}]},"finish_reason":null}],"obfuscation":"9jh4BM5"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"9jh4BM5"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"Code"}}]},"finish_reason":null}],"obfuscation":"X4583CKJj"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"X4583CKJj"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"\", \"D"}}]},"finish_reason":null}],"obfuscation":"pLCir4"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"pLCir4"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"evelop"}}]},"finish_reason":null}],"obfuscation":"YdjzlvJ"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"YdjzlvJ"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"er.w"}}]},"finish_reason":null}],"obfuscation":"Kv1vRc0to"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"Kv1vRc0to"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"rite"}}]},"finish_reason":null}],"obfuscation":"4sRF9L7t"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"4sRF9L7t"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"\"]"}}]},"finish_reason":null}],"obfuscation":"SmXF9J"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"SmXF9J"} -data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"}"}}]},"finish_reason":null}],"obfuscation":"kO5yFNBeMAXW"} +data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null}],"obfuscation":"kO5yFNBeMAXW"} data: {"id":"chatcmpl-D64NHpAses8hYgIt8xQfDCmg3PoHQ","object":"chat.completion.chunk","created":1770339155,"model":"gpt-5-nano-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":"RNhcx0FLJsf"} diff --git a/documentation/docs/guides/managing-tools/code-mode.md b/documentation/docs/guides/managing-tools/code-mode.md index c29480b12..0a01e3b43 100644 --- a/documentation/docs/guides/managing-tools/code-mode.md +++ b/documentation/docs/guides/managing-tools/code-mode.md @@ -22,7 +22,7 @@ Code Mode controls how tools are discovered and called: ## How Code Mode Works -The [Code Mode extension](/docs/mcp/code-mode-mcp) is an MCP server that uses the MCP protocol to expose three foundational meta-tools. When Code Mode is enabled, goose switches to Code Mode. For every request, the LLM writes JavaScript code that goose executes using [pctx (Port of Context)](https://portofcontext.com/) ([GitHub](https://github.com/portofcontext/pctx)), a custom Deno-based runtime, to: +The [Code Mode extension](/docs/mcp/code-mode-mcp) is an MCP server that uses the MCP protocol to expose three foundational meta-tools. When Code Mode is enabled, goose switches to Code Mode. For every request, the LLM writes JavaScript code that goose executes in a fresh goose-owned [Boa](https://boajs.dev/) context to: - Discover available tools from your enabled extensions (if needed) - Learn how to work with the tools it needs for the current task @@ -34,7 +34,7 @@ Traditional MCP tool calling and Code Mode are two different approaches to the s | Aspect | Traditional | Code Mode | |--------|------------------|-----------| -| **Tool Discovery** | All tools from enabled extensions, for example:
• `developer.shell`
• `developer.text_editor`
• `github.list_issues`
• `github.get_pull_request`
• `slack.send_message`
• ... *potentially many more* | Code Mode extension's meta-tools:
• `list_functions`
• `get_function_details`
• `execute_typescript`

The LLM uses these tools to discover tools from other enabled extensions as needed | +| **Tool Discovery** | All tools from enabled extensions, for example:
• `shell`
• `write`
• `github__list_issues`
• `github__get_pull_request`
• `slack__send_message`
• ... *potentially many more* | Code Mode extension's meta-tools:
• `list_functions`
• `get_function_details`
• `execute_javascript`

The LLM uses these tools to discover tools from other enabled extensions as needed | | **Tool Calling** | • Sequential tool calls
• Each result sent to the LLM before the next call | • May require tool discovery calls
• Multiple tool calls batched in one execution
• Intermediate results are chained and processed locally | | **Context Window** | Every LLM call includes all tool definitions from enabled extensions | Every LLM call includes the 3 meta-tool definitions, plus any tool definitions previously discovered in the session | | **Best For** | • 1-3 enabled extensions
• Simple tasks using 1-2 tools | • 5+ extensions
• Well-defined multi-step workflows | @@ -43,6 +43,42 @@ Traditional MCP tool calling and Code Mode are two different approaches to the s Code Mode only supports text content from tool results. Images, binary data, and other content types are ignored. ::: +## JavaScript interface + +Call `list_functions` to discover exact tool names and short descriptions, then +`get_function_details` with `{"functions": ["extension__first_tool"]}` to inspect +original JSON input and output schemas. Recursive schemas remain JSON data. +Use the returned names exactly, including unprefixed names for first-class tools. + +Pass JavaScript to `execute_javascript` with an `async function run()` entry point: + +```javascript +async function run() { + const results = await Promise.all([ + tools.call("extension__first_tool", { query: "example" }), + tools.call("extension__second_tool", { limit: 5 }) + ]); + return results.map(result => result.summary); +} +``` + +Await tool calls and batch independent operations. Return or log only information +needed for the next step. Tool arguments must be JSON objects; results must be +JSON values or `undefined`. Cyclic objects, functions, symbols, and BigInt are +unsupported. Console output, JSON depth and item counts, JavaScript instructions, +loop iterations, and recursion are bounded. + +The runtime provides JavaScript built-ins, `tools.call`, and captured +`console.log`, `info`, `warn`, `error`, and `debug` methods. It has no direct +filesystem, shell, network, environment, or package access. Tool calls retain +the extension lease, permission flow, cancellation, and mutation handling used +by goose. Only assistant-visible text results reach the script. + +Each execution uses a separate worker and context. The extension timeout and +cancellation stop execution and cancel in-flight tool calls. JavaScript state is +discarded between calls. Optional `tool_graph` metadata remains available for +desktop display; saved TypeScript calls can still be displayed. + ## Additional Resources import ContentCardCarousel from '@site/src/components/ContentCardCarousel'; diff --git a/documentation/docs/mcp/code-mode-mcp.md b/documentation/docs/mcp/code-mode-mcp.md index c01cb22f2..492ffa56a 100644 --- a/documentation/docs/mcp/code-mode-mcp.md +++ b/documentation/docs/mcp/code-mode-mcp.md @@ -10,7 +10,7 @@ import GooseBuiltinInstaller from '@site/src/components/GooseBuiltinInstaller'; The Code Mode extension enables [Code Mode](/docs/guides/managing-tools/code-mode), a programmatic approach for interacting with MCP tools. -The Code Mode extension is an MCP server that exposes three meta-tools. When Code Mode is enabled, the LLM writes JavaScript code that goose executes using a Deno-based runtime called [Port of Context](https://github.com/AdrianCole/pctx) to discover tools, learn their interfaces, and call them programmatically. +The Code Mode extension is an MCP server that exposes three meta-tools. When Code Mode is enabled, the LLM writes JavaScript code that goose executes in a fresh goose-owned [Boa](https://boajs.dev/) JavaScript context to discover tools, learn their interfaces, and call them programmatically. This helps manage context window usage more efficiently when multiple extensions are enabled and when performing workflows with multiple tool calls. @@ -63,11 +63,11 @@ Create a LOG.md file with the current git branch, last 3 commits, and the versio :::note Desktop I'll help you create a LOG.md file with the git branch, last 3 commits, and version from package.json. Let me gather all this information in one operation. -`Execute Code code: import { shell, text_editor } from "developer" ...` +`execute_javascript: async function run() { const result = await tools.call("shell", { command: "git branch --show-current" }); return result; }` Let me check the package.json path first: -`Execute Code code: import { shell, text_editor } from "developer" ...` +`execute_javascript: async function run() { const result = await tools.call("shell", { command: "git branch --show-current" }); return result; }` Perfect! I've created the **LOG.md** file with: diff --git a/flake.nix b/flake.nix index 4dc892a11..c8c0cffc6 100644 --- a/flake.nix +++ b/flake.nix @@ -51,28 +51,6 @@ LIBCLANG_PATH = "${pkgs.libclang.lib}/lib"; - # Pre-fetch rusty_v8 binary to avoid network access during build - # Map Nix system to rusty_v8 target triple - RUSTY_V8_ARCHIVE = let - cargoLock = builtins.fromTOML (builtins.readFile ./Cargo.lock); - rustyV8Version = (builtins.head (builtins.filter (p: p.name == "v8") cargoLock.package)).version; - rustyV8Target = { - "x86_64-linux" = "x86_64-unknown-linux-gnu"; - "aarch64-linux" = "aarch64-unknown-linux-gnu"; - "x86_64-darwin" = "x86_64-apple-darwin"; - "aarch64-darwin" = "aarch64-apple-darwin"; - }.${system} or (throw "Unsupported system: ${system}"); - rustyV8Sha256 = { - "x86_64-linux" = "sha256-chV1PAx40UH3Ute5k3lLrgfhih39Rm3KqE+mTna6ysE="; - "aarch64-linux" = "sha256-4IivYskhUSsMLZY97+g23UtUYh4p5jk7CzhMbMyqXyY="; - "x86_64-darwin" = "sha256-1jUuC+z7saQfPYILNyRJanD4+zOOhXU2ac/LFoytwho="; - "aarch64-darwin" = "sha256-yHa1eydVCrfYGgrZANbzgmmf25p7ui1VMas2A7BhG6k="; - }.${system}; - in pkgs.fetchurl { - url = "https://github.com/denoland/rusty_v8/releases/download/v${rustyV8Version}/librusty_v8_release_${rustyV8Target}.a.gz"; - sha256 = rustyV8Sha256; - }; - nativeBuildInputs = with pkgs; [ pkg-config clang diff --git a/goose-self-test.yaml b/goose-self-test.yaml index 121de50d9..bc7204db2 100644 --- a/goose-self-test.yaml +++ b/goose-self-test.yaml @@ -12,6 +12,7 @@ activities: - Validate the configurable Databricks AI Gateway path across all inference routes - Validate declared vision through persisted custom-provider configuration and outbound requests - Analyze code structure and parsing capabilities + - Validate Boa JavaScript discovery, batching, cancellation, and isolation - Test extension discovery and management - Test load tool for knowledge injection and discovery - Test delegate tool for task delegation @@ -28,7 +29,7 @@ parameters: input_type: string requirement: optional default: "all" - description: "Which test phases to run: all, basic, extensions, delegation, declared-vision, reasoning, zai-coding-plan, acp-effort, compaction, advanced" + description: "Which test phases to run: all, basic, extensions, delegation, code-mode, declared-vision, reasoning, zai-coding-plan, acp-effort, compaction, advanced" - key: test_depth input_type: string @@ -87,6 +88,21 @@ instructions: | - Test extension interactions - Verify isolation between extensions + ### Code Mode: Boa Runtime + When code mode is enabled (or test_phases is code-mode): + - Use list_functions and get_function_details to inspect exact tool names and original JSON schemas. + - Use execute_javascript with async function run() and tools.call(name, arguments). + - Compare sequential calls and Promise.all batches; verify results and caught tool errors. + - Verify unknown names and invalid arguments produce actionable errors. + - Verify console output and returned JSON contain only the information requested. + - Verify typeof fetch, process, Deno, and require are undefined; imports must fail. + - Check cyclic and BigInt return values produce useful errors. + - Check infinite loops before and after await, recursive calls, and unresolved promises terminate. + - Cancel a script awaiting a long-running tool and verify the tool stops. + - Run a normal script afterward and in another session; verify no JavaScript state leaks. + - Verify hidden tools cannot be discovered or called and hidden results remain hidden. + - Record any permission or mutation checks that require manual interaction. + ### Phase 3: Delegate & Load Testing Test the unified delegation and knowledge-loading tools: - Load tool for discovery and knowledge injection @@ -219,6 +235,21 @@ prompt: | Do not modify source files or configuration to make these checks pass. {% endif %} + {% if test_phases == "all" or "code-mode" in test_phases %} + ## Code Mode: JavaScript Runtime + Enable the code_execution extension if necessary. Discover exact names with list_functions + and inspect the JSON schemas of two read-only tools with get_function_details. + Execute async function run() scripts using tools.call(name, arguments): + 1. Compare sequential calls with a Promise.all batch and log only a short summary. + 2. Catch an unknown-tool error and confirm it points back to discovery. + 3. Check syntax errors, invalid argument objects, cyclic returns, and BigInt returns. + 4. Check infinite loops before and after await and unresolved promises terminate, then run a normal script. + 5. Confirm JavaScript globals do not expose filesystem, network, package, or environment APIs. + 6. Run a second script to confirm globals from the first execution are absent. + Record checks requiring external cancellation or a second session as manual follow-up. + Log results to: {{ workspace_dir }}/code_mode.md + {% endif %} + {% if test_phases == "all" or "extensions" in test_phases %} ## 🔧 PHASE 2: Extension System Testing diff --git a/scripts/setup-riscv.sh b/scripts/setup-riscv.sh deleted file mode 100755 index e2d77377d..000000000 --- a/scripts/setup-riscv.sh +++ /dev/null @@ -1,234 +0,0 @@ -#!/usr/bin/env bash -# Experimental, community-contributed RISC-V setup. This configuration is not -# officially supported by the goose project. -# This script vendors dependencies and applies necessary patches for V8 152.2.0. - -set -euo pipefail - -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" -VENDOR_DIR="$REPO_ROOT/vendor" -RUSTY_V8_COMMIT="2768994f664e8a6e3aba27503606c58339136e2a" -DENO_CORE_SHA256="77660b04f5368bcd69a42e0fdd6343e325eb781ec7d79bbf49ff2548ae4f17b6" -SERDE_V8_SHA256="21a52aca5a5661aea9c2ccf8c2f985f2381266d7aab03a0d02beadb4ae1190ea" - -verify_sha256() { - local file="$1" - local expected="$2" - local actual - - if command -v sha256sum > /dev/null 2>&1; then - actual="$(sha256sum "$file" | awk '{print $1}')" - elif command -v shasum > /dev/null 2>&1; then - actual="$(shasum -a 256 "$file" | awk '{print $1}')" - else - echo "Error: sha256sum or shasum is required to verify downloads" >&2 - return 1 - fi - - if [ "$actual" != "$expected" ]; then - echo "Error: SHA-256 mismatch for $file" >&2 - echo "Expected: $expected" >&2 - echo "Actual: $actual" >&2 - return 1 - fi -} - -echo "=== Setting up goose for RISC-V build ===" -echo "Repository: $REPO_ROOT" -echo "" - -# 1. Clone rusty_v8 -echo "1. Cloning rusty_v8 commit $RUSTY_V8_COMMIT (v152.2.0)..." -if [ -d "$VENDOR_DIR/rusty_v8" ]; then - echo " Already exists, skipping..." -else - git -C "$VENDOR_DIR" init rusty_v8 - git -C "$VENDOR_DIR/rusty_v8" remote add origin https://github.com/denoland/rusty_v8.git - git -C "$VENDOR_DIR/rusty_v8" fetch --depth 1 origin "$RUSTY_V8_COMMIT" - git -C "$VENDOR_DIR/rusty_v8" checkout --detach FETCH_HEAD - rm -rf "$VENDOR_DIR/rusty_v8/.git" - echo " ✓ Done" -fi - -# 2. Vendor deno_core -echo "2. Vendoring deno_core 0.381.1..." -if [ -d "$VENDOR_DIR/deno_core" ]; then - echo " Already exists, skipping..." -else - cd "$VENDOR_DIR" - wget -q https://static.crates.io/crates/deno_core/deno_core-0.381.1.crate - verify_sha256 deno_core-0.381.1.crate "$DENO_CORE_SHA256" - tar xzf deno_core-0.381.1.crate - mv deno_core-0.381.1 deno_core - rm deno_core-0.381.1.crate - echo " ✓ Done" -fi - -# 3. Vendor serde_v8 -echo "3. Vendoring serde_v8 0.290.0..." -if [ -d "$VENDOR_DIR/serde_v8" ]; then - echo " Already exists, skipping..." -else - cd "$VENDOR_DIR" - wget -q https://static.crates.io/crates/serde_v8/serde_v8-0.290.0.crate - verify_sha256 serde_v8-0.290.0.crate "$SERDE_V8_SHA256" - tar xzf serde_v8-0.290.0.crate - mv serde_v8-0.290.0 serde_v8 - rm serde_v8-0.290.0.crate - echo " ✓ Done" -fi - -# 4. vendor/v8 -# Nothing to patch: the cloned vendor/rusty_v8 IS the `v8` crate at 152.2.0, -# so step 8 points `[patch.crates-io] v8` straight at it. The committed -# vendor/v8 shim is left alone (it stays a workspace member for cargo-machete -# but nothing depends on it once the patch is redirected). -echo "4. vendor/v8: using cloned rusty_v8 directly, nothing to patch" - -# 5. Update deno_core v8 dependency -echo "5. Updating deno_core v8 dependency to 152.2.0..." -sed -i 's/version = "145\.0\.0"/version = "152.2.0"/' "$VENDOR_DIR/deno_core/Cargo.toml" -echo " ✓ Done" - -# 6. Update serde_v8 v8 dependency -echo "6. Updating serde_v8 v8 dependency to 152.2.0..." -sed -i 's/version = "145\.0\.0"/version = "152.2.0"/' "$VENDOR_DIR/serde_v8/Cargo.toml" -echo " ✓ Done" - -# 7. Apply deno_core source patches -echo "7. Applying deno_core source patches for V8 152 API..." - -# Wrap .open() calls in unsafe -sed -i 's/let format_exception_cb = format_exception_cb\.open(scope);/let format_exception_cb = unsafe { format_exception_cb.open(scope) };/' "$VENDOR_DIR/deno_core/error.rs" -sed -i 's/let cb = cb\.open(tc_scope);/let cb = unsafe { cb.open(tc_scope) };/' "$VENDOR_DIR/deno_core/error.rs" -sed -i 's/let resolver = resolver_handle\.open(scope);/let resolver = unsafe { resolver_handle.open(scope) };/g' "$VENDOR_DIR/deno_core/modules/map.rs" -sed -i 's/let module = module_handle\.open(scope);/let module = unsafe { module_handle.open(scope) };/g' "$VENDOR_DIR/deno_core/modules/map.rs" -sed -i 's/let promise = pending_dyn_evaluate\.promise\.open(scope);/let promise = unsafe { pending_dyn_evaluate.promise.open(scope) };/g' "$VENDOR_DIR/deno_core/modules/map.rs" -sed -i 's/let _module = pending_dyn_evaluate\.module\.open(scope);/let _module = unsafe { pending_dyn_evaluate.module.open(scope) };/g' "$VENDOR_DIR/deno_core/modules/map.rs" -sed -i 's/let resolver = state\.resolver\.open(scope);/let resolver = unsafe { state.resolver.open(scope) };/g' "$VENDOR_DIR/deno_core/modules/map.rs" -sed -i 's/let ctx = self\.context()\.open(scope);/let ctx = unsafe { self.context().open(scope) };/g' "$VENDOR_DIR/deno_core/runtime/jsrealm.rs" -sed -i 's/let cb = function\.open(scope);/let cb = unsafe { function.open(scope) };/g' "$VENDOR_DIR/deno_core/runtime/jsruntime.rs" -sed -i 's/run_immediate_callbacks_cb\.as_ref()\.unwrap()\.open(tc_scope);/unsafe { run_immediate_callbacks_cb.as_ref().unwrap().open(tc_scope) };/g' "$VENDOR_DIR/deno_core/runtime/jsruntime.rs" -sed -i 's/let function = handler\.open(scope);/let function = unsafe { handler.open(scope) };/g' "$VENDOR_DIR/deno_core/runtime/jsruntime.rs" -sed -i 's/js_event_loop_tick_cb\.as_ref()\.unwrap()\.open(tc_scope);/unsafe { js_event_loop_tick_cb.as_ref().unwrap().open(tc_scope) };/g' "$VENDOR_DIR/deno_core/runtime/jsruntime.rs" - -# Fix ops_builtin_v8.rs - multiline sed -sed -i '/cb_handle$/{ N; s/cb_handle\n \.open(scope)/unsafe { cb_handle.open(scope) }/; }' "$VENDOR_DIR/deno_core/ops_builtin_v8.rs" - -# Disable fast-call path in bindings.rs: replace the whole if/else block -# with the fallback assignment (c on an address range replaces all of it) -sed -i '/let template = if let Some(fast_function)/,/};/c\ - // Disable fast path for v8 152 - causes SIGILL on RISC-V snapshot creation\ - let template = builder.build(scope);' "$VENDOR_DIR/deno_core/runtime/bindings.rs" - -# With the fast path disabled, the fast_fn binding above is unused; silence -# the resulting warning so clippy -D warnings stays clean. -sed -i 's/^ let (slow_fn, fast_fn) = / let (slow_fn, _fast_fn) = /' "$VENDOR_DIR/deno_core/runtime/bindings.rs" - -# Update WasmStreaming generic -sed -i 's/pub struct WasmStreamingResource(pub(crate) RefCell);/pub struct WasmStreamingResource(pub(crate) RefCell>);/' "$VENDOR_DIR/deno_core/ops_builtin.rs" - -# ICU 77 -> 78: V8 152 bundles ICU 78, so the initializer name AND the data -# blob must both move. deno_core_icudata 0.78.0 ships the matching ICU 78 data; -# passing the 0.77.0 blob to set_common_data_78 fails V8 initialization. -sed -i 's/set_common_data_77/set_common_data_78/' "$VENDOR_DIR/deno_core/runtime/setup.rs" -sed -i 's/^version = "0\.77\.0"$/version = "0.78.0"/' "$VENDOR_DIR/deno_core/Cargo.toml" - -# Remove --no-validate-asm flag -sed -i 's/" --no-validate-asm",//' "$VENDOR_DIR/deno_core/runtime/setup.rs" - -echo " ✓ Done" - -# 8. Update root Cargo.toml -echo "8. Updating root Cargo.toml..." -cd "$REPO_ROOT" - -# Drop the vendor/v8 shim from the workspace and exclude it plus rusty_v8. -# The shim pulls in `v8-goose`, which declares `links = "rusty_v8"`; once the -# patch below resolves denoland's `v8` 152 (also `links = "rusty_v8"`), a -# workspace containing both fails with "more than one crate with -# links=rusty_v8". Use awk for portability (GNU/BSD sed multi-line differs). -if ! grep -q '^exclude = \[' Cargo.toml; then - awk ' - /^members = \[/ { in_members = 1 } - in_members && /cargo-machete/ { next } - in_members && /"vendor\/v8"/ { next } - in_members && /^\]$/ { - print - print "exclude = [\"vendor/v8\", \"vendor/rusty_v8\"]" - in_members = 0 - next - } - { print } - ' Cargo.toml > Cargo.toml.new - mv Cargo.toml.new Cargo.toml -fi - -# Relax ICU pins -sed -i 's/icu_calendar = { version = "=2\.1\.1"/icu_calendar = { version = ">=2.1"/' Cargo.toml -sed -i 's/icu_locale = { version = "=2\.1\.1"/icu_locale = { version = ">=2.1"/' Cargo.toml - -# Add deno_core/serde_v8 patches and repoint the existing `v8` patch at the -# cloned rusty_v8 (same crate name, version 152.2.0). Multi-line sed `a\` is -# fragile across sed implementations, so use awk. -if ! grep -q 'vendor/deno_core' Cargo.toml; then - awk ' - /^\[patch\.crates-io\]$/ { - print - print "deno_core = { path = \"vendor/deno_core\" }" - print "serde_v8 = { path = \"vendor/serde_v8\" }" - next - } - /^v8 = \{ path = "vendor\/v8" \}$/ { - print "v8 = { path = \"vendor/rusty_v8\" }" - next - } - { print } - ' Cargo.toml > Cargo.toml.new - mv Cargo.toml.new Cargo.toml -fi - -echo " ✓ Done" - -# 9. Update crates/goose/Cargo.toml -echo "9. Updating crates/goose/Cargo.toml..." -sed -i 's/icu_calendar = { version = "=2\.1\.1"/icu_calendar = { version = ">=2.1"/' "$REPO_ROOT/crates/goose/Cargo.toml" -sed -i 's/icu_locale = { version = "=2\.1\.1"/icu_locale = { version = ">=2.1"/' "$REPO_ROOT/crates/goose/Cargo.toml" -echo " ✓ Done" - -# Note: update.rs already handles RISC-V (asset name + self-update bail) in -# the repo, so no patching is needed here. - -# 10. Update dependencies -# Re-resolve only what this setup changes: the ICU-78 data blob and the -# ICU/temporal crates freed by the relaxed pins. The patched path crates -# (v8, deno_core, serde_v8) are picked up by the build itself. A bare -# `cargo update` would drift every eligible dependency. -echo "10. Updating Cargo dependencies..." -cd "$REPO_ROOT" -cargo update --quiet deno_core_icudata icu_calendar icu_locale temporal_rs -echo " ✓ Done" - -# 11. Verify toolchain is available. -echo "11. Checking RISC-V toolchain..." -if [ "$(uname -m)" = "riscv64" ]; then - echo " ✓ native RISC-V build - no cross toolchain needed" -elif command -v riscv64-linux-gnu-gcc > /dev/null 2>&1; then - echo " ✓ riscv64-linux-gnu-gcc found" - echo " For cross-compiling, export before building:" - echo " export CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc" -else - echo " ⚠ riscv64-linux-gnu-gcc not found" - echo " Install it (e.g. 'sudo apt install gcc-riscv64-linux-gnu') and set:" - echo " export CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc" -fi - -echo "" -echo "=== Setup complete! ===" -echo "" -echo "To build for RISC-V:" -echo " cargo build --release --target riscv64gc-unknown-linux-gnu -p goose-cli --bin goose" -echo "" -echo "Output binary:" -echo " target/riscv64gc-unknown-linux-gnu/release/goose" diff --git a/ui/desktop/src/components/ToolCallWithResponse.test.tsx b/ui/desktop/src/components/ToolCallWithResponse.test.tsx index cd31ac490..7145d18d5 100644 --- a/ui/desktop/src/components/ToolCallWithResponse.test.tsx +++ b/ui/desktop/src/components/ToolCallWithResponse.test.tsx @@ -172,3 +172,52 @@ describe('ToolCallWithResponse live output', () => { ); }); }); + +describe('Code Mode execution history', () => { + beforeEach(() => { + vi.mocked(window.electron.getSetting).mockResolvedValue('concise'); + }); + it.each([ + 'execute_javascript', + 'code_execution__execute_javascript', + 'execute_typescript', + 'code_execution__execute_typescript', + ])('renders code and graph for %s', async (name) => { + const user = userEvent.setup(); + render( + , + { wrapper: IntlTestWrapper } + ); + await user.click(screen.getByText('Inspect example')); + expect(screen.getByText(/example__inspect/)).toBeInTheDocument(); + await user.click(screen.getByText('Code')); + expect( + screen.getByText( + (_, element) => + element?.tagName === 'CODE' && + element.textContent?.includes('async function run') === true + ) + ).toBeInTheDocument(); + }); +}); diff --git a/ui/desktop/src/components/ToolCallWithResponse.tsx b/ui/desktop/src/components/ToolCallWithResponse.tsx index 616009177..a5563e201 100644 --- a/ui/desktop/src/components/ToolCallWithResponse.tsx +++ b/ui/desktop/src/components/ToolCallWithResponse.tsx @@ -410,9 +410,13 @@ const formatSubagentToolCall = (data: SubagentToolRequestData): string => { const extensionName = parts.slice(1).reverse().join('__') || ''; const toolGraph = toolCall.arguments?.tool_graph; - if (toolName === 'execute_typescript' && toolGraph && toolGraph.length > 0) { + if ( + ['execute_javascript', 'execute_typescript'].includes(toolName) && + toolGraph && + toolGraph.length > 0 + ) { const plural = toolGraph.length === 1 ? '' : 's'; - const header = `[subagent:${shortId}] ${toolGraph.length} tool call${plural} | execute_typescript`; + const header = `[subagent:${shortId}] ${toolGraph.length} tool call${plural} | ${toolName}`; const lines = toolGraph.map((node, idx) => { const deps = node.depends_on && node.depends_on.length > 0 @@ -715,6 +719,7 @@ function ToolCallView({ case 'computer_control': return `poking around...`; + case 'execute_javascript': case 'execute_typescript': { const toolGraph = args.tool_graph as unknown as ToolGraphNode[] | undefined; if (toolGraph && Array.isArray(toolGraph) && toolGraph.length > 0) { @@ -813,7 +818,12 @@ function ToolCallView({ const toolGraph = toolCall.arguments?.tool_graph as unknown as ToolGraphNode[] | undefined; if ( - toolCall.name === 'code_execution__execute_typescript' && + [ + 'execute_javascript', + 'code_execution__execute_javascript', + 'execute_typescript', + 'code_execution__execute_typescript', + ].includes(toolCall.name) && (typeof code === 'string' || Array.isArray(toolGraph)) ) { return ( @@ -958,7 +968,7 @@ function CodeModeView({ toolGraph, code }: CodeModeViewProps) { isStartExpanded={false} > diff --git a/ui/desktop/tests/integration/test_providers_code_exec.test.ts b/ui/desktop/tests/integration/test_providers_code_exec.test.ts index 5db51778e..edda2d261 100644 --- a/ui/desktop/tests/integration/test_providers_code_exec.test.ts +++ b/ui/desktop/tests/integration/test_providers_code_exec.test.ts @@ -22,12 +22,12 @@ beforeAll(() => { const { testAll } = providerTest(discoverTestCases({ skipAgentic: true })); -// Matches: "execute_typescript | code_execution", "get_function_details | code_execution", +// Matches: "execute_javascript | code_execution", "get_function_details | code_execution", // "tool call | execute", "tool calls | execute" (old format) // "▸ execute N tool call" (new format with tool_graph) -// "▸ execute_typescript" (plain tool name in output) +// "▸ execute_javascript" (plain tool name in output) const codeExecPattern = - /(execute_typescript \| code_execution)|(get_function_details \| code_execution)|(tool calls? \| execute)|(▸.*execute.*tool call)|(▸ execute_typescript)/; + /(execute_javascript \| code_execution)|(get_function_details \| code_execution)|(tool calls? \| execute)|(▸.*execute.*tool call)|(▸ execute_javascript)/; testAll('invokes code_execution tool', async (tc, { expect }) => { const testdir = fs.mkdtempSync(path.join(os.tmpdir(), 'goose-codeexec-')); diff --git a/vendor/v8/Cargo.toml b/vendor/v8/Cargo.toml deleted file mode 100644 index 51f42cb82..000000000 --- a/vendor/v8/Cargo.toml +++ /dev/null @@ -1,15 +0,0 @@ -[package] -name = "v8" -version = "145.0.0" -edition = "2024" -publish = false - -[features] -default = ["use_custom_libcxx"] -use_custom_libcxx = ["v8-goose/use_custom_libcxx"] -v8_enable_pointer_compression = ["v8-goose/v8_enable_pointer_compression"] -v8_enable_sandbox = ["v8-goose/v8_enable_sandbox"] -v8_enable_v8_checks = ["v8-goose/v8_enable_v8_checks"] - -[dependencies] -v8-goose = { version = "145.0.2" } diff --git a/vendor/v8/src/lib.rs b/vendor/v8/src/lib.rs deleted file mode 100644 index f9e0a283e..000000000 --- a/vendor/v8/src/lib.rs +++ /dev/null @@ -1 +0,0 @@ -pub use v8_goose::*;