From a69dd43de5b502b4d9739f67261b397ada259feb Mon Sep 17 00:00:00 2001 From: Shakker <165377636+shakkernerd@users.noreply.github.com> Date: Wed, 10 Jun 2026 19:16:00 +0100 Subject: [PATCH] docs: document command timeout result code --- docs/plugins/sdk-runtime.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/plugins/sdk-runtime.md b/docs/plugins/sdk-runtime.md index cf430c759e19..cf2cd331a9b7 100644 --- a/docs/plugins/sdk-runtime.md +++ b/docs/plugins/sdk-runtime.md @@ -471,6 +471,13 @@ two-party event loops that do not go through the shared inbound reply runner. const hint = api.runtime.system.formatNativeDependencyHint(pkg); ``` + `runCommandWithTimeout(...)` returns captured `stdout` and `stderr`, optional + truncation counts, `code`, `signal`, `killed`, `termination`, and + `noOutputTimedOut`. Timeout and no-output-timeout results report `code: 124` + when the child process does not provide a non-zero exit code. Non-timeout + signal exits can still return `code: null`, so use `termination` and + `noOutputTimedOut` to distinguish timeout reasons. + Event subscriptions.