Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
TypeScript antigravity-skillsbusiness-knowledgeclaude-codeclaude-skillscodebase-analysiscodexcodex-skillsdeveloper-tools-ai-agentgemini-cli-skillskarpathy-llm-wikiknowledge-baseknowledge-graphmemoryopencode-skillspi-agentunderstandcodevibe-coding
feat(tree-sitter-dart-wasm): vendor freshly-built dart WASM grammar
thejesh3587ffa7a390
diff --git a/understand-anything-plugin/packages/tree-sitter-dart-wasm/BUILD.md b/understand-anything-plugin/packages/tree-sitter-dart-wasm/BUILD.mdnew file mode 100644index 00000000..d6c636f8--- /dev/null+++ b/understand-anything-plugin/packages/tree-sitter-dart-wasm/BUILD.md@@ -0,0 +1,47 @@+# tree-sitter-dart WASM (vendored)++This directory ships a pre-built `tree-sitter-dart.wasm` because the upstream+npm release does not.++## Why vendored++The published `[email protected]` (2023-02-24) tarball does include a+`tree-sitter-dart.wasm`, but it was built with a pre-`dylink.0` tree-sitter+CLI. `[email protected]` — the loader this project uses — expects the+newer `dylink.0` custom-section name and refuses to load the older format+(failure surfaces in `getDylinkMetadata`).++Rebuilding the same upstream grammar.js with a current+`[email protected]` produces a `dylink.0` wasm that loads cleanly.++## How to rebuild++```bash+npm install -g tree-sitter-cli@latest+cd /tmp && npm pack [email protected]+tar xzf tree-sitter-dart-1.0.0.tgz+cd package+tree-sitter build --wasm+cp tree-sitter-dart.wasm \+ /path/to/understand-anything-plugin/packages/tree-sitter-dart-wasm/+```++Verify the resulting wasm:++```bash+head -c 30 tree-sitter-dart.wasm | xxd | head -1+# Expect: ...dylin / k.0...+```++## Provenance++- Grammar source: `[email protected]` (publisher: amaanq) — `grammar.js`+ unchanged, only the wasm artifact is regenerated.+- Built with: `[email protected]`, `wasi-sdk-29-arm64-macos`.+- License: MIT, inherited from [email protected] (publisher: amaanq).++## When to remove this package++If amaanq publishes a refreshed `tree-sitter-dart` with a `dylink.0` wasm,+this workspace package can be deleted and the dependency in+`@understand-anything/core` flipped to the upstream package.diff --git a/understand-anything-plugin/packages/tree-sitter-dart-wasm/package.json b/understand-anything-plugin/packages/tree-sitter-dart-wasm/package.jsonnew file mode 100644index 00000000..595b436a--- /dev/null+++ b/understand-anything-plugin/packages/tree-sitter-dart-wasm/package.json@@ -0,0 +1,9 @@+{+ "name": "@understand-anything/tree-sitter-dart-wasm",+ "version": "0.1.0",+ "type": "module",+ "description": "Vendored tree-sitter-dart WASM grammar built with the modern dylink.0 ABI for use with web-tree-sitter@^0.26.",+ "main": "tree-sitter-dart.wasm",+ "files": ["tree-sitter-dart.wasm", "BUILD.md"],+ "license": "MIT"+}diff --git a/understand-anything-plugin/packages/tree-sitter-dart-wasm/tree-sitter-dart.wasm b/understand-anything-plugin/packages/tree-sitter-dart-wasm/tree-sitter-dart.wasmnew file mode 100644index 00000000..4154b05aBinary files /dev/null and b/understand-anything-plugin/packages/tree-sitter-dart-wasm/tree-sitter-dart.wasm differdiff --git a/understand-anything-plugin/pnpm-lock.yaml b/understand-anything-plugin/pnpm-lock.yamlindex 16b6eed8..23c375d4 100644--- a/understand-anything-plugin/pnpm-lock.yaml+++ b/understand-anything-plugin/pnpm-lock.yaml@@ -11,6 +11,12 @@ importers:'@understand-anything/core':specifier: workspace:*version: link:packages/core+ graphology:+ specifier: ~0.26.0+ version: 0.26.0([email protected])+ graphology-communities-louvain:+ specifier: ^2.0.2+ version: 2.0.2([email protected])devDependencies:'@types/node':specifier: ^22.0.0@@ -24,6 +30,9 @@ importers:packages/core:dependencies:+ '@tree-sitter-grammars/tree-sitter-kotlin':+ specifier: 1.1.0+ version: 1.1.0fuse.js:specifier: ^7.1.0version: 7.1.0@@ -133,7 +142,7 @@ importers:devDependencies:'@tailwindcss/vite':specifier: ^4.0.0- version: 4.2.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 4.2.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@types/d3-force':specifier: ^3.0.10version: 3.0.10@@ -145,7 +154,7 @@ importers:version: 19.2.3(@types/[email protected])'@vitejs/plugin-react':specifier: ^4.3.0- version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@vitest/coverage-v8':specifier: ^3.2.4version: 3.2.4([email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]))@@ -156,12 +165,14 @@ importers:specifier: ^5.7.0version: 5.9.3vite:- specifier: ^6.0.0+ specifier: ^6.4.2vitest:specifier: ^3.1.0version: 3.2.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])+ packages/tree-sitter-dart-wasm: {}+packages:'@ampproject/[email protected]':@@ -482,66 +493,79 @@ packages:resolution: {integrity: sha512-RzeBwv0B3qtVBWtcuABtSuCzToo2IEAIQrcyB/b2zMvBWVbjo8bZDjACUpnaafaxhTw2W+imQbP2BD1usasK4g==}cpu: [arm]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-Sf7zusNI2CIU1HLzuu9Tc5YGAHEZs5Lu7N1ssJG4Tkw6e0MEsN7NdjUDDfGNHy2IU+ENyWT+L2obgWiguWibWQ==}cpu: [arm]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-DX2x7CMcrJzsE91q7/O02IJQ5/aLkVtYFryqCjduJhUfGKG6yJV8hxaw8pZa93lLEpPTP/ohdN4wFz7yp/ry9A==}cpu: [arm64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-09EL+yFVbJZlhcQfShpswwRZ0Rg+z/CsSELFCnPt3iK+iqwGsI4zht3secj5vLEs957QvFFXnzAT0FFPIxSrkQ==}cpu: [arm64]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-i9IcCMPr3EXm8EQg5jnja0Zyc1iFxJjZWlb4wr7U2Wx/GrddOuEafxRdMPRYVaXjgbhvqalp6np07hN1w9kAKw==}cpu: [loong64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-DGzdJK9kyJ+B78MCkWeGnpXJ91tK/iKA6HwHxF4TAlPIY7GXEvMe8hBFRgdrR9Ly4qebR/7gfUs9y2IoaVEyog==}cpu: [loong64]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-RwpnLsqC8qbS8z1H1AxBA1H6qknR4YpPR9w2XX0vo2Sz10miu57PkNcnHVaZkbqyw/kUWfKMI73jhmfi9BRMUQ==}cpu: [ppc64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-Z8pPf54Ly3aqtdWC3G4rFigZgNvd+qJlOE52fmko3KST9SoGfAdSRCwyoyG05q1HrrAblLbk1/PSIV+80/pxLg==}cpu: [ppc64]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-3a3qQustp3COCGvnP4SvrMHnPQ9d1vzCakQVRTliaz8cIp/wULGjiGpbcqrkv0WrHTEp8bQD/B3HBjzujVWLOA==}cpu: [riscv64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-pjZDsVH/1VsghMJ2/kAaxt6dL0psT6ZexQVrijczOf+PeP2BUqTHYejk3l6TlPRydggINOeNRhvpLa0AYpCWSQ==}cpu: [riscv64]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-3ObQs0BhvPgiUVZrN7gqCSvmFuMWvWvsjG5ayJ3Lraqv+2KhOsp+pUbigqbeWqueGIsnn+09HBw27rJ+gYK4VQ==}cpu: [s390x]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-EtylprDtQPdS5rXvAayrNDYoJhIz1/vzN2fEubo3yLE7tfAw+948dO0g4M0vkTVFhKojnF+n6C8bDNe+gDRdTg==}cpu: [x64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-k09oiRCi/bHU9UVFqD17r3eJR9bn03TyKraCrlz5ULFJGdJGi7VOmm9jl44vOJvRJ6P7WuBi/s2A97LxxHGIdw==}cpu: [x64]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-1o/0/pIhozoSaDJoDcec+IVLbnRtQmHwPV730+AOD29lHEEo4F5BEUB24H0OBdhbBBDwIOSuf7vgg0Ywxdfiiw==}@@ -611,24 +635,28 @@ packages:engines: {node: '>= 20'}cpu: [arm64]os: [linux]+ libc: [glibc]'@tailwindcss/[email protected]':resolution: {integrity: sha512-oCfG/mS+/+XRlwNjnsNLVwnMWYH7tn/kYPsNPh+JSOMlnt93mYNCKHYzylRhI51X+TbR+ufNhhKKzm6QkqX8ag==}engines: {node: '>= 20'}cpu: [arm64]os: [linux]+ libc: [musl]'@tailwindcss/[email protected]':resolution: {integrity: sha512-rTAGAkDgqbXHNp/xW0iugLVmX62wOp2PoE39BTCGKjv3Iocf6AFbRP/wZT/kuCxC9QBh9Pu8XPkv/zCZB2mcMg==}engines: {node: '>= 20'}cpu: [x64]os: [linux]+ libc: [glibc]'@tailwindcss/[email protected]':resolution: {integrity: sha512-XW3t3qwbIwiSyRCggeO2zxe3KWaEbM0/kW9e8+0XpBgyKU4ATYzcVSMKteZJ1iukJ3HgHBjbg9P5YPRCVUxlnQ==}engines: {node: '>= 20'}cpu: [x64]os: [linux]+ libc: [musl]'@tailwindcss/[email protected]':resolution: {integrity: sha512-eKSztKsmEsn1O5lJ4ZAfyn41NfG7vzCg496YiGtMDV86jz1q/irhms5O0VrY6ZwTUkFy/EKG3RfWgxSI3VbZ8Q==}@@ -663,6 +691,14 @@ packages:peerDependencies:vite: ^5.2.0 || ^6 || ^7 || ^8+ '@tree-sitter-grammars/[email protected]':+ resolution: {integrity: sha512-vlVXaxEE8t2kpJgfZpa8XVvxcnKw9AYtRTgy7KWjsDmAsadk06RxAT80IXOgGQnmM9i/orQn1nD84gPNUHu6DQ==}+ peerDependencies:+ tree-sitter: ^0.22.4+ peerDependenciesMeta:+ tree-sitter:+ optional: true+'@types/[email protected]':resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}@@ -1084,6 +1120,11 @@ packages:peerDependencies:graphology-types: '>=0.24.0'+ resolution: {integrity: sha512-8SSImzgUUYC89Z042s+0r/vMibY7GX/Emz4LDO5e7jYXhuoWfHISPFJYjpRLUSJGq6UQ6xlenvX1p/hJdfXuXg==}+ peerDependencies:+ graphology-types: '>=0.24.0'+resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}engines: {node: '>=8'}@@ -1207,24 +1248,28 @@ packages:engines: {node: '>= 12.0.0'}cpu: [arm64]os: [linux]+ libc: [glibc]resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==}engines: {node: '>= 12.0.0'}cpu: [arm64]os: [linux]+ libc: [musl]resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==}engines: {node: '>= 12.0.0'}cpu: [x64]os: [linux]+ libc: [glibc]resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==}engines: {node: '>= 12.0.0'}cpu: [x64]os: [linux]+ libc: [musl]resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==}@@ -1385,6 +1430,11 @@ packages:resolution: {integrity: sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==}+ resolution: {integrity: sha512-bkUy2g4v1i+3FeUf5fXMLbxmV95eG4/sS7lYE32GrUeVgQRfQEk39gpskksFunyaxQgTIdrvYbnuNbO/pSUSqw==}+ engines: {node: ^18.18.0 || >=20.0.0, npm: '>=8.12.1'}+ hasBin: true+resolution: {integrity: sha512-42CPE9AhahZRsMNslczq0ctAEtqk8Eka26QofnqC346BZdHDySk3LWka23LI7ULIw11NmltpiLagIq8gBozxTw==}@@ -1759,6 +1809,46 @@ packages:yaml:optional: true+ resolution: {integrity: sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==}+ engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}+ hasBin: true+ peerDependencies:+ '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0+ jiti: '>=1.21.0'+ less: '*'+ lightningcss: ^1.21.0+ sass: '*'+ sass-embedded: '*'+ stylus: '*'+ sugarss: '*'+ terser: ^5.16.0+ tsx: ^4.8.1+ yaml: ^2.4.2+ peerDependenciesMeta:+ '@types/node':+ optional: true+ jiti:+ optional: true+ less:+ optional: true+ lightningcss:+ optional: true+ sass:+ optional: true+ sass-embedded:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+ tsx:+ optional: true+ yaml:+ optional: true+resolution: {integrity: sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==}engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}@@ -2231,12 +2321,18 @@ snapshots:'@tailwindcss/oxide-win32-arm64-msvc': 4.2.2'@tailwindcss/oxide-win32-x64-msvc': 4.2.2- '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@tailwindcss/node': 4.2.2'@tailwindcss/oxide': 4.2.2tailwindcss: 4.2.2++ '@tree-sitter-grammars/[email protected]':+ dependencies:+ node-addon-api: 8.7.0+ node-gyp-build: 4.8.4+ npm-check-updates: 17.1.18'@types/[email protected]':dependencies:@@ -2333,7 +2429,7 @@ snapshots:'@ungap/[email protected]': {}- '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.29.0'@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/[email protected])@@ -2341,7 +2437,7 @@ snapshots:'@rolldown/pluginutils': 1.0.0-beta.27'@types/babel__core': 7.20.5react-refresh: 0.17.0transitivePeerDependencies:- supports-color@@ -2692,6 +2788,11 @@ snapshots:graphology-types: 0.24.8obliterator: 2.0.5+ dependencies:+ events: 3.3.0+ graphology-types: 0.24.8+@@ -3101,6 +3202,8 @@ snapshots:+ [email protected]: {}+@@ -3444,7 +3547,7 @@ snapshots:debug: 4.4.3es-module-lexer: 1.7.0pathe: 2.0.3transitivePeerDependencies:- '@types/node'- jiti@@ -3465,7 +3568,7 @@ snapshots:debug: 4.4.3es-module-lexer: 1.7.0pathe: 2.0.3transitivePeerDependencies:- '@types/node'- jiti@@ -3510,6 +3613,36 @@ snapshots:lightningcss: 1.32.0yaml: 2.8.3+ [email protected](@types/[email protected])([email protected])([email protected])([email protected]):+ dependencies:+ esbuild: 0.25.12+ fdir: 6.5.0([email protected])+ picomatch: 4.0.4+ postcss: 8.5.8+ rollup: 4.60.0+ tinyglobby: 0.2.15+ optionalDependencies:+ '@types/node': 22.19.15+ fsevents: 2.3.3+ jiti: 2.6.1+ lightningcss: 1.32.0+ yaml: 2.8.3++ [email protected](@types/[email protected])([email protected])([email protected])([email protected]):+ dependencies:+ esbuild: 0.25.12+ fdir: 6.5.0([email protected])+ picomatch: 4.0.4+ postcss: 8.5.8+ rollup: 4.60.0+ tinyglobby: 0.2.15+ optionalDependencies:+ '@types/node': 25.5.0+ fsevents: 2.3.3+ jiti: 2.6.1+ lightningcss: 1.32.0+ yaml: 2.8.3+[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):dependencies:'@types/chai': 5.2.3