@lovrabet/rabetbase-cli 2.1.12-beta.2 → 2.1.12-beta.4

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 (200) 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 -1
  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 -1
  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 -1
  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/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.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/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/nudge.js +1 -1
  80. package/lib/commands/issue/report.js +1 -1
  81. package/lib/commands/issue/shared.js +1 -1
  82. package/lib/commands/logs/index.js +1 -1
  83. package/lib/commands/menu/index.js +1 -1
  84. package/lib/commands/menu/shared/compare-table.js +1 -1
  85. package/lib/commands/menu/shared/index.js +1 -1
  86. package/lib/commands/menu/shared/inquirer.js +1 -1
  87. package/lib/commands/menu/shared/local-pages.js +1 -1
  88. package/lib/commands/menu/shared/logic.js +1 -1
  89. package/lib/commands/menu/shared/service.js +1 -1
  90. package/lib/commands/menu/shared/sync-core.js +1 -1
  91. package/lib/commands/menu/shared/update-core.js +1 -1
  92. package/lib/commands/menu/shared/valid-url.js +1 -1
  93. package/lib/commands/menu/sync.js +1 -1
  94. package/lib/commands/menu/update.js +1 -1
  95. package/lib/commands/page/generate-start.js +1 -1
  96. package/lib/commands/page/generate-status.js +1 -1
  97. package/lib/commands/page/index.js +1 -1
  98. package/lib/commands/page/pull.js +1 -1
  99. package/lib/commands/page/push.js +1 -1
  100. package/lib/commands/page/shared.js +1 -1
  101. package/lib/commands/page/standard-page-status.js +1 -1
  102. package/lib/commands/page/sync.js +1 -1
  103. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  104. package/lib/commands/project/create/format-elapsed.js +1 -1
  105. package/lib/commands/project/create/main.js +1 -1
  106. package/lib/commands/project/create/non-interactive.js +1 -1
  107. package/lib/commands/project/create/project-template-path.js +1 -1
  108. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  109. package/lib/commands/project/create/use-format-code.js +1 -1
  110. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  111. package/lib/commands/project/index.js +1 -1
  112. package/lib/commands/project/init.js +1 -1
  113. package/lib/commands/project/upgrade.js +1 -1
  114. package/lib/commands/registry.js +1 -1
  115. package/lib/commands/run/index.js +1 -1
  116. package/lib/commands/schema.js +1 -1
  117. package/lib/commands/skill/index.js +1 -1
  118. package/lib/commands/sql/create.js +1 -1
  119. package/lib/commands/sql/delete.js +1 -1
  120. package/lib/commands/sql/detail.js +1 -1
  121. package/lib/commands/sql/exec.js +1 -1
  122. package/lib/commands/sql/index.js +1 -1
  123. package/lib/commands/sql/list.js +1 -1
  124. package/lib/commands/sql/pull.js +1 -1
  125. package/lib/commands/sql/push.js +1 -1
  126. package/lib/commands/sql/save.js +1 -1
  127. package/lib/commands/sql/shared.js +1 -1
  128. package/lib/commands/sql/status.js +1 -1
  129. package/lib/commands/sql/validate.js +1 -1
  130. package/lib/config/schema.js +1 -1
  131. package/lib/constant/cdn.js +1 -1
  132. package/lib/constant/cli.js +1 -1
  133. package/lib/constant/defaults.js +1 -1
  134. package/lib/constant/domain.js +1 -1
  135. package/lib/constant/env.js +1 -1
  136. package/lib/constant/output.js +1 -1
  137. package/lib/constant/paths.js +1 -1
  138. package/lib/constant/risk.js +1 -1
  139. package/lib/context.js +1 -1
  140. package/lib/core/alias-resolver.js +1 -1
  141. package/lib/core/api-client.js +1 -1
  142. package/lib/core/bff/config.js +1 -1
  143. package/lib/core/bff/file-system.js +1 -1
  144. package/lib/core/bff/hash.js +1 -1
  145. package/lib/core/bff/lock.js +1 -1
  146. package/lib/core/bff/utils.js +1 -1
  147. package/lib/core/db-resolver.js +1 -1
  148. package/lib/core/page/file-system.js +1 -1
  149. package/lib/core/page/hash.js +1 -1
  150. package/lib/core/page/lock.js +1 -1
  151. package/lib/core/sql-sync/config.js +1 -1
  152. package/lib/core/sql-sync/file-system.js +1 -1
  153. package/lib/core/sql-sync/hash.js +1 -1
  154. package/lib/core/sql-sync/lock.js +1 -1
  155. package/lib/core/sql-sync/utils.js +1 -1
  156. package/lib/core/sql-validator.js +1 -1
  157. package/lib/errors.js +1 -1
  158. package/lib/framework/build-all-flags.js +1 -1
  159. package/lib/framework/flags.js +1 -1
  160. package/lib/framework/help.js +1 -1
  161. package/lib/framework/index.js +1 -1
  162. package/lib/framework/output.js +1 -1
  163. package/lib/framework/response.js +1 -1
  164. package/lib/framework/runner-alias.js +1 -1
  165. package/lib/framework/runner.js +1 -1
  166. package/lib/framework/schema-export.js +1 -1
  167. package/lib/framework/types.js +1 -1
  168. package/lib/generated/build-info.js +1 -1
  169. package/lib/help.js +1 -1
  170. package/lib/skills/main.js +1 -1
  171. package/lib/skills/npx-skills-add.js +1 -1
  172. package/lib/telemetry/cli-command-trace.js +1 -1
  173. package/lib/telemetry/cli-help-trace.js +1 -1
  174. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  175. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  176. package/lib/telemetry/send-cli-trace-log.js +1 -1
  177. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  178. package/lib/utils/ai_config.js +1 -1
  179. package/lib/utils/apply-jq-filter.js +1 -1
  180. package/lib/utils/cdn-config.js +1 -1
  181. package/lib/utils/check-sdk-version.js +1 -1
  182. package/lib/utils/cli-version-check.js +1 -1
  183. package/lib/utils/cli-version-policy.js +1 -1
  184. package/lib/utils/config.js +1 -1
  185. package/lib/utils/copy-directory.js +1 -1
  186. package/lib/utils/entity-with-id.js +1 -1
  187. package/lib/utils/file-utils.js +1 -1
  188. package/lib/utils/guides-cdn.js +1 -1
  189. package/lib/utils/http-client.js +1 -1
  190. package/lib/utils/is-non-interactive.js +1 -1
  191. package/lib/utils/logger.js +1 -1
  192. package/lib/utils/params.js +1 -1
  193. package/lib/utils/platform.js +1 -1
  194. package/lib/utils/rules-cdn.js +1 -1
  195. package/lib/utils/sleep.js +1 -1
  196. package/lib/utils/template-replacer.js +1 -1
  197. package/lib/utils/version.js +1 -1
  198. package/lib/utils/with-active-cookie.js +1 -1
  199. package/lib/utils/write-cli-side-channel.js +1 -1
  200. package/package.json +1 -1
