tolmap 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/BUILD_INFO.md +17 -0
- package/LICENSE +21 -0
- package/LICENSE-DISTRIBUTION.md +49 -0
- package/README.md +49 -2
- package/SOURCE-BUILD.md +93 -0
- package/SOURCE.json +50 -0
- package/THIRD_PARTY_NOTICES.md +23 -0
- package/bin/tolmap.js +99 -0
- package/lib/libblas.so.3 +0 -0
- package/lib/libgfortran.so.5 +0 -0
- package/lib/libgmp.so.10 +0 -0
- package/lib/libgomp.so.1 +0 -0
- package/lib/libicudata.so.70 +0 -0
- package/lib/libicuuc.so.70 +0 -0
- package/lib/libigraph.so.4 +0 -0
- package/lib/liblapack.so.3 +0 -0
- package/lib/liblibleidenalg.so.1 +0 -0
- package/lib/liblzma.so.5 +0 -0
- package/lib/libquadmath.so.0 +0 -0
- package/lib/libxml2.so.2 +0 -0
- package/lib/libz.so.1 +0 -0
- package/lib/tolmap +0 -0
- package/licenses/native/igraph-1.0.0/COPYING +340 -0
- package/licenses/native/igraph-1.0.0/vendor/cs/License.txt +19 -0
- package/licenses/native/igraph-1.0.0/vendor/glpk/COPYING +674 -0
- package/licenses/native/igraph-1.0.0/vendor/glpk/amd/COPYING +502 -0
- package/licenses/native/igraph-1.0.0/vendor/glpk/colamd/COPYING +502 -0
- package/licenses/native/igraph-1.0.0/vendor/glpk/minisat/LICENSE +20 -0
- package/licenses/native/igraph-1.0.0/vendor/pcg/LICENSE.txt +19 -0
- package/licenses/native/igraph-1.0.0/vendor/qhull/COPYING.txt +39 -0
- package/licenses/native/libleidenalg-0.12.0/LICENSE +674 -0
- package/licenses/runtime/common-licenses/Apache-2.0 +202 -0
- package/licenses/runtime/common-licenses/Artistic +131 -0
- package/licenses/runtime/common-licenses/BSD +26 -0
- package/licenses/runtime/common-licenses/CC0-1.0 +121 -0
- package/licenses/runtime/common-licenses/GFDL-1.2 +397 -0
- package/licenses/runtime/common-licenses/GFDL-1.3 +451 -0
- package/licenses/runtime/common-licenses/GPL-1 +251 -0
- package/licenses/runtime/common-licenses/GPL-2 +339 -0
- package/licenses/runtime/common-licenses/GPL-3 +674 -0
- package/licenses/runtime/common-licenses/LGPL-2 +481 -0
- package/licenses/runtime/common-licenses/LGPL-2.1 +502 -0
- package/licenses/runtime/common-licenses/LGPL-3 +165 -0
- package/licenses/runtime/common-licenses/MPL-1.1 +469 -0
- package/licenses/runtime/common-licenses/MPL-2.0 +373 -0
- package/licenses/runtime/libblas3-3.10.0-2ubuntu1-copyright +96 -0
- package/licenses/runtime/libgfortran5-12.3.0-1ubuntu1~22.04.3-copyright +1512 -0
- package/licenses/runtime/libgmp10-2:6.2.1+dfsg-3ubuntu1-copyright +60 -0
- package/licenses/runtime/libgomp1-12.3.0-1ubuntu1~22.04.3-copyright +1512 -0
- package/licenses/runtime/libicu70-70.1-2-copyright +49 -0
- package/licenses/runtime/liblapack3-3.10.0-2ubuntu1-copyright +96 -0
- package/licenses/runtime/liblzma5-5.2.5-2ubuntu1.2-copyright +388 -0
- package/licenses/runtime/libquadmath0-12.3.0-1ubuntu1~22.04.3-copyright +1512 -0
- package/licenses/runtime/libxml2-2.9.13+dfsg-1ubuntu0.14-copyright +75 -0
- package/licenses/runtime/zlib1g-1:1.2.11.dfsg-2ubuntu9.2-copyright +83 -0
- package/licenses/web/THIRD_PARTY_NOTICES.md +26 -0
- package/licenses/web/class-variance-authority@0.7.1/LICENSE +190 -0
- package/licenses/web/clsx@2.1.1/license +9 -0
- package/licenses/web/codemirror__language-data@6.5.2/LICENSE +21 -0
- package/licenses/web/codemirror__language@6.13.1/LICENSE +21 -0
- package/licenses/web/codemirror__search@6.7.2/LICENSE +21 -0
- package/licenses/web/codemirror__state@6.7.6/LICENSE +21 -0
- package/licenses/web/codemirror__view@6.43.14/LICENSE +21 -0
- package/licenses/web/js-tokens@4.0.0/LICENSE +21 -0
- package/licenses/web/loose-envify@1.4.0/LICENSE +21 -0
- package/licenses/web/packages.json +182 -0
- package/licenses/web/radix-ui__react-scroll-area@1.2.18/LICENSE +21 -0
- package/licenses/web/radix-ui__react-separator@1.1.15/LICENSE +21 -0
- package/licenses/web/radix-ui__react-slot@1.3.3/LICENSE +21 -0
- package/licenses/web/radix-ui__react-toggle-group@1.1.19/LICENSE +21 -0
- package/licenses/web/radix-ui__react-toggle@1.1.18/LICENSE +21 -0
- package/licenses/web/react-dom@18.3.1/LICENSE +21 -0
- package/licenses/web/react@18.3.1/LICENSE +21 -0
- package/licenses/web/scheduler@0.23.2/LICENSE +21 -0
- package/licenses/web/tailwind-merge@2.6.1/LICENSE.md +21 -0
- package/licenses/web/tanstack__react-query@5.103.1/LICENSE +21 -0
- package/licenses/web/tanstack__react-router@1.170.38/LICENSE +21 -0
- package/package.json +37 -4
- package/web/dist/assets/apl-gfMMiTNf.js +1 -0
- package/web/dist/assets/asciiarmor-C_eisQCp.js +1 -0
- package/web/dist/assets/asn1-DCl_8MCW.js +1 -0
- package/web/dist/assets/asterisk-BEn0Cwpx.js +1 -0
- package/web/dist/assets/brainfuck-D5EjA2JK.js +1 -0
- package/web/dist/assets/clike-D_6L3tnO.js +1 -0
- package/web/dist/assets/clojure-BflJGmDX.js +1 -0
- package/web/dist/assets/cmake-84nbDH0I.js +1 -0
- package/web/dist/assets/cobol-DHLQUbN7.js +1 -0
- package/web/dist/assets/coffeescript-De_zI4J0.js +1 -0
- package/web/dist/assets/commonlisp-DgAKBe0r.js +1 -0
- package/web/dist/assets/crystal-Bsdphhtm.js +1 -0
- package/web/dist/assets/css-CnaYoQib.js +1 -0
- package/web/dist/assets/cypher-p9eYesGn.js +1 -0
- package/web/dist/assets/d-DWkQyNnU.js +1 -0
- package/web/dist/assets/diff-ChtP43wD.js +1 -0
- package/web/dist/assets/dist-6c4aXhbi.js +1 -0
- package/web/dist/assets/dist-B2ExgJ2X.js +1 -0
- package/web/dist/assets/dist-B2pJ5QS3.js +1 -0
- package/web/dist/assets/dist-BNhij8mV.js +1 -0
- package/web/dist/assets/dist-B_Er-tdr.js +1 -0
- package/web/dist/assets/dist-BiDoRe9D.js +2 -0
- package/web/dist/assets/dist-BjkGnrMZ.js +1 -0
- package/web/dist/assets/dist-BpNbQKDx.js +1 -0
- package/web/dist/assets/dist-BwlwqxvG.js +1 -0
- package/web/dist/assets/dist-CPKhY-Mt.js +1 -0
- package/web/dist/assets/dist-Cb3YMdvA.js +6 -0
- package/web/dist/assets/dist-CbwrhYdz.js +9 -0
- package/web/dist/assets/dist-CllfLwoI.js +1 -0
- package/web/dist/assets/dist-CsYenlD4.js +1 -0
- package/web/dist/assets/dist-CtZX6MYS.js +1 -0
- package/web/dist/assets/dist-CwgAOVvQ.js +1 -0
- package/web/dist/assets/dist-D59573Id.js +1 -0
- package/web/dist/assets/dist-D9DZdvJR.js +1 -0
- package/web/dist/assets/dist-DTc8flxp.js +23 -0
- package/web/dist/assets/dist-DhiTCntv.js +1 -0
- package/web/dist/assets/dist-Du1n7ZSG.js +1 -0
- package/web/dist/assets/dist-aThlveSw.js +11 -0
- package/web/dist/assets/dist-nRE-0GfQ.js +1 -0
- package/web/dist/assets/dockerfile-DJkHQgkl.js +1 -0
- package/web/dist/assets/dtd-DTF72YNO.js +1 -0
- package/web/dist/assets/dylan-BCDoL_-p.js +1 -0
- package/web/dist/assets/ebnf-D4c0_ac3.js +1 -0
- package/web/dist/assets/ecl-BVIeWmwY.js +1 -0
- package/web/dist/assets/eiffel-BEjRio4Q.js +1 -0
- package/web/dist/assets/elm-Cshzl8qu.js +1 -0
- package/web/dist/assets/erlang-BV0c4Hdn.js +1 -0
- package/web/dist/assets/factor-LKH5gN8L.js +1 -0
- package/web/dist/assets/fcl-ClOhbFR7.js +1 -0
- package/web/dist/assets/forth-D6RzAl64.js +1 -0
- package/web/dist/assets/fortran-Bt6PBEDR.js +1 -0
- package/web/dist/assets/gas-BHEdbvp9.js +1 -0
- package/web/dist/assets/gherkin-oBAE_ms0.js +1 -0
- package/web/dist/assets/groovy-CUpZ7dEl.js +1 -0
- package/web/dist/assets/haskell-BRsoo5mP.js +1 -0
- package/web/dist/assets/haxe-DjVOVvNP.js +1 -0
- package/web/dist/assets/http-CLVgA2GD.js +1 -0
- package/web/dist/assets/idl-BUZw3wgd.js +1 -0
- package/web/dist/assets/index-4j3Wxxou.js +24 -0
- package/web/dist/assets/index-Cds4WK9K.css +1 -0
- package/web/dist/assets/javascript-Bu8mWwtz.js +1 -0
- package/web/dist/assets/jsonParse.worker-DEEnj3gk.js +1 -0
- package/web/dist/assets/julia-CQfgDRfP.js +1 -0
- package/web/dist/assets/livescript-BXxG0Yva.js +1 -0
- package/web/dist/assets/lua-DPCEkfD_.js +1 -0
- package/web/dist/assets/mathematica-u8YMmbU0.js +1 -0
- package/web/dist/assets/mbox-BEMVcqjs.js +1 -0
- package/web/dist/assets/mirc-C9zpzAZU.js +1 -0
- package/web/dist/assets/mllike-B45xgp2S.js +1 -0
- package/web/dist/assets/modelica-CqHI_q-D.js +1 -0
- package/web/dist/assets/mscgen-qgSLujhx.js +1 -0
- package/web/dist/assets/mumps-BSzj6Xyz.js +1 -0
- package/web/dist/assets/nginx-8H7HVH4w.js +1 -0
- package/web/dist/assets/nsis-viPvXFiq.js +1 -0
- package/web/dist/assets/ntriples-B9h1VB_g.js +1 -0
- package/web/dist/assets/octave-D2Q8cUp1.js +1 -0
- package/web/dist/assets/oz-BwTct_5T.js +1 -0
- package/web/dist/assets/pascal-Dp_KdFgX.js +1 -0
- package/web/dist/assets/perl-BkSkiI9m.js +1 -0
- package/web/dist/assets/pig-AF4Hwhju.js +1 -0
- package/web/dist/assets/powershell-BcIto6Sf.js +1 -0
- package/web/dist/assets/properties-C357ku5U.js +1 -0
- package/web/dist/assets/protobuf-D1ij_kNL.js +1 -0
- package/web/dist/assets/pug-3K-JMW4g.js +1 -0
- package/web/dist/assets/puppet-BZyAS7I4.js +1 -0
- package/web/dist/assets/python-B_1Jd8HM.js +1 -0
- package/web/dist/assets/q-B9NhS7L_.js +1 -0
- package/web/dist/assets/r-CxDmU1I4.js +1 -0
- package/web/dist/assets/rpm-gpDK5sbt.js +1 -0
- package/web/dist/assets/ruby-ChfNwlCY.js +1 -0
- package/web/dist/assets/sas-C2OyD2Y6.js +1 -0
- package/web/dist/assets/scheme-D9qYN0V5.js +1 -0
- package/web/dist/assets/shell-DwuoZtxw.js +1 -0
- package/web/dist/assets/sieve-tLWDfEkZ.js +1 -0
- package/web/dist/assets/simple-mode-DXiLM1-G.js +1 -0
- package/web/dist/assets/smalltalk-BLp5-jwC.js +1 -0
- package/web/dist/assets/solr-B78wSQJQ.js +1 -0
- package/web/dist/assets/sparql-Dz-mlCAC.js +1 -0
- package/web/dist/assets/spreadsheet-CTIncYxj.js +1 -0
- package/web/dist/assets/sql-DuQMFDvy.js +1 -0
- package/web/dist/assets/stex-DNzd62Q_.js +1 -0
- package/web/dist/assets/stylus-BOVgKnng.js +1 -0
- package/web/dist/assets/swift-DKB6_1j6.js +1 -0
- package/web/dist/assets/tcl-BGfruO1u.js +1 -0
- package/web/dist/assets/textile-C4jVoHG1.js +1 -0
- package/web/dist/assets/tiddlywiki-VlUiK86J.js +1 -0
- package/web/dist/assets/tiki-AK6FwT8q.js +1 -0
- package/web/dist/assets/toml-BPTmHmyx.js +1 -0
- package/web/dist/assets/troff-C2dAgh7P.js +1 -0
- package/web/dist/assets/ttcn-PPSTk1ow.js +1 -0
- package/web/dist/assets/ttcn-cfg-2b4Gb5sE.js +1 -0
- package/web/dist/assets/turtle-Cx3rYX2g.js +1 -0
- package/web/dist/assets/vb-BthdM_4N.js +1 -0
- package/web/dist/assets/vbscript-D9f6rSsU.js +1 -0
- package/web/dist/assets/velocity-CqftRsjg.js +1 -0
- package/web/dist/assets/verilog-CjI9Y6RI.js +1 -0
- package/web/dist/assets/vhdl-kS471soi.js +1 -0
- package/web/dist/assets/webidl-D5jiJvOU.js +1 -0
- package/web/dist/assets/xquery-BKJx4mf9.js +1 -0
- package/web/dist/assets/yacas-CXXgtw0p.js +1 -0
- package/web/dist/assets/z80-Co3PbHdE.js +1 -0
- package/web/dist/favicon.svg +1 -0
- package/web/dist/fonts/archivo/Archivo-Bold.woff2 +0 -0
- package/web/dist/fonts/archivo/Archivo-Medium.woff2 +0 -0
- package/web/dist/fonts/archivo/Archivo-Regular.woff2 +0 -0
- package/web/dist/fonts/archivo/Archivo-SemiBold.woff2 +0 -0
- package/web/dist/fonts/archivo/OFL.txt +93 -0
- package/web/dist/fonts/ibm-plex-mono/IBMPlexMono-Bold-Latin1.woff2 +0 -0
- package/web/dist/fonts/ibm-plex-mono/IBMPlexMono-Medium-Latin1.woff2 +0 -0
- package/web/dist/fonts/ibm-plex-mono/IBMPlexMono-Regular-Latin1.woff2 +0 -0
- package/web/dist/fonts/ibm-plex-mono/IBMPlexMono-SemiBold-Latin1.woff2 +0 -0
- package/web/dist/fonts/ibm-plex-mono/OFL.txt +93 -0
- package/web/dist/icons.svg +24 -0
- package/web/dist/index.html +47 -0
package/BUILD_INFO.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Build information
|
|
2
|
+
|
|
3
|
+
- Package: tolmap@0.1.0
|
|
4
|
+
- Source commit: a8395b4b56f4203a48216dfab63033fb544db5b9
|
|
5
|
+
- Build image: Ubuntu 22.04 x86-64 (glibc 2.35)
|
|
6
|
+
- Native libraries: igraph 1.0.0 and libleidenalg 0.12.0
|
|
7
|
+
- Web build: Node 24.21.0, pnpm 9.15.9, frozen lockfile
|
|
8
|
+
- Runtime scope: linux-x64 with glibc >= 2.35
|
|
9
|
+
|
|
10
|
+
## Corresponding source for this package
|
|
11
|
+
|
|
12
|
+
- URL: https://github.com/onsager-ai/tolmap/releases/download/v0.1.0/tolmap-0.1.0-corresponding-source-a8395b4b56f4203a48216dfab63033fb544db5b9.tar.gz
|
|
13
|
+
- SHA-256: `12f9f3282d9f1edb9a20bab45af0ee4411a64dfda419891a7e66589f22817a6f`
|
|
14
|
+
- Size: 188323903 bytes
|
|
15
|
+
- Source commit: `a8395b4b56f4203a48216dfab63033fb544db5b9`
|
|
16
|
+
|
|
17
|
+
See `SOURCE.json` and `SOURCE-BUILD.md` for verification and build instructions.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 onsager-ai
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Terms for this distribution
|
|
2
|
+
|
|
3
|
+
The bundled native executable `lib/tolmap`, linked with libleidenalg 0.12.0
|
|
4
|
+
and igraph 1.0.0, is conveyed as a combined work under **GPL-3.0-or-later**.
|
|
5
|
+
The npm package's SPDX license field describes these distribution terms.
|
|
6
|
+
You may run, study, modify and redistribute it under those terms. There is
|
|
7
|
+
no warranty; see the included GPL text in `licenses/native/`.
|
|
8
|
+
|
|
9
|
+
The tolmap authors' original source remains MIT licensed. The repository's
|
|
10
|
+
unaltered MIT `LICENSE` is included. This distribution does not change the
|
|
11
|
+
license of that source when obtained separately. Third-party components retain
|
|
12
|
+
their copyright notices and licenses, included under `licenses/`.
|
|
13
|
+
|
|
14
|
+
Upstream grants at the actual source tags:
|
|
15
|
+
|
|
16
|
+
- [libleidenalg 0.12.0 README, license paragraph](https://github.com/vtraag/libleidenalg/blob/0.12.0/README.md#license): GPL version 3 or any later version; its LICENSE supplies the GPLv3 text.
|
|
17
|
+
- [igraph 1.0.0 source header](https://github.com/igraph/igraph/blob/1.0.0/src/graph/type_indexededgelist.c): GPL version 2 or any later version. We exercise that grant under GPLv3-or-later for this linked distribution. Its vendored components and notices are retained in the original source archive and copied license tree.
|
|
18
|
+
- Bundled Ubuntu runtime libraries are enumerated from the actual dependency
|
|
19
|
+
closure, with binary and source package names, exact versions and copyright
|
|
20
|
+
files in `THIRD_PARTY_NOTICES.md` and `licenses/runtime/`.
|
|
21
|
+
- Rust dependency sources, licenses and checksums are included in the source
|
|
22
|
+
bundle's `vendor/`. Production web dependency notices are in `licenses/web/`;
|
|
23
|
+
their original sources accompany the bundle in `web-packages/`.
|
|
24
|
+
|
|
25
|
+
## Corresponding source network location
|
|
26
|
+
|
|
27
|
+
The complete corresponding source is offered at the designated durable GitHub
|
|
28
|
+
release URL in the package's `SOURCE.json`. That file records the exact URL,
|
|
29
|
+
SHA-256, byte size, source commit, and native and Ubuntu source components.
|
|
30
|
+
The source is kept available alongside the package, per GPLv3 §6(d).
|
|
31
|
+
`SOURCE-BUILD.md` explains downloading, verifying and rebuilding it.
|
|
32
|
+
|
|
33
|
+
The separate source archive contains the exact tolmap source commit, Cargo.lock,
|
|
34
|
+
build.rs, native bridge, web source/lockfile, build and installation scripts,
|
|
35
|
+
vendored Rust dependencies, the exact native source archives used by the build,
|
|
36
|
+
and source packages for every non-system runtime library bundled from Ubuntu.
|
|
37
|
+
The internal `BUILD.md`, `BUILD-ENV.txt` and `SHA256SUMS` describe reproduction,
|
|
38
|
+
tool versions, source URLs and checksums. Download and verify the archive against
|
|
39
|
+
`SOURCE.json` before extracting it to modify and rebuild. Actions artifacts are
|
|
40
|
+
build outputs, not the public source offer.
|
|
41
|
+
|
|
42
|
+
## Corresponding source for this package
|
|
43
|
+
|
|
44
|
+
- URL: https://github.com/onsager-ai/tolmap/releases/download/v0.1.0/tolmap-0.1.0-corresponding-source-a8395b4b56f4203a48216dfab63033fb544db5b9.tar.gz
|
|
45
|
+
- SHA-256: `12f9f3282d9f1edb9a20bab45af0ee4411a64dfda419891a7e66589f22817a6f`
|
|
46
|
+
- Size: 188323903 bytes
|
|
47
|
+
- Source commit: `a8395b4b56f4203a48216dfab63033fb544db5b9`
|
|
48
|
+
|
|
49
|
+
See `SOURCE.json` and `SOURCE-BUILD.md` for verification and build instructions.
|
package/README.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
-
#
|
|
1
|
+
# tolmap
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Install the Linux x64 package with glibc 2.35 or newer:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install -g tolmap
|
|
7
|
+
tolmap --help
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Or run it without a global install:
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npx tolmap --help
|
|
14
|
+
npx tolmap build /path/to/repository --name my-repo --out out
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The package includes its Rust executable, native Leiden/igraph libraries and
|
|
18
|
+
the production web viewer. It does not need Rust, CMake or a compiler on the
|
|
19
|
+
consumer machine. `git` must be available on `PATH` for repository builds and
|
|
20
|
+
`tolmap local`. Node.js >=22.14.0, libstdc++6 and libgcc-s1 are required
|
|
21
|
+
system runtimes (provided by ordinary Ubuntu installations).
|
|
22
|
+
|
|
23
|
+
Run `tolmap local` as an ordinary non-root user, including in containers, with
|
|
24
|
+
`--data` pointing to private storage outside the checkout. Root execution of
|
|
25
|
+
the local journey is unsupported because its worker runs as a different uid
|
|
26
|
+
and cannot traverse root-owned private storage. The packaged viewer is used
|
|
27
|
+
automatically; the server binds only to `127.0.0.1`.
|
|
28
|
+
|
|
29
|
+
Only linux-x64 with glibc >= 2.35 is supported in this release. macOS,
|
|
30
|
+
Windows, Linux arm64 and musl/Alpine are unsupported. See the repository's
|
|
31
|
+
[`docs/NPM.md`](https://github.com/onsager-ai/tolmap/blob/a8395b4b56f4203a48216dfab63033fb544db5b9/docs/NPM.md) for
|
|
32
|
+
local viewer usage, prerequisites, platform details and release procedure.
|
|
33
|
+
|
|
34
|
+
The linked binary is distributed under GPL-3.0-or-later; the original tolmap
|
|
35
|
+
source remains MIT licensed. See `LICENSE-DISTRIBUTION.md`, `LICENSE` and
|
|
36
|
+
`THIRD_PARTY_NOTICES.md`. Complete corresponding source is offered at the
|
|
37
|
+
designated network location in `SOURCE.json`, which pins its exact URL,
|
|
38
|
+
SHA-256, byte size and source commit. It is kept available alongside the package,
|
|
39
|
+
per GPLv3 §6(d). See the included `SOURCE-BUILD.md` for verification and build
|
|
40
|
+
instructions. The npm tarball contains runtime files, notices and this metadata;
|
|
41
|
+
the full source archive is downloaded separately when needed for rebuilding.
|
|
42
|
+
|
|
43
|
+
## Corresponding source for this package
|
|
44
|
+
|
|
45
|
+
- URL: https://github.com/onsager-ai/tolmap/releases/download/v0.1.0/tolmap-0.1.0-corresponding-source-a8395b4b56f4203a48216dfab63033fb544db5b9.tar.gz
|
|
46
|
+
- SHA-256: `12f9f3282d9f1edb9a20bab45af0ee4411a64dfda419891a7e66589f22817a6f`
|
|
47
|
+
- Size: 188323903 bytes
|
|
48
|
+
- Source commit: `a8395b4b56f4203a48216dfab63033fb544db5b9`
|
|
49
|
+
|
|
50
|
+
See `SOURCE.json` and `SOURCE-BUILD.md` for verification and build instructions.
|
package/SOURCE-BUILD.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Obtain and rebuild the corresponding source
|
|
2
|
+
|
|
3
|
+
The npm package's `SOURCE.json` designates the durable public release asset and
|
|
4
|
+
records its exact URL, SHA-256, byte size and source commit. The complete source
|
|
5
|
+
is offered there and kept available alongside the package, per GPLv3 §6(d).
|
|
6
|
+
It is a separate archive; installing or running tolmap does not download it.
|
|
7
|
+
From the installed package directory (containing `SOURCE.json`), download and
|
|
8
|
+
verify it before extraction:
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
python3 - <<'PY'
|
|
12
|
+
import hashlib, json, pathlib, urllib.request
|
|
13
|
+
source = json.loads(pathlib.Path('SOURCE.json').read_text())
|
|
14
|
+
archive = pathlib.Path(source['source_asset'])
|
|
15
|
+
urllib.request.urlretrieve(source['url'], archive)
|
|
16
|
+
assert archive.stat().st_size == source['size_bytes'], 'source size mismatch'
|
|
17
|
+
with archive.open('rb') as stream:
|
|
18
|
+
digest = hashlib.sha256()
|
|
19
|
+
for chunk in iter(lambda: stream.read(1024 * 1024), b''):
|
|
20
|
+
digest.update(chunk)
|
|
21
|
+
assert digest.hexdigest() == source['sha256'], 'source hash mismatch'
|
|
22
|
+
print('Verified source commit:', source['source_commit'])
|
|
23
|
+
PY
|
|
24
|
+
# Use the verified source_asset filename from SOURCE.json:
|
|
25
|
+
tar -xzf "$(python3 -c 'import json; print(json.load(open("SOURCE.json"))["source_asset"])')"
|
|
26
|
+
cd corresponding-source
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This source archive accompanies the npm binary under GPL-3.0-or-later. All copyright
|
|
30
|
+
and license files in vendor/, native archives, Ubuntu source packages and web
|
|
31
|
+
packages are retained. The original tolmap LICENSE is MIT. SOURCE_SHA identifies
|
|
32
|
+
the exact source; BUILD-ENV.txt records the build runner's tool/package versions.
|
|
33
|
+
SHA256SUMS covers every source input. Verify it before rebuilding:
|
|
34
|
+
|
|
35
|
+
sha256sum -c SHA256SUMS
|
|
36
|
+
|
|
37
|
+
Check that `SOURCE_SHA` equals the `source_commit` in the package's `SOURCE.json`.
|
|
38
|
+
|
|
39
|
+
Use Ubuntu 22.04 x86-64 with build-essential, cmake, pkg-config, patchelf, git,
|
|
40
|
+
curl, Python 3.12, and the Rust toolchain version recorded in BUILD-ENV.txt.
|
|
41
|
+
Node 24.21.0 and pnpm 9.15.9 build the web assets. These general purpose tools,
|
|
42
|
+
glibc, libgcc and libstdc++ are system prerequisites, not bundled libraries.
|
|
43
|
+
Runtime source archives downloaded from Ubuntu (ubuntu/) carry their upstream
|
|
44
|
+
archives, Debian patches and .dsc signature/checksum metadata. To rebuild those
|
|
45
|
+
libraries, install dpkg-dev and that source package's build dependencies, run
|
|
46
|
+
`dpkg-source -x <name>.dsc`, then `dpkg-buildpackage -b -uc -us` inside it.
|
|
47
|
+
Install the resulting architecture-appropriate runtime .debs before packaging.
|
|
48
|
+
The exact source package names, versions and download URIs are in ubuntu/.
|
|
49
|
+
|
|
50
|
+
From this directory:
|
|
51
|
+
|
|
52
|
+
export TOLMAP_BUILD_COMMIT=$(cat SOURCE_SHA)
|
|
53
|
+
export TOLMAP_NATIVE_ARCHIVES="$PWD/native-archives"
|
|
54
|
+
export LEIDEN_PREFIX="$PWD/native-install"
|
|
55
|
+
cd tolmap
|
|
56
|
+
mkdir -p .cargo
|
|
57
|
+
# vendor/ is next to tolmap/, so replace only this generated directory path.
|
|
58
|
+
sed "s|directory = .*|directory = \"../vendor\"|" ../CARGO-CONFIG.toml > .cargo/config.toml
|
|
59
|
+
bash scripts/install-leiden.sh "$LEIDEN_PREFIX"
|
|
60
|
+
cargo build --offline --locked --release --bin tolmap
|
|
61
|
+
corepack enable
|
|
62
|
+
corepack prepare pnpm@9.15.9 --activate
|
|
63
|
+
pnpm --dir web install --frozen-lockfile
|
|
64
|
+
pnpm --dir web exec vite build
|
|
65
|
+
|
|
66
|
+
Rust compilation is offline using the accompanied dependencies. The web build
|
|
67
|
+
uses its exact lockfile and the ordinary npm registry for build tooling. The
|
|
68
|
+
production dependency tarballs in web-packages/ are enumerated by
|
|
69
|
+
web-notices/packages.json (same sorted order: 0.tgz, 1.tgz, ...). The editable web
|
|
70
|
+
source and lockfile are in tolmap/web/.
|
|
71
|
+
|
|
72
|
+
For the npm layout, follow scripts/package-npm.sh: copy target/release/tolmap
|
|
73
|
+
into lib/, recursively copy all non-base `ldd` dependencies into lib/, and set
|
|
74
|
+
each ELF's RPATH to `$ORIGIN` with patchelf. Copy web/dist and the npm launcher.
|
|
75
|
+
That script's base-library allowlist is tested in a clean Ubuntu 22.04 consumer.
|
|
76
|
+
The source archive has no Git metadata: the script's Git-SHA guard deliberately
|
|
77
|
+
requires an actual checkout for official release packaging. A modification can
|
|
78
|
+
be run directly from target/release/tolmap, or packaged using a new Git commit
|
|
79
|
+
and that same script; preserve these distribution/source notices.
|
|
80
|
+
|
|
81
|
+
The exact workflow and scripts that built this release are included in
|
|
82
|
+
`tolmap/.github/workflows/` and `tolmap/scripts/`. The npm package's BUILD_INFO.md
|
|
83
|
+
records the source SHA. Rebuild instructions promise source completeness and
|
|
84
|
+
compatible behavior, not byte-identical compiler output across toolchains.
|
|
85
|
+
|
|
86
|
+
## Corresponding source for this package
|
|
87
|
+
|
|
88
|
+
- URL: https://github.com/onsager-ai/tolmap/releases/download/v0.1.0/tolmap-0.1.0-corresponding-source-a8395b4b56f4203a48216dfab63033fb544db5b9.tar.gz
|
|
89
|
+
- SHA-256: `12f9f3282d9f1edb9a20bab45af0ee4411a64dfda419891a7e66589f22817a6f`
|
|
90
|
+
- Size: 188323903 bytes
|
|
91
|
+
- Source commit: `a8395b4b56f4203a48216dfab63033fb544db5b9`
|
|
92
|
+
|
|
93
|
+
See `SOURCE.json` and `SOURCE-BUILD.md` for verification and build instructions.
|
package/SOURCE.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source_commit": "a8395b4b56f4203a48216dfab63033fb544db5b9",
|
|
3
|
+
"package_version": "0.1.0",
|
|
4
|
+
"source_asset": "tolmap-0.1.0-corresponding-source-a8395b4b56f4203a48216dfab63033fb544db5b9.tar.gz",
|
|
5
|
+
"url": "https://github.com/onsager-ai/tolmap/releases/download/v0.1.0/tolmap-0.1.0-corresponding-source-a8395b4b56f4203a48216dfab63033fb544db5b9.tar.gz",
|
|
6
|
+
"sha256": "12f9f3282d9f1edb9a20bab45af0ee4411a64dfda419891a7e66589f22817a6f",
|
|
7
|
+
"size_bytes": 188323903,
|
|
8
|
+
"components": {
|
|
9
|
+
"native": [
|
|
10
|
+
{
|
|
11
|
+
"name": "igraph",
|
|
12
|
+
"version": "1.0.0"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "libleidenalg",
|
|
16
|
+
"version": "0.12.0"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"ubuntu": [
|
|
20
|
+
{
|
|
21
|
+
"name": "gcc-12",
|
|
22
|
+
"version": "12.3.0-1ubuntu1~22.04.3"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "gmp",
|
|
26
|
+
"version": "2:6.2.1+dfsg-3ubuntu1"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "icu",
|
|
30
|
+
"version": "70.1-2"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "lapack",
|
|
34
|
+
"version": "3.10.0-2ubuntu1"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "libxml2",
|
|
38
|
+
"version": "2.9.13+dfsg-1ubuntu0.14"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "xz-utils",
|
|
42
|
+
"version": "5.2.5-2ubuntu1.2"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "zlib",
|
|
46
|
+
"version": "1:1.2.11.dfsg-2ubuntu9.2"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
tolmap's Rust source and original CLI are licensed under MIT; see [LICENSE](LICENSE). The executable is dynamically linked with igraph and libleidenalg, and the production viewer bundles web dependencies. License texts are included under licenses/. See [LICENSE-DISTRIBUTION.md](LICENSE-DISTRIBUTION.md) for GPL-3.0-or-later linked-distribution terms and accompanying corresponding source.
|
|
4
|
+
|
|
5
|
+
| Component | Version | License/source | Included text |
|
|
6
|
+
| --- | --- | --- | --- |
|
|
7
|
+
| tolmap | 0.1.0 | MIT, https://github.com/onsager-ai/tolmap/tree/a8395b4b56f4203a48216dfab63033fb544db5b9 | LICENSE |
|
|
8
|
+
| igraph | 1.0.0 | GPL-2.0-or-later, https://github.com/igraph/igraph/releases/tag/1.0.0 | licenses/native/ |
|
|
9
|
+
| libleidenalg | 0.12.0 | GPL-3.0-or-later, https://github.com/vtraag/libleidenalg/tree/0.12.0 | licenses/native/ |
|
|
10
|
+
| libblas3 | 3.10.0-2ubuntu1 | Debian Ubuntu source package: [lapack 3.10.0-2ubuntu1](https://launchpad.net/ubuntu/+source/lapack/3.10.0-2ubuntu1) | licenses/runtime/libblas3-3.10.0-2ubuntu1-copyright |
|
|
11
|
+
| libgmp10 | 2:6.2.1+dfsg-3ubuntu1 | Debian Ubuntu source package: [gmp 2:6.2.1+dfsg-3ubuntu1](https://launchpad.net/ubuntu/+source/gmp/2:6.2.1+dfsg-3ubuntu1) | licenses/runtime/libgmp10-2:6.2.1+dfsg-3ubuntu1-copyright |
|
|
12
|
+
| liblapack3 | 3.10.0-2ubuntu1 | Debian Ubuntu source package: [lapack 3.10.0-2ubuntu1](https://launchpad.net/ubuntu/+source/lapack/3.10.0-2ubuntu1) | licenses/runtime/liblapack3-3.10.0-2ubuntu1-copyright |
|
|
13
|
+
| libxml2 | 2.9.13+dfsg-1ubuntu0.14 | Debian Ubuntu source package: [libxml2 2.9.13+dfsg-1ubuntu0.14](https://launchpad.net/ubuntu/+source/libxml2/2.9.13+dfsg-1ubuntu0.14) | licenses/runtime/libxml2-2.9.13+dfsg-1ubuntu0.14-copyright |
|
|
14
|
+
| libgomp1 | 12.3.0-1ubuntu1~22.04.3 | Debian Ubuntu source package: [gcc-12 12.3.0-1ubuntu1~22.04.3](https://launchpad.net/ubuntu/+source/gcc-12/12.3.0-1ubuntu1~22.04.3) | licenses/runtime/libgomp1-12.3.0-1ubuntu1~22.04.3-copyright |
|
|
15
|
+
| libgfortran5 | 12.3.0-1ubuntu1~22.04.3 | Debian Ubuntu source package: [gcc-12 12.3.0-1ubuntu1~22.04.3](https://launchpad.net/ubuntu/+source/gcc-12/12.3.0-1ubuntu1~22.04.3) | licenses/runtime/libgfortran5-12.3.0-1ubuntu1~22.04.3-copyright |
|
|
16
|
+
| libicu70 | 70.1-2 | Debian Ubuntu source package: [icu 70.1-2](https://launchpad.net/ubuntu/+source/icu/70.1-2) | licenses/runtime/libicu70-70.1-2-copyright |
|
|
17
|
+
| zlib1g | 1:1.2.11.dfsg-2ubuntu9.2 | Debian Ubuntu source package: [zlib 1:1.2.11.dfsg-2ubuntu9.2](https://launchpad.net/ubuntu/+source/zlib/1:1.2.11.dfsg-2ubuntu9.2) | licenses/runtime/zlib1g-1:1.2.11.dfsg-2ubuntu9.2-copyright |
|
|
18
|
+
| liblzma5 | 5.2.5-2ubuntu1.2 | Debian Ubuntu source package: [xz-utils 5.2.5-2ubuntu1.2](https://launchpad.net/ubuntu/+source/xz-utils/5.2.5-2ubuntu1.2) | licenses/runtime/liblzma5-5.2.5-2ubuntu1.2-copyright |
|
|
19
|
+
| libquadmath0 | 12.3.0-1ubuntu1~22.04.3 | Debian Ubuntu source package: [gcc-12 12.3.0-1ubuntu1~22.04.3](https://launchpad.net/ubuntu/+source/gcc-12/12.3.0-1ubuntu1~22.04.3) | licenses/runtime/libquadmath0-12.3.0-1ubuntu1~22.04.3-copyright |
|
|
20
|
+
|
|
21
|
+
## Production web dependencies
|
|
22
|
+
|
|
23
|
+
The exact installed versions, declared licenses, npm source tarballs and copied license files are listed in [licenses/web/THIRD_PARTY_NOTICES.md](licenses/web/THIRD_PARTY_NOTICES.md).
|
package/bin/tolmap.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const { spawn } = require('node:child_process');
|
|
5
|
+
const os = require('node:os');
|
|
6
|
+
const path = require('node:path');
|
|
7
|
+
const fs = require('node:fs');
|
|
8
|
+
|
|
9
|
+
const supportedGlibc = { major: 2, minor: 35 };
|
|
10
|
+
|
|
11
|
+
function parseVersion(value) {
|
|
12
|
+
const match = /^(\d+)\.(\d+)(?:\.(\d+))?/.exec(value || '');
|
|
13
|
+
return match ? { major: Number(match[1]), minor: Number(match[2]) } : null;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function glibcVersion() {
|
|
17
|
+
if (process.env.TOLMAP_TEST_GLIBC_VERSION !== undefined) {
|
|
18
|
+
return process.env.TOLMAP_TEST_GLIBC_VERSION;
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
return process.report?.getReport()?.header?.glibcVersionRuntime;
|
|
22
|
+
} catch {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const platform = process.env.TOLMAP_TEST_PLATFORM || process.platform;
|
|
28
|
+
const arch = process.env.TOLMAP_TEST_ARCH || process.arch;
|
|
29
|
+
const libc = glibcVersion();
|
|
30
|
+
const libcVersion = parseVersion(libc);
|
|
31
|
+
const meetsGlibcFloor = libcVersion &&
|
|
32
|
+
(libcVersion.major > supportedGlibc.major ||
|
|
33
|
+
(libcVersion.major === supportedGlibc.major && libcVersion.minor >= supportedGlibc.minor));
|
|
34
|
+
|
|
35
|
+
if (platform !== 'linux' || arch !== 'x64' || !meetsGlibcFloor) {
|
|
36
|
+
const detected = libc ? `glibc ${libc}` : 'musl or an unidentified C library';
|
|
37
|
+
process.stderr.write(
|
|
38
|
+
`tolmap 0.1.0 supports linux-x64 with glibc >= 2.35; detected ${platform}-${arch} (${detected}).\n` +
|
|
39
|
+
'Install tolmap on a supported Linux x64 system or build from source.\n',
|
|
40
|
+
);
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const binary = path.resolve(__dirname, '..', 'lib', 'tolmap');
|
|
45
|
+
const args = process.argv.slice(2);
|
|
46
|
+
if (args[0] === 'local' &&
|
|
47
|
+
!args.some((arg) => arg === '--static-dir' || arg.startsWith('--static-dir='))) {
|
|
48
|
+
args.push('--static-dir', path.resolve(__dirname, '..', 'web', 'dist'));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const child = spawn(binary, args, { stdio: 'inherit' });
|
|
52
|
+
const signals = ['SIGINT', 'SIGTERM', 'SIGHUP'];
|
|
53
|
+
// Local workers have their own process groups. Forward to the whole descendant
|
|
54
|
+
// tree as well as the server, so terminating npx cannot leave an engine behind.
|
|
55
|
+
function descendants(pid, seen = new Set()) {
|
|
56
|
+
try {
|
|
57
|
+
for (const task of fs.readdirSync(`/proc/${pid}/task`)) {
|
|
58
|
+
const children = fs.readFileSync(`/proc/${pid}/task/${task}/children`, 'utf8').trim();
|
|
59
|
+
for (const value of children.split(/\s+/).filter(Boolean)) {
|
|
60
|
+
const next = Number(value);
|
|
61
|
+
if (!seen.has(next)) { seen.add(next); descendants(next, seen); }
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
} catch (error) {
|
|
65
|
+
if (error.code !== 'ENOENT' && error.code !== 'ESRCH') throw error;
|
|
66
|
+
}
|
|
67
|
+
return seen;
|
|
68
|
+
}
|
|
69
|
+
let stopping = false;
|
|
70
|
+
for (const signal of signals) {
|
|
71
|
+
process.on(signal, () => {
|
|
72
|
+
if (stopping || child.exitCode !== null || child.signalCode !== null) return;
|
|
73
|
+
stopping = true;
|
|
74
|
+
for (const pid of [...descendants(child.pid)].reverse()) {
|
|
75
|
+
try {
|
|
76
|
+
process.kill(pid, signal);
|
|
77
|
+
process.kill(pid, 'SIGCONT');
|
|
78
|
+
} catch (error) {
|
|
79
|
+
if (error.code !== 'ESRCH') throw error;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
child.kill(signal);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
child.on('error', (error) => {
|
|
87
|
+
process.stderr.write(`tolmap could not start the packaged binary: ${error.message}\n`);
|
|
88
|
+
process.exitCode = 1;
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
child.on('exit', (code, signal) => {
|
|
92
|
+
if (signal) {
|
|
93
|
+
for (const forwarded of signals) process.removeAllListeners(forwarded);
|
|
94
|
+
process.kill(process.pid, signal);
|
|
95
|
+
process.exitCode = 128 + (os.constants.signals[signal] || 1);
|
|
96
|
+
} else {
|
|
97
|
+
process.exitCode = code ?? 1;
|
|
98
|
+
}
|
|
99
|
+
});
|
package/lib/libblas.so.3
ADDED
|
Binary file
|
|
Binary file
|
package/lib/libgmp.so.10
ADDED
|
Binary file
|
package/lib/libgomp.so.1
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/liblzma.so.5
ADDED
|
Binary file
|
|
Binary file
|
package/lib/libxml2.so.2
ADDED
|
Binary file
|
package/lib/libz.so.1
ADDED
|
Binary file
|
package/lib/tolmap
ADDED
|
Binary file
|