Skip to content

Commit a84910b

Browse files
committed
docs: document gateway diagnostics methods
1 parent 390a35d commit a84910b

12 files changed

Lines changed: 23 additions & 0 deletions

‎src/gateway/server-methods/connect.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Connect method guard rejects late `connect` RPCs after the WebSocket
2+
// handshake already established identity and authorization.
13
import { ErrorCodes, errorShape } from "../../../packages/gateway-protocol/src/index.js";
24
import type { GatewayRequestHandlers } from "./types.js";
35

‎src/gateway/server-methods/cron.validation.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Cron validation tests cover channel target validation against plugin
2+
// prefixes/aliases and runtime config for cron delivery destinations.
13
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
24
import type { ChannelPlugin } from "../../channels/plugins/types.public.js";
35
import type { OpenClawConfig } from "../../config/types.openclaw.js";

‎src/gateway/server-methods/devices.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Device method tests cover pairing approval/rejection, paired-device lookup,
2+
// token rotation/revocation, and operator scope enforcement.
13
import { beforeEach, describe, expect, it, vi } from "vitest";
24
import { deviceHandlers } from "./devices.js";
35
import type { GatewayRequestHandlerOptions } from "./types.js";

‎src/gateway/server-methods/diagnostics.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Diagnostics gateway methods expose bounded stability snapshots while keeping
2+
// malformed queries out of logging internals.
13
import { ErrorCodes, errorShape } from "../../../packages/gateway-protocol/src/index.js";
24
import {
35
getDiagnosticStabilitySnapshot,

‎src/gateway/server-methods/doctor.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Doctor gateway methods inspect and repair memory dreaming artifacts, managed
2+
// cron state, and REM harness previews for operator diagnostics.
13
import fs from "node:fs/promises";
24
import path from "node:path";
35
import { resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../../agents/agent-scope.js";

‎src/gateway/server-methods/environments.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Environment gateway methods summarize the local gateway and paired/connected
2+
// nodes as execution environments for UI and automation clients.
13
import { normalizeSortedUniqueTrimmedStringList } from "@openclaw/normalization-core/string-normalization";
24
import {
35
type EnvironmentSummary,

‎src/gateway/server-methods/exec-approval.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Exec approval gateway methods create, list, inspect, and resolve command
2+
// approval requests, including iOS push delivery and requester visibility.
13
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
24
import { GATEWAY_CLIENT_IDS } from "../../../packages/gateway-protocol/src/client-info.js";
35
import {

‎src/gateway/server-methods/exec-approvals.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Exec approvals config methods read and write command approval defaults with
2+
// base-hash protection for admin-edited allowlists.
13
import {
24
ErrorCodes,
35
errorShape,

‎src/gateway/server-methods/health.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Health gateway methods return cached or refreshed status summaries while
2+
// detecting stale channel runtime state against live gateway snapshots.
13
import { ErrorCodes, errorShape } from "../../../packages/gateway-protocol/src/index.js";
24
import type { ChannelAccountSnapshot } from "../../channels/plugins/types.public.js";
35
import type { ChannelHealthSummary, HealthSummary } from "../../commands/health.types.js";

‎src/gateway/server-methods/logs.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Logs gateway methods expose bounded tails from the configured gateway log.
12
import {
23
ErrorCodes,
34
errorShape,

0 commit comments

Comments
 (0)