MCPcopy Create free account
hub / github.com/Noumena-Network/code / spawnScriptArgs

Function spawnScriptArgs

src/bridge/bridgeMain.ts:125–130  ·  view source on GitHub ↗

* Returns the args that must precede CLI flags when spawning a child CLI * process. In compiled binaries, process.execPath is the CLI binary itself * and args go directly to it. In npm installs (node running cli.js), * process.execPath is the node runtime — the child spawn must pass the script *

()

Source from the content-addressed store, hash-verified

123 * and exits with "bad option: --sdk-url".
124 */
125function spawnScriptArgs(): string[] {
126 if (isInBundledMode() || !process.argv[1]) {
127 return []
128 }
129 return [process.argv[1]]
130}
131
132/** Attempt to spawn a session; returns error string if spawn throws. */
133function safeSpawn(

Callers 2

bridgeMainFunction · 0.85
runBridgeHeadlessFunction · 0.85

Calls 1

isInBundledModeFunction · 0.85

Tested by

no test coverage detected