mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:50:46 +00:00
refactor: tighten plugin boundary surfaces
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export {
|
||||
buildChannelConfigSchema,
|
||||
DiscordConfigSchema,
|
||||
} from "openclaw/plugin-sdk/channel-config-schema";
|
||||
} from "openclaw/plugin-sdk/channel-config-schema-legacy";
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { buildChannelConfigSchema, GoogleChatConfigSchema } from "openclaw/plugin-sdk/googlechat";
|
||||
import { buildChannelConfigSchema, GoogleChatConfigSchema } from "../runtime-api.js";
|
||||
|
||||
export const GoogleChatChannelConfigSchema = buildChannelConfigSchema(GoogleChatConfigSchema);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export {
|
||||
buildChannelConfigSchema,
|
||||
IMessageConfigSchema,
|
||||
} from "openclaw/plugin-sdk/channel-config-schema";
|
||||
} from "openclaw/plugin-sdk/channel-config-schema-legacy";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export {
|
||||
buildChannelConfigSchema,
|
||||
MSTeamsConfigSchema,
|
||||
} from "openclaw/plugin-sdk/channel-config-schema";
|
||||
} from "openclaw/plugin-sdk/channel-config-schema-legacy";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export {
|
||||
buildChannelConfigSchema,
|
||||
SignalConfigSchema,
|
||||
} from "openclaw/plugin-sdk/channel-config-schema";
|
||||
} from "openclaw/plugin-sdk/channel-config-schema-legacy";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export {
|
||||
buildChannelConfigSchema,
|
||||
SlackConfigSchema,
|
||||
} from "openclaw/plugin-sdk/channel-config-schema";
|
||||
} from "openclaw/plugin-sdk/channel-config-schema-legacy";
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export {
|
||||
buildChannelConfigSchema,
|
||||
WhatsAppConfigSchema,
|
||||
} from "openclaw/plugin-sdk/channel-config-schema";
|
||||
} from "openclaw/plugin-sdk/channel-config-schema-legacy";
|
||||
|
||||
Reference in New Issue
Block a user