Plugin SDK: move generic message tool schemas out of core

This commit is contained in:
Gustavo Madeira Santana
2026-03-19 01:06:22 -04:00
parent b48194a07e
commit eaee01042b
3 changed files with 3 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
import { Type } from "@sinclair/typebox";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { ChannelMessageCapability } from "../../channels/plugins/message-capabilities.js";
import { createMessageToolButtonsSchema } from "../../channels/plugins/message-tool-schema.js";
import type { ChannelMessageActionName, ChannelPlugin } from "../../channels/plugins/types.js";
import type { MessageActionRunResult } from "../../infra/outbound/message-action-runner.js";
import { createMessageToolButtonsSchema } from "../../plugin-sdk/message-tool-schema.js";
type CreateMessageTool = typeof import("./message-tool.js").createMessageTool;
type SetActivePluginRegistry = typeof import("../../plugins/runtime.js").setActivePluginRegistry;
type CreateTestRegistry = typeof import("../../test-utils/channel-plugins.js").createTestRegistry;

View File

@@ -34,7 +34,7 @@ export type * from "../channels/plugins/types.js";
export * from "../channels/plugins/config-writes.js";
export * from "../channels/plugins/directory-adapters.js";
export * from "../channels/plugins/media-payload.js";
export * from "../channels/plugins/message-tool-schema.js";
export * from "./message-tool-schema.js";
export * from "../channels/plugins/normalize/signal.js";
export * from "../channels/plugins/normalize/whatsapp.js";
export * from "../channels/plugins/outbound/direct-text-media.js";

View File

@@ -1,6 +1,6 @@
import { Type } from "@sinclair/typebox";
import type { TSchema } from "@sinclair/typebox";
import { stringEnum } from "../../agents/schema/typebox.js";
import { stringEnum } from "../agents/schema/typebox.js";
export function createMessageToolButtonsSchema(): TSchema {
return Type.Array(