@lovrabet/rabetbase-cli 2.1.6-beta.0 → 2.1.6

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 (188) 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/detail.js +1 -1
  52. package/lib/commands/dataset/index.js +1 -1
  53. package/lib/commands/dataset/links.js +1 -1
  54. package/lib/commands/dataset/list.js +1 -1
  55. package/lib/commands/dataset/operations.js +1 -1
  56. package/lib/commands/db/analyze-cancel.js +1 -1
  57. package/lib/commands/db/analyze-start.js +1 -1
  58. package/lib/commands/db/analyze-status.js +1 -1
  59. package/lib/commands/db/create.js +1 -1
  60. package/lib/commands/db/delete.js +1 -1
  61. package/lib/commands/db/detail.js +1 -1
  62. package/lib/commands/db/diff.js +1 -1
  63. package/lib/commands/db/index.js +1 -1
  64. package/lib/commands/db/list.js +1 -1
  65. package/lib/commands/db/shared.js +1 -1
  66. package/lib/commands/db/tables.js +1 -1
  67. package/lib/commands/db/test.js +1 -1
  68. package/lib/commands/db/update.js +1 -1
  69. package/lib/commands/doctor.js +1 -1
  70. package/lib/commands/init/index.js +1 -1
  71. package/lib/commands/logs/index.js +1 -1
  72. package/lib/commands/menu/index.js +1 -1
  73. package/lib/commands/menu/shared/compare-table.js +1 -1
  74. package/lib/commands/menu/shared/index.js +1 -1
  75. package/lib/commands/menu/shared/inquirer.js +1 -1
  76. package/lib/commands/menu/shared/local-pages.js +1 -1
  77. package/lib/commands/menu/shared/logic.js +1 -1
  78. package/lib/commands/menu/shared/service.js +1 -1
  79. package/lib/commands/menu/shared/sync-core.js +1 -1
  80. package/lib/commands/menu/shared/update-core.js +1 -1
  81. package/lib/commands/menu/shared/valid-url.js +1 -1
  82. package/lib/commands/menu/sync.js +1 -1
  83. package/lib/commands/menu/update.js +1 -1
  84. package/lib/commands/page/generate-start.js +1 -1
  85. package/lib/commands/page/generate-status.js +1 -1
  86. package/lib/commands/page/index.js +1 -1
  87. package/lib/commands/page/pull.js +1 -1
  88. package/lib/commands/page/push.js +1 -1
  89. package/lib/commands/page/shared.js +1 -1
  90. package/lib/commands/page/standard-page-status.js +1 -1
  91. package/lib/commands/page/sync.js +1 -1
  92. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  93. package/lib/commands/project/create/format-elapsed.js +1 -1
  94. package/lib/commands/project/create/main.js +1 -1
  95. package/lib/commands/project/create/non-interactive.js +1 -1
  96. package/lib/commands/project/create/project-template-path.js +1 -1
  97. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  98. package/lib/commands/project/create/use-format-code.js +1 -1
  99. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  100. package/lib/commands/project/index.js +1 -1
  101. package/lib/commands/project/init.js +1 -1
  102. package/lib/commands/project/upgrade.js +1 -1
  103. package/lib/commands/registry.js +1 -1
  104. package/lib/commands/run/index.js +1 -1
  105. package/lib/commands/schema.js +1 -1
  106. package/lib/commands/skill/index.js +1 -1
  107. package/lib/commands/sql/create.js +1 -1
  108. package/lib/commands/sql/delete.js +1 -1
  109. package/lib/commands/sql/detail.js +1 -1
  110. package/lib/commands/sql/exec.js +1 -1
  111. package/lib/commands/sql/index.js +1 -1
  112. package/lib/commands/sql/list.js +1 -1
  113. package/lib/commands/sql/pull.js +1 -1
  114. package/lib/commands/sql/push.js +1 -1
  115. package/lib/commands/sql/save.js +1 -1
  116. package/lib/commands/sql/shared.js +1 -1
  117. package/lib/commands/sql/status.js +1 -1
  118. package/lib/commands/sql/validate.js +1 -1
  119. package/lib/config/schema.js +1 -1
  120. package/lib/constant/cdn.js +1 -1
  121. package/lib/constant/cli.js +1 -1
  122. package/lib/constant/defaults.js +1 -1
  123. package/lib/constant/domain.js +1 -1
  124. package/lib/constant/env.js +1 -1
  125. package/lib/constant/output.js +1 -1
  126. package/lib/constant/paths.js +1 -1
  127. package/lib/constant/risk.js +1 -1
  128. package/lib/context.js +1 -1
  129. package/lib/core/alias-resolver.js +1 -1
  130. package/lib/core/api-client.js +1 -1
  131. package/lib/core/bff/config.js +1 -1
  132. package/lib/core/bff/file-system.js +1 -1
  133. package/lib/core/bff/hash.js +1 -1
  134. package/lib/core/bff/lock.js +1 -1
  135. package/lib/core/bff/utils.js +1 -1
  136. package/lib/core/db-resolver.js +1 -1
  137. package/lib/core/page/file-system.js +1 -1
  138. package/lib/core/page/hash.js +1 -1
  139. package/lib/core/page/lock.js +1 -1
  140. package/lib/core/sql-sync/config.js +1 -1
  141. package/lib/core/sql-sync/file-system.js +1 -1
  142. package/lib/core/sql-sync/hash.js +1 -1
  143. package/lib/core/sql-sync/lock.js +1 -1
  144. package/lib/core/sql-sync/utils.js +1 -1
  145. package/lib/core/sql-validator.js +1 -1
  146. package/lib/errors.js +1 -1
  147. package/lib/framework/build-all-flags.js +1 -1
  148. package/lib/framework/flags.js +1 -1
  149. package/lib/framework/help.js +1 -1
  150. package/lib/framework/index.js +1 -1
  151. package/lib/framework/output.js +1 -1
  152. package/lib/framework/response.js +1 -1
  153. package/lib/framework/runner-alias.js +1 -1
  154. package/lib/framework/runner.js +1 -1
  155. package/lib/framework/schema-export.js +1 -1
  156. package/lib/framework/types.js +1 -1
  157. package/lib/generated/build-info.js +1 -1
  158. package/lib/help.js +1 -1
  159. package/lib/skills/main.js +1 -1
  160. package/lib/skills/npx-skills-add.js +1 -1
  161. package/lib/telemetry/cli-command-trace.js +1 -1
  162. package/lib/telemetry/cli-help-trace.js +1 -1
  163. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  164. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  165. package/lib/telemetry/send-cli-trace-log.js +1 -1
  166. package/lib/utils/ai_config.js +1 -1
  167. package/lib/utils/apply-jq-filter.js +1 -1
  168. package/lib/utils/cdn-config.js +1 -1
  169. package/lib/utils/check-sdk-version.js +1 -1
  170. package/lib/utils/cli-version-check.js +1 -1
  171. package/lib/utils/cli-version-policy.js +1 -1
  172. package/lib/utils/config.js +1 -1
  173. package/lib/utils/copy-directory.js +1 -1
  174. package/lib/utils/entity-with-id.js +1 -1
  175. package/lib/utils/file-utils.js +1 -1
  176. package/lib/utils/guides-cdn.js +1 -1
  177. package/lib/utils/http-client.js +1 -1
  178. package/lib/utils/is-non-interactive.js +1 -1
  179. package/lib/utils/logger.js +1 -1
  180. package/lib/utils/params.js +1 -1
  181. package/lib/utils/platform.js +1 -1
  182. package/lib/utils/rules-cdn.js +1 -1
  183. package/lib/utils/sleep.js +1 -1
  184. package/lib/utils/template-replacer.js +1 -1
  185. package/lib/utils/version.js +1 -1
  186. package/lib/utils/with-active-cookie.js +1 -1
  187. package/lib/utils/write-cli-side-channel.js +1 -1
  188. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2535eb,_0x29d76a){const _0x5a4917=a172_0x3733,_0x4f0fdc=_0x2535eb();while(!![]){try{const _0x30462d=parseInt(_0x5a4917(0x1bc))/0x1*(-parseInt(_0x5a4917(0x1b5))/0x2)+parseInt(_0x5a4917(0x1c0))/0x3+parseInt(_0x5a4917(0x1c1))/0x4+-parseInt(_0x5a4917(0x1b8))/0x5*(parseInt(_0x5a4917(0x1bb))/0x6)+-parseInt(_0x5a4917(0x1c3))/0x7*(-parseInt(_0x5a4917(0x1b4))/0x8)+-parseInt(_0x5a4917(0x1b2))/0x9*(parseInt(_0x5a4917(0x1b9))/0xa)+-parseInt(_0x5a4917(0x1ba))/0xb*(-parseInt(_0x5a4917(0x1c4))/0xc);if(_0x30462d===_0x29d76a)break;else _0x4f0fdc['push'](_0x4f0fdc['shift']());}catch(_0x21d7b6){_0x4f0fdc['push'](_0x4f0fdc['shift']());}}}(a172_0x3cc0,0x48888));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x40c9b7=a172_0x3733,_0x3c0c5a=getTemplateBaseUrl(),_0x437213=[_0x3c0c5a+'/config.json',_0x3c0c5a+_0x40c9b7(0x1b3)];for(const _0x54981c of _0x437213){try{const _0x5168a4=await fetch(_0x54981c,{'headers':{'Accept':_0x40c9b7(0x1bd)}});if(!_0x5168a4['ok'])continue;const _0x4a55f4=await _0x5168a4['json']();if(!_0x4a55f4[_0x40c9b7(0x1b6)]?.['stableVersion']||!_0x4a55f4[_0x40c9b7(0x1c2)]?.[_0x40c9b7(0x1bf)]?.[_0x40c9b7(0x1be)])continue;return _0x4a55f4;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a172_0x3733(_0x1cdc4a,_0x57a04c){_0x1cdc4a=_0x1cdc4a-0x1b2;const _0x3cc006=a172_0x3cc0();let _0x373356=_0x3cc006[_0x1cdc4a];return _0x373356;}function a172_0x3cc0(){const _0x20ad8b=['2yULKci','cli','now','25przHFQ','750gxlmmZ','212311SqHUAk','200700RIDGWS','535354nvazNK','application/json','stableVersion','node','1448574WKnKPv','850020KWwSpE','sdk','25921fhJNfa','228rZrmQy','43479jwTwcY','/config/index.json','648WuoJlI'];a172_0x3cc0=function(){return _0x20ad8b;};return a172_0x3cc0();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x5f121c=a172_0x3733,_0x260a29=Date[_0x5f121c(0x1b7)]();if(hasCachedConfig){const _0x3ebee2=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x260a29-cacheTime<_0x3ebee2)return cachedConfig;}const _0x5deefb=await fetchCdnConfig();return cachedConfig=_0x5deefb,cacheTime=_0x260a29,hasCachedConfig=!![],_0x5deefb;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xf98c7b,_0x45d9e4){const _0x58b6c0=a172_0x4acb,_0xa47606=_0xf98c7b();while(!![]){try{const _0x1d0140=parseInt(_0x58b6c0(0xc9))/0x1*(-parseInt(_0x58b6c0(0xc3))/0x2)+-parseInt(_0x58b6c0(0xcc))/0x3*(-parseInt(_0x58b6c0(0xc1))/0x4)+parseInt(_0x58b6c0(0xbb))/0x5+-parseInt(_0x58b6c0(0xcb))/0x6*(-parseInt(_0x58b6c0(0xbe))/0x7)+-parseInt(_0x58b6c0(0xbd))/0x8*(-parseInt(_0x58b6c0(0xc2))/0x9)+parseInt(_0x58b6c0(0xc4))/0xa*(parseInt(_0x58b6c0(0xc5))/0xb)+parseInt(_0x58b6c0(0xbc))/0xc*(-parseInt(_0x58b6c0(0xca))/0xd);if(_0x1d0140===_0x45d9e4)break;else _0xa47606['push'](_0xa47606['shift']());}catch(_0x595bdc){_0xa47606['push'](_0xa47606['shift']());}}}(a172_0x3646,0xdbd1f));function a172_0x3646(){const _0x9530c8=['22fEzzrS','node','sdk','cli','1703193bLBFAv','16848RKJPmY','10332312XookHi','4530201PUGMMZ','stableVersion','2290250bNidFH','28068tSmmTh','1711416IRqxXi','7cgOigE','json','now','4hujNYy','9jUrxmt','2KshfIj','8654120wbrfHI'];a172_0x3646=function(){return _0x9530c8;};return a172_0x3646();}function a172_0x4acb(_0x508c84,_0x3c2f8c){_0x508c84=_0x508c84-0xbb;const _0x36460d=a172_0x3646();let _0x4acb3d=_0x36460d[_0x508c84];return _0x4acb3d;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x6a3ee6=a172_0x4acb,_0xe743c4=getTemplateBaseUrl(),_0x21dbfb=[_0xe743c4+'/config.json',_0xe743c4+'/config/index.json'];for(const _0x55540f of _0x21dbfb){try{const _0x5792f7=await fetch(_0x55540f,{'headers':{'Accept':'application/json'}});if(!_0x5792f7['ok'])continue;const _0x57ff89=await _0x5792f7[_0x6a3ee6(0xbf)]();if(!_0x57ff89[_0x6a3ee6(0xc8)]?.[_0x6a3ee6(0xcd)]||!_0x57ff89[_0x6a3ee6(0xc7)]?.[_0x6a3ee6(0xc6)]?.[_0x6a3ee6(0xcd)])continue;return _0x57ff89;}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 _0x5533b7=a172_0x4acb,_0x5680cf=Date[_0x5533b7(0xc0)]();if(hasCachedConfig){const _0x8b5be0=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5680cf-cacheTime<_0x8b5be0)return cachedConfig;}const _0x4a2d14=await fetchCdnConfig();return cachedConfig=_0x4a2d14,cacheTime=_0x5680cf,hasCachedConfig=!![],_0x4a2d14;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a173_0x340762=a173_0x5699;(function(_0x3458eb,_0x26cd90){const _0x5e8f36=a173_0x5699,_0x407b6e=_0x3458eb();while(!![]){try{const _0x24efd8=-parseInt(_0x5e8f36(0x110))/0x1*(parseInt(_0x5e8f36(0xff))/0x2)+-parseInt(_0x5e8f36(0x107))/0x3+-parseInt(_0x5e8f36(0x10d))/0x4+-parseInt(_0x5e8f36(0x118))/0x5*(parseInt(_0x5e8f36(0x10f))/0x6)+-parseInt(_0x5e8f36(0x116))/0x7+-parseInt(_0x5e8f36(0x10b))/0x8*(-parseInt(_0x5e8f36(0x100))/0x9)+-parseInt(_0x5e8f36(0x109))/0xa*(-parseInt(_0x5e8f36(0x11d))/0xb);if(_0x24efd8===_0x26cd90)break;else _0x407b6e['push'](_0x407b6e['shift']());}catch(_0x2f5f69){_0x407b6e['push'](_0x407b6e['shift']());}}}(a173_0xc10e,0xa42dd));import a173_0x32300a from'node:fs';import a173_0x509947 from'node:path';import a173_0x1f19ae from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a173_0x340762(0x102);function isNonNumericVersion(_0x353b7e){const _0x43ac6d=a173_0x340762,_0x4bff45=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4bff45[_0x43ac6d(0x121)](_0x5ad39c=>_0x5ad39c[_0x43ac6d(0x10e)](_0x353b7e));}function getInstalledVersion(_0x4b15d7,_0x2123e8){const _0x5bf7c5=a173_0x340762;try{const _0x11df21=a173_0x509947['join'](_0x4b15d7,_0x5bf7c5(0x120),_0x2123e8,_0x5bf7c5(0x104));if(a173_0x32300a[_0x5bf7c5(0x111)](_0x11df21)){const _0x1b882a=JSON[_0x5bf7c5(0x105)](a173_0x32300a[_0x5bf7c5(0xfe)](_0x11df21,_0x5bf7c5(0x11a)));return _0x1b882a[_0x5bf7c5(0x11f)]||null;}}catch{}return null;}async function getSdkStableVersion(){try{const _0x567066=await getCdnConfig();return _0x567066?.['sdk']?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x56038e=a173_0x340762;try{const _0x2856c8=await getCdnConfig();return _0x2856c8?.[_0x56038e(0x11b)]?.['node']?.[_0x56038e(0x103)]||'@lovrabet/sdk';}catch{return _0x56038e(0x114);}}function a173_0x5699(_0x6873a8,_0x5c2f6e){_0x6873a8=_0x6873a8-0xfd;const _0xc10e73=a173_0xc10e();let _0x5699ad=_0xc10e73[_0x6873a8];return _0x5699ad;}export async function checkSdkVersion(_0x259c28){const _0x302199=a173_0x340762,_0x202cf7=a173_0x509947[_0x302199(0x10a)](_0x259c28,'package.json'),[_0x6560ff,_0x41656b]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x33575e=_0x6560ff||FALLBACK_MIN_SDK_VERSION;if(!a173_0x32300a[_0x302199(0x111)](_0x202cf7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x33575e,'packageName':_0x41656b,'stableVersion':_0x6560ff};try{const _0x207751=JSON['parse'](a173_0x32300a['readFileSync'](_0x202cf7,_0x302199(0x119))),_0x235b1c=_0x207751[_0x302199(0x122)]||{},_0x2d480b=_0x207751[_0x302199(0x117)]||{},_0x24214c=_0x235b1c[_0x41656b]||_0x2d480b[_0x41656b];if(!_0x24214c)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x33575e,'packageName':_0x41656b,'stableVersion':_0x6560ff};let _0x475150=getInstalledVersion(_0x259c28,_0x41656b);!_0x475150&&(_0x475150=_0x24214c);if(isNonNumericVersion(_0x24214c))return{'installed':!![],'version':_0x475150,'needsUpgrade':![],'minVersion':_0x33575e,'packageName':_0x41656b,'stableVersion':_0x6560ff};const _0x1811b6=a173_0x1f19ae[_0x302199(0x112)](_0x475150),_0x485be7=a173_0x1f19ae[_0x302199(0x112)](_0x33575e),_0x1375e2=_0x1811b6&&_0x485be7?a173_0x1f19ae['lt'](_0x1811b6,_0x485be7):![];return{'installed':!![],'version':_0x475150,'needsUpgrade':_0x1375e2,'minVersion':_0x33575e,'packageName':_0x41656b,'stableVersion':_0x6560ff};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x33575e,'packageName':_0x41656b,'stableVersion':_0x6560ff};}}export function checkSdkVersionSync(_0x332caa){const _0x11cc21=a173_0x340762,_0xb96457=a173_0x509947[_0x11cc21(0x10a)](_0x332caa,_0x11cc21(0x104)),_0x353cad=_0x11cc21(0x114);if(!a173_0x32300a[_0x11cc21(0x111)](_0xb96457))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x353cad,'stableVersion':null};try{const _0xd4b90c=JSON[_0x11cc21(0x105)](a173_0x32300a[_0x11cc21(0xfe)](_0xb96457,_0x11cc21(0x119))),_0x3ca5ed=_0xd4b90c[_0x11cc21(0x122)]||{},_0x3e2b9a=_0xd4b90c['devDependencies']||{},_0x2ee484=_0x3ca5ed[_0x353cad]||_0x3e2b9a[_0x353cad];if(!_0x2ee484)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x353cad,'stableVersion':null};let _0x54d5c8=getInstalledVersion(_0x332caa,_0x353cad);!_0x54d5c8&&(_0x54d5c8=_0x2ee484);if(isNonNumericVersion(_0x2ee484))return{'installed':!![],'version':_0x54d5c8,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x353cad,'stableVersion':null};const _0x433b02=a173_0x1f19ae[_0x11cc21(0x112)](_0x54d5c8),_0x2bc160=_0x433b02?a173_0x1f19ae['lt'](_0x433b02,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x54d5c8,'needsUpgrade':_0x2bc160,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x353cad,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x353cad,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3cdcea){const _0x31e11d=a173_0x340762;if(!_0x3cdcea[_0x31e11d(0x11c)])return;const _0x473a15='\x1b[33m',_0xcc8366='\x1b[0m',_0x40fc8e='\x1b[1m',_0x312c9a=_0x3cdcea['packageName']||_0x31e11d(0x114),_0x532582=_0x3cdcea[_0x31e11d(0x113)]||_0x3cdcea[_0x31e11d(0x106)],_0x47718e=_0x31e11d(0x10c)+_0x312c9a+'@'+(_0x532582||_0x31e11d(0x115));console[_0x31e11d(0x101)](),console[_0x31e11d(0x101)](''+_0x473a15+_0x40fc8e+_0x31e11d(0xfd)+_0xcc8366),console[_0x31e11d(0x101)](_0x473a15+_0x31e11d(0x108)+_0x312c9a+'@'+_0x3cdcea[_0x31e11d(0x11f)]+_0xcc8366),console['log'](_0x473a15+'\x20\x20\x20Stable\x20version:\x20'+_0x532582+_0xcc8366),console[_0x31e11d(0x101)](_0x473a15+_0x31e11d(0x11e)+_0x47718e+_0xcc8366),console[_0x31e11d(0x101)]();}function a173_0xc10e(){const _0x250d4e=['849078bdNsNJ','log','1.2.0','packageName','package.json','parse','minVersion','2840298NEGGgQ','\x20\x20\x20Current\x20version:\x20','170CMcmDi','join','112QKtJvQ','npm\x20install\x20','2220732IXgZUM','test','34266TXxoiY','647324kPZBqX','existsSync','coerce','stableVersion','@lovrabet/sdk','latest','321293QuVEgv','devDependencies','325CyHtGj','utf8','utf-8','sdk','needsUpgrade','1241108VJTdxg','\x20\x20\x20Upgrade\x20command:\x20','version','node_modules','some','dependencies','↪\x20SDK\x20update\x20available','readFileSync','2NeirZh'];a173_0xc10e=function(){return _0x250d4e;};return a173_0xc10e();}
1
+ const a173_0x112829=a173_0x428f;(function(_0x1188d7,_0xd363c2){const _0x29b2ed=a173_0x428f,_0x43a8da=_0x1188d7();while(!![]){try{const _0x35fd56=-parseInt(_0x29b2ed(0x79))/0x1*(parseInt(_0x29b2ed(0x85))/0x2)+parseInt(_0x29b2ed(0x9b))/0x3*(-parseInt(_0x29b2ed(0x9d))/0x4)+-parseInt(_0x29b2ed(0x95))/0x5+parseInt(_0x29b2ed(0x8d))/0x6+parseInt(_0x29b2ed(0x87))/0x7*(-parseInt(_0x29b2ed(0x7f))/0x8)+-parseInt(_0x29b2ed(0xa0))/0x9*(parseInt(_0x29b2ed(0x8e))/0xa)+parseInt(_0x29b2ed(0xa2))/0xb;if(_0x35fd56===_0xd363c2)break;else _0x43a8da['push'](_0x43a8da['shift']());}catch(_0x1e2ea2){_0x43a8da['push'](_0x43a8da['shift']());}}}(a173_0x5b65,0x6d3cb));import a173_0x12b9c3 from'node:fs';import a173_0xb80dd3 from'node:path';import a173_0x2cbdc5 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a173_0x112829(0xa1);function isNonNumericVersion(_0x32ac88){const _0x295585=a173_0x112829,_0x44938f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x44938f[_0x295585(0x94)](_0xae6bf6=>_0xae6bf6[_0x295585(0x91)](_0x32ac88));}function getInstalledVersion(_0x547590,_0x27d444){const _0x17bd43=a173_0x112829;try{const _0x5a91c3=a173_0xb80dd3[_0x17bd43(0x86)](_0x547590,_0x17bd43(0x90),_0x27d444,_0x17bd43(0x7e));if(a173_0x12b9c3[_0x17bd43(0x9a)](_0x5a91c3)){const _0x48eadb=JSON['parse'](a173_0x12b9c3[_0x17bd43(0x92)](_0x5a91c3,_0x17bd43(0x9c)));return _0x48eadb[_0x17bd43(0x8a)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xdbf476=a173_0x112829;try{const _0x561adb=await getCdnConfig();return _0x561adb?.[_0xdbf476(0x83)]?.[_0xdbf476(0x7b)]?.[_0xdbf476(0x7d)]||null;}catch{return null;}}function a173_0x5b65(){const _0x5ba7cb=['needsUpgrade','54898GWknjf','latest','node','utf8','stableVersion','package.json','90544xlpCRZ','log','coerce','\x20\x20\x20Current\x20version:\x20','sdk','dependencies','18SvkFVE','join','413fiTgxs','npm\x20install\x20','\x20\x20\x20Stable\x20version:\x20','version','minVersion','\x20\x20\x20Upgrade\x20command:\x20','2418906MqyWlv','20JAKbVQ','packageName','node_modules','test','readFileSync','\x1b[0m','some','3566625BTUxQH','devDependencies','\x1b[1m','@lovrabet/sdk','parse','existsSync','166434jYieHB','utf-8','12ppMQvm','all','\x1b[33m','416763SVxrMc','1.2.0','23963511QUbSjI'];a173_0x5b65=function(){return _0x5ba7cb;};return a173_0x5b65();}function a173_0x428f(_0xbb0ab3,_0x1d3a88){_0xbb0ab3=_0xbb0ab3-0x79;const _0x5b65fa=a173_0x5b65();let _0x428f6b=_0x5b65fa[_0xbb0ab3];return _0x428f6b;}async function getSdkPackageName(){const _0x41900e=a173_0x112829;try{const _0xdaa9fd=await getCdnConfig();return _0xdaa9fd?.[_0x41900e(0x83)]?.[_0x41900e(0x7b)]?.[_0x41900e(0x8f)]||'@lovrabet/sdk';}catch{return _0x41900e(0x98);}}export async function checkSdkVersion(_0x313877){const _0x386c7c=a173_0x112829,_0x152cd7=a173_0xb80dd3[_0x386c7c(0x86)](_0x313877,_0x386c7c(0x7e)),[_0x2bdc34,_0x4dce74]=await Promise[_0x386c7c(0x9e)]([getSdkStableVersion(),getSdkPackageName()]),_0xab7083=_0x2bdc34||FALLBACK_MIN_SDK_VERSION;if(!a173_0x12b9c3[_0x386c7c(0x9a)](_0x152cd7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xab7083,'packageName':_0x4dce74,'stableVersion':_0x2bdc34};try{const _0x5db01c=JSON[_0x386c7c(0x99)](a173_0x12b9c3['readFileSync'](_0x152cd7,_0x386c7c(0x7c))),_0x5cced9=_0x5db01c[_0x386c7c(0x84)]||{},_0x4180de=_0x5db01c[_0x386c7c(0x96)]||{},_0x1b1d62=_0x5cced9[_0x4dce74]||_0x4180de[_0x4dce74];if(!_0x1b1d62)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xab7083,'packageName':_0x4dce74,'stableVersion':_0x2bdc34};let _0x3f82fb=getInstalledVersion(_0x313877,_0x4dce74);!_0x3f82fb&&(_0x3f82fb=_0x1b1d62);if(isNonNumericVersion(_0x1b1d62))return{'installed':!![],'version':_0x3f82fb,'needsUpgrade':![],'minVersion':_0xab7083,'packageName':_0x4dce74,'stableVersion':_0x2bdc34};const _0x2ce612=a173_0x2cbdc5[_0x386c7c(0x81)](_0x3f82fb),_0x49addb=a173_0x2cbdc5['coerce'](_0xab7083),_0x5853a1=_0x2ce612&&_0x49addb?a173_0x2cbdc5['lt'](_0x2ce612,_0x49addb):![];return{'installed':!![],'version':_0x3f82fb,'needsUpgrade':_0x5853a1,'minVersion':_0xab7083,'packageName':_0x4dce74,'stableVersion':_0x2bdc34};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xab7083,'packageName':_0x4dce74,'stableVersion':_0x2bdc34};}}export function checkSdkVersionSync(_0x272dc3){const _0x29215e=a173_0x112829,_0x1603e5=a173_0xb80dd3[_0x29215e(0x86)](_0x272dc3,_0x29215e(0x7e)),_0x4fa1c0=_0x29215e(0x98);if(!a173_0x12b9c3['existsSync'](_0x1603e5))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4fa1c0,'stableVersion':null};try{const _0x5cc17a=JSON[_0x29215e(0x99)](a173_0x12b9c3[_0x29215e(0x92)](_0x1603e5,_0x29215e(0x7c))),_0x1c9ecc=_0x5cc17a[_0x29215e(0x84)]||{},_0x6bf97f=_0x5cc17a[_0x29215e(0x96)]||{},_0xe5248f=_0x1c9ecc[_0x4fa1c0]||_0x6bf97f[_0x4fa1c0];if(!_0xe5248f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4fa1c0,'stableVersion':null};let _0x5bb09f=getInstalledVersion(_0x272dc3,_0x4fa1c0);!_0x5bb09f&&(_0x5bb09f=_0xe5248f);if(isNonNumericVersion(_0xe5248f))return{'installed':!![],'version':_0x5bb09f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4fa1c0,'stableVersion':null};const _0x5950c=a173_0x2cbdc5[_0x29215e(0x81)](_0x5bb09f),_0x57093b=_0x5950c?a173_0x2cbdc5['lt'](_0x5950c,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x5bb09f,'needsUpgrade':_0x57093b,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4fa1c0,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4fa1c0,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x25d97c){const _0xacacbe=a173_0x112829;if(!_0x25d97c[_0xacacbe(0xa3)])return;const _0x7fad08=_0xacacbe(0x9f),_0x5a4a87=_0xacacbe(0x93),_0x3117b9=_0xacacbe(0x97),_0x53806b=_0x25d97c[_0xacacbe(0x8f)]||_0xacacbe(0x98),_0x23c43e=_0x25d97c[_0xacacbe(0x7d)]||_0x25d97c[_0xacacbe(0x8b)],_0xd8959a=_0xacacbe(0x88)+_0x53806b+'@'+(_0x23c43e||_0xacacbe(0x7a));console[_0xacacbe(0x80)](),console['log'](''+_0x7fad08+_0x3117b9+'↪\x20SDK\x20update\x20available'+_0x5a4a87),console[_0xacacbe(0x80)](_0x7fad08+_0xacacbe(0x82)+_0x53806b+'@'+_0x25d97c[_0xacacbe(0x8a)]+_0x5a4a87),console[_0xacacbe(0x80)](_0x7fad08+_0xacacbe(0x89)+_0x23c43e+_0x5a4a87),console['log'](_0x7fad08+_0xacacbe(0x8c)+_0xd8959a+_0x5a4a87),console[_0xacacbe(0x80)]();}
@@ -1 +1 @@
1
- (function(_0x56fadb,_0x153747){const _0x4ffacc=a174_0xc8bf,_0x131cbf=_0x56fadb();while(!![]){try{const _0x34538d=-parseInt(_0x4ffacc(0x1a0))/0x1*(parseInt(_0x4ffacc(0x1b7))/0x2)+parseInt(_0x4ffacc(0x19b))/0x3*(parseInt(_0x4ffacc(0x1b5))/0x4)+parseInt(_0x4ffacc(0x1b2))/0x5+-parseInt(_0x4ffacc(0x1b4))/0x6*(parseInt(_0x4ffacc(0x199))/0x7)+parseInt(_0x4ffacc(0x1af))/0x8+parseInt(_0x4ffacc(0x19c))/0x9+parseInt(_0x4ffacc(0x1ab))/0xa*(-parseInt(_0x4ffacc(0x19d))/0xb);if(_0x34538d===_0x153747)break;else _0x131cbf['push'](_0x131cbf['shift']());}catch(_0x43e669){_0x131cbf['push'](_0x131cbf['shift']());}}}(a174_0x4723,0x93df6));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a174_0x13072c from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a174_0xc8bf(_0xe680e6,_0x376fff){_0xe680e6=_0xe680e6-0x194;const _0x4723d3=a174_0x4723();let _0xc8bffb=_0x4723d3[_0xe680e6];return _0xc8bffb;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x368a1f){const _0xb84ec8=a174_0xc8bf,_0x5bcb3d=_0x368a1f[_0xb84ec8(0x194)]||_0xb84ec8(0x196);return _0xb84ec8(0x198)+NPM_PACKAGE_NAME+'@'+_0x5bcb3d;}function getCurrentCliVersion(){const _0x2f58a9=a174_0xc8bf;try{const _0x14a28c=fileURLToPath(import.meta.url),_0x412509=resolve(dirname(_0x14a28c),'../..'),_0x4b3ac5=resolve(_0x412509,'package.json'),_0x492619=JSON['parse'](readFileSync(_0x4b3ac5,_0x2f58a9(0x1b1)));return _0x492619[_0x2f58a9(0x1a4)]||'1.0.0';}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x5c83b3=a174_0xc8bf,_0x140f7d=getCurrentCliVersion(),_0x2d6134=await getCliVersionPolicy(),_0x47a9e9=_0x2d6134?.[_0x5c83b3(0x194)]||null,_0x1f1909=_0x2d6134?.[_0x5c83b3(0x1aa)]||null;let _0x5514a1=![],_0x5ca2ca=![];const _0x16e5a1=a174_0x13072c[_0x5c83b3(0x1b0)](_0x140f7d);if(_0x16e5a1&&_0x47a9e9)try{const _0x1adf33=a174_0x13072c[_0x5c83b3(0x1b0)](_0x47a9e9);if(_0x1adf33)_0x5514a1=a174_0x13072c['lt'](_0x16e5a1,_0x1adf33);}catch{}if(_0x16e5a1&&_0x1f1909)try{const _0x126719=a174_0x13072c[_0x5c83b3(0x1b0)](_0x1f1909);if(_0x126719)_0x5ca2ca=a174_0x13072c['lt'](_0x16e5a1,_0x126719);}catch{}return _0x5ca2ca&&(_0x5514a1=!![]),{'currentVersion':_0x140f7d,'stableVersion':_0x47a9e9,'minimumVersion':_0x1f1909,'needsUpgrade':_0x5514a1,'belowMinimum':_0x5ca2ca,'isPreRelease':![],'upgradeMessage':_0x2d6134?.[_0x5c83b3(0x1a6)],'minimumVersionMessage':_0x2d6134?.[_0x5c83b3(0x1a2)]};}function a174_0x4723(){const _0x9b2ef3=['36UZKfuq','log','146LLKyCa','\x1b[33m','stableVersion','Upgrade\x20command:\x20','latest','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20-g\x20','7cfOmXs','\x1b[31m','240591npRGYj','2151144XGgQGe','142538dLODAL','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[0m','2603FcZYnY','filter','minimumVersionMessage','↪\x20New\x20version\x20available','version','currentVersion','upgradeMessage','\x20\x20\x20Current\x20CLI\x20version:\x20','join','belowMinimum','minimumVersion','830LybCEc','\x1b[1m','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20','4718488VJGvLr','coerce','utf-8','3478180uTSrww','validation','2250102CKkFjH'];a174_0x4723=function(){return _0x9b2ef3;};return a174_0x4723();}export function printCliUpgradeWarning(_0x3bf230){const _0x514377=a174_0xc8bf;if(!_0x3bf230['needsUpgrade']&&!_0x3bf230['belowMinimum'])return;const _0x28f70f=_0x514377(0x19a),_0x1ec071=_0x514377(0x1b8),_0x5c5d79=_0x514377(0x19f),_0x303e9f=_0x514377(0x1ac),_0x1d29c9=getCliUpgradeCommand(_0x3bf230);console['log'](),_0x3bf230[_0x514377(0x1a9)]?(console['log'](''+_0x28f70f+_0x303e9f+_0x514377(0x19e)+_0x5c5d79),console[_0x514377(0x1b6)](_0x28f70f+_0x514377(0x1a7)+_0x3bf230['currentVersion']+_0x5c5d79),_0x3bf230[_0x514377(0x1aa)]&&console[_0x514377(0x1b6)](_0x28f70f+'\x20\x20\x20Minimum\x20required:\x20'+_0x3bf230[_0x514377(0x1aa)]+_0x5c5d79),_0x3bf230[_0x514377(0x194)]&&_0x3bf230['stableVersion']!==_0x3bf230[_0x514377(0x1aa)]&&console['log'](_0x28f70f+'\x20\x20\x20Recommended\x20stable:\x20'+_0x3bf230[_0x514377(0x194)]+_0x5c5d79),_0x3bf230[_0x514377(0x1a2)]&&console['log'](_0x28f70f+_0x514377(0x1ae)+_0x3bf230[_0x514377(0x1a2)]+_0x5c5d79),console[_0x514377(0x1b6)](_0x28f70f+_0x514377(0x197)+_0x1d29c9+_0x5c5d79)):(console['log'](''+_0x1ec071+_0x303e9f+_0x514377(0x1a3)+_0x5c5d79),console['log'](_0x1ec071+_0x514377(0x1a7)+_0x3bf230['currentVersion']+_0x5c5d79),console[_0x514377(0x1b6)](_0x1ec071+_0x514377(0x1ad)+_0x3bf230[_0x514377(0x194)]+_0x5c5d79),_0x3bf230['upgradeMessage']&&console[_0x514377(0x1b6)](_0x1ec071+_0x514377(0x1ae)+_0x3bf230[_0x514377(0x1a6)]+_0x5c5d79),console[_0x514377(0x1b6)](_0x1ec071+_0x514377(0x197)+_0x1d29c9+_0x5c5d79)),console[_0x514377(0x1b6)]();}export function assertCliVersionSupported(_0x4a5ad7){const _0x948ecb=a174_0xc8bf;if(!_0x4a5ad7[_0x948ecb(0x1a9)])return;const _0x4c2de7=[_0x4a5ad7[_0x948ecb(0x1a2)],'Current\x20version:\x20'+_0x4a5ad7[_0x948ecb(0x1a5)],_0x4a5ad7[_0x948ecb(0x1aa)]?'Minimum\x20required:\x20'+_0x4a5ad7['minimumVersion']:null,_0x948ecb(0x195)+getCliUpgradeCommand(_0x4a5ad7)][_0x948ecb(0x1a1)](Boolean)[_0x948ecb(0x1a8)]('\x0a');throw CliErrors[_0x948ecb(0x1b3)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x4c2de7);}
1
+ (function(_0x404e83,_0x331a6c){const _0x1575cc=a174_0x478d,_0x5302dc=_0x404e83();while(!![]){try{const _0x3f9ad0=-parseInt(_0x1575cc(0x136))/0x1+-parseInt(_0x1575cc(0x129))/0x2+parseInt(_0x1575cc(0x12c))/0x3*(parseInt(_0x1575cc(0x144))/0x4)+-parseInt(_0x1575cc(0x13a))/0x5*(-parseInt(_0x1575cc(0x149))/0x6)+parseInt(_0x1575cc(0x14b))/0x7+parseInt(_0x1575cc(0x14e))/0x8+-parseInt(_0x1575cc(0x131))/0x9;if(_0x3f9ad0===_0x331a6c)break;else _0x5302dc['push'](_0x5302dc['shift']());}catch(_0xb6a88){_0x5302dc['push'](_0x5302dc['shift']());}}}(a174_0x3699,0xf2b4f));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a174_0x4834db from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a174_0x3699(){const _0x2d2be8=['Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','\x20\x20\x20Current\x20CLI\x20version:\x20','join','package.json','24pumxAC','npm\x20install\x20-g\x20','../..','\x20\x20\x20','\x20\x20\x20Recommended\x20stable:\x20','258iMDjPs','minimumVersionMessage','4857328HyAelH','belowMinimum','\x20\x20\x20Stable\x20version:\x20','828544AoAmcX','\x20\x20\x20Upgrade\x20command:\x20','stableVersion','658846IIcMte','version','filter','454521HidZjO','currentVersion','log','1.0.0','upgradeMessage','3124170elaBSJ','\x1b[0m','needsUpgrade','\x1b[31m','utf-8','88423eAAsVN','parse','Current\x20version:\x20','\x20\x20\x20Minimum\x20required:\x20','6115ATBnxo','Minimum\x20required:\x20','minimumVersion','validation'];a174_0x3699=function(){return _0x2d2be8;};return a174_0x3699();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a174_0x478d(_0x2fe426,_0xddf772){_0x2fe426=_0x2fe426-0x128;const _0x369967=a174_0x3699();let _0x478dc7=_0x369967[_0x2fe426];return _0x478dc7;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x488484){const _0x23c915=a174_0x478d,_0x303154=_0x488484[_0x23c915(0x128)]||'latest';return _0x23c915(0x145)+NPM_PACKAGE_NAME+'@'+_0x303154;}function getCurrentCliVersion(){const _0x237c6a=a174_0x478d;try{const _0x3eef30=fileURLToPath(import.meta.url),_0xa8fa7b=resolve(dirname(_0x3eef30),_0x237c6a(0x146)),_0x50273b=resolve(_0xa8fa7b,_0x237c6a(0x143)),_0x19e246=JSON[_0x237c6a(0x137)](readFileSync(_0x50273b,_0x237c6a(0x135)));return _0x19e246[_0x237c6a(0x12a)]||_0x237c6a(0x12f);}catch{return _0x237c6a(0x12f);}}export async function checkCliVersion(){const _0x38b08d=a174_0x478d,_0x4e24b0=getCurrentCliVersion(),_0x57321b=await getCliVersionPolicy(),_0x22d1ca=_0x57321b?.[_0x38b08d(0x128)]||null,_0x32c258=_0x57321b?.[_0x38b08d(0x13c)]||null;let _0x563b59=![],_0x3b109f=![];const _0x6072f=a174_0x4834db['coerce'](_0x4e24b0);if(_0x6072f&&_0x22d1ca)try{const _0x2b245c=a174_0x4834db['coerce'](_0x22d1ca);if(_0x2b245c)_0x563b59=a174_0x4834db['lt'](_0x6072f,_0x2b245c);}catch{}if(_0x6072f&&_0x32c258)try{const _0x44345d=a174_0x4834db['coerce'](_0x32c258);if(_0x44345d)_0x3b109f=a174_0x4834db['lt'](_0x6072f,_0x44345d);}catch{}return _0x3b109f&&(_0x563b59=!![]),{'currentVersion':_0x4e24b0,'stableVersion':_0x22d1ca,'minimumVersion':_0x32c258,'needsUpgrade':_0x563b59,'belowMinimum':_0x3b109f,'isPreRelease':![],'upgradeMessage':_0x57321b?.['upgradeMessage'],'minimumVersionMessage':_0x57321b?.[_0x38b08d(0x14a)]};}export function printCliUpgradeWarning(_0x4fc28f){const _0x143b37=a174_0x478d;if(!_0x4fc28f[_0x143b37(0x133)]&&!_0x4fc28f[_0x143b37(0x14c)])return;const _0x37eacb=_0x143b37(0x134),_0x404eed=_0x143b37(0x140),_0x49d722=_0x143b37(0x132),_0x192d22='\x1b[1m',_0xfd2a2d=getCliUpgradeCommand(_0x4fc28f);console[_0x143b37(0x12e)](),_0x4fc28f[_0x143b37(0x14c)]?(console[_0x143b37(0x12e)](''+_0x37eacb+_0x192d22+_0x143b37(0x13f)+_0x49d722),console[_0x143b37(0x12e)](_0x37eacb+_0x143b37(0x141)+_0x4fc28f[_0x143b37(0x12d)]+_0x49d722),_0x4fc28f['minimumVersion']&&console[_0x143b37(0x12e)](_0x37eacb+_0x143b37(0x139)+_0x4fc28f[_0x143b37(0x13c)]+_0x49d722),_0x4fc28f[_0x143b37(0x128)]&&_0x4fc28f[_0x143b37(0x128)]!==_0x4fc28f[_0x143b37(0x13c)]&&console[_0x143b37(0x12e)](_0x37eacb+_0x143b37(0x148)+_0x4fc28f[_0x143b37(0x128)]+_0x49d722),_0x4fc28f[_0x143b37(0x14a)]&&console['log'](_0x37eacb+'\x20\x20\x20'+_0x4fc28f[_0x143b37(0x14a)]+_0x49d722),console[_0x143b37(0x12e)](_0x37eacb+_0x143b37(0x14f)+_0xfd2a2d+_0x49d722)):(console[_0x143b37(0x12e)](''+_0x404eed+_0x192d22+'↪\x20New\x20version\x20available'+_0x49d722),console[_0x143b37(0x12e)](_0x404eed+_0x143b37(0x141)+_0x4fc28f[_0x143b37(0x12d)]+_0x49d722),console[_0x143b37(0x12e)](_0x404eed+_0x143b37(0x14d)+_0x4fc28f[_0x143b37(0x128)]+_0x49d722),_0x4fc28f[_0x143b37(0x130)]&&console['log'](_0x404eed+_0x143b37(0x147)+_0x4fc28f[_0x143b37(0x130)]+_0x49d722),console[_0x143b37(0x12e)](_0x404eed+_0x143b37(0x14f)+_0xfd2a2d+_0x49d722)),console[_0x143b37(0x12e)]();}export function assertCliVersionSupported(_0x36106f){const _0x327eb3=a174_0x478d;if(!_0x36106f['belowMinimum'])return;const _0x2fb688=[_0x36106f[_0x327eb3(0x14a)],_0x327eb3(0x138)+_0x36106f[_0x327eb3(0x12d)],_0x36106f[_0x327eb3(0x13c)]?_0x327eb3(0x13b)+_0x36106f[_0x327eb3(0x13c)]:null,_0x327eb3(0x13e)+getCliUpgradeCommand(_0x36106f)][_0x327eb3(0x12b)](Boolean)[_0x327eb3(0x142)]('\x0a');throw CliErrors[_0x327eb3(0x13d)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x2fb688);}
@@ -1 +1 @@
1
- (function(_0x4e9296,_0x57ba1f){const _0x5d5c30=a175_0x4c9f,_0x5cbc23=_0x4e9296();while(!![]){try{const _0x10e8b8=parseInt(_0x5d5c30(0x180))/0x1*(-parseInt(_0x5d5c30(0x17d))/0x2)+parseInt(_0x5d5c30(0x185))/0x3+parseInt(_0x5d5c30(0x174))/0x4+parseInt(_0x5d5c30(0x173))/0x5*(-parseInt(_0x5d5c30(0x186))/0x6)+-parseInt(_0x5d5c30(0x184))/0x7*(parseInt(_0x5d5c30(0x181))/0x8)+parseInt(_0x5d5c30(0x178))/0x9*(-parseInt(_0x5d5c30(0x17f))/0xa)+parseInt(_0x5d5c30(0x182))/0xb;if(_0x10e8b8===_0x57ba1f)break;else _0x5cbc23['push'](_0x5cbc23['shift']());}catch(_0x11567e){_0x5cbc23['push'](_0x5cbc23['shift']());}}}(a175_0x5e9b,0xae831));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 a175_0x4c9f(_0x2ff06,_0x43ed29){_0x2ff06=_0x2ff06-0x170;const _0x5e9b16=a175_0x5e9b();let _0x4c9fc3=_0x5e9b16[_0x2ff06];return _0x4c9fc3;}function a175_0x5e9b(){const _0x5234ad=['38406819IPEiLG','abort','762034zkDMHr','917367KrZHTo','1099086zbaLyD','now','signal','json','25SWviem','2261452UvCaYX','length','trim','object','9VDJHYT','application/json','cli','upgradeMessage','latestVersion','20MUiYDA','stableVersion','4150390wztdoX','90173JbdslS','104ufAyOH'];a175_0x5e9b=function(){return _0x5234ad;};return a175_0x5e9b();}function pickString(_0x59e31d){const _0x3df6ae=a175_0x4c9f;return typeof _0x59e31d==='string'&&_0x59e31d['trim']()[_0x3df6ae(0x175)]>0x0?_0x59e31d[_0x3df6ae(0x176)]():null;}function normalizeCliVersionPolicy(_0x24e3bc){const _0x53c678=a175_0x4c9f;if(!_0x24e3bc||typeof _0x24e3bc!==_0x53c678(0x177))return null;const _0x5ab8ac=_0x24e3bc,_0x1462ef=_0x5ab8ac['cli']&&typeof _0x5ab8ac[_0x53c678(0x17a)]===_0x53c678(0x177)?_0x5ab8ac[_0x53c678(0x17a)]:_0x5ab8ac,_0x276450=pickString(_0x1462ef[_0x53c678(0x17e)])||pickString(_0x1462ef[_0x53c678(0x17c)])||pickString(_0x1462ef['recommendedVersion']),_0x504125=pickString(_0x1462ef['minimumVersion'])||pickString(_0x1462ef['minVersion']);if(!_0x276450&&!_0x504125)return null;return{'stableVersion':_0x276450,'minimumVersion':_0x504125,'upgradeMessage':pickString(_0x1462ef[_0x53c678(0x17b)])||undefined,'minimumVersionMessage':pickString(_0x1462ef['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x1367f5=a175_0x4c9f,_0x5eb1ff=new AbortController(),_0xddb9da=setTimeout(()=>_0x5eb1ff[_0x1367f5(0x183)](),FETCH_TIMEOUT_MS);try{const _0x7f30df=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1367f5(0x179)},'signal':_0x5eb1ff[_0x1367f5(0x171)]});if(!_0x7f30df['ok'])return null;const _0x337503=await _0x7f30df[_0x1367f5(0x172)]();return normalizeCliVersionPolicy(_0x337503);}catch{return null;}finally{clearTimeout(_0xddb9da);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x20b231=a175_0x4c9f,_0x428be2=Date[_0x20b231(0x170)]();if(hasCachedPolicy){const _0x11430d=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x428be2-cacheTime<_0x11430d)return cachedPolicy;}const _0x39ce46=await fetchCliVersionPolicy();return cachedPolicy=_0x39ce46,cacheTime=_0x428be2,hasCachedPolicy=!![],_0x39ce46;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a175_0x3b56(_0xca4962,_0x2174d8){_0xca4962=_0xca4962-0x8a;const _0xbb579d=a175_0xbb57();let _0x3b566e=_0xbb579d[_0xca4962];return _0x3b566e;}function a175_0xbb57(){const _0x2c545c=['stableVersion','93DJmChj','3154zjNums','signal','1044284IxYmII','cli','2930scUZHE','9jucXFv','application/json','trim','json','length','2207224LgVjaO','21siQzGk','46490lYXwts','recommendedVersion','now','object','upgradeMessage','11588616sxdVzO','7403rlnzpw','latestVersion','324OXYmaq','minVersion','34362744gKVXIf'];a175_0xbb57=function(){return _0x2c545c;};return a175_0xbb57();}(function(_0x481f97,_0x594d92){const _0x213180=a175_0x3b56,_0x2f209c=_0x481f97();while(!![]){try{const _0x1e4000=parseInt(_0x213180(0x8c))/0x1*(-parseInt(_0x213180(0x8d))/0x2)+parseInt(_0x213180(0x92))/0x3*(-parseInt(_0x213180(0x8f))/0x4)+-parseInt(_0x213180(0x99))/0x5*(parseInt(_0x213180(0xa1))/0x6)+parseInt(_0x213180(0x98))/0x7*(parseInt(_0x213180(0x97))/0x8)+-parseInt(_0x213180(0x9e))/0x9+-parseInt(_0x213180(0x91))/0xa*(parseInt(_0x213180(0x9f))/0xb)+parseInt(_0x213180(0x8a))/0xc;if(_0x1e4000===_0x594d92)break;else _0x2f209c['push'](_0x2f209c['shift']());}catch(_0x144855){_0x2f209c['push'](_0x2f209c['shift']());}}}(a175_0xbb57,0xbd15c));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(_0x313e4f){const _0x3dbd11=a175_0x3b56;return typeof _0x313e4f==='string'&&_0x313e4f[_0x3dbd11(0x94)]()[_0x3dbd11(0x96)]>0x0?_0x313e4f['trim']():null;}function normalizeCliVersionPolicy(_0x2e6334){const _0x495f6f=a175_0x3b56;if(!_0x2e6334||typeof _0x2e6334!==_0x495f6f(0x9c))return null;const _0x570e6e=_0x2e6334,_0x141e9f=_0x570e6e[_0x495f6f(0x90)]&&typeof _0x570e6e['cli']===_0x495f6f(0x9c)?_0x570e6e[_0x495f6f(0x90)]:_0x570e6e,_0x5415b9=pickString(_0x141e9f[_0x495f6f(0x8b)])||pickString(_0x141e9f[_0x495f6f(0xa0)])||pickString(_0x141e9f[_0x495f6f(0x9a)]),_0x308cb9=pickString(_0x141e9f['minimumVersion'])||pickString(_0x141e9f[_0x495f6f(0xa2)]);if(!_0x5415b9&&!_0x308cb9)return null;return{'stableVersion':_0x5415b9,'minimumVersion':_0x308cb9,'upgradeMessage':pickString(_0x141e9f[_0x495f6f(0x9d)])||undefined,'minimumVersionMessage':pickString(_0x141e9f['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x4f76b2=a175_0x3b56,_0x58fa45=new AbortController(),_0x524ae7=setTimeout(()=>_0x58fa45['abort'](),FETCH_TIMEOUT_MS);try{const _0x2ebc14=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4f76b2(0x93)},'signal':_0x58fa45[_0x4f76b2(0x8e)]});if(!_0x2ebc14['ok'])return null;const _0xb195df=await _0x2ebc14[_0x4f76b2(0x95)]();return normalizeCliVersionPolicy(_0xb195df);}catch{return null;}finally{clearTimeout(_0x524ae7);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x1b2c76=a175_0x3b56,_0x55cca2=Date[_0x1b2c76(0x9b)]();if(hasCachedPolicy){const _0xe39b41=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x55cca2-cacheTime<_0xe39b41)return cachedPolicy;}const _0x4e86bf=await fetchCliVersionPolicy();return cachedPolicy=_0x4e86bf,cacheTime=_0x55cca2,hasCachedPolicy=!![],_0x4e86bf;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a176_0x8584bc=a176_0x16ea;(function(_0x42e3ae,_0x5d6b7d){const _0x19b07e=a176_0x16ea,_0x3fbc25=_0x42e3ae();while(!![]){try{const _0x3f82b3=-parseInt(_0x19b07e(0x184))/0x1+parseInt(_0x19b07e(0x187))/0x2+-parseInt(_0x19b07e(0x180))/0x3+-parseInt(_0x19b07e(0x18a))/0x4*(-parseInt(_0x19b07e(0x182))/0x5)+parseInt(_0x19b07e(0x185))/0x6+parseInt(_0x19b07e(0x188))/0x7*(parseInt(_0x19b07e(0x186))/0x8)+parseInt(_0x19b07e(0x18b))/0x9*(-parseInt(_0x19b07e(0x181))/0xa);if(_0x3f82b3===_0x5d6b7d)break;else _0x3fbc25['push'](_0x3fbc25['shift']());}catch(_0x2bc121){_0x3fbc25['push'](_0x3fbc25['shift']());}}}(a176_0x1c43,0x46a98));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a176_0x1547a8,getMultiAppConfigs as a176_0x1d3e37,getTemplateBaseUrl as a176_0x4ea94d}from'../context.js';function a176_0x1c43(){const _0x439ef1=['2619048ONYKvC','147416sOUZpu','357962QqwHUJ','133aqzjUU','project','300260UDbBHO','999ZPizaR','string','912639bbdKdq','27460XNyavB','5kznAfo','env','142216YCayXL'];a176_0x1c43=function(){return _0x439ef1;};return a176_0x1c43();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xd0d8d0){const _0x2609b2=a176_0x16ea,_0x323c1f=readRawConfig(_0xd0d8d0);return _0x323c1f[_0x2609b2(0x183)]&&typeof _0x323c1f[_0x2609b2(0x183)]===_0x2609b2(0x17f)&&initEnv(_0x323c1f[_0x2609b2(0x183)]),_0x323c1f;}function a176_0x16ea(_0x23a20d,_0x791dca){_0x23a20d=_0x23a20d-0x17f;const _0x1c43bd=a176_0x1c43();let _0x16ea78=_0x1c43bd[_0x23a20d];return _0x16ea78;}export function getConfigAppCode(){return a176_0x1547a8();}export function getMultiAppConfigs(_0x28b00a=a176_0x8584bc(0x189)){return a176_0x1d3e37(_0x28b00a);}export function getTemplateBaseUrl(){return a176_0x4ea94d();}
1
+ const a176_0x582d33=a176_0x5820;(function(_0x10a8b8,_0x56c71f){const _0x480ce0=a176_0x5820,_0x5b3b86=_0x10a8b8();while(!![]){try{const _0x197e32=-parseInt(_0x480ce0(0x96))/0x1+-parseInt(_0x480ce0(0x9d))/0x2*(parseInt(_0x480ce0(0xa1))/0x3)+-parseInt(_0x480ce0(0x97))/0x4+-parseInt(_0x480ce0(0x9b))/0x5*(-parseInt(_0x480ce0(0xa0))/0x6)+-parseInt(_0x480ce0(0x99))/0x7*(-parseInt(_0x480ce0(0x9c))/0x8)+-parseInt(_0x480ce0(0x95))/0x9+-parseInt(_0x480ce0(0x94))/0xa*(-parseInt(_0x480ce0(0x9f))/0xb);if(_0x197e32===_0x56c71f)break;else _0x5b3b86['push'](_0x5b3b86['shift']());}catch(_0x2fdc37){_0x5b3b86['push'](_0x5b3b86['shift']());}}}(a176_0x1157,0x4be41));function a176_0x5820(_0x517be4,_0x45a4ae){_0x517be4=_0x517be4-0x94;const _0x1157fc=a176_0x1157();let _0x5820fc=_0x1157fc[_0x517be4];return _0x5820fc;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a176_0x544751,getMultiAppConfigs as a176_0x418b05,getTemplateBaseUrl as a176_0x269b35}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x2494e8){const _0x4a113b=a176_0x5820,_0x37c55d=readRawConfig(_0x2494e8);return _0x37c55d['env']&&typeof _0x37c55d[_0x4a113b(0x98)]===_0x4a113b(0x9a)&&initEnv(_0x37c55d[_0x4a113b(0x98)]),_0x37c55d;}export function getConfigAppCode(){return a176_0x544751();}function a176_0x1157(){const _0x169ddf=['project','1617264vCgarh','6tlCigQ','17469EqwDKt','60LxgGqh','4402683tYLdhd','98738RIaFiv','1825492PJosDV','env','2317WrZieD','string','2702465IsnACu','7376OpyLeE','128MfIhyz'];a176_0x1157=function(){return _0x169ddf;};return a176_0x1157();}export function getMultiAppConfigs(_0x111798=a176_0x582d33(0x9e)){return a176_0x418b05(_0x111798);}export function getTemplateBaseUrl(){return a176_0x269b35();}
@@ -1 +1 @@
1
- (function(_0x3fda8b,_0x27af7d){const _0x47a0d9=a177_0x1dc2,_0x379812=_0x3fda8b();while(!![]){try{const _0x7239cf=parseInt(_0x47a0d9(0xee))/0x1+-parseInt(_0x47a0d9(0xf6))/0x2+-parseInt(_0x47a0d9(0xf3))/0x3*(-parseInt(_0x47a0d9(0xec))/0x4)+-parseInt(_0x47a0d9(0xe8))/0x5+-parseInt(_0x47a0d9(0xef))/0x6*(-parseInt(_0x47a0d9(0xea))/0x7)+-parseInt(_0x47a0d9(0xf5))/0x8+-parseInt(_0x47a0d9(0xed))/0x9*(-parseInt(_0x47a0d9(0xf0))/0xa);if(_0x7239cf===_0x27af7d)break;else _0x379812['push'](_0x379812['shift']());}catch(_0x287e6b){_0x379812['push'](_0x379812['shift']());}}}(a177_0x51e9,0x3870a));import a177_0x32556c from'node:path';import a177_0x5c885c from'node:fs';export async function copyDirectory(_0x2893da,_0x2f66c8){const _0x3fc941=a177_0x1dc2;try{const _0x22f7a4=a177_0x5c885c['readdirSync'](_0x2893da,{'withFileTypes':!![]});a177_0x5c885c[_0x3fc941(0xf2)](_0x2f66c8,{'recursive':!![]});for(const _0x13e113 of _0x22f7a4){const _0x5d1211=a177_0x32556c[_0x3fc941(0xf1)](_0x2893da,_0x13e113[_0x3fc941(0xf4)]),_0x116937=a177_0x32556c[_0x3fc941(0xf1)](_0x2f66c8,_0x13e113[_0x3fc941(0xf4)]);_0x13e113[_0x3fc941(0xeb)]()?await copyDirectory(_0x5d1211,_0x116937):a177_0x5c885c['copyFileSync'](_0x5d1211,_0x116937);}}catch(_0xbeb5e0){console['error'](_0x3fc941(0xe9),_0xbeb5e0);}}function a177_0x1dc2(_0x2d402e,_0x347266){_0x2d402e=_0x2d402e-0xe8;const _0x51e9fe=a177_0x51e9();let _0x1dc261=_0x51e9fe[_0x2d402e];return _0x1dc261;}function a177_0x51e9(){const _0x585bbe=['294uoIbuJ','isDirectory','1790996UwNDKu','1829196zbeMiX','169172HadGBC','31254zkYmSz','10XJmUBc','join','mkdirSync','3oxfwFl','name','3433312OmFNGQ','733222NEZKfG','59950kJwgUR','复制目录时出错:'];a177_0x51e9=function(){return _0x585bbe;};return a177_0x51e9();}
1
+ (function(_0x4ca734,_0x41a4a6){const _0x17df56=a177_0x644f,_0x493452=_0x4ca734();while(!![]){try{const _0x2186d6=parseInt(_0x17df56(0xec))/0x1+parseInt(_0x17df56(0xea))/0x2*(parseInt(_0x17df56(0xe0))/0x3)+parseInt(_0x17df56(0xdf))/0x4*(parseInt(_0x17df56(0xe7))/0x5)+parseInt(_0x17df56(0xe6))/0x6*(parseInt(_0x17df56(0xe9))/0x7)+parseInt(_0x17df56(0xeb))/0x8*(parseInt(_0x17df56(0xe1))/0x9)+parseInt(_0x17df56(0xee))/0xa+parseInt(_0x17df56(0xe2))/0xb*(-parseInt(_0x17df56(0xdc))/0xc);if(_0x2186d6===_0x41a4a6)break;else _0x493452['push'](_0x493452['shift']());}catch(_0x584e4b){_0x493452['push'](_0x493452['shift']());}}}(a177_0x1ba1,0x419d0));function a177_0x644f(_0x422eb1,_0x410b12){_0x422eb1=_0x422eb1-0xdc;const _0x1ba1ac=a177_0x1ba1();let _0x644f1e=_0x1ba1ac[_0x422eb1];return _0x644f1e;}function a177_0x1ba1(){const _0x1154f5=['186591ywXQXS','复制目录时出错:','1566560sKzndj','24tvFCLq','join','error','484uDmhCr','993LzjWRQ','286398qZAMmN','3536324erXQuA','isDirectory','name','mkdirSync','1946988lyqGfE','1375fYcBiq','copyFileSync','7LXEMsT','504KdROle','32bEsJby'];a177_0x1ba1=function(){return _0x1154f5;};return a177_0x1ba1();}import a177_0x44a7fa from'node:path';import a177_0x1c2868 from'node:fs';export async function copyDirectory(_0x373696,_0x4c7996){const _0x15567c=a177_0x644f;try{const _0x3d3d14=a177_0x1c2868['readdirSync'](_0x373696,{'withFileTypes':!![]});a177_0x1c2868[_0x15567c(0xe5)](_0x4c7996,{'recursive':!![]});for(const _0x10a36c of _0x3d3d14){const _0x3dcd94=a177_0x44a7fa[_0x15567c(0xdd)](_0x373696,_0x10a36c[_0x15567c(0xe4)]),_0x2434cd=a177_0x44a7fa[_0x15567c(0xdd)](_0x4c7996,_0x10a36c['name']);_0x10a36c[_0x15567c(0xe3)]()?await copyDirectory(_0x3dcd94,_0x2434cd):a177_0x1c2868[_0x15567c(0xe8)](_0x3dcd94,_0x2434cd);}}catch(_0x475827){console[_0x15567c(0xde)](_0x15567c(0xed),_0x475827);}}
@@ -1 +1 @@
1
- function a178_0x37ad(){const _0x4fa754=['1996920YJTrTm','64AuvTtI','number','24EKEjKm','221148MGGWOw','object','193790vqkDBY','4044294sJiJca','string','7345429gpmthr','isFinite','trim','135099OikCeq','16085286OrkDVZ'];a178_0x37ad=function(){return _0x4fa754;};return a178_0x37ad();}(function(_0xae23b0,_0xaf3ca7){const _0x53f0d5=a178_0x52f7,_0x58b96c=_0xae23b0();while(!![]){try{const _0x1f31f7=parseInt(_0x53f0d5(0x124))/0x1+-parseInt(_0x53f0d5(0x123))/0x2*(parseInt(_0x53f0d5(0x11e))/0x3)+-parseInt(_0x53f0d5(0x121))/0x4*(-parseInt(_0x53f0d5(0x126))/0x5)+-parseInt(_0x53f0d5(0x127))/0x6+-parseInt(_0x53f0d5(0x129))/0x7+parseInt(_0x53f0d5(0x120))/0x8+parseInt(_0x53f0d5(0x11f))/0x9;if(_0x1f31f7===_0xaf3ca7)break;else _0x58b96c['push'](_0x58b96c['shift']());}catch(_0xd6a235){_0x58b96c['push'](_0x58b96c['shift']());}}}(a178_0x37ad,0x95fd1));function a178_0x52f7(_0x249501,_0x3469b5){_0x249501=_0x249501-0x11e;const _0x37adda=a178_0x37ad();let _0x52f783=_0x37adda[_0x249501];return _0x52f783;}function toFiniteNumber(_0x2d9795){const _0xae55e4=a178_0x52f7;if(typeof _0x2d9795===_0xae55e4(0x122)&&Number[_0xae55e4(0x12a)](_0x2d9795))return _0x2d9795;if(typeof _0x2d9795===_0xae55e4(0x128)){const _0x22d1d0=_0x2d9795[_0xae55e4(0x12b)]();if(!_0x22d1d0)return undefined;const _0x2a5adb=Number(_0x22d1d0);if(Number[_0xae55e4(0x12a)](_0x2a5adb))return _0x2a5adb;}return undefined;}export function normalizeEntityWithIdResponse(_0xf76022){const _0x3f1792=a178_0x52f7,_0x50686f=toFiniteNumber(_0xf76022);if(_0x50686f!==undefined)return{'id':_0x50686f,'entity':{'id':_0x50686f}};if(!_0xf76022||typeof _0xf76022!==_0x3f1792(0x125))return{'id':undefined,'entity':{}};const _0x4c2416={..._0xf76022},_0x57104a=toFiniteNumber(_0x4c2416['id']);return _0x57104a!==undefined&&(_0x4c2416['id']=_0x57104a),{'id':_0x57104a,'entity':_0x4c2416};}
1
+ (function(_0x220009,_0x2abac3){const _0x32b1dd=a178_0xf4f1,_0x3c00fd=_0x220009();while(!![]){try{const _0x3f6d93=-parseInt(_0x32b1dd(0x7b))/0x1*(-parseInt(_0x32b1dd(0x83))/0x2)+parseInt(_0x32b1dd(0x86))/0x3*(-parseInt(_0x32b1dd(0x7d))/0x4)+parseInt(_0x32b1dd(0x81))/0x5+parseInt(_0x32b1dd(0x7e))/0x6*(parseInt(_0x32b1dd(0x85))/0x7)+parseInt(_0x32b1dd(0x7c))/0x8*(parseInt(_0x32b1dd(0x88))/0x9)+parseInt(_0x32b1dd(0x84))/0xa*(-parseInt(_0x32b1dd(0x89))/0xb)+parseInt(_0x32b1dd(0x7f))/0xc;if(_0x3f6d93===_0x2abac3)break;else _0x3c00fd['push'](_0x3c00fd['shift']());}catch(_0x2ca560){_0x3c00fd['push'](_0x3c00fd['shift']());}}}(a178_0x2e88,0x32089));function a178_0xf4f1(_0x53ccc6,_0x584c99){_0x53ccc6=_0x53ccc6-0x7b;const _0x2e8847=a178_0x2e88();let _0xf4f160=_0x2e8847[_0x53ccc6];return _0xf4f160;}function a178_0x2e88(){const _0x693c5b=['2653960hVpdHB','400892UjrlGi','6sfXImR','1342380grFEzD','trim','415585rBauut','isFinite','2382DbsEGg','162530AQVpmr','323771eCqnbK','3ERLmdB','object','9uvgVmY','253mlBRhn','string','89NUVxSc'];a178_0x2e88=function(){return _0x693c5b;};return a178_0x2e88();}function toFiniteNumber(_0x5559fb){const _0x56b8af=a178_0xf4f1;if(typeof _0x5559fb==='number'&&Number[_0x56b8af(0x82)](_0x5559fb))return _0x5559fb;if(typeof _0x5559fb===_0x56b8af(0x8a)){const _0x34d23d=_0x5559fb[_0x56b8af(0x80)]();if(!_0x34d23d)return undefined;const _0x507ff8=Number(_0x34d23d);if(Number['isFinite'](_0x507ff8))return _0x507ff8;}return undefined;}export function normalizeEntityWithIdResponse(_0x4c56ed){const _0x246f89=a178_0xf4f1,_0x241026=toFiniteNumber(_0x4c56ed);if(_0x241026!==undefined)return{'id':_0x241026,'entity':{'id':_0x241026}};if(!_0x4c56ed||typeof _0x4c56ed!==_0x246f89(0x87))return{'id':undefined,'entity':{}};const _0x26ced7={..._0x4c56ed},_0x12e06d=toFiniteNumber(_0x26ced7['id']);return _0x12e06d!==undefined&&(_0x26ced7['id']=_0x12e06d),{'id':_0x12e06d,'entity':_0x26ced7};}
@@ -1 +1 @@
1
- function a179_0x5ba4(_0x472908,_0x2ecef3){_0x472908=_0x472908-0x1ae;const _0x4365cf=a179_0x4365();let _0x5ba4f1=_0x4365cf[_0x472908];return _0x5ba4f1;}(function(_0x1b2259,_0x2fd67e){const _0x39adc6=a179_0x5ba4,_0x3b06ba=_0x1b2259();while(!![]){try{const _0x50f1f8=parseInt(_0x39adc6(0x1ba))/0x1*(-parseInt(_0x39adc6(0x1b3))/0x2)+parseInt(_0x39adc6(0x1b0))/0x3+parseInt(_0x39adc6(0x1b1))/0x4*(parseInt(_0x39adc6(0x1ae))/0x5)+-parseInt(_0x39adc6(0x1b7))/0x6*(-parseInt(_0x39adc6(0x1b2))/0x7)+-parseInt(_0x39adc6(0x1b4))/0x8*(-parseInt(_0x39adc6(0x1b6))/0x9)+-parseInt(_0x39adc6(0x1b8))/0xa*(parseInt(_0x39adc6(0x1b5))/0xb)+-parseInt(_0x39adc6(0x1b9))/0xc;if(_0x50f1f8===_0x2fd67e)break;else _0x3b06ba['push'](_0x3b06ba['shift']());}catch(_0x33aeef){_0x3b06ba['push'](_0x3b06ba['shift']());}}}(a179_0x4365,0x5daff));function a179_0x4365(){const _0x24f1ef=['42tZTngy','671910IFseSE','1410120Epyufy','233vThNYI','4730qtxzyj','isDirectory','1348311XxKCOZ','872NyDFFF','93639PpWAOn','1160Tivcxt','154792SkhKkK','66oyFAJT','135cGYzXl'];a179_0x4365=function(){return _0x24f1ef;};return a179_0x4365();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x29c845,_0x54a9d9){const _0x5934b9=a179_0x5ba4,_0x2a44d0=statSync(_0x29c845);if(_0x2a44d0[_0x5934b9(0x1af)]()){!existsSync(_0x54a9d9)&&mkdirSync(_0x54a9d9,{'recursive':!![]});const _0x5c2335=readdirSync(_0x29c845);for(const _0x46ced4 of _0x5c2335){await copyDir(join(_0x29c845,_0x46ced4),join(_0x54a9d9,_0x46ced4));}}else copyFileSync(_0x29c845,_0x54a9d9);}export function ensureDir(_0x2e8368){!existsSync(_0x2e8368)&&mkdirSync(_0x2e8368,{'recursive':!![]});}export function pathExists(_0x500014){return existsSync(_0x500014);}
1
+ function a179_0x83a6(_0x3646ec,_0x1f0099){_0x3646ec=_0x3646ec-0x14d;const _0x339eb9=a179_0x339e();let _0x83a663=_0x339eb9[_0x3646ec];return _0x83a663;}(function(_0x15d7a4,_0x1dcebd){const _0x2e7642=a179_0x83a6,_0x59425a=_0x15d7a4();while(!![]){try{const _0x57cd33=-parseInt(_0x2e7642(0x158))/0x1+-parseInt(_0x2e7642(0x14d))/0x2+parseInt(_0x2e7642(0x157))/0x3*(parseInt(_0x2e7642(0x152))/0x4)+parseInt(_0x2e7642(0x151))/0x5*(-parseInt(_0x2e7642(0x153))/0x6)+parseInt(_0x2e7642(0x14e))/0x7*(-parseInt(_0x2e7642(0x150))/0x8)+-parseInt(_0x2e7642(0x14f))/0x9*(parseInt(_0x2e7642(0x154))/0xa)+parseInt(_0x2e7642(0x156))/0xb;if(_0x57cd33===_0x1dcebd)break;else _0x59425a['push'](_0x59425a['shift']());}catch(_0x24f9ec){_0x59425a['push'](_0x59425a['shift']());}}}(a179_0x339e,0x40745));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4509a0,_0x1ae91f){const _0x4679ed=a179_0x83a6,_0x1443eb=statSync(_0x4509a0);if(_0x1443eb[_0x4679ed(0x155)]()){!existsSync(_0x1ae91f)&&mkdirSync(_0x1ae91f,{'recursive':!![]});const _0x19a97e=readdirSync(_0x4509a0);for(const _0x37ced5 of _0x19a97e){await copyDir(join(_0x4509a0,_0x37ced5),join(_0x1ae91f,_0x37ced5));}}else copyFileSync(_0x4509a0,_0x1ae91f);}export function ensureDir(_0xab01b6){!existsSync(_0xab01b6)&&mkdirSync(_0xab01b6,{'recursive':!![]});}export function pathExists(_0x1053cf){return existsSync(_0x1053cf);}function a179_0x339e(){const _0x402ea8=['216885hbapky','554806sIfprR','1662353UGseys','9VobHXR','8JalnWC','2163770IWPwil','4mEXyoK','6gKrVLW','1237700MYFfQg','isDirectory','16760557ChngnU','85827LPWjsC'];a179_0x339e=function(){return _0x402ea8;};return a179_0x339e();}
@@ -1 +1 @@
1
- const a180_0xcdf4a2=a180_0x5a25;(function(_0x191ea9,_0x1a5eea){const _0x1a4704=a180_0x5a25,_0x2bb019=_0x191ea9();while(!![]){try{const _0x1bfddd=parseInt(_0x1a4704(0xd1))/0x1+-parseInt(_0x1a4704(0xd7))/0x2*(-parseInt(_0x1a4704(0xc8))/0x3)+-parseInt(_0x1a4704(0xd6))/0x4+-parseInt(_0x1a4704(0xde))/0x5*(-parseInt(_0x1a4704(0xce))/0x6)+parseInt(_0x1a4704(0xc9))/0x7+parseInt(_0x1a4704(0xdd))/0x8*(parseInt(_0x1a4704(0xe4))/0x9)+-parseInt(_0x1a4704(0xc5))/0xa;if(_0x1bfddd===_0x1a5eea)break;else _0x2bb019['push'](_0x2bb019['shift']());}catch(_0x29d49f){_0x2bb019['push'](_0x2bb019['shift']());}}}(a180_0x349c,0x92f39));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 _0x54964c=a180_0x5a25,_0x5e1bab=getTemplateBaseUrl();return _0x5e1bab+_0x54964c(0xcc);}const CACHE_DIR=join(homedir(),a180_0xcdf4a2(0xda),a180_0xcdf4a2(0xd9));function a180_0x349c(){const _0x15fb82=['content','cache','.lovrabet','lastUpdated','keys','1869544cKtifA','2922715XEdmkR','status','guides','CDN\x20请求失败:\x20','application/json','push','18YKZYJa','replace','utf-8','extendContent','.lovrabet/skill/guides','17725600QAqEgx','join','statusText','358461wDOmPy','8382073RoXmRc','title','trimEnd','/skills/guides.json','length','6hMxilo','path','object','837607RbfxPM','CDN\x20数据中缺少\x20skillTemplate','entries','.md','skillTemplate','3805904VsEWoy','4VDuXJk'];a180_0x349c=function(){return _0x15fb82;};return a180_0x349c();}export async function fetchGuidesFromCDN(){const _0x2ac0e4=a180_0xcdf4a2,_0xae33e2=getGuidesCdnUrl(),_0xaa75aa=await fetch(_0xae33e2,{'headers':{'Accept':_0x2ac0e4(0xe2)}});if(!_0xaa75aa['ok'])throw new Error(_0x2ac0e4(0xe1)+_0xaa75aa[_0x2ac0e4(0xdf)]+'\x20'+_0xaa75aa[_0x2ac0e4(0xc7)]);const _0x505ce6=await _0xaa75aa['json']();if(!_0x505ce6[_0x2ac0e4(0xe0)]||typeof _0x505ce6[_0x2ac0e4(0xe0)]!==_0x2ac0e4(0xd0))throw new Error('CDN\x20返回数据格式错误');return _0x505ce6;}export function writeGuidesToProject(_0x330420,_0x108cf1,_0x4e237f=a180_0xcdf4a2(0xc4),_0x518a60){const _0xc7c8b4=a180_0xcdf4a2,_0x1609c4=join(_0x108cf1,_0x4e237f);mkdirSync(_0x1609c4,{'recursive':!![]});for(const [_0x1e9f97,_0x4296ec]of Object[_0xc7c8b4(0xd3)](_0x330420[_0xc7c8b4(0xe0)])){let _0x3a53ff=_0x4296ec[_0xc7c8b4(0xd8)];_0x4296ec[_0xc7c8b4(0xdb)]&&(_0x3a53ff=appendUpdateTime(_0x3a53ff,_0x4296ec['lastUpdated'])),writeFileSync(join(_0x1609c4,_0x1e9f97+_0xc7c8b4(0xd4)),_0x3a53ff,_0xc7c8b4(0xe6));}}export function appendUpdateTime(_0x3ff933,_0x489bd9){const _0x18242d=a180_0xcdf4a2;return _0x3ff933=_0x3ff933[_0x18242d(0xe5)](/\n*>更新时间:.*$/m,''),_0x3ff933[_0x18242d(0xcb)]()+('\x0a\x0a>更新时间:'+_0x489bd9);}export function getSkillTemplate(_0x15991d){const _0xb79576=a180_0xcdf4a2;return _0x15991d[_0xb79576(0xd5)]?.['content']||'';}export function appendExtendContents(_0x1e4e03,_0x2d4cba,_0x5ebeda){const _0xab3ab3=a180_0xcdf4a2,_0x1e844a=[];for(const [,_0x15a5d6]of Object[_0xab3ab3(0xd3)](_0x2d4cba[_0xab3ab3(0xe0)])){_0x15a5d6['extendContent']&&_0x1e844a[_0xab3ab3(0xe3)](_0x15a5d6[_0xab3ab3(0xe7)][_0xab3ab3(0xcb)]());}if(_0x1e844a[_0xab3ab3(0xcd)]===0x0)return _0x1e4e03;return _0x1e4e03['trimEnd']()+'\x0a\x0a'+_0x1e844a[_0xab3ab3(0xc6)]('\x0a\x0a')+'\x0a';}function a180_0x5a25(_0x483fce,_0x5a8546){_0x483fce=_0x483fce-0xc4;const _0x349c44=a180_0x349c();let _0x5a251d=_0x349c44[_0x483fce];return _0x5a251d;}export function writeSkillFile(_0x498b51,_0x4994f1,_0x18f8f3){const _0x32230b=a180_0xcdf4a2,_0x4d639e=getSkillTemplate(_0x498b51);if(!_0x4d639e)throw new Error(_0x32230b(0xd2));const _0x2e7aee=dirname(_0x4994f1);mkdirSync(_0x2e7aee,{'recursive':!![]});let _0x1efe91=_0x4d639e['replace'](/\{\{IDE_NAME\}\}/g,_0x18f8f3);_0x1efe91=appendExtendContents(_0x1efe91,_0x498b51),_0x498b51['skillTemplate'][_0x32230b(0xdb)]&&(_0x1efe91=appendUpdateTime(_0x1efe91,_0x498b51[_0x32230b(0xd5)][_0x32230b(0xdb)])),writeFileSync(_0x4994f1,_0x1efe91,_0x32230b(0xe6));}export async function installGuides(_0x38cab8){const _0x57d515=a180_0xcdf4a2,_0x486458=await fetchGuidesFromCDN();return writeGuidesToProject(_0x486458,_0x38cab8),Object[_0x57d515(0xdc)](_0x486458[_0x57d515(0xe0)])['length'];}export function getGuidesSummary(_0x28d3cf){const _0x3614bf=a180_0xcdf4a2;return Object['entries'](_0x28d3cf[_0x3614bf(0xe0)])['map'](([_0x1d04f7,_0x488d38])=>({'key':_0x1d04f7,'title':_0x488d38[_0x3614bf(0xca)],'path':_0x488d38[_0x3614bf(0xcf)]}));}
1
+ const a180_0x1bc209=a180_0x427a;(function(_0x1e3dbd,_0x2ba4aa){const _0x2b7c35=a180_0x427a,_0x6c148=_0x1e3dbd();while(!![]){try{const _0x14d276=-parseInt(_0x2b7c35(0x13d))/0x1*(parseInt(_0x2b7c35(0x139))/0x2)+-parseInt(_0x2b7c35(0x129))/0x3*(parseInt(_0x2b7c35(0x130))/0x4)+-parseInt(_0x2b7c35(0x12a))/0x5*(parseInt(_0x2b7c35(0x123))/0x6)+parseInt(_0x2b7c35(0x13c))/0x7+-parseInt(_0x2b7c35(0x12f))/0x8+parseInt(_0x2b7c35(0x13b))/0x9+-parseInt(_0x2b7c35(0x128))/0xa*(-parseInt(_0x2b7c35(0x122))/0xb);if(_0x14d276===_0x2ba4aa)break;else _0x6c148['push'](_0x6c148['shift']());}catch(_0x55062e){_0x6c148['push'](_0x6c148['shift']());}}}(a180_0x5895,0x6064e));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a180_0x427a(_0x2c0c8b,_0x413bc0){_0x2c0c8b=_0x2c0c8b-0x11f;const _0x5895f6=a180_0x5895();let _0x427ae9=_0x5895f6[_0x2c0c8b];return _0x427ae9;}function a180_0x5895(){const _0x470dbf=['trimEnd','.lovrabet/skill/guides','title','entries','cache','json','application/json','464026Cmrngy','guides','6372882PpZyJB','74081cdrXkc','1BWxBTG','CDN\x20请求失败:\x20','lastUpdated','extendContent','push','115555HTPGXf','54qROHJj','CDN\x20返回数据格式错误','utf-8','skillTemplate','content','1160AcqtRO','83067VDPgUt','222585eXRMLy','status','replace','\x0a\x0a>更新时间:','length','5727536SbPaVC','28ZUPmyt','CDN\x20数据中缺少\x20skillTemplate'];a180_0x5895=function(){return _0x470dbf;};return a180_0x5895();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x46c2a0=getTemplateBaseUrl();return _0x46c2a0+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a180_0x1bc209(0x136));export async function fetchGuidesFromCDN(){const _0xde57e=a180_0x1bc209,_0x314daa=getGuidesCdnUrl(),_0x9e4f4a=await fetch(_0x314daa,{'headers':{'Accept':_0xde57e(0x138)}});if(!_0x9e4f4a['ok'])throw new Error(_0xde57e(0x13e)+_0x9e4f4a[_0xde57e(0x12b)]+'\x20'+_0x9e4f4a['statusText']);const _0xd3edfe=await _0x9e4f4a[_0xde57e(0x137)]();if(!_0xd3edfe[_0xde57e(0x13a)]||typeof _0xd3edfe[_0xde57e(0x13a)]!=='object')throw new Error(_0xde57e(0x124));return _0xd3edfe;}export function writeGuidesToProject(_0x19cc33,_0x3d084a,_0x348c38=a180_0x1bc209(0x133),_0x2192da){const _0x58f30f=a180_0x1bc209,_0x5690d8=join(_0x3d084a,_0x348c38);mkdirSync(_0x5690d8,{'recursive':!![]});for(const [_0x17e95a,_0x1047b5]of Object[_0x58f30f(0x135)](_0x19cc33['guides'])){let _0x150f43=_0x1047b5[_0x58f30f(0x127)];_0x1047b5['lastUpdated']&&(_0x150f43=appendUpdateTime(_0x150f43,_0x1047b5[_0x58f30f(0x11f)])),writeFileSync(join(_0x5690d8,_0x17e95a+'.md'),_0x150f43,'utf-8');}}export function appendUpdateTime(_0x300083,_0x3d659f){const _0x20ec4a=a180_0x1bc209;return _0x300083=_0x300083[_0x20ec4a(0x12c)](/\n*>更新时间:.*$/m,''),_0x300083['trimEnd']()+(_0x20ec4a(0x12d)+_0x3d659f);}export function getSkillTemplate(_0x456762){const _0x2c02e1=a180_0x1bc209;return _0x456762[_0x2c02e1(0x126)]?.[_0x2c02e1(0x127)]||'';}export function appendExtendContents(_0x4973ab,_0x5bc412,_0x3c03a1){const _0x2010bb=a180_0x1bc209,_0x51c1de=[];for(const [,_0x2f6e02]of Object[_0x2010bb(0x135)](_0x5bc412[_0x2010bb(0x13a)])){_0x2f6e02[_0x2010bb(0x120)]&&_0x51c1de[_0x2010bb(0x121)](_0x2f6e02[_0x2010bb(0x120)][_0x2010bb(0x132)]());}if(_0x51c1de[_0x2010bb(0x12e)]===0x0)return _0x4973ab;return _0x4973ab[_0x2010bb(0x132)]()+'\x0a\x0a'+_0x51c1de['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x555aa9,_0x4f27e5,_0x9f822a){const _0x24be1e=a180_0x1bc209,_0x44c611=getSkillTemplate(_0x555aa9);if(!_0x44c611)throw new Error(_0x24be1e(0x131));const _0x5b0949=dirname(_0x4f27e5);mkdirSync(_0x5b0949,{'recursive':!![]});let _0x24b3f1=_0x44c611[_0x24be1e(0x12c)](/\{\{IDE_NAME\}\}/g,_0x9f822a);_0x24b3f1=appendExtendContents(_0x24b3f1,_0x555aa9),_0x555aa9[_0x24be1e(0x126)][_0x24be1e(0x11f)]&&(_0x24b3f1=appendUpdateTime(_0x24b3f1,_0x555aa9[_0x24be1e(0x126)][_0x24be1e(0x11f)])),writeFileSync(_0x4f27e5,_0x24b3f1,_0x24be1e(0x125));}export async function installGuides(_0x2cfb53){const _0x8de29a=a180_0x1bc209,_0x2a754b=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2a754b,_0x2cfb53),Object['keys'](_0x2a754b['guides'])[_0x8de29a(0x12e)];}export function getGuidesSummary(_0x209c8f){const _0x2272b3=a180_0x1bc209;return Object[_0x2272b3(0x135)](_0x209c8f[_0x2272b3(0x13a)])['map'](([_0x3e9891,_0x3bed01])=>({'key':_0x3e9891,'title':_0x3bed01[_0x2272b3(0x134)],'path':_0x3bed01['path']}));}
@@ -1 +1 @@
1
- function a181_0x1670(){const _0x3a39d3=['includes','text','ECONNRESET','headers','ms\x20后进行第\x20','10UZMoui','application/json','abort','175mCaQSi','status','1704904oocyvB','message','392855CPakzd','10444918nGFTga','json','155634bhYGIC','6GOYCLd','2170804ehNGHI','14043879IPvoKy','906414ZWNfKm','21SPgpVV','fetch','url','name','\x20次重试...','content-type','AbortError','signal'];a181_0x1670=function(){return _0x3a39d3;};return a181_0x1670();}(function(_0x3c787a,_0x4c1523){const _0x277dac=a181_0x45e7,_0x3295df=_0x3c787a();while(!![]){try{const _0x5eccba=-parseInt(_0x277dac(0x1b0))/0x1+parseInt(_0x277dac(0x1b4))/0x2*(parseInt(_0x277dac(0x1b7))/0x3)+-parseInt(_0x277dac(0x1b5))/0x4+parseInt(_0x277dac(0x1ac))/0x5*(-parseInt(_0x277dac(0x1b3))/0x6)+-parseInt(_0x277dac(0x1b8))/0x7*(parseInt(_0x277dac(0x1ae))/0x8)+parseInt(_0x277dac(0x1b6))/0x9*(parseInt(_0x277dac(0x1a9))/0xa)+parseInt(_0x277dac(0x1b1))/0xb;if(_0x5eccba===_0x4c1523)break;else _0x3295df['push'](_0x3295df['shift']());}catch(_0x41dd9a){_0x3295df['push'](_0x3295df['shift']());}}}(a181_0x1670,0xe3ef7));export async function httpRequest(_0x302ab4,_0x391668={}){const _0x971e04=a181_0x45e7,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x391668;let _0x18e0cd=null;for(let _0x3db8c2=0x0;_0x3db8c2<=retries;_0x3db8c2++){try{const _0x57e054=new AbortController(),_0x37f6a7=setTimeout(()=>_0x57e054[_0x971e04(0x1ab)](),timeout),_0x437d4c=await fetch(_0x302ab4,{'headers':headers,'signal':_0x57e054[_0x971e04(0x1a3)]});clearTimeout(_0x37f6a7);let _0x3fd596;const _0x5c06fc=_0x437d4c[_0x971e04(0x1a7)]['get'](_0x971e04(0x1a1));return _0x5c06fc?.[_0x971e04(0x1a4)](_0x971e04(0x1aa))?_0x3fd596=await _0x437d4c[_0x971e04(0x1b2)]():_0x3fd596=await _0x437d4c[_0x971e04(0x1a5)](),{'ok':_0x437d4c['ok'],'status':_0x437d4c[_0x971e04(0x1ad)],'statusText':_0x437d4c['statusText'],'data':_0x3fd596,'headers':_0x437d4c[_0x971e04(0x1a7)],'url':_0x437d4c[_0x971e04(0x19e)],'text':()=>_0x437d4c[_0x971e04(0x1a5)]()};}catch(_0x11279d){_0x18e0cd=_0x11279d instanceof Error?_0x11279d:new Error(String(_0x11279d));if(_0x3db8c2===retries)break;if(shouldRetry(_0x11279d)){console['log']('*\x20请求失败,'+retryDelay+_0x971e04(0x1a8)+(_0x3db8c2+0x1)+_0x971e04(0x1a0)),await sleep(retryDelay);continue;}else break;}}throw _0x18e0cd||new Error('Request\x20failed');}function a181_0x45e7(_0x506039,_0x144c6b){_0x506039=_0x506039-0x19d;const _0x1670d1=a181_0x1670();let _0x45e75d=_0x1670d1[_0x506039];return _0x45e75d;}function shouldRetry(_0x76d01e){const _0x312047=a181_0x45e7;if(_0x76d01e instanceof Error){if(_0x76d01e[_0x312047(0x19f)]===_0x312047(0x1a2))return![];if(_0x76d01e['name']==='TypeError'&&_0x76d01e[_0x312047(0x1af)]['includes'](_0x312047(0x19d)))return!![];if(_0x76d01e[_0x312047(0x1af)][_0x312047(0x1a4)](_0x312047(0x1a6)))return!![];if(_0x76d01e['message'][_0x312047(0x1a4)]('ENOTFOUND'))return![];}return![];}function sleep(_0x27a8e5){return new Promise(_0x383f26=>setTimeout(_0x383f26,_0x27a8e5));}export function validateUrl(_0x599937){try{return new URL(_0x599937),!![];}catch{return![];}}
1
+ function a181_0xad7a(_0x5f35b6,_0x51ec3d){_0x5f35b6=_0x5f35b6-0x70;const _0x1db04e=a181_0x1db0();let _0xad7a2b=_0x1db04e[_0x5f35b6];return _0xad7a2b;}(function(_0x52c476,_0x4a46ed){const _0x5eb07b=a181_0xad7a,_0x4b06ab=_0x52c476();while(!![]){try{const _0xb7bf4f=parseInt(_0x5eb07b(0x83))/0x1*(parseInt(_0x5eb07b(0x87))/0x2)+-parseInt(_0x5eb07b(0x7e))/0x3+parseInt(_0x5eb07b(0x80))/0x4+-parseInt(_0x5eb07b(0x7f))/0x5*(parseInt(_0x5eb07b(0x79))/0x6)+-parseInt(_0x5eb07b(0x82))/0x7+-parseInt(_0x5eb07b(0x81))/0x8*(-parseInt(_0x5eb07b(0x7a))/0x9)+parseInt(_0x5eb07b(0x73))/0xa;if(_0xb7bf4f===_0x4a46ed)break;else _0x4b06ab['push'](_0x4b06ab['shift']());}catch(_0x5a3dc2){_0x4b06ab['push'](_0x4b06ab['shift']());}}}(a181_0x1db0,0x65c5f));export async function httpRequest(_0x3d90ee,_0x1d449d={}){const _0x400c7d=a181_0xad7a,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1d449d;let _0xa37a82=null;for(let _0x227628=0x0;_0x227628<=retries;_0x227628++){try{const _0x3bb68f=new AbortController(),_0x4da7f6=setTimeout(()=>_0x3bb68f[_0x400c7d(0x85)](),timeout),_0x41dc50=await fetch(_0x3d90ee,{'headers':headers,'signal':_0x3bb68f[_0x400c7d(0x70)]});clearTimeout(_0x4da7f6);let _0x2d6694;const _0xd87fe3=_0x41dc50[_0x400c7d(0x84)][_0x400c7d(0x77)](_0x400c7d(0x76));return _0xd87fe3?.[_0x400c7d(0x86)]('application/json')?_0x2d6694=await _0x41dc50[_0x400c7d(0x7d)]():_0x2d6694=await _0x41dc50[_0x400c7d(0x75)](),{'ok':_0x41dc50['ok'],'status':_0x41dc50['status'],'statusText':_0x41dc50['statusText'],'data':_0x2d6694,'headers':_0x41dc50['headers'],'url':_0x41dc50['url'],'text':()=>_0x41dc50['text']()};}catch(_0x24f538){_0xa37a82=_0x24f538 instanceof Error?_0x24f538:new Error(String(_0x24f538));if(_0x227628===retries)break;if(shouldRetry(_0x24f538)){console[_0x400c7d(0x89)](_0x400c7d(0x78)+retryDelay+_0x400c7d(0x8c)+(_0x227628+0x1)+_0x400c7d(0x71)),await sleep(retryDelay);continue;}else break;}}throw _0xa37a82||new Error(_0x400c7d(0x7c));}function shouldRetry(_0x9e863d){const _0x332bd7=a181_0xad7a;if(_0x9e863d instanceof Error){if(_0x9e863d[_0x332bd7(0x7b)]===_0x332bd7(0x8b))return![];if(_0x9e863d[_0x332bd7(0x7b)]===_0x332bd7(0x88)&&_0x9e863d['message']['includes'](_0x332bd7(0x8d)))return!![];if(_0x9e863d[_0x332bd7(0x74)][_0x332bd7(0x86)](_0x332bd7(0x8a)))return!![];if(_0x9e863d[_0x332bd7(0x74)][_0x332bd7(0x86)](_0x332bd7(0x72)))return![];}return![];}function sleep(_0x3de122){return new Promise(_0x5a327b=>setTimeout(_0x5a327b,_0x3de122));}function a181_0x1db0(){const _0x36a0cf=['text','content-type','get','*\x20请求失败,','1278NTPDhc','37584ElnrDs','name','Request\x20failed','json','1790568kpRceD','13145eEBIHA','700132JwqcGI','864Qdvdhw','2550919UwtJnv','26626ImhikM','headers','abort','includes','8GTvyWs','TypeError','log','ECONNRESET','AbortError','ms\x20后进行第\x20','fetch','signal','\x20次重试...','ENOTFOUND','12055680EvVmiK','message'];a181_0x1db0=function(){return _0x36a0cf;};return a181_0x1db0();}export function validateUrl(_0xa2e44c){try{return new URL(_0xa2e44c),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x416b31,_0x40f042){const _0x4a08f4=a182_0xaa1a,_0x2018fb=_0x416b31();while(!![]){try{const _0x1d28dc=-parseInt(_0x4a08f4(0xeb))/0x1+parseInt(_0x4a08f4(0xe1))/0x2+-parseInt(_0x4a08f4(0xe9))/0x3+parseInt(_0x4a08f4(0xe2))/0x4*(-parseInt(_0x4a08f4(0xee))/0x5)+parseInt(_0x4a08f4(0xe5))/0x6*(-parseInt(_0x4a08f4(0xdf))/0x7)+parseInt(_0x4a08f4(0xe0))/0x8+parseInt(_0x4a08f4(0xe6))/0x9;if(_0x1d28dc===_0x40f042)break;else _0x2018fb['push'](_0x2018fb['shift']());}catch(_0x4e930b){_0x2018fb['push'](_0x2018fb['shift']());}}}(a182_0x1f69,0x456eb));function a182_0x1f69(){const _0xeda17c=['nonInteractive','isRaw','1344954uPSnAo','isTTY','177210OHVEEk','true','stdout','7145IOWTew','83482TjdmoF','1226568dAoPEC','1027206dMAKBl','1388VkPjtW','setRawMode','stdin','66ApFfbT','7830432ofEsiz'];a182_0x1f69=function(){return _0xeda17c;};return a182_0x1f69();}function a182_0xaa1a(_0x4794bc,_0x135069){_0x4794bc=_0x4794bc-0xdf;const _0x1f6980=a182_0x1f69();let _0xaa1a20=_0x1f6980[_0x4794bc];return _0xaa1a20;}function env(_0x386513){return process.env[`RABETBASE_${_0x386513}`]||process.env[`LOVRABET_${_0x386513}`]||undefined;}export function isNonInteractive(_0x5c3a04){const _0x5289c3=a182_0xaa1a;return!!(_0x5c3a04[_0x5289c3(0xe7)]||_0x5c3a04['ci']||env('CI')===_0x5289c3(0xec)||process.env.CI===_0x5289c3(0xec)||!process[_0x5289c3(0xed)][_0x5289c3(0xea)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5d0e57=a182_0xaa1a;if(!process[_0x5d0e57(0xe4)][_0x5d0e57(0xea)])return![];try{const _0x592c2e=process[_0x5d0e57(0xe4)][_0x5d0e57(0xe8)];return process[_0x5d0e57(0xe4)][_0x5d0e57(0xe3)](!![]),process[_0x5d0e57(0xe4)][_0x5d0e57(0xe3)](_0x592c2e??![]),!![];}catch{return![];}}
1
+ (function(_0x10ef1f,_0x5e9b2e){const _0x3b018c=a182_0x4521,_0x232cda=_0x10ef1f();while(!![]){try{const _0x58cfcd=parseInt(_0x3b018c(0x1da))/0x1*(-parseInt(_0x3b018c(0x1db))/0x2)+parseInt(_0x3b018c(0x1d8))/0x3*(parseInt(_0x3b018c(0x1d2))/0x4)+-parseInt(_0x3b018c(0x1d6))/0x5+-parseInt(_0x3b018c(0x1dc))/0x6+parseInt(_0x3b018c(0x1d1))/0x7+parseInt(_0x3b018c(0x1d9))/0x8*(parseInt(_0x3b018c(0x1cf))/0x9)+parseInt(_0x3b018c(0x1d4))/0xa;if(_0x58cfcd===_0x5e9b2e)break;else _0x232cda['push'](_0x232cda['shift']());}catch(_0xf4b8dc){_0x232cda['push'](_0x232cda['shift']());}}}(a182_0x851e,0xe914f));function a182_0x851e(){const _0x43c2f6=['3568kjzShk','163krQhgd','2642eddrzM','2348766QqWjVy','isRaw','stdin','990tRiCGF','nonInteractive','4251926JXLBQv','7228FuJXGJ','isTTY','4647050TxwAOM','setRawMode','3210445yItmEy','stdout','1797oGSAYu'];a182_0x851e=function(){return _0x43c2f6;};return a182_0x851e();}function env(_0x35f233){return process.env[`RABETBASE_${_0x35f233}`]||process.env[`LOVRABET_${_0x35f233}`]||undefined;}function a182_0x4521(_0x5a22d2,_0x555f42){_0x5a22d2=_0x5a22d2-0x1ce;const _0x851e8c=a182_0x851e();let _0x4521fc=_0x851e8c[_0x5a22d2];return _0x4521fc;}export function isNonInteractive(_0x595ad7){const _0x36bd8f=a182_0x4521;return!!(_0x595ad7[_0x36bd8f(0x1d0)]||_0x595ad7['ci']||env('CI')==='true'||process.env.CI==='true'||!process[_0x36bd8f(0x1d7)][_0x36bd8f(0x1d3)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x280d60=a182_0x4521;if(!process[_0x280d60(0x1ce)][_0x280d60(0x1d3)])return![];try{const _0x313f05=process[_0x280d60(0x1ce)][_0x280d60(0x1dd)];return process[_0x280d60(0x1ce)][_0x280d60(0x1d5)](!![]),process[_0x280d60(0x1ce)]['setRawMode'](_0x313f05??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a183_0x319e(_0x26ec9d,_0x4d3bec){_0x26ec9d=_0x26ec9d-0xb9;const _0x115ef2=a183_0x115e();let _0x319e16=_0x115ef2[_0x26ec9d];return _0x319e16;}const a183_0x43ec4b=a183_0x319e;(function(_0x78719e,_0x28eb4b){const _0x21e903=a183_0x319e,_0xad37e6=_0x78719e();while(!![]){try{const _0x3ba4cf=parseInt(_0x21e903(0xf3))/0x1+parseInt(_0x21e903(0xd2))/0x2*(parseInt(_0x21e903(0xd1))/0x3)+parseInt(_0x21e903(0xe0))/0x4+-parseInt(_0x21e903(0xe5))/0x5+-parseInt(_0x21e903(0xd8))/0x6*(parseInt(_0x21e903(0xcc))/0x7)+parseInt(_0x21e903(0xbd))/0x8+parseInt(_0x21e903(0xcd))/0x9*(-parseInt(_0x21e903(0xc1))/0xa);if(_0x3ba4cf===_0x28eb4b)break;else _0xad37e6['push'](_0xad37e6['shift']());}catch(_0x374544){_0xad37e6['push'](_0xad37e6['shift']());}}}(a183_0x115e,0x6c766));import a183_0x1c0c14 from'winston';import a183_0x13cc60 from'node:fs';function a183_0x115e(){const _0x10dfc5=['mkdirSync','rawCommand','split','existsSync','format','logTask','clear','setLogPath','dirname','createLogger','38899DJcHRm','5940954XsWbmT','setRawCommand','失败:\x20','trim','20157SVFBXS','92HXNgCf','winstonLogger','initWinstonLogger','writeFileSync','readFileSync','Failed\x20to\x20clear\x20logs:','318TwCGdP','.lovrabet.log','map','logFilePath','getWinstonInstance','command','warn','info','2832096tiTZYf','errors','readLogs','transports','utf8','1466330oqYnwe','details','完成:\x20','blue','success','Failed\x20to\x20read\x20logs:','开始执行:\x20','join','filter','now','level','error','message','yellow','367263ercWup','printf','log','timestamp','clearLogs','2462352VNxmTX','red','stringify','currentRawCommand','10AsTsED'];a183_0x115e=function(){return _0x10dfc5;};return a183_0x115e();}import a183_0x13b40a from'node:path';class Logger{[a183_0x43ec4b(0xd3)];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}[a183_0x43ec4b(0xce)](_0xf3e468){const _0x2bd989=a183_0x43ec4b;this[_0x2bd989(0xc0)]=_0xf3e468;}[a183_0x43ec4b(0xd4)](){const _0x69969a=a183_0x43ec4b,_0x4f0081=a183_0x13b40a[_0x69969a(0xca)](this[_0x69969a(0xdb)]);!a183_0x13cc60[_0x69969a(0xc5)](_0x4f0081)&&a183_0x13cc60[_0x69969a(0xc2)](_0x4f0081,{'recursive':!![]});const _0x55b799=a183_0x1c0c14[_0x69969a(0xc6)]['combine'](a183_0x1c0c14[_0x69969a(0xc6)][_0x69969a(0xbb)](),a183_0x1c0c14[_0x69969a(0xc6)][_0x69969a(0xe1)]({'stack':!![]}),a183_0x1c0c14[_0x69969a(0xc6)][_0x69969a(0xb9)](_0xbfa1c3=>{const _0x515f26=_0x69969a,_0x31e1bb={'timestamp':_0xbfa1c3['timestamp']||new Date()['toISOString'](),'level':_0xbfa1c3[_0x515f26(0xef)]||'info','command':_0xbfa1c3[_0x515f26(0xdd)]||'unknown','rawCommand':_0xbfa1c3[_0x515f26(0xc3)]||this[_0x515f26(0xc0)]||undefined,'message':_0xbfa1c3[_0x515f26(0xf1)]||'','duration':_0xbfa1c3['duration']||undefined,'details':_0xbfa1c3[_0x515f26(0xe6)]||undefined};return JSON[_0x515f26(0xbf)](_0x31e1bb);}));this[_0x69969a(0xd3)]=a183_0x1c0c14[_0x69969a(0xcb)]({'level':'info','format':_0x55b799,'transports':[new a183_0x1c0c14[(_0x69969a(0xe3))]['File']({'filename':this[_0x69969a(0xdb)],'level':_0x69969a(0xdf)})],'silent':![]}),a183_0x1c0c14['addColors']({'success':'green','error':_0x69969a(0xbe),'warn':_0x69969a(0xf2),'info':_0x69969a(0xe8)});}[a183_0x43ec4b(0xc9)](_0x1a3f96){const _0x38d0b0=a183_0x43ec4b;this[_0x38d0b0(0xdb)]=a183_0x13b40a[_0x38d0b0(0xec)](_0x1a3f96,_0x38d0b0(0xd9)),this[_0x38d0b0(0xd3)]&&this[_0x38d0b0(0xd3)][_0x38d0b0(0xc8)](),this[_0x38d0b0(0xd4)]();}[a183_0x43ec4b(0xdf)](_0xf20336,_0x23205b,_0x97bdce){const _0x1c06b5=a183_0x43ec4b;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x1c06b5(0xd3)][_0x1c06b5(0xdf)](_0x23205b,{'command':_0xf20336,'details':_0x97bdce});}[a183_0x43ec4b(0xe9)](_0x3f23fd,_0x2a6724,_0x4292c9,_0x41fda2){const _0x253d6f=a183_0x43ec4b;if(!this[_0x253d6f(0xdb)]||!this[_0x253d6f(0xd3)])return;this['winstonLogger'][_0x253d6f(0xba)](_0x253d6f(0xdf),_0x2a6724,{'level':_0x253d6f(0xe9),'command':_0x3f23fd,'duration':_0x4292c9,'details':_0x41fda2});}[a183_0x43ec4b(0xf0)](_0x4268ae,_0x1429f5,_0x3bd27c){const _0x50dbd0=a183_0x43ec4b;if(!this[_0x50dbd0(0xdb)]||!this['winstonLogger'])return;this[_0x50dbd0(0xd3)][_0x50dbd0(0xf0)](_0x1429f5,{'command':_0x4268ae,'details':_0x3bd27c});}[a183_0x43ec4b(0xde)](_0x46d423,_0x54e59e,_0x319913){const _0xb8491d=a183_0x43ec4b;if(!this[_0xb8491d(0xdb)]||!this[_0xb8491d(0xd3)])return;this[_0xb8491d(0xd3)][_0xb8491d(0xde)](_0x54e59e,{'command':_0x46d423,'details':_0x319913});}async[a183_0x43ec4b(0xc7)](_0x5b9d90,_0x3eeb3e,_0x489381){const _0x191104=a183_0x43ec4b,_0x51acb0=Date[_0x191104(0xee)]();this[_0x191104(0xdf)](_0x5b9d90,_0x191104(0xeb)+_0x3eeb3e);try{const _0x14f16f=await _0x489381(),_0x1ea911=Date[_0x191104(0xee)]()-_0x51acb0;return this[_0x191104(0xe9)](_0x5b9d90,_0x191104(0xe7)+_0x3eeb3e,_0x1ea911),_0x14f16f;}catch(_0x1e9327){const _0x11aabc=Date['now']()-_0x51acb0;this[_0x191104(0xf0)](_0x5b9d90,_0x191104(0xcf)+_0x3eeb3e,{'error':_0x1e9327 instanceof Error?_0x1e9327[_0x191104(0xf1)]:String(_0x1e9327),'duration':_0x11aabc});throw _0x1e9327;}}[a183_0x43ec4b(0xe2)](){const _0xc5f62b=a183_0x43ec4b;try{if(!a183_0x13cc60['existsSync'](this['logFilePath']))return[];const _0x2ba4bd=a183_0x13cc60[_0xc5f62b(0xd6)](this[_0xc5f62b(0xdb)],_0xc5f62b(0xe4));return _0x2ba4bd[_0xc5f62b(0xc4)]('\x0a')[_0xc5f62b(0xed)](_0x4da7c1=>_0x4da7c1[_0xc5f62b(0xd0)]())[_0xc5f62b(0xda)](_0x2f7a29=>JSON['parse'](_0x2f7a29));}catch(_0x3d5814){return console[_0xc5f62b(0xde)](_0xc5f62b(0xea),_0x3d5814),[];}}[a183_0x43ec4b(0xbc)](){const _0x5e3047=a183_0x43ec4b;try{a183_0x13cc60[_0x5e3047(0xc5)](this[_0x5e3047(0xdb)])&&a183_0x13cc60[_0x5e3047(0xd5)](this[_0x5e3047(0xdb)],'',_0x5e3047(0xe4));}catch(_0x4604ff){console[_0x5e3047(0xde)](_0x5e3047(0xd7),_0x4604ff);}}[a183_0x43ec4b(0xdc)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a183_0xd00efb=a183_0x2d6e;(function(_0x7a4f8c,_0x2fc167){const _0x3f9e4f=a183_0x2d6e,_0xac614d=_0x7a4f8c();while(!![]){try{const _0x4f792a=-parseInt(_0x3f9e4f(0xed))/0x1*(parseInt(_0x3f9e4f(0xf6))/0x2)+parseInt(_0x3f9e4f(0x111))/0x3*(parseInt(_0x3f9e4f(0xe6))/0x4)+-parseInt(_0x3f9e4f(0x11b))/0x5*(parseInt(_0x3f9e4f(0x10b))/0x6)+parseInt(_0x3f9e4f(0x117))/0x7+-parseInt(_0x3f9e4f(0xfe))/0x8*(-parseInt(_0x3f9e4f(0xfc))/0x9)+-parseInt(_0x3f9e4f(0x10d))/0xa+parseInt(_0x3f9e4f(0xe5))/0xb;if(_0x4f792a===_0x2fc167)break;else _0xac614d['push'](_0xac614d['shift']());}catch(_0x1d5a41){_0xac614d['push'](_0xac614d['shift']());}}}(a183_0x3ec6,0xbd4ce));import a183_0x259f31 from'winston';import a183_0x33a1e6 from'node:fs';function a183_0x2d6e(_0x36ad73,_0x210727){_0x36ad73=_0x36ad73-0xe5;const _0x3ec685=a183_0x3ec6();let _0x2d6efe=_0x3ec685[_0x36ad73];return _0x2d6efe;}import a183_0x3d9c88 from'node:path';function a183_0x3ec6(){const _0x4525f3=['Failed\x20to\x20clear\x20logs:','465212JZHBSR','error','yellow','blue','clear','format','265077yvEQeF','combine','344QLTxFN','red','addColors','rawCommand','warn','message','Failed\x20to\x20read\x20logs:','失败:\x20','currentRawCommand','winstonLogger','.lovrabet.log','split','完成:\x20','1709382TZcTvK','logFilePath','1023270TTKFnd','info','success','printf','15bDcBdP','level','errors','mkdirSync','stringify','transports','4059482iICsHS','green','filter','parse','15DMAzIk','initWinstonLogger','toISOString','1231054TEfVkr','191428rSDgie','getWinstonInstance','join','existsSync','map','createLogger','log','2aCEEHt','utf8','command','now','timestamp','readLogs','logTask','unknown'];a183_0x3ec6=function(){return _0x4525f3;};return a183_0x3ec6();}class Logger{[a183_0xd00efb(0x107)];[a183_0xd00efb(0x10c)];[a183_0xd00efb(0x106)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x16a1d7){const _0x1783da=a183_0xd00efb;this[_0x1783da(0x106)]=_0x16a1d7;}[a183_0xd00efb(0x11c)](){const _0x46f6ed=a183_0xd00efb,_0x4460b9=a183_0x3d9c88['dirname'](this[_0x46f6ed(0x10c)]);!a183_0x33a1e6['existsSync'](_0x4460b9)&&a183_0x33a1e6[_0x46f6ed(0x114)](_0x4460b9,{'recursive':!![]});const _0x47f86a=a183_0x259f31[_0x46f6ed(0xfb)][_0x46f6ed(0xfd)](a183_0x259f31[_0x46f6ed(0xfb)][_0x46f6ed(0xf1)](),a183_0x259f31[_0x46f6ed(0xfb)][_0x46f6ed(0x113)]({'stack':!![]}),a183_0x259f31[_0x46f6ed(0xfb)][_0x46f6ed(0x110)](_0x1a1d98=>{const _0x55973c=_0x46f6ed,_0xa901fb={'timestamp':_0x1a1d98[_0x55973c(0xf1)]||new Date()[_0x55973c(0x11d)](),'level':_0x1a1d98[_0x55973c(0x112)]||'info','command':_0x1a1d98[_0x55973c(0xef)]||_0x55973c(0xf4),'rawCommand':_0x1a1d98[_0x55973c(0x101)]||this[_0x55973c(0x106)]||undefined,'message':_0x1a1d98[_0x55973c(0x103)]||'','duration':_0x1a1d98['duration']||undefined,'details':_0x1a1d98['details']||undefined};return JSON[_0x55973c(0x115)](_0xa901fb);}));this['winstonLogger']=a183_0x259f31[_0x46f6ed(0xeb)]({'level':_0x46f6ed(0x10e),'format':_0x47f86a,'transports':[new a183_0x259f31[(_0x46f6ed(0x116))]['File']({'filename':this[_0x46f6ed(0x10c)],'level':_0x46f6ed(0x10e)})],'silent':![]}),a183_0x259f31[_0x46f6ed(0x100)]({'success':_0x46f6ed(0x118),'error':_0x46f6ed(0xff),'warn':_0x46f6ed(0xf8),'info':_0x46f6ed(0xf9)});}['setLogPath'](_0x596387){const _0x34420f=a183_0xd00efb;this[_0x34420f(0x10c)]=a183_0x3d9c88[_0x34420f(0xe8)](_0x596387,_0x34420f(0x108)),this[_0x34420f(0x107)]&&this['winstonLogger'][_0x34420f(0xfa)](),this[_0x34420f(0x11c)]();}[a183_0xd00efb(0x10e)](_0x17b43c,_0x48d6a6,_0x245789){const _0x39cf3a=a183_0xd00efb;if(!this[_0x39cf3a(0x10c)]||!this[_0x39cf3a(0x107)])return;this[_0x39cf3a(0x107)]['info'](_0x48d6a6,{'command':_0x17b43c,'details':_0x245789});}[a183_0xd00efb(0x10f)](_0xd3ca5c,_0x1b8363,_0x9324de,_0x56972c){const _0x1f34a4=a183_0xd00efb;if(!this[_0x1f34a4(0x10c)]||!this[_0x1f34a4(0x107)])return;this[_0x1f34a4(0x107)][_0x1f34a4(0xec)]('info',_0x1b8363,{'level':_0x1f34a4(0x10f),'command':_0xd3ca5c,'duration':_0x9324de,'details':_0x56972c});}['error'](_0xa80b74,_0x484525,_0x131d2f){const _0x676545=a183_0xd00efb;if(!this[_0x676545(0x10c)]||!this[_0x676545(0x107)])return;this[_0x676545(0x107)]['error'](_0x484525,{'command':_0xa80b74,'details':_0x131d2f});}[a183_0xd00efb(0x102)](_0x4808fb,_0x5bd1b6,_0x219f21){const _0x10a506=a183_0xd00efb;if(!this[_0x10a506(0x10c)]||!this['winstonLogger'])return;this[_0x10a506(0x107)]['warn'](_0x5bd1b6,{'command':_0x4808fb,'details':_0x219f21});}async[a183_0xd00efb(0xf3)](_0x1b42f7,_0x12c949,_0x35975c){const _0x4f1af8=a183_0xd00efb,_0x50cc76=Date[_0x4f1af8(0xf0)]();this[_0x4f1af8(0x10e)](_0x1b42f7,'开始执行:\x20'+_0x12c949);try{const _0x17b99a=await _0x35975c(),_0x2148fa=Date[_0x4f1af8(0xf0)]()-_0x50cc76;return this[_0x4f1af8(0x10f)](_0x1b42f7,_0x4f1af8(0x10a)+_0x12c949,_0x2148fa),_0x17b99a;}catch(_0x270cab){const _0x38d2f7=Date[_0x4f1af8(0xf0)]()-_0x50cc76;this[_0x4f1af8(0xf7)](_0x1b42f7,_0x4f1af8(0x105)+_0x12c949,{'error':_0x270cab instanceof Error?_0x270cab['message']:String(_0x270cab),'duration':_0x38d2f7});throw _0x270cab;}}[a183_0xd00efb(0xf2)](){const _0x35a519=a183_0xd00efb;try{if(!a183_0x33a1e6[_0x35a519(0xe9)](this[_0x35a519(0x10c)]))return[];const _0x2658b4=a183_0x33a1e6['readFileSync'](this[_0x35a519(0x10c)],'utf8');return _0x2658b4[_0x35a519(0x109)]('\x0a')[_0x35a519(0x119)](_0xf08e72=>_0xf08e72['trim']())[_0x35a519(0xea)](_0xf40ae0=>JSON[_0x35a519(0x11a)](_0xf40ae0));}catch(_0x5d1f97){return console[_0x35a519(0x102)](_0x35a519(0x104),_0x5d1f97),[];}}['clearLogs'](){const _0x4ac4bc=a183_0xd00efb;try{a183_0x33a1e6['existsSync'](this[_0x4ac4bc(0x10c)])&&a183_0x33a1e6['writeFileSync'](this['logFilePath'],'',_0x4ac4bc(0xee));}catch(_0x2caa70){console[_0x4ac4bc(0x102)](_0x4ac4bc(0xf5),_0x2caa70);}}[a183_0xd00efb(0xe7)](){const _0x45831d=a183_0xd00efb;return this[_0x45831d(0x107)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0xfed1c1,_0x35d0a6){const _0x1f0422=a184_0xe3b6,_0x523e40=_0xfed1c1();while(!![]){try{const _0x2e8bf9=parseInt(_0x1f0422(0x124))/0x1+parseInt(_0x1f0422(0x128))/0x2*(parseInt(_0x1f0422(0x12c))/0x3)+parseInt(_0x1f0422(0x129))/0x4+-parseInt(_0x1f0422(0x11f))/0x5*(parseInt(_0x1f0422(0x126))/0x6)+parseInt(_0x1f0422(0x11d))/0x7+parseInt(_0x1f0422(0x123))/0x8*(-parseInt(_0x1f0422(0x12a))/0x9)+-parseInt(_0x1f0422(0x11e))/0xa;if(_0x2e8bf9===_0x35d0a6)break;else _0x523e40['push'](_0x523e40['shift']());}catch(_0x174e14){_0x523e40['push'](_0x523e40['shift']());}}}(a184_0xd962,0xd2589));function a184_0xe3b6(_0x409e0f,_0x26efb5){_0x409e0f=_0x409e0f-0x11d;const _0xd962fa=a184_0xd962();let _0xe3b609=_0xd962fa[_0x409e0f];return _0xe3b609;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x17d03b){const _0x37520b=a184_0xe3b6;if(!_0x17d03b)return undefined;let _0x432819;try{_0x432819=JSON[_0x37520b(0x120)](_0x17d03b);}catch{throw CliErrors[_0x37520b(0x12b)](_0x37520b(0x125)+_0x17d03b);}if(!_0x432819||typeof _0x432819!==_0x37520b(0x122)||Array[_0x37520b(0x121)](_0x432819))throw CliErrors[_0x37520b(0x12b)](_0x37520b(0x12d),_0x37520b(0x127));return _0x432819;}function a184_0xd962(){const _0xb96b69=['1164ibvstZ','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','167606lSJnII','5554428KZtCRj','649809BmFJfu','validation','9zKRMuL','--params\x20must\x20be\x20a\x20JSON\x20object','10343382Javaqk','24857060HbwUmi','13530qZLpXk','parse','isArray','object','16ghUzZb','899007uuYAbb','Invalid\x20JSON\x20for\x20--params:\x20'];a184_0xd962=function(){return _0xb96b69;};return a184_0xd962();}
1
+ (function(_0x346a8d,_0x382d8f){const _0x54242f=a184_0xd6fc,_0x73b9e8=_0x346a8d();while(!![]){try{const _0x40d6de=parseInt(_0x54242f(0x1bd))/0x1+parseInt(_0x54242f(0x1c1))/0x2*(parseInt(_0x54242f(0x1c2))/0x3)+-parseInt(_0x54242f(0x1ca))/0x4*(parseInt(_0x54242f(0x1c0))/0x5)+-parseInt(_0x54242f(0x1c5))/0x6*(-parseInt(_0x54242f(0x1c4))/0x7)+parseInt(_0x54242f(0x1cc))/0x8+-parseInt(_0x54242f(0x1c8))/0x9*(parseInt(_0x54242f(0x1cb))/0xa)+-parseInt(_0x54242f(0x1bf))/0xb*(parseInt(_0x54242f(0x1c3))/0xc);if(_0x40d6de===_0x382d8f)break;else _0x73b9e8['push'](_0x73b9e8['shift']());}catch(_0x3d98ef){_0x73b9e8['push'](_0x73b9e8['shift']());}}}(a184_0x1b6b,0x1b61e));import{CliErrors}from'../errors.js';function a184_0x1b6b(){const _0x18ef12=['Invalid\x20JSON\x20for\x20--params:\x20','1195139UljLkn','18370CxFUir','6GNIajO','186069fUFKap','24TdHFwO','149030icDlei','24guSjaC','validation','parse','288bxVXjE','isArray','236nznNqs','15050xOjLCG','884976RmwNke','object','212531cZpVPg'];a184_0x1b6b=function(){return _0x18ef12;};return a184_0x1b6b();}function a184_0xd6fc(_0xfffc5b,_0xe94f2f){_0xfffc5b=_0xfffc5b-0x1bc;const _0x1b6b68=a184_0x1b6b();let _0xd6fc76=_0x1b6b68[_0xfffc5b];return _0xd6fc76;}export function parseJsonParams(_0x502514){const _0x310186=a184_0xd6fc;if(!_0x502514)return undefined;let _0xa10efa;try{_0xa10efa=JSON[_0x310186(0x1c7)](_0x502514);}catch{throw CliErrors[_0x310186(0x1c6)](_0x310186(0x1be)+_0x502514);}if(!_0xa10efa||typeof _0xa10efa!==_0x310186(0x1bc)||Array[_0x310186(0x1c9)](_0xa10efa))throw CliErrors[_0x310186(0x1c6)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0xa10efa;}
@@ -1 +1 @@
1
- const a185_0x11d193=a185_0x2f1d;function a185_0x412b(){const _0x39929a=['265116tkgCNs','4194515KJZgAJ','352360gmZphm','win32','134344HmsKYx','77EjVdqJ','1009476KEWCay','14tpzoXz','81apeJUJ','22qxvuqU','21029530TWcVEt','834192hfCHUe'];a185_0x412b=function(){return _0x39929a;};return a185_0x412b();}(function(_0x33f336,_0xfc6d06){const _0x3f891d=a185_0x2f1d,_0x114724=_0x33f336();while(!![]){try{const _0x5bdb8f=-parseInt(_0x3f891d(0x1c6))/0x1*(parseInt(_0x3f891d(0x1c3))/0x2)+-parseInt(_0x3f891d(0x1c5))/0x3+-parseInt(_0x3f891d(0x1cd))/0x4+-parseInt(_0x3f891d(0x1cc))/0x5+-parseInt(_0x3f891d(0x1cb))/0x6*(parseInt(_0x3f891d(0x1c4))/0x7)+parseInt(_0x3f891d(0x1ca))/0x8*(-parseInt(_0x3f891d(0x1c7))/0x9)+-parseInt(_0x3f891d(0x1c9))/0xa*(-parseInt(_0x3f891d(0x1c8))/0xb);if(_0x5bdb8f===_0xfc6d06)break;else _0x114724['push'](_0x114724['shift']());}catch(_0x261ffa){_0x114724['push'](_0x114724['shift']());}}}(a185_0x412b,0x8cfdd));function a185_0x2f1d(_0x3ddacb,_0x185a02){_0x3ddacb=_0x3ddacb-0x1c2;const _0x412bd3=a185_0x412b();let _0x2f1df2=_0x412bd3[_0x3ddacb];return _0x2f1df2;}export const isWindows=process['platform']===a185_0x11d193(0x1c2);export function resolveNpmBin(_0x238c71){return isWindows?_0x238c71+'.cmd':_0x238c71;}
1
+ const a185_0x4ac302=a185_0x2631;(function(_0x159a54,_0x4718b5){const _0x1a7ede=a185_0x2631,_0x4860cb=_0x159a54();while(!![]){try{const _0x520030=-parseInt(_0x1a7ede(0x144))/0x1+parseInt(_0x1a7ede(0x147))/0x2+parseInt(_0x1a7ede(0x145))/0x3+-parseInt(_0x1a7ede(0x149))/0x4+-parseInt(_0x1a7ede(0x14a))/0x5+-parseInt(_0x1a7ede(0x146))/0x6*(parseInt(_0x1a7ede(0x148))/0x7)+-parseInt(_0x1a7ede(0x143))/0x8*(-parseInt(_0x1a7ede(0x14c))/0x9);if(_0x520030===_0x4718b5)break;else _0x4860cb['push'](_0x4860cb['shift']());}catch(_0x326a49){_0x4860cb['push'](_0x4860cb['shift']());}}}(a185_0x503a,0x5ad09));export const isWindows=process[a185_0x4ac302(0x14b)]===a185_0x4ac302(0x14d);function a185_0x503a(){const _0x1cf8cf=['248384UWXtBI','90053ValLaH','1432308zSIzqM','2102394ikPvBt','74392ZPJBqs','14tRiApA','454288MQCEqs','1935040ZiPIHG','platform','333fZNVrg','win32'];a185_0x503a=function(){return _0x1cf8cf;};return a185_0x503a();}function a185_0x2631(_0xb65691,_0x36194e){_0xb65691=_0xb65691-0x143;const _0x503adc=a185_0x503a();let _0x26315f=_0x503adc[_0xb65691];return _0x26315f;}export function resolveNpmBin(_0x2ec4f3){return isWindows?_0x2ec4f3+'.cmd':_0x2ec4f3;}
@@ -1 +1 @@
1
- (function(_0x224867,_0x306c05){const _0x2fd3f5=a186_0x307f,_0xcde91c=_0x224867();while(!![]){try{const _0x5731e0=-parseInt(_0x2fd3f5(0x86))/0x1*(parseInt(_0x2fd3f5(0x8d))/0x2)+parseInt(_0x2fd3f5(0x8e))/0x3*(parseInt(_0x2fd3f5(0x90))/0x4)+parseInt(_0x2fd3f5(0x83))/0x5*(parseInt(_0x2fd3f5(0x93))/0x6)+-parseInt(_0x2fd3f5(0x94))/0x7*(-parseInt(_0x2fd3f5(0x9a))/0x8)+-parseInt(_0x2fd3f5(0x84))/0x9+-parseInt(_0x2fd3f5(0x89))/0xa*(-parseInt(_0x2fd3f5(0x8a))/0xb)+-parseInt(_0x2fd3f5(0x91))/0xc;if(_0x5731e0===_0x306c05)break;else _0xcde91c['push'](_0xcde91c['shift']());}catch(_0x377f34){_0xcde91c['push'](_0xcde91c['shift']());}}}(a186_0x1fb1,0x2386a));function a186_0x1fb1(){const _0x10d281=['1510335LkglVd','content','18052SLzrKD','agents.md','lastUpdated','20cQwuVx','1128424TGiJwE','CDN\x20返回数据格式错误','.cursor/rules','28uDWCpj','12hDnzJN','lovrabet_rules.mdc','245576JiauIG','4039956vsFrRM','statusText','410682cbNhgs','1726445vWAXdm','本地模板文件不存在:\x20','utf-8','status','application/json','catch','8psMmZR','15cZpbbt'];a186_0x1fb1=function(){return _0x10d281;};return a186_0x1fb1();}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a186_0x307f(_0x3b747b,_0x1e527c){_0x3b747b=_0x3b747b-0x83;const _0x1fb15d=a186_0x1fb1();let _0x307fa8=_0x1fb15d[_0x3b747b];return _0x307fa8;}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x285ee7=getTemplateBaseUrl();return _0x285ee7+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x511130=a186_0x307f,_0x2fcf5f=getRulesCdnUrl(),_0x46964c=await fetch(_0x2fcf5f,{'headers':{'Accept':_0x511130(0x98)}});if(!_0x46964c['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x46964c[_0x511130(0x97)]+'\x20'+_0x46964c[_0x511130(0x92)]);const _0x144b50=await _0x46964c['json']();if(!_0x144b50[_0x511130(0x85)]||typeof _0x144b50['content']!=='string')throw new Error(_0x511130(0x8b));return _0x144b50;}export async function getRulesContent(){const _0x5d7f8c=a186_0x307f;try{const _0x568b70=await fetchRulesFromCDN();return _0x568b70[_0x5d7f8c(0x85)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x11d591=a186_0x307f;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x11d591(0x96));throw new Error(_0x11d591(0x95)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x26f380){const _0x952f24=a186_0x307f,_0x22c389=await fetchRulesFromCDN()[_0x952f24(0x99)](()=>null);let _0xd99ce0;_0x22c389?(_0xd99ce0=_0x22c389[_0x952f24(0x85)],_0x22c389[_0x952f24(0x88)]&&(_0xd99ce0=appendUpdateTime(_0xd99ce0,_0x22c389[_0x952f24(0x88)]))):_0xd99ce0=readLocalTemplate();const _0x4ba146=dirname(_0x26f380);!existsSync(_0x4ba146)&&mkdirSync(_0x4ba146,{'recursive':!![]}),writeFileSync(_0x26f380,_0xd99ce0,'utf-8');}export async function copyRulesToCursor(_0x2aca5a){const _0x315dbb=a186_0x307f,_0x334c1=join(_0x2aca5a,_0x315dbb(0x8c)),_0x2d734a=join(_0x334c1,_0x315dbb(0x8f));if(existsSync(_0x2d734a))return![];return await writeRulesFile(_0x2d734a),!![];}export async function copyRulesToAgentsMd(_0x152065){const _0x403f99=a186_0x307f,_0x22257d=join(_0x152065,_0x403f99(0x87));if(existsSync(_0x22257d))return![];return await writeRulesFile(_0x22257d),!![];}
1
+ const a186_0x14f0f8=a186_0x38e6;(function(_0x53e0d3,_0x402b73){const _0x5859aa=a186_0x38e6,_0x38ad28=_0x53e0d3();while(!![]){try{const _0x557e6e=parseInt(_0x5859aa(0x17b))/0x1+parseInt(_0x5859aa(0x185))/0x2+-parseInt(_0x5859aa(0x17c))/0x3+-parseInt(_0x5859aa(0x17a))/0x4+-parseInt(_0x5859aa(0x186))/0x5+-parseInt(_0x5859aa(0x17f))/0x6+parseInt(_0x5859aa(0x178))/0x7;if(_0x557e6e===_0x402b73)break;else _0x38ad28['push'](_0x38ad28['shift']());}catch(_0x4a3b36){_0x38ad28['push'](_0x38ad28['shift']());}}}(a186_0x5354,0xcd505));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a186_0x5354(){const _0xc1b2cd=['789858gcWUxk','CDN\x20返回数据格式错误','本地模板文件不存在:\x20','8706372OiPdiE','application/json','CDN\x20请求失败:\x20','string','content','status','1148634sMEOch','1529970foXzzG','statusText','../../templates/rules/lovrabet_rules.mdc.tpl','catch','agents.md','14801682YylIqI','lastUpdated','3963108YatHHk','1163241hfhWbm'];a186_0x5354=function(){return _0xc1b2cd;};return a186_0x5354();}import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x4eb832=getTemplateBaseUrl();return _0x4eb832+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a186_0x14f0f8(0x188));export async function fetchRulesFromCDN(){const _0xd9dfe4=a186_0x14f0f8,_0x1e36b0=getRulesCdnUrl(),_0x54afb7=await fetch(_0x1e36b0,{'headers':{'Accept':_0xd9dfe4(0x180)}});if(!_0x54afb7['ok'])throw new Error(_0xd9dfe4(0x181)+_0x54afb7[_0xd9dfe4(0x184)]+'\x20'+_0x54afb7[_0xd9dfe4(0x187)]);const _0x37ef1e=await _0x54afb7['json']();if(!_0x37ef1e[_0xd9dfe4(0x183)]||typeof _0x37ef1e['content']!==_0xd9dfe4(0x182))throw new Error(_0xd9dfe4(0x17d));return _0x37ef1e;}export async function getRulesContent(){const _0x263b70=a186_0x14f0f8;try{const _0x476f2f=await fetchRulesFromCDN();return _0x476f2f[_0x263b70(0x183)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x5b442d=a186_0x14f0f8;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x5b442d(0x17e)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x535bb8){const _0x2c765e=a186_0x14f0f8,_0x3096e4=await fetchRulesFromCDN()[_0x2c765e(0x176)](()=>null);let _0x41f43c;_0x3096e4?(_0x41f43c=_0x3096e4['content'],_0x3096e4[_0x2c765e(0x179)]&&(_0x41f43c=appendUpdateTime(_0x41f43c,_0x3096e4['lastUpdated']))):_0x41f43c=readLocalTemplate();const _0x13ad99=dirname(_0x535bb8);!existsSync(_0x13ad99)&&mkdirSync(_0x13ad99,{'recursive':!![]}),writeFileSync(_0x535bb8,_0x41f43c,'utf-8');}function a186_0x38e6(_0x4d2b9d,_0x5737de){_0x4d2b9d=_0x4d2b9d-0x176;const _0x5354aa=a186_0x5354();let _0x38e684=_0x5354aa[_0x4d2b9d];return _0x38e684;}export async function copyRulesToCursor(_0x186ded){const _0x74cbb=join(_0x186ded,'.cursor/rules'),_0x25f7d8=join(_0x74cbb,'lovrabet_rules.mdc');if(existsSync(_0x25f7d8))return![];return await writeRulesFile(_0x25f7d8),!![];}export async function copyRulesToAgentsMd(_0x53fa91){const _0x2856a3=a186_0x14f0f8,_0x5e3243=join(_0x53fa91,_0x2856a3(0x177));if(existsSync(_0x5e3243))return![];return await writeRulesFile(_0x5e3243),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x490f74){return new Promise(_0x5cbd95=>setTimeout(_0x5cbd95,_0x490f74));}
1
+ export function sleep(_0x5dca6a){return new Promise(_0x55b229=>setTimeout(_0x55b229,_0x5dca6a));}
@@ -1 +1 @@
1
- const a188_0x12dfa6=a188_0x48ac;(function(_0x568486,_0x2eca46){const _0x5f0882=a188_0x48ac,_0x520be2=_0x568486();while(!![]){try{const _0x49adc7=-parseInt(_0x5f0882(0x1f9))/0x1+parseInt(_0x5f0882(0x1f6))/0x2+-parseInt(_0x5f0882(0x20d))/0x3*(-parseInt(_0x5f0882(0x200))/0x4)+parseInt(_0x5f0882(0x1dd))/0x5*(-parseInt(_0x5f0882(0x1f0))/0x6)+parseInt(_0x5f0882(0x1f8))/0x7+parseInt(_0x5f0882(0x1f5))/0x8*(parseInt(_0x5f0882(0x20b))/0x9)+-parseInt(_0x5f0882(0x1fc))/0xa*(parseInt(_0x5f0882(0x1de))/0xb);if(_0x49adc7===_0x2eca46)break;else _0x520be2['push'](_0x520be2['shift']());}catch(_0x439aa9){_0x520be2['push'](_0x520be2['shift']());}}}(a188_0x3519,0xc0bbe));import a188_0x219a7c from'node:fs';function a188_0x3519(){const _0x3db383=['.jsx','replaceContent','promises','mkdir','\x20},','toUpperCase','join','1745JSfjoz','11NlMIJf','info','tableName:\x20\x22','endsWith','.tpl','模板内容替换完成','getFullYear','default','getHours','template','replaceApiContent','now','readdir','padStart','map','pop','utf8','isDirectory','3804bFTPIq','datasetCode','extname','alias','toISOString','1051024fQhyzA','278492bMWdRV','formatLocalTimestamp','10720647YhOQsw','201533SWGKwp','模板内容替换失败','isFile','25778570XBeleo','toDisplayTitle','toComponentName','push','5849748taPLQM','name','api','getSeconds','.ts','name:\x20\x22','processDirectory','processFile','replace','split','includes','45FSvzgf','processTemplate','3hFioUo','toLowerCase','.js','pad','YourModel','slice','.md','charAt','success','.css','readFile','getMinutes'];a188_0x3519=function(){return _0x3db383;};return a188_0x3519();}import a188_0xb6a8f3 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a188_0x48ac(_0x3d92ad,_0x137c2c){_0x3d92ad=_0x3d92ad-0x1d2;const _0x3519d6=a188_0x3519();let _0x48ac57=_0x3519d6[_0x3d92ad];return _0x48ac57;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0xff4948){const _0x223377=a188_0x48ac;return String(_0xff4948)[_0x223377(0x1eb)](0x2,'0');}static[a188_0x12dfa6(0x1f7)](_0x10eabc){const _0x5dc62a=a188_0x12dfa6,_0x53f828=_0x10eabc[_0x5dc62a(0x1e4)](),_0x1e036d=this[_0x5dc62a(0x210)](_0x10eabc['getMonth']()+0x1),_0xb49123=this[_0x5dc62a(0x210)](_0x10eabc['getDate']()),_0x373fb4=this[_0x5dc62a(0x210)](_0x10eabc[_0x5dc62a(0x1e6)]()),_0x3ce8e8=this[_0x5dc62a(0x210)](_0x10eabc[_0x5dc62a(0x1d5)]()),_0x1da037=this['pad'](_0x10eabc[_0x5dc62a(0x203)]());return{'createdAt':_0x53f828+'-'+_0x1e036d+'-'+_0xb49123+'\x20'+_0x373fb4+':'+_0x3ce8e8+':'+_0x1da037,'createdDate':_0x53f828+'-'+_0x1e036d+'-'+_0xb49123,'createdTime':_0x373fb4+':'+_0x3ce8e8+':'+_0x1da037};}static[a188_0x12dfa6(0x1fe)](_0x3bc82e){const _0x483979=a188_0x12dfa6,_0xafa085=_0x3bc82e['split']('/')[_0x483979(0x1ed)]()||_0x3bc82e;return _0xafa085[_0x483979(0x209)]('-')[_0x483979(0x1ec)](_0x44ea3a=>_0x44ea3a[_0x483979(0x214)](0x0)[_0x483979(0x1db)]()+_0x44ea3a[_0x483979(0x212)](0x1)[_0x483979(0x20e)]())['join']('');}static[a188_0x12dfa6(0x1fd)](_0x33a0b3){const _0x63ed3d=a188_0x12dfa6,_0x406d0e=_0x33a0b3[_0x63ed3d(0x209)]('/')[_0x63ed3d(0x1ed)]()||_0x33a0b3;return _0x406d0e[_0x63ed3d(0x209)]('-')[_0x63ed3d(0x1ec)](_0x57af0c=>_0x57af0c[_0x63ed3d(0x214)](0x0)[_0x63ed3d(0x1db)]()+_0x57af0c['slice'](0x1)[_0x63ed3d(0x20e)]())[_0x63ed3d(0x1dc)]('\x20');}static[a188_0x12dfa6(0x1d7)](_0x44b0e2,_0x47cf29,_0x722909){const _0x435219=a188_0x12dfa6,_0xca620b=this[_0x435219(0x1fe)](_0x47cf29),_0x11bbd7=this[_0x435219(0x1fd)](_0x47cf29),{createdAt:_0x46f048,createdDate:_0x3aab41,createdTime:_0x2c6bdf}=this[_0x435219(0x1f7)](new Date());let _0xa70c1=_0x44b0e2['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0xca620b)[_0x435219(0x208)](/\{DisplayTitle\}/g,_0x11bbd7)[_0x435219(0x208)](/\{PageName\}/g,_0x47cf29)[_0x435219(0x208)](/\{TemplateName\}/g,_0x722909)[_0x435219(0x208)](/\{CreatedAt\}/g,_0x46f048)[_0x435219(0x208)](/\{CreatedDate\}/g,_0x3aab41)[_0x435219(0x208)](/\{CreatedTime\}/g,_0x2c6bdf);return _0xa70c1;}static[a188_0x12dfa6(0x1e8)](_0xdbd212,_0x5c6728,_0x55fed4,_0x455e2c,_0xa31644,_0xf7627a,_0x4b01e3,_0x5e8118){const _0x296bee=a188_0x12dfa6,_0x5fc5=new Date(),_0x3c7867=_0x5fc5[_0x296bee(0x1f4)](),_0x19d06f=_0x55fed4['map'](_0x122af5=>{const _0x51fe65=_0x296bee,_0x44b7a9=['datasetCode:\x20\x22'+_0x122af5[_0x51fe65(0x1f1)]+'\x22',_0x51fe65(0x1e0)+_0x122af5['tableName']+'\x22',_0x51fe65(0x205)+_0x122af5['name']+'\x22'];return _0x122af5[_0x51fe65(0x1f3)]&&_0x44b7a9[_0x51fe65(0x1ff)]('alias:\x20\x22'+_0x122af5[_0x51fe65(0x1f3)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x44b7a9['join'](',\x20')+_0x51fe65(0x1da);})[_0x296bee(0x1dc)](''),_0x324b0c=_0x455e2c||_0x55fed4[0x0]?.['alias']||_0x296bee(0x211);let _0x8888b1=_0xdbd212['replace'](/\{AppCode\}/g,_0x5c6728)['replace'](/\{ModelConfigs\}/g,_0x19d06f)[_0x296bee(0x208)](/\{ExampleModelName\}/g,_0x324b0c)[_0x296bee(0x208)](/\{ApiFileName\}/g,_0xa31644||_0x296bee(0x202))[_0x296bee(0x208)](/\{ConfigName\}/g,_0xf7627a||_0x296bee(0x1e5))[_0x296bee(0x208)](/\{ClientConfigParam\}/g,_0x4b01e3||'')[_0x296bee(0x208)](/\{VarPrefix\}/g,_0x5e8118||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x3c7867);return _0x8888b1;}static async[a188_0x12dfa6(0x20c)](_0x2d1368,_0x3c0ec6,_0x291c06,_0x3fae93,_0x35b3c4=!![]){const _0x1138c5=a188_0x12dfa6,_0x4bb364=Date[_0x1138c5(0x1e9)]();try{_0x35b3c4&&logger[_0x1138c5(0x1df)](_0x1138c5(0x1e7),'开始处理模板内容替换',{'templatePath':_0x2d1368,'targetPath':_0x3c0ec6,'pageName':_0x291c06,'templateName':_0x3fae93});await a188_0x219a7c[_0x1138c5(0x1d8)][_0x1138c5(0x1d9)](_0x3c0ec6,{'recursive':!![]}),await this[_0x1138c5(0x206)](_0x2d1368,_0x3c0ec6,_0x291c06,_0x3fae93);if(_0x35b3c4){const _0x286fe2=Date[_0x1138c5(0x1e9)]()-_0x4bb364;logger[_0x1138c5(0x1d2)](_0x1138c5(0x1e7),_0x1138c5(0x1e3),_0x286fe2,{'pageName':_0x291c06,'templateName':_0x3fae93});}}catch(_0x5abfc2){if(_0x35b3c4){const _0x5c0c2d=Date[_0x1138c5(0x1e9)]()-_0x4bb364;logger['error'](_0x1138c5(0x1e7),_0x1138c5(0x1fa),{'templatePath':_0x2d1368,'targetPath':_0x3c0ec6,'pageName':_0x291c06,'templateName':_0x3fae93,'error':_0x5abfc2 instanceof Error?_0x5abfc2['message']:String(_0x5abfc2),'duration':_0x5c0c2d});}throw _0x5abfc2;}}static async['processDirectory'](_0x5a0106,_0x282d85,_0x2604a5,_0x5a347a){const _0x343fc0=a188_0x12dfa6,_0x3c1424=await a188_0x219a7c[_0x343fc0(0x1d8)][_0x343fc0(0x1ea)](_0x5a0106,{'withFileTypes':!![]});for(const _0x818e07 of _0x3c1424){const _0x409c1c=a188_0xb6a8f3[_0x343fc0(0x1dc)](_0x5a0106,_0x818e07[_0x343fc0(0x201)]);let _0x4e1675=a188_0xb6a8f3[_0x343fc0(0x1dc)](_0x282d85,_0x818e07[_0x343fc0(0x201)]);_0x818e07['name'][_0x343fc0(0x1e1)]('.tpl')&&(_0x4e1675=a188_0xb6a8f3['join'](_0x282d85,_0x818e07[_0x343fc0(0x201)]['replace'](/\.tpl$/,'')));if(_0x818e07[_0x343fc0(0x1ef)]())await a188_0x219a7c[_0x343fc0(0x1d8)]['mkdir'](_0x4e1675,{'recursive':!![]}),await this[_0x343fc0(0x206)](_0x409c1c,_0x4e1675,_0x2604a5,_0x5a347a);else _0x818e07[_0x343fc0(0x1fb)]()&&await this[_0x343fc0(0x207)](_0x409c1c,_0x4e1675,_0x2604a5,_0x5a347a);}}static async[a188_0x12dfa6(0x207)](_0x13e1fd,_0xc6fefe,_0x58713,_0x21f51b){const _0x4213ec=a188_0x12dfa6,_0x3b445d=a188_0xb6a8f3[_0x4213ec(0x1f2)](_0x13e1fd)['toLowerCase']();_0x13e1fd[_0x4213ec(0x1e1)](_0x4213ec(0x1e2))&&(_0xc6fefe=_0xc6fefe[_0x4213ec(0x208)](/\.tpl$/,''));const _0x456ad3=['.tsx',_0x4213ec(0x204),_0x4213ec(0x1d6),_0x4213ec(0x20f),'.json',_0x4213ec(0x213),_0x4213ec(0x1d3),'.scss',_0x4213ec(0x1e2)];if(_0x456ad3[_0x4213ec(0x20a)](_0x3b445d)||_0x13e1fd[_0x4213ec(0x1e1)](_0x4213ec(0x1e2))){const _0x25486e=await a188_0x219a7c[_0x4213ec(0x1d8)][_0x4213ec(0x1d4)](_0x13e1fd,_0x4213ec(0x1ee)),_0x1b7a07=this[_0x4213ec(0x1d7)](_0x25486e,_0x58713,_0x21f51b);await a188_0x219a7c[_0x4213ec(0x1d8)]['writeFile'](_0xc6fefe,_0x1b7a07,'utf8');}else await a188_0x219a7c[_0x4213ec(0x1d8)]['copyFile'](_0x13e1fd,_0xc6fefe);}}
1
+ const a188_0xeb7597=a188_0x45e2;(function(_0x15518d,_0x4de2fb){const _0x26d2b0=a188_0x45e2,_0x6a3e8f=_0x15518d();while(!![]){try{const _0x56ab3f=-parseInt(_0x26d2b0(0xe8))/0x1*(-parseInt(_0x26d2b0(0xec))/0x2)+-parseInt(_0x26d2b0(0x110))/0x3*(parseInt(_0x26d2b0(0xf8))/0x4)+-parseInt(_0x26d2b0(0x10b))/0x5*(-parseInt(_0x26d2b0(0x11d))/0x6)+parseInt(_0x26d2b0(0x120))/0x7+-parseInt(_0x26d2b0(0xfe))/0x8*(-parseInt(_0x26d2b0(0xf2))/0x9)+-parseInt(_0x26d2b0(0xf9))/0xa+parseInt(_0x26d2b0(0x11b))/0xb;if(_0x56ab3f===_0x4de2fb)break;else _0x6a3e8f['push'](_0x6a3e8f['shift']());}catch(_0x3fc73a){_0x6a3e8f['push'](_0x6a3e8f['shift']());}}}(a188_0x53ef,0x359ca));import a188_0x494161 from'node:fs';import a188_0x57b716 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a188_0x53ef(){const _0x34870b=['template','4xtUZcK','1987930wCZBSz','name','.js','slice','readFile','184oZFoFj','replace','\x0a\x20\x20\x20\x20{\x20','success','.md','processDirectory','\x20},','push','error','readdir','toComponentName','.tpl','pop','701565Jjynjm','datasetCode','join','map','extname','426642dJuKSL','replaceApiContent','alias','replaceContent','tableName:\x20\x22','promises','info','datasetCode:\x20\x22','.ts','.css','endsWith','338888KDojJb','utf8','6gOrNVt','isDirectory','toLowerCase','507682LIiJms','default','getMonth','getFullYear','getHours','split','toISOString','YourModel','pad','charAt','模板内容替换完成','模板内容替换失败','1XqixVq','formatLocalTimestamp','processTemplate','mkdir','362002kHppOE','processFile','copyFile','includes','now','toDisplayTitle','53199aIQRXU','message','开始处理模板内容替换','toUpperCase','getDate'];a188_0x53ef=function(){return _0x34870b;};return a188_0x53ef();}function a188_0x45e2(_0x3e8f4b,_0x1e945f){_0x3e8f4b=_0x3e8f4b-0xe6;const _0x53efb3=a188_0x53ef();let _0x45e267=_0x53efb3[_0x3e8f4b];return _0x45e267;}export class TemplateReplacer{static[a188_0xeb7597(0x128)](_0x4ff7e8){return String(_0x4ff7e8)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x389324){const _0x1ae82f=a188_0xeb7597,_0x5514e0=_0x389324[_0x1ae82f(0x123)](),_0x297f1d=this[_0x1ae82f(0x128)](_0x389324[_0x1ae82f(0x122)]()+0x1),_0x38f1bf=this['pad'](_0x389324[_0x1ae82f(0xf6)]()),_0x2536cd=this[_0x1ae82f(0x128)](_0x389324[_0x1ae82f(0x124)]()),_0x5e81e8=this[_0x1ae82f(0x128)](_0x389324['getMinutes']()),_0xd54940=this[_0x1ae82f(0x128)](_0x389324['getSeconds']());return{'createdAt':_0x5514e0+'-'+_0x297f1d+'-'+_0x38f1bf+'\x20'+_0x2536cd+':'+_0x5e81e8+':'+_0xd54940,'createdDate':_0x5514e0+'-'+_0x297f1d+'-'+_0x38f1bf,'createdTime':_0x2536cd+':'+_0x5e81e8+':'+_0xd54940};}static['toComponentName'](_0x40a251){const _0x29d505=a188_0xeb7597,_0x3e52ed=_0x40a251[_0x29d505(0x125)]('/')[_0x29d505(0x10a)]()||_0x40a251;return _0x3e52ed['split']('-')[_0x29d505(0x10e)](_0x42c135=>_0x42c135['charAt'](0x0)[_0x29d505(0xf5)]()+_0x42c135['slice'](0x1)['toLowerCase']())[_0x29d505(0x10d)]('');}static[a188_0xeb7597(0xf1)](_0x2d6ada){const _0x2ebf69=a188_0xeb7597,_0xc6b31e=_0x2d6ada[_0x2ebf69(0x125)]('/')[_0x2ebf69(0x10a)]()||_0x2d6ada;return _0xc6b31e[_0x2ebf69(0x125)]('-')['map'](_0x2edf0c=>_0x2edf0c[_0x2ebf69(0x129)](0x0)[_0x2ebf69(0xf5)]()+_0x2edf0c[_0x2ebf69(0xfc)](0x1)[_0x2ebf69(0x11f)]())['join']('\x20');}static[a188_0xeb7597(0x113)](_0x5bf7a1,_0x35c4f9,_0x1b5af1){const _0x3cae0f=a188_0xeb7597,_0x3cfdc9=this[_0x3cae0f(0x108)](_0x35c4f9),_0x8b297=this['toDisplayTitle'](_0x35c4f9),{createdAt:_0xbe0780,createdDate:_0x32c3a4,createdTime:_0x53c6d9}=this[_0x3cae0f(0xe9)](new Date());let _0x34448c=_0x5bf7a1['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x3cae0f(0xff)](/\{ComponentName\}/g,_0x3cfdc9)[_0x3cae0f(0xff)](/\{DisplayTitle\}/g,_0x8b297)['replace'](/\{PageName\}/g,_0x35c4f9)[_0x3cae0f(0xff)](/\{TemplateName\}/g,_0x1b5af1)['replace'](/\{CreatedAt\}/g,_0xbe0780)[_0x3cae0f(0xff)](/\{CreatedDate\}/g,_0x32c3a4)[_0x3cae0f(0xff)](/\{CreatedTime\}/g,_0x53c6d9);return _0x34448c;}static[a188_0xeb7597(0x111)](_0x4e7b14,_0x5cb90f,_0x451440,_0x787c3e,_0x120112,_0x4e3418,_0x1b0778,_0x1088a3){const _0x295e42=a188_0xeb7597,_0x4abd54=new Date(),_0x2c21ee=_0x4abd54[_0x295e42(0x126)](),_0x294099=_0x451440[_0x295e42(0x10e)](_0x497cce=>{const _0x444858=_0x295e42,_0x2b702c=[_0x444858(0x117)+_0x497cce[_0x444858(0x10c)]+'\x22',_0x444858(0x114)+_0x497cce['tableName']+'\x22','name:\x20\x22'+_0x497cce[_0x444858(0xfa)]+'\x22'];return _0x497cce[_0x444858(0x112)]&&_0x2b702c[_0x444858(0x105)]('alias:\x20\x22'+_0x497cce[_0x444858(0x112)]+'\x22'),_0x444858(0x100)+_0x2b702c[_0x444858(0x10d)](',\x20')+_0x444858(0x104);})['join'](''),_0x111292=_0x787c3e||_0x451440[0x0]?.['alias']||_0x295e42(0x127);let _0x3539cc=_0x4e7b14[_0x295e42(0xff)](/\{AppCode\}/g,_0x5cb90f)[_0x295e42(0xff)](/\{ModelConfigs\}/g,_0x294099)['replace'](/\{ExampleModelName\}/g,_0x111292)[_0x295e42(0xff)](/\{ApiFileName\}/g,_0x120112||'api')['replace'](/\{ConfigName\}/g,_0x4e3418||_0x295e42(0x121))['replace'](/\{ClientConfigParam\}/g,_0x1b0778||'')[_0x295e42(0xff)](/\{VarPrefix\}/g,_0x1088a3||'LOVRABET')[_0x295e42(0xff)](/\{CreatedAt\}/g,_0x2c21ee);return _0x3539cc;}static async[a188_0xeb7597(0xea)](_0x3cf33d,_0x41170a,_0x1ef0c1,_0x2f3cd9,_0xa92c6=!![]){const _0x2b449c=a188_0xeb7597,_0x323f6a=Date[_0x2b449c(0xf0)]();try{_0xa92c6&&logger[_0x2b449c(0x116)]('template',_0x2b449c(0xf4),{'templatePath':_0x3cf33d,'targetPath':_0x41170a,'pageName':_0x1ef0c1,'templateName':_0x2f3cd9});await a188_0x494161['promises']['mkdir'](_0x41170a,{'recursive':!![]}),await this[_0x2b449c(0x103)](_0x3cf33d,_0x41170a,_0x1ef0c1,_0x2f3cd9);if(_0xa92c6){const _0x59c4d2=Date[_0x2b449c(0xf0)]()-_0x323f6a;logger[_0x2b449c(0x101)](_0x2b449c(0xf7),_0x2b449c(0xe6),_0x59c4d2,{'pageName':_0x1ef0c1,'templateName':_0x2f3cd9});}}catch(_0x4ee791){if(_0xa92c6){const _0x5b3355=Date[_0x2b449c(0xf0)]()-_0x323f6a;logger[_0x2b449c(0x106)]('template',_0x2b449c(0xe7),{'templatePath':_0x3cf33d,'targetPath':_0x41170a,'pageName':_0x1ef0c1,'templateName':_0x2f3cd9,'error':_0x4ee791 instanceof Error?_0x4ee791[_0x2b449c(0xf3)]:String(_0x4ee791),'duration':_0x5b3355});}throw _0x4ee791;}}static async[a188_0xeb7597(0x103)](_0x1de616,_0x66ba6,_0x2a1377,_0x493422){const _0x1bdd1f=a188_0xeb7597,_0x152168=await a188_0x494161[_0x1bdd1f(0x115)][_0x1bdd1f(0x107)](_0x1de616,{'withFileTypes':!![]});for(const _0x1fc1e9 of _0x152168){const _0x3bedde=a188_0x57b716[_0x1bdd1f(0x10d)](_0x1de616,_0x1fc1e9['name']);let _0xc88b22=a188_0x57b716[_0x1bdd1f(0x10d)](_0x66ba6,_0x1fc1e9[_0x1bdd1f(0xfa)]);_0x1fc1e9[_0x1bdd1f(0xfa)]['endsWith'](_0x1bdd1f(0x109))&&(_0xc88b22=a188_0x57b716[_0x1bdd1f(0x10d)](_0x66ba6,_0x1fc1e9[_0x1bdd1f(0xfa)]['replace'](/\.tpl$/,'')));if(_0x1fc1e9[_0x1bdd1f(0x11e)]())await a188_0x494161[_0x1bdd1f(0x115)][_0x1bdd1f(0xeb)](_0xc88b22,{'recursive':!![]}),await this[_0x1bdd1f(0x103)](_0x3bedde,_0xc88b22,_0x2a1377,_0x493422);else _0x1fc1e9['isFile']()&&await this[_0x1bdd1f(0xed)](_0x3bedde,_0xc88b22,_0x2a1377,_0x493422);}}static async['processFile'](_0x22972a,_0xae571f,_0x472856,_0x11c62f){const _0x27a51e=a188_0xeb7597,_0x4ef294=a188_0x57b716[_0x27a51e(0x10f)](_0x22972a)[_0x27a51e(0x11f)]();_0x22972a[_0x27a51e(0x11a)]('.tpl')&&(_0xae571f=_0xae571f['replace'](/\.tpl$/,''));const _0x4c2414=['.tsx',_0x27a51e(0x118),'.jsx',_0x27a51e(0xfb),'.json',_0x27a51e(0x102),_0x27a51e(0x119),'.scss','.tpl'];if(_0x4c2414[_0x27a51e(0xef)](_0x4ef294)||_0x22972a['endsWith'](_0x27a51e(0x109))){const _0x5a4f8e=await a188_0x494161['promises'][_0x27a51e(0xfd)](_0x22972a,_0x27a51e(0x11c)),_0x4dc7b6=this[_0x27a51e(0x113)](_0x5a4f8e,_0x472856,_0x11c62f);await a188_0x494161[_0x27a51e(0x115)]['writeFile'](_0xae571f,_0x4dc7b6,_0x27a51e(0x11c));}else await a188_0x494161['promises'][_0x27a51e(0xee)](_0x22972a,_0xae571f);}}
@@ -1 +1 @@
1
- (function(_0x480b82,_0x2e974a){var _0x2becfc=a189_0x2ca7,_0x2899fe=_0x480b82();while(!![]){try{var _0x35e4a7=parseInt(_0x2becfc(0xe3))/0x1+parseInt(_0x2becfc(0xe1))/0x2*(parseInt(_0x2becfc(0xe6))/0x3)+parseInt(_0x2becfc(0xdd))/0x4*(parseInt(_0x2becfc(0xe0))/0x5)+parseInt(_0x2becfc(0xdf))/0x6*(-parseInt(_0x2becfc(0xe4))/0x7)+-parseInt(_0x2becfc(0xde))/0x8+parseInt(_0x2becfc(0xe2))/0x9+-parseInt(_0x2becfc(0xe5))/0xa*(-parseInt(_0x2becfc(0xdc))/0xb);if(_0x35e4a7===_0x2e974a)break;else _0x2899fe['push'](_0x2899fe['shift']());}catch(_0x3bf0be){_0x2899fe['push'](_0x2899fe['shift']());}}}(a189_0x2b66,0x5d6ab));function a189_0x2ca7(_0x44126d,_0x255861){_0x44126d=_0x44126d-0xdc;var _0x2b6610=a189_0x2b66();var _0x2ca798=_0x2b6610[_0x44126d];return _0x2ca798;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a189_0x2b66(){var _0x5342d9=['3969846NPzhMb','269300rPyXjv','5280394iZlfer','324180iiVLWN','36mruYEc','187TfRwTM','4Pbftph','3219024AzCbJy','6nRXjUR','771935NFiNNi','20578HAQfrI'];a189_0x2b66=function(){return _0x5342d9;};return a189_0x2b66();}
1
+ (function(_0xaa59e6,_0x3d8154){var _0x25f9dd=a189_0x1aa7,_0x170d3f=_0xaa59e6();while(!![]){try{var _0x32aaa2=-parseInt(_0x25f9dd(0xd0))/0x1*(-parseInt(_0x25f9dd(0xd7))/0x2)+parseInt(_0x25f9dd(0xd8))/0x3*(parseInt(_0x25f9dd(0xcd))/0x4)+parseInt(_0x25f9dd(0xd3))/0x5+-parseInt(_0x25f9dd(0xce))/0x6*(-parseInt(_0x25f9dd(0xd6))/0x7)+parseInt(_0x25f9dd(0xd2))/0x8*(parseInt(_0x25f9dd(0xcf))/0x9)+parseInt(_0x25f9dd(0xd5))/0xa*(parseInt(_0x25f9dd(0xd4))/0xb)+-parseInt(_0x25f9dd(0xd1))/0xc;if(_0x32aaa2===_0x3d8154)break;else _0x170d3f['push'](_0x170d3f['shift']());}catch(_0x1ab12f){_0x170d3f['push'](_0x170d3f['shift']());}}}(a189_0x4fd0,0x37a54));function a189_0x1aa7(_0x2ea00f,_0x3ccff2){_0x2ea00f=_0x2ea00f-0xcd;var _0x4fd089=a189_0x4fd0();var _0x1aa7b6=_0x4fd089[_0x2ea00f];return _0x1aa7b6;}import{VERSION}from'../generated/build-info.js';function a189_0x4fd0(){var _0x4c9303=['3091MuhUqn','15490yrjEwD','7ByMUhB','62djPeYS','139197iWmIeq','36oIMdhl','1990512KkDPFs','297HjLUBk','8292GHzUYB','21192324thXXRD','74744ABSZNA','1219840ICVslm'];a189_0x4fd0=function(){return _0x4c9303;};return a189_0x4fd0();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a190_0x3b9f(_0xbfff97,_0x453aa9){_0xbfff97=_0xbfff97-0xdb;var _0x287d09=a190_0x287d();var _0x3b9f57=_0x287d09[_0xbfff97];return _0x3b9f57;}(function(_0xcddb96,_0x23893e){var _0x11dab8=a190_0x3b9f,_0x529e83=_0xcddb96();while(!![]){try{var _0x4ad97b=-parseInt(_0x11dab8(0xe2))/0x1+parseInt(_0x11dab8(0xdf))/0x2+-parseInt(_0x11dab8(0xdd))/0x3*(parseInt(_0x11dab8(0xe1))/0x4)+parseInt(_0x11dab8(0xe0))/0x5+-parseInt(_0x11dab8(0xdb))/0x6*(parseInt(_0x11dab8(0xe4))/0x7)+parseInt(_0x11dab8(0xde))/0x8+parseInt(_0x11dab8(0xe3))/0x9*(parseInt(_0x11dab8(0xdc))/0xa);if(_0x4ad97b===_0x23893e)break;else _0x529e83['push'](_0x529e83['shift']());}catch(_0xe90cfd){_0x529e83['push'](_0x529e83['shift']());}}}(a190_0x287d,0x72814));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a190_0x287d(){var _0x523527=['6376440KUjyTC','1088750jcRLer','891610PAKwSM','24SKcuUs','748653GofsYQ','1062ByyILf','7qXOZbc','2253138MoCCFz','78290OIXkrj','425193MAbzbk'];a190_0x287d=function(){return _0x523527;};return a190_0x287d();}export async function withActiveCookie(_0x591ab3,_0x1b1ff1){setActiveCookie(_0x591ab3);try{return await _0x1b1ff1();}finally{clearActiveCookie();}}
1
+ (function(_0x2fe621,_0x1c8987){var _0x168d13=a190_0x26aa,_0x4ccb39=_0x2fe621();while(!![]){try{var _0x4d7508=parseInt(_0x168d13(0x7a))/0x1+-parseInt(_0x168d13(0x73))/0x2+-parseInt(_0x168d13(0x74))/0x3*(-parseInt(_0x168d13(0x77))/0x4)+-parseInt(_0x168d13(0x79))/0x5+parseInt(_0x168d13(0x76))/0x6+-parseInt(_0x168d13(0x75))/0x7+parseInt(_0x168d13(0x78))/0x8;if(_0x4d7508===_0x1c8987)break;else _0x4ccb39['push'](_0x4ccb39['shift']());}catch(_0x171f97){_0x4ccb39['push'](_0x4ccb39['shift']());}}}(a190_0x356a,0x723b7));function a190_0x356a(){var _0x60e263=['1413176behILg','1037826LGiGyI','2479190mCBJTs','2847606jryLEu','4AHOkpU','2256344GSdawU','2429120OsVkpk','911891VgLVhz'];a190_0x356a=function(){return _0x60e263;};return a190_0x356a();}function a190_0x26aa(_0x323388,_0x557872){_0x323388=_0x323388-0x73;var _0x356a99=a190_0x356a();var _0x26aaba=_0x356a99[_0x323388];return _0x26aaba;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x1cd327,_0x20b446){setActiveCookie(_0x1cd327);try{return await _0x20b446();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a191_0xbcdf(){var _0x253a03=['write','859252ViqNEh','918tQVMrL','1990tKofAf','555336lsezmi','stderr','8339193JdtTHW','6014880KYQqBO','436120vMgpdk','91zfySyU','3158820vzsKTF','3UkownX'];a191_0xbcdf=function(){return _0x253a03;};return a191_0xbcdf();}function a191_0x3f06(_0x2294ee,_0x34c924){_0x2294ee=_0x2294ee-0xa2;var _0xbcdfd2=a191_0xbcdf();var _0x3f0654=_0xbcdfd2[_0x2294ee];return _0x3f0654;}(function(_0x358a83,_0x740d8e){var _0x3f3150=a191_0x3f06,_0x21cb4f=_0x358a83();while(!![]){try{var _0x1e9991=-parseInt(_0x3f3150(0xa3))/0x1*(-parseInt(_0x3f3150(0xa4))/0x2)+-parseInt(_0x3f3150(0xac))/0x3*(-parseInt(_0x3f3150(0xa2))/0x4)+parseInt(_0x3f3150(0xab))/0x5+-parseInt(_0x3f3150(0xa5))/0x6+-parseInt(_0x3f3150(0xaa))/0x7*(parseInt(_0x3f3150(0xa9))/0x8)+-parseInt(_0x3f3150(0xa7))/0x9+parseInt(_0x3f3150(0xa8))/0xa;if(_0x1e9991===_0x740d8e)break;else _0x21cb4f['push'](_0x21cb4f['shift']());}catch(_0x1abaa3){_0x21cb4f['push'](_0x21cb4f['shift']());}}}(a191_0xbcdf,0x9ab2f));export function writeCliSideChannelLine(_0x2fa583){var _0x20e6df=a191_0x3f06;process[_0x20e6df(0xa6)][_0x20e6df(0xad)](_0x2fa583+'\x0a');}
1
+ function a191_0x4137(_0x5675ab,_0x223da7){_0x5675ab=_0x5675ab-0x85;var _0x5fe85a=a191_0x5fe8();var _0x4137ae=_0x5fe85a[_0x5675ab];return _0x4137ae;}(function(_0xf113a8,_0x3a8a3d){var _0x26b5cf=a191_0x4137,_0x12f2a2=_0xf113a8();while(!![]){try{var _0x5d7a09=-parseInt(_0x26b5cf(0x92))/0x1*(-parseInt(_0x26b5cf(0x8b))/0x2)+parseInt(_0x26b5cf(0x8a))/0x3+-parseInt(_0x26b5cf(0x8c))/0x4*(-parseInt(_0x26b5cf(0x90))/0x5)+-parseInt(_0x26b5cf(0x89))/0x6*(parseInt(_0x26b5cf(0x8d))/0x7)+parseInt(_0x26b5cf(0x8e))/0x8*(-parseInt(_0x26b5cf(0x87))/0x9)+-parseInt(_0x26b5cf(0x88))/0xa*(-parseInt(_0x26b5cf(0x8f))/0xb)+parseInt(_0x26b5cf(0x91))/0xc*(-parseInt(_0x26b5cf(0x93))/0xd);if(_0x5d7a09===_0x3a8a3d)break;else _0x12f2a2['push'](_0x12f2a2['shift']());}catch(_0x33b23d){_0x12f2a2['push'](_0x12f2a2['shift']());}}}(a191_0x5fe8,0x9b66b));export function writeCliSideChannelLine(_0x1aab41){var _0x5aad4b=a191_0x4137;process[_0x5aad4b(0x86)][_0x5aad4b(0x85)](_0x1aab41+'\x0a');}function a191_0x5fe8(){var _0x1ad14f=['7zmhNDm','2720HFMdom','6446LYgBNH','10TXqnyj','24Mbkxyv','186bpHPXU','7130812dpMMfK','write','stderr','10548nzEvwU','21370DZUmmk','419814qixUEc','877116SDvGov','1168FnWDfR','1097484iAjurV'];a191_0x5fe8=function(){return _0x1ad14f;};return a191_0x5fe8();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.6-beta.0",
3
+ "version": "2.1.6",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",