MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / scriptParams

Function scriptParams

projects/runtime-node/src/process.ts:100–108  ·  view source on GitHub ↗
(params: unknown)

Source from the content-addressed store, hash-verified

98}
99
100function scriptParams(params: unknown): RuntimeNodeScriptStartParams {
101 const record = asRecord(params)
102 return {
103 script: requiredString(record, "script"),
104 cwd: requiredString(record, "cwd"),
105 env: optionalStringRecord(record.env),
106 timeoutMs: optionalNumber(record.timeoutMs),
107 }
108}
109
110export function registerRuntimeNodeProcessModule(server: RuntimeServer, adapter: RuntimeNodeProcessAdapter): () => void {
111 server.registerNotification("process/started")

Callers 1

Calls 4

requiredStringFunction · 0.90
optionalStringRecordFunction · 0.90
asRecordFunction · 0.70
optionalNumberFunction · 0.70

Tested by

no test coverage detected