mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
docs: document auto reply delivery runtime
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Tests agent runner helper decisions for payload and runtime preparation.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { ReplyPayload } from "../types.js";
|
||||
import type { TypingSignaler } from "./typing-mode.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests agent runner memory flush and persisted memory context handling.
|
||||
import fsCore from "node:fs";
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests abort trigger command parsing and cancellation requests.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
import { handleAbortTrigger } from "./commands-session-abort.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Implements approval commands for pending tool and execution requests.
|
||||
import { normalizeLowercaseStringOrEmpty } from "@openclaw/normalization-core/string-coerce";
|
||||
import {
|
||||
getChannelPlugin,
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
// Runtime barrel for command handlers that need lazy production imports.
|
||||
export { emitResetCommandHooks } from "./commands-reset-hooks.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Implements trajectory export command packaging for the active session agent.
|
||||
import { resolveSessionAgentId } from "../../agents/agent-scope.js";
|
||||
import { createExecTool } from "../../agents/bash-tools.js";
|
||||
import type { ExecToolDetails } from "../../agents/bash-tools.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Formats OpenClaw CLI command snippets for chat-facing command responses.
|
||||
function quoteShellArg(value: string): string {
|
||||
if (process.platform === "win32") {
|
||||
return `'${value.replaceAll("'", "''")}'`;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests plugin command dispatch and plugin-scoped command aliases.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
import { handlePluginCommand } from "./commands-plugin.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests session restart command behavior and runtime reset handoff.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { RestartSentinelPayload } from "../../infra/restart-sentinel.js";
|
||||
import type { scheduleGatewaySigusr1Restart } from "../../infra/restart.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Shared session-store helpers for command handlers that mutate sessions.
|
||||
import type { SessionEntry } from "../../config/sessions.js";
|
||||
import { updateSessionStore } from "../../config/sessions.js";
|
||||
import { applyAbortCutoffToSessionEntry, type AbortCutoff } from "./abort-cutoff.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Formats subagent status rows for the status command response.
|
||||
import type { SubagentRunRecord } from "../../agents/subagent-registry.types.js";
|
||||
import { formatDurationCompact } from "../../infra/format-time/format-duration.ts";
|
||||
import { formatRunLabel, sortSubagentRuns } from "./subagents-utils.js";
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
// Runtime barrel for status command helpers loaded outside core command setup.
|
||||
export { buildStatusReply } from "./commands-status.js";
|
||||
export { buildStatusText } from "../../status/status-text.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests steer command persistence and retrieval for session guidance.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
||||
import { buildCommandTestParams } from "./commands.test-harness.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests task command routing and persisted task state replies.
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { resolveSessionAgentId } from "../../agents/agent-scope.js";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Resolves whether completed replies should send visibly or stay tool-only.
|
||||
import { normalizeChatType, type ChatType } from "../../channels/chat-type.js";
|
||||
import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
||||
import { deriveSessionChatTypeFromKey } from "../../sessions/session-chat-type-shared.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests ACP dispatch delivery routing and visible reply handoff.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
import { createAcpDispatchDeliveryCoordinator } from "./dispatch-acp-delivery.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests applying parsed directives to get-reply execution options.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { formatModelOverrideResetEvent } from "./get-reply-directives-apply.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests execution hint propagation through get-reply run setup.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import type { SessionEntry } from "../../config/sessions.js";
|
||||
import type { TemplateContext } from "../templating.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests get-reply config override handling for a single inbound turn.
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Implements MCP server command parsing and persisted enablement settings.
|
||||
import { parseStandardSetUnsetSlashCommand } from "./commands-setunset-standard.js";
|
||||
|
||||
export type McpCommand =
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Dispatches final reply payloads through visible senders and message tools.
|
||||
import type { TypingCallbacks } from "../../channels/typing.js";
|
||||
import type { HumanDelayConfig } from "../../config/types.js";
|
||||
import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests routeReply delivery decisions across channels and fallback paths.
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type {
|
||||
ChannelMessagingAdapter,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests reply routing policy decisions for direct, group, and private routes.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveReplyRoutingDecision } from "./routing-policy.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tracks per-session run usage totals and last-run accounting facts.
|
||||
import { deriveSessionTotalTokens, type NormalizedUsage } from "../../agents/usage.js";
|
||||
import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
||||
import { incrementCompactionCount } from "./session-updates.js";
|
||||
|
||||
Reference in New Issue
Block a user