@@ -1 +1 @@
1
- const a174_0x432e1a=a174_0x3c4b;(function(_0x5d0971,_0x1c1d63){const _0xd6fa1b=a174_0x3c4b,_0x3f89e0=_0x5d0971();while(!![]){try{const _0x4cd6e9=parseInt(_0xd6fa1b(0x19b))/0x1*(parseInt(_0xd6fa1b(0x195))/0x2)+-parseInt(_0xd6fa1b(0x1ab))/0x3+parseInt(_0xd6fa1b(0x199))/0x4*(-parseInt(_0xd6fa1b(0x19e))/0x5)+parseInt(_0xd6fa1b(0x1a5))/0x6+parseInt(_0xd6fa1b(0x1a4))/0x7*(-parseInt(_0xd6fa1b(0x1a7))/0x8)+parseInt(_0xd6fa1b(0x1a2))/0x9+-parseInt(_0xd6fa1b(0x1a9))/0xa*(-parseInt(_0xd6fa1b(0x1b4))/0xb);if(_0x4cd6e9===_0x1c1d63)break;else _0x3f89e0['push'](_0x3f89e0['shift']());}catch(_0x16ccf2){_0x3f89e0['push'](_0x3f89e0['shift']());}}}(a174_0xe602,0x7f615));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';function a174_0x3c4b(_0x28a13a,_0x44c2cc){_0x28a13a=_0x28a13a-0x195;const _0xe6025e=a174_0xe602();let _0x3c4bb3=_0xe6025e[_0x28a13a];return _0x3c4bb3;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a174_0x432e1a(0x1a1);export const NPX_SKILLS_SUBCOMMAND_ADD=a174_0x432e1a(0x1a3);export const NPX_SKILLS_FLAG_SKILL=a174_0x432e1a(0x19a);export const RABETBASE_SKILL_SOURCE=a174_0x432e1a(0x1a8);export const LEGACY_RABETBASE_SKILL_SOURCE=a174_0x432e1a(0x1b5);export const DEFAULT_RABETBASE_SKILL_NAME=a174_0x432e1a(0x198);export function buildNpxSkillsAddArgv(_0x88799){const _0x3fe2af=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x88799&&_0x3fe2af['push'](NPX_SKILLS_FLAG_SKILL,_0x88799),_0x3fe2af;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a174_0x432e1a(0x1a0),...buildNpxSkillsAddArgv()][a174_0x432e1a(0x1b2)]('\x20');function a174_0xe602(){const _0x4a322c=['45BkbUrZ','pipe','npx','skills','3462561UaikmB','add','387632tXRqrv','5258322Jovoae','yes','8GOMQYr','lovrabet/rabetbase','70VHzYPD','exit\x20','908664oxNAFE','toString','stderr','status','remove','inherit','skill','join','log','728332LqBIHr','lovrabet/lovrabet-skill','1782esmGSt','trim','stdout','Lovrabet','456156KtUdPQ','--skill','204CubtDQ','stdio','unknown'];a174_0xe602=function(){return _0x4a322c;};return a174_0xe602();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a174_0x432e1a(0x1b2)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2a8ed0,_0x43f547){const _0x5e8161=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44c4d9=_0x43f547?.['stdio']??_0x5e8161(0x1b0),_0x9e5dd7=resolveNpmBin(_0x5e8161(0x1a0)),_0x279605=buildNpxSkillsAddArgv(_0x43f547?.[_0x5e8161(0x1b1)]),_0x59fa57=[_0x5e8161(0x1a0),..._0x279605][_0x5e8161(0x1b2)]('\x20');console['log']('*\x20'+_0x59fa57);const _0x2f117f=spawnSync(_0x9e5dd7,_0x279605,{'cwd':_0x2a8ed0,'stdio':_0x44c4d9,'env':process.env,'shell':![]}),_0x470f9a=_0x2f117f['status'];if(_0x470f9a===0x0)return{'ok':!![],'status':0x0};let _0x2feb9a=_0x5e8161(0x1aa)+(_0x470f9a??_0x5e8161(0x19d));if(_0x44c4d9===_0x5e8161(0x19f)){const _0x454c97=_0x2f117f['stderr']?_0x2f117f['stderr'][_0x5e8161(0x1ac)]()['trim']():'',_0x416c36=_0x2f117f[_0x5e8161(0x197)]?_0x2f117f[_0x5e8161(0x197)]['toString']()[_0x5e8161(0x196)]():'';if(_0x454c97)_0x2feb9a=_0x454c97;else{if(_0x416c36)_0x2feb9a=_0x416c36;}}return{'ok':![],'status':_0x470f9a??null,'error':_0x2feb9a};}export function runNpxSkillsRemove(_0x36dcbc,_0x4be8a5,_0x46889f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2a1e58=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57f52f=_0x4be8a5?.[_0x2a1e58(0x19c)]??_0x2a1e58(0x1b0),_0x118a4c=resolveNpmBin(_0x2a1e58(0x1a0)),_0x385d84=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2a1e58(0x1af),_0x46889f,NPX_SKILLS_FLAG_SKILL,_0x4be8a5?.[_0x2a1e58(0x1b1)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x4be8a5?.[_0x2a1e58(0x1a6)]?['-y']:[]],_0x486b36=[_0x118a4c,..._0x385d84][_0x2a1e58(0x1b2)]('\x20');console[_0x2a1e58(0x1b3)]('*\x20'+_0x486b36);const _0x376d17=spawnSync(_0x118a4c,_0x385d84,{'cwd':_0x36dcbc,'stdio':_0x57f52f,'env':process.env,'shell':![]}),_0x3efa4f=_0x376d17['status'];if(_0x3efa4f===0x0)return{'ok':!![],'status':0x0};let _0xdfb2e1=_0x2a1e58(0x1aa)+(_0x3efa4f??_0x2a1e58(0x19d));if(_0x57f52f===_0x2a1e58(0x19f)){const _0x26f01d=_0x376d17['stderr']?_0x376d17[_0x2a1e58(0x1ad)][_0x2a1e58(0x1ac)]()['trim']():'',_0x29408e=_0x376d17[_0x2a1e58(0x197)]?_0x376d17['stdout']['toString']()[_0x2a1e58(0x196)]():'';if(_0x26f01d)_0xdfb2e1=_0x26f01d;else{if(_0x29408e)_0xdfb2e1=_0x29408e;}}return{'ok':![],'status':_0x3efa4f??null,'error':_0xdfb2e1};}export function runNpxSkillsAddGlobal(_0x3a6d0d,_0xf269b4,_0xc934d3){const _0x181c60=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x159dc8=_0xc934d3?.['stdio']??_0x181c60(0x1b0),_0x2238d5=resolveNpmBin(_0x181c60(0x1a0)),_0x26ae94=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xf269b4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9e45fa=[_0x181c60(0x1a0),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xf269b4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x181c60(0x1b2)]('\x20');console[_0x181c60(0x1b3)]('*\x20'+_0x9e45fa);const _0x46c981=spawnSync(_0x2238d5,_0x26ae94,{'cwd':_0x3a6d0d,'stdio':_0x159dc8,'env':process.env,'shell':![]}),_0x179467=_0x46c981[_0x181c60(0x1ae)];if(_0x179467===0x0)return{'ok':!![],'status':0x0};let _0x17a7e0=_0x181c60(0x1aa)+(_0x179467??_0x181c60(0x19d));if(_0x159dc8===_0x181c60(0x19f)){const _0x621f=_0x46c981['stderr']?_0x46c981[_0x181c60(0x1ad)][_0x181c60(0x1ac)]()[_0x181c60(0x196)]():'',_0x1bbd98=_0x46c981[_0x181c60(0x197)]?_0x46c981[_0x181c60(0x197)][_0x181c60(0x1ac)]()['trim']():'';if(_0x621f)_0x17a7e0=_0x621f;else{if(_0x1bbd98)_0x17a7e0=_0x1bbd98;}}return{'ok':![],'status':_0x179467??null,'error':_0x17a7e0};}
1
+ const a174_0x4e66be=a174_0x385b;(function(_0x3d0754,_0x4f70cd){const _0x19a46f=a174_0x385b,_0x485800=_0x3d0754();while(!![]){try{const _0x50bf26=parseInt(_0x19a46f(0x1dd))/0x1*(parseInt(_0x19a46f(0x1d3))/0x2)+-parseInt(_0x19a46f(0x1e4))/0x3*(parseInt(_0x19a46f(0x1eb))/0x4)+parseInt(_0x19a46f(0x1df))/0x5*(-parseInt(_0x19a46f(0x1ef))/0x6)+-parseInt(_0x19a46f(0x1e8))/0x7*(parseInt(_0x19a46f(0x1d6))/0x8)+parseInt(_0x19a46f(0x1e6))/0x9*(-parseInt(_0x19a46f(0x1e3))/0xa)+parseInt(_0x19a46f(0x1dc))/0xb*(parseInt(_0x19a46f(0x1e2))/0xc)+parseInt(_0x19a46f(0x1d4))/0xd*(parseInt(_0x19a46f(0x1cf))/0xe);if(_0x50bf26===_0x4f70cd)break;else _0x485800['push'](_0x485800['shift']());}catch(_0x55bb7c){_0x485800['push'](_0x485800['shift']());}}}(a174_0x7551,0xe8b60));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a174_0x4e66be(0x1ee);function a174_0x385b(_0x93e30,_0x1e6a5c){_0x93e30=_0x93e30-0x1cf;const _0x75517f=a174_0x7551();let _0x385b1e=_0x75517f[_0x93e30];return _0x385b1e;}export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a174_0x4e66be(0x1d2);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a174_0x4e66be(0x1da);export function buildNpxSkillsAddArgv(_0x544874){const _0x1dcf16=a174_0x4e66be,_0x39836d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x544874&&_0x39836d[_0x1dcf16(0x1d1)](NPX_SKILLS_FLAG_SKILL,_0x544874),_0x39836d;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a174_0x4e66be(0x1e0),...buildNpxSkillsAddArgv()][a174_0x4e66be(0x1f0)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a174_0x4e66be(0x1e0),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2bc720,_0x34b207){const _0x21b432=a174_0x4e66be;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x421e9a=_0x34b207?.['stdio']??_0x21b432(0x1d8),_0x20e1ff=resolveNpmBin(_0x21b432(0x1e0)),_0x4d61cf=buildNpxSkillsAddArgv(_0x34b207?.[_0x21b432(0x1d0)]),_0x472e2d=['npx',..._0x4d61cf][_0x21b432(0x1f0)]('\x20');console[_0x21b432(0x1d9)]('*\x20'+_0x472e2d);const _0x2da396=spawnSync(_0x20e1ff,_0x4d61cf,{'cwd':_0x2bc720,'stdio':_0x421e9a,'env':process.env,'shell':![]}),_0x39fb3e=_0x2da396[_0x21b432(0x1ea)];if(_0x39fb3e===0x0)return{'ok':!![],'status':0x0};let _0x21b97f=_0x21b432(0x1e9)+(_0x39fb3e??_0x21b432(0x1d5));if(_0x421e9a==='pipe'){const _0xa31b8e=_0x2da396[_0x21b432(0x1e7)]?_0x2da396['stderr'][_0x21b432(0x1ec)]()[_0x21b432(0x1ed)]():'',_0x50db1e=_0x2da396[_0x21b432(0x1d7)]?_0x2da396[_0x21b432(0x1d7)][_0x21b432(0x1ec)]()['trim']():'';if(_0xa31b8e)_0x21b97f=_0xa31b8e;else{if(_0x50db1e)_0x21b97f=_0x50db1e;}}return{'ok':![],'status':_0x39fb3e??null,'error':_0x21b97f};}function a174_0x7551(){const _0x1ae829=['skill','push','lovrabet/rabetbase','115186NutIzo','4652141tVBEBk','unknown','7434344QjfBuR','stdout','inherit','log','Lovrabet','yes','132woitwm','18yYGPXk','remove','850zjpzNv','npx','stdio','960312mVPcxx','10QHqgkv','919869KAnYzY','pipe','9764019siGqIA','stderr','7cMfRJl','exit\x20','status','20JqdOxv','toString','trim','skills','50574lDNtNa','join','154qLQgSR'];a174_0x7551=function(){return _0x1ae829;};return a174_0x7551();}export function runNpxSkillsRemove(_0x377435,_0x47ce1e,_0x55bdd3=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4f5c9a=a174_0x4e66be;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x538d09=_0x47ce1e?.['stdio']??_0x4f5c9a(0x1d8),_0x413cf6=resolveNpmBin(_0x4f5c9a(0x1e0)),_0x4faee7=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4f5c9a(0x1de),_0x55bdd3,NPX_SKILLS_FLAG_SKILL,_0x47ce1e?.[_0x4f5c9a(0x1d0)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x47ce1e?.[_0x4f5c9a(0x1db)]?['-y']:[]],_0x108016=[_0x413cf6,..._0x4faee7][_0x4f5c9a(0x1f0)]('\x20');console['log']('*\x20'+_0x108016);const _0x181473=spawnSync(_0x413cf6,_0x4faee7,{'cwd':_0x377435,'stdio':_0x538d09,'env':process.env,'shell':![]}),_0x1f3bd7=_0x181473[_0x4f5c9a(0x1ea)];if(_0x1f3bd7===0x0)return{'ok':!![],'status':0x0};let _0x2f0ef0=_0x4f5c9a(0x1e9)+(_0x1f3bd7??_0x4f5c9a(0x1d5));if(_0x538d09===_0x4f5c9a(0x1e5)){const _0x4d82fa=_0x181473[_0x4f5c9a(0x1e7)]?_0x181473[_0x4f5c9a(0x1e7)]['toString']()[_0x4f5c9a(0x1ed)]():'',_0x59d7f5=_0x181473[_0x4f5c9a(0x1d7)]?_0x181473[_0x4f5c9a(0x1d7)]['toString']()[_0x4f5c9a(0x1ed)]():'';if(_0x4d82fa)_0x2f0ef0=_0x4d82fa;else{if(_0x59d7f5)_0x2f0ef0=_0x59d7f5;}}return{'ok':![],'status':_0x1f3bd7??null,'error':_0x2f0ef0};}export function runNpxSkillsAddGlobal(_0x20a3de,_0x58689a,_0x297bb1){const _0x1bd4ad=a174_0x4e66be;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x36233d=_0x297bb1?.[_0x1bd4ad(0x1e1)]??_0x1bd4ad(0x1d8),_0x2882df=resolveNpmBin(_0x1bd4ad(0x1e0)),_0x2c3072=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x58689a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3ea514=[_0x1bd4ad(0x1e0),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x58689a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1bd4ad(0x1f0)]('\x20');console['log']('*\x20'+_0x3ea514);const _0xfbdecc=spawnSync(_0x2882df,_0x2c3072,{'cwd':_0x20a3de,'stdio':_0x36233d,'env':process.env,'shell':![]}),_0x2c95b5=_0xfbdecc[_0x1bd4ad(0x1ea)];if(_0x2c95b5===0x0)return{'ok':!![],'status':0x0};let _0x590dab=_0x1bd4ad(0x1e9)+(_0x2c95b5??_0x1bd4ad(0x1d5));if(_0x36233d==='pipe'){const _0x52d3ab=_0xfbdecc['stderr']?_0xfbdecc[_0x1bd4ad(0x1e7)][_0x1bd4ad(0x1ec)]()[_0x1bd4ad(0x1ed)]():'',_0x1863d2=_0xfbdecc[_0x1bd4ad(0x1d7)]?_0xfbdecc[_0x1bd4ad(0x1d7)][_0x1bd4ad(0x1ec)]()['trim']():'';if(_0x52d3ab)_0x590dab=_0x52d3ab;else{if(_0x1863d2)_0x590dab=_0x1863d2;}}return{'ok':![],'status':_0x2c95b5??null,'error':_0x590dab};}
@@ -1 +1 @@
1
- function a175_0x2650(){const _0x40c7b2=['1wnmkuw','flags','error','10517175EQuroo','4348464seJoxE','service','command','13328928XpvuKu','145767lLrwbv','some','message','entries','38338707nnisSw','10PheGDV','test','stringify','37458sACEUK','10pEEDJY','durationMs','6355237vSyNDG','60jnRFfF'];a175_0x2650=function(){return _0x40c7b2;};return a175_0x2650();}function a175_0x5ebc(_0x5997a8,_0x560d62){_0x5997a8=_0x5997a8-0x90;const _0x26504e=a175_0x2650();let _0x5ebcd9=_0x26504e[_0x5997a8];return _0x5ebcd9;}(function(_0x41b398,_0x5be073){const _0x4ae32a=a175_0x5ebc,_0x407660=_0x41b398();while(!![]){try{const _0x3b3807=parseInt(_0x4ae32a(0xa0))/0x1*(-parseInt(_0x4ae32a(0x9b))/0x2)+parseInt(_0x4ae32a(0x93))/0x3*(-parseInt(_0x4ae32a(0x9f))/0x4)+-parseInt(_0x4ae32a(0x98))/0x5*(parseInt(_0x4ae32a(0xa4))/0x6)+-parseInt(_0x4ae32a(0x9e))/0x7+parseInt(_0x4ae32a(0x92))/0x8+-parseInt(_0x4ae32a(0xa3))/0x9*(parseInt(_0x4ae32a(0x9c))/0xa)+parseInt(_0x4ae32a(0x97))/0xb;if(_0x3b3807===_0x5be073)break;else _0x407660['push'](_0x407660['shift']());}catch(_0x5ca5b5){_0x407660['push'](_0x407660['shift']());}}}(a175_0x2650,0xd656f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x1299bc){const _0x5d1f25=a175_0x5ebc;return SENSITIVE_PATTERNS[_0x5d1f25(0x94)](_0xa9ea5=>_0xa9ea5[_0x5d1f25(0x99)](_0x1299bc));}function sanitizeFlags(_0x623e61){const _0x48a570=a175_0x5ebc,_0x30d5ed={};for(const [_0x2e64bf,_0x5ad669]of Object[_0x48a570(0x96)](_0x623e61)){isSensitiveKey(_0x2e64bf)?_0x30d5ed[_0x2e64bf]=_0x5ad669!=null&&_0x5ad669!==''?'[REDACTED]':_0x5ad669:_0x30d5ed[_0x2e64bf]=_0x5ad669;}return _0x30d5ed;}export async function reportCommandTrace(_0x4adad8){const _0x1cd581=a175_0x5ebc;try{const _0x329456=sanitizeFlags(_0x4adad8[_0x1cd581(0xa1)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x4adad8[_0x1cd581(0x90)],'command.name':_0x4adad8[_0x1cd581(0x91)],'command.flags':JSON[_0x1cd581(0x9a)](_0x329456),..._0x4adad8[_0x1cd581(0x9d)]!=null?{'command.duration_ms':_0x4adad8['durationMs']}:{},..._0x4adad8[_0x1cd581(0xa2)]?{'command.error':_0x4adad8[_0x1cd581(0xa2)]instanceof Error?_0x4adad8[_0x1cd581(0xa2)][_0x1cd581(0x95)]:String(_0x4adad8[_0x1cd581(0xa2)])}:{}}});}catch{}}
1
+ function a175_0x366e(_0x384fde,_0x2aa768){_0x384fde=_0x384fde-0x1bd;const _0x2a6ce4=a175_0x2a6c();let _0x366ed0=_0x2a6ce4[_0x384fde];return _0x366ed0;}(function(_0x5c6fa1,_0x44ec3c){const _0x24ed3d=a175_0x366e,_0x572f95=_0x5c6fa1();while(!![]){try{const _0x2e9ef4=-parseInt(_0x24ed3d(0x1c8))/0x1*(-parseInt(_0x24ed3d(0x1c0))/0x2)+parseInt(_0x24ed3d(0x1c5))/0x3+-parseInt(_0x24ed3d(0x1c9))/0x4+parseInt(_0x24ed3d(0x1cc))/0x5*(parseInt(_0x24ed3d(0x1cd))/0x6)+-parseInt(_0x24ed3d(0x1bf))/0x7*(parseInt(_0x24ed3d(0x1c6))/0x8)+parseInt(_0x24ed3d(0x1cb))/0x9+-parseInt(_0x24ed3d(0x1c4))/0xa;if(_0x2e9ef4===_0x44ec3c)break;else _0x572f95['push'](_0x572f95['shift']());}catch(_0xfeab19){_0x572f95['push'](_0x572f95['shift']());}}}(a175_0x2a6c,0xe9e68));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 a175_0x2a6c(){const _0x281e82=['9903qyWfga','5158204XeybQl','entries','2724750XeIbVW','10lPjOKm','5734986cLUfhN','error','durationMs','message','706818BkSoVr','98UQyVmz','test','some','rabetbase.command','14465360XAjXxs','3892218YmnUnm','24GlNtCu','service'];a175_0x2a6c=function(){return _0x281e82;};return a175_0x2a6c();}function isSensitiveKey(_0x29f6f8){const _0x4f6ed2=a175_0x366e;return SENSITIVE_PATTERNS[_0x4f6ed2(0x1c2)](_0xe51795=>_0xe51795[_0x4f6ed2(0x1c1)](_0x29f6f8));}function sanitizeFlags(_0x9f1d90){const _0x20457b=a175_0x366e,_0x15d6aa={};for(const [_0x215cca,_0x18e4a5]of Object[_0x20457b(0x1ca)](_0x9f1d90)){isSensitiveKey(_0x215cca)?_0x15d6aa[_0x215cca]=_0x18e4a5!=null&&_0x18e4a5!==''?'[REDACTED]':_0x18e4a5:_0x15d6aa[_0x215cca]=_0x18e4a5;}return _0x15d6aa;}export async function reportCommandTrace(_0x3e6241){const _0x19973a=a175_0x366e;try{const _0x1969c6=sanitizeFlags(_0x3e6241['flags']);await sendCliTraceLog({'spanName':_0x19973a(0x1c3),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3e6241[_0x19973a(0x1c7)],'command.name':_0x3e6241['command'],'command.flags':JSON['stringify'](_0x1969c6),..._0x3e6241['durationMs']!=null?{'command.duration_ms':_0x3e6241[_0x19973a(0x1bd)]}:{},..._0x3e6241[_0x19973a(0x1ce)]?{'command.error':_0x3e6241['error']instanceof Error?_0x3e6241[_0x19973a(0x1ce)][_0x19973a(0x1be)]:String(_0x3e6241[_0x19973a(0x1ce)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a176_0x5ea8(){var _0x514d97=['79037zJivff','4REnuWI','service','143afTxXf','424TGDFIc','444086wdIMoQ','2377835JZPgMp','1VRwsqq','1342350IhZUZa','error','9148932JjziUk','1540836NTHbID','cli.help','2584660ltQWsl'];a176_0x5ea8=function(){return _0x514d97;};return a176_0x5ea8();}function a176_0x193e(_0x304205,_0x1900ee){_0x304205=_0x304205-0x170;var _0x5ea8b8=a176_0x5ea8();var _0x193e1a=_0x5ea8b8[_0x304205];return _0x193e1a;}(function(_0x4c8cce,_0x1a9589){var _0x1cb924=a176_0x193e,_0x3241ba=_0x4c8cce();while(!![]){try{var _0x41f653=parseInt(_0x1cb924(0x17d))/0x1*(parseInt(_0x1cb924(0x17b))/0x2)+-parseInt(_0x1cb924(0x170))/0x3+parseInt(_0x1cb924(0x177))/0x4*(-parseInt(_0x1cb924(0x17c))/0x5)+-parseInt(_0x1cb924(0x173))/0x6+-parseInt(_0x1cb924(0x176))/0x7*(parseInt(_0x1cb924(0x17a))/0x8)+-parseInt(_0x1cb924(0x172))/0x9+-parseInt(_0x1cb924(0x175))/0xa*(-parseInt(_0x1cb924(0x179))/0xb);if(_0x41f653===_0x1a9589)break;else _0x3241ba['push'](_0x3241ba['shift']());}catch(_0x461525){_0x3241ba['push'](_0x3241ba['shift']());}}}(a176_0x5ea8,0xc036b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x48bef2,_0x39a1f7){var _0x5689ee=a176_0x193e;try{await sendCliTraceLog({'spanName':_0x5689ee(0x174),'logData':{'rabetbase.help.kind':_0x48bef2,..._0x39a1f7?.[_0x5689ee(0x178)]&&{'rabetbase.help.service':_0x39a1f7[_0x5689ee(0x178)]}}});}catch(_0x2f1b88){console[_0x5689ee(0x171)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x2f1b88);}}
1
+ function a176_0x57f9(_0x282f4d,_0x56ee78){_0x282f4d=_0x282f4d-0x1da;var _0x2561f5=a176_0x2561();var _0x57f91a=_0x2561f5[_0x282f4d];return _0x57f91a;}function a176_0x2561(){var _0x2ad8c5=['718190XNGpiV','12HgPvOY','error','service','3405353ScsxBZ','7990aaYDGu','63yMcsCc','12MBOUXo','71560hJkIWU','927AszDlv','1048104CAulZO','179780mbZxeS','4mVuCPQ','cli.help','29674634eMIWsP'];a176_0x2561=function(){return _0x2ad8c5;};return a176_0x2561();}(function(_0x1f4968,_0x3cf217){var _0x198689=a176_0x57f9,_0x2836ec=_0x1f4968();while(!![]){try{var _0x1692a5=parseInt(_0x198689(0x1dc))/0x1+-parseInt(_0x198689(0x1e5))/0x2*(parseInt(_0x198689(0x1da))/0x3)+parseInt(_0x198689(0x1dd))/0x4*(-parseInt(_0x198689(0x1e0))/0x5)+parseInt(_0x198689(0x1e7))/0x6*(-parseInt(_0x198689(0x1e4))/0x7)+parseInt(_0x198689(0x1db))/0x8+parseInt(_0x198689(0x1e6))/0x9*(parseInt(_0x198689(0x1e8))/0xa)+parseInt(_0x198689(0x1df))/0xb*(parseInt(_0x198689(0x1e1))/0xc);if(_0x1692a5===_0x3cf217)break;else _0x2836ec['push'](_0x2836ec['shift']());}catch(_0x236d1e){_0x2836ec['push'](_0x2836ec['shift']());}}}(a176_0x2561,0xacbc8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x280710,_0x5507db){var _0x2643e9=a176_0x57f9;try{await sendCliTraceLog({'spanName':_0x2643e9(0x1de),'logData':{'rabetbase.help.kind':_0x280710,..._0x5507db?.[_0x2643e9(0x1e3)]&&{'rabetbase.help.service':_0x5507db[_0x2643e9(0x1e3)]}}});}catch(_0x140c45){console[_0x2643e9(0x1e2)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x140c45);}}
@@ -1 +1 @@
1
- (function(_0x1551a6,_0x10ae8e){const _0x1237ad=a177_0x5645,_0x1edeab=_0x1551a6();while(!![]){try{const _0x154af7=parseInt(_0x1237ad(0xab))/0x1+-parseInt(_0x1237ad(0xaf))/0x2+parseInt(_0x1237ad(0xa9))/0x3+parseInt(_0x1237ad(0xb4))/0x4+-parseInt(_0x1237ad(0xae))/0x5+-parseInt(_0x1237ad(0xb1))/0x6*(parseInt(_0x1237ad(0xac))/0x7)+parseInt(_0x1237ad(0xad))/0x8;if(_0x154af7===_0x10ae8e)break;else _0x1edeab['push'](_0x1edeab['shift']());}catch(_0x2b568c){_0x1edeab['push'](_0x1edeab['shift']());}}}(a177_0x129c,0x2a415));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a177_0x5645(_0x168311,_0x24d96a){_0x168311=_0x168311-0xa9;const _0x129c97=a177_0x129c();let _0x564577=_0x129c97[_0x168311];return _0x564577;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a177_0x129c(){const _0x524f76=['254950Nxcvko','7JPZtiJ','1157056iHbHZY','590085uVomQf','226632XbvRin','unknown','985758OxuAsJ','tenant_code','username','221784HrawXI','user','email','production','341025GwYlWD','daily'];a177_0x129c=function(){return _0x524f76;};return a177_0x129c();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1ae46a=a177_0x5645,_0x253c36=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x32c4b1=_0x253c36?.[_0x1ae46a(0xb5)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1ae46a(0xb0)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1ae46a(0xaa):_0x1ae46a(0xb7))}),setUserContext({'id':_0x32c4b1?.['id'],'username':_0x32c4b1?.[_0x1ae46a(0xb3)],'nickname':_0x32c4b1?.['nickname'],'email':_0x32c4b1?.[_0x1ae46a(0xb6)],'tenantCode':_0x32c4b1?.['tenant'][_0x1ae46a(0xb2)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x253c36;}
1
+ (function(_0x4e4568,_0x1f7a44){const _0x153178=a177_0x303a,_0x4e143f=_0x4e4568();while(!![]){try{const _0x5984c8=parseInt(_0x153178(0x151))/0x1*(-parseInt(_0x153178(0x152))/0x2)+parseInt(_0x153178(0x156))/0x3*(parseInt(_0x153178(0x148))/0x4)+parseInt(_0x153178(0x147))/0x5*(parseInt(_0x153178(0x14f))/0x6)+parseInt(_0x153178(0x14c))/0x7+-parseInt(_0x153178(0x149))/0x8*(parseInt(_0x153178(0x158))/0x9)+-parseInt(_0x153178(0x146))/0xa+parseInt(_0x153178(0x150))/0xb*(-parseInt(_0x153178(0x14b))/0xc);if(_0x5984c8===_0x1f7a44)break;else _0x4e143f['push'](_0x4e143f['shift']());}catch(_0xca0f3c){_0x4e143f['push'](_0x4e143f['shift']());}}}(a177_0x5482,0x6b2b4));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a177_0x303a(_0x5ab900,_0x330012){_0x5ab900=_0x5ab900-0x146;const _0x54821d=a177_0x5482();let _0x303adc=_0x54821d[_0x5ab900];return _0x303adc;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x108db0=a177_0x303a,_0x35f623=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xf808b3=_0x35f623?.[_0x108db0(0x14a)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x108db0(0x14d)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x108db0(0x157):'production')}),setUserContext({'id':_0xf808b3?.['id'],'username':_0xf808b3?.[_0x108db0(0x153)],'nickname':_0xf808b3?.[_0x108db0(0x155)],'email':_0xf808b3?.['email'],'tenantCode':_0xf808b3?.[_0x108db0(0x154)][_0x108db0(0x14e)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x35f623;}function a177_0x5482(){const _0x3de914=['8FOaSSy','user','36VjZPrj','4920412wQvqOB','unknown','tenant_code','6YYAgoK','1455047bEhIkR','157106YPCxvv','2GWoKtY','username','tenant','nickname','9iCLelk','daily','1143981TmEmuG','8126930MJzoCQ','3853890CYMtiW','612012VFNqKp'];a177_0x5482=function(){return _0x3de914;};return a177_0x5482();}
@@ -1 +1 @@
1
- (function(_0x132cd3,_0x649b59){const _0x21963b=a178_0x4fde,_0xc0235a=_0x132cd3();while(!![]){try{const _0x5e392d=parseInt(_0x21963b(0x122))/0x1*(-parseInt(_0x21963b(0x119))/0x2)+parseInt(_0x21963b(0x11b))/0x3*(-parseInt(_0x21963b(0x126))/0x4)+-parseInt(_0x21963b(0x11d))/0x5+parseInt(_0x21963b(0x123))/0x6*(-parseInt(_0x21963b(0x11c))/0x7)+-parseInt(_0x21963b(0x11e))/0x8*(-parseInt(_0x21963b(0x125))/0x9)+parseInt(_0x21963b(0x121))/0xa+parseInt(_0x21963b(0x124))/0xb;if(_0x5e392d===_0x649b59)break;else _0xc0235a['push'](_0xc0235a['shift']());}catch(_0x56177d){_0xc0235a['push'](_0xc0235a['shift']());}}}(a178_0x27cf,0x36f16));function a178_0x27cf(){const _0x1e91fd=['91CHVxTC','1986300RbIaWL','56REMJWd','then','once','3484650TmCoVW','147592YziscJ','31986cyfeuy','7215934PatrKg','374301YEOFbJ','4ebwfXs','exit','6FNSGRF','SIGINT','483591AcIgsz'];a178_0x27cf=function(){return _0x1e91fd;};return a178_0x27cf();}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 _0x596ee9=a178_0x4fde;process[_0x596ee9(0x120)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x1b8fe0=()=>{const _0x5d19b8=_0x596ee9;void flushOtelNodeIfUsed()[_0x5d19b8(0x11f)](()=>process[_0x5d19b8(0x127)](0x0));};process[_0x596ee9(0x120)](_0x596ee9(0x11a),_0x1b8fe0),process[_0x596ee9(0x120)]('SIGTERM',_0x1b8fe0);}function a178_0x4fde(_0x3c6c41,_0x6831cc){_0x3c6c41=_0x3c6c41-0x119;const _0x27cf95=a178_0x27cf();let _0x4fde99=_0x27cf95[_0x3c6c41];return _0x4fde99;}export async function exitWithOtelShutdown(_0x2c49ab){const _0x455f87=a178_0x4fde;await flushOtelNodeIfUsed(),process[_0x455f87(0x127)](_0x2c49ab);}
1
+ (function(_0x12396b,_0x1fad42){const _0x3cac42=a178_0x3251,_0x15e444=_0x12396b();while(!![]){try{const _0x1e6ca0=-parseInt(_0x3cac42(0x150))/0x1*(parseInt(_0x3cac42(0x14b))/0x2)+parseInt(_0x3cac42(0x14f))/0x3+-parseInt(_0x3cac42(0x148))/0x4*(-parseInt(_0x3cac42(0x147))/0x5)+-parseInt(_0x3cac42(0x14a))/0x6+-parseInt(_0x3cac42(0x145))/0x7*(-parseInt(_0x3cac42(0x144))/0x8)+-parseInt(_0x3cac42(0x149))/0x9+parseInt(_0x3cac42(0x151))/0xa*(parseInt(_0x3cac42(0x143))/0xb);if(_0x1e6ca0===_0x1fad42)break;else _0x15e444['push'](_0x15e444['shift']());}catch(_0x15ee76){_0x15e444['push'](_0x15e444['shift']());}}}(a178_0x5afc,0xc1ffa));function a178_0x3251(_0x31ba2b,_0x1e9ea1){_0x31ba2b=_0x31ba2b-0x143;const _0x5afced=a178_0x5afc();let _0x3251f6=_0x5afced[_0x31ba2b];return _0x3251f6;}import{shutdownTraces}from'@lovrabet/otel-logger';function a178_0x5afc(){const _0x495068=['441690FjfYDK','SIGINT','exit','once','739725Whawwr','3krzhqH','640dVpqtF','326722cvdgFA','608MgAhwS','7028iXlgWH','SIGTERM','635uZofhE','24740loNGwI','4398804ggWqDi','6380358SEBCpI'];a178_0x5afc=function(){return _0x495068;};return a178_0x5afc();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x422989=a178_0x3251;process[_0x422989(0x14e)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x23f8a6=()=>{const _0x53c63d=_0x422989;void flushOtelNodeIfUsed()['then'](()=>process[_0x53c63d(0x14d)](0x0));};process[_0x422989(0x14e)](_0x422989(0x14c),_0x23f8a6),process[_0x422989(0x14e)](_0x422989(0x146),_0x23f8a6);}export async function exitWithOtelShutdown(_0x198b7a){const _0x189497=a178_0x3251;await flushOtelNodeIfUsed(),process[_0x189497(0x14d)](_0x198b7a);}
@@ -1 +1 @@
1
- const a179_0x4b1fee=a179_0x20fb;(function(_0x235a35,_0x171dbe){const _0x4d9fcc=a179_0x20fb,_0xfc6ade=_0x235a35();while(!![]){try{const _0x3d2a95=parseInt(_0x4d9fcc(0x10f))/0x1*(-parseInt(_0x4d9fcc(0x116))/0x2)+parseInt(_0x4d9fcc(0x11a))/0x3*(-parseInt(_0x4d9fcc(0x118))/0x4)+-parseInt(_0x4d9fcc(0x112))/0x5+-parseInt(_0x4d9fcc(0x113))/0x6*(parseInt(_0x4d9fcc(0x11c))/0x7)+-parseInt(_0x4d9fcc(0x11b))/0x8*(-parseInt(_0x4d9fcc(0x117))/0x9)+parseInt(_0x4d9fcc(0x111))/0xa+parseInt(_0x4d9fcc(0x110))/0xb;if(_0x3d2a95===_0x171dbe)break;else _0xfc6ade['push'](_0xfc6ade['shift']());}catch(_0x4bd99d){_0xfc6ade['push'](_0xfc6ade['shift']());}}}(a179_0x6748,0x424cd));import{sendTraceLog}from'@lovrabet/otel-logger';function a179_0x20fb(_0x387eae,_0x3802c0){_0x387eae=_0x387eae-0x10d;const _0x674836=a179_0x6748();let _0x20fb28=_0x674836[_0x387eae];return _0x20fb28;}function a179_0x6748(){const _0x457279=['5710518UJtkwI','714650KnIEPn','1569575iBzfvK','312522fSQpPC','traceName','manual','64HxmZkk','90zwPhmL','26964wWmKlR','rabetbase-cli','15nkPpXg','361360xObelg','14nLMwAJ','spanName','version','9967rlaPXR'];a179_0x6748=function(){return _0x457279;};return a179_0x6748();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a179_0x4b1fee(0x119);export async function sendCliTraceLog(_0x13c2ae){const _0x29a692=a179_0x4b1fee;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x13c2ae[_0x29a692(0x114)]??DEFAULT_TRACE_NAME,'version':_0x13c2ae[_0x29a692(0x10e)]??getCliVersion(),'spanName':_0x13c2ae[_0x29a692(0x10d)],'eventType':_0x29a692(0x115),'logData':_0x13c2ae['logData'],..._0x13c2ae['traceparent']&&{'traceparent':_0x13c2ae['traceparent']}});}
1
+ (function(_0x223ec4,_0x4300ff){const _0x32d3df=a179_0x3110,_0x1e5188=_0x223ec4();while(!![]){try{const _0x10a6a8=-parseInt(_0x32d3df(0x7e))/0x1+parseInt(_0x32d3df(0x7f))/0x2*(parseInt(_0x32d3df(0x79))/0x3)+-parseInt(_0x32d3df(0x78))/0x4+parseInt(_0x32d3df(0x77))/0x5+-parseInt(_0x32d3df(0x81))/0x6+parseInt(_0x32d3df(0x76))/0x7+parseInt(_0x32d3df(0x7b))/0x8;if(_0x10a6a8===_0x4300ff)break;else _0x1e5188['push'](_0x1e5188['shift']());}catch(_0x4c742d){_0x1e5188['push'](_0x1e5188['shift']());}}}(a179_0x50ab,0x4e4f3));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a179_0x3110(_0x54dcc9,_0x480223){_0x54dcc9=_0x54dcc9-0x74;const _0x50abe9=a179_0x50ab();let _0x3110b3=_0x50abe9[_0x54dcc9];return _0x3110b3;}function a179_0x50ab(){const _0x5b87a2=['traceName','2464680PNPwdo','version','manual','238486hAiOwP','679742iVmzcf','spanName','1115406EzRLRx','traceparent','logData','724717fXqWaB','1589475HsiuJp','1296960uEyeEp','3rnJLHw'];a179_0x50ab=function(){return _0x5b87a2;};return a179_0x50ab();}const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x6d0a69){const _0x1e9c47=a179_0x3110;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x6d0a69[_0x1e9c47(0x7a)]??DEFAULT_TRACE_NAME,'version':_0x6d0a69[_0x1e9c47(0x7c)]??getCliVersion(),'spanName':_0x6d0a69[_0x1e9c47(0x80)],'eventType':_0x1e9c47(0x7d),'logData':_0x6d0a69[_0x1e9c47(0x75)],..._0x6d0a69[_0x1e9c47(0x74)]&&{'traceparent':_0x6d0a69[_0x1e9c47(0x74)]}});}
@@ -1 +1 @@
1
- const a180_0x4b7231=a180_0x3e53;(function(_0x4f1b1e,_0x122c0e){const _0x325e97=a180_0x3e53,_0x7d893c=_0x4f1b1e();while(!![]){try{const _0x3ec873=-parseInt(_0x325e97(0x1a4))/0x1*(-parseInt(_0x325e97(0x1a7))/0x2)+parseInt(_0x325e97(0x1ab))/0x3+-parseInt(_0x325e97(0x1a1))/0x4+-parseInt(_0x325e97(0x1ad))/0x5+-parseInt(_0x325e97(0x1a6))/0x6*(-parseInt(_0x325e97(0x1aa))/0x7)+-parseInt(_0x325e97(0x1ae))/0x8+-parseInt(_0x325e97(0x1af))/0x9*(-parseInt(_0x325e97(0x1a8))/0xa);if(_0x3ec873===_0x122c0e)break;else _0x7d893c['push'](_0x7d893c['shift']());}catch(_0x118f64){_0x7d893c['push'](_0x7d893c['shift']());}}}(a180_0x2541,0xca0ea));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a180_0x3e53(_0x20f1ba,_0x2c91c6){_0x20f1ba=_0x20f1ba-0x1a1;const _0x254149=a180_0x2541();let _0x3e531a=_0x254149[_0x20f1ba];return _0x3e531a;}export const PLATFORM_ISSUE_TRACE_NAME=a180_0x4b7231(0x1a2);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x32d1ee){const _0x2e5682=a180_0x4b7231;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x32d1ee[_0x2e5682(0x1ac)],'issue.description':_0x32d1ee[_0x2e5682(0x1a3)],..._0x32d1ee[_0x2e5682(0x1a5)]?{'issue.description_original_bytes':_0x32d1ee[_0x2e5682(0x1a5)][_0x2e5682(0x1a9)],'issue.description_truncated':_0x32d1ee[_0x2e5682(0x1a5)]['truncated'],'issue.description_redactions':_0x32d1ee[_0x2e5682(0x1a5)][_0x2e5682(0x1b2)],'issue.description_redaction_kinds':_0x32d1ee[_0x2e5682(0x1a5)][_0x2e5682(0x1b1)][_0x2e5682(0x1b0)](',')}:{}}});}function a180_0x2541(){const _0xd41f6e=['1261SMhLFB','sanitize','1806RIuVrn','96WBdpvO','10lTmfJm','originalBytes','27013GSiFRa','2851800zXmbLi','title','6021820PkfSWy','906432LWzOaL','1078047rSSNlw','join','redactionKinds','redactionCount','588704TZJSZM','platform-issue-log-collect','description'];a180_0x2541=function(){return _0xd41f6e;};return a180_0x2541();}
1
+ function a180_0x3718(){const _0x35dea0=['2253125GJYusT','title','23848tMqcdQ','redactionCount','1415756ONAlIc','description','5004IrWoIQ','6HIQegV','redactionKinds','2174988MHwtnW','sanitize','11844560XqjRtn','originalBytes','platform-issue-log-collect','issue.log.collect','truncated','2549CWdeGI','7507805YzAGsh','16fgsQZk'];a180_0x3718=function(){return _0x35dea0;};return a180_0x3718();}const a180_0x3631b1=a180_0x3c1b;function a180_0x3c1b(_0xd55353,_0x57a1d9){_0xd55353=_0xd55353-0x143;const _0x3718b7=a180_0x3718();let _0x3c1bbe=_0x3718b7[_0xd55353];return _0x3c1bbe;}(function(_0x2d2ce1,_0xf62d32){const _0xb34b17=a180_0x3c1b,_0x5d1d5e=_0x2d2ce1();while(!![]){try{const _0x40820d=parseInt(_0xb34b17(0x14b))/0x1*(-parseInt(_0xb34b17(0x14d))/0x2)+-parseInt(_0xb34b17(0x144))/0x3+parseInt(_0xb34b17(0x152))/0x4+parseInt(_0xb34b17(0x14c))/0x5+parseInt(_0xb34b17(0x155))/0x6*(parseInt(_0xb34b17(0x14e))/0x7)+parseInt(_0xb34b17(0x150))/0x8*(-parseInt(_0xb34b17(0x154))/0x9)+parseInt(_0xb34b17(0x146))/0xa;if(_0x40820d===_0xf62d32)break;else _0x5d1d5e['push'](_0x5d1d5e['shift']());}catch(_0x163de1){_0x5d1d5e['push'](_0x5d1d5e['shift']());}}}(a180_0x3718,0xea21f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a180_0x3631b1(0x148);export const PLATFORM_ISSUE_SPAN_NAME=a180_0x3631b1(0x149);export async function sendPlatformIssueCollectLog(_0x1adf0e){const _0x389f03=a180_0x3631b1;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1adf0e[_0x389f03(0x14f)],'issue.description':_0x1adf0e[_0x389f03(0x153)],..._0x1adf0e[_0x389f03(0x145)]?{'issue.description_original_bytes':_0x1adf0e['sanitize'][_0x389f03(0x147)],'issue.description_truncated':_0x1adf0e[_0x389f03(0x145)][_0x389f03(0x14a)],'issue.description_redactions':_0x1adf0e[_0x389f03(0x145)][_0x389f03(0x151)],'issue.description_redaction_kinds':_0x1adf0e[_0x389f03(0x145)][_0x389f03(0x143)]['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a182_0x3605e0=a182_0x2394;function a182_0x2394(_0x11dfbd,_0x1bc096){_0x11dfbd=_0x11dfbd-0xd9;const _0x1ada9a=a182_0x1ada();let _0x2394eb=_0x1ada9a[_0x11dfbd];return _0x2394eb;}(function(_0x120ca1,_0x16df05){const _0x53d031=a182_0x2394,_0xe9ccef=_0x120ca1();while(!![]){try{const _0x43e92d=-parseInt(_0x53d031(0xf9))/0x1*(-parseInt(_0x53d031(0xf7))/0x2)+-parseInt(_0x53d031(0xe2))/0x3*(-parseInt(_0x53d031(0xfb))/0x4)+-parseInt(_0x53d031(0x106))/0x5+-parseInt(_0x53d031(0xfc))/0x6*(-parseInt(_0x53d031(0x111))/0x7)+parseInt(_0x53d031(0xeb))/0x8+parseInt(_0x53d031(0x110))/0x9+-parseInt(_0x53d031(0x102))/0xa*(parseInt(_0x53d031(0x10d))/0xb);if(_0x43e92d===_0x16df05)break;else _0xe9ccef['push'](_0xe9ccef['shift']());}catch(_0x51f59f){_0xe9ccef['push'](_0xe9ccef['shift']());}}}(a182_0x1ada,0x1dc0d));export const CORE_IDE_CONFIGS={'cursor':{'name':a182_0x3605e0(0xe7),'description':a182_0x3605e0(0xee),'folders':[a182_0x3605e0(0x105),a182_0x3605e0(0xf0)],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a182_0x3605e0(0xef)}]},'windsurf':{'name':'Windsurf','description':a182_0x3605e0(0xf3),'folders':[a182_0x3605e0(0xf1)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xfd),'template':a182_0x3605e0(0xef)}]},'claude':{'name':a182_0x3605e0(0x108),'description':a182_0x3605e0(0x108),'folders':[a182_0x3605e0(0xf6)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xe1),'template':a182_0x3605e0(0xef)}]},'cline':{'name':a182_0x3605e0(0xfa),'description':'Cline\x20IDE','folders':[a182_0x3605e0(0xe8)],'files':[{'type':a182_0x3605e0(0xe3),'path':'.cline/skills/lovrabet/SKILL.md','template':a182_0x3605e0(0xef)}]},'codex':{'name':a182_0x3605e0(0x10b),'description':'Codex\x20IDE','folders':[a182_0x3605e0(0xdf)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0x101),'template':'SKILL.md.tpl'}]},'opencode':{'name':a182_0x3605e0(0x10c),'description':a182_0x3605e0(0xe0),'folders':['.opencode'],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':a182_0x3605e0(0x109),'description':'Qoder\x20IDE','folders':[a182_0x3605e0(0x10e)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xea),'template':a182_0x3605e0(0xef)},{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0x107),'template':a182_0x3605e0(0xef)}]},'codebuddy':{'name':'CodeBuddy','description':a182_0x3605e0(0xe5),'folders':[a182_0x3605e0(0xd9)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0x100),'template':a182_0x3605e0(0xef)}]},'trae':{'name':a182_0x3605e0(0xdb),'description':a182_0x3605e0(0xf8),'folders':[a182_0x3605e0(0x104)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xdd),'template':a182_0x3605e0(0xef)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a182_0x3605e0(0xe6),'description':'通用模板\x20-\x20兜底方案','folders':['.agent'],'files':[{'type':'file','path':a182_0x3605e0(0xf5),'template':a182_0x3605e0(0xef)}]},'antigravity':{'name':a182_0x3605e0(0xed),'description':a182_0x3605e0(0xec),'folders':[a182_0x3605e0(0xe4)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xf5),'template':a182_0x3605e0(0xef)}]}};function a182_0x1ada(){const _0x4c09f9=['615198gNePHV','file','.agent','CodeBuddy\x20IDE','其他\x20(通用模板)','Cursor','.cline','claude','.qoder/rules/rabetbase.md','1769368NqSDGA','Antigravity\x20IDE','Antigravity','Cursor\x20IDE','SKILL.md.tpl','.cursor','.windsurf','agent','Windsurf\x20IDE','trae','.agent/skills/lovrabet/SKILL.md','.claude','53644gFSlqS','Trae\x20IDE','2ZnYWsU','Cline','4HigAAX','53682XRZxyH','.windsurf/workflows/rabetbase.md','cline','qoder','.codebuddy/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','1580hjFjIT','antigravity','.trae','.cursorrules','282760fbRtTd','.qoder/skills/lovrabet/SKILL.md','Claude\x20Code','Qoder','cursor','Codex','OpenCode','30426bAIvbi','.qoder','opencode','817497NFHgOg','35uZOMie','.codebuddy','codebuddy','Trae','windsurf','.trae/skills/lovrabet/SKILL.md','codex','.codex','OpenCode\x20IDE','.claude/skills/lovrabet/SKILL.md'];a182_0x1ada=function(){return _0x4c09f9;};return a182_0x1ada();}export const CORE_IDE_LIST=[a182_0x3605e0(0xe9),a182_0x3605e0(0xfe),a182_0x3605e0(0xda),'codex',a182_0x3605e0(0x10a),a182_0x3605e0(0x10f),a182_0x3605e0(0xff),a182_0x3605e0(0xf4),a182_0x3605e0(0xdc)];export const IDE_LIST=[a182_0x3605e0(0x103),'claude','cline','codebuddy',a182_0x3605e0(0xde),'cursor',a182_0x3605e0(0x10f),a182_0x3605e0(0xff),'trae',a182_0x3605e0(0xdc),a182_0x3605e0(0xf2)];export const ALL_CORE_IDES=[a182_0x3605e0(0x10a),a182_0x3605e0(0xdc),a182_0x3605e0(0xe9),a182_0x3605e0(0xfe),a182_0x3605e0(0xde),'opencode',a182_0x3605e0(0xff),a182_0x3605e0(0xda),'trae'];
1
+ const a182_0x130597=a182_0x495e;(function(_0x566645,_0x3bc484){const _0xc8f20=a182_0x495e,_0x5428f3=_0x566645();while(!![]){try{const _0x16c561=parseInt(_0xc8f20(0xc2))/0x1+parseInt(_0xc8f20(0xa2))/0x2+-parseInt(_0xc8f20(0xb0))/0x3+-parseInt(_0xc8f20(0xc1))/0x4+-parseInt(_0xc8f20(0xb5))/0x5+-parseInt(_0xc8f20(0xb1))/0x6+-parseInt(_0xc8f20(0xc4))/0x7*(-parseInt(_0xc8f20(0xb8))/0x8);if(_0x16c561===_0x3bc484)break;else _0x5428f3['push'](_0x5428f3['shift']());}catch(_0x301c63){_0x5428f3['push'](_0x5428f3['shift']());}}}(a182_0x3955,0x1e6ab));export const CORE_IDE_CONFIGS={'cursor':{'name':a182_0x130597(0xae),'description':a182_0x130597(0xcd),'folders':[a182_0x130597(0xbd),'.cursor'],'files':[{'type':a182_0x130597(0xcc),'path':a182_0x130597(0xb2),'template':a182_0x130597(0xc8)}]},'windsurf':{'name':'Windsurf','description':a182_0x130597(0xcf),'folders':['.windsurf'],'files':[{'type':a182_0x130597(0xcc),'path':a182_0x130597(0xbe),'template':'SKILL.md.tpl'}]},'claude':{'name':'Claude\x20Code','description':a182_0x130597(0xc6),'folders':['.claude'],'files':[{'type':a182_0x130597(0xcc),'path':a182_0x130597(0xb6),'template':'SKILL.md.tpl'}]},'cline':{'name':a182_0x130597(0xce),'description':a182_0x130597(0xb9),'folders':[a182_0x130597(0xad)],'files':[{'type':a182_0x130597(0xcc),'path':a182_0x130597(0xa7),'template':a182_0x130597(0xc8)}]},'codex':{'name':'Codex','description':'Codex\x20IDE','folders':[a182_0x130597(0xbf)],'files':[{'type':a182_0x130597(0xcc),'path':a182_0x130597(0xb7),'template':a182_0x130597(0xc8)}]},'opencode':{'name':a182_0x130597(0xab),'description':a182_0x130597(0xa5),'folders':[a182_0x130597(0xa4)],'files':[{'type':a182_0x130597(0xcc),'path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':a182_0x130597(0xa3),'description':a182_0x130597(0xc7),'folders':['.qoder'],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':a182_0x130597(0xc8)},{'type':a182_0x130597(0xcc),'path':a182_0x130597(0xac),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a182_0x130597(0xca),'description':a182_0x130597(0xbc),'folders':['.codebuddy'],'files':[{'type':a182_0x130597(0xcc),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a182_0x130597(0xc8)}]},'trae':{'name':a182_0x130597(0xcb),'description':a182_0x130597(0xbb),'folders':['.trae'],'files':[{'type':a182_0x130597(0xcc),'path':a182_0x130597(0xa6),'template':a182_0x130597(0xc8)}]}};function a182_0x495e(_0x3c6f24,_0x512a58){_0x3c6f24=_0x3c6f24-0xa0;const _0x3955b2=a182_0x3955();let _0x495e24=_0x3955b2[_0x3c6f24];return _0x495e24;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a182_0x130597(0xd0),'folders':[a182_0x130597(0xaa)],'files':[{'type':a182_0x130597(0xcc),'path':a182_0x130597(0xc9),'template':a182_0x130597(0xc8)}]},'antigravity':{'name':'Antigravity','description':a182_0x130597(0xa9),'folders':[a182_0x130597(0xaa)],'files':[{'type':a182_0x130597(0xcc),'path':a182_0x130597(0xc9),'template':'SKILL.md.tpl'}]}};function a182_0x3955(){const _0xb9a91a=['235714Ecbajc','Qoder','.opencode','OpenCode\x20IDE','.trae/skills/lovrabet/SKILL.md','.cline/skills/lovrabet/SKILL.md','codebuddy','Antigravity\x20IDE','.agent','OpenCode','.qoder/skills/lovrabet/SKILL.md','.cline','Cursor','cursor','5256YTtIyS','1160310kViyvA','.cursor/skills/rabetbase.md','trae','cline','907320HNMLkw','.claude/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','767216GmKlDR','Cline\x20IDE','opencode','Trae\x20IDE','CodeBuddy\x20IDE','.cursorrules','.windsurf/workflows/rabetbase.md','.codex','codex','220868zDzZmy','150842iFSOLs','qoder','21asNVAB','windsurf','Claude\x20Code','Qoder\x20IDE','SKILL.md.tpl','.agent/skills/lovrabet/SKILL.md','CodeBuddy','Trae','file','Cursor\x20IDE','Cline','Windsurf\x20IDE','通用模板\x20-\x20兜底方案','antigravity','claude'];a182_0x3955=function(){return _0xb9a91a;};return a182_0x3955();}export const CORE_IDE_LIST=[a182_0x130597(0xa1),a182_0x130597(0xb4),a182_0x130597(0xa8),'codex',a182_0x130597(0xaf),a182_0x130597(0xba),a182_0x130597(0xc3),a182_0x130597(0xb3),a182_0x130597(0xc5)];export const IDE_LIST=[a182_0x130597(0xa0),a182_0x130597(0xa1),a182_0x130597(0xb4),a182_0x130597(0xa8),a182_0x130597(0xc0),a182_0x130597(0xaf),a182_0x130597(0xba),a182_0x130597(0xc3),a182_0x130597(0xb3),a182_0x130597(0xc5),'agent'];export const ALL_CORE_IDES=[a182_0x130597(0xaf),a182_0x130597(0xc5),a182_0x130597(0xa1),a182_0x130597(0xb4),a182_0x130597(0xc0),a182_0x130597(0xba),a182_0x130597(0xc3),a182_0x130597(0xa8),a182_0x130597(0xb3)];
@@ -1 +1 @@
1
- (function(_0xab5ea6,_0x23ef86){const _0x341475=a183_0x1e01,_0x4abb31=_0xab5ea6();while(!![]){try{const _0xf8754f=-parseInt(_0x341475(0x1a8))/0x1+-parseInt(_0x341475(0x1a5))/0x2+-parseInt(_0x341475(0x1ad))/0x3+-parseInt(_0x341475(0x1a6))/0x4+-parseInt(_0x341475(0x1ac))/0x5*(-parseInt(_0x341475(0x1aa))/0x6)+-parseInt(_0x341475(0x1a7))/0x7*(parseInt(_0x341475(0x1a9))/0x8)+parseInt(_0x341475(0x1ab))/0x9;if(_0xf8754f===_0x23ef86)break;else _0x4abb31['push'](_0x4abb31['shift']());}catch(_0x389a8b){_0x4abb31['push'](_0x4abb31['shift']());}}}(a183_0x3e85,0x90628));function a183_0x1e01(_0x175082,_0x8cf444){_0x175082=_0x175082-0x1a5;const _0x3e8504=a183_0x3e85();let _0x1e01df=_0x3e8504[_0x175082];return _0x1e01df;}function a183_0x3e85(){const _0x3637ae=['4221256HBQeax','2737ItIYen','413486wRBtsN','19312OPotIt','66XXRYuZ','36498015DASDNm','32535IddGuo','1307331LkbJtR','1374122aZyjVO'];a183_0x3e85=function(){return _0x3637ae;};return a183_0x3e85();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x19d58a,_0x39e3a0){const _0x21745b=a183_0x530e,_0x5b2554=_0x19d58a();while(!![]){try{const _0x232a5b=-parseInt(_0x21745b(0x86))/0x1+-parseInt(_0x21745b(0x85))/0x2+-parseInt(_0x21745b(0x8c))/0x3*(parseInt(_0x21745b(0x88))/0x4)+-parseInt(_0x21745b(0x87))/0x5+parseInt(_0x21745b(0x84))/0x6+-parseInt(_0x21745b(0x89))/0x7*(-parseInt(_0x21745b(0x8a))/0x8)+parseInt(_0x21745b(0x8b))/0x9;if(_0x232a5b===_0x39e3a0)break;else _0x5b2554['push'](_0x5b2554['shift']());}catch(_0xfc18d6){_0x5b2554['push'](_0x5b2554['shift']());}}}(a183_0x4efc,0x1b3ba));function a183_0x530e(_0x86b1e1,_0x5ef75e){_0x86b1e1=_0x86b1e1-0x84;const _0x4efc5d=a183_0x4efc();let _0x530e26=_0x4efc5d[_0x86b1e1];return _0x530e26;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a183_0x4efc(){const _0x450f90=['16zXIooR','301wAuIZp','7144hQlZWp','3824433zMXAxW','9348gdtXtM','203910NMhAXS','176348gPufKj','96649LtlLOx','942440oStODr'];a183_0x4efc=function(){return _0x450f90;};return a183_0x4efc();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x476d35,_0x1c3adc){const _0x52d4ab=a184_0x1bf1,_0x633244=_0x476d35();while(!![]){try{const _0x3c59c6=-parseInt(_0x52d4ab(0x184))/0x1*(parseInt(_0x52d4ab(0x17e))/0x2)+parseInt(_0x52d4ab(0x17b))/0x3*(-parseInt(_0x52d4ab(0x180))/0x4)+parseInt(_0x52d4ab(0x183))/0x5+-parseInt(_0x52d4ab(0x181))/0x6*(parseInt(_0x52d4ab(0x17d))/0x7)+-parseInt(_0x52d4ab(0x17f))/0x8+parseInt(_0x52d4ab(0x189))/0x9+parseInt(_0x52d4ab(0x17c))/0xa*(parseInt(_0x52d4ab(0x18a))/0xb);if(_0x3c59c6===_0x1c3adc)break;else _0x633244['push'](_0x633244['shift']());}catch(_0x2bbcb5){_0x633244['push'](_0x633244['shift']());}}}(a184_0x4a3d,0xb94d3));function a184_0x1bf1(_0x29e96d,_0x573c4b){_0x29e96d=_0x29e96d-0x17a;const _0x4a3d90=a184_0x4a3d();let _0x1bf1d9=_0x4a3d90[_0x29e96d];return _0x1bf1d9;}import{getTemplateBaseUrl}from'../utils/config.js';function a184_0x4a3d(){const _0x5a7c58=['178510wZruox','1876637tTSdfm','118GCXcAS','4263920cKrAdO','412QkNMup','12IHuVmg','stableVersion','2444770UCZcxE','16361MGGaEO','node','json','now','sdk','7146882qeIeKU','1353GpbIEQ','/config.json','/config/index.json','19959iaafEO'];a184_0x4a3d=function(){return _0x5a7c58;};return a184_0x4a3d();}export async function fetchCdnConfig(){const _0x1a6460=a184_0x1bf1,_0x5500e9=getTemplateBaseUrl(),_0x5abcfd=[_0x5500e9+_0x1a6460(0x18b),_0x5500e9+_0x1a6460(0x17a)];for(const _0x3ca064 of _0x5abcfd){try{const _0x1c94d2=await fetch(_0x3ca064,{'headers':{'Accept':'application/json'}});if(!_0x1c94d2['ok'])continue;const _0x20b817=await _0x1c94d2[_0x1a6460(0x186)]();if(!_0x20b817['cli']?.['stableVersion']||!_0x20b817[_0x1a6460(0x188)]?.[_0x1a6460(0x185)]?.[_0x1a6460(0x182)])continue;return _0x20b817;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x3d3d17=a184_0x1bf1,_0x55658f=Date[_0x3d3d17(0x187)]();if(hasCachedConfig){const _0x2d41bb=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x55658f-cacheTime<_0x2d41bb)return cachedConfig;}const _0x52ae95=await fetchCdnConfig();return cachedConfig=_0x52ae95,cacheTime=_0x55658f,hasCachedConfig=!![],_0x52ae95;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x5a8f31,_0x4dc97c){const _0x5c942e=a184_0x161a,_0x108cf2=_0x5a8f31();while(!![]){try{const _0x58d983=-parseInt(_0x5c942e(0x1b2))/0x1*(parseInt(_0x5c942e(0x1b3))/0x2)+parseInt(_0x5c942e(0x1bb))/0x3+parseInt(_0x5c942e(0x1ba))/0x4*(-parseInt(_0x5c942e(0x1b4))/0x5)+parseInt(_0x5c942e(0x1b7))/0x6*(-parseInt(_0x5c942e(0x1af))/0x7)+parseInt(_0x5c942e(0x1b9))/0x8+-parseInt(_0x5c942e(0x1b6))/0x9*(parseInt(_0x5c942e(0x1b1))/0xa)+-parseInt(_0x5c942e(0x1ae))/0xb*(-parseInt(_0x5c942e(0x1b5))/0xc);if(_0x58d983===_0x4dc97c)break;else _0x108cf2['push'](_0x108cf2['shift']());}catch(_0xde689e){_0x108cf2['push'](_0x108cf2['shift']());}}}(a184_0x371e,0xf31b1));function a184_0x161a(_0x5647de,_0x5ab00c){_0x5647de=_0x5647de-0x1ae;const _0x371e74=a184_0x371e();let _0x161acd=_0x371e74[_0x5647de];return _0x161acd;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x58bfaf=a184_0x161a,_0x5d2852=getTemplateBaseUrl(),_0x389368=[_0x5d2852+_0x58bfaf(0x1b8),_0x5d2852+_0x58bfaf(0x1bc)];for(const _0x21b31d of _0x389368){try{const _0x3f7cf2=await fetch(_0x21b31d,{'headers':{'Accept':_0x58bfaf(0x1bd)}});if(!_0x3f7cf2['ok'])continue;const _0x49ac07=await _0x3f7cf2[_0x58bfaf(0x1b0)]();if(!_0x49ac07['cli']?.['stableVersion']||!_0x49ac07['sdk']?.['node']?.['stableVersion'])continue;return _0x49ac07;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a184_0x371e(){const _0x484de6=['43GBFvEo','6810zfwkWA','9328885xGhRKP','3156792CUOopO','42732PmGRjP','16476ajmPYf','/config.json','9780816uBNNGt','4HGEVLH','3266325KKkXyL','/config/index.json','application/json','now','121iAzDNv','3507ZEXJeC','json','1730OMMnbB'];a184_0x371e=function(){return _0x484de6;};return a184_0x371e();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x3bcd93=a184_0x161a,_0x2427b9=Date[_0x3bcd93(0x1be)]();if(hasCachedConfig){const _0x6f22aa=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2427b9-cacheTime<_0x6f22aa)return cachedConfig;}const _0x508f7a=await fetchCdnConfig();return cachedConfig=_0x508f7a,cacheTime=_0x2427b9,hasCachedConfig=!![],_0x508f7a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a185_0x97c7(_0x17249b,_0x522e93){_0x17249b=_0x17249b-0x1da;const _0x34724c=a185_0x3472();let _0x97c7b2=_0x34724c[_0x17249b];return _0x97c7b2;}const a185_0x1b952e=a185_0x97c7;function a185_0x3472(){const _0x5665be=['utf8','coerce','\x1b[33m','latest','utf-8','\x20\x20\x20Stable\x20version:\x20','existsSync','8FMKyPi','4744295xPkgII','1.2.0','version','readFileSync','\x20\x20\x20Upgrade\x20command:\x20','devDependencies','6gTcpuc','node_modules','473112IZECkn','17407dvWZQM','dependencies','728zDFAao','585deAuoG','parse','package.json','6336855smZXjI','npm\x20install\x20','join','sdk','\x20\x20\x20Current\x20version:\x20','948aQngmF','packageName','log','node','test','minVersion','42188UqtLwe','@lovrabet/sdk','32989zempeR','43MiYFmE','\x1b[0m','490NyEaRt'];a185_0x3472=function(){return _0x5665be;};return a185_0x3472();}(function(_0x1478e7,_0x269406){const _0x5ac723=a185_0x97c7,_0x529ffb=_0x1478e7();while(!![]){try{const _0x33833d=-parseInt(_0x5ac723(0x1df))/0x1*(-parseInt(_0x5ac723(0x1dc))/0x2)+parseInt(_0x5ac723(0x1f6))/0x3*(-parseInt(_0x5ac723(0x1f5))/0x4)+-parseInt(_0x5ac723(0x1ea))/0x5*(-parseInt(_0x5ac723(0x1f0))/0x6)+parseInt(_0x5ac723(0x1f9))/0x7*(-parseInt(_0x5ac723(0x1e9))/0x8)+-parseInt(_0x5ac723(0x1f2))/0x9+parseInt(_0x5ac723(0x1e1))/0xa*(-parseInt(_0x5ac723(0x1de))/0xb)+parseInt(_0x5ac723(0x1fe))/0xc*(-parseInt(_0x5ac723(0x1f3))/0xd);if(_0x33833d===_0x269406)break;else _0x529ffb['push'](_0x529ffb['shift']());}catch(_0x55e7a3){_0x529ffb['push'](_0x529ffb['shift']());}}}(a185_0x3472,0x94e36));import a185_0x545397 from'node:fs';import a185_0x3230d5 from'node:path';import a185_0x4bef4f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a185_0x1b952e(0x1eb);function isNonNumericVersion(_0x2cf30c){const _0x17aef8=a185_0x1b952e,_0x4ba62b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4ba62b['some'](_0x105cd5=>_0x105cd5[_0x17aef8(0x1da)](_0x2cf30c));}function getInstalledVersion(_0x219b14,_0x744015){const _0x423a95=a185_0x1b952e;try{const _0x10ed58=a185_0x3230d5[_0x423a95(0x1fb)](_0x219b14,_0x423a95(0x1f1),_0x744015,_0x423a95(0x1f8));if(a185_0x545397['existsSync'](_0x10ed58)){const _0x5f54e9=JSON[_0x423a95(0x1f7)](a185_0x545397[_0x423a95(0x1ed)](_0x10ed58,_0x423a95(0x1e6)));return _0x5f54e9['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4040c8=a185_0x1b952e;try{const _0x297433=await getCdnConfig();return _0x297433?.['sdk']?.[_0x4040c8(0x201)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x25a786=a185_0x1b952e;try{const _0x278f2f=await getCdnConfig();return _0x278f2f?.[_0x25a786(0x1fc)]?.['node']?.['packageName']||_0x25a786(0x1dd);}catch{return _0x25a786(0x1dd);}}export async function checkSdkVersion(_0x2346ab){const _0x3ac159=a185_0x1b952e,_0x423898=a185_0x3230d5['join'](_0x2346ab,_0x3ac159(0x1f8)),[_0x2059e2,_0x358bc7]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x14f95f=_0x2059e2||FALLBACK_MIN_SDK_VERSION;if(!a185_0x545397['existsSync'](_0x423898))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};try{const _0x1d1d37=JSON[_0x3ac159(0x1f7)](a185_0x545397[_0x3ac159(0x1ed)](_0x423898,_0x3ac159(0x1e2))),_0x45f35c=_0x1d1d37[_0x3ac159(0x1f4)]||{},_0xa98fd=_0x1d1d37['devDependencies']||{},_0x2c39eb=_0x45f35c[_0x358bc7]||_0xa98fd[_0x358bc7];if(!_0x2c39eb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};let _0x18980a=getInstalledVersion(_0x2346ab,_0x358bc7);!_0x18980a&&(_0x18980a=_0x2c39eb);if(isNonNumericVersion(_0x2c39eb))return{'installed':!![],'version':_0x18980a,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};const _0x3acef7=a185_0x4bef4f[_0x3ac159(0x1e3)](_0x18980a),_0x256d54=a185_0x4bef4f[_0x3ac159(0x1e3)](_0x14f95f),_0x8d3652=_0x3acef7&&_0x256d54?a185_0x4bef4f['lt'](_0x3acef7,_0x256d54):![];return{'installed':!![],'version':_0x18980a,'needsUpgrade':_0x8d3652,'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};}}export function checkSdkVersionSync(_0x243085){const _0x22840e=a185_0x1b952e,_0x520a9f=a185_0x3230d5[_0x22840e(0x1fb)](_0x243085,_0x22840e(0x1f8)),_0x756dce='@lovrabet/sdk';if(!a185_0x545397[_0x22840e(0x1e8)](_0x520a9f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};try{const _0x4744df=JSON['parse'](a185_0x545397[_0x22840e(0x1ed)](_0x520a9f,_0x22840e(0x1e2))),_0x32daab=_0x4744df[_0x22840e(0x1f4)]||{},_0x68e4a9=_0x4744df[_0x22840e(0x1ef)]||{},_0x31c5ea=_0x32daab[_0x756dce]||_0x68e4a9[_0x756dce];if(!_0x31c5ea)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};let _0x534322=getInstalledVersion(_0x243085,_0x756dce);!_0x534322&&(_0x534322=_0x31c5ea);if(isNonNumericVersion(_0x31c5ea))return{'installed':!![],'version':_0x534322,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};const _0x2111f2=a185_0x4bef4f[_0x22840e(0x1e3)](_0x534322),_0x2924b9=_0x2111f2?a185_0x4bef4f['lt'](_0x2111f2,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x534322,'needsUpgrade':_0x2924b9,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5ef99a){const _0x4ea237=a185_0x1b952e;if(!_0x5ef99a['needsUpgrade'])return;const _0x57cd3e=_0x4ea237(0x1e4),_0x16818f=_0x4ea237(0x1e0),_0x57786a='\x1b[1m',_0x4a542b=_0x5ef99a[_0x4ea237(0x1ff)]||_0x4ea237(0x1dd),_0x181d89=_0x5ef99a['stableVersion']||_0x5ef99a[_0x4ea237(0x1db)],_0x4b4763=_0x4ea237(0x1fa)+_0x4a542b+'@'+(_0x181d89||_0x4ea237(0x1e5));console[_0x4ea237(0x200)](),console['log'](''+_0x57cd3e+_0x57786a+'↪\x20SDK\x20update\x20available'+_0x16818f),console['log'](_0x57cd3e+_0x4ea237(0x1fd)+_0x4a542b+'@'+_0x5ef99a[_0x4ea237(0x1ec)]+_0x16818f),console[_0x4ea237(0x200)](_0x57cd3e+_0x4ea237(0x1e7)+_0x181d89+_0x16818f),console['log'](_0x57cd3e+_0x4ea237(0x1ee)+_0x4b4763+_0x16818f),console[_0x4ea237(0x200)]();}
1
+ const a185_0x647585=a185_0x4487;(function(_0x317a23,_0x1d4a1f){const _0x1ba39e=a185_0x4487,_0x7a5260=_0x317a23();while(!![]){try{const _0x3c33ce=parseInt(_0x1ba39e(0x176))/0x1*(-parseInt(_0x1ba39e(0x16f))/0x2)+-parseInt(_0x1ba39e(0x15e))/0x3*(parseInt(_0x1ba39e(0x15f))/0x4)+parseInt(_0x1ba39e(0x172))/0x5*(parseInt(_0x1ba39e(0x16c))/0x6)+-parseInt(_0x1ba39e(0x156))/0x7+-parseInt(_0x1ba39e(0x15a))/0x8+-parseInt(_0x1ba39e(0x16d))/0x9*(parseInt(_0x1ba39e(0x15c))/0xa)+parseInt(_0x1ba39e(0x16a))/0xb;if(_0x3c33ce===_0x1d4a1f)break;else _0x7a5260['push'](_0x7a5260['shift']());}catch(_0x145699){_0x7a5260['push'](_0x7a5260['shift']());}}}(a185_0x2ede,0xb1c4b));import a185_0x15db4c from'node:fs';import a185_0x118200 from'node:path';import a185_0xa8364c from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a185_0x2ede(){const _0xd673a5=['2962761iKLvdR','4ieFTAc','@lovrabet/sdk','join','readFileSync','log','\x1b[0m','\x1b[1m','utf-8','sdk','1.2.0','version','63598062hAUwJi','package.json','42iUZyPl','18AFbrAM','\x20\x20\x20Stable\x20version:\x20','2430844msIhFp','dependencies','\x20\x20\x20Upgrade\x20command:\x20','70745zeVpmR','node_modules','\x1b[33m','needsUpgrade','1IYRPUg','node','devDependencies','8464393lUDxOw','packageName','utf8','stableVersion','10724560QCucol','coerce','1998840aqBeTc','minVersion'];a185_0x2ede=function(){return _0xd673a5;};return a185_0x2ede();}const FALLBACK_MIN_SDK_VERSION=a185_0x647585(0x168);function a185_0x4487(_0x394e75,_0x3963a6){_0x394e75=_0x394e75-0x156;const _0x2edebc=a185_0x2ede();let _0x44876c=_0x2edebc[_0x394e75];return _0x44876c;}function isNonNumericVersion(_0x5d118a){const _0x379c2b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x379c2b['some'](_0x28cc7e=>_0x28cc7e['test'](_0x5d118a));}function getInstalledVersion(_0x12d748,_0x500ef1){const _0x375743=a185_0x647585;try{const _0x2dba3b=a185_0x118200[_0x375743(0x161)](_0x12d748,_0x375743(0x173),_0x500ef1,_0x375743(0x16b));if(a185_0x15db4c['existsSync'](_0x2dba3b)){const _0x31997e=JSON['parse'](a185_0x15db4c[_0x375743(0x162)](_0x2dba3b,_0x375743(0x166)));return _0x31997e[_0x375743(0x169)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x13a85d=a185_0x647585;try{const _0x14000d=await getCdnConfig();return _0x14000d?.['sdk']?.[_0x13a85d(0x177)]?.[_0x13a85d(0x159)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x124a22=a185_0x647585;try{const _0x4cbb6f=await getCdnConfig();return _0x4cbb6f?.[_0x124a22(0x167)]?.[_0x124a22(0x177)]?.[_0x124a22(0x157)]||_0x124a22(0x160);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x82c675){const _0x58831f=a185_0x647585,_0x576d2d=a185_0x118200[_0x58831f(0x161)](_0x82c675,_0x58831f(0x16b)),[_0x421d62,_0x267059]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x218f5e=_0x421d62||FALLBACK_MIN_SDK_VERSION;if(!a185_0x15db4c['existsSync'](_0x576d2d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x218f5e,'packageName':_0x267059,'stableVersion':_0x421d62};try{const _0x7c8811=JSON['parse'](a185_0x15db4c[_0x58831f(0x162)](_0x576d2d,'utf8')),_0x2c7acc=_0x7c8811[_0x58831f(0x170)]||{},_0x2103ca=_0x7c8811['devDependencies']||{},_0x360d80=_0x2c7acc[_0x267059]||_0x2103ca[_0x267059];if(!_0x360d80)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x218f5e,'packageName':_0x267059,'stableVersion':_0x421d62};let _0x2eacdb=getInstalledVersion(_0x82c675,_0x267059);!_0x2eacdb&&(_0x2eacdb=_0x360d80);if(isNonNumericVersion(_0x360d80))return{'installed':!![],'version':_0x2eacdb,'needsUpgrade':![],'minVersion':_0x218f5e,'packageName':_0x267059,'stableVersion':_0x421d62};const _0x594c84=a185_0xa8364c[_0x58831f(0x15b)](_0x2eacdb),_0x26c016=a185_0xa8364c[_0x58831f(0x15b)](_0x218f5e),_0x58345e=_0x594c84&&_0x26c016?a185_0xa8364c['lt'](_0x594c84,_0x26c016):![];return{'installed':!![],'version':_0x2eacdb,'needsUpgrade':_0x58345e,'minVersion':_0x218f5e,'packageName':_0x267059,'stableVersion':_0x421d62};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x218f5e,'packageName':_0x267059,'stableVersion':_0x421d62};}}export function checkSdkVersionSync(_0x13cb41){const _0x60a012=a185_0x647585,_0x5e6df6=a185_0x118200[_0x60a012(0x161)](_0x13cb41,_0x60a012(0x16b)),_0x14ba05=_0x60a012(0x160);if(!a185_0x15db4c['existsSync'](_0x5e6df6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x14ba05,'stableVersion':null};try{const _0x4123d4=JSON['parse'](a185_0x15db4c[_0x60a012(0x162)](_0x5e6df6,_0x60a012(0x158))),_0x589764=_0x4123d4[_0x60a012(0x170)]||{},_0xeec2bc=_0x4123d4[_0x60a012(0x178)]||{},_0x2982ee=_0x589764[_0x14ba05]||_0xeec2bc[_0x14ba05];if(!_0x2982ee)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x14ba05,'stableVersion':null};let _0x12118a=getInstalledVersion(_0x13cb41,_0x14ba05);!_0x12118a&&(_0x12118a=_0x2982ee);if(isNonNumericVersion(_0x2982ee))return{'installed':!![],'version':_0x12118a,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x14ba05,'stableVersion':null};const _0x1b58f8=a185_0xa8364c[_0x60a012(0x15b)](_0x12118a),_0x2a3ab5=_0x1b58f8?a185_0xa8364c['lt'](_0x1b58f8,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x12118a,'needsUpgrade':_0x2a3ab5,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x14ba05,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x14ba05,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2a589f){const _0x57114d=a185_0x647585;if(!_0x2a589f[_0x57114d(0x175)])return;const _0x4c3308=_0x57114d(0x174),_0x56c25=_0x57114d(0x164),_0x1f1f21=_0x57114d(0x165),_0x30b5b6=_0x2a589f[_0x57114d(0x157)]||'@lovrabet/sdk',_0x4f9bc1=_0x2a589f['stableVersion']||_0x2a589f[_0x57114d(0x15d)],_0x4385a9='npm\x20install\x20'+_0x30b5b6+'@'+(_0x4f9bc1||'latest');console[_0x57114d(0x163)](),console[_0x57114d(0x163)](''+_0x4c3308+_0x1f1f21+'↪\x20SDK\x20update\x20available'+_0x56c25),console[_0x57114d(0x163)](_0x4c3308+'\x20\x20\x20Current\x20version:\x20'+_0x30b5b6+'@'+_0x2a589f['version']+_0x56c25),console[_0x57114d(0x163)](_0x4c3308+_0x57114d(0x16e)+_0x4f9bc1+_0x56c25),console['log'](_0x4c3308+_0x57114d(0x171)+_0x4385a9+_0x56c25),console[_0x57114d(0x163)]();}
@@ -1 +1 @@
1
- (function(_0x2794cb,_0x24dc4f){const _0x289155=a186_0x3676,_0x176805=_0x2794cb();while(!![]){try{const _0x2cd980=-parseInt(_0x289155(0x81))/0x1+-parseInt(_0x289155(0x95))/0x2*(parseInt(_0x289155(0x89))/0x3)+-parseInt(_0x289155(0x93))/0x4*(-parseInt(_0x289155(0x9b))/0x5)+-parseInt(_0x289155(0xa0))/0x6*(parseInt(_0x289155(0xa3))/0x7)+parseInt(_0x289155(0x85))/0x8*(-parseInt(_0x289155(0x9e))/0x9)+parseInt(_0x289155(0x94))/0xa*(parseInt(_0x289155(0x8e))/0xb)+-parseInt(_0x289155(0x9d))/0xc*(-parseInt(_0x289155(0x82))/0xd);if(_0x2cd980===_0x24dc4f)break;else _0x176805['push'](_0x176805['shift']());}catch(_0x29de4f){_0x176805['push'](_0x176805['shift']());}}}(a186_0x16eb,0x2071e));function a186_0x3676(_0x4278cb,_0xaaec2b){_0x4278cb=_0x4278cb-0x81;const _0x16ebb9=a186_0x16eb();let _0x367655=_0x16ebb9[_0x4278cb];return _0x367655;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a186_0x15fa0a from'semver';function a186_0x16eb(){const _0x31233a=['\x20\x20\x20','1.0.0','minimumVersion','93904jCOOtE','3798470GEIMAA','version','\x1b[0m','298888HlAUCe','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','Minimum\x20required:\x20','321423ymnwUz','belowMinimum','join','stableVersion','log','7491FtrIRk','\x1b[33m','utf-8','\x1b[31m','latest','473924qkBWcg','2140pdDGcr','2EuwJCr','\x20\x20\x20Upgrade\x20command:\x20','validation','needsUpgrade','currentVersion','Current\x20version:\x20','10HwyWjA','upgradeMessage','12NrMCMX','63vTzfkD','\x20\x20\x20Current\x20CLI\x20version:\x20','6JQftbQ','↪\x20Critical\x20CLI\x20upgrade\x20required','coerce','555940BoJnfT','minimumVersionMessage'];a186_0x16eb=function(){return _0x31233a;};return a186_0x16eb();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4169b1){const _0x200bca=a186_0x3676,_0x2d40a5=_0x4169b1[_0x200bca(0x8c)]||_0x200bca(0x92);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x2d40a5;}function getCurrentCliVersion(){const _0x42effa=a186_0x3676;try{const _0x46ef0e=fileURLToPath(import.meta.url),_0x42966a=resolve(dirname(_0x46ef0e),'../..'),_0x288f8f=resolve(_0x42966a,'package.json'),_0x4853ee=JSON['parse'](readFileSync(_0x288f8f,_0x42effa(0x90)));return _0x4853ee[_0x42effa(0x83)]||_0x42effa(0xa6);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x45635e=a186_0x3676,_0x2c66bb=getCurrentCliVersion(),_0x56cfdd=await getCliVersionPolicy(),_0x4f9ba4=_0x56cfdd?.[_0x45635e(0x8c)]||null,_0x4e4422=_0x56cfdd?.[_0x45635e(0xa7)]||null;let _0x1a1242=![],_0x254a3d=![];const _0x24d886=a186_0x15fa0a[_0x45635e(0xa2)](_0x2c66bb);if(_0x24d886&&_0x4f9ba4)try{const _0xa4aabf=a186_0x15fa0a[_0x45635e(0xa2)](_0x4f9ba4);if(_0xa4aabf)_0x1a1242=a186_0x15fa0a['lt'](_0x24d886,_0xa4aabf);}catch{}if(_0x24d886&&_0x4e4422)try{const _0xeabed1=a186_0x15fa0a['coerce'](_0x4e4422);if(_0xeabed1)_0x254a3d=a186_0x15fa0a['lt'](_0x24d886,_0xeabed1);}catch{}return _0x254a3d&&(_0x1a1242=!![]),{'currentVersion':_0x2c66bb,'stableVersion':_0x4f9ba4,'minimumVersion':_0x4e4422,'needsUpgrade':_0x1a1242,'belowMinimum':_0x254a3d,'isPreRelease':![],'upgradeMessage':_0x56cfdd?.[_0x45635e(0x9c)],'minimumVersionMessage':_0x56cfdd?.[_0x45635e(0xa4)]};}export function printCliUpgradeWarning(_0x15eafb){const _0x586acc=a186_0x3676;if(!_0x15eafb[_0x586acc(0x98)]&&!_0x15eafb[_0x586acc(0x8a)])return;const _0x4047a8=_0x586acc(0x91),_0x153344=_0x586acc(0x8f),_0x44e86c=_0x586acc(0x84),_0x263b2e='\x1b[1m',_0x553eed=getCliUpgradeCommand(_0x15eafb);console[_0x586acc(0x8d)](),_0x15eafb[_0x586acc(0x8a)]?(console[_0x586acc(0x8d)](''+_0x4047a8+_0x263b2e+_0x586acc(0xa1)+_0x44e86c),console['log'](_0x4047a8+_0x586acc(0x9f)+_0x15eafb[_0x586acc(0x99)]+_0x44e86c),_0x15eafb[_0x586acc(0xa7)]&&console['log'](_0x4047a8+'\x20\x20\x20Minimum\x20required:\x20'+_0x15eafb[_0x586acc(0xa7)]+_0x44e86c),_0x15eafb[_0x586acc(0x8c)]&&_0x15eafb[_0x586acc(0x8c)]!==_0x15eafb['minimumVersion']&&console[_0x586acc(0x8d)](_0x4047a8+'\x20\x20\x20Recommended\x20stable:\x20'+_0x15eafb[_0x586acc(0x8c)]+_0x44e86c),_0x15eafb['minimumVersionMessage']&&console[_0x586acc(0x8d)](_0x4047a8+_0x586acc(0xa5)+_0x15eafb[_0x586acc(0xa4)]+_0x44e86c),console[_0x586acc(0x8d)](_0x4047a8+_0x586acc(0x96)+_0x553eed+_0x44e86c)):(console['log'](''+_0x153344+_0x263b2e+'↪\x20New\x20version\x20available'+_0x44e86c),console['log'](_0x153344+_0x586acc(0x9f)+_0x15eafb[_0x586acc(0x99)]+_0x44e86c),console['log'](_0x153344+'\x20\x20\x20Stable\x20version:\x20'+_0x15eafb[_0x586acc(0x8c)]+_0x44e86c),_0x15eafb['upgradeMessage']&&console[_0x586acc(0x8d)](_0x153344+_0x586acc(0xa5)+_0x15eafb[_0x586acc(0x9c)]+_0x44e86c),console[_0x586acc(0x8d)](_0x153344+_0x586acc(0x96)+_0x553eed+_0x44e86c)),console['log']();}export function assertCliVersionSupported(_0x497dd1){const _0x1eaed6=a186_0x3676;if(!_0x497dd1[_0x1eaed6(0x8a)])return;const _0xe3b31d=[_0x497dd1['minimumVersionMessage'],_0x1eaed6(0x9a)+_0x497dd1[_0x1eaed6(0x99)],_0x497dd1[_0x1eaed6(0xa7)]?_0x1eaed6(0x88)+_0x497dd1[_0x1eaed6(0xa7)]:null,_0x1eaed6(0x86)+getCliUpgradeCommand(_0x497dd1)]['filter'](Boolean)[_0x1eaed6(0x8b)]('\x0a');throw CliErrors[_0x1eaed6(0x97)](_0x1eaed6(0x87),_0xe3b31d);}
1
+ (function(_0x19ea9b,_0x5b2a50){const _0x5e0f5f=a186_0x37f0,_0x2936fc=_0x19ea9b();while(!![]){try{const _0x1e47ed=-parseInt(_0x5e0f5f(0x1b0))/0x1+-parseInt(_0x5e0f5f(0x1b5))/0x2+parseInt(_0x5e0f5f(0x1be))/0x3+-parseInt(_0x5e0f5f(0x1b4))/0x4*(-parseInt(_0x5e0f5f(0x1ab))/0x5)+parseInt(_0x5e0f5f(0x1bb))/0x6+-parseInt(_0x5e0f5f(0x1b6))/0x7+parseInt(_0x5e0f5f(0x1bf))/0x8*(parseInt(_0x5e0f5f(0x1c0))/0x9);if(_0x1e47ed===_0x5b2a50)break;else _0x2936fc['push'](_0x2936fc['shift']());}catch(_0xcd92d0){_0x2936fc['push'](_0x2936fc['shift']());}}}(a186_0x36fb,0x9f5d5));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a186_0x388cf6 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a186_0x37f0(_0x41323c,_0x12ce18){_0x41323c=_0x41323c-0x1aa;const _0x36fbb8=a186_0x36fb();let _0x37f043=_0x36fbb8[_0x41323c];return _0x37f043;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a186_0x36fb(){const _0x5be218=['join','minimumVersion','Upgrade\x20command:\x20','↪\x20New\x20version\x20available','coerce','currentVersion','upgradeMessage','needsUpgrade','log','\x1b[1m','804165WitQyY','minimumVersionMessage','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','\x1b[31m','1228382nVBwBv','belowMinimum','package.json','latest','28EPJYwJ','2091008mJWXsK','1885170Bjrvjy','../..','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','utf-8','\x20\x20\x20Minimum\x20required:\x20','6090402jTHfjq','1.0.0','stableVersion','1888791dLZtRf','14608oXZDXe','2097GCpqZQ','\x20\x20\x20Current\x20CLI\x20version:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20'];a186_0x36fb=function(){return _0x5be218;};return a186_0x36fb();}export function getCliUpgradeCommand(_0x33268a){const _0x30c10a=a186_0x37f0,_0x4af303=_0x33268a[_0x30c10a(0x1bd)]||_0x30c10a(0x1b3);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x4af303;}function getCurrentCliVersion(){const _0x2807c3=a186_0x37f0;try{const _0x280884=fileURLToPath(import.meta.url),_0x50ec1d=resolve(dirname(_0x280884),_0x2807c3(0x1b7)),_0x242c13=resolve(_0x50ec1d,_0x2807c3(0x1b2)),_0x1f5391=JSON['parse'](readFileSync(_0x242c13,_0x2807c3(0x1b9)));return _0x1f5391['version']||'1.0.0';}catch{return _0x2807c3(0x1bc);}}export async function checkCliVersion(){const _0x500f46=a186_0x37f0,_0x10a8b8=getCurrentCliVersion(),_0x2f9a45=await getCliVersionPolicy(),_0x35b570=_0x2f9a45?.['stableVersion']||null,_0x573adb=_0x2f9a45?.[_0x500f46(0x1c5)]||null;let _0x3f72d5=![],_0x28aa6b=![];const _0x6beaae=a186_0x388cf6[_0x500f46(0x1c8)](_0x10a8b8);if(_0x6beaae&&_0x35b570)try{const _0x177151=a186_0x388cf6['coerce'](_0x35b570);if(_0x177151)_0x3f72d5=a186_0x388cf6['lt'](_0x6beaae,_0x177151);}catch{}if(_0x6beaae&&_0x573adb)try{const _0x9a4e09=a186_0x388cf6[_0x500f46(0x1c8)](_0x573adb);if(_0x9a4e09)_0x28aa6b=a186_0x388cf6['lt'](_0x6beaae,_0x9a4e09);}catch{}return _0x28aa6b&&(_0x3f72d5=!![]),{'currentVersion':_0x10a8b8,'stableVersion':_0x35b570,'minimumVersion':_0x573adb,'needsUpgrade':_0x3f72d5,'belowMinimum':_0x28aa6b,'isPreRelease':![],'upgradeMessage':_0x2f9a45?.[_0x500f46(0x1ca)],'minimumVersionMessage':_0x2f9a45?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x5cb72c){const _0x186495=a186_0x37f0;if(!_0x5cb72c[_0x186495(0x1cb)]&&!_0x5cb72c['belowMinimum'])return;const _0x52a0b4=_0x186495(0x1af),_0x56bbe7='\x1b[33m',_0x2c1e47='\x1b[0m',_0x4960a7=_0x186495(0x1aa),_0x1afd6a=getCliUpgradeCommand(_0x5cb72c);console[_0x186495(0x1cc)](),_0x5cb72c[_0x186495(0x1b1)]?(console[_0x186495(0x1cc)](''+_0x52a0b4+_0x4960a7+_0x186495(0x1c2)+_0x2c1e47),console[_0x186495(0x1cc)](_0x52a0b4+_0x186495(0x1c1)+_0x5cb72c[_0x186495(0x1c9)]+_0x2c1e47),_0x5cb72c['minimumVersion']&&console['log'](_0x52a0b4+_0x186495(0x1ba)+_0x5cb72c['minimumVersion']+_0x2c1e47),_0x5cb72c[_0x186495(0x1bd)]&&_0x5cb72c[_0x186495(0x1bd)]!==_0x5cb72c[_0x186495(0x1c5)]&&console['log'](_0x52a0b4+'\x20\x20\x20Recommended\x20stable:\x20'+_0x5cb72c[_0x186495(0x1bd)]+_0x2c1e47),_0x5cb72c[_0x186495(0x1ac)]&&console['log'](_0x52a0b4+_0x186495(0x1c3)+_0x5cb72c[_0x186495(0x1ac)]+_0x2c1e47),console[_0x186495(0x1cc)](_0x52a0b4+_0x186495(0x1ae)+_0x1afd6a+_0x2c1e47)):(console[_0x186495(0x1cc)](''+_0x56bbe7+_0x4960a7+_0x186495(0x1c7)+_0x2c1e47),console['log'](_0x56bbe7+_0x186495(0x1c1)+_0x5cb72c['currentVersion']+_0x2c1e47),console[_0x186495(0x1cc)](_0x56bbe7+_0x186495(0x1ad)+_0x5cb72c[_0x186495(0x1bd)]+_0x2c1e47),_0x5cb72c[_0x186495(0x1ca)]&&console[_0x186495(0x1cc)](_0x56bbe7+_0x186495(0x1c3)+_0x5cb72c[_0x186495(0x1ca)]+_0x2c1e47),console[_0x186495(0x1cc)](_0x56bbe7+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1afd6a+_0x2c1e47)),console[_0x186495(0x1cc)]();}export function assertCliVersionSupported(_0x50bd95){const _0x34f5c8=a186_0x37f0;if(!_0x50bd95[_0x34f5c8(0x1b1)])return;const _0x1d92ff=[_0x50bd95[_0x34f5c8(0x1ac)],'Current\x20version:\x20'+_0x50bd95[_0x34f5c8(0x1c9)],_0x50bd95[_0x34f5c8(0x1c5)]?'Minimum\x20required:\x20'+_0x50bd95['minimumVersion']:null,_0x34f5c8(0x1c6)+getCliUpgradeCommand(_0x50bd95)]['filter'](Boolean)[_0x34f5c8(0x1c4)]('\x0a');throw CliErrors['validation'](_0x34f5c8(0x1b8),_0x1d92ff);}
@@ -1 +1 @@
1
- function a187_0x351a(){const _0x4e50d4=['cli','string','2249307CgHTpP','121664QhCfRg','latestVersion','stableVersion','1772292ZOSpaf','8ozWvgO','recommendedVersion','1762677lnZbQA','36vfluRr','now','signal','60086mEmXJk','minimumVersionMessage','abort','trim','json','minVersion','application/json','345195okPITg','object','836031HRZWwC'];a187_0x351a=function(){return _0x4e50d4;};return a187_0x351a();}(function(_0x5ed9fa,_0x3fc56c){const _0x23975a=a187_0x10d7,_0x606cd1=_0x5ed9fa();while(!![]){try{const _0x5c896e=parseInt(_0x23975a(0x1e7))/0x1+-parseInt(_0x23975a(0x1f4))/0x2+parseInt(_0x23975a(0x1f0))/0x3+-parseInt(_0x23975a(0x1f7))/0x4+-parseInt(_0x23975a(0x1ee))/0x5*(-parseInt(_0x23975a(0x1e4))/0x6)+-parseInt(_0x23975a(0x1e3))/0x7+parseInt(_0x23975a(0x1f8))/0x8*(parseInt(_0x23975a(0x1f3))/0x9);if(_0x5c896e===_0x3fc56c)break;else _0x606cd1['push'](_0x606cd1['shift']());}catch(_0x48704b){_0x606cd1['push'](_0x606cd1['shift']());}}}(a187_0x351a,0x3c5a4));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x4e31c3){const _0x10ab8c=a187_0x10d7;return typeof _0x4e31c3===_0x10ab8c(0x1f2)&&_0x4e31c3['trim']()['length']>0x0?_0x4e31c3[_0x10ab8c(0x1ea)]():null;}function normalizeCliVersionPolicy(_0x4033bb){const _0x468af1=a187_0x10d7;if(!_0x4033bb||typeof _0x4033bb!==_0x468af1(0x1ef))return null;const _0x144345=_0x4033bb,_0x5ce722=_0x144345[_0x468af1(0x1f1)]&&typeof _0x144345[_0x468af1(0x1f1)]===_0x468af1(0x1ef)?_0x144345['cli']:_0x144345,_0x2f4ac3=pickString(_0x5ce722[_0x468af1(0x1f6)])||pickString(_0x5ce722[_0x468af1(0x1f5)])||pickString(_0x5ce722[_0x468af1(0x1e2)]),_0x51d349=pickString(_0x5ce722['minimumVersion'])||pickString(_0x5ce722[_0x468af1(0x1ec)]);if(!_0x2f4ac3&&!_0x51d349)return null;return{'stableVersion':_0x2f4ac3,'minimumVersion':_0x51d349,'upgradeMessage':pickString(_0x5ce722['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x5ce722[_0x468af1(0x1e8)])||undefined};}export async function fetchCliVersionPolicy(){const _0x34e7e0=a187_0x10d7,_0x181fec=new AbortController(),_0x38b82c=setTimeout(()=>_0x181fec[_0x34e7e0(0x1e9)](),FETCH_TIMEOUT_MS);try{const _0x11b0e3=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x34e7e0(0x1ed)},'signal':_0x181fec[_0x34e7e0(0x1e6)]});if(!_0x11b0e3['ok'])return null;const _0x29fcf2=await _0x11b0e3[_0x34e7e0(0x1eb)]();return normalizeCliVersionPolicy(_0x29fcf2);}catch{return null;}finally{clearTimeout(_0x38b82c);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a187_0x10d7(_0x1df145,_0x4441d3){_0x1df145=_0x1df145-0x1e2;const _0x351a76=a187_0x351a();let _0x10d75d=_0x351a76[_0x1df145];return _0x10d75d;}export async function getCliVersionPolicy(){const _0x4c985e=a187_0x10d7,_0x5cc9d0=Date[_0x4c985e(0x1e5)]();if(hasCachedPolicy){const _0x1d35f9=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5cc9d0-cacheTime<_0x1d35f9)return cachedPolicy;}const _0x173458=await fetchCliVersionPolicy();return cachedPolicy=_0x173458,cacheTime=_0x5cc9d0,hasCachedPolicy=!![],_0x173458;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x503713,_0x22bc63){const _0x50d673=a187_0x9546,_0x2b7a41=_0x503713();while(!![]){try{const _0x64b133=-parseInt(_0x50d673(0x1e2))/0x1+-parseInt(_0x50d673(0x1de))/0x2*(parseInt(_0x50d673(0x1da))/0x3)+parseInt(_0x50d673(0x1ed))/0x4*(parseInt(_0x50d673(0x1e5))/0x5)+-parseInt(_0x50d673(0x1d7))/0x6+parseInt(_0x50d673(0x1d9))/0x7+-parseInt(_0x50d673(0x1ec))/0x8*(parseInt(_0x50d673(0x1eb))/0x9)+-parseInt(_0x50d673(0x1db))/0xa*(-parseInt(_0x50d673(0x1dc))/0xb);if(_0x64b133===_0x22bc63)break;else _0x2b7a41['push'](_0x2b7a41['shift']());}catch(_0x3a9a6e){_0x2b7a41['push'](_0x2b7a41['shift']());}}}(a187_0x34c1,0x2caab));function a187_0x9546(_0x23caff,_0x48fac7){_0x23caff=_0x23caff-0x1d7;const _0x34c18e=a187_0x34c1();let _0x9546c=_0x34c18e[_0x23caff];return _0x9546c;}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x54ab88){const _0x4747d6=a187_0x9546;return typeof _0x54ab88==='string'&&_0x54ab88['trim']()[_0x4747d6(0x1e6)]>0x0?_0x54ab88[_0x4747d6(0x1e1)]():null;}function a187_0x34c1(){const _0x22750c=['10fldKfA','length','upgradeMessage','object','now','recommendedVersion','243NKXiAq','50936IHAgyP','51572RwMJKA','882138LGjxUS','cli','96586QiQkdW','3JCJHMB','136930TaojLF','605DnsVgi','minVersion','415034BxfCEx','signal','stableVersion','trim','83295pVwVpr','json','abort'];a187_0x34c1=function(){return _0x22750c;};return a187_0x34c1();}function normalizeCliVersionPolicy(_0x5b6db3){const _0x3eee72=a187_0x9546;if(!_0x5b6db3||typeof _0x5b6db3!=='object')return null;const _0x1bfb23=_0x5b6db3,_0x52ac76=_0x1bfb23['cli']&&typeof _0x1bfb23[_0x3eee72(0x1d8)]===_0x3eee72(0x1e8)?_0x1bfb23[_0x3eee72(0x1d8)]:_0x1bfb23,_0x4065a4=pickString(_0x52ac76[_0x3eee72(0x1e0)])||pickString(_0x52ac76['latestVersion'])||pickString(_0x52ac76[_0x3eee72(0x1ea)]),_0x42aa0b=pickString(_0x52ac76['minimumVersion'])||pickString(_0x52ac76[_0x3eee72(0x1dd)]);if(!_0x4065a4&&!_0x42aa0b)return null;return{'stableVersion':_0x4065a4,'minimumVersion':_0x42aa0b,'upgradeMessage':pickString(_0x52ac76[_0x3eee72(0x1e7)])||undefined,'minimumVersionMessage':pickString(_0x52ac76['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x140b7b=a187_0x9546,_0x6885c1=new AbortController(),_0x2fd6be=setTimeout(()=>_0x6885c1[_0x140b7b(0x1e4)](),FETCH_TIMEOUT_MS);try{const _0x38c9df=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x6885c1[_0x140b7b(0x1df)]});if(!_0x38c9df['ok'])return null;const _0x180e51=await _0x38c9df[_0x140b7b(0x1e3)]();return normalizeCliVersionPolicy(_0x180e51);}catch{return null;}finally{clearTimeout(_0x2fd6be);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x569176=a187_0x9546,_0xb4dbda=Date[_0x569176(0x1e9)]();if(hasCachedPolicy){const _0x6dfe3b=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xb4dbda-cacheTime<_0x6dfe3b)return cachedPolicy;}const _0x471851=await fetchCliVersionPolicy();return cachedPolicy=_0x471851,cacheTime=_0xb4dbda,hasCachedPolicy=!![],_0x471851;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a188_0x7217(){const _0x49fefd=['551710WfBMaD','3jVornc','461770XeoKmm','string','8502055iSmQsX','6vAOhmF','project','3435840wwuJSa','513nHcpQv','1142650CDoRAS','env','1894725ezsMqo','4646444zYlerQ'];a188_0x7217=function(){return _0x49fefd;};return a188_0x7217();}const a188_0x29d4e7=a188_0x4377;function a188_0x4377(_0x37d00d,_0x4a90ef){_0x37d00d=_0x37d00d-0x65;const _0x721757=a188_0x7217();let _0x43778f=_0x721757[_0x37d00d];return _0x43778f;}(function(_0x252325,_0x126fc6){const _0x69b4b1=a188_0x4377,_0x3e78dd=_0x252325();while(!![]){try{const _0x473d38=parseInt(_0x69b4b1(0x68))/0x1+parseInt(_0x69b4b1(0x6c))/0x2+-parseInt(_0x69b4b1(0x6d))/0x3*(-parseInt(_0x69b4b1(0x6b))/0x4)+parseInt(_0x69b4b1(0x70))/0x5*(parseInt(_0x69b4b1(0x71))/0x6)+-parseInt(_0x69b4b1(0x6a))/0x7+-parseInt(_0x69b4b1(0x66))/0x8+parseInt(_0x69b4b1(0x67))/0x9*(-parseInt(_0x69b4b1(0x6e))/0xa);if(_0x473d38===_0x126fc6)break;else _0x3e78dd['push'](_0x3e78dd['shift']());}catch(_0x5b768c){_0x3e78dd['push'](_0x3e78dd['shift']());}}}(a188_0x7217,0xe783b));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a188_0x23896c,getMultiAppConfigs as a188_0x55a005,getTemplateBaseUrl as a188_0x526ddb}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x21a8ae){const _0x2109fc=a188_0x4377,_0x3ae022=readRawConfig(_0x21a8ae);return _0x3ae022['env']&&typeof _0x3ae022[_0x2109fc(0x69)]===_0x2109fc(0x6f)&&initEnv(_0x3ae022['env']),_0x3ae022;}export function getConfigAppCode(){return a188_0x23896c();}export function getMultiAppConfigs(_0x2fa83b=a188_0x29d4e7(0x65)){return a188_0x55a005(_0x2fa83b);}export function getTemplateBaseUrl(){return a188_0x526ddb();}
1
+ const a188_0x487d3c=a188_0x5266;function a188_0x5266(_0x473f9c,_0x562824){_0x473f9c=_0x473f9c-0x1bd;const _0x180f92=a188_0x180f();let _0x52664d=_0x180f92[_0x473f9c];return _0x52664d;}function a188_0x180f(){const _0x3ed3aa=['7131565mARlID','3459876Bbwzhj','1993984XBonPI','51758krXQHW','env','1300416tLKYIs','3aMWXnx','32unsdYj','project','string','32927742PsOsfC','6275425xgQJHc'];a188_0x180f=function(){return _0x3ed3aa;};return a188_0x180f();}(function(_0x43eef1,_0xf1be74){const _0x245564=a188_0x5266,_0x3016e4=_0x43eef1();while(!![]){try{const _0x27b0a3=parseInt(_0x245564(0x1c0))/0x1*(parseInt(_0x245564(0x1c8))/0x2)+parseInt(_0x245564(0x1bf))/0x3*(parseInt(_0x245564(0x1c7))/0x4)+parseInt(_0x245564(0x1c4))/0x5+parseInt(_0x245564(0x1c6))/0x6+parseInt(_0x245564(0x1c5))/0x7+parseInt(_0x245564(0x1be))/0x8+-parseInt(_0x245564(0x1c3))/0x9;if(_0x27b0a3===_0xf1be74)break;else _0x3016e4['push'](_0x3016e4['shift']());}catch(_0x142a2f){_0x3016e4['push'](_0x3016e4['shift']());}}}(a188_0x180f,0xa6468));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a188_0x2be343,getMultiAppConfigs as a188_0x1fe7b1,getTemplateBaseUrl as a188_0x269c32}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x5e808e){const _0x4864ac=a188_0x5266,_0x53827c=readRawConfig(_0x5e808e);return _0x53827c[_0x4864ac(0x1bd)]&&typeof _0x53827c[_0x4864ac(0x1bd)]===_0x4864ac(0x1c2)&&initEnv(_0x53827c[_0x4864ac(0x1bd)]),_0x53827c;}export function getConfigAppCode(){return a188_0x2be343();}export function getMultiAppConfigs(_0x292de5=a188_0x487d3c(0x1c1)){return a188_0x1fe7b1(_0x292de5);}export function getTemplateBaseUrl(){return a188_0x269c32();}
@@ -1 +1 @@
1
- function a189_0x260f(){const _0x42e0ba=['96CVwAjA','复制目录时出错:','name','4199928YkGixY','9037960hAxVwm','readdirSync','2jdLgGb','9948928cCbULI','7ShlZqO','1154311WfhwGA','1659708DFbeFy','mkdirSync','407410gvNlij','63KGbLaG','join','isDirectory','1850960RXuGFY'];a189_0x260f=function(){return _0x42e0ba;};return a189_0x260f();}(function(_0x4479fd,_0x5b9a1b){const _0x2d3b9a=a189_0x33be,_0x19fae4=_0x4479fd();while(!![]){try{const _0x4b0705=-parseInt(_0x2d3b9a(0x105))/0x1*(-parseInt(_0x2d3b9a(0x113))/0x2)+parseInt(_0x2d3b9a(0x106))/0x3+parseInt(_0x2d3b9a(0x110))/0x4+-parseInt(_0x2d3b9a(0x108))/0x5*(parseInt(_0x2d3b9a(0x10d))/0x6)+-parseInt(_0x2d3b9a(0x115))/0x7*(parseInt(_0x2d3b9a(0x111))/0x8)+parseInt(_0x2d3b9a(0x109))/0x9*(parseInt(_0x2d3b9a(0x10c))/0xa)+-parseInt(_0x2d3b9a(0x114))/0xb;if(_0x4b0705===_0x5b9a1b)break;else _0x19fae4['push'](_0x19fae4['shift']());}catch(_0x159cf5){_0x19fae4['push'](_0x19fae4['shift']());}}}(a189_0x260f,0xaea20));import a189_0x15f59b from'node:path';function a189_0x33be(_0x724e1f,_0x191848){_0x724e1f=_0x724e1f-0x105;const _0x260f90=a189_0x260f();let _0x33be13=_0x260f90[_0x724e1f];return _0x33be13;}import a189_0x33d69e from'node:fs';export async function copyDirectory(_0x130de5,_0x46befd){const _0x344dc3=a189_0x33be;try{const _0x13bb07=a189_0x33d69e[_0x344dc3(0x112)](_0x130de5,{'withFileTypes':!![]});a189_0x33d69e[_0x344dc3(0x107)](_0x46befd,{'recursive':!![]});for(const _0x2602ef of _0x13bb07){const _0x3d20cb=a189_0x15f59b[_0x344dc3(0x10a)](_0x130de5,_0x2602ef['name']),_0xce9bab=a189_0x15f59b[_0x344dc3(0x10a)](_0x46befd,_0x2602ef[_0x344dc3(0x10f)]);_0x2602ef[_0x344dc3(0x10b)]()?await copyDirectory(_0x3d20cb,_0xce9bab):a189_0x33d69e['copyFileSync'](_0x3d20cb,_0xce9bab);}}catch(_0x240dfe){console['error'](_0x344dc3(0x10e),_0x240dfe);}}
1
+ (function(_0x1709e0,_0x22b010){const _0x256784=a189_0x2635,_0xb040ac=_0x1709e0();while(!![]){try{const _0xb03646=parseInt(_0x256784(0xb8))/0x1*(-parseInt(_0x256784(0xbd))/0x2)+-parseInt(_0x256784(0xc3))/0x3+parseInt(_0x256784(0xb9))/0x4*(-parseInt(_0x256784(0xc4))/0x5)+parseInt(_0x256784(0xc0))/0x6*(parseInt(_0x256784(0xb5))/0x7)+parseInt(_0x256784(0xbe))/0x8+-parseInt(_0x256784(0xbb))/0x9+-parseInt(_0x256784(0xbf))/0xa*(-parseInt(_0x256784(0xba))/0xb);if(_0xb03646===_0x22b010)break;else _0xb040ac['push'](_0xb040ac['shift']());}catch(_0x363884){_0xb040ac['push'](_0xb040ac['shift']());}}}(a189_0x2920,0x2c8c5));function a189_0x2920(){const _0x49cfd2=['683318qwokBP','2014752uRJZly','2810SgTvHj','6WLbdAL','isDirectory','name','251979VilZOf','96510JJAnUu','mkdirSync','复制目录时出错:','679574XGxkQA','copyFileSync','error','1VFszDl','4mpgCOi','21802aVgbld','2506005BrvVHN','join'];a189_0x2920=function(){return _0x49cfd2;};return a189_0x2920();}import a189_0x1c261b from'node:path';function a189_0x2635(_0x1d954c,_0x44a7da){_0x1d954c=_0x1d954c-0xb5;const _0x29209c=a189_0x2920();let _0x2635a3=_0x29209c[_0x1d954c];return _0x2635a3;}import a189_0x4d33d4 from'node:fs';export async function copyDirectory(_0x5a620c,_0x15b25e){const _0x33e2de=a189_0x2635;try{const _0x501d62=a189_0x4d33d4['readdirSync'](_0x5a620c,{'withFileTypes':!![]});a189_0x4d33d4[_0x33e2de(0xc5)](_0x15b25e,{'recursive':!![]});for(const _0x27c1f7 of _0x501d62){const _0x48b09d=a189_0x1c261b[_0x33e2de(0xbc)](_0x5a620c,_0x27c1f7['name']),_0x5727f9=a189_0x1c261b[_0x33e2de(0xbc)](_0x15b25e,_0x27c1f7[_0x33e2de(0xc2)]);_0x27c1f7[_0x33e2de(0xc1)]()?await copyDirectory(_0x48b09d,_0x5727f9):a189_0x4d33d4[_0x33e2de(0xb6)](_0x48b09d,_0x5727f9);}}catch(_0x2f3ddc){console[_0x33e2de(0xb7)](_0x33e2de(0xc6),_0x2f3ddc);}}
@@ -1 +1 @@
1
- (function(_0x26cdf8,_0x2d46fe){const _0x3b2de5=a190_0x1164,_0x4613bb=_0x26cdf8();while(!![]){try{const _0x2cc996=parseInt(_0x3b2de5(0x179))/0x1*(parseInt(_0x3b2de5(0x178))/0x2)+parseInt(_0x3b2de5(0x176))/0x3+-parseInt(_0x3b2de5(0x174))/0x4+parseInt(_0x3b2de5(0x17b))/0x5+parseInt(_0x3b2de5(0x17c))/0x6+-parseInt(_0x3b2de5(0x175))/0x7*(parseInt(_0x3b2de5(0x171))/0x8)+parseInt(_0x3b2de5(0x17e))/0x9;if(_0x2cc996===_0x2d46fe)break;else _0x4613bb['push'](_0x4613bb['shift']());}catch(_0x1b4ec0){_0x4613bb['push'](_0x4613bb['shift']());}}}(a190_0x21bb,0xcf263));function toFiniteNumber(_0x18887c){const _0xea5f89=a190_0x1164;if(typeof _0x18887c===_0xea5f89(0x17a)&&Number[_0xea5f89(0x177)](_0x18887c))return _0x18887c;if(typeof _0x18887c===_0xea5f89(0x17d)){const _0x96dd8f=_0x18887c[_0xea5f89(0x173)]();if(!_0x96dd8f)return undefined;const _0x1b6782=Number(_0x96dd8f);if(Number[_0xea5f89(0x177)](_0x1b6782))return _0x1b6782;}return undefined;}function a190_0x1164(_0x425324,_0x26db5b){_0x425324=_0x425324-0x171;const _0x21bbe8=a190_0x21bb();let _0x11644e=_0x21bbe8[_0x425324];return _0x11644e;}export function normalizeEntityWithIdResponse(_0x3598e3){const _0x18f8f2=a190_0x1164,_0xf6202d=toFiniteNumber(_0x3598e3);if(_0xf6202d!==undefined)return{'id':_0xf6202d,'entity':{'id':_0xf6202d}};if(!_0x3598e3||typeof _0x3598e3!==_0x18f8f2(0x172))return{'id':undefined,'entity':{}};const _0xf597f9={..._0x3598e3},_0x4e448b=toFiniteNumber(_0xf597f9['id']);return _0x4e448b!==undefined&&(_0xf597f9['id']=_0x4e448b),{'id':_0x4e448b,'entity':_0xf597f9};}function a190_0x21bb(){const _0x4f87c8=['number','2771940BLVOTd','4165194WNZZNE','string','3932667rAglle','4218520fGmvHE','object','trim','6239568aYwFLL','7DgGBhD','2803002kunynv','isFinite','2348ReCRXS','269WIWkhH'];a190_0x21bb=function(){return _0x4f87c8;};return a190_0x21bb();}
1
+ function a190_0x58c0(_0x177ae9,_0x12c4be){_0x177ae9=_0x177ae9-0x96;const _0x46f12b=a190_0x46f1();let _0x58c0ff=_0x46f12b[_0x177ae9];return _0x58c0ff;}(function(_0x33d495,_0x5f0433){const _0x2f491e=a190_0x58c0,_0x3c82ef=_0x33d495();while(!![]){try{const _0x28fa40=parseInt(_0x2f491e(0x97))/0x1+parseInt(_0x2f491e(0x9b))/0x2+-parseInt(_0x2f491e(0x99))/0x3+-parseInt(_0x2f491e(0x96))/0x4*(-parseInt(_0x2f491e(0x9e))/0x5)+parseInt(_0x2f491e(0x9d))/0x6+parseInt(_0x2f491e(0x98))/0x7*(parseInt(_0x2f491e(0x9f))/0x8)+-parseInt(_0x2f491e(0xa1))/0x9;if(_0x28fa40===_0x5f0433)break;else _0x3c82ef['push'](_0x3c82ef['shift']());}catch(_0x2c6012){_0x3c82ef['push'](_0x3c82ef['shift']());}}}(a190_0x46f1,0xaf535));function toFiniteNumber(_0x4d4d27){const _0x1169ad=a190_0x58c0;if(typeof _0x4d4d27===_0x1169ad(0x9a)&&Number[_0x1169ad(0xa0)](_0x4d4d27))return _0x4d4d27;if(typeof _0x4d4d27==='string'){const _0x4097ed=_0x4d4d27[_0x1169ad(0x9c)]();if(!_0x4097ed)return undefined;const _0x361a42=Number(_0x4097ed);if(Number['isFinite'](_0x361a42))return _0x361a42;}return undefined;}export function normalizeEntityWithIdResponse(_0x2281b1){const _0x50ccca=a190_0x58c0,_0x3f2860=toFiniteNumber(_0x2281b1);if(_0x3f2860!==undefined)return{'id':_0x3f2860,'entity':{'id':_0x3f2860}};if(!_0x2281b1||typeof _0x2281b1!==_0x50ccca(0xa2))return{'id':undefined,'entity':{}};const _0x47720d={..._0x2281b1},_0x5cea6d=toFiniteNumber(_0x47720d['id']);return _0x5cea6d!==undefined&&(_0x47720d['id']=_0x5cea6d),{'id':_0x5cea6d,'entity':_0x47720d};}function a190_0x46f1(){const _0xec954a=['5574185JSiPCx','8WkybXP','isFinite','28937538jzbwSM','object','4ykUYDq','1326203opmQsx','1637587zqbPsj','1018119cYqaPH','number','721254zHibAt','trim','7423080DyUsii'];a190_0x46f1=function(){return _0xec954a;};return a190_0x46f1();}
@@ -1 +1 @@
1
- (function(_0x1c285c,_0x4a34d6){const _0x184e56=a191_0x44ad,_0x67b371=_0x1c285c();while(!![]){try{const _0x3c7042=parseInt(_0x184e56(0x1b3))/0x1+-parseInt(_0x184e56(0x1b2))/0x2+-parseInt(_0x184e56(0x1b8))/0x3+parseInt(_0x184e56(0x1b7))/0x4+-parseInt(_0x184e56(0x1b5))/0x5+parseInt(_0x184e56(0x1b6))/0x6+parseInt(_0x184e56(0x1b9))/0x7;if(_0x3c7042===_0x4a34d6)break;else _0x67b371['push'](_0x67b371['shift']());}catch(_0x3194b5){_0x67b371['push'](_0x67b371['shift']());}}}(a191_0x924d,0x30754));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x64ac95,_0x1a8148){const _0x182bc1=a191_0x44ad,_0x343dd3=statSync(_0x64ac95);if(_0x343dd3[_0x182bc1(0x1b4)]()){!existsSync(_0x1a8148)&&mkdirSync(_0x1a8148,{'recursive':!![]});const _0x3a7a70=readdirSync(_0x64ac95);for(const _0x4f7601 of _0x3a7a70){await copyDir(join(_0x64ac95,_0x4f7601),join(_0x1a8148,_0x4f7601));}}else copyFileSync(_0x64ac95,_0x1a8148);}function a191_0x924d(){const _0x360191=['22143WEEEUi','isDirectory','297465CnNETd','871656WtXfBI','1492040yfsvWS','1034331xAxmBC','1971928JNiVLb','438758scgnAG'];a191_0x924d=function(){return _0x360191;};return a191_0x924d();}function a191_0x44ad(_0x5b2701,_0x223445){_0x5b2701=_0x5b2701-0x1b2;const _0x924d05=a191_0x924d();let _0x44ad72=_0x924d05[_0x5b2701];return _0x44ad72;}export function ensureDir(_0x2eb746){!existsSync(_0x2eb746)&&mkdirSync(_0x2eb746,{'recursive':!![]});}export function pathExists(_0x4203b3){return existsSync(_0x4203b3);}
1
+ function a191_0x5997(){const _0x56cb98=['194080yfGwAF','1321896wYskNU','546vPJQTY','1480089QPxgsx','1974nTUvcV','4872GKWfio','525687MCNDyO','4CxDSjy','isDirectory','252fSYWlQ','33125yoDZEq','25223lloZUY','490DQphtk','16576daPLif','8dgMiWV'];a191_0x5997=function(){return _0x56cb98;};return a191_0x5997();}(function(_0x58ad30,_0x238ebe){const _0xb3ede1=a191_0x2f99,_0x429e95=_0x58ad30();while(!![]){try{const _0x2327f6=-parseInt(_0xb3ede1(0x14a))/0x1*(parseInt(_0xb3ede1(0x14b))/0x2)+parseInt(_0xb3ede1(0x145))/0x3*(-parseInt(_0xb3ede1(0x152))/0x4)+parseInt(_0xb3ede1(0x14e))/0x5*(parseInt(_0xb3ede1(0x146))/0x6)+-parseInt(_0xb3ede1(0x148))/0x7*(parseInt(_0xb3ede1(0x151))/0x8)+-parseInt(_0xb3ede1(0x14d))/0x9*(parseInt(_0xb3ede1(0x144))/0xa)+-parseInt(_0xb3ede1(0x14f))/0xb*(parseInt(_0xb3ede1(0x149))/0xc)+parseInt(_0xb3ede1(0x147))/0xd*(parseInt(_0xb3ede1(0x150))/0xe);if(_0x2327f6===_0x238ebe)break;else _0x429e95['push'](_0x429e95['shift']());}catch(_0x5d2ad4){_0x429e95['push'](_0x429e95['shift']());}}}(a191_0x5997,0x919b6));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a191_0x2f99(_0x52ac7f,_0x445bef){_0x52ac7f=_0x52ac7f-0x144;const _0x599784=a191_0x5997();let _0x2f99ad=_0x599784[_0x52ac7f];return _0x2f99ad;}export async function copyDir(_0x3bddb6,_0x539e1b){const _0x114b98=a191_0x2f99,_0x2f91ac=statSync(_0x3bddb6);if(_0x2f91ac[_0x114b98(0x14c)]()){!existsSync(_0x539e1b)&&mkdirSync(_0x539e1b,{'recursive':!![]});const _0x1a502c=readdirSync(_0x3bddb6);for(const _0x38c9cd of _0x1a502c){await copyDir(join(_0x3bddb6,_0x38c9cd),join(_0x539e1b,_0x38c9cd));}}else copyFileSync(_0x3bddb6,_0x539e1b);}export function ensureDir(_0x93ff00){!existsSync(_0x93ff00)&&mkdirSync(_0x93ff00,{'recursive':!![]});}export function pathExists(_0xd33a92){return existsSync(_0xd33a92);}
@@ -1 +1 @@
1
- const a192_0x57cae2=a192_0xe81d;(function(_0x55782f,_0x28b66e){const _0x24eb86=a192_0xe81d,_0x4319ed=_0x55782f();while(!![]){try{const _0xac4e2e=parseInt(_0x24eb86(0xc6))/0x1+-parseInt(_0x24eb86(0xb9))/0x2+-parseInt(_0x24eb86(0xaa))/0x3*(-parseInt(_0x24eb86(0xaf))/0x4)+parseInt(_0x24eb86(0xac))/0x5+parseInt(_0x24eb86(0xae))/0x6+parseInt(_0x24eb86(0xb5))/0x7*(parseInt(_0x24eb86(0xa7))/0x8)+parseInt(_0x24eb86(0xbd))/0x9*(-parseInt(_0x24eb86(0xc2))/0xa);if(_0xac4e2e===_0x28b66e)break;else _0x4319ed['push'](_0x4319ed['shift']());}catch(_0x58cb17){_0x4319ed['push'](_0x4319ed['shift']());}}}(a192_0x236b,0xba6ec));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5242f3=a192_0xe81d,_0x36f659=getTemplateBaseUrl();return _0x36f659+_0x5242f3(0xa4);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');function a192_0x236b(){const _0x12da78=['replace','statusText','utf-8','\x0a\x0a>更新时间:','entries','7LmkxqF','status','length','application/json','826102UaXPve','keys','title','extendContent','80037DRsJHm','path','trimEnd','json','.lovrabet/skill/guides','2010VMURIv','CDN\x20数据中缺少\x20skillTemplate','CDN\x20请求失败:\x20','lastUpdated','1219830mXFySj','/skills/guides.json','skillTemplate','push','1953712qstHGS','guides','CDN\x20返回数据格式错误','147567SkVOny','object','876060WyIDEE','.md','1751682lvGdJk','84isdBBt'];a192_0x236b=function(){return _0x12da78;};return a192_0x236b();}function a192_0xe81d(_0x268255,_0x1cc342){_0x268255=_0x268255-0xa4;const _0x236b27=a192_0x236b();let _0xe81daf=_0x236b27[_0x268255];return _0xe81daf;}export async function fetchGuidesFromCDN(){const _0x18574e=a192_0xe81d,_0x427b9c=getGuidesCdnUrl(),_0x36c823=await fetch(_0x427b9c,{'headers':{'Accept':_0x18574e(0xb8)}});if(!_0x36c823['ok'])throw new Error(_0x18574e(0xc4)+_0x36c823[_0x18574e(0xb6)]+'\x20'+_0x36c823[_0x18574e(0xb1)]);const _0x5566a8=await _0x36c823[_0x18574e(0xc0)]();if(!_0x5566a8['guides']||typeof _0x5566a8[_0x18574e(0xa8)]!==_0x18574e(0xab))throw new Error(_0x18574e(0xa9));return _0x5566a8;}export function writeGuidesToProject(_0x53687d,_0x103de1,_0x151d5e=a192_0x57cae2(0xc1),_0x18f8cf){const _0xf06482=a192_0x57cae2,_0x175923=join(_0x103de1,_0x151d5e);mkdirSync(_0x175923,{'recursive':!![]});for(const [_0x1cc64a,_0x390813]of Object[_0xf06482(0xb4)](_0x53687d[_0xf06482(0xa8)])){let _0x24453e=_0x390813['content'];_0x390813[_0xf06482(0xc5)]&&(_0x24453e=appendUpdateTime(_0x24453e,_0x390813[_0xf06482(0xc5)])),writeFileSync(join(_0x175923,_0x1cc64a+_0xf06482(0xad)),_0x24453e,_0xf06482(0xb2));}}export function appendUpdateTime(_0x273d99,_0x2427f0){const _0x481278=a192_0x57cae2;return _0x273d99=_0x273d99[_0x481278(0xb0)](/\n*>更新时间:.*$/m,''),_0x273d99[_0x481278(0xbf)]()+(_0x481278(0xb3)+_0x2427f0);}export function getSkillTemplate(_0xf195bb){const _0xe9c01=a192_0x57cae2;return _0xf195bb[_0xe9c01(0xa5)]?.['content']||'';}export function appendExtendContents(_0x4227b4,_0x424bb0,_0x35f968){const _0xba0863=a192_0x57cae2,_0x3d3fc9=[];for(const [,_0xf2ad9f]of Object[_0xba0863(0xb4)](_0x424bb0['guides'])){_0xf2ad9f[_0xba0863(0xbc)]&&_0x3d3fc9[_0xba0863(0xa6)](_0xf2ad9f[_0xba0863(0xbc)][_0xba0863(0xbf)]());}if(_0x3d3fc9[_0xba0863(0xb7)]===0x0)return _0x4227b4;return _0x4227b4[_0xba0863(0xbf)]()+'\x0a\x0a'+_0x3d3fc9['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x49bfed,_0x28e345,_0x18a623){const _0x4d6d0c=a192_0x57cae2,_0x50c0f8=getSkillTemplate(_0x49bfed);if(!_0x50c0f8)throw new Error(_0x4d6d0c(0xc3));const _0x36ac61=dirname(_0x28e345);mkdirSync(_0x36ac61,{'recursive':!![]});let _0x47d0a5=_0x50c0f8[_0x4d6d0c(0xb0)](/\{\{IDE_NAME\}\}/g,_0x18a623);_0x47d0a5=appendExtendContents(_0x47d0a5,_0x49bfed),_0x49bfed[_0x4d6d0c(0xa5)]['lastUpdated']&&(_0x47d0a5=appendUpdateTime(_0x47d0a5,_0x49bfed[_0x4d6d0c(0xa5)][_0x4d6d0c(0xc5)])),writeFileSync(_0x28e345,_0x47d0a5,_0x4d6d0c(0xb2));}export async function installGuides(_0x4234f2){const _0x547205=a192_0x57cae2,_0x417663=await fetchGuidesFromCDN();return writeGuidesToProject(_0x417663,_0x4234f2),Object[_0x547205(0xba)](_0x417663[_0x547205(0xa8)])[_0x547205(0xb7)];}export function getGuidesSummary(_0x31d2cb){const _0x226163=a192_0x57cae2;return Object['entries'](_0x31d2cb[_0x226163(0xa8)])['map'](([_0x1e02b3,_0x241abf])=>({'key':_0x1e02b3,'title':_0x241abf[_0x226163(0xbb)],'path':_0x241abf[_0x226163(0xbe)]}));}
1
+ function a192_0x5dc9(){const _0x2888ff=['json','4550992kLuxvX','title','replace','application/json','content','10956ujTRte','join','147UHIvGp','utf-8','keys','CDN\x20返回数据格式错误','\x0a\x0a>更新时间:','.md','CDN\x20请求失败:\x20','.lovrabet/skill/guides','path','.lovrabet','statusText','lastUpdated','entries','extendContent','cache','360UTnjbj','20136WaFDFp','269487cGsJmC','1390LNVJGR','guides','skillTemplate','map','push','360708JdljfA','17742300ukFBLH','trimEnd','3049508pCznwh','status'];a192_0x5dc9=function(){return _0x2888ff;};return a192_0x5dc9();}const a192_0x2ce4c7=a192_0x5d95;(function(_0x21bd22,_0x3445f4){const _0x403d3d=a192_0x5d95,_0x164e5c=_0x21bd22();while(!![]){try{const _0x5869bc=-parseInt(_0x403d3d(0x89))/0x1*(-parseInt(_0x403d3d(0x87))/0x2)+parseInt(_0x403d3d(0x7c))/0x3+-parseInt(_0x403d3d(0x82))/0x4+-parseInt(_0x403d3d(0x9b))/0x5*(-parseInt(_0x403d3d(0x99))/0x6)+parseInt(_0x403d3d(0x7f))/0x7+parseInt(_0x403d3d(0x98))/0x8*(parseInt(_0x403d3d(0x9a))/0x9)+-parseInt(_0x403d3d(0x7d))/0xa;if(_0x5869bc===_0x3445f4)break;else _0x164e5c['push'](_0x164e5c['shift']());}catch(_0x56ddcf){_0x164e5c['push'](_0x164e5c['shift']());}}}(a192_0x5dc9,0xb21e3));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a192_0x5d95(_0x5e7dd3,_0x201f62){_0x5e7dd3=_0x5e7dd3-0x7c;const _0x5dc91d=a192_0x5dc9();let _0x5d95f4=_0x5dc91d[_0x5e7dd3];return _0x5d95f4;}function getGuidesCdnUrl(){const _0x12c0b2=getTemplateBaseUrl();return _0x12c0b2+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a192_0x2ce4c7(0x92),a192_0x2ce4c7(0x97));export async function fetchGuidesFromCDN(){const _0x5a87d0=a192_0x2ce4c7,_0x4b0647=getGuidesCdnUrl(),_0x30709c=await fetch(_0x4b0647,{'headers':{'Accept':_0x5a87d0(0x85)}});if(!_0x30709c['ok'])throw new Error(_0x5a87d0(0x8f)+_0x30709c[_0x5a87d0(0x80)]+'\x20'+_0x30709c[_0x5a87d0(0x93)]);const _0x3928ee=await _0x30709c[_0x5a87d0(0x81)]();if(!_0x3928ee[_0x5a87d0(0x9c)]||typeof _0x3928ee[_0x5a87d0(0x9c)]!=='object')throw new Error(_0x5a87d0(0x8c));return _0x3928ee;}export function writeGuidesToProject(_0x57216d,_0xa3c363,_0x2bc8a6=a192_0x2ce4c7(0x90),_0x584b9c){const _0x5d5c2f=a192_0x2ce4c7,_0x46fedb=join(_0xa3c363,_0x2bc8a6);mkdirSync(_0x46fedb,{'recursive':!![]});for(const [_0x460883,_0x34c6ae]of Object['entries'](_0x57216d[_0x5d5c2f(0x9c)])){let _0x4a81ee=_0x34c6ae['content'];_0x34c6ae[_0x5d5c2f(0x94)]&&(_0x4a81ee=appendUpdateTime(_0x4a81ee,_0x34c6ae[_0x5d5c2f(0x94)])),writeFileSync(join(_0x46fedb,_0x460883+_0x5d5c2f(0x8e)),_0x4a81ee,_0x5d5c2f(0x8a));}}export function appendUpdateTime(_0x1d22f1,_0x137885){const _0x513052=a192_0x2ce4c7;return _0x1d22f1=_0x1d22f1[_0x513052(0x84)](/\n*>更新时间:.*$/m,''),_0x1d22f1[_0x513052(0x7e)]()+(_0x513052(0x8d)+_0x137885);}export function getSkillTemplate(_0x506ae1){const _0x354688=a192_0x2ce4c7;return _0x506ae1[_0x354688(0x9d)]?.[_0x354688(0x86)]||'';}export function appendExtendContents(_0x2f104f,_0x157e61,_0x454cb6){const _0x1967a7=a192_0x2ce4c7,_0x1fedd5=[];for(const [,_0x67d8c8]of Object[_0x1967a7(0x95)](_0x157e61[_0x1967a7(0x9c)])){_0x67d8c8[_0x1967a7(0x96)]&&_0x1fedd5[_0x1967a7(0x9f)](_0x67d8c8[_0x1967a7(0x96)][_0x1967a7(0x7e)]());}if(_0x1fedd5['length']===0x0)return _0x2f104f;return _0x2f104f[_0x1967a7(0x7e)]()+'\x0a\x0a'+_0x1fedd5[_0x1967a7(0x88)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5c5abd,_0x594628,_0x2c2233){const _0x51018d=a192_0x2ce4c7,_0x168505=getSkillTemplate(_0x5c5abd);if(!_0x168505)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x1d6251=dirname(_0x594628);mkdirSync(_0x1d6251,{'recursive':!![]});let _0x30bdc7=_0x168505['replace'](/\{\{IDE_NAME\}\}/g,_0x2c2233);_0x30bdc7=appendExtendContents(_0x30bdc7,_0x5c5abd),_0x5c5abd[_0x51018d(0x9d)]['lastUpdated']&&(_0x30bdc7=appendUpdateTime(_0x30bdc7,_0x5c5abd[_0x51018d(0x9d)][_0x51018d(0x94)])),writeFileSync(_0x594628,_0x30bdc7,_0x51018d(0x8a));}export async function installGuides(_0x539cb5){const _0x1186e7=a192_0x2ce4c7,_0xd9875b=await fetchGuidesFromCDN();return writeGuidesToProject(_0xd9875b,_0x539cb5),Object[_0x1186e7(0x8b)](_0xd9875b[_0x1186e7(0x9c)])['length'];}export function getGuidesSummary(_0x4ada43){const _0x21d474=a192_0x2ce4c7;return Object[_0x21d474(0x95)](_0x4ada43[_0x21d474(0x9c)])[_0x21d474(0x9e)](([_0x42c04b,_0x40dc6c])=>({'key':_0x42c04b,'title':_0x40dc6c[_0x21d474(0x83)],'path':_0x40dc6c[_0x21d474(0x91)]}));}
@@ -1 +1 @@
1
- (function(_0x49be40,_0x94e1ae){const _0x16221a=a193_0x4520,_0x4ee0e9=_0x49be40();while(!![]){try{const _0x217d6d=parseInt(_0x16221a(0x133))/0x1+parseInt(_0x16221a(0x138))/0x2*(-parseInt(_0x16221a(0x139))/0x3)+-parseInt(_0x16221a(0x141))/0x4*(-parseInt(_0x16221a(0x13f))/0x5)+parseInt(_0x16221a(0x143))/0x6+parseInt(_0x16221a(0x13c))/0x7+parseInt(_0x16221a(0x14d))/0x8+-parseInt(_0x16221a(0x145))/0x9*(parseInt(_0x16221a(0x147))/0xa);if(_0x217d6d===_0x94e1ae)break;else _0x4ee0e9['push'](_0x4ee0e9['shift']());}catch(_0x1c363f){_0x4ee0e9['push'](_0x4ee0e9['shift']());}}}(a193_0x566a,0xbe2cb));export async function httpRequest(_0xf45e76,_0x2de282={}){const _0x4e12fc=a193_0x4520,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2de282;let _0x29a0b3=null;for(let _0x466a31=0x0;_0x466a31<=retries;_0x466a31++){try{const _0x11bce0=new AbortController(),_0x3a3504=setTimeout(()=>_0x11bce0[_0x4e12fc(0x136)](),timeout),_0x3bed02=await fetch(_0xf45e76,{'headers':headers,'signal':_0x11bce0[_0x4e12fc(0x140)]});clearTimeout(_0x3a3504);let _0x5f0f4a;const _0x267027=_0x3bed02['headers'][_0x4e12fc(0x144)](_0x4e12fc(0x137));return _0x267027?.[_0x4e12fc(0x134)](_0x4e12fc(0x149))?_0x5f0f4a=await _0x3bed02[_0x4e12fc(0x13e)]():_0x5f0f4a=await _0x3bed02['text'](),{'ok':_0x3bed02['ok'],'status':_0x3bed02['status'],'statusText':_0x3bed02[_0x4e12fc(0x14c)],'data':_0x5f0f4a,'headers':_0x3bed02[_0x4e12fc(0x148)],'url':_0x3bed02['url'],'text':()=>_0x3bed02[_0x4e12fc(0x13b)]()};}catch(_0x1f45f5){_0x29a0b3=_0x1f45f5 instanceof Error?_0x1f45f5:new Error(String(_0x1f45f5));if(_0x466a31===retries)break;if(shouldRetry(_0x1f45f5)){console[_0x4e12fc(0x14a)](_0x4e12fc(0x132)+retryDelay+'ms\x20后进行第\x20'+(_0x466a31+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x29a0b3||new Error(_0x4e12fc(0x135));}function shouldRetry(_0x5a021f){const _0x3da45b=a193_0x4520;if(_0x5a021f instanceof Error){if(_0x5a021f[_0x3da45b(0x13a)]===_0x3da45b(0x142))return![];if(_0x5a021f[_0x3da45b(0x13a)]==='TypeError'&&_0x5a021f[_0x3da45b(0x13d)][_0x3da45b(0x134)]('fetch'))return!![];if(_0x5a021f[_0x3da45b(0x13d)][_0x3da45b(0x134)](_0x3da45b(0x14b)))return!![];if(_0x5a021f[_0x3da45b(0x13d)][_0x3da45b(0x134)](_0x3da45b(0x146)))return![];}return![];}function a193_0x4520(_0x26c001,_0x523ab9){_0x26c001=_0x26c001-0x132;const _0x566a4c=a193_0x566a();let _0x4520a9=_0x566a4c[_0x26c001];return _0x4520a9;}function sleep(_0x4fe753){return new Promise(_0x4a0965=>setTimeout(_0x4a0965,_0x4fe753));}function a193_0x566a(){const _0x293702=['9DDFUnj','ENOTFOUND','36652850fOcptA','headers','application/json','log','ECONNRESET','statusText','3998432FQrpPJ','*\x20请求失败,','1274707tLFHUD','includes','Request\x20failed','abort','content-type','2sarAfw','263157QtvyjP','name','text','7329112YnQpEr','message','json','242265qiQMRa','signal','56mHZMpa','AbortError','6192540csXLwB','get'];a193_0x566a=function(){return _0x293702;};return a193_0x566a();}export function validateUrl(_0x4a0044){try{return new URL(_0x4a0044),!![];}catch{return![];}}
1
+ (function(_0x264756,_0x139a9b){const _0x4ff607=a193_0xa27d,_0x36457d=_0x264756();while(!![]){try{const _0x2b73a1=-parseInt(_0x4ff607(0x15b))/0x1+-parseInt(_0x4ff607(0x142))/0x2*(-parseInt(_0x4ff607(0x151))/0x3)+parseInt(_0x4ff607(0x14d))/0x4*(parseInt(_0x4ff607(0x154))/0x5)+parseInt(_0x4ff607(0x146))/0x6+parseInt(_0x4ff607(0x14e))/0x7+-parseInt(_0x4ff607(0x155))/0x8+parseInt(_0x4ff607(0x14b))/0x9*(-parseInt(_0x4ff607(0x157))/0xa);if(_0x2b73a1===_0x139a9b)break;else _0x36457d['push'](_0x36457d['shift']());}catch(_0x8a5a0a){_0x36457d['push'](_0x36457d['shift']());}}}(a193_0x3221,0x938d2));function a193_0xa27d(_0x47675f,_0x404a48){_0x47675f=_0x47675f-0x140;const _0x3221ec=a193_0x3221();let _0xa27d62=_0x3221ec[_0x47675f];return _0xa27d62;}export async function httpRequest(_0x758483,_0x4a0055={}){const _0x5e3d3b=a193_0xa27d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4a0055;let _0xfaa794=null;for(let _0x4a2e63=0x0;_0x4a2e63<=retries;_0x4a2e63++){try{const _0x48a6fc=new AbortController(),_0x16c1a7=setTimeout(()=>_0x48a6fc[_0x5e3d3b(0x15d)](),timeout),_0x42a7c4=await fetch(_0x758483,{'headers':headers,'signal':_0x48a6fc[_0x5e3d3b(0x15c)]});clearTimeout(_0x16c1a7);let _0x3def6e;const _0x22552c=_0x42a7c4[_0x5e3d3b(0x153)][_0x5e3d3b(0x148)](_0x5e3d3b(0x149));return _0x22552c?.[_0x5e3d3b(0x147)](_0x5e3d3b(0x140))?_0x3def6e=await _0x42a7c4[_0x5e3d3b(0x159)]():_0x3def6e=await _0x42a7c4['text'](),{'ok':_0x42a7c4['ok'],'status':_0x42a7c4[_0x5e3d3b(0x158)],'statusText':_0x42a7c4[_0x5e3d3b(0x15a)],'data':_0x3def6e,'headers':_0x42a7c4[_0x5e3d3b(0x153)],'url':_0x42a7c4[_0x5e3d3b(0x150)],'text':()=>_0x42a7c4[_0x5e3d3b(0x141)]()};}catch(_0x2f7915){_0xfaa794=_0x2f7915 instanceof Error?_0x2f7915:new Error(String(_0x2f7915));if(_0x4a2e63===retries)break;if(shouldRetry(_0x2f7915)){console[_0x5e3d3b(0x14c)](_0x5e3d3b(0x145)+retryDelay+_0x5e3d3b(0x152)+(_0x4a2e63+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0xfaa794||new Error(_0x5e3d3b(0x143));}function shouldRetry(_0x1eb74a){const _0xdb91dc=a193_0xa27d;if(_0x1eb74a instanceof Error){if(_0x1eb74a[_0xdb91dc(0x15e)]===_0xdb91dc(0x144))return![];if(_0x1eb74a[_0xdb91dc(0x15e)]==='TypeError'&&_0x1eb74a[_0xdb91dc(0x156)][_0xdb91dc(0x147)](_0xdb91dc(0x14a)))return!![];if(_0x1eb74a[_0xdb91dc(0x156)][_0xdb91dc(0x147)](_0xdb91dc(0x14f)))return!![];if(_0x1eb74a['message'][_0xdb91dc(0x147)](_0xdb91dc(0x15f)))return![];}return![];}function a193_0x3221(){const _0x5bec6f=['1918620AwKHVe','includes','get','content-type','fetch','18rRLEAI','log','584PbbCwF','4302977XTxoJu','ECONNRESET','url','19191oojkRE','ms\x20后进行第\x20','headers','40410ckjJqx','8573320jtyMby','message','3897890BvFAeM','status','json','statusText','260158sYsVYF','signal','abort','name','ENOTFOUND','application/json','text','188MuKqde','Request\x20failed','AbortError','*\x20请求失败,'];a193_0x3221=function(){return _0x5bec6f;};return a193_0x3221();}function sleep(_0x20648f){return new Promise(_0x3f59a1=>setTimeout(_0x3f59a1,_0x20648f));}export function validateUrl(_0x24b63a){try{return new URL(_0x24b63a),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4d5beb,_0x58cb54){const _0x4b7259=a194_0x24b4,_0x108b5b=_0x4d5beb();while(!![]){try{const _0x5df497=-parseInt(_0x4b7259(0x87))/0x1*(-parseInt(_0x4b7259(0x8a))/0x2)+-parseInt(_0x4b7259(0x90))/0x3+parseInt(_0x4b7259(0x84))/0x4*(-parseInt(_0x4b7259(0x86))/0x5)+parseInt(_0x4b7259(0x8d))/0x6*(-parseInt(_0x4b7259(0x8b))/0x7)+-parseInt(_0x4b7259(0x8e))/0x8+-parseInt(_0x4b7259(0x83))/0x9*(-parseInt(_0x4b7259(0x89))/0xa)+parseInt(_0x4b7259(0x81))/0xb*(parseInt(_0x4b7259(0x8f))/0xc);if(_0x5df497===_0x58cb54)break;else _0x108b5b['push'](_0x108b5b['shift']());}catch(_0xd93b2e){_0x108b5b['push'](_0x108b5b['shift']());}}}(a194_0x2b74,0xe833a));function env(_0x2a13b7){return process.env[`RABETBASE_${_0x2a13b7}`]||process.env[`LOVRABET_${_0x2a13b7}`]||undefined;}export function isNonInteractive(_0x438fbb){const _0x1f8569=a194_0x24b4;return!!(_0x438fbb[_0x1f8569(0x88)]||_0x438fbb['ci']||env('CI')==='true'||process.env.CI==='true'||!process[_0x1f8569(0x8c)][_0x1f8569(0x92)]||!isStdinRawModeSupported());}function a194_0x24b4(_0x3547f8,_0x5eef98){_0x3547f8=_0x3547f8-0x81;const _0x2b74c6=a194_0x2b74();let _0x24b43b=_0x2b74c6[_0x3547f8];return _0x24b43b;}function a194_0x2b74(){const _0x28a30c=['60159uKVyaB','stdin','74718KpMrRz','335272NappID','isRaw','15VYwxIS','1DBrdUj','nonInteractive','1130DsBDCF','2943294IDdOKF','7qplqyZ','stdout','10313334lMgDqS','5172376DlDxUs','4404FxqOlz','2546724nvXyYF','setRawMode','isTTY'];a194_0x2b74=function(){return _0x28a30c;};return a194_0x2b74();}function isStdinRawModeSupported(){const _0x26fdd3=a194_0x24b4;if(!process[_0x26fdd3(0x82)][_0x26fdd3(0x92)])return![];try{const _0x291449=process['stdin'][_0x26fdd3(0x85)];return process['stdin'][_0x26fdd3(0x91)](!![]),process['stdin'][_0x26fdd3(0x91)](_0x291449??![]),!![];}catch{return![];}}
1
+ function a194_0x14cd(){const _0x1ab523=['8OIWviq','77134AimUkz','66MMHIHP','stdin','stdout','124JaoqaQ','9272590vuQLQN','160521fGHvbe','20ibhKgL','isRaw','3356052ZXgBeB','1530290hRlpXg','true','setRawMode','7009137adOAil','7033644cNbRJP','nonInteractive','isTTY'];a194_0x14cd=function(){return _0x1ab523;};return a194_0x14cd();}(function(_0x96f1dd,_0x51b104){const _0x2f0028=a194_0x1443,_0x18c449=_0x96f1dd();while(!![]){try{const _0x46d1b6=parseInt(_0x2f0028(0x1aa))/0x1*(-parseInt(_0x2f0028(0x1b1))/0x2)+-parseInt(_0x2f0028(0x1b0))/0x3*(-parseInt(_0x2f0028(0x1ae))/0x4)+parseInt(_0x2f0028(0x1af))/0x5+-parseInt(_0x2f0028(0x1a6))/0x6+-parseInt(_0x2f0028(0x1a1))/0x7+parseInt(_0x2f0028(0x1a9))/0x8*(parseInt(_0x2f0028(0x1a5))/0x9)+-parseInt(_0x2f0028(0x1a2))/0xa*(parseInt(_0x2f0028(0x1ab))/0xb);if(_0x46d1b6===_0x51b104)break;else _0x18c449['push'](_0x18c449['shift']());}catch(_0x5a29a4){_0x18c449['push'](_0x18c449['shift']());}}}(a194_0x14cd,0xe8214));function env(_0x506788){return process.env[`RABETBASE_${_0x506788}`]||process.env[`LOVRABET_${_0x506788}`]||undefined;}export function isNonInteractive(_0x5a58bb){const _0x21e633=a194_0x1443;return!!(_0x5a58bb[_0x21e633(0x1a7)]||_0x5a58bb['ci']||env('CI')===_0x21e633(0x1a3)||process.env.CI===_0x21e633(0x1a3)||!process[_0x21e633(0x1ad)][_0x21e633(0x1a8)]||!isStdinRawModeSupported());}function a194_0x1443(_0x1cc042,_0x2d9482){_0x1cc042=_0x1cc042-0x1a1;const _0x14cd83=a194_0x14cd();let _0x144361=_0x14cd83[_0x1cc042];return _0x144361;}function isStdinRawModeSupported(){const _0x1bca56=a194_0x1443;if(!process['stdin'][_0x1bca56(0x1a8)])return![];try{const _0x6a2267=process[_0x1bca56(0x1ac)][_0x1bca56(0x1b2)];return process['stdin'][_0x1bca56(0x1a4)](!![]),process[_0x1bca56(0x1ac)]['setRawMode'](_0x6a2267??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a195_0x239d66=a195_0x2c24;(function(_0xa8cd2a,_0x5a4071){const _0x57397d=a195_0x2c24,_0x250e54=_0xa8cd2a();while(!![]){try{const _0x3a3e6b=parseInt(_0x57397d(0x137))/0x1*(-parseInt(_0x57397d(0x10d))/0x2)+-parseInt(_0x57397d(0x11d))/0x3+parseInt(_0x57397d(0x10f))/0x4+parseInt(_0x57397d(0x142))/0x5+-parseInt(_0x57397d(0x119))/0x6*(parseInt(_0x57397d(0x13c))/0x7)+parseInt(_0x57397d(0x127))/0x8*(parseInt(_0x57397d(0x10e))/0x9)+parseInt(_0x57397d(0x141))/0xa*(parseInt(_0x57397d(0x13f))/0xb);if(_0x3a3e6b===_0x5a4071)break;else _0x250e54['push'](_0x250e54['shift']());}catch(_0x1e6528){_0x250e54['push'](_0x250e54['shift']());}}}(a195_0x64b6,0x5c5ea));import a195_0x56a72d from'winston';import a195_0x1799c9 from'node:fs';function a195_0x2c24(_0x5d56ee,_0x228e09){_0x5d56ee=_0x5d56ee-0x10c;const _0x64b6c4=a195_0x64b6();let _0x2c2401=_0x64b6c4[_0x5d56ee];return _0x2c2401;}import a195_0x14d8ae from'node:path';class Logger{[a195_0x239d66(0x130)];[a195_0x239d66(0x11e)];[a195_0x239d66(0x136)]='';constructor(){const _0x455e7f=a195_0x239d66;this[_0x455e7f(0x11e)]='';}[a195_0x239d66(0x113)](_0x188424){const _0x250ea8=a195_0x239d66;this[_0x250ea8(0x136)]=_0x188424;}[a195_0x239d66(0x135)](){const _0x4c5fc8=a195_0x239d66,_0x35b545=a195_0x14d8ae[_0x4c5fc8(0x133)](this[_0x4c5fc8(0x11e)]);!a195_0x1799c9[_0x4c5fc8(0x125)](_0x35b545)&&a195_0x1799c9['mkdirSync'](_0x35b545,{'recursive':!![]});const _0xae0f5b=a195_0x56a72d[_0x4c5fc8(0x114)][_0x4c5fc8(0x138)](a195_0x56a72d[_0x4c5fc8(0x114)][_0x4c5fc8(0x13b)](),a195_0x56a72d[_0x4c5fc8(0x114)]['errors']({'stack':!![]}),a195_0x56a72d[_0x4c5fc8(0x114)]['printf'](_0x23cd53=>{const _0x1d2d18=_0x4c5fc8,_0x586636={'timestamp':_0x23cd53['timestamp']||new Date()['toISOString'](),'level':_0x23cd53[_0x1d2d18(0x139)]||'info','command':_0x23cd53[_0x1d2d18(0x144)]||'unknown','rawCommand':_0x23cd53['rawCommand']||this[_0x1d2d18(0x136)]||undefined,'message':_0x23cd53[_0x1d2d18(0x126)]||'','duration':_0x23cd53[_0x1d2d18(0x134)]||undefined,'details':_0x23cd53[_0x1d2d18(0x13a)]||undefined};return JSON[_0x1d2d18(0x121)](_0x586636);}));this['winstonLogger']=a195_0x56a72d['createLogger']({'level':'info','format':_0xae0f5b,'transports':[new a195_0x56a72d[(_0x4c5fc8(0x12e))][(_0x4c5fc8(0x143))]({'filename':this[_0x4c5fc8(0x11e)],'level':_0x4c5fc8(0x12b)})],'silent':![]}),a195_0x56a72d[_0x4c5fc8(0x10c)]({'success':_0x4c5fc8(0x118),'error':_0x4c5fc8(0x12c),'warn':_0x4c5fc8(0x117),'info':_0x4c5fc8(0x12f)});}[a195_0x239d66(0x13d)](_0x36a058){const _0xa887f5=a195_0x239d66;this[_0xa887f5(0x11e)]=a195_0x14d8ae[_0xa887f5(0x11f)](_0x36a058,_0xa887f5(0x145)),this[_0xa887f5(0x130)]&&this['winstonLogger'][_0xa887f5(0x140)](),this[_0xa887f5(0x135)]();}['info'](_0x57e0db,_0x4c32c7,_0x3f25bd){const _0x5cb3ee=a195_0x239d66;if(!this[_0x5cb3ee(0x11e)]||!this['winstonLogger'])return;this[_0x5cb3ee(0x130)]['info'](_0x4c32c7,{'command':_0x57e0db,'details':_0x3f25bd});}[a195_0x239d66(0x11c)](_0x3e4d25,_0x2dc5b6,_0x5a3533,_0x4df7a2){const _0x4fe0f3=a195_0x239d66;if(!this[_0x4fe0f3(0x11e)]||!this['winstonLogger'])return;this[_0x4fe0f3(0x130)]['log'](_0x4fe0f3(0x12b),_0x2dc5b6,{'level':_0x4fe0f3(0x11c),'command':_0x3e4d25,'duration':_0x5a3533,'details':_0x4df7a2});}[a195_0x239d66(0x122)](_0x44a119,_0x55a6dd,_0x1428cc){const _0x116af2=a195_0x239d66;if(!this[_0x116af2(0x11e)]||!this[_0x116af2(0x130)])return;this[_0x116af2(0x130)][_0x116af2(0x122)](_0x55a6dd,{'command':_0x44a119,'details':_0x1428cc});}['warn'](_0x4f249e,_0x2d1fa4,_0x41ee27){const _0x508de3=a195_0x239d66;if(!this['logFilePath']||!this[_0x508de3(0x130)])return;this['winstonLogger'][_0x508de3(0x123)](_0x2d1fa4,{'command':_0x4f249e,'details':_0x41ee27});}async['logTask'](_0x40b806,_0x466147,_0xa203d5){const _0x55252c=a195_0x239d66,_0x5b0c16=Date[_0x55252c(0x12a)]();this[_0x55252c(0x12b)](_0x40b806,_0x55252c(0x129)+_0x466147);try{const _0x752c14=await _0xa203d5(),_0x23cb15=Date[_0x55252c(0x12a)]()-_0x5b0c16;return this[_0x55252c(0x11c)](_0x40b806,_0x55252c(0x116)+_0x466147,_0x23cb15),_0x752c14;}catch(_0x36936f){const _0x3b7007=Date[_0x55252c(0x12a)]()-_0x5b0c16;this[_0x55252c(0x122)](_0x40b806,_0x55252c(0x115)+_0x466147,{'error':_0x36936f instanceof Error?_0x36936f[_0x55252c(0x126)]:String(_0x36936f),'duration':_0x3b7007});throw _0x36936f;}}[a195_0x239d66(0x11b)](){const _0x2de577=a195_0x239d66;try{if(!a195_0x1799c9[_0x2de577(0x125)](this[_0x2de577(0x11e)]))return[];const _0x1b12d4=a195_0x1799c9[_0x2de577(0x128)](this[_0x2de577(0x11e)],_0x2de577(0x132));return _0x1b12d4[_0x2de577(0x131)]('\x0a')['filter'](_0x11aff3=>_0x11aff3[_0x2de577(0x120)]())[_0x2de577(0x111)](_0x2bb36f=>JSON[_0x2de577(0x13e)](_0x2bb36f));}catch(_0x45d55c){return console['warn'](_0x2de577(0x12d),_0x45d55c),[];}}[a195_0x239d66(0x11a)](){const _0x39d0b0=a195_0x239d66;try{a195_0x1799c9[_0x39d0b0(0x125)](this[_0x39d0b0(0x11e)])&&a195_0x1799c9[_0x39d0b0(0x110)](this[_0x39d0b0(0x11e)],'',_0x39d0b0(0x132));}catch(_0x271d28){console[_0x39d0b0(0x123)](_0x39d0b0(0x112),_0x271d28);}}[a195_0x239d66(0x124)](){const _0x3e2d64=a195_0x239d66;return this[_0x3e2d64(0x130)];}}export const logger=new Logger();function a195_0x64b6(){const _0x2c8d48=['834295KZsvxK','File','command','.lovrabet.log','addColors','2IvyUGW','9zhxEOH','1748344OnLtYV','writeFileSync','map','Failed\x20to\x20clear\x20logs:','setRawCommand','format','失败:\x20','完成:\x20','yellow','green','462LqGGDs','clearLogs','readLogs','success','1173747fjpjFA','logFilePath','join','trim','stringify','error','warn','getWinstonInstance','existsSync','message','3031696MvPGwf','readFileSync','开始执行:\x20','now','info','red','Failed\x20to\x20read\x20logs:','transports','blue','winstonLogger','split','utf8','dirname','duration','initWinstonLogger','currentRawCommand','41037JmlPYM','combine','level','details','timestamp','45003tKthTM','setLogPath','parse','41283QUhkcl','clear','860LusfvC'];a195_0x64b6=function(){return _0x2c8d48;};return a195_0x64b6();}
1
+ const a195_0x47a7a6=a195_0x2df3;(function(_0x3969f4,_0x5a78ab){const _0x2fc2a7=a195_0x2df3,_0x37a6fd=_0x3969f4();while(!![]){try{const _0x28a9cd=parseInt(_0x2fc2a7(0xcc))/0x1*(parseInt(_0x2fc2a7(0xb0))/0x2)+parseInt(_0x2fc2a7(0xbe))/0x3+-parseInt(_0x2fc2a7(0xcf))/0x4*(-parseInt(_0x2fc2a7(0xb3))/0x5)+-parseInt(_0x2fc2a7(0xdb))/0x6+-parseInt(_0x2fc2a7(0xb6))/0x7*(-parseInt(_0x2fc2a7(0xd9))/0x8)+-parseInt(_0x2fc2a7(0xc1))/0x9+-parseInt(_0x2fc2a7(0xd7))/0xa*(parseInt(_0x2fc2a7(0xbc))/0xb);if(_0x28a9cd===_0x5a78ab)break;else _0x37a6fd['push'](_0x37a6fd['shift']());}catch(_0x33fcde){_0x37a6fd['push'](_0x37a6fd['shift']());}}}(a195_0x571a,0x74c9f));import a195_0x395207 from'winston';function a195_0x571a(){const _0x1675be=['errors','filter','details','join','132OarHwK','message','2638263iTKTqL','trim','yellow','4944897uMeKXi','winstonLogger','Failed\x20to\x20clear\x20logs:','info','utf8','format','readLogs','rawCommand','green','logFilePath','writeFileSync','59526ZqGHtX','logTask','success','662484TqjIlk','split','mkdirSync','toISOString','combine','parse','addColors','setRawCommand','1302970vResAp','red','6984JqpUSO','readFileSync','1709448jSAFMc','map','now','unknown','existsSync','clear','clearLogs','error','currentRawCommand','dirname','16yHoUTh','stringify','createLogger','20MpvOOT','完成:\x20','warn','6881EmrIcG','initWinstonLogger'];a195_0x571a=function(){return _0x1675be;};return a195_0x571a();}import a195_0x5e1dc4 from'node:fs';function a195_0x2df3(_0x2731d3,_0xf38d1){_0x2731d3=_0x2731d3-0xab;const _0x571acd=a195_0x571a();let _0x2df30d=_0x571acd[_0x2731d3];return _0x2df30d;}import a195_0x1fbc1e from'node:path';class Logger{['winstonLogger'];[a195_0x47a7a6(0xca)];[a195_0x47a7a6(0xae)]='';constructor(){this['logFilePath']='';}[a195_0x47a7a6(0xd6)](_0x5e6893){const _0x4155ee=a195_0x47a7a6;this[_0x4155ee(0xae)]=_0x5e6893;}[a195_0x47a7a6(0xb7)](){const _0x4b9226=a195_0x47a7a6,_0x3f68d3=a195_0x1fbc1e[_0x4b9226(0xaf)](this['logFilePath']);!a195_0x5e1dc4[_0x4b9226(0xdf)](_0x3f68d3)&&a195_0x5e1dc4[_0x4b9226(0xd1)](_0x3f68d3,{'recursive':!![]});const _0x2493f4=a195_0x395207['format'][_0x4b9226(0xd3)](a195_0x395207[_0x4b9226(0xc6)]['timestamp'](),a195_0x395207[_0x4b9226(0xc6)][_0x4b9226(0xb8)]({'stack':!![]}),a195_0x395207['format']['printf'](_0x359472=>{const _0x105ea8=_0x4b9226,_0x3331c3={'timestamp':_0x359472['timestamp']||new Date()[_0x105ea8(0xd2)](),'level':_0x359472['level']||_0x105ea8(0xc4),'command':_0x359472['command']||_0x105ea8(0xde),'rawCommand':_0x359472[_0x105ea8(0xc8)]||this['currentRawCommand']||undefined,'message':_0x359472[_0x105ea8(0xbd)]||'','duration':_0x359472['duration']||undefined,'details':_0x359472[_0x105ea8(0xba)]||undefined};return JSON[_0x105ea8(0xb1)](_0x3331c3);}));this[_0x4b9226(0xc2)]=a195_0x395207[_0x4b9226(0xb2)]({'level':_0x4b9226(0xc4),'format':_0x2493f4,'transports':[new a195_0x395207['transports']['File']({'filename':this[_0x4b9226(0xca)],'level':_0x4b9226(0xc4)})],'silent':![]}),a195_0x395207[_0x4b9226(0xd5)]({'success':_0x4b9226(0xc9),'error':_0x4b9226(0xd8),'warn':_0x4b9226(0xc0),'info':'blue'});}['setLogPath'](_0x2f6225){const _0xfbae84=a195_0x47a7a6;this['logFilePath']=a195_0x1fbc1e[_0xfbae84(0xbb)](_0x2f6225,'.lovrabet.log'),this['winstonLogger']&&this[_0xfbae84(0xc2)][_0xfbae84(0xab)](),this[_0xfbae84(0xb7)]();}[a195_0x47a7a6(0xc4)](_0x267a6d,_0x12f1c7,_0x5392c6){const _0x5da64b=a195_0x47a7a6;if(!this[_0x5da64b(0xca)]||!this['winstonLogger'])return;this[_0x5da64b(0xc2)][_0x5da64b(0xc4)](_0x12f1c7,{'command':_0x267a6d,'details':_0x5392c6});}['success'](_0x4ffd05,_0x5d917b,_0x5b9d71,_0x2e5f64){const _0x25a21f=a195_0x47a7a6;if(!this[_0x25a21f(0xca)]||!this[_0x25a21f(0xc2)])return;this[_0x25a21f(0xc2)]['log'](_0x25a21f(0xc4),_0x5d917b,{'level':_0x25a21f(0xce),'command':_0x4ffd05,'duration':_0x5b9d71,'details':_0x2e5f64});}[a195_0x47a7a6(0xad)](_0x5bdab9,_0x4ea5b3,_0x3054fe){const _0x52ad1d=a195_0x47a7a6;if(!this[_0x52ad1d(0xca)]||!this['winstonLogger'])return;this[_0x52ad1d(0xc2)]['error'](_0x4ea5b3,{'command':_0x5bdab9,'details':_0x3054fe});}['warn'](_0x16fa6f,_0x554cf1,_0x3108a1){const _0xe5426=a195_0x47a7a6;if(!this[_0xe5426(0xca)]||!this[_0xe5426(0xc2)])return;this[_0xe5426(0xc2)][_0xe5426(0xb5)](_0x554cf1,{'command':_0x16fa6f,'details':_0x3108a1});}async[a195_0x47a7a6(0xcd)](_0x1d791f,_0x389fe2,_0x185d18){const _0x1e41c0=a195_0x47a7a6,_0x3bd072=Date[_0x1e41c0(0xdd)]();this[_0x1e41c0(0xc4)](_0x1d791f,'开始执行:\x20'+_0x389fe2);try{const _0x11ae26=await _0x185d18(),_0x89210b=Date['now']()-_0x3bd072;return this[_0x1e41c0(0xce)](_0x1d791f,_0x1e41c0(0xb4)+_0x389fe2,_0x89210b),_0x11ae26;}catch(_0x14ab29){const _0x4d8da5=Date['now']()-_0x3bd072;this[_0x1e41c0(0xad)](_0x1d791f,'失败:\x20'+_0x389fe2,{'error':_0x14ab29 instanceof Error?_0x14ab29[_0x1e41c0(0xbd)]:String(_0x14ab29),'duration':_0x4d8da5});throw _0x14ab29;}}[a195_0x47a7a6(0xc7)](){const _0x3ab4e6=a195_0x47a7a6;try{if(!a195_0x5e1dc4[_0x3ab4e6(0xdf)](this[_0x3ab4e6(0xca)]))return[];const _0x24c452=a195_0x5e1dc4[_0x3ab4e6(0xda)](this[_0x3ab4e6(0xca)],_0x3ab4e6(0xc5));return _0x24c452[_0x3ab4e6(0xd0)]('\x0a')[_0x3ab4e6(0xb9)](_0x32b4f4=>_0x32b4f4[_0x3ab4e6(0xbf)]())[_0x3ab4e6(0xdc)](_0x5c6769=>JSON[_0x3ab4e6(0xd4)](_0x5c6769));}catch(_0x445fa2){return console[_0x3ab4e6(0xb5)]('Failed\x20to\x20read\x20logs:',_0x445fa2),[];}}[a195_0x47a7a6(0xac)](){const _0x176cb6=a195_0x47a7a6;try{a195_0x5e1dc4['existsSync'](this[_0x176cb6(0xca)])&&a195_0x5e1dc4[_0x176cb6(0xcb)](this['logFilePath'],'',_0x176cb6(0xc5));}catch(_0x3b6501){console[_0x176cb6(0xb5)](_0x176cb6(0xc3),_0x3b6501);}}['getWinstonInstance'](){const _0x89510=a195_0x47a7a6;return this[_0x89510(0xc2)];}}export const logger=new Logger();