Download apps/server/scripts/check-runtime-dependencies.mjs from Leon4gr45/automaker: direct link, hf CLI and curl.
- Browser
- Download file 931 Bytes
-
https://huggingface.co/spaces/Leon4gr45/automaker/resolve/main/apps/server/scripts/check-runtime-dependencies.mjs
- Command line
-
hf download hf://spaces/Leon4gr45/automaker/apps/server/scripts/check-runtime-dependencies.mjs
-
curl -L -o check-runtime-dependencies.mjs https://huggingface.co/spaces/Leon4gr45/automaker/resolve/main/apps/server/scripts/check-runtime-dependencies.mjs
931 Bytes
| // Use Node's production ESM resolver: TypeScript and mocked provider tests can | |
| // accept a dependency whose published JavaScript fails during server startup. | |
| // Importing these entry points does not construct clients or start remote work. | |
| const entryPoints = [ | |
| '@anthropic-ai/claude-agent-sdk', | |
| '@github/copilot-sdk', | |
| '@modelcontextprotocol/sdk/client/index.js', | |
| '@modelcontextprotocol/sdk/client/stdio.js', | |
| '@modelcontextprotocol/sdk/client/sse.js', | |
| '@modelcontextprotocol/sdk/client/streamableHttp.js', | |
| '@openai/codex-sdk', | |
| 'morgan', | |
| 'ws', | |
| 'yaml', | |
| 'node-pty', | |
| ]; | |
| for (const entryPoint of entryPoints) { | |
| try { | |
| await import(entryPoint); | |
| console.log(`Runtime import passed: ${entryPoint}`); | |
| } catch (error) { | |
| console.error(`Runtime import failed: ${entryPoint}`); | |
| console.error(error instanceof Error ? error.message : String(error)); | |
| process.exitCode = 1; | |
| } | |
| } | |