Skip to content

Commit dc3f2bd

Browse files
committed
docs: document infra process helpers
1 parent d819ef3 commit dc3f2bd

24 files changed

Lines changed: 24 additions & 0 deletions

src/infra/approval-native-target-key.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests native approval target key generation.
12
import { describe, expect, it } from "vitest";
23
import { buildChannelApprovalNativeTargetKey } from "./approval-native-target-key.js";
34

src/infra/binaries.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests bundled binary discovery and version command helpers.
12
import { describe, expect, it, vi } from "vitest";
23
import type { runExec } from "../process/exec.js";
34
import type { RuntimeEnv } from "../runtime.js";

src/infra/boundary-path.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests path boundary enforcement for safe file access.
12
import fs from "node:fs/promises";
23
import path from "node:path";
34
import { describe, expect, it } from "vitest";

src/infra/build-stamp.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests build stamp file parsing and fallback behavior.
12
import fs from "node:fs/promises";
23
import { describe, expect, it } from "vitest";
34
import { writeBuildStamp } from "../../scripts/build-stamp.mjs";

src/infra/clipboard.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Reads and writes clipboard text through platform command helpers.
12
import { runCommandWithTimeout } from "../process/exec.js";
23
import { isWSL2Sync } from "./wsl.js";
34

src/infra/exec-approval-reply.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests execution approval reply text and decision formatting.
12
import { describe, expect, it, vi } from "vitest";
23
import type { ReplyPayload } from "../auto-reply/types.js";
34

src/infra/executable-path.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Resolves executable paths from PATH and platform-specific install locations.
12
import fs from "node:fs";
23
import path from "node:path";
34
import { normalizeLowercaseStringOrEmpty } from "@openclaw/normalization-core/string-coerce";

src/infra/heartbeat-events.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests heartbeat event emission and listener cleanup.
12
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
23
import {
34
emitHeartbeatEvent,

src/infra/heartbeat-reason.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests heartbeat reason formatting and normalization.
12
import { describe, expect, it } from "vitest";
23
import { normalizeHeartbeatWakeReason } from "./heartbeat-reason.js";
34

src/infra/heartbeat-runner.test-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Shared heartbeat runner fixtures for infra tests.
12
import fs from "node:fs/promises";
23
import os from "node:os";
34
import path from "node:path";

0 commit comments

Comments
 (0)