refactor: tighten plugin boundary surfaces

This commit is contained in:
Peter Steinberger
2026-04-27 11:18:54 +01:00
parent c4fe72b8d6
commit 9b0a0fb0a7
33 changed files with 157 additions and 69 deletions

View File

@@ -12,6 +12,10 @@ export function createCodexCommand(options: {
return {
name: "codex",
description: "Inspect and control the Codex app-server harness",
agentPromptGuidance: [
"Native Codex app-server plugin is available (`/codex ...`). For Codex bind/control/thread/resume/steer/stop requests, prefer `/codex bind`, `/codex threads`, `/codex resume`, `/codex steer`, and `/codex stop` over ACP.",
"Use ACP for Codex only when the user explicitly asks for ACP/acpx or wants to test the ACP path.",
],
acceptsArgs: true,
requireAuth: true,
handler: (ctx) => handleCodexCommand(ctx, options),

View File

@@ -1,4 +1,4 @@
export {
buildChannelConfigSchema,
DiscordConfigSchema,
} from "openclaw/plugin-sdk/channel-config-schema";
} from "openclaw/plugin-sdk/channel-config-schema-legacy";

View File

@@ -1,5 +1,5 @@
import { GoogleChatConfigSchema } from "openclaw/plugin-sdk/googlechat";
import { describe, expect, it } from "vitest";
import { GoogleChatConfigSchema } from "../runtime-api.js";
describe("googlechat config schema", () => {
it("accepts serviceAccount refs", () => {

View File

@@ -1,3 +1,3 @@
import { buildChannelConfigSchema, GoogleChatConfigSchema } from "openclaw/plugin-sdk/googlechat";
import { buildChannelConfigSchema, GoogleChatConfigSchema } from "../runtime-api.js";
export const GoogleChatChannelConfigSchema = buildChannelConfigSchema(GoogleChatConfigSchema);

View File

@@ -1,4 +1,4 @@
export {
buildChannelConfigSchema,
IMessageConfigSchema,
} from "openclaw/plugin-sdk/channel-config-schema";
} from "openclaw/plugin-sdk/channel-config-schema-legacy";

View File

@@ -1,4 +1,4 @@
export {
buildChannelConfigSchema,
MSTeamsConfigSchema,
} from "openclaw/plugin-sdk/channel-config-schema";
} from "openclaw/plugin-sdk/channel-config-schema-legacy";

View File

@@ -1,4 +1,4 @@
export {
buildChannelConfigSchema,
SignalConfigSchema,
} from "openclaw/plugin-sdk/channel-config-schema";
} from "openclaw/plugin-sdk/channel-config-schema-legacy";

View File

@@ -1,4 +1,4 @@
export {
buildChannelConfigSchema,
SlackConfigSchema,
} from "openclaw/plugin-sdk/channel-config-schema";
} from "openclaw/plugin-sdk/channel-config-schema-legacy";

View File

@@ -1,7 +1,7 @@
export {
buildChannelConfigSchema,
TelegramConfigSchema,
} from "openclaw/plugin-sdk/channel-config-schema";
} from "openclaw/plugin-sdk/channel-config-schema-legacy";
export {
normalizeTelegramCommandDescription,
normalizeTelegramCommandName,

View File

@@ -1,4 +1,4 @@
export {
buildChannelConfigSchema,
WhatsAppConfigSchema,
} from "openclaw/plugin-sdk/channel-config-schema";
} from "openclaw/plugin-sdk/channel-config-schema-legacy";