Skip to content

Commit 8408c16

Browse files
committed
docs: document config diagnostics helpers
1 parent 40c8ed0 commit 8408c16

24 files changed

Lines changed: 24 additions & 0 deletions

src/config/byte-size.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Parses byte-size config values for logging and retention limits.
12
import { parseByteSize } from "../cli/parse-bytes.js";
23

34
/**

src/config/cache-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Provides config cache helpers with filesystem freshness checks.
12
import fs from "node:fs";
23
import { parseStrictNonNegativeInteger } from "../infra/parse-finite-number.js";
34

src/config/codex-plugin-diagnostics.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Builds diagnostics for Codex plugin config and provider wiring.
12
import { normalizeProviderId } from "@openclaw/model-catalog-core/provider-id";
23
import { normalizeLowercaseStringOrEmpty } from "@openclaw/normalization-core/string-coerce";
34
import {

src/config/config.allowlist-requires-allowfrom.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Regresses allowlist config requiring explicit allowFrom entries.
12
import { describe, expect, it } from "vitest";
23
import {
34
DiscordConfigSchema,

src/config/config.hooks-module-paths.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers hook module path config validation.
12
import { describe, expect, it } from "vitest";
23
import { validateConfigObjectWithPlugins } from "./validation.js";
34

src/config/config.multi-agent-agentdir-validation.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Verifies multi-agent agent directory validation and rejection paths.
12
import { tmpdir } from "node:os";
23
import path from "node:path";
34
import { describe, expect, it, vi } from "vitest";

src/config/logging.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Normalizes logging config, log paths, and file-size limits.
12
import fs from "node:fs";
23
import { theme } from "../../packages/terminal-core/src/theme.js";
34
import type { RuntimeEnv } from "../runtime.js";

src/config/markdown-tables.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers markdown table config normalization and channel overrides.
12
import { describe, expect, it, vi } from "vitest";
23

34
const listChannelPluginsMock = vi.hoisted(() =>

src/config/merge-patch.proto-pollution.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Verifies config merge patches reject prototype pollution inputs.
12
import { describe, it, expect } from "vitest";
23
import { applyMergePatch } from "./merge-patch.js";
34

src/config/merge-patch.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers JSON merge-patch behavior for config mutations.
12
import { describe, expect, it } from "vitest";
23
import { applyMergePatch } from "./merge-patch.js";
34

0 commit comments

Comments
 (0)