import { z } from 'zod';
import { handleAuditClaudeConfig } from './audit-claude-config.js';
import { handleGenerateDocsSite } from './generate-docs-site.js';
import { safeLicensed } from './safe-handler.js';
export function registerWorkspaceTools(server) {
    // audit_claude_config — SPEC-092
    server.registerTool('audit_claude_config', {
        description: 'Audit and optimize your Claude Code workspace configuration. Analyzes CLAUDE.md size, .claude/rules/ structure, auto-memory, settings, and more against official best practices. Returns a scored report with prioritized suggestions.',
        inputSchema: {
            projectPath: z.string().max(4096).describe('Absolute path to the project root to audit'),
            includeGlobal: z
                .boolean()
                .optional()
                .default(true)
                .describe('Also audit ~/.claude/ global config (default: true)'),
        },
        annotations: { readOnlyHint: true },
    }, safeLicensed('audit_claude_config', async (args) => handleAuditClaudeConfig(args)));
    // generate_docs_site — SPEC-093
    server.registerTool('generate_docs_site', {
        description: 'Generate a static HTML documentation site from project specs, tools catalog, architecture diagrams, and metrics. ' +
            'Produces a navigable portal with dashboard, spec pages, tools catalog, Mermaid diagrams, and search.',
        inputSchema: {
            projectPath: z.string().max(4096).describe('Absolute path to the project root'),
            outputDir: z
                .string()
                .max(4096)
                .optional()
                .describe('Output directory for the site (default: {projectPath}/planu/docs-site)'),
            title: z
                .string()
                .max(500)
                .optional()
                .describe('Site title (default: "Planu Documentation")'),
        },
        annotations: { readOnlyHint: false },
    }, safeLicensed('generate_docs_site', async (args) => handleGenerateDocsSite(args)));
}
//# sourceMappingURL=register-workspace-tools.js.map