// tools/register-plugin-tools.ts — Registers manage_plugins and scaffold_plugin (SPEC-085)
import { safeLicensed } from './safe-handler.js';
import { handleManagePlugins } from './manage-plugins-handler.js';
import { handleScaffoldPlugin } from './scaffold-plugin-handler.js';
import { ManagePluginsSchema, ScaffoldPluginSchema } from './schemas/plugins-schemas.js';
export function registerPluginTools(server) {
    server.registerTool('manage_plugins', {
        description: 'List, install, activate, deactivate, uninstall, or get info about Planu plugins. ' +
            'Plugins extend Planu with custom tools, workers, analyzers, and templates.',
        inputSchema: ManagePluginsSchema,
        annotations: {
            title: 'Manage Plugins',
            readOnlyHint: false,
            destructiveHint: false,
        },
    }, safeLicensed('manage_plugins', async (args) => handleManagePlugins(args)));
    server.registerTool('scaffold_plugin', {
        description: 'Generate a starter plugin project with manifest, entry point, tests, and examples. ' +
            'The scaffold includes TypeScript config and example extensions for the selected types.',
        inputSchema: ScaffoldPluginSchema,
        annotations: {
            title: 'Scaffold Plugin',
            readOnlyHint: false,
        },
    }, safeLicensed('scaffold_plugin', async (args) => handleScaffoldPlugin(args)));
}
//# sourceMappingURL=register-plugin-tools.js.map