Skip to content

Commit a628a66

Browse files
committed
docs: document process helpers
1 parent ef08c83 commit a628a66

28 files changed

Lines changed: 28 additions & 0 deletions

src/process/child-process-bridge.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Child process bridge adapts child process events into typed lifecycle callbacks.
12
import type { ChildProcess } from "node:child_process";
23
import process from "node:process";
34

src/process/command-queue.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Command queue tests cover bounded command execution and queue ordering.
12
import { importFreshModule } from "openclaw/plugin-sdk/test-fixtures";
23
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
34
import { CommandLane } from "./lanes.js";

src/process/command-queue.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Command queue serializes and limits process execution for shared command lanes.
12
import {
23
diagnosticLogger as diag,
34
logLaneDequeue,

src/process/exec.no-output-timer.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// No-output timer tests cover idle command timeout and output reset behavior.
12
import type { ChildProcess } from "node:child_process";
23
import { EventEmitter } from "node:events";
34
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";

src/process/exec.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Exec tests cover command execution, output capture, and cancellation behavior.
12
import type { ChildProcess } from "node:child_process";
23
import { EventEmitter } from "node:events";
34
import process from "node:process";

src/process/exec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Exec helpers run subprocesses with normalized output, timeout, and abort handling.
12
import { execFile, spawn } from "node:child_process";
23
import fs from "node:fs";
34
import path from "node:path";

src/process/exec.windows.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Windows exec tests cover command invocation behavior on Windows paths.
12
import type { execFile as execFileType } from "node:child_process";
23
import { EventEmitter } from "node:events";
34
import fs from "node:fs";

src/process/kill-tree.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Kill tree tests cover process tree termination and platform-specific fallbacks.
12
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
23
import { withMockedPlatform } from "../test-utils/vitest-spies.js";
34

src/process/linux-oom-score.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Linux OOM score tests cover best-effort process OOM score adjustment.
12
import { describe, expect, it } from "vitest";
23
import {
34
hardenedEnvForChildOomWrap,

src/process/linux-oom-score.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Linux OOM score helpers adjust child process OOM priority when supported.
12
import fs from "node:fs";
23

34
/**

0 commit comments

Comments
 (0)