{"version":3,"sources":["jsdelivr-header.js","/npm/@wecom/wecom-openclaw-cli@1.0.22/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACLA,aAEA,IAAI,UAAY,QAAQ,aACpB,QAAU,QAAQ,yBAClB,KAAO,QAAQ,sBACf,OAAS,QAAQ,wBACjB,OAAS,QAAQ,wBACjB,SAAW,QAAQ,qBAGvB,QAAQ,GAAG,sBAAuB,IAC9B,QAAQ,MAAM,UAAW,GACzB,QAAQ,KAAK,EAAE,IAEnB,MAAM,QAAU,IAAI,UAAU,QAC9B,QACK,KAAK,sBACL,YAAY,wBACZ,QAAQ,SAAS,QAAQ,QAAS,qBACvC,QACK,QAAQ,WACR,YAAY,iBACZ,OAAO,sBAAuB,aAC9B,OAAO,+BAAgC,8CACvC,OAAO,UAAW,oBAClB,OAAO,gBAAiB,qCACxB,QAAO,MAAO,UACT,QAAQ,eAAe,EAAQ,IAEzC,QACK,QAAQ,QACR,YAAY,UACZ,OAAO,QAAS,iBAChB,QAAO,MAAO,UACT,KAAK,YAAY,EAAQ,IAEnC,QACK,QAAQ,UACR,YAAY,UACZ,OAAO,QAAS,YAChB,QAAO,MAAO,UACM,OAAO,cAAc,IAC1B,EAAQ,KACpB,QAAQ,KAAK,EACjB,IAEJ,QACK,QAAQ,uBACR,YAAY,cACZ,QAAO,MAAO,UACT,OAAO,cAAc,EAAW,IAE1C,QAAQ,MAAM,QAAQ","file":"/npm/@wecom/wecom-openclaw-cli@1.0.22/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@wecom/wecom-openclaw-cli@1.0.22/dist/index.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\n'use strict';\n\nvar commander = require('commander');\nvar install = require('./commands/install.js');\nvar info = require('./commands/info.js');\nvar doctor = require('./commands/doctor.js');\nvar update = require('./commands/update.js');\nvar _package = require('./package.json.js');\n\n// 全局未捕获异常处理，避免静默失败\nprocess.on('unhandledRejection', (err) => {\n    console.error('未处理的异常:', err);\n    process.exit(1);\n});\nconst program = new commander.Command();\nprogram\n    .name('wecom-openclaw-cli')\n    .description('企业微信 OpenClaw 插件管理工具')\n    .version(_package.default.version, '-V, --cli-version');\nprogram\n    .command('install')\n    .description('安装并配置企业微信官方插件')\n    .option('--version <version>', '安装指定版本的插件')\n    .option('--package-name <packageName>', '指定 npm 包名（默认 @wecom/wecom-openclaw-plugin）')\n    .option('--force', '强制重新安装，清除已有插件和配置')\n    .option('--skip-config', '跳过 channels 配置引导（有历史配置则自动恢复，无则跳过）')\n    .action(async (options) => {\n    await install.installCommand(options);\n});\nprogram\n    .command('info')\n    .description('显示配置信息')\n    .option('--all', '显示所有信息，包括配置内容')\n    .action(async (options) => {\n    await info.infoCommand(options);\n});\nprogram\n    .command('doctor')\n    .description('诊断安装问题')\n    .option('--fix', '尝试自动修复问题')\n    .action(async (options) => {\n    const passed = await doctor.doctorCommand(options);\n    if (!passed && !options.fix) {\n        process.exit(1);\n    }\n});\nprogram\n    .command('update [pluginName]')\n    .description('更新企业微信官方插件')\n    .action(async (pluginName) => {\n    await update.updateCommand(pluginName);\n});\nprogram.parse(process.argv);\n\n"]}