@lovrabet/rabetbase-cli 2.1.8 → 2.1.9

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 (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- const a181_0x2c862b=a181_0x1a7b;(function(_0x2216c3,_0x347b1f){const _0x5282c5=a181_0x1a7b,_0x57dc49=_0x2216c3();while(!![]){try{const _0x37f45f=parseInt(_0x5282c5(0xa0))/0x1+-parseInt(_0x5282c5(0xc2))/0x2+parseInt(_0x5282c5(0xba))/0x3*(-parseInt(_0x5282c5(0xb5))/0x4)+-parseInt(_0x5282c5(0xb0))/0x5*(-parseInt(_0x5282c5(0xa9))/0x6)+parseInt(_0x5282c5(0xac))/0x7*(-parseInt(_0x5282c5(0xb6))/0x8)+-parseInt(_0x5282c5(0xa4))/0x9*(-parseInt(_0x5282c5(0x9f))/0xa)+-parseInt(_0x5282c5(0xc3))/0xb;if(_0x37f45f===_0x347b1f)break;else _0x57dc49['push'](_0x57dc49['shift']());}catch(_0x58b3b9){_0x57dc49['push'](_0x57dc49['shift']());}}}(a181_0x5592,0x8ad13));import a181_0x1cd44d from'node:fs';import a181_0xeb97a9 from'node:path';import a181_0x25dea1 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x2c862b(0xc0);function a181_0x1a7b(_0xa015d0,_0x4b126c){_0xa015d0=_0xa015d0-0x9e;const _0x5592e7=a181_0x5592();let _0x1a7b68=_0x5592e7[_0xa015d0];return _0x1a7b68;}function isNonNumericVersion(_0x17e5da){const _0xa00d46=a181_0x2c862b,_0x3ee8bc=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3ee8bc[_0xa00d46(0xbb)](_0x263f3b=>_0x263f3b[_0xa00d46(0xa1)](_0x17e5da));}function getInstalledVersion(_0x1f69c9,_0x3a6aa7){const _0x14ccc1=a181_0x2c862b;try{const _0x28792a=a181_0xeb97a9[_0x14ccc1(0xb4)](_0x1f69c9,_0x14ccc1(0xbf),_0x3a6aa7,_0x14ccc1(0xb3));if(a181_0x1cd44d[_0x14ccc1(0xad)](_0x28792a)){const _0x41b4e1=JSON[_0x14ccc1(0xb7)](a181_0x1cd44d[_0x14ccc1(0x9e)](_0x28792a,'utf-8'));return _0x41b4e1[_0x14ccc1(0xb1)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x38d9f4=a181_0x2c862b;try{const _0x44ff36=await getCdnConfig();return _0x44ff36?.[_0x38d9f4(0xbc)]?.[_0x38d9f4(0xaa)]?.[_0x38d9f4(0xb2)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x585278=a181_0x2c862b;try{const _0x496a73=await getCdnConfig();return _0x496a73?.['sdk']?.[_0x585278(0xaa)]?.['packageName']||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}function a181_0x5592(){const _0x5829d2=['log','3jaILvK','some','sdk','latest','coerce','node_modules','1.2.0','devDependencies','1058860wzqUka','2298835Giquas','needsUpgrade','readFileSync','4763080wyvaQn','727161ILzfYz','test','↪\x20SDK\x20update\x20available','minVersion','9RrLVMc','packageName','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','@lovrabet/sdk','6wuoSVK','node','utf8','363013DyXPXN','existsSync','\x20\x20\x20Current\x20version:\x20','all','4840225RBsGRz','version','stableVersion','package.json','join','761348IHpurc','104LjkHCX','parse','\x1b[33m'];a181_0x5592=function(){return _0x5829d2;};return a181_0x5592();}export async function checkSdkVersion(_0x3ff0cf){const _0x13f49c=a181_0x2c862b,_0x103e61=a181_0xeb97a9[_0x13f49c(0xb4)](_0x3ff0cf,_0x13f49c(0xb3)),[_0x575abf,_0x11514d]=await Promise[_0x13f49c(0xaf)]([getSdkStableVersion(),getSdkPackageName()]),_0x789c6=_0x575abf||FALLBACK_MIN_SDK_VERSION;if(!a181_0x1cd44d[_0x13f49c(0xad)](_0x103e61))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};try{const _0xa48ab0=JSON[_0x13f49c(0xb7)](a181_0x1cd44d[_0x13f49c(0x9e)](_0x103e61,_0x13f49c(0xab))),_0x28563b=_0xa48ab0['dependencies']||{},_0x1aa602=_0xa48ab0[_0x13f49c(0xc1)]||{},_0x5c180f=_0x28563b[_0x11514d]||_0x1aa602[_0x11514d];if(!_0x5c180f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};let _0x1f8c24=getInstalledVersion(_0x3ff0cf,_0x11514d);!_0x1f8c24&&(_0x1f8c24=_0x5c180f);if(isNonNumericVersion(_0x5c180f))return{'installed':!![],'version':_0x1f8c24,'needsUpgrade':![],'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};const _0x46176b=a181_0x25dea1['coerce'](_0x1f8c24),_0x269d0a=a181_0x25dea1[_0x13f49c(0xbe)](_0x789c6),_0x169378=_0x46176b&&_0x269d0a?a181_0x25dea1['lt'](_0x46176b,_0x269d0a):![];return{'installed':!![],'version':_0x1f8c24,'needsUpgrade':_0x169378,'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};}}export function checkSdkVersionSync(_0x4ae43c){const _0x31a446=a181_0x2c862b,_0x4dad96=a181_0xeb97a9[_0x31a446(0xb4)](_0x4ae43c,_0x31a446(0xb3)),_0x37e4ac='@lovrabet/sdk';if(!a181_0x1cd44d['existsSync'](_0x4dad96))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};try{const _0x3f029c=JSON[_0x31a446(0xb7)](a181_0x1cd44d[_0x31a446(0x9e)](_0x4dad96,_0x31a446(0xab))),_0x11abc4=_0x3f029c['dependencies']||{},_0x4ad820=_0x3f029c['devDependencies']||{},_0x2b1cfe=_0x11abc4[_0x37e4ac]||_0x4ad820[_0x37e4ac];if(!_0x2b1cfe)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};let _0x9ae267=getInstalledVersion(_0x4ae43c,_0x37e4ac);!_0x9ae267&&(_0x9ae267=_0x2b1cfe);if(isNonNumericVersion(_0x2b1cfe))return{'installed':!![],'version':_0x9ae267,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};const _0x460bb3=a181_0x25dea1['coerce'](_0x9ae267),_0x36f816=_0x460bb3?a181_0x25dea1['lt'](_0x460bb3,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x9ae267,'needsUpgrade':_0x36f816,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3f498a){const _0x4b5313=a181_0x2c862b;if(!_0x3f498a[_0x4b5313(0xc4)])return;const _0x56d662=_0x4b5313(0xb8),_0x4114a3='\x1b[0m',_0x2e7e08='\x1b[1m',_0x5f21d8=_0x3f498a[_0x4b5313(0xa5)]||_0x4b5313(0xa8),_0x38fecb=_0x3f498a[_0x4b5313(0xb2)]||_0x3f498a[_0x4b5313(0xa3)],_0x3aaf61='npm\x20install\x20'+_0x5f21d8+'@'+(_0x38fecb||_0x4b5313(0xbd));console[_0x4b5313(0xb9)](),console[_0x4b5313(0xb9)](''+_0x56d662+_0x2e7e08+_0x4b5313(0xa2)+_0x4114a3),console[_0x4b5313(0xb9)](_0x56d662+_0x4b5313(0xae)+_0x5f21d8+'@'+_0x3f498a['version']+_0x4114a3),console['log'](_0x56d662+_0x4b5313(0xa7)+_0x38fecb+_0x4114a3),console[_0x4b5313(0xb9)](_0x56d662+_0x4b5313(0xa6)+_0x3aaf61+_0x4114a3),console['log']();}
1
+ const a181_0x533cb8=a181_0x5cb1;(function(_0x41bc4b,_0x407632){const _0x478588=a181_0x5cb1,_0x499541=_0x41bc4b();while(!![]){try{const _0x40e7b8=parseInt(_0x478588(0x80))/0x1*(parseInt(_0x478588(0x85))/0x2)+-parseInt(_0x478588(0x93))/0x3+-parseInt(_0x478588(0x9d))/0x4+-parseInt(_0x478588(0x8b))/0x5*(parseInt(_0x478588(0x7e))/0x6)+-parseInt(_0x478588(0x9c))/0x7+parseInt(_0x478588(0x86))/0x8+parseInt(_0x478588(0x9a))/0x9;if(_0x40e7b8===_0x407632)break;else _0x499541['push'](_0x499541['shift']());}catch(_0x24d277){_0x499541['push'](_0x499541['shift']());}}}(a181_0x14e1,0x2b87b));import a181_0x57faba from'node:fs';import a181_0x18f27d from'node:path';import a181_0x12d0bc from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x533cb8(0x7d);function a181_0x5cb1(_0x470e5c,_0x5b17af){_0x470e5c=_0x470e5c-0x7a;const _0x14e177=a181_0x14e1();let _0x5cb157=_0x14e177[_0x470e5c];return _0x5cb157;}function a181_0x14e1(){const _0x47cc6c=['@lovrabet/sdk','some','node_modules','needsUpgrade','3978477FqyAzq','test','1659070mtvxkj','301956rtyoMu','\x1b[33m','node','latest','1.2.0','3960decWha','sdk','1xnbhQi','log','version','join','utf-8','268162FdqTvR','2441016jhmotW','parse','stableVersion','readFileSync','coerce','645BrvRYI','\x1b[1m','utf8','existsSync','package.json','packageName','dependencies','\x1b[0m','915969sXnuKL','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Current\x20version:\x20'];a181_0x14e1=function(){return _0x47cc6c;};return a181_0x14e1();}function isNonNumericVersion(_0x98b47d){const _0x13d852=a181_0x533cb8,_0x59309a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x59309a[_0x13d852(0x97)](_0x836ee4=>_0x836ee4[_0x13d852(0x9b)](_0x98b47d));}function getInstalledVersion(_0x2aaeb3,_0x691caa){const _0x59f531=a181_0x533cb8;try{const _0x4ae22d=a181_0x18f27d[_0x59f531(0x83)](_0x2aaeb3,_0x59f531(0x98),_0x691caa,_0x59f531(0x8f));if(a181_0x57faba[_0x59f531(0x8e)](_0x4ae22d)){const _0x9b1c40=JSON[_0x59f531(0x87)](a181_0x57faba['readFileSync'](_0x4ae22d,_0x59f531(0x84)));return _0x9b1c40['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x526268=a181_0x533cb8;try{const _0x2c18c5=await getCdnConfig();return _0x2c18c5?.['sdk']?.[_0x526268(0x7b)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x57ed09=a181_0x533cb8;try{const _0x51f93b=await getCdnConfig();return _0x51f93b?.[_0x57ed09(0x7f)]?.[_0x57ed09(0x7b)]?.['packageName']||_0x57ed09(0x96);}catch{return _0x57ed09(0x96);}}export async function checkSdkVersion(_0x2ae5f3){const _0x59ca3d=a181_0x533cb8,_0x488a37=a181_0x18f27d['join'](_0x2ae5f3,_0x59ca3d(0x8f)),[_0x410290,_0x2c345b]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x2407c7=_0x410290||FALLBACK_MIN_SDK_VERSION;if(!a181_0x57faba[_0x59ca3d(0x8e)](_0x488a37))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2407c7,'packageName':_0x2c345b,'stableVersion':_0x410290};try{const _0x2ba89e=JSON[_0x59ca3d(0x87)](a181_0x57faba[_0x59ca3d(0x89)](_0x488a37,_0x59ca3d(0x8d))),_0x611cff=_0x2ba89e[_0x59ca3d(0x91)]||{},_0x5331f7=_0x2ba89e['devDependencies']||{},_0x5f3fa0=_0x611cff[_0x2c345b]||_0x5331f7[_0x2c345b];if(!_0x5f3fa0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2407c7,'packageName':_0x2c345b,'stableVersion':_0x410290};let _0x8e52da=getInstalledVersion(_0x2ae5f3,_0x2c345b);!_0x8e52da&&(_0x8e52da=_0x5f3fa0);if(isNonNumericVersion(_0x5f3fa0))return{'installed':!![],'version':_0x8e52da,'needsUpgrade':![],'minVersion':_0x2407c7,'packageName':_0x2c345b,'stableVersion':_0x410290};const _0x24d291=a181_0x12d0bc[_0x59ca3d(0x8a)](_0x8e52da),_0x3f3a07=a181_0x12d0bc[_0x59ca3d(0x8a)](_0x2407c7),_0x284f26=_0x24d291&&_0x3f3a07?a181_0x12d0bc['lt'](_0x24d291,_0x3f3a07):![];return{'installed':!![],'version':_0x8e52da,'needsUpgrade':_0x284f26,'minVersion':_0x2407c7,'packageName':_0x2c345b,'stableVersion':_0x410290};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2407c7,'packageName':_0x2c345b,'stableVersion':_0x410290};}}export function checkSdkVersionSync(_0x6e614e){const _0x235e8b=a181_0x533cb8,_0x1131c7=a181_0x18f27d[_0x235e8b(0x83)](_0x6e614e,'package.json'),_0x5cbd9d=_0x235e8b(0x96);if(!a181_0x57faba['existsSync'](_0x1131c7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5cbd9d,'stableVersion':null};try{const _0x663997=JSON[_0x235e8b(0x87)](a181_0x57faba['readFileSync'](_0x1131c7,_0x235e8b(0x8d))),_0x45912b=_0x663997[_0x235e8b(0x91)]||{},_0x10a5fb=_0x663997['devDependencies']||{},_0x4c31ce=_0x45912b[_0x5cbd9d]||_0x10a5fb[_0x5cbd9d];if(!_0x4c31ce)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5cbd9d,'stableVersion':null};let _0xf025d7=getInstalledVersion(_0x6e614e,_0x5cbd9d);!_0xf025d7&&(_0xf025d7=_0x4c31ce);if(isNonNumericVersion(_0x4c31ce))return{'installed':!![],'version':_0xf025d7,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5cbd9d,'stableVersion':null};const _0x1a8c37=a181_0x12d0bc[_0x235e8b(0x8a)](_0xf025d7),_0x3e503b=_0x1a8c37?a181_0x12d0bc['lt'](_0x1a8c37,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xf025d7,'needsUpgrade':_0x3e503b,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5cbd9d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5cbd9d,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1fd3f3){const _0x1a7a85=a181_0x533cb8;if(!_0x1fd3f3[_0x1a7a85(0x99)])return;const _0x40818f=_0x1a7a85(0x7a),_0x4eb521=_0x1a7a85(0x92),_0xc11ca8=_0x1a7a85(0x8c),_0x5d03c9=_0x1fd3f3[_0x1a7a85(0x90)]||_0x1a7a85(0x96),_0x425918=_0x1fd3f3[_0x1a7a85(0x88)]||_0x1fd3f3['minVersion'],_0x4248a2='npm\x20install\x20'+_0x5d03c9+'@'+(_0x425918||_0x1a7a85(0x7c));console[_0x1a7a85(0x81)](),console['log'](''+_0x40818f+_0xc11ca8+'↪\x20SDK\x20update\x20available'+_0x4eb521),console[_0x1a7a85(0x81)](_0x40818f+_0x1a7a85(0x95)+_0x5d03c9+'@'+_0x1fd3f3[_0x1a7a85(0x82)]+_0x4eb521),console['log'](_0x40818f+_0x1a7a85(0x94)+_0x425918+_0x4eb521),console[_0x1a7a85(0x81)](_0x40818f+'\x20\x20\x20Upgrade\x20command:\x20'+_0x4248a2+_0x4eb521),console[_0x1a7a85(0x81)]();}
@@ -1 +1 @@
1
- (function(_0x1637dd,_0x1038fb){const _0x1be66d=a182_0x95de,_0x27e067=_0x1637dd();while(!![]){try{const _0x7f00d=-parseInt(_0x1be66d(0xe9))/0x1*(parseInt(_0x1be66d(0xf6))/0x2)+-parseInt(_0x1be66d(0xec))/0x3+-parseInt(_0x1be66d(0xdd))/0x4*(-parseInt(_0x1be66d(0xd0))/0x5)+-parseInt(_0x1be66d(0xe1))/0x6*(parseInt(_0x1be66d(0xdf))/0x7)+parseInt(_0x1be66d(0xe5))/0x8+parseInt(_0x1be66d(0xf7))/0x9+parseInt(_0x1be66d(0xe6))/0xa;if(_0x7f00d===_0x1038fb)break;else _0x27e067['push'](_0x27e067['shift']());}catch(_0x3e3d54){_0x27e067['push'](_0x27e067['shift']());}}}(a182_0x53e6,0x6815c));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a182_0x95de(_0x3e2c7e,_0x183b79){_0x3e2c7e=_0x3e2c7e-0xcf;const _0x53e68b=a182_0x53e6();let _0x95de22=_0x53e68b[_0x3e2c7e];return _0x95de22;}import{fileURLToPath}from'node:url';import a182_0x1468b0 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a182_0x53e6(){const _0x4b65ad=['\x1b[1m','minimumVersion','stableVersion','Upgrade\x20command:\x20','1209412oXAdTf','log','14frRuGh','minimumVersionMessage','1933680LBimQB','latest','\x20\x20\x20Recommended\x20stable:\x20','validation','4655968rgXcYS','4709120QVRcwO','needsUpgrade','currentVersion','1vsqwUc','\x20\x20\x20Minimum\x20required:\x20','\x1b[0m','869745HcOSVz','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20version:\x20','\x1b[33m','Minimum\x20required:\x20','belowMinimum','upgradeMessage','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','../..','1275308yHAheF','5788800idRErF','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Upgrade\x20command:\x20','version','5CMmRpi','npm\x20install\x20-g\x20','filter','utf-8','coerce','1.0.0','\x1b[31m','↪\x20New\x20version\x20available','\x20\x20\x20'];a182_0x53e6=function(){return _0x4b65ad;};return a182_0x53e6();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5a67e0){const _0x2ce82e=a182_0x95de,_0x13fec7=_0x5a67e0['stableVersion']||_0x2ce82e(0xe2);return _0x2ce82e(0xd1)+NPM_PACKAGE_NAME+'@'+_0x13fec7;}function getCurrentCliVersion(){const _0x504a73=a182_0x95de;try{const _0x2bf4a9=fileURLToPath(import.meta.url),_0x56d439=resolve(dirname(_0x2bf4a9),_0x504a73(0xf5)),_0x3d0730=resolve(_0x56d439,'package.json'),_0x5489f9=JSON['parse'](readFileSync(_0x3d0730,_0x504a73(0xd3)));return _0x5489f9[_0x504a73(0xcf)]||_0x504a73(0xd5);}catch{return _0x504a73(0xd5);}}export async function checkCliVersion(){const _0x3b1cc1=a182_0x95de,_0x3f18e4=getCurrentCliVersion(),_0xe7597=await getCliVersionPolicy(),_0xe0b0ad=_0xe7597?.[_0x3b1cc1(0xdb)]||null,_0x40684e=_0xe7597?.['minimumVersion']||null;let _0x53fe60=![],_0x2067cb=![];const _0x506042=a182_0x1468b0[_0x3b1cc1(0xd4)](_0x3f18e4);if(_0x506042&&_0xe0b0ad)try{const _0x107d2e=a182_0x1468b0[_0x3b1cc1(0xd4)](_0xe0b0ad);if(_0x107d2e)_0x53fe60=a182_0x1468b0['lt'](_0x506042,_0x107d2e);}catch{}if(_0x506042&&_0x40684e)try{const _0x57ec0e=a182_0x1468b0[_0x3b1cc1(0xd4)](_0x40684e);if(_0x57ec0e)_0x2067cb=a182_0x1468b0['lt'](_0x506042,_0x57ec0e);}catch{}return _0x2067cb&&(_0x53fe60=!![]),{'currentVersion':_0x3f18e4,'stableVersion':_0xe0b0ad,'minimumVersion':_0x40684e,'needsUpgrade':_0x53fe60,'belowMinimum':_0x2067cb,'isPreRelease':![],'upgradeMessage':_0xe7597?.['upgradeMessage'],'minimumVersionMessage':_0xe7597?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x5b0edc){const _0x17d220=a182_0x95de;if(!_0x5b0edc[_0x17d220(0xe7)]&&!_0x5b0edc[_0x17d220(0xf1)])return;const _0x40d572=_0x17d220(0xd6),_0x471ae7=_0x17d220(0xef),_0x5b4d5d=_0x17d220(0xeb),_0x402929=_0x17d220(0xd9),_0x5184b3=getCliUpgradeCommand(_0x5b0edc);console[_0x17d220(0xde)](),_0x5b0edc[_0x17d220(0xf1)]?(console[_0x17d220(0xde)](''+_0x40d572+_0x402929+_0x17d220(0xed)+_0x5b4d5d),console[_0x17d220(0xde)](_0x40d572+_0x17d220(0xf4)+_0x5b0edc[_0x17d220(0xe8)]+_0x5b4d5d),_0x5b0edc[_0x17d220(0xda)]&&console[_0x17d220(0xde)](_0x40d572+_0x17d220(0xea)+_0x5b0edc[_0x17d220(0xda)]+_0x5b4d5d),_0x5b0edc[_0x17d220(0xdb)]&&_0x5b0edc[_0x17d220(0xdb)]!==_0x5b0edc[_0x17d220(0xda)]&&console[_0x17d220(0xde)](_0x40d572+_0x17d220(0xe3)+_0x5b0edc[_0x17d220(0xdb)]+_0x5b4d5d),_0x5b0edc[_0x17d220(0xe0)]&&console['log'](_0x40d572+_0x17d220(0xd8)+_0x5b0edc[_0x17d220(0xe0)]+_0x5b4d5d),console[_0x17d220(0xde)](_0x40d572+_0x17d220(0xf9)+_0x5184b3+_0x5b4d5d)):(console[_0x17d220(0xde)](''+_0x471ae7+_0x402929+_0x17d220(0xd7)+_0x5b4d5d),console[_0x17d220(0xde)](_0x471ae7+_0x17d220(0xf4)+_0x5b0edc[_0x17d220(0xe8)]+_0x5b4d5d),console[_0x17d220(0xde)](_0x471ae7+_0x17d220(0xf3)+_0x5b0edc[_0x17d220(0xdb)]+_0x5b4d5d),_0x5b0edc[_0x17d220(0xf2)]&&console[_0x17d220(0xde)](_0x471ae7+_0x17d220(0xd8)+_0x5b0edc[_0x17d220(0xf2)]+_0x5b4d5d),console['log'](_0x471ae7+_0x17d220(0xf9)+_0x5184b3+_0x5b4d5d)),console['log']();}export function assertCliVersionSupported(_0x471ca9){const _0x2de8ce=a182_0x95de;if(!_0x471ca9['belowMinimum'])return;const _0x2616bb=[_0x471ca9[_0x2de8ce(0xe0)],_0x2de8ce(0xee)+_0x471ca9[_0x2de8ce(0xe8)],_0x471ca9[_0x2de8ce(0xda)]?_0x2de8ce(0xf0)+_0x471ca9[_0x2de8ce(0xda)]:null,_0x2de8ce(0xdc)+getCliUpgradeCommand(_0x471ca9)][_0x2de8ce(0xd2)](Boolean)['join']('\x0a');throw CliErrors[_0x2de8ce(0xe4)](_0x2de8ce(0xf8),_0x2616bb);}
1
+ (function(_0x1d2d4f,_0x34dd2d){const _0xe104be=a182_0x8761,_0x2afb41=_0x1d2d4f();while(!![]){try{const _0x40274d=parseInt(_0xe104be(0x1b7))/0x1+-parseInt(_0xe104be(0x1b9))/0x2*(parseInt(_0xe104be(0x1b5))/0x3)+-parseInt(_0xe104be(0x198))/0x4+-parseInt(_0xe104be(0x1a1))/0x5+parseInt(_0xe104be(0x1a5))/0x6*(-parseInt(_0xe104be(0x1b3))/0x7)+-parseInt(_0xe104be(0x194))/0x8*(parseInt(_0xe104be(0x19c))/0x9)+parseInt(_0xe104be(0x1ad))/0xa;if(_0x40274d===_0x34dd2d)break;else _0x2afb41['push'](_0x2afb41['shift']());}catch(_0x1cc3ea){_0x2afb41['push'](_0x2afb41['shift']());}}}(a182_0xc6ac,0xacb5b));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a182_0xc6ac(){const _0x4d60c0=['1559468MFpIxD','↪\x20New\x20version\x20available','belowMinimum','minimumVersion','171xqZsKj','\x1b[31m','\x20\x20\x20Recommended\x20stable:\x20','\x1b[1m','package.json','2164450mrOfRL','currentVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','upgradeMessage','33606ZDXoAf','\x20\x20\x20','1.0.0','utf-8','\x20\x20\x20Minimum\x20required:\x20','stableVersion','../..','Current\x20version:\x20','32003860GBYOzk','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','parse','minimumVersionMessage','\x20\x20\x20Stable\x20version:\x20','coerce','357EQeEik','Minimum\x20required:\x20','4587YmsiAi','version','974211CVpyHz','\x20\x20\x20Upgrade\x20command:\x20','1688IGHPTH','latest','Upgrade\x20command:\x20','validation','449808BdPSiC','\x1b[0m','log','filter'];a182_0xc6ac=function(){return _0x4d60c0;};return a182_0xc6ac();}import{fileURLToPath}from'node:url';function a182_0x8761(_0x1e7bea,_0x1e42e6){_0x1e7bea=_0x1e7bea-0x193;const _0xc6acad=a182_0xc6ac();let _0x87613b=_0xc6acad[_0x1e7bea];return _0x87613b;}import a182_0x1fee10 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(_0x41bbb9){const _0x1ca7a3=a182_0x8761,_0x4329aa=_0x41bbb9[_0x1ca7a3(0x1aa)]||_0x1ca7a3(0x1ba);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x4329aa;}function getCurrentCliVersion(){const _0x1b3e30=a182_0x8761;try{const _0x17d538=fileURLToPath(import.meta.url),_0x303477=resolve(dirname(_0x17d538),_0x1b3e30(0x1ab)),_0x325029=resolve(_0x303477,_0x1b3e30(0x1a0)),_0x56c545=JSON[_0x1b3e30(0x1af)](readFileSync(_0x325029,_0x1b3e30(0x1a8)));return _0x56c545[_0x1b3e30(0x1b6)]||_0x1b3e30(0x1a7);}catch{return _0x1b3e30(0x1a7);}}export async function checkCliVersion(){const _0x1b25c5=a182_0x8761,_0x41105d=getCurrentCliVersion(),_0x46749b=await getCliVersionPolicy(),_0x43cec4=_0x46749b?.[_0x1b25c5(0x1aa)]||null,_0x5a33d4=_0x46749b?.[_0x1b25c5(0x19b)]||null;let _0x3114ca=![],_0x21b0b8=![];const _0x5603e6=a182_0x1fee10[_0x1b25c5(0x1b2)](_0x41105d);if(_0x5603e6&&_0x43cec4)try{const _0xa79907=a182_0x1fee10[_0x1b25c5(0x1b2)](_0x43cec4);if(_0xa79907)_0x3114ca=a182_0x1fee10['lt'](_0x5603e6,_0xa79907);}catch{}if(_0x5603e6&&_0x5a33d4)try{const _0x3bdbb8=a182_0x1fee10[_0x1b25c5(0x1b2)](_0x5a33d4);if(_0x3bdbb8)_0x21b0b8=a182_0x1fee10['lt'](_0x5603e6,_0x3bdbb8);}catch{}return _0x21b0b8&&(_0x3114ca=!![]),{'currentVersion':_0x41105d,'stableVersion':_0x43cec4,'minimumVersion':_0x5a33d4,'needsUpgrade':_0x3114ca,'belowMinimum':_0x21b0b8,'isPreRelease':![],'upgradeMessage':_0x46749b?.[_0x1b25c5(0x1a4)],'minimumVersionMessage':_0x46749b?.[_0x1b25c5(0x1b0)]};}export function printCliUpgradeWarning(_0x5ad405){const _0x63cabc=a182_0x8761;if(!_0x5ad405['needsUpgrade']&&!_0x5ad405[_0x63cabc(0x19a)])return;const _0x5e863e=_0x63cabc(0x19d),_0xea4881='\x1b[33m',_0x29a218=_0x63cabc(0x195),_0x5d3ca3=_0x63cabc(0x19f),_0x5e4ec4=getCliUpgradeCommand(_0x5ad405);console[_0x63cabc(0x196)](),_0x5ad405[_0x63cabc(0x19a)]?(console[_0x63cabc(0x196)](''+_0x5e863e+_0x5d3ca3+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x29a218),console[_0x63cabc(0x196)](_0x5e863e+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x5ad405['currentVersion']+_0x29a218),_0x5ad405[_0x63cabc(0x19b)]&&console[_0x63cabc(0x196)](_0x5e863e+_0x63cabc(0x1a9)+_0x5ad405[_0x63cabc(0x19b)]+_0x29a218),_0x5ad405[_0x63cabc(0x1aa)]&&_0x5ad405['stableVersion']!==_0x5ad405['minimumVersion']&&console['log'](_0x5e863e+_0x63cabc(0x19e)+_0x5ad405[_0x63cabc(0x1aa)]+_0x29a218),_0x5ad405['minimumVersionMessage']&&console[_0x63cabc(0x196)](_0x5e863e+_0x63cabc(0x1a6)+_0x5ad405[_0x63cabc(0x1b0)]+_0x29a218),console[_0x63cabc(0x196)](_0x5e863e+_0x63cabc(0x1b8)+_0x5e4ec4+_0x29a218)):(console[_0x63cabc(0x196)](''+_0xea4881+_0x5d3ca3+_0x63cabc(0x199)+_0x29a218),console[_0x63cabc(0x196)](_0xea4881+_0x63cabc(0x1a3)+_0x5ad405[_0x63cabc(0x1a2)]+_0x29a218),console[_0x63cabc(0x196)](_0xea4881+_0x63cabc(0x1b1)+_0x5ad405['stableVersion']+_0x29a218),_0x5ad405[_0x63cabc(0x1a4)]&&console['log'](_0xea4881+_0x63cabc(0x1a6)+_0x5ad405[_0x63cabc(0x1a4)]+_0x29a218),console[_0x63cabc(0x196)](_0xea4881+_0x63cabc(0x1b8)+_0x5e4ec4+_0x29a218)),console[_0x63cabc(0x196)]();}export function assertCliVersionSupported(_0x29b866){const _0x54787b=a182_0x8761;if(!_0x29b866['belowMinimum'])return;const _0x555050=[_0x29b866[_0x54787b(0x1b0)],_0x54787b(0x1ac)+_0x29b866[_0x54787b(0x1a2)],_0x29b866['minimumVersion']?_0x54787b(0x1b4)+_0x29b866[_0x54787b(0x19b)]:null,_0x54787b(0x1bb)+getCliUpgradeCommand(_0x29b866)][_0x54787b(0x197)](Boolean)['join']('\x0a');throw CliErrors[_0x54787b(0x193)](_0x54787b(0x1ae),_0x555050);}
@@ -1 +1 @@
1
- (function(_0xec8fe6,_0x3d5388){const _0x3497d9=a183_0x3f71,_0x53ae2e=_0xec8fe6();while(!![]){try{const _0x30e566=-parseInt(_0x3497d9(0x72))/0x1+parseInt(_0x3497d9(0x68))/0x2*(-parseInt(_0x3497d9(0x78))/0x3)+-parseInt(_0x3497d9(0x71))/0x4*(-parseInt(_0x3497d9(0x65))/0x5)+parseInt(_0x3497d9(0x67))/0x6*(-parseInt(_0x3497d9(0x75))/0x7)+parseInt(_0x3497d9(0x7a))/0x8*(-parseInt(_0x3497d9(0x69))/0x9)+-parseInt(_0x3497d9(0x76))/0xa*(-parseInt(_0x3497d9(0x6d))/0xb)+-parseInt(_0x3497d9(0x79))/0xc*(-parseInt(_0x3497d9(0x73))/0xd);if(_0x30e566===_0x3d5388)break;else _0x53ae2e['push'](_0x53ae2e['shift']());}catch(_0x1dc6b8){_0x53ae2e['push'](_0x53ae2e['shift']());}}}(a183_0x27ff,0x82cd1));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a183_0x27ff(){const _0x53c8d6=['50yrYtCw','trim','1137icikJl','6576GhrYSk','255144JwIDMk','now','stableVersion','945fmaiAv','minVersion','12WjUCUi','2434ysxvgg','9Gngkyw','object','json','cli','303391zUcrNI','recommendedVersion','signal','minimumVersion','13976Swealx','916998ObzlFO','51246ovlQSq','minimumVersionMessage','3544072ulISFL'];a183_0x27ff=function(){return _0x53c8d6;};return a183_0x27ff();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x483f99){const _0x1fdd1c=a183_0x3f71;return typeof _0x483f99==='string'&&_0x483f99[_0x1fdd1c(0x77)]()['length']>0x0?_0x483f99[_0x1fdd1c(0x77)]():null;}function normalizeCliVersionPolicy(_0x5c7d37){const _0x18c53e=a183_0x3f71;if(!_0x5c7d37||typeof _0x5c7d37!==_0x18c53e(0x6a))return null;const _0xdbd22c=_0x5c7d37,_0x557ccb=_0xdbd22c['cli']&&typeof _0xdbd22c['cli']===_0x18c53e(0x6a)?_0xdbd22c[_0x18c53e(0x6c)]:_0xdbd22c,_0x11312f=pickString(_0x557ccb[_0x18c53e(0x64)])||pickString(_0x557ccb['latestVersion'])||pickString(_0x557ccb[_0x18c53e(0x6e)]),_0x1f31a1=pickString(_0x557ccb[_0x18c53e(0x70)])||pickString(_0x557ccb[_0x18c53e(0x66)]);if(!_0x11312f&&!_0x1f31a1)return null;return{'stableVersion':_0x11312f,'minimumVersion':_0x1f31a1,'upgradeMessage':pickString(_0x557ccb['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x557ccb[_0x18c53e(0x74)])||undefined};}export async function fetchCliVersionPolicy(){const _0x2d2da0=a183_0x3f71,_0x1ed24d=new AbortController(),_0x3bc315=setTimeout(()=>_0x1ed24d['abort'](),FETCH_TIMEOUT_MS);try{const _0x3760ca=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x1ed24d[_0x2d2da0(0x6f)]});if(!_0x3760ca['ok'])return null;const _0xf8bc12=await _0x3760ca[_0x2d2da0(0x6b)]();return normalizeCliVersionPolicy(_0xf8bc12);}catch{return null;}finally{clearTimeout(_0x3bc315);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4cd1cf=a183_0x3f71,_0x13da35=Date[_0x4cd1cf(0x7b)]();if(hasCachedPolicy){const _0x55e00f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x13da35-cacheTime<_0x55e00f)return cachedPolicy;}const _0x567b27=await fetchCliVersionPolicy();return cachedPolicy=_0x567b27,cacheTime=_0x13da35,hasCachedPolicy=!![],_0x567b27;}function a183_0x3f71(_0x48bdcd,_0x3e63b8){_0x48bdcd=_0x48bdcd-0x64;const _0x27ff4a=a183_0x27ff();let _0x3f71cd=_0x27ff4a[_0x48bdcd];return _0x3f71cd;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a183_0x1d0e(){const _0x45019d=['1147030uzHNOX','cli','trim','4102NRuSqs','recommendedVersion','length','stableVersion','33544810XbhyOW','837353AnDpDt','object','minimumVersion','160oETRnB','minVersion','string','application/json','minimumVersionMessage','567tqMpAs','109128MmVSwf','3015985JwBroY','4227tgzbKb','1572yrmDZy'];a183_0x1d0e=function(){return _0x45019d;};return a183_0x1d0e();}(function(_0x440264,_0x37b1ab){const _0x4849fa=a183_0x3044,_0xc5f60d=_0x440264();while(!![]){try{const _0x2bbc10=-parseInt(_0x4849fa(0x9c))/0x1+-parseInt(_0x4849fa(0x94))/0x2+parseInt(_0x4849fa(0x92))/0x3*(-parseInt(_0x4849fa(0x9f))/0x4)+-parseInt(_0x4849fa(0x91))/0x5+parseInt(_0x4849fa(0x93))/0x6*(parseInt(_0x4849fa(0x97))/0x7)+parseInt(_0x4849fa(0xa5))/0x8*(-parseInt(_0x4849fa(0xa4))/0x9)+parseInt(_0x4849fa(0x9b))/0xa;if(_0x2bbc10===_0x37b1ab)break;else _0xc5f60d['push'](_0xc5f60d['shift']());}catch(_0x343c80){_0xc5f60d['push'](_0xc5f60d['shift']());}}}(a183_0x1d0e,0x8d29d));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(_0x2ca538){const _0x4d171a=a183_0x3044;return typeof _0x2ca538===_0x4d171a(0xa1)&&_0x2ca538['trim']()[_0x4d171a(0x99)]>0x0?_0x2ca538[_0x4d171a(0x96)]():null;}function normalizeCliVersionPolicy(_0x20562c){const _0x5277a5=a183_0x3044;if(!_0x20562c||typeof _0x20562c!==_0x5277a5(0x9d))return null;const _0x45065e=_0x20562c,_0x299a68=_0x45065e['cli']&&typeof _0x45065e[_0x5277a5(0x95)]===_0x5277a5(0x9d)?_0x45065e[_0x5277a5(0x95)]:_0x45065e,_0x1052b5=pickString(_0x299a68[_0x5277a5(0x9a)])||pickString(_0x299a68['latestVersion'])||pickString(_0x299a68[_0x5277a5(0x98)]),_0x394729=pickString(_0x299a68[_0x5277a5(0x9e)])||pickString(_0x299a68[_0x5277a5(0xa0)]);if(!_0x1052b5&&!_0x394729)return null;return{'stableVersion':_0x1052b5,'minimumVersion':_0x394729,'upgradeMessage':pickString(_0x299a68['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x299a68[_0x5277a5(0xa3)])||undefined};}export async function fetchCliVersionPolicy(){const _0x59178e=a183_0x3044,_0x384dbe=new AbortController(),_0x2fef0=setTimeout(()=>_0x384dbe['abort'](),FETCH_TIMEOUT_MS);try{const _0xf749bd=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x59178e(0xa2)},'signal':_0x384dbe['signal']});if(!_0xf749bd['ok'])return null;const _0x521a63=await _0xf749bd['json']();return normalizeCliVersionPolicy(_0x521a63);}catch{return null;}finally{clearTimeout(_0x2fef0);}}function a183_0x3044(_0x183d71,_0x74c413){_0x183d71=_0x183d71-0x91;const _0x1d0ebf=a183_0x1d0e();let _0x304491=_0x1d0ebf[_0x183d71];return _0x304491;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x5671c6=Date['now']();if(hasCachedPolicy){const _0x52edf0=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5671c6-cacheTime<_0x52edf0)return cachedPolicy;}const _0x3111a0=await fetchCliVersionPolicy();return cachedPolicy=_0x3111a0,cacheTime=_0x5671c6,hasCachedPolicy=!![],_0x3111a0;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a184_0x5b8bf4=a184_0x191d;(function(_0x4ba839,_0x4c1297){const _0x27c128=a184_0x191d,_0x485807=_0x4ba839();while(!![]){try{const _0x1f16ff=-parseInt(_0x27c128(0x174))/0x1*(-parseInt(_0x27c128(0x176))/0x2)+-parseInt(_0x27c128(0x178))/0x3+parseInt(_0x27c128(0x16e))/0x4+parseInt(_0x27c128(0x177))/0x5+parseInt(_0x27c128(0x179))/0x6+parseInt(_0x27c128(0x172))/0x7*(-parseInt(_0x27c128(0x170))/0x8)+-parseInt(_0x27c128(0x171))/0x9;if(_0x1f16ff===_0x4c1297)break;else _0x485807['push'](_0x485807['shift']());}catch(_0x2202dd){_0x485807['push'](_0x485807['shift']());}}}(a184_0x13dc,0xa97ad));import{initEnv}from'../constant/env.js';function a184_0x13dc(){const _0x3c972d=['string','106UTfIjk','412850VhcaMj','523695dFCvvE','3836562yyuNrE','5459936TCQXEI','env','5800dFaNtF','12475917NYPRTC','4333MrqsoP','project','11637NCfxfU'];a184_0x13dc=function(){return _0x3c972d;};return a184_0x13dc();}import{readRawConfig,getConfigAppCode as a184_0x544bb1,getMultiAppConfigs as a184_0x5d5637,getTemplateBaseUrl as a184_0x10053b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a184_0x191d(_0x273cd5,_0x20527b){_0x273cd5=_0x273cd5-0x16e;const _0x13dc80=a184_0x13dc();let _0x191d09=_0x13dc80[_0x273cd5];return _0x191d09;}export{isInProject}from'../context.js';export function readConfig(_0x2b5a8c){const _0x265b41=a184_0x191d,_0x17d2c2=readRawConfig(_0x2b5a8c);return _0x17d2c2['env']&&typeof _0x17d2c2[_0x265b41(0x16f)]===_0x265b41(0x175)&&initEnv(_0x17d2c2[_0x265b41(0x16f)]),_0x17d2c2;}export function getConfigAppCode(){return a184_0x544bb1();}export function getMultiAppConfigs(_0x47b5f5=a184_0x5b8bf4(0x173)){return a184_0x5d5637(_0x47b5f5);}export function getTemplateBaseUrl(){return a184_0x10053b();}
1
+ const a184_0x4e5999=a184_0x2241;(function(_0x5528c0,_0x33ef9a){const _0x32d27b=a184_0x2241,_0x2e9e64=_0x5528c0();while(!![]){try{const _0x34bc1d=-parseInt(_0x32d27b(0x1eb))/0x1+-parseInt(_0x32d27b(0x1ef))/0x2*(parseInt(_0x32d27b(0x1e7))/0x3)+-parseInt(_0x32d27b(0x1ec))/0x4+-parseInt(_0x32d27b(0x1ea))/0x5+parseInt(_0x32d27b(0x1f0))/0x6+parseInt(_0x32d27b(0x1ed))/0x7+parseInt(_0x32d27b(0x1e9))/0x8;if(_0x34bc1d===_0x33ef9a)break;else _0x2e9e64['push'](_0x2e9e64['shift']());}catch(_0x37776a){_0x2e9e64['push'](_0x2e9e64['shift']());}}}(a184_0x5be4,0xa73ef));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a184_0x39eaf4,getMultiAppConfigs as a184_0x3aeb3e,getTemplateBaseUrl as a184_0x3e1c31}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a184_0x2241(_0x5c4c6c,_0xff1e20){_0x5c4c6c=_0x5c4c6c-0x1e7;const _0x5be4e6=a184_0x5be4();let _0x22415a=_0x5be4e6[_0x5c4c6c];return _0x22415a;}export{isInProject}from'../context.js';export function readConfig(_0x21e57d){const _0x59ad98=a184_0x2241,_0x18af15=readRawConfig(_0x21e57d);return _0x18af15[_0x59ad98(0x1e8)]&&typeof _0x18af15[_0x59ad98(0x1e8)]==='string'&&initEnv(_0x18af15[_0x59ad98(0x1e8)]),_0x18af15;}export function getConfigAppCode(){return a184_0x39eaf4();}export function getMultiAppConfigs(_0x2e09ba=a184_0x4e5999(0x1ee)){return a184_0x3aeb3e(_0x2e09ba);}export function getTemplateBaseUrl(){return a184_0x3e1c31();}function a184_0x5be4(){const _0xa53f54=['386709OpQNLI','env','12421568OchnQz','2626105UBqzNj','361585PUlxvh','4166832pdgNNS','9266509WVVben','project','12UYnlSg','3062928vmHndd'];a184_0x5be4=function(){return _0xa53f54;};return a184_0x5be4();}
@@ -1 +1 @@
1
- function a185_0x5140(_0x310481,_0x373b08){_0x310481=_0x310481-0x182;const _0x18ec79=a185_0x18ec();let _0x5140d0=_0x18ec79[_0x310481];return _0x5140d0;}function a185_0x18ec(){const _0x5c2b63=['2240295Roqejt','1431444KFeoSf','32927022jaXEvW','336543PBHTmb','join','8azknjk','1434867fKJdsT','name','8933449ONRqxd','2FqfHUh','1265460FPVGRx','error','mkdirSync','readdirSync'];a185_0x18ec=function(){return _0x5c2b63;};return a185_0x18ec();}(function(_0x1a08e8,_0x5f2345){const _0x1ca01a=a185_0x5140,_0x339d4a=_0x1a08e8();while(!![]){try{const _0x2f47c6=-parseInt(_0x1ca01a(0x184))/0x1+-parseInt(_0x1ca01a(0x187))/0x2*(parseInt(_0x1ca01a(0x18f))/0x3)+-parseInt(_0x1ca01a(0x188))/0x4+parseInt(_0x1ca01a(0x18c))/0x5+-parseInt(_0x1ca01a(0x18d))/0x6+-parseInt(_0x1ca01a(0x186))/0x7+-parseInt(_0x1ca01a(0x183))/0x8*(-parseInt(_0x1ca01a(0x18e))/0x9);if(_0x2f47c6===_0x5f2345)break;else _0x339d4a['push'](_0x339d4a['shift']());}catch(_0x4818c0){_0x339d4a['push'](_0x339d4a['shift']());}}}(a185_0x18ec,0xb1d67));import a185_0x25c111 from'node:path';import a185_0x12118c from'node:fs';export async function copyDirectory(_0x22c032,_0x2706e3){const _0x560a66=a185_0x5140;try{const _0x2a55e9=a185_0x12118c[_0x560a66(0x18b)](_0x22c032,{'withFileTypes':!![]});a185_0x12118c[_0x560a66(0x18a)](_0x2706e3,{'recursive':!![]});for(const _0x3c7a3b of _0x2a55e9){const _0x37aeae=a185_0x25c111[_0x560a66(0x182)](_0x22c032,_0x3c7a3b['name']),_0x30a2d1=a185_0x25c111[_0x560a66(0x182)](_0x2706e3,_0x3c7a3b[_0x560a66(0x185)]);_0x3c7a3b['isDirectory']()?await copyDirectory(_0x37aeae,_0x30a2d1):a185_0x12118c['copyFileSync'](_0x37aeae,_0x30a2d1);}}catch(_0xf9711c){console[_0x560a66(0x189)]('复制目录时出错:',_0xf9711c);}}
1
+ (function(_0x3c6f09,_0x3f4404){const _0x32f54c=a185_0x20ff,_0x2d1b2c=_0x3c6f09();while(!![]){try{const _0x2e8bb4=-parseInt(_0x32f54c(0xac))/0x1*(-parseInt(_0x32f54c(0xb1))/0x2)+-parseInt(_0x32f54c(0xad))/0x3+-parseInt(_0x32f54c(0xaa))/0x4*(-parseInt(_0x32f54c(0xa5))/0x5)+-parseInt(_0x32f54c(0xaf))/0x6+-parseInt(_0x32f54c(0xa7))/0x7*(parseInt(_0x32f54c(0xa8))/0x8)+parseInt(_0x32f54c(0xa4))/0x9+parseInt(_0x32f54c(0xa3))/0xa*(-parseInt(_0x32f54c(0xb0))/0xb);if(_0x2e8bb4===_0x3f4404)break;else _0x2d1b2c['push'](_0x2d1b2c['shift']());}catch(_0x4883a7){_0x2d1b2c['push'](_0x2d1b2c['shift']());}}}(a185_0x5900,0x9a414));import a185_0x3a6acf from'node:path';import a185_0x523e8c from'node:fs';function a185_0x20ff(_0xe7e5f2,_0x4529d4){_0xe7e5f2=_0xe7e5f2-0xa2;const _0x59009c=a185_0x5900();let _0x20ff16=_0x59009c[_0xe7e5f2];return _0x20ff16;}function a185_0x5900(){const _0x59d3d2=['2ChOSUQ','copyFileSync','10310pxuNNT','4433652JAjAJn','1945qPacCz','复制目录时出错:','3274936vVgwnV','16BGuKrV','readdirSync','5092XSfNLZ','join','1024873GDCxWD','502233mfKsPi','name','1140768qnRKVY','935erKAne'];a185_0x5900=function(){return _0x59d3d2;};return a185_0x5900();}export async function copyDirectory(_0x38af97,_0x36308f){const _0x246de3=a185_0x20ff;try{const _0x20d280=a185_0x523e8c[_0x246de3(0xa9)](_0x38af97,{'withFileTypes':!![]});a185_0x523e8c['mkdirSync'](_0x36308f,{'recursive':!![]});for(const _0x16c4b8 of _0x20d280){const _0x4f03e4=a185_0x3a6acf['join'](_0x38af97,_0x16c4b8[_0x246de3(0xae)]),_0x533dfc=a185_0x3a6acf[_0x246de3(0xab)](_0x36308f,_0x16c4b8[_0x246de3(0xae)]);_0x16c4b8['isDirectory']()?await copyDirectory(_0x4f03e4,_0x533dfc):a185_0x523e8c[_0x246de3(0xa2)](_0x4f03e4,_0x533dfc);}}catch(_0x5d009e){console['error'](_0x246de3(0xa6),_0x5d009e);}}
@@ -1 +1 @@
1
- function a186_0xafa4(){const _0x589145=['2351160sxAeKe','string','104tTEqpk','object','isFinite','trim','8261MUOZfT','6CQVTNx','10932fPVpHR','1922991xAwURO','73449vsHGmJ','1145952hssOkj','5WJAMNk','24848IKwvPG','number','3820nggYvp'];a186_0xafa4=function(){return _0x589145;};return a186_0xafa4();}(function(_0x48e602,_0x100bc4){const _0x1acbb7=a186_0x5be8,_0x3a1166=_0x48e602();while(!![]){try{const _0x4f9081=parseInt(_0x1acbb7(0x172))/0x1*(-parseInt(_0x1acbb7(0x178))/0x2)+parseInt(_0x1acbb7(0x174))/0x3+parseInt(_0x1acbb7(0x173))/0x4*(parseInt(_0x1acbb7(0x177))/0x5)+-parseInt(_0x1acbb7(0x176))/0x6+-parseInt(_0x1acbb7(0x16b))/0x7+-parseInt(_0x1acbb7(0x16d))/0x8*(-parseInt(_0x1acbb7(0x175))/0x9)+parseInt(_0x1acbb7(0x17a))/0xa*(parseInt(_0x1acbb7(0x171))/0xb);if(_0x4f9081===_0x100bc4)break;else _0x3a1166['push'](_0x3a1166['shift']());}catch(_0x4cde3b){_0x3a1166['push'](_0x3a1166['shift']());}}}(a186_0xafa4,0x6a459));function a186_0x5be8(_0x238e27,_0x416a09){_0x238e27=_0x238e27-0x16b;const _0xafa4aa=a186_0xafa4();let _0x5be8fc=_0xafa4aa[_0x238e27];return _0x5be8fc;}function toFiniteNumber(_0x37c9de){const _0x447eea=a186_0x5be8;if(typeof _0x37c9de===_0x447eea(0x179)&&Number[_0x447eea(0x16f)](_0x37c9de))return _0x37c9de;if(typeof _0x37c9de===_0x447eea(0x16c)){const _0x13eeee=_0x37c9de[_0x447eea(0x170)]();if(!_0x13eeee)return undefined;const _0x299139=Number(_0x13eeee);if(Number[_0x447eea(0x16f)](_0x299139))return _0x299139;}return undefined;}export function normalizeEntityWithIdResponse(_0x2f6652){const _0x15376d=a186_0x5be8,_0x36d246=toFiniteNumber(_0x2f6652);if(_0x36d246!==undefined)return{'id':_0x36d246,'entity':{'id':_0x36d246}};if(!_0x2f6652||typeof _0x2f6652!==_0x15376d(0x16e))return{'id':undefined,'entity':{}};const _0x449ed1={..._0x2f6652},_0xb24a87=toFiniteNumber(_0x449ed1['id']);return _0xb24a87!==undefined&&(_0x449ed1['id']=_0xb24a87),{'id':_0xb24a87,'entity':_0x449ed1};}
1
+ function a186_0x5249(){const _0x552f49=['8RnpJVk','161560tVygnm','5yEMtVu','2161792bFHOxQ','1079538ybYWde','486126FujAJw','184731TqjzgV','90501UZYQQN','string','20uAcYQv','isFinite','4378380uWASbz'];a186_0x5249=function(){return _0x552f49;};return a186_0x5249();}function a186_0x86ab(_0x2ea97c,_0x1b5e77){_0x2ea97c=_0x2ea97c-0x166;const _0x524991=a186_0x5249();let _0x86ab70=_0x524991[_0x2ea97c];return _0x86ab70;}(function(_0x38fd9e,_0x571bc3){const _0x36b659=a186_0x86ab,_0xa6cba9=_0x38fd9e();while(!![]){try{const _0x25de8c=parseInt(_0x36b659(0x171))/0x1*(-parseInt(_0x36b659(0x16a))/0x2)+parseInt(_0x36b659(0x170))/0x3*(parseInt(_0x36b659(0x167))/0x4)+-parseInt(_0x36b659(0x16c))/0x5*(-parseInt(_0x36b659(0x16e))/0x6)+-parseInt(_0x36b659(0x16b))/0x7+-parseInt(_0x36b659(0x16d))/0x8+-parseInt(_0x36b659(0x16f))/0x9+parseInt(_0x36b659(0x169))/0xa;if(_0x25de8c===_0x571bc3)break;else _0xa6cba9['push'](_0xa6cba9['shift']());}catch(_0x2951b){_0xa6cba9['push'](_0xa6cba9['shift']());}}}(a186_0x5249,0x34d04));function toFiniteNumber(_0x4868f6){const _0x26bfd2=a186_0x86ab;if(typeof _0x4868f6==='number'&&Number[_0x26bfd2(0x168)](_0x4868f6))return _0x4868f6;if(typeof _0x4868f6===_0x26bfd2(0x166)){const _0x26ead2=_0x4868f6['trim']();if(!_0x26ead2)return undefined;const _0x345ca9=Number(_0x26ead2);if(Number[_0x26bfd2(0x168)](_0x345ca9))return _0x345ca9;}return undefined;}export function normalizeEntityWithIdResponse(_0x4971b7){const _0x2e9c53=toFiniteNumber(_0x4971b7);if(_0x2e9c53!==undefined)return{'id':_0x2e9c53,'entity':{'id':_0x2e9c53}};if(!_0x4971b7||typeof _0x4971b7!=='object')return{'id':undefined,'entity':{}};const _0x26aaa1={..._0x4971b7},_0x44599b=toFiniteNumber(_0x26aaa1['id']);return _0x44599b!==undefined&&(_0x26aaa1['id']=_0x44599b),{'id':_0x44599b,'entity':_0x26aaa1};}
@@ -1 +1 @@
1
- (function(_0x1453c1,_0x8c0a4b){const _0x4ff2af=a187_0x173c,_0x3bbaaa=_0x1453c1();while(!![]){try{const _0x2b7cc8=parseInt(_0x4ff2af(0x194))/0x1*(parseInt(_0x4ff2af(0x190))/0x2)+parseInt(_0x4ff2af(0x193))/0x3+parseInt(_0x4ff2af(0x191))/0x4+parseInt(_0x4ff2af(0x192))/0x5*(parseInt(_0x4ff2af(0x18d))/0x6)+parseInt(_0x4ff2af(0x18f))/0x7*(parseInt(_0x4ff2af(0x18a))/0x8)+-parseInt(_0x4ff2af(0x18c))/0x9+parseInt(_0x4ff2af(0x18e))/0xa*(-parseInt(_0x4ff2af(0x195))/0xb);if(_0x2b7cc8===_0x8c0a4b)break;else _0x3bbaaa['push'](_0x3bbaaa['shift']());}catch(_0x4ac95f){_0x3bbaaa['push'](_0x3bbaaa['shift']());}}}(a187_0x44c6,0x188c6));function a187_0x173c(_0x2c2fa5,_0x137692){_0x2c2fa5=_0x2c2fa5-0x18a;const _0x44c65f=a187_0x44c6();let _0x173cc5=_0x44c65f[_0x2c2fa5];return _0x173cc5;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a187_0x44c6(){const _0xb88605=['270564OSyYQY','30hminvi','7VCXXAW','5686wUwlGa','697204fwzuby','20coHTlQ','94710fmoegG','1tovgTo','783101ISUSMV','875864HEJBeM','isDirectory','1660050VcNvbM'];a187_0x44c6=function(){return _0xb88605;};return a187_0x44c6();}import{join}from'node:path';export async function copyDir(_0x280ad6,_0x1fd84c){const _0x41d9fa=a187_0x173c,_0x2814a8=statSync(_0x280ad6);if(_0x2814a8[_0x41d9fa(0x18b)]()){!existsSync(_0x1fd84c)&&mkdirSync(_0x1fd84c,{'recursive':!![]});const _0x386554=readdirSync(_0x280ad6);for(const _0xfb9a8f of _0x386554){await copyDir(join(_0x280ad6,_0xfb9a8f),join(_0x1fd84c,_0xfb9a8f));}}else copyFileSync(_0x280ad6,_0x1fd84c);}export function ensureDir(_0x2d2b2d){!existsSync(_0x2d2b2d)&&mkdirSync(_0x2d2b2d,{'recursive':!![]});}export function pathExists(_0x5c233c){return existsSync(_0x5c233c);}
1
+ function a187_0xbc33(){const _0x1599dc=['1983444fQjLVY','isDirectory','4243495GQKvFs','4387188ydXLxp','8NtYNTH','3688605SFKnXQ','150LzBtWF','1635858RpKbBh','5607528UKXwSN','35WWCrlg','391260xCYbLG'];a187_0xbc33=function(){return _0x1599dc;};return a187_0xbc33();}(function(_0x2d13a1,_0x297668){const _0x2486ed=a187_0x2a31,_0x4e7134=_0x2d13a1();while(!![]){try{const _0x5fe854=-parseInt(_0x2486ed(0x1cf))/0x1+-parseInt(_0x2486ed(0x1d0))/0x2+-parseInt(_0x2486ed(0x1d3))/0x3+-parseInt(_0x2486ed(0x1c9))/0x4*(parseInt(_0x2486ed(0x1d2))/0x5)+-parseInt(_0x2486ed(0x1cc))/0x6*(parseInt(_0x2486ed(0x1ce))/0x7)+parseInt(_0x2486ed(0x1cd))/0x8+-parseInt(_0x2486ed(0x1ca))/0x9*(-parseInt(_0x2486ed(0x1cb))/0xa);if(_0x5fe854===_0x297668)break;else _0x4e7134['push'](_0x4e7134['shift']());}catch(_0x26ebee){_0x4e7134['push'](_0x4e7134['shift']());}}}(a187_0xbc33,0xe6221));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a187_0x2a31(_0xd7bc25,_0x44167a){_0xd7bc25=_0xd7bc25-0x1c9;const _0xbc336d=a187_0xbc33();let _0x2a31ef=_0xbc336d[_0xd7bc25];return _0x2a31ef;}import{join}from'node:path';export async function copyDir(_0x22d374,_0x3257a3){const _0x1c618d=a187_0x2a31,_0x1794b2=statSync(_0x22d374);if(_0x1794b2[_0x1c618d(0x1d1)]()){!existsSync(_0x3257a3)&&mkdirSync(_0x3257a3,{'recursive':!![]});const _0x228846=readdirSync(_0x22d374);for(const _0x4437ce of _0x228846){await copyDir(join(_0x22d374,_0x4437ce),join(_0x3257a3,_0x4437ce));}}else copyFileSync(_0x22d374,_0x3257a3);}export function ensureDir(_0x242433){!existsSync(_0x242433)&&mkdirSync(_0x242433,{'recursive':!![]});}export function pathExists(_0x499440){return existsSync(_0x499440);}
@@ -1 +1 @@
1
- const a188_0x2bb8fc=a188_0x1f0c;(function(_0x2cf49c,_0x256b7a){const _0x24db39=a188_0x1f0c,_0x4e27ca=_0x2cf49c();while(!![]){try{const _0x53fd1a=-parseInt(_0x24db39(0x176))/0x1+-parseInt(_0x24db39(0x15e))/0x2*(parseInt(_0x24db39(0x17e))/0x3)+-parseInt(_0x24db39(0x164))/0x4+parseInt(_0x24db39(0x174))/0x5*(parseInt(_0x24db39(0x172))/0x6)+-parseInt(_0x24db39(0x17b))/0x7+-parseInt(_0x24db39(0x171))/0x8+parseInt(_0x24db39(0x170))/0x9;if(_0x53fd1a===_0x256b7a)break;else _0x4e27ca['push'](_0x4e27ca['shift']());}catch(_0x31c38d){_0x4e27ca['push'](_0x4e27ca['shift']());}}}(a188_0x3452,0xa16c1));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a188_0x1f0c(_0x4416c1,_0x2d0922){_0x4416c1=_0x4416c1-0x15d;const _0x3452a2=a188_0x3452();let _0x1f0c39=_0x3452a2[_0x4416c1];return _0x1f0c39;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x346b0e=getTemplateBaseUrl();return _0x346b0e+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a188_0x2bb8fc(0x179),a188_0x2bb8fc(0x162));export async function fetchGuidesFromCDN(){const _0x4d78cd=a188_0x2bb8fc,_0x21ea39=getGuidesCdnUrl(),_0x5a34b7=await fetch(_0x21ea39,{'headers':{'Accept':_0x4d78cd(0x17a)}});if(!_0x5a34b7['ok'])throw new Error(_0x4d78cd(0x16e)+_0x5a34b7[_0x4d78cd(0x178)]+'\x20'+_0x5a34b7[_0x4d78cd(0x16c)]);const _0x20c771=await _0x5a34b7[_0x4d78cd(0x160)]();if(!_0x20c771[_0x4d78cd(0x166)]||typeof _0x20c771[_0x4d78cd(0x166)]!==_0x4d78cd(0x175))throw new Error(_0x4d78cd(0x161));return _0x20c771;}export function writeGuidesToProject(_0x24cfeb,_0x397b5c,_0x52b1da='.lovrabet/skill/guides',_0x269a7b){const _0x96b87b=a188_0x2bb8fc,_0x4cff5a=join(_0x397b5c,_0x52b1da);mkdirSync(_0x4cff5a,{'recursive':!![]});for(const [_0x10a281,_0x1df143]of Object['entries'](_0x24cfeb[_0x96b87b(0x166)])){let _0x300cdc=_0x1df143[_0x96b87b(0x163)];_0x1df143[_0x96b87b(0x169)]&&(_0x300cdc=appendUpdateTime(_0x300cdc,_0x1df143['lastUpdated'])),writeFileSync(join(_0x4cff5a,_0x10a281+_0x96b87b(0x16f)),_0x300cdc,_0x96b87b(0x15d));}}function a188_0x3452(){const _0x37cbd3=['statusText','map','CDN\x20请求失败:\x20','.md','47758653FolcAV','8846656LpzIxl','92574uQrteo','keys','20WJcLux','object','669637oVLteo','push','status','.lovrabet','application/json','8377467pZoUCN','replace','title','2367IFRvlW','utf-8','2570suXSnj','CDN\x20数据中缺少\x20skillTemplate','json','CDN\x20返回数据格式错误','cache','content','2883732jNOLVw','extendContent','guides','length','skillTemplate','lastUpdated','trimEnd','entries'];a188_0x3452=function(){return _0x37cbd3;};return a188_0x3452();}export function appendUpdateTime(_0xe400b1,_0x4abc77){const _0x4bea25=a188_0x2bb8fc;return _0xe400b1=_0xe400b1[_0x4bea25(0x17c)](/\n*>更新时间:.*$/m,''),_0xe400b1['trimEnd']()+('\x0a\x0a>更新时间:'+_0x4abc77);}export function getSkillTemplate(_0x389248){const _0x58eecc=a188_0x2bb8fc;return _0x389248[_0x58eecc(0x168)]?.[_0x58eecc(0x163)]||'';}export function appendExtendContents(_0x11285d,_0x327343,_0x1c53c2){const _0x569fd9=a188_0x2bb8fc,_0x1736d3=[];for(const [,_0x30c442]of Object['entries'](_0x327343[_0x569fd9(0x166)])){_0x30c442['extendContent']&&_0x1736d3[_0x569fd9(0x177)](_0x30c442[_0x569fd9(0x165)]['trimEnd']());}if(_0x1736d3[_0x569fd9(0x167)]===0x0)return _0x11285d;return _0x11285d[_0x569fd9(0x16a)]()+'\x0a\x0a'+_0x1736d3['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2af199,_0x3b4051,_0x49be59){const _0x17e831=a188_0x2bb8fc,_0x27a99f=getSkillTemplate(_0x2af199);if(!_0x27a99f)throw new Error(_0x17e831(0x15f));const _0x279c31=dirname(_0x3b4051);mkdirSync(_0x279c31,{'recursive':!![]});let _0x21b0a7=_0x27a99f[_0x17e831(0x17c)](/\{\{IDE_NAME\}\}/g,_0x49be59);_0x21b0a7=appendExtendContents(_0x21b0a7,_0x2af199),_0x2af199[_0x17e831(0x168)][_0x17e831(0x169)]&&(_0x21b0a7=appendUpdateTime(_0x21b0a7,_0x2af199['skillTemplate'][_0x17e831(0x169)])),writeFileSync(_0x3b4051,_0x21b0a7,_0x17e831(0x15d));}export async function installGuides(_0x263491){const _0x39cdd5=a188_0x2bb8fc,_0x5b7fc2=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5b7fc2,_0x263491),Object[_0x39cdd5(0x173)](_0x5b7fc2[_0x39cdd5(0x166)])['length'];}export function getGuidesSummary(_0x5b1c66){const _0x438a88=a188_0x2bb8fc;return Object[_0x438a88(0x16b)](_0x5b1c66[_0x438a88(0x166)])[_0x438a88(0x16d)](([_0x49a5f9,_0x50545d])=>({'key':_0x49a5f9,'title':_0x50545d[_0x438a88(0x17d)],'path':_0x50545d['path']}));}
1
+ const a188_0x1679a6=a188_0x31fe;(function(_0x3f2769,_0xeb0a0){const _0x358567=a188_0x31fe,_0x1142e4=_0x3f2769();while(!![]){try{const _0x4c9274=parseInt(_0x358567(0x127))/0x1*(parseInt(_0x358567(0x125))/0x2)+parseInt(_0x358567(0x11a))/0x3+parseInt(_0x358567(0x117))/0x4*(parseInt(_0x358567(0x106))/0x5)+-parseInt(_0x358567(0x115))/0x6*(parseInt(_0x358567(0x11e))/0x7)+-parseInt(_0x358567(0x128))/0x8+parseInt(_0x358567(0x110))/0x9+-parseInt(_0x358567(0x129))/0xa*(-parseInt(_0x358567(0x120))/0xb);if(_0x4c9274===_0xeb0a0)break;else _0x1142e4['push'](_0x1142e4['shift']());}catch(_0x4ac3f5){_0x1142e4['push'](_0x1142e4['shift']());}}}(a188_0x1f62,0xa090d));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a188_0x31fe(_0x446101,_0xc6f57e){_0x446101=_0x446101-0x106;const _0x1f6258=a188_0x1f62();let _0x31fef9=_0x1f6258[_0x446101];return _0x31fef9;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x37021f=a188_0x31fe,_0x528a01=getTemplateBaseUrl();return _0x528a01+_0x37021f(0x108);}function a188_0x1f62(){const _0x102b08=['1109427RlKKWh','lastUpdated','extendContent','.lovrabet','path','144FxNuck','map','3797zUbOYK','3862080GSqUqe','60pZZchR','340DEjijp','replace','/skills/guides.json','join','CDN\x20数据中缺少\x20skillTemplate','status','push','cache','trimEnd','entries','6575670qJOZhY','content','skillTemplate','CDN\x20请求失败:\x20','guides','586290UWchNB','\x0a\x0a>更新时间:','35284aNoeRK','json','object','605244GkVXtG','length','title','CDN\x20返回数据格式错误','91GTVSlm','application/json'];a188_0x1f62=function(){return _0x102b08;};return a188_0x1f62();}const CACHE_DIR=join(homedir(),a188_0x1679a6(0x123),a188_0x1679a6(0x10d));export async function fetchGuidesFromCDN(){const _0x24ece8=a188_0x1679a6,_0xd7bdc5=getGuidesCdnUrl(),_0x2a4999=await fetch(_0xd7bdc5,{'headers':{'Accept':_0x24ece8(0x11f)}});if(!_0x2a4999['ok'])throw new Error(_0x24ece8(0x113)+_0x2a4999[_0x24ece8(0x10b)]+'\x20'+_0x2a4999['statusText']);const _0x1edb71=await _0x2a4999[_0x24ece8(0x118)]();if(!_0x1edb71[_0x24ece8(0x114)]||typeof _0x1edb71[_0x24ece8(0x114)]!==_0x24ece8(0x119))throw new Error(_0x24ece8(0x11d));return _0x1edb71;}export function writeGuidesToProject(_0x56af0b,_0x31e199,_0x1d3aeb='.lovrabet/skill/guides',_0x1e89a0){const _0xe34111=a188_0x1679a6,_0x479933=join(_0x31e199,_0x1d3aeb);mkdirSync(_0x479933,{'recursive':!![]});for(const [_0x2fdd9f,_0x117e6f]of Object[_0xe34111(0x10f)](_0x56af0b[_0xe34111(0x114)])){let _0x45e6fd=_0x117e6f['content'];_0x117e6f['lastUpdated']&&(_0x45e6fd=appendUpdateTime(_0x45e6fd,_0x117e6f['lastUpdated'])),writeFileSync(join(_0x479933,_0x2fdd9f+'.md'),_0x45e6fd,'utf-8');}}export function appendUpdateTime(_0x3ab815,_0x325368){const _0xb76568=a188_0x1679a6;return _0x3ab815=_0x3ab815[_0xb76568(0x107)](/\n*>更新时间:.*$/m,''),_0x3ab815[_0xb76568(0x10e)]()+(_0xb76568(0x116)+_0x325368);}export function getSkillTemplate(_0x4c3d28){const _0x5e99ab=a188_0x1679a6;return _0x4c3d28[_0x5e99ab(0x112)]?.[_0x5e99ab(0x111)]||'';}export function appendExtendContents(_0x523781,_0x1dc9db,_0x5f0960){const _0x3d7c11=a188_0x1679a6,_0x575487=[];for(const [,_0x5ef434]of Object[_0x3d7c11(0x10f)](_0x1dc9db[_0x3d7c11(0x114)])){_0x5ef434[_0x3d7c11(0x122)]&&_0x575487[_0x3d7c11(0x10c)](_0x5ef434[_0x3d7c11(0x122)][_0x3d7c11(0x10e)]());}if(_0x575487[_0x3d7c11(0x11b)]===0x0)return _0x523781;return _0x523781[_0x3d7c11(0x10e)]()+'\x0a\x0a'+_0x575487[_0x3d7c11(0x109)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x815584,_0x1e33e2,_0x30ab89){const _0x1cfe87=a188_0x1679a6,_0x339d5a=getSkillTemplate(_0x815584);if(!_0x339d5a)throw new Error(_0x1cfe87(0x10a));const _0x3129cd=dirname(_0x1e33e2);mkdirSync(_0x3129cd,{'recursive':!![]});let _0xe87c4b=_0x339d5a[_0x1cfe87(0x107)](/\{\{IDE_NAME\}\}/g,_0x30ab89);_0xe87c4b=appendExtendContents(_0xe87c4b,_0x815584),_0x815584[_0x1cfe87(0x112)]['lastUpdated']&&(_0xe87c4b=appendUpdateTime(_0xe87c4b,_0x815584[_0x1cfe87(0x112)][_0x1cfe87(0x121)])),writeFileSync(_0x1e33e2,_0xe87c4b,'utf-8');}export async function installGuides(_0x510ecb){const _0x317cd8=a188_0x1679a6,_0x148cdf=await fetchGuidesFromCDN();return writeGuidesToProject(_0x148cdf,_0x510ecb),Object['keys'](_0x148cdf[_0x317cd8(0x114)])[_0x317cd8(0x11b)];}export function getGuidesSummary(_0x1080aa){const _0x5d0830=a188_0x1679a6;return Object['entries'](_0x1080aa[_0x5d0830(0x114)])[_0x5d0830(0x126)](([_0x443d68,_0x372779])=>({'key':_0x443d68,'title':_0x372779[_0x5d0830(0x11c)],'path':_0x372779[_0x5d0830(0x124)]}));}
@@ -1 +1 @@
1
- function a189_0x40f7(_0x4b3078,_0x5ea90d){_0x4b3078=_0x4b3078-0x178;const _0x445060=a189_0x4450();let _0x40f7b1=_0x445060[_0x4b3078];return _0x40f7b1;}(function(_0x235d34,_0x39d752){const _0x4ba5e0=a189_0x40f7,_0x31e9bb=_0x235d34();while(!![]){try{const _0x2548ca=-parseInt(_0x4ba5e0(0x18c))/0x1*(parseInt(_0x4ba5e0(0x17b))/0x2)+parseInt(_0x4ba5e0(0x184))/0x3+-parseInt(_0x4ba5e0(0x182))/0x4*(-parseInt(_0x4ba5e0(0x18e))/0x5)+parseInt(_0x4ba5e0(0x181))/0x6+parseInt(_0x4ba5e0(0x188))/0x7+-parseInt(_0x4ba5e0(0x180))/0x8+-parseInt(_0x4ba5e0(0x193))/0x9;if(_0x2548ca===_0x39d752)break;else _0x31e9bb['push'](_0x31e9bb['shift']());}catch(_0xbf4509){_0x31e9bb['push'](_0x31e9bb['shift']());}}}(a189_0x4450,0xce33e));export async function httpRequest(_0x5a3981,_0x30896f={}){const _0x246d13=a189_0x40f7,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x30896f;let _0x436b08=null;for(let _0x4fa70b=0x0;_0x4fa70b<=retries;_0x4fa70b++){try{const _0x1faaa7=new AbortController(),_0x5b1877=setTimeout(()=>_0x1faaa7[_0x246d13(0x194)](),timeout),_0xb7ed94=await fetch(_0x5a3981,{'headers':headers,'signal':_0x1faaa7[_0x246d13(0x18d)]});clearTimeout(_0x5b1877);let _0x180ce0;const _0x11462a=_0xb7ed94[_0x246d13(0x17f)]['get'](_0x246d13(0x179));return _0x11462a?.[_0x246d13(0x18f)]('application/json')?_0x180ce0=await _0xb7ed94[_0x246d13(0x183)]():_0x180ce0=await _0xb7ed94[_0x246d13(0x187)](),{'ok':_0xb7ed94['ok'],'status':_0xb7ed94[_0x246d13(0x192)],'statusText':_0xb7ed94[_0x246d13(0x17c)],'data':_0x180ce0,'headers':_0xb7ed94[_0x246d13(0x17f)],'url':_0xb7ed94['url'],'text':()=>_0xb7ed94[_0x246d13(0x187)]()};}catch(_0x146d12){_0x436b08=_0x146d12 instanceof Error?_0x146d12:new Error(String(_0x146d12));if(_0x4fa70b===retries)break;if(shouldRetry(_0x146d12)){console[_0x246d13(0x17a)](_0x246d13(0x18a)+retryDelay+_0x246d13(0x189)+(_0x4fa70b+0x1)+_0x246d13(0x178)),await sleep(retryDelay);continue;}else break;}}throw _0x436b08||new Error(_0x246d13(0x190));}function shouldRetry(_0x4ef36a){const _0x3d7f78=a189_0x40f7;if(_0x4ef36a instanceof Error){if(_0x4ef36a[_0x3d7f78(0x185)]===_0x3d7f78(0x18b))return![];if(_0x4ef36a[_0x3d7f78(0x185)]===_0x3d7f78(0x17d)&&_0x4ef36a[_0x3d7f78(0x17e)][_0x3d7f78(0x18f)](_0x3d7f78(0x186)))return!![];if(_0x4ef36a['message'][_0x3d7f78(0x18f)](_0x3d7f78(0x191)))return!![];if(_0x4ef36a[_0x3d7f78(0x17e)][_0x3d7f78(0x18f)]('ENOTFOUND'))return![];}return![];}function sleep(_0x378ff4){return new Promise(_0x21c601=>setTimeout(_0x21c601,_0x378ff4));}function a189_0x4450(){const _0x3a2554=['4226028spgoPF','3188OoACpF','json','5017014oRZwEe','name','fetch','text','11736809dSPiXW','ms\x20后进行第\x20','*\x20请求失败,','AbortError','331dXBJxK','signal','1335HoRbbY','includes','Request\x20failed','ECONNRESET','status','10094994gThaTm','abort','\x20次重试...','content-type','log','5048lCHKDA','statusText','TypeError','message','headers','11715568rXbufv'];a189_0x4450=function(){return _0x3a2554;};return a189_0x4450();}export function validateUrl(_0x93e096){try{return new URL(_0x93e096),!![];}catch{return![];}}
1
+ (function(_0x411c76,_0xb49fb0){const _0x300ebc=a189_0x2b33,_0x4b3e43=_0x411c76();while(!![]){try{const _0x206b4a=parseInt(_0x300ebc(0x97))/0x1*(parseInt(_0x300ebc(0x96))/0x2)+parseInt(_0x300ebc(0xb0))/0x3*(-parseInt(_0x300ebc(0x9b))/0x4)+parseInt(_0x300ebc(0xa4))/0x5+-parseInt(_0x300ebc(0xa2))/0x6+parseInt(_0x300ebc(0xae))/0x7+parseInt(_0x300ebc(0xab))/0x8*(parseInt(_0x300ebc(0xa5))/0x9)+parseInt(_0x300ebc(0xad))/0xa*(-parseInt(_0x300ebc(0x9e))/0xb);if(_0x206b4a===_0xb49fb0)break;else _0x4b3e43['push'](_0x4b3e43['shift']());}catch(_0x154361){_0x4b3e43['push'](_0x4b3e43['shift']());}}}(a189_0x45ae,0x2e3b3));export async function httpRequest(_0x3f47f,_0x2020a0={}){const _0x458ca5=a189_0x2b33,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2020a0;let _0x3f80e7=null;for(let _0x332e0a=0x0;_0x332e0a<=retries;_0x332e0a++){try{const _0x16a614=new AbortController(),_0x4271ea=setTimeout(()=>_0x16a614[_0x458ca5(0xaf)](),timeout),_0x5a5cd5=await fetch(_0x3f47f,{'headers':headers,'signal':_0x16a614[_0x458ca5(0x95)]});clearTimeout(_0x4271ea);let _0x48c6fd;const _0x1e93a9=_0x5a5cd5[_0x458ca5(0x9d)]['get']('content-type');return _0x1e93a9?.['includes'](_0x458ca5(0xa0))?_0x48c6fd=await _0x5a5cd5[_0x458ca5(0x98)]():_0x48c6fd=await _0x5a5cd5[_0x458ca5(0xac)](),{'ok':_0x5a5cd5['ok'],'status':_0x5a5cd5[_0x458ca5(0x9a)],'statusText':_0x5a5cd5['statusText'],'data':_0x48c6fd,'headers':_0x5a5cd5['headers'],'url':_0x5a5cd5[_0x458ca5(0x94)],'text':()=>_0x5a5cd5[_0x458ca5(0xac)]()};}catch(_0x42d87c){_0x3f80e7=_0x42d87c instanceof Error?_0x42d87c:new Error(String(_0x42d87c));if(_0x332e0a===retries)break;if(shouldRetry(_0x42d87c)){console[_0x458ca5(0xaa)](_0x458ca5(0x99)+retryDelay+_0x458ca5(0xa8)+(_0x332e0a+0x1)+_0x458ca5(0xa3)),await sleep(retryDelay);continue;}else break;}}throw _0x3f80e7||new Error(_0x458ca5(0xa7));}function shouldRetry(_0x1ada8a){const _0x4d74c2=a189_0x2b33;if(_0x1ada8a instanceof Error){if(_0x1ada8a[_0x4d74c2(0xa9)]==='AbortError')return![];if(_0x1ada8a['name']==='TypeError'&&_0x1ada8a[_0x4d74c2(0xa6)][_0x4d74c2(0x9c)](_0x4d74c2(0x9f)))return!![];if(_0x1ada8a['message']['includes'](_0x4d74c2(0xa1)))return!![];if(_0x1ada8a['message'][_0x4d74c2(0x9c)]('ENOTFOUND'))return![];}return![];}function a189_0x45ae(){const _0x4fc000=['452iyqJcx','includes','headers','583XbiEWM','fetch','application/json','ECONNRESET','271692NWPnbb','\x20次重试...','885680jSyYiD','54TGCeRk','message','Request\x20failed','ms\x20后进行第\x20','name','log','118536ZsSPLQ','text','13550bUoOXx','625205Arrhtm','abort','3069RztzEH','url','signal','4ynVSwc','33353rCCeCX','json','*\x20请求失败,','status'];a189_0x45ae=function(){return _0x4fc000;};return a189_0x45ae();}function a189_0x2b33(_0xba7422,_0x94ec44){_0xba7422=_0xba7422-0x94;const _0x45ae64=a189_0x45ae();let _0x2b3333=_0x45ae64[_0xba7422];return _0x2b3333;}function sleep(_0x63f1b4){return new Promise(_0x350381=>setTimeout(_0x350381,_0x63f1b4));}export function validateUrl(_0x20853e){try{return new URL(_0x20853e),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a190_0x35d1(){const _0x2ce716=['2531142OmWFDg','isRaw','21275VoDGIP','1230EjEwoC','setRawMode','498316EofPjT','14xFmvaO','stdout','20089751zEwHyB','true','996hickFb','isTTY','20zwGdSH','1583808dKWLKD','8532792eAkwHW','stdin','1251DxsKxO'];a190_0x35d1=function(){return _0x2ce716;};return a190_0x35d1();}(function(_0x4db560,_0xb81f39){const _0x26e4e9=a190_0x4f68,_0x17e151=_0x4db560();while(!![]){try{const _0x2ecb46=-parseInt(_0x26e4e9(0xd6))/0x1+-parseInt(_0x26e4e9(0xd4))/0x2*(-parseInt(_0x26e4e9(0xd0))/0x3)+-parseInt(_0x26e4e9(0xdb))/0x4*(parseInt(_0x26e4e9(0xd3))/0x5)+parseInt(_0x26e4e9(0xdf))/0x6+parseInt(_0x26e4e9(0xd7))/0x7*(-parseInt(_0x26e4e9(0xde))/0x8)+-parseInt(_0x26e4e9(0xd1))/0x9*(parseInt(_0x26e4e9(0xdd))/0xa)+parseInt(_0x26e4e9(0xd9))/0xb;if(_0x2ecb46===_0xb81f39)break;else _0x17e151['push'](_0x17e151['shift']());}catch(_0x2432c0){_0x17e151['push'](_0x17e151['shift']());}}}(a190_0x35d1,0xf1611));function env(_0x5e23c3){return process.env[`RABETBASE_${_0x5e23c3}`]||process.env[`LOVRABET_${_0x5e23c3}`]||undefined;}export function isNonInteractive(_0x3dfb90){const _0xe72130=a190_0x4f68;return!!(_0x3dfb90['nonInteractive']||_0x3dfb90['ci']||env('CI')===_0xe72130(0xda)||process.env.CI==='true'||!process[_0xe72130(0xd8)][_0xe72130(0xdc)]||!isStdinRawModeSupported());}function a190_0x4f68(_0x2d2a29,_0x2e01f1){_0x2d2a29=_0x2d2a29-0xd0;const _0x35d1c8=a190_0x35d1();let _0x4f6803=_0x35d1c8[_0x2d2a29];return _0x4f6803;}function isStdinRawModeSupported(){const _0x421fc9=a190_0x4f68;if(!process[_0x421fc9(0xe0)][_0x421fc9(0xdc)])return![];try{const _0x47a32b=process[_0x421fc9(0xe0)][_0x421fc9(0xd2)];return process['stdin'][_0x421fc9(0xd5)](!![]),process[_0x421fc9(0xe0)][_0x421fc9(0xd5)](_0x47a32b??![]),!![];}catch{return![];}}
1
+ (function(_0x1dab76,_0x57049e){const _0x3f423d=a190_0x16e7,_0x21649a=_0x1dab76();while(!![]){try{const _0x407b36=parseInt(_0x3f423d(0x1ad))/0x1+-parseInt(_0x3f423d(0x1b0))/0x2*(parseInt(_0x3f423d(0x1a6))/0x3)+parseInt(_0x3f423d(0x1b1))/0x4*(-parseInt(_0x3f423d(0x1aa))/0x5)+parseInt(_0x3f423d(0x1a9))/0x6+parseInt(_0x3f423d(0x1a5))/0x7+parseInt(_0x3f423d(0x1ac))/0x8+parseInt(_0x3f423d(0x1ab))/0x9;if(_0x407b36===_0x57049e)break;else _0x21649a['push'](_0x21649a['shift']());}catch(_0x40f113){_0x21649a['push'](_0x21649a['shift']());}}}(a190_0x2beb,0x8dd08));function a190_0x16e7(_0x7a5500,_0xbb78af){_0x7a5500=_0x7a5500-0x1a2;const _0x2bebe5=a190_0x2beb();let _0x16e7fb=_0x2bebe5[_0x7a5500];return _0x16e7fb;}function a190_0x2beb(){const _0x187c07=['stdout','setRawMode','isTTY','2779511VTrUse','6pfHNSg','nonInteractive','true','2348148ZJssjE','515PzwdEY','3754107VvttoV','40992gxfscw','557253ZtJEtK','isRaw','stdin','1098788oPpATh','3428ZFRpiq'];a190_0x2beb=function(){return _0x187c07;};return a190_0x2beb();}function env(_0xa6e149){return process.env[`RABETBASE_${_0xa6e149}`]||process.env[`LOVRABET_${_0xa6e149}`]||undefined;}export function isNonInteractive(_0x31c092){const _0x214e4b=a190_0x16e7;return!!(_0x31c092[_0x214e4b(0x1a7)]||_0x31c092['ci']||env('CI')===_0x214e4b(0x1a8)||process.env.CI===_0x214e4b(0x1a8)||!process[_0x214e4b(0x1a2)][_0x214e4b(0x1a4)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4f8ceb=a190_0x16e7;if(!process[_0x4f8ceb(0x1af)][_0x4f8ceb(0x1a4)])return![];try{const _0x166fc2=process[_0x4f8ceb(0x1af)][_0x4f8ceb(0x1ae)];return process[_0x4f8ceb(0x1af)][_0x4f8ceb(0x1a3)](!![]),process[_0x4f8ceb(0x1af)][_0x4f8ceb(0x1a3)](_0x166fc2??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a191_0xd0d957=a191_0x3c95;(function(_0x41178c,_0x1ff42e){const _0x489d9e=a191_0x3c95,_0xe98964=_0x41178c();while(!![]){try{const _0x5d35c1=-parseInt(_0x489d9e(0x105))/0x1*(-parseInt(_0x489d9e(0xf0))/0x2)+-parseInt(_0x489d9e(0xf8))/0x3+-parseInt(_0x489d9e(0x106))/0x4+-parseInt(_0x489d9e(0xdb))/0x5+parseInt(_0x489d9e(0x104))/0x6*(-parseInt(_0x489d9e(0xe4))/0x7)+-parseInt(_0x489d9e(0x103))/0x8+-parseInt(_0x489d9e(0xd7))/0x9*(-parseInt(_0x489d9e(0xe9))/0xa);if(_0x5d35c1===_0x1ff42e)break;else _0xe98964['push'](_0xe98964['shift']());}catch(_0x414921){_0xe98964['push'](_0xe98964['shift']());}}}(a191_0x2927,0xf193a));import a191_0x337680 from'winston';import a191_0x4d7b0b from'node:fs';function a191_0x2927(){const _0x44c4a5=['rawCommand','getWinstonInstance','now','timestamp','info','format','transports','join','yellow','1177760Fkhukf','6oiCmhl','303eiduaD','2266756lBXbCI','logTask','stringify','duration','green','command','60759bDGwiQ','blue','mkdirSync','success','6218590pUuzPN','.lovrabet.log','existsSync','level','message','writeFileSync','currentRawCommand','error','logFilePath','5506935rTbPbF','warn','winstonLogger','map','File','5330VpisDU','完成:\x20','utf8','errors','setLogPath','split','trim','4044EdAzHU','readLogs','readFileSync','parse','printf','red','clear','unknown','1431357rRgRDC','log'];a191_0x2927=function(){return _0x44c4a5;};return a191_0x2927();}import a191_0x4c56c0 from'node:path';function a191_0x3c95(_0x5da5f1,_0xec4ad){_0x5da5f1=_0x5da5f1-0xd4;const _0x2927ac=a191_0x2927();let _0x3c9570=_0x2927ac[_0x5da5f1];return _0x3c9570;}class Logger{[a191_0xd0d957(0xe6)];[a191_0xd0d957(0xe3)];[a191_0xd0d957(0xe1)]='';constructor(){const _0x56f56e=a191_0xd0d957;this[_0x56f56e(0xe3)]='';}['setRawCommand'](_0x2aaab8){const _0x1f2389=a191_0xd0d957;this[_0x1f2389(0xe1)]=_0x2aaab8;}['initWinstonLogger'](){const _0x1aa17d=a191_0xd0d957,_0x2da149=a191_0x4c56c0['dirname'](this[_0x1aa17d(0xe3)]);!a191_0x4d7b0b[_0x1aa17d(0xdd)](_0x2da149)&&a191_0x4d7b0b[_0x1aa17d(0xd9)](_0x2da149,{'recursive':!![]});const _0x107673=a191_0x337680[_0x1aa17d(0xff)]['combine'](a191_0x337680[_0x1aa17d(0xff)][_0x1aa17d(0xfd)](),a191_0x337680[_0x1aa17d(0xff)][_0x1aa17d(0xec)]({'stack':!![]}),a191_0x337680['format'][_0x1aa17d(0xf4)](_0x5de9e1=>{const _0x571bb6=_0x1aa17d,_0x3a0b42={'timestamp':_0x5de9e1['timestamp']||new Date()['toISOString'](),'level':_0x5de9e1[_0x571bb6(0xde)]||_0x571bb6(0xfe),'command':_0x5de9e1[_0x571bb6(0xd6)]||_0x571bb6(0xf7),'rawCommand':_0x5de9e1[_0x571bb6(0xfa)]||this['currentRawCommand']||undefined,'message':_0x5de9e1['message']||'','duration':_0x5de9e1[_0x571bb6(0xd4)]||undefined,'details':_0x5de9e1['details']||undefined};return JSON[_0x571bb6(0x108)](_0x3a0b42);}));this[_0x1aa17d(0xe6)]=a191_0x337680['createLogger']({'level':_0x1aa17d(0xfe),'format':_0x107673,'transports':[new a191_0x337680[(_0x1aa17d(0x100))][(_0x1aa17d(0xe8))]({'filename':this[_0x1aa17d(0xe3)],'level':'info'})],'silent':![]}),a191_0x337680['addColors']({'success':_0x1aa17d(0xd5),'error':_0x1aa17d(0xf5),'warn':_0x1aa17d(0x102),'info':_0x1aa17d(0xd8)});}[a191_0xd0d957(0xed)](_0x3cb1dd){const _0x2879c7=a191_0xd0d957;this[_0x2879c7(0xe3)]=a191_0x4c56c0[_0x2879c7(0x101)](_0x3cb1dd,_0x2879c7(0xdc)),this['winstonLogger']&&this[_0x2879c7(0xe6)][_0x2879c7(0xf6)](),this['initWinstonLogger']();}[a191_0xd0d957(0xfe)](_0x17bb06,_0x2c5e68,_0x345cfe){const _0x20e337=a191_0xd0d957;if(!this['logFilePath']||!this[_0x20e337(0xe6)])return;this[_0x20e337(0xe6)][_0x20e337(0xfe)](_0x2c5e68,{'command':_0x17bb06,'details':_0x345cfe});}[a191_0xd0d957(0xda)](_0x196a77,_0x55e656,_0x56be40,_0x394397){const _0x2f5409=a191_0xd0d957;if(!this[_0x2f5409(0xe3)]||!this[_0x2f5409(0xe6)])return;this[_0x2f5409(0xe6)][_0x2f5409(0xf9)]('info',_0x55e656,{'level':'success','command':_0x196a77,'duration':_0x56be40,'details':_0x394397});}['error'](_0x3de1a8,_0x2aadf7,_0xfd8777){const _0x5bc184=a191_0xd0d957;if(!this[_0x5bc184(0xe3)]||!this[_0x5bc184(0xe6)])return;this[_0x5bc184(0xe6)][_0x5bc184(0xe2)](_0x2aadf7,{'command':_0x3de1a8,'details':_0xfd8777});}[a191_0xd0d957(0xe5)](_0x4a2c03,_0xbf2d94,_0x5a32fe){const _0x4cdb50=a191_0xd0d957;if(!this[_0x4cdb50(0xe3)]||!this[_0x4cdb50(0xe6)])return;this['winstonLogger'][_0x4cdb50(0xe5)](_0xbf2d94,{'command':_0x4a2c03,'details':_0x5a32fe});}async[a191_0xd0d957(0x107)](_0xcb570c,_0x36f5ee,_0x14bb0b){const _0x26015f=a191_0xd0d957,_0x26f5e3=Date[_0x26015f(0xfc)]();this[_0x26015f(0xfe)](_0xcb570c,'开始执行:\x20'+_0x36f5ee);try{const _0x1cccc5=await _0x14bb0b(),_0x5179ec=Date[_0x26015f(0xfc)]()-_0x26f5e3;return this['success'](_0xcb570c,_0x26015f(0xea)+_0x36f5ee,_0x5179ec),_0x1cccc5;}catch(_0x15fc73){const _0x5437fe=Date[_0x26015f(0xfc)]()-_0x26f5e3;this[_0x26015f(0xe2)](_0xcb570c,'失败:\x20'+_0x36f5ee,{'error':_0x15fc73 instanceof Error?_0x15fc73[_0x26015f(0xdf)]:String(_0x15fc73),'duration':_0x5437fe});throw _0x15fc73;}}[a191_0xd0d957(0xf1)](){const _0x4bc61f=a191_0xd0d957;try{if(!a191_0x4d7b0b[_0x4bc61f(0xdd)](this['logFilePath']))return[];const _0x5849e1=a191_0x4d7b0b[_0x4bc61f(0xf2)](this['logFilePath'],'utf8');return _0x5849e1[_0x4bc61f(0xee)]('\x0a')['filter'](_0x1aef3d=>_0x1aef3d[_0x4bc61f(0xef)]())[_0x4bc61f(0xe7)](_0x2332e9=>JSON[_0x4bc61f(0xf3)](_0x2332e9));}catch(_0xd66ce0){return console['warn']('Failed\x20to\x20read\x20logs:',_0xd66ce0),[];}}['clearLogs'](){const _0x365acc=a191_0xd0d957;try{a191_0x4d7b0b[_0x365acc(0xdd)](this[_0x365acc(0xe3)])&&a191_0x4d7b0b[_0x365acc(0xe0)](this[_0x365acc(0xe3)],'',_0x365acc(0xeb));}catch(_0x5e910b){console[_0x365acc(0xe5)]('Failed\x20to\x20clear\x20logs:',_0x5e910b);}}[a191_0xd0d957(0xfb)](){const _0x281f3d=a191_0xd0d957;return this[_0x281f3d(0xe6)];}}export const logger=new Logger();
1
+ const a191_0x2a7a1f=a191_0x2cab;function a191_0x513c(){const _0x134909=['269922UuNUJt','map','existsSync','info','220013nPLNAd','combine','message','filter','130888SsCgnZ','split','level','File','yellow','toISOString','.lovrabet.log','success','logTask','684288OVYASS','timestamp','unknown','6778424teSuyb','5UXzQyj','开始执行:\x20','error','details','addColors','winstonLogger','setRawCommand','2952915FacbZj','warn','readFileSync','join','trim','now','format','utf8','logFilePath','writeFileSync','clear','currentRawCommand','readLogs','command','green','initWinstonLogger','red','dirname','log','setLogPath','stringify','mkdirSync','1754892SNPbtl'];a191_0x513c=function(){return _0x134909;};return a191_0x513c();}(function(_0x12ddce,_0x15a6c4){const _0x4ce4d8=a191_0x2cab,_0x2dcf50=_0x12ddce();while(!![]){try{const _0x3901c0=parseInt(_0x4ce4d8(0x96))/0x1+-parseInt(_0x4ce4d8(0x9a))/0x2+parseInt(_0x4ce4d8(0xa3))/0x3+parseInt(_0x4ce4d8(0x91))/0x4*(-parseInt(_0x4ce4d8(0x74))/0x5)+-parseInt(_0x4ce4d8(0x92))/0x6+-parseInt(_0x4ce4d8(0x7b))/0x7+parseInt(_0x4ce4d8(0x73))/0x8;if(_0x3901c0===_0x15a6c4)break;else _0x2dcf50['push'](_0x2dcf50['shift']());}catch(_0x58806e){_0x2dcf50['push'](_0x2dcf50['shift']());}}}(a191_0x513c,0x4f33d));import a191_0x108ee5 from'winston';import a191_0xe96cd7 from'node:fs';import a191_0x5142f7 from'node:path';function a191_0x2cab(_0x47220f,_0xa5e049){_0x47220f=_0x47220f-0x72;const _0x513ccb=a191_0x513c();let _0x2cab13=_0x513ccb[_0x47220f];return _0x2cab13;}class Logger{['winstonLogger'];[a191_0x2a7a1f(0x83)];[a191_0x2a7a1f(0x86)]='';constructor(){const _0x39bc6c=a191_0x2a7a1f;this[_0x39bc6c(0x83)]='';}[a191_0x2a7a1f(0x7a)](_0x1130b6){this['currentRawCommand']=_0x1130b6;}[a191_0x2a7a1f(0x8a)](){const _0x22761b=a191_0x2a7a1f,_0x222cf6=a191_0x5142f7[_0x22761b(0x8c)](this[_0x22761b(0x83)]);!a191_0xe96cd7[_0x22761b(0x94)](_0x222cf6)&&a191_0xe96cd7[_0x22761b(0x90)](_0x222cf6,{'recursive':!![]});const _0x1e1e57=a191_0x108ee5[_0x22761b(0x81)][_0x22761b(0x97)](a191_0x108ee5[_0x22761b(0x81)][_0x22761b(0xa4)](),a191_0x108ee5[_0x22761b(0x81)]['errors']({'stack':!![]}),a191_0x108ee5['format']['printf'](_0x59414b=>{const _0x5e26ab=_0x22761b,_0x1f010a={'timestamp':_0x59414b[_0x5e26ab(0xa4)]||new Date()[_0x5e26ab(0x9f)](),'level':_0x59414b[_0x5e26ab(0x9c)]||_0x5e26ab(0x95),'command':_0x59414b[_0x5e26ab(0x88)]||_0x5e26ab(0x72),'rawCommand':_0x59414b['rawCommand']||this['currentRawCommand']||undefined,'message':_0x59414b[_0x5e26ab(0x98)]||'','duration':_0x59414b['duration']||undefined,'details':_0x59414b[_0x5e26ab(0x77)]||undefined};return JSON[_0x5e26ab(0x8f)](_0x1f010a);}));this['winstonLogger']=a191_0x108ee5['createLogger']({'level':_0x22761b(0x95),'format':_0x1e1e57,'transports':[new a191_0x108ee5['transports'][(_0x22761b(0x9d))]({'filename':this[_0x22761b(0x83)],'level':'info'})],'silent':![]}),a191_0x108ee5[_0x22761b(0x78)]({'success':_0x22761b(0x89),'error':_0x22761b(0x8b),'warn':_0x22761b(0x9e),'info':'blue'});}[a191_0x2a7a1f(0x8e)](_0xb988fd){const _0x12fa61=a191_0x2a7a1f;this[_0x12fa61(0x83)]=a191_0x5142f7[_0x12fa61(0x7e)](_0xb988fd,_0x12fa61(0xa0)),this[_0x12fa61(0x79)]&&this[_0x12fa61(0x79)][_0x12fa61(0x85)](),this[_0x12fa61(0x8a)]();}[a191_0x2a7a1f(0x95)](_0x474c14,_0x68c6e3,_0x57a352){const _0x2e270d=a191_0x2a7a1f;if(!this['logFilePath']||!this[_0x2e270d(0x79)])return;this[_0x2e270d(0x79)][_0x2e270d(0x95)](_0x68c6e3,{'command':_0x474c14,'details':_0x57a352});}[a191_0x2a7a1f(0xa1)](_0x4b518e,_0x3a4701,_0x1d1a63,_0x6b4d2c){const _0x368e5e=a191_0x2a7a1f;if(!this[_0x368e5e(0x83)]||!this[_0x368e5e(0x79)])return;this['winstonLogger'][_0x368e5e(0x8d)](_0x368e5e(0x95),_0x3a4701,{'level':'success','command':_0x4b518e,'duration':_0x1d1a63,'details':_0x6b4d2c});}[a191_0x2a7a1f(0x76)](_0xa5dd6a,_0x38482e,_0x27abb9){const _0x184097=a191_0x2a7a1f;if(!this[_0x184097(0x83)]||!this[_0x184097(0x79)])return;this['winstonLogger']['error'](_0x38482e,{'command':_0xa5dd6a,'details':_0x27abb9});}[a191_0x2a7a1f(0x7c)](_0x4f52b8,_0x2934d6,_0x4958a6){const _0x1cc01e=a191_0x2a7a1f;if(!this[_0x1cc01e(0x83)]||!this['winstonLogger'])return;this[_0x1cc01e(0x79)][_0x1cc01e(0x7c)](_0x2934d6,{'command':_0x4f52b8,'details':_0x4958a6});}async[a191_0x2a7a1f(0xa2)](_0x307f8a,_0x5b46d8,_0xd7225f){const _0x1302ab=a191_0x2a7a1f,_0x52d508=Date[_0x1302ab(0x80)]();this[_0x1302ab(0x95)](_0x307f8a,_0x1302ab(0x75)+_0x5b46d8);try{const _0x22af3c=await _0xd7225f(),_0x112265=Date['now']()-_0x52d508;return this[_0x1302ab(0xa1)](_0x307f8a,'完成:\x20'+_0x5b46d8,_0x112265),_0x22af3c;}catch(_0x5e6e8b){const _0x468151=Date[_0x1302ab(0x80)]()-_0x52d508;this[_0x1302ab(0x76)](_0x307f8a,'失败:\x20'+_0x5b46d8,{'error':_0x5e6e8b instanceof Error?_0x5e6e8b[_0x1302ab(0x98)]:String(_0x5e6e8b),'duration':_0x468151});throw _0x5e6e8b;}}[a191_0x2a7a1f(0x87)](){const _0x2bb0f6=a191_0x2a7a1f;try{if(!a191_0xe96cd7[_0x2bb0f6(0x94)](this['logFilePath']))return[];const _0x333256=a191_0xe96cd7[_0x2bb0f6(0x7d)](this[_0x2bb0f6(0x83)],_0x2bb0f6(0x82));return _0x333256[_0x2bb0f6(0x9b)]('\x0a')[_0x2bb0f6(0x99)](_0xf00270=>_0xf00270[_0x2bb0f6(0x7f)]())[_0x2bb0f6(0x93)](_0x721514=>JSON['parse'](_0x721514));}catch(_0x30e176){return console[_0x2bb0f6(0x7c)]('Failed\x20to\x20read\x20logs:',_0x30e176),[];}}['clearLogs'](){const _0x53608e=a191_0x2a7a1f;try{a191_0xe96cd7['existsSync'](this[_0x53608e(0x83)])&&a191_0xe96cd7[_0x53608e(0x84)](this[_0x53608e(0x83)],'',_0x53608e(0x82));}catch(_0x3ff315){console[_0x53608e(0x7c)]('Failed\x20to\x20clear\x20logs:',_0x3ff315);}}['getWinstonInstance'](){const _0x49d1f8=a191_0x2a7a1f;return this[_0x49d1f8(0x79)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x4a64a8,_0x8bb9c7){const _0x5ed308=a192_0xd025,_0x3f26b5=_0x4a64a8();while(!![]){try{const _0x1c2d46=-parseInt(_0x5ed308(0x1c7))/0x1+-parseInt(_0x5ed308(0x1ca))/0x2+-parseInt(_0x5ed308(0x1c5))/0x3*(parseInt(_0x5ed308(0x1cd))/0x4)+-parseInt(_0x5ed308(0x1ce))/0x5*(parseInt(_0x5ed308(0x1c8))/0x6)+-parseInt(_0x5ed308(0x1c6))/0x7+parseInt(_0x5ed308(0x1d0))/0x8+-parseInt(_0x5ed308(0x1cf))/0x9*(-parseInt(_0x5ed308(0x1c3))/0xa);if(_0x1c2d46===_0x8bb9c7)break;else _0x3f26b5['push'](_0x3f26b5['shift']());}catch(_0x596d35){_0x3f26b5['push'](_0x3f26b5['shift']());}}}(a192_0xb9e9,0xe6de4));import{CliErrors}from'../errors.js';function a192_0xd025(_0x4b103b,_0x4be32d){_0x4b103b=_0x4b103b-0x1c3;const _0xb9e9be=a192_0xb9e9();let _0xd025bb=_0xb9e9be[_0x4b103b];return _0xd025bb;}function a192_0xb9e9(){const _0x397d1f=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','105303CYZiTS','741706oTFLWD','1796203mvcnir','9499692gtcGif','validation','618244VakPRL','--params\x20must\x20be\x20a\x20JSON\x20object','parse','188kqdZIS','5ksHtYC','54811629foblfB','2398136CqewxJ','10pclKTd'];a192_0xb9e9=function(){return _0x397d1f;};return a192_0xb9e9();}export function parseJsonParams(_0x3a2d98){const _0x36db3a=a192_0xd025;if(!_0x3a2d98)return undefined;let _0x12190b;try{_0x12190b=JSON[_0x36db3a(0x1cc)](_0x3a2d98);}catch{throw CliErrors[_0x36db3a(0x1c9)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3a2d98);}if(!_0x12190b||typeof _0x12190b!=='object'||Array['isArray'](_0x12190b))throw CliErrors['validation'](_0x36db3a(0x1cb),_0x36db3a(0x1c4));return _0x12190b;}
1
+ function a192_0x5f41(_0x214efb,_0x353f7d){_0x214efb=_0x214efb-0x104;const _0xadd53f=a192_0xadd5();let _0x5f4198=_0xadd53f[_0x214efb];return _0x5f4198;}(function(_0x49aedc,_0x6a444){const _0x454f71=a192_0x5f41,_0x167152=_0x49aedc();while(!![]){try{const _0x686920=-parseInt(_0x454f71(0x10d))/0x1+parseInt(_0x454f71(0x10e))/0x2*(parseInt(_0x454f71(0x114))/0x3)+parseInt(_0x454f71(0x111))/0x4+parseInt(_0x454f71(0x10b))/0x5*(parseInt(_0x454f71(0x112))/0x6)+-parseInt(_0x454f71(0x113))/0x7*(parseInt(_0x454f71(0x10c))/0x8)+parseInt(_0x454f71(0x105))/0x9*(parseInt(_0x454f71(0x108))/0xa)+parseInt(_0x454f71(0x109))/0xb*(parseInt(_0x454f71(0x106))/0xc);if(_0x686920===_0x6a444)break;else _0x167152['push'](_0x167152['shift']());}catch(_0x40e909){_0x167152['push'](_0x167152['shift']());}}}(a192_0xadd5,0xb392f));function a192_0xadd5(){const _0x504cbb=['7coeNIa','2936256MMDbgY','isArray','object','--params\x20must\x20be\x20a\x20JSON\x20object','36OPGkwK','1299996mSpEcz','validation','19070bLHJTO','154XoJUYN','Invalid\x20JSON\x20for\x20--params:\x20','70MWJVSk','7989680VJvaNH','1419004btRYwa','2WjMPxm','parse','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','2505012JbLUFh','10266CKJWpZ'];a192_0xadd5=function(){return _0x504cbb;};return a192_0xadd5();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2dd09c){const _0x3ed12d=a192_0x5f41;if(!_0x2dd09c)return undefined;let _0x655c0c;try{_0x655c0c=JSON[_0x3ed12d(0x10f)](_0x2dd09c);}catch{throw CliErrors[_0x3ed12d(0x107)](_0x3ed12d(0x10a)+_0x2dd09c);}if(!_0x655c0c||typeof _0x655c0c!==_0x3ed12d(0x116)||Array[_0x3ed12d(0x115)](_0x655c0c))throw CliErrors[_0x3ed12d(0x107)](_0x3ed12d(0x104),_0x3ed12d(0x110));return _0x655c0c;}
@@ -1 +1 @@
1
- const a193_0x13a456=a193_0x3319;function a193_0x3319(_0x1e1a78,_0x245f90){_0x1e1a78=_0x1e1a78-0x17e;const _0x1ba2bc=a193_0x1ba2();let _0x3319aa=_0x1ba2bc[_0x1e1a78];return _0x3319aa;}(function(_0x21c44f,_0x1c6171){const _0x3671e0=a193_0x3319,_0x3de315=_0x21c44f();while(!![]){try{const _0x48bb80=-parseInt(_0x3671e0(0x17f))/0x1+parseInt(_0x3671e0(0x185))/0x2+-parseInt(_0x3671e0(0x188))/0x3+parseInt(_0x3671e0(0x17e))/0x4*(-parseInt(_0x3671e0(0x189))/0x5)+parseInt(_0x3671e0(0x182))/0x6+-parseInt(_0x3671e0(0x186))/0x7*(parseInt(_0x3671e0(0x18a))/0x8)+parseInt(_0x3671e0(0x184))/0x9*(parseInt(_0x3671e0(0x183))/0xa);if(_0x48bb80===_0x1c6171)break;else _0x3de315['push'](_0x3de315['shift']());}catch(_0x4ae79c){_0x3de315['push'](_0x3de315['shift']());}}}(a193_0x1ba2,0x8bf08));export const isWindows=process[a193_0x13a456(0x181)]===a193_0x13a456(0x187);export function resolveNpmBin(_0x41d029){const _0x3ac7d8=a193_0x13a456;return isWindows?_0x41d029+_0x3ac7d8(0x180):_0x41d029;}function a193_0x1ba2(){const _0x44aaa0=['4635702blVFqN','20Rjrfwi','4637943Xrjmbm','200322fuHjxI','1423051vjBvMu','win32','968400egmEYq','715TClpKf','24HYJrIy','3628cXNJvI','267860OFFFmx','.cmd','platform'];a193_0x1ba2=function(){return _0x44aaa0;};return a193_0x1ba2();}
1
+ function a193_0x35fc(){const _0x421e9e=['3931616RboqeW','9746940wIFfMX','825306JZFSVV','10NhqOny','9958310OQyxaD','502892PSNhXo','.cmd','9TSyGDy','2EpoQeA','2463780bdioya','166752qDCwah'];a193_0x35fc=function(){return _0x421e9e;};return a193_0x35fc();}function a193_0x17f7(_0x3ff86b,_0x4b8824){_0x3ff86b=_0x3ff86b-0x11d;const _0x35fc3c=a193_0x35fc();let _0x17f7d2=_0x35fc3c[_0x3ff86b];return _0x17f7d2;}(function(_0xb6fcd2,_0x5a81e1){const _0x4d829c=a193_0x17f7,_0x9d85e5=_0xb6fcd2();while(!![]){try{const _0x5f3a0e=-parseInt(_0x4d829c(0x124))/0x1*(parseInt(_0x4d829c(0x126))/0x2)+parseInt(_0x4d829c(0x125))/0x3+-parseInt(_0x4d829c(0x121))/0x4+parseInt(_0x4d829c(0x11f))/0x5*(parseInt(_0x4d829c(0x11e))/0x6)+parseInt(_0x4d829c(0x11d))/0x7+-parseInt(_0x4d829c(0x127))/0x8+parseInt(_0x4d829c(0x123))/0x9*(-parseInt(_0x4d829c(0x120))/0xa);if(_0x5f3a0e===_0x5a81e1)break;else _0x9d85e5['push'](_0x9d85e5['shift']());}catch(_0x48b4c6){_0x9d85e5['push'](_0x9d85e5['shift']());}}}(a193_0x35fc,0xad1a0));export const isWindows=process['platform']==='win32';export function resolveNpmBin(_0x223af9){const _0x57bb26=a193_0x17f7;return isWindows?_0x223af9+_0x57bb26(0x122):_0x223af9;}
@@ -1 +1 @@
1
- const a194_0xfa0d7b=a194_0x1e85;(function(_0x105aef,_0x12637d){const _0x2dc4a0=a194_0x1e85,_0x3af73e=_0x105aef();while(!![]){try{const _0x283941=parseInt(_0x2dc4a0(0x1c8))/0x1*(parseInt(_0x2dc4a0(0x1c4))/0x2)+parseInt(_0x2dc4a0(0x1cf))/0x3*(-parseInt(_0x2dc4a0(0x1cd))/0x4)+parseInt(_0x2dc4a0(0x1be))/0x5+parseInt(_0x2dc4a0(0x1c6))/0x6*(-parseInt(_0x2dc4a0(0x1c5))/0x7)+-parseInt(_0x2dc4a0(0x1c7))/0x8+-parseInt(_0x2dc4a0(0x1ca))/0x9+-parseInt(_0x2dc4a0(0x1d1))/0xa*(-parseInt(_0x2dc4a0(0x1cb))/0xb);if(_0x283941===_0x12637d)break;else _0x3af73e['push'](_0x3af73e['shift']());}catch(_0x2959b6){_0x3af73e['push'](_0x3af73e['shift']());}}}(a194_0x38b4,0xc0312));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a194_0x1e85(_0x585cf8,_0x565c9e){_0x585cf8=_0x585cf8-0x1be;const _0x38b4cc=a194_0x38b4();let _0x1e8504=_0x38b4cc[_0x585cf8];return _0x1e8504;}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a194_0x38b4(){const _0x551a9a=['6vrcqKs','3312352PghDSG','9355czrNKW','status','11306610kKnsTo','88gvOhNw','utf-8','8yfYXSL','lovrabet_rules.mdc','280671lUFSXI','application/json','2143520qvQdkN','agents.md','../../templates/rules/lovrabet_rules.mdc.tpl','CDN\x20返回数据格式错误','string','5694605zfnrve','content','/rules/rules.json','CDN\x20请求失败:\x20','.cursor/rules','lastUpdated','122TjDwJO','5458082rQghpX'];a194_0x38b4=function(){return _0x551a9a;};return a194_0x38b4();}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x30662e=a194_0x1e85,_0x41d075=getTemplateBaseUrl();return _0x41d075+_0x30662e(0x1c0);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0xfa0d7b(0x1d3));export async function fetchRulesFromCDN(){const _0x27ef37=a194_0xfa0d7b,_0x159a78=getRulesCdnUrl(),_0x2a19f2=await fetch(_0x159a78,{'headers':{'Accept':_0x27ef37(0x1d0)}});if(!_0x2a19f2['ok'])throw new Error(_0x27ef37(0x1c1)+_0x2a19f2[_0x27ef37(0x1c9)]+'\x20'+_0x2a19f2['statusText']);const _0x601fab=await _0x2a19f2['json']();if(!_0x601fab[_0x27ef37(0x1bf)]||typeof _0x601fab[_0x27ef37(0x1bf)]!==_0x27ef37(0x1d5))throw new Error(_0x27ef37(0x1d4));return _0x601fab;}export async function getRulesContent(){const _0x42277c=a194_0xfa0d7b;try{const _0x5879fb=await fetchRulesFromCDN();return _0x5879fb[_0x42277c(0x1bf)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1b0e2e){const _0x18ddf0=a194_0xfa0d7b,_0x266c7d=await fetchRulesFromCDN()['catch'](()=>null);let _0x38ddbe;_0x266c7d?(_0x38ddbe=_0x266c7d[_0x18ddf0(0x1bf)],_0x266c7d[_0x18ddf0(0x1c3)]&&(_0x38ddbe=appendUpdateTime(_0x38ddbe,_0x266c7d[_0x18ddf0(0x1c3)]))):_0x38ddbe=readLocalTemplate();const _0x432cf1=dirname(_0x1b0e2e);!existsSync(_0x432cf1)&&mkdirSync(_0x432cf1,{'recursive':!![]}),writeFileSync(_0x1b0e2e,_0x38ddbe,_0x18ddf0(0x1cc));}export async function copyRulesToCursor(_0x55180a){const _0x1402e7=a194_0xfa0d7b,_0x2295b1=join(_0x55180a,_0x1402e7(0x1c2)),_0xaf89d8=join(_0x2295b1,_0x1402e7(0x1ce));if(existsSync(_0xaf89d8))return![];return await writeRulesFile(_0xaf89d8),!![];}export async function copyRulesToAgentsMd(_0x69a2f6){const _0x2cf096=a194_0xfa0d7b,_0x15fcb4=join(_0x69a2f6,_0x2cf096(0x1d2));if(existsSync(_0x15fcb4))return![];return await writeRulesFile(_0x15fcb4),!![];}
1
+ const a194_0x13644b=a194_0x4b38;(function(_0x256d32,_0x512f61){const _0x390f24=a194_0x4b38,_0x406f66=_0x256d32();while(!![]){try{const _0x53cd23=parseInt(_0x390f24(0x15d))/0x1+-parseInt(_0x390f24(0x151))/0x2*(parseInt(_0x390f24(0x14a))/0x3)+-parseInt(_0x390f24(0x15e))/0x4+-parseInt(_0x390f24(0x161))/0x5*(-parseInt(_0x390f24(0x14e))/0x6)+parseInt(_0x390f24(0x152))/0x7*(parseInt(_0x390f24(0x15a))/0x8)+parseInt(_0x390f24(0x15c))/0x9*(-parseInt(_0x390f24(0x14f))/0xa)+parseInt(_0x390f24(0x14c))/0xb*(parseInt(_0x390f24(0x160))/0xc);if(_0x53cd23===_0x512f61)break;else _0x406f66['push'](_0x406f66['shift']());}catch(_0x437ed7){_0x406f66['push'](_0x406f66['shift']());}}}(a194_0x2a7e,0x42a95));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a194_0x2a7e(){const _0x38bbf7=['3239929OzZmBn','/rules/rules.json','utf-8','本地模板文件不存在:\x20','lastUpdated','status','statusText','agents.md','8hJSrId','content','2763fHqbQF','383443iwvKLB','1308148AeXvsB','CDN\x20返回数据格式错误','12lqJiaM','14815NXYuwY','../../templates/rules/lovrabet_rules.mdc.tpl','45ftjUXm','json','1187604IdQErO','.cursor/rules','1038TmgYZt','14330tGoajN','string','56912SJPOdG'];a194_0x2a7e=function(){return _0x38bbf7;};return a194_0x2a7e();}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x4e1d1b=a194_0x4b38,_0x3d7d86=getTemplateBaseUrl();return _0x3d7d86+_0x4e1d1b(0x153);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0x13644b(0x149));export async function fetchRulesFromCDN(){const _0x5aea4a=a194_0x13644b,_0x1d50ed=getRulesCdnUrl(),_0x56a1de=await fetch(_0x1d50ed,{'headers':{'Accept':'application/json'}});if(!_0x56a1de['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x56a1de[_0x5aea4a(0x157)]+'\x20'+_0x56a1de[_0x5aea4a(0x158)]);const _0x17b71e=await _0x56a1de[_0x5aea4a(0x14b)]();if(!_0x17b71e[_0x5aea4a(0x15b)]||typeof _0x17b71e[_0x5aea4a(0x15b)]!==_0x5aea4a(0x150))throw new Error(_0x5aea4a(0x15f));return _0x17b71e;}export async function getRulesContent(){try{const _0x192cf2=await fetchRulesFromCDN();return _0x192cf2['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x397ec9=a194_0x13644b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x397ec9(0x154));throw new Error(_0x397ec9(0x155)+LOCAL_TEMPLATE_PATH);}function a194_0x4b38(_0xb034c9,_0x40f3cc){_0xb034c9=_0xb034c9-0x149;const _0x2a7e8b=a194_0x2a7e();let _0x4b3866=_0x2a7e8b[_0xb034c9];return _0x4b3866;}export async function writeRulesFile(_0x4a62f3){const _0x1cc8fe=a194_0x13644b,_0x4efd11=await fetchRulesFromCDN()['catch'](()=>null);let _0xe8e1f9;_0x4efd11?(_0xe8e1f9=_0x4efd11[_0x1cc8fe(0x15b)],_0x4efd11[_0x1cc8fe(0x156)]&&(_0xe8e1f9=appendUpdateTime(_0xe8e1f9,_0x4efd11[_0x1cc8fe(0x156)]))):_0xe8e1f9=readLocalTemplate();const _0x3a2eed=dirname(_0x4a62f3);!existsSync(_0x3a2eed)&&mkdirSync(_0x3a2eed,{'recursive':!![]}),writeFileSync(_0x4a62f3,_0xe8e1f9,_0x1cc8fe(0x154));}export async function copyRulesToCursor(_0x1e069a){const _0xb8df9=a194_0x13644b,_0x5ae95f=join(_0x1e069a,_0xb8df9(0x14d)),_0x6d8785=join(_0x5ae95f,'lovrabet_rules.mdc');if(existsSync(_0x6d8785))return![];return await writeRulesFile(_0x6d8785),!![];}export async function copyRulesToAgentsMd(_0x5095f0){const _0x42622a=a194_0x13644b,_0x4a297d=join(_0x5095f0,_0x42622a(0x159));if(existsSync(_0x4a297d))return![];return await writeRulesFile(_0x4a297d),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x18ada6){return new Promise(_0x4d090e=>setTimeout(_0x4d090e,_0x18ada6));}
1
+ export function sleep(_0x232d96){return new Promise(_0x5b22e2=>setTimeout(_0x5b22e2,_0x232d96));}
@@ -1 +1 @@
1
- const a196_0x1cd48c=a196_0x10cf;(function(_0x480795,_0x5cdf31){const _0x4d93c6=a196_0x10cf,_0xe674d=_0x480795();while(!![]){try{const _0x49a29c=parseInt(_0x4d93c6(0x1e2))/0x1*(parseInt(_0x4d93c6(0x1e6))/0x2)+-parseInt(_0x4d93c6(0x1dd))/0x3*(-parseInt(_0x4d93c6(0x1f2))/0x4)+-parseInt(_0x4d93c6(0x1f0))/0x5+-parseInt(_0x4d93c6(0x1f8))/0x6*(-parseInt(_0x4d93c6(0x21d))/0x7)+parseInt(_0x4d93c6(0x21e))/0x8+parseInt(_0x4d93c6(0x1fb))/0x9*(parseInt(_0x4d93c6(0x207))/0xa)+-parseInt(_0x4d93c6(0x1f9))/0xb;if(_0x49a29c===_0x5cdf31)break;else _0xe674d['push'](_0xe674d['shift']());}catch(_0x4375f0){_0xe674d['push'](_0xe674d['shift']());}}}(a196_0xc4c2,0xd740f));function a196_0x10cf(_0x166e48,_0x14b02a){_0x166e48=_0x166e48-0x1d9;const _0xc4c2c2=a196_0xc4c2();let _0x10cf47=_0xc4c2c2[_0x166e48];return _0x10cf47;}import a196_0x3ba979 from'node:fs';import a196_0x14e215 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a196_0xc4c2(){const _0x479e52=['tableName','copyFile','1351269uneVNH','pad','getHours','map','isFile','239rnTqIu','processDirectory','name:\x20\x22','\x20},','9166CHsNHD','readdir','tableName:\x20\x22','.json','promises','replaceContent','message','.js','processTemplate','default','865660bpWpAY','开始处理模板内容替换','12yOnhrf','.ts','utf8','replaceApiContent','info','readFile','8809986hXaxIF','45398628Qmucyf','YourModel','9bZLNGi','charAt','getSeconds','replace','pop','datasetCode:\x20\x22','split','getMinutes','模板内容替换失败','.css','getDate','alias','9998960XqShpy','template','getFullYear','.md','toDisplayTitle','formatLocalTimestamp','now','toLowerCase','.tsx','isDirectory','toUpperCase','datasetCode','join','toComponentName','endsWith','error','writeFile','padStart','name','LOVRABET','.tpl','mkdir','7srccJD','2137008dqBYtd','processFile','slice','.jsx'];a196_0xc4c2=function(){return _0x479e52;};return a196_0xc4c2();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x1cd48c(0x1de)](_0x1355f6){const _0x2e2e37=a196_0x1cd48c;return String(_0x1355f6)[_0x2e2e37(0x218)](0x2,'0');}static[a196_0x1cd48c(0x20c)](_0x4a880a){const _0x5172b2=a196_0x1cd48c,_0x517a2f=_0x4a880a[_0x5172b2(0x209)](),_0x3bc431=this['pad'](_0x4a880a['getMonth']()+0x1),_0x521aa3=this[_0x5172b2(0x1de)](_0x4a880a[_0x5172b2(0x205)]()),_0x43bfa8=this['pad'](_0x4a880a[_0x5172b2(0x1df)]()),_0x1574ce=this[_0x5172b2(0x1de)](_0x4a880a[_0x5172b2(0x202)]()),_0x527eec=this[_0x5172b2(0x1de)](_0x4a880a[_0x5172b2(0x1fd)]());return{'createdAt':_0x517a2f+'-'+_0x3bc431+'-'+_0x521aa3+'\x20'+_0x43bfa8+':'+_0x1574ce+':'+_0x527eec,'createdDate':_0x517a2f+'-'+_0x3bc431+'-'+_0x521aa3,'createdTime':_0x43bfa8+':'+_0x1574ce+':'+_0x527eec};}static[a196_0x1cd48c(0x214)](_0x477252){const _0x48cc61=a196_0x1cd48c,_0x5f4c4c=_0x477252[_0x48cc61(0x201)]('/')['pop']()||_0x477252;return _0x5f4c4c['split']('-')[_0x48cc61(0x1e0)](_0x79a5f4=>_0x79a5f4['charAt'](0x0)[_0x48cc61(0x211)]()+_0x79a5f4[_0x48cc61(0x1d9)](0x1)[_0x48cc61(0x20e)]())[_0x48cc61(0x213)]('');}static[a196_0x1cd48c(0x20b)](_0x2e4e4e){const _0x3c731b=a196_0x1cd48c,_0x2270c6=_0x2e4e4e[_0x3c731b(0x201)]('/')[_0x3c731b(0x1ff)]()||_0x2e4e4e;return _0x2270c6[_0x3c731b(0x201)]('-')[_0x3c731b(0x1e0)](_0x18d2d7=>_0x18d2d7[_0x3c731b(0x1fc)](0x0)[_0x3c731b(0x211)]()+_0x18d2d7[_0x3c731b(0x1d9)](0x1)['toLowerCase']())['join']('\x20');}static[a196_0x1cd48c(0x1eb)](_0x2023c4,_0x41181a,_0x3e2101){const _0x1c4faf=a196_0x1cd48c,_0x33e108=this[_0x1c4faf(0x214)](_0x41181a),_0x3be76b=this[_0x1c4faf(0x20b)](_0x41181a),{createdAt:_0x49a531,createdDate:_0x77e903,createdTime:_0x35862f}=this['formatLocalTimestamp'](new Date());let _0x18b26b=_0x2023c4[_0x1c4faf(0x1fe)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x33e108)[_0x1c4faf(0x1fe)](/\{DisplayTitle\}/g,_0x3be76b)[_0x1c4faf(0x1fe)](/\{PageName\}/g,_0x41181a)[_0x1c4faf(0x1fe)](/\{TemplateName\}/g,_0x3e2101)['replace'](/\{CreatedAt\}/g,_0x49a531)[_0x1c4faf(0x1fe)](/\{CreatedDate\}/g,_0x77e903)[_0x1c4faf(0x1fe)](/\{CreatedTime\}/g,_0x35862f);return _0x18b26b;}static[a196_0x1cd48c(0x1f5)](_0x2daaa7,_0x19e680,_0x1905db,_0x62563,_0x27380d,_0x5c7de0,_0x5ca913,_0x3b1a04){const _0xaee9c0=a196_0x1cd48c,_0xa2be56=new Date(),_0x3fb64a=_0xa2be56['toISOString'](),_0x119e96=_0x1905db[_0xaee9c0(0x1e0)](_0x262757=>{const _0x23d7be=_0xaee9c0,_0x4e8af9=[_0x23d7be(0x200)+_0x262757[_0x23d7be(0x212)]+'\x22',_0x23d7be(0x1e8)+_0x262757[_0x23d7be(0x1db)]+'\x22',_0x23d7be(0x1e4)+_0x262757[_0x23d7be(0x219)]+'\x22'];return _0x262757['alias']&&_0x4e8af9['push']('alias:\x20\x22'+_0x262757['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x4e8af9[_0x23d7be(0x213)](',\x20')+_0x23d7be(0x1e5);})[_0xaee9c0(0x213)](''),_0x3955cf=_0x62563||_0x1905db[0x0]?.[_0xaee9c0(0x206)]||_0xaee9c0(0x1fa);let _0x4fc123=_0x2daaa7[_0xaee9c0(0x1fe)](/\{AppCode\}/g,_0x19e680)[_0xaee9c0(0x1fe)](/\{ModelConfigs\}/g,_0x119e96)[_0xaee9c0(0x1fe)](/\{ExampleModelName\}/g,_0x3955cf)[_0xaee9c0(0x1fe)](/\{ApiFileName\}/g,_0x27380d||'api')[_0xaee9c0(0x1fe)](/\{ConfigName\}/g,_0x5c7de0||_0xaee9c0(0x1ef))[_0xaee9c0(0x1fe)](/\{ClientConfigParam\}/g,_0x5ca913||'')[_0xaee9c0(0x1fe)](/\{VarPrefix\}/g,_0x3b1a04||_0xaee9c0(0x21a))[_0xaee9c0(0x1fe)](/\{CreatedAt\}/g,_0x3fb64a);return _0x4fc123;}static async[a196_0x1cd48c(0x1ee)](_0x168ec4,_0x4fdb28,_0xee980b,_0x1fbf71,_0x425e7b=!![]){const _0x5d1ea6=a196_0x1cd48c,_0x11e475=Date[_0x5d1ea6(0x20d)]();try{_0x425e7b&&logger[_0x5d1ea6(0x1f6)]('template',_0x5d1ea6(0x1f1),{'templatePath':_0x168ec4,'targetPath':_0x4fdb28,'pageName':_0xee980b,'templateName':_0x1fbf71});await a196_0x3ba979[_0x5d1ea6(0x1ea)][_0x5d1ea6(0x21c)](_0x4fdb28,{'recursive':!![]}),await this[_0x5d1ea6(0x1e3)](_0x168ec4,_0x4fdb28,_0xee980b,_0x1fbf71);if(_0x425e7b){const _0x176c3a=Date[_0x5d1ea6(0x20d)]()-_0x11e475;logger['success'](_0x5d1ea6(0x208),'模板内容替换完成',_0x176c3a,{'pageName':_0xee980b,'templateName':_0x1fbf71});}}catch(_0x150774){if(_0x425e7b){const _0x403a94=Date[_0x5d1ea6(0x20d)]()-_0x11e475;logger[_0x5d1ea6(0x216)]('template',_0x5d1ea6(0x203),{'templatePath':_0x168ec4,'targetPath':_0x4fdb28,'pageName':_0xee980b,'templateName':_0x1fbf71,'error':_0x150774 instanceof Error?_0x150774[_0x5d1ea6(0x1ec)]:String(_0x150774),'duration':_0x403a94});}throw _0x150774;}}static async[a196_0x1cd48c(0x1e3)](_0x4c0bfd,_0x10fa05,_0x26ad3d,_0x43bdcb){const _0x53acc7=a196_0x1cd48c,_0x3725fe=await a196_0x3ba979['promises'][_0x53acc7(0x1e7)](_0x4c0bfd,{'withFileTypes':!![]});for(const _0x4cfaa6 of _0x3725fe){const _0x2eb0c7=a196_0x14e215[_0x53acc7(0x213)](_0x4c0bfd,_0x4cfaa6[_0x53acc7(0x219)]);let _0x47def2=a196_0x14e215[_0x53acc7(0x213)](_0x10fa05,_0x4cfaa6[_0x53acc7(0x219)]);_0x4cfaa6[_0x53acc7(0x219)][_0x53acc7(0x215)](_0x53acc7(0x21b))&&(_0x47def2=a196_0x14e215[_0x53acc7(0x213)](_0x10fa05,_0x4cfaa6[_0x53acc7(0x219)][_0x53acc7(0x1fe)](/\.tpl$/,'')));if(_0x4cfaa6[_0x53acc7(0x210)]())await a196_0x3ba979[_0x53acc7(0x1ea)][_0x53acc7(0x21c)](_0x47def2,{'recursive':!![]}),await this[_0x53acc7(0x1e3)](_0x2eb0c7,_0x47def2,_0x26ad3d,_0x43bdcb);else _0x4cfaa6[_0x53acc7(0x1e1)]()&&await this[_0x53acc7(0x21f)](_0x2eb0c7,_0x47def2,_0x26ad3d,_0x43bdcb);}}static async['processFile'](_0x590c0a,_0x870f44,_0x196997,_0xc764aa){const _0x3b5ab8=a196_0x1cd48c,_0x22c4cb=a196_0x14e215['extname'](_0x590c0a)[_0x3b5ab8(0x20e)]();_0x590c0a['endsWith']('.tpl')&&(_0x870f44=_0x870f44[_0x3b5ab8(0x1fe)](/\.tpl$/,''));const _0x533f22=[_0x3b5ab8(0x20f),_0x3b5ab8(0x1f3),_0x3b5ab8(0x1da),_0x3b5ab8(0x1ed),_0x3b5ab8(0x1e9),_0x3b5ab8(0x20a),_0x3b5ab8(0x204),'.scss',_0x3b5ab8(0x21b)];if(_0x533f22['includes'](_0x22c4cb)||_0x590c0a[_0x3b5ab8(0x215)]('.tpl')){const _0xc3c0d=await a196_0x3ba979['promises'][_0x3b5ab8(0x1f7)](_0x590c0a,_0x3b5ab8(0x1f4)),_0x333b13=this[_0x3b5ab8(0x1eb)](_0xc3c0d,_0x196997,_0xc764aa);await a196_0x3ba979['promises'][_0x3b5ab8(0x217)](_0x870f44,_0x333b13,_0x3b5ab8(0x1f4));}else await a196_0x3ba979['promises'][_0x3b5ab8(0x1dc)](_0x590c0a,_0x870f44);}}
1
+ const a196_0x2cb679=a196_0x2864;function a196_0x2864(_0x255249,_0x3278b1){_0x255249=_0x255249-0x1c4;const _0x303f7a=a196_0x303f();let _0x2864f3=_0x303f7a[_0x255249];return _0x2864f3;}(function(_0x41ee5e,_0x23f9ae){const _0x338839=a196_0x2864,_0x3899de=_0x41ee5e();while(!![]){try{const _0x3c01f4=parseInt(_0x338839(0x201))/0x1*(-parseInt(_0x338839(0x1da))/0x2)+-parseInt(_0x338839(0x1eb))/0x3*(parseInt(_0x338839(0x1ed))/0x4)+-parseInt(_0x338839(0x1ea))/0x5*(parseInt(_0x338839(0x1f3))/0x6)+parseInt(_0x338839(0x1de))/0x7+parseInt(_0x338839(0x1dd))/0x8*(parseInt(_0x338839(0x206))/0x9)+parseInt(_0x338839(0x1df))/0xa*(parseInt(_0x338839(0x1d7))/0xb)+parseInt(_0x338839(0x1d1))/0xc;if(_0x3c01f4===_0x23f9ae)break;else _0x3899de['push'](_0x3899de['shift']());}catch(_0x3c827e){_0x3899de['push'](_0x3899de['shift']());}}}(a196_0x303f,0x54933));function a196_0x303f(){const _0x10bcc7=['73287MjwLJw','endsWith','promises','charAt','formatLocalTimestamp','success','YourModel','api','name:\x20\x22','toDisplayTitle','processDirectory','tableName:\x20\x22','toComponentName','slice','now','pad','.tsx','toUpperCase','1186920IiNXxp','.css','getMinutes','split','.tpl','.js','35167BJgtiN','padStart','message','293804ZbMqpC','tableName','pop','272kZzhEz','759738OhkPjX','2120HyNHvz','LOVRABET','readFile','map','replaceApiContent','name','alias','readdir','.json','getDate','.ts','55bHMvtu','6hqEoHh','processTemplate','1094068NbjDFH','getHours','join','toLowerCase','开始处理模板内容替换','模板内容替换失败','66390NBMkxD','default','\x0a\x20\x20\x20\x20{\x20','utf8','error','replace','replaceContent','copyFile','模板内容替换完成','mkdir','getSeconds','writeFile','alias:\x20\x22','isDirectory','1SxEfIO','template','includes','processFile','getMonth'];a196_0x303f=function(){return _0x10bcc7;};return a196_0x303f();}import a196_0x2c3334 from'node:fs';import a196_0x2695e7 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x2cb679(0x1ce)](_0x3eff98){const _0x2c119c=a196_0x2cb679;return String(_0x3eff98)[_0x2c119c(0x1d8)](0x2,'0');}static[a196_0x2cb679(0x20a)](_0x269e71){const _0x4155ae=a196_0x2cb679,_0x4cbe14=_0x269e71['getFullYear'](),_0xd09cda=this[_0x4155ae(0x1ce)](_0x269e71[_0x4155ae(0x205)]()+0x1),_0x71f272=this[_0x4155ae(0x1ce)](_0x269e71[_0x4155ae(0x1e8)]()),_0x515009=this['pad'](_0x269e71[_0x4155ae(0x1ee)]()),_0x3af60b=this['pad'](_0x269e71[_0x4155ae(0x1d3)]()),_0x5ebfc7=this['pad'](_0x269e71[_0x4155ae(0x1fd)]());return{'createdAt':_0x4cbe14+'-'+_0xd09cda+'-'+_0x71f272+'\x20'+_0x515009+':'+_0x3af60b+':'+_0x5ebfc7,'createdDate':_0x4cbe14+'-'+_0xd09cda+'-'+_0x71f272,'createdTime':_0x515009+':'+_0x3af60b+':'+_0x5ebfc7};}static[a196_0x2cb679(0x1cb)](_0x345827){const _0x39fb62=a196_0x2cb679,_0x59e6b7=_0x345827[_0x39fb62(0x1d4)]('/')[_0x39fb62(0x1dc)]()||_0x345827;return _0x59e6b7['split']('-')[_0x39fb62(0x1e2)](_0x38e4f5=>_0x38e4f5[_0x39fb62(0x209)](0x0)['toUpperCase']()+_0x38e4f5[_0x39fb62(0x1cc)](0x1)[_0x39fb62(0x1f0)]())[_0x39fb62(0x1ef)]('');}static['toDisplayTitle'](_0x32e495){const _0x58a2ab=a196_0x2cb679,_0x5c2a2f=_0x32e495['split']('/')[_0x58a2ab(0x1dc)]()||_0x32e495;return _0x5c2a2f['split']('-')[_0x58a2ab(0x1e2)](_0x30b235=>_0x30b235[_0x58a2ab(0x209)](0x0)[_0x58a2ab(0x1d0)]()+_0x30b235[_0x58a2ab(0x1cc)](0x1)['toLowerCase']())[_0x58a2ab(0x1ef)]('\x20');}static['replaceContent'](_0x2c578a,_0x29b39c,_0x27d468){const _0x426f92=a196_0x2cb679,_0x463c30=this[_0x426f92(0x1cb)](_0x29b39c),_0x1443cb=this[_0x426f92(0x1c8)](_0x29b39c),{createdAt:_0x20c802,createdDate:_0x1e746a,createdTime:_0x189cb0}=this[_0x426f92(0x20a)](new Date());let _0x1a1dcb=_0x2c578a[_0x426f92(0x1f8)](/\{CliVersion\}/g,CLI_VERSION)[_0x426f92(0x1f8)](/\{ComponentName\}/g,_0x463c30)[_0x426f92(0x1f8)](/\{DisplayTitle\}/g,_0x1443cb)[_0x426f92(0x1f8)](/\{PageName\}/g,_0x29b39c)[_0x426f92(0x1f8)](/\{TemplateName\}/g,_0x27d468)[_0x426f92(0x1f8)](/\{CreatedAt\}/g,_0x20c802)[_0x426f92(0x1f8)](/\{CreatedDate\}/g,_0x1e746a)[_0x426f92(0x1f8)](/\{CreatedTime\}/g,_0x189cb0);return _0x1a1dcb;}static[a196_0x2cb679(0x1e3)](_0x5ad33c,_0x4c0aaa,_0x47cea2,_0x2a3e5f,_0x4bb0f8,_0x894661,_0x285b3d,_0x4e45c5){const _0x34d832=a196_0x2cb679,_0x40c22c=new Date(),_0x2be406=_0x40c22c['toISOString'](),_0x1c8d99=_0x47cea2[_0x34d832(0x1e2)](_0x371ec3=>{const _0x978a9c=_0x34d832,_0x2fd8ce=['datasetCode:\x20\x22'+_0x371ec3['datasetCode']+'\x22',_0x978a9c(0x1ca)+_0x371ec3[_0x978a9c(0x1db)]+'\x22',_0x978a9c(0x1c7)+_0x371ec3[_0x978a9c(0x1e4)]+'\x22'];return _0x371ec3[_0x978a9c(0x1e5)]&&_0x2fd8ce['push'](_0x978a9c(0x1ff)+_0x371ec3[_0x978a9c(0x1e5)]+'\x22'),_0x978a9c(0x1f5)+_0x2fd8ce[_0x978a9c(0x1ef)](',\x20')+'\x20},';})['join'](''),_0x249ea9=_0x2a3e5f||_0x47cea2[0x0]?.[_0x34d832(0x1e5)]||_0x34d832(0x1c5);let _0x1762e5=_0x5ad33c[_0x34d832(0x1f8)](/\{AppCode\}/g,_0x4c0aaa)['replace'](/\{ModelConfigs\}/g,_0x1c8d99)[_0x34d832(0x1f8)](/\{ExampleModelName\}/g,_0x249ea9)[_0x34d832(0x1f8)](/\{ApiFileName\}/g,_0x4bb0f8||_0x34d832(0x1c6))[_0x34d832(0x1f8)](/\{ConfigName\}/g,_0x894661||_0x34d832(0x1f4))[_0x34d832(0x1f8)](/\{ClientConfigParam\}/g,_0x285b3d||'')[_0x34d832(0x1f8)](/\{VarPrefix\}/g,_0x4e45c5||_0x34d832(0x1e0))[_0x34d832(0x1f8)](/\{CreatedAt\}/g,_0x2be406);return _0x1762e5;}static async[a196_0x2cb679(0x1ec)](_0x2c38a1,_0x7bb4f6,_0x12426a,_0x3ac788,_0x286a28=!![]){const _0x37dda9=a196_0x2cb679,_0x336bf9=Date['now']();try{_0x286a28&&logger['info'](_0x37dda9(0x202),_0x37dda9(0x1f1),{'templatePath':_0x2c38a1,'targetPath':_0x7bb4f6,'pageName':_0x12426a,'templateName':_0x3ac788});await a196_0x2c3334[_0x37dda9(0x208)][_0x37dda9(0x1fc)](_0x7bb4f6,{'recursive':!![]}),await this[_0x37dda9(0x1c9)](_0x2c38a1,_0x7bb4f6,_0x12426a,_0x3ac788);if(_0x286a28){const _0x1b5b9e=Date[_0x37dda9(0x1cd)]()-_0x336bf9;logger[_0x37dda9(0x1c4)]('template',_0x37dda9(0x1fb),_0x1b5b9e,{'pageName':_0x12426a,'templateName':_0x3ac788});}}catch(_0x549814){if(_0x286a28){const _0x5e93ba=Date[_0x37dda9(0x1cd)]()-_0x336bf9;logger[_0x37dda9(0x1f7)](_0x37dda9(0x202),_0x37dda9(0x1f2),{'templatePath':_0x2c38a1,'targetPath':_0x7bb4f6,'pageName':_0x12426a,'templateName':_0x3ac788,'error':_0x549814 instanceof Error?_0x549814[_0x37dda9(0x1d9)]:String(_0x549814),'duration':_0x5e93ba});}throw _0x549814;}}static async[a196_0x2cb679(0x1c9)](_0x1c194a,_0x3baf2e,_0x4ff980,_0x3946c5){const _0x20aa10=a196_0x2cb679,_0x4913ae=await a196_0x2c3334[_0x20aa10(0x208)][_0x20aa10(0x1e6)](_0x1c194a,{'withFileTypes':!![]});for(const _0x264126 of _0x4913ae){const _0x51029e=a196_0x2695e7[_0x20aa10(0x1ef)](_0x1c194a,_0x264126[_0x20aa10(0x1e4)]);let _0x45563f=a196_0x2695e7[_0x20aa10(0x1ef)](_0x3baf2e,_0x264126[_0x20aa10(0x1e4)]);_0x264126['name'][_0x20aa10(0x207)]('.tpl')&&(_0x45563f=a196_0x2695e7[_0x20aa10(0x1ef)](_0x3baf2e,_0x264126[_0x20aa10(0x1e4)]['replace'](/\.tpl$/,'')));if(_0x264126[_0x20aa10(0x200)]())await a196_0x2c3334[_0x20aa10(0x208)][_0x20aa10(0x1fc)](_0x45563f,{'recursive':!![]}),await this['processDirectory'](_0x51029e,_0x45563f,_0x4ff980,_0x3946c5);else _0x264126['isFile']()&&await this['processFile'](_0x51029e,_0x45563f,_0x4ff980,_0x3946c5);}}static async[a196_0x2cb679(0x204)](_0x50b222,_0x1e5991,_0x544913,_0xc812e1){const _0x38cb30=a196_0x2cb679,_0x19d7c6=a196_0x2695e7['extname'](_0x50b222)['toLowerCase']();_0x50b222[_0x38cb30(0x207)](_0x38cb30(0x1d5))&&(_0x1e5991=_0x1e5991[_0x38cb30(0x1f8)](/\.tpl$/,''));const _0x2e0fb8=[_0x38cb30(0x1cf),_0x38cb30(0x1e9),'.jsx',_0x38cb30(0x1d6),_0x38cb30(0x1e7),'.md',_0x38cb30(0x1d2),'.scss',_0x38cb30(0x1d5)];if(_0x2e0fb8[_0x38cb30(0x203)](_0x19d7c6)||_0x50b222[_0x38cb30(0x207)](_0x38cb30(0x1d5))){const _0x5b47f2=await a196_0x2c3334[_0x38cb30(0x208)][_0x38cb30(0x1e1)](_0x50b222,_0x38cb30(0x1f6)),_0x1ccc27=this[_0x38cb30(0x1f9)](_0x5b47f2,_0x544913,_0xc812e1);await a196_0x2c3334[_0x38cb30(0x208)][_0x38cb30(0x1fe)](_0x1e5991,_0x1ccc27,'utf8');}else await a196_0x2c3334[_0x38cb30(0x208)][_0x38cb30(0x1fa)](_0x50b222,_0x1e5991);}}
@@ -1 +1 @@
1
- (function(_0xffe83e,_0x1688ae){var _0x29586e=a197_0x410b,_0xac4bee=_0xffe83e();while(!![]){try{var _0x27ec38=parseInt(_0x29586e(0xbc))/0x1*(parseInt(_0x29586e(0xc0))/0x2)+-parseInt(_0x29586e(0xb7))/0x3*(-parseInt(_0x29586e(0xbd))/0x4)+parseInt(_0x29586e(0xba))/0x5*(-parseInt(_0x29586e(0xb9))/0x6)+parseInt(_0x29586e(0xb8))/0x7*(parseInt(_0x29586e(0xbe))/0x8)+-parseInt(_0x29586e(0xbf))/0x9+parseInt(_0x29586e(0xbb))/0xa+-parseInt(_0x29586e(0xb6))/0xb;if(_0x27ec38===_0x1688ae)break;else _0xac4bee['push'](_0xac4bee['shift']());}catch(_0x25f5b9){_0xac4bee['push'](_0xac4bee['shift']());}}}(a197_0x1dfe,0x84275));function a197_0x410b(_0x2616e0,_0x4db6e5){_0x2616e0=_0x2616e0-0xb6;var _0x1dfeea=a197_0x1dfe();var _0x410bd1=_0x1dfeea[_0x2616e0];return _0x410bd1;}function a197_0x1dfe(){var _0x2ff32a=['2370facgho','14wOcVHv','3291384iOAOeM','5ccEMRM','6100880jUgrSh','142abNbkK','4340BSjJqU','1163576sNWxkH','6814530sscZPx','4970DyvXCc','2903637zvkgeW'];a197_0x1dfe=function(){return _0x2ff32a;};return a197_0x1dfe();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a197_0xae96(){var _0x45490d=['11784ZfNMNe','30MxZEew','434220UVuebw','1750450pxkEIl','3035960XQPYDv','623326RIbydE','100mbRBjj','66885AIaJqw','12oDsIzq','3879aYQaDR','142134mHAIFR'];a197_0xae96=function(){return _0x45490d;};return a197_0xae96();}function a197_0x52d6(_0x35e18f,_0x44478f){_0x35e18f=_0x35e18f-0x7f;var _0xae96de=a197_0xae96();var _0x52d69b=_0xae96de[_0x35e18f];return _0x52d69b;}(function(_0x1f7742,_0x3bb48d){var _0xfa5e4f=a197_0x52d6,_0x11ad87=_0x1f7742();while(!![]){try{var _0xa3c470=parseInt(_0xfa5e4f(0x85))/0x1+parseInt(_0xfa5e4f(0x82))/0x2*(-parseInt(_0xfa5e4f(0x84))/0x3)+parseInt(_0xfa5e4f(0x87))/0x4+-parseInt(_0xfa5e4f(0x86))/0x5*(parseInt(_0xfa5e4f(0x80))/0x6)+-parseInt(_0xfa5e4f(0x7f))/0x7+-parseInt(_0xfa5e4f(0x83))/0x8*(-parseInt(_0xfa5e4f(0x81))/0x9)+-parseInt(_0xfa5e4f(0x89))/0xa*(-parseInt(_0xfa5e4f(0x88))/0xb);if(_0xa3c470===_0x3bb48d)break;else _0x11ad87['push'](_0x11ad87['shift']());}catch(_0x2ce84f){_0x11ad87['push'](_0x11ad87['shift']());}}}(a197_0xae96,0xeddf8));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a198_0x7782(){var _0xdb990d=['8ddBIll','44830inyMvp','3680784AXfVwc','11103kAhNpB','367468qturvG','202sRVJWt','2379979uqzFhB','17488630EAQCtd','168FtQZJg','54821IYfrgb'];a198_0x7782=function(){return _0xdb990d;};return a198_0x7782();}(function(_0x2a5cf3,_0x1e7c0e){var _0x487094=a198_0x2df3,_0x8a7e9a=_0x2a5cf3();while(!![]){try{var _0x181600=-parseInt(_0x487094(0x1f9))/0x1+-parseInt(_0x487094(0x1f5))/0x2*(parseInt(_0x487094(0x1f3))/0x3)+-parseInt(_0x487094(0x1f4))/0x4+-parseInt(_0x487094(0x1f1))/0x5*(parseInt(_0x487094(0x1f8))/0x6)+parseInt(_0x487094(0x1f6))/0x7*(-parseInt(_0x487094(0x1f0))/0x8)+-parseInt(_0x487094(0x1f2))/0x9+parseInt(_0x487094(0x1f7))/0xa;if(_0x181600===_0x1e7c0e)break;else _0x8a7e9a['push'](_0x8a7e9a['shift']());}catch(_0x143e1b){_0x8a7e9a['push'](_0x8a7e9a['shift']());}}}(a198_0x7782,0x37c01));function a198_0x2df3(_0x356c7b,_0x2c08cb){_0x356c7b=_0x356c7b-0x1f0;var _0x778269=a198_0x7782();var _0x2df3d5=_0x778269[_0x356c7b];return _0x2df3d5;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5eae14,_0x53135d){setActiveCookie(_0x5eae14);try{return await _0x53135d();}finally{clearActiveCookie();}}
1
+ function a198_0x4326(_0x4fa6e8,_0x213850){_0x4fa6e8=_0x4fa6e8-0x86;var _0x4e74ff=a198_0x4e74();var _0x4326fa=_0x4e74ff[_0x4fa6e8];return _0x4326fa;}function a198_0x4e74(){var _0x1f6c17=['2051917mUPRLY','212344xvGSBx','45TRIuWB','4187584vSdkkV','483175lNqEDB','4113468BteOeP','747944mLaCuL','100ATjhJr','56706aBgAGt'];a198_0x4e74=function(){return _0x1f6c17;};return a198_0x4e74();}(function(_0x7490fa,_0x526e8){var _0x217509=a198_0x4326,_0x5c3a94=_0x7490fa();while(!![]){try{var _0x2ad2a8=-parseInt(_0x217509(0x8a))/0x1+parseInt(_0x217509(0x8b))/0x2*(-parseInt(_0x217509(0x8c))/0x3)+parseInt(_0x217509(0x87))/0x4+parseInt(_0x217509(0x88))/0x5+parseInt(_0x217509(0x89))/0x6+parseInt(_0x217509(0x8d))/0x7+parseInt(_0x217509(0x8e))/0x8*(parseInt(_0x217509(0x86))/0x9);if(_0x2ad2a8===_0x526e8)break;else _0x5c3a94['push'](_0x5c3a94['shift']());}catch(_0x414eee){_0x5c3a94['push'](_0x5c3a94['shift']());}}}(a198_0x4e74,0x892f7));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x43929b,_0x81e5dd){setActiveCookie(_0x43929b);try{return await _0x81e5dd();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a199_0x3405(_0x5a7191,_0x1f7c98){_0x5a7191=_0x5a7191-0x11d;var _0x25ad68=a199_0x25ad();var _0x3405c7=_0x25ad68[_0x5a7191];return _0x3405c7;}(function(_0x1bd425,_0x25247f){var _0x3776f8=a199_0x3405,_0x3a6f5c=_0x1bd425();while(!![]){try{var _0x492136=-parseInt(_0x3776f8(0x125))/0x1+parseInt(_0x3776f8(0x121))/0x2+-parseInt(_0x3776f8(0x124))/0x3+parseInt(_0x3776f8(0x11f))/0x4*(parseInt(_0x3776f8(0x127))/0x5)+parseInt(_0x3776f8(0x11e))/0x6*(parseInt(_0x3776f8(0x123))/0x7)+parseInt(_0x3776f8(0x126))/0x8+-parseInt(_0x3776f8(0x11d))/0x9;if(_0x492136===_0x25247f)break;else _0x3a6f5c['push'](_0x3a6f5c['shift']());}catch(_0x1a7a5e){_0x3a6f5c['push'](_0x3a6f5c['shift']());}}}(a199_0x25ad,0x7ff1e));function a199_0x25ad(){var _0x17a6d8=['5649uHXneR','1900830ZjsySL','435976aqVwet','4524312KhqZJS','461350IrSjLb','4514292QQxRnV','5208KocYCi','4wJUeZI','stderr','1473902LbzYUO','write'];a199_0x25ad=function(){return _0x17a6d8;};return a199_0x25ad();}export function writeCliSideChannelLine(_0x365c58){var _0x207409=a199_0x3405;process[_0x207409(0x120)][_0x207409(0x122)](_0x365c58+'\x0a');}
1
+ (function(_0xc634a0,_0x197364){var _0x369bec=a199_0x2f4b,_0x482d81=_0xc634a0();while(!![]){try{var _0x588318=parseInt(_0x369bec(0x1b2))/0x1*(-parseInt(_0x369bec(0x1bc))/0x2)+-parseInt(_0x369bec(0x1b4))/0x3*(parseInt(_0x369bec(0x1b3))/0x4)+parseInt(_0x369bec(0x1b9))/0x5+-parseInt(_0x369bec(0x1bb))/0x6*(-parseInt(_0x369bec(0x1ba))/0x7)+parseInt(_0x369bec(0x1b1))/0x8+parseInt(_0x369bec(0x1bd))/0x9+parseInt(_0x369bec(0x1b7))/0xa*(-parseInt(_0x369bec(0x1b6))/0xb);if(_0x588318===_0x197364)break;else _0x482d81['push'](_0x482d81['shift']());}catch(_0x1c0fcf){_0x482d81['push'](_0x482d81['shift']());}}}(a199_0x211d,0x1cf0d));export function writeCliSideChannelLine(_0x4f2016){var _0x31cdd4=a199_0x2f4b;process[_0x31cdd4(0x1b5)][_0x31cdd4(0x1b8)](_0x4f2016+'\x0a');}function a199_0x2f4b(_0x4f73c2,_0x4cf400){_0x4f73c2=_0x4f73c2-0x1b1;var _0x211d25=a199_0x211d();var _0x2f4ba5=_0x211d25[_0x4f73c2];return _0x2f4ba5;}function a199_0x211d(){var _0x3d7c05=['10970aZbMXL','7Icnxbi','1417890LXfgyL','97354kouSZY','1459044aGdZCi','1538080Hluquf','1YiskJg','20UrFSzH','62607zsMYji','stderr','7634gUfYRc','4630POnJQt','write'];a199_0x211d=function(){return _0x3d7c05;};return a199_0x211d();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",