Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Resolve npm through the shell for Windows compatibility
Martin Vogele599df1d563c
diff --git a/scripts/gen-ui-licenses.py b/scripts/gen-ui-licenses.pyindex cf62a1a0b..6b62944db 100755--- a/scripts/gen-ui-licenses.py+++ b/scripts/gen-ui-licenses.py@@ -67,9 +67,11 @@ def declared_license(pkg_dir):def main():ui_dir = sys.argv[1]+ # shell=True so the npm shim resolves on every platform (npm.cmd on+ # Windows is not found by bare-name exec). Constant command, no injection.ls = subprocess.run(- ["npm", "ls", "--omit=dev", "--all", "--json"],- cwd=ui_dir, capture_output=True, text=True, check=False,+ "npm ls --omit=dev --all --json",+ shell=True, cwd=ui_dir, capture_output=True, text=True, check=False,)tree = json.loads(ls.stdout or "{}")pkgs = set()diff --git a/scripts/license-gate-check-npm.py b/scripts/license-gate-check-npm.pyindex f426f9f7a..b16f6ca6a 100755--- a/scripts/license-gate-check-npm.py+++ b/scripts/license-gate-check-npm.py@@ -69,8 +69,10 @@ def main():ignored_pkgs = set(policy.get("ignored_npm_packages", []))skip_tokens = {"and", "or", "with", ""}- ls = subprocess.run(["npm", "ls", "--omit=dev", "--all", "--json"],- cwd=ui_dir, capture_output=True, text=True, check=False)+ # shell=True so the npm shim resolves on every platform (npm.cmd on+ # Windows is not found by bare-name exec). Constant command, no injection.+ ls = subprocess.run("npm ls --omit=dev --all --json",+ shell=True, cwd=ui_dir, capture_output=True, text=True, check=False)tree = json.loads(ls.stdout or "{}")pkgs = {}collect(ui_dir, tree.get("dependencies"), pkgs)