Skip to content

Commit f4c448f

Browse files
committed
docs: document gateway agents methods
1 parent c5d6764 commit f4c448f

6 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎src/gateway/server-methods/agents-config-mutations.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Agent config mutation helpers wrap retrying config writes for create/update/
2+
// delete flows and surface typed precondition failures to gateway handlers.
13
import { resolveAgentDir, resolveAgentWorkspaceDir } from "../../agents/agent-scope.js";
24
import {
35
applyAgentConfig,

‎src/gateway/server-methods/agents-mutate.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Agent mutation tests cover create/update/delete handlers, safe workspace file
2+
// access, config preconditions, trash cleanup, and attestation handling.
13
import { describe, expect, it, vi, beforeEach } from "vitest";
24
import { FsSafeError } from "../../infra/fs-safe.js";
35
/* ------------------------------------------------------------------ */

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Agents gateway methods expose agent listing, config mutation, workspace file
2+
// reads/writes, identity merging, and safe deletion for operator clients.
13
import fs from "node:fs/promises";
24
import path from "node:path";
35
import { normalizeOptionalString as resolveOptionalStringParam } from "@openclaw/normalization-core/string-coerce";

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Approval shared helpers normalize pending exec/plugin approval lookups,
2+
// decision payloads, turn-source routing, and gateway error responses.
13
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
24
import {
35
ErrorCodes,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Artifact method tests cover collection from transcript messages, run/task
2+
// session lookup, list/get/download responses, and validation errors.
13
import { beforeEach, describe, expect, it, vi } from "vitest";
24
import { expectRecordFields } from "../test-helpers.assertions.js";
35
import { artifactsHandlers, collectArtifactsFromMessages } from "./artifacts.js";

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Artifact gateway methods collect generated artifacts from session transcripts
2+
// and expose list/get/download RPCs scoped by session, run, task, or agent.
13
import { createHash } from "node:crypto";
24
import { asOptionalRecord } from "@openclaw/normalization-core/record-coerce";
35
import { normalizeOptionalString as asNonEmptyString } from "@openclaw/normalization-core/string-coerce";

0 commit comments

Comments
 (0)