Skip to content

Commit 6082f01

Browse files
committed
docs: document plugin loader helpers
1 parent d33664a commit 6082f01

24 files changed

Lines changed: 24 additions & 0 deletions

src/plugins/agent-event-emission.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Emits agent events requested by plugin hook contracts.
12
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
23
import { emitAgentEvent } from "../infra/agent-events.js";
34
import {

src/plugins/api-facades.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Builds plugin API facades exposed to bundled and external plugins.
12
import type { OpenClawPluginApi } from "./types.js";
23

34
type PluginApiFacadeFields = Pick<

src/plugins/bundled-dir.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Verifies bundled plugin directory resolution.
12
import fs from "node:fs";
23
import path from "node:path";
34
import { afterEach, describe, expect, it, vi } from "vitest";

src/plugins/clawhub-install-records.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Converts ClawHub plugin entries into install records.
12
import type { PluginInstallRecord } from "../config/types.plugins.js";
23
import type { ClawHubPackageChannel, ClawHubPackageFamily } from "../infra/clawhub.js";
34

src/plugins/clawhub.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Resolves ClawHub plugin catalog entries and install metadata.
12
import { createHash } from "node:crypto";
23
import fs from "node:fs/promises";
34
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";

src/plugins/config-policy.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers plugin config policy validation and ownership decisions.
12
import { describe, expect, it } from "vitest";
23
import type { OpenClawConfig } from "../config/config.js";
34
import {

src/plugins/copy-bundled-plugin-metadata.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers copying bundled plugin metadata for package output.
12
import fs from "node:fs";
23
import path from "node:path";
34
import { afterEach, describe, expect, it, vi } from "vitest";

src/plugins/hooks.security.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Verifies plugin hook security constraints and rejections.
12
import { beforeEach, describe, expect, it, vi } from "vitest";
23
import { createHookRunner } from "./hooks.js";
34
import { addStaticTestHooks } from "./hooks.test-helpers.js";

src/plugins/host-tool-param-parsers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Parses host tool parameters supplied by plugin tool contracts.
12
import {
23
extractApplyPatchTargetPaths,
34
type ApplyPatchPathExtractionOptions,

src/plugins/install-source-info.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers plugin install source info formatting and parsing.
12
import { describe, expect, it } from "vitest";
23
import { describePluginInstallSource } from "./install-source-info.js";
34

0 commit comments

Comments
 (0)