@lovrabet/cli 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/add-page/input-page-router.js +1 -1
  2. package/lib/add-page/main.js +1 -1
  3. package/lib/add-page/select-page-template.js +1 -1
  4. package/lib/ai-setup/AISetupUI.js +1 -1
  5. package/lib/ai-setup/config.js +1 -1
  6. package/lib/api/api-doc-ui.js +1 -1
  7. package/lib/api/api-doc.js +1 -1
  8. package/lib/api/api-pull-ui.js +1 -1
  9. package/lib/api/fetch-model-list.js +1 -1
  10. package/lib/api/generate-api-file.js +1 -1
  11. package/lib/api/main.js +1 -1
  12. package/lib/api/pull-silent.js +1 -1
  13. package/lib/app-menu/app-menu-sync-ui.js +1 -1
  14. package/lib/app-menu/create-menu.js +1 -1
  15. package/lib/app-menu/get-local-pages.js +1 -1
  16. package/lib/app-menu/get-online-menu-list.js +1 -1
  17. package/lib/app-menu/use-get-online-menu-list.js +1 -1
  18. package/lib/app-menu/utils.js +1 -1
  19. package/lib/app-menu/valid-url.js +1 -1
  20. package/lib/app-menu-update-cdn/current-content.js +1 -1
  21. package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -1
  22. package/lib/app-menu-update-cdn/main.js +1 -1
  23. package/lib/app-menu-update-cdn/update-menu-cdn-url.js +1 -1
  24. package/lib/auth/auth-server-ui.js +1 -1
  25. package/lib/auth/auth-server.js +1 -1
  26. package/lib/auth/constant.js +1 -1
  27. package/lib/auth/get-cookie.js +1 -1
  28. package/lib/auth/is-session-valid.js +1 -1
  29. package/lib/auth/logout.js +1 -1
  30. package/lib/cli-flags.js +1 -1
  31. package/lib/cli.js +1 -1
  32. package/lib/cmd/build-watch.js +1 -1
  33. package/lib/cmd/build.js +1 -1
  34. package/lib/cmd/logs.js +1 -1
  35. package/lib/cmd/preview.js +1 -1
  36. package/lib/cmd/start.js +1 -1
  37. package/lib/config/config-help.js +1 -1
  38. package/lib/config/main.js +1 -1
  39. package/lib/constant/domain.js +1 -1
  40. package/lib/constant/env.js +1 -1
  41. package/lib/create-app/enhanced-guided-create.js +1 -1
  42. package/lib/create-app/format-elapsed.js +1 -1
  43. package/lib/create-app/main.js +1 -1
  44. package/lib/create-app/non-interactive.js +1 -1
  45. package/lib/create-app/task-finished.js +1 -1
  46. package/lib/create-app/task-loading.js +1 -1
  47. package/lib/create-app/task-running.js +1 -1
  48. package/lib/create-app/task-time.js +1 -1
  49. package/lib/create-app/use-copy-project-template.js +1 -1
  50. package/lib/create-app/use-format-code.js +1 -1
  51. package/lib/create-app/use-install-dependencies.js +1 -1
  52. package/lib/help.js +1 -1
  53. package/lib/i18n/I18nProvider.js +1 -0
  54. package/lib/i18n/hooks.js +1 -0
  55. package/lib/i18n/index.js +1 -0
  56. package/lib/i18n/locales/en-US.js +1 -0
  57. package/lib/i18n/locales/zh-CN.js +1 -0
  58. package/lib/init/main.js +1 -1
  59. package/lib/mcp/McpInstallUI.js +1 -1
  60. package/lib/mcp/claude.js +1 -1
  61. package/lib/mcp/cursor.js +1 -1
  62. package/lib/mcp/main.js +1 -1
  63. package/lib/mcp/mcp-install-non-interactive.js +1 -1
  64. package/lib/mcp/mcp-installer.js +1 -1
  65. package/lib/skills/SkillInstallUI.js +1 -1
  66. package/lib/skills/main.js +1 -1
  67. package/lib/skills/skill-install-non-interactive.js +1 -1
  68. package/lib/skills/skill-installer.js +1 -1
  69. package/lib/ui/IDESelector.js +1 -1
  70. package/lib/ui/useIDESelection.js +1 -1
  71. package/lib/utils/ai_config.js +1 -1
  72. package/lib/utils/cdn-config.js +1 -1
  73. package/lib/utils/check-sdk-version.js +1 -1
  74. package/lib/utils/cli-version-check.js +1 -1
  75. package/lib/utils/config.js +1 -1
  76. package/lib/utils/copy-directory.js +1 -1
  77. package/lib/utils/file-utils.js +1 -1
  78. package/lib/utils/guides-cdn.js +1 -1
  79. package/lib/utils/http-client.js +1 -1
  80. package/lib/utils/logger.js +1 -1
  81. package/lib/utils/router-updater.js +1 -1
  82. package/lib/utils/rules-cdn.js +1 -1
  83. package/lib/utils/sleep.js +1 -1
  84. package/lib/utils/template-replacer.js +1 -1
  85. package/package.json +3 -1
