Skip to content

Commit 0d10975

Browse files
committed
docs: document infra runtime helpers
1 parent a9a386d commit 0d10975

24 files changed

Lines changed: 24 additions & 0 deletions

src/infra/approval-native-delivery.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Native delivery contract for approval prompts and responses.
12
import type {
23
ChannelApprovalNativeAdapter,
34
ChannelApprovalNativeSurface,

src/infra/archive-helpers.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests archive helper behavior for filesystem packaging.
12
import fs from "node:fs/promises";
23
import path from "node:path";
34
import { afterEach, describe, expect, it, vi } from "vitest";

src/infra/backup-volatile-filter.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests volatile path filtering for backup operations.
12
import { describe, expect, it } from "vitest";
23
import { isVolatileBackupPath } from "./backup-volatile-filter.js";
34

src/infra/boundary-file-read.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests safe boundary file reads against upstream fs-safe behavior.
12
import * as upstream from "@openclaw/fs-safe/advanced";
23
import { describe, expect, it } from "vitest";
34
import * as shim from "./boundary-file-read.js";

src/infra/brew.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Discovers Homebrew paths and package metadata for diagnostics.
12
import fs from "node:fs";
23
import os from "node:os";
34
import path from "node:path";

src/infra/device-auth-store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Persists device authorization records for paired nodes.
12
import fs from "node:fs";
23
import path from "node:path";
34
import { resolveStateDir } from "../config/paths.js";

src/infra/gateway-lock.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests gateway lock file ownership and stale-lock behavior.
12
import { createHash } from "node:crypto";
23
import { EventEmitter } from "node:events";
34
import fsSync from "node:fs";

src/infra/gateway-processes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Inspects local gateway processes for status and diagnostics.
12
import { spawnSync } from "node:child_process";
23
import fsSync from "node:fs";
34
import { uniqueValues } from "@openclaw/normalization-core/string-normalization";

src/infra/google-api-base-url.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests Google API base URL normalization for provider requests.
12
import { describe, expect, it } from "vitest";
23
import { DEFAULT_GOOGLE_API_BASE_URL, normalizeGoogleApiBaseUrl } from "./google-api-base-url.js";
34

src/infra/hardlink-guards.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests hardlink guard detection for unsafe filesystem paths.
12
import fs from "node:fs/promises";
23
import os from "node:os";
34
import path from "node:path";

0 commit comments

Comments
 (0)