mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
docs: document auto reply command gates
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Tests ACP event projection into session updates and reply payloads.
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { prefixSystemMessage } from "../../infra/system-message.js";
|
||||
import { createAcpReplyProjector } from "./acp-projector.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Applies command feature gates before command handlers execute.
|
||||
import { isCommandFlagEnabled, type CommandFlagKey } from "../../config/commands.flags.js";
|
||||
import { logVerbose } from "../../globals.js";
|
||||
import { redactIdentifier } from "../../logging/redact-identifier.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Shared filesystem fixtures for command tests that write session artifacts.
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Loads command handlers behind a runtime boundary for the command dispatcher.
|
||||
import { handleAcpCommand } from "./commands-acp.js";
|
||||
import { handleAllowlistCommand } from "./commands-allowlist.js";
|
||||
import { handleApproveCommand } from "./commands-approve.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests tool listing in info command responses.
|
||||
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { EffectiveToolInventoryResult } from "../../agents/tools-effective-inventory.types.js";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Implements session abort commands and active-run stop targeting.
|
||||
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
|
||||
import type { SessionEntry } from "../../config/sessions.js";
|
||||
import { logVerbose } from "../../globals.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests session usage command output and token accounting summaries.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
import type {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests status command defaults for thinking and reasoning display.
|
||||
import { beforeAll, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests subagent status command output and active run summaries.
|
||||
import { beforeEach, describe, expect, it } from "vitest";
|
||||
import { subagentRuns } from "../../agents/subagent-registry-memory.js";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Generates short labels for sessions from conversation context.
|
||||
import { resolveModelAsync } from "../../agents/embedded-agent-runner/model.js";
|
||||
import { requireApiKey } from "../../agents/model-auth.js";
|
||||
import { resolveDefaultModelForAgent } from "../../agents/model-selection.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Implements debug command toggles used by maintainers during reply runs.
|
||||
import { parseStandardSetUnsetSlashCommand } from "./commands-setunset-standard.js";
|
||||
|
||||
export type DebugCommand =
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Dispatches reply turns through ACP runtimes and projects their events.
|
||||
import { formatAcpRuntimeErrorText } from "@openclaw/acp-core/runtime/error-text";
|
||||
import { resolveAcpThreadSessionDetailLines } from "@openclaw/acp-core/runtime/session-identifiers";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Shared harness for dispatch-from-config tests and mocked runtimes.
|
||||
import { vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
||||
import type { SessionBindingRecord } from "../../infra/outbound/session-binding-service.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests runtime-loaded fast-path command behavior for get-reply.
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Shared get-reply type contracts for command, directive, and runtime layers.
|
||||
import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
||||
import type { GetReplyOptions } from "../get-reply-options.types.js";
|
||||
import type { ReplyPayload } from "../reply-payload.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Derives stable group ids from simple channel and conversation facts.
|
||||
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
|
||||
|
||||
/** Extracts a simple group/channel id from stable group-like source ids. */
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests mention detection and command trigger matching.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { stripStructuralPrefixes } from "./mentions.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Provides plugin command discovery and handler registration helpers.
|
||||
import {
|
||||
normalizeOptionalLowercaseString,
|
||||
normalizeOptionalString,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Shared provider dispatch type contracts for reply runtime execution.
|
||||
import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
||||
import type { GetReplyOptions } from "../get-reply-options.types.js";
|
||||
import type { FinalizedMsgContext, MsgContext } from "../templating.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests queue policy parsing and admission decisions.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveActiveRunQueueAction } from "./queue-policy.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests media path normalization and attachment metadata generation.
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests reply state persistence and recovery across process restarts.
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests context passed to session lifecycle hooks.
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Normalizes typing indicator modes from config and directives.
|
||||
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
|
||||
import type { TypingMode } from "../../config/types.js";
|
||||
import type { SourceReplyDeliveryMode } from "../get-reply-options.types.js";
|
||||
|
||||
Reference in New Issue
Block a user