Skip to content

Commit 119bb57

Browse files
committed
docs: document auto reply command gates
1 parent 21c3d69 commit 119bb57

24 files changed

Lines changed: 24 additions & 0 deletions

src/auto-reply/reply/acp-projector.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests ACP event projection into session updates and reply payloads.
12
import { describe, expect, it, vi } from "vitest";
23
import { prefixSystemMessage } from "../../infra/system-message.js";
34
import { createAcpReplyProjector } from "./acp-projector.js";

src/auto-reply/reply/command-gates.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Applies command feature gates before command handlers execute.
12
import { isCommandFlagEnabled, type CommandFlagKey } from "../../config/commands.flags.js";
23
import { logVerbose } from "../../globals.js";
34
import { redactIdentifier } from "../../logging/redact-identifier.js";

src/auto-reply/reply/commands-filesystem.test-support.ts

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

src/auto-reply/reply/commands-handlers.runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Loads command handlers behind a runtime boundary for the command dispatcher.
12
import { handleAcpCommand } from "./commands-acp.js";
23
import { handleAllowlistCommand } from "./commands-allowlist.js";
34
import { handleApproveCommand } from "./commands-approve.js";

src/auto-reply/reply/commands-info.tools.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests tool listing in info command responses.
12
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
23
import type { EffectiveToolInventoryResult } from "../../agents/tools-effective-inventory.types.js";
34
import type { OpenClawConfig } from "../../config/config.js";

src/auto-reply/reply/commands-session-abort.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Implements session abort commands and active-run stop targeting.
12
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
23
import type { SessionEntry } from "../../config/sessions.js";
34
import { logVerbose } from "../../globals.js";

src/auto-reply/reply/commands-session-usage.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests session usage command output and token accounting summaries.
12
import { beforeEach, describe, expect, it, vi } from "vitest";
23
import type { OpenClawConfig } from "../../config/config.js";
34
import type {

src/auto-reply/reply/commands-status.thinking-default.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests status command defaults for thinking and reasoning display.
12
import { beforeAll, describe, expect, it, vi } from "vitest";
23
import type { OpenClawConfig } from "../../config/config.js";
34

src/auto-reply/reply/commands-subagents-status.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tests subagent status command output and active run summaries.
12
import { beforeEach, describe, expect, it } from "vitest";
23
import { subagentRuns } from "../../agents/subagent-registry-memory.js";
34
import {

src/auto-reply/reply/conversation-label-generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Generates short labels for sessions from conversation context.
12
import { resolveModelAsync } from "../../agents/embedded-agent-runner/model.js";
23
import { requireApiKey } from "../../agents/model-auth.js";
34
import { resolveDefaultModelForAgent } from "../../agents/model-selection.js";

0 commit comments

Comments
 (0)