@lovrabet/rabetbase-cli 2.1.1-beta.0 → 2.1.2-beta.0

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 (162) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -0
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -0
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -0
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -0
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -0
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -0
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -0
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -0
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/file-utils.js +1 -1
  149. package/lib/utils/guides-cdn.js +1 -1
  150. package/lib/utils/http-client.js +1 -1
  151. package/lib/utils/is-non-interactive.js +1 -1
  152. package/lib/utils/logger.js +1 -1
  153. package/lib/utils/platform.js +1 -1
  154. package/lib/utils/rules-cdn.js +1 -1
  155. package/lib/utils/sleep.js +1 -1
  156. package/lib/utils/template-replacer.js +1 -1
  157. package/lib/utils/version.js +1 -1
  158. package/lib/utils/with-active-cookie.js +1 -1
  159. package/lib/utils/write-cli-side-channel.js +1 -1
  160. package/package.json +3 -2
  161. package/lib/commands/api/doc.js +0 -1
  162. package/lib/commands/app/remote.js +0 -1
@@ -1 +1 @@
1
- const a130_0x14b15b=a130_0x1c51;(function(_0x17607c,_0x16eba4){const _0x3f6bd1=a130_0x1c51,_0xf39b81=_0x17607c();while(!![]){try{const _0x2a24b7=-parseInt(_0x3f6bd1(0x10b))/0x1*(-parseInt(_0x3f6bd1(0x113))/0x2)+parseInt(_0x3f6bd1(0x103))/0x3+parseInt(_0x3f6bd1(0xf9))/0x4*(parseInt(_0x3f6bd1(0x117))/0x5)+parseInt(_0x3f6bd1(0x115))/0x6*(parseInt(_0x3f6bd1(0x109))/0x7)+parseInt(_0x3f6bd1(0x110))/0x8+-parseInt(_0x3f6bd1(0x102))/0x9*(-parseInt(_0x3f6bd1(0x10e))/0xa)+-parseInt(_0x3f6bd1(0xfd))/0xb;if(_0x2a24b7===_0x16eba4)break;else _0xf39b81['push'](_0xf39b81['shift']());}catch(_0x31447d){_0xf39b81['push'](_0xf39b81['shift']());}}}(a130_0x1797,0xc0a4f));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a130_0x14b15b(0x112);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a130_0x14b15b(0x10f);export const RABETBASE_SKILL_SOURCE=a130_0x14b15b(0xff);export const DEFAULT_RABETBASE_SKILL_NAME=a130_0x14b15b(0x106);export function buildNpxSkillsAddArgv(_0x5ac50e=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x5ac50e];}function a130_0x1797(){const _0x588846=['remove','7356DGgBGf','status','60raTdOH','unknown','517276unRFoF','stdout','npx','inherit','70766751oHoYCM','stdio','lovrabet/lovrabet-skill','exit\x20','toString','9vNYbei','3525249LAopIk','stderr','yes','Lovrabet','pipe','join','7259wGTJqo','--global','1pxZHLa','log','skill','9521240kMHZaH','--skill','7263440BVuwLP','trim','skills','2728170mAhzvN'];a130_0x1797=function(){return _0x588846;};return a130_0x1797();}export const NPX_SKILLS_ADD_COMMAND_LINE=[a130_0x14b15b(0xfb),...buildNpxSkillsAddArgv()][a130_0x14b15b(0x108)]('\x20');function a130_0x1c51(_0x204baf,_0x2eca86){_0x204baf=_0x204baf-0xf8;const _0x1797b4=a130_0x1797();let _0x1c51e9=_0x1797b4[_0x204baf];return _0x1c51e9;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3b7cb2,_0x3622c3){const _0x4c4b3f=a130_0x14b15b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2ad1c0=_0x3622c3?.[_0x4c4b3f(0xfe)]??_0x4c4b3f(0xfc),_0x2a46cc=resolveNpmBin(_0x4c4b3f(0xfb)),_0x4d6960=buildNpxSkillsAddArgv(_0x3622c3?.[_0x4c4b3f(0x10d)]??DEFAULT_RABETBASE_SKILL_NAME),_0x3cd8a6=[_0x2a46cc,..._0x4d6960][_0x4c4b3f(0x108)]('\x20');console[_0x4c4b3f(0x10c)]('*\x20'+_0x3cd8a6);const _0x59b9b8=spawnSync(_0x2a46cc,_0x4d6960,{'cwd':_0x3b7cb2,'stdio':_0x2ad1c0,'env':process.env,'shell':![]}),_0x56a819=_0x59b9b8[_0x4c4b3f(0x116)];if(_0x56a819===0x0)return{'ok':!![],'status':0x0};let _0x7e03c3=_0x4c4b3f(0x100)+(_0x56a819??_0x4c4b3f(0xf8));if(_0x2ad1c0===_0x4c4b3f(0x107)){const _0x5e6d84=_0x59b9b8[_0x4c4b3f(0x104)]?_0x59b9b8[_0x4c4b3f(0x104)][_0x4c4b3f(0x101)]()[_0x4c4b3f(0x111)]():'',_0x1fec5f=_0x59b9b8[_0x4c4b3f(0xfa)]?_0x59b9b8[_0x4c4b3f(0xfa)][_0x4c4b3f(0x101)]()[_0x4c4b3f(0x111)]():'';if(_0x5e6d84)_0x7e03c3=_0x5e6d84;else{if(_0x1fec5f)_0x7e03c3=_0x1fec5f;}}return{'ok':![],'status':_0x56a819??null,'error':_0x7e03c3};}export function runNpxSkillsRemove(_0x10ac02,_0x26a476){const _0xf7de43=a130_0x14b15b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1dca2f=_0x26a476?.[_0xf7de43(0xfe)]??'inherit',_0x213731=resolveNpmBin(_0xf7de43(0xfb)),_0x3937f6=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xf7de43(0x114),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x26a476?.[_0xf7de43(0x10d)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x26a476?.[_0xf7de43(0x105)]?['-y']:[]],_0x195088=[_0x213731,..._0x3937f6]['join']('\x20');console['log']('*\x20'+_0x195088);const _0x196ff7=spawnSync(_0x213731,_0x3937f6,{'cwd':_0x10ac02,'stdio':_0x1dca2f,'env':process.env,'shell':![]}),_0x461cfe=_0x196ff7[_0xf7de43(0x116)];if(_0x461cfe===0x0)return{'ok':!![],'status':0x0};let _0x9cef43=_0xf7de43(0x100)+(_0x461cfe??_0xf7de43(0xf8));if(_0x1dca2f===_0xf7de43(0x107)){const _0x3ea309=_0x196ff7[_0xf7de43(0x104)]?_0x196ff7[_0xf7de43(0x104)]['toString']()[_0xf7de43(0x111)]():'',_0x2665a0=_0x196ff7[_0xf7de43(0xfa)]?_0x196ff7[_0xf7de43(0xfa)]['toString']()['trim']():'';if(_0x3ea309)_0x9cef43=_0x3ea309;else{if(_0x2665a0)_0x9cef43=_0x2665a0;}}return{'ok':![],'status':_0x461cfe??null,'error':_0x9cef43};}export function runNpxSkillsAddGlobal(_0x21e2ec,_0x547a03,_0x33a986){const _0xd4b57b=a130_0x14b15b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xb66933=_0x33a986?.[_0xd4b57b(0xfe)]??_0xd4b57b(0xfc),_0x1adbd8=resolveNpmBin('npx'),_0xbb05b4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x547a03,_0xd4b57b(0x10a),..._0x33a986?.[_0xd4b57b(0x105)]?['-y']:[]],_0x46c2e6=[_0x1adbd8,..._0xbb05b4][_0xd4b57b(0x108)]('\x20');console[_0xd4b57b(0x10c)]('*\x20'+_0x46c2e6);const _0x50447c=spawnSync(_0x1adbd8,_0xbb05b4,{'cwd':_0x21e2ec,'stdio':_0xb66933,'env':process.env,'shell':![]}),_0x9a7f5e=_0x50447c[_0xd4b57b(0x116)];if(_0x9a7f5e===0x0)return{'ok':!![],'status':0x0};let _0x5da425='exit\x20'+(_0x9a7f5e??'unknown');if(_0xb66933==='pipe'){const _0x2e06d8=_0x50447c[_0xd4b57b(0x104)]?_0x50447c[_0xd4b57b(0x104)]['toString']()[_0xd4b57b(0x111)]():'',_0x386637=_0x50447c[_0xd4b57b(0xfa)]?_0x50447c[_0xd4b57b(0xfa)][_0xd4b57b(0x101)]()[_0xd4b57b(0x111)]():'';if(_0x2e06d8)_0x5da425=_0x2e06d8;else{if(_0x386637)_0x5da425=_0x386637;}}return{'ok':![],'status':_0x9a7f5e??null,'error':_0x5da425};}
1
+ const a136_0x4a9f4a=a136_0x193c;(function(_0x2a76c0,_0x1d1616){const _0x29e87b=a136_0x193c,_0x2a6118=_0x2a76c0();while(!![]){try{const _0xcede2e=-parseInt(_0x29e87b(0x7a))/0x1*(parseInt(_0x29e87b(0x84))/0x2)+parseInt(_0x29e87b(0x79))/0x3+-parseInt(_0x29e87b(0x8b))/0x4*(-parseInt(_0x29e87b(0x78))/0x5)+parseInt(_0x29e87b(0x8a))/0x6+parseInt(_0x29e87b(0x86))/0x7+parseInt(_0x29e87b(0x7d))/0x8+-parseInt(_0x29e87b(0x81))/0x9;if(_0xcede2e===_0x1d1616)break;else _0x2a6118['push'](_0x2a6118['shift']());}catch(_0x57d350){_0x2a6118['push'](_0x2a6118['shift']());}}}(a136_0xfa29,0x5701b));function a136_0xfa29(){const _0x3d9d80=['yes','1903872xwLEWb','1489652SzdejB','log','exit\x20','stderr','--skill','lovrabet/lovrabet-skill','pipe','inherit','5YVbSjI','1681356eKCRyT','224947hUxQFx','unknown','status','1420440svLNQl','stdio','join','npx','13895046zMLFwn','trim','Lovrabet','2BpOAwF','skills','4882416MRlzXn','toString','stdout'];a136_0xfa29=function(){return _0x3d9d80;};return a136_0xfa29();}function a136_0x193c(_0x4a55ad,_0x5ef56e){_0x4a55ad=_0x4a55ad-0x71;const _0xfa29a2=a136_0xfa29();let _0x193ced=_0xfa29a2[_0x4a55ad];return _0x193ced;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x4a9f4a(0x85);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a136_0x4a9f4a(0x74);export const RABETBASE_SKILL_SOURCE=a136_0x4a9f4a(0x75);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x4a9f4a(0x83);export function buildNpxSkillsAddArgv(_0x114141=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x114141];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x4a9f4a(0x80),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x50e30c,_0x5e84e2){const _0x3204b2=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5340b7=_0x5e84e2?.['stdio']??_0x3204b2(0x77),_0x165919=resolveNpmBin(_0x3204b2(0x80)),_0x10cfdb=buildNpxSkillsAddArgv(_0x5e84e2?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x1197d4=[_0x165919,..._0x10cfdb]['join']('\x20');console['log']('*\x20'+_0x1197d4);const _0x1e574d=spawnSync(_0x165919,_0x10cfdb,{'cwd':_0x50e30c,'stdio':_0x5340b7,'env':process.env,'shell':![]}),_0x88eb48=_0x1e574d[_0x3204b2(0x7c)];if(_0x88eb48===0x0)return{'ok':!![],'status':0x0};let _0x3dbe32=_0x3204b2(0x72)+(_0x88eb48??'unknown');if(_0x5340b7==='pipe'){const _0x10175d=_0x1e574d['stderr']?_0x1e574d['stderr'][_0x3204b2(0x87)]()['trim']():'',_0x49ceb6=_0x1e574d['stdout']?_0x1e574d[_0x3204b2(0x88)][_0x3204b2(0x87)]()[_0x3204b2(0x82)]():'';if(_0x10175d)_0x3dbe32=_0x10175d;else{if(_0x49ceb6)_0x3dbe32=_0x49ceb6;}}return{'ok':![],'status':_0x88eb48??null,'error':_0x3dbe32};}export function runNpxSkillsRemove(_0x375639,_0x12041d){const _0x21d822=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20de70=_0x12041d?.[_0x21d822(0x7e)]??'inherit',_0x3ffe61=resolveNpmBin(_0x21d822(0x80)),_0x13a2d3=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x12041d?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x12041d?.[_0x21d822(0x89)]?['-y']:[]],_0x4dc43b=[_0x3ffe61,..._0x13a2d3][_0x21d822(0x7f)]('\x20');console[_0x21d822(0x71)]('*\x20'+_0x4dc43b);const _0x53310a=spawnSync(_0x3ffe61,_0x13a2d3,{'cwd':_0x375639,'stdio':_0x20de70,'env':process.env,'shell':![]}),_0x825d2b=_0x53310a[_0x21d822(0x7c)];if(_0x825d2b===0x0)return{'ok':!![],'status':0x0};let _0x275bfc=_0x21d822(0x72)+(_0x825d2b??_0x21d822(0x7b));if(_0x20de70==='pipe'){const _0x562876=_0x53310a[_0x21d822(0x73)]?_0x53310a[_0x21d822(0x73)]['toString']()[_0x21d822(0x82)]():'',_0xb48189=_0x53310a[_0x21d822(0x88)]?_0x53310a[_0x21d822(0x88)]['toString']()[_0x21d822(0x82)]():'';if(_0x562876)_0x275bfc=_0x562876;else{if(_0xb48189)_0x275bfc=_0xb48189;}}return{'ok':![],'status':_0x825d2b??null,'error':_0x275bfc};}export function runNpxSkillsAddGlobal(_0x1cfefb,_0x12c5ca,_0x5b9233){const _0x3c462d=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x190a8e=_0x5b9233?.[_0x3c462d(0x7e)]??_0x3c462d(0x77),_0x29fdb8=resolveNpmBin(_0x3c462d(0x80)),_0x248baf=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x12c5ca,'--global',..._0x5b9233?.[_0x3c462d(0x89)]?['-y']:[]],_0x87caa=[_0x29fdb8,..._0x248baf][_0x3c462d(0x7f)]('\x20');console[_0x3c462d(0x71)]('*\x20'+_0x87caa);const _0x148c63=spawnSync(_0x29fdb8,_0x248baf,{'cwd':_0x1cfefb,'stdio':_0x190a8e,'env':process.env,'shell':![]}),_0x321db6=_0x148c63[_0x3c462d(0x7c)];if(_0x321db6===0x0)return{'ok':!![],'status':0x0};let _0x59dade=_0x3c462d(0x72)+(_0x321db6??_0x3c462d(0x7b));if(_0x190a8e===_0x3c462d(0x76)){const _0xed981b=_0x148c63['stderr']?_0x148c63[_0x3c462d(0x73)][_0x3c462d(0x87)]()[_0x3c462d(0x82)]():'',_0x3764c8=_0x148c63['stdout']?_0x148c63[_0x3c462d(0x88)][_0x3c462d(0x87)]()[_0x3c462d(0x82)]():'';if(_0xed981b)_0x59dade=_0xed981b;else{if(_0x3764c8)_0x59dade=_0x3764c8;}}return{'ok':![],'status':_0x321db6??null,'error':_0x59dade};}
@@ -1 +1 @@
1
- (function(_0x3539a6,_0x2f2fcb){const _0x2b7513=a131_0x4832,_0x56583a=_0x3539a6();while(!![]){try{const _0x45427c=parseInt(_0x2b7513(0x1fb))/0x1*(-parseInt(_0x2b7513(0x1f2))/0x2)+parseInt(_0x2b7513(0x1f5))/0x3*(parseInt(_0x2b7513(0x1f1))/0x4)+-parseInt(_0x2b7513(0x1f8))/0x5+parseInt(_0x2b7513(0x1fd))/0x6*(-parseInt(_0x2b7513(0x1ed))/0x7)+parseInt(_0x2b7513(0x1ef))/0x8*(parseInt(_0x2b7513(0x1ff))/0x9)+-parseInt(_0x2b7513(0x1fc))/0xa+-parseInt(_0x2b7513(0x1f3))/0xb*(-parseInt(_0x2b7513(0x1e9))/0xc);if(_0x45427c===_0x2f2fcb)break;else _0x56583a['push'](_0x56583a['shift']());}catch(_0x31ce09){_0x56583a['push'](_0x56583a['shift']());}}}(a131_0x57c6,0x480d8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x1dd957){const _0x118692=a131_0x4832;return SENSITIVE_PATTERNS[_0x118692(0x1ec)](_0x5b85af=>_0x5b85af[_0x118692(0x1f7)](_0x1dd957));}function sanitizeFlags(_0x2a6f62){const _0x1122c2=a131_0x4832,_0x1c89d4={};for(const [_0x1001e3,_0x4306e2]of Object[_0x1122c2(0x1fe)](_0x2a6f62)){isSensitiveKey(_0x1001e3)?_0x1c89d4[_0x1001e3]=_0x4306e2!=null&&_0x4306e2!==''?_0x1122c2(0x1ea):_0x4306e2:_0x1c89d4[_0x1001e3]=_0x4306e2;}return _0x1c89d4;}export async function reportCommandTrace(_0x2bc9df){const _0x5938e8=a131_0x4832;try{const _0x21987d=sanitizeFlags(_0x2bc9df[_0x5938e8(0x1f9)]);await sendCliTraceLog({'spanName':_0x5938e8(0x1ee),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2bc9df[_0x5938e8(0x200)],'command.name':_0x2bc9df[_0x5938e8(0x1f0)],'command.flags':JSON[_0x5938e8(0x1eb)](_0x21987d),..._0x2bc9df[_0x5938e8(0x1f6)]!=null?{'command.duration_ms':_0x2bc9df[_0x5938e8(0x1f6)]}:{},..._0x2bc9df[_0x5938e8(0x1fa)]?{'command.error':_0x2bc9df[_0x5938e8(0x1fa)]instanceof Error?_0x2bc9df[_0x5938e8(0x1fa)][_0x5938e8(0x1f4)]:String(_0x2bc9df[_0x5938e8(0x1fa)])}:{}}});}catch{}}function a131_0x4832(_0x5a1089,_0x20cd3f){_0x5a1089=_0x5a1089-0x1e9;const _0x57c6ab=a131_0x57c6();let _0x483225=_0x57c6ab[_0x5a1089];return _0x483225;}function a131_0x57c6(){const _0x4e9c10=['4VaRuYi','1108943rofayT','message','7749UgtHJX','durationMs','test','2026905YXSllM','flags','error','88747ejbsAp','1765740FvzwzY','6AAzqNd','entries','3337740ktoAyP','service','48IaStpp','[REDACTED]','stringify','some','1906079JpxWXU','rabetbase.command','8mnpGtu','command','856cnJYcA'];a131_0x57c6=function(){return _0x4e9c10;};return a131_0x57c6();}
1
+ function a137_0x47c3(){const _0x56796c=['rabetbase.command','126279ytcOUs','10381840LQoqxD','error','238677EyPFyK','test','16rpLNAm','service','868875HTQFbY','412218dpmFFT','command','message','durationMs','629745NNlZjF','3550314uDBxWS','[REDACTED]'];a137_0x47c3=function(){return _0x56796c;};return a137_0x47c3();}(function(_0x5985b5,_0x4e3a6d){const _0x56f5f1=a137_0x5e89,_0x26dda2=_0x5985b5();while(!![]){try{const _0x58e2b9=parseInt(_0x56f5f1(0x1a5))/0x1+parseInt(_0x56f5f1(0x1aa))/0x2+-parseInt(_0x56f5f1(0x1a2))/0x3+parseInt(_0x56f5f1(0x1a7))/0x4*(parseInt(_0x56f5f1(0x1ae))/0x5)+parseInt(_0x56f5f1(0x1af))/0x6+parseInt(_0x56f5f1(0x1a9))/0x7+-parseInt(_0x56f5f1(0x1a3))/0x8;if(_0x58e2b9===_0x4e3a6d)break;else _0x26dda2['push'](_0x26dda2['shift']());}catch(_0x4dfd10){_0x26dda2['push'](_0x26dda2['shift']());}}}(a137_0x47c3,0x4f3fb));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function a137_0x5e89(_0x4d6afc,_0x597683){_0x4d6afc=_0x4d6afc-0x1a0;const _0x47c3ee=a137_0x47c3();let _0x5e8933=_0x47c3ee[_0x4d6afc];return _0x5e8933;}function isSensitiveKey(_0x63253a){const _0x314e81=a137_0x5e89;return SENSITIVE_PATTERNS['some'](_0x1ffc9d=>_0x1ffc9d[_0x314e81(0x1a6)](_0x63253a));}function sanitizeFlags(_0x58c6ad){const _0xe21202=a137_0x5e89,_0x31eed2={};for(const [_0x88ccd9,_0x136c2c]of Object['entries'](_0x58c6ad)){isSensitiveKey(_0x88ccd9)?_0x31eed2[_0x88ccd9]=_0x136c2c!=null&&_0x136c2c!==''?_0xe21202(0x1a0):_0x136c2c:_0x31eed2[_0x88ccd9]=_0x136c2c;}return _0x31eed2;}export async function reportCommandTrace(_0x3847aa){const _0x337951=a137_0x5e89;try{const _0x2bccdd=sanitizeFlags(_0x3847aa['flags']);await sendCliTraceLog({'spanName':_0x337951(0x1a1),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3847aa[_0x337951(0x1a8)],'command.name':_0x3847aa[_0x337951(0x1ab)],'command.flags':JSON['stringify'](_0x2bccdd),..._0x3847aa['durationMs']!=null?{'command.duration_ms':_0x3847aa[_0x337951(0x1ad)]}:{},..._0x3847aa['error']?{'command.error':_0x3847aa[_0x337951(0x1a4)]instanceof Error?_0x3847aa[_0x337951(0x1a4)][_0x337951(0x1ac)]:String(_0x3847aa[_0x337951(0x1a4)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x2ae7fe,_0x32b9b8){var _0x3828be=a132_0x572f,_0x2970f0=_0x2ae7fe();while(!![]){try{var _0x56bbfb=parseInt(_0x3828be(0x120))/0x1+-parseInt(_0x3828be(0x11e))/0x2+parseInt(_0x3828be(0x125))/0x3*(-parseInt(_0x3828be(0x11f))/0x4)+parseInt(_0x3828be(0x11d))/0x5+parseInt(_0x3828be(0x121))/0x6+-parseInt(_0x3828be(0x122))/0x7+parseInt(_0x3828be(0x123))/0x8;if(_0x56bbfb===_0x32b9b8)break;else _0x2970f0['push'](_0x2970f0['shift']());}catch(_0x26b7c7){_0x2970f0['push'](_0x2970f0['shift']());}}}(a132_0x4e02,0xf2375));function a132_0x572f(_0x1976e3,_0x4fb05f){_0x1976e3=_0x1976e3-0x11c;var _0x4e029=a132_0x4e02();var _0x572f25=_0x4e029[_0x1976e3];return _0x572f25;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a132_0x4e02(){var _0x41eb1e=['7588625xYFHcN','2774562KuNCQV','56UGdVJr','251024EnJfNx','8524404RWqXqh','13617443JySykE','21284512ztdrJC','Failed\x20to\x20report\x20CLI\x20help\x20trace:','326850tZGBMM','service'];a132_0x4e02=function(){return _0x41eb1e;};return a132_0x4e02();}export async function reportCliHelpTrace(_0x5b8b29,_0x20c12a){var _0x453f66=a132_0x572f;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x5b8b29,..._0x20c12a?.[_0x453f66(0x11c)]&&{'rabetbase.help.service':_0x20c12a['service']}}});}catch(_0x1247c1){console['error'](_0x453f66(0x124),_0x1247c1);}}
1
+ (function(_0xd0557b,_0x11b8d3){var _0x463c5c=a138_0x2dbd,_0x751485=_0xd0557b();while(!![]){try{var _0x323aa3=-parseInt(_0x463c5c(0xbf))/0x1+parseInt(_0x463c5c(0xc0))/0x2+-parseInt(_0x463c5c(0xca))/0x3+parseInt(_0x463c5c(0xcb))/0x4*(-parseInt(_0x463c5c(0xc5))/0x5)+parseInt(_0x463c5c(0xc1))/0x6*(parseInt(_0x463c5c(0xc4))/0x7)+-parseInt(_0x463c5c(0xc3))/0x8*(parseInt(_0x463c5c(0xc8))/0x9)+-parseInt(_0x463c5c(0xcc))/0xa*(-parseInt(_0x463c5c(0xbe))/0xb);if(_0x323aa3===_0x11b8d3)break;else _0x751485['push'](_0x751485['shift']());}catch(_0x5acbb4){_0x751485['push'](_0x751485['shift']());}}}(a138_0xcd6c,0xd3e33));function a138_0xcd6c(){var _0xe17034=['26785170CFCfvo','11MdHNML','1347947gVSZJn','2900718XWeVPj','1623666VhGwgx','service','265704qnNXCC','21zGskoU','6290PGwRhz','error','cli.help','162dITwaS','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1539069LYOxLr','5132oZnKkS'];a138_0xcd6c=function(){return _0xe17034;};return a138_0xcd6c();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a138_0x2dbd(_0x24b679,_0x419acc){_0x24b679=_0x24b679-0xbe;var _0xcd6cd=a138_0xcd6c();var _0x2dbda8=_0xcd6cd[_0x24b679];return _0x2dbda8;}export async function reportCliHelpTrace(_0x40f67c,_0x4787cc){var _0xe60831=a138_0x2dbd;try{await sendCliTraceLog({'spanName':_0xe60831(0xc7),'logData':{'rabetbase.help.kind':_0x40f67c,..._0x4787cc?.[_0xe60831(0xc2)]&&{'rabetbase.help.service':_0x4787cc[_0xe60831(0xc2)]}}});}catch(_0x4ba219){console[_0xe60831(0xc6)](_0xe60831(0xc9),_0x4ba219);}}
@@ -1 +1 @@
1
- (function(_0x1d0f82,_0x3ec0ca){const _0x213226=a133_0xb4a2,_0x2b260c=_0x1d0f82();while(!![]){try{const _0x14028f=parseInt(_0x213226(0xe2))/0x1*(parseInt(_0x213226(0xed))/0x2)+parseInt(_0x213226(0xe4))/0x3+-parseInt(_0x213226(0xee))/0x4*(-parseInt(_0x213226(0xe7))/0x5)+-parseInt(_0x213226(0xec))/0x6+parseInt(_0x213226(0xe6))/0x7*(-parseInt(_0x213226(0xe9))/0x8)+parseInt(_0x213226(0xea))/0x9+-parseInt(_0x213226(0xeb))/0xa;if(_0x14028f===_0x3ec0ca)break;else _0x2b260c['push'](_0x2b260c['shift']());}catch(_0x2af907){_0x2b260c['push'](_0x2b260c['shift']());}}}(a133_0x24ec,0x55316));import a133_0x333d90 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];function a133_0x24ec(){const _0x2c0ab9=['80irzCeI','production','698031zeTHDY','username','1508773TgFGOQ','11810KXldcQ','nickname','8IxjXov','1510443FsPWcj','4443650xYUydm','50496qQkVMN','5794ikTIJc','652XskRvL','rabetbase-cli','unknown','userInfo','daily'];a133_0x24ec=function(){return _0x2c0ab9;};return a133_0x24ec();}function a133_0xb4a2(_0x4cfd9f,_0x505c74){_0x4cfd9f=_0x4cfd9f-0xe2;const _0x24ecca=a133_0x24ec();let _0xb4a2b8=_0x24ecca[_0x4cfd9f];return _0xb4a2b8;}export async function ensureCliOtelTraceConfig(){const _0x5dc468=a133_0xb4a2,_0x2c1913=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x324250=_0x2c1913?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5dc468(0xf0)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5dc468(0xf2):_0x5dc468(0xe3)),'username':_0x324250?.[_0x5dc468(0xe5)]??a133_0x333d90[_0x5dc468(0xf1)]()[_0x5dc468(0xe5)]??_0x5dc468(0xef),..._0x324250&&{'nickname':_0x324250[_0x5dc468(0xe8)]}}),cliOtelTraceInitialized=!![];}return _0x2c1913;}
1
+ (function(_0x3c6c3a,_0x51cc01){const _0x13d5e1=a139_0x5d97,_0x419a80=_0x3c6c3a();while(!![]){try{const _0x1599e7=parseInt(_0x13d5e1(0x143))/0x1+parseInt(_0x13d5e1(0x140))/0x2*(-parseInt(_0x13d5e1(0x14f))/0x3)+parseInt(_0x13d5e1(0x144))/0x4+-parseInt(_0x13d5e1(0x145))/0x5+-parseInt(_0x13d5e1(0x141))/0x6*(parseInt(_0x13d5e1(0x150))/0x7)+-parseInt(_0x13d5e1(0x142))/0x8*(-parseInt(_0x13d5e1(0x14d))/0x9)+parseInt(_0x13d5e1(0x151))/0xa*(-parseInt(_0x13d5e1(0x14c))/0xb);if(_0x1599e7===_0x51cc01)break;else _0x419a80['push'](_0x419a80['shift']());}catch(_0x548c4d){_0x419a80['push'](_0x419a80['shift']());}}}(a139_0x50f1,0x57160));import a139_0x1bf7ec from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a139_0x5d97(_0x53f99e,_0x3f49c8){_0x53f99e=_0x53f99e-0x140;const _0x50f12d=a139_0x50f1();let _0x5d974f=_0x50f12d[_0x53f99e];return _0x5d974f;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];function a139_0x50f1(){const _0xf7029e=['1268019xZTBIU','user','63BpUkqM','449764NKvocX','40DIgUMa','47636vdfcCC','24ywPnKN','40rdhmyc','558685dVzPnX','303780ZnFFvO','134895GIiCPD','unknown','rabetbase-cli','nickname','userInfo','username','production','545094mzzubU'];a139_0x50f1=function(){return _0xf7029e;};return a139_0x50f1();}export async function ensureCliOtelTraceConfig(){const _0x27c55b=a139_0x5d97,_0x3ecf13=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x31a071=_0x3ecf13?.[_0x27c55b(0x14e)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x27c55b(0x146)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x27c55b(0x14b)),'username':_0x31a071?.[_0x27c55b(0x14a)]??a139_0x1bf7ec[_0x27c55b(0x149)]()['username']??_0x27c55b(0x147),..._0x31a071&&{'nickname':_0x31a071[_0x27c55b(0x148)]}}),cliOtelTraceInitialized=!![];}return _0x3ecf13;}
@@ -1 +1 @@
1
- function a134_0x16af(_0x57e145,_0x5d117d){_0x57e145=_0x57e145-0x65;const _0x1690ac=a134_0x1690();let _0x16afee=_0x1690ac[_0x57e145];return _0x16afee;}(function(_0x5a317f,_0x415cd3){const _0x4aed37=a134_0x16af,_0x3a811f=_0x5a317f();while(!![]){try{const _0x3766d1=-parseInt(_0x4aed37(0x72))/0x1+parseInt(_0x4aed37(0x66))/0x2+parseInt(_0x4aed37(0x69))/0x3+-parseInt(_0x4aed37(0x65))/0x4+-parseInt(_0x4aed37(0x6e))/0x5*(-parseInt(_0x4aed37(0x6b))/0x6)+-parseInt(_0x4aed37(0x6d))/0x7*(parseInt(_0x4aed37(0x71))/0x8)+parseInt(_0x4aed37(0x67))/0x9*(parseInt(_0x4aed37(0x6f))/0xa);if(_0x3766d1===_0x415cd3)break;else _0x3a811f['push'](_0x3a811f['shift']());}catch(_0x2d6680){_0x3a811f['push'](_0x3a811f['shift']());}}}(a134_0x1690,0x96232));function a134_0x1690(){const _0x403be2=['3609AraIIY','exit','2630364qcgWeg','once','60486GFqVuw','then','28IeFWLT','155LOKRTb','19750TtaLjn','SIGTERM','2039384nqqbMK','654960yMpUXk','2831388ntYISW','2032374OkOAiJ'];a134_0x1690=function(){return _0x403be2;};return a134_0x1690();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x36cfc3=a134_0x16af;process[_0x36cfc3(0x6a)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x5c9bb4=()=>{const _0x3b3d7b=_0x36cfc3;void flushOtelNodeIfUsed()[_0x3b3d7b(0x6c)](()=>process['exit'](0x0));};process['once']('SIGINT',_0x5c9bb4),process[_0x36cfc3(0x6a)](_0x36cfc3(0x70),_0x5c9bb4);}export async function exitWithOtelShutdown(_0x5ec0e8){const _0x4d8799=a134_0x16af;await flushOtelNodeIfUsed(),process[_0x4d8799(0x68)](_0x5ec0e8);}
1
+ (function(_0x7b300a,_0x2f6511){const _0x4e1298=a140_0x54c9,_0x258e63=_0x7b300a();while(!![]){try{const _0x15026a=-parseInt(_0x4e1298(0x101))/0x1+parseInt(_0x4e1298(0x104))/0x2*(-parseInt(_0x4e1298(0x102))/0x3)+parseInt(_0x4e1298(0xfa))/0x4*(parseInt(_0x4e1298(0x103))/0x5)+parseInt(_0x4e1298(0xf5))/0x6*(-parseInt(_0x4e1298(0xfe))/0x7)+parseInt(_0x4e1298(0xfd))/0x8*(parseInt(_0x4e1298(0x100))/0x9)+parseInt(_0x4e1298(0xfb))/0xa*(-parseInt(_0x4e1298(0xf7))/0xb)+-parseInt(_0x4e1298(0xfc))/0xc*(-parseInt(_0x4e1298(0xf9))/0xd);if(_0x15026a===_0x2f6511)break;else _0x258e63['push'](_0x258e63['shift']());}catch(_0x10909b){_0x258e63['push'](_0x258e63['shift']());}}}(a140_0x4789,0x469b3));function a140_0x4789(){const _0x324e9d=['53546fPmVgY','54bPigVn','once','76978NPBQNk','then','13tjKSyG','4GOsvUJ','730QeJQhu','16707624vZhjPI','232bNQoGW','80689gjUWqX','beforeExit','52983CVVMEU','557003MxBjZc','63EOMeUl','2300055YQgyJN'];a140_0x4789=function(){return _0x324e9d;};return a140_0x4789();}function a140_0x54c9(_0x2bff67,_0x55e069){_0x2bff67=_0x2bff67-0xf5;const _0x4789e0=a140_0x4789();let _0x54c9ff=_0x4789e0[_0x2bff67];return _0x54c9ff;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x571471=a140_0x54c9;process[_0x571471(0xf6)](_0x571471(0xff),()=>{void flushOtelNodeIfUsed();});const _0x49acf5=()=>{const _0x430add=_0x571471;void flushOtelNodeIfUsed()[_0x430add(0xf8)](()=>process['exit'](0x0));};process[_0x571471(0xf6)]('SIGINT',_0x49acf5),process[_0x571471(0xf6)]('SIGTERM',_0x49acf5);}export async function exitWithOtelShutdown(_0x269631){await flushOtelNodeIfUsed(),process['exit'](_0x269631);}
@@ -1 +1 @@
1
- const a135_0x5aa96d=a135_0x4f5a;(function(_0xebde42,_0x462b94){const _0x51e49c=a135_0x4f5a,_0x282d1e=_0xebde42();while(!![]){try{const _0x4f2f0c=parseInt(_0x51e49c(0x127))/0x1*(-parseInt(_0x51e49c(0x12a))/0x2)+parseInt(_0x51e49c(0x11d))/0x3+parseInt(_0x51e49c(0x126))/0x4+-parseInt(_0x51e49c(0x124))/0x5+parseInt(_0x51e49c(0x123))/0x6+parseInt(_0x51e49c(0x12c))/0x7*(parseInt(_0x51e49c(0x129))/0x8)+-parseInt(_0x51e49c(0x11e))/0x9;if(_0x4f2f0c===_0x462b94)break;else _0x282d1e['push'](_0x282d1e['shift']());}catch(_0x223b96){_0x282d1e['push'](_0x282d1e['shift']());}}}(a135_0x2ed1,0x2933d));import{sendTraceLog}from'@lovrabet/otel-logger';function a135_0x4f5a(_0x521b4a,_0x26b381){_0x521b4a=_0x521b4a-0x11d;const _0x2ed13d=a135_0x2ed1();let _0x4f5a85=_0x2ed13d[_0x521b4a];return _0x4f5a85;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a135_0x5aa96d(0x12b);function a135_0x2ed1(){const _0x1cf998=['manual','647004LDggwo','1306025yLZHiV','version','532544HPCckK','59SFMdnI','traceparent','584HdRHda','1774lGITbY','rabetbase-cli','12509syZqGE','411900toJGaU','237762qTXdEg','traceName','spanName','logData'];a135_0x2ed1=function(){return _0x1cf998;};return a135_0x2ed1();}export async function sendCliTraceLog(_0x39c86a){const _0x552cee=a135_0x5aa96d;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x39c86a[_0x552cee(0x11f)]??DEFAULT_TRACE_NAME,'version':_0x39c86a[_0x552cee(0x125)]??getCliVersion(),'spanName':_0x39c86a[_0x552cee(0x120)],'eventType':_0x552cee(0x122),'logData':_0x39c86a[_0x552cee(0x121)],..._0x39c86a[_0x552cee(0x128)]&&{'traceparent':_0x39c86a[_0x552cee(0x128)]}});}
1
+ const a141_0x2c6f2c=a141_0x5ccc;(function(_0x4560d4,_0x57f4e0){const _0x212714=a141_0x5ccc,_0x19c699=_0x4560d4();while(!![]){try{const _0x5108d4=-parseInt(_0x212714(0xb2))/0x1+parseInt(_0x212714(0xaf))/0x2+parseInt(_0x212714(0xac))/0x3+-parseInt(_0x212714(0xae))/0x4+parseInt(_0x212714(0xb6))/0x5*(parseInt(_0x212714(0xb7))/0x6)+parseInt(_0x212714(0xb5))/0x7+parseInt(_0x212714(0xb3))/0x8;if(_0x5108d4===_0x57f4e0)break;else _0x19c699['push'](_0x19c699['shift']());}catch(_0x5e001e){_0x19c699['push'](_0x19c699['shift']());}}}(a141_0x5c70,0x9d6d1));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a141_0x2c6f2c(0xb0);function a141_0x5ccc(_0x4769dc,_0x2ba937){_0x4769dc=_0x4769dc-0xac;const _0x5c7007=a141_0x5c70();let _0x5cccea=_0x5c7007[_0x4769dc];return _0x5cccea;}function a141_0x5c70(){const _0x40e05c=['5UQycbD','1627764pRfKrP','logData','traceName','67527dkmtKe','spanName','1670348rBHIXN','63310rGQYyc','rabetbase-cli','traceparent','582121BMDvJt','1150776eoGDEe','manual','8226540RWSCGj'];a141_0x5c70=function(){return _0x40e05c;};return a141_0x5c70();}export async function sendCliTraceLog(_0x3b6e10){const _0x35bfcf=a141_0x2c6f2c;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3b6e10[_0x35bfcf(0xb9)]??DEFAULT_TRACE_NAME,'version':_0x3b6e10['version']??getCliVersion(),'spanName':_0x3b6e10[_0x35bfcf(0xad)],'eventType':_0x35bfcf(0xb4),'logData':_0x3b6e10[_0x35bfcf(0xb8)],..._0x3b6e10['traceparent']&&{'traceparent':_0x3b6e10[_0x35bfcf(0xb1)]}});}
@@ -1 +1 @@
1
- const a137_0x2850b3=a137_0x1d9a;(function(_0x58e09e,_0x5b9839){const _0x4aa58f=a137_0x1d9a,_0xdc8ff=_0x58e09e();while(!![]){try{const _0x52072c=parseInt(_0x4aa58f(0x151))/0x1+-parseInt(_0x4aa58f(0x168))/0x2*(-parseInt(_0x4aa58f(0x16f))/0x3)+parseInt(_0x4aa58f(0x165))/0x4+parseInt(_0x4aa58f(0x16a))/0x5*(parseInt(_0x4aa58f(0x16c))/0x6)+-parseInt(_0x4aa58f(0x144))/0x7+-parseInt(_0x4aa58f(0x16e))/0x8*(-parseInt(_0x4aa58f(0x14c))/0x9)+parseInt(_0x4aa58f(0x14f))/0xa*(-parseInt(_0x4aa58f(0x174))/0xb);if(_0x52072c===_0x5b9839)break;else _0xdc8ff['push'](_0xdc8ff['shift']());}catch(_0x2b6291){_0xdc8ff['push'](_0xdc8ff['shift']());}}}(a137_0x1b5c,0x45200));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a137_0x2850b3(0x141),'folders':['.cursorrules',a137_0x2850b3(0x150)],'files':[{'type':a137_0x2850b3(0x149),'path':a137_0x2850b3(0x140),'template':a137_0x2850b3(0x164)}]},'windsurf':{'name':'Windsurf','description':a137_0x2850b3(0x160),'folders':[a137_0x2850b3(0x170)],'files':[{'type':a137_0x2850b3(0x149),'path':a137_0x2850b3(0x159),'template':a137_0x2850b3(0x164)}]},'claude':{'name':a137_0x2850b3(0x15d),'description':a137_0x2850b3(0x15d),'folders':[a137_0x2850b3(0x15b)],'files':[{'type':a137_0x2850b3(0x149),'path':a137_0x2850b3(0x169),'template':'SKILL.md.tpl'}]},'cline':{'name':a137_0x2850b3(0x15c),'description':a137_0x2850b3(0x14a),'folders':[a137_0x2850b3(0x143)],'files':[{'type':'file','path':a137_0x2850b3(0x16b),'template':a137_0x2850b3(0x164)}]},'codex':{'name':a137_0x2850b3(0x148),'description':a137_0x2850b3(0x157),'folders':[a137_0x2850b3(0x171)],'files':[{'type':a137_0x2850b3(0x149),'path':a137_0x2850b3(0x13a),'template':'SKILL.md.tpl'}]},'opencode':{'name':a137_0x2850b3(0x142),'description':'OpenCode\x20IDE','folders':[a137_0x2850b3(0x158)],'files':[{'type':a137_0x2850b3(0x149),'path':a137_0x2850b3(0x162),'template':'SKILL.md.tpl'}]},'qoder':{'name':a137_0x2850b3(0x13b),'description':a137_0x2850b3(0x14d),'folders':[a137_0x2850b3(0x147)],'files':[{'type':a137_0x2850b3(0x149),'path':'.qoder/rules/rabetbase.md','template':a137_0x2850b3(0x164)},{'type':a137_0x2850b3(0x149),'path':a137_0x2850b3(0x163),'template':a137_0x2850b3(0x164)}]},'codebuddy':{'name':a137_0x2850b3(0x145),'description':'CodeBuddy\x20IDE','folders':[a137_0x2850b3(0x154)],'files':[{'type':a137_0x2850b3(0x149),'path':a137_0x2850b3(0x146),'template':a137_0x2850b3(0x164)}]},'trae':{'name':a137_0x2850b3(0x156),'description':a137_0x2850b3(0x152),'folders':[a137_0x2850b3(0x13e)],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};function a137_0x1d9a(_0x3fb840,_0x13157c){_0x3fb840=_0x3fb840-0x13a;const _0x1b5c5f=a137_0x1b5c();let _0x1d9adc=_0x1b5c5f[_0x3fb840];return _0x1d9adc;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a137_0x2850b3(0x13c),'folders':[a137_0x2850b3(0x167)],'files':[{'type':a137_0x2850b3(0x149),'path':a137_0x2850b3(0x14b),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a137_0x2850b3(0x15f),'description':a137_0x2850b3(0x13f),'folders':['.agent'],'files':[{'type':'file','path':a137_0x2850b3(0x14b),'template':a137_0x2850b3(0x164)}]}};export const CORE_IDE_LIST=[a137_0x2850b3(0x172),a137_0x2850b3(0x161),a137_0x2850b3(0x16d),a137_0x2850b3(0x15a),'cursor','opencode',a137_0x2850b3(0x155),a137_0x2850b3(0x14e),a137_0x2850b3(0x153)];function a137_0x1b5c(){const _0x46f102=['codebuddy','24oCuMOw','777aerxMJ','.windsurf','.codex','claude','agent','22VpOMgG','.codex/skills/lovrabet/SKILL.md','Qoder','通用模板\x20-\x20兜底方案','opencode','.trae','Antigravity\x20IDE','.cursor/skills/rabetbase.md','Cursor\x20IDE','OpenCode','.cline','3597223RDauJJ','CodeBuddy','.codebuddy/skills/lovrabet/SKILL.md','.qoder','Codex','file','Cline\x20IDE','.agent/skills/lovrabet/SKILL.md','1144593lDSYuE','Qoder\x20IDE','trae','4325660MxAygi','.cursor','449466rPWJNN','Trae\x20IDE','windsurf','.codebuddy','qoder','Trae','Codex\x20IDE','.opencode','.windsurf/workflows/rabetbase.md','codex','.claude','Cline','Claude\x20Code','cursor','Antigravity','Windsurf\x20IDE','cline','.opencode/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','SKILL.md.tpl','1120968bOGhCh','antigravity','.agent','3556ofWths','.claude/skills/lovrabet/SKILL.md','226040XIWyiK','.cline/skills/lovrabet/SKILL.md','12OYNwSo'];a137_0x1b5c=function(){return _0x46f102;};return a137_0x1b5c();}export const IDE_LIST=[a137_0x2850b3(0x166),a137_0x2850b3(0x172),'cline',a137_0x2850b3(0x16d),a137_0x2850b3(0x15a),a137_0x2850b3(0x15e),a137_0x2850b3(0x13d),'qoder','trae','windsurf',a137_0x2850b3(0x173)];export const ALL_CORE_IDES=[a137_0x2850b3(0x15e),a137_0x2850b3(0x153),a137_0x2850b3(0x172),a137_0x2850b3(0x161),a137_0x2850b3(0x15a),a137_0x2850b3(0x13d),'qoder',a137_0x2850b3(0x16d),a137_0x2850b3(0x14e)];
1
+ const a143_0x394a13=a143_0xf00e;(function(_0x11a702,_0x35f1e7){const _0x42fc5c=a143_0xf00e,_0x4520bb=_0x11a702();while(!![]){try{const _0x196060=-parseInt(_0x42fc5c(0x16d))/0x1*(-parseInt(_0x42fc5c(0x163))/0x2)+-parseInt(_0x42fc5c(0x173))/0x3+-parseInt(_0x42fc5c(0x16f))/0x4*(parseInt(_0x42fc5c(0x154))/0x5)+-parseInt(_0x42fc5c(0x171))/0x6+-parseInt(_0x42fc5c(0x14a))/0x7+-parseInt(_0x42fc5c(0x149))/0x8+parseInt(_0x42fc5c(0x14d))/0x9*(parseInt(_0x42fc5c(0x157))/0xa);if(_0x196060===_0x35f1e7)break;else _0x4520bb['push'](_0x4520bb['shift']());}catch(_0x53904e){_0x4520bb['push'](_0x4520bb['shift']());}}}(a143_0x1b76,0x865db));export const CORE_IDE_CONFIGS={'cursor':{'name':a143_0x394a13(0x170),'description':a143_0x394a13(0x151),'folders':[a143_0x394a13(0x169),a143_0x394a13(0x153)],'files':[{'type':a143_0x394a13(0x13f),'path':a143_0x394a13(0x148),'template':a143_0x394a13(0x16a)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':['.windsurf'],'files':[{'type':'file','path':a143_0x394a13(0x161),'template':'SKILL.md.tpl'}]},'claude':{'name':'Claude\x20Code','description':a143_0x394a13(0x14b),'folders':['.claude'],'files':[{'type':a143_0x394a13(0x13f),'path':a143_0x394a13(0x142),'template':a143_0x394a13(0x16a)}]},'cline':{'name':a143_0x394a13(0x15a),'description':a143_0x394a13(0x146),'folders':[a143_0x394a13(0x165)],'files':[{'type':a143_0x394a13(0x13f),'path':a143_0x394a13(0x16c),'template':a143_0x394a13(0x16a)}]},'codex':{'name':a143_0x394a13(0x14e),'description':'Codex\x20IDE','folders':[a143_0x394a13(0x164)],'files':[{'type':a143_0x394a13(0x13f),'path':'.codex/skills/lovrabet/SKILL.md','template':a143_0x394a13(0x16a)}]},'opencode':{'name':'OpenCode','description':a143_0x394a13(0x159),'folders':['.opencode'],'files':[{'type':'file','path':a143_0x394a13(0x141),'template':a143_0x394a13(0x16a)}]},'qoder':{'name':a143_0x394a13(0x14f),'description':a143_0x394a13(0x172),'folders':['.qoder'],'files':[{'type':'file','path':a143_0x394a13(0x158),'template':a143_0x394a13(0x16a)},{'type':a143_0x394a13(0x13f),'path':a143_0x394a13(0x144),'template':a143_0x394a13(0x16a)}]},'codebuddy':{'name':a143_0x394a13(0x16b),'description':a143_0x394a13(0x15d),'folders':[a143_0x394a13(0x143)],'files':[{'type':a143_0x394a13(0x13f),'path':a143_0x394a13(0x162),'template':a143_0x394a13(0x16a)}]},'trae':{'name':'Trae','description':a143_0x394a13(0x13e),'folders':['.trae'],'files':[{'type':a143_0x394a13(0x13f),'path':a143_0x394a13(0x145),'template':a143_0x394a13(0x16a)}]}};function a143_0x1b76(){const _0x11d1a7=['.codebuddy','.qoder/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','Cline\x20IDE','trae','.cursor/skills/rabetbase.md','390312fLDJGf','4604579vWZOfC','Claude\x20Code','claude','500031gKVHqs','Codex','Qoder','opencode','Cursor\x20IDE','windsurf','.cursor','78035lfDvAo','antigravity','cursor','570FqtGeR','.qoder/rules/rabetbase.md','OpenCode\x20IDE','Cline','codebuddy','Antigravity\x20IDE','CodeBuddy\x20IDE','cline','.agent','其他\x20(通用模板)','.windsurf/workflows/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','4mNALlU','.codex','.cline','qoder','.agent/skills/lovrabet/SKILL.md','agent','.cursorrules','SKILL.md.tpl','CodeBuddy','.cline/skills/lovrabet/SKILL.md','193195YfPrqz','Antigravity','236OuWfwV','Cursor','6312648stqYuS','Qoder\x20IDE','970149hSBTso','Trae\x20IDE','file','codex','.opencode/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md'];a143_0x1b76=function(){return _0x11d1a7;};return a143_0x1b76();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a143_0x394a13(0x160),'description':'通用模板\x20-\x20兜底方案','folders':[a143_0x394a13(0x15f)],'files':[{'type':a143_0x394a13(0x13f),'path':a143_0x394a13(0x167),'template':a143_0x394a13(0x16a)}]},'antigravity':{'name':a143_0x394a13(0x16e),'description':a143_0x394a13(0x15c),'folders':[a143_0x394a13(0x15f)],'files':[{'type':'file','path':a143_0x394a13(0x167),'template':a143_0x394a13(0x16a)}]}};export const CORE_IDE_LIST=['claude','cline',a143_0x394a13(0x15b),a143_0x394a13(0x140),a143_0x394a13(0x156),a143_0x394a13(0x150),a143_0x394a13(0x166),a143_0x394a13(0x147),a143_0x394a13(0x152)];function a143_0xf00e(_0x5decab,_0x37c338){_0x5decab=_0x5decab-0x13e;const _0x1b7693=a143_0x1b76();let _0xf00eb3=_0x1b7693[_0x5decab];return _0xf00eb3;}export const IDE_LIST=[a143_0x394a13(0x155),a143_0x394a13(0x14c),a143_0x394a13(0x15e),'codebuddy','codex',a143_0x394a13(0x156),a143_0x394a13(0x150),'qoder',a143_0x394a13(0x147),a143_0x394a13(0x152),a143_0x394a13(0x168)];export const ALL_CORE_IDES=['cursor',a143_0x394a13(0x152),a143_0x394a13(0x14c),a143_0x394a13(0x15e),a143_0x394a13(0x140),a143_0x394a13(0x150),a143_0x394a13(0x166),'codebuddy',a143_0x394a13(0x147)];
@@ -1 +1 @@
1
- (function(_0x41486a,_0x54a649){const _0x35ef3d=a138_0xb9c0,_0x5966a9=_0x41486a();while(!![]){try{const _0x9d9f24=-parseInt(_0x35ef3d(0x1f2))/0x1*(-parseInt(_0x35ef3d(0x1f4))/0x2)+parseInt(_0x35ef3d(0x209))/0x3+-parseInt(_0x35ef3d(0x207))/0x4*(-parseInt(_0x35ef3d(0x1f6))/0x5)+-parseInt(_0x35ef3d(0x201))/0x6*(-parseInt(_0x35ef3d(0x1ff))/0x7)+parseInt(_0x35ef3d(0x1f5))/0x8+parseInt(_0x35ef3d(0x1f7))/0x9+-parseInt(_0x35ef3d(0x208))/0xa;if(_0x9d9f24===_0x54a649)break;else _0x5966a9['push'](_0x5966a9['shift']());}catch(_0x196ae2){_0x5966a9['push'](_0x5966a9['shift']());}}}(a138_0x2040,0xb54db));import{execFileSync}from'node:child_process';function a138_0x2040(){const _0x280c1f=['join','stderr','1414210ZcUkti','resolve','2NqnaKg','11224936ykyNiq','35VTlRbb','2809629pRRbuf','toString','jq.exe','win32','dirname','bin','code','test','3376093GiFyNA','e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq','12twXKuT','jq:\x20','platform','pipe','utf8','trim','380676sNmoBO','49722890IIKHac','2863857BPkVuN','ENOENT','message'];a138_0x2040=function(){return _0x280c1f;};return a138_0x2040();}import{existsSync}from'node:fs';import{createRequire}from'node:module';import a138_0x448528 from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function a138_0xb9c0(_0x5f4105,_0x6e5e04){_0x5f4105=_0x5f4105-0x1f0;const _0x204032=a138_0x2040();let _0xb9c032=_0x204032[_0x5f4105];return _0xb9c032;}function resolveJqBinary(){const _0x301c45=a138_0xb9c0;try{const _0x3204e7=createRequire(import.meta.url),_0xaf1eae=a138_0x448528[_0x301c45(0x1fb)](_0x3204e7[_0x301c45(0x1f3)]('node-jq/package.json')),_0xa5975e=a138_0x448528['join'](_0xaf1eae,_0x301c45(0x1fc)),_0xbc247=process[_0x301c45(0x203)]===_0x301c45(0x1fa)?_0x301c45(0x1f9):'jq',_0x2a1566=a138_0x448528[_0x301c45(0x1f0)](_0xa5975e,_0xbc247);if(existsSync(_0x2a1566))return _0x2a1566;}catch{}return'jq';}export function applyJqFilter(_0x3d9a5a,_0x3f869a){const _0x47cab1=a138_0xb9c0,_0x3dc96d=resolveJqBinary();try{return execFileSync(_0x3dc96d,[_0x3f869a],{'input':_0x3d9a5a,'encoding':_0x47cab1(0x205),'maxBuffer':MAX_BUFFER,'stdio':[_0x47cab1(0x204),_0x47cab1(0x204),_0x47cab1(0x204)]});}catch(_0x7b1591){const _0x1e697b=_0x7b1591;if(_0x1e697b[_0x47cab1(0x1fd)]===_0x47cab1(0x20a))throw CliErrors['validation']('--jq\x20needs\x20a\x20jq\x20binary.\x20Bundled\x20path\x20(from\x20node-jq)\x20was\x20not\x20found\x20and\x20`jq`\x20is\x20not\x20on\x20PATH.\x20Reinstall\x20dependencies\x20(allow\x20install\x20scripts),\x20set\x20JQ_PATH\x20to\x20a\x20jq\x20executable,\x20or\x20install\x20jq:\x20https://jqlang.org/',_0x47cab1(0x200));const _0x50173d=_0x1e697b[_0x47cab1(0x1f1)]?.[_0x47cab1(0x1f8)]?.()[_0x47cab1(0x206)]()??'',_0x5701e9=(_0x1e697b[_0x47cab1(0x20b)]??String(_0x7b1591))[_0x47cab1(0x206)](),_0x5588de=_0x50173d||_0x5701e9,_0x1cf332=/^\s*jq:/i[_0x47cab1(0x1fe)](_0x5588de)?_0x5588de:_0x47cab1(0x202)+_0x5588de;throw CliErrors['validation'](_0x1cf332);}}
1
+ (function(_0x39c732,_0x3f7bc9){const _0x2fc4b1=a144_0x5a22,_0x2e410a=_0x39c732();while(!![]){try{const _0x367a48=parseInt(_0x2fc4b1(0x11b))/0x1*(parseInt(_0x2fc4b1(0x11a))/0x2)+-parseInt(_0x2fc4b1(0x119))/0x3*(-parseInt(_0x2fc4b1(0x11c))/0x4)+parseInt(_0x2fc4b1(0x116))/0x5*(parseInt(_0x2fc4b1(0x11e))/0x6)+-parseInt(_0x2fc4b1(0x11f))/0x7+parseInt(_0x2fc4b1(0x117))/0x8+parseInt(_0x2fc4b1(0x118))/0x9+-parseInt(_0x2fc4b1(0x11d))/0xa;if(_0x367a48===_0x3f7bc9)break;else _0x2e410a['push'](_0x2e410a['shift']());}catch(_0x599b83){_0x2e410a['push'](_0x2e410a['shift']());}}}(a144_0x1382,0xc7acd));function a144_0x5a22(_0x3190c7,_0x1c185f){_0x3190c7=_0x3190c7-0x116;const _0x13826b=a144_0x1382();let _0x5a227e=_0x13826b[_0x3190c7];return _0x5a227e;}import{createJqFilter}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors);function a144_0x1382(){const _0x3163d3=['130AeNCxD','2373016CCEuNb','3734604qPzOnH','3SuDxzI','44312YYXVib','17bDxDXZ','2238004UBokAH','7238400BpNfJq','11970gOPkoo','1105279GvvdfG'];a144_0x1382=function(){return _0x3163d3;};return a144_0x1382();}
@@ -1 +1 @@
1
- (function(_0x1fe49d,_0x508e8d){const _0x591d9d=a139_0x5754,_0x156068=_0x1fe49d();while(!![]){try{const _0x54d93f=-parseInt(_0x591d9d(0x182))/0x1*(parseInt(_0x591d9d(0x179))/0x2)+-parseInt(_0x591d9d(0x17f))/0x3+parseInt(_0x591d9d(0x180))/0x4+parseInt(_0x591d9d(0x177))/0x5*(-parseInt(_0x591d9d(0x178))/0x6)+parseInt(_0x591d9d(0x176))/0x7+parseInt(_0x591d9d(0x181))/0x8+parseInt(_0x591d9d(0x17c))/0x9;if(_0x54d93f===_0x508e8d)break;else _0x156068['push'](_0x156068['shift']());}catch(_0x4f30f){_0x156068['push'](_0x156068['shift']());}}}(a139_0x57d4,0x2500e));import{getTemplateBaseUrl}from'../utils/config.js';function a139_0x5754(_0x23f0f,_0x3b83c1){_0x23f0f=_0x23f0f-0x174;const _0x57d4d2=a139_0x57d4();let _0x5754ab=_0x57d4d2[_0x23f0f];return _0x5754ab;}export async function fetchCdnConfig(){const _0x3347ab=a139_0x5754;try{const _0x349760=getTemplateBaseUrl(),_0x43826a=_0x349760+_0x3347ab(0x17a),_0x5de6c3=await fetch(_0x43826a,{'headers':{'Accept':_0x3347ab(0x184)}});if(!_0x5de6c3['ok'])return null;const _0x33cb4e=await _0x5de6c3[_0x3347ab(0x175)]();if(!_0x33cb4e[_0x3347ab(0x183)]?.['stableVersion']||!_0x33cb4e[_0x3347ab(0x17e)]?.[_0x3347ab(0x17b)]?.[_0x3347ab(0x17d)])return null;return _0x33cb4e;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;function a139_0x57d4(){const _0x21d253=['sdk','487872mQTZOd','646488ZBdnXR','1401560cpnoDf','2ShxODd','cli','application/json','now','json','1055250vsRWgi','5TOKPcE','1541172WSLewC','118468XegVZt','/config.json','node','1817577jKrigg','stableVersion'];a139_0x57d4=function(){return _0x21d253;};return a139_0x57d4();}const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x56a31b=a139_0x5754,_0x481972=Date[_0x56a31b(0x174)]();if(cachedConfig&&_0x481972-cacheTime<CACHE_TTL)return cachedConfig;const _0x272542=await fetchCdnConfig();return _0x272542&&(cachedConfig=_0x272542,cacheTime=_0x481972),_0x272542;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0x4fc2eb,_0x21340f){const _0x32ab8c=a145_0x20a8,_0x7b8413=_0x4fc2eb();while(!![]){try{const _0x35ecf6=parseInt(_0x32ab8c(0x18d))/0x1+-parseInt(_0x32ab8c(0x190))/0x2*(parseInt(_0x32ab8c(0x18f))/0x3)+parseInt(_0x32ab8c(0x195))/0x4*(-parseInt(_0x32ab8c(0x18a))/0x5)+parseInt(_0x32ab8c(0x18e))/0x6*(-parseInt(_0x32ab8c(0x193))/0x7)+parseInt(_0x32ab8c(0x194))/0x8+parseInt(_0x32ab8c(0x191))/0x9+parseInt(_0x32ab8c(0x18c))/0xa;if(_0x35ecf6===_0x21340f)break;else _0x7b8413['push'](_0x7b8413['shift']());}catch(_0x1d41e2){_0x7b8413['push'](_0x7b8413['shift']());}}}(a145_0x1d31,0x2d5be));function a145_0x1d31(){const _0x35525c=['stableVersion','application/json','node','now','15bZtSVJ','json','1723630ARaleN','30357vuBrUg','14262rPSkFX','3TliIZR','413758aDbIfZ','1687284aZCWcG','/config.json','63hzygwy','1370000MzRAOx','196512XHzCvk','cli'];a145_0x1d31=function(){return _0x35525c;};return a145_0x1d31();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2ffe42=a145_0x20a8;try{const _0x118939=getTemplateBaseUrl(),_0x34758b=_0x118939+_0x2ffe42(0x192),_0x3959cd=await fetch(_0x34758b,{'headers':{'Accept':_0x2ffe42(0x187)}});if(!_0x3959cd['ok'])return null;const _0x1f2286=await _0x3959cd[_0x2ffe42(0x18b)]();if(!_0x1f2286[_0x2ffe42(0x196)]?.[_0x2ffe42(0x186)]||!_0x1f2286['sdk']?.[_0x2ffe42(0x188)]?.[_0x2ffe42(0x186)])return null;return _0x1f2286;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x73a00d=a145_0x20a8,_0x42b945=Date[_0x73a00d(0x189)]();if(cachedConfig&&_0x42b945-cacheTime<CACHE_TTL)return cachedConfig;const _0x3bb555=await fetchCdnConfig();return _0x3bb555&&(cachedConfig=_0x3bb555,cacheTime=_0x42b945),_0x3bb555;}function a145_0x20a8(_0x23c3e0,_0x2d42ca){_0x23c3e0=_0x23c3e0-0x186;const _0x1d3183=a145_0x1d31();let _0x20a8a7=_0x1d3183[_0x23c3e0];return _0x20a8a7;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- const a140_0x5a7355=a140_0x5b68;(function(_0x143f90,_0xa0cb51){const _0x854e2f=a140_0x5b68,_0x479f9c=_0x143f90();while(!![]){try{const _0x55474d=-parseInt(_0x854e2f(0x1b2))/0x1+parseInt(_0x854e2f(0x1c7))/0x2*(parseInt(_0x854e2f(0x1c0))/0x3)+-parseInt(_0x854e2f(0x1b9))/0x4*(-parseInt(_0x854e2f(0x1b8))/0x5)+parseInt(_0x854e2f(0x1c1))/0x6+-parseInt(_0x854e2f(0x1d1))/0x7*(-parseInt(_0x854e2f(0x1bb))/0x8)+parseInt(_0x854e2f(0x1ac))/0x9+parseInt(_0x854e2f(0x1b1))/0xa*(-parseInt(_0x854e2f(0x1c5))/0xb);if(_0x55474d===_0xa0cb51)break;else _0x479f9c['push'](_0x479f9c['shift']());}catch(_0x2cbaf7){_0x479f9c['push'](_0x479f9c['shift']());}}}(a140_0x351d,0x51ac7));import a140_0x218a15 from'node:fs';import a140_0x4c37f from'node:path';import a140_0x1e6d74 from'semver';function a140_0x5b68(_0x2f92a7,_0x3cb3c4){_0x2f92a7=_0x2f92a7-0x1ab;const _0x351d74=a140_0x351d();let _0x5b689b=_0x351d74[_0x2f92a7];return _0x5b689b;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a140_0x5a7355(0x1ae);function isNonNumericVersion(_0x5c9314){const _0x19a3b1=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x19a3b1['some'](_0x563d7f=>_0x563d7f['test'](_0x5c9314));}function getInstalledVersion(_0x201833,_0x5f299e){const _0x278b6f=a140_0x5a7355;try{const _0x4b84b3=a140_0x4c37f[_0x278b6f(0x1bd)](_0x201833,'node_modules',_0x5f299e,'package.json');if(a140_0x218a15[_0x278b6f(0x1b5)](_0x4b84b3)){const _0x3aa903=JSON['parse'](a140_0x218a15['readFileSync'](_0x4b84b3,_0x278b6f(0x1b7)));return _0x3aa903[_0x278b6f(0x1ba)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5ccac7=a140_0x5a7355;try{const _0x8a45b6=await getCdnConfig();return _0x8a45b6?.[_0x5ccac7(0x1ab)]?.[_0x5ccac7(0x1c8)]?.[_0x5ccac7(0x1ce)]||null;}catch{return null;}}function a140_0x351d(){const _0x4fb449=['npm\x20install\x20','devDependencies','55BjoDsO','parse','14dzPiBH','node','utf8','\x20\x20\x20Current\x20version:\x20','readFileSync','@lovrabet/sdk','packageName','stableVersion','latest','log','42833krtkjb','\x1b[1m','sdk','3085569JpCVKy','dependencies','1.2.0','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','2199370payHWz','476624yUzBTR','\x1b[33m','\x1b[0m','existsSync','all','utf-8','1073115AdomLc','8GGRgEL','version','568RmpCAO','package.json','join','coerce','↪\x20SDK\x20update\x20available','86283UBIedn','3017886XPjJUg','minVersion'];a140_0x351d=function(){return _0x4fb449;};return a140_0x351d();}async function getSdkPackageName(){const _0x31011d=a140_0x5a7355;try{const _0x5457d2=await getCdnConfig();return _0x5457d2?.[_0x31011d(0x1ab)]?.[_0x31011d(0x1c8)]?.[_0x31011d(0x1cd)]||_0x31011d(0x1cc);}catch{return _0x31011d(0x1cc);}}export async function checkSdkVersion(_0x279797){const _0x5ac57b=a140_0x5a7355,_0x327416=a140_0x4c37f[_0x5ac57b(0x1bd)](_0x279797,_0x5ac57b(0x1bc)),[_0x3a6e63,_0x3e8d13]=await Promise[_0x5ac57b(0x1b6)]([getSdkStableVersion(),getSdkPackageName()]),_0x47544a=_0x3a6e63||FALLBACK_MIN_SDK_VERSION;if(!a140_0x218a15[_0x5ac57b(0x1b5)](_0x327416))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x47544a,'packageName':_0x3e8d13,'stableVersion':_0x3a6e63};try{const _0x255e2c=JSON[_0x5ac57b(0x1c6)](a140_0x218a15[_0x5ac57b(0x1cb)](_0x327416,_0x5ac57b(0x1c9))),_0x32792e=_0x255e2c[_0x5ac57b(0x1ad)]||{},_0x52da83=_0x255e2c[_0x5ac57b(0x1c4)]||{},_0x1a341a=_0x32792e[_0x3e8d13]||_0x52da83[_0x3e8d13];if(!_0x1a341a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x47544a,'packageName':_0x3e8d13,'stableVersion':_0x3a6e63};let _0x3d1c0e=getInstalledVersion(_0x279797,_0x3e8d13);!_0x3d1c0e&&(_0x3d1c0e=_0x1a341a);if(isNonNumericVersion(_0x1a341a))return{'installed':!![],'version':_0x3d1c0e,'needsUpgrade':![],'minVersion':_0x47544a,'packageName':_0x3e8d13,'stableVersion':_0x3a6e63};const _0x3aebdd=a140_0x1e6d74[_0x5ac57b(0x1be)](_0x3d1c0e),_0x547519=a140_0x1e6d74[_0x5ac57b(0x1be)](_0x47544a),_0x582f52=_0x3aebdd&&_0x547519?a140_0x1e6d74['lt'](_0x3aebdd,_0x547519):![];return{'installed':!![],'version':_0x3d1c0e,'needsUpgrade':_0x582f52,'minVersion':_0x47544a,'packageName':_0x3e8d13,'stableVersion':_0x3a6e63};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x47544a,'packageName':_0x3e8d13,'stableVersion':_0x3a6e63};}}export function checkSdkVersionSync(_0x4d2c23){const _0x24a541=a140_0x5a7355,_0x5ef299=a140_0x4c37f[_0x24a541(0x1bd)](_0x4d2c23,'package.json'),_0x11d090=_0x24a541(0x1cc);if(!a140_0x218a15[_0x24a541(0x1b5)](_0x5ef299))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11d090,'stableVersion':null};try{const _0x55ab24=JSON[_0x24a541(0x1c6)](a140_0x218a15[_0x24a541(0x1cb)](_0x5ef299,_0x24a541(0x1c9))),_0x3595e0=_0x55ab24[_0x24a541(0x1ad)]||{},_0x3e4b52=_0x55ab24[_0x24a541(0x1c4)]||{},_0x4aceaf=_0x3595e0[_0x11d090]||_0x3e4b52[_0x11d090];if(!_0x4aceaf)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11d090,'stableVersion':null};let _0x10a8bf=getInstalledVersion(_0x4d2c23,_0x11d090);!_0x10a8bf&&(_0x10a8bf=_0x4aceaf);if(isNonNumericVersion(_0x4aceaf))return{'installed':!![],'version':_0x10a8bf,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11d090,'stableVersion':null};const _0x3a9dc4=a140_0x1e6d74[_0x24a541(0x1be)](_0x10a8bf),_0x31e7f6=_0x3a9dc4?a140_0x1e6d74['lt'](_0x3a9dc4,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x10a8bf,'needsUpgrade':_0x31e7f6,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11d090,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11d090,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x37d73a){const _0x23c2f8=a140_0x5a7355;if(!_0x37d73a['needsUpgrade'])return;const _0x15beb1=_0x23c2f8(0x1b3),_0x4d0e86=_0x23c2f8(0x1b4),_0x59e31b=_0x23c2f8(0x1d2),_0x4e51df=_0x37d73a['packageName']||'@lovrabet/sdk',_0x5c92c1=_0x37d73a[_0x23c2f8(0x1ce)]||_0x37d73a[_0x23c2f8(0x1c2)],_0x2459b2=_0x23c2f8(0x1c3)+_0x4e51df+'@'+(_0x5c92c1||_0x23c2f8(0x1cf));console[_0x23c2f8(0x1d0)](),console[_0x23c2f8(0x1d0)](''+_0x15beb1+_0x59e31b+_0x23c2f8(0x1bf)+_0x4d0e86),console[_0x23c2f8(0x1d0)](_0x15beb1+_0x23c2f8(0x1ca)+_0x4e51df+'@'+_0x37d73a[_0x23c2f8(0x1ba)]+_0x4d0e86),console[_0x23c2f8(0x1d0)](_0x15beb1+_0x23c2f8(0x1b0)+_0x5c92c1+_0x4d0e86),console[_0x23c2f8(0x1d0)](_0x15beb1+_0x23c2f8(0x1af)+_0x2459b2+_0x4d0e86),console[_0x23c2f8(0x1d0)]();}
1
+ const a146_0x30174d=a146_0x4131;(function(_0x577bd6,_0x332115){const _0x4ee019=a146_0x4131,_0x2ebc9f=_0x577bd6();while(!![]){try{const _0x4a5f85=-parseInt(_0x4ee019(0x14c))/0x1+-parseInt(_0x4ee019(0x149))/0x2*(parseInt(_0x4ee019(0x134))/0x3)+parseInt(_0x4ee019(0x12c))/0x4+-parseInt(_0x4ee019(0x139))/0x5+parseInt(_0x4ee019(0x132))/0x6+-parseInt(_0x4ee019(0x14a))/0x7*(-parseInt(_0x4ee019(0x13e))/0x8)+parseInt(_0x4ee019(0x144))/0x9;if(_0x4a5f85===_0x332115)break;else _0x2ebc9f['push'](_0x2ebc9f['shift']());}catch(_0x48d6f6){_0x2ebc9f['push'](_0x2ebc9f['shift']());}}}(a146_0x1799,0x356b9));import a146_0x2620b7 from'node:fs';function a146_0x4131(_0x5151ff,_0x34c1b3){_0x5151ff=_0x5151ff-0x12c;const _0x1799e2=a146_0x1799();let _0x41312c=_0x1799e2[_0x5151ff];return _0x41312c;}import a146_0x21b8bb from'node:path';function a146_0x1799(){const _0x2ae6d1=['packageName','join','npm\x20install\x20','1383896dhLIdZ','existsSync','readFileSync','sdk','coerce','minVersion','2490150gXxoWX','dependencies','14607FOTKfj','test','utf-8','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','1437505aTHOAi','1.2.0','\x20\x20\x20Stable\x20version:\x20','\x1b[33m','version','24kVsMMd','\x20\x20\x20Current\x20version:\x20','needsUpgrade','devDependencies','parse','log','1892943SjKWrg','utf8','@lovrabet/sdk','node','all','114uOhMdN','418586mIyJZt','\x1b[1m','366877gWoIkt','package.json'];a146_0x1799=function(){return _0x2ae6d1;};return a146_0x1799();}import a146_0x1a2634 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a146_0x30174d(0x13a);function isNonNumericVersion(_0x13da0c){const _0x196a9c=a146_0x30174d,_0x39316a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x39316a['some'](_0x3a36aa=>_0x3a36aa[_0x196a9c(0x135)](_0x13da0c));}function getInstalledVersion(_0x473969,_0x139d34){const _0x5a6d84=a146_0x30174d;try{const _0x5cf2f6=a146_0x21b8bb['join'](_0x473969,'node_modules',_0x139d34,'package.json');if(a146_0x2620b7['existsSync'](_0x5cf2f6)){const _0x687f13=JSON[_0x5a6d84(0x142)](a146_0x2620b7[_0x5a6d84(0x12e)](_0x5cf2f6,_0x5a6d84(0x136)));return _0x687f13['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x61a4b=a146_0x30174d;try{const _0x5539d7=await getCdnConfig();return _0x5539d7?.[_0x61a4b(0x12f)]?.[_0x61a4b(0x147)]?.[_0x61a4b(0x137)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x25d8db=a146_0x30174d;try{const _0x570bd7=await getCdnConfig();return _0x570bd7?.[_0x25d8db(0x12f)]?.[_0x25d8db(0x147)]?.[_0x25d8db(0x14e)]||_0x25d8db(0x146);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x2e2a10){const _0x414793=a146_0x30174d,_0x492969=a146_0x21b8bb[_0x414793(0x14f)](_0x2e2a10,'package.json'),[_0x59c1a2,_0x128155]=await Promise[_0x414793(0x148)]([getSdkStableVersion(),getSdkPackageName()]),_0x19a48d=_0x59c1a2||FALLBACK_MIN_SDK_VERSION;if(!a146_0x2620b7['existsSync'](_0x492969))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x19a48d,'packageName':_0x128155,'stableVersion':_0x59c1a2};try{const _0x44ce11=JSON[_0x414793(0x142)](a146_0x2620b7[_0x414793(0x12e)](_0x492969,_0x414793(0x145))),_0x5195b6=_0x44ce11['dependencies']||{},_0x386efa=_0x44ce11['devDependencies']||{},_0x499e3d=_0x5195b6[_0x128155]||_0x386efa[_0x128155];if(!_0x499e3d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x19a48d,'packageName':_0x128155,'stableVersion':_0x59c1a2};let _0x5dba1b=getInstalledVersion(_0x2e2a10,_0x128155);!_0x5dba1b&&(_0x5dba1b=_0x499e3d);if(isNonNumericVersion(_0x499e3d))return{'installed':!![],'version':_0x5dba1b,'needsUpgrade':![],'minVersion':_0x19a48d,'packageName':_0x128155,'stableVersion':_0x59c1a2};const _0x4c3e37=a146_0x1a2634[_0x414793(0x130)](_0x5dba1b),_0x10b2ad=a146_0x1a2634[_0x414793(0x130)](_0x19a48d),_0x5a0611=_0x4c3e37&&_0x10b2ad?a146_0x1a2634['lt'](_0x4c3e37,_0x10b2ad):![];return{'installed':!![],'version':_0x5dba1b,'needsUpgrade':_0x5a0611,'minVersion':_0x19a48d,'packageName':_0x128155,'stableVersion':_0x59c1a2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x19a48d,'packageName':_0x128155,'stableVersion':_0x59c1a2};}}export function checkSdkVersionSync(_0x3e63b7){const _0x11f270=a146_0x30174d,_0x1d9780=a146_0x21b8bb[_0x11f270(0x14f)](_0x3e63b7,_0x11f270(0x14d)),_0x545699=_0x11f270(0x146);if(!a146_0x2620b7[_0x11f270(0x12d)](_0x1d9780))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x545699,'stableVersion':null};try{const _0x70718e=JSON[_0x11f270(0x142)](a146_0x2620b7[_0x11f270(0x12e)](_0x1d9780,_0x11f270(0x145))),_0x442b17=_0x70718e[_0x11f270(0x133)]||{},_0x32e8f0=_0x70718e[_0x11f270(0x141)]||{},_0x4a6ff5=_0x442b17[_0x545699]||_0x32e8f0[_0x545699];if(!_0x4a6ff5)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x545699,'stableVersion':null};let _0x48a011=getInstalledVersion(_0x3e63b7,_0x545699);!_0x48a011&&(_0x48a011=_0x4a6ff5);if(isNonNumericVersion(_0x4a6ff5))return{'installed':!![],'version':_0x48a011,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x545699,'stableVersion':null};const _0x65e5ef=a146_0x1a2634[_0x11f270(0x130)](_0x48a011),_0x59265d=_0x65e5ef?a146_0x1a2634['lt'](_0x65e5ef,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x48a011,'needsUpgrade':_0x59265d,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x545699,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x545699,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x351db1){const _0x51c8ff=a146_0x30174d;if(!_0x351db1[_0x51c8ff(0x140)])return;const _0x4ec08c=_0x51c8ff(0x13c),_0x362686='\x1b[0m',_0x1a19d0=_0x51c8ff(0x14b),_0x34c38c=_0x351db1[_0x51c8ff(0x14e)]||_0x51c8ff(0x146),_0x343d4e=_0x351db1[_0x51c8ff(0x137)]||_0x351db1[_0x51c8ff(0x131)],_0x5d084d=_0x51c8ff(0x150)+_0x34c38c+'@'+(_0x343d4e||'latest');console['log'](),console[_0x51c8ff(0x143)](''+_0x4ec08c+_0x1a19d0+'↪\x20SDK\x20update\x20available'+_0x362686),console[_0x51c8ff(0x143)](_0x4ec08c+_0x51c8ff(0x13f)+_0x34c38c+'@'+_0x351db1[_0x51c8ff(0x13d)]+_0x362686),console[_0x51c8ff(0x143)](_0x4ec08c+_0x51c8ff(0x13b)+_0x343d4e+_0x362686),console[_0x51c8ff(0x143)](_0x4ec08c+_0x51c8ff(0x138)+_0x5d084d+_0x362686),console['log']();}
@@ -1 +1 @@
1
- (function(_0x1cfb8a,_0x465c28){const _0x15d65a=a141_0x143c,_0xd7c8e=_0x1cfb8a();while(!![]){try{const _0x4c8e61=-parseInt(_0x15d65a(0x13b))/0x1+-parseInt(_0x15d65a(0x141))/0x2+-parseInt(_0x15d65a(0x13f))/0x3*(-parseInt(_0x15d65a(0x144))/0x4)+parseInt(_0x15d65a(0x132))/0x5*(parseInt(_0x15d65a(0x138))/0x6)+-parseInt(_0x15d65a(0x131))/0x7+-parseInt(_0x15d65a(0x12d))/0x8*(parseInt(_0x15d65a(0x130))/0x9)+parseInt(_0x15d65a(0x143))/0xa;if(_0x4c8e61===_0x465c28)break;else _0xd7c8e['push'](_0xd7c8e['shift']());}catch(_0x2db747){_0xd7c8e['push'](_0xd7c8e['shift']());}}}(a141_0x46bc,0x19445));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a141_0x143c(_0x27ea62,_0x1bbb7d){_0x27ea62=_0x27ea62-0x12a;const _0x46bcdc=a141_0x46bc();let _0x143c53=_0x46bcdc[_0x27ea62];return _0x143c53;}import{fileURLToPath}from'node:url';import a141_0x427eab from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x4ddefe=a141_0x143c;try{const _0x3a7380=fileURLToPath(import.meta.url),_0x6d590a=resolve(dirname(_0x3a7380),_0x4ddefe(0x137)),_0x56e160=resolve(_0x6d590a,_0x4ddefe(0x13c)),_0x51a46e=JSON[_0x4ddefe(0x135)](readFileSync(_0x56e160,'utf-8'));return _0x51a46e['version']||_0x4ddefe(0x13a);}catch{return _0x4ddefe(0x13a);}}function isNonNumericVersion(_0x59f29a){const _0xec47f5=a141_0x143c,_0x28921c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x28921c['some'](_0x4cefeb=>_0x4cefeb[_0xec47f5(0x140)](_0x59f29a));}export async function checkCliVersion(){const _0x18973e=a141_0x143c,_0x4f2cb3=getCurrentCliVersion(),_0x3a672a=await getCdnConfig(),_0x4e8755=_0x3a672a?.[_0x18973e(0x134)]?.['stableVersion']||null;let _0x122e6b=![];if(_0x4e8755)try{const _0x39199c=a141_0x427eab['coerce'](_0x4f2cb3),_0x4c7541=a141_0x427eab[_0x18973e(0x12e)](_0x4e8755);_0x39199c&&_0x4c7541&&(_0x122e6b=a141_0x427eab['lt'](_0x39199c,_0x4c7541));}catch{_0x122e6b=![];}return{'currentVersion':_0x4f2cb3,'stableVersion':_0x4e8755,'needsUpgrade':_0x122e6b,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x3e3752){const _0x289a45=a141_0x143c;if(!_0x3e3752[_0x289a45(0x13d)])return;const _0x4205a9=_0x289a45(0x12c),_0x3909f6=_0x289a45(0x133),_0xf7e90b=_0x289a45(0x146),_0x4c3796=_0x289a45(0x12f)+NPM_PACKAGE_NAME+_0x289a45(0x12b);console[_0x289a45(0x13e)](),console['log'](''+_0x4205a9+_0xf7e90b+_0x289a45(0x136)+_0x3909f6),console[_0x289a45(0x13e)](_0x4205a9+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3e3752[_0x289a45(0x145)]+_0x3909f6),console['log'](_0x4205a9+_0x289a45(0x12a)+_0x3e3752[_0x289a45(0x139)]+_0x3909f6),console[_0x289a45(0x13e)](_0x4205a9+_0x289a45(0x142)+_0x4c3796+_0x3909f6),console[_0x289a45(0x13e)]();}function a141_0x46bc(){const _0x47fa9e=['coerce','npm\x20install\x20-g\x20','860040VBrLXi','484981nuwcFc','26805rHMGCc','\x1b[0m','cli','parse','↪\x20New\x20version\x20available','../..','66FjjTlH','stableVersion','1.0.0','78162IKTwfw','package.json','needsUpgrade','log','30ZqldQK','test','349380PvEGQd','\x20\x20\x20Upgrade\x20command:\x20','4167470HDKLSA','18188ZsUBkr','currentVersion','\x1b[1m','\x20\x20\x20Stable\x20version:\x20','@latest','\x1b[33m','8IFKIOB'];a141_0x46bc=function(){return _0x47fa9e;};return a141_0x46bc();}
1
+ (function(_0x109d56,_0x494cc4){const _0x1d7c87=a147_0x5aaf,_0x14da44=_0x109d56();while(!![]){try{const _0x4a7708=parseInt(_0x1d7c87(0xc6))/0x1*(-parseInt(_0x1d7c87(0xd2))/0x2)+-parseInt(_0x1d7c87(0xca))/0x3+parseInt(_0x1d7c87(0xcf))/0x4+-parseInt(_0x1d7c87(0xbf))/0x5*(-parseInt(_0x1d7c87(0xbd))/0x6)+-parseInt(_0x1d7c87(0xd0))/0x7+parseInt(_0x1d7c87(0xce))/0x8+parseInt(_0x1d7c87(0xd4))/0x9;if(_0x4a7708===_0x494cc4)break;else _0x14da44['push'](_0x14da44['shift']());}catch(_0x1008de){_0x14da44['push'](_0x14da44['shift']());}}}(a147_0x429c,0x59a5f));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a147_0x5aaf(_0x579eeb,_0x3705c2){_0x579eeb=_0x579eeb-0xba;const _0x429c53=a147_0x429c();let _0x5aaf28=_0x429c53[_0x579eeb];return _0x5aaf28;}import{fileURLToPath}from'node:url';import a147_0xeb692f from'semver';function a147_0x429c(){const _0x1fb547=['@latest','package.json','1hrNsyo','../..','log','coerce','1826427vLBoEh','↪\x20New\x20version\x20available','some','\x1b[33m','5547168ednfbB','1322132tdWVLe','4333210ulsHwP','\x1b[1m','1214854VcjfZR','needsUpgrade','8894052rAONBF','utf-8','currentVersion','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','190308waFaoA','cli','30EUcUzf','parse','stableVersion','test','1.0.0'];a147_0x429c=function(){return _0x1fb547;};return a147_0x429c();}import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x45488a=a147_0x5aaf;try{const _0x2843f0=fileURLToPath(import.meta.url),_0x347998=resolve(dirname(_0x2843f0),_0x45488a(0xc7)),_0x50c75b=resolve(_0x347998,_0x45488a(0xc5)),_0x3e2acd=JSON[_0x45488a(0xc0)](readFileSync(_0x50c75b,_0x45488a(0xd5)));return _0x3e2acd['version']||_0x45488a(0xc3);}catch{return _0x45488a(0xc3);}}function isNonNumericVersion(_0x510144){const _0x590d23=a147_0x5aaf,_0x93266c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x93266c[_0x590d23(0xcc)](_0x4e15bd=>_0x4e15bd[_0x590d23(0xc2)](_0x510144));}export async function checkCliVersion(){const _0x1cca86=a147_0x5aaf,_0x54a741=getCurrentCliVersion(),_0x16913b=await getCdnConfig(),_0x464ca2=_0x16913b?.[_0x1cca86(0xbe)]?.[_0x1cca86(0xc1)]||null;let _0x4b027c=![];if(_0x464ca2)try{const _0x1b07b3=a147_0xeb692f[_0x1cca86(0xc9)](_0x54a741),_0x55acab=a147_0xeb692f[_0x1cca86(0xc9)](_0x464ca2);_0x1b07b3&&_0x55acab&&(_0x4b027c=a147_0xeb692f['lt'](_0x1b07b3,_0x55acab));}catch{_0x4b027c=![];}return{'currentVersion':_0x54a741,'stableVersion':_0x464ca2,'needsUpgrade':_0x4b027c,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x24a175){const _0x42b431=a147_0x5aaf;if(!_0x24a175[_0x42b431(0xd3)])return;const _0x10d3fd=_0x42b431(0xcd),_0x574c0d='\x1b[0m',_0xd68ec5=_0x42b431(0xd1),_0x50b456='npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x42b431(0xc4);console['log'](),console[_0x42b431(0xc8)](''+_0x10d3fd+_0xd68ec5+_0x42b431(0xcb)+_0x574c0d),console[_0x42b431(0xc8)](_0x10d3fd+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x24a175[_0x42b431(0xba)]+_0x574c0d),console[_0x42b431(0xc8)](_0x10d3fd+_0x42b431(0xbb)+_0x24a175[_0x42b431(0xc1)]+_0x574c0d),console[_0x42b431(0xc8)](_0x10d3fd+_0x42b431(0xbc)+_0x50b456+_0x574c0d),console[_0x42b431(0xc8)]();}
@@ -1 +1 @@
1
- const a142_0x4c88d1=a142_0x2e9e;(function(_0x318e8e,_0x498a0d){const _0x48b25f=a142_0x2e9e,_0x39e9ba=_0x318e8e();while(!![]){try{const _0x26b92f=parseInt(_0x48b25f(0x102))/0x1+parseInt(_0x48b25f(0x104))/0x2+parseInt(_0x48b25f(0x106))/0x3*(parseInt(_0x48b25f(0xf9))/0x4)+-parseInt(_0x48b25f(0xed))/0x5*(parseInt(_0x48b25f(0x101))/0x6)+parseInt(_0x48b25f(0xf8))/0x7*(parseInt(_0x48b25f(0xf7))/0x8)+-parseInt(_0x48b25f(0xfc))/0x9+-parseInt(_0x48b25f(0xf6))/0xa*(-parseInt(_0x48b25f(0xfd))/0xb);if(_0x26b92f===_0x498a0d)break;else _0x39e9ba['push'](_0x39e9ba['shift']());}catch(_0x51fa5b){_0x39e9ba['push'](_0x39e9ba['shift']());}}}(a142_0x1d51,0xa1242));import{initEnv}from'../constant/env.js';import{readRawConfig,loadRawConfigLayers}from'../context.js';function a142_0x2e9e(_0xc135d9,_0x1c03d2){_0xc135d9=_0xc135d9-0xec;const _0x1d51fd=a142_0x1d51();let _0x2e9efb=_0x1d51fd[_0xc135d9];return _0x2e9efb;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x54d4f1){const _0x230d61=a142_0x2e9e,_0x6add69=readRawConfig(_0x54d4f1);return _0x6add69[_0x230d61(0xef)]&&typeof _0x6add69[_0x230d61(0xef)]===_0x230d61(0x105)&&initEnv(_0x6add69[_0x230d61(0xef)]),_0x6add69;}export function getConfigAppCode(){const _0x38b0ff=a142_0x2e9e,_0x12ff5a=readRawConfig();if(_0x12ff5a[_0x38b0ff(0xf4)]&&typeof _0x12ff5a['apps']==='object'){const _0x4772db=_0x12ff5a[_0x38b0ff(0xec)];if(_0x4772db&&_0x12ff5a[_0x38b0ff(0xf4)][_0x4772db]?.[_0x38b0ff(0x103)])return String(_0x12ff5a[_0x38b0ff(0xf4)][_0x4772db][_0x38b0ff(0x103)])[_0x38b0ff(0xfb)]();const _0x4687d3=Object[_0x38b0ff(0xfa)](_0x12ff5a[_0x38b0ff(0xf4)])[0x0];if(_0x4687d3?.['appcode'])return String(_0x4687d3['appcode'])['trim']();}const _0x21de24=_0x12ff5a[_0x38b0ff(0x103)]||_0x12ff5a[_0x38b0ff(0x107)];if(typeof _0x21de24!=='string'||_0x21de24[_0x38b0ff(0xfb)]()==='')return undefined;return _0x21de24[_0x38b0ff(0xfb)]();}function a142_0x1d51(){const _0x5734a8=['7139044GwOzOY','https://g.lovrabet.com/dist/lovrabet-skill','length','merged','564ORNvoT','530598JZfBDI','appcode','407608IjascY','string','3BTNKIV','app','defaultApp','54685KeVJQU','filter','env','template_base_url','project','object','entries','apps','keys','10CCNhKw','16brEghK','1561609lriccm','2854676qMKjXR','values','trim','7696233NESpow'];a142_0x1d51=function(){return _0x5734a8;};return a142_0x1d51();}export function getMultiAppConfigs(_0x32e524=a142_0x4c88d1(0xf1)){const _0x3b302d=a142_0x4c88d1,_0x3b7d30=_0x32e524===_0x3b302d(0x100)?readRawConfig():loadRawConfigLayers()['projectConfig'],_0x33b9fa=_0x3b7d30[_0x3b302d(0xf4)];if(!_0x33b9fa||typeof _0x33b9fa!==_0x3b302d(0xf2)||Object[_0x3b302d(0xf5)](_0x33b9fa)[_0x3b302d(0xff)]===0x0)return null;const _0x2cb38b=_0x3b7d30[_0x3b302d(0xec)];return Object[_0x3b302d(0xf3)](_0x33b9fa)['map'](([_0x23b192,_0x99ed80])=>({'name':_0x23b192,'appcode':_0x99ed80?.['appcode']||'','isDefault':_0x23b192===_0x2cb38b,'env':_0x99ed80?.[_0x3b302d(0xef)],'apiDir':_0x99ed80?.['apiDir'],'cookie':_0x99ed80?.['cookie']||undefined}))[_0x3b302d(0xee)](_0x3029ec=>_0x3029ec[_0x3b302d(0x103)]);}export function getTemplateBaseUrl(){const _0xfef140=a142_0x4c88d1,_0x3a235c=readRawConfig();if(_0x3a235c[_0xfef140(0xf0)]&&typeof _0x3a235c['template_base_url']===_0xfef140(0x105))return _0x3a235c[_0xfef140(0xf0)]['replace'](/\/$/,'');return _0xfef140(0xfe);}
1
+ (function(_0x58af95,_0x2788ac){const _0x2730c1=a148_0x1a7c,_0x38a02b=_0x58af95();while(!![]){try{const _0x23e6fe=-parseInt(_0x2730c1(0x83))/0x1*(parseInt(_0x2730c1(0x81))/0x2)+parseInt(_0x2730c1(0x87))/0x3+parseInt(_0x2730c1(0x7d))/0x4*(-parseInt(_0x2730c1(0x85))/0x5)+-parseInt(_0x2730c1(0x84))/0x6*(-parseInt(_0x2730c1(0x86))/0x7)+-parseInt(_0x2730c1(0x89))/0x8+parseInt(_0x2730c1(0x82))/0x9*(parseInt(_0x2730c1(0x80))/0xa)+-parseInt(_0x2730c1(0x8a))/0xb*(parseInt(_0x2730c1(0x7e))/0xc);if(_0x23e6fe===_0x2788ac)break;else _0x38a02b['push'](_0x38a02b['shift']());}catch(_0x4db81d){_0x38a02b['push'](_0x38a02b['shift']());}}}(a148_0x635b,0xd3540));import{initEnv}from'../constant/env.js';function a148_0x1a7c(_0x226f1f,_0x58c7ad){_0x226f1f=_0x226f1f-0x7d;const _0x635b27=a148_0x635b();let _0x1a7c7c=_0x635b27[_0x226f1f];return _0x1a7c7c;}import{readRawConfig,getConfigAppCode as a148_0x4b52f2,getMultiAppConfigs as a148_0x1ea342,getTemplateBaseUrl as a148_0x24a537}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a148_0x635b(){const _0x2a5aef=['859064FFWNbh','1133NvHRlv','4sVuPzi','30588lrPnOZ','string','11604270MRxfaH','36JzGWvq','9auaNsM','40962DCPeDC','6tkPIRn','2331215VcCpYg','6951203sKLFJw','856899ikfCEm','env'];a148_0x635b=function(){return _0x2a5aef;};return a148_0x635b();}export function readConfig(_0x5bc9c5){const _0x3b14bd=a148_0x1a7c,_0xed23cf=readRawConfig(_0x5bc9c5);return _0xed23cf[_0x3b14bd(0x88)]&&typeof _0xed23cf[_0x3b14bd(0x88)]===_0x3b14bd(0x7f)&&initEnv(_0xed23cf[_0x3b14bd(0x88)]),_0xed23cf;}export function getConfigAppCode(){return a148_0x4b52f2();}export function getMultiAppConfigs(_0x3acd3d='project'){return a148_0x1ea342(_0x3acd3d);}export function getTemplateBaseUrl(){return a148_0x24a537();}
@@ -1 +1 @@
1
- function a143_0x321f(){const _0x1412ef=['readdirSync','mkdirSync','isDirectory','13212csvvDc','150ucYsbi','name','426aasLxs','5985588uMsGdF','1091841GLrZwx','8LosKqI','1367089ThUPCY','8984qyfpal','error','3163106bCQhXI','join','1937969VIfZPh','copyFileSync','19985iUYyYh'];a143_0x321f=function(){return _0x1412ef;};return a143_0x321f();}(function(_0x5a0ed6,_0x6e7da1){const _0x12f0d4=a143_0x219e,_0x284f7c=_0x5a0ed6();while(!![]){try{const _0x41476d=-parseInt(_0x12f0d4(0x1d7))/0x1+-parseInt(_0x12f0d4(0x1c8))/0x2+-parseInt(_0x12f0d4(0x1d5))/0x3*(-parseInt(_0x12f0d4(0x1d6))/0x4)+parseInt(_0x12f0d4(0x1cc))/0x5*(-parseInt(_0x12f0d4(0x1d3))/0x6)+-parseInt(_0x12f0d4(0x1d4))/0x7+parseInt(_0x12f0d4(0x1c6))/0x8*(parseInt(_0x12f0d4(0x1d0))/0x9)+parseInt(_0x12f0d4(0x1d1))/0xa*(parseInt(_0x12f0d4(0x1ca))/0xb);if(_0x41476d===_0x6e7da1)break;else _0x284f7c['push'](_0x284f7c['shift']());}catch(_0x362197){_0x284f7c['push'](_0x284f7c['shift']());}}}(a143_0x321f,0xe372e));function a143_0x219e(_0xb212b3,_0x140f1f){_0xb212b3=_0xb212b3-0x1c6;const _0x321fd8=a143_0x321f();let _0x219e15=_0x321fd8[_0xb212b3];return _0x219e15;}import a143_0x2032ac from'node:path';import a143_0x77d60c from'node:fs';export async function copyDirectory(_0x4590d7,_0x469cc8){const _0x39fc73=a143_0x219e;try{const _0x5d6131=a143_0x77d60c[_0x39fc73(0x1cd)](_0x4590d7,{'withFileTypes':!![]});a143_0x77d60c[_0x39fc73(0x1ce)](_0x469cc8,{'recursive':!![]});for(const _0x1eafe7 of _0x5d6131){const _0x3be72d=a143_0x2032ac[_0x39fc73(0x1c9)](_0x4590d7,_0x1eafe7[_0x39fc73(0x1d2)]),_0xdb86e9=a143_0x2032ac[_0x39fc73(0x1c9)](_0x469cc8,_0x1eafe7['name']);_0x1eafe7[_0x39fc73(0x1cf)]()?await copyDirectory(_0x3be72d,_0xdb86e9):a143_0x77d60c[_0x39fc73(0x1cb)](_0x3be72d,_0xdb86e9);}}catch(_0x2c7993){console[_0x39fc73(0x1c7)]('复制目录时出错:',_0x2c7993);}}
1
+ (function(_0x1eac4f,_0x4232d8){const _0x311721=a149_0x1b21,_0x4775fb=_0x1eac4f();while(!![]){try{const _0x2073a9=parseInt(_0x311721(0x1d8))/0x1+parseInt(_0x311721(0x1d3))/0x2*(-parseInt(_0x311721(0x1d7))/0x3)+-parseInt(_0x311721(0x1da))/0x4+parseInt(_0x311721(0x1db))/0x5*(parseInt(_0x311721(0x1e1))/0x6)+parseInt(_0x311721(0x1de))/0x7*(parseInt(_0x311721(0x1df))/0x8)+-parseInt(_0x311721(0x1d2))/0x9+parseInt(_0x311721(0x1e0))/0xa;if(_0x2073a9===_0x4232d8)break;else _0x4775fb['push'](_0x4775fb['shift']());}catch(_0x4be03d){_0x4775fb['push'](_0x4775fb['shift']());}}}(a149_0x4997,0x8af54));function a149_0x1b21(_0x5196a3,_0xb08ec){_0x5196a3=_0x5196a3-0x1d2;const _0x499704=a149_0x4997();let _0x1b21c7=_0x499704[_0x5196a3];return _0x1b21c7;}import a149_0x4ad847 from'node:path';import a149_0x34f93d from'node:fs';export async function copyDirectory(_0x4f6531,_0x4e20ab){const _0x4f90d1=a149_0x1b21;try{const _0x20d73b=a149_0x34f93d[_0x4f90d1(0x1d4)](_0x4f6531,{'withFileTypes':!![]});a149_0x34f93d[_0x4f90d1(0x1e2)](_0x4e20ab,{'recursive':!![]});for(const _0x2f26c7 of _0x20d73b){const _0x33353b=a149_0x4ad847['join'](_0x4f6531,_0x2f26c7[_0x4f90d1(0x1dd)]),_0x52ee66=a149_0x4ad847['join'](_0x4e20ab,_0x2f26c7[_0x4f90d1(0x1dd)]);_0x2f26c7[_0x4f90d1(0x1d6)]()?await copyDirectory(_0x33353b,_0x52ee66):a149_0x34f93d[_0x4f90d1(0x1d9)](_0x33353b,_0x52ee66);}}catch(_0x35f5cb){console[_0x4f90d1(0x1d5)](_0x4f90d1(0x1dc),_0x35f5cb);}}function a149_0x4997(){const _0x1ec206=['copyFileSync','1320820lwFlwj','64610XPPWoL','复制目录时出错:','name','2098663bipjOA','8TTGAmm','9911260QQSyap','138trNlGL','mkdirSync','6840360XXQhRF','134qFYVkx','readdirSync','error','isDirectory','25128QKVMxr','632468ZWTZbw'];a149_0x4997=function(){return _0x1ec206;};return a149_0x4997();}
@@ -1 +1 @@
1
- (function(_0x59bc27,_0x5cbf01){const _0x51f8e0=a144_0x4354,_0x1b348d=_0x59bc27();while(!![]){try{const _0x5835de=parseInt(_0x51f8e0(0x1a5))/0x1+parseInt(_0x51f8e0(0x1a1))/0x2+-parseInt(_0x51f8e0(0x19e))/0x3*(parseInt(_0x51f8e0(0x19f))/0x4)+-parseInt(_0x51f8e0(0x19d))/0x5+-parseInt(_0x51f8e0(0x1a0))/0x6+parseInt(_0x51f8e0(0x1a4))/0x7+parseInt(_0x51f8e0(0x1a3))/0x8*(parseInt(_0x51f8e0(0x1a2))/0x9);if(_0x5835de===_0x5cbf01)break;else _0x1b348d['push'](_0x1b348d['shift']());}catch(_0x1a5b4a){_0x1b348d['push'](_0x1b348d['shift']());}}}(a144_0x47d6,0xeb97c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a144_0x47d6(){const _0x2030eb=['isDirectory','8628285nMnlzC','162585ajRXJe','112TFfCJo','2639862jHeWjU','3519286nkBlqB','909XkYDlS','51808ZjtWOb','4897844tJctdO','1534671BWEGpV'];a144_0x47d6=function(){return _0x2030eb;};return a144_0x47d6();}import{join}from'node:path';export async function copyDir(_0x440eba,_0x942ae3){const _0x507fee=a144_0x4354,_0x182b14=statSync(_0x440eba);if(_0x182b14[_0x507fee(0x19c)]()){!existsSync(_0x942ae3)&&mkdirSync(_0x942ae3,{'recursive':!![]});const _0x21cde8=readdirSync(_0x440eba);for(const _0x4b0d40 of _0x21cde8){await copyDir(join(_0x440eba,_0x4b0d40),join(_0x942ae3,_0x4b0d40));}}else copyFileSync(_0x440eba,_0x942ae3);}export function ensureDir(_0x30d8a6){!existsSync(_0x30d8a6)&&mkdirSync(_0x30d8a6,{'recursive':!![]});}function a144_0x4354(_0x37a510,_0x307fd6){_0x37a510=_0x37a510-0x19c;const _0x47d632=a144_0x47d6();let _0x43542f=_0x47d632[_0x37a510];return _0x43542f;}export function pathExists(_0x4bdffd){return existsSync(_0x4bdffd);}
1
+ function a150_0x2522(_0x121342,_0x4e1dd0){_0x121342=_0x121342-0x1b9;const _0x1386e=a150_0x1386();let _0x25229b=_0x1386e[_0x121342];return _0x25229b;}(function(_0x386f88,_0x4cd9ef){const _0x3cda34=a150_0x2522,_0x2f6451=_0x386f88();while(!![]){try{const _0x97cb2d=-parseInt(_0x3cda34(0x1be))/0x1+-parseInt(_0x3cda34(0x1ba))/0x2+-parseInt(_0x3cda34(0x1b9))/0x3+-parseInt(_0x3cda34(0x1c0))/0x4*(-parseInt(_0x3cda34(0x1c1))/0x5)+parseInt(_0x3cda34(0x1bb))/0x6+-parseInt(_0x3cda34(0x1bd))/0x7+parseInt(_0x3cda34(0x1bf))/0x8;if(_0x97cb2d===_0x4cd9ef)break;else _0x2f6451['push'](_0x2f6451['shift']());}catch(_0x3fe863){_0x2f6451['push'](_0x2f6451['shift']());}}}(a150_0x1386,0x4af5e));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x5338b7,_0x5791eb){const _0x33bc8d=a150_0x2522,_0x428eb0=statSync(_0x5338b7);if(_0x428eb0[_0x33bc8d(0x1bc)]()){!existsSync(_0x5791eb)&&mkdirSync(_0x5791eb,{'recursive':!![]});const _0x851df8=readdirSync(_0x5338b7);for(const _0x410094 of _0x851df8){await copyDir(join(_0x5338b7,_0x410094),join(_0x5791eb,_0x410094));}}else copyFileSync(_0x5338b7,_0x5791eb);}export function ensureDir(_0x9fb5e1){!existsSync(_0x9fb5e1)&&mkdirSync(_0x9fb5e1,{'recursive':!![]});}function a150_0x1386(){const _0x559aa9=['68295IALaxX','1527372IODgzm','782428MYDvAn','461508kIsNQe','isDirectory','439999dPcEnX','331436qLzKLc','11651648ABOkcX','20nnSFSw'];a150_0x1386=function(){return _0x559aa9;};return a150_0x1386();}export function pathExists(_0xa08ca2){return existsSync(_0xa08ca2);}
@@ -1 +1 @@
1
- const a145_0x213e8e=a145_0x1634;(function(_0x137233,_0x469bba){const _0x115714=a145_0x1634,_0x4c5862=_0x137233();while(!![]){try{const _0x59cb10=parseInt(_0x115714(0x154))/0x1+-parseInt(_0x115714(0x16c))/0x2*(parseInt(_0x115714(0x163))/0x3)+-parseInt(_0x115714(0x168))/0x4+-parseInt(_0x115714(0x158))/0x5+-parseInt(_0x115714(0x157))/0x6*(parseInt(_0x115714(0x15b))/0x7)+-parseInt(_0x115714(0x16b))/0x8+parseInt(_0x115714(0x16f))/0x9*(parseInt(_0x115714(0x151))/0xa);if(_0x59cb10===_0x469bba)break;else _0x4c5862['push'](_0x4c5862['shift']());}catch(_0x42e5e2){_0x4c5862['push'](_0x4c5862['shift']());}}}(a145_0x4c40,0x63d29));function a145_0x1634(_0x4416e4,_0x385db0){_0x4416e4=_0x4416e4-0x14f;const _0x4c403b=a145_0x4c40();let _0x16347d=_0x4c403b[_0x4416e4];return _0x16347d;}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a145_0x4c40(){const _0x2193a2=['application/json','/skills/guides.json','2862800JqlacE','content','lastUpdated','78944rdDkSe','42530BWAQaq','push','.md','27voAwOK','path','guides','map','8753620tyGWXn','\x0a\x0a>更新时间:','CDN\x20返回数据格式错误','96173tBEaNR','status','CDN\x20数据中缺少\x20skillTemplate','2467266YJqFGf','2799610nlGuBR','skillTemplate','length','7jvgtPU','utf-8','entries','.lovrabet/skill/guides','join','keys','json','replace','87xwzAEl','CDN\x20请求失败:\x20','trimEnd'];a145_0x4c40=function(){return _0x2193a2;};return a145_0x4c40();}function getGuidesCdnUrl(){const _0x36c5f7=a145_0x1634,_0x499b81=getTemplateBaseUrl();return _0x499b81+_0x36c5f7(0x167);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x334790=a145_0x1634,_0x3e1074=getGuidesCdnUrl(),_0x2492f3=await fetch(_0x3e1074,{'headers':{'Accept':_0x334790(0x166)}});if(!_0x2492f3['ok'])throw new Error(_0x334790(0x164)+_0x2492f3[_0x334790(0x155)]+'\x20'+_0x2492f3['statusText']);const _0x1727a8=await _0x2492f3[_0x334790(0x161)]();if(!_0x1727a8[_0x334790(0x14f)]||typeof _0x1727a8[_0x334790(0x14f)]!=='object')throw new Error(_0x334790(0x153));return _0x1727a8;}export function writeGuidesToProject(_0x2d6427,_0x45b721,_0x406590=a145_0x213e8e(0x15e),_0x583e7f){const _0x192766=a145_0x213e8e,_0xbb44=join(_0x45b721,_0x406590);mkdirSync(_0xbb44,{'recursive':!![]});for(const [_0x2e5b85,_0x2e9d8e]of Object[_0x192766(0x15d)](_0x2d6427[_0x192766(0x14f)])){let _0x5bee8a=_0x2e9d8e[_0x192766(0x169)];_0x2e9d8e[_0x192766(0x16a)]&&(_0x5bee8a=appendUpdateTime(_0x5bee8a,_0x2e9d8e[_0x192766(0x16a)])),writeFileSync(join(_0xbb44,_0x2e5b85+_0x192766(0x16e)),_0x5bee8a,_0x192766(0x15c));}}export function appendUpdateTime(_0x11b9b9,_0x5a01be){const _0x502218=a145_0x213e8e;return _0x11b9b9=_0x11b9b9[_0x502218(0x162)](/\n*>更新时间:.*$/m,''),_0x11b9b9[_0x502218(0x165)]()+(_0x502218(0x152)+_0x5a01be);}export function getSkillTemplate(_0x56d967){const _0x4bc8ff=a145_0x213e8e;return _0x56d967[_0x4bc8ff(0x159)]?.[_0x4bc8ff(0x169)]||'';}export function appendExtendContents(_0x3b3b7f,_0x45d189,_0x5a421f){const _0x3c3afd=a145_0x213e8e,_0x5642f6=[];for(const [,_0x3f8b42]of Object['entries'](_0x45d189[_0x3c3afd(0x14f)])){_0x3f8b42['extendContent']&&_0x5642f6[_0x3c3afd(0x16d)](_0x3f8b42['extendContent'][_0x3c3afd(0x165)]());}if(_0x5642f6[_0x3c3afd(0x15a)]===0x0)return _0x3b3b7f;return _0x3b3b7f[_0x3c3afd(0x165)]()+'\x0a\x0a'+_0x5642f6[_0x3c3afd(0x15f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3fa751,_0x1205db,_0x31d369){const _0x32d409=a145_0x213e8e,_0x17ae27=getSkillTemplate(_0x3fa751);if(!_0x17ae27)throw new Error(_0x32d409(0x156));const _0x3cf6c8=dirname(_0x1205db);mkdirSync(_0x3cf6c8,{'recursive':!![]});let _0x2dcdcc=_0x17ae27['replace'](/\{\{IDE_NAME\}\}/g,_0x31d369);_0x2dcdcc=appendExtendContents(_0x2dcdcc,_0x3fa751),_0x3fa751[_0x32d409(0x159)][_0x32d409(0x16a)]&&(_0x2dcdcc=appendUpdateTime(_0x2dcdcc,_0x3fa751[_0x32d409(0x159)]['lastUpdated'])),writeFileSync(_0x1205db,_0x2dcdcc,'utf-8');}export async function installGuides(_0x2044d3){const _0x41e291=a145_0x213e8e,_0x402f83=await fetchGuidesFromCDN();return writeGuidesToProject(_0x402f83,_0x2044d3),Object[_0x41e291(0x160)](_0x402f83[_0x41e291(0x14f)])[_0x41e291(0x15a)];}export function getGuidesSummary(_0x245f7d){const _0x189811=a145_0x213e8e;return Object[_0x189811(0x15d)](_0x245f7d['guides'])[_0x189811(0x150)](([_0x2bc1e7,_0x3552c7])=>({'key':_0x2bc1e7,'title':_0x3552c7['title'],'path':_0x3552c7[_0x189811(0x170)]}));}
1
+ const a151_0x42c7ff=a151_0x2362;(function(_0x2a86dc,_0xf12693){const _0x5cbda8=a151_0x2362,_0x2b6525=_0x2a86dc();while(!![]){try{const _0x171e30=-parseInt(_0x5cbda8(0x141))/0x1*(-parseInt(_0x5cbda8(0x11e))/0x2)+-parseInt(_0x5cbda8(0x12c))/0x3*(parseInt(_0x5cbda8(0x125))/0x4)+parseInt(_0x5cbda8(0x13a))/0x5*(-parseInt(_0x5cbda8(0x122))/0x6)+parseInt(_0x5cbda8(0x130))/0x7*(parseInt(_0x5cbda8(0x121))/0x8)+parseInt(_0x5cbda8(0x13f))/0x9*(-parseInt(_0x5cbda8(0x129))/0xa)+-parseInt(_0x5cbda8(0x138))/0xb*(-parseInt(_0x5cbda8(0x123))/0xc)+parseInt(_0x5cbda8(0x126))/0xd*(-parseInt(_0x5cbda8(0x144))/0xe);if(_0x171e30===_0xf12693)break;else _0x2b6525['push'](_0x2b6525['shift']());}catch(_0x49df45){_0x2b6525['push'](_0x2b6525['shift']());}}}(a151_0x2eaa,0xadcb4));function a151_0x2eaa(){const _0x5c43c5=['2rByshu','CDN\x20请求失败:\x20','cache','3856PtjotT','24vPHmQI','1036668wLKwqd','replace','92VNTdwk','2667587DFsauy','application/json','CDN\x20返回数据格式错误','10VUOjdM','statusText','\x0a\x0a>更新时间:','56229VFnpJc','title','CDN\x20数据中缺少\x20skillTemplate','lastUpdated','15015jfcMCe','map','join','content','push','.lovrabet','extendContent','.md','165jSJXcX','entries','529825SGozYz','guides','trimEnd','utf-8','keys','6628131piuSbJ','length','1204737CesNVK','.lovrabet/skill/guides','skillTemplate','84EJKokH','path','json'];a151_0x2eaa=function(){return _0x5c43c5;};return a151_0x2eaa();}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x2b02a8=getTemplateBaseUrl();return _0x2b02a8+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a151_0x42c7ff(0x135),a151_0x42c7ff(0x120));export async function fetchGuidesFromCDN(){const _0x2a6f0a=a151_0x42c7ff,_0x3be97e=getGuidesCdnUrl(),_0x3146aa=await fetch(_0x3be97e,{'headers':{'Accept':_0x2a6f0a(0x127)}});if(!_0x3146aa['ok'])throw new Error(_0x2a6f0a(0x11f)+_0x3146aa['status']+'\x20'+_0x3146aa[_0x2a6f0a(0x12a)]);const _0x560893=await _0x3146aa[_0x2a6f0a(0x11d)]();if(!_0x560893[_0x2a6f0a(0x13b)]||typeof _0x560893[_0x2a6f0a(0x13b)]!=='object')throw new Error(_0x2a6f0a(0x128));return _0x560893;}function a151_0x2362(_0x2adbf3,_0x263b45){_0x2adbf3=_0x2adbf3-0x11c;const _0x2eaa52=a151_0x2eaa();let _0x2362c2=_0x2eaa52[_0x2adbf3];return _0x2362c2;}export function writeGuidesToProject(_0x32a42a,_0xfc2aeb,_0x496db7=a151_0x42c7ff(0x142),_0x186802){const _0x7b0e2a=a151_0x42c7ff,_0x590716=join(_0xfc2aeb,_0x496db7);mkdirSync(_0x590716,{'recursive':!![]});for(const [_0x1d9473,_0x1238b3]of Object[_0x7b0e2a(0x139)](_0x32a42a[_0x7b0e2a(0x13b)])){let _0x45b7aa=_0x1238b3[_0x7b0e2a(0x133)];_0x1238b3[_0x7b0e2a(0x12f)]&&(_0x45b7aa=appendUpdateTime(_0x45b7aa,_0x1238b3[_0x7b0e2a(0x12f)])),writeFileSync(join(_0x590716,_0x1d9473+_0x7b0e2a(0x137)),_0x45b7aa,_0x7b0e2a(0x13d));}}export function appendUpdateTime(_0x39c121,_0x4c994a){const _0x3d90cb=a151_0x42c7ff;return _0x39c121=_0x39c121['replace'](/\n*>更新时间:.*$/m,''),_0x39c121[_0x3d90cb(0x13c)]()+(_0x3d90cb(0x12b)+_0x4c994a);}export function getSkillTemplate(_0x5382fd){const _0xf688d9=a151_0x42c7ff;return _0x5382fd[_0xf688d9(0x143)]?.[_0xf688d9(0x133)]||'';}export function appendExtendContents(_0x1072cc,_0x1331b2,_0x4e4021){const _0x5baebc=a151_0x42c7ff,_0x4b8705=[];for(const [,_0x564162]of Object[_0x5baebc(0x139)](_0x1331b2[_0x5baebc(0x13b)])){_0x564162[_0x5baebc(0x136)]&&_0x4b8705[_0x5baebc(0x134)](_0x564162['extendContent'][_0x5baebc(0x13c)]());}if(_0x4b8705['length']===0x0)return _0x1072cc;return _0x1072cc[_0x5baebc(0x13c)]()+'\x0a\x0a'+_0x4b8705[_0x5baebc(0x132)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x519c86,_0x552146,_0x250472){const _0x38a28b=a151_0x42c7ff,_0x3a698b=getSkillTemplate(_0x519c86);if(!_0x3a698b)throw new Error(_0x38a28b(0x12e));const _0x2e0d9e=dirname(_0x552146);mkdirSync(_0x2e0d9e,{'recursive':!![]});let _0x4993ae=_0x3a698b[_0x38a28b(0x124)](/\{\{IDE_NAME\}\}/g,_0x250472);_0x4993ae=appendExtendContents(_0x4993ae,_0x519c86),_0x519c86[_0x38a28b(0x143)][_0x38a28b(0x12f)]&&(_0x4993ae=appendUpdateTime(_0x4993ae,_0x519c86[_0x38a28b(0x143)][_0x38a28b(0x12f)])),writeFileSync(_0x552146,_0x4993ae,_0x38a28b(0x13d));}export async function installGuides(_0x326e98){const _0x57c25f=a151_0x42c7ff,_0x5d85a5=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5d85a5,_0x326e98),Object[_0x57c25f(0x13e)](_0x5d85a5[_0x57c25f(0x13b)])[_0x57c25f(0x140)];}export function getGuidesSummary(_0x445dcb){const _0x4e16c8=a151_0x42c7ff;return Object[_0x4e16c8(0x139)](_0x445dcb['guides'])[_0x4e16c8(0x131)](([_0x4e2348,_0x382482])=>({'key':_0x4e2348,'title':_0x382482[_0x4e16c8(0x12d)],'path':_0x382482[_0x4e16c8(0x11c)]}));}
@@ -1 +1 @@
1
- (function(_0x37c7f5,_0x3e181a){const _0x29c593=a146_0x4a0b,_0x4fa031=_0x37c7f5();while(!![]){try{const _0x59d378=parseInt(_0x29c593(0x163))/0x1+parseInt(_0x29c593(0x161))/0x2+-parseInt(_0x29c593(0x169))/0x3*(parseInt(_0x29c593(0x15f))/0x4)+-parseInt(_0x29c593(0x166))/0x5+-parseInt(_0x29c593(0x16e))/0x6+-parseInt(_0x29c593(0x176))/0x7*(-parseInt(_0x29c593(0x173))/0x8)+parseInt(_0x29c593(0x15d))/0x9;if(_0x59d378===_0x3e181a)break;else _0x4fa031['push'](_0x4fa031['shift']());}catch(_0x41ec){_0x4fa031['push'](_0x4fa031['shift']());}}}(a146_0x4767,0x581f6));export async function httpRequest(_0x1fb5bf,_0xdce41a={}){const _0x39eee7=a146_0x4a0b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xdce41a;let _0x114b05=null;for(let _0x3f2f71=0x0;_0x3f2f71<=retries;_0x3f2f71++){try{const _0x169765=new AbortController(),_0x36e23a=setTimeout(()=>_0x169765[_0x39eee7(0x175)](),timeout),_0x141269=await fetch(_0x1fb5bf,{'headers':headers,'signal':_0x169765['signal']});clearTimeout(_0x36e23a);let _0x2689ef;const _0x2fc54c=_0x141269['headers']['get'](_0x39eee7(0x16b));return _0x2fc54c?.[_0x39eee7(0x16d)](_0x39eee7(0x172))?_0x2689ef=await _0x141269[_0x39eee7(0x15e)]():_0x2689ef=await _0x141269[_0x39eee7(0x160)](),{'ok':_0x141269['ok'],'status':_0x141269[_0x39eee7(0x170)],'statusText':_0x141269[_0x39eee7(0x171)],'data':_0x2689ef,'headers':_0x141269[_0x39eee7(0x16a)],'url':_0x141269[_0x39eee7(0x168)],'text':()=>_0x141269[_0x39eee7(0x160)]()};}catch(_0x5bf9ba){_0x114b05=_0x5bf9ba instanceof Error?_0x5bf9ba:new Error(String(_0x5bf9ba));if(_0x3f2f71===retries)break;if(shouldRetry(_0x5bf9ba)){console['log'](_0x39eee7(0x167)+retryDelay+_0x39eee7(0x16f)+(_0x3f2f71+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x114b05||new Error(_0x39eee7(0x174));}function shouldRetry(_0x552c4f){const _0x300990=a146_0x4a0b;if(_0x552c4f instanceof Error){if(_0x552c4f[_0x300990(0x162)]==='AbortError')return![];if(_0x552c4f[_0x300990(0x162)]===_0x300990(0x16c)&&_0x552c4f['message'][_0x300990(0x16d)](_0x300990(0x165)))return!![];if(_0x552c4f[_0x300990(0x164)][_0x300990(0x16d)]('ECONNRESET'))return!![];if(_0x552c4f[_0x300990(0x164)]['includes']('ENOTFOUND'))return![];}return![];}function a146_0x4767(){const _0x31d181=['includes','570228AikTbX','ms\x20后进行第\x20','status','statusText','application/json','24rkiMyh','Request\x20failed','abort','712173sLxHXJ','2011509sMVyiZ','json','100VfrGgB','text','354802fSyAtl','name','424353UHZXMU','message','fetch','586045zWMIEo','*\x20请求失败,','url','66873DHFyqq','headers','content-type','TypeError'];a146_0x4767=function(){return _0x31d181;};return a146_0x4767();}function sleep(_0x3b02c0){return new Promise(_0x212ec7=>setTimeout(_0x212ec7,_0x3b02c0));}function a146_0x4a0b(_0x2792e8,_0x1241c0){_0x2792e8=_0x2792e8-0x15d;const _0x4767a1=a146_0x4767();let _0x4a0b4c=_0x4767a1[_0x2792e8];return _0x4a0b4c;}export function validateUrl(_0x4d1df4){try{return new URL(_0x4d1df4),!![];}catch{return![];}}
1
+ (function(_0x1f340c,_0x40871d){const _0x6b234e=a152_0x3d4c,_0x56f970=_0x1f340c();while(!![]){try{const _0x2f14b4=-parseInt(_0x6b234e(0x1e8))/0x1+parseInt(_0x6b234e(0x1d9))/0x2+-parseInt(_0x6b234e(0x1d8))/0x3*(-parseInt(_0x6b234e(0x1e1))/0x4)+parseInt(_0x6b234e(0x1e6))/0x5+parseInt(_0x6b234e(0x1ec))/0x6+-parseInt(_0x6b234e(0x1dc))/0x7+parseInt(_0x6b234e(0x1e9))/0x8;if(_0x2f14b4===_0x40871d)break;else _0x56f970['push'](_0x56f970['shift']());}catch(_0x59b7d1){_0x56f970['push'](_0x56f970['shift']());}}}(a152_0x12e9,0x3173a));function a152_0x3d4c(_0x4ec9fd,_0x1c2647){_0x4ec9fd=_0x4ec9fd-0x1d7;const _0x12e9b9=a152_0x12e9();let _0x3d4c5d=_0x12e9b9[_0x4ec9fd];return _0x3d4c5d;}export async function httpRequest(_0x97d06b,_0x1b5626={}){const _0x2b36c9=a152_0x3d4c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1b5626;let _0x5efdb0=null;for(let _0x4e5d6f=0x0;_0x4e5d6f<=retries;_0x4e5d6f++){try{const _0x36a3e1=new AbortController(),_0x562d8d=setTimeout(()=>_0x36a3e1[_0x2b36c9(0x1dd)](),timeout),_0x3b0698=await fetch(_0x97d06b,{'headers':headers,'signal':_0x36a3e1[_0x2b36c9(0x1e5)]});clearTimeout(_0x562d8d);let _0x365232;const _0x2f5fde=_0x3b0698[_0x2b36c9(0x1db)][_0x2b36c9(0x1f3)](_0x2b36c9(0x1ea));return _0x2f5fde?.[_0x2b36c9(0x1ed)]('application/json')?_0x365232=await _0x3b0698[_0x2b36c9(0x1ef)]():_0x365232=await _0x3b0698[_0x2b36c9(0x1de)](),{'ok':_0x3b0698['ok'],'status':_0x3b0698[_0x2b36c9(0x1da)],'statusText':_0x3b0698[_0x2b36c9(0x1f0)],'data':_0x365232,'headers':_0x3b0698[_0x2b36c9(0x1db)],'url':_0x3b0698['url'],'text':()=>_0x3b0698[_0x2b36c9(0x1de)]()};}catch(_0x4f5de8){_0x5efdb0=_0x4f5de8 instanceof Error?_0x4f5de8:new Error(String(_0x4f5de8));if(_0x4e5d6f===retries)break;if(shouldRetry(_0x4f5de8)){console[_0x2b36c9(0x1df)](_0x2b36c9(0x1f2)+retryDelay+_0x2b36c9(0x1e3)+(_0x4e5d6f+0x1)+_0x2b36c9(0x1f1)),await sleep(retryDelay);continue;}else break;}}throw _0x5efdb0||new Error(_0x2b36c9(0x1eb));}function shouldRetry(_0x3c8c01){const _0x1ff125=a152_0x3d4c;if(_0x3c8c01 instanceof Error){if(_0x3c8c01[_0x1ff125(0x1e0)]===_0x1ff125(0x1e4))return![];if(_0x3c8c01[_0x1ff125(0x1e0)]===_0x1ff125(0x1e7)&&_0x3c8c01['message'][_0x1ff125(0x1ed)]('fetch'))return!![];if(_0x3c8c01[_0x1ff125(0x1d7)]['includes'](_0x1ff125(0x1e2)))return!![];if(_0x3c8c01[_0x1ff125(0x1d7)]['includes'](_0x1ff125(0x1ee)))return![];}return![];}function sleep(_0x337a7e){return new Promise(_0x3d69ac=>setTimeout(_0x3d69ac,_0x337a7e));}function a152_0x12e9(){const _0x46b1eb=['text','log','name','4MuiUxb','ECONNRESET','ms\x20后进行第\x20','AbortError','signal','347875orirfk','TypeError','39631STFCbO','2032856ncUaqb','content-type','Request\x20failed','567690TJuxpH','includes','ENOTFOUND','json','statusText','\x20次重试...','*\x20请求失败,','get','message','609015igKJII','30130qEkZWo','status','headers','2759274vORKWF','abort'];a152_0x12e9=function(){return _0x46b1eb;};return a152_0x12e9();}export function validateUrl(_0x54dac3){try{return new URL(_0x54dac3),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a147_0x2807(_0x525506,_0x29d80b){_0x525506=_0x525506-0x1d6;const _0xa0ede8=a147_0xa0ed();let _0x2807bd=_0xa0ede8[_0x525506];return _0x2807bd;}(function(_0xa7669f,_0x16cc14){const _0x512f00=a147_0x2807,_0x14994d=_0xa7669f();while(!![]){try{const _0x1fd85e=-parseInt(_0x512f00(0x1dd))/0x1*(parseInt(_0x512f00(0x1db))/0x2)+parseInt(_0x512f00(0x1dc))/0x3+-parseInt(_0x512f00(0x1df))/0x4+parseInt(_0x512f00(0x1d6))/0x5*(-parseInt(_0x512f00(0x1e2))/0x6)+-parseInt(_0x512f00(0x1e0))/0x7+-parseInt(_0x512f00(0x1d8))/0x8*(parseInt(_0x512f00(0x1e1))/0x9)+parseInt(_0x512f00(0x1de))/0xa;if(_0x1fd85e===_0x16cc14)break;else _0x14994d['push'](_0x14994d['shift']());}catch(_0x5e526b){_0x14994d['push'](_0x14994d['shift']());}}}(a147_0xa0ed,0x8e2ee));function a147_0xa0ed(){const _0xeca022=['8DqVqhK','setRawMode','stdout','2kQbTrG','3273606KSvTOg','363661sJUXcN','22700970mWeyQh','2138804KlXPOF','1846432tCmPPj','9961443Mnypyh','72SjtFJs','isRaw','nonInteractive','true','isTTY','212480dUVPPr','stdin'];a147_0xa0ed=function(){return _0xeca022;};return a147_0xa0ed();}function env(_0x447d58){return process.env[`RABETBASE_${_0x447d58}`]||process.env[`LOVRABET_${_0x447d58}`]||undefined;}export function isNonInteractive(_0x5658f4){const _0x309059=a147_0x2807;return!!(_0x5658f4[_0x309059(0x1e4)]||_0x5658f4['ci']||env('CI')==='true'||process.env.CI===_0x309059(0x1e5)||!process[_0x309059(0x1da)][_0x309059(0x1e6)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4e3d4e=a147_0x2807;if(!process['stdin'][_0x4e3d4e(0x1e6)])return![];try{const _0x3ac365=process[_0x4e3d4e(0x1d7)][_0x4e3d4e(0x1e3)];return process['stdin']['setRawMode'](!![]),process[_0x4e3d4e(0x1d7)][_0x4e3d4e(0x1d9)](_0x3ac365??![]),!![];}catch{return![];}}
1
+ function a153_0x4044(_0x37900e,_0x9aa84e){_0x37900e=_0x37900e-0x120;const _0x429f1c=a153_0x429f();let _0x404477=_0x429f1c[_0x37900e];return _0x404477;}(function(_0x279799,_0x2d26f0){const _0x146b24=a153_0x4044,_0x53daf5=_0x279799();while(!![]){try{const _0x4b4c58=-parseInt(_0x146b24(0x130))/0x1+parseInt(_0x146b24(0x129))/0x2+parseInt(_0x146b24(0x12e))/0x3+parseInt(_0x146b24(0x12c))/0x4*(-parseInt(_0x146b24(0x122))/0x5)+parseInt(_0x146b24(0x12d))/0x6+-parseInt(_0x146b24(0x12f))/0x7*(parseInt(_0x146b24(0x121))/0x8)+parseInt(_0x146b24(0x127))/0x9*(parseInt(_0x146b24(0x125))/0xa);if(_0x4b4c58===_0x2d26f0)break;else _0x53daf5['push'](_0x53daf5['shift']());}catch(_0x5114a6){_0x53daf5['push'](_0x53daf5['shift']());}}}(a153_0x429f,0xe5dde));function env(_0x254663){return process.env[`RABETBASE_${_0x254663}`]||process.env[`LOVRABET_${_0x254663}`]||undefined;}export function isNonInteractive(_0x574809){const _0x3df49e=a153_0x4044;return!!(_0x574809[_0x3df49e(0x12a)]||_0x574809['ci']||env('CI')===_0x3df49e(0x123)||process.env.CI==='true'||!process[_0x3df49e(0x120)][_0x3df49e(0x126)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x385828=a153_0x4044;if(!process['stdin']['isTTY'])return![];try{const _0x91f07=process[_0x385828(0x128)][_0x385828(0x124)];return process['stdin'][_0x385828(0x12b)](!![]),process[_0x385828(0x128)][_0x385828(0x12b)](_0x91f07??![]),!![];}catch{return![];}}function a153_0x429f(){const _0x2cfbe2=['46235CaPmkX','1227249IAyuCX','stdout','584XELXjR','3730xAzDCE','true','isRaw','60emDriZ','isTTY','3326949daEsec','stdin','427386elgPBZ','nonInteractive','setRawMode','6884WwCyYo','268248oYtpQM','4375341WymwUX'];a153_0x429f=function(){return _0x2cfbe2;};return a153_0x429f();}
@@ -1 +1 @@
1
- const a148_0x3620c8=a148_0x49c3;(function(_0x441d74,_0x573f70){const _0x1f7da3=a148_0x49c3,_0x27d101=_0x441d74();while(!![]){try{const _0x504685=-parseInt(_0x1f7da3(0xa3))/0x1+parseInt(_0x1f7da3(0xd5))/0x2+parseInt(_0x1f7da3(0xad))/0x3*(-parseInt(_0x1f7da3(0xb7))/0x4)+-parseInt(_0x1f7da3(0xb1))/0x5+-parseInt(_0x1f7da3(0xc5))/0x6*(-parseInt(_0x1f7da3(0xb5))/0x7)+parseInt(_0x1f7da3(0xab))/0x8*(-parseInt(_0x1f7da3(0xc4))/0x9)+parseInt(_0x1f7da3(0xa7))/0xa;if(_0x504685===_0x573f70)break;else _0x27d101['push'](_0x27d101['shift']());}catch(_0x4532b9){_0x27d101['push'](_0x27d101['shift']());}}}(a148_0x23cf,0x1d377));function a148_0x23cf(){const _0x1d3077=['format','661625BbYmVN','dirname','完成:\x20','addColors','70Gwdxlz','setLogPath','190952lsnFGL','success','失败:\x20','initWinstonLogger','logTask','开始执行:\x20','errors','setRawCommand','info','existsSync','unknown','green','yellow','459tzyMub','139014jmUfUS','trim','toISOString','File','warn','stringify','readFileSync','parse','Failed\x20to\x20clear\x20logs:','winstonLogger','createLogger','message','join','level','logFilePath','readLogs','321886hmpDDR','combine','error','split','currentRawCommand','now','duration','clear','blue','158401MfeAHk','utf8','command','mkdirSync','1372100OxHacS','transports','getWinstonInstance','filter','3760JpcSqF','timestamp','6qhJOBR','details','clearLogs'];a148_0x23cf=function(){return _0x1d3077;};return a148_0x23cf();}import a148_0x49a287 from'winston';import a148_0x3369ea from'node:fs';import a148_0x30d907 from'node:path';class Logger{['winstonLogger'];[a148_0x3620c8(0xd3)];[a148_0x3620c8(0xd9)]='';constructor(){this['logFilePath']='';}[a148_0x3620c8(0xbe)](_0x2a09c1){const _0x404c6a=a148_0x3620c8;this[_0x404c6a(0xd9)]=_0x2a09c1;}[a148_0x3620c8(0xba)](){const _0x453d4b=a148_0x3620c8,_0x5c47fc=a148_0x30d907[_0x453d4b(0xb2)](this[_0x453d4b(0xd3)]);!a148_0x3369ea['existsSync'](_0x5c47fc)&&a148_0x3369ea[_0x453d4b(0xa6)](_0x5c47fc,{'recursive':!![]});const _0x5057f9=a148_0x49a287[_0x453d4b(0xb0)][_0x453d4b(0xd6)](a148_0x49a287[_0x453d4b(0xb0)]['timestamp'](),a148_0x49a287[_0x453d4b(0xb0)][_0x453d4b(0xbd)]({'stack':!![]}),a148_0x49a287[_0x453d4b(0xb0)]['printf'](_0x1381a3=>{const _0x23fa62=_0x453d4b,_0x217c7f={'timestamp':_0x1381a3[_0x23fa62(0xac)]||new Date()[_0x23fa62(0xc7)](),'level':_0x1381a3[_0x23fa62(0xd2)]||'info','command':_0x1381a3[_0x23fa62(0xa5)]||_0x23fa62(0xc1),'rawCommand':_0x1381a3['rawCommand']||this[_0x23fa62(0xd9)]||undefined,'message':_0x1381a3[_0x23fa62(0xd0)]||'','duration':_0x1381a3[_0x23fa62(0xdb)]||undefined,'details':_0x1381a3[_0x23fa62(0xae)]||undefined};return JSON[_0x23fa62(0xca)](_0x217c7f);}));this[_0x453d4b(0xce)]=a148_0x49a287[_0x453d4b(0xcf)]({'level':'info','format':_0x5057f9,'transports':[new a148_0x49a287[(_0x453d4b(0xa8))][(_0x453d4b(0xc8))]({'filename':this['logFilePath'],'level':_0x453d4b(0xbf)})],'silent':![]}),a148_0x49a287[_0x453d4b(0xb4)]({'success':_0x453d4b(0xc2),'error':'red','warn':_0x453d4b(0xc3),'info':_0x453d4b(0xdd)});}[a148_0x3620c8(0xb6)](_0x457b73){const _0xf6fb23=a148_0x3620c8;this['logFilePath']=a148_0x30d907[_0xf6fb23(0xd1)](_0x457b73,'.lovrabet.log'),this[_0xf6fb23(0xce)]&&this[_0xf6fb23(0xce)][_0xf6fb23(0xdc)](),this[_0xf6fb23(0xba)]();}[a148_0x3620c8(0xbf)](_0x36a55b,_0x329ca2,_0x4cdda7){const _0x3c359d=a148_0x3620c8;if(!this[_0x3c359d(0xd3)]||!this[_0x3c359d(0xce)])return;this[_0x3c359d(0xce)][_0x3c359d(0xbf)](_0x329ca2,{'command':_0x36a55b,'details':_0x4cdda7});}[a148_0x3620c8(0xb8)](_0x2e72a6,_0x1316f8,_0x41880a,_0x59c888){const _0x14ecad=a148_0x3620c8;if(!this[_0x14ecad(0xd3)]||!this['winstonLogger'])return;this[_0x14ecad(0xce)]['log'](_0x14ecad(0xbf),_0x1316f8,{'level':_0x14ecad(0xb8),'command':_0x2e72a6,'duration':_0x41880a,'details':_0x59c888});}[a148_0x3620c8(0xd7)](_0x33112e,_0x4fe759,_0x48eaf8){const _0x3087d3=a148_0x3620c8;if(!this[_0x3087d3(0xd3)]||!this[_0x3087d3(0xce)])return;this[_0x3087d3(0xce)]['error'](_0x4fe759,{'command':_0x33112e,'details':_0x48eaf8});}['warn'](_0x5a4fe5,_0x11cd79,_0x49afd4){const _0x1dd704=a148_0x3620c8;if(!this[_0x1dd704(0xd3)]||!this[_0x1dd704(0xce)])return;this[_0x1dd704(0xce)]['warn'](_0x11cd79,{'command':_0x5a4fe5,'details':_0x49afd4});}async[a148_0x3620c8(0xbb)](_0x5ba920,_0x1a3ad8,_0x22659b){const _0x141da1=a148_0x3620c8,_0x5b9394=Date[_0x141da1(0xda)]();this[_0x141da1(0xbf)](_0x5ba920,_0x141da1(0xbc)+_0x1a3ad8);try{const _0x1fa7e9=await _0x22659b(),_0x356032=Date[_0x141da1(0xda)]()-_0x5b9394;return this[_0x141da1(0xb8)](_0x5ba920,_0x141da1(0xb3)+_0x1a3ad8,_0x356032),_0x1fa7e9;}catch(_0x1a3aa9){const _0x2ae356=Date[_0x141da1(0xda)]()-_0x5b9394;this['error'](_0x5ba920,_0x141da1(0xb9)+_0x1a3ad8,{'error':_0x1a3aa9 instanceof Error?_0x1a3aa9[_0x141da1(0xd0)]:String(_0x1a3aa9),'duration':_0x2ae356});throw _0x1a3aa9;}}[a148_0x3620c8(0xd4)](){const _0x4867cb=a148_0x3620c8;try{if(!a148_0x3369ea['existsSync'](this[_0x4867cb(0xd3)]))return[];const _0x13b1aa=a148_0x3369ea[_0x4867cb(0xcb)](this[_0x4867cb(0xd3)],_0x4867cb(0xa4));return _0x13b1aa[_0x4867cb(0xd8)]('\x0a')[_0x4867cb(0xaa)](_0x47ff09=>_0x47ff09[_0x4867cb(0xc6)]())['map'](_0x372c91=>JSON[_0x4867cb(0xcc)](_0x372c91));}catch(_0x1fc1e4){return console[_0x4867cb(0xc9)]('Failed\x20to\x20read\x20logs:',_0x1fc1e4),[];}}[a148_0x3620c8(0xaf)](){const _0xc28ce0=a148_0x3620c8;try{a148_0x3369ea[_0xc28ce0(0xc0)](this['logFilePath'])&&a148_0x3369ea['writeFileSync'](this['logFilePath'],'',_0xc28ce0(0xa4));}catch(_0x331eb6){console[_0xc28ce0(0xc9)](_0xc28ce0(0xcd),_0x331eb6);}}[a148_0x3620c8(0xa9)](){return this['winstonLogger'];}}function a148_0x49c3(_0x50fe11,_0x3e406b){_0x50fe11=_0x50fe11-0xa3;const _0x23cfe0=a148_0x23cf();let _0x49c340=_0x23cfe0[_0x50fe11];return _0x49c340;}export const logger=new Logger();
1
+ function a154_0x1e81(){const _0x4d8879=['info','3164850Wnzbjj','initWinstonLogger','mkdirSync','existsSync','split','Failed\x20to\x20read\x20logs:','dirname','error','1566320zyZZqr','rawCommand','yellow','level','logTask','now','85662JOystS','setRawCommand','logFilePath','getWinstonInstance','details','message','28SbNNSX','108660wgebXD','command','warn','22NZPHGt','transports','parse','stringify','clear','timestamp','141508cgKvop','clearLogs','51605hyPtBY','currentRawCommand','toISOString','9phdvvl','blue','6356801tUTeAt','combine','addColors','format','失败:\x20','printf','filter','success','map','28hXcqXt','winstonLogger','setLogPath','red','开始执行:\x20','readFileSync'];a154_0x1e81=function(){return _0x4d8879;};return a154_0x1e81();}const a154_0x35bdc2=a154_0x1085;(function(_0x462aca,_0x32720e){const _0x1518b9=a154_0x1085,_0x1db5c6=_0x462aca();while(!![]){try{const _0x3a953a=-parseInt(_0x1518b9(0x19d))/0x1+parseInt(_0x1518b9(0x197))/0x2*(parseInt(_0x1518b9(0x1c9))/0x3)+-parseInt(_0x1518b9(0x1ad))/0x4*(-parseInt(_0x1518b9(0x19f))/0x5)+parseInt(_0x1518b9(0x1c2))/0x6*(-parseInt(_0x1518b9(0x1c8))/0x7)+-parseInt(_0x1518b9(0x1bc))/0x8*(-parseInt(_0x1518b9(0x1a2))/0x9)+parseInt(_0x1518b9(0x1b4))/0xa+-parseInt(_0x1518b9(0x1a4))/0xb;if(_0x3a953a===_0x32720e)break;else _0x1db5c6['push'](_0x1db5c6['shift']());}catch(_0x33291a){_0x1db5c6['push'](_0x1db5c6['shift']());}}}(a154_0x1e81,0x32663));import a154_0x2aecbe from'winston';import a154_0x646e25 from'node:fs';import a154_0x2a414c from'node:path';class Logger{[a154_0x35bdc2(0x1ae)];['logFilePath'];[a154_0x35bdc2(0x1a0)]='';constructor(){this['logFilePath']='';}[a154_0x35bdc2(0x1c3)](_0x498757){const _0x5af6b7=a154_0x35bdc2;this[_0x5af6b7(0x1a0)]=_0x498757;}[a154_0x35bdc2(0x1b5)](){const _0x27b2c9=a154_0x35bdc2,_0x2a645f=a154_0x2a414c[_0x27b2c9(0x1ba)](this[_0x27b2c9(0x1c4)]);!a154_0x646e25[_0x27b2c9(0x1b7)](_0x2a645f)&&a154_0x646e25[_0x27b2c9(0x1b6)](_0x2a645f,{'recursive':!![]});const _0x1b5f1b=a154_0x2aecbe[_0x27b2c9(0x1a7)][_0x27b2c9(0x1a5)](a154_0x2aecbe['format'][_0x27b2c9(0x19c)](),a154_0x2aecbe[_0x27b2c9(0x1a7)]['errors']({'stack':!![]}),a154_0x2aecbe[_0x27b2c9(0x1a7)][_0x27b2c9(0x1a9)](_0x17ec75=>{const _0x4c22d0=_0x27b2c9,_0x3de473={'timestamp':_0x17ec75[_0x4c22d0(0x19c)]||new Date()[_0x4c22d0(0x1a1)](),'level':_0x17ec75[_0x4c22d0(0x1bf)]||'info','command':_0x17ec75[_0x4c22d0(0x1ca)]||'unknown','rawCommand':_0x17ec75[_0x4c22d0(0x1bd)]||this[_0x4c22d0(0x1a0)]||undefined,'message':_0x17ec75[_0x4c22d0(0x1c7)]||'','duration':_0x17ec75['duration']||undefined,'details':_0x17ec75[_0x4c22d0(0x1c6)]||undefined};return JSON[_0x4c22d0(0x19a)](_0x3de473);}));this[_0x27b2c9(0x1ae)]=a154_0x2aecbe['createLogger']({'level':'info','format':_0x1b5f1b,'transports':[new a154_0x2aecbe[(_0x27b2c9(0x198))]['File']({'filename':this['logFilePath'],'level':_0x27b2c9(0x1b3)})],'silent':![]}),a154_0x2aecbe[_0x27b2c9(0x1a6)]({'success':'green','error':_0x27b2c9(0x1b0),'warn':_0x27b2c9(0x1be),'info':_0x27b2c9(0x1a3)});}[a154_0x35bdc2(0x1af)](_0x5a65d4){const _0x2330bd=a154_0x35bdc2;this[_0x2330bd(0x1c4)]=a154_0x2a414c['join'](_0x5a65d4,'.lovrabet.log'),this[_0x2330bd(0x1ae)]&&this['winstonLogger'][_0x2330bd(0x19b)](),this['initWinstonLogger']();}[a154_0x35bdc2(0x1b3)](_0x18d08f,_0x3721ce,_0x1ac426){const _0x10746d=a154_0x35bdc2;if(!this[_0x10746d(0x1c4)]||!this['winstonLogger'])return;this['winstonLogger'][_0x10746d(0x1b3)](_0x3721ce,{'command':_0x18d08f,'details':_0x1ac426});}[a154_0x35bdc2(0x1ab)](_0x15cc85,_0x55122d,_0x2c60a9,_0x269825){const _0x42eeac=a154_0x35bdc2;if(!this['logFilePath']||!this[_0x42eeac(0x1ae)])return;this[_0x42eeac(0x1ae)]['log'](_0x42eeac(0x1b3),_0x55122d,{'level':_0x42eeac(0x1ab),'command':_0x15cc85,'duration':_0x2c60a9,'details':_0x269825});}['error'](_0x471a3a,_0x454bc2,_0x112ff8){const _0x5587c5=a154_0x35bdc2;if(!this[_0x5587c5(0x1c4)]||!this[_0x5587c5(0x1ae)])return;this[_0x5587c5(0x1ae)][_0x5587c5(0x1bb)](_0x454bc2,{'command':_0x471a3a,'details':_0x112ff8});}['warn'](_0x21316c,_0x2eec73,_0x52da14){const _0x362b29=a154_0x35bdc2;if(!this[_0x362b29(0x1c4)]||!this['winstonLogger'])return;this[_0x362b29(0x1ae)][_0x362b29(0x1cb)](_0x2eec73,{'command':_0x21316c,'details':_0x52da14});}async[a154_0x35bdc2(0x1c0)](_0x1bd9f2,_0x3e3fe3,_0x583542){const _0xe94cdd=a154_0x35bdc2,_0x564ff3=Date[_0xe94cdd(0x1c1)]();this[_0xe94cdd(0x1b3)](_0x1bd9f2,_0xe94cdd(0x1b1)+_0x3e3fe3);try{const _0x56feda=await _0x583542(),_0x171777=Date[_0xe94cdd(0x1c1)]()-_0x564ff3;return this[_0xe94cdd(0x1ab)](_0x1bd9f2,'完成:\x20'+_0x3e3fe3,_0x171777),_0x56feda;}catch(_0x5642ad){const _0x59a585=Date[_0xe94cdd(0x1c1)]()-_0x564ff3;this[_0xe94cdd(0x1bb)](_0x1bd9f2,_0xe94cdd(0x1a8)+_0x3e3fe3,{'error':_0x5642ad instanceof Error?_0x5642ad[_0xe94cdd(0x1c7)]:String(_0x5642ad),'duration':_0x59a585});throw _0x5642ad;}}['readLogs'](){const _0xe20082=a154_0x35bdc2;try{if(!a154_0x646e25['existsSync'](this[_0xe20082(0x1c4)]))return[];const _0xcfdb2e=a154_0x646e25[_0xe20082(0x1b2)](this[_0xe20082(0x1c4)],'utf8');return _0xcfdb2e[_0xe20082(0x1b8)]('\x0a')[_0xe20082(0x1aa)](_0x35e48c=>_0x35e48c['trim']())[_0xe20082(0x1ac)](_0x4c8857=>JSON[_0xe20082(0x199)](_0x4c8857));}catch(_0x3a7d6b){return console[_0xe20082(0x1cb)](_0xe20082(0x1b9),_0x3a7d6b),[];}}[a154_0x35bdc2(0x19e)](){const _0x25355f=a154_0x35bdc2;try{a154_0x646e25[_0x25355f(0x1b7)](this[_0x25355f(0x1c4)])&&a154_0x646e25['writeFileSync'](this[_0x25355f(0x1c4)],'','utf8');}catch(_0x40f84f){console['warn']('Failed\x20to\x20clear\x20logs:',_0x40f84f);}}[a154_0x35bdc2(0x1c5)](){const _0x1348cf=a154_0x35bdc2;return this[_0x1348cf(0x1ae)];}}function a154_0x1085(_0x27fc1f,_0x55a7dd){_0x27fc1f=_0x27fc1f-0x197;const _0x1e81d7=a154_0x1e81();let _0x10852f=_0x1e81d7[_0x27fc1f];return _0x10852f;}export const logger=new Logger();
@@ -1 +1 @@
1
- const a149_0x46e0d1=a149_0x596f;function a149_0xd5b2(){const _0x41e8dc=['platform','win32','14RmLVZK','4146880cfWmZo','1452573ASlaYk','24ygmmxQ','386355BPoAzu','102498HfkPZi','421047WAkicd','3488216TmcOhE','45929xpoGyI','4UliFdy'];a149_0xd5b2=function(){return _0x41e8dc;};return a149_0xd5b2();}function a149_0x596f(_0x4e88c4,_0xdc23af){_0x4e88c4=_0x4e88c4-0xc7;const _0xd5b2de=a149_0xd5b2();let _0x596f46=_0xd5b2de[_0x4e88c4];return _0x596f46;}(function(_0x242a4a,_0xe55f){const _0x1ad1cf=a149_0x596f,_0x4b21ff=_0x242a4a();while(!![]){try{const _0x58a797=parseInt(_0x1ad1cf(0xcc))/0x1*(parseInt(_0x1ad1cf(0xcd))/0x2)+-parseInt(_0x1ad1cf(0xca))/0x3+-parseInt(_0x1ad1cf(0xc7))/0x4*(-parseInt(_0x1ad1cf(0xc8))/0x5)+-parseInt(_0x1ad1cf(0xc9))/0x6*(parseInt(_0x1ad1cf(0xd0))/0x7)+parseInt(_0x1ad1cf(0xcb))/0x8+-parseInt(_0x1ad1cf(0xd2))/0x9+-parseInt(_0x1ad1cf(0xd1))/0xa;if(_0x58a797===_0xe55f)break;else _0x4b21ff['push'](_0x4b21ff['shift']());}catch(_0x44ea64){_0x4b21ff['push'](_0x4b21ff['shift']());}}}(a149_0xd5b2,0x3ad0f));export const isWindows=process[a149_0x46e0d1(0xce)]===a149_0x46e0d1(0xcf);export function resolveNpmBin(_0x57a0a0){return isWindows?_0x57a0a0+'.cmd':_0x57a0a0;}
1
+ function a155_0x511c(_0x408826,_0x147e0f){_0x408826=_0x408826-0x16f;const _0x2070ef=a155_0x2070();let _0x511ca6=_0x2070ef[_0x408826];return _0x511ca6;}const a155_0x16f4e5=a155_0x511c;(function(_0x154380,_0x1f2787){const _0x49f8c4=a155_0x511c,_0x22f975=_0x154380();while(!![]){try{const _0x1c8d83=-parseInt(_0x49f8c4(0x17a))/0x1+parseInt(_0x49f8c4(0x170))/0x2*(-parseInt(_0x49f8c4(0x174))/0x3)+parseInt(_0x49f8c4(0x17b))/0x4*(-parseInt(_0x49f8c4(0x17c))/0x5)+parseInt(_0x49f8c4(0x172))/0x6*(-parseInt(_0x49f8c4(0x173))/0x7)+-parseInt(_0x49f8c4(0x16f))/0x8*(-parseInt(_0x49f8c4(0x179))/0x9)+parseInt(_0x49f8c4(0x171))/0xa+parseInt(_0x49f8c4(0x175))/0xb;if(_0x1c8d83===_0x1f2787)break;else _0x22f975['push'](_0x22f975['shift']());}catch(_0x5ef3a8){_0x22f975['push'](_0x22f975['shift']());}}}(a155_0x2070,0x2147f));function a155_0x2070(){const _0x38bf97=['491435qhdyos','61528aDhEXP','364vxXtXm','204300VWtqzg','18BhZogP','349797JLLfuD','1365uFyXKo','5667266iMuaAM','win32','platform','.cmd','99hOipUQ','54621mDxuVI','8sPjJyQ'];a155_0x2070=function(){return _0x38bf97;};return a155_0x2070();}export const isWindows=process[a155_0x16f4e5(0x177)]===a155_0x16f4e5(0x176);export function resolveNpmBin(_0x236bc0){const _0xd9b23a=a155_0x16f4e5;return isWindows?_0x236bc0+_0xd9b23a(0x178):_0x236bc0;}
@@ -1 +1 @@
1
- const a150_0x29a634=a150_0xb645;(function(_0x5d88eb,_0x318407){const _0x34317c=a150_0xb645,_0x2d4650=_0x5d88eb();while(!![]){try{const _0x20e83d=parseInt(_0x34317c(0xfd))/0x1*(parseInt(_0x34317c(0x10b))/0x2)+parseInt(_0x34317c(0x10a))/0x3+parseInt(_0x34317c(0x105))/0x4*(parseInt(_0x34317c(0x106))/0x5)+-parseInt(_0x34317c(0x104))/0x6*(parseInt(_0x34317c(0x108))/0x7)+-parseInt(_0x34317c(0x113))/0x8+-parseInt(_0x34317c(0xff))/0x9+-parseInt(_0x34317c(0xfc))/0xa;if(_0x20e83d===_0x318407)break;else _0x2d4650['push'](_0x2d4650['shift']());}catch(_0x48fcde){_0x2d4650['push'](_0x2d4650['shift']());}}}(a150_0x34f0,0x34e27));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a150_0xb645(_0x43a177,_0x382da9){_0x43a177=_0x43a177-0xfc;const _0x34f06a=a150_0x34f0();let _0xb645d0=_0x34f06a[_0x43a177];return _0xb645d0;}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x9ca047=a150_0xb645,_0x38b14b=getTemplateBaseUrl();return _0x38b14b+_0x9ca047(0x111);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a150_0x29a634(0x114));export async function fetchRulesFromCDN(){const _0x2b9c26=a150_0x29a634,_0x3d9a5d=getRulesCdnUrl(),_0x1bbceb=await fetch(_0x3d9a5d,{'headers':{'Accept':'application/json'}});if(!_0x1bbceb['ok'])throw new Error(_0x2b9c26(0xfe)+_0x1bbceb['status']+'\x20'+_0x1bbceb[_0x2b9c26(0x110)]);const _0xb9146d=await _0x1bbceb[_0x2b9c26(0x10f)]();if(!_0xb9146d['content']||typeof _0xb9146d[_0x2b9c26(0x102)]!==_0x2b9c26(0x109))throw new Error(_0x2b9c26(0x103));return _0xb9146d;}export async function getRulesContent(){const _0x56fe60=a150_0x29a634;try{const _0x545017=await fetchRulesFromCDN();return _0x545017[_0x56fe60(0x102)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x326a3c=a150_0x29a634;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x326a3c(0x10e));throw new Error(_0x326a3c(0x10d)+LOCAL_TEMPLATE_PATH);}function a150_0x34f0(){const _0x1ac43f=['4nkjKlr','1353225UuigpM','lastUpdated','7ZhbknC','string','1238355lZoSrN','255566YiWevN','agents.md','本地模板文件不存在:\x20','utf-8','json','statusText','/rules/rules.json','catch','1465560hWJwbH','../../templates/rules/lovrabet_rules.mdc.tpl','3663890ZElrHR','2rKaCJK','CDN\x20请求失败:\x20','694062hBuJQu','lovrabet_rules.mdc','.cursor/rules','content','CDN\x20返回数据格式错误','574074qEcsqJ'];a150_0x34f0=function(){return _0x1ac43f;};return a150_0x34f0();}export async function writeRulesFile(_0x3966fd){const _0xbefadc=a150_0x29a634,_0xb4ba4=await fetchRulesFromCDN()[_0xbefadc(0x112)](()=>null);let _0x13e074;_0xb4ba4?(_0x13e074=_0xb4ba4[_0xbefadc(0x102)],_0xb4ba4[_0xbefadc(0x107)]&&(_0x13e074=appendUpdateTime(_0x13e074,_0xb4ba4[_0xbefadc(0x107)]))):_0x13e074=readLocalTemplate();const _0x581477=dirname(_0x3966fd);!existsSync(_0x581477)&&mkdirSync(_0x581477,{'recursive':!![]}),writeFileSync(_0x3966fd,_0x13e074,'utf-8');}export async function copyRulesToCursor(_0x4e7de1){const _0x17921d=a150_0x29a634,_0x4b0f37=join(_0x4e7de1,_0x17921d(0x101)),_0x3660b8=join(_0x4b0f37,_0x17921d(0x100));if(existsSync(_0x3660b8))return![];return await writeRulesFile(_0x3660b8),!![];}export async function copyRulesToAgentsMd(_0x3e4e30){const _0x30cb8a=a150_0x29a634,_0x3b63c3=join(_0x3e4e30,_0x30cb8a(0x10c));if(existsSync(_0x3b63c3))return![];return await writeRulesFile(_0x3b63c3),!![];}
1
+ const a156_0x4c4aae=a156_0x20a2;(function(_0x6a8539,_0x2838f6){const _0x5cf0fb=a156_0x20a2,_0x3a3a83=_0x6a8539();while(!![]){try{const _0x29c442=-parseInt(_0x5cf0fb(0x149))/0x1+parseInt(_0x5cf0fb(0x153))/0x2*(parseInt(_0x5cf0fb(0x140))/0x3)+parseInt(_0x5cf0fb(0x145))/0x4+-parseInt(_0x5cf0fb(0x146))/0x5+parseInt(_0x5cf0fb(0x151))/0x6*(parseInt(_0x5cf0fb(0x14c))/0x7)+parseInt(_0x5cf0fb(0x14e))/0x8*(-parseInt(_0x5cf0fb(0x152))/0x9)+parseInt(_0x5cf0fb(0x144))/0xa;if(_0x29c442===_0x2838f6)break;else _0x3a3a83['push'](_0x3a3a83['shift']());}catch(_0x3b6f31){_0x3a3a83['push'](_0x3a3a83['shift']());}}}(a156_0x2bc2,0x6c019));function a156_0x20a2(_0xfcc052,_0x10fe24){_0xfcc052=_0xfcc052-0x13f;const _0x2bc275=a156_0x2bc2();let _0x20a2b9=_0x2bc275[_0xfcc052];return _0x20a2b9;}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a156_0x2bc2(){const _0x25c128=['catch','json','2093874HGDjhe','/rules/rules.json','CDN\x20请求失败:\x20','content','5259010NhCKyc','1028524GHqLti','3074755lDWcDD','lovrabet_rules.mdc','lastUpdated','415355zSZSHK','status','agents.md','5026MxbPCA','CDN\x20返回数据格式错误','75608KbcDiq','application/json','.cursor/rules','6012WHUsaa','693KRPdSV','2ToNLmS','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl'];a156_0x2bc2=function(){return _0x25c128;};return a156_0x2bc2();}import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x452f24=a156_0x20a2,_0x520ffb=getTemplateBaseUrl();return _0x520ffb+_0x452f24(0x141);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a156_0x4c4aae(0x155));export async function fetchRulesFromCDN(){const _0x23ffa3=a156_0x4c4aae,_0x3733cc=getRulesCdnUrl(),_0x4f4367=await fetch(_0x3733cc,{'headers':{'Accept':_0x23ffa3(0x14f)}});if(!_0x4f4367['ok'])throw new Error(_0x23ffa3(0x142)+_0x4f4367[_0x23ffa3(0x14a)]+'\x20'+_0x4f4367['statusText']);const _0xa32f87=await _0x4f4367[_0x23ffa3(0x13f)]();if(!_0xa32f87[_0x23ffa3(0x143)]||typeof _0xa32f87['content']!=='string')throw new Error(_0x23ffa3(0x14d));return _0xa32f87;}export async function getRulesContent(){const _0x37341d=a156_0x4c4aae;try{const _0x515333=await fetchRulesFromCDN();return _0x515333[_0x37341d(0x143)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x35a876=a156_0x4c4aae;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x35a876(0x154));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x54d61b){const _0x51ea37=a156_0x4c4aae,_0x3307d4=await fetchRulesFromCDN()[_0x51ea37(0x156)](()=>null);let _0x12cf8c;_0x3307d4?(_0x12cf8c=_0x3307d4[_0x51ea37(0x143)],_0x3307d4[_0x51ea37(0x148)]&&(_0x12cf8c=appendUpdateTime(_0x12cf8c,_0x3307d4[_0x51ea37(0x148)]))):_0x12cf8c=readLocalTemplate();const _0x4e142c=dirname(_0x54d61b);!existsSync(_0x4e142c)&&mkdirSync(_0x4e142c,{'recursive':!![]}),writeFileSync(_0x54d61b,_0x12cf8c,_0x51ea37(0x154));}export async function copyRulesToCursor(_0x5d39cb){const _0x3825ec=a156_0x4c4aae,_0x9c8f91=join(_0x5d39cb,_0x3825ec(0x150)),_0x25fc3a=join(_0x9c8f91,_0x3825ec(0x147));if(existsSync(_0x25fc3a))return![];return await writeRulesFile(_0x25fc3a),!![];}export async function copyRulesToAgentsMd(_0x2962f8){const _0xf9398c=a156_0x4c4aae,_0x2338bf=join(_0x2962f8,_0xf9398c(0x14b));if(existsSync(_0x2338bf))return![];return await writeRulesFile(_0x2338bf),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x14c942){return new Promise(_0x2bc5e0=>setTimeout(_0x2bc5e0,_0x14c942));}
1
+ export function sleep(_0x1c7ef8){return new Promise(_0x174ed3=>setTimeout(_0x174ed3,_0x1c7ef8));}