src / types.ts
export type ToolResult = string | { ok: true; message: string; data?: unknown } | { ok: false; error: string };
export type FileEntry = {
path: string;
type: "file" | "directory";
size?: number;
};
export type PluginScaffoldInput = {
name: string;
description: string;
author?: string;
includePromptPreprocessor?: boolean;
includeExampleTools?: boolean;
};