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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 -0
  48. package/lib/commands/data/getOne.js +1 -0
  49. package/lib/commands/data/index.js +1 -0
  50. package/lib/commands/data/shared.js +1 -0
  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 -0
  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 +4 -4
@@ -1 +1 @@
1
- (function(_0x3ef8f7,_0x31a966){const _0x5a28ac=a168_0xced0,_0xec958=_0x3ef8f7();while(!![]){try{const _0x299fa2=-parseInt(_0x5a28ac(0x131))/0x1+parseInt(_0x5a28ac(0x13f))/0x2+parseInt(_0x5a28ac(0x13c))/0x3*(-parseInt(_0x5a28ac(0x139))/0x4)+parseInt(_0x5a28ac(0x138))/0x5+-parseInt(_0x5a28ac(0x137))/0x6*(parseInt(_0x5a28ac(0x132))/0x7)+-parseInt(_0x5a28ac(0x13a))/0x8+parseInt(_0x5a28ac(0x141))/0x9;if(_0x299fa2===_0x31a966)break;else _0xec958['push'](_0xec958['shift']());}catch(_0x4e792c){_0xec958['push'](_0xec958['shift']());}}}(a168_0x2f20,0xe28fc));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x22f4f5=a168_0xced0,_0x388941=getTemplateBaseUrl(),_0x426cc1=[_0x388941+_0x22f4f5(0x13b),_0x388941+'/config/index.json'];for(const _0x56d50f of _0x426cc1){try{const _0x68971f=await fetch(_0x56d50f,{'headers':{'Accept':_0x22f4f5(0x135)}});if(!_0x68971f['ok'])continue;const _0x490d97=await _0x68971f[_0x22f4f5(0x140)]();if(!_0x490d97[_0x22f4f5(0x133)]?.[_0x22f4f5(0x13e)]||!_0x490d97[_0x22f4f5(0x136)]?.[_0x22f4f5(0x13d)]?.[_0x22f4f5(0x13e)])continue;return _0x490d97;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a168_0xced0(_0x594606,_0x229595){_0x594606=_0x594606-0x131;const _0x2f208d=a168_0x2f20();let _0xced0a3=_0x2f208d[_0x594606];return _0xced0a3;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a168_0x2f20(){const _0x599ebb=['24623937dcXvqG','748309acalNL','7690165iBqIKR','cli','now','application/json','sdk','6zGAfAV','6159970MxZMOq','28fVqoPs','12233064gdoBCf','/config.json','281742jbbNQp','node','stableVersion','1986888fRoMob','json'];a168_0x2f20=function(){return _0x599ebb;};return a168_0x2f20();}export async function getCdnConfig(){const _0x64242c=a168_0xced0,_0x2a7221=Date[_0x64242c(0x134)]();if(hasCachedConfig){const _0x4810ae=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2a7221-cacheTime<_0x4810ae)return cachedConfig;}const _0x26503b=await fetchCdnConfig();return cachedConfig=_0x26503b,cacheTime=_0x2a7221,hasCachedConfig=!![],_0x26503b;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
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 +1 @@
1
- const a169_0x48a855=a169_0x18eb;function a169_0x18eb(_0x46b555,_0x3c8a99){_0x46b555=_0x46b555-0x9c;const _0x49762=a169_0x4976();let _0x18eb4e=_0x49762[_0x46b555];return _0x18eb4e;}(function(_0x11e8e1,_0x20ca90){const _0x2d6137=a169_0x18eb,_0x1c0835=_0x11e8e1();while(!![]){try{const _0x5ca9ba=parseInt(_0x2d6137(0xc5))/0x1*(parseInt(_0x2d6137(0xa2))/0x2)+-parseInt(_0x2d6137(0xb7))/0x3*(parseInt(_0x2d6137(0xa4))/0x4)+-parseInt(_0x2d6137(0xa5))/0x5*(-parseInt(_0x2d6137(0xb1))/0x6)+-parseInt(_0x2d6137(0xbf))/0x7+-parseInt(_0x2d6137(0xc2))/0x8+-parseInt(_0x2d6137(0xc4))/0x9+parseInt(_0x2d6137(0xa9))/0xa*(parseInt(_0x2d6137(0x9d))/0xb);if(_0x5ca9ba===_0x20ca90)break;else _0x1c0835['push'](_0x1c0835['shift']());}catch(_0x25183e){_0x1c0835['push'](_0x1c0835['shift']());}}}(a169_0x4976,0x77613));import a169_0x10e199 from'node:fs';import a169_0x3fefad from'node:path';import a169_0x5030af from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a169_0x48a855(0xb6);function isNonNumericVersion(_0x45d1c1){const _0x555b87=a169_0x48a855,_0x5c1386=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5c1386[_0x555b87(0xaf)](_0x5b17c3=>_0x5b17c3[_0x555b87(0xc0)](_0x45d1c1));}function getInstalledVersion(_0x539c2d,_0x581be6){const _0x4ac694=a169_0x48a855;try{const _0x4343b0=a169_0x3fefad[_0x4ac694(0xb3)](_0x539c2d,_0x4ac694(0xc6),_0x581be6,_0x4ac694(0xb4));if(a169_0x10e199[_0x4ac694(0xb0)](_0x4343b0)){const _0x3f1323=JSON['parse'](a169_0x10e199[_0x4ac694(0xab)](_0x4343b0,_0x4ac694(0xad)));return _0x3f1323[_0x4ac694(0xb8)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x2b40ad=a169_0x48a855;try{const _0x2f37ef=await getCdnConfig();return _0x2f37ef?.[_0x2b40ad(0xa8)]?.[_0x2b40ad(0x9f)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x19211=a169_0x48a855;try{const _0x1c76a2=await getCdnConfig();return _0x1c76a2?.[_0x19211(0xa8)]?.[_0x19211(0x9f)]?.['packageName']||_0x19211(0xa7);}catch{return _0x19211(0xa7);}}function a169_0x4976(){const _0x198838=['832718rCcNld','stableVersion','52Pnruno','7355yIMjQM','\x20\x20\x20Current\x20version:\x20','@lovrabet/sdk','sdk','22780TaIRsL','all','readFileSync','utf8','utf-8','log','some','existsSync','3474yHDOnA','\x1b[0m','join','package.json','minVersion','1.2.0','95199QCdpae','version','\x1b[1m','latest','npm\x20install\x20','dependencies','packageName','parse','1766177DMOnir','test','\x20\x20\x20Upgrade\x20command:\x20','2628344kCGkjE','\x1b[33m','8256213ygfxha','2YeRGcI','node_modules','needsUpgrade','devDependencies','3454BUGDeY','coerce','node','↪\x20SDK\x20update\x20available','\x20\x20\x20Stable\x20version:\x20'];a169_0x4976=function(){return _0x198838;};return a169_0x4976();}export async function checkSdkVersion(_0x2cf19f){const _0x449acd=a169_0x48a855,_0x150a67=a169_0x3fefad[_0x449acd(0xb3)](_0x2cf19f,'package.json'),[_0x427cd4,_0x1dfd69]=await Promise[_0x449acd(0xaa)]([getSdkStableVersion(),getSdkPackageName()]),_0x471d15=_0x427cd4||FALLBACK_MIN_SDK_VERSION;if(!a169_0x10e199[_0x449acd(0xb0)](_0x150a67))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x471d15,'packageName':_0x1dfd69,'stableVersion':_0x427cd4};try{const _0x54d403=JSON[_0x449acd(0xbe)](a169_0x10e199[_0x449acd(0xab)](_0x150a67,'utf8')),_0x4e29fd=_0x54d403[_0x449acd(0xbc)]||{},_0x55def3=_0x54d403[_0x449acd(0x9c)]||{},_0x38d7c5=_0x4e29fd[_0x1dfd69]||_0x55def3[_0x1dfd69];if(!_0x38d7c5)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x471d15,'packageName':_0x1dfd69,'stableVersion':_0x427cd4};let _0x28af67=getInstalledVersion(_0x2cf19f,_0x1dfd69);!_0x28af67&&(_0x28af67=_0x38d7c5);if(isNonNumericVersion(_0x38d7c5))return{'installed':!![],'version':_0x28af67,'needsUpgrade':![],'minVersion':_0x471d15,'packageName':_0x1dfd69,'stableVersion':_0x427cd4};const _0x5b7583=a169_0x5030af[_0x449acd(0x9e)](_0x28af67),_0x35faa8=a169_0x5030af['coerce'](_0x471d15),_0x3a5d65=_0x5b7583&&_0x35faa8?a169_0x5030af['lt'](_0x5b7583,_0x35faa8):![];return{'installed':!![],'version':_0x28af67,'needsUpgrade':_0x3a5d65,'minVersion':_0x471d15,'packageName':_0x1dfd69,'stableVersion':_0x427cd4};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x471d15,'packageName':_0x1dfd69,'stableVersion':_0x427cd4};}}export function checkSdkVersionSync(_0x29628c){const _0x19ed45=a169_0x48a855,_0x2971df=a169_0x3fefad['join'](_0x29628c,_0x19ed45(0xb4)),_0x43e8a6=_0x19ed45(0xa7);if(!a169_0x10e199[_0x19ed45(0xb0)](_0x2971df))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x43e8a6,'stableVersion':null};try{const _0x24b47d=JSON[_0x19ed45(0xbe)](a169_0x10e199['readFileSync'](_0x2971df,_0x19ed45(0xac))),_0x370bed=_0x24b47d[_0x19ed45(0xbc)]||{},_0x22635e=_0x24b47d[_0x19ed45(0x9c)]||{},_0x509868=_0x370bed[_0x43e8a6]||_0x22635e[_0x43e8a6];if(!_0x509868)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x43e8a6,'stableVersion':null};let _0x419e66=getInstalledVersion(_0x29628c,_0x43e8a6);!_0x419e66&&(_0x419e66=_0x509868);if(isNonNumericVersion(_0x509868))return{'installed':!![],'version':_0x419e66,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x43e8a6,'stableVersion':null};const _0x5ca34b=a169_0x5030af[_0x19ed45(0x9e)](_0x419e66),_0x453617=_0x5ca34b?a169_0x5030af['lt'](_0x5ca34b,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x419e66,'needsUpgrade':_0x453617,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x43e8a6,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x43e8a6,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x109ace){const _0x4e6c56=a169_0x48a855;if(!_0x109ace[_0x4e6c56(0xc7)])return;const _0x586b43=_0x4e6c56(0xc3),_0x4961ec=_0x4e6c56(0xb2),_0x4a8f85=_0x4e6c56(0xb9),_0x482066=_0x109ace[_0x4e6c56(0xbd)]||'@lovrabet/sdk',_0x443a6e=_0x109ace[_0x4e6c56(0xa3)]||_0x109ace[_0x4e6c56(0xb5)],_0x196feb=_0x4e6c56(0xbb)+_0x482066+'@'+(_0x443a6e||_0x4e6c56(0xba));console[_0x4e6c56(0xae)](),console[_0x4e6c56(0xae)](''+_0x586b43+_0x4a8f85+_0x4e6c56(0xa0)+_0x4961ec),console[_0x4e6c56(0xae)](_0x586b43+_0x4e6c56(0xa6)+_0x482066+'@'+_0x109ace[_0x4e6c56(0xb8)]+_0x4961ec),console[_0x4e6c56(0xae)](_0x586b43+_0x4e6c56(0xa1)+_0x443a6e+_0x4961ec),console[_0x4e6c56(0xae)](_0x586b43+_0x4e6c56(0xc1)+_0x196feb+_0x4961ec),console[_0x4e6c56(0xae)]();}
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 +1 @@
1
- (function(_0x7c5632,_0x4e78f4){const _0x2458e9=a170_0x4cb2,_0xf7f448=_0x7c5632();while(!![]){try{const _0x2abac6=parseInt(_0x2458e9(0x1ba))/0x1*(parseInt(_0x2458e9(0x1b7))/0x2)+parseInt(_0x2458e9(0x1be))/0x3+parseInt(_0x2458e9(0x1b8))/0x4+-parseInt(_0x2458e9(0x1c6))/0x5+-parseInt(_0x2458e9(0x1af))/0x6*(-parseInt(_0x2458e9(0x1a9))/0x7)+-parseInt(_0x2458e9(0x1b5))/0x8*(parseInt(_0x2458e9(0x1c4))/0x9)+parseInt(_0x2458e9(0x1b4))/0xa*(-parseInt(_0x2458e9(0x1b0))/0xb);if(_0x2abac6===_0x4e78f4)break;else _0xf7f448['push'](_0xf7f448['shift']());}catch(_0x23ab96){_0xf7f448['push'](_0xf7f448['shift']());}}}(a170_0x141a,0xcda34));import{readFileSync}from'node:fs';function a170_0x4cb2(_0x396d51,_0x37cb44){_0x396d51=_0x396d51-0x1a3;const _0x141afc=a170_0x141a();let _0x4cb2d2=_0x141afc[_0x396d51];return _0x4cb2d2;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a170_0xff55d4 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x3d42a1){const _0x36cc5c=a170_0x4cb2,_0x152137=_0x3d42a1[_0x36cc5c(0x1c0)]||_0x36cc5c(0x1bf);return _0x36cc5c(0x1a5)+NPM_PACKAGE_NAME+'@'+_0x152137;}function getCurrentCliVersion(){const _0x2bfcc3=a170_0x4cb2;try{const _0x5c547a=fileURLToPath(import.meta.url),_0x46e791=resolve(dirname(_0x5c547a),'../..'),_0xc93cf1=resolve(_0x46e791,_0x2bfcc3(0x1c5)),_0x2b1596=JSON[_0x2bfcc3(0x1a8)](readFileSync(_0xc93cf1,_0x2bfcc3(0x1aa)));return _0x2b1596[_0x2bfcc3(0x1c1)]||'1.0.0';}catch{return _0x2bfcc3(0x1b9);}}export async function checkCliVersion(){const _0x5cf594=a170_0x4cb2,_0x26763a=getCurrentCliVersion(),_0x352829=await getCliVersionPolicy(),_0x31cc2c=_0x352829?.[_0x5cf594(0x1c0)]||null,_0x58dec1=_0x352829?.['minimumVersion']||null;let _0x56aedb=![],_0x1653c3=![];const _0x409320=a170_0xff55d4[_0x5cf594(0x1c3)](_0x26763a);if(_0x409320&&_0x31cc2c)try{const _0x5f5900=a170_0xff55d4[_0x5cf594(0x1c3)](_0x31cc2c);if(_0x5f5900)_0x56aedb=a170_0xff55d4['lt'](_0x409320,_0x5f5900);}catch{}if(_0x409320&&_0x58dec1)try{const _0x3cccb5=a170_0xff55d4['coerce'](_0x58dec1);if(_0x3cccb5)_0x1653c3=a170_0xff55d4['lt'](_0x409320,_0x3cccb5);}catch{}return _0x1653c3&&(_0x56aedb=!![]),{'currentVersion':_0x26763a,'stableVersion':_0x31cc2c,'minimumVersion':_0x58dec1,'needsUpgrade':_0x56aedb,'belowMinimum':_0x1653c3,'isPreRelease':![],'upgradeMessage':_0x352829?.[_0x5cf594(0x1a4)],'minimumVersionMessage':_0x352829?.[_0x5cf594(0x1ae)]};}function a170_0x141a(){const _0x1b394b=['190eYYoCg','5689692darfQT','1.0.0','661IxgOHN','needsUpgrade','\x20\x20\x20Current\x20CLI\x20version:\x20','join','4193391ODClyf','latest','stableVersion','version','log','coerce','9ZZTPRN','package.json','7737870mmkbXb','currentVersion','\x20\x20\x20','minimumVersion','upgradeMessage','npm\x20install\x20-g\x20','Current\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','parse','336jQIvlD','utf-8','↪\x20New\x20version\x20available','\x1b[31m','\x20\x20\x20Recommended\x20stable:\x20','minimumVersionMessage','136254sLWTPe','418yFMStr','\x1b[0m','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','28790QkGfuE','11790232ESbkRH','belowMinimum'];a170_0x141a=function(){return _0x1b394b;};return a170_0x141a();}export function printCliUpgradeWarning(_0x58116f){const _0x397131=a170_0x4cb2;if(!_0x58116f[_0x397131(0x1bb)]&&!_0x58116f[_0x397131(0x1b6)])return;const _0x39bed9=_0x397131(0x1ac),_0x307fc1='\x1b[33m',_0x2a9fa7=_0x397131(0x1b1),_0x41c411='\x1b[1m',_0x14108d=getCliUpgradeCommand(_0x58116f);console[_0x397131(0x1c2)](),_0x58116f[_0x397131(0x1b6)]?(console['log'](''+_0x39bed9+_0x41c411+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x2a9fa7),console['log'](_0x39bed9+_0x397131(0x1bc)+_0x58116f[_0x397131(0x1c7)]+_0x2a9fa7),_0x58116f[_0x397131(0x1a3)]&&console[_0x397131(0x1c2)](_0x39bed9+'\x20\x20\x20Minimum\x20required:\x20'+_0x58116f['minimumVersion']+_0x2a9fa7),_0x58116f[_0x397131(0x1c0)]&&_0x58116f[_0x397131(0x1c0)]!==_0x58116f[_0x397131(0x1a3)]&&console[_0x397131(0x1c2)](_0x39bed9+_0x397131(0x1ad)+_0x58116f['stableVersion']+_0x2a9fa7),_0x58116f[_0x397131(0x1ae)]&&console['log'](_0x39bed9+_0x397131(0x1c8)+_0x58116f[_0x397131(0x1ae)]+_0x2a9fa7),console[_0x397131(0x1c2)](_0x39bed9+_0x397131(0x1b3)+_0x14108d+_0x2a9fa7)):(console[_0x397131(0x1c2)](''+_0x307fc1+_0x41c411+_0x397131(0x1ab)+_0x2a9fa7),console[_0x397131(0x1c2)](_0x307fc1+_0x397131(0x1bc)+_0x58116f[_0x397131(0x1c7)]+_0x2a9fa7),console[_0x397131(0x1c2)](_0x307fc1+_0x397131(0x1b2)+_0x58116f[_0x397131(0x1c0)]+_0x2a9fa7),_0x58116f[_0x397131(0x1a4)]&&console['log'](_0x307fc1+_0x397131(0x1c8)+_0x58116f[_0x397131(0x1a4)]+_0x2a9fa7),console['log'](_0x307fc1+_0x397131(0x1b3)+_0x14108d+_0x2a9fa7)),console[_0x397131(0x1c2)]();}export function assertCliVersionSupported(_0x505fa5){const _0x24d4e0=a170_0x4cb2;if(!_0x505fa5[_0x24d4e0(0x1b6)])return;const _0x481d6f=[_0x505fa5[_0x24d4e0(0x1ae)],_0x24d4e0(0x1a6)+_0x505fa5['currentVersion'],_0x505fa5[_0x24d4e0(0x1a3)]?'Minimum\x20required:\x20'+_0x505fa5[_0x24d4e0(0x1a3)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x505fa5)]['filter'](Boolean)[_0x24d4e0(0x1bd)]('\x0a');throw CliErrors['validation'](_0x24d4e0(0x1a7),_0x481d6f);}
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 +1 @@
1
- (function(_0x594df4,_0x3f8c3d){const _0x3938dd=a171_0x5acd,_0x44a144=_0x594df4();while(!![]){try{const _0x421cb7=-parseInt(_0x3938dd(0x9c))/0x1+parseInt(_0x3938dd(0xa0))/0x2*(-parseInt(_0x3938dd(0x92))/0x3)+-parseInt(_0x3938dd(0xa3))/0x4*(parseInt(_0x3938dd(0xa4))/0x5)+parseInt(_0x3938dd(0xa2))/0x6*(-parseInt(_0x3938dd(0x9e))/0x7)+-parseInt(_0x3938dd(0x9d))/0x8+parseInt(_0x3938dd(0x93))/0x9*(-parseInt(_0x3938dd(0xa6))/0xa)+parseInt(_0x3938dd(0x96))/0xb;if(_0x421cb7===_0x3f8c3d)break;else _0x44a144['push'](_0x44a144['shift']());}catch(_0x2184e7){_0x44a144['push'](_0x44a144['shift']());}}}(a171_0xe635,0x9f0f0));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(_0x52850d){const _0x122886=a171_0x5acd;return typeof _0x52850d===_0x122886(0xa8)&&_0x52850d['trim']()[_0x122886(0x9a)]>0x0?_0x52850d['trim']():null;}function normalizeCliVersionPolicy(_0x13c5b4){const _0x4db1ed=a171_0x5acd;if(!_0x13c5b4||typeof _0x13c5b4!==_0x4db1ed(0xa5))return null;const _0xd9f487=_0x13c5b4,_0x7ae6c9=_0xd9f487[_0x4db1ed(0x91)]&&typeof _0xd9f487[_0x4db1ed(0x91)]===_0x4db1ed(0xa5)?_0xd9f487[_0x4db1ed(0x91)]:_0xd9f487,_0xfb0c6a=pickString(_0x7ae6c9['stableVersion'])||pickString(_0x7ae6c9['latestVersion'])||pickString(_0x7ae6c9[_0x4db1ed(0x90)]),_0x247183=pickString(_0x7ae6c9[_0x4db1ed(0x98)])||pickString(_0x7ae6c9[_0x4db1ed(0x99)]);if(!_0xfb0c6a&&!_0x247183)return null;return{'stableVersion':_0xfb0c6a,'minimumVersion':_0x247183,'upgradeMessage':pickString(_0x7ae6c9[_0x4db1ed(0x9b)])||undefined,'minimumVersionMessage':pickString(_0x7ae6c9[_0x4db1ed(0xa1)])||undefined};}function a171_0x5acd(_0x221792,_0x437ae8){_0x221792=_0x221792-0x90;const _0xe63513=a171_0xe635();let _0x5acddc=_0xe63513[_0x221792];return _0x5acddc;}export async function fetchCliVersionPolicy(){const _0x52b776=a171_0x5acd,_0x357209=new AbortController(),_0x240ebc=setTimeout(()=>_0x357209[_0x52b776(0x9f)](),FETCH_TIMEOUT_MS);try{const _0x48e9e0=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x52b776(0x97)},'signal':_0x357209[_0x52b776(0x95)]});if(!_0x48e9e0['ok'])return null;const _0x39ab01=await _0x48e9e0[_0x52b776(0xa7)]();return normalizeCliVersionPolicy(_0x39ab01);}catch{return null;}finally{clearTimeout(_0x240ebc);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x5bf5c5=a171_0x5acd,_0x379d83=Date[_0x5bf5c5(0x94)]();if(hasCachedPolicy){const _0x9b92db=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x379d83-cacheTime<_0x9b92db)return cachedPolicy;}const _0x4423db=await fetchCliVersionPolicy();return cachedPolicy=_0x4423db,cacheTime=_0x379d83,hasCachedPolicy=!![],_0x4423db;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}function a171_0xe635(){const _0x8577f0=['cli','3tlxtez','6876bQhCoq','now','signal','55135685jLnMcy','application/json','minimumVersion','minVersion','length','upgradeMessage','871522udQeQT','8365312MOUZDs','147OEZCTs','abort','1125092QIuGmu','minimumVersionMessage','92370pOyPcd','4TDGTPY','3182100MzLtcn','object','12060yqUSVr','json','string','recommendedVersion'];a171_0xe635=function(){return _0x8577f0;};return a171_0xe635();}
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 +1 @@
1
- const a172_0x5e64c7=a172_0x4750;(function(_0x2644be,_0x2a7b0d){const _0x4fce81=a172_0x4750,_0x25a84d=_0x2644be();while(!![]){try{const _0x1caad5=-parseInt(_0x4fce81(0x1ee))/0x1*(parseInt(_0x4fce81(0x1f5))/0x2)+parseInt(_0x4fce81(0x1ed))/0x3+-parseInt(_0x4fce81(0x1f1))/0x4*(parseInt(_0x4fce81(0x1eb))/0x5)+-parseInt(_0x4fce81(0x1f2))/0x6*(-parseInt(_0x4fce81(0x1f3))/0x7)+-parseInt(_0x4fce81(0x1e9))/0x8*(parseInt(_0x4fce81(0x1f4))/0x9)+-parseInt(_0x4fce81(0x1ea))/0xa+parseInt(_0x4fce81(0x1f0))/0xb;if(_0x1caad5===_0x2a7b0d)break;else _0x25a84d['push'](_0x25a84d['shift']());}catch(_0x25a2b3){_0x25a84d['push'](_0x25a84d['shift']());}}}(a172_0x5d2b,0x292fa));import{initEnv}from'../constant/env.js';function a172_0x5d2b(){const _0xff69cb=['env','8ZOlEVj','1304830KnHAUr','1124495ahsDiX','string','730014mJtZvY','306307PHnCfY','project','6466988dbLzqz','4OMyPXX','36oQWrGH','237020UMaOcy','1836171pREdns','2yHeTFw'];a172_0x5d2b=function(){return _0xff69cb;};return a172_0x5d2b();}import{readRawConfig,getConfigAppCode as a172_0x5d3846,getMultiAppConfigs as a172_0x5042ce,getTemplateBaseUrl as a172_0x52f1c7}from'../context.js';function a172_0x4750(_0x1fd82b,_0x205acb){_0x1fd82b=_0x1fd82b-0x1e9;const _0x5d2b47=a172_0x5d2b();let _0x47503c=_0x5d2b47[_0x1fd82b];return _0x47503c;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x49c6e4){const _0x80b992=a172_0x4750,_0x7912a4=readRawConfig(_0x49c6e4);return _0x7912a4[_0x80b992(0x1f6)]&&typeof _0x7912a4[_0x80b992(0x1f6)]===_0x80b992(0x1ec)&&initEnv(_0x7912a4[_0x80b992(0x1f6)]),_0x7912a4;}export function getConfigAppCode(){return a172_0x5d3846();}export function getMultiAppConfigs(_0x8bbc41=a172_0x5e64c7(0x1ef)){return a172_0x5042ce(_0x8bbc41);}export function getTemplateBaseUrl(){return a172_0x52f1c7();}
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 +1 @@
1
- (function(_0x302be3,_0x1c34ef){const _0x595b76=a173_0x2ee9,_0x517c3d=_0x302be3();while(!![]){try{const _0x483c6d=-parseInt(_0x595b76(0x1ce))/0x1+parseInt(_0x595b76(0x1d2))/0x2+-parseInt(_0x595b76(0x1d4))/0x3+parseInt(_0x595b76(0x1cb))/0x4*(parseInt(_0x595b76(0x1ca))/0x5)+-parseInt(_0x595b76(0x1cf))/0x6*(parseInt(_0x595b76(0x1d8))/0x7)+-parseInt(_0x595b76(0x1d1))/0x8*(-parseInt(_0x595b76(0x1cd))/0x9)+-parseInt(_0x595b76(0x1d5))/0xa;if(_0x483c6d===_0x1c34ef)break;else _0x517c3d['push'](_0x517c3d['shift']());}catch(_0x1ec7de){_0x517c3d['push'](_0x517c3d['shift']());}}}(a173_0x105c,0x39bc2));import a173_0x5dbeba from'node:path';function a173_0x2ee9(_0x653a08,_0x16ffdd){_0x653a08=_0x653a08-0x1ca;const _0x105c10=a173_0x105c();let _0x2ee934=_0x105c10[_0x653a08];return _0x2ee934;}import a173_0x1a2668 from'node:fs';function a173_0x105c(){const _0x4fec2f=['2228470QFVjWc','复制目录时出错:','isDirectory','1129716psAYWD','readdirSync','5tkcoHH','1355272tjBgZN','join','9qIkjAX','131361npKgiE','12oNrljs','name','2550104ipfAQf','736840ZLXUVd','copyFileSync','337605xDfrQp'];a173_0x105c=function(){return _0x4fec2f;};return a173_0x105c();}export async function copyDirectory(_0x327e02,_0x41acb9){const _0x59bf0d=a173_0x2ee9;try{const _0x1bf013=a173_0x1a2668[_0x59bf0d(0x1d9)](_0x327e02,{'withFileTypes':!![]});a173_0x1a2668['mkdirSync'](_0x41acb9,{'recursive':!![]});for(const _0x5148d6 of _0x1bf013){const _0x16846d=a173_0x5dbeba[_0x59bf0d(0x1cc)](_0x327e02,_0x5148d6[_0x59bf0d(0x1d0)]),_0x571887=a173_0x5dbeba[_0x59bf0d(0x1cc)](_0x41acb9,_0x5148d6['name']);_0x5148d6[_0x59bf0d(0x1d7)]()?await copyDirectory(_0x16846d,_0x571887):a173_0x1a2668[_0x59bf0d(0x1d3)](_0x16846d,_0x571887);}}catch(_0x2ad41e){console['error'](_0x59bf0d(0x1d6),_0x2ad41e);}}
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 +1 @@
1
- (function(_0x4ddf44,_0x49d120){const _0x4e366b=a174_0x5d80,_0x128e07=_0x4ddf44();while(!![]){try{const _0x12d5af=parseInt(_0x4e366b(0x1ed))/0x1*(-parseInt(_0x4e366b(0x1e9))/0x2)+parseInt(_0x4e366b(0x1e4))/0x3*(parseInt(_0x4e366b(0x1ec))/0x4)+-parseInt(_0x4e366b(0x1e6))/0x5+-parseInt(_0x4e366b(0x1ea))/0x6*(-parseInt(_0x4e366b(0x1e8))/0x7)+parseInt(_0x4e366b(0x1e5))/0x8*(-parseInt(_0x4e366b(0x1e3))/0x9)+parseInt(_0x4e366b(0x1e2))/0xa*(-parseInt(_0x4e366b(0x1ef))/0xb)+parseInt(_0x4e366b(0x1eb))/0xc;if(_0x12d5af===_0x49d120)break;else _0x128e07['push'](_0x128e07['shift']());}catch(_0x3bb2ae){_0x128e07['push'](_0x128e07['shift']());}}}(a174_0x38ac,0x970f5));function a174_0x5d80(_0x3b25b6,_0x564d14){_0x3b25b6=_0x3b25b6-0x1e2;const _0x38acbb=a174_0x38ac();let _0x5d80bc=_0x38acbb[_0x3b25b6];return _0x5d80bc;}function a174_0x38ac(){const _0x2eb27e=['490FPeTRY','207EbOCua','2847JlYseX','291616XifLjm','3769735LCqUdS','trim','7nfcDPy','20386SrSagQ','2743668PAorFA','25033140obJEyg','1228CoPExJ','9dlXlkC','isFinite','119405KIpRIN','string','number'];a174_0x38ac=function(){return _0x2eb27e;};return a174_0x38ac();}function toFiniteNumber(_0x8c726d){const _0x1a22bc=a174_0x5d80;if(typeof _0x8c726d===_0x1a22bc(0x1f1)&&Number[_0x1a22bc(0x1ee)](_0x8c726d))return _0x8c726d;if(typeof _0x8c726d===_0x1a22bc(0x1f0)){const _0x590c09=_0x8c726d[_0x1a22bc(0x1e7)]();if(!_0x590c09)return undefined;const _0xb55c38=Number(_0x590c09);if(Number[_0x1a22bc(0x1ee)](_0xb55c38))return _0xb55c38;}return undefined;}export function normalizeEntityWithIdResponse(_0x1e6c84){const _0xcde946=toFiniteNumber(_0x1e6c84);if(_0xcde946!==undefined)return{'id':_0xcde946,'entity':{'id':_0xcde946}};if(!_0x1e6c84||typeof _0x1e6c84!=='object')return{'id':undefined,'entity':{}};const _0x542ded={..._0x1e6c84},_0x4c861c=toFiniteNumber(_0x542ded['id']);return _0x4c861c!==undefined&&(_0x542ded['id']=_0x4c861c),{'id':_0x4c861c,'entity':_0x542ded};}
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 +1 @@
1
- function a175_0x2ca5(){const _0xa4c04e=['35OTfESQ','16QuNFiE','604320xAkUQz','1222985CWFoOk','734097sjoTdi','4FcIMbo','1842867qPxeGJ','453714CpMHTG','160020dcZSNx','2952534IPhcFF'];a175_0x2ca5=function(){return _0xa4c04e;};return a175_0x2ca5();}(function(_0x3e9c13,_0x14d805){const _0x41c14e=a175_0x3ab9,_0x276c68=_0x3e9c13();while(!![]){try{const _0xf39e50=-parseInt(_0x41c14e(0x1af))/0x1+parseInt(_0x41c14e(0x1b3))/0x2+parseInt(_0x41c14e(0x1aa))/0x3+parseInt(_0x41c14e(0x1b0))/0x4*(-parseInt(_0x41c14e(0x1ae))/0x5)+-parseInt(_0x41c14e(0x1b2))/0x6*(-parseInt(_0x41c14e(0x1ab))/0x7)+parseInt(_0x41c14e(0x1ac))/0x8*(parseInt(_0x41c14e(0x1b1))/0x9)+parseInt(_0x41c14e(0x1ad))/0xa;if(_0xf39e50===_0x14d805)break;else _0x276c68['push'](_0x276c68['shift']());}catch(_0x41e689){_0x276c68['push'](_0x276c68['shift']());}}}(a175_0x2ca5,0xe3eab));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a175_0x3ab9(_0xa32127,_0x49ccc4){_0xa32127=_0xa32127-0x1aa;const _0x2ca507=a175_0x2ca5();let _0x3ab9eb=_0x2ca507[_0xa32127];return _0x3ab9eb;}import{join}from'node:path';export async function copyDir(_0x855bd4,_0xec7cc4){const _0x2ad717=statSync(_0x855bd4);if(_0x2ad717['isDirectory']()){!existsSync(_0xec7cc4)&&mkdirSync(_0xec7cc4,{'recursive':!![]});const _0xb0fc6c=readdirSync(_0x855bd4);for(const _0x3d8c6a of _0xb0fc6c){await copyDir(join(_0x855bd4,_0x3d8c6a),join(_0xec7cc4,_0x3d8c6a));}}else copyFileSync(_0x855bd4,_0xec7cc4);}export function ensureDir(_0x15a351){!existsSync(_0x15a351)&&mkdirSync(_0x15a351,{'recursive':!![]});}export function pathExists(_0x146121){return existsSync(_0x146121);}
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 +1 @@
1
- const a176_0x5d774d=a176_0x48eb;function a176_0x48eb(_0x2a8afe,_0x24eda3){_0x2a8afe=_0x2a8afe-0x93;const _0x2aca62=a176_0x2aca();let _0x48eb98=_0x2aca62[_0x2a8afe];return _0x48eb98;}(function(_0x24149e,_0x2cfd01){const _0x51c773=a176_0x48eb,_0x4c2ccb=_0x24149e();while(!![]){try{const _0x14fbff=-parseInt(_0x51c773(0xa0))/0x1*(parseInt(_0x51c773(0xa5))/0x2)+parseInt(_0x51c773(0x9c))/0x3*(parseInt(_0x51c773(0x95))/0x4)+parseInt(_0x51c773(0xa6))/0x5+parseInt(_0x51c773(0xa2))/0x6*(-parseInt(_0x51c773(0xa7))/0x7)+parseInt(_0x51c773(0xac))/0x8*(-parseInt(_0x51c773(0x96))/0x9)+-parseInt(_0x51c773(0xa4))/0xa+-parseInt(_0x51c773(0xaf))/0xb*(-parseInt(_0x51c773(0xaa))/0xc);if(_0x14fbff===_0x2cfd01)break;else _0x4c2ccb['push'](_0x4c2ccb['shift']());}catch(_0x22d5b0){_0x4c2ccb['push'](_0x4c2ccb['shift']());}}}(a176_0x2aca,0x4b788));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 _0x537371=getTemplateBaseUrl();return _0x537371+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a176_0x5d774d(0x94),'cache');export async function fetchGuidesFromCDN(){const _0x305570=a176_0x5d774d,_0x740393=getGuidesCdnUrl(),_0x2f9526=await fetch(_0x740393,{'headers':{'Accept':_0x305570(0xb1)}});if(!_0x2f9526['ok'])throw new Error(_0x305570(0x9b)+_0x2f9526[_0x305570(0xa1)]+'\x20'+_0x2f9526[_0x305570(0xa9)]);const _0x3e7d8c=await _0x2f9526['json']();if(!_0x3e7d8c[_0x305570(0xae)]||typeof _0x3e7d8c[_0x305570(0xae)]!==_0x305570(0x99))throw new Error('CDN\x20返回数据格式错误');return _0x3e7d8c;}export function writeGuidesToProject(_0x1e5a0d,_0x4886aa,_0x2881e6='.lovrabet/skill/guides',_0x3fe45c){const _0x523cb9=a176_0x5d774d,_0x1f7034=join(_0x4886aa,_0x2881e6);mkdirSync(_0x1f7034,{'recursive':!![]});for(const [_0x18d432,_0x3bceb3]of Object[_0x523cb9(0xad)](_0x1e5a0d[_0x523cb9(0xae)])){let _0x113953=_0x3bceb3['content'];_0x3bceb3['lastUpdated']&&(_0x113953=appendUpdateTime(_0x113953,_0x3bceb3[_0x523cb9(0xb2)])),writeFileSync(join(_0x1f7034,_0x18d432+_0x523cb9(0x9f)),_0x113953,_0x523cb9(0xa3));}}export function appendUpdateTime(_0x58d97d,_0x1e52cb){const _0x5df8f=a176_0x5d774d;return _0x58d97d=_0x58d97d['replace'](/\n*>更新时间:.*$/m,''),_0x58d97d['trimEnd']()+(_0x5df8f(0x9e)+_0x1e52cb);}export function getSkillTemplate(_0x13c128){const _0x18542f=a176_0x5d774d;return _0x13c128[_0x18542f(0x93)]?.[_0x18542f(0xb3)]||'';}function a176_0x2aca(){const _0xa46817=['3qMnitD','length','\x0a\x0a>更新时间:','.md','48aDcilg','status','66150EqOvNZ','utf-8','60370HpMusr','13050LqhApS','1160870vCmhyA','105RLqdpK','join','statusText','12dxrSlr','extendContent','9160xaRqxM','entries','guides','7697327HpOTQf','push','application/json','lastUpdated','content','skillTemplate','.lovrabet','569336SdLmpw','2205jYjnrJ','path','trimEnd','object','title','CDN\x20请求失败:\x20'];a176_0x2aca=function(){return _0xa46817;};return a176_0x2aca();}export function appendExtendContents(_0x510d27,_0x289faf,_0x5f5af3){const _0x559a31=a176_0x5d774d,_0x453be3=[];for(const [,_0x302c32]of Object[_0x559a31(0xad)](_0x289faf[_0x559a31(0xae)])){_0x302c32[_0x559a31(0xab)]&&_0x453be3[_0x559a31(0xb0)](_0x302c32[_0x559a31(0xab)]['trimEnd']());}if(_0x453be3[_0x559a31(0x9d)]===0x0)return _0x510d27;return _0x510d27[_0x559a31(0x98)]()+'\x0a\x0a'+_0x453be3[_0x559a31(0xa8)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x588040,_0x5a0c20,_0x5c5bb3){const _0x192a9d=a176_0x5d774d,_0x376c13=getSkillTemplate(_0x588040);if(!_0x376c13)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x5d95a0=dirname(_0x5a0c20);mkdirSync(_0x5d95a0,{'recursive':!![]});let _0x5c404b=_0x376c13['replace'](/\{\{IDE_NAME\}\}/g,_0x5c5bb3);_0x5c404b=appendExtendContents(_0x5c404b,_0x588040),_0x588040[_0x192a9d(0x93)][_0x192a9d(0xb2)]&&(_0x5c404b=appendUpdateTime(_0x5c404b,_0x588040[_0x192a9d(0x93)][_0x192a9d(0xb2)])),writeFileSync(_0x5a0c20,_0x5c404b,_0x192a9d(0xa3));}export async function installGuides(_0x275dba){const _0x5b5a9a=a176_0x5d774d,_0x153938=await fetchGuidesFromCDN();return writeGuidesToProject(_0x153938,_0x275dba),Object['keys'](_0x153938['guides'])[_0x5b5a9a(0x9d)];}export function getGuidesSummary(_0x2f349b){const _0x38ced0=a176_0x5d774d;return Object['entries'](_0x2f349b[_0x38ced0(0xae)])['map'](([_0x5243d6,_0x12d2b4])=>({'key':_0x5243d6,'title':_0x12d2b4[_0x38ced0(0x9a)],'path':_0x12d2b4[_0x38ced0(0x97)]}));}
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 +1 @@
1
- (function(_0x57b3d8,_0x2f0daf){const _0x4934f4=a177_0x263d,_0x1b7fd4=_0x57b3d8();while(!![]){try{const _0xadee87=-parseInt(_0x4934f4(0x1e5))/0x1*(parseInt(_0x4934f4(0x1ec))/0x2)+parseInt(_0x4934f4(0x1f0))/0x3+parseInt(_0x4934f4(0x1e9))/0x4+parseInt(_0x4934f4(0x1ee))/0x5+-parseInt(_0x4934f4(0x1fb))/0x6+-parseInt(_0x4934f4(0x1f1))/0x7*(-parseInt(_0x4934f4(0x1e3))/0x8)+parseInt(_0x4934f4(0x1ed))/0x9*(-parseInt(_0x4934f4(0x1f4))/0xa);if(_0xadee87===_0x2f0daf)break;else _0x1b7fd4['push'](_0x1b7fd4['shift']());}catch(_0x134f7b){_0x1b7fd4['push'](_0x1b7fd4['shift']());}}}(a177_0x2e95,0xeb2cd));export async function httpRequest(_0x4c291f,_0x5ec1a1={}){const _0x1ca1b3=a177_0x263d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5ec1a1;let _0xd403cd=null;for(let _0x5cc09d=0x0;_0x5cc09d<=retries;_0x5cc09d++){try{const _0x599106=new AbortController(),_0x1b5b23=setTimeout(()=>_0x599106[_0x1ca1b3(0x1eb)](),timeout),_0x21c1cb=await fetch(_0x4c291f,{'headers':headers,'signal':_0x599106[_0x1ca1b3(0x1fa)]});clearTimeout(_0x1b5b23);let _0x4dfa70;const _0x273028=_0x21c1cb[_0x1ca1b3(0x1fd)][_0x1ca1b3(0x1ea)](_0x1ca1b3(0x1e0));return _0x273028?.[_0x1ca1b3(0x1f5)](_0x1ca1b3(0x1f8))?_0x4dfa70=await _0x21c1cb['json']():_0x4dfa70=await _0x21c1cb['text'](),{'ok':_0x21c1cb['ok'],'status':_0x21c1cb[_0x1ca1b3(0x1ef)],'statusText':_0x21c1cb[_0x1ca1b3(0x1fe)],'data':_0x4dfa70,'headers':_0x21c1cb[_0x1ca1b3(0x1fd)],'url':_0x21c1cb[_0x1ca1b3(0x1e7)],'text':()=>_0x21c1cb[_0x1ca1b3(0x1e2)]()};}catch(_0x31818f){_0xd403cd=_0x31818f instanceof Error?_0x31818f:new Error(String(_0x31818f));if(_0x5cc09d===retries)break;if(shouldRetry(_0x31818f)){console[_0x1ca1b3(0x1e1)](_0x1ca1b3(0x1e4)+retryDelay+_0x1ca1b3(0x1f9)+(_0x5cc09d+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0xd403cd||new Error(_0x1ca1b3(0x1f3));}function a177_0x263d(_0x56a942,_0x5ba2d6){_0x56a942=_0x56a942-0x1e0;const _0x2e9506=a177_0x2e95();let _0x263d98=_0x2e9506[_0x56a942];return _0x263d98;}function shouldRetry(_0x3ce2a4){const _0x48c49e=a177_0x263d;if(_0x3ce2a4 instanceof Error){if(_0x3ce2a4[_0x48c49e(0x1fc)]===_0x48c49e(0x1f7))return![];if(_0x3ce2a4[_0x48c49e(0x1fc)]===_0x48c49e(0x1e6)&&_0x3ce2a4[_0x48c49e(0x1f6)][_0x48c49e(0x1f5)](_0x48c49e(0x1e8)))return!![];if(_0x3ce2a4['message'][_0x48c49e(0x1f5)]('ECONNRESET'))return!![];if(_0x3ce2a4[_0x48c49e(0x1f6)]['includes'](_0x48c49e(0x1f2)))return![];}return![];}function a177_0x2e95(){const _0x5e27ed=['content-type','log','text','228600prwtZu','*\x20请求失败,','1871799mJVNjW','TypeError','url','fetch','3998216ESxsgl','get','abort','2pVNQjm','72WAEpec','4952480FHgCgi','status','3121893xvyCsH','469pPinty','ENOTFOUND','Request\x20failed','2567810fngKEL','includes','message','AbortError','application/json','ms\x20后进行第\x20','signal','335292fegukN','name','headers','statusText'];a177_0x2e95=function(){return _0x5e27ed;};return a177_0x2e95();}function sleep(_0x46cee4){return new Promise(_0x4ca1c1=>setTimeout(_0x4ca1c1,_0x46cee4));}export function validateUrl(_0x72329b){try{return new URL(_0x72329b),!![];}catch{return![];}}
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 +1 @@
1
- function a178_0x5c85(){const _0xcdbcf7=['2366650OoMfqJ','77iobGIV','isRaw','stdout','58080xlIGqq','552732XKLUGa','4iBcpsY','618411aMIete','nonInteractive','6551CgDGSB','667580amSwTo','setRawMode','426015VZcJWo','12aEPQSi','isTTY','true','stdin'];a178_0x5c85=function(){return _0xcdbcf7;};return a178_0x5c85();}(function(_0xa8e88,_0x474298){const _0x530925=a178_0x3eed,_0x32dbb8=_0xa8e88();while(!![]){try{const _0x543de9=-parseInt(_0x530925(0x1bb))/0x1*(-parseInt(_0x530925(0x1ae))/0x2)+-parseInt(_0x530925(0x1b9))/0x3*(-parseInt(_0x530925(0x1b8))/0x4)+parseInt(_0x530925(0x1bc))/0x5+parseInt(_0x530925(0x1b7))/0x6+-parseInt(_0x530925(0x1b3))/0x7*(parseInt(_0x530925(0x1b6))/0x8)+-parseInt(_0x530925(0x1be))/0x9+-parseInt(_0x530925(0x1b2))/0xa;if(_0x543de9===_0x474298)break;else _0x32dbb8['push'](_0x32dbb8['shift']());}catch(_0xf50b72){_0x32dbb8['push'](_0x32dbb8['shift']());}}}(a178_0x5c85,0x1a2d5));function a178_0x3eed(_0x174559,_0x5e5fd3){_0x174559=_0x174559-0x1ae;const _0x5c8538=a178_0x5c85();let _0x3eedb6=_0x5c8538[_0x174559];return _0x3eedb6;}function env(_0x506dd4){return process.env[`RABETBASE_${_0x506dd4}`]||process.env[`LOVRABET_${_0x506dd4}`]||undefined;}export function isNonInteractive(_0x477fff){const _0x5a58af=a178_0x3eed;return!!(_0x477fff[_0x5a58af(0x1ba)]||_0x477fff['ci']||env('CI')===_0x5a58af(0x1b0)||process.env.CI===_0x5a58af(0x1b0)||!process[_0x5a58af(0x1b5)][_0x5a58af(0x1af)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1954ac=a178_0x3eed;if(!process['stdin']['isTTY'])return![];try{const _0x4e475b=process[_0x1954ac(0x1b1)][_0x1954ac(0x1b4)];return process['stdin'][_0x1954ac(0x1bd)](!![]),process[_0x1954ac(0x1b1)]['setRawMode'](_0x4e475b??![]),!![];}catch{return![];}}
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 +1 @@
1
- const a179_0x188e5e=a179_0x5beb;function a179_0x5beb(_0x2bc934,_0x1f79cd){_0x2bc934=_0x2bc934-0x11d;const _0x69f9b0=a179_0x69f9();let _0x5beb4e=_0x69f9b0[_0x2bc934];return _0x5beb4e;}(function(_0x3e798d,_0x2e2f01){const _0xa15c88=a179_0x5beb,_0x102d47=_0x3e798d();while(!![]){try{const _0x362ece=-parseInt(_0xa15c88(0x129))/0x1+-parseInt(_0xa15c88(0x151))/0x2*(parseInt(_0xa15c88(0x159))/0x3)+parseInt(_0xa15c88(0x12e))/0x4*(-parseInt(_0xa15c88(0x13a))/0x5)+-parseInt(_0xa15c88(0x127))/0x6+parseInt(_0xa15c88(0x126))/0x7*(parseInt(_0xa15c88(0x138))/0x8)+parseInt(_0xa15c88(0x156))/0x9*(-parseInt(_0xa15c88(0x149))/0xa)+-parseInt(_0xa15c88(0x13f))/0xb*(-parseInt(_0xa15c88(0x13d))/0xc);if(_0x362ece===_0x2e2f01)break;else _0x102d47['push'](_0x102d47['shift']());}catch(_0x1e3039){_0x102d47['push'](_0x102d47['shift']());}}}(a179_0x69f9,0xf3d12));import a179_0x1c20df from'winston';import a179_0x9d802 from'node:fs';import a179_0x2c59ae from'node:path';function a179_0x69f9(){const _0x202116=['1518082fgvMaS','setLogPath','trim','error','timestamp','306iPWMPJ','Failed\x20to\x20clear\x20logs:','initWinstonLogger','3GnVoLE','details','red','level','rawCommand','command','currentRawCommand','message','.lovrabet.log','yellow','map','14cnsvYG','10840980YPHASq','format','1313910BotqaY','log','duration','toISOString','完成:\x20','6908PJQbuf','readLogs','开始执行:\x20','errors','readFileSync','writeFileSync','printf','info','blue','join','2205088bINLOh','logTask','1490tYIDdI','addColors','失败:\x20','65320284BeDvRN','now','11cShFnM','success','utf8','clearLogs','winstonLogger','logFilePath','parse','mkdirSync','existsSync','warn','176920tHdQVt','File','transports','clear','combine','green','setRawCommand','unknown'];a179_0x69f9=function(){return _0x202116;};return a179_0x69f9();}class Logger{[a179_0x188e5e(0x143)];[a179_0x188e5e(0x144)];[a179_0x188e5e(0x121)]='';constructor(){this['logFilePath']='';}[a179_0x188e5e(0x14f)](_0xaf102){const _0x20bbf1=a179_0x188e5e;this[_0x20bbf1(0x121)]=_0xaf102;}[a179_0x188e5e(0x158)](){const _0x101cd6=a179_0x188e5e,_0x3458bc=a179_0x2c59ae['dirname'](this[_0x101cd6(0x144)]);!a179_0x9d802[_0x101cd6(0x147)](_0x3458bc)&&a179_0x9d802[_0x101cd6(0x146)](_0x3458bc,{'recursive':!![]});const _0x6eb8d=a179_0x1c20df[_0x101cd6(0x128)][_0x101cd6(0x14d)](a179_0x1c20df['format']['timestamp'](),a179_0x1c20df[_0x101cd6(0x128)][_0x101cd6(0x131)]({'stack':!![]}),a179_0x1c20df[_0x101cd6(0x128)][_0x101cd6(0x134)](_0x36cfbe=>{const _0x1aa942=_0x101cd6,_0x3902fa={'timestamp':_0x36cfbe[_0x1aa942(0x155)]||new Date()[_0x1aa942(0x12c)](),'level':_0x36cfbe[_0x1aa942(0x11e)]||'info','command':_0x36cfbe[_0x1aa942(0x120)]||_0x1aa942(0x150),'rawCommand':_0x36cfbe[_0x1aa942(0x11f)]||this[_0x1aa942(0x121)]||undefined,'message':_0x36cfbe[_0x1aa942(0x122)]||'','duration':_0x36cfbe[_0x1aa942(0x12b)]||undefined,'details':_0x36cfbe[_0x1aa942(0x15a)]||undefined};return JSON['stringify'](_0x3902fa);}));this['winstonLogger']=a179_0x1c20df['createLogger']({'level':_0x101cd6(0x135),'format':_0x6eb8d,'transports':[new a179_0x1c20df[(_0x101cd6(0x14b))][(_0x101cd6(0x14a))]({'filename':this[_0x101cd6(0x144)],'level':_0x101cd6(0x135)})],'silent':![]}),a179_0x1c20df[_0x101cd6(0x13b)]({'success':_0x101cd6(0x14e),'error':_0x101cd6(0x11d),'warn':_0x101cd6(0x124),'info':_0x101cd6(0x136)});}[a179_0x188e5e(0x152)](_0x4c234c){const _0x16ffa7=a179_0x188e5e;this[_0x16ffa7(0x144)]=a179_0x2c59ae[_0x16ffa7(0x137)](_0x4c234c,_0x16ffa7(0x123)),this['winstonLogger']&&this[_0x16ffa7(0x143)][_0x16ffa7(0x14c)](),this[_0x16ffa7(0x158)]();}[a179_0x188e5e(0x135)](_0x4aebed,_0x26c6b2,_0x2fce08){const _0x4c9fe9=a179_0x188e5e;if(!this[_0x4c9fe9(0x144)]||!this[_0x4c9fe9(0x143)])return;this[_0x4c9fe9(0x143)][_0x4c9fe9(0x135)](_0x26c6b2,{'command':_0x4aebed,'details':_0x2fce08});}['success'](_0x176852,_0x1fb2c8,_0x402552,_0xb35916){const _0x49ad06=a179_0x188e5e;if(!this[_0x49ad06(0x144)]||!this[_0x49ad06(0x143)])return;this[_0x49ad06(0x143)][_0x49ad06(0x12a)](_0x49ad06(0x135),_0x1fb2c8,{'level':_0x49ad06(0x140),'command':_0x176852,'duration':_0x402552,'details':_0xb35916});}[a179_0x188e5e(0x154)](_0x4c157f,_0x55b69d,_0x4299b6){const _0xdfe3dc=a179_0x188e5e;if(!this[_0xdfe3dc(0x144)]||!this[_0xdfe3dc(0x143)])return;this[_0xdfe3dc(0x143)][_0xdfe3dc(0x154)](_0x55b69d,{'command':_0x4c157f,'details':_0x4299b6});}[a179_0x188e5e(0x148)](_0x441856,_0x2f5962,_0x164e65){const _0x2ee716=a179_0x188e5e;if(!this[_0x2ee716(0x144)]||!this['winstonLogger'])return;this[_0x2ee716(0x143)][_0x2ee716(0x148)](_0x2f5962,{'command':_0x441856,'details':_0x164e65});}async[a179_0x188e5e(0x139)](_0x10a1ca,_0x8c4813,_0x42e40f){const _0x31a1cd=a179_0x188e5e,_0x3aa428=Date[_0x31a1cd(0x13e)]();this[_0x31a1cd(0x135)](_0x10a1ca,_0x31a1cd(0x130)+_0x8c4813);try{const _0x120704=await _0x42e40f(),_0x284c9b=Date[_0x31a1cd(0x13e)]()-_0x3aa428;return this['success'](_0x10a1ca,_0x31a1cd(0x12d)+_0x8c4813,_0x284c9b),_0x120704;}catch(_0x118bf1){const _0x58f43d=Date[_0x31a1cd(0x13e)]()-_0x3aa428;this[_0x31a1cd(0x154)](_0x10a1ca,_0x31a1cd(0x13c)+_0x8c4813,{'error':_0x118bf1 instanceof Error?_0x118bf1[_0x31a1cd(0x122)]:String(_0x118bf1),'duration':_0x58f43d});throw _0x118bf1;}}[a179_0x188e5e(0x12f)](){const _0x4afb7f=a179_0x188e5e;try{if(!a179_0x9d802[_0x4afb7f(0x147)](this['logFilePath']))return[];const _0x8bf37=a179_0x9d802[_0x4afb7f(0x132)](this[_0x4afb7f(0x144)],'utf8');return _0x8bf37['split']('\x0a')['filter'](_0x4183aa=>_0x4183aa[_0x4afb7f(0x153)]())[_0x4afb7f(0x125)](_0x2721c7=>JSON[_0x4afb7f(0x145)](_0x2721c7));}catch(_0x1a2306){return console[_0x4afb7f(0x148)]('Failed\x20to\x20read\x20logs:',_0x1a2306),[];}}[a179_0x188e5e(0x142)](){const _0x35dd22=a179_0x188e5e;try{a179_0x9d802[_0x35dd22(0x147)](this[_0x35dd22(0x144)])&&a179_0x9d802[_0x35dd22(0x133)](this[_0x35dd22(0x144)],'',_0x35dd22(0x141));}catch(_0x411fdf){console[_0x35dd22(0x148)](_0x35dd22(0x157),_0x411fdf);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
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();
@@ -0,0 +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 +1 @@
1
- const a180_0x30a0a3=a180_0x2439;function a180_0x2212(){const _0x192b21=['31804CMHBZr','266642IGqWqd','9675552YDJUDY','418672FGCYGG','platform','140052PKJeZh','332619oTFotY','56zWWsCR','9dkEAFt','win32','4306135WqmEwF'];a180_0x2212=function(){return _0x192b21;};return a180_0x2212();}function a180_0x2439(_0x1dbf86,_0x29ad69){_0x1dbf86=_0x1dbf86-0x8a;const _0x221202=a180_0x2212();let _0x2439f5=_0x221202[_0x1dbf86];return _0x2439f5;}(function(_0x371ec3,_0x3cf26f){const _0x469914=a180_0x2439,_0x2e7057=_0x371ec3();while(!![]){try{const _0x5c6f0c=-parseInt(_0x469914(0x93))/0x1+-parseInt(_0x469914(0x94))/0x2+parseInt(_0x469914(0x8e))/0x3+parseInt(_0x469914(0x8b))/0x4+-parseInt(_0x469914(0x92))/0x5+parseInt(_0x469914(0x8d))/0x6*(parseInt(_0x469914(0x8f))/0x7)+parseInt(_0x469914(0x8a))/0x8*(parseInt(_0x469914(0x90))/0x9);if(_0x5c6f0c===_0x3cf26f)break;else _0x2e7057['push'](_0x2e7057['shift']());}catch(_0x7bca42){_0x2e7057['push'](_0x2e7057['shift']());}}}(a180_0x2212,0x8ee99));export const isWindows=process[a180_0x30a0a3(0x8c)]===a180_0x30a0a3(0x91);export function resolveNpmBin(_0x566853){return isWindows?_0x566853+'.cmd':_0x566853;}
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 +1 @@
1
- (function(_0x3bfc10,_0x458cc1){const _0x3db027=a181_0x1c90,_0x1abed1=_0x3bfc10();while(!![]){try{const _0x2e3ae9=-parseInt(_0x3db027(0x17e))/0x1+-parseInt(_0x3db027(0x176))/0x2*(parseInt(_0x3db027(0x174))/0x3)+parseInt(_0x3db027(0x178))/0x4*(parseInt(_0x3db027(0x187))/0x5)+-parseInt(_0x3db027(0x189))/0x6+-parseInt(_0x3db027(0x181))/0x7+-parseInt(_0x3db027(0x17b))/0x8+parseInt(_0x3db027(0x188))/0x9;if(_0x2e3ae9===_0x458cc1)break;else _0x1abed1['push'](_0x1abed1['shift']());}catch(_0x1baf13){_0x1abed1['push'](_0x1abed1['shift']());}}}(a181_0x1e65,0x1ba51));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a181_0x1e65(){const _0x52cf82=['content','213841VKxBpc','agents.md','application/json','1399524uNwBXw','本地模板文件不存在:\x20','status','/rules/rules.json','catch','CDN\x20请求失败:\x20','5XQVwaH','7744482IYebic','1083228EvtOnS','69NChjRV','lastUpdated','7444NGakXR','utf-8','23136CUNqUp','statusText','json','585056WfZHKQ','.cursor/rules'];a181_0x1e65=function(){return _0x52cf82;};return a181_0x1e65();}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 _0xf204da=a181_0x1c90,_0x2a5b9a=getTemplateBaseUrl();return _0x2a5b9a+_0xf204da(0x184);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');function a181_0x1c90(_0x9a9665,_0x5ae0f9){_0x9a9665=_0x9a9665-0x174;const _0x1e65a7=a181_0x1e65();let _0x1c90bc=_0x1e65a7[_0x9a9665];return _0x1c90bc;}export async function fetchRulesFromCDN(){const _0x3ecc01=a181_0x1c90,_0x38f296=getRulesCdnUrl(),_0x8e8063=await fetch(_0x38f296,{'headers':{'Accept':_0x3ecc01(0x180)}});if(!_0x8e8063['ok'])throw new Error(_0x3ecc01(0x186)+_0x8e8063[_0x3ecc01(0x183)]+'\x20'+_0x8e8063[_0x3ecc01(0x179)]);const _0x4b6ca6=await _0x8e8063[_0x3ecc01(0x17a)]();if(!_0x4b6ca6[_0x3ecc01(0x17d)]||typeof _0x4b6ca6[_0x3ecc01(0x17d)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x4b6ca6;}export async function getRulesContent(){const _0x445900=a181_0x1c90;try{const _0x3cfd0a=await fetchRulesFromCDN();return _0x3cfd0a[_0x445900(0x17d)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3fc2b1=a181_0x1c90;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3fc2b1(0x177));throw new Error(_0x3fc2b1(0x182)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x14cead){const _0x2fcce4=a181_0x1c90,_0x5d5527=await fetchRulesFromCDN()[_0x2fcce4(0x185)](()=>null);let _0x4007ce;_0x5d5527?(_0x4007ce=_0x5d5527[_0x2fcce4(0x17d)],_0x5d5527[_0x2fcce4(0x175)]&&(_0x4007ce=appendUpdateTime(_0x4007ce,_0x5d5527[_0x2fcce4(0x175)]))):_0x4007ce=readLocalTemplate();const _0x2f3ae6=dirname(_0x14cead);!existsSync(_0x2f3ae6)&&mkdirSync(_0x2f3ae6,{'recursive':!![]}),writeFileSync(_0x14cead,_0x4007ce,_0x2fcce4(0x177));}export async function copyRulesToCursor(_0x2fa1ff){const _0x121c57=a181_0x1c90,_0x252dc6=join(_0x2fa1ff,_0x121c57(0x17c)),_0x6959fb=join(_0x252dc6,'lovrabet_rules.mdc');if(existsSync(_0x6959fb))return![];return await writeRulesFile(_0x6959fb),!![];}export async function copyRulesToAgentsMd(_0x26425e){const _0x47ff11=a181_0x1c90,_0x32d489=join(_0x26425e,_0x47ff11(0x17f));if(existsSync(_0x32d489))return![];return await writeRulesFile(_0x32d489),!![];}
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 +1 @@
1
- export function sleep(_0x2decda){return new Promise(_0x1af46e=>setTimeout(_0x1af46e,_0x2decda));}
1
+ export function sleep(_0x490f74){return new Promise(_0x5cbd95=>setTimeout(_0x5cbd95,_0x490f74));}
@@ -1 +1 @@
1
- const a183_0x39da9b=a183_0x5b03;function a183_0x5b03(_0x30aec4,_0x333976){_0x30aec4=_0x30aec4-0x95;const _0x645340=a183_0x6453();let _0x5b03dd=_0x645340[_0x30aec4];return _0x5b03dd;}(function(_0x25e0b8,_0xf067fa){const _0x812ab8=a183_0x5b03,_0x477147=_0x25e0b8();while(!![]){try{const _0x271eb7=-parseInt(_0x812ab8(0xbf))/0x1*(-parseInt(_0x812ab8(0xc8))/0x2)+parseInt(_0x812ab8(0xaa))/0x3*(parseInt(_0x812ab8(0x96))/0x4)+parseInt(_0x812ab8(0xae))/0x5+-parseInt(_0x812ab8(0xd2))/0x6*(parseInt(_0x812ab8(0xcb))/0x7)+-parseInt(_0x812ab8(0x97))/0x8+parseInt(_0x812ab8(0xd0))/0x9*(-parseInt(_0x812ab8(0xb2))/0xa)+parseInt(_0x812ab8(0xb6))/0xb;if(_0x271eb7===_0xf067fa)break;else _0x477147['push'](_0x477147['shift']());}catch(_0xb7800a){_0x477147['push'](_0x477147['shift']());}}}(a183_0x6453,0x7f084));import a183_0x561407 from'node:fs';import a183_0x469b99 from'node:path';import{logger}from'../utils/logger.js';function a183_0x6453(){const _0x20091f=['copyFile','.js','10VexJat','charAt','replace','tableName','3447092LoWXpM','map','slice','pad','readdir','split','now','error','replaceApiContent','1bLjBDB','datasetCode','endsWith','toComponentName','getDate','processTemplate','getFullYear','toDisplayTitle','isFile','753454ZyVcLN','readFile','toLowerCase','17486vjRAUF','processFile','formatLocalTimestamp','.json','开始处理模板内容替换','666504QlgdUJ','extname','1164mzwtzS','.tpl','padStart','toUpperCase','\x20},','getMonth','template','.css','144880NQzMLr','4833848eaigsE','isDirectory','replaceContent','.jsx','.ts','LOVRABET','datasetCode:\x20\x22','getHours','getMinutes','模板内容替换失败','alias','name:\x20\x22','\x0a\x20\x20\x20\x20{\x20','name','join','api','getSeconds','mkdir','processDirectory','15LBTmLy','promises','utf8','.tsx','4060120QNqEtj','pop'];a183_0x6453=function(){return _0x20091f;};return a183_0x6453();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a183_0x39da9b(0xb9)](_0x2926b2){const _0x452538=a183_0x39da9b;return String(_0x2926b2)[_0x452538(0xd4)](0x2,'0');}static[a183_0x39da9b(0xcd)](_0x2f3acb){const _0x1f7861=a183_0x39da9b,_0x41746f=_0x2f3acb[_0x1f7861(0xc5)](),_0x507bca=this[_0x1f7861(0xb9)](_0x2f3acb[_0x1f7861(0xd7)]()+0x1),_0x4cd2a6=this[_0x1f7861(0xb9)](_0x2f3acb[_0x1f7861(0xc3)]()),_0x195f8a=this[_0x1f7861(0xb9)](_0x2f3acb[_0x1f7861(0x9e)]()),_0x20cb74=this[_0x1f7861(0xb9)](_0x2f3acb[_0x1f7861(0x9f)]()),_0x44dbab=this['pad'](_0x2f3acb[_0x1f7861(0xa7)]());return{'createdAt':_0x41746f+'-'+_0x507bca+'-'+_0x4cd2a6+'\x20'+_0x195f8a+':'+_0x20cb74+':'+_0x44dbab,'createdDate':_0x41746f+'-'+_0x507bca+'-'+_0x4cd2a6,'createdTime':_0x195f8a+':'+_0x20cb74+':'+_0x44dbab};}static['toComponentName'](_0x408921){const _0x26af57=a183_0x39da9b,_0x27b0ee=_0x408921[_0x26af57(0xbb)]('/')[_0x26af57(0xaf)]()||_0x408921;return _0x27b0ee[_0x26af57(0xbb)]('-')['map'](_0x5a0b00=>_0x5a0b00['charAt'](0x0)[_0x26af57(0xd5)]()+_0x5a0b00[_0x26af57(0xb8)](0x1)[_0x26af57(0xca)]())['join']('');}static[a183_0x39da9b(0xc6)](_0x3cfbac){const _0x17d958=a183_0x39da9b,_0x285c1e=_0x3cfbac['split']('/')[_0x17d958(0xaf)]()||_0x3cfbac;return _0x285c1e[_0x17d958(0xbb)]('-')[_0x17d958(0xb7)](_0x2274b1=>_0x2274b1[_0x17d958(0xb3)](0x0)[_0x17d958(0xd5)]()+_0x2274b1[_0x17d958(0xb8)](0x1)[_0x17d958(0xca)]())[_0x17d958(0xa5)]('\x20');}static[a183_0x39da9b(0x99)](_0x3f2d46,_0x336e07,_0x4473e4){const _0x8ca85c=a183_0x39da9b,_0x27adcb=this[_0x8ca85c(0xc2)](_0x336e07),_0x2eed8f=this['toDisplayTitle'](_0x336e07),{createdAt:_0x46e6fb,createdDate:_0x915314,createdTime:_0x56bbb0}=this[_0x8ca85c(0xcd)](new Date());let _0x2761df=_0x3f2d46[_0x8ca85c(0xb4)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x27adcb)[_0x8ca85c(0xb4)](/\{DisplayTitle\}/g,_0x2eed8f)[_0x8ca85c(0xb4)](/\{PageName\}/g,_0x336e07)[_0x8ca85c(0xb4)](/\{TemplateName\}/g,_0x4473e4)[_0x8ca85c(0xb4)](/\{CreatedAt\}/g,_0x46e6fb)[_0x8ca85c(0xb4)](/\{CreatedDate\}/g,_0x915314)[_0x8ca85c(0xb4)](/\{CreatedTime\}/g,_0x56bbb0);return _0x2761df;}static[a183_0x39da9b(0xbe)](_0x50cb7f,_0xd22652,_0x3680d8,_0x186759,_0x9959f1,_0x1d30ee,_0xb3a14c,_0x2e6db7){const _0x5f3e64=a183_0x39da9b,_0x4a34d3=new Date(),_0x40f904=_0x4a34d3['toISOString'](),_0x2eab5e=_0x3680d8[_0x5f3e64(0xb7)](_0x496bbd=>{const _0x6c3dc8=_0x5f3e64,_0xe64883=[_0x6c3dc8(0x9d)+_0x496bbd[_0x6c3dc8(0xc0)]+'\x22','tableName:\x20\x22'+_0x496bbd[_0x6c3dc8(0xb5)]+'\x22',_0x6c3dc8(0xa2)+_0x496bbd[_0x6c3dc8(0xa4)]+'\x22'];return _0x496bbd[_0x6c3dc8(0xa1)]&&_0xe64883['push']('alias:\x20\x22'+_0x496bbd[_0x6c3dc8(0xa1)]+'\x22'),_0x6c3dc8(0xa3)+_0xe64883[_0x6c3dc8(0xa5)](',\x20')+_0x6c3dc8(0xd6);})['join'](''),_0x3f7bdc=_0x186759||_0x3680d8[0x0]?.[_0x5f3e64(0xa1)]||'YourModel';let _0x243130=_0x50cb7f[_0x5f3e64(0xb4)](/\{AppCode\}/g,_0xd22652)[_0x5f3e64(0xb4)](/\{ModelConfigs\}/g,_0x2eab5e)[_0x5f3e64(0xb4)](/\{ExampleModelName\}/g,_0x3f7bdc)[_0x5f3e64(0xb4)](/\{ApiFileName\}/g,_0x9959f1||_0x5f3e64(0xa6))[_0x5f3e64(0xb4)](/\{ConfigName\}/g,_0x1d30ee||'default')['replace'](/\{ClientConfigParam\}/g,_0xb3a14c||'')[_0x5f3e64(0xb4)](/\{VarPrefix\}/g,_0x2e6db7||_0x5f3e64(0x9c))[_0x5f3e64(0xb4)](/\{CreatedAt\}/g,_0x40f904);return _0x243130;}static async[a183_0x39da9b(0xc4)](_0x19d4b2,_0x2afac2,_0x2a6987,_0x29da79,_0x3c6cb4=!![]){const _0x1b16d4=a183_0x39da9b,_0x8c3320=Date[_0x1b16d4(0xbc)]();try{_0x3c6cb4&&logger['info'](_0x1b16d4(0xd8),_0x1b16d4(0xcf),{'templatePath':_0x19d4b2,'targetPath':_0x2afac2,'pageName':_0x2a6987,'templateName':_0x29da79});await a183_0x561407[_0x1b16d4(0xab)][_0x1b16d4(0xa8)](_0x2afac2,{'recursive':!![]}),await this[_0x1b16d4(0xa9)](_0x19d4b2,_0x2afac2,_0x2a6987,_0x29da79);if(_0x3c6cb4){const _0x4a01c3=Date['now']()-_0x8c3320;logger['success'](_0x1b16d4(0xd8),'模板内容替换完成',_0x4a01c3,{'pageName':_0x2a6987,'templateName':_0x29da79});}}catch(_0x44b88c){if(_0x3c6cb4){const _0xd9fee0=Date[_0x1b16d4(0xbc)]()-_0x8c3320;logger[_0x1b16d4(0xbd)](_0x1b16d4(0xd8),_0x1b16d4(0xa0),{'templatePath':_0x19d4b2,'targetPath':_0x2afac2,'pageName':_0x2a6987,'templateName':_0x29da79,'error':_0x44b88c instanceof Error?_0x44b88c['message']:String(_0x44b88c),'duration':_0xd9fee0});}throw _0x44b88c;}}static async[a183_0x39da9b(0xa9)](_0x1ff654,_0x35cc4a,_0x1e841e,_0x44a3f1){const _0x552d0c=a183_0x39da9b,_0x50069d=await a183_0x561407[_0x552d0c(0xab)][_0x552d0c(0xba)](_0x1ff654,{'withFileTypes':!![]});for(const _0x403623 of _0x50069d){const _0x30cf2f=a183_0x469b99[_0x552d0c(0xa5)](_0x1ff654,_0x403623[_0x552d0c(0xa4)]);let _0x59e261=a183_0x469b99[_0x552d0c(0xa5)](_0x35cc4a,_0x403623[_0x552d0c(0xa4)]);_0x403623[_0x552d0c(0xa4)][_0x552d0c(0xc1)](_0x552d0c(0xd3))&&(_0x59e261=a183_0x469b99['join'](_0x35cc4a,_0x403623[_0x552d0c(0xa4)][_0x552d0c(0xb4)](/\.tpl$/,'')));if(_0x403623[_0x552d0c(0x98)]())await a183_0x561407[_0x552d0c(0xab)]['mkdir'](_0x59e261,{'recursive':!![]}),await this[_0x552d0c(0xa9)](_0x30cf2f,_0x59e261,_0x1e841e,_0x44a3f1);else _0x403623[_0x552d0c(0xc7)]()&&await this[_0x552d0c(0xcc)](_0x30cf2f,_0x59e261,_0x1e841e,_0x44a3f1);}}static async[a183_0x39da9b(0xcc)](_0x24e2e3,_0x116d49,_0x4fcb6b,_0x4ea497){const _0x5c2296=a183_0x39da9b,_0x5e14a7=a183_0x469b99[_0x5c2296(0xd1)](_0x24e2e3)['toLowerCase']();_0x24e2e3[_0x5c2296(0xc1)](_0x5c2296(0xd3))&&(_0x116d49=_0x116d49[_0x5c2296(0xb4)](/\.tpl$/,''));const _0x30b3b7=[_0x5c2296(0xad),_0x5c2296(0x9b),_0x5c2296(0x9a),_0x5c2296(0xb1),_0x5c2296(0xce),'.md',_0x5c2296(0x95),'.scss',_0x5c2296(0xd3)];if(_0x30b3b7['includes'](_0x5e14a7)||_0x24e2e3[_0x5c2296(0xc1)](_0x5c2296(0xd3))){const _0x2641ff=await a183_0x561407[_0x5c2296(0xab)][_0x5c2296(0xc9)](_0x24e2e3,_0x5c2296(0xac)),_0x174fe0=this[_0x5c2296(0x99)](_0x2641ff,_0x4fcb6b,_0x4ea497);await a183_0x561407[_0x5c2296(0xab)]['writeFile'](_0x116d49,_0x174fe0,_0x5c2296(0xac));}else await a183_0x561407[_0x5c2296(0xab)][_0x5c2296(0xb0)](_0x24e2e3,_0x116d49);}}
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 +1 @@
1
- (function(_0x11f4dd,_0x4a8536){var _0x323de0=a184_0x3cd0,_0x3a402b=_0x11f4dd();while(!![]){try{var _0x5a8f2c=parseInt(_0x323de0(0x13d))/0x1*(-parseInt(_0x323de0(0x140))/0x2)+-parseInt(_0x323de0(0x139))/0x3+-parseInt(_0x323de0(0x13b))/0x4+parseInt(_0x323de0(0x13e))/0x5+parseInt(_0x323de0(0x138))/0x6+-parseInt(_0x323de0(0x13a))/0x7*(parseInt(_0x323de0(0x13c))/0x8)+parseInt(_0x323de0(0x13f))/0x9;if(_0x5a8f2c===_0x4a8536)break;else _0x3a402b['push'](_0x3a402b['shift']());}catch(_0x2d53d3){_0x3a402b['push'](_0x3a402b['shift']());}}}(a184_0x4f58,0xcad93));function a184_0x3cd0(_0x17723b,_0x355ced){_0x17723b=_0x17723b-0x138;var _0x4f58d1=a184_0x4f58();var _0x3cd0be=_0x4f58d1[_0x17723b];return _0x3cd0be;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a184_0x4f58(){var _0xff2218=['3147616cvpTNA','136aHoaMp','1163461jvmyNY','7095085sfQCIg','22830984iLNzmA','2SWifZP','2666274crIwWb','3088038aPFeKM','242774AOdpBS'];a184_0x4f58=function(){return _0xff2218;};return a184_0x4f58();}
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 +1 @@
1
- (function(_0x51d807,_0x3fd1f1){var _0x590a7d=a185_0x492f,_0x37d722=_0x51d807();while(!![]){try{var _0xd0d4e3=-parseInt(_0x590a7d(0x167))/0x1+-parseInt(_0x590a7d(0x16b))/0x2*(-parseInt(_0x590a7d(0x166))/0x3)+parseInt(_0x590a7d(0x164))/0x4+parseInt(_0x590a7d(0x163))/0x5+-parseInt(_0x590a7d(0x165))/0x6*(parseInt(_0x590a7d(0x168))/0x7)+-parseInt(_0x590a7d(0x16a))/0x8+parseInt(_0x590a7d(0x169))/0x9;if(_0xd0d4e3===_0x3fd1f1)break;else _0x37d722['push'](_0x37d722['shift']());}catch(_0x371588){_0x37d722['push'](_0x37d722['shift']());}}}(a185_0x379e,0xb8989));function a185_0x492f(_0x448e3c,_0xf3b723){_0x448e3c=_0x448e3c-0x163;var _0x379eea=a185_0x379e();var _0x492f65=_0x379eea[_0x448e3c];return _0x492f65;}function a185_0x379e(){var _0x5a19c0=['1720104oHOftq','41434RCHrjo','2635890icAIBw','1668196ukaXKP','2965428BHAkXU','39mXDQhO','1034485Fvqajs','14BZTWOx','16024779TKkzMJ'];a185_0x379e=function(){return _0x5a19c0;};return a185_0x379e();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5b4dff,_0x3d6e18){setActiveCookie(_0x5b4dff);try{return await _0x3d6e18();}finally{clearActiveCookie();}}
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 +1 @@
1
- (function(_0x45e887,_0x4fd0b0){var _0x1cb270=a186_0x1c9a,_0x8cf643=_0x45e887();while(!![]){try{var _0x5e22e7=-parseInt(_0x1cb270(0xc6))/0x1*(parseInt(_0x1cb270(0xcc))/0x2)+-parseInt(_0x1cb270(0xcb))/0x3*(parseInt(_0x1cb270(0xc8))/0x4)+parseInt(_0x1cb270(0xc2))/0x5*(-parseInt(_0x1cb270(0xc1))/0x6)+-parseInt(_0x1cb270(0xc5))/0x7*(parseInt(_0x1cb270(0xc3))/0x8)+-parseInt(_0x1cb270(0xca))/0x9*(-parseInt(_0x1cb270(0xc7))/0xa)+-parseInt(_0x1cb270(0xcd))/0xb+parseInt(_0x1cb270(0xc4))/0xc;if(_0x5e22e7===_0x4fd0b0)break;else _0x8cf643['push'](_0x8cf643['shift']());}catch(_0x3a45d8){_0x8cf643['push'](_0x8cf643['shift']());}}}(a186_0x38fe,0xe6ea0));function a186_0x38fe(){var _0x46118b=['14945157zUEgap','15GYFHIK','13768KdzBVi','3624654ACWtRB','8374734IJKhuQ','5ZTGruB','104GJfLun','52490256TFMIoi','761747mgfcBg','149yTJQgB','10XPHMsa','738596kVDgwd','stderr'];a186_0x38fe=function(){return _0x46118b;};return a186_0x38fe();}function a186_0x1c9a(_0x1abc20,_0x16531b){_0x1abc20=_0x1abc20-0xc1;var _0x38fe71=a186_0x38fe();var _0x1c9aec=_0x38fe71[_0x1abc20];return _0x1c9aec;}export function writeCliSideChannelLine(_0x38249c){var _0x4c4315=a186_0x1c9a;process[_0x4c4315(0xc9)]['write'](_0x38249c+'\x0a');}
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');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.5",
3
+ "version": "2.1.6-beta.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,6 +23,7 @@
23
23
  "start": "tsc --watch",
24
24
  "sync-template": "node scripts/sync-template.js",
25
25
  "sync:cdn": "node scripts/sync-cdn-assets.js",
26
+ "verify:bundled-jq": "node scripts/verify-bundled-jq.mjs",
26
27
  "beta-release": "sh scripts/update-beta-version.sh && bun run build && git push && git push origin --tag && bun publish --tag beta",
27
28
  "release": "sh scripts/update-latest-version.sh && bun run build && git push && git push origin --tag && bun publish",
28
29
  "test": "vitest run",
@@ -53,14 +54,13 @@
53
54
  ],
54
55
  "dependencies": {
55
56
  "@inquirer/prompts": "^8.3.2",
56
- "@lovrabet/cli-framework": "1.0.1",
57
+ "@lovrabet/cli-framework": "1.0.3",
57
58
  "@lovrabet/otel-logger": "1.0.1-beta.3",
58
59
  "@types/winston": "^2.4.4",
59
60
  "chalk": "^5.6.2",
60
61
  "execa": "^9.6.0",
61
62
  "listr": "^0.14.3",
62
63
  "meow": "^13.2.0",
63
- "node-jq": "^6.3.1",
64
64
  "ora": "^9.3.0",
65
65
  "prettier": "^3.6.2",
66
66
  "semver": "^7.7.3",
@@ -75,7 +75,7 @@
75
75
  "c8": "^10.1.3",
76
76
  "javascript-obfuscator": "^5.4.1",
77
77
  "tsc-alias": "^1.8.10",
78
- "typescript": "latest",
78
+ "typescript": "5.9.3",
79
79
  "vitest": "^3.2.4"
80
80
  }
81
81
  }