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

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_0x10dca6=a130_0x8ce4;(function(_0x2c800b,_0x4b4965){const _0x14dc9f=a130_0x8ce4,_0x562b04=_0x2c800b();while(!![]){try{const _0x2be0f7=parseInt(_0x14dc9f(0x1b5))/0x1+parseInt(_0x14dc9f(0x1b0))/0x2*(-parseInt(_0x14dc9f(0x19b))/0x3)+parseInt(_0x14dc9f(0x1a8))/0x4+parseInt(_0x14dc9f(0x1af))/0x5+parseInt(_0x14dc9f(0x1ad))/0x6*(-parseInt(_0x14dc9f(0x19f))/0x7)+parseInt(_0x14dc9f(0x1ae))/0x8+parseInt(_0x14dc9f(0x1ac))/0x9*(parseInt(_0x14dc9f(0x1b1))/0xa);if(_0x2be0f7===_0x4b4965)break;else _0x562b04['push'](_0x562b04['shift']());}catch(_0x5bf488){_0x562b04['push'](_0x562b04['shift']());}}}(a130_0x50a4,0x7e9cf));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';function a130_0x8ce4(_0x29fe4c,_0x28fd42){_0x29fe4c=_0x29fe4c-0x19b;const _0x50a4f0=a130_0x50a4();let _0x8ce4f=_0x50a4f0[_0x29fe4c];return _0x8ce4f;}export const NPX_SKILLS_SUBCOMMAND_ADD=a130_0x10dca6(0x1b9);export const NPX_SKILLS_FLAG_SKILL=a130_0x10dca6(0x1a9);export const RABETBASE_SKILL_SOURCE=a130_0x10dca6(0x1a6);export const DEFAULT_RABETBASE_SKILL_NAME=a130_0x10dca6(0x1a2);export function buildNpxSkillsAddArgv(_0x162d43=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x162d43];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a130_0x10dca6(0x1a4),...buildNpxSkillsAddArgv()]['join']('\x20');function a130_0x50a4(){const _0x3d9533=['3652504phMBqE','1208935JSxrQw','4MdqwIu','105980rTPymz','skill','log','remove','238180CsgRxb','pipe','stdio','status','add','909276NgNufw','inherit','--global','stderr','7pMxbDF','toString','exit\x20','Lovrabet','trim','npx','yes','lovrabet/lovrabet-skill','unknown','864280CdkFVB','--skill','join','stdout','387qqjoND','2901138doRxPX'];a130_0x50a4=function(){return _0x3d9533;};return a130_0x50a4();}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x6076c4,_0x2cae11){const _0x5a5d9c=a130_0x10dca6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4b2d47=_0x2cae11?.[_0x5a5d9c(0x1b7)]??_0x5a5d9c(0x19c),_0x33ba5c=resolveNpmBin('npx'),_0x4d65d8=buildNpxSkillsAddArgv(_0x2cae11?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x10e54f=[_0x33ba5c,..._0x4d65d8]['join']('\x20');console['log']('*\x20'+_0x10e54f);const _0x53f27a=spawnSync(_0x33ba5c,_0x4d65d8,{'cwd':_0x6076c4,'stdio':_0x4b2d47,'env':process.env,'shell':![]}),_0x4eb288=_0x53f27a[_0x5a5d9c(0x1b8)];if(_0x4eb288===0x0)return{'ok':!![],'status':0x0};let _0x1120c8=_0x5a5d9c(0x1a1)+(_0x4eb288??'unknown');if(_0x4b2d47===_0x5a5d9c(0x1b6)){const _0x36c895=_0x53f27a[_0x5a5d9c(0x19e)]?_0x53f27a[_0x5a5d9c(0x19e)][_0x5a5d9c(0x1a0)]()[_0x5a5d9c(0x1a3)]():'',_0x11abb4=_0x53f27a[_0x5a5d9c(0x1ab)]?_0x53f27a[_0x5a5d9c(0x1ab)][_0x5a5d9c(0x1a0)]()['trim']():'';if(_0x36c895)_0x1120c8=_0x36c895;else{if(_0x11abb4)_0x1120c8=_0x11abb4;}}return{'ok':![],'status':_0x4eb288??null,'error':_0x1120c8};}export function runNpxSkillsRemove(_0x5c2687,_0x2e4a80){const _0x5a5a84=a130_0x10dca6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4b4a5e=_0x2e4a80?.['stdio']??_0x5a5a84(0x19c),_0xb51310=resolveNpmBin(_0x5a5a84(0x1a4)),_0x46f713=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5a5a84(0x1b4),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x2e4a80?.[_0x5a5a84(0x1b2)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x2e4a80?.[_0x5a5a84(0x1a5)]?['-y']:[]],_0x5a0b16=[_0xb51310,..._0x46f713][_0x5a5a84(0x1aa)]('\x20');console[_0x5a5a84(0x1b3)]('*\x20'+_0x5a0b16);const _0x4f67ef=spawnSync(_0xb51310,_0x46f713,{'cwd':_0x5c2687,'stdio':_0x4b4a5e,'env':process.env,'shell':![]}),_0x3ae59f=_0x4f67ef[_0x5a5a84(0x1b8)];if(_0x3ae59f===0x0)return{'ok':!![],'status':0x0};let _0x12cb2b=_0x5a5a84(0x1a1)+(_0x3ae59f??_0x5a5a84(0x1a7));if(_0x4b4a5e===_0x5a5a84(0x1b6)){const _0x20d856=_0x4f67ef[_0x5a5a84(0x19e)]?_0x4f67ef[_0x5a5a84(0x19e)][_0x5a5a84(0x1a0)]()[_0x5a5a84(0x1a3)]():'',_0x47ad11=_0x4f67ef[_0x5a5a84(0x1ab)]?_0x4f67ef[_0x5a5a84(0x1ab)][_0x5a5a84(0x1a0)]()[_0x5a5a84(0x1a3)]():'';if(_0x20d856)_0x12cb2b=_0x20d856;else{if(_0x47ad11)_0x12cb2b=_0x47ad11;}}return{'ok':![],'status':_0x3ae59f??null,'error':_0x12cb2b};}export function runNpxSkillsAddGlobal(_0x1bd765,_0x53206f,_0x2b8b84){const _0x4cf384=a130_0x10dca6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x51f865=_0x2b8b84?.[_0x4cf384(0x1b7)]??_0x4cf384(0x19c),_0x36df39=resolveNpmBin(_0x4cf384(0x1a4)),_0x42c08e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x53206f,_0x4cf384(0x19d),..._0x2b8b84?.[_0x4cf384(0x1a5)]?['-y']:[]],_0x98c86f=[_0x36df39,..._0x42c08e]['join']('\x20');console[_0x4cf384(0x1b3)]('*\x20'+_0x98c86f);const _0x23fcbe=spawnSync(_0x36df39,_0x42c08e,{'cwd':_0x1bd765,'stdio':_0x51f865,'env':process.env,'shell':![]}),_0x4aff22=_0x23fcbe[_0x4cf384(0x1b8)];if(_0x4aff22===0x0)return{'ok':!![],'status':0x0};let _0xed1c35=_0x4cf384(0x1a1)+(_0x4aff22??_0x4cf384(0x1a7));if(_0x51f865===_0x4cf384(0x1b6)){const _0x13d536=_0x23fcbe[_0x4cf384(0x19e)]?_0x23fcbe[_0x4cf384(0x19e)][_0x4cf384(0x1a0)]()[_0x4cf384(0x1a3)]():'',_0x4bbf80=_0x23fcbe[_0x4cf384(0x1ab)]?_0x23fcbe[_0x4cf384(0x1ab)]['toString']()['trim']():'';if(_0x13d536)_0xed1c35=_0x13d536;else{if(_0x4bbf80)_0xed1c35=_0x4bbf80;}}return{'ok':![],'status':_0x4aff22??null,'error':_0xed1c35};}
1
+ function a136_0x279b(){const _0x575e79=['--skill','skill','175wYVuZh','exit\x20','trim','55733HPesbP','1692900jJVHQi','skills','remove','4658260fjdaNr','inherit','297itAkKE','lovrabet/lovrabet-skill','toString','--global','Lovrabet','stdout','3675532FqkEay','yes','246912hSLAaf','394254tBtVbR','33PNVCNV','stderr','add','unknown','4QCpVjc','235064AEkHGC','log','stdio','npx','pipe','join','status'];a136_0x279b=function(){return _0x575e79;};return a136_0x279b();}const a136_0x532639=a136_0x2c62;(function(_0x2eb426,_0x3f64c5){const _0xf813b4=a136_0x2c62,_0x40a139=_0x2eb426();while(!![]){try{const _0x5938ca=parseInt(_0xf813b4(0x6d))/0x1*(-parseInt(_0xf813b4(0x81))/0x2)+-parseInt(_0xf813b4(0x7c))/0x3+-parseInt(_0xf813b4(0x79))/0x4+parseInt(_0xf813b4(0x6e))/0x5+-parseInt(_0xf813b4(0x7b))/0x6*(parseInt(_0xf813b4(0x6a))/0x7)+parseInt(_0xf813b4(0x82))/0x8*(parseInt(_0xf813b4(0x73))/0x9)+parseInt(_0xf813b4(0x71))/0xa*(parseInt(_0xf813b4(0x7d))/0xb);if(_0x5938ca===_0x3f64c5)break;else _0x40a139['push'](_0x40a139['shift']());}catch(_0x21dc44){_0x40a139['push'](_0x40a139['shift']());}}}(a136_0x279b,0x7dc3a));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a136_0x2c62(_0x57df1d,_0x48069a){_0x57df1d=_0x57df1d-0x68;const _0x279b22=a136_0x279b();let _0x2c62fe=_0x279b22[_0x57df1d];return _0x2c62fe;}export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x532639(0x6f);export const NPX_SKILLS_SUBCOMMAND_ADD=a136_0x532639(0x7f);export const NPX_SKILLS_FLAG_SKILL=a136_0x532639(0x68);export const RABETBASE_SKILL_SOURCE=a136_0x532639(0x74);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x532639(0x77);export function buildNpxSkillsAddArgv(_0x22ee52=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x22ee52];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x532639(0x85),...buildNpxSkillsAddArgv()][a136_0x532639(0x87)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4d8b4a,_0x517285){const _0x3f2e1f=a136_0x532639;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44e0b8=_0x517285?.[_0x3f2e1f(0x84)]??_0x3f2e1f(0x72),_0x572903=resolveNpmBin(_0x3f2e1f(0x85)),_0x264ed0=buildNpxSkillsAddArgv(_0x517285?.[_0x3f2e1f(0x69)]??DEFAULT_RABETBASE_SKILL_NAME),_0xfcf862=[_0x572903,..._0x264ed0][_0x3f2e1f(0x87)]('\x20');console[_0x3f2e1f(0x83)]('*\x20'+_0xfcf862);const _0x1ffae4=spawnSync(_0x572903,_0x264ed0,{'cwd':_0x4d8b4a,'stdio':_0x44e0b8,'env':process.env,'shell':![]}),_0x5e692f=_0x1ffae4[_0x3f2e1f(0x88)];if(_0x5e692f===0x0)return{'ok':!![],'status':0x0};let _0x3fe8e0='exit\x20'+(_0x5e692f??_0x3f2e1f(0x80));if(_0x44e0b8===_0x3f2e1f(0x86)){const _0x244ad9=_0x1ffae4[_0x3f2e1f(0x7e)]?_0x1ffae4[_0x3f2e1f(0x7e)][_0x3f2e1f(0x75)]()[_0x3f2e1f(0x6c)]():'',_0x33a8ab=_0x1ffae4[_0x3f2e1f(0x78)]?_0x1ffae4[_0x3f2e1f(0x78)][_0x3f2e1f(0x75)]()[_0x3f2e1f(0x6c)]():'';if(_0x244ad9)_0x3fe8e0=_0x244ad9;else{if(_0x33a8ab)_0x3fe8e0=_0x33a8ab;}}return{'ok':![],'status':_0x5e692f??null,'error':_0x3fe8e0};}export function runNpxSkillsRemove(_0x54ad32,_0x5a5f92){const _0x2384f1=a136_0x532639;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x35ad70=_0x5a5f92?.[_0x2384f1(0x84)]??_0x2384f1(0x72),_0x5defa2=resolveNpmBin(_0x2384f1(0x85)),_0x16d188=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2384f1(0x70),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x5a5f92?.[_0x2384f1(0x69)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x5a5f92?.[_0x2384f1(0x7a)]?['-y']:[]],_0x19742b=[_0x5defa2,..._0x16d188][_0x2384f1(0x87)]('\x20');console[_0x2384f1(0x83)]('*\x20'+_0x19742b);const _0x565ad9=spawnSync(_0x5defa2,_0x16d188,{'cwd':_0x54ad32,'stdio':_0x35ad70,'env':process.env,'shell':![]}),_0xce6564=_0x565ad9['status'];if(_0xce6564===0x0)return{'ok':!![],'status':0x0};let _0xe1a7bf=_0x2384f1(0x6b)+(_0xce6564??_0x2384f1(0x80));if(_0x35ad70==='pipe'){const _0x3f9811=_0x565ad9[_0x2384f1(0x7e)]?_0x565ad9[_0x2384f1(0x7e)][_0x2384f1(0x75)]()[_0x2384f1(0x6c)]():'',_0x867dca=_0x565ad9[_0x2384f1(0x78)]?_0x565ad9[_0x2384f1(0x78)][_0x2384f1(0x75)]()[_0x2384f1(0x6c)]():'';if(_0x3f9811)_0xe1a7bf=_0x3f9811;else{if(_0x867dca)_0xe1a7bf=_0x867dca;}}return{'ok':![],'status':_0xce6564??null,'error':_0xe1a7bf};}export function runNpxSkillsAddGlobal(_0x33e59e,_0x3dadb4,_0x156971){const _0x3e75ce=a136_0x532639;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4cb0be=_0x156971?.[_0x3e75ce(0x84)]??_0x3e75ce(0x72),_0x25c042=resolveNpmBin(_0x3e75ce(0x85)),_0x43a87d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3dadb4,_0x3e75ce(0x76),..._0x156971?.[_0x3e75ce(0x7a)]?['-y']:[]],_0x672da8=[_0x25c042,..._0x43a87d][_0x3e75ce(0x87)]('\x20');console[_0x3e75ce(0x83)]('*\x20'+_0x672da8);const _0x59d786=spawnSync(_0x25c042,_0x43a87d,{'cwd':_0x33e59e,'stdio':_0x4cb0be,'env':process.env,'shell':![]}),_0x3f89a8=_0x59d786[_0x3e75ce(0x88)];if(_0x3f89a8===0x0)return{'ok':!![],'status':0x0};let _0x3061a2=_0x3e75ce(0x6b)+(_0x3f89a8??_0x3e75ce(0x80));if(_0x4cb0be===_0x3e75ce(0x86)){const _0x1d0643=_0x59d786[_0x3e75ce(0x7e)]?_0x59d786['stderr'][_0x3e75ce(0x75)]()[_0x3e75ce(0x6c)]():'',_0x4a3efb=_0x59d786['stdout']?_0x59d786[_0x3e75ce(0x78)]['toString']()['trim']():'';if(_0x1d0643)_0x3061a2=_0x1d0643;else{if(_0x4a3efb)_0x3061a2=_0x4a3efb;}}return{'ok':![],'status':_0x3f89a8??null,'error':_0x3061a2};}
@@ -1 +1 @@
1
- (function(_0x39a795,_0x5481a2){const _0x60d683=a131_0x178c,_0x22c53a=_0x39a795();while(!![]){try{const _0xfbf5f1=-parseInt(_0x60d683(0x19e))/0x1+parseInt(_0x60d683(0x1a9))/0x2*(parseInt(_0x60d683(0x1ad))/0x3)+parseInt(_0x60d683(0x1a7))/0x4*(parseInt(_0x60d683(0x1a2))/0x5)+parseInt(_0x60d683(0x1a6))/0x6*(parseInt(_0x60d683(0x1b2))/0x7)+-parseInt(_0x60d683(0x1af))/0x8*(parseInt(_0x60d683(0x1a8))/0x9)+parseInt(_0x60d683(0x1a4))/0xa+-parseInt(_0x60d683(0x1b0))/0xb*(parseInt(_0x60d683(0x1ac))/0xc);if(_0xfbf5f1===_0x5481a2)break;else _0x22c53a['push'](_0x22c53a['shift']());}catch(_0x1abaf9){_0x22c53a['push'](_0x22c53a['shift']());}}}(a131_0x28ed,0x25fc3));function a131_0x28ed(){const _0x205892=['durationMs','1421040XoPVcJ','stringify','265494UxIinu','376sWUFlm','90819khSzNR','263126EabsMz','service','[REDACTED]','1092QeWpmq','3jHpgKq','command','8wfiHeb','46519rbiDQi','message','21EKcTtE','error','test','flags','151057YwfAPU','rabetbase.command','some','entries','15700LFDbyR'];a131_0x28ed=function(){return _0x205892;};return a131_0x28ed();}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 a131_0x178c(_0x103e95,_0x34b2da){_0x103e95=_0x103e95-0x19b;const _0x28ed96=a131_0x28ed();let _0x178c5d=_0x28ed96[_0x103e95];return _0x178c5d;}function isSensitiveKey(_0x1b6d1b){const _0x5a7f2b=a131_0x178c;return SENSITIVE_PATTERNS[_0x5a7f2b(0x1a0)](_0x512fa9=>_0x512fa9[_0x5a7f2b(0x19c)](_0x1b6d1b));}function sanitizeFlags(_0x39c1a6){const _0x29adbe=a131_0x178c,_0x1d8759={};for(const [_0x4b1a9e,_0x1f3217]of Object[_0x29adbe(0x1a1)](_0x39c1a6)){isSensitiveKey(_0x4b1a9e)?_0x1d8759[_0x4b1a9e]=_0x1f3217!=null&&_0x1f3217!==''?_0x29adbe(0x1ab):_0x1f3217:_0x1d8759[_0x4b1a9e]=_0x1f3217;}return _0x1d8759;}export async function reportCommandTrace(_0x3f4e5e){const _0x333bb6=a131_0x178c;try{const _0x11163d=sanitizeFlags(_0x3f4e5e[_0x333bb6(0x19d)]);await sendCliTraceLog({'spanName':_0x333bb6(0x19f),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3f4e5e[_0x333bb6(0x1aa)],'command.name':_0x3f4e5e[_0x333bb6(0x1ae)],'command.flags':JSON[_0x333bb6(0x1a5)](_0x11163d),..._0x3f4e5e[_0x333bb6(0x1a3)]!=null?{'command.duration_ms':_0x3f4e5e[_0x333bb6(0x1a3)]}:{},..._0x3f4e5e[_0x333bb6(0x19b)]?{'command.error':_0x3f4e5e['error']instanceof Error?_0x3f4e5e[_0x333bb6(0x19b)][_0x333bb6(0x1b1)]:String(_0x3f4e5e[_0x333bb6(0x19b)])}:{}}});}catch{}}
1
+ (function(_0x1a97b9,_0x13793f){const _0x20c5be=a137_0x73cd,_0x404138=_0x1a97b9();while(!![]){try{const _0x34c8e1=-parseInt(_0x20c5be(0x12b))/0x1*(parseInt(_0x20c5be(0x11c))/0x2)+-parseInt(_0x20c5be(0x12a))/0x3*(parseInt(_0x20c5be(0x127))/0x4)+-parseInt(_0x20c5be(0x122))/0x5*(parseInt(_0x20c5be(0x120))/0x6)+parseInt(_0x20c5be(0x118))/0x7+parseInt(_0x20c5be(0x126))/0x8*(parseInt(_0x20c5be(0x129))/0x9)+-parseInt(_0x20c5be(0x11a))/0xa*(parseInt(_0x20c5be(0x121))/0xb)+parseInt(_0x20c5be(0x117))/0xc*(parseInt(_0x20c5be(0x119))/0xd);if(_0x34c8e1===_0x13793f)break;else _0x404138['push'](_0x404138['shift']());}catch(_0x1f5deb){_0x404138['push'](_0x404138['shift']());}}}(a137_0x4e9d,0x7e20f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a137_0x4e9d(){const _0x42b469=['170MefquS','[REDACTED]','71224FTOFPa','entries','durationMs','stringify','6mqiZzf','617870XBIfJe','1302485snLXLY','flags','some','error','2688fDKnzL','4MtNFKi','message','11241OJOgFf','2568561bLOlnL','6osTqAT','service','96IuEBbL','7133651tXXlOD','2215057ruQUnu'];a137_0x4e9d=function(){return _0x42b469;};return a137_0x4e9d();}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(_0x3b11b2){const _0x4f5cd3=a137_0x73cd;return SENSITIVE_PATTERNS[_0x4f5cd3(0x124)](_0x579ae6=>_0x579ae6['test'](_0x3b11b2));}function sanitizeFlags(_0xd7663b){const _0x4418ab=a137_0x73cd,_0x4185a6={};for(const [_0x55dde5,_0x52c03e]of Object[_0x4418ab(0x11d)](_0xd7663b)){isSensitiveKey(_0x55dde5)?_0x4185a6[_0x55dde5]=_0x52c03e!=null&&_0x52c03e!==''?_0x4418ab(0x11b):_0x52c03e:_0x4185a6[_0x55dde5]=_0x52c03e;}return _0x4185a6;}function a137_0x73cd(_0x39aabe,_0x21a3bc){_0x39aabe=_0x39aabe-0x116;const _0x4e9d61=a137_0x4e9d();let _0x73cddb=_0x4e9d61[_0x39aabe];return _0x73cddb;}export async function reportCommandTrace(_0x4e4f22){const _0xc82e12=a137_0x73cd;try{const _0x5b6a6f=sanitizeFlags(_0x4e4f22[_0xc82e12(0x123)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x4e4f22[_0xc82e12(0x116)],'command.name':_0x4e4f22['command'],'command.flags':JSON[_0xc82e12(0x11f)](_0x5b6a6f),..._0x4e4f22[_0xc82e12(0x11e)]!=null?{'command.duration_ms':_0x4e4f22[_0xc82e12(0x11e)]}:{},..._0x4e4f22['error']?{'command.error':_0x4e4f22[_0xc82e12(0x125)]instanceof Error?_0x4e4f22[_0xc82e12(0x125)][_0xc82e12(0x128)]:String(_0x4e4f22[_0xc82e12(0x125)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0xaedfe1,_0x4488ea){var _0x345aaf=a132_0x7e61,_0x51ac11=_0xaedfe1();while(!![]){try{var _0x141c1c=parseInt(_0x345aaf(0x146))/0x1+parseInt(_0x345aaf(0x147))/0x2*(-parseInt(_0x345aaf(0x145))/0x3)+-parseInt(_0x345aaf(0x143))/0x4+-parseInt(_0x345aaf(0x142))/0x5+-parseInt(_0x345aaf(0x13b))/0x6+-parseInt(_0x345aaf(0x13c))/0x7*(parseInt(_0x345aaf(0x141))/0x8)+parseInt(_0x345aaf(0x13f))/0x9;if(_0x141c1c===_0x4488ea)break;else _0x51ac11['push'](_0x51ac11['shift']());}catch(_0x592c5d){_0x51ac11['push'](_0x51ac11['shift']());}}}(a132_0x4b54,0x90e0c));function a132_0x7e61(_0xb78597,_0x3d2729){_0xb78597=_0xb78597-0x13b;var _0x4b54c8=a132_0x4b54();var _0x7e6170=_0x4b54c8[_0xb78597];return _0x7e6170;}function a132_0x4b54(){var _0x1c4845=['45DdOQHs','769472pErusj','23738OlHTWB','2092926wVOaZi','14sbMgcv','error','service','24519564RHJPKb','Failed\x20to\x20report\x20CLI\x20help\x20trace:','3732696rOsrmL','5025380YedOUa','1741368QiMkTB','cli.help'];a132_0x4b54=function(){return _0x1c4845;};return a132_0x4b54();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x32d2bd,_0x484cf9){var _0x307f6d=a132_0x7e61;try{await sendCliTraceLog({'spanName':_0x307f6d(0x144),'logData':{'rabetbase.help.kind':_0x32d2bd,..._0x484cf9?.[_0x307f6d(0x13e)]&&{'rabetbase.help.service':_0x484cf9[_0x307f6d(0x13e)]}}});}catch(_0x30c13e){console[_0x307f6d(0x13d)](_0x307f6d(0x140),_0x30c13e);}}
1
+ function a138_0xf0ee(_0x39d9f2,_0x4356b8){_0x39d9f2=_0x39d9f2-0xd8;var _0x2d23a7=a138_0x2d23();var _0xf0ee3f=_0x2d23a7[_0x39d9f2];return _0xf0ee3f;}(function(_0x5a647a,_0x14f31c){var _0x1eaad3=a138_0xf0ee,_0x2990d5=_0x5a647a();while(!![]){try{var _0x45ceef=-parseInt(_0x1eaad3(0xda))/0x1+-parseInt(_0x1eaad3(0xe0))/0x2*(parseInt(_0x1eaad3(0xe4))/0x3)+parseInt(_0x1eaad3(0xdc))/0x4*(-parseInt(_0x1eaad3(0xe2))/0x5)+-parseInt(_0x1eaad3(0xe1))/0x6+-parseInt(_0x1eaad3(0xdb))/0x7*(parseInt(_0x1eaad3(0xde))/0x8)+parseInt(_0x1eaad3(0xe3))/0x9+-parseInt(_0x1eaad3(0xd9))/0xa*(-parseInt(_0x1eaad3(0xdf))/0xb);if(_0x45ceef===_0x14f31c)break;else _0x2990d5['push'](_0x2990d5['shift']());}catch(_0x14280e){_0x2990d5['push'](_0x2990d5['shift']());}}}(a138_0x2d23,0x73f06));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x24f552,_0x4483d5){var _0x134dc5=a138_0xf0ee;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x24f552,..._0x4483d5?.[_0x134dc5(0xe5)]&&{'rabetbase.help.service':_0x4483d5[_0x134dc5(0xe5)]}}});}catch(_0x594e48){console[_0x134dc5(0xd8)](_0x134dc5(0xdd),_0x594e48);}}function a138_0x2d23(){var _0x20d8e1=['service','error','10wIqePu','271787oKWRkq','1518762ynEzIm','148WuQGYS','Failed\x20to\x20report\x20CLI\x20help\x20trace:','32zKpimo','26573459coIrzg','753266nUMuuv','5630706MsUHOa','49785OUndaR','7940349XTwANp','3FOIizQ'];a138_0x2d23=function(){return _0x20d8e1;};return a138_0x2d23();}
@@ -1 +1 @@
1
- (function(_0x3da43f,_0x8f5225){const _0x5e35a4=a133_0x26fd,_0x3935cd=_0x3da43f();while(!![]){try{const _0x5a0ff1=-parseInt(_0x5e35a4(0x1fa))/0x1*(-parseInt(_0x5e35a4(0x1fb))/0x2)+parseInt(_0x5e35a4(0x1f8))/0x3*(parseInt(_0x5e35a4(0x1f9))/0x4)+parseInt(_0x5e35a4(0x1f0))/0x5*(parseInt(_0x5e35a4(0x1ee))/0x6)+-parseInt(_0x5e35a4(0x1f7))/0x7*(parseInt(_0x5e35a4(0x1fe))/0x8)+-parseInt(_0x5e35a4(0x1fd))/0x9*(-parseInt(_0x5e35a4(0x1ed))/0xa)+parseInt(_0x5e35a4(0x1ff))/0xb+-parseInt(_0x5e35a4(0x1f1))/0xc;if(_0x5a0ff1===_0x8f5225)break;else _0x3935cd['push'](_0x3935cd['shift']());}catch(_0x1d81a9){_0x3935cd['push'](_0x3935cd['shift']());}}}(a133_0xadad,0xddb5f));import a133_0x51901d from'node:os';function a133_0x26fd(_0x5d0096,_0x542f8){_0x5d0096=_0x5d0096-0x1ed;const _0xadad44=a133_0xadad();let _0x26fdb9=_0xadad44[_0x5d0096];return _0x26fdb9;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';function a133_0xadad(){const _0x50325b=['14mdARhS','658392JVGpzy','8pFmLjX','381097giHJpb','4XguhFa','userInfo','5945148vEZtAK','6855272DdNBhl','8104294JJaddj','20FbrrGS','69582ZOcEXm','unknown','175KolxyB','12515640IPVgEJ','daily','user','production','username','rabetbase-cli'];a133_0xadad=function(){return _0x50325b;};return a133_0xadad();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0xcd6f88=a133_0x26fd,_0x3340f1=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x224e35=_0x3340f1?.[_0xcd6f88(0x1f3)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xcd6f88(0x1ef)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xcd6f88(0x1f2):_0xcd6f88(0x1f4)),'username':_0x224e35?.[_0xcd6f88(0x1f5)]??a133_0x51901d[_0xcd6f88(0x1fc)]()[_0xcd6f88(0x1f5)]??_0xcd6f88(0x1f6),..._0x224e35&&{'nickname':_0x224e35['nickname']}}),cliOtelTraceInitialized=!![];}return _0x3340f1;}
1
+ function a139_0x31ba(){const _0x12cf86=['rabetbase-cli','7cSRHCX','394950DAqHls','unknown','2VbVzgH','20zPFqjF','user','264198wLeUPp','7253960rKnZsb','nickname','216820WVXtLo','808931GjzljF','4687227AymRYY','70xvmzvQ','6756002zeuMLL','username'];a139_0x31ba=function(){return _0x12cf86;};return a139_0x31ba();}(function(_0x15fbb2,_0xf13f9c){const _0x1407d2=a139_0x2430,_0x5b416a=_0x15fbb2();while(!![]){try{const _0x4da35e=parseInt(_0x1407d2(0x19e))/0x1*(parseInt(_0x1407d2(0x197))/0x2)+parseInt(_0x1407d2(0x195))/0x3*(-parseInt(_0x1407d2(0x198))/0x4)+-parseInt(_0x1407d2(0x1a0))/0x5*(-parseInt(_0x1407d2(0x19a))/0x6)+parseInt(_0x1407d2(0x194))/0x7*(parseInt(_0x1407d2(0x19b))/0x8)+-parseInt(_0x1407d2(0x19f))/0x9+-parseInt(_0x1407d2(0x19d))/0xa+-parseInt(_0x1407d2(0x1a1))/0xb;if(_0x4da35e===_0xf13f9c)break;else _0x5b416a['push'](_0x5b416a['shift']());}catch(_0x4c53e2){_0x5b416a['push'](_0x5b416a['shift']());}}}(a139_0x31ba,0x7e465));import a139_0x350645 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';function a139_0x2430(_0x278979,_0x5428ec){_0x278979=_0x278979-0x194;const _0x31ba35=a139_0x31ba();let _0x243028=_0x31ba35[_0x278979];return _0x243028;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x12a0f0=a139_0x2430,_0x5a92f7=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xd08396=_0x5a92f7?.[_0x12a0f0(0x199)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x12a0f0(0x196)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':'production'),'username':_0xd08396?.[_0x12a0f0(0x1a2)]??a139_0x350645['userInfo']()[_0x12a0f0(0x1a2)]??_0x12a0f0(0x1a3),..._0xd08396&&{'nickname':_0xd08396[_0x12a0f0(0x19c)]}}),cliOtelTraceInitialized=!![];}return _0x5a92f7;}
@@ -1 +1 @@
1
- function a134_0xae4a(){const _0x1da3aa=['2439198fpHVeW','SIGTERM','6214932dmxZMd','37295zrrzzC','16KEbrnv','once','11MtiRoz','3nHelEo','1926040FxYfoI','1104TuJhXy','336XSJyNT','exit','31192YMSbTF','1322122YfIdgb','824644pZstqo','then'];a134_0xae4a=function(){return _0x1da3aa;};return a134_0xae4a();}(function(_0x49cbde,_0x52f9f1){const _0x158fd5=a134_0x1993,_0x138a11=_0x49cbde();while(!![]){try{const _0x1e497a=parseInt(_0x158fd5(0xd1))/0x1+parseInt(_0x158fd5(0xd0))/0x2*(parseInt(_0x158fd5(0xda))/0x3)+-parseInt(_0x158fd5(0xcd))/0x4*(parseInt(_0x158fd5(0xd6))/0x5)+parseInt(_0x158fd5(0xcc))/0x6*(parseInt(_0x158fd5(0xcf))/0x7)+parseInt(_0x158fd5(0xd7))/0x8*(-parseInt(_0x158fd5(0xd3))/0x9)+parseInt(_0x158fd5(0xdb))/0xa*(-parseInt(_0x158fd5(0xd9))/0xb)+-parseInt(_0x158fd5(0xd5))/0xc;if(_0x1e497a===_0x52f9f1)break;else _0x138a11['push'](_0x138a11['shift']());}catch(_0x5dfdc7){_0x138a11['push'](_0x138a11['shift']());}}}(a134_0xae4a,0x681fe));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 _0x4a2ed4=a134_0x1993;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x326c7f=()=>{const _0x1c1d50=a134_0x1993;void flushOtelNodeIfUsed()[_0x1c1d50(0xd2)](()=>process[_0x1c1d50(0xce)](0x0));};process['once']('SIGINT',_0x326c7f),process[_0x4a2ed4(0xd8)](_0x4a2ed4(0xd4),_0x326c7f);}function a134_0x1993(_0x41de11,_0x157195){_0x41de11=_0x41de11-0xcc;const _0xae4a2a=a134_0xae4a();let _0x199361=_0xae4a2a[_0x41de11];return _0x199361;}export async function exitWithOtelShutdown(_0x52c952){const _0x52ca60=a134_0x1993;await flushOtelNodeIfUsed(),process[_0x52ca60(0xce)](_0x52c952);}
1
+ (function(_0x54d39c,_0x426d28){const _0x366056=a140_0x50c2,_0x5e8d2a=_0x54d39c();while(!![]){try{const _0x4dd11e=-parseInt(_0x366056(0x15a))/0x1*(parseInt(_0x366056(0x164))/0x2)+-parseInt(_0x366056(0x163))/0x3*(parseInt(_0x366056(0x15d))/0x4)+-parseInt(_0x366056(0x15c))/0x5+-parseInt(_0x366056(0x158))/0x6+-parseInt(_0x366056(0x160))/0x7+parseInt(_0x366056(0x157))/0x8*(-parseInt(_0x366056(0x161))/0x9)+parseInt(_0x366056(0x159))/0xa;if(_0x4dd11e===_0x426d28)break;else _0x5e8d2a['push'](_0x5e8d2a['shift']());}catch(_0xb5a170){_0x5e8d2a['push'](_0x5e8d2a['shift']());}}}(a140_0x59ba,0x78b95));import{shutdownTraces}from'@lovrabet/otel-logger';function a140_0x59ba(){const _0x1a3c16=['2661835MsnCwz','12NXDIbn','once','SIGINT','5812184GEgoPz','1342287cDqkQO','exit','229761IquXwi','1962TzSqSQ','then','SIGTERM','24OqOCFS','2615370VNHCXQ','30281280EHvSCH','59HUlReS','beforeExit'];a140_0x59ba=function(){return _0x1a3c16;};return a140_0x59ba();}let shutdownPromise=null;function a140_0x50c2(_0x2446cd,_0x37c226){_0x2446cd=_0x2446cd-0x157;const _0x59baac=a140_0x59ba();let _0x50c2cf=_0x59baac[_0x2446cd];return _0x50c2cf;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3000af=a140_0x50c2;process['once'](_0x3000af(0x15b),()=>{void flushOtelNodeIfUsed();});const _0x733ae8=()=>{const _0x172819=_0x3000af;void flushOtelNodeIfUsed()[_0x172819(0x165)](()=>process['exit'](0x0));};process[_0x3000af(0x15e)](_0x3000af(0x15f),_0x733ae8),process[_0x3000af(0x15e)](_0x3000af(0x166),_0x733ae8);}export async function exitWithOtelShutdown(_0x4d7fc8){const _0x65abfb=a140_0x50c2;await flushOtelNodeIfUsed(),process[_0x65abfb(0x162)](_0x4d7fc8);}
@@ -1 +1 @@
1
- (function(_0x5136fb,_0x1660ea){const _0x501a97=a135_0x79d7,_0x55c911=_0x5136fb();while(!![]){try{const _0x2a24e5=-parseInt(_0x501a97(0xa4))/0x1*(parseInt(_0x501a97(0xad))/0x2)+parseInt(_0x501a97(0xa5))/0x3+parseInt(_0x501a97(0xa9))/0x4*(parseInt(_0x501a97(0xac))/0x5)+parseInt(_0x501a97(0xaf))/0x6+-parseInt(_0x501a97(0xaa))/0x7+-parseInt(_0x501a97(0xb0))/0x8*(-parseInt(_0x501a97(0xa8))/0x9)+-parseInt(_0x501a97(0xa6))/0xa*(parseInt(_0x501a97(0xae))/0xb);if(_0x2a24e5===_0x1660ea)break;else _0x55c911['push'](_0x55c911['shift']());}catch(_0x594702){_0x55c911['push'](_0x55c911['shift']());}}}(a135_0x3733,0xc2d26));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a135_0x79d7(_0x50279e,_0x374114){_0x50279e=_0x50279e-0xa3;const _0x373315=a135_0x3733();let _0x79d769=_0x373315[_0x50279e];return _0x79d769;}import{getCliVersion}from'../utils/version.js';function a135_0x3733(){const _0x5ef8cc=['5NgmwFn','17526GKyXsD','73337MFIdDq','5136252XcyrTq','16392lHHPZl','manual','142IRNMlI','1953942vsPNnX','120oEOHiX','traceparent','1737BcypuZ','4697584mnjRwB','6684083PrcXXh','version'];a135_0x3733=function(){return _0x5ef8cc;};return a135_0x3733();}const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x12481a){const _0x126039=a135_0x79d7;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x12481a['traceName']??DEFAULT_TRACE_NAME,'version':_0x12481a[_0x126039(0xab)]??getCliVersion(),'spanName':_0x12481a['spanName'],'eventType':_0x126039(0xa3),'logData':_0x12481a['logData'],..._0x12481a['traceparent']&&{'traceparent':_0x12481a[_0x126039(0xa7)]}});}
1
+ function a141_0x4041(_0x37c0c3,_0x752b22){_0x37c0c3=_0x37c0c3-0x86;const _0xfa144d=a141_0xfa14();let _0x4041ea=_0xfa144d[_0x37c0c3];return _0x4041ea;}(function(_0x315504,_0x39b800){const _0x28cbbe=a141_0x4041,_0x21bf97=_0x315504();while(!![]){try{const _0x47f4d1=-parseInt(_0x28cbbe(0x88))/0x1+parseInt(_0x28cbbe(0x8b))/0x2+parseInt(_0x28cbbe(0x90))/0x3+-parseInt(_0x28cbbe(0x8c))/0x4+parseInt(_0x28cbbe(0x89))/0x5*(-parseInt(_0x28cbbe(0x92))/0x6)+-parseInt(_0x28cbbe(0x8a))/0x7+parseInt(_0x28cbbe(0x8f))/0x8;if(_0x47f4d1===_0x39b800)break;else _0x21bf97['push'](_0x21bf97['shift']());}catch(_0xfae9fb){_0x21bf97['push'](_0x21bf97['shift']());}}}(a141_0xfa14,0x3ace2));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='rabetbase-cli';export async function sendCliTraceLog(_0x49e02d){const _0x20e624=a141_0x4041;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x49e02d['traceName']??DEFAULT_TRACE_NAME,'version':_0x49e02d[_0x20e624(0x87)]??getCliVersion(),'spanName':_0x49e02d[_0x20e624(0x8e)],'eventType':_0x20e624(0x86),'logData':_0x49e02d[_0x20e624(0x8d)],..._0x49e02d[_0x20e624(0x91)]&&{'traceparent':_0x49e02d[_0x20e624(0x91)]}});}function a141_0xfa14(){const _0x533d41=['18PBurhW','manual','version','440166RmLvWO','495545RAMDmE','3263694Ylbaja','576046wOTrYn','1856764iSoIrA','logData','spanName','11157152kHcVHf','678375EkoFGm','traceparent'];a141_0xfa14=function(){return _0x533d41;};return a141_0xfa14();}
@@ -1 +1 @@
1
- const a137_0xe5c022=a137_0x552e;function a137_0x552e(_0x39c3f7,_0x36c07c){_0x39c3f7=_0x39c3f7-0x74;const _0x5e9ba1=a137_0x5e9b();let _0x552ecb=_0x5e9ba1[_0x39c3f7];return _0x552ecb;}(function(_0x3cc473,_0xcac7b6){const _0x2f5b5c=a137_0x552e,_0x2bf0b6=_0x3cc473();while(!![]){try{const _0x351474=-parseInt(_0x2f5b5c(0xab))/0x1+-parseInt(_0x2f5b5c(0x88))/0x2*(-parseInt(_0x2f5b5c(0x86))/0x3)+-parseInt(_0x2f5b5c(0x7a))/0x4+-parseInt(_0x2f5b5c(0x81))/0x5*(-parseInt(_0x2f5b5c(0xb0))/0x6)+parseInt(_0x2f5b5c(0x91))/0x7*(parseInt(_0x2f5b5c(0x85))/0x8)+parseInt(_0x2f5b5c(0x7d))/0x9*(parseInt(_0x2f5b5c(0xa2))/0xa)+-parseInt(_0x2f5b5c(0x9f))/0xb*(parseInt(_0x2f5b5c(0x8f))/0xc);if(_0x351474===_0xcac7b6)break;else _0x2bf0b6['push'](_0x2bf0b6['shift']());}catch(_0x9336c){_0x2bf0b6['push'](_0x2bf0b6['shift']());}}}(a137_0x5e9b,0x409db));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a137_0xe5c022(0xa1),'.cursor'],'files':[{'type':a137_0xe5c022(0x8c),'path':a137_0xe5c022(0xb1),'template':a137_0xe5c022(0x89)}]},'windsurf':{'name':a137_0xe5c022(0x99),'description':a137_0xe5c022(0x93),'folders':[a137_0xe5c022(0x9d)],'files':[{'type':a137_0xe5c022(0x8c),'path':a137_0xe5c022(0xa3),'template':a137_0xe5c022(0x89)}]},'claude':{'name':'Claude\x20Code','description':a137_0xe5c022(0x78),'folders':[a137_0xe5c022(0x79)],'files':[{'type':a137_0xe5c022(0x8c),'path':a137_0xe5c022(0x96),'template':a137_0xe5c022(0x89)}]},'cline':{'name':a137_0xe5c022(0x75),'description':'Cline\x20IDE','folders':[a137_0xe5c022(0x83)],'files':[{'type':a137_0xe5c022(0x8c),'path':'.cline/skills/lovrabet/SKILL.md','template':a137_0xe5c022(0x89)}]},'codex':{'name':a137_0xe5c022(0xb2),'description':a137_0xe5c022(0xad),'folders':[a137_0xe5c022(0x9e)],'files':[{'type':'file','path':a137_0xe5c022(0x76),'template':a137_0xe5c022(0x89)}]},'opencode':{'name':a137_0xe5c022(0x7e),'description':a137_0xe5c022(0x98),'folders':[a137_0xe5c022(0xaa)],'files':[{'type':'file','path':a137_0xe5c022(0x7c),'template':a137_0xe5c022(0x89)}]},'qoder':{'name':a137_0xe5c022(0xa4),'description':a137_0xe5c022(0x90),'folders':[a137_0xe5c022(0x7b)],'files':[{'type':a137_0xe5c022(0x8c),'path':a137_0xe5c022(0xa7),'template':a137_0xe5c022(0x89)},{'type':a137_0xe5c022(0x8c),'path':a137_0xe5c022(0x87),'template':a137_0xe5c022(0x89)}]},'codebuddy':{'name':a137_0xe5c022(0xa0),'description':a137_0xe5c022(0x77),'folders':[a137_0xe5c022(0xac)],'files':[{'type':'file','path':a137_0xe5c022(0xa5),'template':a137_0xe5c022(0x89)}]},'trae':{'name':a137_0xe5c022(0x8d),'description':a137_0xe5c022(0x9a),'folders':[a137_0xe5c022(0x94)],'files':[{'type':a137_0xe5c022(0x8c),'path':a137_0xe5c022(0x95),'template':a137_0xe5c022(0x89)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a137_0xe5c022(0x74),'description':a137_0xe5c022(0xaf),'folders':[a137_0xe5c022(0xa8)],'files':[{'type':a137_0xe5c022(0x8c),'path':a137_0xe5c022(0xa6),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a137_0xe5c022(0x92),'description':a137_0xe5c022(0x7f),'folders':[a137_0xe5c022(0xa8)],'files':[{'type':a137_0xe5c022(0x8c),'path':a137_0xe5c022(0xa6),'template':a137_0xe5c022(0x89)}]}};export const CORE_IDE_LIST=[a137_0xe5c022(0x80),a137_0xe5c022(0x84),a137_0xe5c022(0x8b),a137_0xe5c022(0x8e),'cursor',a137_0xe5c022(0x97),a137_0xe5c022(0xae),a137_0xe5c022(0x9b),'windsurf'];export const IDE_LIST=[a137_0xe5c022(0x9c),a137_0xe5c022(0x80),a137_0xe5c022(0x84),'codebuddy',a137_0xe5c022(0x8e),a137_0xe5c022(0x8a),a137_0xe5c022(0x97),a137_0xe5c022(0xae),a137_0xe5c022(0x9b),'windsurf',a137_0xe5c022(0x82)];function a137_0x5e9b(){const _0x2c7d60=['通用模板\x20-\x20兜底方案','12CkMLjD','.cursor/skills/rabetbase.md','Codex','其他\x20(通用模板)','Cline','.codex/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','Claude\x20Code','.claude','1102304NaXLWo','.qoder','.opencode/skills/lovrabet/SKILL.md','45FVWJPX','OpenCode','Antigravity\x20IDE','claude','194430CMzHku','agent','.cline','cline','211280sYtaMx','1340187PYSHKh','.qoder/skills/lovrabet/SKILL.md','2NUBpzF','SKILL.md.tpl','cursor','codebuddy','file','Trae','codex','13548gwegNu','Qoder\x20IDE','119hYuXgR','Antigravity','Windsurf\x20IDE','.trae','.trae/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md','opencode','OpenCode\x20IDE','Windsurf','Trae\x20IDE','trae','antigravity','.windsurf','.codex','3817BzvFKm','CodeBuddy','.cursorrules','517290QdgwcC','.windsurf/workflows/rabetbase.md','Qoder','.codebuddy/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','.agent','windsurf','.opencode','300110ZOQedC','.codebuddy','Codex\x20IDE','qoder'];a137_0x5e9b=function(){return _0x2c7d60;};return a137_0x5e9b();}export const ALL_CORE_IDES=[a137_0xe5c022(0x8a),a137_0xe5c022(0xa9),a137_0xe5c022(0x80),a137_0xe5c022(0x84),a137_0xe5c022(0x8e),a137_0xe5c022(0x97),a137_0xe5c022(0xae),a137_0xe5c022(0x8b),a137_0xe5c022(0x9b)];
1
+ const a143_0x4646b2=a143_0x5cd7;function a143_0x5cd7(_0x1de91d,_0x502f5d){_0x1de91d=_0x1de91d-0x181;const _0x5235a5=a143_0x5235();let _0x5cd700=_0x5235a5[_0x1de91d];return _0x5cd700;}(function(_0x56dc19,_0x268156){const _0x76347=a143_0x5cd7,_0x1d223b=_0x56dc19();while(!![]){try{const _0x3119d2=-parseInt(_0x76347(0x199))/0x1*(parseInt(_0x76347(0x1a5))/0x2)+parseInt(_0x76347(0x18e))/0x3+parseInt(_0x76347(0x18a))/0x4+parseInt(_0x76347(0x193))/0x5+parseInt(_0x76347(0x1ae))/0x6*(parseInt(_0x76347(0x188))/0x7)+-parseInt(_0x76347(0x181))/0x8*(-parseInt(_0x76347(0x1a9))/0x9)+-parseInt(_0x76347(0x186))/0xa;if(_0x3119d2===_0x268156)break;else _0x1d223b['push'](_0x1d223b['shift']());}catch(_0x5b198a){_0x1d223b['push'](_0x1d223b['shift']());}}}(a143_0x5235,0xc761b));function a143_0x5235(){const _0x2b75b4=['1WPkbCe','opencode','.opencode','cline','.codebuddy/skills/lovrabet/SKILL.md','Qoder\x20IDE','codebuddy','qoder','.trae','.qoder/skills/lovrabet/SKILL.md','windsurf','.opencode/skills/lovrabet/SKILL.md','1845338lHGIoh','OpenCode\x20IDE','agent','.codebuddy','724122kCMmXF','codex','Windsurf','.cursorrules','.agent','6EZRdPc','.qoder/rules/rabetbase.md','.trae/skills/lovrabet/SKILL.md','.claude','Antigravity','.agent/skills/lovrabet/SKILL.md','Trae\x20IDE','.qoder','.cline','Codex','128LAkCgz','trae','.codex/skills/lovrabet/SKILL.md','.codex','Codex\x20IDE','29493670aGJUwB','Antigravity\x20IDE','4773965xnwwlX','Cline','5595780AYDTnH','file','Qoder','SKILL.md.tpl','2200377BwsxVz','Trae','claude','.windsurf/workflows/rabetbase.md','其他\x20(通用模板)','2934880BaTdjF','cursor','Claude\x20Code','.claude/skills/lovrabet/SKILL.md','Cursor','Windsurf\x20IDE'];a143_0x5235=function(){return _0x2b75b4;};return a143_0x5235();}export const CORE_IDE_CONFIGS={'cursor':{'name':a143_0x4646b2(0x197),'description':'Cursor\x20IDE','folders':[a143_0x4646b2(0x1ac),'.cursor'],'files':[{'type':a143_0x4646b2(0x18b),'path':'.cursor/skills/rabetbase.md','template':a143_0x4646b2(0x18d)}]},'windsurf':{'name':a143_0x4646b2(0x1ab),'description':a143_0x4646b2(0x198),'folders':['.windsurf'],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x191),'template':'SKILL.md.tpl'}]},'claude':{'name':a143_0x4646b2(0x195),'description':a143_0x4646b2(0x195),'folders':[a143_0x4646b2(0x1b1)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x196),'template':'SKILL.md.tpl'}]},'cline':{'name':a143_0x4646b2(0x189),'description':'Cline\x20IDE','folders':[a143_0x4646b2(0x1b6)],'files':[{'type':a143_0x4646b2(0x18b),'path':'.cline/skills/lovrabet/SKILL.md','template':a143_0x4646b2(0x18d)}]},'codex':{'name':a143_0x4646b2(0x1b7),'description':a143_0x4646b2(0x185),'folders':[a143_0x4646b2(0x184)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x183),'template':a143_0x4646b2(0x18d)}]},'opencode':{'name':'OpenCode','description':a143_0x4646b2(0x1a6),'folders':[a143_0x4646b2(0x19b)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1a4),'template':a143_0x4646b2(0x18d)}]},'qoder':{'name':a143_0x4646b2(0x18c),'description':a143_0x4646b2(0x19e),'folders':[a143_0x4646b2(0x1b5)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1af),'template':a143_0x4646b2(0x18d)},{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1a2),'template':a143_0x4646b2(0x18d)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a143_0x4646b2(0x1a8)],'files':[{'type':'file','path':a143_0x4646b2(0x19d),'template':a143_0x4646b2(0x18d)}]},'trae':{'name':a143_0x4646b2(0x18f),'description':a143_0x4646b2(0x1b4),'folders':[a143_0x4646b2(0x1a1)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1b0),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a143_0x4646b2(0x192),'description':'通用模板\x20-\x20兜底方案','folders':[a143_0x4646b2(0x1ad)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1b3),'template':a143_0x4646b2(0x18d)}]},'antigravity':{'name':a143_0x4646b2(0x1b2),'description':a143_0x4646b2(0x187),'folders':[a143_0x4646b2(0x1ad)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1b3),'template':a143_0x4646b2(0x18d)}]}};export const CORE_IDE_LIST=[a143_0x4646b2(0x190),a143_0x4646b2(0x19c),'codebuddy',a143_0x4646b2(0x1aa),a143_0x4646b2(0x194),a143_0x4646b2(0x19a),a143_0x4646b2(0x1a0),a143_0x4646b2(0x182),a143_0x4646b2(0x1a3)];export const IDE_LIST=['antigravity',a143_0x4646b2(0x190),'cline',a143_0x4646b2(0x19f),a143_0x4646b2(0x1aa),'cursor',a143_0x4646b2(0x19a),a143_0x4646b2(0x1a0),a143_0x4646b2(0x182),'windsurf',a143_0x4646b2(0x1a7)];export const ALL_CORE_IDES=[a143_0x4646b2(0x194),a143_0x4646b2(0x1a3),a143_0x4646b2(0x190),a143_0x4646b2(0x19c),'codex',a143_0x4646b2(0x19a),a143_0x4646b2(0x1a0),a143_0x4646b2(0x19f),a143_0x4646b2(0x182)];
@@ -1 +1 @@
1
- (function(_0x17384d,_0x4bac80){const _0x1326cc=a138_0x15f9,_0xe07a25=_0x17384d();while(!![]){try{const _0x3ff407=-parseInt(_0x1326cc(0xa6))/0x1*(parseInt(_0x1326cc(0xa3))/0x2)+-parseInt(_0x1326cc(0xa7))/0x3+parseInt(_0x1326cc(0xb8))/0x4+parseInt(_0x1326cc(0xae))/0x5*(-parseInt(_0x1326cc(0xa4))/0x6)+parseInt(_0x1326cc(0xb2))/0x7+-parseInt(_0x1326cc(0xb1))/0x8*(parseInt(_0x1326cc(0xab))/0x9)+parseInt(_0x1326cc(0xb5))/0xa;if(_0x3ff407===_0x4bac80)break;else _0xe07a25['push'](_0xe07a25['shift']());}catch(_0x5d2828){_0xe07a25['push'](_0xe07a25['shift']());}}}(a138_0x335e,0x45197));import{execFileSync}from'node:child_process';import{existsSync}from'node:fs';import{createRequire}from'node:module';function a138_0x335e(){const _0xa1bea2=['validation','988202KfDgwQ','673332nLLoJU','resolve','1VVxPaz','1496742ofdnOa','win32','jq.exe','trim','27mNeMBc','join','platform','5DcgHZi','--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/','node-jq/package.json','13288GhIRQR','182406lLPwpp','pipe','message','10353810RsQLQV','utf8','toString','1327248xEJRhT','stderr','test'];a138_0x335e=function(){return _0xa1bea2;};return a138_0x335e();}function a138_0x15f9(_0x11576d,_0x2dc8cc){_0x11576d=_0x11576d-0xa0;const _0x335e53=a138_0x335e();let _0x15f94e=_0x335e53[_0x11576d];return _0x15f94e;}import a138_0x48c0dc from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function resolveJqBinary(){const _0x398e0f=a138_0x15f9;try{const _0x51dd32=createRequire(import.meta.url),_0x117e50=a138_0x48c0dc['dirname'](_0x51dd32[_0x398e0f(0xa5)](_0x398e0f(0xb0))),_0x578087=a138_0x48c0dc[_0x398e0f(0xac)](_0x117e50,'bin'),_0x2192dd=process[_0x398e0f(0xad)]===_0x398e0f(0xa8)?_0x398e0f(0xa9):'jq',_0x383af1=a138_0x48c0dc['join'](_0x578087,_0x2192dd);if(existsSync(_0x383af1))return _0x383af1;}catch{}return'jq';}export function applyJqFilter(_0x493767,_0x3016e3){const _0x560851=a138_0x15f9,_0xde7e16=resolveJqBinary();try{return execFileSync(_0xde7e16,[_0x3016e3],{'input':_0x493767,'encoding':_0x560851(0xb6),'maxBuffer':MAX_BUFFER,'stdio':['pipe',_0x560851(0xb3),_0x560851(0xb3)]});}catch(_0x2fc15e){const _0x1e28f9=_0x2fc15e;if(_0x1e28f9['code']==='ENOENT')throw CliErrors[_0x560851(0xa2)](_0x560851(0xaf),'e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq');const _0x404d12=_0x1e28f9[_0x560851(0xa0)]?.[_0x560851(0xb7)]?.()[_0x560851(0xaa)]()??'',_0x1e89bc=(_0x1e28f9[_0x560851(0xb4)]??String(_0x2fc15e))[_0x560851(0xaa)](),_0x372497=_0x404d12||_0x1e89bc,_0x52efd3=/^\s*jq:/i[_0x560851(0xa1)](_0x372497)?_0x372497:'jq:\x20'+_0x372497;throw CliErrors['validation'](_0x52efd3);}}
1
+ (function(_0x27347c,_0x1c15cd){const _0x907142=a144_0x344d,_0x106c46=_0x27347c();while(!![]){try{const _0x401d91=parseInt(_0x907142(0x129))/0x1*(-parseInt(_0x907142(0x126))/0x2)+-parseInt(_0x907142(0x125))/0x3*(parseInt(_0x907142(0x128))/0x4)+-parseInt(_0x907142(0x12c))/0x5+-parseInt(_0x907142(0x127))/0x6+-parseInt(_0x907142(0x12b))/0x7+parseInt(_0x907142(0x12d))/0x8+parseInt(_0x907142(0x12a))/0x9;if(_0x401d91===_0x1c15cd)break;else _0x106c46['push'](_0x106c46['shift']());}catch(_0x59f07d){_0x106c46['push'](_0x106c46['shift']());}}}(a144_0x2e19,0xb26b3));function a144_0x344d(_0x1e52a2,_0x374c67){_0x1e52a2=_0x1e52a2-0x125;const _0x2e1948=a144_0x2e19();let _0x344d20=_0x2e1948[_0x1e52a2];return _0x344d20;}function a144_0x2e19(){const _0x3dd2ee=['2bPyhei','4380246Fnxhuy','404SQOQKG','1457818dpMcfw','50018526IWRfKg','9355892hIjqkc','3768320QehxSs','5848312zvUuyi','38013ehjEig'];a144_0x2e19=function(){return _0x3dd2ee;};return a144_0x2e19();}import{createJqFilter}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors);
@@ -1 +1 @@
1
- (function(_0x3fe588,_0x1ee3e9){const _0xe06e24=a139_0x4c54,_0x11d9f9=_0x3fe588();while(!![]){try{const _0x4520af=parseInt(_0xe06e24(0x1a7))/0x1+-parseInt(_0xe06e24(0x1a5))/0x2+-parseInt(_0xe06e24(0x1a4))/0x3+-parseInt(_0xe06e24(0x1a8))/0x4+-parseInt(_0xe06e24(0x1ab))/0x5*(parseInt(_0xe06e24(0x1ac))/0x6)+-parseInt(_0xe06e24(0x1ae))/0x7+parseInt(_0xe06e24(0x1a2))/0x8;if(_0x4520af===_0x1ee3e9)break;else _0x11d9f9['push'](_0x11d9f9['shift']());}catch(_0x41d02a){_0x11d9f9['push'](_0x11d9f9['shift']());}}}(a139_0x347b,0x93394));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1e647c=a139_0x4c54;try{const _0x44d61a=getTemplateBaseUrl(),_0x407216=_0x44d61a+'/config.json',_0x59969e=await fetch(_0x407216,{'headers':{'Accept':_0x1e647c(0x1ad)}});if(!_0x59969e['ok'])return null;const _0x54be40=await _0x59969e[_0x1e647c(0x1aa)]();if(!_0x54be40['cli']?.[_0x1e647c(0x1a9)]||!_0x54be40[_0x1e647c(0x1a6)]?.[_0x1e647c(0x1a3)]?.[_0x1e647c(0x1a9)])return null;return _0x54be40;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;function a139_0x4c54(_0x24a51c,_0x29ed62){_0x24a51c=_0x24a51c-0x1a2;const _0x347b41=a139_0x347b();let _0x4c5445=_0x347b41[_0x24a51c];return _0x4c5445;}const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x424f89=Date['now']();if(cachedConfig&&_0x424f89-cacheTime<CACHE_TTL)return cachedConfig;const _0xc6c52b=await fetchCdnConfig();return _0xc6c52b&&(cachedConfig=_0xc6c52b,cacheTime=_0x424f89),_0xc6c52b;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}function a139_0x347b(){const _0x42b0f3=['161706qzxxrL','1912416sOOPlc','stableVersion','json','15WJaQpl','853926ZgozRz','application/json','957859QhxWeD','24937424KtLHej','node','1544943dkRZrU','2237942CUkqou','sdk'];a139_0x347b=function(){return _0x42b0f3;};return a139_0x347b();}
1
+ (function(_0x50ed7b,_0x8e0440){const _0xd8fdeb=a145_0x1aef,_0x30c759=_0x50ed7b();while(!![]){try{const _0x363c0d=parseInt(_0xd8fdeb(0x1a7))/0x1*(-parseInt(_0xd8fdeb(0x1b7))/0x2)+parseInt(_0xd8fdeb(0x1b6))/0x3*(parseInt(_0xd8fdeb(0x1a6))/0x4)+parseInt(_0xd8fdeb(0x1b5))/0x5*(-parseInt(_0xd8fdeb(0x1ad))/0x6)+-parseInt(_0xd8fdeb(0x1b0))/0x7*(parseInt(_0xd8fdeb(0x1a8))/0x8)+-parseInt(_0xd8fdeb(0x1ab))/0x9+-parseInt(_0xd8fdeb(0x1b3))/0xa*(-parseInt(_0xd8fdeb(0x1af))/0xb)+-parseInt(_0xd8fdeb(0x1ae))/0xc*(-parseInt(_0xd8fdeb(0x1ac))/0xd);if(_0x363c0d===_0x8e0440)break;else _0x30c759['push'](_0x30c759['shift']());}catch(_0x27be8c){_0x30c759['push'](_0x30c759['shift']());}}}(a145_0x1576,0x8ca5e));import{getTemplateBaseUrl}from'../utils/config.js';function a145_0x1aef(_0x28b615,_0x374206){_0x28b615=_0x28b615-0x1a6;const _0x15762d=a145_0x1576();let _0x1aeff4=_0x15762d[_0x28b615];return _0x1aeff4;}export async function fetchCdnConfig(){const _0x4650a8=a145_0x1aef;try{const _0x29c06a=getTemplateBaseUrl(),_0x201f06=_0x29c06a+_0x4650a8(0x1a9),_0x1e2ea3=await fetch(_0x201f06,{'headers':{'Accept':_0x4650a8(0x1aa)}});if(!_0x1e2ea3['ok'])return null;const _0x123eac=await _0x1e2ea3[_0x4650a8(0x1b1)]();if(!_0x123eac[_0x4650a8(0x1b4)]?.[_0x4650a8(0x1b8)]||!_0x123eac[_0x4650a8(0x1b9)]?.['node']?.[_0x4650a8(0x1b8)])return null;return _0x123eac;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;function a145_0x1576(){const _0x3c8674=['now','5855420vlJnNT','cli','5LsyqdN','3QNnOyv','8374nsIjGx','stableVersion','sdk','3108476rNfgtT','63rcXSZo','138320radhFE','/config.json','application/json','5402817FodTpw','13xzxIXQ','6702414EWcjgh','17862312dnLxjk','11ScURxd','119WbeZrR','json'];a145_0x1576=function(){return _0x3c8674;};return a145_0x1576();}export async function getCdnConfig(){const _0x4eff79=a145_0x1aef,_0x59086e=Date[_0x4eff79(0x1b2)]();if(cachedConfig&&_0x59086e-cacheTime<CACHE_TTL)return cachedConfig;const _0x58eb2e=await fetchCdnConfig();return _0x58eb2e&&(cachedConfig=_0x58eb2e,cacheTime=_0x59086e),_0x58eb2e;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- const a140_0x323a1e=a140_0x5c0b;(function(_0x1ffbd8,_0x17322e){const _0x2165c2=a140_0x5c0b,_0x267d6a=_0x1ffbd8();while(!![]){try{const _0x2fb42f=-parseInt(_0x2165c2(0x1b6))/0x1*(parseInt(_0x2165c2(0x190))/0x2)+-parseInt(_0x2165c2(0x1b3))/0x3*(-parseInt(_0x2165c2(0x1a0))/0x4)+-parseInt(_0x2165c2(0x18f))/0x5*(-parseInt(_0x2165c2(0x1a3))/0x6)+parseInt(_0x2165c2(0x19a))/0x7+-parseInt(_0x2165c2(0x1a6))/0x8*(parseInt(_0x2165c2(0x196))/0x9)+-parseInt(_0x2165c2(0x198))/0xa*(-parseInt(_0x2165c2(0x19c))/0xb)+parseInt(_0x2165c2(0x192))/0xc*(-parseInt(_0x2165c2(0x1b7))/0xd);if(_0x2fb42f===_0x17322e)break;else _0x267d6a['push'](_0x267d6a['shift']());}catch(_0x97aafa){_0x267d6a['push'](_0x267d6a['shift']());}}}(a140_0xddc7,0x8a51f));import a140_0xd801e3 from'node:fs';import a140_0x16ba9d from'node:path';import a140_0x221aa8 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a140_0x323a1e(0x19f);function isNonNumericVersion(_0x28077d){const _0x5901ba=a140_0x323a1e,_0x2a3378=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2a3378['some'](_0x253985=>_0x253985[_0x5901ba(0x1b5)](_0x28077d));}function a140_0x5c0b(_0x5baa44,_0x54945d){_0x5baa44=_0x5baa44-0x18f;const _0xddc77a=a140_0xddc7();let _0x5c0b03=_0xddc77a[_0x5baa44];return _0x5c0b03;}function a140_0xddc7(){const _0x70d0b9=['\x20\x20\x20Upgrade\x20command:\x20','\x1b[1m','dependencies','\x1b[33m','@lovrabet/sdk','3TODZLB','npm\x20install\x20','test','1289xCALkk','252785eRqkxG','55gRQXAe','166MJsiEp','join','24lTgDOs','↪\x20SDK\x20update\x20available','utf8','stableVersion','18UiaMAs','packageName','5613080OuyNSd','log','2465071BoocQz','devDependencies','11dPfqLN','node_modules','parse','1.2.0','2295028zvpJvx','coerce','\x1b[0m','185556cFHycW','node','package.json','4459872pkiErp','utf-8','existsSync','all','sdk','readFileSync','version','latest'];a140_0xddc7=function(){return _0x70d0b9;};return a140_0xddc7();}function getInstalledVersion(_0x1f34e4,_0x395d5b){const _0x51ef04=a140_0x323a1e;try{const _0x3aa52e=a140_0x16ba9d[_0x51ef04(0x191)](_0x1f34e4,_0x51ef04(0x19d),_0x395d5b,_0x51ef04(0x1a5));if(a140_0xd801e3['existsSync'](_0x3aa52e)){const _0x405acb=JSON['parse'](a140_0xd801e3['readFileSync'](_0x3aa52e,_0x51ef04(0x1a7)));return _0x405acb['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1ca7c2=a140_0x323a1e;try{const _0x46d066=await getCdnConfig();return _0x46d066?.[_0x1ca7c2(0x1aa)]?.[_0x1ca7c2(0x1a4)]?.[_0x1ca7c2(0x195)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x13dda4=a140_0x323a1e;try{const _0x55e6bb=await getCdnConfig();return _0x55e6bb?.[_0x13dda4(0x1aa)]?.[_0x13dda4(0x1a4)]?.[_0x13dda4(0x197)]||_0x13dda4(0x1b2);}catch{return _0x13dda4(0x1b2);}}export async function checkSdkVersion(_0x133f91){const _0x3dc094=a140_0x323a1e,_0x18d24e=a140_0x16ba9d[_0x3dc094(0x191)](_0x133f91,'package.json'),[_0xd62a30,_0x4aaf22]=await Promise[_0x3dc094(0x1a9)]([getSdkStableVersion(),getSdkPackageName()]),_0x333549=_0xd62a30||FALLBACK_MIN_SDK_VERSION;if(!a140_0xd801e3[_0x3dc094(0x1a8)](_0x18d24e))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x333549,'packageName':_0x4aaf22,'stableVersion':_0xd62a30};try{const _0x45fe13=JSON['parse'](a140_0xd801e3[_0x3dc094(0x1ab)](_0x18d24e,_0x3dc094(0x194))),_0x248154=_0x45fe13[_0x3dc094(0x1b0)]||{},_0x5bb250=_0x45fe13[_0x3dc094(0x19b)]||{},_0x5b3daa=_0x248154[_0x4aaf22]||_0x5bb250[_0x4aaf22];if(!_0x5b3daa)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x333549,'packageName':_0x4aaf22,'stableVersion':_0xd62a30};let _0x503ba4=getInstalledVersion(_0x133f91,_0x4aaf22);!_0x503ba4&&(_0x503ba4=_0x5b3daa);if(isNonNumericVersion(_0x5b3daa))return{'installed':!![],'version':_0x503ba4,'needsUpgrade':![],'minVersion':_0x333549,'packageName':_0x4aaf22,'stableVersion':_0xd62a30};const _0x52387d=a140_0x221aa8[_0x3dc094(0x1a1)](_0x503ba4),_0x5a02b4=a140_0x221aa8[_0x3dc094(0x1a1)](_0x333549),_0x836ee8=_0x52387d&&_0x5a02b4?a140_0x221aa8['lt'](_0x52387d,_0x5a02b4):![];return{'installed':!![],'version':_0x503ba4,'needsUpgrade':_0x836ee8,'minVersion':_0x333549,'packageName':_0x4aaf22,'stableVersion':_0xd62a30};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x333549,'packageName':_0x4aaf22,'stableVersion':_0xd62a30};}}export function checkSdkVersionSync(_0x4671ee){const _0x5a8d1a=a140_0x323a1e,_0x5b27eb=a140_0x16ba9d[_0x5a8d1a(0x191)](_0x4671ee,_0x5a8d1a(0x1a5)),_0x42ea7d=_0x5a8d1a(0x1b2);if(!a140_0xd801e3[_0x5a8d1a(0x1a8)](_0x5b27eb))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42ea7d,'stableVersion':null};try{const _0x5ab169=JSON[_0x5a8d1a(0x19e)](a140_0xd801e3['readFileSync'](_0x5b27eb,'utf8')),_0x5d8ae2=_0x5ab169[_0x5a8d1a(0x1b0)]||{},_0x378b6a=_0x5ab169['devDependencies']||{},_0x2c4544=_0x5d8ae2[_0x42ea7d]||_0x378b6a[_0x42ea7d];if(!_0x2c4544)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42ea7d,'stableVersion':null};let _0x2d360c=getInstalledVersion(_0x4671ee,_0x42ea7d);!_0x2d360c&&(_0x2d360c=_0x2c4544);if(isNonNumericVersion(_0x2c4544))return{'installed':!![],'version':_0x2d360c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42ea7d,'stableVersion':null};const _0x54e3e2=a140_0x221aa8[_0x5a8d1a(0x1a1)](_0x2d360c),_0x33b92f=_0x54e3e2?a140_0x221aa8['lt'](_0x54e3e2,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2d360c,'needsUpgrade':_0x33b92f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42ea7d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42ea7d,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4f88e2){const _0x628e3d=a140_0x323a1e;if(!_0x4f88e2['needsUpgrade'])return;const _0x3480d2=_0x628e3d(0x1b1),_0x5046f0=_0x628e3d(0x1a2),_0x462f9d=_0x628e3d(0x1af),_0x3e487f=_0x4f88e2[_0x628e3d(0x197)]||_0x628e3d(0x1b2),_0x4b23b3=_0x4f88e2[_0x628e3d(0x195)]||_0x4f88e2['minVersion'],_0x285247=_0x628e3d(0x1b4)+_0x3e487f+'@'+(_0x4b23b3||_0x628e3d(0x1ad));console[_0x628e3d(0x199)](),console[_0x628e3d(0x199)](''+_0x3480d2+_0x462f9d+_0x628e3d(0x193)+_0x5046f0),console[_0x628e3d(0x199)](_0x3480d2+'\x20\x20\x20Current\x20version:\x20'+_0x3e487f+'@'+_0x4f88e2[_0x628e3d(0x1ac)]+_0x5046f0),console[_0x628e3d(0x199)](_0x3480d2+'\x20\x20\x20Stable\x20version:\x20'+_0x4b23b3+_0x5046f0),console[_0x628e3d(0x199)](_0x3480d2+_0x628e3d(0x1ae)+_0x285247+_0x5046f0),console[_0x628e3d(0x199)]();}
1
+ function a146_0x1cc0(_0x226dec,_0x196d75){_0x226dec=_0x226dec-0x14c;const _0x3c079e=a146_0x3c07();let _0x1cc0cc=_0x3c079e[_0x226dec];return _0x1cc0cc;}const a146_0xaf5544=a146_0x1cc0;(function(_0x3c7075,_0x2f9b5a){const _0x5594eb=a146_0x1cc0,_0xf2681f=_0x3c7075();while(!![]){try{const _0x4f22d8=-parseInt(_0x5594eb(0x16f))/0x1*(-parseInt(_0x5594eb(0x160))/0x2)+parseInt(_0x5594eb(0x14f))/0x3+-parseInt(_0x5594eb(0x15e))/0x4*(parseInt(_0x5594eb(0x152))/0x5)+parseInt(_0x5594eb(0x157))/0x6*(-parseInt(_0x5594eb(0x151))/0x7)+-parseInt(_0x5594eb(0x15c))/0x8+-parseInt(_0x5594eb(0x16b))/0x9+parseInt(_0x5594eb(0x159))/0xa;if(_0x4f22d8===_0x2f9b5a)break;else _0xf2681f['push'](_0xf2681f['shift']());}catch(_0x4abe9f){_0xf2681f['push'](_0xf2681f['shift']());}}}(a146_0x3c07,0x33cb1));import a146_0x258436 from'node:fs';import a146_0x52723a from'node:path';import a146_0x4af0d6 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a146_0xaf5544(0x161);function isNonNumericVersion(_0x1b468f){const _0x3f6c5d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3f6c5d['some'](_0x530acb=>_0x530acb['test'](_0x1b468f));}function getInstalledVersion(_0x11eb2a,_0x259302){const _0x41a437=a146_0xaf5544;try{const _0x113f34=a146_0x52723a[_0x41a437(0x156)](_0x11eb2a,'node_modules',_0x259302,_0x41a437(0x169));if(a146_0x258436[_0x41a437(0x14c)](_0x113f34)){const _0x438bbb=JSON[_0x41a437(0x16a)](a146_0x258436['readFileSync'](_0x113f34,_0x41a437(0x153)));return _0x438bbb[_0x41a437(0x15d)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3c860d=a146_0xaf5544;try{const _0x4dca1b=await getCdnConfig();return _0x4dca1b?.[_0x3c860d(0x158)]?.[_0x3c860d(0x15b)]?.[_0x3c860d(0x162)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2ce438=a146_0xaf5544;try{const _0x48860a=await getCdnConfig();return _0x48860a?.[_0x2ce438(0x158)]?.[_0x2ce438(0x15b)]?.[_0x2ce438(0x16e)]||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}function a146_0x3c07(){const _0x1fc25d=['\x1b[0m','11400KqdrZf','@lovrabet/sdk','7pOHMwS','1190CWqCCh','utf-8','\x1b[33m','all','join','1829160tfeYhe','sdk','7114330VocHTT','↪\x20SDK\x20update\x20available','node','1439064edRNgT','version','2504jKWrEu','dependencies','176652XnaRXK','1.2.0','stableVersion','\x1b[1m','latest','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','devDependencies','package.json','parse','1209015LObIVv','npm\x20install\x20','readFileSync','packageName','3evgpED','existsSync','log'];a146_0x3c07=function(){return _0x1fc25d;};return a146_0x3c07();}export async function checkSdkVersion(_0xff803f){const _0x19b17b=a146_0xaf5544,_0x3e1634=a146_0x52723a[_0x19b17b(0x156)](_0xff803f,'package.json'),[_0x41d9d4,_0x38ee86]=await Promise[_0x19b17b(0x155)]([getSdkStableVersion(),getSdkPackageName()]),_0x39b451=_0x41d9d4||FALLBACK_MIN_SDK_VERSION;if(!a146_0x258436[_0x19b17b(0x14c)](_0x3e1634))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};try{const _0x132701=JSON[_0x19b17b(0x16a)](a146_0x258436[_0x19b17b(0x16d)](_0x3e1634,'utf8')),_0x48b03f=_0x132701[_0x19b17b(0x15f)]||{},_0x2f8e10=_0x132701['devDependencies']||{},_0x591068=_0x48b03f[_0x38ee86]||_0x2f8e10[_0x38ee86];if(!_0x591068)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};let _0x2fdc83=getInstalledVersion(_0xff803f,_0x38ee86);!_0x2fdc83&&(_0x2fdc83=_0x591068);if(isNonNumericVersion(_0x591068))return{'installed':!![],'version':_0x2fdc83,'needsUpgrade':![],'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};const _0x495186=a146_0x4af0d6['coerce'](_0x2fdc83),_0x34e515=a146_0x4af0d6['coerce'](_0x39b451),_0x36e431=_0x495186&&_0x34e515?a146_0x4af0d6['lt'](_0x495186,_0x34e515):![];return{'installed':!![],'version':_0x2fdc83,'needsUpgrade':_0x36e431,'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};}}export function checkSdkVersionSync(_0xafae05){const _0x125daa=a146_0xaf5544,_0x8662b0=a146_0x52723a[_0x125daa(0x156)](_0xafae05,_0x125daa(0x169)),_0x2863e1=_0x125daa(0x150);if(!a146_0x258436[_0x125daa(0x14c)](_0x8662b0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};try{const _0x4d9388=JSON[_0x125daa(0x16a)](a146_0x258436[_0x125daa(0x16d)](_0x8662b0,'utf8')),_0x130cc7=_0x4d9388[_0x125daa(0x15f)]||{},_0x292aa7=_0x4d9388[_0x125daa(0x168)]||{},_0x5758a9=_0x130cc7[_0x2863e1]||_0x292aa7[_0x2863e1];if(!_0x5758a9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};let _0x2ef5dc=getInstalledVersion(_0xafae05,_0x2863e1);!_0x2ef5dc&&(_0x2ef5dc=_0x5758a9);if(isNonNumericVersion(_0x5758a9))return{'installed':!![],'version':_0x2ef5dc,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};const _0x2a3fba=a146_0x4af0d6['coerce'](_0x2ef5dc),_0x1a07dd=_0x2a3fba?a146_0x4af0d6['lt'](_0x2a3fba,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2ef5dc,'needsUpgrade':_0x1a07dd,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x522b3c){const _0xc33d86=a146_0xaf5544;if(!_0x522b3c[_0xc33d86(0x165)])return;const _0x52986e=_0xc33d86(0x154),_0xbdc345=_0xc33d86(0x14e),_0x2dc146=_0xc33d86(0x163),_0x131612=_0x522b3c['packageName']||'@lovrabet/sdk',_0x4e8ed8=_0x522b3c[_0xc33d86(0x162)]||_0x522b3c['minVersion'],_0x589045=_0xc33d86(0x16c)+_0x131612+'@'+(_0x4e8ed8||_0xc33d86(0x164));console[_0xc33d86(0x14d)](),console[_0xc33d86(0x14d)](''+_0x52986e+_0x2dc146+_0xc33d86(0x15a)+_0xbdc345),console[_0xc33d86(0x14d)](_0x52986e+_0xc33d86(0x167)+_0x131612+'@'+_0x522b3c[_0xc33d86(0x15d)]+_0xbdc345),console[_0xc33d86(0x14d)](_0x52986e+'\x20\x20\x20Stable\x20version:\x20'+_0x4e8ed8+_0xbdc345),console['log'](_0x52986e+_0xc33d86(0x166)+_0x589045+_0xbdc345),console['log']();}
@@ -1 +1 @@
1
- (function(_0xfc4190,_0x32e614){const _0x5d192c=a141_0x531e,_0x1c063c=_0xfc4190();while(!![]){try{const _0x314515=parseInt(_0x5d192c(0x135))/0x1*(-parseInt(_0x5d192c(0x12e))/0x2)+parseInt(_0x5d192c(0x142))/0x3+-parseInt(_0x5d192c(0x13a))/0x4+-parseInt(_0x5d192c(0x12d))/0x5*(parseInt(_0x5d192c(0x13f))/0x6)+parseInt(_0x5d192c(0x130))/0x7+parseInt(_0x5d192c(0x134))/0x8+-parseInt(_0x5d192c(0x12b))/0x9*(parseInt(_0x5d192c(0x136))/0xa);if(_0x314515===_0x32e614)break;else _0x1c063c['push'](_0x1c063c['shift']());}catch(_0xb7f5ac){_0x1c063c['push'](_0x1c063c['shift']());}}}(a141_0x147a,0x33a47));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a141_0x3bc4ad from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x133db3=a141_0x531e;try{const _0xe374ca=fileURLToPath(import.meta.url),_0xf90662=resolve(dirname(_0xe374ca),'../..'),_0x133a07=resolve(_0xf90662,_0x133db3(0x139)),_0x856405=JSON['parse'](readFileSync(_0x133a07,'utf-8'));return _0x856405[_0x133db3(0x133)]||_0x133db3(0x131);}catch{return _0x133db3(0x131);}}function isNonNumericVersion(_0x2cc87a){const _0x2d4fd9=a141_0x531e,_0x34ea33=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x34ea33[_0x2d4fd9(0x143)](_0x1c9bb0=>_0x1c9bb0[_0x2d4fd9(0x13c)](_0x2cc87a));}function a141_0x531e(_0xe52809,_0xc43c7d){_0xe52809=_0xe52809-0x12b;const _0x147a51=a141_0x147a();let _0x531e1b=_0x147a51[_0xe52809];return _0x531e1b;}export async function checkCliVersion(){const _0xf10a19=a141_0x531e,_0x12c4a6=getCurrentCliVersion(),_0xf83c94=await getCdnConfig(),_0x3554f1=_0xf83c94?.[_0xf10a19(0x13e)]?.[_0xf10a19(0x12c)]||null;let _0x50fbf1=![];if(_0x3554f1)try{const _0x217087=a141_0x3bc4ad['coerce'](_0x12c4a6),_0xd53953=a141_0x3bc4ad[_0xf10a19(0x132)](_0x3554f1);_0x217087&&_0xd53953&&(_0x50fbf1=a141_0x3bc4ad['lt'](_0x217087,_0xd53953));}catch{_0x50fbf1=![];}return{'currentVersion':_0x12c4a6,'stableVersion':_0x3554f1,'needsUpgrade':_0x50fbf1,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x180faf){const _0x5ac86f=a141_0x531e;if(!_0x180faf[_0x5ac86f(0x141)])return;const _0x5e7b82=_0x5ac86f(0x13d),_0x42071b=_0x5ac86f(0x144),_0x20e038='\x1b[1m',_0x5e1feb='npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@latest';console[_0x5ac86f(0x13b)](),console[_0x5ac86f(0x13b)](''+_0x5e7b82+_0x20e038+_0x5ac86f(0x137)+_0x42071b),console[_0x5ac86f(0x13b)](_0x5e7b82+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x180faf[_0x5ac86f(0x12f)]+_0x42071b),console[_0x5ac86f(0x13b)](_0x5e7b82+_0x5ac86f(0x140)+_0x180faf['stableVersion']+_0x42071b),console['log'](_0x5e7b82+_0x5ac86f(0x138)+_0x5e1feb+_0x42071b),console[_0x5ac86f(0x13b)]();}function a141_0x147a(){const _0x4b4626=['1080XBjiCe','↪\x20New\x20version\x20available','\x20\x20\x20Upgrade\x20command:\x20','package.json','83912bhBuFJ','log','test','\x1b[33m','cli','556716kQLYmd','\x20\x20\x20Stable\x20version:\x20','needsUpgrade','1039923nGQcyn','some','\x1b[0m','18342opULqb','stableVersion','5rqFJdp','111450mVpClN','currentVersion','293265CEmoBH','1.0.0','coerce','version','1700672TdfDOI','1nmdGya'];a141_0x147a=function(){return _0x4b4626;};return a141_0x147a();}
1
+ (function(_0xa2c901,_0x499d6d){const _0x2874ea=a147_0x160f,_0x50292f=_0xa2c901();while(!![]){try{const _0x27cd26=parseInt(_0x2874ea(0x137))/0x1+-parseInt(_0x2874ea(0x133))/0x2+parseInt(_0x2874ea(0x126))/0x3+parseInt(_0x2874ea(0x13a))/0x4+-parseInt(_0x2874ea(0x123))/0x5+-parseInt(_0x2874ea(0x12a))/0x6+parseInt(_0x2874ea(0x124))/0x7*(parseInt(_0x2874ea(0x130))/0x8);if(_0x27cd26===_0x499d6d)break;else _0x50292f['push'](_0x50292f['shift']());}catch(_0x27419b){_0x50292f['push'](_0x50292f['shift']());}}}(a147_0x144a,0xbaebd));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a147_0x3d8258 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a147_0x144a(){const _0x50fa42=['package.json','2144268GwjDht','test','@latest','\x20\x20\x20Current\x20CLI\x20version:\x20','7982646wFmPpS','\x1b[33m','some','coerce','npm\x20install\x20-g\x20','needsUpgrade','16410872EhEfYU','stableVersion','log','507518AbIAwf','../..','parse','utf-8','446105DMvyWa','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','474320sOwTio','\x1b[0m','↪\x20New\x20version\x20available','cli','1.0.0','currentVersion','4904855GRKyoY','7CpaAmb'];a147_0x144a=function(){return _0x50fa42;};return a147_0x144a();}function getCurrentCliVersion(){const _0x141c58=a147_0x160f;try{const _0x348bca=fileURLToPath(import.meta.url),_0x20d35d=resolve(dirname(_0x348bca),_0x141c58(0x134)),_0x33239a=resolve(_0x20d35d,_0x141c58(0x125)),_0x4347d4=JSON[_0x141c58(0x135)](readFileSync(_0x33239a,_0x141c58(0x136)));return _0x4347d4['version']||_0x141c58(0x121);}catch{return _0x141c58(0x121);}}function isNonNumericVersion(_0x3eccbe){const _0x4e36c0=a147_0x160f,_0x18cecf=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x18cecf[_0x4e36c0(0x12c)](_0x290287=>_0x290287[_0x4e36c0(0x127)](_0x3eccbe));}export async function checkCliVersion(){const _0x5437de=a147_0x160f,_0x2c5130=getCurrentCliVersion(),_0x4803bf=await getCdnConfig(),_0x373da4=_0x4803bf?.[_0x5437de(0x120)]?.['stableVersion']||null;let _0x16bc3f=![];if(_0x373da4)try{const _0x198b1c=a147_0x3d8258[_0x5437de(0x12d)](_0x2c5130),_0x50ebf6=a147_0x3d8258[_0x5437de(0x12d)](_0x373da4);_0x198b1c&&_0x50ebf6&&(_0x16bc3f=a147_0x3d8258['lt'](_0x198b1c,_0x50ebf6));}catch{_0x16bc3f=![];}return{'currentVersion':_0x2c5130,'stableVersion':_0x373da4,'needsUpgrade':_0x16bc3f,'isPreRelease':![]};}function a147_0x160f(_0x315191,_0x201fb3){_0x315191=_0x315191-0x11e;const _0x144a13=a147_0x144a();let _0x160f60=_0x144a13[_0x315191];return _0x160f60;}export function printCliUpgradeWarning(_0x510f07){const _0x1ac9b3=a147_0x160f;if(!_0x510f07[_0x1ac9b3(0x12f)])return;const _0x3277a9=_0x1ac9b3(0x12b),_0x2f1fc3=_0x1ac9b3(0x11e),_0x4c8c96='\x1b[1m',_0x36f7ac=_0x1ac9b3(0x12e)+NPM_PACKAGE_NAME+_0x1ac9b3(0x128);console[_0x1ac9b3(0x132)](),console[_0x1ac9b3(0x132)](''+_0x3277a9+_0x4c8c96+_0x1ac9b3(0x11f)+_0x2f1fc3),console[_0x1ac9b3(0x132)](_0x3277a9+_0x1ac9b3(0x129)+_0x510f07[_0x1ac9b3(0x122)]+_0x2f1fc3),console['log'](_0x3277a9+_0x1ac9b3(0x139)+_0x510f07[_0x1ac9b3(0x131)]+_0x2f1fc3),console[_0x1ac9b3(0x132)](_0x3277a9+_0x1ac9b3(0x138)+_0x36f7ac+_0x2f1fc3),console[_0x1ac9b3(0x132)]();}
@@ -1 +1 @@
1
- const a142_0x48ae29=a142_0x8d44;(function(_0x4b1560,_0x4c3fe1){const _0x3af95e=a142_0x8d44,_0x5af1b9=_0x4b1560();while(!![]){try{const _0x5ad891=-parseInt(_0x3af95e(0x179))/0x1+parseInt(_0x3af95e(0x172))/0x2+-parseInt(_0x3af95e(0x182))/0x3*(-parseInt(_0x3af95e(0x17c))/0x4)+-parseInt(_0x3af95e(0x175))/0x5+parseInt(_0x3af95e(0x171))/0x6+parseInt(_0x3af95e(0x177))/0x7*(parseInt(_0x3af95e(0x176))/0x8)+-parseInt(_0x3af95e(0x17a))/0x9;if(_0x5ad891===_0x4c3fe1)break;else _0x5af1b9['push'](_0x5af1b9['shift']());}catch(_0xfdf092){_0x5af1b9['push'](_0x5af1b9['shift']());}}}(a142_0x2cd6,0x7be4f));import{initEnv}from'../constant/env.js';function a142_0x2cd6(){const _0x442825=['object','https://g.lovrabet.com/dist/lovrabet-skill','1398voqxaX','defaultApp','appcode','env','apps','replace','merged','keys','project','template_base_url','5709744gpdBut','180934pdBVGa','filter','string','1565620sxhygz','7366024qJfFMk','7CduJsM','values','369759xlCtFU','10919934qBTapm','length','3784gsrqnY','trim','entries','app'];a142_0x2cd6=function(){return _0x442825;};return a142_0x2cd6();}import{readRawConfig,loadRawConfigLayers}from'../context.js';function a142_0x8d44(_0x43cc95,_0x41a0f6){_0x43cc95=_0x43cc95-0x170;const _0x2cd6c3=a142_0x2cd6();let _0x8d44c7=_0x2cd6c3[_0x43cc95];return _0x8d44c7;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4d9433){const _0x47fadc=a142_0x8d44,_0x1cdb78=readRawConfig(_0x4d9433);return _0x1cdb78[_0x47fadc(0x185)]&&typeof _0x1cdb78[_0x47fadc(0x185)]===_0x47fadc(0x174)&&initEnv(_0x1cdb78['env']),_0x1cdb78;}export function getConfigAppCode(){const _0xfe87e3=a142_0x8d44,_0x2c9621=readRawConfig();if(_0x2c9621[_0xfe87e3(0x186)]&&typeof _0x2c9621[_0xfe87e3(0x186)]==='object'){const _0x2ab95a=_0x2c9621['defaultApp'];if(_0x2ab95a&&_0x2c9621[_0xfe87e3(0x186)][_0x2ab95a]?.[_0xfe87e3(0x184)])return String(_0x2c9621['apps'][_0x2ab95a]['appcode'])[_0xfe87e3(0x17d)]();const _0x30099d=Object[_0xfe87e3(0x178)](_0x2c9621[_0xfe87e3(0x186)])[0x0];if(_0x30099d?.[_0xfe87e3(0x184)])return String(_0x30099d[_0xfe87e3(0x184)])[_0xfe87e3(0x17d)]();}const _0x473f19=_0x2c9621['appcode']||_0x2c9621[_0xfe87e3(0x17f)];if(typeof _0x473f19!=='string'||_0x473f19['trim']()==='')return undefined;return _0x473f19[_0xfe87e3(0x17d)]();}export function getMultiAppConfigs(_0x506a95=a142_0x48ae29(0x18a)){const _0x1cc950=a142_0x48ae29,_0xcea10e=_0x506a95===_0x1cc950(0x188)?readRawConfig():loadRawConfigLayers()['projectConfig'],_0x1c4479=_0xcea10e['apps'];if(!_0x1c4479||typeof _0x1c4479!==_0x1cc950(0x180)||Object[_0x1cc950(0x189)](_0x1c4479)[_0x1cc950(0x17b)]===0x0)return null;const _0x4c0517=_0xcea10e[_0x1cc950(0x183)];return Object[_0x1cc950(0x17e)](_0x1c4479)['map'](([_0x20f85a,_0x559f6d])=>({'name':_0x20f85a,'appcode':_0x559f6d?.[_0x1cc950(0x184)]||'','isDefault':_0x20f85a===_0x4c0517,'env':_0x559f6d?.['env'],'apiDir':_0x559f6d?.['apiDir'],'cookie':_0x559f6d?.['cookie']||undefined}))[_0x1cc950(0x173)](_0x494ba9=>_0x494ba9[_0x1cc950(0x184)]);}export function getTemplateBaseUrl(){const _0x5993f2=a142_0x48ae29,_0x180a49=readRawConfig();if(_0x180a49['template_base_url']&&typeof _0x180a49[_0x5993f2(0x170)]===_0x5993f2(0x174))return _0x180a49[_0x5993f2(0x170)][_0x5993f2(0x187)](/\/$/,'');return _0x5993f2(0x181);}
1
+ const a148_0x5cc0a4=a148_0x4bdc;(function(_0x198744,_0xa092c8){const _0x2ce089=a148_0x4bdc,_0x3dfff1=_0x198744();while(!![]){try{const _0x5919a9=parseInt(_0x2ce089(0x1b2))/0x1+-parseInt(_0x2ce089(0x1b9))/0x2+-parseInt(_0x2ce089(0x1ae))/0x3*(-parseInt(_0x2ce089(0x1b0))/0x4)+-parseInt(_0x2ce089(0x1b4))/0x5+parseInt(_0x2ce089(0x1b6))/0x6*(-parseInt(_0x2ce089(0x1af))/0x7)+parseInt(_0x2ce089(0x1b5))/0x8+parseInt(_0x2ce089(0x1b3))/0x9*(parseInt(_0x2ce089(0x1b8))/0xa);if(_0x5919a9===_0xa092c8)break;else _0x3dfff1['push'](_0x3dfff1['shift']());}catch(_0x2b5652){_0x3dfff1['push'](_0x3dfff1['shift']());}}}(a148_0xab4d,0xdd6aa));function a148_0xab4d(){const _0x3dd461=['1254ipZofv','string','4170630jaokQk','1718952BMLTIp','project','6epGPyU','57022ftikKf','2842556jQGEMn','env','1462650NNaciX','27dSAhGt','9054345WsYEUI','9157312xvjmjc'];a148_0xab4d=function(){return _0x3dd461;};return a148_0xab4d();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a148_0x81f43a,getMultiAppConfigs as a148_0x53949d,getTemplateBaseUrl as a148_0x56312d}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a148_0x4bdc(_0x1ce5f0,_0x5e06eb){_0x1ce5f0=_0x1ce5f0-0x1ae;const _0xab4d36=a148_0xab4d();let _0x4bdc91=_0xab4d36[_0x1ce5f0];return _0x4bdc91;}export{isInProject}from'../context.js';export function readConfig(_0x3c9354){const _0x441a6c=a148_0x4bdc,_0x1851b1=readRawConfig(_0x3c9354);return _0x1851b1[_0x441a6c(0x1b1)]&&typeof _0x1851b1[_0x441a6c(0x1b1)]===_0x441a6c(0x1b7)&&initEnv(_0x1851b1['env']),_0x1851b1;}export function getConfigAppCode(){return a148_0x81f43a();}export function getMultiAppConfigs(_0x171abb=a148_0x5cc0a4(0x1ba)){return a148_0x53949d(_0x171abb);}export function getTemplateBaseUrl(){return a148_0x56312d();}
@@ -1 +1 @@
1
- function a143_0x4806(_0x315191,_0x5876e4){_0x315191=_0x315191-0x10d;const _0x4e69d3=a143_0x4e69();let _0x480633=_0x4e69d3[_0x315191];return _0x480633;}(function(_0x1f371e,_0x342656){const _0x3dd0ea=a143_0x4806,_0x33384d=_0x1f371e();while(!![]){try{const _0x14f9d7=-parseInt(_0x3dd0ea(0x115))/0x1*(-parseInt(_0x3dd0ea(0x11e))/0x2)+-parseInt(_0x3dd0ea(0x114))/0x3*(parseInt(_0x3dd0ea(0x118))/0x4)+parseInt(_0x3dd0ea(0x11c))/0x5+-parseInt(_0x3dd0ea(0x119))/0x6+parseInt(_0x3dd0ea(0x10d))/0x7*(-parseInt(_0x3dd0ea(0x112))/0x8)+parseInt(_0x3dd0ea(0x11a))/0x9+-parseInt(_0x3dd0ea(0x11d))/0xa;if(_0x14f9d7===_0x342656)break;else _0x33384d['push'](_0x33384d['shift']());}catch(_0x5aae13){_0x33384d['push'](_0x33384d['shift']());}}}(a143_0x4e69,0x61ef8));import a143_0x198858 from'node:path';import a143_0x4ea034 from'node:fs';export async function copyDirectory(_0x2e2e23,_0x3e51cf){const _0x449341=a143_0x4806;try{const _0x49a3e3=a143_0x4ea034[_0x449341(0x11b)](_0x2e2e23,{'withFileTypes':!![]});a143_0x4ea034[_0x449341(0x111)](_0x3e51cf,{'recursive':!![]});for(const _0x4e4630 of _0x49a3e3){const _0x24ad23=a143_0x198858[_0x449341(0x110)](_0x2e2e23,_0x4e4630[_0x449341(0x113)]),_0x32a8c3=a143_0x198858[_0x449341(0x110)](_0x3e51cf,_0x4e4630[_0x449341(0x113)]);_0x4e4630[_0x449341(0x117)]()?await copyDirectory(_0x24ad23,_0x32a8c3):a143_0x4ea034[_0x449341(0x116)](_0x24ad23,_0x32a8c3);}}catch(_0x226a4b){console[_0x449341(0x10e)](_0x449341(0x10f),_0x226a4b);}}function a143_0x4e69(){const _0x21f298=['copyFileSync','isDirectory','236YxtmXG','2481000NOHAxy','5608521SfYPHs','readdirSync','1585890tTrLBy','2458260zfSBXJ','658CmCcHl','182kLPPPY','error','复制目录时出错:','join','mkdirSync','108184PGnzFp','name','13470rkRIAm','2239skGQUB'];a143_0x4e69=function(){return _0x21f298;};return a143_0x4e69();}
1
+ (function(_0x4d7f5c,_0x141847){const _0xa6c2fd=a149_0x38b0,_0x44f3e5=_0x4d7f5c();while(!![]){try{const _0x32f413=parseInt(_0xa6c2fd(0xdd))/0x1+-parseInt(_0xa6c2fd(0xda))/0x2*(parseInt(_0xa6c2fd(0xe2))/0x3)+-parseInt(_0xa6c2fd(0xdb))/0x4+parseInt(_0xa6c2fd(0xe0))/0x5*(parseInt(_0xa6c2fd(0xde))/0x6)+-parseInt(_0xa6c2fd(0xe1))/0x7+-parseInt(_0xa6c2fd(0xdc))/0x8+parseInt(_0xa6c2fd(0xe7))/0x9;if(_0x32f413===_0x141847)break;else _0x44f3e5['push'](_0x44f3e5['shift']());}catch(_0x40381c){_0x44f3e5['push'](_0x44f3e5['shift']());}}}(a149_0xd3f6,0xd7d95));import a149_0x40c54e from'node:path';function a149_0x38b0(_0x371993,_0x565ee9){_0x371993=_0x371993-0xda;const _0xd3f63b=a149_0xd3f6();let _0x38b0a1=_0xd3f63b[_0x371993];return _0x38b0a1;}import a149_0x54b0d3 from'node:fs';function a149_0xd3f6(){const _0x59f714=['7191115gpBqwg','3609529zYOLXC','6UxrNtm','readdirSync','error','name','copyFileSync','12900600vjnGpd','join','mkdirSync','113686GGAAuC','4944388pJQrXM','6395616VHaxoK','677376LnwkGT','6AJNwVl','isDirectory'];a149_0xd3f6=function(){return _0x59f714;};return a149_0xd3f6();}export async function copyDirectory(_0x24bef7,_0x376cb5){const _0x55ce6f=a149_0x38b0;try{const _0x4ba89d=a149_0x54b0d3[_0x55ce6f(0xe3)](_0x24bef7,{'withFileTypes':!![]});a149_0x54b0d3[_0x55ce6f(0xe9)](_0x376cb5,{'recursive':!![]});for(const _0x373fe5 of _0x4ba89d){const _0x588b56=a149_0x40c54e[_0x55ce6f(0xe8)](_0x24bef7,_0x373fe5[_0x55ce6f(0xe5)]),_0x368f7=a149_0x40c54e['join'](_0x376cb5,_0x373fe5[_0x55ce6f(0xe5)]);_0x373fe5[_0x55ce6f(0xdf)]()?await copyDirectory(_0x588b56,_0x368f7):a149_0x54b0d3[_0x55ce6f(0xe6)](_0x588b56,_0x368f7);}}catch(_0x3c2e07){console[_0x55ce6f(0xe4)]('复制目录时出错:',_0x3c2e07);}}
@@ -1 +1 @@
1
- (function(_0x1475bf,_0x42ea3c){const _0x4a11ad=a144_0x24eb,_0x520dbc=_0x1475bf();while(!![]){try{const _0xdad899=-parseInt(_0x4a11ad(0xdd))/0x1+parseInt(_0x4a11ad(0xdf))/0x2+parseInt(_0x4a11ad(0xda))/0x3+parseInt(_0x4a11ad(0xde))/0x4+-parseInt(_0x4a11ad(0xdb))/0x5+-parseInt(_0x4a11ad(0xdc))/0x6*(parseInt(_0x4a11ad(0xe0))/0x7)+parseInt(_0x4a11ad(0xd9))/0x8;if(_0xdad899===_0x42ea3c)break;else _0x520dbc['push'](_0x520dbc['shift']());}catch(_0x15f19f){_0x520dbc['push'](_0x520dbc['shift']());}}}(a144_0x202f,0x632b7));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a144_0x202f(){const _0x3a237b=['734620UhOiHf','1859280yCouMC','57402hesROq','35KWdVWY','12901584wcyjUc','483852HSjQcf','3995020VdiYnA','393216vYfiNU'];a144_0x202f=function(){return _0x3a237b;};return a144_0x202f();}function a144_0x24eb(_0x1dd55d,_0x745592){_0x1dd55d=_0x1dd55d-0xd9;const _0x202ff8=a144_0x202f();let _0x24ebba=_0x202ff8[_0x1dd55d];return _0x24ebba;}import{join}from'node:path';export async function copyDir(_0xd97d93,_0x2fdc17){const _0x580ea9=statSync(_0xd97d93);if(_0x580ea9['isDirectory']()){!existsSync(_0x2fdc17)&&mkdirSync(_0x2fdc17,{'recursive':!![]});const _0x20c9f4=readdirSync(_0xd97d93);for(const _0x319dc3 of _0x20c9f4){await copyDir(join(_0xd97d93,_0x319dc3),join(_0x2fdc17,_0x319dc3));}}else copyFileSync(_0xd97d93,_0x2fdc17);}export function ensureDir(_0x168f78){!existsSync(_0x168f78)&&mkdirSync(_0x168f78,{'recursive':!![]});}export function pathExists(_0x31228b){return existsSync(_0x31228b);}
1
+ function a150_0x60e6(_0x1dd051,_0x142a4d){_0x1dd051=_0x1dd051-0x1db;const _0x1e26a0=a150_0x1e26();let _0x60e6cd=_0x1e26a0[_0x1dd051];return _0x60e6cd;}(function(_0x92a65d,_0x3d9e5f){const _0x422ad4=a150_0x60e6,_0x8f20bd=_0x92a65d();while(!![]){try{const _0x30ce57=-parseInt(_0x422ad4(0x1e0))/0x1*(parseInt(_0x422ad4(0x1e4))/0x2)+-parseInt(_0x422ad4(0x1e1))/0x3*(parseInt(_0x422ad4(0x1e3))/0x4)+parseInt(_0x422ad4(0x1de))/0x5+parseInt(_0x422ad4(0x1e2))/0x6*(-parseInt(_0x422ad4(0x1dd))/0x7)+parseInt(_0x422ad4(0x1db))/0x8+parseInt(_0x422ad4(0x1dc))/0x9+parseInt(_0x422ad4(0x1df))/0xa;if(_0x30ce57===_0x3d9e5f)break;else _0x8f20bd['push'](_0x8f20bd['shift']());}catch(_0x2beff5){_0x8f20bd['push'](_0x8f20bd['shift']());}}}(a150_0x1e26,0xc1c7d));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a150_0x1e26(){const _0x279a3c=['555053yhIkxf','224076ZWwwNu','79008UxNuJy','44rDScNO','2GguFGv','8019896RZRizV','6048207dOtcnL','630ERISUW','7482335yTLbBn','1845330hjpypm'];a150_0x1e26=function(){return _0x279a3c;};return a150_0x1e26();}import{join}from'node:path';export async function copyDir(_0x29aebe,_0x480ede){const _0x4a095d=statSync(_0x29aebe);if(_0x4a095d['isDirectory']()){!existsSync(_0x480ede)&&mkdirSync(_0x480ede,{'recursive':!![]});const _0x4cedfb=readdirSync(_0x29aebe);for(const _0x193c2a of _0x4cedfb){await copyDir(join(_0x29aebe,_0x193c2a),join(_0x480ede,_0x193c2a));}}else copyFileSync(_0x29aebe,_0x480ede);}export function ensureDir(_0x3a2fad){!existsSync(_0x3a2fad)&&mkdirSync(_0x3a2fad,{'recursive':!![]});}export function pathExists(_0xf46db4){return existsSync(_0xf46db4);}
@@ -1 +1 @@
1
- const a145_0x36dd1c=a145_0x2cfd;(function(_0x2e24ed,_0x1b1096){const _0x13c8e3=a145_0x2cfd,_0x626809=_0x2e24ed();while(!![]){try{const _0x5e7f2f=parseInt(_0x13c8e3(0x16f))/0x1+parseInt(_0x13c8e3(0x17d))/0x2*(-parseInt(_0x13c8e3(0x15f))/0x3)+parseInt(_0x13c8e3(0x171))/0x4*(parseInt(_0x13c8e3(0x177))/0x5)+parseInt(_0x13c8e3(0x170))/0x6*(parseInt(_0x13c8e3(0x173))/0x7)+parseInt(_0x13c8e3(0x178))/0x8+parseInt(_0x13c8e3(0x16a))/0x9*(-parseInt(_0x13c8e3(0x179))/0xa)+-parseInt(_0x13c8e3(0x17c))/0xb;if(_0x5e7f2f===_0x1b1096)break;else _0x626809['push'](_0x626809['shift']());}catch(_0x524c04){_0x626809['push'](_0x626809['shift']());}}}(a145_0x44a4,0xdbe63));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a145_0x44a4(){const _0x34a366=['utf-8','1655710PLPeMQ','7180854ZGNzYE','13648ecbbrL','extendContent','7rxDqYc','trimEnd','title','cache','2035jycqzz','4804056HndsWM','2853370HaVEYv','entries','.md','29802608FIyBGV','120182wDaqhM','keys','skillTemplate','application/json','length','33Eotpzq','replace','push','lastUpdated','status','CDN\x20返回数据格式错误','guides','CDN\x20数据中缺少\x20skillTemplate','content','.lovrabet/skill/guides','.lovrabet','18OQaKDV','join','/skills/guides.json','map'];a145_0x44a4=function(){return _0x34a366;};return a145_0x44a4();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x23ced7=a145_0x2cfd,_0x509eea=getTemplateBaseUrl();return _0x509eea+_0x23ced7(0x16c);}const CACHE_DIR=join(homedir(),a145_0x36dd1c(0x169),a145_0x36dd1c(0x176));export async function fetchGuidesFromCDN(){const _0x21c942=a145_0x36dd1c,_0x44c46e=getGuidesCdnUrl(),_0x54cf8c=await fetch(_0x44c46e,{'headers':{'Accept':_0x21c942(0x15d)}});if(!_0x54cf8c['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x54cf8c[_0x21c942(0x163)]+'\x20'+_0x54cf8c['statusText']);const _0x348a29=await _0x54cf8c['json']();if(!_0x348a29[_0x21c942(0x165)]||typeof _0x348a29[_0x21c942(0x165)]!=='object')throw new Error(_0x21c942(0x164));return _0x348a29;}export function writeGuidesToProject(_0x2fb337,_0x4b31ad,_0x2a573a=a145_0x36dd1c(0x168),_0x52b0d7){const _0x2d60b3=a145_0x36dd1c,_0x2fd3f8=join(_0x4b31ad,_0x2a573a);mkdirSync(_0x2fd3f8,{'recursive':!![]});for(const [_0x180e59,_0x43aed5]of Object[_0x2d60b3(0x17a)](_0x2fb337[_0x2d60b3(0x165)])){let _0x1f342d=_0x43aed5[_0x2d60b3(0x167)];_0x43aed5[_0x2d60b3(0x162)]&&(_0x1f342d=appendUpdateTime(_0x1f342d,_0x43aed5['lastUpdated'])),writeFileSync(join(_0x2fd3f8,_0x180e59+_0x2d60b3(0x17b)),_0x1f342d,_0x2d60b3(0x16e));}}export function appendUpdateTime(_0x3900bc,_0x445bbc){const _0x22aa90=a145_0x36dd1c;return _0x3900bc=_0x3900bc[_0x22aa90(0x160)](/\n*>更新时间:.*$/m,''),_0x3900bc[_0x22aa90(0x174)]()+('\x0a\x0a>更新时间:'+_0x445bbc);}export function getSkillTemplate(_0x14e2e9){const _0x4b0eae=a145_0x36dd1c;return _0x14e2e9[_0x4b0eae(0x17f)]?.['content']||'';}export function appendExtendContents(_0x5b36e7,_0x2fe1fc,_0x4f1289){const _0x41960a=a145_0x36dd1c,_0x16d328=[];for(const [,_0x27bc54]of Object[_0x41960a(0x17a)](_0x2fe1fc['guides'])){_0x27bc54[_0x41960a(0x172)]&&_0x16d328[_0x41960a(0x161)](_0x27bc54[_0x41960a(0x172)][_0x41960a(0x174)]());}if(_0x16d328['length']===0x0)return _0x5b36e7;return _0x5b36e7['trimEnd']()+'\x0a\x0a'+_0x16d328[_0x41960a(0x16b)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x1b67c7,_0x3d44a3,_0x1a3aa9){const _0x26fa45=a145_0x36dd1c,_0x34d897=getSkillTemplate(_0x1b67c7);if(!_0x34d897)throw new Error(_0x26fa45(0x166));const _0x310dbb=dirname(_0x3d44a3);mkdirSync(_0x310dbb,{'recursive':!![]});let _0x274d44=_0x34d897[_0x26fa45(0x160)](/\{\{IDE_NAME\}\}/g,_0x1a3aa9);_0x274d44=appendExtendContents(_0x274d44,_0x1b67c7),_0x1b67c7[_0x26fa45(0x17f)]['lastUpdated']&&(_0x274d44=appendUpdateTime(_0x274d44,_0x1b67c7['skillTemplate'][_0x26fa45(0x162)])),writeFileSync(_0x3d44a3,_0x274d44,_0x26fa45(0x16e));}function a145_0x2cfd(_0x13af59,_0x52e8d9){_0x13af59=_0x13af59-0x15d;const _0x44a445=a145_0x44a4();let _0x2cfd78=_0x44a445[_0x13af59];return _0x2cfd78;}export async function installGuides(_0x431b45){const _0x47751b=a145_0x36dd1c,_0x55501c=await fetchGuidesFromCDN();return writeGuidesToProject(_0x55501c,_0x431b45),Object[_0x47751b(0x17e)](_0x55501c[_0x47751b(0x165)])[_0x47751b(0x15e)];}export function getGuidesSummary(_0x1922b5){const _0x3d7973=a145_0x36dd1c;return Object[_0x3d7973(0x17a)](_0x1922b5['guides'])[_0x3d7973(0x16d)](([_0x21228b,_0x3d5712])=>({'key':_0x21228b,'title':_0x3d5712[_0x3d7973(0x175)],'path':_0x3d5712['path']}));}
1
+ const a151_0x327728=a151_0x5358;(function(_0x14b399,_0x6db752){const _0x2d4830=a151_0x5358,_0x1229d6=_0x14b399();while(!![]){try{const _0x34c788=-parseInt(_0x2d4830(0x200))/0x1+-parseInt(_0x2d4830(0x208))/0x2*(-parseInt(_0x2d4830(0x20d))/0x3)+-parseInt(_0x2d4830(0x213))/0x4*(-parseInt(_0x2d4830(0x1fc))/0x5)+parseInt(_0x2d4830(0x207))/0x6*(-parseInt(_0x2d4830(0x210))/0x7)+-parseInt(_0x2d4830(0x209))/0x8*(-parseInt(_0x2d4830(0x1f8))/0x9)+parseInt(_0x2d4830(0x1f3))/0xa+-parseInt(_0x2d4830(0x203))/0xb*(parseInt(_0x2d4830(0x1fd))/0xc);if(_0x34c788===_0x6db752)break;else _0x1229d6['push'](_0x1229d6['shift']());}catch(_0x585926){_0x1229d6['push'](_0x1229d6['shift']());}}}(a151_0x4adf,0x6bb42));import{mkdirSync,writeFileSync}from'node:fs';function a151_0x5358(_0x12128d,_0x43b1f9){_0x12128d=_0x12128d-0x1f0;const _0x4adf25=a151_0x4adf();let _0x53581e=_0x4adf25[_0x12128d];return _0x53581e;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x559604=a151_0x5358,_0x21f3bc=getTemplateBaseUrl();return _0x21f3bc+_0x559604(0x1fb);}const CACHE_DIR=join(homedir(),'.lovrabet',a151_0x327728(0x1fa));export async function fetchGuidesFromCDN(){const _0x43157e=a151_0x327728,_0x46b2d2=getGuidesCdnUrl(),_0x3b7528=await fetch(_0x46b2d2,{'headers':{'Accept':'application/json'}});if(!_0x3b7528['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x3b7528[_0x43157e(0x20a)]+'\x20'+_0x3b7528[_0x43157e(0x1f1)]);const _0x41888e=await _0x3b7528[_0x43157e(0x1f6)]();if(!_0x41888e[_0x43157e(0x205)]||typeof _0x41888e[_0x43157e(0x205)]!==_0x43157e(0x1f2))throw new Error(_0x43157e(0x212));return _0x41888e;}export function writeGuidesToProject(_0x13ef9a,_0x22142c,_0x1a1aa1=a151_0x327728(0x206),_0x173175){const _0x4c6c8c=a151_0x327728,_0x954809=join(_0x22142c,_0x1a1aa1);mkdirSync(_0x954809,{'recursive':!![]});for(const [_0x13953f,_0x29480c]of Object['entries'](_0x13ef9a[_0x4c6c8c(0x205)])){let _0x1b9b19=_0x29480c[_0x4c6c8c(0x1ff)];_0x29480c[_0x4c6c8c(0x1f9)]&&(_0x1b9b19=appendUpdateTime(_0x1b9b19,_0x29480c[_0x4c6c8c(0x1f9)])),writeFileSync(join(_0x954809,_0x13953f+_0x4c6c8c(0x1f5)),_0x1b9b19,'utf-8');}}export function appendUpdateTime(_0x451724,_0xdb2e0b){const _0x432469=a151_0x327728;return _0x451724=_0x451724[_0x432469(0x1f7)](/\n*>更新时间:.*$/m,''),_0x451724[_0x432469(0x20e)]()+(_0x432469(0x1f0)+_0xdb2e0b);}export function getSkillTemplate(_0xc7c06d){const _0x72bc65=a151_0x327728;return _0xc7c06d['skillTemplate']?.[_0x72bc65(0x1ff)]||'';}export function appendExtendContents(_0x5545fc,_0x314192,_0x1ed00c){const _0x217642=a151_0x327728,_0x500995=[];for(const [,_0x2d887b]of Object[_0x217642(0x1f4)](_0x314192[_0x217642(0x205)])){_0x2d887b[_0x217642(0x20b)]&&_0x500995[_0x217642(0x211)](_0x2d887b[_0x217642(0x20b)]['trimEnd']());}if(_0x500995[_0x217642(0x201)]===0x0)return _0x5545fc;return _0x5545fc[_0x217642(0x20e)]()+'\x0a\x0a'+_0x500995[_0x217642(0x204)]('\x0a\x0a')+'\x0a';}function a151_0x4adf(){const _0xaf2871=['status','extendContent','title','3mybFBy','trimEnd','map','1855Fzmfug','push','CDN\x20返回数据格式错误','294580yGyCca','skillTemplate','\x0a\x0a>更新时间:','statusText','object','6286070LvOOLe','entries','.md','json','replace','324HjTjfp','lastUpdated','cache','/skills/guides.json','55ISmTNY','39840mWNgBL','CDN\x20数据中缺少\x20skillTemplate','content','641572yPplLd','length','keys','1507vcUNAR','join','guides','.lovrabet/skill/guides','12594tCaFvj','543038JmrOvb','85240TUjmXk'];a151_0x4adf=function(){return _0xaf2871;};return a151_0x4adf();}export function writeSkillFile(_0x48e3c8,_0x23efc3,_0x118d7a){const _0xbad77a=a151_0x327728,_0x5be890=getSkillTemplate(_0x48e3c8);if(!_0x5be890)throw new Error(_0xbad77a(0x1fe));const _0x31753e=dirname(_0x23efc3);mkdirSync(_0x31753e,{'recursive':!![]});let _0x2a8bf0=_0x5be890[_0xbad77a(0x1f7)](/\{\{IDE_NAME\}\}/g,_0x118d7a);_0x2a8bf0=appendExtendContents(_0x2a8bf0,_0x48e3c8),_0x48e3c8[_0xbad77a(0x214)][_0xbad77a(0x1f9)]&&(_0x2a8bf0=appendUpdateTime(_0x2a8bf0,_0x48e3c8[_0xbad77a(0x214)][_0xbad77a(0x1f9)])),writeFileSync(_0x23efc3,_0x2a8bf0,'utf-8');}export async function installGuides(_0x39026d){const _0x16bb56=a151_0x327728,_0x1980e0=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1980e0,_0x39026d),Object[_0x16bb56(0x202)](_0x1980e0['guides'])[_0x16bb56(0x201)];}export function getGuidesSummary(_0x2e1cba){const _0x148f42=a151_0x327728;return Object[_0x148f42(0x1f4)](_0x2e1cba[_0x148f42(0x205)])[_0x148f42(0x20f)](([_0x2c2e94,_0x38cc00])=>({'key':_0x2c2e94,'title':_0x38cc00[_0x148f42(0x20c)],'path':_0x38cc00['path']}));}
@@ -1 +1 @@
1
- (function(_0x3c528c,_0x11c517){const _0x50cf95=a146_0x4e2f,_0xecc69e=_0x3c528c();while(!![]){try{const _0x1aee3f=parseInt(_0x50cf95(0x1a7))/0x1*(parseInt(_0x50cf95(0x1b0))/0x2)+-parseInt(_0x50cf95(0x194))/0x3+-parseInt(_0x50cf95(0x19d))/0x4*(parseInt(_0x50cf95(0x19b))/0x5)+-parseInt(_0x50cf95(0x195))/0x6+parseInt(_0x50cf95(0x1aa))/0x7+-parseInt(_0x50cf95(0x1a1))/0x8*(parseInt(_0x50cf95(0x197))/0x9)+parseInt(_0x50cf95(0x19c))/0xa;if(_0x1aee3f===_0x11c517)break;else _0xecc69e['push'](_0xecc69e['shift']());}catch(_0xf67a68){_0xecc69e['push'](_0xecc69e['shift']());}}}(a146_0x2d35,0x200a5));export async function httpRequest(_0x1d2571,_0xd5a007={}){const _0x430813=a146_0x4e2f,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xd5a007;let _0x5f31cb=null;for(let _0x348455=0x0;_0x348455<=retries;_0x348455++){try{const _0x21e1ee=new AbortController(),_0x18879f=setTimeout(()=>_0x21e1ee[_0x430813(0x19f)](),timeout),_0x32ed98=await fetch(_0x1d2571,{'headers':headers,'signal':_0x21e1ee[_0x430813(0x1a3)]});clearTimeout(_0x18879f);let _0x505d6a;const _0x252157=_0x32ed98[_0x430813(0x1a0)][_0x430813(0x198)](_0x430813(0x1a5));return _0x252157?.[_0x430813(0x1a8)](_0x430813(0x1ad))?_0x505d6a=await _0x32ed98[_0x430813(0x199)]():_0x505d6a=await _0x32ed98['text'](),{'ok':_0x32ed98['ok'],'status':_0x32ed98[_0x430813(0x1af)],'statusText':_0x32ed98[_0x430813(0x196)],'data':_0x505d6a,'headers':_0x32ed98['headers'],'url':_0x32ed98[_0x430813(0x19a)],'text':()=>_0x32ed98[_0x430813(0x1ae)]()};}catch(_0x4c48b7){_0x5f31cb=_0x4c48b7 instanceof Error?_0x4c48b7:new Error(String(_0x4c48b7));if(_0x348455===retries)break;if(shouldRetry(_0x4c48b7)){console[_0x430813(0x1a9)](_0x430813(0x19e)+retryDelay+'ms\x20后进行第\x20'+(_0x348455+0x1)+_0x430813(0x1a4)),await sleep(retryDelay);continue;}else break;}}throw _0x5f31cb||new Error(_0x430813(0x1a2));}function a146_0x2d35(){const _0x419ac3=['38169ePyPJs','get','json','url','9815FhlfFY','7388710rWgvpf','416amWGnf','*\x20请求失败,','abort','headers','272XvRSyS','Request\x20failed','signal','\x20次重试...','content-type','ENOTFOUND','15803mjLhDy','includes','log','58919ufxLHC','name','message','application/json','text','status','18inCpnj','520791UpxMaf','1418010BVRjHX','statusText'];a146_0x2d35=function(){return _0x419ac3;};return a146_0x2d35();}function shouldRetry(_0x5312ce){const _0x543b23=a146_0x4e2f;if(_0x5312ce instanceof Error){if(_0x5312ce['name']==='AbortError')return![];if(_0x5312ce[_0x543b23(0x1ab)]==='TypeError'&&_0x5312ce[_0x543b23(0x1ac)][_0x543b23(0x1a8)]('fetch'))return!![];if(_0x5312ce[_0x543b23(0x1ac)]['includes']('ECONNRESET'))return!![];if(_0x5312ce[_0x543b23(0x1ac)][_0x543b23(0x1a8)](_0x543b23(0x1a6)))return![];}return![];}function sleep(_0x554cf1){return new Promise(_0x2a46f3=>setTimeout(_0x2a46f3,_0x554cf1));}function a146_0x4e2f(_0x737c16,_0x3ffa6f){_0x737c16=_0x737c16-0x194;const _0x2d3506=a146_0x2d35();let _0x4e2f70=_0x2d3506[_0x737c16];return _0x4e2f70;}export function validateUrl(_0x2737f2){try{return new URL(_0x2737f2),!![];}catch{return![];}}
1
+ function a152_0x2b3e(){const _0x39fd1a=['message','headers','content-type','1283632bZuRUQ','statusText','includes','abort','get','1822263aSrYiq','text','7015155GFcjOp','1670ndotqW','json','fetch','4QPjrFh','21378aIdkXS','387cpIIZD','*\x20请求失败,','60fMvOwL','name','ms\x20后进行第\x20','\x20次重试...','90144ieYfOD','application/json','Request\x20failed','ECONNRESET','6948854QlQjFm','AbortError','2194938TShwnT'];a152_0x2b3e=function(){return _0x39fd1a;};return a152_0x2b3e();}(function(_0x3d9500,_0x128179){const _0x4112bc=a152_0x4f8e,_0x4c5b1d=_0x3d9500();while(!![]){try{const _0x373888=parseInt(_0x4112bc(0x10a))/0x1+parseInt(_0x4112bc(0x106))/0x2+-parseInt(_0x4112bc(0xf2))/0x3*(parseInt(_0x4112bc(0xf8))/0x4)+-parseInt(_0x4112bc(0xf5))/0x5*(-parseInt(_0x4112bc(0xf9))/0x6)+parseInt(_0x4112bc(0xf4))/0x7+parseInt(_0x4112bc(0x100))/0x8*(parseInt(_0x4112bc(0xfa))/0x9)+-parseInt(_0x4112bc(0xfc))/0xa*(parseInt(_0x4112bc(0x104))/0xb);if(_0x373888===_0x128179)break;else _0x4c5b1d['push'](_0x4c5b1d['shift']());}catch(_0x517bb6){_0x4c5b1d['push'](_0x4c5b1d['shift']());}}}(a152_0x2b3e,0xa129f));function a152_0x4f8e(_0xad277b,_0x5ad85d){_0xad277b=_0xad277b-0xf2;const _0x2b3ebe=a152_0x2b3e();let _0x4f8ebc=_0x2b3ebe[_0xad277b];return _0x4f8ebc;}export async function httpRequest(_0x5a43ed,_0x3c0397={}){const _0x2662d1=a152_0x4f8e,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3c0397;let _0xe0928b=null;for(let _0xb75972=0x0;_0xb75972<=retries;_0xb75972++){try{const _0xbc58ee=new AbortController(),_0x67c513=setTimeout(()=>_0xbc58ee[_0x2662d1(0x10d)](),timeout),_0x4d152b=await fetch(_0x5a43ed,{'headers':headers,'signal':_0xbc58ee['signal']});clearTimeout(_0x67c513);let _0x9ea190;const _0x511486=_0x4d152b[_0x2662d1(0x108)][_0x2662d1(0x10e)](_0x2662d1(0x109));return _0x511486?.[_0x2662d1(0x10c)](_0x2662d1(0x101))?_0x9ea190=await _0x4d152b[_0x2662d1(0xf6)]():_0x9ea190=await _0x4d152b['text'](),{'ok':_0x4d152b['ok'],'status':_0x4d152b['status'],'statusText':_0x4d152b[_0x2662d1(0x10b)],'data':_0x9ea190,'headers':_0x4d152b['headers'],'url':_0x4d152b['url'],'text':()=>_0x4d152b[_0x2662d1(0xf3)]()};}catch(_0x45a0e6){_0xe0928b=_0x45a0e6 instanceof Error?_0x45a0e6:new Error(String(_0x45a0e6));if(_0xb75972===retries)break;if(shouldRetry(_0x45a0e6)){console['log'](_0x2662d1(0xfb)+retryDelay+_0x2662d1(0xfe)+(_0xb75972+0x1)+_0x2662d1(0xff)),await sleep(retryDelay);continue;}else break;}}throw _0xe0928b||new Error(_0x2662d1(0x102));}function shouldRetry(_0x38bf2e){const _0x39412a=a152_0x4f8e;if(_0x38bf2e instanceof Error){if(_0x38bf2e[_0x39412a(0xfd)]===_0x39412a(0x105))return![];if(_0x38bf2e[_0x39412a(0xfd)]==='TypeError'&&_0x38bf2e[_0x39412a(0x107)][_0x39412a(0x10c)](_0x39412a(0xf7)))return!![];if(_0x38bf2e[_0x39412a(0x107)][_0x39412a(0x10c)](_0x39412a(0x103)))return!![];if(_0x38bf2e[_0x39412a(0x107)][_0x39412a(0x10c)]('ENOTFOUND'))return![];}return![];}function sleep(_0x22174f){return new Promise(_0xda2a78=>setTimeout(_0xda2a78,_0x22174f));}export function validateUrl(_0x198fc9){try{return new URL(_0x198fc9),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x494e4d,_0x571709){const _0x5b5d5c=a147_0x2df2,_0x210ab7=_0x494e4d();while(!![]){try{const _0xa90acc=-parseInt(_0x5b5d5c(0x15a))/0x1*(parseInt(_0x5b5d5c(0x150))/0x2)+parseInt(_0x5b5d5c(0x14e))/0x3*(parseInt(_0x5b5d5c(0x14f))/0x4)+-parseInt(_0x5b5d5c(0x14d))/0x5*(parseInt(_0x5b5d5c(0x152))/0x6)+-parseInt(_0x5b5d5c(0x158))/0x7+parseInt(_0x5b5d5c(0x155))/0x8+-parseInt(_0x5b5d5c(0x159))/0x9+-parseInt(_0x5b5d5c(0x153))/0xa*(-parseInt(_0x5b5d5c(0x151))/0xb);if(_0xa90acc===_0x571709)break;else _0x210ab7['push'](_0x210ab7['shift']());}catch(_0x126764){_0x210ab7['push'](_0x210ab7['shift']());}}}(a147_0x5f28,0xb1d9d));function env(_0x23b8c5){return process.env[`RABETBASE_${_0x23b8c5}`]||process.env[`LOVRABET_${_0x23b8c5}`]||undefined;}function a147_0x5f28(){const _0x560af3=['isTTY','3060OhmWcz','69cGYsYn','251628dqncMG','58BJChUi','11Mcagqn','2334vCbnYQ','11062780EQerRp','nonInteractive','10182640WMbdOS','setRawMode','stdin','3503185kXZPtx','12989385gsSqFN','31576dvzVrr'];a147_0x5f28=function(){return _0x560af3;};return a147_0x5f28();}export function isNonInteractive(_0x2aa6bd){const _0x15a9f2=a147_0x2df2;return!!(_0x2aa6bd[_0x15a9f2(0x154)]||_0x2aa6bd['ci']||env('CI')==='true'||process.env.CI==='true'||!process['stdout'][_0x15a9f2(0x15b)]||!isStdinRawModeSupported());}function a147_0x2df2(_0x594d24,_0x33591f){_0x594d24=_0x594d24-0x14d;const _0x5f28cd=a147_0x5f28();let _0x2df2f1=_0x5f28cd[_0x594d24];return _0x2df2f1;}function isStdinRawModeSupported(){const _0x3a0248=a147_0x2df2;if(!process[_0x3a0248(0x157)][_0x3a0248(0x15b)])return![];try{const _0x1415ed=process['stdin']['isRaw'];return process['stdin'][_0x3a0248(0x156)](!![]),process[_0x3a0248(0x157)]['setRawMode'](_0x1415ed??![]),!![];}catch{return![];}}
1
+ (function(_0x3c9f33,_0x442e92){const _0x2658f8=a153_0x582d,_0x559f20=_0x3c9f33();while(!![]){try{const _0x2abb3c=parseInt(_0x2658f8(0x166))/0x1*(-parseInt(_0x2658f8(0x16b))/0x2)+parseInt(_0x2658f8(0x171))/0x3*(-parseInt(_0x2658f8(0x16e))/0x4)+parseInt(_0x2658f8(0x16f))/0x5*(-parseInt(_0x2658f8(0x170))/0x6)+-parseInt(_0x2658f8(0x16c))/0x7+-parseInt(_0x2658f8(0x174))/0x8*(-parseInt(_0x2658f8(0x172))/0x9)+parseInt(_0x2658f8(0x167))/0xa+parseInt(_0x2658f8(0x16a))/0xb;if(_0x2abb3c===_0x442e92)break;else _0x559f20['push'](_0x559f20['shift']());}catch(_0x425af5){_0x559f20['push'](_0x559f20['shift']());}}}(a153_0x513f,0xecff7));function env(_0x57b329){return process.env[`RABETBASE_${_0x57b329}`]||process.env[`LOVRABET_${_0x57b329}`]||undefined;}export function isNonInteractive(_0x50c167){const _0x5edd45=a153_0x582d;return!!(_0x50c167[_0x5edd45(0x169)]||_0x50c167['ci']||env('CI')===_0x5edd45(0x168)||process.env.CI==='true'||!process['stdout'][_0x5edd45(0x165)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3ae49d=a153_0x582d;if(!process['stdin']['isTTY'])return![];try{const _0x538b64=process[_0x3ae49d(0x16d)][_0x3ae49d(0x173)];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x3ae49d(0x164)](_0x538b64??![]),!![];}catch{return![];}}function a153_0x582d(_0x245576,_0xfdec7b){_0x245576=_0x245576-0x164;const _0x513f16=a153_0x513f();let _0x582d25=_0x513f16[_0x245576];return _0x582d25;}function a153_0x513f(){const _0x53e854=['setRawMode','isTTY','1142VNSaxh','924300AtzsUg','true','nonInteractive','43393504YWUbnz','1256VRbGny','9446906UqyeRr','stdin','395372wTfaKI','1040570KmBkLt','36vlOukj','9zVqsng','18pKWCbb','isRaw','2181584zGACHC'];a153_0x513f=function(){return _0x53e854;};return a153_0x513f();}
@@ -1 +1 @@
1
- const a148_0x56c38b=a148_0x220f;(function(_0x134715,_0x356e5a){const _0x542332=a148_0x220f,_0x4552b8=_0x134715();while(!![]){try{const _0x4dea28=parseInt(_0x542332(0x14f))/0x1*(parseInt(_0x542332(0x151))/0x2)+-parseInt(_0x542332(0x171))/0x3*(parseInt(_0x542332(0x16d))/0x4)+parseInt(_0x542332(0x178))/0x5*(parseInt(_0x542332(0x15f))/0x6)+parseInt(_0x542332(0x15d))/0x7+-parseInt(_0x542332(0x14c))/0x8*(parseInt(_0x542332(0x14a))/0x9)+parseInt(_0x542332(0x158))/0xa*(-parseInt(_0x542332(0x157))/0xb)+-parseInt(_0x542332(0x159))/0xc*(-parseInt(_0x542332(0x15b))/0xd);if(_0x4dea28===_0x356e5a)break;else _0x4552b8['push'](_0x4552b8['shift']());}catch(_0x46e9f0){_0x4552b8['push'](_0x4552b8['shift']());}}}(a148_0x525a,0x4bc09));function a148_0x220f(_0x562b6a,_0x37449f){_0x562b6a=_0x562b6a-0x149;const _0x525a4e=a148_0x525a();let _0x220f4c=_0x525a4e[_0x562b6a];return _0x220f4c;}import a148_0x32639a from'winston';import a148_0x36fd9b from'node:fs';import a148_0x1a85b2 from'node:path';function a148_0x525a(){const _0x302cd8=['printf','initWinstonLogger','toISOString','unknown','logTask','timestamp','37827ceDTAO','stringify','808nHNpHp','yellow','addColors','624zGFneF','readLogs','1448jmdkFO','winstonLogger','Failed\x20to\x20clear\x20logs:','currentRawCommand','mkdirSync','失败:\x20','178728cVmKSw','220nqExij','12dYpeEf','.lovrabet.log','1632865sDZZpb','filter','2098187JjuUTo','warn','722346zsdVLL','map','error','setLogPath','clearLogs','join','utf8','command','format','message','red','logFilePath','log','combine','1092LdldGn','开始执行:\x20','duration','File','1605XimLEb','readFileSync','existsSync','writeFileSync','info','success','clear','15pdMrVS','now','rawCommand'];a148_0x525a=function(){return _0x302cd8;};return a148_0x525a();}class Logger{[a148_0x56c38b(0x152)];['logFilePath'];[a148_0x56c38b(0x154)]='';constructor(){const _0xff06dc=a148_0x56c38b;this[_0xff06dc(0x16a)]='';}['setRawCommand'](_0x573eef){const _0x197ac0=a148_0x56c38b;this[_0x197ac0(0x154)]=_0x573eef;}[a148_0x56c38b(0x17c)](){const _0x26a0b2=a148_0x56c38b,_0x395c94=a148_0x1a85b2['dirname'](this[_0x26a0b2(0x16a)]);!a148_0x36fd9b['existsSync'](_0x395c94)&&a148_0x36fd9b[_0x26a0b2(0x155)](_0x395c94,{'recursive':!![]});const _0x3963d1=a148_0x32639a[_0x26a0b2(0x167)][_0x26a0b2(0x16c)](a148_0x32639a['format'][_0x26a0b2(0x149)](),a148_0x32639a[_0x26a0b2(0x167)]['errors']({'stack':!![]}),a148_0x32639a[_0x26a0b2(0x167)][_0x26a0b2(0x17b)](_0x1fcddf=>{const _0xa7dea=_0x26a0b2,_0x28ad36={'timestamp':_0x1fcddf[_0xa7dea(0x149)]||new Date()[_0xa7dea(0x17d)](),'level':_0x1fcddf['level']||_0xa7dea(0x175),'command':_0x1fcddf[_0xa7dea(0x166)]||_0xa7dea(0x17e),'rawCommand':_0x1fcddf[_0xa7dea(0x17a)]||this[_0xa7dea(0x154)]||undefined,'message':_0x1fcddf[_0xa7dea(0x168)]||'','duration':_0x1fcddf[_0xa7dea(0x16f)]||undefined,'details':_0x1fcddf['details']||undefined};return JSON[_0xa7dea(0x14b)](_0x28ad36);}));this['winstonLogger']=a148_0x32639a['createLogger']({'level':_0x26a0b2(0x175),'format':_0x3963d1,'transports':[new a148_0x32639a['transports'][(_0x26a0b2(0x170))]({'filename':this['logFilePath'],'level':_0x26a0b2(0x175)})],'silent':![]}),a148_0x32639a[_0x26a0b2(0x14e)]({'success':'green','error':_0x26a0b2(0x169),'warn':_0x26a0b2(0x14d),'info':'blue'});}[a148_0x56c38b(0x162)](_0x3b9046){const _0x320a79=a148_0x56c38b;this['logFilePath']=a148_0x1a85b2[_0x320a79(0x164)](_0x3b9046,_0x320a79(0x15a)),this[_0x320a79(0x152)]&&this[_0x320a79(0x152)][_0x320a79(0x177)](),this['initWinstonLogger']();}[a148_0x56c38b(0x175)](_0x296580,_0x52319c,_0x6437de){const _0x1e1f8a=a148_0x56c38b;if(!this[_0x1e1f8a(0x16a)]||!this['winstonLogger'])return;this['winstonLogger'][_0x1e1f8a(0x175)](_0x52319c,{'command':_0x296580,'details':_0x6437de});}[a148_0x56c38b(0x176)](_0x2c6b43,_0x3f9663,_0x3f546d,_0x5509c0){const _0x35b78c=a148_0x56c38b;if(!this[_0x35b78c(0x16a)]||!this[_0x35b78c(0x152)])return;this[_0x35b78c(0x152)][_0x35b78c(0x16b)](_0x35b78c(0x175),_0x3f9663,{'level':'success','command':_0x2c6b43,'duration':_0x3f546d,'details':_0x5509c0});}['error'](_0x3a1a40,_0x5f5151,_0x35dfd1){const _0x485108=a148_0x56c38b;if(!this[_0x485108(0x16a)]||!this['winstonLogger'])return;this[_0x485108(0x152)][_0x485108(0x161)](_0x5f5151,{'command':_0x3a1a40,'details':_0x35dfd1});}[a148_0x56c38b(0x15e)](_0xb6c9c,_0x558bb1,_0x423d34){const _0x1f66c2=a148_0x56c38b;if(!this[_0x1f66c2(0x16a)]||!this[_0x1f66c2(0x152)])return;this[_0x1f66c2(0x152)][_0x1f66c2(0x15e)](_0x558bb1,{'command':_0xb6c9c,'details':_0x423d34});}async[a148_0x56c38b(0x17f)](_0x250732,_0x2b7e80,_0x160fc0){const _0x4333ad=a148_0x56c38b,_0x4abfe3=Date[_0x4333ad(0x179)]();this[_0x4333ad(0x175)](_0x250732,_0x4333ad(0x16e)+_0x2b7e80);try{const _0xa2a690=await _0x160fc0(),_0x3b9ae4=Date[_0x4333ad(0x179)]()-_0x4abfe3;return this[_0x4333ad(0x176)](_0x250732,'完成:\x20'+_0x2b7e80,_0x3b9ae4),_0xa2a690;}catch(_0x1b9f8f){const _0x26754a=Date[_0x4333ad(0x179)]()-_0x4abfe3;this[_0x4333ad(0x161)](_0x250732,_0x4333ad(0x156)+_0x2b7e80,{'error':_0x1b9f8f instanceof Error?_0x1b9f8f[_0x4333ad(0x168)]:String(_0x1b9f8f),'duration':_0x26754a});throw _0x1b9f8f;}}[a148_0x56c38b(0x150)](){const _0x1dd7f9=a148_0x56c38b;try{if(!a148_0x36fd9b[_0x1dd7f9(0x173)](this[_0x1dd7f9(0x16a)]))return[];const _0xb88be6=a148_0x36fd9b[_0x1dd7f9(0x172)](this[_0x1dd7f9(0x16a)],_0x1dd7f9(0x165));return _0xb88be6['split']('\x0a')[_0x1dd7f9(0x15c)](_0x26146e=>_0x26146e['trim']())[_0x1dd7f9(0x160)](_0x56dc07=>JSON['parse'](_0x56dc07));}catch(_0x4772ea){return console['warn']('Failed\x20to\x20read\x20logs:',_0x4772ea),[];}}[a148_0x56c38b(0x163)](){const _0x527e41=a148_0x56c38b;try{a148_0x36fd9b['existsSync'](this[_0x527e41(0x16a)])&&a148_0x36fd9b[_0x527e41(0x174)](this['logFilePath'],'',_0x527e41(0x165));}catch(_0x2c63f3){console[_0x527e41(0x15e)](_0x527e41(0x153),_0x2c63f3);}}['getWinstonInstance'](){const _0x750a0e=a148_0x56c38b;return this[_0x750a0e(0x152)];}}export const logger=new Logger();
1
+ const a154_0x5ab791=a154_0x2d32;(function(_0x4a5cb3,_0x5c9792){const _0x5339fb=a154_0x2d32,_0x5acfec=_0x4a5cb3();while(!![]){try{const _0x1b42c8=-parseInt(_0x5339fb(0x20e))/0x1*(parseInt(_0x5339fb(0x214))/0x2)+-parseInt(_0x5339fb(0x1f7))/0x3*(-parseInt(_0x5339fb(0x21d))/0x4)+parseInt(_0x5339fb(0x1f3))/0x5+parseInt(_0x5339fb(0x1ee))/0x6*(parseInt(_0x5339fb(0x1f0))/0x7)+-parseInt(_0x5339fb(0x1ec))/0x8+-parseInt(_0x5339fb(0x209))/0x9+parseInt(_0x5339fb(0x1e7))/0xa*(parseInt(_0x5339fb(0x208))/0xb);if(_0x1b42c8===_0x5c9792)break;else _0x5acfec['push'](_0x5acfec['shift']());}catch(_0x2f5c59){_0x5acfec['push'](_0x5acfec['shift']());}}}(a154_0x2ac7,0xe3977));import a154_0x387a2c from'winston';import a154_0x1de68b from'node:fs';function a154_0x2ac7(){const _0xcca883=['printf','now','unknown','timestamp','format','10LzufAt','Failed\x20to\x20clear\x20logs:','dirname','.lovrabet.log','logFilePath','utf8','split','combine','toISOString','52FRajoq','duration','20XuMfnr','warn','initWinstonLogger','setRawCommand','existsSync','8013448YZOLHF','info','6iDIqYx','完成:\x20','1378846vhFqzN','error','clearLogs','5672770lOjlqS','errors','stringify','winstonLogger','270057BVxFOL','mkdirSync','transports','rawCommand','map','green','join','red','level','开始执行:\x20','success','createLogger','addColors','message','logTask','readFileSync','readLogs','9340463kOXLDK','6858216VlixLZ','filter','currentRawCommand','trim','command','300825BkEiao'];a154_0x2ac7=function(){return _0xcca883;};return a154_0x2ac7();}import a154_0x19744d from'node:path';class Logger{[a154_0x5ab791(0x1f6)];[a154_0x5ab791(0x218)];[a154_0x5ab791(0x20b)]='';constructor(){this['logFilePath']='';}[a154_0x5ab791(0x1ea)](_0x5dd5f8){const _0x353a2c=a154_0x5ab791;this[_0x353a2c(0x20b)]=_0x5dd5f8;}['initWinstonLogger'](){const _0x50fc19=a154_0x5ab791,_0x2595db=a154_0x19744d[_0x50fc19(0x216)](this[_0x50fc19(0x218)]);!a154_0x1de68b['existsSync'](_0x2595db)&&a154_0x1de68b[_0x50fc19(0x1f8)](_0x2595db,{'recursive':!![]});const _0x55c9a1=a154_0x387a2c[_0x50fc19(0x213)][_0x50fc19(0x21b)](a154_0x387a2c[_0x50fc19(0x213)][_0x50fc19(0x212)](),a154_0x387a2c['format'][_0x50fc19(0x1f4)]({'stack':!![]}),a154_0x387a2c[_0x50fc19(0x213)][_0x50fc19(0x20f)](_0x138e05=>{const _0x4034b5=_0x50fc19,_0x231f20={'timestamp':_0x138e05[_0x4034b5(0x212)]||new Date()[_0x4034b5(0x21c)](),'level':_0x138e05[_0x4034b5(0x1ff)]||_0x4034b5(0x1ed),'command':_0x138e05[_0x4034b5(0x20d)]||_0x4034b5(0x211),'rawCommand':_0x138e05[_0x4034b5(0x1fa)]||this[_0x4034b5(0x20b)]||undefined,'message':_0x138e05[_0x4034b5(0x204)]||'','duration':_0x138e05[_0x4034b5(0x1e6)]||undefined,'details':_0x138e05['details']||undefined};return JSON[_0x4034b5(0x1f5)](_0x231f20);}));this[_0x50fc19(0x1f6)]=a154_0x387a2c[_0x50fc19(0x202)]({'level':'info','format':_0x55c9a1,'transports':[new a154_0x387a2c[(_0x50fc19(0x1f9))]['File']({'filename':this[_0x50fc19(0x218)],'level':_0x50fc19(0x1ed)})],'silent':![]}),a154_0x387a2c[_0x50fc19(0x203)]({'success':_0x50fc19(0x1fc),'error':_0x50fc19(0x1fe),'warn':'yellow','info':'blue'});}['setLogPath'](_0x24d3f6){const _0x156535=a154_0x5ab791;this[_0x156535(0x218)]=a154_0x19744d[_0x156535(0x1fd)](_0x24d3f6,_0x156535(0x217)),this[_0x156535(0x1f6)]&&this[_0x156535(0x1f6)]['clear'](),this[_0x156535(0x1e9)]();}[a154_0x5ab791(0x1ed)](_0x3803c6,_0x58ed1e,_0x2d8978){const _0x4e7d0f=a154_0x5ab791;if(!this['logFilePath']||!this[_0x4e7d0f(0x1f6)])return;this[_0x4e7d0f(0x1f6)][_0x4e7d0f(0x1ed)](_0x58ed1e,{'command':_0x3803c6,'details':_0x2d8978});}[a154_0x5ab791(0x201)](_0x5059cc,_0x5833b9,_0x117cb5,_0x44c55b){const _0x50898a=a154_0x5ab791;if(!this[_0x50898a(0x218)]||!this[_0x50898a(0x1f6)])return;this[_0x50898a(0x1f6)]['log'](_0x50898a(0x1ed),_0x5833b9,{'level':_0x50898a(0x201),'command':_0x5059cc,'duration':_0x117cb5,'details':_0x44c55b});}[a154_0x5ab791(0x1f1)](_0x17231b,_0x32ffc2,_0x20b3c2){const _0x4652cd=a154_0x5ab791;if(!this['logFilePath']||!this[_0x4652cd(0x1f6)])return;this['winstonLogger'][_0x4652cd(0x1f1)](_0x32ffc2,{'command':_0x17231b,'details':_0x20b3c2});}[a154_0x5ab791(0x1e8)](_0x42934f,_0x4bd61e,_0x5edd66){const _0x28e50a=a154_0x5ab791;if(!this['logFilePath']||!this[_0x28e50a(0x1f6)])return;this['winstonLogger'][_0x28e50a(0x1e8)](_0x4bd61e,{'command':_0x42934f,'details':_0x5edd66});}async[a154_0x5ab791(0x205)](_0x946604,_0x59180c,_0x579dd1){const _0x4ec30b=a154_0x5ab791,_0x18943e=Date[_0x4ec30b(0x210)]();this[_0x4ec30b(0x1ed)](_0x946604,_0x4ec30b(0x200)+_0x59180c);try{const _0x28ca54=await _0x579dd1(),_0x131f76=Date[_0x4ec30b(0x210)]()-_0x18943e;return this['success'](_0x946604,_0x4ec30b(0x1ef)+_0x59180c,_0x131f76),_0x28ca54;}catch(_0x32e007){const _0x3682ca=Date[_0x4ec30b(0x210)]()-_0x18943e;this['error'](_0x946604,'失败:\x20'+_0x59180c,{'error':_0x32e007 instanceof Error?_0x32e007[_0x4ec30b(0x204)]:String(_0x32e007),'duration':_0x3682ca});throw _0x32e007;}}[a154_0x5ab791(0x207)](){const _0x560938=a154_0x5ab791;try{if(!a154_0x1de68b[_0x560938(0x1eb)](this['logFilePath']))return[];const _0x39e1ab=a154_0x1de68b[_0x560938(0x206)](this[_0x560938(0x218)],_0x560938(0x219));return _0x39e1ab[_0x560938(0x21a)]('\x0a')[_0x560938(0x20a)](_0x462062=>_0x462062[_0x560938(0x20c)]())[_0x560938(0x1fb)](_0x146e44=>JSON['parse'](_0x146e44));}catch(_0x5eb7b4){return console['warn']('Failed\x20to\x20read\x20logs:',_0x5eb7b4),[];}}[a154_0x5ab791(0x1f2)](){const _0x5c2281=a154_0x5ab791;try{a154_0x1de68b[_0x5c2281(0x1eb)](this[_0x5c2281(0x218)])&&a154_0x1de68b['writeFileSync'](this[_0x5c2281(0x218)],'',_0x5c2281(0x219));}catch(_0xf67ff2){console['warn'](_0x5c2281(0x215),_0xf67ff2);}}['getWinstonInstance'](){const _0x572c77=a154_0x5ab791;return this[_0x572c77(0x1f6)];}}function a154_0x2d32(_0x54ef2e,_0x28dcfb){_0x54ef2e=_0x54ef2e-0x1e6;const _0x2ac761=a154_0x2ac7();let _0x2d32c6=_0x2ac761[_0x54ef2e];return _0x2d32c6;}export const logger=new Logger();
@@ -1 +1 @@
1
- const a149_0x4474c5=a149_0xc331;function a149_0xc331(_0x34ded1,_0x18ba36){_0x34ded1=_0x34ded1-0x103;const _0x4470a1=a149_0x4470();let _0xc3317e=_0x4470a1[_0x34ded1];return _0xc3317e;}function a149_0x4470(){const _0xef8c30=['93246yzjrpF','412749SFQtiR','182UtyOkE','9104952wUhzDi','92589Napbot','platform','457656IHTQYd','643152UopUBq','4585625Cjodiz','win32'];a149_0x4470=function(){return _0xef8c30;};return a149_0x4470();}(function(_0x2952b2,_0x3be434){const _0x559940=a149_0xc331,_0xd1fa19=_0x2952b2();while(!![]){try{const _0x51eb04=parseInt(_0x559940(0x104))/0x1+parseInt(_0x559940(0x107))/0x2+parseInt(_0x559940(0x10b))/0x3+-parseInt(_0x559940(0x106))/0x4+parseInt(_0x559940(0x108))/0x5+parseInt(_0x559940(0x10a))/0x6*(parseInt(_0x559940(0x10c))/0x7)+-parseInt(_0x559940(0x103))/0x8;if(_0x51eb04===_0x3be434)break;else _0xd1fa19['push'](_0xd1fa19['shift']());}catch(_0x429e68){_0xd1fa19['push'](_0xd1fa19['shift']());}}}(a149_0x4470,0x97776));export const isWindows=process[a149_0x4474c5(0x105)]===a149_0x4474c5(0x109);export function resolveNpmBin(_0x56f016){return isWindows?_0x56f016+'.cmd':_0x56f016;}
1
+ function a155_0x2fed(_0x331ac2,_0x37a005){_0x331ac2=_0x331ac2-0xe8;const _0x311aa7=a155_0x311a();let _0x2fed7b=_0x311aa7[_0x331ac2];return _0x2fed7b;}function a155_0x311a(){const _0x2ba980=['37030730ArxBin','3770qLZRFV','117717RWfGYf','5862tiMjjT','3490GrmTiA','5203052KVUHlO','14895kenllt','win32','889320zqgTRY','1484psuVSr','34sNSPjV','.cmd','3352rMnKSx','platform'];a155_0x311a=function(){return _0x2ba980;};return a155_0x311a();}const a155_0x359abb=a155_0x2fed;(function(_0x397fe5,_0x400ca0){const _0x185017=a155_0x2fed,_0xe07295=_0x397fe5();while(!![]){try{const _0x498bde=parseInt(_0x185017(0xe9))/0x1+-parseInt(_0x185017(0xeb))/0x2*(-parseInt(_0x185017(0xf1))/0x3)+parseInt(_0x185017(0xf4))/0x4+parseInt(_0x185017(0xf0))/0x5*(parseInt(_0x185017(0xf2))/0x6)+parseInt(_0x185017(0xea))/0x7*(-parseInt(_0x185017(0xed))/0x8)+-parseInt(_0x185017(0xf5))/0x9*(-parseInt(_0x185017(0xf3))/0xa)+-parseInt(_0x185017(0xef))/0xb;if(_0x498bde===_0x400ca0)break;else _0xe07295['push'](_0xe07295['shift']());}catch(_0x30bc4a){_0xe07295['push'](_0xe07295['shift']());}}}(a155_0x311a,0xaed6d));export const isWindows=process[a155_0x359abb(0xee)]===a155_0x359abb(0xe8);export function resolveNpmBin(_0x1463b4){const _0x3df653=a155_0x359abb;return isWindows?_0x1463b4+_0x3df653(0xec):_0x1463b4;}
@@ -1 +1 @@
1
- const a150_0x58c2eb=a150_0x1f6b;(function(_0x50c8db,_0x30f4c2){const _0x396fd3=a150_0x1f6b,_0x4c35f5=_0x50c8db();while(!![]){try{const _0x2fc129=parseInt(_0x396fd3(0x15e))/0x1+parseInt(_0x396fd3(0x166))/0x2+-parseInt(_0x396fd3(0x168))/0x3+parseInt(_0x396fd3(0x15a))/0x4+-parseInt(_0x396fd3(0x162))/0x5*(-parseInt(_0x396fd3(0x163))/0x6)+-parseInt(_0x396fd3(0x160))/0x7+parseInt(_0x396fd3(0x167))/0x8*(-parseInt(_0x396fd3(0x15f))/0x9);if(_0x2fc129===_0x30f4c2)break;else _0x4c35f5['push'](_0x4c35f5['shift']());}catch(_0x521ae4){_0x4c35f5['push'](_0x4c35f5['shift']());}}}(a150_0x55f8,0x2089a));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';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 _0x287f7c=a150_0x1f6b,_0x4783ea=getTemplateBaseUrl();return _0x4783ea+_0x287f7c(0x161);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a150_0x58c2eb(0x15d));export async function fetchRulesFromCDN(){const _0x13da45=a150_0x58c2eb,_0x467f28=getRulesCdnUrl(),_0x5b0482=await fetch(_0x467f28,{'headers':{'Accept':'application/json'}});if(!_0x5b0482['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x5b0482[_0x13da45(0x156)]+'\x20'+_0x5b0482[_0x13da45(0x157)]);const _0x22ec9e=await _0x5b0482[_0x13da45(0x15c)]();if(!_0x22ec9e[_0x13da45(0x164)]||typeof _0x22ec9e[_0x13da45(0x164)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x22ec9e;}function a150_0x1f6b(_0x33a893,_0x871280){_0x33a893=_0x33a893-0x156;const _0x55f8f3=a150_0x55f8();let _0x1f6bcf=_0x55f8f3[_0x33a893];return _0x1f6bcf;}export async function getRulesContent(){try{const _0x4a502d=await fetchRulesFromCDN();return _0x4a502d['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2cf90b=a150_0x58c2eb;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2cf90b(0x159));throw new Error(_0x2cf90b(0x15b)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x490f8b){const _0x271060=a150_0x58c2eb,_0x5e472d=await fetchRulesFromCDN()[_0x271060(0x169)](()=>null);let _0x2ae375;_0x5e472d?(_0x2ae375=_0x5e472d[_0x271060(0x164)],_0x5e472d[_0x271060(0x165)]&&(_0x2ae375=appendUpdateTime(_0x2ae375,_0x5e472d[_0x271060(0x165)]))):_0x2ae375=readLocalTemplate();const _0x23a105=dirname(_0x490f8b);!existsSync(_0x23a105)&&mkdirSync(_0x23a105,{'recursive':!![]}),writeFileSync(_0x490f8b,_0x2ae375,'utf-8');}export async function copyRulesToCursor(_0x1d64e4){const _0xae58fd=join(_0x1d64e4,'.cursor/rules'),_0x253e09=join(_0xae58fd,'lovrabet_rules.mdc');if(existsSync(_0x253e09))return![];return await writeRulesFile(_0x253e09),!![];}export async function copyRulesToAgentsMd(_0x6c1b30){const _0x42d85f=a150_0x58c2eb,_0x28410c=join(_0x6c1b30,_0x42d85f(0x158));if(existsSync(_0x28410c))return![];return await writeRulesFile(_0x28410c),!![];}function a150_0x55f8(){const _0x1950b9=['5SYgfJS','1369248pKRuEl','content','lastUpdated','480696DKXCFJ','1752200zGdvvl','572679bOQLeF','catch','status','statusText','agents.md','utf-8','255032UTQfgr','本地模板文件不存在:\x20','json','../../templates/rules/lovrabet_rules.mdc.tpl','168120cLjlnO','9xPCXNV','1100694Znonrw','/rules/rules.json'];a150_0x55f8=function(){return _0x1950b9;};return a150_0x55f8();}
1
+ const a156_0x5c723=a156_0x58ec;(function(_0x54addd,_0x2480e9){const _0x183d04=a156_0x58ec,_0x5f0157=_0x54addd();while(!![]){try{const _0x4abeb3=parseInt(_0x183d04(0x1a1))/0x1*(parseInt(_0x183d04(0x1ad))/0x2)+-parseInt(_0x183d04(0x1a3))/0x3*(parseInt(_0x183d04(0x1a6))/0x4)+parseInt(_0x183d04(0x1a4))/0x5*(parseInt(_0x183d04(0x1b4))/0x6)+-parseInt(_0x183d04(0x1ab))/0x7*(-parseInt(_0x183d04(0x1ae))/0x8)+parseInt(_0x183d04(0x1b1))/0x9*(parseInt(_0x183d04(0x1a5))/0xa)+-parseInt(_0x183d04(0x1a0))/0xb*(parseInt(_0x183d04(0x19f))/0xc)+-parseInt(_0x183d04(0x1aa))/0xd;if(_0x4abeb3===_0x2480e9)break;else _0x5f0157['push'](_0x5f0157['shift']());}catch(_0x4dc2a0){_0x5f0157['push'](_0x5f0157['shift']());}}}(a156_0x4612,0xae7c3));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a156_0x4612(){const _0x48791e=['4072XUOcTZ','../../templates/rules/lovrabet_rules.mdc.tpl','lastUpdated','424665wqLRIg','.cursor/rules','string','721134yfUQZC','lovrabet_rules.mdc','application/json','status','本地模板文件不存在:\x20','json','content','1596jyjloa','9757TYEwxV','1KPdwLw','/rules/rules.json','2260383giifaL','25HlfGVL','220vkdgQq','4JVtqjI','statusText','utf-8','agents.md','22844887ghzluO','5894mqzuBH','catch','2551658xFAEwm'];a156_0x4612=function(){return _0x48791e;};return a156_0x4612();}import{appendUpdateTime}from'../utils/guides-cdn.js';function a156_0x58ec(_0x20fc6e,_0x21a5fe){_0x20fc6e=_0x20fc6e-0x19e;const _0x4612aa=a156_0x4612();let _0x58ecd1=_0x4612aa[_0x20fc6e];return _0x58ecd1;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x19cbf5=a156_0x58ec,_0x5ae918=getTemplateBaseUrl();return _0x5ae918+_0x19cbf5(0x1a2);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a156_0x5c723(0x1af));export async function fetchRulesFromCDN(){const _0x3472c7=a156_0x5c723,_0x2fc336=getRulesCdnUrl(),_0x2bd479=await fetch(_0x2fc336,{'headers':{'Accept':_0x3472c7(0x1b6)}});if(!_0x2bd479['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2bd479[_0x3472c7(0x1b7)]+'\x20'+_0x2bd479[_0x3472c7(0x1a7)]);const _0x377b08=await _0x2bd479[_0x3472c7(0x1b9)]();if(!_0x377b08['content']||typeof _0x377b08[_0x3472c7(0x19e)]!==_0x3472c7(0x1b3))throw new Error('CDN\x20返回数据格式错误');return _0x377b08;}export async function getRulesContent(){try{const _0x2b12a3=await fetchRulesFromCDN();return _0x2b12a3['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x161969=a156_0x5c723;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x161969(0x1a8));throw new Error(_0x161969(0x1b8)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xac22a8){const _0x329f6b=a156_0x5c723,_0x1ff5bc=await fetchRulesFromCDN()[_0x329f6b(0x1ac)](()=>null);let _0x17d839;_0x1ff5bc?(_0x17d839=_0x1ff5bc[_0x329f6b(0x19e)],_0x1ff5bc['lastUpdated']&&(_0x17d839=appendUpdateTime(_0x17d839,_0x1ff5bc[_0x329f6b(0x1b0)]))):_0x17d839=readLocalTemplate();const _0x4ceef3=dirname(_0xac22a8);!existsSync(_0x4ceef3)&&mkdirSync(_0x4ceef3,{'recursive':!![]}),writeFileSync(_0xac22a8,_0x17d839,'utf-8');}export async function copyRulesToCursor(_0x410424){const _0x21662a=a156_0x5c723,_0x44d069=join(_0x410424,_0x21662a(0x1b2)),_0x3f0ade=join(_0x44d069,_0x21662a(0x1b5));if(existsSync(_0x3f0ade))return![];return await writeRulesFile(_0x3f0ade),!![];}export async function copyRulesToAgentsMd(_0x59f583){const _0x783834=a156_0x5c723,_0x9037b6=join(_0x59f583,_0x783834(0x1a9));if(existsSync(_0x9037b6))return![];return await writeRulesFile(_0x9037b6),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x2692ac){return new Promise(_0x3a5d24=>setTimeout(_0x3a5d24,_0x2692ac));}
1
+ export function sleep(_0x579efb){return new Promise(_0x5b6b9c=>setTimeout(_0x5b6b9c,_0x579efb));}