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
fix(skill): make /understand work on Windows + pnpm 10
tipich366368face60
diff --git a/understand-anything-plugin/package.json b/understand-anything-plugin/package.jsonindex bb424829..b1ef3a2e 100644--- a/understand-anything-plugin/package.json+++ b/understand-anything-plugin/package.json@@ -15,5 +15,22 @@"@types/node": "^22.0.0","typescript": "^5.7.0","vitest": "^3.1.0"+ },+ "pnpm": {+ "onlyBuiltDependencies": [+ "esbuild",+ "sharp",+ "tree-sitter-c",+ "tree-sitter-c-sharp",+ "tree-sitter-cpp",+ "tree-sitter-go",+ "tree-sitter-java",+ "tree-sitter-javascript",+ "tree-sitter-php",+ "tree-sitter-python",+ "tree-sitter-ruby",+ "tree-sitter-rust",+ "tree-sitter-typescript"+ ]}}diff --git a/understand-anything-plugin/pnpm-lock.yaml b/understand-anything-plugin/pnpm-lock.yamlindex bf0f21f0..16b6eed8 100644--- a/understand-anything-plugin/pnpm-lock.yaml+++ b/understand-anything-plugin/pnpm-lock.yaml@@ -100,6 +100,18 @@ importers:devlop:specifier: ^1.1.0version: 1.1.0+ elkjs:+ specifier: ^0.9.3+ version: 0.9.3+ graphology:+ specifier: ^0.25.4+ version: 0.25.4([email protected])+ graphology-communities-louvain:+ specifier: ^2.0.1+ version: 2.0.2([email protected])+ graphology-types:+ specifier: ^0.24.8+ version: 0.24.8hast-util-to-jsx-runtime:specifier: ^2.3.6version: 2.3.6@@ -134,6 +146,9 @@ importers:'@vitejs/plugin-react':specifier: ^4.3.0version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@vitest/coverage-v8':+ specifier: ^3.2.4+ version: 3.2.4([email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]))tailwindcss:specifier: ^4.0.0version: 4.2.2@@ -143,6 +158,9 @@ importers:vite:specifier: ^6.0.0+ vitest:+ specifier: ^3.1.0+ version: 3.2.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])packages:@@ -967,6 +985,9 @@ packages:resolution: {integrity: sha512-PwfIw7WQSt3xX7yOf5OE/unLzsK9CaN2f/FvV3WjPR1Knoc1T9vePRVV4W1EM301JzzysK51K7FNKcusCr0zYA==}+ resolution: {integrity: sha512-f/ZeWvW/BCXbhGEf1Ujp29EASo/lk1FDnETgNKwJrsVvGZhUWCZyg3xLJjAsxfOmt8KjswHmI5EwCQcPMpOYhQ==}+resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}@@ -995,6 +1016,10 @@ packages:resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}+ resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}+ engines: {node: '>=0.8.x'}+resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}engines: {node: '>=12.0.0'}@@ -1036,6 +1061,29 @@ packages:resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}+ resolution: {integrity: sha512-zt+2hHVPYxjEquyecxWXoUoIuN/UvYzsvI7boDdMNz0rRvpESQ7+e+Ejv6wK7AThycbZXuQ6DkG8NPMCq6XwoA==}+ peerDependencies:+ graphology-types: '>=0.19.0'++ resolution: {integrity: sha512-A7RXuKQvdqSWOpn7ZVQo4S33O0vCfPBnUSf7FwE0zNCasqwZVUaCXePuWo5HBpWw68KJcwObZDHpFk6HKH6MYQ==}+ peerDependencies:+ graphology-types: '>=0.20.0'++ resolution: {integrity: sha512-hDRKYXa8TsoZHjgEaysSRyPdT6uB78Ci8WnjgbStlQysz7xR52PInxNsmnB7IBOM1BhikxkNyCVEFgmPKnpx3Q==}++ resolution: {integrity: sha512-ckHg8MXrXJkOARk56ZaSCM1g1Wihe2d6iTmz1enGOz4W/l831MBCKSayeFQfowgF8wd+PQ4rlch/56Vs/VZLDQ==}+ peerDependencies:+ graphology-types: '>=0.23.0'++ resolution: {integrity: sha512-33g0Ol9nkWdD6ulw687viS8YJQBxqG5LWII6FI6nul0pq6iM2t5EKquOTFDbyTblRB3O9I+7KX4xI8u5ffekAQ==}+ peerDependencies:+ graphology-types: '>=0.24.0'+resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}engines: {node: '>=8'}@@ -1315,6 +1363,9 @@ packages:resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}engines: {node: '>=16 || 14 >=14.17'}+ resolution: {integrity: sha512-vyWo2K3fjrUw8YeeZ1zF0fy6Mu59RHokURlld8ymdUPjMlD9EC9ov1/YPqTgqRvUN9nTr3Gqfz29LYAmu0PHPQ==}+resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}@@ -1334,9 +1385,15 @@ packages:resolution: {integrity: sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==}+ resolution: {integrity: sha512-42CPE9AhahZRsMNslczq0ctAEtqk8Eka26QofnqC346BZdHDySk3LWka23LI7ULIw11NmltpiLagIq8gBozxTw==}+resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}+ resolution: {integrity: sha512-wRqjisUyiUfXowgm7MFH2rwJzKIr20rca5FsHXCMNm1W5YPP1hCtrZfgmQ62kP7OZ7Xt+cR858aB28lu5NX55g==}+resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==}@@ -2526,6 +2583,8 @@ snapshots:+ [email protected]: {}+@@ -2574,6 +2633,8 @@ snapshots:dependencies:'@types/estree': 1.0.8+ [email protected]: {}+@@ -2605,6 +2666,32 @@ snapshots:+ dependencies:+ graphology-indices: 0.17.0([email protected])+ graphology-types: 0.24.8+ graphology-utils: 2.5.2([email protected])+ mnemonist: 0.39.8+ pandemonium: 2.4.1++ dependencies:+ graphology-types: 0.24.8+ graphology-utils: 2.5.2([email protected])+ mnemonist: 0.39.8++ [email protected]: {}++ dependencies:+ graphology-types: 0.24.8++ dependencies:+ events: 3.3.0+ graphology-types: 0.24.8+ obliterator: 2.0.5+@@ -3000,6 +3087,10 @@ snapshots:+ dependencies:+ obliterator: 2.0.5+@@ -3010,8 +3101,14 @@ snapshots:+ [email protected]: {}++ dependencies:+ mnemonist: 0.39.8+dependencies:'@types/unist': 2.0.11diff --git a/understand-anything-plugin/skills/understand/extract-structure.mjs b/understand-anything-plugin/skills/understand/extract-structure.mjsindex 1c3f547f..030bc0f7 100644--- a/understand-anything-plugin/skills/understand/extract-structure.mjs+++ b/understand-anything-plugin/skills/understand/extract-structure.mjs@@ -28,13 +28,17 @@ const require = createRequire(resolve(pluginRoot, 'package.json'));// ---------------------------------------------------------------------------// Resolve @understand-anything/core+//+// Node ESM dynamic import() requires a file:// URL on Windows; passing a raw+// absolute path like "C:\..." throws ERR_UNSUPPORTED_ESM_URL_SCHEME because the+// loader parses "C:" as a URL scheme. Wrap both resolutions in pathToFileURL().// ---------------------------------------------------------------------------let core;try {- core = await import(require.resolve('@understand-anything/core'));+ core = await import(pathToFileURL(require.resolve('@understand-anything/core')).href);} catch {// Fallback: direct path for installed plugin cache layouts- core = await import(resolve(pluginRoot, 'packages/core/dist/index.js'));+ core = await import(pathToFileURL(resolve(pluginRoot, 'packages/core/dist/index.js')).href);}const { TreeSitterPlugin, PluginRegistry, builtinLanguageConfigs, registerAllParsers } = core;