heaplens-cli 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +43 -2
- package/THIRD_PARTY_NOTICES.json +2199 -0
- package/bin/heaplens.cjs +72 -0
- package/distribution.json +1754 -0
- package/licenses/d3-LICENSE.txt +12 -0
- package/licenses/rust/aho-corasick-1.1.4/COPYING +3 -0
- package/licenses/rust/aho-corasick-1.1.4/LICENSE-MIT +21 -0
- package/licenses/rust/anstream-0.6.21/LICENSE-APACHE +202 -0
- package/licenses/rust/anstream-0.6.21/LICENSE-MIT +19 -0
- package/licenses/rust/anstyle-1.0.13/LICENSE-APACHE +202 -0
- package/licenses/rust/anstyle-1.0.13/LICENSE-MIT +19 -0
- package/licenses/rust/anstyle-parse-0.2.7/LICENSE-APACHE +202 -0
- package/licenses/rust/anstyle-parse-0.2.7/LICENSE-MIT +19 -0
- package/licenses/rust/anstyle-query-1.1.5/LICENSE-APACHE +202 -0
- package/licenses/rust/anstyle-query-1.1.5/LICENSE-MIT +19 -0
- package/licenses/rust/anyhow-1.0.100/LICENSE-APACHE +176 -0
- package/licenses/rust/anyhow-1.0.100/LICENSE-MIT +23 -0
- package/licenses/rust/arrayvec-0.5.2/LICENSE-APACHE +201 -0
- package/licenses/rust/arrayvec-0.5.2/LICENSE-MIT +25 -0
- package/licenses/rust/arrayvec-0.7.8/LICENSE-APACHE +201 -0
- package/licenses/rust/arrayvec-0.7.8/LICENSE-MIT +25 -0
- package/licenses/rust/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
- package/licenses/rust/atomic-waker-1.1.2/LICENSE-MIT +23 -0
- package/licenses/rust/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
- package/licenses/rust/autocfg-1.5.1/LICENSE-APACHE +201 -0
- package/licenses/rust/autocfg-1.5.1/LICENSE-MIT +25 -0
- package/licenses/rust/base64-0.22.1/LICENSE-APACHE +201 -0
- package/licenses/rust/base64-0.22.1/LICENSE-MIT +21 -0
- package/licenses/rust/base64-0.23.1/LICENSE-APACHE +201 -0
- package/licenses/rust/base64-0.23.1/LICENSE-MIT +21 -0
- package/licenses/rust/bitflags-1.3.2/LICENSE-APACHE +201 -0
- package/licenses/rust/bitflags-1.3.2/LICENSE-MIT +25 -0
- package/licenses/rust/bitflags-2.10.0/LICENSE-APACHE +201 -0
- package/licenses/rust/bitflags-2.10.0/LICENSE-MIT +25 -0
- package/licenses/rust/blake3-1.8.7/LICENSE_A2 +202 -0
- package/licenses/rust/blake3-1.8.7/LICENSE_A2LLVM +219 -0
- package/licenses/rust/blake3-1.8.7/LICENSE_CC0 +121 -0
- package/licenses/rust/bytes-1.11.0/LICENSE +25 -0
- package/licenses/rust/cc-1.6.0/LICENSE-APACHE +201 -0
- package/licenses/rust/cc-1.6.0/LICENSE-MIT +25 -0
- package/licenses/rust/cfg-if-1.0.4/LICENSE-APACHE +201 -0
- package/licenses/rust/cfg-if-1.0.4/LICENSE-MIT +25 -0
- package/licenses/rust/cfg_aliases-0.2.2/LICENSE +9 -0
- package/licenses/rust/cfg_aliases-0.2.2/NOTICES.md +26 -0
- package/licenses/rust/chacha20-0.10.2/LICENSE-APACHE +201 -0
- package/licenses/rust/chacha20-0.10.2/LICENSE-MIT +25 -0
- package/licenses/rust/chrono-0.4.45/LICENSE.txt +240 -0
- package/licenses/rust/clap-4.5.60/LICENSE-APACHE +202 -0
- package/licenses/rust/clap-4.5.60/LICENSE-MIT +19 -0
- package/licenses/rust/clap_builder-4.5.60/LICENSE-APACHE +202 -0
- package/licenses/rust/clap_builder-4.5.60/LICENSE-MIT +19 -0
- package/licenses/rust/clap_derive-4.5.55/LICENSE-APACHE +202 -0
- package/licenses/rust/clap_derive-4.5.55/LICENSE-MIT +19 -0
- package/licenses/rust/clap_lex-1.0.0/LICENSE-APACHE +202 -0
- package/licenses/rust/clap_lex-1.0.0/LICENSE-MIT +19 -0
- package/licenses/rust/colorchoice-1.0.4/LICENSE-APACHE +202 -0
- package/licenses/rust/colorchoice-1.0.4/LICENSE-MIT +19 -0
- package/licenses/rust/constant_time_eq-0.4.2/LICENSE-APACHE +176 -0
- package/licenses/rust/constant_time_eq-0.4.2/LICENSE-CC0 +121 -0
- package/licenses/rust/constant_time_eq-0.4.2/LICENSE-MIT0 +14 -0
- package/licenses/rust/core-foundation-sys-0.8.7/LICENSE-APACHE +201 -0
- package/licenses/rust/core-foundation-sys-0.8.7/LICENSE-MIT +25 -0
- package/licenses/rust/crossbeam-deque-0.8.6/LICENSE-APACHE +201 -0
- package/licenses/rust/crossbeam-deque-0.8.6/LICENSE-MIT +27 -0
- package/licenses/rust/crossbeam-epoch-0.9.18/LICENSE-APACHE +201 -0
- package/licenses/rust/crossbeam-epoch-0.9.18/LICENSE-MIT +27 -0
- package/licenses/rust/crossbeam-utils-0.8.21/LICENSE-APACHE +201 -0
- package/licenses/rust/crossbeam-utils-0.8.21/LICENSE-MIT +27 -0
- package/licenses/rust/displaydoc-0.2.7/LICENSE-APACHE +201 -0
- package/licenses/rust/displaydoc-0.2.7/LICENSE-MIT +23 -0
- package/licenses/rust/either-1.15.0/LICENSE-APACHE +201 -0
- package/licenses/rust/either-1.15.0/LICENSE-MIT +25 -0
- package/licenses/rust/env_filter-0.1.4/LICENSE-APACHE +202 -0
- package/licenses/rust/env_filter-0.1.4/LICENSE-MIT +19 -0
- package/licenses/rust/env_logger-0.11.8/LICENSE-APACHE +202 -0
- package/licenses/rust/env_logger-0.11.8/LICENSE-MIT +19 -0
- package/licenses/rust/equivalent-1.0.2/LICENSE-APACHE +201 -0
- package/licenses/rust/equivalent-1.0.2/LICENSE-MIT +25 -0
- package/licenses/rust/errno-0.3.14/LICENSE-APACHE +201 -0
- package/licenses/rust/errno-0.3.14/LICENSE-MIT +25 -0
- package/licenses/rust/fastrand-2.3.0/LICENSE-APACHE +201 -0
- package/licenses/rust/fastrand-2.3.0/LICENSE-MIT +23 -0
- package/licenses/rust/find-msvc-tools-0.1.14/LICENSE-APACHE +201 -0
- package/licenses/rust/find-msvc-tools-0.1.14/LICENSE-MIT +25 -0
- package/licenses/rust/fixedbitset-0.4.2/LICENSE-APACHE +201 -0
- package/licenses/rust/fixedbitset-0.4.2/LICENSE-MIT +25 -0
- package/licenses/rust/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
- package/licenses/rust/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
- package/licenses/rust/futures-channel-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-channel-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-core-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-core-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-io-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-io-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-sink-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-sink-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-task-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-task-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/futures-util-0.3.34/LICENSE-APACHE +202 -0
- package/licenses/rust/futures-util-0.3.34/LICENSE-MIT +26 -0
- package/licenses/rust/getrandom-0.2.17/LICENSE-APACHE +201 -0
- package/licenses/rust/getrandom-0.2.17/LICENSE-MIT +26 -0
- package/licenses/rust/getrandom-0.3.4/LICENSE-APACHE +201 -0
- package/licenses/rust/getrandom-0.3.4/LICENSE-MIT +26 -0
- package/licenses/rust/getrandom-0.4.3/LICENSE-APACHE +201 -0
- package/licenses/rust/getrandom-0.4.3/LICENSE-MIT +26 -0
- package/licenses/rust/getset-0.0.9/LICENSE +21 -0
- package/licenses/rust/hashbrown-0.16.1/LICENSE-APACHE +201 -0
- package/licenses/rust/hashbrown-0.16.1/LICENSE-MIT +25 -0
- package/licenses/rust/heck-0.3.3/LICENSE-APACHE +201 -0
- package/licenses/rust/heck-0.3.3/LICENSE-MIT +25 -0
- package/licenses/rust/heck-0.5.0/LICENSE-APACHE +201 -0
- package/licenses/rust/heck-0.5.0/LICENSE-MIT +25 -0
- package/licenses/rust/http-1.5.0/LICENSE-APACHE +201 -0
- package/licenses/rust/http-1.5.0/LICENSE-MIT +25 -0
- package/licenses/rust/http-body-1.1.0/LICENSE +25 -0
- package/licenses/rust/http-body-util-0.1.5/LICENSE +25 -0
- package/licenses/rust/httparse-1.10.1/LICENSE-APACHE +201 -0
- package/licenses/rust/httparse-1.10.1/LICENSE-MIT +20 -0
- package/licenses/rust/hyper-1.12.0/LICENSE +19 -0
- package/licenses/rust/hyper-rustls-0.27.10/LICENSE-APACHE +201 -0
- package/licenses/rust/hyper-rustls-0.27.10/LICENSE-ISC +15 -0
- package/licenses/rust/hyper-rustls-0.27.10/LICENSE-MIT +25 -0
- package/licenses/rust/hyper-util-0.1.21/LICENSE +19 -0
- package/licenses/rust/iana-time-zone-0.1.65/LICENSE-APACHE +201 -0
- package/licenses/rust/iana-time-zone-0.1.65/LICENSE-MIT +25 -0
- package/licenses/rust/icu_collections-2.3.0/LICENSE +46 -0
- package/licenses/rust/icu_locale_core-2.3.0/LICENSE +46 -0
- package/licenses/rust/icu_normalizer-2.3.0/LICENSE +46 -0
- package/licenses/rust/icu_normalizer_data-2.3.0/LICENSE +46 -0
- package/licenses/rust/icu_properties-2.3.0/LICENSE +46 -0
- package/licenses/rust/icu_properties_data-2.3.0/LICENSE +46 -0
- package/licenses/rust/icu_provider-2.3.1/LICENSE +46 -0
- package/licenses/rust/idna-1.1.0/LICENSE-APACHE +201 -0
- package/licenses/rust/idna-1.1.0/LICENSE-MIT +25 -0
- package/licenses/rust/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
- package/licenses/rust/idna_adapter-1.2.2/LICENSE-MIT +25 -0
- package/licenses/rust/indexmap-2.13.0/LICENSE-APACHE +201 -0
- package/licenses/rust/indexmap-2.13.0/LICENSE-MIT +25 -0
- package/licenses/rust/ipnet-2.12.2/LICENSE-APACHE +201 -0
- package/licenses/rust/ipnet-2.12.2/LICENSE-MIT +7 -0
- package/licenses/rust/is_terminal_polyfill-1.70.2/LICENSE-APACHE +202 -0
- package/licenses/rust/is_terminal_polyfill-1.70.2/LICENSE-MIT +19 -0
- package/licenses/rust/itoa-1.0.17/LICENSE-APACHE +176 -0
- package/licenses/rust/itoa-1.0.17/LICENSE-MIT +23 -0
- package/licenses/rust/jiff-0.2.18/COPYING +3 -0
- package/licenses/rust/jiff-0.2.18/LICENSE-MIT +21 -0
- package/licenses/rust/jvm-hprof-0.1.0/LICENSE.txt +36 -0
- package/licenses/rust/lexical-core-0.7.6/LICENSE-APACHE +201 -0
- package/licenses/rust/lexical-core-0.7.6/LICENSE-MIT +23 -0
- package/licenses/rust/libc-0.2.180/LICENSE-APACHE +176 -0
- package/licenses/rust/libc-0.2.180/LICENSE-MIT +25 -0
- package/licenses/rust/litemap-0.8.3/LICENSE +46 -0
- package/licenses/rust/lock_api-0.4.14/LICENSE-APACHE +201 -0
- package/licenses/rust/lock_api-0.4.14/LICENSE-MIT +25 -0
- package/licenses/rust/log-0.4.29/LICENSE-APACHE +201 -0
- package/licenses/rust/log-0.4.29/LICENSE-MIT +25 -0
- package/licenses/rust/lru-slab-0.1.3/LICENSE-APACHE +202 -0
- package/licenses/rust/lru-slab-0.1.3/LICENSE-MIT +7 -0
- package/licenses/rust/lru-slab-0.1.3/LICENSE-ZLIB +19 -0
- package/licenses/rust/memchr-2.7.6/COPYING +3 -0
- package/licenses/rust/memchr-2.7.6/LICENSE-MIT +21 -0
- package/licenses/rust/memmap2-0.9.9/LICENSE-APACHE +201 -0
- package/licenses/rust/memmap2-0.9.9/LICENSE-MIT +26 -0
- package/licenses/rust/mio-1.1.1/LICENSE +19 -0
- package/licenses/rust/nom-5.1.3/LICENSE +20 -0
- package/licenses/rust/num-traits-0.2.19/LICENSE-APACHE +201 -0
- package/licenses/rust/num-traits-0.2.19/LICENSE-MIT +25 -0
- package/licenses/rust/once_cell-1.21.3/LICENSE-APACHE +201 -0
- package/licenses/rust/once_cell-1.21.3/LICENSE-MIT +23 -0
- package/licenses/rust/parking_lot-0.12.5/LICENSE-APACHE +201 -0
- package/licenses/rust/parking_lot-0.12.5/LICENSE-MIT +25 -0
- package/licenses/rust/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
- package/licenses/rust/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
- package/licenses/rust/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
- package/licenses/rust/percent-encoding-2.3.2/LICENSE-MIT +25 -0
- package/licenses/rust/petgraph-0.6.5/LICENSE-APACHE +201 -0
- package/licenses/rust/petgraph-0.6.5/LICENSE-MIT +25 -0
- package/licenses/rust/pin-project-lite-0.2.16/LICENSE-APACHE +177 -0
- package/licenses/rust/pin-project-lite-0.2.16/LICENSE-MIT +23 -0
- package/licenses/rust/potential_utf-0.1.6/LICENSE +46 -0
- package/licenses/rust/proc-macro2-1.0.105/LICENSE-APACHE +176 -0
- package/licenses/rust/proc-macro2-1.0.105/LICENSE-MIT +23 -0
- package/licenses/rust/quinn-0.11.12/LICENSE-APACHE +201 -0
- package/licenses/rust/quinn-0.11.12/LICENSE-MIT +7 -0
- package/licenses/rust/quinn-proto-0.11.19/LICENSE-APACHE +201 -0
- package/licenses/rust/quinn-proto-0.11.19/LICENSE-MIT +7 -0
- package/licenses/rust/quinn-udp-0.5.16/LICENSE-APACHE +201 -0
- package/licenses/rust/quinn-udp-0.5.16/LICENSE-MIT +7 -0
- package/licenses/rust/quote-1.0.47/LICENSE-APACHE +176 -0
- package/licenses/rust/quote-1.0.47/LICENSE-MIT +23 -0
- package/licenses/rust/rand-0.10.3/COPYRIGHT +12 -0
- package/licenses/rust/rand-0.10.3/LICENSE-APACHE +176 -0
- package/licenses/rust/rand-0.10.3/LICENSE-MIT +26 -0
- package/licenses/rust/rand_core-0.10.1/COPYRIGHT +9 -0
- package/licenses/rust/rand_core-0.10.1/LICENSE-APACHE +187 -0
- package/licenses/rust/rand_core-0.10.1/LICENSE-MIT +25 -0
- package/licenses/rust/rand_pcg-0.10.2/COPYRIGHT +12 -0
- package/licenses/rust/rand_pcg-0.10.2/LICENSE-APACHE +187 -0
- package/licenses/rust/rand_pcg-0.10.2/LICENSE-MIT +26 -0
- package/licenses/rust/rayon-1.11.0/LICENSE-APACHE +201 -0
- package/licenses/rust/rayon-1.11.0/LICENSE-MIT +25 -0
- package/licenses/rust/rayon-core-1.13.0/LICENSE-APACHE +201 -0
- package/licenses/rust/rayon-core-1.13.0/LICENSE-MIT +25 -0
- package/licenses/rust/regex-1.12.2/LICENSE-APACHE +201 -0
- package/licenses/rust/regex-1.12.2/LICENSE-MIT +25 -0
- package/licenses/rust/regex-automata-0.4.13/LICENSE-APACHE +201 -0
- package/licenses/rust/regex-automata-0.4.13/LICENSE-MIT +25 -0
- package/licenses/rust/regex-syntax-0.8.8/LICENSE-APACHE +201 -0
- package/licenses/rust/regex-syntax-0.8.8/LICENSE-MIT +25 -0
- package/licenses/rust/reqwest-0.12.28/LICENSE-APACHE +201 -0
- package/licenses/rust/reqwest-0.12.28/LICENSE-MIT +20 -0
- package/licenses/rust/ring-0.17.14/LICENSE +9 -0
- package/licenses/rust/ring-0.17.14/LICENSE-BoringSSL +272 -0
- package/licenses/rust/ring-0.17.14/LICENSE-other-bits +13 -0
- package/licenses/rust/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
- package/licenses/rust/rustc-hash-2.1.3/LICENSE-MIT +23 -0
- package/licenses/rust/rustix-1.1.3/COPYRIGHT +29 -0
- package/licenses/rust/rustix-1.1.3/LICENSE-APACHE +201 -0
- package/licenses/rust/rustix-1.1.3/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/licenses/rust/rustix-1.1.3/LICENSE-MIT +23 -0
- package/licenses/rust/rustls-0.23.45/LICENSE-APACHE +201 -0
- package/licenses/rust/rustls-0.23.45/LICENSE-ISC +15 -0
- package/licenses/rust/rustls-0.23.45/LICENSE-MIT +25 -0
- package/licenses/rust/rustls-pki-types-1.15.1/LICENSE-APACHE +201 -0
- package/licenses/rust/rustls-pki-types-1.15.1/LICENSE-MIT +25 -0
- package/licenses/rust/rustls-webpki-0.103.15/LICENSE +19 -0
- package/licenses/rust/ryu-1.0.22/LICENSE-APACHE +176 -0
- package/licenses/rust/ryu-1.0.22/LICENSE-BOOST +23 -0
- package/licenses/rust/scopeguard-1.2.0/LICENSE-APACHE +201 -0
- package/licenses/rust/scopeguard-1.2.0/LICENSE-MIT +25 -0
- package/licenses/rust/serde-1.0.228/LICENSE-APACHE +176 -0
- package/licenses/rust/serde-1.0.228/LICENSE-MIT +23 -0
- package/licenses/rust/serde_core-1.0.228/LICENSE-APACHE +176 -0
- package/licenses/rust/serde_core-1.0.228/LICENSE-MIT +23 -0
- package/licenses/rust/serde_derive-1.0.228/LICENSE-APACHE +176 -0
- package/licenses/rust/serde_derive-1.0.228/LICENSE-MIT +23 -0
- package/licenses/rust/serde_json-1.0.149/LICENSE-APACHE +176 -0
- package/licenses/rust/serde_json-1.0.149/LICENSE-MIT +23 -0
- package/licenses/rust/serde_urlencoded-0.7.1/LICENSE-APACHE +176 -0
- package/licenses/rust/serde_urlencoded-0.7.1/LICENSE-MIT +25 -0
- package/licenses/rust/shlex-2.0.1/LICENSE-APACHE +13 -0
- package/licenses/rust/shlex-2.0.1/LICENSE-MIT +21 -0
- package/licenses/rust/signal-hook-registry-1.4.8/LICENSE-APACHE +201 -0
- package/licenses/rust/signal-hook-registry-1.4.8/LICENSE-MIT +25 -0
- package/licenses/rust/slab-0.4.12/LICENSE +25 -0
- package/licenses/rust/smallvec-1.15.1/LICENSE-APACHE +201 -0
- package/licenses/rust/smallvec-1.15.1/LICENSE-MIT +25 -0
- package/licenses/rust/socket2-0.6.1/LICENSE-APACHE +201 -0
- package/licenses/rust/socket2-0.6.1/LICENSE-MIT +25 -0
- package/licenses/rust/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
- package/licenses/rust/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
- package/licenses/rust/static_assertions-1.1.0/LICENSE-APACHE +202 -0
- package/licenses/rust/static_assertions-1.1.0/LICENSE-MIT +21 -0
- package/licenses/rust/strsim-0.11.1/LICENSE +23 -0
- package/licenses/rust/strum-0.20.0/LICENSE +21 -0
- package/licenses/rust/strum_macros-0.20.1/LICENSE +21 -0
- package/licenses/rust/subtle-2.6.1/LICENSE +29 -0
- package/licenses/rust/syn-1.0.109/LICENSE-APACHE +201 -0
- package/licenses/rust/syn-1.0.109/LICENSE-MIT +23 -0
- package/licenses/rust/syn-2.0.114/LICENSE-APACHE +176 -0
- package/licenses/rust/syn-2.0.114/LICENSE-MIT +23 -0
- package/licenses/rust/syn-3.0.6/LICENSE-APACHE +176 -0
- package/licenses/rust/syn-3.0.6/LICENSE-MIT +23 -0
- package/licenses/rust/sync_wrapper-1.0.2/LICENSE +177 -0
- package/licenses/rust/synstructure-0.14.0/LICENSE +7 -0
- package/licenses/rust/tempfile-3.24.0/LICENSE-APACHE +201 -0
- package/licenses/rust/tempfile-3.24.0/LICENSE-MIT +25 -0
- package/licenses/rust/thiserror-1.0.69/LICENSE-APACHE +176 -0
- package/licenses/rust/thiserror-1.0.69/LICENSE-MIT +23 -0
- package/licenses/rust/thiserror-2.0.21/LICENSE-APACHE +176 -0
- package/licenses/rust/thiserror-2.0.21/LICENSE-MIT +23 -0
- package/licenses/rust/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
- package/licenses/rust/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
- package/licenses/rust/thiserror-impl-2.0.21/LICENSE-APACHE +176 -0
- package/licenses/rust/thiserror-impl-2.0.21/LICENSE-MIT +23 -0
- package/licenses/rust/tinystr-0.8.4/LICENSE +46 -0
- package/licenses/rust/tinyvec-1.13.3/LICENSE-APACHE.md +202 -0
- package/licenses/rust/tinyvec-1.13.3/LICENSE-MIT.md +5 -0
- package/licenses/rust/tinyvec-1.13.3/LICENSE-ZLIB.md +11 -0
- package/licenses/rust/tokio-1.49.0/LICENSE +21 -0
- package/licenses/rust/tokio-macros-2.6.0/LICENSE +22 -0
- package/licenses/rust/tokio-rustls-0.26.6/LICENSE-APACHE +201 -0
- package/licenses/rust/tokio-rustls-0.26.6/LICENSE-MIT +25 -0
- package/licenses/rust/tower-0.5.3/LICENSE +25 -0
- package/licenses/rust/tower-http-0.6.11/LICENSE +25 -0
- package/licenses/rust/tower-layer-0.3.3/LICENSE +25 -0
- package/licenses/rust/tower-service-0.3.3/LICENSE +25 -0
- package/licenses/rust/tracing-0.1.44/LICENSE +25 -0
- package/licenses/rust/tracing-core-0.1.36/LICENSE +25 -0
- package/licenses/rust/try-lock-0.2.5/LICENSE +21 -0
- package/licenses/rust/unicode-ident-1.0.22/LICENSE-APACHE +176 -0
- package/licenses/rust/unicode-ident-1.0.22/LICENSE-MIT +23 -0
- package/licenses/rust/unicode-ident-1.0.22/LICENSE-UNICODE +39 -0
- package/licenses/rust/unicode-segmentation-1.12.0/COPYRIGHT +7 -0
- package/licenses/rust/unicode-segmentation-1.12.0/LICENSE-APACHE +201 -0
- package/licenses/rust/unicode-segmentation-1.12.0/LICENSE-MIT +25 -0
- package/licenses/rust/untrusted-0.9.0/LICENSE.txt +13 -0
- package/licenses/rust/url-2.5.8/LICENSE-APACHE +201 -0
- package/licenses/rust/url-2.5.8/LICENSE-MIT +25 -0
- package/licenses/rust/utf8_iter-1.0.4/COPYRIGHT +42 -0
- package/licenses/rust/utf8_iter-1.0.4/LICENSE-APACHE +202 -0
- package/licenses/rust/utf8_iter-1.0.4/LICENSE-MIT +25 -0
- package/licenses/rust/utf8parse-0.2.2/LICENSE-APACHE +176 -0
- package/licenses/rust/utf8parse-0.2.2/LICENSE-MIT +25 -0
- package/licenses/rust/version_check-0.9.5/LICENSE-APACHE +201 -0
- package/licenses/rust/version_check-0.9.5/LICENSE-MIT +19 -0
- package/licenses/rust/want-0.3.2/LICENSE +20 -0
- package/licenses/rust/webpki-roots-1.0.9/LICENSE +61 -0
- package/licenses/rust/writeable-0.6.4/LICENSE +46 -0
- package/licenses/rust/yoke-0.8.3/LICENSE +46 -0
- package/licenses/rust/yoke-derive-0.8.4/LICENSE +46 -0
- package/licenses/rust/zerofrom-0.1.8/LICENSE +46 -0
- package/licenses/rust/zerofrom-derive-0.1.8/LICENSE +46 -0
- package/licenses/rust/zeroize-1.9.1/LICENSE-APACHE +202 -0
- package/licenses/rust/zeroize-1.9.1/LICENSE-MIT +25 -0
- package/licenses/rust/zerotrie-0.2.5/LICENSE +46 -0
- package/licenses/rust/zerovec-0.11.8/LICENSE +46 -0
- package/licenses/rust/zerovec-derive-0.11.6/LICENSE +46 -0
- package/licenses/rust/zmij-1.0.14/LICENSE-MIT +23 -0
- package/package.json +33 -4
- package/runtime/bin/heaplens +0 -0
- package/runtime/bin/hprof-server +0 -0
- package/runtime/browser-ui/ai-actions.cjs +126 -0
- package/runtime/browser-ui/ai.cjs +121 -0
- package/runtime/browser-ui/build/fix-system-prompt.txt +17 -0
- package/runtime/browser-ui/build/index.html +7605 -0
- package/runtime/browser-ui/build/prompts.cjs +188 -0
- package/runtime/browser-ui/build/providers.json +65 -0
- package/runtime/browser-ui/build/system-prompt.txt +41 -0
- package/runtime/browser-ui/consent-actions.cjs +25 -0
- package/runtime/browser-ui/export-actions.cjs +47 -0
- package/runtime/browser-ui/guards.cjs +8 -0
- package/runtime/browser-ui/monitor-actions.cjs +37 -0
- package/runtime/browser-ui/monitor.cjs +73 -0
- package/runtime/browser-ui/object-actions.cjs +60 -0
- package/runtime/browser-ui/progressive-actions.cjs +6 -0
- package/runtime/browser-ui/rpc.cjs +115 -0
- package/runtime/browser-ui/server.cjs +209 -0
- package/runtime/browser-ui/session.cjs +184 -0
- package/runtime/browser-ui/snapshot-actions.cjs +38 -0
- package/runtime/browser-ui/source-actions.cjs +38 -0
- package/runtime/browser-ui/sources.cjs +72 -0
- package/runtime/browser-ui/telemetry-actions.cjs +39 -0
- package/runtime/browser-ui/waste-actions.cjs +20 -0
- package/runtime/package.json +1 -0
- package/runtime/telemetry/contract.cjs +31 -0
- package/runtime/telemetry/contract.json +60 -0
- package/runtime/telemetry/node.cjs +62 -0
package/bin/heaplens.cjs
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
// Distribution adapter only. The Rust CLI and the IDEs keep their own contracts.
|
|
4
|
+
const fs = require('node:fs');
|
|
5
|
+
const path = require('node:path');
|
|
6
|
+
const { spawn } = require('node:child_process');
|
|
7
|
+
const { constants } = require('node:os');
|
|
8
|
+
|
|
9
|
+
function commandIndex(args) {
|
|
10
|
+
const values = new Set(['--format', '--backend', '--rows', '--output', '--diagnostics', '--telemetry']);
|
|
11
|
+
for (let i = 0; i < args.length; i++) {
|
|
12
|
+
if (['analyze', 'query', 'compare', 'open'].includes(args[i])) return i;
|
|
13
|
+
if (values.has(args[i])) { i++; continue; }
|
|
14
|
+
if (['--quiet'].includes(args[i]) || [...values].some(flag => args[i].startsWith(flag + '='))) continue;
|
|
15
|
+
// Leave help, malformed options and unrecognized commands to Clap.
|
|
16
|
+
return -1;
|
|
17
|
+
}
|
|
18
|
+
return -1;
|
|
19
|
+
}
|
|
20
|
+
function launchPlan(root, args, { platform = process.platform, arch = process.arch, node = process.execPath } = {}) {
|
|
21
|
+
const manifest = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
|
|
22
|
+
if (!manifest.os.includes(platform) || !manifest.cpu.includes(arch))
|
|
23
|
+
throw Error('This HeapLens CLI package supports macOS Apple Silicon only.');
|
|
24
|
+
const executable = path.join(root, 'runtime', 'bin', 'heaplens');
|
|
25
|
+
if (!fs.statSync(executable).isFile()) throw Error('Missing packaged analysis executable.');
|
|
26
|
+
const argv = [...args], index = commandIndex(args);
|
|
27
|
+
if (index >= 0 && args[index] === 'open') {
|
|
28
|
+
const defaults = {
|
|
29
|
+
'--node': node,
|
|
30
|
+
'--ui-host': path.join(root, 'runtime', 'browser-ui', 'server.cjs'),
|
|
31
|
+
'--server': path.join(root, 'runtime', 'bin', 'hprof-server')
|
|
32
|
+
};
|
|
33
|
+
const supplied = flag => args.some(arg => arg === flag || arg.startsWith(flag + '='));
|
|
34
|
+
const injected = Object.entries(defaults).flatMap(([flag, value]) => supplied(flag) ? [] : [flag, value]);
|
|
35
|
+
argv.splice(index + 1, 0, ...injected);
|
|
36
|
+
}
|
|
37
|
+
return { executable, args: argv };
|
|
38
|
+
}
|
|
39
|
+
function main(args = process.argv.slice(2)) {
|
|
40
|
+
if (Number(process.versions.node.split('.')[0]) < 22) {
|
|
41
|
+
process.stderr.write('HeapLens CLI requires Node.js 22 or newer.\n');
|
|
42
|
+
process.exitCode = 2; return;
|
|
43
|
+
}
|
|
44
|
+
let plan;
|
|
45
|
+
try { plan = launchPlan(path.resolve(__dirname, '..'), args); }
|
|
46
|
+
catch (error) {
|
|
47
|
+
process.stderr.write((error.message.startsWith('This HeapLens') ? error.message : 'HeapLens CLI package is incomplete. Reinstall the standalone package.') + '\n');
|
|
48
|
+
process.exitCode = 3; return;
|
|
49
|
+
}
|
|
50
|
+
// An owned POSIX process group lets Ctrl+C/termination reach the browser host
|
|
51
|
+
// and its analysis servers, not only the Rust parent waiting for that host.
|
|
52
|
+
const grouped = process.platform !== 'win32';
|
|
53
|
+
const child = spawn(plan.executable, plan.args, { stdio: 'inherit', shell: false, detached: grouped, windowsHide: true });
|
|
54
|
+
const handlers = new Map();
|
|
55
|
+
for (const signal of ['SIGINT', 'SIGTERM', 'SIGHUP']) {
|
|
56
|
+
const handler = () => {
|
|
57
|
+
try { grouped && child.pid ? process.kill(-child.pid, signal) : child.kill(signal); }
|
|
58
|
+
catch { /* Child may already have exited. */ }
|
|
59
|
+
};
|
|
60
|
+
handlers.set(signal, handler); process.on(signal, handler);
|
|
61
|
+
}
|
|
62
|
+
child.once('error', () => {
|
|
63
|
+
process.stderr.write('Cannot start the packaged HeapLens executable. Check the installation and platform.\n');
|
|
64
|
+
process.exitCode = 3;
|
|
65
|
+
});
|
|
66
|
+
child.once('close', (code, signal) => {
|
|
67
|
+
for (const [name, handler] of handlers) process.removeListener(name, handler);
|
|
68
|
+
if (process.exitCode === undefined) process.exitCode = code ?? (128 + (constants.signals[signal] || 1));
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
if (require.main === module) main();
|
|
72
|
+
module.exports = { commandIndex, launchPlan };
|