Skip to content

Commit 334a1dd

Browse files
committed
docs: document infra package helpers
1 parent 5c08fb2 commit 334a1dd

24 files changed

Lines changed: 24 additions & 0 deletions

src/infra/approval-handler-bootstrap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Bootstraps approval handlers from channel plugin capabilities.
12
import { resolveChannelApprovalCapability } from "../channels/plugins/approvals.js";
23
import type { ChannelRuntimeSurface } from "../channels/plugins/channel-runtime-surface.types.js";
34
import type { ChannelPlugin } from "../channels/plugins/types.plugin.js";

src/infra/archive-path.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Resolves archive paths through safe filesystem defaults.
12
import "./fs-safe-defaults.js";
23

34
// Archive path facade kept in infra so callers share one traversal policy.

src/infra/brew.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests Homebrew discovery and metadata parsing helpers.
12
import fs from "node:fs/promises";
23
import path from "node:path";
34
import { describe, expect, it } from "vitest";

src/infra/channel-approval-auth.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests channel approval authorization and sender validation.
12
import { beforeEach, describe, expect, it, vi } from "vitest";
23
import { createResolvedApproverActionAuthAdapter } from "../plugin-sdk/approval-auth-helpers.js";
34

src/infra/control-ui-assets.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests Control UI asset discovery and expected bundled files.
12
import path from "node:path";
23
import { pathToFileURL } from "node:url";
34
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";

src/infra/dotenv-global.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Loads global dotenv files into process environment when requested.
12
import fs from "node:fs";
23
import os from "node:os";
34
import path from "node:path";

src/infra/errors.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests shared infra error formatting and classification.
12
import { describe, expect, it } from "vitest";
23
import {
34
collectErrorGraphCandidates,

src/infra/exec-safe-builtins.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests shell builtin detection for safe execution policy.
12
import { describe, expect, it } from "vitest";
23
import { evaluateExecAllowlist, evaluateShellAllowlist } from "./exec-approvals-allowlist.js";
34
import { analyzeArgvCommand } from "./exec-approvals-analysis.js";

src/infra/fs-safe.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests safe filesystem wrappers and protected file-handle behavior.
12
import type { FileHandle } from "node:fs/promises";
23
import fs from "node:fs/promises";
34
import path from "node:path";

src/infra/gateway-discovery-targets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Normalizes gateway discovery targets for local and remote lookups.
12
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
23
import {
34
resolveGatewayDiscoveryEndpoint,

0 commit comments

Comments
 (0)