{"version":3,"sources":["jsdelivr-header.js","/npm/@dwmkerr/ai-developer-guide-mcp@0.1.20/dist/cli.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;OCLS,YAAe,mBACf,4BAA+B,yBACxC,MAAM,QAAU,IAAI,QAEd,WAAc,GACT,GAAa,QAAQ,IAAI,wBAA0B,+CAE9D,QACK,KAAK,0BACL,YAAY,yCACZ,QAAQ,SACb,QACK,QAAQ,SACR,YAAY,wBACZ,OAAO,mBAAoB,8GAC3B,QAAO,MAAO,IACf,IACI,MAAM,EAAU,WAAW,EAAQ,SACnC,QAAQ,MAAM,yDAAyD,KACvE,MAAM,EAAS,IAAI,wBAAwB,SACrC,EAAO,OACjB,CACA,MAAO,GACH,QAAQ,MAAM,0BAA2B,GACzC,QAAQ,KAAK,EACjB,KAEJ,QACK,QAAQ,SACR,YAAY,0BACZ,OAAO,mBAAoB,8GAC3B,QAAO,MAAO,IACf,IACI,MAAM,UAAE,SAAoB,OAAO,mBAC7B,EAAU,WAAW,EAAQ,SAC7B,EAAS,IAAI,EAAU,GAC7B,QAAQ,IAAI,gCAAgC,KAC5C,MAAM,QAAc,EAAO,gBAC3B,QAAQ,IAAI,8BAA8B,EAAM,WAChD,QAAQ,IAAI,UAAU,EAAM,QAC5B,MAAM,QAAe,EAAO,sBAC5B,QAAQ,IAAI,WAAW,EAAO,2BAC9B,QAAQ,IAAI,uBAChB,CACA,MAAO,GACH,QAAQ,MAAM,mBAAoB,GAClC,QAAQ,KAAK,EACjB,KAGJ,QAAQ,QAAO,UACX,IACI,MAAM,EAAU,aAChB,QAAQ,MAAM,yDAAyD,KACvE,MAAM,EAAS,IAAI,wBAAwB,SACrC,EAAO,OACjB,CACA,MAAO,GACH,QAAQ,MAAM,0BAA2B,GACzC,QAAQ,KAAK,EACjB,KAEJ,QAAQ","file":"/npm/@dwmkerr/ai-developer-guide-mcp@0.1.20/dist/cli.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@dwmkerr/ai-developer-guide-mcp@0.1.20/dist/cli.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env node\nimport { Command } from 'commander';\nimport { DeveloperGuideMcpServer } from './server/mcp-server.js';\nconst program = new Command();\n// Get base URL from environment variable or use default\nconst getBaseUrl = (optionUrl) => {\n    return optionUrl || process.env.AI_DEVELOPER_GUIDE_URL || 'https://dwmkerr.github.io/ai-developer-guide';\n};\nprogram\n    .name('ai-developer-guide-mcp')\n    .description('MCP server for the AI Developer Guide')\n    .version('0.1.0');\nprogram\n    .command('start')\n    .description('Start the MCP server')\n    .option('--base-url <url>', 'Base URL for the API (default: env AI_DEVELOPER_GUIDE_URL or https://dwmkerr.github.io/ai-developer-guide)')\n    .action(async (options) => {\n    try {\n        const baseUrl = getBaseUrl(options.baseUrl);\n        console.error(`AI Developer Guide MCP Server starting with base URL: ${baseUrl}`);\n        const server = new DeveloperGuideMcpServer(baseUrl);\n        await server.start();\n    }\n    catch (error) {\n        console.error('Failed to start server:', error);\n        process.exit(1);\n    }\n});\nprogram\n    .command('check')\n    .description('Check API connectivity')\n    .option('--base-url <url>', 'Base URL for the API (default: env AI_DEVELOPER_GUIDE_URL or https://dwmkerr.github.io/ai-developer-guide)')\n    .action(async (options) => {\n    try {\n        const { ApiClient } = await import('./api/client.js');\n        const baseUrl = getBaseUrl(options.baseUrl);\n        const client = new ApiClient(baseUrl);\n        console.log(`Testing API connectivity to: ${baseUrl}`);\n        const index = await client.fetchApiIndex();\n        console.log(`✓ Connected to API version ${index.version}`);\n        console.log(`✓ API: ${index.name}`);\n        const guides = await client.listAvailableGuides();\n        console.log(`✓ Found ${guides.length} available guides`);\n        console.log('API test successful!');\n    }\n    catch (error) {\n        console.error('API test failed:', error);\n        process.exit(1);\n    }\n});\n// Default action is to start the server\nprogram.action(async () => {\n    try {\n        const baseUrl = getBaseUrl();\n        console.error(`AI Developer Guide MCP Server starting with base URL: ${baseUrl}`);\n        const server = new DeveloperGuideMcpServer(baseUrl);\n        await server.start();\n    }\n    catch (error) {\n        console.error('Failed to start server:', error);\n        process.exit(1);\n    }\n});\nprogram.parse();\n"]}