@@ -1 +1 @@
1
- (function(_0x14d620,_0x50cb45){const _0x1a6a09=a62_0x5a00,_0x29aa22=_0x14d620();while(!![]){try{const _0x173768=-parseInt(_0x1a6a09(0xfb))/0x1*(parseInt(_0x1a6a09(0x149))/0x2)+-parseInt(_0x1a6a09(0x14a))/0x3+parseInt(_0x1a6a09(0x11e))/0x4+parseInt(_0x1a6a09(0x144))/0x5*(parseInt(_0x1a6a09(0x11c))/0x6)+-parseInt(_0x1a6a09(0x124))/0x7+parseInt(_0x1a6a09(0x100))/0x8*(-parseInt(_0x1a6a09(0x10a))/0x9)+parseInt(_0x1a6a09(0x11f))/0xa*(parseInt(_0x1a6a09(0x106))/0xb);if(_0x173768===_0x50cb45)break;else _0x29aa22['push'](_0x29aa22['shift']());}catch(_0x2ce8ab){_0x29aa22['push'](_0x29aa22['shift']());}}}(a62_0x17da,0x49bfe));import{writeFileSync}from'node:fs';import{resolve,join}from'node:path';import{fileURLToPath}from'node:url';import{dirname}from'node:path';import{createInterface}from'node:readline';function a62_0x5a00(_0x2e5a79,_0x7aedc5){_0x2e5a79=_0x2e5a79-0xf4;const _0x17da48=a62_0x17da();let _0x5a0078=_0x17da48[_0x2e5a79];return _0x5a0078;}import{logger}from'../utils/logger.js';import{copyDir}from'../utils/file-utils.js';import{IDE_CONFIGS,CORE_IDE_LIST,ALL_CORE_IDES}from'../utils/ai_config.js';import{installSingleIDE}from'./skill-installer.js';function a62_0x17da(){const _0x4ea346=['from','.lovrabet/skill/.shared/guides','输入格式:\x20输入编号,用空格分隔\x20(例如:\x201\x203\x205)','✓\x20创建\x20.lovrabet/skill-manifest.json','--help','keys','\x20\x20!\x20CDN\x20拉取失败,跳过指南安装:\x20','8286AiMvgO','stdout','path','✓\x20拉取\x20','stdin','2128dcFIqq','\x20\x20✓\x20创建\x20','includes','entries','⚠️\x20\x20未知的平台:\x20','\x20\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20交互式选择\x20IDE','924TrHiKV','\x20\x20q.\x20取消\x0a','\x20\x20lovrabet\x20skill\x20install\x20<ide>\x20\x20\x20\x20\x20#\x20直接安装指定\x20IDE\x20的技能包','argv','2925pIoPSJ','错误:\x20不支持的命令:\x20','guides','some','warn','slice','skill-install','stringify','\x20个目录\x0a','trim','(含扩展)','\x20\x20✗\x20安装\x20','setLogPath','log','exit','-$1','.lovrabet','utf-8','159516TvOHDx','不支持的命令:\x20','913828hcbKYR','75410BIeFal','info','\x20\x20.lovrabet/skill/.shared/guides/\x20-\x20详细开发指南\x0a',',使用通用模板','\x0a没有有效的\x20IDE\x20需要安装\x0a','1615978lRCQfv','\x0a📦\x20正在安装\x20','description','length','\x0a✓\x20技能包安装成功!共安装\x20','install','message','startsWith','...\x0a','使用示例:','\x0a未选择任何\x20IDE,安装取消\x0a','\x20个开发者指南','\x0aLovrabet\x20Skill\x20-\x20开发者技能包安装工具\x0a\x0a用法:\x0a\x20\x20lovrabet\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20显示帮助信息\x0a\x20\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20交互式选择并安装技能包\x0a\x20\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20直接安装指定\x20IDE\x20的技能包\x0a\x20\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20安装所有技能包\x0a\x20\x20lovrabet\x20skill\x20install\x20--dangerously-bff-save\x20\x20包含\x20Backend\x20Function\x20同步工作流\x0a\x0a安装方式:\x0a\x20\x20\x20交互式选择\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20显示\x20IDE\x20列表供选择,支持多选\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x0a\x20\x20\x20\x20→\x20使用\x20↑↓\x20移动光标,空格选中/取消,Enter\x20确认\x0a\x20\x20\x20\x20→\x20按\x20a\x20全选,按\x20i/r\x20反选,按\x20q\x20退出\x0a\x0a\x20\x20直接安装指定\x20IDE\x20(支持多个)\x20\x20\x20\x20\x20\x20\x20-\x20使用\x20--ide\x20标志直接安装\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20安装\x20Cursor\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20\x20#\x20安装多个\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20安装全部\x0a\x0a\x20\x20包含\x20Backend\x20Function\x20同步工作流\x20\x20\x20-\x20使用\x20--dangerously-bff-save\x20标志\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20--dangerously-bff-save\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20cursor\x20--dangerously-bff-save\x0a\x0a支持的\x20IDE:\x0a\x20\x20--cursor\x20\x20\x20\x20\x20\x20\x20Cursor\x20IDE\x20(.cursorrules\x20+\x20.cursor/commands/)\x0a\x20\x20--windsurf\x20\x20\x20\x20\x20Windsurf\x20IDE\x20(.windsurf/workflows/)\x0a\x20\x20--claude\x20\x20\x20\x20\x20\x20\x20Claude\x20Code\x20(.claude/skills/)\x0a\x20\x20--cline\x20\x20\x20\x20\x20\x20\x20\x20Cline\x20IDE\x20(.cline/skills/)\x0a\x20\x20--codex\x20\x20\x20\x20\x20\x20\x20\x20Codex\x20IDE\x20(.codex/skills/)\x0a\x20\x20--opencode\x20\x20\x20\x20\x20OpenCode\x20IDE\x20(.opencode/skills/)\x0a\x20\x20--qoder\x20\x20\x20\x20\x20\x20\x20\x20Qoder\x20IDE\x20(.qoder/rules/\x20+\x20.qoder/skills/)\x0a\x20\x20--codebuddy\x20\x20\x20\x20CodeBuddy\x20IDE\x20(.codebuddy/skills/)\x0a\x20\x20--trae\x20\x20\x20\x20\x20\x20\x20\x20\x20Trae\x20IDE\x20(.trae/skills/)\x0a\x20\x20--agent\x20\x20\x20\x20\x20\x20\x20\x20其他\x20(通用模板)\x20(.agent/skills/)\x20-\x20兜底方案\x0a\x20\x20--antigravity\x20\x20Antigravity\x20IDE\x20(.agent/skills/)\x0a\x20\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20安装所有\x20IDE\x20技能包(包括通用模板)\x0a\x0a选项:\x0a\x20\x20--dangerously-bff-save\x20\x20\x20\x20包含\x20Backend\x20Function\x20同步工作流指南\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(需要\x20MCP\x20服务器启用相应\x20tools)\x0a\x0a技能包内容包括:\x0a\x20\x20-\x20Filter\x20查询构建规范\x20(10\x20种常见错误对照)\x0a\x20\x20-\x20MCP\x20SQL\x20创建工作流\x20(5\x20步强制流程)\x0a\x20\x20-\x20AntD\x20UI\x20开发规范\x20(禁止\x20AI\x20味道)\x0a\x20\x20-\x20API\x20集成指南\x20(lovrabet\x20api\x20pull\x20流程)\x0a\x20\x20-\x20菜单管理指南\x20(menu\x20sync/update\x20流程)\x0a\x20\x20-\x20Backend\x20Function\x20脚本编写规范\x20(权限过滤、数据脱敏、业务逻辑)\x0a\x20\x20-\x20Backend\x20Function\x20同步工作流\x20(需\x20--dangerously-bff-save\x20启用)\x0a\x0a示例:\x0a\x20\x20$\x20lovrabet\x20skill\x20install\x0a\x20\x20\x20\x20→\x20交互式选择\x20IDE\x0a\x0a\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x0a\x20\x20\x20\x20→\x20直接安装\x20Cursor\x20和\x20claude\x20code\x20技能包\x0a\x0a\x20\x20$\x20lovrabet\x20skill\x20install\x20--dangerously-bff-save\x0a\x20\x20\x20\x20→\x20安装技能包并包含\x20Backend\x20Function\x20同步工作流\x0a\x0a\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x0a\x20\x20\x20\x20→\x20安装所有\x20IDE\x20技能包\x0a\x0a安装后会在项目中创建:\x0a\x20\x20-\x20IDE\x20特定配置文件\x20(.cursorrules,\x20.windsurf/,\x20.claude/,\x20.cline/,\x20.codex/,\x20.opencode/,\x20.qoder/,\x20.codebuddy/,\x20.trae/)\x0a\x20\x20-\x20.lovrabet/skill/.shared/guides/\x20\x20-\x20开发者技能指南\x0a\x0a开发者指南位置:\x0a\x20\x20.lovrabet/skill/.shared/guides/01-typescript-sdk/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/02-mcp-sql-workflow/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/03-antd-style/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/04-troubleshooting/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/05-api-integration/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/06-menu-management/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/07-backend-function/guide.md\x0a\x20\x20','help','split','replace','正在从\x20CDN\x20拉取开发者指南','.lovrabet/skill-manifest.json','\x20\x20lovrabet\x20skill\x20install\x20cursor\x20\x20\x20\x20#\x20直接安装\x20Cursor\x20技能包\x0a','...','../../cdn-source/skills','push','toLowerCase','\x20\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20交互式选择并安装技能包','quit','\x20\x20lovrabet\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20显示帮助信息\x0a','folders','agent','files','forEach','cwd','close','30MNkvGS','开发者指南位置:','question','name','all','2OIQPqK','1181247sxuUHO'];a62_0x17da=function(){return _0x4ea346;};return a62_0x17da();}import{fetchGuidesFromCDN,writeGuidesToProject}from'../utils/guides-cdn.js';const __dirname=dirname(fileURLToPath(import.meta.url));export function camelCaseFlagsToKebab(_0x17e27f){const _0x1aea06=a62_0x5a00,_0x562a82=[];for(const [_0x1fcfcb,_0x52afc9]of Object[_0x1aea06(0x103)](_0x17e27f)){if(_0x52afc9===!![]){const _0x30491e=_0x1fcfcb[_0x1aea06(0x133)](/([A-Z])/g,_0x1aea06(0x119))[_0x1aea06(0x13a)]();_0x562a82[_0x1aea06(0x139)](_0x30491e);}}return _0x562a82;}export function parseDynamicFlags(){const _0x166ede=a62_0x5a00,_0x38bcee=[];for(let _0x2a55fc=0x3;_0x2a55fc<process[_0x166ede(0x109)]['length'];_0x2a55fc++){const _0x1f67b1=process[_0x166ede(0x109)][_0x2a55fc];if(_0x1f67b1&&_0x1f67b1[_0x166ede(0x12b)]('--')){const _0x17a4b8=_0x1f67b1[_0x166ede(0x10f)](0x2);_0x17a4b8&&!_0x17a4b8[_0x166ede(0x102)]('=')&&_0x38bcee[_0x166ede(0x139)](_0x17a4b8);}}return _0x38bcee;}export function getAllProvidedFlags(_0x9287b1){const _0x2e1988=a62_0x5a00,_0xe18e8d=camelCaseFlagsToKebab(_0x9287b1),_0x131dcb=parseDynamicFlags(),_0x3ff72b=new Set([..._0xe18e8d,..._0x131dcb]);return Array[_0x2e1988(0xf4)](_0x3ff72b);}export async function skillsCommand(_0x4d47e0,_0x47d6b7,_0x3bb52d){const _0x2fff7b=a62_0x5a00;logger[_0x2fff7b(0x116)](process[_0x2fff7b(0x142)]());if(_0x3bb52d?.[_0x2fff7b(0x131)]||_0x4d47e0===_0x2fff7b(0xf8)){showHelp();return;}_0x4d47e0!==_0x2fff7b(0x129)&&(console['error'](_0x2fff7b(0x10b)+(_0x4d47e0||'(空)')),console[_0x2fff7b(0x117)]('\x0a可用命令:'),console['log'](_0x2fff7b(0x13b)),console[_0x2fff7b(0x117)](_0x2fff7b(0x108)),console[_0x2fff7b(0x117)](_0x2fff7b(0x13d)),console[_0x2fff7b(0x117)](_0x2fff7b(0x12d)),console[_0x2fff7b(0x117)](_0x2fff7b(0x105)),console[_0x2fff7b(0x117)](_0x2fff7b(0x136)),logger['error']('skill',_0x2fff7b(0x11d)+_0x4d47e0),process[_0x2fff7b(0x118)](0x1));let _0x4c5a1a=_0x47d6b7?.[0x0];const _0x4b11b6=getAllProvidedFlags(_0x3bb52d??{});_0x4c5a1a?.[_0x2fff7b(0x12b)]('--')&&(_0x4c5a1a=undefined),await installSkill(_0x4c5a1a??'agent',_0x4b11b6);}async function selectIDEs(){const _0x119d24=a62_0x5a00;return console[_0x119d24(0x117)]('\x0a请选择要安装技能包的\x20IDE\x20(可多选):\x0a'),CORE_IDE_LIST[_0x119d24(0x141)]((_0x453c26,_0x5af22d)=>{const _0x8a0b99=_0x119d24;console[_0x8a0b99(0x117)]('\x20\x20'+(_0x5af22d+0x1)+'.\x20'+IDE_CONFIGS[_0x453c26]['name']+'\x20-\x20'+IDE_CONFIGS[_0x453c26][_0x8a0b99(0x126)]);}),console['log']('\x20\x200.\x20全部安装'),console[_0x119d24(0x117)](_0x119d24(0x107)),console[_0x119d24(0x117)](_0x119d24(0xf6)),console[_0x119d24(0x117)]('输入\x200\x20安装所有\x20IDE,输入\x20q\x20取消\x0a'),new Promise(_0x528e46=>{const _0x59cf48=_0x119d24,_0x21bdbe=createInterface({'input':process[_0x59cf48(0xff)],'output':process[_0x59cf48(0xfc)]});_0x21bdbe[_0x59cf48(0x146)]('请选择:\x20',_0x4661a8=>{const _0x3e23e8=_0x59cf48;_0x21bdbe[_0x3e23e8(0x143)]();const _0x5e3c2f=_0x4661a8[_0x3e23e8(0x113)]()[_0x3e23e8(0x13a)]();(_0x5e3c2f==='q'||_0x5e3c2f===_0x3e23e8(0x13c)||_0x5e3c2f===_0x3e23e8(0x118))&&(console[_0x3e23e8(0x117)]('\x0a已取消安装\x0a'),process[_0x3e23e8(0x118)](0x0));if(_0x5e3c2f==='0'||_0x5e3c2f==='all'){_0x528e46([_0x3e23e8(0x148)]);return;}const _0x488a65=_0x5e3c2f[_0x3e23e8(0x132)](/\s+/)['filter'](Boolean),_0x435031=[];for(const _0x52f14e of _0x488a65){const _0xab3a90=parseInt(_0x52f14e,0xa);if(!isNaN(_0xab3a90)&&_0xab3a90>=0x1&&_0xab3a90<=CORE_IDE_LIST[_0x3e23e8(0x127)]){const _0x358b93=CORE_IDE_LIST[_0xab3a90-0x1];_0x358b93&&!_0x435031['includes'](_0x358b93)&&_0x435031['push'](_0x358b93);}}_0x435031[_0x3e23e8(0x127)]===0x0&&(console[_0x3e23e8(0x117)](_0x3e23e8(0x12e)),process['exit'](0x0)),_0x528e46(_0x435031);});});}function showHelp(){const _0x50cf9b=a62_0x5a00;console[_0x50cf9b(0x117)](_0x50cf9b(0x130));}async function installSkill(_0x3bf829,_0x2abdd8){const _0x5dfb9b=a62_0x5a00,_0x2e4696=process[_0x5dfb9b(0x142)](),_0x284b3c=resolve(__dirname,_0x5dfb9b(0x138));let _0x5404ca=[];!_0x3bf829?_0x5404ca=await selectIDEs():_0x5404ca=[_0x3bf829];_0x5404ca[_0x5dfb9b(0x102)](_0x5dfb9b(0x148))&&(_0x5404ca=[...ALL_CORE_IDES,_0x5dfb9b(0x13f)]);const _0x59bd93=[];for(const _0x2408a7 of _0x5404ca){if(_0x2408a7==='agent')_0x59bd93['push'](_0x5dfb9b(0x13f));else{if(_0x2408a7===_0x5dfb9b(0x148))continue;else IDE_CONFIGS[_0x2408a7]?_0x59bd93[_0x5dfb9b(0x139)](_0x2408a7):(console[_0x5dfb9b(0x117)](_0x5dfb9b(0x104)+_0x2408a7+_0x5dfb9b(0x122)),_0x59bd93[_0x5dfb9b(0x139)](_0x5dfb9b(0x13f)));}}_0x59bd93['length']===0x0&&(console[_0x5dfb9b(0x117)](_0x5dfb9b(0x123)),process[_0x5dfb9b(0x118)](0x0));const _0x2e67fd=_0x2abdd8&&_0x2abdd8['length']>0x0;console[_0x5dfb9b(0x117)](_0x5dfb9b(0x134)+(_0x2e67fd?_0x5dfb9b(0x114):'')+_0x5dfb9b(0x137));let _0x427263;try{_0x427263=await fetchGuidesFromCDN(_0x2e67fd),console[_0x5dfb9b(0x117)](_0x5dfb9b(0xfe)+Object[_0x5dfb9b(0xf9)](_0x427263[_0x5dfb9b(0x10c)])['length']+_0x5dfb9b(0x12f));}catch(_0x1d9ce0){console[_0x5dfb9b(0x10e)](_0x5dfb9b(0xfa)+(_0x1d9ce0 instanceof Error?_0x1d9ce0[_0x5dfb9b(0x12a)]:String(_0x1d9ce0)));}let _0x5a4f98=0x0;for(const _0x4ce9dc of _0x59bd93){try{const _0x1f1209=_0x4ce9dc==='agent'?'通用模板':IDE_CONFIGS[_0x4ce9dc]?.[_0x5dfb9b(0x147)]||_0x4ce9dc;console[_0x5dfb9b(0x117)](_0x5dfb9b(0x125)+_0x1f1209+_0x5dfb9b(0x12c));const _0x3a29de=_0x4ce9dc===_0x5dfb9b(0x13f)?undefined:IDE_CONFIGS[_0x4ce9dc],_0x3e74ad=await installSingleIDE(_0x4ce9dc,_0x3a29de,_0x2e4696,_0x284b3c,_0x427263,_0x2abdd8);_0x5a4f98+=_0x3e74ad;if(_0x3a29de?.[_0x5dfb9b(0x13e)])for(const _0x14add5 of _0x3a29de[_0x5dfb9b(0x13e)]){const _0x1966f7=_0x3a29de[_0x5dfb9b(0x140)]?.[_0x5dfb9b(0x10d)](_0x4f369d=>_0x4f369d['path'][_0x5dfb9b(0x12b)](_0x14add5+'/'))??![];_0x1966f7?console[_0x5dfb9b(0x117)](_0x5dfb9b(0x101)+_0x14add5+'/'):console[_0x5dfb9b(0x117)]('\x20\x20✓\x20创建\x20'+_0x14add5);}if(_0x3a29de?.[_0x5dfb9b(0x140)])for(const _0x119c25 of _0x3a29de[_0x5dfb9b(0x140)]){console[_0x5dfb9b(0x117)](_0x5dfb9b(0x101)+_0x119c25[_0x5dfb9b(0xfd)]);}}catch(_0x5edf24){console['error'](_0x5dfb9b(0x115)+_0x4ce9dc+'\x20失败:\x20'+(_0x5edf24 instanceof Error?_0x5edf24[_0x5dfb9b(0x12a)]:String(_0x5edf24)));}}_0x427263&&writeGuidesToProject(_0x427263,_0x2e4696,_0x5dfb9b(0xf5),_0x2abdd8);const _0x351367={'version':'2.0.0','installedAt':new Date()['toISOString'](),'platforms':_0x59bd93},_0x11a5eb=join(_0x2e4696,_0x5dfb9b(0x135)),_0x4c0a4b=join(_0x2e4696,_0x5dfb9b(0x11a));await copyDir(_0x4c0a4b,_0x4c0a4b),writeFileSync(_0x11a5eb,JSON[_0x5dfb9b(0x111)](_0x351367,null,0x2),_0x5dfb9b(0x11b)),console[_0x5dfb9b(0x117)](_0x5dfb9b(0xf7)),console[_0x5dfb9b(0x117)](_0x5dfb9b(0x128)+_0x5a4f98+_0x5dfb9b(0x112)),console[_0x5dfb9b(0x117)](_0x5dfb9b(0x145)),console[_0x5dfb9b(0x117)](_0x5dfb9b(0x121)),logger[_0x5dfb9b(0x120)](_0x5dfb9b(0x110),'安装成功',{'projectRoot':_0x2e4696,'ides':_0x59bd93,'foldersCount':_0x5a4f98});}
1
+ (function(_0x182307,_0x5c1f31){const _0x28f8f0=a67_0x4572,_0x2b7e44=_0x182307();while(!![]){try{const _0x61fe80=parseInt(_0x28f8f0(0x246))/0x1*(parseInt(_0x28f8f0(0x207))/0x2)+parseInt(_0x28f8f0(0x1ea))/0x3*(parseInt(_0x28f8f0(0x22c))/0x4)+-parseInt(_0x28f8f0(0x200))/0x5*(parseInt(_0x28f8f0(0x256))/0x6)+parseInt(_0x28f8f0(0x1fe))/0x7+parseInt(_0x28f8f0(0x241))/0x8*(-parseInt(_0x28f8f0(0x1fd))/0x9)+-parseInt(_0x28f8f0(0x1ed))/0xa+parseInt(_0x28f8f0(0x1ef))/0xb;if(_0x61fe80===_0x5c1f31)break;else _0x2b7e44['push'](_0x2b7e44['shift']());}catch(_0x21f00a){_0x2b7e44['push'](_0x2b7e44['shift']());}}}(a67_0x3e68,0x5fa88));import{writeFileSync}from'node:fs';import{resolve,join}from'node:path';import{fileURLToPath}from'node:url';import{dirname}from'node:path';import{createInterface}from'node:readline';import{logger}from'../utils/logger.js';import{copyDir}from'../utils/file-utils.js';import{IDE_CONFIGS,CORE_IDE_LIST,ALL_CORE_IDES}from'../utils/ai_config.js';function a67_0x3e68(){const _0x18611b=['skill.help.exampleBffDesc','skill.help.bffWorkflow','toLowerCase','question','trim','\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20','name','split','skill.generic','path','30MZolqg','skill.help.options','\x20-\x20','skill.select.title','agent','\x0a\x20\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skill.installing.createdDir','969taUyJF','skill.help.installAll','skill.error.noValidIDE','2707660ygpMlp','skill.help.interactiveKeys','2398561TcExUl','-$1','skill.error.unsupportedCommand','skill.select.cancelled','includes','\x0a\x20\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20q.\x20','skill.help.skillContentsList','skill-install','skill.help.installMethods','skill.select.cancel','\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20','some','skill.installing.createdManifest','1198413QwFIFc','1464190jyRfwS','skill.help.title','130745bVeeoU','--help','stdin','skill.select.inputFormat','\x20\x200.\x20','from','error','1160MGfLUD','skill.cdn.fetchSuccess','\x0a\x20\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','utf-8','\x0a\x20\x20lovrabet\x20skill\x20install\x20--dangerously-bff-save\x20\x20','skill.select.prompt','skill.help.interactiveSelect','length','folders','filter','skill.help.supportedIDEs','cwd','\x0a\x0a\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x0a','skill.errorHint.installDirect','skill.done.success','stringify','skill.errorHint.exampleInteractive','skill.help.allDesc','\x0a\x20\x20--antigravity\x20\x20Antigravity\x20IDE\x20(.agent/skills/)\x0a\x20\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(empty)','\x0a\x0a\x20\x20$\x20lovrabet\x20skill\x20install\x20--dangerously-bff-save\x0a','../../cdn-source/skills','2.0.0','skill.errorHint.usageExamples','skill.error.unknownPlatform','help','close','skill.help.exampleInteractive','skill.help.installDirect','安装成功','setLogPath','skill.cdn.fetching','\x0a\x20\x20$\x20lovrabet\x20skill\x20install\x0a','toISOString','skill.cdn.fetchFailed','skill.help.examples','7988oRNFzO','startsWith','skill.cdn.fetchingExtend','skill.errorHint.availableCommands','skill.done.guidesLocation','all','skill.select.installAll','push','exit','guides','skill.help.exampleAllDesc','skill.help.afterInstall','skill.select.inputHint','skill.help.directInstall','skill.help.guidesLocationTitle','skill.help.bffOption','skill.help.skillContents','skill.help.afterInstallList','message','skill.installing.ide','stdout','40dnhOhl','skill.help.showHelp','forEach','replace','keys','667iXRqRC','files','.lovrabet','不支持的命令:\x20','skill.help.usage','\x0a\x0a\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x0a'];a67_0x3e68=function(){return _0x18611b;};return a67_0x3e68();}import{installSingleIDE}from'./skill-installer.js';import{fetchGuidesFromCDN,writeGuidesToProject}from'../utils/guides-cdn.js';import a67_0x4a68b5 from'../i18n/index.js';const t=a67_0x4a68b5['t']['bind'](a67_0x4a68b5),__dirname=dirname(fileURLToPath(import.meta.url));export function camelCaseFlagsToKebab(_0x3aeb88){const _0x47c707=a67_0x4572,_0x4f60a0=[];for(const [_0x16b7a1,_0x52507c]of Object['entries'](_0x3aeb88)){if(_0x52507c===!![]){const _0x1dccc6=_0x16b7a1[_0x47c707(0x244)](/([A-Z])/g,_0x47c707(0x1f0))[_0x47c707(0x24e)]();_0x4f60a0[_0x47c707(0x233)](_0x1dccc6);}}return _0x4f60a0;}export function parseDynamicFlags(){const _0x68a713=a67_0x4572,_0x1ee975=[];for(let _0x11530f=0x3;_0x11530f<process['argv']['length'];_0x11530f++){const _0xd67f71=process['argv'][_0x11530f];if(_0xd67f71&&_0xd67f71[_0x68a713(0x22d)]('--')){const _0x5d613a=_0xd67f71['slice'](0x2);_0x5d613a&&!_0x5d613a['includes']('=')&&_0x1ee975[_0x68a713(0x233)](_0x5d613a);}}return _0x1ee975;}function a67_0x4572(_0x23fb40,_0x5f2f55){_0x23fb40=_0x23fb40-0x1e7;const _0x3e68f5=a67_0x3e68();let _0x45727a=_0x3e68f5[_0x23fb40];return _0x45727a;}export function getAllProvidedFlags(_0x181cf5){const _0xb19c40=a67_0x4572,_0xf1b880=camelCaseFlagsToKebab(_0x181cf5),_0x3d3055=parseDynamicFlags(),_0x47b7c4=new Set([..._0xf1b880,..._0x3d3055]);return Array[_0xb19c40(0x205)](_0x47b7c4);}export async function skillsCommand(_0x4f6179,_0x1cb7ce,_0x33c41e){const _0xce33f6=a67_0x4572;logger[_0xce33f6(0x226)](process[_0xce33f6(0x213)]());if(_0x33c41e?.[_0xce33f6(0x221)]||_0x4f6179===_0xce33f6(0x201)){showHelp();return;}_0x4f6179!=='install'&&(console[_0xce33f6(0x206)](t(_0xce33f6(0x1f1),{'cmd':_0x4f6179||_0xce33f6(0x21b)})),console[_0xce33f6(0x20a)](t(_0xce33f6(0x22f))),console[_0xce33f6(0x20a)](t('skill.errorHint.installInteractive')),console['log'](t(_0xce33f6(0x215))),console[_0xce33f6(0x20a)](t('skill.errorHint.showHelp')),console[_0xce33f6(0x20a)](t(_0xce33f6(0x21f))),console['log'](t(_0xce33f6(0x218))),console['log'](t('skill.errorHint.exampleDirect')),logger[_0xce33f6(0x206)]('skill',_0xce33f6(0x249)+_0x4f6179),process[_0xce33f6(0x234)](0x1));let _0x2f4b2b=_0x1cb7ce?.[0x0];const _0x33b780=getAllProvidedFlags(_0x33c41e??{});_0x2f4b2b?.[_0xce33f6(0x22d)]('--')&&(_0x2f4b2b=undefined),await installSkill(_0x2f4b2b??'agent',_0x33b780);}async function selectIDEs(){const _0x5b1b85=a67_0x4572;return console[_0x5b1b85(0x20a)](t(_0x5b1b85(0x259))),CORE_IDE_LIST[_0x5b1b85(0x243)]((_0x70d0db,_0x65c938)=>{const _0x1b9daf=_0x5b1b85;console['log']('\x20\x20'+(_0x65c938+0x1)+'.\x20'+IDE_CONFIGS[_0x70d0db]['name']+_0x1b9daf(0x258)+IDE_CONFIGS[_0x70d0db]['description']);}),console['log'](_0x5b1b85(0x204)+t(_0x5b1b85(0x232))),console[_0x5b1b85(0x20a)](_0x5b1b85(0x1f5)+t(_0x5b1b85(0x1f9))+'\x0a'),console[_0x5b1b85(0x20a)](t(_0x5b1b85(0x203))),console[_0x5b1b85(0x20a)](t(_0x5b1b85(0x238))),new Promise(_0x2527cb=>{const _0x3069ae=_0x5b1b85,_0x411cf7=createInterface({'input':process[_0x3069ae(0x202)],'output':process[_0x3069ae(0x240)]});_0x411cf7[_0x3069ae(0x24f)](t(_0x3069ae(0x20d)),_0xc2264d=>{const _0xd8c1db=_0x3069ae;_0x411cf7[_0xd8c1db(0x222)]();const _0x1f315a=_0xc2264d[_0xd8c1db(0x250)]()[_0xd8c1db(0x24e)]();(_0x1f315a==='q'||_0x1f315a==='quit'||_0x1f315a==='exit')&&(console['log'](t(_0xd8c1db(0x1f2))),process[_0xd8c1db(0x234)](0x0));if(_0x1f315a==='0'||_0x1f315a===_0xd8c1db(0x231)){_0x2527cb(['all']);return;}const _0x1bd212=_0x1f315a[_0xd8c1db(0x253)](/\s+/)[_0xd8c1db(0x211)](Boolean),_0x1e6870=[];for(const _0x3bc25d of _0x1bd212){const _0x3fdfca=parseInt(_0x3bc25d,0xa);if(!isNaN(_0x3fdfca)&&_0x3fdfca>=0x1&&_0x3fdfca<=CORE_IDE_LIST['length']){const _0x4342c7=CORE_IDE_LIST[_0x3fdfca-0x1];_0x4342c7&&!_0x1e6870[_0xd8c1db(0x1f3)](_0x4342c7)&&_0x1e6870[_0xd8c1db(0x233)](_0x4342c7);}}_0x1e6870['length']===0x0&&(console['log'](t('skill.select.noneSelected')),process[_0xd8c1db(0x234)](0x0)),_0x2527cb(_0x1e6870);});});}function showHelp(){const _0x5a255b=a67_0x4572;console[_0x5a255b(0x20a)]('\x0a'+t(_0x5a255b(0x1ff))+'\x0a\x0a'+t(_0x5a255b(0x24a))+'\x0a\x20\x20lovrabet\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+t(_0x5a255b(0x242))+_0x5a255b(0x1f4)+t('skill.help.installInteractive')+_0x5a255b(0x209)+t(_0x5a255b(0x224))+_0x5a255b(0x1e8)+t(_0x5a255b(0x1eb))+_0x5a255b(0x20c)+t('skill.help.installWithBff')+'\x0a\x0a'+t(_0x5a255b(0x1f8))+'\x0a'+t(_0x5a255b(0x20e))+'\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x0a'+t(_0x5a255b(0x1ee))+'\x0a\x0a'+t(_0x5a255b(0x239))+_0x5a255b(0x1fa)+t(_0x5a255b(0x224))+'\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20\x20#\x20'+t('skill.help.installAll')+_0x5a255b(0x251)+t('skill.help.installAll')+'\x0a\x0a'+t(_0x5a255b(0x24d))+'\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20--dangerously-bff-save\x0a\x20\x20\x20\x20$\x20lovrabet\x20skill\x20install\x20cursor\x20--dangerously-bff-save\x0a\x0a'+t(_0x5a255b(0x212))+'\x0a\x20\x20--cursor\x20\x20\x20\x20\x20\x20\x20Cursor\x20IDE\x20(.cursorrules\x20+\x20.cursor/commands/)\x0a\x20\x20--windsurf\x20\x20\x20\x20\x20Windsurf\x20IDE\x20(.windsurf/workflows/)\x0a\x20\x20--claude\x20\x20\x20\x20\x20\x20\x20Claude\x20Code\x20(.claude/skills/)\x0a\x20\x20--cline\x20\x20\x20\x20\x20\x20\x20\x20Cline\x20IDE\x20(.cline/skills/)\x0a\x20\x20--codex\x20\x20\x20\x20\x20\x20\x20\x20Codex\x20IDE\x20(.codex/skills/)\x0a\x20\x20--opencode\x20\x20\x20\x20\x20OpenCode\x20IDE\x20(.opencode/skills/)\x0a\x20\x20--qoder\x20\x20\x20\x20\x20\x20\x20\x20Qoder\x20IDE\x20(.qoder/rules/\x20+\x20.qoder/skills/)\x0a\x20\x20--codebuddy\x20\x20\x20\x20CodeBuddy\x20IDE\x20(.codebuddy/skills/)\x0a\x20\x20--trae\x20\x20\x20\x20\x20\x20\x20\x20\x20Trae\x20IDE\x20(.trae/skills/)\x0a\x20\x20--agent\x20\x20\x20\x20\x20\x20\x20\x20'+t('skill.help.agentDesc')+_0x5a255b(0x21a)+t(_0x5a255b(0x219))+'\x0a\x0a'+t(_0x5a255b(0x257))+'\x0a'+t(_0x5a255b(0x23b))+'\x0a\x0a'+t(_0x5a255b(0x23c))+'\x0a'+t(_0x5a255b(0x1f6))+'\x0a\x0a'+t(_0x5a255b(0x22b))+_0x5a255b(0x228)+t(_0x5a255b(0x223))+_0x5a255b(0x214)+t('skill.help.exampleDirectDesc')+_0x5a255b(0x21c)+t(_0x5a255b(0x24c))+_0x5a255b(0x24b)+t(_0x5a255b(0x236))+'\x0a\x0a'+t(_0x5a255b(0x237))+'\x0a'+t(_0x5a255b(0x23d))+'\x0a\x0a'+t(_0x5a255b(0x23a))+'\x0a\x20\x20.lovrabet/skill/.shared/guides/01-typescript-sdk/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/02-mcp-sql-workflow/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/03-antd-style/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/04-troubleshooting/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/05-api-integration/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/06-menu-management/guide.md\x0a\x20\x20.lovrabet/skill/.shared/guides/07-backend-function/guide.md\x0a\x20\x20');}async function installSkill(_0x365166,_0x3fd79b){const _0x14d77e=a67_0x4572,_0x5724ea=process['cwd'](),_0x313282=resolve(__dirname,_0x14d77e(0x21d));let _0xf74c28=[];!_0x365166?_0xf74c28=await selectIDEs():_0xf74c28=[_0x365166];_0xf74c28[_0x14d77e(0x1f3)](_0x14d77e(0x231))&&(_0xf74c28=[...ALL_CORE_IDES,_0x14d77e(0x1e7)]);const _0x10aeb0=[];for(const _0x2bc55e of _0xf74c28){if(_0x2bc55e===_0x14d77e(0x1e7))_0x10aeb0[_0x14d77e(0x233)]('agent');else{if(_0x2bc55e==='all')continue;else IDE_CONFIGS[_0x2bc55e]?_0x10aeb0['push'](_0x2bc55e):(console[_0x14d77e(0x20a)](t(_0x14d77e(0x220),{'ide':_0x2bc55e})),_0x10aeb0[_0x14d77e(0x233)](_0x14d77e(0x1e7)));}}_0x10aeb0[_0x14d77e(0x20f)]===0x0&&(console['log'](t(_0x14d77e(0x1ec))),process[_0x14d77e(0x234)](0x0));const _0xb3eb60=_0x3fd79b&&_0x3fd79b[_0x14d77e(0x20f)]>0x0;console[_0x14d77e(0x20a)](_0xb3eb60?t(_0x14d77e(0x22e)):t(_0x14d77e(0x227)));let _0x4da2d6;try{_0x4da2d6=await fetchGuidesFromCDN(_0xb3eb60),console[_0x14d77e(0x20a)](t(_0x14d77e(0x208),{'count':Object[_0x14d77e(0x245)](_0x4da2d6[_0x14d77e(0x235)])[_0x14d77e(0x20f)]}));}catch(_0x101772){console['warn'](t(_0x14d77e(0x22a),{'error':_0x101772 instanceof Error?_0x101772[_0x14d77e(0x23e)]:String(_0x101772)}));}let _0x16a04e=0x0;for(const _0x446805 of _0x10aeb0){try{const _0x381c1b=_0x446805===_0x14d77e(0x1e7)?t(_0x14d77e(0x254)):IDE_CONFIGS[_0x446805]?.[_0x14d77e(0x252)]||_0x446805;console[_0x14d77e(0x20a)](t(_0x14d77e(0x23f),{'name':_0x381c1b}));const _0xf35e5e=_0x446805===_0x14d77e(0x1e7)?undefined:IDE_CONFIGS[_0x446805],_0x2615e2=await installSingleIDE(_0x446805,_0xf35e5e,_0x5724ea,_0x313282,_0x4da2d6,_0x3fd79b);_0x16a04e+=_0x2615e2;if(_0xf35e5e?.[_0x14d77e(0x210)])for(const _0x3b123e of _0xf35e5e[_0x14d77e(0x210)]){const _0x15a417=_0xf35e5e[_0x14d77e(0x247)]?.[_0x14d77e(0x1fb)](_0x3b8a2c=>_0x3b8a2c[_0x14d77e(0x255)][_0x14d77e(0x22d)](_0x3b123e+'/'))??![];_0x15a417?console['log'](t(_0x14d77e(0x1e9),{'path':_0x3b123e})):console[_0x14d77e(0x20a)](t('skill.installing.created',{'path':_0x3b123e}));}if(_0xf35e5e?.[_0x14d77e(0x247)])for(const _0x5b7e0b of _0xf35e5e['files']){console['log'](t('skill.installing.created',{'path':_0x5b7e0b[_0x14d77e(0x255)]}));}}catch(_0x429215){console[_0x14d77e(0x206)](t('skill.error.installFailed',{'ide':_0x446805,'error':_0x429215 instanceof Error?_0x429215['message']:String(_0x429215)}));}}_0x4da2d6&&writeGuidesToProject(_0x4da2d6,_0x5724ea,'.lovrabet/skill/.shared/guides',_0x3fd79b);const _0x542256={'version':_0x14d77e(0x21e),'installedAt':new Date()[_0x14d77e(0x229)](),'platforms':_0x10aeb0},_0x2df489=join(_0x5724ea,'.lovrabet/skill-manifest.json'),_0x6544f4=join(_0x5724ea,_0x14d77e(0x248));await copyDir(_0x6544f4,_0x6544f4),writeFileSync(_0x2df489,JSON[_0x14d77e(0x217)](_0x542256,null,0x2),_0x14d77e(0x20b)),console[_0x14d77e(0x20a)](t(_0x14d77e(0x1fc))),console[_0x14d77e(0x20a)](t(_0x14d77e(0x216),{'count':_0x16a04e})),console[_0x14d77e(0x20a)](t(_0x14d77e(0x230))),console['log'](t('skill.done.guidesPath')),logger['info'](_0x14d77e(0x1f7),_0x14d77e(0x225),{'projectRoot':_0x5724ea,'ides':_0x10aeb0,'foldersCount':_0x16a04e});}
@@ -1 +1 @@
1
- const a63_0x528d29=a63_0x259a;(function(_0x34aeec,_0x725f77){const _0x33cf40=a63_0x259a,_0x3c8234=_0x34aeec();while(!![]){try{const _0x16629c=-parseInt(_0x33cf40(0x1d2))/0x1*(parseInt(_0x33cf40(0x1ce))/0x2)+parseInt(_0x33cf40(0x1c5))/0x3*(-parseInt(_0x33cf40(0x1d8))/0x4)+-parseInt(_0x33cf40(0x1c2))/0x5+parseInt(_0x33cf40(0x1c7))/0x6*(-parseInt(_0x33cf40(0x1d3))/0x7)+-parseInt(_0x33cf40(0x1d5))/0x8+parseInt(_0x33cf40(0x1df))/0x9*(-parseInt(_0x33cf40(0x1dd))/0xa)+-parseInt(_0x33cf40(0x1d1))/0xb*(-parseInt(_0x33cf40(0x1d7))/0xc);if(_0x16629c===_0x725f77)break;else _0x3c8234['push'](_0x3c8234['shift']());}catch(_0x3fa496){_0x3c8234['push'](_0x3c8234['shift']());}}}(a63_0x1e44,0x23cf2));import{writeFileSync,existsSync,mkdirSync}from'node:fs';import{resolve,join}from'node:path';import{fileURLToPath}from'node:url';import{dirname}from'node:path';import{logger}from'../utils/logger.js';import{IDE_CONFIGS}from'../utils/ai_config.js';import{installSingleIDE}from'./skill-installer.js';import{fetchGuidesFromCDN,writeGuidesToProject}from'../utils/guides-cdn.js';function a63_0x1e44(){const _0x4eda7f=['\x20失败:\x20','length','2.0.0','\x20\x20✗\x20未知的\x20IDE:\x20','setLogPath','skill-install-non-interactive','345652YbqUSN','正在从\x20CDN\x20拉取开发者指南','(含扩展)','11iBMNGN','1wGvgwm','7QRCpSk','.lovrabet/skill/.shared/guides','2025072ovDKvY','error','15128988hdoqHY','801844vNZWMj','stringify','\x20个开发者指南','\x20\x20✓\x20','message','270zunISE','\x20\x20!\x20CDN\x20拉取失败,跳过指南安装:\x20','71703UyxbaC','开发者指南位置:\x20.lovrabet/skill/.shared/guides/','\x20\x20✗\x20安装\x20','✓\x20拉取\x20','\x20个目录','info','.lovrabet','\x0a✓\x20技能包安装成功!共安装\x20','开始安装技能包','name','cwd','534635jfwtFy','guides','log','3BfYFnW','...','993708ooRrrT'];a63_0x1e44=function(){return _0x4eda7f;};return a63_0x1e44();}const __dirname=dirname(fileURLToPath(import.meta.url));function a63_0x259a(_0x12bf0d,_0x4ae39d){_0x12bf0d=_0x12bf0d-0x1be;const _0x1e447b=a63_0x1e44();let _0x259a7d=_0x1e447b[_0x12bf0d];return _0x259a7d;}export async function installSkillsNonInteractive(_0x9877ec,_0x4f8c05,_0x50c0c7=process[a63_0x528d29(0x1c1)]()){const _0x26503e=a63_0x528d29,_0x192c24=resolve(__dirname,'../../cdn-source/skills');logger[_0x26503e(0x1cc)](_0x50c0c7),logger[_0x26503e(0x1e4)](_0x26503e(0x1cd),_0x26503e(0x1bf),{'ides':_0x9877ec});const _0x15be95=join(_0x50c0c7,_0x26503e(0x1e5));!existsSync(_0x15be95)&&mkdirSync(_0x15be95,{'recursive':!![]});const _0xa9913=_0x4f8c05&&_0x4f8c05[_0x26503e(0x1c9)]>0x0;console['log'](_0x26503e(0x1cf)+(_0xa9913?_0x26503e(0x1d0):'')+_0x26503e(0x1c6));let _0x2b7dfe;try{_0x2b7dfe=await fetchGuidesFromCDN(_0xa9913),console[_0x26503e(0x1c4)](_0x26503e(0x1e2)+Object['keys'](_0x2b7dfe[_0x26503e(0x1c3)])[_0x26503e(0x1c9)]+_0x26503e(0x1da));}catch(_0x396a97){console['warn'](_0x26503e(0x1de)+(_0x396a97 instanceof Error?_0x396a97[_0x26503e(0x1dc)]:String(_0x396a97)));}let _0x2ac606=0x0;for(const _0x2400be of _0x9877ec){try{const _0x51281d=IDE_CONFIGS[_0x2400be];if(!_0x51281d){console['warn'](_0x26503e(0x1cb)+_0x2400be);continue;}const _0x433070=await installSingleIDE(_0x2400be,_0x51281d,_0x50c0c7,_0x192c24,_0x2b7dfe,_0x4f8c05);_0x2ac606+=_0x433070,console[_0x26503e(0x1c4)](_0x26503e(0x1db)+(_0x51281d[_0x26503e(0x1c0)]||_0x2400be));}catch(_0x5d3ea7){console[_0x26503e(0x1d6)](_0x26503e(0x1e1)+_0x2400be+_0x26503e(0x1c8)+(_0x5d3ea7 instanceof Error?_0x5d3ea7[_0x26503e(0x1dc)]:String(_0x5d3ea7)));}}_0x2b7dfe&&writeGuidesToProject(_0x2b7dfe,_0x50c0c7,_0x26503e(0x1d4),_0x4f8c05);const _0x20f717={'version':_0x26503e(0x1ca),'installedAt':new Date()['toISOString'](),'platforms':_0x9877ec},_0x599e05=join(_0x50c0c7,'.lovrabet/skill-manifest.json');writeFileSync(_0x599e05,JSON[_0x26503e(0x1d9)](_0x20f717,null,0x2),'utf-8'),logger[_0x26503e(0x1e4)](_0x26503e(0x1cd),'安装成功',{'projectRoot':_0x50c0c7,'ides':_0x9877ec,'foldersCount':_0x2ac606}),console[_0x26503e(0x1c4)](_0x26503e(0x1be)+_0x2ac606+_0x26503e(0x1e3)),console[_0x26503e(0x1c4)](_0x26503e(0x1e0));}
1
+ const a68_0x14b76b=a68_0x2ee9;(function(_0x1e1f0b,_0x260229){const _0x14bc51=a68_0x2ee9,_0x181c3c=_0x1e1f0b();while(!![]){try{const _0x4a10=-parseInt(_0x14bc51(0x97))/0x1+-parseInt(_0x14bc51(0x91))/0x2*(-parseInt(_0x14bc51(0x8d))/0x3)+-parseInt(_0x14bc51(0x8a))/0x4*(parseInt(_0x14bc51(0x8b))/0x5)+parseInt(_0x14bc51(0x99))/0x6*(parseInt(_0x14bc51(0x7d))/0x7)+-parseInt(_0x14bc51(0x7f))/0x8*(-parseInt(_0x14bc51(0x81))/0x9)+-parseInt(_0x14bc51(0x77))/0xa*(-parseInt(_0x14bc51(0x98))/0xb)+-parseInt(_0x14bc51(0x89))/0xc;if(_0x4a10===_0x260229)break;else _0x181c3c['push'](_0x181c3c['shift']());}catch(_0x5138cf){_0x181c3c['push'](_0x181c3c['shift']());}}}(a68_0xc2f6,0x45905));import{writeFileSync,existsSync,mkdirSync}from'node:fs';import{resolve,join}from'node:path';import{fileURLToPath}from'node:url';import{dirname}from'node:path';function a68_0xc2f6(){const _0x3c2cf8=['../../cdn-source/skills','skill.cdn.fetchFailed','keys','guides','.lovrabet/skill-manifest.json','191290LtFmqV','3043931kyAFlI','202854hhdNmX','toISOString','log','setLogPath','2.0.0','10ZYotdn','skill.cdn.fetchSuccess','length','开始安装技能包','安装成功','info','14lBaVFE','skill.error.unknownIDE','1950632cIuvVd','error','18rzATSI','skill-install-non-interactive','name','skill.done.guidesPathInline','.lovrabet/skill/.shared/guides','\x20\x20✓\x20','.lovrabet','bind','9119484zAojoy','463724lnbhwO','5dgPcja','skill.cdn.fetchingExtend','4074jkFvhb','utf-8','stringify','skill.error.installFailed','766YGRLee'];a68_0xc2f6=function(){return _0x3c2cf8;};return a68_0xc2f6();}import{logger}from'../utils/logger.js';import{IDE_CONFIGS}from'../utils/ai_config.js';function a68_0x2ee9(_0x5846bf,_0x55400e){_0x5846bf=_0x5846bf-0x76;const _0xc2f611=a68_0xc2f6();let _0x2ee9ca=_0xc2f611[_0x5846bf];return _0x2ee9ca;}import{installSingleIDE}from'./skill-installer.js';import{fetchGuidesFromCDN,writeGuidesToProject}from'../utils/guides-cdn.js';import a68_0x1a3fc4 from'../i18n/index.js';const t=a68_0x1a3fc4['t'][a68_0x14b76b(0x88)](a68_0x1a3fc4),__dirname=dirname(fileURLToPath(import.meta.url));export async function installSkillsNonInteractive(_0x29f00d,_0x19b87f,_0x5a1fa3=process['cwd']()){const _0x581c75=a68_0x14b76b,_0x4c8fac=resolve(__dirname,_0x581c75(0x92));logger[_0x581c75(0x9c)](_0x5a1fa3),logger[_0x581c75(0x7c)](_0x581c75(0x82),_0x581c75(0x7a),{'ides':_0x29f00d});const _0x5b34a0=join(_0x5a1fa3,_0x581c75(0x87));!existsSync(_0x5b34a0)&&mkdirSync(_0x5b34a0,{'recursive':!![]});const _0x1c8ab7=_0x19b87f&&_0x19b87f[_0x581c75(0x79)]>0x0;console[_0x581c75(0x9b)](_0x1c8ab7?t(_0x581c75(0x8c)):t('skill.cdn.fetching'));let _0x54788f;try{_0x54788f=await fetchGuidesFromCDN(_0x1c8ab7),console['log'](t(_0x581c75(0x78),{'count':Object[_0x581c75(0x94)](_0x54788f[_0x581c75(0x95)])[_0x581c75(0x79)]}));}catch(_0x5b1eae){console['warn'](t(_0x581c75(0x93),{'error':_0x5b1eae instanceof Error?_0x5b1eae['message']:String(_0x5b1eae)}));}let _0xde99e2=0x0;for(const _0xb955a2 of _0x29f00d){try{const _0x454de9=IDE_CONFIGS[_0xb955a2];if(!_0x454de9){console['warn'](t(_0x581c75(0x7e),{'ide':_0xb955a2}));continue;}const _0x38041d=await installSingleIDE(_0xb955a2,_0x454de9,_0x5a1fa3,_0x4c8fac,_0x54788f,_0x19b87f);_0xde99e2+=_0x38041d,console[_0x581c75(0x9b)](_0x581c75(0x86)+(_0x454de9[_0x581c75(0x83)]||_0xb955a2));}catch(_0x3d6f63){console[_0x581c75(0x80)](t(_0x581c75(0x90),{'ide':_0xb955a2,'error':_0x3d6f63 instanceof Error?_0x3d6f63['message']:String(_0x3d6f63)}));}}_0x54788f&&writeGuidesToProject(_0x54788f,_0x5a1fa3,_0x581c75(0x85),_0x19b87f);const _0x4c65ca={'version':_0x581c75(0x76),'installedAt':new Date()[_0x581c75(0x9a)](),'platforms':_0x29f00d},_0x179005=join(_0x5a1fa3,_0x581c75(0x96));writeFileSync(_0x179005,JSON[_0x581c75(0x8f)](_0x4c65ca,null,0x2),_0x581c75(0x8e)),logger[_0x581c75(0x7c)]('skill-install-non-interactive',_0x581c75(0x7b),{'projectRoot':_0x5a1fa3,'ides':_0x29f00d,'foldersCount':_0xde99e2}),console[_0x581c75(0x9b)](t('skill.done.success',{'count':_0xde99e2})),console[_0x581c75(0x9b)](t(_0x581c75(0x84)));}
@@ -1 +1 @@
1
- (function(_0x137f9b,_0x415dd1){const _0x57150c=a64_0x2bf8,_0x5e40f6=_0x137f9b();while(!![]){try{const _0x2c2af9=parseInt(_0x57150c(0x1d7))/0x1*(parseInt(_0x57150c(0x1cb))/0x2)+-parseInt(_0x57150c(0x1df))/0x3*(-parseInt(_0x57150c(0x1de))/0x4)+parseInt(_0x57150c(0x1d1))/0x5+parseInt(_0x57150c(0x1d6))/0x6*(parseInt(_0x57150c(0x1da))/0x7)+parseInt(_0x57150c(0x1d8))/0x8*(-parseInt(_0x57150c(0x1e2))/0x9)+parseInt(_0x57150c(0x1ca))/0xa+-parseInt(_0x57150c(0x1d0))/0xb;if(_0x2c2af9===_0x415dd1)break;else _0x5e40f6['push'](_0x5e40f6['shift']());}catch(_0x43f4a3){_0x5e40f6['push'](_0x5e40f6['shift']());}}}(a64_0x16bb,0xc217a));import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import{dirname,join}from'node:path';import{writeSkillFile,appendExtendContents}from'../utils/guides-cdn.js';function a64_0x16bb(){const _0x88357a=['8PxakeX','some','115654jNJkDU','startsWith','`\x20|\x20','|\x20`','3416sjfoaC','1071auPFww','folders','utf-8','13295988kdsXqM','path','files','guides','join','length','<!--\x20GUIDES_APPEND\x20-->','name','title','10657690TOMbtC','6hLFUYk','sort','push','indexOf','SKILL.md.tpl','14995233DvQVLI','3130450Wdifzu','\x0a<!--\x20GUIDES_APPEND\x20-->','requireFlags','template','replace','318izJBRj','254378Oyqwzl'];a64_0x16bb=function(){return _0x88357a;};return a64_0x16bb();}export async function installSingleIDE(_0x2903b2,_0x21f121,_0x403f2e,_0x3689e0,_0x120173,_0x37cd23){const _0x2f3cf7=a64_0x2bf8;let _0x3d4b00=0x0;const _0x5e4bcd=_0x21f121?.[_0x2f3cf7(0x1e0)]??['.'+_0x2903b2];for(const _0x40913f of _0x5e4bcd){const _0x29070e=join(_0x403f2e,_0x40913f),_0x476aa5=_0x21f121?.[_0x2f3cf7(0x1e4)]?.[_0x2f3cf7(0x1d9)](_0x508e42=>_0x508e42[_0x2f3cf7(0x1e3)][_0x2f3cf7(0x1db)](_0x40913f+'/'))??![];_0x476aa5?!existsSync(_0x29070e)&&(mkdirSync(_0x29070e,{'recursive':!![]}),_0x3d4b00++):!existsSync(_0x29070e)&&(writeFileSync(_0x29070e,'',_0x2f3cf7(0x1e1)),_0x3d4b00++);}if(_0x21f121?.[_0x2f3cf7(0x1e4)]){const _0x33800e=_0x21f121[_0x2f3cf7(0x1c8)]||_0x2903b2;for(const _0x33240b of _0x21f121[_0x2f3cf7(0x1e4)]){const _0x5deb57=join(_0x403f2e,_0x33240b[_0x2f3cf7(0x1e3)]);await createFileFromTemplate(_0x33240b,_0x5deb57,_0x33800e,_0x3689e0,_0x120173,_0x37cd23),_0x3d4b00++;}}return _0x3d4b00;}export async function createFileFromTemplate(_0x59a1b8,_0x3f4330,_0x14d8b1,_0xc05d22,_0x24e472,_0x4ba6b5){const _0xae62a7=a64_0x2bf8,_0x179d17=dirname(_0x3f4330);!existsSync(_0x179d17)&&mkdirSync(_0x179d17,{'recursive':!![]});const _0x12dad5=_0x59a1b8[_0xae62a7(0x1d4)]===_0xae62a7(0x1cf);if(existsSync(_0x3f4330)&&!_0x12dad5)return;if(_0x59a1b8[_0xae62a7(0x1d4)]){const _0x34d21f=join(_0xc05d22,_0x59a1b8[_0xae62a7(0x1d4)]);if(existsSync(_0x34d21f)){let _0x3c0409=readFileSync(_0x34d21f,_0xae62a7(0x1e1));_0x3c0409=_0x3c0409[_0xae62a7(0x1d5)](/\{\{IDE_NAME\}\}/g,_0x14d8b1);_0x24e472&&_0x12dad5&&(_0x3c0409=insertGuidesSection(_0x3c0409,_0x24e472,_0x4ba6b5),_0x3c0409=appendExtendContents(_0x3c0409,_0x24e472,_0x4ba6b5));writeFileSync(_0x3f4330,_0x3c0409,'utf-8');return;}if(_0x24e472&&_0x12dad5)try{writeSkillFile(_0x24e472,_0x3f4330,_0x14d8b1,_0x4ba6b5);return;}catch{}}writeFileSync(_0x3f4330,'',_0xae62a7(0x1e1));}function a64_0x2bf8(_0x1df876,_0xc9ff57){_0x1df876=_0x1df876-0x1c4;const _0x16bb23=a64_0x16bb();let _0x2bf8be=_0x16bb23[_0x1df876];return _0x2bf8be;}function insertGuidesSection(_0x22c0c4,_0xa9a3f,_0x13ea8a){const _0x16d939=a64_0x2bf8,_0x1bcd64=_0x16d939(0x1c7),_0x67eae9=_0x22c0c4[_0x16d939(0x1ce)](_0x1bcd64);if(_0x67eae9===-0x1)return _0x22c0c4;const _0x30cd0=[],_0x2cb5d1=Object['keys'](_0xa9a3f[_0x16d939(0x1c4)])[_0x16d939(0x1cc)]();for(const _0x60a92a of _0x2cb5d1){const _0x86c9fe=_0xa9a3f['guides'][_0x60a92a];if(!_0x86c9fe)continue;if(/^0[1-6]-/['test'](_0x60a92a))continue;if(_0x86c9fe['requireFlags']&&_0x86c9fe[_0x16d939(0x1d3)][_0x16d939(0x1c6)]>0x0){const _0xa838bc=_0x86c9fe['requireFlags'][_0x16d939(0x1d9)](_0xf0d47e=>_0x13ea8a?.['includes'](_0xf0d47e));if(!_0xa838bc)continue;}const _0x4a44fd=_0x86c9fe[_0x16d939(0x1e3)][_0x16d939(0x1d5)](/^\.lovrabet\/skill\/\.shared\/guides\//,'');_0x30cd0[_0x16d939(0x1cd)](_0x16d939(0x1dd)+_0x4a44fd+_0x16d939(0x1dc)+_0x86c9fe[_0x16d939(0x1c9)]+'\x20|');}if(_0x30cd0[_0x16d939(0x1c6)]===0x0)return _0x22c0c4[_0x16d939(0x1d5)](_0x1bcd64,'<!--\x20GUIDES_APPEND\x20-->');const _0x523cf2=_0x30cd0[_0x16d939(0x1c5)]('\x0a');return _0x22c0c4[_0x16d939(0x1d5)](_0x1bcd64,_0x523cf2+_0x16d939(0x1d2));}
1
+ (function(_0x24bb5a,_0x21570f){const _0x7b6e72=a69_0x3127,_0x16e877=_0x24bb5a();while(!![]){try{const _0x4c2e29=-parseInt(_0x7b6e72(0x96))/0x1+-parseInt(_0x7b6e72(0x94))/0x2*(parseInt(_0x7b6e72(0x95))/0x3)+-parseInt(_0x7b6e72(0xa6))/0x4+parseInt(_0x7b6e72(0x9e))/0x5*(-parseInt(_0x7b6e72(0xa8))/0x6)+-parseInt(_0x7b6e72(0x8d))/0x7+parseInt(_0x7b6e72(0x99))/0x8*(parseInt(_0x7b6e72(0x9d))/0x9)+parseInt(_0x7b6e72(0x9a))/0xa;if(_0x4c2e29===_0x21570f)break;else _0x16e877['push'](_0x16e877['shift']());}catch(_0x53566c){_0x16e877['push'](_0x16e877['shift']());}}}(a69_0x4969,0x37d7b));function a69_0x3127(_0x3ef171,_0x16077f){_0x3ef171=_0x3ef171-0x8d;const _0x496929=a69_0x4969();let _0x312796=_0x496929[_0x3ef171];return _0x312796;}import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import{dirname,join}from'node:path';function a69_0x4969(){const _0x59993b=['keys','<!--\x20GUIDES_APPEND\x20-->','guides','path','1739048jFdndk','requireFlags','6rNiHuW','name','1647933JkShmA','length','utf-8','push','template','|\x20`','`\x20|\x20','2XHMRfp','1015743woCSeH','263560gVVSit','some','join','270304WAeWdF','18019480gcIxsp','files','folders','18xlBHVI','1842355AgkPyn','sort','title','replace'];a69_0x4969=function(){return _0x59993b;};return a69_0x4969();}import{writeSkillFile,appendExtendContents}from'../utils/guides-cdn.js';export async function installSingleIDE(_0x488cb8,_0xb1c6e6,_0x46b8ac,_0x3696e7,_0x5b02f1,_0x3d192f){const _0x54fdfc=a69_0x3127;let _0x2d254f=0x0;const _0x3e6bec=_0xb1c6e6?.[_0x54fdfc(0x9c)]??['.'+_0x488cb8];for(const _0x392cc8 of _0x3e6bec){const _0x45bb5e=join(_0x46b8ac,_0x392cc8),_0x298f51=_0xb1c6e6?.['files']?.[_0x54fdfc(0x97)](_0x5e21a6=>_0x5e21a6[_0x54fdfc(0xa5)]['startsWith'](_0x392cc8+'/'))??![];_0x298f51?!existsSync(_0x45bb5e)&&(mkdirSync(_0x45bb5e,{'recursive':!![]}),_0x2d254f++):!existsSync(_0x45bb5e)&&(writeFileSync(_0x45bb5e,'',_0x54fdfc(0x8f)),_0x2d254f++);}if(_0xb1c6e6?.[_0x54fdfc(0x9b)]){const _0x16704d=_0xb1c6e6[_0x54fdfc(0xa9)]||_0x488cb8;for(const _0x18873b of _0xb1c6e6[_0x54fdfc(0x9b)]){const _0x209550=join(_0x46b8ac,_0x18873b[_0x54fdfc(0xa5)]);await createFileFromTemplate(_0x18873b,_0x209550,_0x16704d,_0x3696e7,_0x5b02f1,_0x3d192f),_0x2d254f++;}}return _0x2d254f;}export async function createFileFromTemplate(_0xd78de5,_0xf87701,_0x28c63e,_0x27ec15,_0x56dfd2,_0x796b8f){const _0x527bf4=a69_0x3127,_0x1549f3=dirname(_0xf87701);!existsSync(_0x1549f3)&&mkdirSync(_0x1549f3,{'recursive':!![]});const _0x503895=_0xd78de5['template']==='SKILL.md.tpl';if(existsSync(_0xf87701)&&!_0x503895)return;if(_0xd78de5[_0x527bf4(0x91)]){const _0x272206=join(_0x27ec15,_0xd78de5[_0x527bf4(0x91)]);if(existsSync(_0x272206)){let _0x2e2a36=readFileSync(_0x272206,_0x527bf4(0x8f));_0x2e2a36=_0x2e2a36['replace'](/\{\{IDE_NAME\}\}/g,_0x28c63e);_0x56dfd2&&_0x503895&&(_0x2e2a36=insertGuidesSection(_0x2e2a36,_0x56dfd2,_0x796b8f),_0x2e2a36=appendExtendContents(_0x2e2a36,_0x56dfd2,_0x796b8f));writeFileSync(_0xf87701,_0x2e2a36,_0x527bf4(0x8f));return;}if(_0x56dfd2&&_0x503895)try{writeSkillFile(_0x56dfd2,_0xf87701,_0x28c63e,_0x796b8f);return;}catch{}}writeFileSync(_0xf87701,'',_0x527bf4(0x8f));}function insertGuidesSection(_0x167e2f,_0x35d970,_0x31a288){const _0x31e186=a69_0x3127,_0x5ad7d2=_0x31e186(0xa3),_0x4c88d4=_0x167e2f['indexOf'](_0x5ad7d2);if(_0x4c88d4===-0x1)return _0x167e2f;const _0x2cf774=[],_0x6e4c3c=Object[_0x31e186(0xa2)](_0x35d970[_0x31e186(0xa4)])[_0x31e186(0x9f)]();for(const _0x1c7e45 of _0x6e4c3c){const _0x1c2dda=_0x35d970['guides'][_0x1c7e45];if(!_0x1c2dda)continue;if(/^0[1-6]-/['test'](_0x1c7e45))continue;if(_0x1c2dda[_0x31e186(0xa7)]&&_0x1c2dda[_0x31e186(0xa7)][_0x31e186(0x8e)]>0x0){const _0x36c60a=_0x1c2dda[_0x31e186(0xa7)][_0x31e186(0x97)](_0x428dee=>_0x31a288?.['includes'](_0x428dee));if(!_0x36c60a)continue;}const _0x4ece2a=_0x1c2dda['path'][_0x31e186(0xa1)](/^\.lovrabet\/skill\/\.shared\/guides\//,'');_0x2cf774[_0x31e186(0x90)](_0x31e186(0x92)+_0x4ece2a+_0x31e186(0x93)+_0x1c2dda[_0x31e186(0xa0)]+'\x20|');}if(_0x2cf774[_0x31e186(0x8e)]===0x0)return _0x167e2f[_0x31e186(0xa1)](_0x5ad7d2,_0x31e186(0xa3));const _0x59e61b=_0x2cf774[_0x31e186(0x98)]('\x0a');return _0x167e2f[_0x31e186(0xa1)](_0x5ad7d2,_0x59e61b+'\x0a<!--\x20GUIDES_APPEND\x20-->');}
@@ -1 +1 @@
1
- function a66_0x1b05(){const _0x278c4d=['39263859qxBcYs','2eqmcTT','6450104ubnvlk','gray','8446494NfbDRY','white','cyan','899210pxfiwc','description','has','7588938nmscdk','2284aloopT','map','↑/↓:\x20移动光标\x20空格:\x20切换选中\x20a:\x20全选\x20i/r:\x20反选\x20q:\x20退出\x20Enter:\x20确认','name','red','column','5589890LYXlCK','[✓]','723FPHsTX','key'];a66_0x1b05=function(){return _0x278c4d;};return a66_0x1b05();}function a66_0x5d55(_0x184fb8,_0x3deeae){_0x184fb8=_0x184fb8-0x195;const _0x1b0523=a66_0x1b05();let _0x5d55a6=_0x1b0523[_0x184fb8];return _0x5d55a6;}(function(_0x177e55,_0x4a99b4){const _0x53bb5d=a66_0x5d55,_0x173153=_0x177e55();while(!![]){try{const _0x18792b=parseInt(_0x53bb5d(0x195))/0x1*(parseInt(_0x53bb5d(0x19b))/0x2)+parseInt(_0x53bb5d(0x1a7))/0x3*(parseInt(_0x53bb5d(0x19f))/0x4)+-parseInt(_0x53bb5d(0x1a5))/0x5+-parseInt(_0x53bb5d(0x198))/0x6+-parseInt(_0x53bb5d(0x19e))/0x7+-parseInt(_0x53bb5d(0x196))/0x8+parseInt(_0x53bb5d(0x1a9))/0x9;if(_0x18792b===_0x4a99b4)break;else _0x173153['push'](_0x173153['shift']());}catch(_0x21732){_0x173153['push'](_0x173153['shift']());}}}(a66_0x1b05,0xf0134));import{jsxs as a66_0x31266c,jsx as a66_0x456131}from'react/jsx-runtime';import{Text,Box}from'ink';export function IDESelector({ideList:_0x481d19,title:_0x19a05b,selection:_0x183e1c}){const _0x29a102=a66_0x5d55,{selectedIndexes:_0x488428,highlightIndex:_0x2bb0bb,errorMsg:_0x4fe104}=_0x183e1c;return a66_0x31266c(Box,{'flexDirection':'column','marginTop':0x1,'children':[a66_0x456131(Box,{'children':a66_0x31266c(Text,{'color':_0x29a102(0x19a),'children':['*\x20',_0x19a05b]})}),_0x4fe104&&a66_0x456131(Box,{'marginTop':0x1,'children':a66_0x31266c(Text,{'color':_0x29a102(0x1a3),'children':['✗\x20',_0x4fe104]})}),a66_0x31266c(Box,{'marginTop':0x1,'flexDirection':_0x29a102(0x1a4),'children':[a66_0x456131(Text,{'bold':!![],'children':'*\x20请选择要配置的\x20IDE:'}),_0x481d19[_0x29a102(0x1a0)]((_0x934097,_0x31af1f)=>{const _0x495ce8=_0x29a102,_0x1926da=_0x2bb0bb===_0x31af1f,_0x289350=_0x488428[_0x495ce8(0x19d)](_0x31af1f);return a66_0x456131(Box,{'children':a66_0x31266c(Text,{'backgroundColor':_0x1926da?'blue':undefined,'color':_0x1926da?'white':undefined,'children':['\x20\x20',_0x289350?_0x495ce8(0x1a6):'[\x20]','\x20',_0x934097[_0x495ce8(0x1a2)],'\x20',a66_0x31266c(Text,{'color':_0x1926da?_0x495ce8(0x199):'gray','dimColor':!_0x1926da,'children':['-\x20',_0x934097[_0x495ce8(0x19c)]]})]})},_0x934097[_0x495ce8(0x1a8)]);}),a66_0x456131(Box,{'marginTop':0x1,'children':a66_0x31266c(Text,{'color':_0x29a102(0x197),'children':['\x20',_0x29a102(0x1a1)]})})]})]});}export{useIDESelection}from'./useIDESelection.js';
1
+ (function(_0x5bb3,_0x3e4266){const _0x459e94=a71_0x422e,_0x4b3e4e=_0x5bb3();while(!![]){try{const _0x145208=-parseInt(_0x459e94(0x1a5))/0x1+-parseInt(_0x459e94(0x1a8))/0x2*(parseInt(_0x459e94(0x19b))/0x3)+parseInt(_0x459e94(0x1a1))/0x4*(parseInt(_0x459e94(0x1a4))/0x5)+parseInt(_0x459e94(0x19f))/0x6*(parseInt(_0x459e94(0x19e))/0x7)+-parseInt(_0x459e94(0x1a6))/0x8*(parseInt(_0x459e94(0x1a0))/0x9)+parseInt(_0x459e94(0x1aa))/0xa+parseInt(_0x459e94(0x19d))/0xb*(parseInt(_0x459e94(0x196))/0xc);if(_0x145208===_0x3e4266)break;else _0x4b3e4e['push'](_0x4b3e4e['shift']());}catch(_0x302d30){_0x4b3e4e['push'](_0x4b3e4e['shift']());}}}(a71_0x17d4,0x80452));function a71_0x422e(_0x5b66ec,_0x22e597){_0x5b66ec=_0x5b66ec-0x194;const _0x17d476=a71_0x17d4();let _0x422e64=_0x17d476[_0x5b66ec];return _0x422e64;}import{jsxs as a71_0x119afc,jsx as a71_0x55780e}from'react/jsx-runtime';import{Text,Box}from'ink';function a71_0x17d4(){const _0x1be828=['column','[✓]','red','ui.ideSelector.hotkeys','864192qaemid','name','gray','white','has','33CzbaHa','ui.ideSelector.title','22mLPwqc','13118THEPNg','3174aGMLoc','45BBeluH','4pviLoe','[\x20]','description','3035735zADHpO','461077GyMEDO','1157960itUyMd','blue','181282jgbEGM','cyan','9647220dAccdL'];a71_0x17d4=function(){return _0x1be828;};return a71_0x17d4();}import{useI18n}from'../i18n/hooks.js';export function IDESelector({ideList:_0x378a11,title:_0x1d2096,selection:_0x247f1d}){const _0x51ceeb=a71_0x422e,{t:_0x30ebf9}=useI18n(),{selectedIndexes:_0x1d3860,highlightIndex:_0x2ea2da,errorMsg:_0x26b069}=_0x247f1d;return a71_0x119afc(Box,{'flexDirection':_0x51ceeb(0x1ab),'marginTop':0x1,'children':[a71_0x55780e(Box,{'children':a71_0x119afc(Text,{'color':_0x51ceeb(0x1a9),'children':['*\x20',_0x1d2096]})}),_0x26b069&&a71_0x55780e(Box,{'marginTop':0x1,'children':a71_0x119afc(Text,{'color':_0x51ceeb(0x194),'children':['✗\x20',_0x26b069]})}),a71_0x119afc(Box,{'marginTop':0x1,'flexDirection':_0x51ceeb(0x1ab),'children':[a71_0x119afc(Text,{'bold':!![],'children':['*\x20',_0x30ebf9(_0x51ceeb(0x19c))]}),_0x378a11['map']((_0x4caf54,_0x2649eb)=>{const _0xff9ae=_0x51ceeb,_0x35d66f=_0x2ea2da===_0x2649eb,_0x2ab22f=_0x1d3860[_0xff9ae(0x19a)](_0x2649eb);return a71_0x55780e(Box,{'children':a71_0x119afc(Text,{'backgroundColor':_0x35d66f?_0xff9ae(0x1a7):undefined,'color':_0x35d66f?_0xff9ae(0x199):undefined,'children':['\x20\x20',_0x2ab22f?_0xff9ae(0x1ac):_0xff9ae(0x1a2),'\x20',_0x4caf54[_0xff9ae(0x197)],'\x20',a71_0x119afc(Text,{'color':_0x35d66f?'white':_0xff9ae(0x198),'dimColor':!_0x35d66f,'children':['-\x20',_0x4caf54[_0xff9ae(0x1a3)]]})]})},_0x4caf54['key']);}),a71_0x55780e(Box,{'marginTop':0x1,'children':a71_0x119afc(Text,{'color':_0x51ceeb(0x198),'children':['\x20',_0x30ebf9(_0x51ceeb(0x195))]})})]})]});}export{useIDESelection}from'./useIDESelection.js';
@@ -1 +1 @@
1
- (function(_0x105bc0,_0x5e20ff){const _0x383317=a67_0xd5e3,_0x1d4368=_0x105bc0();while(!![]){try{const _0x38dfa1=-parseInt(_0x383317(0x1ea))/0x1+-parseInt(_0x383317(0x1da))/0x2+-parseInt(_0x383317(0x1e1))/0x3*(-parseInt(_0x383317(0x1e4))/0x4)+-parseInt(_0x383317(0x1dd))/0x5+-parseInt(_0x383317(0x1d8))/0x6+-parseInt(_0x383317(0x1db))/0x7*(-parseInt(_0x383317(0x1e9))/0x8)+-parseInt(_0x383317(0x1e8))/0x9*(-parseInt(_0x383317(0x1d9))/0xa);if(_0x38dfa1===_0x5e20ff)break;else _0x1d4368['push'](_0x1d4368['shift']());}catch(_0xf774b9){_0x1d4368['push'](_0x1d4368['shift']());}}}(a67_0x52d3,0x8914d));import{useState,useCallback}from'react';function a67_0xd5e3(_0x2a5797,_0x26f37b){_0x2a5797=_0x2a5797-0x1d8;const _0x52d3aa=a67_0x52d3();let _0xd5e31a=_0x52d3aa[_0x2a5797];return _0xd5e31a;}function a67_0x52d3(){const _0x272287=['delete','3534402lgDcvV','73420BCUMRI','2177512JBdLDs','153839gsKNFq','size','4347895mQurNF','key','from','add','17319xtFxmg','length','upArrow','460CkhbXO','has','findIndex','map','3249oyDhLB','8FuLAxR','227447ugcNDH','filter'];a67_0x52d3=function(){return _0x272287;};return a67_0x52d3();}export function useIDESelection({ideList:_0x3f2fde,preselectedIDEs:preselectedIDEs=[],multiSelect:multiSelect=!![]}){const _0x5a5b8b=a67_0xd5e3,[_0x522049,_0x1d5a91]=useState(new Set(preselectedIDEs[_0x5a5b8b(0x1e7)](_0x26942e=>_0x3f2fde[_0x5a5b8b(0x1e6)](_0x1d8a7c=>_0x1d8a7c[_0x5a5b8b(0x1de)]===_0x26942e))[_0x5a5b8b(0x1eb)](_0x3e97ef=>_0x3e97ef>=0x0))),[_0x27cf4f,_0x3b99db]=useState(0x0),[_0x100374,_0x429078]=useState(''),_0x3a5452=useCallback(()=>{const _0x25ebf8=_0x5a5b8b;_0x3b99db(_0x4083e1=>_0x4083e1>0x0?_0x4083e1-0x1:_0x3f2fde[_0x25ebf8(0x1e2)]-0x1);},[_0x3f2fde[_0x5a5b8b(0x1e2)]]),_0x490fe6=useCallback(()=>{const _0xd99415=_0x5a5b8b;_0x3b99db(_0x469e3a=>_0x469e3a<_0x3f2fde[_0xd99415(0x1e2)]-0x1?_0x469e3a+0x1:0x0);},[_0x3f2fde['length']]),_0x5db1e2=useCallback(()=>{if(!multiSelect){_0x1d5a91(new Set([_0x27cf4f]));return;}_0x1d5a91(_0x332a3a=>{const _0x9b050e=a67_0xd5e3,_0x9aac5a=new Set(_0x332a3a);return _0x9aac5a['has'](_0x27cf4f)?_0x9aac5a[_0x9b050e(0x1ec)](_0x27cf4f):_0x9aac5a[_0x9b050e(0x1e0)](_0x27cf4f),_0x9aac5a;});},[_0x27cf4f,multiSelect]),_0x838a9d=useCallback(()=>{_0x1d5a91(new Set(_0x3f2fde['map']((_0x37bb31,_0x204954)=>_0x204954)));},[_0x3f2fde]),_0x49d244=useCallback(()=>{_0x1d5a91(_0x4f1568=>{const _0xda81fe=a67_0xd5e3,_0xbb1e35=new Set();for(let _0xb4ed1=0x0;_0xb4ed1<_0x3f2fde['length'];_0xb4ed1++){!_0x4f1568[_0xda81fe(0x1e5)](_0xb4ed1)&&_0xbb1e35['add'](_0xb4ed1);}return _0xbb1e35;});},[_0x3f2fde]),_0x3453e0=useCallback(()=>{const _0x392add=_0x5a5b8b;return Array[_0x392add(0x1df)](_0x522049)[_0x392add(0x1e7)](_0x3c6ccd=>_0x3f2fde[_0x3c6ccd]?.[_0x392add(0x1de)])[_0x392add(0x1eb)](_0xfbaea8=>_0xfbaea8!==undefined);},[_0x522049,_0x3f2fde]),_0x12a22d=useCallback(()=>{const _0x2c9ff7=_0x5a5b8b;return _0x522049[_0x2c9ff7(0x1dc)]===_0x3f2fde['length'];},[_0x522049,_0x3f2fde]),_0x24bb0d=useCallback((_0x463aba,_0x1d333a)=>{const _0x11ac2f=_0x5a5b8b;if(_0x1d333a[_0x11ac2f(0x1e3)])return _0x3a5452(),!![];if(_0x1d333a['downArrow'])return _0x490fe6(),!![];if(_0x463aba==='\x20')return _0x5db1e2(),!![];if(_0x463aba==='a'||_0x463aba==='A')return _0x838a9d(),!![];if(_0x463aba==='i'||_0x463aba==='I'||_0x463aba==='r'||_0x463aba==='R')return _0x49d244(),!![];return![];},[_0x3a5452,_0x490fe6,_0x5db1e2,_0x838a9d,_0x49d244]);return{'selectedIndexes':_0x522049,'highlightIndex':_0x27cf4f,'errorMsg':_0x100374,'setErrorMsg':_0x429078,'handleKeyDown':_0x24bb0d,'getSelectedIDEs':_0x3453e0,'isAllSelected':_0x12a22d,'toggleSelection':_0x5db1e2,'selectAll':_0x838a9d,'invertSelection':_0x49d244,'moveHighlightUp':_0x3a5452,'moveHighlightDown':_0x490fe6};}
1
+ (function(_0x350e3b,_0x15e4c1){const _0x574642=a72_0x274a,_0x22b2f0=_0x350e3b();while(!![]){try{const _0x1341d5=parseInt(_0x574642(0x16d))/0x1+-parseInt(_0x574642(0x16b))/0x2+parseInt(_0x574642(0x170))/0x3+parseInt(_0x574642(0x179))/0x4*(parseInt(_0x574642(0x16e))/0x5)+parseInt(_0x574642(0x16f))/0x6*(-parseInt(_0x574642(0x16a))/0x7)+-parseInt(_0x574642(0x17d))/0x8*(-parseInt(_0x574642(0x174))/0x9)+-parseInt(_0x574642(0x177))/0xa*(parseInt(_0x574642(0x175))/0xb);if(_0x1341d5===_0x15e4c1)break;else _0x22b2f0['push'](_0x22b2f0['shift']());}catch(_0x3815d6){_0x22b2f0['push'](_0x22b2f0['shift']());}}}(a72_0x30af,0x3962a));function a72_0x274a(_0x9872ac,_0x3a7582){_0x9872ac=_0x9872ac-0x16a;const _0x30af4b=a72_0x30af();let _0x274a34=_0x30af4b[_0x9872ac];return _0x274a34;}function a72_0x30af(){const _0x182cd9=['42XqzaRx','752892ZeQcjO','delete','length','downArrow','9HEiqBb','97130ktDHCv','map','590AcZdRA','key','148MzfaNe','filter','findIndex','from','3743848ghTgwe','35196mrAUnD','505914eXmaDO','has','155620GEdvhf','22920VOIiqF'];a72_0x30af=function(){return _0x182cd9;};return a72_0x30af();}import{useState,useCallback}from'react';export function useIDESelection({ideList:_0x4a7c8c,preselectedIDEs:preselectedIDEs=[],multiSelect:multiSelect=!![]}){const _0xbce404=a72_0x274a,[_0x13e887,_0x516aa7]=useState(new Set(preselectedIDEs[_0xbce404(0x176)](_0x3daeb3=>_0x4a7c8c[_0xbce404(0x17b)](_0x164d1d=>_0x164d1d[_0xbce404(0x178)]===_0x3daeb3))[_0xbce404(0x17a)](_0x324200=>_0x324200>=0x0))),[_0x576b88,_0x253568]=useState(0x0),[_0x26e112,_0x560027]=useState(''),_0x5115af=useCallback(()=>{const _0x1d8b26=_0xbce404;_0x253568(_0x4fb5ea=>_0x4fb5ea>0x0?_0x4fb5ea-0x1:_0x4a7c8c[_0x1d8b26(0x172)]-0x1);},[_0x4a7c8c[_0xbce404(0x172)]]),_0x1396c6=useCallback(()=>{const _0x97b1aa=_0xbce404;_0x253568(_0x14d1c7=>_0x14d1c7<_0x4a7c8c[_0x97b1aa(0x172)]-0x1?_0x14d1c7+0x1:0x0);},[_0x4a7c8c['length']]),_0x3a214d=useCallback(()=>{if(!multiSelect){_0x516aa7(new Set([_0x576b88]));return;}_0x516aa7(_0x1b7785=>{const _0x4d2f2b=a72_0x274a,_0x1174a5=new Set(_0x1b7785);return _0x1174a5['has'](_0x576b88)?_0x1174a5[_0x4d2f2b(0x171)](_0x576b88):_0x1174a5['add'](_0x576b88),_0x1174a5;});},[_0x576b88,multiSelect]),_0x1c6cb7=useCallback(()=>{const _0x2b1394=_0xbce404;_0x516aa7(new Set(_0x4a7c8c[_0x2b1394(0x176)]((_0x2a6046,_0x527c10)=>_0x527c10)));},[_0x4a7c8c]),_0x1e0581=useCallback(()=>{_0x516aa7(_0x5240c4=>{const _0x2e2dc7=a72_0x274a,_0x4b9a6e=new Set();for(let _0x495c1a=0x0;_0x495c1a<_0x4a7c8c[_0x2e2dc7(0x172)];_0x495c1a++){!_0x5240c4[_0x2e2dc7(0x16c)](_0x495c1a)&&_0x4b9a6e['add'](_0x495c1a);}return _0x4b9a6e;});},[_0x4a7c8c]),_0x2590df=useCallback(()=>{const _0x2b0994=_0xbce404;return Array[_0x2b0994(0x17c)](_0x13e887)[_0x2b0994(0x176)](_0x293075=>_0x4a7c8c[_0x293075]?.['key'])[_0x2b0994(0x17a)](_0x52f800=>_0x52f800!==undefined);},[_0x13e887,_0x4a7c8c]),_0x5033d4=useCallback(()=>{return _0x13e887['size']===_0x4a7c8c['length'];},[_0x13e887,_0x4a7c8c]),_0x12297c=useCallback((_0x20b890,_0x3c165a)=>{const _0x11837c=_0xbce404;if(_0x3c165a['upArrow'])return _0x5115af(),!![];if(_0x3c165a[_0x11837c(0x173)])return _0x1396c6(),!![];if(_0x20b890==='\x20')return _0x3a214d(),!![];if(_0x20b890==='a'||_0x20b890==='A')return _0x1c6cb7(),!![];if(_0x20b890==='i'||_0x20b890==='I'||_0x20b890==='r'||_0x20b890==='R')return _0x1e0581(),!![];return![];},[_0x5115af,_0x1396c6,_0x3a214d,_0x1c6cb7,_0x1e0581]);return{'selectedIndexes':_0x13e887,'highlightIndex':_0x576b88,'errorMsg':_0x26e112,'setErrorMsg':_0x560027,'handleKeyDown':_0x12297c,'getSelectedIDEs':_0x2590df,'isAllSelected':_0x5033d4,'toggleSelection':_0x3a214d,'selectAll':_0x1c6cb7,'invertSelection':_0x1e0581,'moveHighlightUp':_0x5115af,'moveHighlightDown':_0x1396c6};}
@@ -1 +1 @@
1
- const a68_0x579a03=a68_0x1601;function a68_0x1601(_0x493206,_0x207cd3){_0x493206=_0x493206-0xeb;const _0xe2c9c7=a68_0xe2c9();let _0x16015c=_0xe2c9c7[_0x493206];return _0x16015c;}(function(_0x33838e,_0x92b993){const _0x6f8c5b=a68_0x1601,_0x2ac588=_0x33838e();while(!![]){try{const _0x53852f=-parseInt(_0x6f8c5b(0x11e))/0x1*(-parseInt(_0x6f8c5b(0x10f))/0x2)+parseInt(_0x6f8c5b(0xec))/0x3*(-parseInt(_0x6f8c5b(0x116))/0x4)+-parseInt(_0x6f8c5b(0x118))/0x5*(parseInt(_0x6f8c5b(0x102))/0x6)+parseInt(_0x6f8c5b(0x105))/0x7+-parseInt(_0x6f8c5b(0xfb))/0x8+-parseInt(_0x6f8c5b(0x114))/0x9*(parseInt(_0x6f8c5b(0xf4))/0xa)+parseInt(_0x6f8c5b(0x10c))/0xb;if(_0x53852f===_0x92b993)break;else _0x2ac588['push'](_0x2ac588['shift']());}catch(_0x1ec696){_0x2ac588['push'](_0x2ac588['shift']());}}}(a68_0xe2c9,0xbee5b));export const CORE_IDE_CONFIGS={'cursor':{'name':a68_0x579a03(0x10e),'description':a68_0x579a03(0x100),'folders':[a68_0x579a03(0x115),a68_0x579a03(0x11d)],'files':[{'type':a68_0x579a03(0x104),'path':a68_0x579a03(0xf8),'template':a68_0x579a03(0x11b)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a68_0x579a03(0x106)],'files':[{'type':'file','path':a68_0x579a03(0xf6),'template':a68_0x579a03(0x11b)}]},'claude':{'name':'Claude\x20Code','description':a68_0x579a03(0xee),'folders':[a68_0x579a03(0xfc)],'files':[{'type':'file','path':a68_0x579a03(0xed),'template':a68_0x579a03(0x11b)}]},'cline':{'name':'Cline','description':a68_0x579a03(0xff),'folders':[a68_0x579a03(0x108)],'files':[{'type':a68_0x579a03(0x104),'path':'.cline/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codex':{'name':'Codex','description':a68_0x579a03(0xef),'folders':[a68_0x579a03(0x10a)],'files':[{'type':a68_0x579a03(0x104),'path':a68_0x579a03(0xf1),'template':a68_0x579a03(0x11b)}]},'opencode':{'name':a68_0x579a03(0x117),'description':a68_0x579a03(0x110),'folders':[a68_0x579a03(0x10b)],'files':[{'type':'file','path':a68_0x579a03(0xf3),'template':'SKILL.md.tpl'}]},'qoder':{'name':'Qoder','description':a68_0x579a03(0xf5),'folders':[a68_0x579a03(0x120)],'files':[{'type':a68_0x579a03(0x104),'path':a68_0x579a03(0x113),'template':a68_0x579a03(0x11b)},{'type':'file','path':a68_0x579a03(0x111),'template':a68_0x579a03(0x11b)}]},'codebuddy':{'name':a68_0x579a03(0xeb),'description':a68_0x579a03(0x109),'folders':[a68_0x579a03(0xfe)],'files':[{'type':'file','path':a68_0x579a03(0xf0),'template':'SKILL.md.tpl'}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':[a68_0x579a03(0x121)],'files':[{'type':a68_0x579a03(0x104),'path':a68_0x579a03(0x11c),'template':a68_0x579a03(0x11b)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a68_0x579a03(0x119),'description':'通用模板\x20-\x20兜底方案','folders':['.agent'],'files':[{'type':a68_0x579a03(0x104),'path':a68_0x579a03(0xfd),'template':a68_0x579a03(0x11b)}]},'antigravity':{'name':a68_0x579a03(0x10d),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':'file','path':a68_0x579a03(0xfd),'template':a68_0x579a03(0x11b)}]}};export const CORE_IDE_LIST=[a68_0x579a03(0x11f),a68_0x579a03(0xf9),a68_0x579a03(0xf2),a68_0x579a03(0x11a),a68_0x579a03(0xfa),'opencode',a68_0x579a03(0xf7),a68_0x579a03(0x112),a68_0x579a03(0x107)];function a68_0xe2c9(){const _0x8bc436=['Cline\x20IDE','Cursor\x20IDE','antigravity','1803342NPbVuK','agent','file','1736987hHfNgr','.windsurf','windsurf','.cline','CodeBuddy\x20IDE','.codex','.opencode','43864073DiIpkp','Antigravity','Cursor','314pXwWdI','OpenCode\x20IDE','.qoder/skills/lovrabet/SKILL.md','trae','.qoder/rules/lovrabet.md','9fbRStC','.cursorrules','906172vklwGS','OpenCode','10xQFTIO','其他\x20(通用模板)','codex','SKILL.md.tpl','.trae/skills/lovrabet/SKILL.md','.cursor','2597rYlqgU','claude','.qoder','.trae','CodeBuddy','15wqLCyA','.claude/skills/lovrabet/SKILL.md','Claude\x20Code','Codex\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','codebuddy','.opencode/skills/lovrabet/SKILL.md','14039390lIkLhS','Qoder\x20IDE','.windsurf/workflows/lovrabet.md','qoder','.cursor/skills/lovrabet.md','cline','cursor','5790640MRcpto','.claude','.agent/skills/lovrabet/SKILL.md','.codebuddy'];a68_0xe2c9=function(){return _0x8bc436;};return a68_0xe2c9();}export const IDE_LIST=[a68_0x579a03(0x101),a68_0x579a03(0x11f),a68_0x579a03(0xf9),a68_0x579a03(0xf2),a68_0x579a03(0x11a),'cursor','opencode',a68_0x579a03(0xf7),a68_0x579a03(0x112),a68_0x579a03(0x107),a68_0x579a03(0x103)];export const ALL_CORE_IDES=['cursor',a68_0x579a03(0x107),a68_0x579a03(0x11f),a68_0x579a03(0xf9),a68_0x579a03(0x11a),'opencode','qoder','codebuddy','trae'];export const MCP_IDES=new Set([a68_0x579a03(0xfa),a68_0x579a03(0x11f)]);
1
+ function a73_0x17d7(_0x5064fb,_0x264b6b){_0x5064fb=_0x5064fb-0x10c;const _0x1a8e6b=a73_0x1a8e();let _0x17d796=_0x1a8e6b[_0x5064fb];return _0x17d796;}const a73_0x2f2c9c=a73_0x17d7;(function(_0x490ee8,_0x18ee7f){const _0xc3ebe=a73_0x17d7,_0xfcfd9f=_0x490ee8();while(!![]){try{const _0x21198e=parseInt(_0xc3ebe(0x129))/0x1*(parseInt(_0xc3ebe(0x134))/0x2)+parseInt(_0xc3ebe(0x118))/0x3*(parseInt(_0xc3ebe(0x12e))/0x4)+-parseInt(_0xc3ebe(0x13d))/0x5*(-parseInt(_0xc3ebe(0x123))/0x6)+parseInt(_0xc3ebe(0x126))/0x7+-parseInt(_0xc3ebe(0x114))/0x8+parseInt(_0xc3ebe(0x112))/0x9*(-parseInt(_0xc3ebe(0x13c))/0xa)+parseInt(_0xc3ebe(0x125))/0xb*(-parseInt(_0xc3ebe(0x11f))/0xc);if(_0x21198e===_0x18ee7f)break;else _0xfcfd9f['push'](_0xfcfd9f['shift']());}catch(_0x1c322c){_0xfcfd9f['push'](_0xfcfd9f['shift']());}}}(a73_0x1a8e,0x42379));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a73_0x2f2c9c(0x11c),a73_0x2f2c9c(0x13f)],'files':[{'type':'file','path':'.cursor/skills/lovrabet.md','template':a73_0x2f2c9c(0x122)}]},'windsurf':{'name':a73_0x2f2c9c(0x13e),'description':'Windsurf\x20IDE','folders':[a73_0x2f2c9c(0x117)],'files':[{'type':a73_0x2f2c9c(0x13b),'path':'.windsurf/workflows/lovrabet.md','template':a73_0x2f2c9c(0x122)}]},'claude':{'name':a73_0x2f2c9c(0x121),'description':a73_0x2f2c9c(0x121),'folders':[a73_0x2f2c9c(0x139)],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':a73_0x2f2c9c(0x122)}]},'cline':{'name':'Cline','description':a73_0x2f2c9c(0x111),'folders':[a73_0x2f2c9c(0x133)],'files':[{'type':a73_0x2f2c9c(0x13b),'path':a73_0x2f2c9c(0x12a),'template':a73_0x2f2c9c(0x122)}]},'codex':{'name':'Codex','description':'Codex\x20IDE','folders':['.codex'],'files':[{'type':a73_0x2f2c9c(0x13b),'path':a73_0x2f2c9c(0x12b),'template':a73_0x2f2c9c(0x122)}]},'opencode':{'name':a73_0x2f2c9c(0x12d),'description':a73_0x2f2c9c(0x130),'folders':[a73_0x2f2c9c(0x115)],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md','template':a73_0x2f2c9c(0x122)}]},'qoder':{'name':a73_0x2f2c9c(0x12c),'description':a73_0x2f2c9c(0x128),'folders':['.qoder'],'files':[{'type':a73_0x2f2c9c(0x13b),'path':a73_0x2f2c9c(0x11a),'template':'SKILL.md.tpl'},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a73_0x2f2c9c(0x122)}]},'codebuddy':{'name':'CodeBuddy','description':a73_0x2f2c9c(0x138),'folders':[a73_0x2f2c9c(0x135)],'files':[{'type':'file','path':a73_0x2f2c9c(0x12f),'template':a73_0x2f2c9c(0x122)}]},'trae':{'name':a73_0x2f2c9c(0x131),'description':a73_0x2f2c9c(0x11d),'folders':[a73_0x2f2c9c(0x137)],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md','template':a73_0x2f2c9c(0x122)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a73_0x2f2c9c(0x120),'description':a73_0x2f2c9c(0x11b),'folders':[a73_0x2f2c9c(0x11e)],'files':[{'type':a73_0x2f2c9c(0x13b),'path':a73_0x2f2c9c(0x132),'template':'SKILL.md.tpl'}]},'antigravity':{'name':'Antigravity','description':a73_0x2f2c9c(0x10e),'folders':[a73_0x2f2c9c(0x11e)],'files':[{'type':a73_0x2f2c9c(0x13b),'path':a73_0x2f2c9c(0x132),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a73_0x2f2c9c(0x113),'cline',a73_0x2f2c9c(0x10c),a73_0x2f2c9c(0x116),a73_0x2f2c9c(0x10d),a73_0x2f2c9c(0x127),a73_0x2f2c9c(0x119),a73_0x2f2c9c(0x110),a73_0x2f2c9c(0x13a)];export const IDE_LIST=[a73_0x2f2c9c(0x136),a73_0x2f2c9c(0x113),a73_0x2f2c9c(0x10f),a73_0x2f2c9c(0x10c),'codex',a73_0x2f2c9c(0x10d),a73_0x2f2c9c(0x127),a73_0x2f2c9c(0x119),a73_0x2f2c9c(0x110),a73_0x2f2c9c(0x13a),a73_0x2f2c9c(0x124)];export const ALL_CORE_IDES=[a73_0x2f2c9c(0x10d),a73_0x2f2c9c(0x13a),'claude',a73_0x2f2c9c(0x10f),a73_0x2f2c9c(0x116),'opencode',a73_0x2f2c9c(0x119),'codebuddy',a73_0x2f2c9c(0x110)];function a73_0x1a8e(){const _0x2b3caa=['Antigravity\x20IDE','cline','trae','Cline\x20IDE','1827qENQPZ','claude','2153488tJVTkV','.opencode','codex','.windsurf','6cBzErH','qoder','.qoder/rules/lovrabet.md','通用模板\x20-\x20兜底方案','.cursorrules','Trae\x20IDE','.agent','36hgdRey','其他\x20(通用模板)','Claude\x20Code','SKILL.md.tpl','319704nOzSVL','agent','1623127dnrNfv','3631600XkAfBf','opencode','Qoder\x20IDE','1uJrgyJ','.cline/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','Qoder','OpenCode','603656HweIhp','.codebuddy/skills/lovrabet/SKILL.md','OpenCode\x20IDE','Trae','.agent/skills/lovrabet/SKILL.md','.cline','114446iEcKOu','.codebuddy','antigravity','.trae','CodeBuddy\x20IDE','.claude','windsurf','file','13190ubbHdR','35dyPNnm','Windsurf','.cursor','codebuddy','cursor'];a73_0x1a8e=function(){return _0x2b3caa;};return a73_0x1a8e();}export const MCP_IDES=new Set([a73_0x2f2c9c(0x10d),a73_0x2f2c9c(0x113)]);
@@ -1 +1 @@
1
- (function(_0x3cf592,_0x5d0b37){const _0x27adbc=a69_0x4e73,_0x21d085=_0x3cf592();while(!![]){try{const _0x572b51=parseInt(_0x27adbc(0x1c8))/0x1+-parseInt(_0x27adbc(0x1c3))/0x2+-parseInt(_0x27adbc(0x1cf))/0x3*(parseInt(_0x27adbc(0x1d0))/0x4)+parseInt(_0x27adbc(0x1cc))/0x5*(parseInt(_0x27adbc(0x1ca))/0x6)+parseInt(_0x27adbc(0x1c6))/0x7+parseInt(_0x27adbc(0x1ce))/0x8+-parseInt(_0x27adbc(0x1cd))/0x9;if(_0x572b51===_0x5d0b37)break;else _0x21d085['push'](_0x21d085['shift']());}catch(_0x23436b){_0x21d085['push'](_0x21d085['shift']());}}}(a69_0x3928,0x5e9e2));import{getTemplateBaseUrl}from'./config.js';function a69_0x3928(){const _0x4fe8bc=['stableVersion','97320NqHCjj','json','126SillxG','application/json','104565yyIqer','5474682AKXXyy','3653872owQycr','683727bfiogh','4MdubJh','sdk','now','278376zOwjjI','/config.json','node','2588054AXbMdO'];a69_0x3928=function(){return _0x4fe8bc;};return a69_0x3928();}function a69_0x4e73(_0x461afe,_0x25635a){_0x461afe=_0x461afe-0x1c2;const _0x392860=a69_0x3928();let _0x4e73ca=_0x392860[_0x461afe];return _0x4e73ca;}export async function fetchCdnConfig(){const _0x3f6588=a69_0x4e73;try{const _0x37ad44=getTemplateBaseUrl(),_0x1cbfdc=_0x37ad44+_0x3f6588(0x1c4),_0x2b576e=await fetch(_0x1cbfdc,{'headers':{'Accept':_0x3f6588(0x1cb)}});if(!_0x2b576e['ok'])return null;const _0x596e95=await _0x2b576e[_0x3f6588(0x1c9)]();if(!_0x596e95['cli']?.[_0x3f6588(0x1c7)]||!_0x596e95[_0x3f6588(0x1d1)]?.[_0x3f6588(0x1c5)]?.[_0x3f6588(0x1c7)])return null;return _0x596e95;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x26845e=a69_0x4e73,_0x2c674a=Date[_0x26845e(0x1c2)]();if(cachedConfig&&_0x2c674a-cacheTime<CACHE_TTL)return cachedConfig;const _0x52b6eb=await fetchCdnConfig();return _0x52b6eb&&(cachedConfig=_0x52b6eb,cacheTime=_0x2c674a),_0x52b6eb;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0x1e65a0,_0x28a795){const _0x8b7961=a74_0x903f,_0x2de9f2=_0x1e65a0();while(!![]){try{const _0x4184b1=-parseInt(_0x8b7961(0x13e))/0x1+-parseInt(_0x8b7961(0x13b))/0x2+-parseInt(_0x8b7961(0x139))/0x3+parseInt(_0x8b7961(0x13c))/0x4*(parseInt(_0x8b7961(0x140))/0x5)+parseInt(_0x8b7961(0x13d))/0x6+parseInt(_0x8b7961(0x145))/0x7+-parseInt(_0x8b7961(0x143))/0x8*(-parseInt(_0x8b7961(0x141))/0x9);if(_0x4184b1===_0x28a795)break;else _0x2de9f2['push'](_0x2de9f2['shift']());}catch(_0x27758b){_0x2de9f2['push'](_0x2de9f2['shift']());}}}(a74_0x2db3,0x753f8));import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x39451a=a74_0x903f;try{const _0x3972fc=getTemplateBaseUrl(),_0x4fc9aa=_0x3972fc+_0x39451a(0x147),_0x29c62b=await fetch(_0x4fc9aa,{'headers':{'Accept':_0x39451a(0x146)}});if(!_0x29c62b['ok'])return null;const _0x27083a=await _0x29c62b[_0x39451a(0x144)]();if(!_0x27083a[_0x39451a(0x142)]?.['stableVersion']||!_0x27083a['sdk']?.[_0x39451a(0x13a)]?.[_0x39451a(0x13f)])return null;return _0x27083a;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x3b664=Date['now']();if(cachedConfig&&_0x3b664-cacheTime<CACHE_TTL)return cachedConfig;const _0x3e56a2=await fetchCdnConfig();return _0x3e56a2&&(cachedConfig=_0x3e56a2,cacheTime=_0x3b664),_0x3e56a2;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}function a74_0x903f(_0x2a838b,_0x2f58c3){_0x2a838b=_0x2a838b-0x139;const _0x2db336=a74_0x2db3();let _0x903f23=_0x2db336[_0x2a838b];return _0x903f23;}function a74_0x2db3(){const _0x210ef5=['9WbNwcC','cli','3819176ZQbDxB','json','5853904clzzNn','application/json','/config.json','1089243cqUPBA','node','596404CUgoTe','4GeKIye','1881708fBBtsa','890081hNBqPr','stableVersion','2021625JVaqxD'];a74_0x2db3=function(){return _0x210ef5;};return a74_0x2db3();}
@@ -1 +1 @@
1
- function a70_0x500a(){const _0x1439f1=['all','4942dhYPdJ','1300250EmBIMd','2456xaCbMk','2780510hgpGPL','\x1b[1m','devDependencies','needsUpgrade','\x20\x20\x20升级命令:\x20npm\x20install\x20','1.2.0','dependencies','9XTyHqR','readFileSync','existsSync','node','sdk','package.json','join','@lovrabet/sdk','log','latest','utf8','version','24KvujNJ','\x20\x20\x20当前版本:\x20','node_modules','some','17094913vUftEF','packageName','\x1b[33m','stableVersion','coerce','912388OAxMmv','148474YKUOCw','323204urvzfG','6aQpTid','parse'];a70_0x500a=function(){return _0x1439f1;};return a70_0x500a();}const a70_0x505497=a70_0x2d4e;(function(_0x182d71,_0x3fcd35){const _0x4a369f=a70_0x2d4e,_0x51bc29=_0x182d71();while(!![]){try{const _0x193478=parseInt(_0x4a369f(0x1db))/0x1+parseInt(_0x4a369f(0x1da))/0x2*(-parseInt(_0x4a369f(0x1d0))/0x3)+-parseInt(_0x4a369f(0x1d9))/0x4+-parseInt(_0x4a369f(0x1e0))/0x5*(parseInt(_0x4a369f(0x1dc))/0x6)+parseInt(_0x4a369f(0x1df))/0x7*(-parseInt(_0x4a369f(0x1e1))/0x8)+parseInt(_0x4a369f(0x1c4))/0x9*(-parseInt(_0x4a369f(0x1e2))/0xa)+parseInt(_0x4a369f(0x1d4))/0xb;if(_0x193478===_0x3fcd35)break;else _0x51bc29['push'](_0x51bc29['shift']());}catch(_0x389a21){_0x51bc29['push'](_0x51bc29['shift']());}}}(a70_0x500a,0x495a3));import a70_0xcc05e3 from'node:fs';import a70_0x25908e from'node:path';import a70_0x552e17 from'semver';import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a70_0x505497(0x1c2);function a70_0x2d4e(_0x44e6f3,_0x4d05f0){_0x44e6f3=_0x44e6f3-0x1c1;const _0x500aad=a70_0x500a();let _0x2d4e89=_0x500aad[_0x44e6f3];return _0x2d4e89;}function isNonNumericVersion(_0x28e945){const _0x34f762=a70_0x505497,_0x474a32=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x474a32[_0x34f762(0x1d3)](_0xedc2cc=>_0xedc2cc['test'](_0x28e945));}function getInstalledVersion(_0xf1276b,_0xdca16d){const _0x1f0867=a70_0x505497;try{const _0xea60a3=a70_0x25908e[_0x1f0867(0x1ca)](_0xf1276b,_0x1f0867(0x1d2),_0xdca16d,_0x1f0867(0x1c9));if(a70_0xcc05e3['existsSync'](_0xea60a3)){const _0x3e76e3=JSON[_0x1f0867(0x1dd)](a70_0xcc05e3[_0x1f0867(0x1c5)](_0xea60a3,'utf-8'));return _0x3e76e3[_0x1f0867(0x1cf)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5caffe=a70_0x505497;try{const _0x29826f=await getCdnConfig();return _0x29826f?.[_0x5caffe(0x1c8)]?.[_0x5caffe(0x1c7)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x5e65be=a70_0x505497;try{const _0xb7892d=await getCdnConfig();return _0xb7892d?.[_0x5e65be(0x1c8)]?.[_0x5e65be(0x1c7)]?.[_0x5e65be(0x1d5)]||_0x5e65be(0x1cb);}catch{return _0x5e65be(0x1cb);}}export async function checkSdkVersion(_0x10d990){const _0x1c024a=a70_0x505497,_0x29f5b4=a70_0x25908e[_0x1c024a(0x1ca)](_0x10d990,'package.json'),[_0x46d2a1,_0x3056ba]=await Promise[_0x1c024a(0x1de)]([getSdkStableVersion(),getSdkPackageName()]),_0x5219b3=_0x46d2a1||FALLBACK_MIN_SDK_VERSION;if(!a70_0xcc05e3[_0x1c024a(0x1c6)](_0x29f5b4))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5219b3,'packageName':_0x3056ba,'stableVersion':_0x46d2a1};try{const _0x2883db=JSON[_0x1c024a(0x1dd)](a70_0xcc05e3[_0x1c024a(0x1c5)](_0x29f5b4,_0x1c024a(0x1ce))),_0x55b47c=_0x2883db[_0x1c024a(0x1c3)]||{},_0x1d53bc=_0x2883db[_0x1c024a(0x1e4)]||{},_0x1368e0=_0x55b47c[_0x3056ba]||_0x1d53bc[_0x3056ba];if(!_0x1368e0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5219b3,'packageName':_0x3056ba,'stableVersion':_0x46d2a1};let _0x5d2b52=getInstalledVersion(_0x10d990,_0x3056ba);!_0x5d2b52&&(_0x5d2b52=_0x1368e0);if(isNonNumericVersion(_0x1368e0))return{'installed':!![],'version':_0x5d2b52,'needsUpgrade':![],'minVersion':_0x5219b3,'packageName':_0x3056ba,'stableVersion':_0x46d2a1};const _0x434925=a70_0x552e17[_0x1c024a(0x1d8)](_0x5d2b52),_0x4f2e15=a70_0x552e17[_0x1c024a(0x1d8)](_0x5219b3),_0x57bb16=_0x434925&&_0x4f2e15?a70_0x552e17['lt'](_0x434925,_0x4f2e15):![];return{'installed':!![],'version':_0x5d2b52,'needsUpgrade':_0x57bb16,'minVersion':_0x5219b3,'packageName':_0x3056ba,'stableVersion':_0x46d2a1};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5219b3,'packageName':_0x3056ba,'stableVersion':_0x46d2a1};}}export function checkSdkVersionSync(_0x56dadb){const _0x1bf6ee=a70_0x505497,_0x47296b=a70_0x25908e[_0x1bf6ee(0x1ca)](_0x56dadb,_0x1bf6ee(0x1c9)),_0x5b50a0=_0x1bf6ee(0x1cb);if(!a70_0xcc05e3['existsSync'](_0x47296b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5b50a0,'stableVersion':null};try{const _0x50b471=JSON['parse'](a70_0xcc05e3[_0x1bf6ee(0x1c5)](_0x47296b,_0x1bf6ee(0x1ce))),_0x1e48e2=_0x50b471[_0x1bf6ee(0x1c3)]||{},_0x12f926=_0x50b471[_0x1bf6ee(0x1e4)]||{},_0x1facc0=_0x1e48e2[_0x5b50a0]||_0x12f926[_0x5b50a0];if(!_0x1facc0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5b50a0,'stableVersion':null};let _0x2c89ed=getInstalledVersion(_0x56dadb,_0x5b50a0);!_0x2c89ed&&(_0x2c89ed=_0x1facc0);if(isNonNumericVersion(_0x1facc0))return{'installed':!![],'version':_0x2c89ed,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5b50a0,'stableVersion':null};const _0x583bfa=a70_0x552e17[_0x1bf6ee(0x1d8)](_0x2c89ed),_0x1e018d=_0x583bfa?a70_0x552e17['lt'](_0x583bfa,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2c89ed,'needsUpgrade':_0x1e018d,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5b50a0,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5b50a0,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2d5370){const _0x28e9e1=a70_0x505497;if(!_0x2d5370[_0x28e9e1(0x1e5)])return;const _0x44bc63=_0x28e9e1(0x1d6),_0x159d24='\x1b[0m',_0x118ee5=_0x28e9e1(0x1e3),_0x59dd7b=_0x2d5370['packageName']||_0x28e9e1(0x1cb);console['log'](),console['log'](''+_0x44bc63+_0x118ee5+'↪\x20SDK\x20版本更新'+_0x159d24),console[_0x28e9e1(0x1cc)](_0x44bc63+_0x28e9e1(0x1d1)+_0x59dd7b+'@'+_0x2d5370[_0x28e9e1(0x1cf)]+_0x159d24),console['log'](_0x44bc63+'\x20\x20\x20稳定版本:\x20'+(_0x2d5370[_0x28e9e1(0x1d7)]||_0x2d5370['minVersion'])+_0x159d24),console[_0x28e9e1(0x1cc)](_0x44bc63+_0x28e9e1(0x1c1)+_0x59dd7b+'@'+(_0x2d5370['stableVersion']||_0x28e9e1(0x1cd))+_0x159d24),console[_0x28e9e1(0x1cc)]();}
1
+ const a75_0xfbf196=a75_0x4b97;(function(_0x565e6c,_0x463f7a){const _0x2fc10d=a75_0x4b97,_0x65ada8=_0x565e6c();while(!![]){try{const _0x18d402=parseInt(_0x2fc10d(0x1f9))/0x1+-parseInt(_0x2fc10d(0x1e4))/0x2*(parseInt(_0x2fc10d(0x1f1))/0x3)+parseInt(_0x2fc10d(0x1f2))/0x4+parseInt(_0x2fc10d(0x1df))/0x5+parseInt(_0x2fc10d(0x1e6))/0x6+-parseInt(_0x2fc10d(0x1d7))/0x7+-parseInt(_0x2fc10d(0x1eb))/0x8;if(_0x18d402===_0x463f7a)break;else _0x65ada8['push'](_0x65ada8['shift']());}catch(_0x256fdb){_0x65ada8['push'](_0x65ada8['shift']());}}}(a75_0x5a9f,0x9262d));import a75_0x3bcca7 from'node:fs';import a75_0xf08880 from'node:path';import a75_0x13cfd4 from'semver';import{getCdnConfig}from'./cdn-config.js';import a75_0x5ddd90 from'../i18n/index.js';const t=a75_0x5ddd90['t'][a75_0xfbf196(0x1e8)](a75_0x5ddd90),FALLBACK_MIN_SDK_VERSION=a75_0xfbf196(0x1ef);function isNonNumericVersion(_0x468d44){const _0x1f9d4e=a75_0xfbf196,_0x2a7d3a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2a7d3a[_0x1f9d4e(0x1ee)](_0x3bfd49=>_0x3bfd49[_0x1f9d4e(0x1f6)](_0x468d44));}function getInstalledVersion(_0x2db0bf,_0x337fa7){const _0x443e6c=a75_0xfbf196;try{const _0x3a3d5b=a75_0xf08880[_0x443e6c(0x1d8)](_0x2db0bf,_0x443e6c(0x1f7),_0x337fa7,_0x443e6c(0x1f4));if(a75_0x3bcca7['existsSync'](_0x3a3d5b)){const _0x16eb6c=JSON[_0x443e6c(0x1ea)](a75_0x3bcca7['readFileSync'](_0x3a3d5b,_0x443e6c(0x1f5)));return _0x16eb6c[_0x443e6c(0x1f3)]||null;}}catch{}return null;}function a75_0x4b97(_0xd4d654,_0x446117){_0xd4d654=_0xd4d654-0x1d4;const _0x5a9f5e=a75_0x5a9f();let _0x4b9790=_0x5a9f5e[_0xd4d654];return _0x4b9790;}function a75_0x5a9f(){const _0x5b8f35=['stableVersion','4448955SXaGSj','join','upgrade.sdk.current','coerce','existsSync','devDependencies','minVersion','needsUpgrade','4428485IpkJFa','@lovrabet/sdk','\x1b[0m','readFileSync','utf8','6HMLaKJ','upgrade.sdk.command','3684396TkDBKt','sdk','bind','log','parse','13381144byvRgg','dependencies','all','some','1.2.0','\x1b[33m','71601byCwoq','3230720KxmxlY','version','package.json','utf-8','test','node_modules','\x1b[1m','671963kAXJkY','upgrade.sdk.stable','latest','node'];a75_0x5a9f=function(){return _0x5b8f35;};return a75_0x5a9f();}async function getSdkStableVersion(){const _0x2e02f4=a75_0xfbf196;try{const _0xa167b3=await getCdnConfig();return _0xa167b3?.[_0x2e02f4(0x1e7)]?.[_0x2e02f4(0x1d5)]?.[_0x2e02f4(0x1d6)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3fcb80=a75_0xfbf196;try{const _0x57102b=await getCdnConfig();return _0x57102b?.[_0x3fcb80(0x1e7)]?.['node']?.['packageName']||'@lovrabet/sdk';}catch{return _0x3fcb80(0x1e0);}}export async function checkSdkVersion(_0x4eaf02){const _0x396d16=a75_0xfbf196,_0x2dcd0f=a75_0xf08880[_0x396d16(0x1d8)](_0x4eaf02,'package.json'),[_0x56e1a2,_0x408974]=await Promise[_0x396d16(0x1ed)]([getSdkStableVersion(),getSdkPackageName()]),_0x291461=_0x56e1a2||FALLBACK_MIN_SDK_VERSION;if(!a75_0x3bcca7[_0x396d16(0x1db)](_0x2dcd0f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x291461,'packageName':_0x408974,'stableVersion':_0x56e1a2};try{const _0xecb045=JSON[_0x396d16(0x1ea)](a75_0x3bcca7[_0x396d16(0x1e2)](_0x2dcd0f,_0x396d16(0x1e3))),_0x528369=_0xecb045[_0x396d16(0x1ec)]||{},_0x5afd25=_0xecb045[_0x396d16(0x1dc)]||{},_0x499385=_0x528369[_0x408974]||_0x5afd25[_0x408974];if(!_0x499385)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x291461,'packageName':_0x408974,'stableVersion':_0x56e1a2};let _0x5dbc68=getInstalledVersion(_0x4eaf02,_0x408974);!_0x5dbc68&&(_0x5dbc68=_0x499385);if(isNonNumericVersion(_0x499385))return{'installed':!![],'version':_0x5dbc68,'needsUpgrade':![],'minVersion':_0x291461,'packageName':_0x408974,'stableVersion':_0x56e1a2};const _0x371c45=a75_0x13cfd4['coerce'](_0x5dbc68),_0x23e9a7=a75_0x13cfd4['coerce'](_0x291461),_0x1bb01f=_0x371c45&&_0x23e9a7?a75_0x13cfd4['lt'](_0x371c45,_0x23e9a7):![];return{'installed':!![],'version':_0x5dbc68,'needsUpgrade':_0x1bb01f,'minVersion':_0x291461,'packageName':_0x408974,'stableVersion':_0x56e1a2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x291461,'packageName':_0x408974,'stableVersion':_0x56e1a2};}}export function checkSdkVersionSync(_0x1528cc){const _0x156177=a75_0xfbf196,_0x3499ae=a75_0xf08880['join'](_0x1528cc,_0x156177(0x1f4)),_0x5426fa='@lovrabet/sdk';if(!a75_0x3bcca7['existsSync'](_0x3499ae))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5426fa,'stableVersion':null};try{const _0x1dd20c=JSON['parse'](a75_0x3bcca7[_0x156177(0x1e2)](_0x3499ae,'utf8')),_0x222592=_0x1dd20c['dependencies']||{},_0x112349=_0x1dd20c[_0x156177(0x1dc)]||{},_0x2d8b6e=_0x222592[_0x5426fa]||_0x112349[_0x5426fa];if(!_0x2d8b6e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5426fa,'stableVersion':null};let _0x4e50b2=getInstalledVersion(_0x1528cc,_0x5426fa);!_0x4e50b2&&(_0x4e50b2=_0x2d8b6e);if(isNonNumericVersion(_0x2d8b6e))return{'installed':!![],'version':_0x4e50b2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5426fa,'stableVersion':null};const _0x442ac0=a75_0x13cfd4[_0x156177(0x1da)](_0x4e50b2),_0x427f50=_0x442ac0?a75_0x13cfd4['lt'](_0x442ac0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4e50b2,'needsUpgrade':_0x427f50,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5426fa,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5426fa,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x52b26c){const _0x5d35b4=a75_0xfbf196;if(!_0x52b26c[_0x5d35b4(0x1de)])return;const _0x4b78f7=_0x5d35b4(0x1f0),_0x142132=_0x5d35b4(0x1e1),_0x583e77=_0x5d35b4(0x1f8),_0x14ae3d=_0x52b26c['packageName']||_0x5d35b4(0x1e0),_0x3680b0=_0x52b26c[_0x5d35b4(0x1d6)]||_0x52b26c[_0x5d35b4(0x1dd)],_0x50ef09='npm\x20install\x20'+_0x14ae3d+'@'+(_0x3680b0||_0x5d35b4(0x1d4));console['log'](),console[_0x5d35b4(0x1e9)](''+_0x4b78f7+_0x583e77+t('upgrade.sdk.title')+_0x142132),console[_0x5d35b4(0x1e9)](''+_0x4b78f7+t(_0x5d35b4(0x1d9),{'package':_0x14ae3d,'version':_0x52b26c[_0x5d35b4(0x1f3)]})+_0x142132),console[_0x5d35b4(0x1e9)](''+_0x4b78f7+t(_0x5d35b4(0x1fa),{'version':_0x3680b0})+_0x142132),console[_0x5d35b4(0x1e9)](''+_0x4b78f7+t(_0x5d35b4(0x1e5),{'command':_0x50ef09})+_0x142132),console[_0x5d35b4(0x1e9)]();}
@@ -1 +1 @@
1
- (function(_0x3919dc,_0x5aaaff){const _0x427621=a71_0x24e9,_0x13afb9=_0x3919dc();while(!![]){try{const _0x1cb6e0=parseInt(_0x427621(0x14a))/0x1+parseInt(_0x427621(0x15e))/0x2*(-parseInt(_0x427621(0x15f))/0x3)+-parseInt(_0x427621(0x156))/0x4*(-parseInt(_0x427621(0x158))/0x5)+parseInt(_0x427621(0x155))/0x6*(-parseInt(_0x427621(0x14e))/0x7)+parseInt(_0x427621(0x159))/0x8+-parseInt(_0x427621(0x14f))/0x9+parseInt(_0x427621(0x15c))/0xa*(-parseInt(_0x427621(0x14b))/0xb);if(_0x1cb6e0===_0x5aaaff)break;else _0x13afb9['push'](_0x13afb9['shift']());}catch(_0x58328f){_0x13afb9['push'](_0x13afb9['shift']());}}}(a71_0x1b81,0xbd1af));function a71_0x1b81(){const _0x72d298=['710bPWdfz','1.0.0','78922rxKxhy','3FgoAqP','../..','434085wARjxO','57497CuNPpY','some','\x20\x20\x20当前\x20CLI\x20版本:\x20','6384juRwMd','2610063WOPShL','\x1b[1m','coerce','stableVersion','package.json','cli','3462MytXsZ','4XHwxxm','parse','220755sqUEjV','12185184muLXfy','currentVersion','log'];a71_0x1b81=function(){return _0x72d298;};return a71_0x1b81();}import{readFileSync}from'node:fs';function a71_0x24e9(_0x20929a,_0x33c502){_0x20929a=_0x20929a-0x149;const _0x1b8160=a71_0x1b81();let _0x24e9fc=_0x1b8160[_0x20929a];return _0x24e9fc;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a71_0x40d0c2 from'semver';import{getCdnConfig}from'./cdn-config.js';function getCurrentCliVersion(){const _0x2059e8=a71_0x24e9;try{const _0x4eecf9=fileURLToPath(import.meta.url),_0x57c1d6=resolve(dirname(_0x4eecf9),_0x2059e8(0x149)),_0x40838c=resolve(_0x57c1d6,_0x2059e8(0x153)),_0x3b3cb7=JSON[_0x2059e8(0x157)](readFileSync(_0x40838c,'utf-8'));return _0x3b3cb7['version']||_0x2059e8(0x15d);}catch{return _0x2059e8(0x15d);}}function isNonNumericVersion(_0x4fe75b){const _0x1bf9a4=a71_0x24e9,_0xdc9800=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0xdc9800[_0x1bf9a4(0x14c)](_0x428a57=>_0x428a57['test'](_0x4fe75b));}export async function checkCliVersion(){const _0x381d3c=a71_0x24e9,_0xc1622b=getCurrentCliVersion(),_0x4bf85f=await getCdnConfig(),_0x10612e=_0x4bf85f?.[_0x381d3c(0x154)]?.[_0x381d3c(0x152)]||null;let _0x392ff0=![];if(_0x10612e)try{const _0x5da40b=a71_0x40d0c2[_0x381d3c(0x151)](_0xc1622b),_0x5d77a7=a71_0x40d0c2[_0x381d3c(0x151)](_0x10612e);_0x5da40b&&_0x5d77a7&&(_0x392ff0=a71_0x40d0c2['lt'](_0x5da40b,_0x5d77a7));}catch{_0x392ff0=![];}return{'currentVersion':_0xc1622b,'stableVersion':_0x10612e,'needsUpgrade':_0x392ff0,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x3e1dcf){const _0x25ac7c=a71_0x24e9;if(!_0x3e1dcf['needsUpgrade'])return;const _0x296956='\x1b[33m',_0x2fe9da='\x1b[0m',_0x1cdea6=_0x25ac7c(0x150);console[_0x25ac7c(0x15b)](),console[_0x25ac7c(0x15b)](''+_0x296956+_0x1cdea6+'↪\x20新版本可用'+_0x2fe9da),console[_0x25ac7c(0x15b)](_0x296956+_0x25ac7c(0x14d)+_0x3e1dcf[_0x25ac7c(0x15a)]+_0x2fe9da),console[_0x25ac7c(0x15b)](_0x296956+'\x20\x20\x20稳定版本:\x20'+_0x3e1dcf['stableVersion']+_0x2fe9da),console[_0x25ac7c(0x15b)](_0x296956+'\x20\x20\x20升级命令:\x20npm\x20install\x20-g\x20@lovrabet/cli@latest'+_0x2fe9da),console[_0x25ac7c(0x15b)]();}
1
+ (function(_0x540768,_0x1a3013){const _0x1dd41e=a76_0x25d2,_0x59a401=_0x540768();while(!![]){try{const _0x5d6c29=-parseInt(_0x1dd41e(0x12c))/0x1*(-parseInt(_0x1dd41e(0x129))/0x2)+parseInt(_0x1dd41e(0x131))/0x3+-parseInt(_0x1dd41e(0x140))/0x4+parseInt(_0x1dd41e(0x130))/0x5+-parseInt(_0x1dd41e(0x12b))/0x6*(-parseInt(_0x1dd41e(0x142))/0x7)+parseInt(_0x1dd41e(0x138))/0x8*(-parseInt(_0x1dd41e(0x13b))/0x9)+-parseInt(_0x1dd41e(0x12f))/0xa;if(_0x5d6c29===_0x1a3013)break;else _0x59a401['push'](_0x59a401['shift']());}catch(_0x488e3f){_0x59a401['push'](_0x59a401['shift']());}}}(a76_0x240b,0xb7b6e));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a76_0x412a24 from'semver';import{getCdnConfig}from'./cdn-config.js';function a76_0x240b(){const _0x1ed876=['test','1515474vFpzid','\x1b[33m','upgrade.cli.command','utf-8','\x1b[0m','3181716AAlFgf','version','49qnpolq','some','cli','52XrLPbn','stableVersion','870540BzDdFY','7988Vrbtuc','1.0.0','../..','10202460AKaqXz','5031015jxcjZX','2531418uPgcwx','package.json','coerce','parse','upgrade.cli.title','upgrade.cli.current','\x1b[1m','24hPJpRI','log'];a76_0x240b=function(){return _0x1ed876;};return a76_0x240b();}import a76_0x156c0f from'../i18n/index.js';const t=a76_0x156c0f['t']['bind'](a76_0x156c0f);function getCurrentCliVersion(){const _0x348ac7=a76_0x25d2;try{const _0x383571=fileURLToPath(import.meta.url),_0x2fe086=resolve(dirname(_0x383571),_0x348ac7(0x12e)),_0x5a643b=resolve(_0x2fe086,_0x348ac7(0x132)),_0x1572a5=JSON[_0x348ac7(0x134)](readFileSync(_0x5a643b,_0x348ac7(0x13e)));return _0x1572a5[_0x348ac7(0x141)]||_0x348ac7(0x12d);}catch{return _0x348ac7(0x12d);}}function isNonNumericVersion(_0x4962dc){const _0x511624=a76_0x25d2,_0x32e936=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x32e936[_0x511624(0x143)](_0x4d531e=>_0x4d531e[_0x511624(0x13a)](_0x4962dc));}export async function checkCliVersion(){const _0x4423ab=a76_0x25d2,_0x46cd7a=getCurrentCliVersion(),_0xfaa7b3=await getCdnConfig(),_0x5c9979=_0xfaa7b3?.[_0x4423ab(0x144)]?.[_0x4423ab(0x12a)]||null;let _0x4bdc6f=![];if(_0x5c9979)try{const _0x31dd00=a76_0x412a24[_0x4423ab(0x133)](_0x46cd7a),_0x292bee=a76_0x412a24['coerce'](_0x5c9979);_0x31dd00&&_0x292bee&&(_0x4bdc6f=a76_0x412a24['lt'](_0x31dd00,_0x292bee));}catch{_0x4bdc6f=![];}return{'currentVersion':_0x46cd7a,'stableVersion':_0x5c9979,'needsUpgrade':_0x4bdc6f,'isPreRelease':![]};}function a76_0x25d2(_0x1d04ce,_0x497036){_0x1d04ce=_0x1d04ce-0x129;const _0x240ba6=a76_0x240b();let _0x25d293=_0x240ba6[_0x1d04ce];return _0x25d293;}export function printCliUpgradeWarning(_0x339c49){const _0x15ed9f=a76_0x25d2;if(!_0x339c49['needsUpgrade'])return;const _0x5ee00d=_0x15ed9f(0x13c),_0x55e918=_0x15ed9f(0x13f),_0x57feea=_0x15ed9f(0x137),_0x299b04='npm\x20install\x20-g\x20@lovrabet/cli@latest';console[_0x15ed9f(0x139)](),console[_0x15ed9f(0x139)](''+_0x5ee00d+_0x57feea+t(_0x15ed9f(0x135))+_0x55e918),console['log'](''+_0x5ee00d+t(_0x15ed9f(0x136),{'version':_0x339c49['currentVersion']})+_0x55e918),console[_0x15ed9f(0x139)](''+_0x5ee00d+t('upgrade.cli.stable',{'version':_0x339c49[_0x15ed9f(0x12a)]})+_0x55e918),console[_0x15ed9f(0x139)](''+_0x5ee00d+t(_0x15ed9f(0x13d),{'command':_0x299b04})+_0x55e918),console[_0x15ed9f(0x139)]();}
@@ -1 +1 @@
1
- const a72_0x2c15e3=a72_0x58f1;(function(_0x22641b,_0x3a413f){const _0x453b19=a72_0x58f1,_0x193b12=_0x22641b();while(!![]){try{const _0x2cfb8a=-parseInt(_0x453b19(0x110))/0x1+parseInt(_0x453b19(0x113))/0x2*(-parseInt(_0x453b19(0x10d))/0x3)+parseInt(_0x453b19(0x10c))/0x4+parseInt(_0x453b19(0x116))/0x5*(parseInt(_0x453b19(0x111))/0x6)+-parseInt(_0x453b19(0x10f))/0x7+-parseInt(_0x453b19(0x10e))/0x8+parseInt(_0x453b19(0x10a))/0x9*(parseInt(_0x453b19(0x10b))/0xa);if(_0x2cfb8a===_0x3a413f)break;else _0x193b12['push'](_0x193b12['shift']());}catch(_0x2b7d30){_0x193b12['push'](_0x193b12['shift']());}}}(a72_0x4aef,0x8238a));import{existsSync,readFileSync}from'node:fs';import{resolve}from'node:path';import{homedir}from'node:os';function a72_0x58f1(_0x174409,_0x191bde){_0x174409=_0x174409-0x10a;const _0x4aefc0=a72_0x4aef();let _0x58f1c6=_0x4aefc0[_0x174409];return _0x58f1c6;}import{initEnv}from'../constant/env.js';export const projectConfigPath=resolve(process[a72_0x2c15e3(0x11d)](),a72_0x2c15e3(0x117));export const globalConfigPath=resolve(homedir(),'.lovrabetrc');export function readConfig(_0x12bd5c){const _0x57b8da=a72_0x2c15e3;let _0x1b0482={};try{if(existsSync(globalConfigPath)){const _0x2329f4=readFileSync(globalConfigPath,{'encoding':_0x57b8da(0x115)});_0x2329f4&&(_0x1b0482=JSON[_0x57b8da(0x119)](_0x2329f4));}}catch(_0x794a3b){}try{const _0x426e7e=_0x12bd5c?resolve(_0x12bd5c,_0x57b8da(0x117)):projectConfigPath;if(existsSync(_0x426e7e)){const _0x36f900=readFileSync(_0x426e7e,{'encoding':'utf8'});if(_0x36f900){const _0x335a7d=JSON[_0x57b8da(0x119)](_0x36f900);_0x1b0482={..._0x1b0482,..._0x335a7d};}}}catch(_0x34f093){}return _0x1b0482[_0x57b8da(0x11c)]&&typeof _0x1b0482[_0x57b8da(0x11c)]===_0x57b8da(0x11b)&&initEnv(_0x1b0482[_0x57b8da(0x11c)]),_0x1b0482;}export function getConfigAppCode(){const _0x15f0e1=a72_0x2c15e3;let _0x2d6a45={},_0x2c70ff={};try{if(existsSync(globalConfigPath)){const _0x58e02a=readFileSync(globalConfigPath,{'encoding':_0x15f0e1(0x115)});_0x58e02a&&(_0x2c70ff=JSON['parse'](_0x58e02a));}}catch(_0x169ecd){}try{if(existsSync(projectConfigPath)){const _0x5bf837=readFileSync(projectConfigPath,{'encoding':'utf8'});_0x5bf837&&(_0x2d6a45=JSON['parse'](_0x5bf837));}}catch(_0x50b732){}let _0x18981d;if(_0x15f0e1(0x11a)in _0x2d6a45)_0x18981d=_0x2d6a45[_0x15f0e1(0x11a)];else{if(_0x15f0e1(0x112)in _0x2d6a45)_0x18981d=_0x2d6a45['app'];else{if(_0x15f0e1(0x11a)in _0x2c70ff)_0x18981d=_0x2c70ff[_0x15f0e1(0x11a)];else _0x15f0e1(0x112)in _0x2c70ff&&(_0x18981d=_0x2c70ff[_0x15f0e1(0x112)]);}}if(typeof _0x18981d!==_0x15f0e1(0x11b)||_0x18981d['trim']()==='')return undefined;return _0x18981d;}function a72_0x4aef(){const _0x5d2769=['appcode','string','env','cwd','9873lKMRui','8180BlnozR','517772lNzKos','1217427lNZxbo','3977936FNSiFw','1264781xqSxWl','179309gBrmwI','1626GGBhih','app','2XeOzMJ','replace','utf8','14200BgsQQI','.lovrabetrc','template_base_url','parse'];a72_0x4aef=function(){return _0x5d2769;};return a72_0x4aef();}export function isInProject(){return existsSync(projectConfigPath);}export function getTemplateBaseUrl(){const _0x259a5b=a72_0x2c15e3,_0x92429a=readConfig();if(_0x92429a['template_base_url']&&typeof _0x92429a['template_base_url']===_0x259a5b(0x11b))return _0x92429a[_0x259a5b(0x118)][_0x259a5b(0x114)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-cli';}
1
+ const a77_0x196d33=a77_0x40cc;(function(_0x34e758,_0x5818bb){const _0x571528=a77_0x40cc,_0x1d7a41=_0x34e758();while(!![]){try{const _0x323d24=-parseInt(_0x571528(0x13a))/0x1+parseInt(_0x571528(0x139))/0x2+parseInt(_0x571528(0x13f))/0x3+-parseInt(_0x571528(0x143))/0x4*(parseInt(_0x571528(0x14a))/0x5)+-parseInt(_0x571528(0x144))/0x6*(-parseInt(_0x571528(0x137))/0x7)+parseInt(_0x571528(0x141))/0x8+-parseInt(_0x571528(0x140))/0x9;if(_0x323d24===_0x5818bb)break;else _0x1d7a41['push'](_0x1d7a41['shift']());}catch(_0x4f2c83){_0x1d7a41['push'](_0x1d7a41['shift']());}}}(a77_0x55a0,0x8eaaf));import{existsSync,readFileSync}from'node:fs';import{resolve}from'node:path';import{homedir}from'node:os';import{initEnv}from'../constant/env.js';function a77_0x55a0(){const _0xd7d188=['app','8gmBdGp','188022HiqFvs','utf8','env','template_base_url','.lovrabetrc','cwd','308090xTiDXz','7HWqdGo','parse','1098602gbpEKp','1050726nQFsyp','appcode','string','replace','https://g.lovrabet.com/dist/lovrabet-cli','1140840qciptD','348696DkzZXT','6689240BJQPBJ'];a77_0x55a0=function(){return _0xd7d188;};return a77_0x55a0();}export const projectConfigPath=resolve(process[a77_0x196d33(0x149)](),a77_0x196d33(0x148));export const globalConfigPath=resolve(homedir(),'.lovrabetrc');export function readConfig(_0x4566ef){const _0x4093a8=a77_0x196d33;let _0x2c045b={};try{if(existsSync(globalConfigPath)){const _0x1dfcb4=readFileSync(globalConfigPath,{'encoding':_0x4093a8(0x145)});_0x1dfcb4&&(_0x2c045b=JSON[_0x4093a8(0x138)](_0x1dfcb4));}}catch(_0x260098){}try{const _0xfcff72=_0x4566ef?resolve(_0x4566ef,_0x4093a8(0x148)):projectConfigPath;if(existsSync(_0xfcff72)){const _0x1f9fea=readFileSync(_0xfcff72,{'encoding':_0x4093a8(0x145)});if(_0x1f9fea){const _0x5b63a8=JSON[_0x4093a8(0x138)](_0x1f9fea);_0x2c045b={..._0x2c045b,..._0x5b63a8};}}}catch(_0x1cb832){}return _0x2c045b[_0x4093a8(0x146)]&&typeof _0x2c045b[_0x4093a8(0x146)]==='string'&&initEnv(_0x2c045b[_0x4093a8(0x146)]),_0x2c045b;}function a77_0x40cc(_0x421cf9,_0x55d53e){_0x421cf9=_0x421cf9-0x137;const _0x55a0df=a77_0x55a0();let _0x40ccc6=_0x55a0df[_0x421cf9];return _0x40ccc6;}export function getConfigAppCode(){const _0x35b7ec=a77_0x196d33;let _0x24a210={},_0x2ddd3f={};try{if(existsSync(globalConfigPath)){const _0x5dc822=readFileSync(globalConfigPath,{'encoding':_0x35b7ec(0x145)});_0x5dc822&&(_0x2ddd3f=JSON[_0x35b7ec(0x138)](_0x5dc822));}}catch(_0x2f69fc){}try{if(existsSync(projectConfigPath)){const _0x938c08=readFileSync(projectConfigPath,{'encoding':_0x35b7ec(0x145)});_0x938c08&&(_0x24a210=JSON[_0x35b7ec(0x138)](_0x938c08));}}catch(_0x162a96){}let _0x5b1a3d;if(_0x35b7ec(0x13b)in _0x24a210)_0x5b1a3d=_0x24a210[_0x35b7ec(0x13b)];else{if('app'in _0x24a210)_0x5b1a3d=_0x24a210['app'];else{if(_0x35b7ec(0x13b)in _0x2ddd3f)_0x5b1a3d=_0x2ddd3f[_0x35b7ec(0x13b)];else _0x35b7ec(0x142)in _0x2ddd3f&&(_0x5b1a3d=_0x2ddd3f['app']);}}if(typeof _0x5b1a3d!==_0x35b7ec(0x13c)||_0x5b1a3d['trim']()==='')return undefined;return _0x5b1a3d;}export function isInProject(){return existsSync(projectConfigPath);}export function getTemplateBaseUrl(){const _0x5e9fcf=a77_0x196d33,_0x393e4d=readConfig();if(_0x393e4d[_0x5e9fcf(0x147)]&&typeof _0x393e4d['template_base_url']==='string')return _0x393e4d['template_base_url'][_0x5e9fcf(0x13d)](/\/$/,'');return _0x5e9fcf(0x13e);}
@@ -1 +1 @@
1
- (function(_0x4d7b6d,_0x4cc7dd){const _0x4225ba=a73_0x3008,_0x58ff3e=_0x4d7b6d();while(!![]){try{const _0x2d52da=-parseInt(_0x4225ba(0xb5))/0x1*(-parseInt(_0x4225ba(0xb7))/0x2)+-parseInt(_0x4225ba(0xad))/0x3*(-parseInt(_0x4225ba(0xb0))/0x4)+parseInt(_0x4225ba(0xb1))/0x5+-parseInt(_0x4225ba(0xaf))/0x6+parseInt(_0x4225ba(0xb6))/0x7+-parseInt(_0x4225ba(0xb8))/0x8*(parseInt(_0x4225ba(0xae))/0x9)+parseInt(_0x4225ba(0xb3))/0xa*(-parseInt(_0x4225ba(0xb2))/0xb);if(_0x2d52da===_0x4cc7dd)break;else _0x58ff3e['push'](_0x58ff3e['shift']());}catch(_0x531fb5){_0x58ff3e['push'](_0x58ff3e['shift']());}}}(a73_0x71a4,0xa71cf));function a73_0x3008(_0x337fa3,_0x3b20c6){_0x337fa3=_0x337fa3-0xab;const _0x71a4ad=a73_0x71a4();let _0x3008c4=_0x71a4ad[_0x337fa3];return _0x3008c4;}import a73_0x49fef9 from'node:path';function a73_0x71a4(){const _0x4bddd4=['name','mkdirSync','isDirectory','复制目录时出错:','join','1512012IfobNp','39339EgffYN','3291228gfEAHK','8XfZqmt','1922635fcSPrV','15323jGucjI','4710pMWCQV','copyFileSync','5739mBAaed','1383263mGMeJU','386etzOKI','1480NqQeIy','error'];a73_0x71a4=function(){return _0x4bddd4;};return a73_0x71a4();}import a73_0x1ebd0a from'node:fs';export async function copyDirectory(_0x34d99b,_0x3aeb6f){const _0x80517c=a73_0x3008;try{const _0x48af9d=a73_0x1ebd0a['readdirSync'](_0x34d99b,{'withFileTypes':!![]});a73_0x1ebd0a[_0x80517c(0xbb)](_0x3aeb6f,{'recursive':!![]});for(const _0x49bafc of _0x48af9d){const _0x717396=a73_0x49fef9['join'](_0x34d99b,_0x49bafc[_0x80517c(0xba)]),_0x4f7ddf=a73_0x49fef9[_0x80517c(0xac)](_0x3aeb6f,_0x49bafc[_0x80517c(0xba)]);_0x49bafc[_0x80517c(0xbc)]()?await copyDirectory(_0x717396,_0x4f7ddf):a73_0x1ebd0a[_0x80517c(0xb4)](_0x717396,_0x4f7ddf);}}catch(_0x3f9227){console[_0x80517c(0xb9)](_0x80517c(0xab),_0x3f9227);}}
1
+ (function(_0x12d370,_0x20e015){const _0x2d1b53=a78_0x185a,_0x18aa19=_0x12d370();while(!![]){try{const _0x34d3d0=parseInt(_0x2d1b53(0x6b))/0x1+parseInt(_0x2d1b53(0x6a))/0x2*(parseInt(_0x2d1b53(0x76))/0x3)+-parseInt(_0x2d1b53(0x6f))/0x4+-parseInt(_0x2d1b53(0x6d))/0x5+parseInt(_0x2d1b53(0x70))/0x6*(parseInt(_0x2d1b53(0x68))/0x7)+-parseInt(_0x2d1b53(0x69))/0x8*(parseInt(_0x2d1b53(0x66))/0x9)+parseInt(_0x2d1b53(0x74))/0xa*(parseInt(_0x2d1b53(0x6c))/0xb);if(_0x34d3d0===_0x20e015)break;else _0x18aa19['push'](_0x18aa19['shift']());}catch(_0x39deb0){_0x18aa19['push'](_0x18aa19['shift']());}}}(a78_0x5b12,0xdbdc4));import a78_0x19d6ac from'node:path';import a78_0x39b540 from'node:fs';function a78_0x185a(_0x1553aa,_0x5e57b9){_0x1553aa=_0x1553aa-0x66;const _0x5b1281=a78_0x5b12();let _0x185a0f=_0x5b1281[_0x1553aa];return _0x185a0f;}export async function copyDirectory(_0x449e66,_0x3e0acc){const _0x26f6fa=a78_0x185a;try{const _0x2132cb=a78_0x39b540['readdirSync'](_0x449e66,{'withFileTypes':!![]});a78_0x39b540[_0x26f6fa(0x71)](_0x3e0acc,{'recursive':!![]});for(const _0xeb3733 of _0x2132cb){const _0x26d4c0=a78_0x19d6ac[_0x26f6fa(0x72)](_0x449e66,_0xeb3733[_0x26f6fa(0x75)]),_0x10137a=a78_0x19d6ac[_0x26f6fa(0x72)](_0x3e0acc,_0xeb3733[_0x26f6fa(0x75)]);_0xeb3733[_0x26f6fa(0x73)]()?await copyDirectory(_0x26d4c0,_0x10137a):a78_0x39b540['copyFileSync'](_0x26d4c0,_0x10137a);}}catch(_0x511236){console[_0x26f6fa(0x6e)](_0x26f6fa(0x67),_0x511236);}}function a78_0x5b12(){const _0x251bc6=['1560611SZPnAY','3817kBlJrS','5279260FzcwCT','error','5835848aPQGrD','897090ZojFfy','mkdirSync','join','isDirectory','3290ZGdLXg','name','1299GPCPLc','3870zwtZFs','复制目录时出错:','77yunPoQ','1768dYkVFY','882pcbvRB'];a78_0x5b12=function(){return _0x251bc6;};return a78_0x5b12();}
@@ -1 +1 @@
1
- function a74_0x1d45(_0x36400d,_0x404678){_0x36400d=_0x36400d-0x152;const _0x3ca5fe=a74_0x3ca5();let _0x1d45ca=_0x3ca5fe[_0x36400d];return _0x1d45ca;}(function(_0x14d6c9,_0x50e2ba){const _0x53c839=a74_0x1d45,_0x464e42=_0x14d6c9();while(!![]){try{const _0x17930e=-parseInt(_0x53c839(0x159))/0x1+-parseInt(_0x53c839(0x15a))/0x2*(-parseInt(_0x53c839(0x152))/0x3)+parseInt(_0x53c839(0x156))/0x4*(-parseInt(_0x53c839(0x157))/0x5)+-parseInt(_0x53c839(0x15c))/0x6*(-parseInt(_0x53c839(0x158))/0x7)+-parseInt(_0x53c839(0x153))/0x8+parseInt(_0x53c839(0x154))/0x9+parseInt(_0x53c839(0x155))/0xa;if(_0x17930e===_0x50e2ba)break;else _0x464e42['push'](_0x464e42['shift']());}catch(_0x31eaf0){_0x464e42['push'](_0x464e42['shift']());}}}(a74_0x3ca5,0xb35fc));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a74_0x3ca5(){const _0x508769=['7356hLRzsI','3fiSARy','6660840AZddXn','12062079BpBGEb','10840030DnyHlH','19300kmqkOU','320GZATMM','2009qSEZPX','1434153ZHTxfn','1068356RBihJA','isDirectory'];a74_0x3ca5=function(){return _0x508769;};return a74_0x3ca5();}export async function copyDir(_0x5d772f,_0x2de4ca){const _0x4a4c0f=a74_0x1d45,_0x615d1a=statSync(_0x5d772f);if(_0x615d1a[_0x4a4c0f(0x15b)]()){!existsSync(_0x2de4ca)&&mkdirSync(_0x2de4ca,{'recursive':!![]});const _0x192a4a=readdirSync(_0x5d772f);for(const _0x2c87f0 of _0x192a4a){await copyDir(join(_0x5d772f,_0x2c87f0),join(_0x2de4ca,_0x2c87f0));}}else copyFileSync(_0x5d772f,_0x2de4ca);}export function ensureDir(_0x5a0d35){!existsSync(_0x5a0d35)&&mkdirSync(_0x5a0d35,{'recursive':!![]});}export function pathExists(_0x4d0ccf){return existsSync(_0x4d0ccf);}
1
+ (function(_0x305102,_0x4dd41f){const _0x13ec54=a79_0xc883,_0x3eb9e7=_0x305102();while(!![]){try{const _0x30f07c=parseInt(_0x13ec54(0x1a6))/0x1*(parseInt(_0x13ec54(0x1a7))/0x2)+-parseInt(_0x13ec54(0x1a3))/0x3*(-parseInt(_0x13ec54(0x1ab))/0x4)+-parseInt(_0x13ec54(0x1a0))/0x5*(-parseInt(_0x13ec54(0x1aa))/0x6)+parseInt(_0x13ec54(0x1a5))/0x7*(-parseInt(_0x13ec54(0x1a4))/0x8)+parseInt(_0x13ec54(0x1a8))/0x9*(-parseInt(_0x13ec54(0x19e))/0xa)+-parseInt(_0x13ec54(0x1a9))/0xb*(parseInt(_0x13ec54(0x1a2))/0xc)+-parseInt(_0x13ec54(0x19f))/0xd;if(_0x30f07c===_0x4dd41f)break;else _0x3eb9e7['push'](_0x3eb9e7['shift']());}catch(_0x589584){_0x3eb9e7['push'](_0x3eb9e7['shift']());}}}(a79_0x4cbb,0x1d348));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a79_0x4cbb(){const _0x35d2f9=['692135QufyRw','isDirectory','60ZIpZCP','6LxWnpd','1048mcwqUa','1337saDNHc','2074WGuZgQ','102DMQoKr','9EfFCLR','420926jPNgaZ','6pQHxWF','379856AswVFI','885140vfVjaX','125320IMRPlu'];a79_0x4cbb=function(){return _0x35d2f9;};return a79_0x4cbb();}export async function copyDir(_0x5d82fd,_0xe02d22){const _0x419d73=a79_0xc883,_0x5c35f5=statSync(_0x5d82fd);if(_0x5c35f5[_0x419d73(0x1a1)]()){!existsSync(_0xe02d22)&&mkdirSync(_0xe02d22,{'recursive':!![]});const _0x25d41c=readdirSync(_0x5d82fd);for(const _0x293f45 of _0x25d41c){await copyDir(join(_0x5d82fd,_0x293f45),join(_0xe02d22,_0x293f45));}}else copyFileSync(_0x5d82fd,_0xe02d22);}export function ensureDir(_0x4c19bd){!existsSync(_0x4c19bd)&&mkdirSync(_0x4c19bd,{'recursive':!![]});}function a79_0xc883(_0x12f241,_0xe0aefe){_0x12f241=_0x12f241-0x19e;const _0x4cbbec=a79_0x4cbb();let _0xc883a3=_0x4cbbec[_0x12f241];return _0xc883a3;}export function pathExists(_0x5a9422){return existsSync(_0x5a9422);}
@@ -1 +1 @@
1
- const a75_0x21bc23=a75_0x465f;(function(_0x3dee26,_0x1e38c6){const _0x2669db=a75_0x465f,_0x355219=_0x3dee26();while(!![]){try{const _0x4351cf=-parseInt(_0x2669db(0x194))/0x1*(-parseInt(_0x2669db(0x1a6))/0x2)+-parseInt(_0x2669db(0x195))/0x3+-parseInt(_0x2669db(0x19d))/0x4+parseInt(_0x2669db(0x19a))/0x5*(-parseInt(_0x2669db(0x198))/0x6)+parseInt(_0x2669db(0x189))/0x7*(-parseInt(_0x2669db(0x17b))/0x8)+-parseInt(_0x2669db(0x18e))/0x9+-parseInt(_0x2669db(0x18c))/0xa*(-parseInt(_0x2669db(0x188))/0xb);if(_0x4351cf===_0x1e38c6)break;else _0x355219['push'](_0x355219['shift']());}catch(_0x2a3773){_0x355219['push'](_0x355219['shift']());}}}(a75_0x5637,0x6d70c));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0x20824b=getTemplateBaseUrl();return _0x20824b+'/skills/guides.json';}function getGuidesExtendCdnUrl(){const _0x5b37e6=getTemplateBaseUrl();return _0x5b37e6+'/skills/guides-extend.json';}const CACHE_DIR=join(process[a75_0x21bc23(0x19c)][a75_0x21bc23(0x179)]||process[a75_0x21bc23(0x19c)][a75_0x21bc23(0x1a4)]||'',a75_0x21bc23(0x1a5),a75_0x21bc23(0x17a));function a75_0x5637(){const _0x2d0e1d=['skillTemplate','length','push','lastUpdated','trimEnd','some','USERPROFILE','.lovrabet','102ynXGYK','statusText','title','extendContent','HOME','cache','120IxzZBP','CDN\x20数据中缺少\x20skillTemplate','includes','<!--\x20GUIDES_APPEND\x20-->','CDN\x20返回数据格式错误','guides','object','sort','|\x20`','CDN\x20请求失败:\x20','path','content','guide.md','110yPHTtA','113127KrvsEV','entries','keys','2199850tcgzrv','\x0a\x0a>更新时间:','2563920pmMJkt','status','.lovrabet/skill/.shared/guides','replace','map','requireFlags','3125NhPpav','2563632bbcpiZ','json','join','312714bdeEdm','application/json','5ivxJIt','utf-8','env','1907996bJULAY'];a75_0x5637=function(){return _0x2d0e1d;};return a75_0x5637();}export async function fetchGuidesFromCDN(_0x61e7de=![]){const _0x543d6d=a75_0x21bc23,_0x3a09f5=getGuidesCdnUrl(),_0x36f442=await fetch(_0x3a09f5,{'headers':{'Accept':_0x543d6d(0x199)}});if(!_0x36f442['ok'])throw new Error(_0x543d6d(0x184)+_0x36f442[_0x543d6d(0x18f)]+'\x20'+_0x36f442[_0x543d6d(0x1a7)]);const _0x49bf96=await _0x36f442[_0x543d6d(0x196)]();if(!_0x49bf96[_0x543d6d(0x180)]||typeof _0x49bf96[_0x543d6d(0x180)]!==_0x543d6d(0x181))throw new Error(_0x543d6d(0x17f));if(!_0x61e7de)return _0x49bf96;try{const _0x28239b=getGuidesExtendCdnUrl(),_0x379ce5=await fetch(_0x28239b,{'headers':{'Accept':_0x543d6d(0x199)}});if(_0x379ce5['ok']){const _0x407ed8=await _0x379ce5[_0x543d6d(0x196)]();_0x407ed8[_0x543d6d(0x180)]&&typeof _0x407ed8[_0x543d6d(0x180)]===_0x543d6d(0x181)&&(_0x49bf96[_0x543d6d(0x180)]={..._0x49bf96[_0x543d6d(0x180)],..._0x407ed8[_0x543d6d(0x180)]});}}catch{}return _0x49bf96;}function a75_0x465f(_0x1751e4,_0x3563e6){_0x1751e4=_0x1751e4-0x177;const _0x5637c8=a75_0x5637();let _0x465fd1=_0x5637c8[_0x1751e4];return _0x465fd1;}export function writeGuidesToProject(_0x191900,_0x2f3625,_0x136db7=a75_0x21bc23(0x190),_0x5216e8){const _0x412b90=a75_0x21bc23,_0x5e1cb3=join(_0x2f3625,_0x136db7);for(const [_0x5b60b8,_0x29cd83]of Object[_0x412b90(0x18a)](_0x191900[_0x412b90(0x180)])){if(_0x29cd83['requireFlags']&&_0x29cd83[_0x412b90(0x193)][_0x412b90(0x19f)]>0x0){const _0x124586=_0x29cd83[_0x412b90(0x193)][_0x412b90(0x1a3)](_0x4985ab=>_0x5216e8?.['includes'](_0x4985ab));if(!_0x124586)continue;}const _0x3c6b54=join(_0x5e1cb3,_0x5b60b8);mkdirSync(_0x3c6b54,{'recursive':!![]});let _0x1946c4=_0x29cd83[_0x412b90(0x186)];_0x29cd83[_0x412b90(0x1a1)]&&(_0x1946c4=appendUpdateTime(_0x1946c4,_0x29cd83[_0x412b90(0x1a1)])),writeFileSync(join(_0x3c6b54,_0x412b90(0x187)),_0x1946c4,_0x412b90(0x19b));}}export function appendUpdateTime(_0x22abc5,_0x587c3c){const _0x7eec1=a75_0x21bc23;return _0x22abc5=_0x22abc5[_0x7eec1(0x191)](/\n*>更新时间:.*$/m,''),_0x22abc5[_0x7eec1(0x1a2)]()+(_0x7eec1(0x18d)+_0x587c3c);}export function getSkillTemplate(_0x34ecd0){const _0xba1c9d=a75_0x21bc23;return _0x34ecd0[_0xba1c9d(0x19e)]?.[_0xba1c9d(0x186)]||'';}export function appendExtendContents(_0x1b3578,_0x3124ad,_0x48b83b){const _0x1f63e6=a75_0x21bc23,_0x1e2d2e=[];for(const [_0x3e60ed,_0x20557f]of Object[_0x1f63e6(0x18a)](_0x3124ad[_0x1f63e6(0x180)])){if(_0x20557f[_0x1f63e6(0x193)]&&_0x20557f['requireFlags'][_0x1f63e6(0x19f)]>0x0){const _0x2cdffa=_0x20557f[_0x1f63e6(0x193)]['some'](_0x252a52=>_0x48b83b?.['includes'](_0x252a52));if(!_0x2cdffa)continue;}_0x20557f['extendContent']&&_0x1e2d2e[_0x1f63e6(0x1a0)](_0x20557f[_0x1f63e6(0x178)][_0x1f63e6(0x1a2)]());}if(_0x1e2d2e['length']===0x0)return _0x1b3578;return _0x1b3578[_0x1f63e6(0x1a2)]()+'\x0a\x0a'+_0x1e2d2e[_0x1f63e6(0x197)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x21cc1b,_0xc5d89d,_0x481d6f,_0x37a963){const _0x52541e=a75_0x21bc23,_0x1f84d4=getSkillTemplate(_0x21cc1b);if(!_0x1f84d4)throw new Error(_0x52541e(0x17c));const _0x1da539=dirname(_0xc5d89d);mkdirSync(_0x1da539,{'recursive':!![]});let _0x15a779=_0x1f84d4[_0x52541e(0x191)](/\{\{IDE_NAME\}\}/g,_0x481d6f);_0x15a779=insertGuidesSection(_0x15a779,_0x21cc1b,_0x37a963),_0x15a779=appendExtendContents(_0x15a779,_0x21cc1b,_0x37a963),_0x21cc1b[_0x52541e(0x19e)][_0x52541e(0x1a1)]&&(_0x15a779=appendUpdateTime(_0x15a779,_0x21cc1b[_0x52541e(0x19e)][_0x52541e(0x1a1)])),writeFileSync(_0xc5d89d,_0x15a779,_0x52541e(0x19b));}export function insertGuidesSection(_0x15561d,_0x367e5d,_0x29cd17){const _0x208bee=a75_0x21bc23,_0x553141=_0x208bee(0x17e),_0x536038=_0x15561d['indexOf'](_0x553141);if(_0x536038===-0x1)return _0x15561d;const _0xd0fb51=[],_0x25c9f9=Object[_0x208bee(0x18b)](_0x367e5d[_0x208bee(0x180)])[_0x208bee(0x182)]();for(const _0x53c2ad of _0x25c9f9){const _0x45ef7e=_0x367e5d[_0x208bee(0x180)][_0x53c2ad];if(!_0x45ef7e)continue;if(/^0[1-6]-/['test'](_0x53c2ad))continue;if(_0x45ef7e[_0x208bee(0x193)]&&_0x45ef7e[_0x208bee(0x193)]['length']>0x0){const _0x596fd1=_0x45ef7e[_0x208bee(0x193)][_0x208bee(0x1a3)](_0x57ca1e=>_0x29cd17?.[_0x208bee(0x17d)](_0x57ca1e));if(!_0x596fd1)continue;}const _0x14843c=_0x45ef7e[_0x208bee(0x185)][_0x208bee(0x191)](/^\.lovrabet\/skill\/\.shared\/guides\//,'');_0xd0fb51[_0x208bee(0x1a0)](_0x208bee(0x183)+_0x14843c+'`\x20|\x20'+_0x45ef7e[_0x208bee(0x177)]+'\x20|');}if(_0xd0fb51[_0x208bee(0x19f)]===0x0)return _0x15561d[_0x208bee(0x191)](_0x553141,_0x208bee(0x17e));const _0x1a1c0e=_0xd0fb51[_0x208bee(0x197)]('\x0a');return _0x15561d[_0x208bee(0x191)](_0x553141,_0x1a1c0e+'\x0a<!--\x20GUIDES_APPEND\x20-->');}export async function installGuides(_0x5750aa){const _0x57d66b=a75_0x21bc23,_0x445416=await fetchGuidesFromCDN();return writeGuidesToProject(_0x445416,_0x5750aa),Object['keys'](_0x445416[_0x57d66b(0x180)])[_0x57d66b(0x19f)];}export function getGuidesSummary(_0xa48f8d){const _0x2fea3c=a75_0x21bc23;return Object[_0x2fea3c(0x18a)](_0xa48f8d[_0x2fea3c(0x180)])[_0x2fea3c(0x192)](([_0x42906c,_0x435cb0])=>({'key':_0x42906c,'title':_0x435cb0[_0x2fea3c(0x177)],'path':_0x435cb0[_0x2fea3c(0x185)]}));}
1
+ const a80_0x4f4b6b=a80_0x5d4f;(function(_0xd6fc92,_0x28d56){const _0x251189=a80_0x5d4f,_0x189ca8=_0xd6fc92();while(!![]){try{const _0x4d0db9=parseInt(_0x251189(0x11c))/0x1*(parseInt(_0x251189(0x124))/0x2)+-parseInt(_0x251189(0x109))/0x3+-parseInt(_0x251189(0x119))/0x4+-parseInt(_0x251189(0x110))/0x5+-parseInt(_0x251189(0x121))/0x6+parseInt(_0x251189(0x11b))/0x7*(-parseInt(_0x251189(0x11e))/0x8)+-parseInt(_0x251189(0x10b))/0x9*(-parseInt(_0x251189(0x116))/0xa);if(_0x4d0db9===_0x28d56)break;else _0x189ca8['push'](_0x189ca8['shift']());}catch(_0x1ee36d){_0x189ca8['push'](_0x189ca8['shift']());}}}(a80_0xfbc4,0xc57ba));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{getTemplateBaseUrl}from'./config.js';function a80_0xfbc4(){const _0xa6a4bc=['trimEnd','1233174gqjqPO','push','171pAJcwe','utf-8','\x0a<!--\x20GUIDES_APPEND\x20-->','env','length','110395hETeLo','CDN\x20请求失败:\x20','entries','CDN\x20数据中缺少\x20skillTemplate','|\x20`','lastUpdated','757970zCWhfp','skillTemplate','join','1731716srBAYj','application/json','21wCJEQV','1409127aFFlyh','path','1332824DumsfV','\x0a\x0a>更新时间:','extendContent','4047030Gjrdnr','map','object','2nnaJIE','includes','.lovrabet','requireFlags','json','/skills/guides.json','test','<!--\x20GUIDES_APPEND\x20-->','some','.lovrabet/skill/.shared/guides','replace','guides','keys','status','statusText','guide.md','title','`\x20|\x20','USERPROFILE','HOME'];a80_0xfbc4=function(){return _0xa6a4bc;};return a80_0xfbc4();}function getGuidesCdnUrl(){const _0x3ddcca=a80_0x5d4f,_0x539806=getTemplateBaseUrl();return _0x539806+_0x3ddcca(0xf9);}function getGuidesExtendCdnUrl(){const _0x42bfa8=getTemplateBaseUrl();return _0x42bfa8+'/skills/guides-extend.json';}const CACHE_DIR=join(process[a80_0x4f4b6b(0x10e)][a80_0x4f4b6b(0x107)]||process['env'][a80_0x4f4b6b(0x106)]||'',a80_0x4f4b6b(0x126),'cache');export async function fetchGuidesFromCDN(_0x5be83c=![]){const _0x304134=a80_0x4f4b6b,_0x301d9f=getGuidesCdnUrl(),_0x44087c=await fetch(_0x301d9f,{'headers':{'Accept':_0x304134(0x11a)}});if(!_0x44087c['ok'])throw new Error(_0x304134(0x111)+_0x44087c[_0x304134(0x101)]+'\x20'+_0x44087c[_0x304134(0x102)]);const _0x57fcd5=await _0x44087c[_0x304134(0xf8)]();if(!_0x57fcd5[_0x304134(0xff)]||typeof _0x57fcd5[_0x304134(0xff)]!==_0x304134(0x123))throw new Error('CDN\x20返回数据格式错误');if(!_0x5be83c)return _0x57fcd5;try{const _0x51c915=getGuidesExtendCdnUrl(),_0x476c6d=await fetch(_0x51c915,{'headers':{'Accept':_0x304134(0x11a)}});if(_0x476c6d['ok']){const _0x52681b=await _0x476c6d['json']();_0x52681b[_0x304134(0xff)]&&typeof _0x52681b['guides']===_0x304134(0x123)&&(_0x57fcd5[_0x304134(0xff)]={..._0x57fcd5[_0x304134(0xff)],..._0x52681b[_0x304134(0xff)]});}}catch{}return _0x57fcd5;}export function writeGuidesToProject(_0x25d880,_0x5d44ac,_0x3f2559=a80_0x4f4b6b(0xfd),_0x175ef1){const _0x225749=a80_0x4f4b6b,_0x2418ec=join(_0x5d44ac,_0x3f2559);for(const [_0x125ad8,_0x2e8e87]of Object[_0x225749(0x112)](_0x25d880[_0x225749(0xff)])){if(_0x2e8e87[_0x225749(0xf7)]&&_0x2e8e87[_0x225749(0xf7)][_0x225749(0x10f)]>0x0){const _0x47f3af=_0x2e8e87[_0x225749(0xf7)][_0x225749(0xfc)](_0x2ecd1a=>_0x175ef1?.[_0x225749(0x125)](_0x2ecd1a));if(!_0x47f3af)continue;}const _0xd18a54=join(_0x2418ec,_0x125ad8);mkdirSync(_0xd18a54,{'recursive':!![]});let _0x3b6633=_0x2e8e87['content'];_0x2e8e87[_0x225749(0x115)]&&(_0x3b6633=appendUpdateTime(_0x3b6633,_0x2e8e87['lastUpdated'])),writeFileSync(join(_0xd18a54,_0x225749(0x103)),_0x3b6633,_0x225749(0x10c));}}export function appendUpdateTime(_0xa12182,_0xba4429){const _0x568932=a80_0x4f4b6b;return _0xa12182=_0xa12182[_0x568932(0xfe)](/\n*>更新时间:.*$/m,''),_0xa12182[_0x568932(0x108)]()+(_0x568932(0x11f)+_0xba4429);}export function getSkillTemplate(_0x212d04){const _0x4b1a2c=a80_0x4f4b6b;return _0x212d04[_0x4b1a2c(0x117)]?.['content']||'';}export function appendExtendContents(_0x13173c,_0x1c58e2,_0x408c83){const _0x4cdf38=a80_0x4f4b6b,_0xf094a2=[];for(const [_0x376d1d,_0x55ef94]of Object[_0x4cdf38(0x112)](_0x1c58e2['guides'])){if(_0x55ef94[_0x4cdf38(0xf7)]&&_0x55ef94[_0x4cdf38(0xf7)][_0x4cdf38(0x10f)]>0x0){const _0x9723de=_0x55ef94[_0x4cdf38(0xf7)][_0x4cdf38(0xfc)](_0x112272=>_0x408c83?.['includes'](_0x112272));if(!_0x9723de)continue;}_0x55ef94[_0x4cdf38(0x120)]&&_0xf094a2[_0x4cdf38(0x10a)](_0x55ef94[_0x4cdf38(0x120)][_0x4cdf38(0x108)]());}if(_0xf094a2[_0x4cdf38(0x10f)]===0x0)return _0x13173c;return _0x13173c[_0x4cdf38(0x108)]()+'\x0a\x0a'+_0xf094a2[_0x4cdf38(0x118)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2e76c8,_0x3c502a,_0x1d729d,_0x58120c){const _0x46d2c3=a80_0x4f4b6b,_0x302fb3=getSkillTemplate(_0x2e76c8);if(!_0x302fb3)throw new Error(_0x46d2c3(0x113));const _0x173701=dirname(_0x3c502a);mkdirSync(_0x173701,{'recursive':!![]});let _0x35706e=_0x302fb3[_0x46d2c3(0xfe)](/\{\{IDE_NAME\}\}/g,_0x1d729d);_0x35706e=insertGuidesSection(_0x35706e,_0x2e76c8,_0x58120c),_0x35706e=appendExtendContents(_0x35706e,_0x2e76c8,_0x58120c),_0x2e76c8[_0x46d2c3(0x117)][_0x46d2c3(0x115)]&&(_0x35706e=appendUpdateTime(_0x35706e,_0x2e76c8[_0x46d2c3(0x117)][_0x46d2c3(0x115)])),writeFileSync(_0x3c502a,_0x35706e,_0x46d2c3(0x10c));}function a80_0x5d4f(_0x29f898,_0x20d3a3){_0x29f898=_0x29f898-0xf7;const _0xfbc46e=a80_0xfbc4();let _0x5d4f6f=_0xfbc46e[_0x29f898];return _0x5d4f6f;}export function insertGuidesSection(_0x4e68fd,_0x22bb4e,_0x15d101){const _0x3c6bd6=a80_0x4f4b6b,_0x29d1f4='<!--\x20GUIDES_APPEND\x20-->',_0x4622fc=_0x4e68fd['indexOf'](_0x29d1f4);if(_0x4622fc===-0x1)return _0x4e68fd;const _0x1944e6=[],_0x51301f=Object[_0x3c6bd6(0x100)](_0x22bb4e[_0x3c6bd6(0xff)])['sort']();for(const _0x1b969d of _0x51301f){const _0x17045c=_0x22bb4e[_0x3c6bd6(0xff)][_0x1b969d];if(!_0x17045c)continue;if(/^0[1-6]-/[_0x3c6bd6(0xfa)](_0x1b969d))continue;if(_0x17045c[_0x3c6bd6(0xf7)]&&_0x17045c[_0x3c6bd6(0xf7)][_0x3c6bd6(0x10f)]>0x0){const _0x152c54=_0x17045c[_0x3c6bd6(0xf7)]['some'](_0x28eb16=>_0x15d101?.['includes'](_0x28eb16));if(!_0x152c54)continue;}const _0x58f903=_0x17045c[_0x3c6bd6(0x11d)][_0x3c6bd6(0xfe)](/^\.lovrabet\/skill\/\.shared\/guides\//,'');_0x1944e6[_0x3c6bd6(0x10a)](_0x3c6bd6(0x114)+_0x58f903+_0x3c6bd6(0x105)+_0x17045c[_0x3c6bd6(0x104)]+'\x20|');}if(_0x1944e6[_0x3c6bd6(0x10f)]===0x0)return _0x4e68fd[_0x3c6bd6(0xfe)](_0x29d1f4,_0x3c6bd6(0xfb));const _0x5150a7=_0x1944e6[_0x3c6bd6(0x118)]('\x0a');return _0x4e68fd[_0x3c6bd6(0xfe)](_0x29d1f4,_0x5150a7+_0x3c6bd6(0x10d));}export async function installGuides(_0x170018){const _0x313434=a80_0x4f4b6b,_0x559129=await fetchGuidesFromCDN();return writeGuidesToProject(_0x559129,_0x170018),Object[_0x313434(0x100)](_0x559129[_0x313434(0xff)])[_0x313434(0x10f)];}export function getGuidesSummary(_0x5de4e4){const _0x340847=a80_0x4f4b6b;return Object[_0x340847(0x112)](_0x5de4e4[_0x340847(0xff)])[_0x340847(0x122)](([_0x4e8b8b,_0x534c72])=>({'key':_0x4e8b8b,'title':_0x534c72[_0x340847(0x104)],'path':_0x534c72[_0x340847(0x11d)]}));}
@@ -1 +1 @@
1
- (function(_0x2467d2,_0x5746a5){const _0x1e7ad2=a76_0x7ad5,_0x7f3753=_0x2467d2();while(!![]){try{const _0x4e25cf=parseInt(_0x1e7ad2(0x1fa))/0x1+parseInt(_0x1e7ad2(0x1f3))/0x2+parseInt(_0x1e7ad2(0x1ed))/0x3+parseInt(_0x1e7ad2(0x1fd))/0x4*(parseInt(_0x1e7ad2(0x1fc))/0x5)+parseInt(_0x1e7ad2(0x203))/0x6+parseInt(_0x1e7ad2(0x1f6))/0x7*(-parseInt(_0x1e7ad2(0x1ef))/0x8)+parseInt(_0x1e7ad2(0x1ea))/0x9*(-parseInt(_0x1e7ad2(0x1f5))/0xa);if(_0x4e25cf===_0x5746a5)break;else _0x7f3753['push'](_0x7f3753['shift']());}catch(_0x1c819f){_0x7f3753['push'](_0x7f3753['shift']());}}}(a76_0xaa52,0xf1105));export async function httpRequest(_0x54293e,_0x5a2188={}){const _0x311ff4=a76_0x7ad5,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5a2188;let _0x4c25e2=null;for(let _0x50805d=0x0;_0x50805d<=retries;_0x50805d++){try{const _0x599669=new AbortController(),_0x5c11f2=setTimeout(()=>_0x599669[_0x311ff4(0x1eb)](),timeout),_0x141120=await fetch(_0x54293e,{'headers':headers,'signal':_0x599669[_0x311ff4(0x202)]});clearTimeout(_0x5c11f2);let _0x3bb207;const _0x333543=_0x141120[_0x311ff4(0x1f9)][_0x311ff4(0x1ee)]('content-type');return _0x333543?.['includes'](_0x311ff4(0x1e8))?_0x3bb207=await _0x141120['json']():_0x3bb207=await _0x141120['text'](),{'ok':_0x141120['ok'],'status':_0x141120[_0x311ff4(0x1ec)],'statusText':_0x141120['statusText'],'data':_0x3bb207,'headers':_0x141120[_0x311ff4(0x1f9)],'url':_0x141120['url'],'text':()=>_0x141120[_0x311ff4(0x1fb)]()};}catch(_0x123415){_0x4c25e2=_0x123415 instanceof Error?_0x123415:new Error(String(_0x123415));if(_0x50805d===retries)break;if(shouldRetry(_0x123415)){console['log'](_0x311ff4(0x200)+retryDelay+_0x311ff4(0x1ff)+(_0x50805d+0x1)+_0x311ff4(0x1e9)),await sleep(retryDelay);continue;}else break;}}throw _0x4c25e2||new Error(_0x311ff4(0x1f7));}function a76_0xaa52(){const _0x1e882d=['get','109264UuWcqx','ECONNRESET','includes','message','1076382oIJYki','AbortError','10QrvZFn','7ermVQq','Request\x20failed','name','headers','312090ghTBnp','text','235AYKVdl','146712GfExaJ','fetch','ms\x20后进行第\x20','*\x20请求失败,','ENOTFOUND','signal','3747864kzpfpw','application/json','\x20次重试...','22058955apANBB','abort','status','759777UhGwzx'];a76_0xaa52=function(){return _0x1e882d;};return a76_0xaa52();}function shouldRetry(_0x4496dd){const _0x47b36c=a76_0x7ad5;if(_0x4496dd instanceof Error){if(_0x4496dd[_0x47b36c(0x1f8)]===_0x47b36c(0x1f4))return![];if(_0x4496dd[_0x47b36c(0x1f8)]==='TypeError'&&_0x4496dd[_0x47b36c(0x1f2)]['includes'](_0x47b36c(0x1fe)))return!![];if(_0x4496dd['message'][_0x47b36c(0x1f1)](_0x47b36c(0x1f0)))return!![];if(_0x4496dd[_0x47b36c(0x1f2)][_0x47b36c(0x1f1)](_0x47b36c(0x201)))return![];}return![];}function a76_0x7ad5(_0x23497e,_0x415198){_0x23497e=_0x23497e-0x1e8;const _0xaa52d5=a76_0xaa52();let _0x7ad52e=_0xaa52d5[_0x23497e];return _0x7ad52e;}function sleep(_0x48b78e){return new Promise(_0x1e4e8f=>setTimeout(_0x1e4e8f,_0x48b78e));}export function validateUrl(_0x1d0d24){try{return new URL(_0x1d0d24),!![];}catch{return![];}}
1
+ (function(_0x481a0b,_0xe02777){const _0x1e1527=a81_0x45ac,_0x5b8b34=_0x481a0b();while(!![]){try{const _0x2bfc08=-parseInt(_0x1e1527(0x17a))/0x1*(-parseInt(_0x1e1527(0x192))/0x2)+-parseInt(_0x1e1527(0x191))/0x3+-parseInt(_0x1e1527(0x185))/0x4*(parseInt(_0x1e1527(0x180))/0x5)+parseInt(_0x1e1527(0x197))/0x6+parseInt(_0x1e1527(0x182))/0x7*(parseInt(_0x1e1527(0x184))/0x8)+parseInt(_0x1e1527(0x17c))/0x9*(parseInt(_0x1e1527(0x18c))/0xa)+parseInt(_0x1e1527(0x186))/0xb;if(_0x2bfc08===_0xe02777)break;else _0x5b8b34['push'](_0x5b8b34['shift']());}catch(_0x5a4fcc){_0x5b8b34['push'](_0x5b8b34['shift']());}}}(a81_0x32a9,0x6a46c));export async function httpRequest(_0x35293d,_0x530290={}){const _0x4c1150=a81_0x45ac,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x530290;let _0xbf7d11=null;for(let _0x24e72e=0x0;_0x24e72e<=retries;_0x24e72e++){try{const _0x13b904=new AbortController(),_0x1b3e14=setTimeout(()=>_0x13b904['abort'](),timeout),_0x469920=await fetch(_0x35293d,{'headers':headers,'signal':_0x13b904['signal']});clearTimeout(_0x1b3e14);let _0x1ace56;const _0x54c015=_0x469920[_0x4c1150(0x194)][_0x4c1150(0x18e)](_0x4c1150(0x188));return _0x54c015?.['includes']('application/json')?_0x1ace56=await _0x469920['json']():_0x1ace56=await _0x469920[_0x4c1150(0x18d)](),{'ok':_0x469920['ok'],'status':_0x469920[_0x4c1150(0x17e)],'statusText':_0x469920[_0x4c1150(0x17f)],'data':_0x1ace56,'headers':_0x469920[_0x4c1150(0x194)],'url':_0x469920[_0x4c1150(0x189)],'text':()=>_0x469920['text']()};}catch(_0x10f577){_0xbf7d11=_0x10f577 instanceof Error?_0x10f577:new Error(String(_0x10f577));if(_0x24e72e===retries)break;if(shouldRetry(_0x10f577)){console[_0x4c1150(0x18b)](_0x4c1150(0x18f)+retryDelay+_0x4c1150(0x179)+(_0x24e72e+0x1)+_0x4c1150(0x17b)),await sleep(retryDelay);continue;}else break;}}throw _0xbf7d11||new Error(_0x4c1150(0x190));}function shouldRetry(_0x22374f){const _0x4e540c=a81_0x45ac;if(_0x22374f instanceof Error){if(_0x22374f['name']===_0x4e540c(0x187))return![];if(_0x22374f[_0x4e540c(0x181)]===_0x4e540c(0x183)&&_0x22374f[_0x4e540c(0x18a)][_0x4e540c(0x193)](_0x4e540c(0x195)))return!![];if(_0x22374f[_0x4e540c(0x18a)][_0x4e540c(0x193)](_0x4e540c(0x196)))return!![];if(_0x22374f[_0x4e540c(0x18a)][_0x4e540c(0x193)](_0x4e540c(0x17d)))return![];}return![];}function a81_0x32a9(){const _0x321aee=['40623goIXcq','\x20次重试...','54QhHmpF','ENOTFOUND','status','statusText','40lqbMxM','name','30842LlzOsD','TypeError','424gQDZDC','20324uCeNsj','3299296flvqiD','AbortError','content-type','url','message','log','235110fNobMk','text','get','*\x20请求失败,','Request\x20failed','2191455mHPJod','10LTZbBz','includes','headers','fetch','ECONNRESET','1972836yZXWyY','ms\x20后进行第\x20'];a81_0x32a9=function(){return _0x321aee;};return a81_0x32a9();}function a81_0x45ac(_0x282f2d,_0x342818){_0x282f2d=_0x282f2d-0x179;const _0x32a94c=a81_0x32a9();let _0x45ac69=_0x32a94c[_0x282f2d];return _0x45ac69;}function sleep(_0x50d9fb){return new Promise(_0x5d7aac=>setTimeout(_0x5d7aac,_0x50d9fb));}export function validateUrl(_0x48ce14){try{return new URL(_0x48ce14),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a77_0x668ae5=a77_0x52c0;(function(_0x127370,_0x5d5c22){const _0x336d58=a77_0x52c0,_0x3f9dd5=_0x127370();while(!![]){try{const _0x289afb=parseInt(_0x336d58(0xd8))/0x1+-parseInt(_0x336d58(0xef))/0x2*(parseInt(_0x336d58(0x104))/0x3)+-parseInt(_0x336d58(0xdf))/0x4+-parseInt(_0x336d58(0xea))/0x5*(parseInt(_0x336d58(0xf8))/0x6)+-parseInt(_0x336d58(0xf4))/0x7*(parseInt(_0x336d58(0xe7))/0x8)+-parseInt(_0x336d58(0x109))/0x9*(parseInt(_0x336d58(0xe9))/0xa)+parseInt(_0x336d58(0x102))/0xb;if(_0x289afb===_0x5d5c22)break;else _0x3f9dd5['push'](_0x3f9dd5['shift']());}catch(_0x9bfff6){_0x3f9dd5['push'](_0x3f9dd5['shift']());}}}(a77_0x4a0d,0x9d26c));function a77_0x52c0(_0x10515d,_0x5526a7){_0x10515d=_0x10515d-0xd4;const _0x4a0d1d=a77_0x4a0d();let _0x52c01a=_0x4a0d1d[_0x10515d];return _0x52c01a;}import a77_0x5a369c from'winston';import a77_0x16976d from'node:fs';import a77_0x187aac from'node:path';class Logger{[a77_0x668ae5(0xfd)];[a77_0x668ae5(0xf0)];[a77_0x668ae5(0xeb)]='';constructor(){const _0x3d1c82=a77_0x668ae5;this[_0x3d1c82(0xf0)]='';}['setRawCommand'](_0x3202c2){this['currentRawCommand']=_0x3202c2;}[a77_0x668ae5(0x108)](){const _0x347821=a77_0x668ae5,_0x1a39da=a77_0x187aac[_0x347821(0xda)](this[_0x347821(0xf0)]);!a77_0x16976d['existsSync'](_0x1a39da)&&a77_0x16976d[_0x347821(0xe0)](_0x1a39da,{'recursive':!![]});const _0x925101=a77_0x5a369c[_0x347821(0xfb)][_0x347821(0xe5)](a77_0x5a369c[_0x347821(0xfb)]['timestamp'](),a77_0x5a369c[_0x347821(0xfb)]['errors']({'stack':!![]}),a77_0x5a369c['format'][_0x347821(0xf9)](_0x4a0a4b=>{const _0x399c95=_0x347821,_0x5b990c={'timestamp':_0x4a0a4b[_0x399c95(0xec)]||new Date()[_0x399c95(0x107)](),'level':_0x4a0a4b[_0x399c95(0xd4)]||'info','command':_0x4a0a4b[_0x399c95(0x105)]||_0x399c95(0x10b),'rawCommand':_0x4a0a4b['rawCommand']||this[_0x399c95(0xeb)]||undefined,'message':_0x4a0a4b[_0x399c95(0xfc)]||'','duration':_0x4a0a4b[_0x399c95(0x10c)]||undefined,'details':_0x4a0a4b[_0x399c95(0xe4)]||undefined};return JSON['stringify'](_0x5b990c);}));this[_0x347821(0xfd)]=a77_0x5a369c[_0x347821(0xff)]({'level':_0x347821(0xed),'format':_0x925101,'transports':[new a77_0x5a369c['transports'][(_0x347821(0xdd))]({'filename':this[_0x347821(0xf0)],'level':_0x347821(0xed)})],'silent':![]}),a77_0x5a369c[_0x347821(0xe6)]({'success':_0x347821(0xf7),'error':_0x347821(0x106),'warn':_0x347821(0xe2),'info':_0x347821(0x100)});}[a77_0x668ae5(0xf3)](_0x305e15){const _0x57ef7b=a77_0x668ae5;this[_0x57ef7b(0xf0)]=a77_0x187aac['join'](_0x305e15,'.lovrabet.log'),this[_0x57ef7b(0xfd)]&&this[_0x57ef7b(0xfd)][_0x57ef7b(0xfe)](),this[_0x57ef7b(0x108)]();}[a77_0x668ae5(0xed)](_0x560bf1,_0x92f46a,_0x203dc5){const _0x1e0931=a77_0x668ae5;if(!this[_0x1e0931(0xf0)]||!this[_0x1e0931(0xfd)])return;this[_0x1e0931(0xfd)]['info'](_0x92f46a,{'command':_0x560bf1,'details':_0x203dc5});}[a77_0x668ae5(0xdc)](_0x2da4d0,_0x2de6e8,_0x37d2dc,_0x158f3f){const _0x589602=a77_0x668ae5;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x589602(0xfd)][_0x589602(0xd7)]('info',_0x2de6e8,{'level':'success','command':_0x2da4d0,'duration':_0x37d2dc,'details':_0x158f3f});}['error'](_0x582a3e,_0x2506ee,_0x489e51){const _0x4af0cb=a77_0x668ae5;if(!this[_0x4af0cb(0xf0)]||!this['winstonLogger'])return;this[_0x4af0cb(0xfd)][_0x4af0cb(0x103)](_0x2506ee,{'command':_0x582a3e,'details':_0x489e51});}[a77_0x668ae5(0xe8)](_0x440a2c,_0x967b08,_0xf32369){const _0x4dd6ea=a77_0x668ae5;if(!this[_0x4dd6ea(0xf0)]||!this[_0x4dd6ea(0xfd)])return;this[_0x4dd6ea(0xfd)][_0x4dd6ea(0xe8)](_0x967b08,{'command':_0x440a2c,'details':_0xf32369});}async[a77_0x668ae5(0xfa)](_0x1c2e2c,_0x4c208f,_0x4ecb38){const _0x207d2f=a77_0x668ae5,_0xb66631=Date['now']();this['info'](_0x1c2e2c,_0x207d2f(0xe1)+_0x4c208f);try{const _0x49bb0c=await _0x4ecb38(),_0x3f2d3b=Date['now']()-_0xb66631;return this[_0x207d2f(0xdc)](_0x1c2e2c,'完成:\x20'+_0x4c208f,_0x3f2d3b),_0x49bb0c;}catch(_0x2c0322){const _0x18d056=Date[_0x207d2f(0x101)]()-_0xb66631;this[_0x207d2f(0x103)](_0x1c2e2c,_0x207d2f(0xd9)+_0x4c208f,{'error':_0x2c0322 instanceof Error?_0x2c0322[_0x207d2f(0xfc)]:String(_0x2c0322),'duration':_0x18d056});throw _0x2c0322;}}[a77_0x668ae5(0x10a)](){const _0x24b992=a77_0x668ae5;try{if(!a77_0x16976d[_0x24b992(0xf1)](this[_0x24b992(0xf0)]))return[];const _0x598bdb=a77_0x16976d[_0x24b992(0xd6)](this[_0x24b992(0xf0)],'utf8');return _0x598bdb[_0x24b992(0xde)]('\x0a')[_0x24b992(0xf5)](_0x2a411e=>_0x2a411e[_0x24b992(0x10d)]())[_0x24b992(0xd5)](_0x3471b=>JSON['parse'](_0x3471b));}catch(_0x176a62){return console[_0x24b992(0xe8)](_0x24b992(0xee),_0x176a62),[];}}[a77_0x668ae5(0xdb)](){const _0x1f7d39=a77_0x668ae5;try{a77_0x16976d[_0x1f7d39(0xf1)](this['logFilePath'])&&a77_0x16976d[_0x1f7d39(0xf6)](this['logFilePath'],'',_0x1f7d39(0xf2));}catch(_0x264f66){console[_0x1f7d39(0xe8)](_0x1f7d39(0xe3),_0x264f66);}}['getWinstonInstance'](){const _0x2d0979=a77_0x668ae5;return this[_0x2d0979(0xfd)];}}export const logger=new Logger();function a77_0x4a0d(){const _0x135215=['2028120vIgzCp','mkdirSync','开始执行:\x20','yellow','Failed\x20to\x20clear\x20logs:','details','combine','addColors','8696vwgOME','warn','680ZNgkTK','5FyhVoj','currentRawCommand','timestamp','info','Failed\x20to\x20read\x20logs:','148iIbSLD','logFilePath','existsSync','utf8','setLogPath','7833bETFsg','filter','writeFileSync','green','3582696XcLdmO','printf','logTask','format','message','winstonLogger','clear','createLogger','blue','now','43246115rOeozk','error','38949HkrKTz','command','red','toISOString','initWinstonLogger','111123unpyWl','readLogs','unknown','duration','trim','level','map','readFileSync','log','833064EjGfwl','失败:\x20','dirname','clearLogs','success','File','split'];a77_0x4a0d=function(){return _0x135215;};return a77_0x4a0d();}
1
+ const a82_0x526f42=a82_0x11c5;(function(_0x52619f,_0x2451b6){const _0x5b87ba=a82_0x11c5,_0x333935=_0x52619f();while(!![]){try{const _0x1125f8=parseInt(_0x5b87ba(0xbb))/0x1*(-parseInt(_0x5b87ba(0xe2))/0x2)+-parseInt(_0x5b87ba(0xcd))/0x3*(parseInt(_0x5b87ba(0xe7))/0x4)+-parseInt(_0x5b87ba(0xb0))/0x5*(-parseInt(_0x5b87ba(0xc5))/0x6)+parseInt(_0x5b87ba(0xc6))/0x7*(parseInt(_0x5b87ba(0xdf))/0x8)+parseInt(_0x5b87ba(0xd6))/0x9*(-parseInt(_0x5b87ba(0xcf))/0xa)+parseInt(_0x5b87ba(0xd3))/0xb+-parseInt(_0x5b87ba(0xe8))/0xc*(parseInt(_0x5b87ba(0xeb))/0xd);if(_0x1125f8===_0x2451b6)break;else _0x333935['push'](_0x333935['shift']());}catch(_0x15f326){_0x333935['push'](_0x333935['shift']());}}}(a82_0xc3dc,0x91dbd));function a82_0x11c5(_0x1c567d,_0x7091d3){_0x1c567d=_0x1c567d-0xaf;const _0xc3dcf7=a82_0xc3dc();let _0x11c5d8=_0xc3dcf7[_0x1c567d];return _0x11c5d8;}function a82_0xc3dc(){const _0x3e8636=['1491108MjMnDH','split','map','13vfoZhh','now','3070575DOzXMI','setRawCommand','logFilePath','filter','existsSync','join','dirname','getWinstonInstance','winstonLogger','currentRawCommand','blue','15934mIyekk','rawCommand','writeFileSync','warn','Failed\x20to\x20clear\x20logs:','mkdirSync','errors','duration','parse','timestamp','6Manxpi','2555917dLakTa','.lovrabet.log','readFileSync','stringify','details','command','format','79107htiwzS','Failed\x20to\x20read\x20logs:','4290gcTUQu','readLogs','setLogPath','message','4391552PNTXtn','完成:\x20','success','9459iwWqqM','error','initWinstonLogger','unknown','yellow','level','开始执行:\x20','toISOString','clearLogs','24ciZmOU','logTask','clear','48RQzEyz','transports','info','trim','失败:\x20','84lqrFoP'];a82_0xc3dc=function(){return _0x3e8636;};return a82_0xc3dc();}import a82_0x51bdaf from'winston';import a82_0xd3f0f3 from'node:fs';import a82_0x1923a4 from'node:path';class Logger{['winstonLogger'];[a82_0x526f42(0xb2)];[a82_0x526f42(0xb9)]='';constructor(){const _0x1afada=a82_0x526f42;this[_0x1afada(0xb2)]='';}[a82_0x526f42(0xb1)](_0x491b4c){const _0x456de3=a82_0x526f42;this[_0x456de3(0xb9)]=_0x491b4c;}[a82_0x526f42(0xd8)](){const _0xe8e725=a82_0x526f42,_0x27fcd3=a82_0x1923a4[_0xe8e725(0xb6)](this[_0xe8e725(0xb2)]);!a82_0xd3f0f3[_0xe8e725(0xb4)](_0x27fcd3)&&a82_0xd3f0f3[_0xe8e725(0xc0)](_0x27fcd3,{'recursive':!![]});const _0x273eb9=a82_0x51bdaf['format']['combine'](a82_0x51bdaf[_0xe8e725(0xcc)]['timestamp'](),a82_0x51bdaf[_0xe8e725(0xcc)][_0xe8e725(0xc1)]({'stack':!![]}),a82_0x51bdaf['format']['printf'](_0x4da083=>{const _0x16171e=_0xe8e725,_0x56be69={'timestamp':_0x4da083[_0x16171e(0xc4)]||new Date()[_0x16171e(0xdd)](),'level':_0x4da083[_0x16171e(0xdb)]||_0x16171e(0xe4),'command':_0x4da083[_0x16171e(0xcb)]||_0x16171e(0xd9),'rawCommand':_0x4da083[_0x16171e(0xbc)]||this[_0x16171e(0xb9)]||undefined,'message':_0x4da083[_0x16171e(0xd2)]||'','duration':_0x4da083[_0x16171e(0xc2)]||undefined,'details':_0x4da083[_0x16171e(0xca)]||undefined};return JSON[_0x16171e(0xc9)](_0x56be69);}));this[_0xe8e725(0xb8)]=a82_0x51bdaf['createLogger']({'level':'info','format':_0x273eb9,'transports':[new a82_0x51bdaf[(_0xe8e725(0xe3))]['File']({'filename':this['logFilePath'],'level':_0xe8e725(0xe4)})],'silent':![]}),a82_0x51bdaf['addColors']({'success':'green','error':'red','warn':_0xe8e725(0xda),'info':_0xe8e725(0xba)});}[a82_0x526f42(0xd1)](_0xa0bb96){const _0x1d06e2=a82_0x526f42;this[_0x1d06e2(0xb2)]=a82_0x1923a4[_0x1d06e2(0xb5)](_0xa0bb96,_0x1d06e2(0xc7)),this[_0x1d06e2(0xb8)]&&this[_0x1d06e2(0xb8)][_0x1d06e2(0xe1)](),this[_0x1d06e2(0xd8)]();}['info'](_0x1477fa,_0x1a944a,_0x496be4){const _0x32cca0=a82_0x526f42;if(!this[_0x32cca0(0xb2)]||!this[_0x32cca0(0xb8)])return;this['winstonLogger'][_0x32cca0(0xe4)](_0x1a944a,{'command':_0x1477fa,'details':_0x496be4});}['success'](_0x4a787d,_0x1d8960,_0x4c750b,_0x369147){const _0x4f603e=a82_0x526f42;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x4f603e(0xb8)]['log'](_0x4f603e(0xe4),_0x1d8960,{'level':_0x4f603e(0xd5),'command':_0x4a787d,'duration':_0x4c750b,'details':_0x369147});}['error'](_0x3b44c4,_0x514406,_0x1aa2fa){const _0x563168=a82_0x526f42;if(!this['logFilePath']||!this[_0x563168(0xb8)])return;this[_0x563168(0xb8)][_0x563168(0xd7)](_0x514406,{'command':_0x3b44c4,'details':_0x1aa2fa});}[a82_0x526f42(0xbe)](_0xb61651,_0x1da249,_0x44e38f){const _0x4f83f7=a82_0x526f42;if(!this[_0x4f83f7(0xb2)]||!this[_0x4f83f7(0xb8)])return;this['winstonLogger'][_0x4f83f7(0xbe)](_0x1da249,{'command':_0xb61651,'details':_0x44e38f});}async[a82_0x526f42(0xe0)](_0x35df5e,_0x457d14,_0x2aad8d){const _0x370269=a82_0x526f42,_0x2f4713=Date[_0x370269(0xaf)]();this[_0x370269(0xe4)](_0x35df5e,_0x370269(0xdc)+_0x457d14);try{const _0xacb295=await _0x2aad8d(),_0x5c7f27=Date[_0x370269(0xaf)]()-_0x2f4713;return this[_0x370269(0xd5)](_0x35df5e,_0x370269(0xd4)+_0x457d14,_0x5c7f27),_0xacb295;}catch(_0x1da726){const _0x41f330=Date[_0x370269(0xaf)]()-_0x2f4713;this['error'](_0x35df5e,_0x370269(0xe6)+_0x457d14,{'error':_0x1da726 instanceof Error?_0x1da726[_0x370269(0xd2)]:String(_0x1da726),'duration':_0x41f330});throw _0x1da726;}}[a82_0x526f42(0xd0)](){const _0x1a671b=a82_0x526f42;try{if(!a82_0xd3f0f3['existsSync'](this['logFilePath']))return[];const _0x464608=a82_0xd3f0f3[_0x1a671b(0xc8)](this['logFilePath'],'utf8');return _0x464608[_0x1a671b(0xe9)]('\x0a')[_0x1a671b(0xb3)](_0x1c7cdf=>_0x1c7cdf[_0x1a671b(0xe5)]())[_0x1a671b(0xea)](_0x1f510a=>JSON[_0x1a671b(0xc3)](_0x1f510a));}catch(_0x8f7584){return console[_0x1a671b(0xbe)](_0x1a671b(0xce),_0x8f7584),[];}}[a82_0x526f42(0xde)](){const _0x2bf3ca=a82_0x526f42;try{a82_0xd3f0f3[_0x2bf3ca(0xb4)](this[_0x2bf3ca(0xb2)])&&a82_0xd3f0f3[_0x2bf3ca(0xbd)](this[_0x2bf3ca(0xb2)],'','utf8');}catch(_0x16d3da){console['warn'](_0x2bf3ca(0xbf),_0x16d3da);}}[a82_0x526f42(0xb7)](){const _0x445cc4=a82_0x526f42;return this[_0x445cc4(0xb8)];}}export const logger=new Logger();