(params: unknown)
| 98 | } |
| 99 | |
| 100 | function 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 | |
| 110 | export function registerRuntimeNodeProcessModule(server: RuntimeServer, adapter: RuntimeNodeProcessAdapter): () => void { |
| 111 | server.registerNotification("process/started") |
no test coverage detected