diff --git a/README.md b/README.md index 3020289..b32745a 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Every command is documented in the [CLI reference](https://craftpkg.github.io/cr ## 🤝 Contributing -Contributions are welcome! `make` runs formatting, lints and the full test suite. See [Contributing](https://craftpkg.github.io/craft/contributing/) for the architecture, the test suites and how to work on the docs. +Contributions are welcome! `make` runs formatting, lints and the full test suite. See the [developer docs](https://craftpkg.github.io/craft/developers/anatomy) for how craft works inside, the test suites and how to work on the docs. ## 📄 License diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 74b08cd..222035c 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -24,6 +24,19 @@ export default defineConfig({ cleanUrls: true, head: [['link', { rel: 'icon', type: 'image/png', href: '/craft/logo.png' }]], + markdown: { + config(md) { + const fence = md.renderer.rules.fence! + md.renderer.rules.fence = (tokens, index, options, env, renderer) => { + const token = tokens[index] + if (token.info.trim() === 'mermaid') { + return `` + } + return fence(tokens, index, options, env, renderer) + } + }, + }, + themeConfig: { logo: '/logo.png', @@ -31,7 +44,7 @@ export default defineConfig({ { text: 'Guide', link: '/guide/introduction', activeMatch: '/guide/' }, { text: 'CLI', link: '/reference/cli', activeMatch: '/reference/' }, { text: 'Benchmarks', link: '/guide/benchmarks' }, - { text: 'Contributing', link: '/contributing/', activeMatch: '/contributing/' }, + { text: 'Developers', link: '/developers/anatomy', activeMatch: '/developers/' }, ], sidebar: { @@ -78,13 +91,19 @@ export default defineConfig({ ], }, ], - '/contributing/': [ + '/developers/': [ + { + text: 'How craft works', + items: [ + { text: 'Anatomy', link: '/developers/anatomy' }, + { text: 'Architecture', link: '/developers/architecture' }, + ], + }, { text: 'Contributing', items: [ - { text: 'Overview', link: '/contributing/' }, - { text: 'Architecture', link: '/contributing/architecture' }, - { text: 'Testing', link: '/contributing/testing' }, + { text: 'Getting set up', link: '/developers/' }, + { text: 'Testing', link: '/developers/testing' }, ], }, ], diff --git a/docs/.vitepress/theme/MermaidDiagram.vue b/docs/.vitepress/theme/MermaidDiagram.vue new file mode 100644 index 0000000..fd2459f --- /dev/null +++ b/docs/.vitepress/theme/MermaidDiagram.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 92f9a63..3cd4c7d 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -2,10 +2,12 @@ import DefaultTheme from 'vitepress/theme' import type { Theme } from 'vitepress' import BenchmarkChart from './BenchmarkChart.vue' +import MermaidDiagram from './MermaidDiagram.vue' export default { extends: DefaultTheme, enhanceApp({ app }) { app.component('BenchmarkChart', BenchmarkChart) + app.component('MermaidDiagram', MermaidDiagram) }, } satisfies Theme diff --git a/docs/craft.lock b/docs/craft.lock index 13f970e..ccd0e96 100644 --- a/docs/craft.lock +++ b/docs/craft.lock @@ -3,6 +3,10 @@ "importers": { ".": { "devDependencies": { + "mermaid": { + "specifier": "^12.2.0", + "version": "mermaid@12.2.0" + }, "vitepress": { "specifier": "1.6.4", "version": "vitepress@1.6.4" @@ -263,6 +267,19 @@ "@algolia/client-common": "@algolia/client-common@5.60.0" } }, + "@antfu/install-pkg@2.1.0": { + "name": "@antfu/install-pkg", + "version": "2.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-2.1.0.tgz", + "integrity": "sha512-sdg9NxU3zR4Mnawfbc/x6GB5Wf17WYud5qOuEuxXjaKpYpMkISSJEjItGebXJ2bQ4DIcly4NYH23mtkGJjvKUw==" + }, + "dependencies": { + "package-manager-detector": "package-manager-detector@1.9.0", + "tinyexec": "tinyexec@1.3.1" + } + }, "@babel/helper-string-parser@7.29.11": { "name": "@babel/helper-string-parser", "version": "7.29.11", @@ -306,6 +323,67 @@ "@babel/helper-validator-identifier": "@babel/helper-validator-identifier@7.29.7" } }, + "@braintree/sanitize-url@7.1.2": { + "name": "@braintree/sanitize-url", + "version": "7.1.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.2.tgz", + "integrity": "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==" + } + }, + "@chevrotain/cst-dts-gen@13.2.0": { + "name": "@chevrotain/cst-dts-gen", + "version": "13.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-13.2.0.tgz", + "integrity": "sha512-bA9dvWlhAUcHkNwU+8w9yiUxJPlj/Lm3VqS7MD+NbIR/7LmpNLuK/AWNFdCo/T3SK5ND0/UHf3IJvl/Jn/i6yg==" + }, + "dependencies": { + "@chevrotain/gast": "@chevrotain/gast@13.2.0", + "@chevrotain/types": "@chevrotain/types@13.2.0" + } + }, + "@chevrotain/gast@13.2.0": { + "name": "@chevrotain/gast", + "version": "13.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@chevrotain/gast/-/gast-13.2.0.tgz", + "integrity": "sha512-bCARdAsG+eEbOveSXcOAC7pVxA04I1ionzeMOwIYf5NX7SaS7zgn4Dgug2BSqoL+iyKeMNSorQjsFSHJHsCNwg==" + }, + "dependencies": { + "@chevrotain/types": "@chevrotain/types@13.2.0" + } + }, + "@chevrotain/regexp-to-ast@13.2.0": { + "name": "@chevrotain/regexp-to-ast", + "version": "13.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@chevrotain/regexp-to-ast/-/regexp-to-ast-13.2.0.tgz", + "integrity": "sha512-kxpUkLtiaK09ph+dib+Yvm+3sWSnuwlo25gqfKRgTPNmF6H7uW4gVkMjaRdtnN783S9sM6vUNWh9CsxYX4QwKw==" + } + }, + "@chevrotain/types@13.2.0": { + "name": "@chevrotain/types", + "version": "13.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@chevrotain/types/-/types-13.2.0.tgz", + "integrity": "sha512-7qrYHRlKfWf2AvBfJi5eVOrKAkbxvMFsy/iIHTGIiApNcEecCaVIdR+mIQhyCBsTDJxBz4JWXHMo6krbhR9hVg==" + } + }, + "@chevrotain/utils@13.2.0": { + "name": "@chevrotain/utils", + "version": "13.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@chevrotain/utils/-/utils-13.2.0.tgz", + "integrity": "sha512-SzKYY68rseOrb9KILVzPsl6SjkQtdWw01SRGB5aCVI5kFcHltQsOYV3JB0Ffst72DgkvHCyDQ0NLwxtmCCf97Q==" + } + }, "@docsearch/css@3.8.2": { "name": "@docsearch/css", "version": "3.8.2", @@ -709,6 +787,20 @@ "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==" } }, + "@iconify/utils@3.1.7": { + "name": "@iconify/utils", + "version": "3.1.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@iconify/utils/-/utils-3.1.7.tgz", + "integrity": "sha512-JZHlwdID+dy+lTgbYC8NEC4zeugqeYsc6jewvzb4c58kHauJn+X7rNwQjxz5p2qSjqaEeQoLkCIQ9v/H4PK0/w==" + }, + "dependencies": { + "@antfu/install-pkg": "@antfu/install-pkg@2.1.0", + "@iconify/types": "@iconify/types@2.0.0", + "import-meta-resolve": "import-meta-resolve@4.2.0" + } + }, "@jridgewell/sourcemap-codec@1.6.0": { "name": "@jridgewell/sourcemap-codec", "version": "1.6.0", @@ -718,6 +810,18 @@ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==" } }, + "@mermaid-js/parser@2.0.1": { + "name": "@mermaid-js/parser", + "version": "2.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-2.0.1.tgz", + "integrity": "sha512-j37dj/h6p6pots1L7pLPPNuABEEu9WP4OYg9pW1g+nYG331j0+3canE9OagtYdytYvdSAMG+2fKU5cxep6LgjA==" + }, + "dependencies": { + "@chevrotain/types": "@chevrotain/types@13.2.0" + } + }, "@napi-rs/lzma-linux-x64-gnu@1.5.1": { "name": "@napi-rs/lzma-linux-x64-gnu", "version": "1.5.1", @@ -1253,6 +1357,352 @@ "integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==" } }, + "@types/d3-array@3.2.2": { + "name": "@types/d3-array", + "version": "3.2.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", + "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==" + } + }, + "@types/d3-axis@3.0.6": { + "name": "@types/d3-axis", + "version": "3.0.6", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", + "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==" + }, + "dependencies": { + "@types/d3-selection": "@types/d3-selection@3.0.12" + } + }, + "@types/d3-brush@3.0.6": { + "name": "@types/d3-brush", + "version": "3.0.6", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", + "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==" + }, + "dependencies": { + "@types/d3-selection": "@types/d3-selection@3.0.12" + } + }, + "@types/d3-chord@3.0.6": { + "name": "@types/d3-chord", + "version": "3.0.6", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", + "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==" + } + }, + "@types/d3-color@3.1.3": { + "name": "@types/d3-color", + "version": "3.1.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==" + } + }, + "@types/d3-contour@3.0.6": { + "name": "@types/d3-contour", + "version": "3.0.6", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", + "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==" + }, + "dependencies": { + "@types/d3-array": "@types/d3-array@3.2.2", + "@types/geojson": "@types/geojson@7946.0.16" + } + }, + "@types/d3-delaunay@6.0.4": { + "name": "@types/d3-delaunay", + "version": "6.0.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==" + } + }, + "@types/d3-dispatch@3.0.7": { + "name": "@types/d3-dispatch", + "version": "3.0.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz", + "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==" + } + }, + "@types/d3-drag@3.0.7": { + "name": "@types/d3-drag", + "version": "3.0.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", + "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==" + }, + "dependencies": { + "@types/d3-selection": "@types/d3-selection@3.0.12" + } + }, + "@types/d3-dsv@3.0.7": { + "name": "@types/d3-dsv", + "version": "3.0.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", + "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==" + } + }, + "@types/d3-ease@3.0.2": { + "name": "@types/d3-ease", + "version": "3.0.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==" + } + }, + "@types/d3-fetch@3.0.7": { + "name": "@types/d3-fetch", + "version": "3.0.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", + "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==" + }, + "dependencies": { + "@types/d3-dsv": "@types/d3-dsv@3.0.7" + } + }, + "@types/d3-force@3.0.10": { + "name": "@types/d3-force", + "version": "3.0.10", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", + "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==" + } + }, + "@types/d3-format@3.0.4": { + "name": "@types/d3-format", + "version": "3.0.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", + "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==" + } + }, + "@types/d3-geo@3.1.1": { + "name": "@types/d3-geo", + "version": "3.1.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-65Emv9fQiQQqphLlRkuQ5ypPsOmWPhtBGCMv61JDPEPMvsx+gzhGf74yw1a78xFKPj6zw4AgQICJoQv0vK9M2w==" + }, + "dependencies": { + "@types/geojson": "@types/geojson@7946.0.16" + } + }, + "@types/d3-hierarchy@3.1.7": { + "name": "@types/d3-hierarchy", + "version": "3.1.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", + "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==" + } + }, + "@types/d3-interpolate@3.0.4": { + "name": "@types/d3-interpolate", + "version": "3.0.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==" + }, + "dependencies": { + "@types/d3-color": "@types/d3-color@3.1.3" + } + }, + "@types/d3-path@3.1.1": { + "name": "@types/d3-path", + "version": "3.1.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==" + } + }, + "@types/d3-polygon@3.0.2": { + "name": "@types/d3-polygon", + "version": "3.0.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", + "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==" + } + }, + "@types/d3-quadtree@3.0.6": { + "name": "@types/d3-quadtree", + "version": "3.0.6", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", + "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==" + } + }, + "@types/d3-random@3.0.4": { + "name": "@types/d3-random", + "version": "3.0.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.4.tgz", + "integrity": "sha512-UHYId5WTCx4L4YNel7NU00XUXXgvgpgZOvp10PuvsQENjMDXhh2RyFc0KBjO7B45ne4Ha1yVH7ii0vnzKkuzWA==" + } + }, + "@types/d3-scale-chromatic@3.1.0": { + "name": "@types/d3-scale-chromatic", + "version": "3.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==" + } + }, + "@types/d3-scale@4.0.9": { + "name": "@types/d3-scale", + "version": "4.0.9", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", + "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==" + }, + "dependencies": { + "@types/d3-time": "@types/d3-time@3.0.4" + } + }, + "@types/d3-selection@3.0.12": { + "name": "@types/d3-selection", + "version": "3.0.12", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.12.tgz", + "integrity": "sha512-Qe/KWYhEiIIxGs7HrAAjMfShxKldx19SJtr5zu53f3afPsdZNz7HHtdTLXo/kqeiWNXVycI24kSnfzBYkTzpgw==" + } + }, + "@types/d3-shape@3.2.0": { + "name": "@types/d3-shape", + "version": "3.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-kVd74ta9eof3eJOvbNd1vGKS/XERRyQbT26Og63hIsvDO84cjD5gEOhsXf26w3FSoNlPVz84DOFcKv/oou+fMw==" + }, + "dependencies": { + "@types/d3-path": "@types/d3-path@3.1.1" + } + }, + "@types/d3-time-format@4.0.3": { + "name": "@types/d3-time-format", + "version": "4.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", + "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==" + } + }, + "@types/d3-time@3.0.4": { + "name": "@types/d3-time", + "version": "3.0.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==" + } + }, + "@types/d3-timer@3.0.2": { + "name": "@types/d3-timer", + "version": "3.0.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==" + } + }, + "@types/d3-transition@3.0.9": { + "name": "@types/d3-transition", + "version": "3.0.9", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", + "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==" + }, + "dependencies": { + "@types/d3-selection": "@types/d3-selection@3.0.12" + } + }, + "@types/d3-zoom@3.0.9": { + "name": "@types/d3-zoom", + "version": "3.0.9", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.9.tgz", + "integrity": "sha512-0sE1406XBYJGiqD3AusTl9ZqC//2mIXix51tbom25gDCA8ri4xnSZg28CaSE8Srl6FClqABUKfsn0qghgdepMA==" + }, + "dependencies": { + "@types/d3-interpolate": "@types/d3-interpolate@3.0.4", + "@types/d3-selection": "@types/d3-selection@3.0.12" + } + }, + "@types/d3@7.4.3": { + "name": "@types/d3", + "version": "7.4.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", + "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==" + }, + "dependencies": { + "@types/d3-array": "@types/d3-array@3.2.2", + "@types/d3-axis": "@types/d3-axis@3.0.6", + "@types/d3-brush": "@types/d3-brush@3.0.6", + "@types/d3-chord": "@types/d3-chord@3.0.6", + "@types/d3-color": "@types/d3-color@3.1.3", + "@types/d3-contour": "@types/d3-contour@3.0.6", + "@types/d3-delaunay": "@types/d3-delaunay@6.0.4", + "@types/d3-dispatch": "@types/d3-dispatch@3.0.7", + "@types/d3-drag": "@types/d3-drag@3.0.7", + "@types/d3-dsv": "@types/d3-dsv@3.0.7", + "@types/d3-ease": "@types/d3-ease@3.0.2", + "@types/d3-fetch": "@types/d3-fetch@3.0.7", + "@types/d3-force": "@types/d3-force@3.0.10", + "@types/d3-format": "@types/d3-format@3.0.4", + "@types/d3-geo": "@types/d3-geo@3.1.1", + "@types/d3-hierarchy": "@types/d3-hierarchy@3.1.7", + "@types/d3-interpolate": "@types/d3-interpolate@3.0.4", + "@types/d3-path": "@types/d3-path@3.1.1", + "@types/d3-polygon": "@types/d3-polygon@3.0.2", + "@types/d3-quadtree": "@types/d3-quadtree@3.0.6", + "@types/d3-random": "@types/d3-random@3.0.4", + "@types/d3-scale": "@types/d3-scale@4.0.9", + "@types/d3-scale-chromatic": "@types/d3-scale-chromatic@3.1.0", + "@types/d3-selection": "@types/d3-selection@3.0.12", + "@types/d3-shape": "@types/d3-shape@3.2.0", + "@types/d3-time": "@types/d3-time@3.0.4", + "@types/d3-time-format": "@types/d3-time-format@4.0.3", + "@types/d3-timer": "@types/d3-timer@3.0.2", + "@types/d3-transition": "@types/d3-transition@3.0.9", + "@types/d3-zoom": "@types/d3-zoom@3.0.9" + } + }, "@types/estree@1.0.9": { "name": "@types/estree", "version": "1.0.9", @@ -1262,6 +1712,15 @@ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==" } }, + "@types/geojson@7946.0.16": { + "name": "@types/geojson", + "version": "7946.0.16", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", + "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==" + } + }, "@types/hast@3.0.5": { "name": "@types/hast", "version": "3.0.5", @@ -1317,6 +1776,15 @@ "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==" } }, + "@types/trusted-types@2.0.7": { + "name": "@types/trusted-types", + "version": "2.0.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + } + }, "@types/unist@3.0.3": { "name": "@types/unist", "version": "3.0.3", @@ -1344,6 +1812,19 @@ "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==" } }, + "@upsetjs/venn.js@2.0.0": { + "name": "@upsetjs/venn.js", + "version": "2.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@upsetjs/venn.js/-/venn.js-2.0.0.tgz", + "integrity": "sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==" + }, + "optionalDependencies": { + "d3-selection": "d3-selection@3.0.0", + "d3-transition": "d3-transition@3.0.1_d3-selection@3.0.0" + } + }, "@vitejs/plugin-vue@5.2.4_vite@5.4.21_vue@3.5.44": { "name": "@vitejs/plugin-vue", "version": "5.2.4", @@ -1638,6 +2119,22 @@ "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==" } }, + "chevrotain@13.2.0": { + "name": "chevrotain", + "version": "13.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/chevrotain/-/chevrotain-13.2.0.tgz", + "integrity": "sha512-GTouk5YzgBxlTPCaDn5q0q2EJKkrYmnPF+HmF8v0Qo4r3iyPG7HJivkN1wthCXZcm3sIcZFpGTRovLPNdJNRCA==" + }, + "dependencies": { + "@chevrotain/cst-dts-gen": "@chevrotain/cst-dts-gen@13.2.0", + "@chevrotain/gast": "@chevrotain/gast@13.2.0", + "@chevrotain/regexp-to-ast": "@chevrotain/regexp-to-ast@13.2.0", + "@chevrotain/types": "@chevrotain/types@13.2.0", + "@chevrotain/utils": "@chevrotain/utils@13.2.0" + } + }, "comma-separated-tokens@2.0.3": { "name": "comma-separated-tokens", "version": "2.0.3", @@ -1647,6 +2144,24 @@ "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==" } }, + "commander@15.0.0": { + "name": "commander", + "version": "15.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz", + "integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==" + } + }, + "commander@7.2.0": { + "name": "commander", + "version": "7.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" + } + }, "copy-anything@4.1.5": { "name": "copy-anything", "version": "4.1.5", @@ -1656,6 +2171,30 @@ "integrity": "sha512-vePst2VLTSqPglW7Q98VwFpGiGpOHTyXIo81MO5VyLecA5zMbZw/P/V1vmwD1jksa2iJpn/YkDrJ3XhTfzUyhQ==" } }, + "cose-base@1.0.3": { + "name": "cose-base", + "version": "1.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", + "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==" + }, + "dependencies": { + "layout-base": "layout-base@1.0.2" + } + }, + "cose-base@2.2.0": { + "name": "cose-base", + "version": "2.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/cose-base/-/cose-base-2.2.0.tgz", + "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==" + }, + "dependencies": { + "layout-base": "layout-base@2.0.1" + } + }, "csstype@3.2.3": { "name": "csstype", "version": "3.2.3", @@ -1665,25 +2204,555 @@ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==" } }, - "dequal@2.0.3": { - "name": "dequal", - "version": "2.0.3", + "cytoscape-cose-bilkent@4.1.0_cytoscape@3.34.4": { + "name": "cytoscape-cose-bilkent", + "version": "4.1.0", "resolution": { "type": "registry", - "tarball": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==" + "tarball": "https://registry.npmjs.org/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz", + "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==" + }, + "dependencies": { + "cose-base": "cose-base@1.0.3" + }, + "peerDependencies": { + "cytoscape": "cytoscape@3.34.4" } }, - "devlop@1.1.0": { - "name": "devlop", - "version": "1.1.0", + "cytoscape-fcose@2.2.0_cytoscape@3.34.4": { + "name": "cytoscape-fcose", + "version": "2.2.0", "resolution": { "type": "registry", - "tarball": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", - "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==" + "tarball": "https://registry.npmjs.org/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz", + "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==" }, "dependencies": { - "dequal": "dequal@2.0.3" + "cose-base": "cose-base@2.2.0" + }, + "peerDependencies": { + "cytoscape": "cytoscape@3.34.4" + } + }, + "cytoscape@3.34.4": { + "name": "cytoscape", + "version": "3.34.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.34.4.tgz", + "integrity": "sha512-msY99tMY8iWTg+sIPGfSqDcPNOt4xcj+v/K/7qUFaCUxxlqnMkUYLBjRUzn9W5CU/R2hrmtJa5+UtovrEM2ctg==" + } + }, + "d3-array@2.12.1": { + "name": "d3-array", + "version": "2.12.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", + "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==" + }, + "dependencies": { + "internmap": "internmap@1.0.1" + } + }, + "d3-array@3.2.4": { + "name": "d3-array", + "version": "3.2.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==" + }, + "dependencies": { + "internmap": "internmap@2.0.3" + } + }, + "d3-axis@3.0.0": { + "name": "d3-axis", + "version": "3.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", + "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==" + } + }, + "d3-brush@3.0.0": { + "name": "d3-brush", + "version": "3.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", + "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==" + }, + "dependencies": { + "d3-dispatch": "d3-dispatch@3.0.1", + "d3-drag": "d3-drag@3.0.0", + "d3-interpolate": "d3-interpolate@3.0.1", + "d3-selection": "d3-selection@3.0.0", + "d3-transition": "d3-transition@3.0.1_d3-selection@3.0.0" + } + }, + "d3-chord@3.0.1": { + "name": "d3-chord", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", + "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==" + }, + "dependencies": { + "d3-path": "d3-path@3.1.0" + } + }, + "d3-color@3.1.0": { + "name": "d3-color", + "version": "3.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==" + } + }, + "d3-contour@4.0.2": { + "name": "d3-contour", + "version": "4.0.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", + "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==" + }, + "dependencies": { + "d3-array": "d3-array@3.2.4" + } + }, + "d3-delaunay@6.0.4": { + "name": "d3-delaunay", + "version": "6.0.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==" + }, + "dependencies": { + "delaunator": "delaunator@5.1.0" + } + }, + "d3-dispatch@3.0.1": { + "name": "d3-dispatch", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", + "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==" + } + }, + "d3-drag@3.0.0": { + "name": "d3-drag", + "version": "3.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", + "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==" + }, + "dependencies": { + "d3-dispatch": "d3-dispatch@3.0.1", + "d3-selection": "d3-selection@3.0.0" + } + }, + "d3-dsv@3.0.1": { + "name": "d3-dsv", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", + "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==" + }, + "dependencies": { + "commander": "commander@7.2.0", + "iconv-lite": "iconv-lite@0.6.3", + "rw": "rw@1.3.3" + } + }, + "d3-ease@3.0.1": { + "name": "d3-ease", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==" + } + }, + "d3-fetch@3.0.1": { + "name": "d3-fetch", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", + "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==" + }, + "dependencies": { + "d3-dsv": "d3-dsv@3.0.1" + } + }, + "d3-force@3.0.0": { + "name": "d3-force", + "version": "3.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", + "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==" + }, + "dependencies": { + "d3-dispatch": "d3-dispatch@3.0.1", + "d3-quadtree": "d3-quadtree@3.0.1", + "d3-timer": "d3-timer@3.0.1" + } + }, + "d3-format@3.1.2": { + "name": "d3-format", + "version": "3.1.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", + "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==" + } + }, + "d3-geo@3.1.1": { + "name": "d3-geo", + "version": "3.1.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==" + }, + "dependencies": { + "d3-array": "d3-array@3.2.4" + } + }, + "d3-hierarchy@3.1.2": { + "name": "d3-hierarchy", + "version": "3.1.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", + "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==" + } + }, + "d3-interpolate@3.0.1": { + "name": "d3-interpolate", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==" + }, + "dependencies": { + "d3-color": "d3-color@3.1.0" + } + }, + "d3-path@1.0.9": { + "name": "d3-path", + "version": "1.0.9", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==" + } + }, + "d3-path@3.1.0": { + "name": "d3-path", + "version": "3.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==" + } + }, + "d3-polygon@3.0.1": { + "name": "d3-polygon", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", + "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==" + } + }, + "d3-quadtree@3.0.1": { + "name": "d3-quadtree", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", + "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==" + } + }, + "d3-random@3.0.1": { + "name": "d3-random", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", + "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==" + } + }, + "d3-sankey@0.12.3": { + "name": "d3-sankey", + "version": "0.12.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-sankey/-/d3-sankey-0.12.3.tgz", + "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==" + }, + "dependencies": { + "d3-array": "d3-array@2.12.1", + "d3-shape": "d3-shape@1.3.7" + } + }, + "d3-scale-chromatic@3.1.0": { + "name": "d3-scale-chromatic", + "version": "3.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==" + }, + "dependencies": { + "d3-color": "d3-color@3.1.0", + "d3-interpolate": "d3-interpolate@3.0.1" + } + }, + "d3-scale@4.0.2": { + "name": "d3-scale", + "version": "4.0.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==" + }, + "dependencies": { + "d3-array": "d3-array@3.2.4", + "d3-format": "d3-format@3.1.2", + "d3-interpolate": "d3-interpolate@3.0.1", + "d3-time": "d3-time@3.1.0", + "d3-time-format": "d3-time-format@4.1.0" + } + }, + "d3-selection@3.0.0": { + "name": "d3-selection", + "version": "3.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", + "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==" + } + }, + "d3-shape@1.3.7": { + "name": "d3-shape", + "version": "1.3.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==" + }, + "dependencies": { + "d3-path": "d3-path@1.0.9" + } + }, + "d3-shape@3.2.0": { + "name": "d3-shape", + "version": "3.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==" + }, + "dependencies": { + "d3-path": "d3-path@3.1.0" + } + }, + "d3-time-format@4.1.0": { + "name": "d3-time-format", + "version": "4.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==" + }, + "dependencies": { + "d3-time": "d3-time@3.1.0" + } + }, + "d3-time@3.1.0": { + "name": "d3-time", + "version": "3.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==" + }, + "dependencies": { + "d3-array": "d3-array@3.2.4" + } + }, + "d3-timer@3.0.1": { + "name": "d3-timer", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==" + } + }, + "d3-transition@3.0.1_d3-selection@3.0.0": { + "name": "d3-transition", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", + "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==" + }, + "dependencies": { + "d3-color": "d3-color@3.1.0", + "d3-dispatch": "d3-dispatch@3.0.1", + "d3-ease": "d3-ease@3.0.1", + "d3-interpolate": "d3-interpolate@3.0.1", + "d3-timer": "d3-timer@3.0.1" + }, + "peerDependencies": { + "d3-selection": "d3-selection@3.0.0" + } + }, + "d3-zoom@3.0.0": { + "name": "d3-zoom", + "version": "3.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", + "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==" + }, + "dependencies": { + "d3-dispatch": "d3-dispatch@3.0.1", + "d3-drag": "d3-drag@3.0.0", + "d3-interpolate": "d3-interpolate@3.0.1", + "d3-selection": "d3-selection@3.0.0", + "d3-transition": "d3-transition@3.0.1_d3-selection@3.0.0" + } + }, + "d3@7.9.0": { + "name": "d3", + "version": "7.9.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/d3/-/d3-7.9.0.tgz", + "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==" + }, + "dependencies": { + "d3-array": "d3-array@3.2.4", + "d3-axis": "d3-axis@3.0.0", + "d3-brush": "d3-brush@3.0.0", + "d3-chord": "d3-chord@3.0.1", + "d3-color": "d3-color@3.1.0", + "d3-contour": "d3-contour@4.0.2", + "d3-delaunay": "d3-delaunay@6.0.4", + "d3-dispatch": "d3-dispatch@3.0.1", + "d3-drag": "d3-drag@3.0.0", + "d3-dsv": "d3-dsv@3.0.1", + "d3-ease": "d3-ease@3.0.1", + "d3-fetch": "d3-fetch@3.0.1", + "d3-force": "d3-force@3.0.0", + "d3-format": "d3-format@3.1.2", + "d3-geo": "d3-geo@3.1.1", + "d3-hierarchy": "d3-hierarchy@3.1.2", + "d3-interpolate": "d3-interpolate@3.0.1", + "d3-path": "d3-path@3.1.0", + "d3-polygon": "d3-polygon@3.0.1", + "d3-quadtree": "d3-quadtree@3.0.1", + "d3-random": "d3-random@3.0.1", + "d3-scale": "d3-scale@4.0.2", + "d3-scale-chromatic": "d3-scale-chromatic@3.1.0", + "d3-selection": "d3-selection@3.0.0", + "d3-shape": "d3-shape@3.2.0", + "d3-time": "d3-time@3.1.0", + "d3-time-format": "d3-time-format@4.1.0", + "d3-timer": "d3-timer@3.0.1", + "d3-transition": "d3-transition@3.0.1_d3-selection@3.0.0", + "d3-zoom": "d3-zoom@3.0.0" + } + }, + "dagre-d3-es@7.0.14": { + "name": "dagre-d3-es", + "version": "7.0.14", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/dagre-d3-es/-/dagre-d3-es-7.0.14.tgz", + "integrity": "sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg==" + }, + "dependencies": { + "d3": "d3@7.9.0", + "lodash-es": "lodash-es@4.18.1" + } + }, + "dayjs@1.11.23": { + "name": "dayjs", + "version": "1.11.23", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz", + "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==" + } + }, + "delaunator@5.1.0": { + "name": "delaunator", + "version": "5.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/delaunator/-/delaunator-5.1.0.tgz", + "integrity": "sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==" + }, + "dependencies": { + "robust-predicates": "robust-predicates@3.0.3" + } + }, + "dequal@2.0.3": { + "name": "dequal", + "version": "2.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==" + } + }, + "devlop@1.1.0": { + "name": "devlop", + "version": "1.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==" + }, + "dependencies": { + "dequal": "dequal@2.0.3" + } + }, + "dompurify@3.4.17": { + "name": "dompurify", + "version": "3.4.17", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.17.tgz", + "integrity": "sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==" + }, + "optionalDependencies": { + "@types/trusted-types": "@types/trusted-types@2.0.7" + } + }, + "elkjs@0.9.3": { + "name": "elkjs", + "version": "0.9.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/elkjs/-/elkjs-0.9.3.tgz", + "integrity": "sha512-f/ZeWvW/BCXbhGEf1Ujp29EASo/lk1FDnETgNKwJrsVvGZhUWCZyg3xLJjAsxfOmt8KjswHmI5EwCQcPMpOYhQ==" } }, "emoji-regex-xs@1.0.0": { @@ -1704,6 +2773,15 @@ "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==" } }, + "es-toolkit@1.53.0": { + "name": "es-toolkit", + "version": "1.53.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.53.0.tgz", + "integrity": "sha512-3+AYXp9fmJ/UhHBMYj2/U+RaUouMD90SzoItyDOB2Za7W6dB7fQApFGnZPl2MF6K8/Tv1koh1JyirSx/kju6Pw==" + } + }, "esbuild@0.21.5": { "name": "esbuild", "version": "0.21.5", @@ -1771,6 +2849,15 @@ "darwin" ] }, + "hachure-fill@0.5.2": { + "name": "hachure-fill", + "version": "0.5.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/hachure-fill/-/hachure-fill-0.5.2.tgz", + "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==" + } + }, "hast-util-to-html@9.0.5": { "name": "hast-util-to-html", "version": "9.0.5", @@ -1823,6 +2910,93 @@ "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==" } }, + "iconv-lite@0.6.3": { + "name": "iconv-lite", + "version": "0.6.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==" + }, + "dependencies": { + "safer-buffer": "safer-buffer@2.1.2" + } + }, + "import-meta-resolve@4.2.0": { + "name": "import-meta-resolve", + "version": "4.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", + "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==" + } + }, + "internmap@1.0.1": { + "name": "internmap", + "version": "1.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", + "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==" + } + }, + "internmap@2.0.3": { + "name": "internmap", + "version": "2.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==" + } + }, + "katex@0.18.11": { + "name": "katex", + "version": "0.18.11", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/katex/-/katex-0.18.11.tgz", + "integrity": "sha512-yvyz/2VMKqoho/35Hat5w37wIEdWJ5ElVMidTAlWrxr5uW4aBGsEpveTmKh18/zw08v/7lGswCPon4OhqmqrTA==" + }, + "dependencies": { + "commander": "commander@15.0.0" + } + }, + "khroma@2.1.0": { + "name": "khroma", + "version": "2.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz", + "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==" + } + }, + "layout-base@1.0.2": { + "name": "layout-base", + "version": "1.0.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", + "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==" + } + }, + "layout-base@2.0.1": { + "name": "layout-base", + "version": "2.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", + "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==" + } + }, + "lodash-es@4.18.1": { + "name": "lodash-es", + "version": "4.18.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz", + "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==" + } + }, "magic-string@0.30.21": { "name": "magic-string", "version": "0.30.21", @@ -1844,6 +3018,15 @@ "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==" } }, + "marked@16.4.2": { + "name": "marked", + "version": "16.4.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/marked/-/marked-16.4.2.tgz", + "integrity": "sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==" + } + }, "mdast-util-to-hast@13.2.1": { "name": "mdast-util-to-hast", "version": "13.2.1", @@ -1864,6 +3047,40 @@ "vfile": "vfile@6.0.3" } }, + "mermaid@12.2.0": { + "name": "mermaid", + "version": "12.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/mermaid/-/mermaid-12.2.0.tgz", + "integrity": "sha512-w7nr/SFrLO7BaVTs3dQTvYSV6nYSBj0Yy9DjBhsIJtAcHqRzXSq4Pg32ujHZ/AdWsAMNEvvhbm5dt9E2tOiHzw==" + }, + "dependencies": { + "@braintree/sanitize-url": "@braintree/sanitize-url@7.1.2", + "@iconify/utils": "@iconify/utils@3.1.7", + "@mermaid-js/parser": "@mermaid-js/parser@2.0.1", + "@types/d3": "@types/d3@7.4.3", + "@upsetjs/venn.js": "@upsetjs/venn.js@2.0.0", + "chevrotain": "chevrotain@13.2.0", + "cytoscape": "cytoscape@3.34.4", + "cytoscape-cose-bilkent": "cytoscape-cose-bilkent@4.1.0_cytoscape@3.34.4", + "cytoscape-fcose": "cytoscape-fcose@2.2.0_cytoscape@3.34.4", + "d3": "d3@7.9.0", + "d3-sankey": "d3-sankey@0.12.3", + "dagre-d3-es": "dagre-d3-es@7.0.14", + "dayjs": "dayjs@1.11.23", + "dompurify": "dompurify@3.4.17", + "elkjs": "elkjs@0.9.3", + "es-toolkit": "es-toolkit@1.53.0", + "katex": "katex@0.18.11", + "khroma": "khroma@2.1.0", + "marked": "marked@16.4.2", + "roughjs": "roughjs@4.6.6", + "stylis": "stylis@4.4.0", + "ts-dedent": "ts-dedent@2.3.0", + "uuid": "uuid@14.0.3" + } + }, "micromark-util-character@2.1.1": { "name": "micromark-util-character", "version": "2.1.1", @@ -1959,6 +3176,24 @@ "regex-recursion": "regex-recursion@6.0.2" } }, + "package-manager-detector@1.9.0": { + "name": "package-manager-detector", + "version": "1.9.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.9.0.tgz", + "integrity": "sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==" + } + }, + "path-data-parser@0.1.0": { + "name": "path-data-parser", + "version": "0.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/path-data-parser/-/path-data-parser-0.1.0.tgz", + "integrity": "sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==" + } + }, "perfect-debounce@1.0.0": { "name": "perfect-debounce", "version": "1.0.0", @@ -1977,6 +3212,28 @@ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" } }, + "points-on-curve@0.2.0": { + "name": "points-on-curve", + "version": "0.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz", + "integrity": "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==" + } + }, + "points-on-path@0.2.1": { + "name": "points-on-path", + "version": "0.2.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/points-on-path/-/points-on-path-0.2.1.tgz", + "integrity": "sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==" + }, + "dependencies": { + "path-data-parser": "path-data-parser@0.1.0", + "points-on-curve": "points-on-curve@0.2.0" + } + }, "postcss@8.5.31": { "name": "postcss", "version": "8.5.31", @@ -2051,6 +3308,15 @@ "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==" } }, + "robust-predicates@3.0.3": { + "name": "robust-predicates", + "version": "3.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", + "integrity": "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==" + } + }, "rollup@4.65.0": { "name": "rollup", "version": "4.65.0", @@ -2092,6 +3358,39 @@ "fsevents": "fsevents@2.3.3" } }, + "roughjs@4.6.6": { + "name": "roughjs", + "version": "4.6.6", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/roughjs/-/roughjs-4.6.6.tgz", + "integrity": "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==" + }, + "dependencies": { + "hachure-fill": "hachure-fill@0.5.2", + "path-data-parser": "path-data-parser@0.1.0", + "points-on-curve": "points-on-curve@0.2.0", + "points-on-path": "points-on-path@0.2.1" + } + }, + "rw@1.3.3": { + "name": "rw", + "version": "1.3.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==" + } + }, + "safer-buffer@2.1.2": { + "name": "safer-buffer", + "version": "2.1.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + } + }, "search-insights@2.17.3": { "name": "search-insights", "version": "2.17.3", @@ -2160,6 +3459,15 @@ "character-entities-legacy": "character-entities-legacy@3.0.0" } }, + "stylis@4.4.0": { + "name": "stylis", + "version": "4.4.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz", + "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==" + } + }, "superjson@2.2.6": { "name": "superjson", "version": "2.2.6", @@ -2181,6 +3489,15 @@ "integrity": "sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA==" } }, + "tinyexec@1.3.1": { + "name": "tinyexec", + "version": "1.3.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==" + } + }, "trim-lines@3.0.1": { "name": "trim-lines", "version": "3.0.1", @@ -2190,6 +3507,15 @@ "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==" } }, + "ts-dedent@2.3.0": { + "name": "ts-dedent", + "version": "2.3.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.3.0.tgz", + "integrity": "sha512-JfJeIHke7y2egdGGgRAvpCwYFUsHlM2gPcrVOxFkznt/4uzQ7HFmvE63iFHVLBJNDuyDOQgijDK/tXH/f6Msjg==" + } + }, "unist-util-is@6.0.1": { "name": "unist-util-is", "version": "6.0.1", @@ -2253,6 +3579,15 @@ "unist-util-visit-parents": "unist-util-visit-parents@6.1.0" } }, + "uuid@14.0.3": { + "name": "uuid", + "version": "14.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/uuid/-/uuid-14.0.3.tgz", + "integrity": "sha512-Sc5u1VVln93y1Xnz4R+CunOZc7R9LUcTmhj7Rc7Eg3HVcf7rVn2FOoa812fe0W8p3jD7xeoGSYbfqCGGH2B6xw==" + } + }, "vfile-message@4.0.3": { "name": "vfile-message", "version": "4.0.3", diff --git a/docs/developers/anatomy.md b/docs/developers/anatomy.md new file mode 100644 index 0000000..43e9192 --- /dev/null +++ b/docs/developers/anatomy.md @@ -0,0 +1,221 @@ +# Anatomy + +What happens between pressing Enter on `craft install` and a finished `node_modules`: which part of craft does each step, how the steps overlap, and where the time goes. [How it works](../guide/how-it-works) describes the layout craft produces; this page is about the machine that produces it. + +## Layers + +craft is a Cargo workspace of small crates, stacked in layers. Each layer talks only to the one below it. + +```mermaid +flowchart TB + shell(["$ craft install"]) + subgraph entry ["Entry · apps/craft"] + direction LR + cli["CLI
clap → Action"] --> ctx["Context
cwd · home · .npmrc · platform"] + end + manager["Manager
one Action → one actor"] + subgraph actors ["Actors · one per command"] + direction LR + install["InstallActor"] ~~~ add["AddPackageActor"] ~~~ update["UpdateActor"] ~~~ more["…"] + end + subgraph pipes ["Pipes · reusable stages"] + direction LR + ip["InstallPipe
resolve + fetch"] --> pp["peer pass"] --> lp["LinkerPipe
import + link + prune"] --> sp["LifecyclePipe
install scripts"] + end + services["Services
resolver · network
tarball · fsutil
process · lockfile"] + shell --> entry --> manager --> actors --> pipes --> services +``` + +### CLI + +`crates/cli` parses the arguments with clap, then `normalize()` folds them into an `Action`, the one enum the rest of craft understands. Shortcuts are settled here, so nothing below has to know about them: + +| You type | Action | +| --- | --- | +| `craft` | `Install` | +| `craft install react` | `Add { packages: ["react"] }` | +| `craft start`, `craft test` | `Run { script: "start" }`, `Run { script: "test" }` | +| `craft tsc --noEmit` | `Run { script: "tsc", args: ["--noEmit"] }`, a script or else a bin | +| `craft ci` | `Ci`, a frozen install into an empty `node_modules` | + +`main` then builds a `Context` once: the working directory, the craft home, the registry configuration read from `.npmrc`, whether this is CI, the host platform and the progress reporter. It is passed down explicitly. Nothing below `main` reads the current directory or the environment, which is also why every test can run its own isolated install. + +### Manager and actors + +`CraftManager` matches the `Action` to its actor. An actor owns one command from start to finish: + +```rust +pub trait Actor { + fn with(context: Context, payload: T) -> Self; + fn run(&self) -> impl Future> + Send; +} +``` + +An actor decides what the command means: which packages to resolve, whether the lockfile may change, what to write to `package.json`, what to print at the end. It does the heavy lifting by running pipes. + +| Command | Actor | Pipes it runs | +| --- | --- | --- | +| `install`, `ci` | `InstallActor` | install → link → scripts | +| `add` | `AddPackageActor` | install → link → scripts, then saves `package.json` | +| `update` | `UpdateActor` | install → link → scripts, without lock preferences for what it updates | +| `remove` | `RemovePackageActor` | none: edits `package.json`, prunes and rewrites the lockfile | +| `run`, `exec`, `start`, `test` | `RunScriptActor` | none: spawns the script with `.bin` on `PATH` | +| `dlx` | `DlxActor` | installs into its own directory under `~/.craft/dlx`, then runs the bin | +| `list`, `why` | `InspectActor` | none: reads `craft.lock` | + +### Pipes + +A pipe is one stage of an install that produces a value: + +```rust +pub trait Pipeline { + fn run(&self) -> impl Future> + Send; +} +``` + +`InstallPipe` produces a `ResolutionGraph`: every package instance (`name@version`, plus its peers) and the edges between them. The other pipes only consume that graph, so `install`, `add` and `update` share all of the machinery and differ only in what they feed it and what they keep afterwards. + +## An install, end to end + +```mermaid +sequenceDiagram + participant A as InstallActor + participant R as InstallPipe + participant Reg as Registry + participant L as LinkerPipe + participant P as LifecyclePipe + A->>A: compare manifest, lock, state + opt all three agree + A-->>A: Already up to date + end + A->>R: dependencies + par every package at once + R->>Reg: metadata, once per name + R->>Reg: tarball, once per version + R->>R: verify, extract to the store + end + R->>R: peer pass + R-->>A: ResolutionGraph + A->>L: graph + par + L->>L: clone entries + and + L->>L: make links + end + L->>L: bins, prune + A->>P: graph + P->>P: trusted scripts + A->>A: save lockfile, state +``` + +1. **The shortcut.** `InstallActor` compares `package.json`, `craft.lock` and `node_modules/.craft/state` (the lockfile craft last laid out, plus the script policy and whether dev dependencies were left out). When they agree there is nothing to do: two file reads and a string comparison. +2. **Resolve and fetch.** `InstallPipe` walks the dependency tree. Each package's tarball is downloaded and extracted as soon as its version is chosen, while the rest of the tree is still resolving. There is no "resolve everything, then download everything" barrier. +3. **Peers.** A pass over the finished graph resolves every package's peers and gives each distinct peer set its own instance (`react-redux@9.2.0_react@19.1.0`). +4. **Link.** `LinkerPipe` imports each store entry into the virtual store and makes the symlinks, both at once. +5. **Scripts.** `LifecyclePipe` runs the install scripts of trusted packages only, dependencies before their dependents. +6. **Record.** The lockfile and the installed state are written only if their content changed. + +## Inside resolution + +Resolution is a recursive walk in which every dependency is its own async task. A popular package such as `debug` is reached from many places in a real tree, so the walk is built around never doing the same work twice: + +```mermaid +flowchart TD + req(["request: debug@^4.3"]) --> asked{{"same name and range
asked before?"}} + asked -- yes --> reuse["reuse that answer"] + asked -- no --> locked{{"in craft.lock?"}} + locked -- yes --> chosen + locked -- no --> meta{{"metadata loaded
this install?"}} + meta -- no --> load["load once: disk cache,
or registry"] --> pick + meta -- yes --> pick["pick the highest
matching version"] + pick --> chosen["debug@4.4.3"] + chosen --> claimed{{"another task
already has it?"}} + claimed -- yes --> edge["just add an edge"] + claimed -- no --> stored{{"in the global store?"}} + stored -- no --> fetch["download, verify, extract"] --> deps + stored -- yes --> deps["resolve its dependencies,
10 at a time"] + deps -.-> req +``` + +Three tables make that work: + +- **Requests**: one slot per name and range. The first task to ask resolves it; every later task with the same request waits on that slot and reuses the answer. The slot is released before recursing, so a dependency cycle finds the node instead of waiting on itself. +- **Metadata**: one `OnceCell` per package name. However many ranges of `debug` the tree asks for, its metadata is read or fetched once. +- **Claimed nodes**: one entry per resolved version. Only the first task to reach `debug@4.4.3` downloads it and walks its dependencies; the others just record an edge. + +With a lockfile, versions come from `craft.lock` and no registry metadata is read at all. Packages for another platform (an esbuild binary for Windows on a Mac) are recorded in the graph so the lockfile stays the same everywhere, but never downloaded. + +## Metadata, kept lean + +A package's registry metadata (its packument) lists every version ever published, and popular packages have thousands. craft asks for the abbreviated form (`Accept: application/vnd.npm.install-v1+json`), which leaves out readmes and everything else resolution doesn't use, and caches it in its own format: + +```mermaid +flowchart LR + subgraph file ["~/.craft/cache/metadata/…/react.packument"] + direction LR + format["format line
craft-packument-v1"] --- header["header
dist-tags
version → offset, length"] --- manifests["manifests
as the registry sent them,
not parsed"] + end +``` + +Choosing a version needs only the header. The chosen version's manifest is then read from its offset and parsed, and the other few thousand never are. This is most of why craft peaks at 71 MB on the large benchmark app, where pnpm needs 401 MB and npm 2.9 GB. + +The cache honours the registry's `max-age`. Past it, craft asks again with `If-None-Match` and `If-Modified-Since`, and a `304 Not Modified` only refreshes the timestamp. `--offline` and `--prefer-offline` skip the question. + +Abbreviated manifests leave out `libc`, which tells a Linux package's glibc and musl builds apart, so for a Linux-only version without it craft fetches that one version's full manifest and caches it beside the packument. + +## From the network to the store + +- **Bounded requests.** Metadata requests and tarball downloads each run at most `network-concurrency` (16) at a time, with retries and exponential backoff on connection errors, timeouts, 408, 429 and 5xx. +- **Hashed in flight.** A tarball streams into a temporary file beside its store entry and is hashed chunk by chunk as it arrives. Only a file that matched its `integrity` is kept, and no tarball is ever held whole in memory. +- **Extracted on every core.** Gzip and tar are CPU work, so extraction runs on blocking threads, one per core, off the async runtime that keeps the downloads going. +- **Atomic.** A package is extracted into a staging directory and renamed into place, so a store entry is either complete or absent. Any number of concurrent installs can share the store; when two extract the same package, the first rename wins and the other keeps it. + +## From the store to `node_modules` + +A package travels through three places. The global store holds one copy per machine; each project clones the entries it uses into its virtual store, links every package's dependencies beside it, and links only its direct dependencies at the top: + +```mermaid +flowchart TB + store["Global store · ~/.craft/store/v1
express@5.3.0-… · debug@4.4.3-…
one copy per machine, never modified"] + vs["Virtual store · node_modules/.craft
express@5.3.0/node_modules/express
express@5.3.0/node_modules/debug → debug@4.4.3
debug@4.4.3/node_modules/debug
one entry per package, its dependencies beside it"] + root["Project · node_modules
express → .craft/express@5.3.0/node_modules/express
direct dependencies only"] + store == "clone each entry" ==> vs + vs -- "symlink the direct dependencies" --> root +``` + +- **The cheapest import the filesystem has.** On macOS a whole store entry is cloned with a single `clonefile` call, however many files it holds. Elsewhere each file is reflinked (Btrfs, XFS, ReFS), else hard-linked, else copied. The first time a method fails, every later import in the run starts from the next one, so a filesystem without reflinks pays for that failure once, not once per file. +- **Links while importing.** Symlinks may point at entries that aren't imported yet, so imports and links run side by side, each 16 at a time. Bins are linked after both, since linking a bin makes its file executable. +- **Prune only what changed.** A fresh `node_modules` has nothing to prune. Otherwise craft removes the links and entries the new graph doesn't have, and leaves the rest untouched. + +## Concurrency at a glance + +| Work | At a time | +| --- | --- | +| Top-level dependencies being resolved | 2 × cores | +| A package's own dependencies | 10, and each of those fans out in turn | +| Metadata requests | `network-concurrency`, 16 by default | +| Tarball downloads | `network-concurrency`, 16 by default | +| Extractions | one per core, since they are CPU-bound | +| Imports and links | 16 | +| Install scripts | 8, in waves that run the deepest dependencies first | + +## Why it's fast + +Put together, those choices are what the [benchmarks](../guide/benchmarks) measure: + +- **Doing nothing costs nothing.** An installed project answers in about 6 ms, from two file reads, against pnpm's 35 ms and npm and Yarn's 670–900 ms. +- **One pass, not phases.** Resolving, downloading and extracting overlap, so the network, the CPUs and the disk all work at once. +- **Every piece of work happens once per install.** One metadata load per name, one resolution per range, one download per version, one store entry for every project on the machine. +- **Parsing only what's used.** Abbreviated metadata, read lazily, keeps memory at a fraction of the others' (71 MB against 401 MB and 2.9 GB) and saves the time that parsing would cost. +- **Bytes touched once.** Tarballs are verified while they stream and extracted once into the store; projects get clones, which cost no disk space and almost no time. +- **Native code on every core.** craft is a single Rust binary on Tokio's multi-threaded runtime: no runtime to start before the first request, and hashing, decompression and JSON parsing run in parallel. +- **No cleanup at exit.** Freeing a large graph allocation by allocation takes about a second, so craft leaves it to the operating system, which reclaims the whole process at once. + +## Where it's still slow + +craft's own roadmap, in the order it will be worked on: + +- **Downloads still sit on the resolution path.** A package's dependencies are read from its extracted `package.json`, so on a cold install the critical path is the tree's depth × (metadata + download + extraction). Resolving from metadata alone and fetching every tarball as its own task removes that waterfall. +- **The lockfile is used for versions, not the graph.** `craft.lock` records every package's dependencies, but they're still discovered by extracting each package, which is why npm installs the large app from a lockfile with an empty cache in 12.0 s to craft's 19.8 s. +- **Tarballs are written, then reopened to extract.** Unpacking the response stream directly, while hashing it, saves a write and a read per package. +- **Stale metadata is revalidated level by level.** Past the registry's 5-minute `max-age`, craft asks about each package as the walk reaches it, which costs 7.35 s on the large app to pnpm's 1.80 s. A minimum release age would let a recent enough cache answer without asking. diff --git a/docs/contributing/architecture.md b/docs/developers/architecture.md similarity index 100% rename from docs/contributing/architecture.md rename to docs/developers/architecture.md diff --git a/docs/contributing/index.md b/docs/developers/index.md similarity index 90% rename from docs/contributing/index.md rename to docs/developers/index.md index ef4d6d3..06d0281 100644 --- a/docs/contributing/index.md +++ b/docs/developers/index.md @@ -22,7 +22,7 @@ cargo run -p craft -- install # run your build of craft 3. Keep `make` green. Clippy runs with `-D warnings`, and `unwrap` / `expect` are denied outside tests. 4. Open a pull request against `main`. -`REMAINING.md` at the repository root tracks what's planned, with the reasoning behind each task. +`REMAINING.md` at the repository root tracks what's planned, with the reasoning behind each task. To find your way around the code, start with [Anatomy](./anatomy), then the crate map in [Architecture](./architecture). ## Documentation diff --git a/docs/contributing/testing.md b/docs/developers/testing.md similarity index 100% rename from docs/contributing/testing.md rename to docs/developers/testing.md diff --git a/docs/guide/how-it-works.md b/docs/guide/how-it-works.md index 7cc1432..84d15fe 100644 --- a/docs/guide/how-it-works.md +++ b/docs/guide/how-it-works.md @@ -90,3 +90,5 @@ craft records what it installed in `node_modules/.craft/state`. When `package.js - Tarballs are hashed as they stream to disk, so even a large install needs little memory. See [Configuration](./configuration) for the settings. + +For how craft does all this internally, and why it's fast, see [Anatomy](../developers/anatomy) in the developer docs. diff --git a/docs/package.json b/docs/package.json index f3aedbc..39bcf60 100644 --- a/docs/package.json +++ b/docs/package.json @@ -8,6 +8,7 @@ "docs:preview": "vitepress preview" }, "devDependencies": { + "mermaid": "^12.2.0", "vitepress": "1.6.4" } }