@lovrabet/rabetbase-cli 2.1.7-beta.4 → 2.1.7-beta.5

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_0x11842b=a181_0x4952;(function(_0x211aa8,_0x2a623a){const _0xfab5ef=a181_0x4952,_0x20af03=_0x211aa8();while(!![]){try{const _0x14fa2e=-parseInt(_0xfab5ef(0x1ad))/0x1*(parseInt(_0xfab5ef(0x1b1))/0x2)+parseInt(_0xfab5ef(0x1d2))/0x3+parseInt(_0xfab5ef(0x1b2))/0x4+-parseInt(_0xfab5ef(0x1b6))/0x5*(parseInt(_0xfab5ef(0x1be))/0x6)+parseInt(_0xfab5ef(0x1c2))/0x7+parseInt(_0xfab5ef(0x1b9))/0x8+-parseInt(_0xfab5ef(0x1ce))/0x9*(-parseInt(_0xfab5ef(0x1bf))/0xa);if(_0x14fa2e===_0x2a623a)break;else _0x20af03['push'](_0x20af03['shift']());}catch(_0x443abd){_0x20af03['push'](_0x20af03['shift']());}}}(a181_0x7aec,0x3d992));function a181_0x7aec(){const _0x38735a=['readFileSync','\x20\x20\x20Upgrade\x20command:\x20','605STMNiA','latest','existsSync','2410896skFKxf','@lovrabet/sdk','stableVersion','1.2.0','test','20802Obhsra','830PqxAvJ','sdk','dependencies','3408818RYJGBv','utf8','devDependencies','node','version','minVersion','needsUpgrade','some','parse','all','\x1b[33m','coerce','4149ObzSzK','utf-8','↪\x20SDK\x20update\x20available','join','681525wvdJhk','\x20\x20\x20Stable\x20version:\x20','62uEkrMO','node_modules','package.json','packageName','16270gTnrxO','489636yKvDFn','log'];a181_0x7aec=function(){return _0x38735a;};return a181_0x7aec();}import a181_0xe7564 from'node:fs';import a181_0x1a3080 from'node:path';import a181_0x5c6d54 from'semver';function a181_0x4952(_0x3f8c66,_0x3c056e){_0x3f8c66=_0x3f8c66-0x1ac;const _0x7aeca1=a181_0x7aec();let _0x495205=_0x7aeca1[_0x3f8c66];return _0x495205;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x11842b(0x1bc);function isNonNumericVersion(_0x583429){const _0xc06d09=a181_0x11842b,_0x22fa34=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x22fa34[_0xc06d09(0x1c9)](_0x23473b=>_0x23473b[_0xc06d09(0x1bd)](_0x583429));}function getInstalledVersion(_0x38f8e2,_0x3e3247){const _0x34a4dd=a181_0x11842b;try{const _0x594c9d=a181_0x1a3080[_0x34a4dd(0x1d1)](_0x38f8e2,_0x34a4dd(0x1ae),_0x3e3247,_0x34a4dd(0x1af));if(a181_0xe7564[_0x34a4dd(0x1b8)](_0x594c9d)){const _0x31e66d=JSON['parse'](a181_0xe7564[_0x34a4dd(0x1b4)](_0x594c9d,_0x34a4dd(0x1cf)));return _0x31e66d['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x29136e=a181_0x11842b;try{const _0x383ee7=await getCdnConfig();return _0x383ee7?.[_0x29136e(0x1c0)]?.[_0x29136e(0x1c5)]?.[_0x29136e(0x1bb)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x53234e=a181_0x11842b;try{const _0x31008b=await getCdnConfig();return _0x31008b?.['sdk']?.[_0x53234e(0x1c5)]?.[_0x53234e(0x1b0)]||_0x53234e(0x1ba);}catch{return _0x53234e(0x1ba);}}export async function checkSdkVersion(_0x2d0dc4){const _0x543c7e=a181_0x11842b,_0xf24010=a181_0x1a3080[_0x543c7e(0x1d1)](_0x2d0dc4,_0x543c7e(0x1af)),[_0x6001,_0x20a9b4]=await Promise[_0x543c7e(0x1cb)]([getSdkStableVersion(),getSdkPackageName()]),_0x5314ab=_0x6001||FALLBACK_MIN_SDK_VERSION;if(!a181_0xe7564[_0x543c7e(0x1b8)](_0xf24010))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5314ab,'packageName':_0x20a9b4,'stableVersion':_0x6001};try{const _0x45072e=JSON['parse'](a181_0xe7564[_0x543c7e(0x1b4)](_0xf24010,_0x543c7e(0x1c3))),_0x10ee7c=_0x45072e[_0x543c7e(0x1c1)]||{},_0x4473bf=_0x45072e[_0x543c7e(0x1c4)]||{},_0x471794=_0x10ee7c[_0x20a9b4]||_0x4473bf[_0x20a9b4];if(!_0x471794)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5314ab,'packageName':_0x20a9b4,'stableVersion':_0x6001};let _0xa8b72f=getInstalledVersion(_0x2d0dc4,_0x20a9b4);!_0xa8b72f&&(_0xa8b72f=_0x471794);if(isNonNumericVersion(_0x471794))return{'installed':!![],'version':_0xa8b72f,'needsUpgrade':![],'minVersion':_0x5314ab,'packageName':_0x20a9b4,'stableVersion':_0x6001};const _0x3e9646=a181_0x5c6d54[_0x543c7e(0x1cd)](_0xa8b72f),_0x40a2c2=a181_0x5c6d54[_0x543c7e(0x1cd)](_0x5314ab),_0x4b4336=_0x3e9646&&_0x40a2c2?a181_0x5c6d54['lt'](_0x3e9646,_0x40a2c2):![];return{'installed':!![],'version':_0xa8b72f,'needsUpgrade':_0x4b4336,'minVersion':_0x5314ab,'packageName':_0x20a9b4,'stableVersion':_0x6001};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5314ab,'packageName':_0x20a9b4,'stableVersion':_0x6001};}}export function checkSdkVersionSync(_0x598bfb){const _0x5184e5=a181_0x11842b,_0x5c8ac7=a181_0x1a3080[_0x5184e5(0x1d1)](_0x598bfb,'package.json'),_0x242820='@lovrabet/sdk';if(!a181_0xe7564[_0x5184e5(0x1b8)](_0x5c8ac7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x242820,'stableVersion':null};try{const _0x570198=JSON[_0x5184e5(0x1ca)](a181_0xe7564['readFileSync'](_0x5c8ac7,'utf8')),_0x3ccda8=_0x570198['dependencies']||{},_0x30d926=_0x570198[_0x5184e5(0x1c4)]||{},_0x1dd5e9=_0x3ccda8[_0x242820]||_0x30d926[_0x242820];if(!_0x1dd5e9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x242820,'stableVersion':null};let _0x1fc8a9=getInstalledVersion(_0x598bfb,_0x242820);!_0x1fc8a9&&(_0x1fc8a9=_0x1dd5e9);if(isNonNumericVersion(_0x1dd5e9))return{'installed':!![],'version':_0x1fc8a9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x242820,'stableVersion':null};const _0x432d14=a181_0x5c6d54['coerce'](_0x1fc8a9),_0x1d269d=_0x432d14?a181_0x5c6d54['lt'](_0x432d14,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1fc8a9,'needsUpgrade':_0x1d269d,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x242820,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x242820,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x250687){const _0x204fde=a181_0x11842b;if(!_0x250687[_0x204fde(0x1c8)])return;const _0x17c17e=_0x204fde(0x1cc),_0x645007='\x1b[0m',_0x34f415='\x1b[1m',_0x3e53e8=_0x250687['packageName']||_0x204fde(0x1ba),_0xe742d9=_0x250687[_0x204fde(0x1bb)]||_0x250687[_0x204fde(0x1c7)],_0x298098='npm\x20install\x20'+_0x3e53e8+'@'+(_0xe742d9||_0x204fde(0x1b7));console['log'](),console[_0x204fde(0x1b3)](''+_0x17c17e+_0x34f415+_0x204fde(0x1d0)+_0x645007),console[_0x204fde(0x1b3)](_0x17c17e+'\x20\x20\x20Current\x20version:\x20'+_0x3e53e8+'@'+_0x250687[_0x204fde(0x1c6)]+_0x645007),console[_0x204fde(0x1b3)](_0x17c17e+_0x204fde(0x1ac)+_0xe742d9+_0x645007),console['log'](_0x17c17e+_0x204fde(0x1b5)+_0x298098+_0x645007),console[_0x204fde(0x1b3)]();}
1
+ const a181_0x3ca056=a181_0x5db1;(function(_0x5bebeb,_0x171f39){const _0x515cf1=a181_0x5db1,_0x3fcf2f=_0x5bebeb();while(!![]){try{const _0x2782c9=-parseInt(_0x515cf1(0x143))/0x1+-parseInt(_0x515cf1(0x155))/0x2+-parseInt(_0x515cf1(0x153))/0x3+-parseInt(_0x515cf1(0x162))/0x4*(parseInt(_0x515cf1(0x141))/0x5)+-parseInt(_0x515cf1(0x152))/0x6+-parseInt(_0x515cf1(0x163))/0x7*(-parseInt(_0x515cf1(0x151))/0x8)+-parseInt(_0x515cf1(0x14f))/0x9*(-parseInt(_0x515cf1(0x15d))/0xa);if(_0x2782c9===_0x171f39)break;else _0x3fcf2f['push'](_0x3fcf2f['shift']());}catch(_0x50a624){_0x3fcf2f['push'](_0x3fcf2f['shift']());}}}(a181_0x28f9,0x5b0f5));function a181_0x28f9(){const _0x51fb1f=['sdk','\x1b[33m','12CKSHso','121989HkMwHn','stableVersion','1.2.0','739150PFqQvs','latest','361331iwqWCj','join','coerce','version','test','devDependencies','parse','readFileSync','minVersion','log','dependencies','@lovrabet/sdk','27xqtMkJ','packageName','72TuZZYN','1296HqKYQr','1756821MPZTVE','utf8','835542NnqYPM','↪\x20SDK\x20update\x20available','package.json','existsSync','node','\x20\x20\x20Current\x20version:\x20','npm\x20install\x20','needsUpgrade','6748510CDViyz','\x20\x20\x20Stable\x20version:\x20','utf-8'];a181_0x28f9=function(){return _0x51fb1f;};return a181_0x28f9();}import a181_0x2f3d07 from'node:fs';import a181_0x78263e from'node:path';import a181_0x4a0614 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x3ca056(0x140);function a181_0x5db1(_0x301ff7,_0x33d5ce){_0x301ff7=_0x301ff7-0x140;const _0x28f97b=a181_0x28f9();let _0x5db15a=_0x28f97b[_0x301ff7];return _0x5db15a;}function isNonNumericVersion(_0x362961){const _0x4bebcc=a181_0x3ca056,_0x3c4c90=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3c4c90['some'](_0x131581=>_0x131581[_0x4bebcc(0x147)](_0x362961));}function getInstalledVersion(_0xe475bc,_0xc75e53){const _0x39f400=a181_0x3ca056;try{const _0x39b874=a181_0x78263e[_0x39f400(0x144)](_0xe475bc,'node_modules',_0xc75e53,_0x39f400(0x157));if(a181_0x2f3d07[_0x39f400(0x158)](_0x39b874)){const _0x2bcf86=JSON[_0x39f400(0x149)](a181_0x2f3d07[_0x39f400(0x14a)](_0x39b874,_0x39f400(0x15f)));return _0x2bcf86[_0x39f400(0x146)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x526ecc=a181_0x3ca056;try{const _0x4f7a1c=await getCdnConfig();return _0x4f7a1c?.[_0x526ecc(0x160)]?.[_0x526ecc(0x159)]?.[_0x526ecc(0x164)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5c7e66=a181_0x3ca056;try{const _0x26bb17=await getCdnConfig();return _0x26bb17?.[_0x5c7e66(0x160)]?.['node']?.[_0x5c7e66(0x150)]||_0x5c7e66(0x14e);}catch{return _0x5c7e66(0x14e);}}export async function checkSdkVersion(_0x456bf2){const _0x160d08=a181_0x3ca056,_0x222e3d=a181_0x78263e[_0x160d08(0x144)](_0x456bf2,'package.json'),[_0x4969f5,_0x4e9417]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x456b6a=_0x4969f5||FALLBACK_MIN_SDK_VERSION;if(!a181_0x2f3d07[_0x160d08(0x158)](_0x222e3d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};try{const _0x30bac2=JSON[_0x160d08(0x149)](a181_0x2f3d07[_0x160d08(0x14a)](_0x222e3d,_0x160d08(0x154))),_0x5d9030=_0x30bac2[_0x160d08(0x14d)]||{},_0xd9fe7c=_0x30bac2[_0x160d08(0x148)]||{},_0x59005a=_0x5d9030[_0x4e9417]||_0xd9fe7c[_0x4e9417];if(!_0x59005a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};let _0x4269d5=getInstalledVersion(_0x456bf2,_0x4e9417);!_0x4269d5&&(_0x4269d5=_0x59005a);if(isNonNumericVersion(_0x59005a))return{'installed':!![],'version':_0x4269d5,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};const _0x4034f1=a181_0x4a0614[_0x160d08(0x145)](_0x4269d5),_0x2402b4=a181_0x4a0614[_0x160d08(0x145)](_0x456b6a),_0x34d177=_0x4034f1&&_0x2402b4?a181_0x4a0614['lt'](_0x4034f1,_0x2402b4):![];return{'installed':!![],'version':_0x4269d5,'needsUpgrade':_0x34d177,'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};}}export function checkSdkVersionSync(_0xcc93ab){const _0x4913ec=a181_0x3ca056,_0x3f8f9b=a181_0x78263e[_0x4913ec(0x144)](_0xcc93ab,'package.json'),_0x577741=_0x4913ec(0x14e);if(!a181_0x2f3d07[_0x4913ec(0x158)](_0x3f8f9b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};try{const _0x275389=JSON[_0x4913ec(0x149)](a181_0x2f3d07[_0x4913ec(0x14a)](_0x3f8f9b,'utf8')),_0x2f6745=_0x275389[_0x4913ec(0x14d)]||{},_0x43103a=_0x275389[_0x4913ec(0x148)]||{},_0x5d39ba=_0x2f6745[_0x577741]||_0x43103a[_0x577741];if(!_0x5d39ba)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};let _0x2e9623=getInstalledVersion(_0xcc93ab,_0x577741);!_0x2e9623&&(_0x2e9623=_0x5d39ba);if(isNonNumericVersion(_0x5d39ba))return{'installed':!![],'version':_0x2e9623,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};const _0x2d220=a181_0x4a0614['coerce'](_0x2e9623),_0x10052d=_0x2d220?a181_0x4a0614['lt'](_0x2d220,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2e9623,'needsUpgrade':_0x10052d,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x246921){const _0x2e3bca=a181_0x3ca056;if(!_0x246921[_0x2e3bca(0x15c)])return;const _0x5aba98=_0x2e3bca(0x161),_0x15e2c4='\x1b[0m',_0x5420f4='\x1b[1m',_0x1aa4ce=_0x246921[_0x2e3bca(0x150)]||_0x2e3bca(0x14e),_0x4ebea=_0x246921[_0x2e3bca(0x164)]||_0x246921[_0x2e3bca(0x14b)],_0x484587=_0x2e3bca(0x15b)+_0x1aa4ce+'@'+(_0x4ebea||_0x2e3bca(0x142));console['log'](),console[_0x2e3bca(0x14c)](''+_0x5aba98+_0x5420f4+_0x2e3bca(0x156)+_0x15e2c4),console[_0x2e3bca(0x14c)](_0x5aba98+_0x2e3bca(0x15a)+_0x1aa4ce+'@'+_0x246921[_0x2e3bca(0x146)]+_0x15e2c4),console['log'](_0x5aba98+_0x2e3bca(0x15e)+_0x4ebea+_0x15e2c4),console['log'](_0x5aba98+'\x20\x20\x20Upgrade\x20command:\x20'+_0x484587+_0x15e2c4),console[_0x2e3bca(0x14c)]();}
@@ -1 +1 @@
1
- (function(_0x3c3655,_0x4b4c20){const _0xd87c49=a182_0x66f4,_0x1302df=_0x3c3655();while(!![]){try{const _0x2ac2fe=parseInt(_0xd87c49(0x10e))/0x1*(-parseInt(_0xd87c49(0x11b))/0x2)+-parseInt(_0xd87c49(0x117))/0x3+parseInt(_0xd87c49(0x10b))/0x4*(parseInt(_0xd87c49(0x107))/0x5)+parseInt(_0xd87c49(0x11c))/0x6+-parseInt(_0xd87c49(0x122))/0x7+parseInt(_0xd87c49(0x102))/0x8*(-parseInt(_0xd87c49(0x101))/0x9)+-parseInt(_0xd87c49(0x123))/0xa*(-parseInt(_0xd87c49(0x11a))/0xb);if(_0x2ac2fe===_0x4b4c20)break;else _0x1302df['push'](_0x1302df['shift']());}catch(_0x328f89){_0x1302df['push'](_0x1302df['shift']());}}}(a182_0x1a4a,0xccd94));function a182_0x1a4a(){const _0x23fd1d=['version','minimumVersion','belowMinimum','365oAXadx','parse','\x20\x20\x20Stable\x20version:\x20','currentVersion','3748LwMZJC','Minimum\x20required:\x20','log','4JuteJW','1.0.0','Current\x20version:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Recommended\x20stable:\x20','npm\x20install\x20-g\x20','stableVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Current\x20CLI\x20version:\x20','1963593FZPHUz','package.json','upgradeMessage','17294552cdoxiO','269308wzwsZg','2759430rzWQeH','validation','\x1b[1m','\x20\x20\x20','coerce','\x1b[0m','7819581CcCTNQ','20IDduDt','\x1b[31m','filter','↪\x20New\x20version\x20available','minimumVersionMessage','\x20\x20\x20Upgrade\x20command:\x20','../..','\x1b[33m','90ZNbmsg','418784UDErxk','latest'];a182_0x1a4a=function(){return _0x23fd1d;};return a182_0x1a4a();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a182_0x66f4(_0x52fc18,_0x1ec1fe){_0x52fc18=_0x52fc18-0xff;const _0x1a4acc=a182_0x1a4a();let _0x66f4b5=_0x1a4acc[_0x52fc18];return _0x66f4b5;}import a182_0x17c4ee 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(_0x5f36a5){const _0xb8fbf7=a182_0x66f4,_0x43109f=_0x5f36a5[_0xb8fbf7(0x114)]||_0xb8fbf7(0x103);return _0xb8fbf7(0x113)+NPM_PACKAGE_NAME+'@'+_0x43109f;}function getCurrentCliVersion(){const _0x2a895b=a182_0x66f4;try{const _0x36955c=fileURLToPath(import.meta.url),_0x27b74=resolve(dirname(_0x36955c),_0x2a895b(0xff)),_0x48136c=resolve(_0x27b74,_0x2a895b(0x118)),_0x54a0f8=JSON[_0x2a895b(0x108)](readFileSync(_0x48136c,'utf-8'));return _0x54a0f8[_0x2a895b(0x104)]||'1.0.0';}catch{return _0x2a895b(0x10f);}}export async function checkCliVersion(){const _0x5c3cb7=a182_0x66f4,_0x37a003=getCurrentCliVersion(),_0x1ba8bb=await getCliVersionPolicy(),_0x2df216=_0x1ba8bb?.[_0x5c3cb7(0x114)]||null,_0xbcf076=_0x1ba8bb?.[_0x5c3cb7(0x105)]||null;let _0x2cdf34=![],_0x26e958=![];const _0x5b5041=a182_0x17c4ee[_0x5c3cb7(0x120)](_0x37a003);if(_0x5b5041&&_0x2df216)try{const _0x297612=a182_0x17c4ee['coerce'](_0x2df216);if(_0x297612)_0x2cdf34=a182_0x17c4ee['lt'](_0x5b5041,_0x297612);}catch{}if(_0x5b5041&&_0xbcf076)try{const _0xa8828f=a182_0x17c4ee[_0x5c3cb7(0x120)](_0xbcf076);if(_0xa8828f)_0x26e958=a182_0x17c4ee['lt'](_0x5b5041,_0xa8828f);}catch{}return _0x26e958&&(_0x2cdf34=!![]),{'currentVersion':_0x37a003,'stableVersion':_0x2df216,'minimumVersion':_0xbcf076,'needsUpgrade':_0x2cdf34,'belowMinimum':_0x26e958,'isPreRelease':![],'upgradeMessage':_0x1ba8bb?.[_0x5c3cb7(0x119)],'minimumVersionMessage':_0x1ba8bb?.[_0x5c3cb7(0x127)]};}export function printCliUpgradeWarning(_0x94aed){const _0x3627c8=a182_0x66f4;if(!_0x94aed['needsUpgrade']&&!_0x94aed[_0x3627c8(0x106)])return;const _0x11bba7=_0x3627c8(0x124),_0x5df7ba=_0x3627c8(0x100),_0x5923ba=_0x3627c8(0x121),_0x190dc3=_0x3627c8(0x11e),_0x639121=getCliUpgradeCommand(_0x94aed);console['log'](),_0x94aed[_0x3627c8(0x106)]?(console[_0x3627c8(0x10d)](''+_0x11bba7+_0x190dc3+_0x3627c8(0x111)+_0x5923ba),console[_0x3627c8(0x10d)](_0x11bba7+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x94aed[_0x3627c8(0x10a)]+_0x5923ba),_0x94aed[_0x3627c8(0x105)]&&console[_0x3627c8(0x10d)](_0x11bba7+'\x20\x20\x20Minimum\x20required:\x20'+_0x94aed[_0x3627c8(0x105)]+_0x5923ba),_0x94aed['stableVersion']&&_0x94aed[_0x3627c8(0x114)]!==_0x94aed[_0x3627c8(0x105)]&&console[_0x3627c8(0x10d)](_0x11bba7+_0x3627c8(0x112)+_0x94aed['stableVersion']+_0x5923ba),_0x94aed[_0x3627c8(0x127)]&&console[_0x3627c8(0x10d)](_0x11bba7+_0x3627c8(0x11f)+_0x94aed[_0x3627c8(0x127)]+_0x5923ba),console['log'](_0x11bba7+_0x3627c8(0x128)+_0x639121+_0x5923ba)):(console[_0x3627c8(0x10d)](''+_0x5df7ba+_0x190dc3+_0x3627c8(0x126)+_0x5923ba),console[_0x3627c8(0x10d)](_0x5df7ba+_0x3627c8(0x116)+_0x94aed['currentVersion']+_0x5923ba),console[_0x3627c8(0x10d)](_0x5df7ba+_0x3627c8(0x109)+_0x94aed['stableVersion']+_0x5923ba),_0x94aed['upgradeMessage']&&console[_0x3627c8(0x10d)](_0x5df7ba+_0x3627c8(0x11f)+_0x94aed[_0x3627c8(0x119)]+_0x5923ba),console['log'](_0x5df7ba+'\x20\x20\x20Upgrade\x20command:\x20'+_0x639121+_0x5923ba)),console[_0x3627c8(0x10d)]();}export function assertCliVersionSupported(_0x15bf48){const _0x576405=a182_0x66f4;if(!_0x15bf48[_0x576405(0x106)])return;const _0x29793f=[_0x15bf48[_0x576405(0x127)],_0x576405(0x110)+_0x15bf48[_0x576405(0x10a)],_0x15bf48[_0x576405(0x105)]?_0x576405(0x10c)+_0x15bf48[_0x576405(0x105)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x15bf48)][_0x576405(0x125)](Boolean)['join']('\x0a');throw CliErrors[_0x576405(0x11d)](_0x576405(0x115),_0x29793f);}
1
+ function a182_0x1cc6(_0x4b75ae,_0xad3c39){_0x4b75ae=_0x4b75ae-0x12e;const _0xc8bb6c=a182_0xc8bb();let _0x1cc697=_0xc8bb6c[_0x4b75ae];return _0x1cc697;}(function(_0x328b43,_0x4cb147){const _0x1ce8b1=a182_0x1cc6,_0x1c09fe=_0x328b43();while(!![]){try{const _0x568161=parseInt(_0x1ce8b1(0x150))/0x1*(parseInt(_0x1ce8b1(0x14a))/0x2)+parseInt(_0x1ce8b1(0x134))/0x3*(parseInt(_0x1ce8b1(0x13a))/0x4)+-parseInt(_0x1ce8b1(0x12e))/0x5+parseInt(_0x1ce8b1(0x133))/0x6+-parseInt(_0x1ce8b1(0x13e))/0x7+-parseInt(_0x1ce8b1(0x153))/0x8+parseInt(_0x1ce8b1(0x143))/0x9;if(_0x568161===_0x4cb147)break;else _0x1c09fe['push'](_0x1c09fe['shift']());}catch(_0x41f81b){_0x1c09fe['push'](_0x1c09fe['shift']());}}}(a182_0xc8bb,0x8fcfd));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a182_0xc8bb(){const _0x3d15a3=['7985800vvTGxE','1161900uXOWdC','\x20\x20\x20Minimum\x20required:\x20','minimumVersion','↪\x20New\x20version\x20available','version','2715066EvRogG','12dnsasO','\x20\x20\x20Current\x20CLI\x20version:\x20','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','parse','\x1b[33m','667688QNwcqd','\x1b[0m','coerce','filter','2590987hoxjjR','\x20\x20\x20Upgrade\x20command:\x20','package.json','1.0.0','↪\x20Critical\x20CLI\x20upgrade\x20required','8670078FAxVHc','currentVersion','belowMinimum','\x20\x20\x20','needsUpgrade','\x20\x20\x20Recommended\x20stable:\x20','Minimum\x20required:\x20','4MNAQnm','../..','join','upgradeMessage','stableVersion','minimumVersionMessage','53129jDSyTD','\x20\x20\x20Stable\x20version:\x20','log'];a182_0xc8bb=function(){return _0x3d15a3;};return a182_0xc8bb();}import a182_0x23f5c8 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(_0x4be2ab){const _0x148b46=a182_0x1cc6,_0x59e98f=_0x4be2ab[_0x148b46(0x14e)]||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x59e98f;}function getCurrentCliVersion(){const _0x46a2f9=a182_0x1cc6;try{const _0x33548a=fileURLToPath(import.meta.url),_0x5c4667=resolve(dirname(_0x33548a),_0x46a2f9(0x14b)),_0x215af1=resolve(_0x5c4667,_0x46a2f9(0x140)),_0x1f61fe=JSON[_0x46a2f9(0x138)](readFileSync(_0x215af1,'utf-8'));return _0x1f61fe[_0x46a2f9(0x132)]||'1.0.0';}catch{return _0x46a2f9(0x141);}}export async function checkCliVersion(){const _0x5dfce5=a182_0x1cc6,_0x40b9ae=getCurrentCliVersion(),_0x18a5e2=await getCliVersionPolicy(),_0x22538d=_0x18a5e2?.[_0x5dfce5(0x14e)]||null,_0x452170=_0x18a5e2?.[_0x5dfce5(0x130)]||null;let _0x2980e5=![],_0x11ed01=![];const _0x1702da=a182_0x23f5c8[_0x5dfce5(0x13c)](_0x40b9ae);if(_0x1702da&&_0x22538d)try{const _0xcc34ee=a182_0x23f5c8[_0x5dfce5(0x13c)](_0x22538d);if(_0xcc34ee)_0x2980e5=a182_0x23f5c8['lt'](_0x1702da,_0xcc34ee);}catch{}if(_0x1702da&&_0x452170)try{const _0x25b28c=a182_0x23f5c8[_0x5dfce5(0x13c)](_0x452170);if(_0x25b28c)_0x11ed01=a182_0x23f5c8['lt'](_0x1702da,_0x25b28c);}catch{}return _0x11ed01&&(_0x2980e5=!![]),{'currentVersion':_0x40b9ae,'stableVersion':_0x22538d,'minimumVersion':_0x452170,'needsUpgrade':_0x2980e5,'belowMinimum':_0x11ed01,'isPreRelease':![],'upgradeMessage':_0x18a5e2?.[_0x5dfce5(0x14d)],'minimumVersionMessage':_0x18a5e2?.[_0x5dfce5(0x14f)]};}export function printCliUpgradeWarning(_0xb523db){const _0x1b9ca1=a182_0x1cc6;if(!_0xb523db[_0x1b9ca1(0x147)]&&!_0xb523db[_0x1b9ca1(0x145)])return;const _0x162146='\x1b[31m',_0x56922e=_0x1b9ca1(0x139),_0x3f9dc7=_0x1b9ca1(0x13b),_0x6e21c0='\x1b[1m',_0x5b938c=getCliUpgradeCommand(_0xb523db);console[_0x1b9ca1(0x152)](),_0xb523db[_0x1b9ca1(0x145)]?(console[_0x1b9ca1(0x152)](''+_0x162146+_0x6e21c0+_0x1b9ca1(0x142)+_0x3f9dc7),console['log'](_0x162146+_0x1b9ca1(0x135)+_0xb523db[_0x1b9ca1(0x144)]+_0x3f9dc7),_0xb523db[_0x1b9ca1(0x130)]&&console[_0x1b9ca1(0x152)](_0x162146+_0x1b9ca1(0x12f)+_0xb523db[_0x1b9ca1(0x130)]+_0x3f9dc7),_0xb523db['stableVersion']&&_0xb523db['stableVersion']!==_0xb523db[_0x1b9ca1(0x130)]&&console[_0x1b9ca1(0x152)](_0x162146+_0x1b9ca1(0x148)+_0xb523db[_0x1b9ca1(0x14e)]+_0x3f9dc7),_0xb523db['minimumVersionMessage']&&console[_0x1b9ca1(0x152)](_0x162146+'\x20\x20\x20'+_0xb523db['minimumVersionMessage']+_0x3f9dc7),console[_0x1b9ca1(0x152)](_0x162146+_0x1b9ca1(0x13f)+_0x5b938c+_0x3f9dc7)):(console['log'](''+_0x56922e+_0x6e21c0+_0x1b9ca1(0x131)+_0x3f9dc7),console[_0x1b9ca1(0x152)](_0x56922e+_0x1b9ca1(0x135)+_0xb523db['currentVersion']+_0x3f9dc7),console[_0x1b9ca1(0x152)](_0x56922e+_0x1b9ca1(0x151)+_0xb523db[_0x1b9ca1(0x14e)]+_0x3f9dc7),_0xb523db[_0x1b9ca1(0x14d)]&&console['log'](_0x56922e+_0x1b9ca1(0x146)+_0xb523db[_0x1b9ca1(0x14d)]+_0x3f9dc7),console['log'](_0x56922e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5b938c+_0x3f9dc7)),console[_0x1b9ca1(0x152)]();}export function assertCliVersionSupported(_0x3e0097){const _0x52822f=a182_0x1cc6;if(!_0x3e0097[_0x52822f(0x145)])return;const _0x2478ce=[_0x3e0097[_0x52822f(0x14f)],'Current\x20version:\x20'+_0x3e0097[_0x52822f(0x144)],_0x3e0097[_0x52822f(0x130)]?_0x52822f(0x149)+_0x3e0097[_0x52822f(0x130)]:null,_0x52822f(0x136)+getCliUpgradeCommand(_0x3e0097)][_0x52822f(0x13d)](Boolean)[_0x52822f(0x14c)]('\x0a');throw CliErrors['validation'](_0x52822f(0x137),_0x2478ce);}
@@ -1 +1 @@
1
- (function(_0x2bf676,_0x5d9ba0){const _0x3fb190=a183_0xd876,_0x5b15cf=_0x2bf676();while(!![]){try{const _0x4e1e1b=-parseInt(_0x3fb190(0xa4))/0x1+-parseInt(_0x3fb190(0xa9))/0x2+-parseInt(_0x3fb190(0xa6))/0x3+-parseInt(_0x3fb190(0x9d))/0x4*(-parseInt(_0x3fb190(0x97))/0x5)+-parseInt(_0x3fb190(0xa0))/0x6*(parseInt(_0x3fb190(0x9a))/0x7)+parseInt(_0x3fb190(0xa8))/0x8*(-parseInt(_0x3fb190(0x95))/0x9)+parseInt(_0x3fb190(0xa2))/0xa;if(_0x4e1e1b===_0x5d9ba0)break;else _0x5b15cf['push'](_0x5b15cf['shift']());}catch(_0x389182){_0x5b15cf['push'](_0x5b15cf['shift']());}}}(a183_0xbe1e,0x841c9));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 a183_0xd876(_0x1180d8,_0x10456b){_0x1180d8=_0x1180d8-0x94;const _0xbe1ef2=a183_0xbe1e();let _0xd876fc=_0xbe1ef2[_0x1180d8];return _0xd876fc;}function pickString(_0x10467f){const _0x320dba=a183_0xd876;return typeof _0x10467f==='string'&&_0x10467f[_0x320dba(0x96)]()[_0x320dba(0x94)]>0x0?_0x10467f[_0x320dba(0x96)]():null;}function normalizeCliVersionPolicy(_0x11a0dd){const _0x595833=a183_0xd876;if(!_0x11a0dd||typeof _0x11a0dd!==_0x595833(0x99))return null;const _0x26ae58=_0x11a0dd,_0x562d42=_0x26ae58[_0x595833(0xa7)]&&typeof _0x26ae58['cli']===_0x595833(0x99)?_0x26ae58[_0x595833(0xa7)]:_0x26ae58,_0x14f314=pickString(_0x562d42['stableVersion'])||pickString(_0x562d42[_0x595833(0x9c)])||pickString(_0x562d42[_0x595833(0xa1)]),_0x30d82d=pickString(_0x562d42['minimumVersion'])||pickString(_0x562d42['minVersion']);if(!_0x14f314&&!_0x30d82d)return null;return{'stableVersion':_0x14f314,'minimumVersion':_0x30d82d,'upgradeMessage':pickString(_0x562d42['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x562d42[_0x595833(0x9f)])||undefined};}function a183_0xbe1e(){const _0x462d77=['object','511xxAzqO','now','latestVersion','32OjYThB','abort','minimumVersionMessage','78096IZQXAz','recommendedVersion','41684330XjifjC','json','1073229szjEDv','application/json','2001510KbRvKp','cli','390224oTgxXn','1798742QtvokA','length','171rjljbr','trim','555885ygIGuH','signal'];a183_0xbe1e=function(){return _0x462d77;};return a183_0xbe1e();}export async function fetchCliVersionPolicy(){const _0x247648=a183_0xd876,_0x1fad4f=new AbortController(),_0x5583d5=setTimeout(()=>_0x1fad4f[_0x247648(0x9e)](),FETCH_TIMEOUT_MS);try{const _0x3bb447=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x247648(0xa5)},'signal':_0x1fad4f[_0x247648(0x98)]});if(!_0x3bb447['ok'])return null;const _0x4852c1=await _0x3bb447[_0x247648(0xa3)]();return normalizeCliVersionPolicy(_0x4852c1);}catch{return null;}finally{clearTimeout(_0x5583d5);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x287252=a183_0xd876,_0x5472eb=Date[_0x287252(0x9b)]();if(hasCachedPolicy){const _0x4aa6b1=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5472eb-cacheTime<_0x4aa6b1)return cachedPolicy;}const _0x46ddff=await fetchCliVersionPolicy();return cachedPolicy=_0x46ddff,cacheTime=_0x5472eb,hasCachedPolicy=!![],_0x46ddff;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x24f8b6,_0x284db4){const _0x30edca=a183_0x1cd8,_0x2da731=_0x24f8b6();while(!![]){try{const _0x2a24fb=-parseInt(_0x30edca(0xe7))/0x1*(parseInt(_0x30edca(0xea))/0x2)+parseInt(_0x30edca(0xd5))/0x3*(-parseInt(_0x30edca(0xe9))/0x4)+parseInt(_0x30edca(0xdc))/0x5+-parseInt(_0x30edca(0xdb))/0x6*(-parseInt(_0x30edca(0xe6))/0x7)+parseInt(_0x30edca(0xd7))/0x8+parseInt(_0x30edca(0xdf))/0x9+-parseInt(_0x30edca(0xd6))/0xa*(parseInt(_0x30edca(0xe1))/0xb);if(_0x2a24fb===_0x284db4)break;else _0x2da731['push'](_0x2da731['shift']());}catch(_0x154e53){_0x2da731['push'](_0x2da731['shift']());}}}(a183_0x2798,0x4e377));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a183_0x1cd8(_0x41f71c,_0x1e9a4c){_0x41f71c=_0x41f71c-0xd5;const _0x2798c0=a183_0x2798();let _0x1cd85c=_0x2798c0[_0x41f71c];return _0x1cd85c;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x3b30f2){const _0x52ef11=a183_0x1cd8;return typeof _0x3b30f2==='string'&&_0x3b30f2[_0x52ef11(0xe8)]()['length']>0x0?_0x3b30f2[_0x52ef11(0xe8)]():null;}function normalizeCliVersionPolicy(_0x154274){const _0x322fa0=a183_0x1cd8;if(!_0x154274||typeof _0x154274!==_0x322fa0(0xe2))return null;const _0x3b1ec0=_0x154274,_0x434951=_0x3b1ec0[_0x322fa0(0xe5)]&&typeof _0x3b1ec0[_0x322fa0(0xe5)]===_0x322fa0(0xe2)?_0x3b1ec0['cli']:_0x3b1ec0,_0x4b4b5d=pickString(_0x434951['stableVersion'])||pickString(_0x434951[_0x322fa0(0xd9)])||pickString(_0x434951[_0x322fa0(0xe3)]),_0x3b2077=pickString(_0x434951[_0x322fa0(0xde)])||pickString(_0x434951['minVersion']);if(!_0x4b4b5d&&!_0x3b2077)return null;return{'stableVersion':_0x4b4b5d,'minimumVersion':_0x3b2077,'upgradeMessage':pickString(_0x434951[_0x322fa0(0xd8)])||undefined,'minimumVersionMessage':pickString(_0x434951[_0x322fa0(0xdd)])||undefined};}export async function fetchCliVersionPolicy(){const _0x1cc8cd=a183_0x1cd8,_0x1d483f=new AbortController(),_0x43c220=setTimeout(()=>_0x1d483f['abort'](),FETCH_TIMEOUT_MS);try{const _0x4a3d47=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x1d483f[_0x1cc8cd(0xe0)]});if(!_0x4a3d47['ok'])return null;const _0x27a739=await _0x4a3d47[_0x1cc8cd(0xe4)]();return normalizeCliVersionPolicy(_0x27a739);}catch{return null;}finally{clearTimeout(_0x43c220);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4e12d5=a183_0x1cd8,_0x9d9dc6=Date[_0x4e12d5(0xda)]();if(hasCachedPolicy){const _0x3c7e25=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x9d9dc6-cacheTime<_0x3c7e25)return cachedPolicy;}const _0x2b532b=await fetchCliVersionPolicy();return cachedPolicy=_0x2b532b,cacheTime=_0x9d9dc6,hasCachedPolicy=!![],_0x2b532b;}function a183_0x2798(){const _0x3f0f5b=['1029996rAXYtf','signal','22lnamrb','object','recommendedVersion','json','cli','7133oOyhyg','174829LqdPDG','trim','606124YXFSue','6dfzeIa','3BBMuad','75520IpGgdq','1124984AtRvoC','upgradeMessage','latestVersion','now','2490eHNecB','1667725dUNxWP','minimumVersionMessage','minimumVersion'];a183_0x2798=function(){return _0x3f0f5b;};return a183_0x2798();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a184_0x348f1e=a184_0x14a7;(function(_0x2d6e9c,_0xfec35e){const _0x41d1d1=a184_0x14a7,_0x287067=_0x2d6e9c();while(!![]){try{const _0x437a50=-parseInt(_0x41d1d1(0xf7))/0x1*(-parseInt(_0x41d1d1(0xf2))/0x2)+parseInt(_0x41d1d1(0xf6))/0x3*(parseInt(_0x41d1d1(0xf0))/0x4)+-parseInt(_0x41d1d1(0xfa))/0x5+-parseInt(_0x41d1d1(0xef))/0x6*(-parseInt(_0x41d1d1(0xf8))/0x7)+-parseInt(_0x41d1d1(0xfb))/0x8+-parseInt(_0x41d1d1(0xf3))/0x9*(-parseInt(_0x41d1d1(0xf9))/0xa)+parseInt(_0x41d1d1(0xf1))/0xb*(parseInt(_0x41d1d1(0xf5))/0xc);if(_0x437a50===_0xfec35e)break;else _0x287067['push'](_0x287067['shift']());}catch(_0x5d0f00){_0x287067['push'](_0x287067['shift']());}}}(a184_0x503d,0xc874e));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a184_0x3d7eec,getMultiAppConfigs as a184_0x413b47,getTemplateBaseUrl as a184_0xbeb9c0}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a184_0x14a7(_0x3d01f8,_0x4cbab8){_0x3d01f8=_0x3d01f8-0xed;const _0x503d77=a184_0x503d();let _0x14a7ed=_0x503d77[_0x3d01f8];return _0x14a7ed;}function a184_0x503d(){const _0x8cc2b9=['60OHCqLs','9tgzaJA','env','55344REHepf','1041wMZdLb','28289LYrioe','10023377KibZbQ','300660EdkSUG','2605735jyoezr','11815752KhHYdn','string','project','6cDreeW','4852fvpmFV','209xDJEVS'];a184_0x503d=function(){return _0x8cc2b9;};return a184_0x503d();}export{isInProject}from'../context.js';export function readConfig(_0x50f635){const _0x5b1993=a184_0x14a7,_0x52ccfd=readRawConfig(_0x50f635);return _0x52ccfd[_0x5b1993(0xf4)]&&typeof _0x52ccfd[_0x5b1993(0xf4)]===_0x5b1993(0xed)&&initEnv(_0x52ccfd['env']),_0x52ccfd;}export function getConfigAppCode(){return a184_0x3d7eec();}export function getMultiAppConfigs(_0x53ed9f=a184_0x348f1e(0xee)){return a184_0x413b47(_0x53ed9f);}export function getTemplateBaseUrl(){return a184_0xbeb9c0();}
1
+ (function(_0x25fad2,_0x310ae7){const _0x43b448=a184_0xc5a0,_0x4e59aa=_0x25fad2();while(!![]){try{const _0xe79103=-parseInt(_0x43b448(0x184))/0x1*(parseInt(_0x43b448(0x182))/0x2)+-parseInt(_0x43b448(0x17a))/0x3*(parseInt(_0x43b448(0x17f))/0x4)+parseInt(_0x43b448(0x185))/0x5*(-parseInt(_0x43b448(0x187))/0x6)+parseInt(_0x43b448(0x181))/0x7*(-parseInt(_0x43b448(0x186))/0x8)+-parseInt(_0x43b448(0x17d))/0x9*(-parseInt(_0x43b448(0x17c))/0xa)+parseInt(_0x43b448(0x180))/0xb+parseInt(_0x43b448(0x183))/0xc;if(_0xe79103===_0x310ae7)break;else _0x4e59aa['push'](_0x4e59aa['shift']());}catch(_0x2b8cbe){_0x4e59aa['push'](_0x4e59aa['shift']());}}}(a184_0x28ce,0xcc914));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a184_0x37c213,getMultiAppConfigs as a184_0x4d185a,getTemplateBaseUrl as a184_0xe4f27}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a184_0x28ce(){const _0x54d5a7=['2684022MxwvUh','6483785ytvinK','1066dnpBbh','38046360TNKXVm','2004GlESZa','40YNgoSM','8MAIhPB','32286xLBLAc','153UQjNXH','env','20oohuOF','719406OgLoYc','string','54828LKcjFy'];a184_0x28ce=function(){return _0x54d5a7;};return a184_0x28ce();}function a184_0xc5a0(_0x119a85,_0x3275c9){_0x119a85=_0x119a85-0x17a;const _0x28ceda=a184_0x28ce();let _0xc5a0ae=_0x28ceda[_0x119a85];return _0xc5a0ae;}export function readConfig(_0x2c9848){const _0x2715d0=a184_0xc5a0,_0x3de482=readRawConfig(_0x2c9848);return _0x3de482[_0x2715d0(0x17b)]&&typeof _0x3de482[_0x2715d0(0x17b)]===_0x2715d0(0x17e)&&initEnv(_0x3de482[_0x2715d0(0x17b)]),_0x3de482;}export function getConfigAppCode(){return a184_0x37c213();}export function getMultiAppConfigs(_0x3c511a='project'){return a184_0x4d185a(_0x3c511a);}export function getTemplateBaseUrl(){return a184_0xe4f27();}
@@ -1 +1 @@
1
- (function(_0x147c6d,_0x53d471){const _0x4acf18=a185_0x2acc,_0x196970=_0x147c6d();while(!![]){try{const _0x17bf86=-parseInt(_0x4acf18(0xaa))/0x1+-parseInt(_0x4acf18(0x9f))/0x2+parseInt(_0x4acf18(0x9d))/0x3+-parseInt(_0x4acf18(0xa8))/0x4*(parseInt(_0x4acf18(0xa3))/0x5)+-parseInt(_0x4acf18(0xa5))/0x6+-parseInt(_0x4acf18(0xa0))/0x7*(-parseInt(_0x4acf18(0xa2))/0x8)+parseInt(_0x4acf18(0xa6))/0x9;if(_0x17bf86===_0x53d471)break;else _0x196970['push'](_0x196970['shift']());}catch(_0x33c346){_0x196970['push'](_0x196970['shift']());}}}(a185_0x4812,0x331bf));import a185_0x48dd5c from'node:path';function a185_0x4812(){const _0x464f2e=['644602DloQUp','2093ojuvVO','join','4504MlTXpT','5UMYQWO','error','1795488RUYDug','4163733rKOgwF','mkdirSync','16844tvVyku','readdirSync','46504wypKow','name','copyFileSync','复制目录时出错:','751899LiPuoV','isDirectory'];a185_0x4812=function(){return _0x464f2e;};return a185_0x4812();}import a185_0x32df23 from'node:fs';function a185_0x2acc(_0x4f9d43,_0x285c35){_0x4f9d43=_0x4f9d43-0x9c;const _0x481274=a185_0x4812();let _0x2acc65=_0x481274[_0x4f9d43];return _0x2acc65;}export async function copyDirectory(_0x641a59,_0x473f00){const _0x20beeb=a185_0x2acc;try{const _0x3b574b=a185_0x32df23[_0x20beeb(0xa9)](_0x641a59,{'withFileTypes':!![]});a185_0x32df23[_0x20beeb(0xa7)](_0x473f00,{'recursive':!![]});for(const _0x18cdac of _0x3b574b){const _0x2d91d2=a185_0x48dd5c[_0x20beeb(0xa1)](_0x641a59,_0x18cdac[_0x20beeb(0xab)]),_0x3dc097=a185_0x48dd5c[_0x20beeb(0xa1)](_0x473f00,_0x18cdac[_0x20beeb(0xab)]);_0x18cdac[_0x20beeb(0x9e)]()?await copyDirectory(_0x2d91d2,_0x3dc097):a185_0x32df23[_0x20beeb(0xac)](_0x2d91d2,_0x3dc097);}}catch(_0x53c4f){console[_0x20beeb(0xa4)](_0x20beeb(0x9c),_0x53c4f);}}
1
+ (function(_0x80ac80,_0x514993){const _0x8cc4a1=a185_0x46f2,_0x4706eb=_0x80ac80();while(!![]){try{const _0x66d482=-parseInt(_0x8cc4a1(0x7f))/0x1*(-parseInt(_0x8cc4a1(0x80))/0x2)+parseInt(_0x8cc4a1(0x81))/0x3+-parseInt(_0x8cc4a1(0x77))/0x4+parseInt(_0x8cc4a1(0x79))/0x5*(-parseInt(_0x8cc4a1(0x7e))/0x6)+-parseInt(_0x8cc4a1(0x78))/0x7*(-parseInt(_0x8cc4a1(0x7a))/0x8)+parseInt(_0x8cc4a1(0x74))/0x9*(-parseInt(_0x8cc4a1(0x76))/0xa)+-parseInt(_0x8cc4a1(0x73))/0xb;if(_0x66d482===_0x514993)break;else _0x4706eb['push'](_0x4706eb['shift']());}catch(_0x19f50d){_0x4706eb['push'](_0x4706eb['shift']());}}}(a185_0x1315,0x4f1e4));function a185_0x46f2(_0x2c0c0c,_0x4ebec5){_0x2c0c0c=_0x2c0c0c-0x73;const _0x131597=a185_0x1315();let _0x46f2ee=_0x131597[_0x2c0c0c];return _0x46f2ee;}function a185_0x1315(){const _0x4cecaa=['1276418FoTKRH','63zGeoQD','mkdirSync','40350UdkjOt','2356728MqoHKK','7TtWtdi','10ldJHdT','2436520XKVfjJ','readdirSync','join','name','671340IHSrMt','136991SrFHCY','8RSgOnA','1286352TQFvqp'];a185_0x1315=function(){return _0x4cecaa;};return a185_0x1315();}import a185_0x42e0ca from'node:path';import a185_0x587ffd from'node:fs';export async function copyDirectory(_0x1ec757,_0x64db7c){const _0x54709e=a185_0x46f2;try{const _0x28d21d=a185_0x587ffd[_0x54709e(0x7b)](_0x1ec757,{'withFileTypes':!![]});a185_0x587ffd[_0x54709e(0x75)](_0x64db7c,{'recursive':!![]});for(const _0x1c5c7f of _0x28d21d){const _0x47b100=a185_0x42e0ca[_0x54709e(0x7c)](_0x1ec757,_0x1c5c7f[_0x54709e(0x7d)]),_0x42fbab=a185_0x42e0ca[_0x54709e(0x7c)](_0x64db7c,_0x1c5c7f['name']);_0x1c5c7f['isDirectory']()?await copyDirectory(_0x47b100,_0x42fbab):a185_0x587ffd['copyFileSync'](_0x47b100,_0x42fbab);}}catch(_0x4afbfc){console['error']('复制目录时出错:',_0x4afbfc);}}
@@ -1 +1 @@
1
- (function(_0x3c2045,_0x2bfa21){const _0x452033=a186_0x46bc,_0x1b01f3=_0x3c2045();while(!![]){try{const _0x2c8b66=parseInt(_0x452033(0x132))/0x1+-parseInt(_0x452033(0x128))/0x2*(-parseInt(_0x452033(0x131))/0x3)+-parseInt(_0x452033(0x12b))/0x4+-parseInt(_0x452033(0x130))/0x5+-parseInt(_0x452033(0x133))/0x6*(-parseInt(_0x452033(0x12f))/0x7)+parseInt(_0x452033(0x12e))/0x8+-parseInt(_0x452033(0x12d))/0x9;if(_0x2c8b66===_0x2bfa21)break;else _0x1b01f3['push'](_0x1b01f3['shift']());}catch(_0xdeafd8){_0x1b01f3['push'](_0x1b01f3['shift']());}}}(a186_0xa0ee,0x5d66f));function a186_0x46bc(_0x4cb295,_0x1f5ac7){_0x4cb295=_0x4cb295-0x127;const _0xa0eee8=a186_0xa0ee();let _0x46bc4f=_0xa0eee8[_0x4cb295];return _0x46bc4f;}function toFiniteNumber(_0x23383b){const _0x36ba22=a186_0x46bc;if(typeof _0x23383b===_0x36ba22(0x12a)&&Number['isFinite'](_0x23383b))return _0x23383b;if(typeof _0x23383b===_0x36ba22(0x127)){const _0xd8ce9=_0x23383b[_0x36ba22(0x12c)]();if(!_0xd8ce9)return undefined;const _0x458623=Number(_0xd8ce9);if(Number['isFinite'](_0x458623))return _0x458623;}return undefined;}function a186_0xa0ee(){const _0x1d8da0=['16vIxwFu','object','number','1166872fpDOJt','trim','10103607eMNiMD','5358112DNzTNI','21AEdEmc','1804980VNuZXR','261762rxKfvl','674559DfTuWs','231114zEJRBl','string'];a186_0xa0ee=function(){return _0x1d8da0;};return a186_0xa0ee();}export function normalizeEntityWithIdResponse(_0x1e1abb){const _0x22d423=a186_0x46bc,_0x205213=toFiniteNumber(_0x1e1abb);if(_0x205213!==undefined)return{'id':_0x205213,'entity':{'id':_0x205213}};if(!_0x1e1abb||typeof _0x1e1abb!==_0x22d423(0x129))return{'id':undefined,'entity':{}};const _0x302229={..._0x1e1abb},_0x1cf230=toFiniteNumber(_0x302229['id']);return _0x1cf230!==undefined&&(_0x302229['id']=_0x1cf230),{'id':_0x1cf230,'entity':_0x302229};}
1
+ function a186_0x2a14(){const _0x4c766d=['115987UfyeZf','821256QVPemp','822255bxCvgY','5547703scZIXc','43970YPfkLK','14MZmERv','4254264RQFvBs','235PkaGlK','trim','4ypIgpK','228wVorax','number','242xfUFvZ','isFinite','513ceVqUy','object'];a186_0x2a14=function(){return _0x4c766d;};return a186_0x2a14();}(function(_0xdc4122,_0x1e75ab){const _0x36c102=a186_0x268f,_0x1f9b40=_0xdc4122();while(!![]){try{const _0x10db6d=parseInt(_0x36c102(0xee))/0x1*(parseInt(_0x36c102(0xf3))/0x2)+-parseInt(_0x36c102(0xf0))/0x3*(parseInt(_0x36c102(0xf7))/0x4)+parseInt(_0x36c102(0xf5))/0x5*(-parseInt(_0x36c102(0xf8))/0x6)+parseInt(_0x36c102(0xf1))/0x7+parseInt(_0x36c102(0xf4))/0x8+-parseInt(_0x36c102(0xec))/0x9*(-parseInt(_0x36c102(0xf2))/0xa)+parseInt(_0x36c102(0xea))/0xb*(-parseInt(_0x36c102(0xef))/0xc);if(_0x10db6d===_0x1e75ab)break;else _0x1f9b40['push'](_0x1f9b40['shift']());}catch(_0x16cb02){_0x1f9b40['push'](_0x1f9b40['shift']());}}}(a186_0x2a14,0x93c9f));function toFiniteNumber(_0x2602b1){const _0x354940=a186_0x268f;if(typeof _0x2602b1===_0x354940(0xf9)&&Number['isFinite'](_0x2602b1))return _0x2602b1;if(typeof _0x2602b1==='string'){const _0x29db97=_0x2602b1[_0x354940(0xf6)]();if(!_0x29db97)return undefined;const _0x330802=Number(_0x29db97);if(Number[_0x354940(0xeb)](_0x330802))return _0x330802;}return undefined;}function a186_0x268f(_0x318b68,_0x5aa706){_0x318b68=_0x318b68-0xea;const _0x2a146c=a186_0x2a14();let _0x268f38=_0x2a146c[_0x318b68];return _0x268f38;}export function normalizeEntityWithIdResponse(_0x3c8a56){const _0x416b65=a186_0x268f,_0xf72c8e=toFiniteNumber(_0x3c8a56);if(_0xf72c8e!==undefined)return{'id':_0xf72c8e,'entity':{'id':_0xf72c8e}};if(!_0x3c8a56||typeof _0x3c8a56!==_0x416b65(0xed))return{'id':undefined,'entity':{}};const _0x207acd={..._0x3c8a56},_0x9bce92=toFiniteNumber(_0x207acd['id']);return _0x9bce92!==undefined&&(_0x207acd['id']=_0x9bce92),{'id':_0x9bce92,'entity':_0x207acd};}
@@ -1 +1 @@
1
- function a187_0x3588(_0x3a34b0,_0x25176f){_0x3a34b0=_0x3a34b0-0x149;const _0x5e13d9=a187_0x5e13();let _0x3588d0=_0x5e13d9[_0x3a34b0];return _0x3588d0;}(function(_0x35c2ec,_0x5e5629){const _0x4fa272=a187_0x3588,_0x1eeecd=_0x35c2ec();while(!![]){try{const _0x2e4c8b=parseInt(_0x4fa272(0x150))/0x1+parseInt(_0x4fa272(0x14d))/0x2+parseInt(_0x4fa272(0x14c))/0x3*(-parseInt(_0x4fa272(0x14f))/0x4)+-parseInt(_0x4fa272(0x14a))/0x5+parseInt(_0x4fa272(0x151))/0x6*(-parseInt(_0x4fa272(0x152))/0x7)+parseInt(_0x4fa272(0x14e))/0x8+parseInt(_0x4fa272(0x149))/0x9;if(_0x2e4c8b===_0x5e5629)break;else _0x1eeecd['push'](_0x1eeecd['shift']());}catch(_0x5aaa8e){_0x1eeecd['push'](_0x1eeecd['shift']());}}}(a187_0x5e13,0x6fdcc));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a187_0x5e13(){const _0x4057be=['6bonXRl','1377960MuljbI','2551608mTLtIh','1799364sjsioN','786755dGoaVl','25008unNoUG','959gXzppB','2106468rEUqWu','499260sbEKyq','isDirectory'];a187_0x5e13=function(){return _0x4057be;};return a187_0x5e13();}import{join}from'node:path';export async function copyDir(_0x5dc2e7,_0x56789a){const _0x57427c=a187_0x3588,_0x27bb20=statSync(_0x5dc2e7);if(_0x27bb20[_0x57427c(0x14b)]()){!existsSync(_0x56789a)&&mkdirSync(_0x56789a,{'recursive':!![]});const _0x3c458e=readdirSync(_0x5dc2e7);for(const _0x1520e3 of _0x3c458e){await copyDir(join(_0x5dc2e7,_0x1520e3),join(_0x56789a,_0x1520e3));}}else copyFileSync(_0x5dc2e7,_0x56789a);}export function ensureDir(_0x3e0aa0){!existsSync(_0x3e0aa0)&&mkdirSync(_0x3e0aa0,{'recursive':!![]});}export function pathExists(_0x238fac){return existsSync(_0x238fac);}
1
+ (function(_0x10bebb,_0x5256ef){const _0x5da448=a187_0xf97d,_0x227331=_0x10bebb();while(!![]){try{const _0x3551d0=parseInt(_0x5da448(0x70))/0x1+parseInt(_0x5da448(0x6f))/0x2+parseInt(_0x5da448(0x6b))/0x3+-parseInt(_0x5da448(0x6d))/0x4+parseInt(_0x5da448(0x6e))/0x5+parseInt(_0x5da448(0x6c))/0x6+-parseInt(_0x5da448(0x71))/0x7;if(_0x3551d0===_0x5256ef)break;else _0x227331['push'](_0x227331['shift']());}catch(_0x270040){_0x227331['push'](_0x227331['shift']());}}}(a187_0x4fb6,0xe9bfd));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4e99da,_0x47bad8){const _0x46bb5c=a187_0xf97d,_0x343ba5=statSync(_0x4e99da);if(_0x343ba5[_0x46bb5c(0x72)]()){!existsSync(_0x47bad8)&&mkdirSync(_0x47bad8,{'recursive':!![]});const _0x4ed4d7=readdirSync(_0x4e99da);for(const _0x1387ca of _0x4ed4d7){await copyDir(join(_0x4e99da,_0x1387ca),join(_0x47bad8,_0x1387ca));}}else copyFileSync(_0x4e99da,_0x47bad8);}function a187_0x4fb6(){const _0x147f47=['isDirectory','2588754sjXhcZ','4476978uOmUrG','4394352GbqAlt','4739040GOAwGY','3262350VXISPK','1135799OvNZzF','22874866hcYNjo'];a187_0x4fb6=function(){return _0x147f47;};return a187_0x4fb6();}function a187_0xf97d(_0x32c17f,_0x1abffb){_0x32c17f=_0x32c17f-0x6b;const _0x4fb6ac=a187_0x4fb6();let _0xf97d3=_0x4fb6ac[_0x32c17f];return _0xf97d3;}export function ensureDir(_0x60b980){!existsSync(_0x60b980)&&mkdirSync(_0x60b980,{'recursive':!![]});}export function pathExists(_0x4b51bc){return existsSync(_0x4b51bc);}
@@ -1 +1 @@
1
- const a188_0x2a985f=a188_0x3cdf;(function(_0x9ba94a,_0x592d0a){const _0x6dcf5b=a188_0x3cdf,_0x2a1961=_0x9ba94a();while(!![]){try{const _0x4625d6=parseInt(_0x6dcf5b(0x186))/0x1*(-parseInt(_0x6dcf5b(0x184))/0x2)+-parseInt(_0x6dcf5b(0x174))/0x3*(parseInt(_0x6dcf5b(0x191))/0x4)+parseInt(_0x6dcf5b(0x192))/0x5*(-parseInt(_0x6dcf5b(0x17b))/0x6)+-parseInt(_0x6dcf5b(0x16e))/0x7+parseInt(_0x6dcf5b(0x183))/0x8+-parseInt(_0x6dcf5b(0x179))/0x9*(-parseInt(_0x6dcf5b(0x178))/0xa)+-parseInt(_0x6dcf5b(0x171))/0xb*(-parseInt(_0x6dcf5b(0x173))/0xc);if(_0x4625d6===_0x592d0a)break;else _0x2a1961['push'](_0x2a1961['shift']());}catch(_0x1cd259){_0x2a1961['push'](_0x2a1961['shift']());}}}(a188_0x55ef,0x336e5));import{mkdirSync,writeFileSync}from'node:fs';function a188_0x3cdf(_0xfe81c8,_0x423156){_0xfe81c8=_0xfe81c8-0x16d;const _0x55eff0=a188_0x55ef();let _0x3cdfe9=_0x55eff0[_0xfe81c8];return _0x3cdfe9;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a188_0x55ef(){const _0x42c17d=['title','1OSaFqH','CDN\x20返回数据格式错误','application/json','replace','utf-8','cache','guides','extendContent','.md','join','.lovrabet','4kBVSgC','15niDDaF','trimEnd','899710SqNPbS','entries','length','8932242jkLwwn','/skills/guides.json','12NvnzFe','749667OEOjva','lastUpdated','content','map','1110RhoURy','19611ThXDfG','keys','183342ZAliGK','json','status','\x0a\x0a>更新时间:','path','skillTemplate','object','.lovrabet/skill/guides','101992sOUYqx','771778RojVwP'];a188_0x55ef=function(){return _0x42c17d;};return a188_0x55ef();}function getGuidesCdnUrl(){const _0x43b401=a188_0x3cdf,_0x2cdd11=getTemplateBaseUrl();return _0x2cdd11+_0x43b401(0x172);}const CACHE_DIR=join(homedir(),a188_0x2a985f(0x190),a188_0x2a985f(0x18b));export async function fetchGuidesFromCDN(){const _0x537a1a=a188_0x2a985f,_0x1faca7=getGuidesCdnUrl(),_0x5b6606=await fetch(_0x1faca7,{'headers':{'Accept':_0x537a1a(0x188)}});if(!_0x5b6606['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x5b6606[_0x537a1a(0x17d)]+'\x20'+_0x5b6606['statusText']);const _0x20b137=await _0x5b6606[_0x537a1a(0x17c)]();if(!_0x20b137['guides']||typeof _0x20b137['guides']!==_0x537a1a(0x181))throw new Error(_0x537a1a(0x187));return _0x20b137;}export function writeGuidesToProject(_0x51f46c,_0x69e3ef,_0x4e2c1b=a188_0x2a985f(0x182),_0x40306a){const _0x77c30f=a188_0x2a985f,_0x1b4ad9=join(_0x69e3ef,_0x4e2c1b);mkdirSync(_0x1b4ad9,{'recursive':!![]});for(const [_0x4415d8,_0x3a09ea]of Object[_0x77c30f(0x16f)](_0x51f46c[_0x77c30f(0x18c)])){let _0x51af99=_0x3a09ea[_0x77c30f(0x176)];_0x3a09ea[_0x77c30f(0x175)]&&(_0x51af99=appendUpdateTime(_0x51af99,_0x3a09ea['lastUpdated'])),writeFileSync(join(_0x1b4ad9,_0x4415d8+_0x77c30f(0x18e)),_0x51af99,_0x77c30f(0x18a));}}export function appendUpdateTime(_0x3fb154,_0x5daa02){const _0x4373f=a188_0x2a985f;return _0x3fb154=_0x3fb154[_0x4373f(0x189)](/\n*>更新时间:.*$/m,''),_0x3fb154[_0x4373f(0x16d)]()+(_0x4373f(0x17e)+_0x5daa02);}export function getSkillTemplate(_0x5cecfd){const _0x58a813=a188_0x2a985f;return _0x5cecfd[_0x58a813(0x180)]?.[_0x58a813(0x176)]||'';}export function appendExtendContents(_0x45d780,_0x15e960,_0x12080c){const _0x177d49=a188_0x2a985f,_0x701878=[];for(const [,_0x570028]of Object[_0x177d49(0x16f)](_0x15e960[_0x177d49(0x18c)])){_0x570028[_0x177d49(0x18d)]&&_0x701878['push'](_0x570028[_0x177d49(0x18d)][_0x177d49(0x16d)]());}if(_0x701878[_0x177d49(0x170)]===0x0)return _0x45d780;return _0x45d780[_0x177d49(0x16d)]()+'\x0a\x0a'+_0x701878[_0x177d49(0x18f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x31b80e,_0x2c65ba,_0x400abf){const _0x3ce65f=a188_0x2a985f,_0x3b8b33=getSkillTemplate(_0x31b80e);if(!_0x3b8b33)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x4fe1f1=dirname(_0x2c65ba);mkdirSync(_0x4fe1f1,{'recursive':!![]});let _0x3e0770=_0x3b8b33['replace'](/\{\{IDE_NAME\}\}/g,_0x400abf);_0x3e0770=appendExtendContents(_0x3e0770,_0x31b80e),_0x31b80e['skillTemplate'][_0x3ce65f(0x175)]&&(_0x3e0770=appendUpdateTime(_0x3e0770,_0x31b80e[_0x3ce65f(0x180)][_0x3ce65f(0x175)])),writeFileSync(_0x2c65ba,_0x3e0770,_0x3ce65f(0x18a));}export async function installGuides(_0x31aeec){const _0xa0d432=a188_0x2a985f,_0x1b925d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1b925d,_0x31aeec),Object[_0xa0d432(0x17a)](_0x1b925d[_0xa0d432(0x18c)])['length'];}export function getGuidesSummary(_0x498473){const _0x5d5bfb=a188_0x2a985f;return Object[_0x5d5bfb(0x16f)](_0x498473[_0x5d5bfb(0x18c)])[_0x5d5bfb(0x177)](([_0x4f2f44,_0x2430ad])=>({'key':_0x4f2f44,'title':_0x2430ad[_0x5d5bfb(0x185)],'path':_0x2430ad[_0x5d5bfb(0x17f)]}));}
1
+ function a188_0x3834(){const _0xcc2043=['object','.lovrabet','utf-8','application/json','/skills/guides.json','\x0a\x0a>更新时间:','path','trimEnd','CDN\x20请求失败:\x20','replace','push','2VpjGVW','731991eFNQgM','length','content','6084670VLjnIZ','CDN\x20返回数据格式错误','guides','1194443jnLyvr','1000624dTiHYx','keys','extendContent','skillTemplate','join','title','statusText','lastUpdated','cache','.md','3463551ppXCmh','5357120SPuVkT','50742tsicZT','entries','json','status'];a188_0x3834=function(){return _0xcc2043;};return a188_0x3834();}const a188_0x215c33=a188_0x44f5;(function(_0x168495,_0x578fc8){const _0x483ff3=a188_0x44f5,_0x206e9b=_0x168495();while(!![]){try{const _0x25d995=parseInt(_0x483ff3(0x1c4))/0x1*(parseInt(_0x483ff3(0x1bd))/0x2)+parseInt(_0x483ff3(0x1be))/0x3+-parseInt(_0x483ff3(0x1ad))/0x4+parseInt(_0x483ff3(0x1c1))/0x5+parseInt(_0x483ff3(0x1ae))/0x6+-parseInt(_0x483ff3(0x1ac))/0x7+-parseInt(_0x483ff3(0x1c5))/0x8;if(_0x25d995===_0x578fc8)break;else _0x206e9b['push'](_0x206e9b['shift']());}catch(_0x5911b9){_0x206e9b['push'](_0x206e9b['shift']());}}}(a188_0x3834,0xac0a8));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x12fe74=a188_0x44f5,_0x450d1a=getTemplateBaseUrl();return _0x450d1a+_0x12fe74(0x1b6);}const CACHE_DIR=join(homedir(),a188_0x215c33(0x1b3),a188_0x215c33(0x1aa));export async function fetchGuidesFromCDN(){const _0x4bd70d=a188_0x215c33,_0x11cad6=getGuidesCdnUrl(),_0x408d7d=await fetch(_0x11cad6,{'headers':{'Accept':_0x4bd70d(0x1b5)}});if(!_0x408d7d['ok'])throw new Error(_0x4bd70d(0x1ba)+_0x408d7d[_0x4bd70d(0x1b1)]+'\x20'+_0x408d7d[_0x4bd70d(0x1cb)]);const _0x36814d=await _0x408d7d[_0x4bd70d(0x1b0)]();if(!_0x36814d['guides']||typeof _0x36814d[_0x4bd70d(0x1c3)]!==_0x4bd70d(0x1b2))throw new Error(_0x4bd70d(0x1c2));return _0x36814d;}function a188_0x44f5(_0x4a577c,_0x206c1f){_0x4a577c=_0x4a577c-0x1a9;const _0x3834dd=a188_0x3834();let _0x44f5b6=_0x3834dd[_0x4a577c];return _0x44f5b6;}export function writeGuidesToProject(_0x331420,_0x5f8a27,_0x35e32c='.lovrabet/skill/guides',_0x5156a4){const _0x20bfb9=a188_0x215c33,_0x47f30c=join(_0x5f8a27,_0x35e32c);mkdirSync(_0x47f30c,{'recursive':!![]});for(const [_0x2276db,_0x362a89]of Object['entries'](_0x331420['guides'])){let _0x5c0f02=_0x362a89[_0x20bfb9(0x1c0)];_0x362a89['lastUpdated']&&(_0x5c0f02=appendUpdateTime(_0x5c0f02,_0x362a89[_0x20bfb9(0x1a9)])),writeFileSync(join(_0x47f30c,_0x2276db+_0x20bfb9(0x1ab)),_0x5c0f02,_0x20bfb9(0x1b4));}}export function appendUpdateTime(_0x5b4628,_0x346570){const _0x1377d1=a188_0x215c33;return _0x5b4628=_0x5b4628[_0x1377d1(0x1bb)](/\n*>更新时间:.*$/m,''),_0x5b4628[_0x1377d1(0x1b9)]()+(_0x1377d1(0x1b7)+_0x346570);}export function getSkillTemplate(_0x2f0f73){const _0x3d6167=a188_0x215c33;return _0x2f0f73['skillTemplate']?.[_0x3d6167(0x1c0)]||'';}export function appendExtendContents(_0x4a9ae8,_0x43a33e,_0x2cea18){const _0x62d64d=a188_0x215c33,_0x485b49=[];for(const [,_0xf75a19]of Object[_0x62d64d(0x1af)](_0x43a33e[_0x62d64d(0x1c3)])){_0xf75a19[_0x62d64d(0x1c7)]&&_0x485b49[_0x62d64d(0x1bc)](_0xf75a19[_0x62d64d(0x1c7)][_0x62d64d(0x1b9)]());}if(_0x485b49[_0x62d64d(0x1bf)]===0x0)return _0x4a9ae8;return _0x4a9ae8['trimEnd']()+'\x0a\x0a'+_0x485b49[_0x62d64d(0x1c9)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2cb842,_0x521b02,_0x10ae8b){const _0x261445=a188_0x215c33,_0x3167dd=getSkillTemplate(_0x2cb842);if(!_0x3167dd)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x3eeb52=dirname(_0x521b02);mkdirSync(_0x3eeb52,{'recursive':!![]});let _0x57b20=_0x3167dd[_0x261445(0x1bb)](/\{\{IDE_NAME\}\}/g,_0x10ae8b);_0x57b20=appendExtendContents(_0x57b20,_0x2cb842),_0x2cb842[_0x261445(0x1c8)][_0x261445(0x1a9)]&&(_0x57b20=appendUpdateTime(_0x57b20,_0x2cb842[_0x261445(0x1c8)][_0x261445(0x1a9)])),writeFileSync(_0x521b02,_0x57b20,_0x261445(0x1b4));}export async function installGuides(_0xf3a413){const _0x50b2e7=a188_0x215c33,_0x4a87fa=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4a87fa,_0xf3a413),Object[_0x50b2e7(0x1c6)](_0x4a87fa[_0x50b2e7(0x1c3)])[_0x50b2e7(0x1bf)];}export function getGuidesSummary(_0x18c238){const _0x32f45f=a188_0x215c33;return Object[_0x32f45f(0x1af)](_0x18c238[_0x32f45f(0x1c3)])['map'](([_0x125de2,_0x11d0f6])=>({'key':_0x125de2,'title':_0x11d0f6[_0x32f45f(0x1ca)],'path':_0x11d0f6[_0x32f45f(0x1b8)]}));}
@@ -1 +1 @@
1
- function a189_0x59c6(_0x1136ab,_0x3dba36){_0x1136ab=_0x1136ab-0x137;const _0x3fa93c=a189_0x3fa9();let _0x59c696=_0x3fa93c[_0x1136ab];return _0x59c696;}(function(_0x73732e,_0x539d08){const _0xbc51ac=a189_0x59c6,_0x1d249a=_0x73732e();while(!![]){try{const _0x196790=-parseInt(_0xbc51ac(0x144))/0x1+-parseInt(_0xbc51ac(0x142))/0x2+-parseInt(_0xbc51ac(0x143))/0x3+parseInt(_0xbc51ac(0x146))/0x4+parseInt(_0xbc51ac(0x14b))/0x5+parseInt(_0xbc51ac(0x14c))/0x6+-parseInt(_0xbc51ac(0x13b))/0x7;if(_0x196790===_0x539d08)break;else _0x1d249a['push'](_0x1d249a['shift']());}catch(_0xe35c35){_0x1d249a['push'](_0x1d249a['shift']());}}}(a189_0x3fa9,0xd4a70));export async function httpRequest(_0xc4a5b0,_0x250d59={}){const _0xedfd89=a189_0x59c6,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x250d59;let _0x5bd443=null;for(let _0xeef205=0x0;_0xeef205<=retries;_0xeef205++){try{const _0x3dc8ed=new AbortController(),_0x462617=setTimeout(()=>_0x3dc8ed[_0xedfd89(0x141)](),timeout),_0x584dc4=await fetch(_0xc4a5b0,{'headers':headers,'signal':_0x3dc8ed['signal']});clearTimeout(_0x462617);let _0x30a1f3;const _0x496a26=_0x584dc4['headers'][_0xedfd89(0x145)](_0xedfd89(0x139));return _0x496a26?.[_0xedfd89(0x14e)](_0xedfd89(0x13c))?_0x30a1f3=await _0x584dc4['json']():_0x30a1f3=await _0x584dc4[_0xedfd89(0x150)](),{'ok':_0x584dc4['ok'],'status':_0x584dc4[_0xedfd89(0x13e)],'statusText':_0x584dc4[_0xedfd89(0x13f)],'data':_0x30a1f3,'headers':_0x584dc4[_0xedfd89(0x140)],'url':_0x584dc4[_0xedfd89(0x137)],'text':()=>_0x584dc4[_0xedfd89(0x150)]()};}catch(_0x52cd0b){_0x5bd443=_0x52cd0b instanceof Error?_0x52cd0b:new Error(String(_0x52cd0b));if(_0xeef205===retries)break;if(shouldRetry(_0x52cd0b)){console[_0xedfd89(0x13a)](_0xedfd89(0x14d)+retryDelay+_0xedfd89(0x147)+(_0xeef205+0x1)+_0xedfd89(0x14f)),await sleep(retryDelay);continue;}else break;}}throw _0x5bd443||new Error('Request\x20failed');}function a189_0x3fa9(){const _0x36eb4a=['application/json','TypeError','status','statusText','headers','abort','1645490NeFCck','177528vTLyDQ','1171775laQuYA','get','4181044hdveUH','ms\x20后进行第\x20','message','fetch','name','8588100fCdOuC','10166688qjCyUa','*\x20请求失败,','includes','\x20次重试...','text','url','ECONNRESET','content-type','log','10728263gHChNW'];a189_0x3fa9=function(){return _0x36eb4a;};return a189_0x3fa9();}function shouldRetry(_0x5dc0c5){const _0x265dbe=a189_0x59c6;if(_0x5dc0c5 instanceof Error){if(_0x5dc0c5[_0x265dbe(0x14a)]==='AbortError')return![];if(_0x5dc0c5['name']===_0x265dbe(0x13d)&&_0x5dc0c5[_0x265dbe(0x148)][_0x265dbe(0x14e)](_0x265dbe(0x149)))return!![];if(_0x5dc0c5[_0x265dbe(0x148)][_0x265dbe(0x14e)](_0x265dbe(0x138)))return!![];if(_0x5dc0c5['message'][_0x265dbe(0x14e)]('ENOTFOUND'))return![];}return![];}function sleep(_0x150543){return new Promise(_0x1e9efb=>setTimeout(_0x1e9efb,_0x150543));}export function validateUrl(_0xf62664){try{return new URL(_0xf62664),!![];}catch{return![];}}
1
+ (function(_0x27c0f6,_0x47e2da){const _0x42fd90=a189_0x5c90,_0x67ad01=_0x27c0f6();while(!![]){try{const _0x46f794=-parseInt(_0x42fd90(0xc0))/0x1*(-parseInt(_0x42fd90(0xad))/0x2)+parseInt(_0x42fd90(0xc9))/0x3*(parseInt(_0x42fd90(0xbd))/0x4)+parseInt(_0x42fd90(0xbe))/0x5+parseInt(_0x42fd90(0xb7))/0x6*(-parseInt(_0x42fd90(0xae))/0x7)+parseInt(_0x42fd90(0xbb))/0x8*(parseInt(_0x42fd90(0xb2))/0x9)+-parseInt(_0x42fd90(0xab))/0xa*(parseInt(_0x42fd90(0xbc))/0xb)+-parseInt(_0x42fd90(0xc5))/0xc;if(_0x46f794===_0x47e2da)break;else _0x67ad01['push'](_0x67ad01['shift']());}catch(_0x5ca6ab){_0x67ad01['push'](_0x67ad01['shift']());}}}(a189_0xbb83,0x2c46c));function a189_0x5c90(_0x5b42a9,_0x5ebdbf){_0x5b42a9=_0x5b42a9-0xab;const _0xbb8332=a189_0xbb83();let _0x5c9040=_0xbb8332[_0x5b42a9];return _0x5c9040;}export async function httpRequest(_0x56ebcf,_0x56dc22={}){const _0x5820ba=a189_0x5c90,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x56dc22;let _0x3ddbd0=null;for(let _0x9cbd02=0x0;_0x9cbd02<=retries;_0x9cbd02++){try{const _0x503816=new AbortController(),_0xfd0b75=setTimeout(()=>_0x503816[_0x5820ba(0xc1)](),timeout),_0x5c70bf=await fetch(_0x56ebcf,{'headers':headers,'signal':_0x503816[_0x5820ba(0xb4)]});clearTimeout(_0xfd0b75);let _0x5dd385;const _0x233dba=_0x5c70bf[_0x5820ba(0xac)]['get'](_0x5820ba(0xb8));return _0x233dba?.[_0x5820ba(0xb9)](_0x5820ba(0xc8))?_0x5dd385=await _0x5c70bf[_0x5820ba(0xc3)]():_0x5dd385=await _0x5c70bf[_0x5820ba(0xba)](),{'ok':_0x5c70bf['ok'],'status':_0x5c70bf[_0x5820ba(0xaf)],'statusText':_0x5c70bf[_0x5820ba(0xc7)],'data':_0x5dd385,'headers':_0x5c70bf['headers'],'url':_0x5c70bf[_0x5820ba(0xc2)],'text':()=>_0x5c70bf['text']()};}catch(_0x2e3704){_0x3ddbd0=_0x2e3704 instanceof Error?_0x2e3704:new Error(String(_0x2e3704));if(_0x9cbd02===retries)break;if(shouldRetry(_0x2e3704)){console[_0x5820ba(0xb1)](_0x5820ba(0xc4)+retryDelay+_0x5820ba(0xb5)+(_0x9cbd02+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x3ddbd0||new Error('Request\x20failed');}function a189_0xbb83(){const _0x490ddc=['201QaRvrt','230BaGVod','headers','134NhyPgY','29113ukFRZa','status','AbortError','log','18ZIlBxc','name','signal','ms\x20后进行第\x20','TypeError','510rBXEjb','content-type','includes','text','888BqNDht','12793DbSPzi','14244MLkdEz','142570pnmOWN','ECONNRESET','5059gLhHzX','abort','url','json','*\x20请求失败,','535872yihwov','message','statusText','application/json'];a189_0xbb83=function(){return _0x490ddc;};return a189_0xbb83();}function shouldRetry(_0x2a2e9e){const _0x88bcaa=a189_0x5c90;if(_0x2a2e9e instanceof Error){if(_0x2a2e9e[_0x88bcaa(0xb3)]===_0x88bcaa(0xb0))return![];if(_0x2a2e9e[_0x88bcaa(0xb3)]===_0x88bcaa(0xb6)&&_0x2a2e9e['message']['includes']('fetch'))return!![];if(_0x2a2e9e[_0x88bcaa(0xc6)][_0x88bcaa(0xb9)](_0x88bcaa(0xbf)))return!![];if(_0x2a2e9e['message'][_0x88bcaa(0xb9)]('ENOTFOUND'))return![];}return![];}function sleep(_0x45c689){return new Promise(_0x345f27=>setTimeout(_0x345f27,_0x45c689));}export function validateUrl(_0x3064b9){try{return new URL(_0x3064b9),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a190_0x505a(){const _0x5557df=['737241EtcnrT','setRawMode','stdin','7gBRCUb','5669352lwbbJL','isTTY','12kVdPIc','stdout','11924044ndCvWS','1557nXEvHG','345930qXdCPn','807972YTyyNn','true','730Xhqdzn','nonInteractive','277480kDmQBP','90qOeeRk'];a190_0x505a=function(){return _0x5557df;};return a190_0x505a();}(function(_0x1bc963,_0xd5cb89){const _0x4fe2ec=a190_0x3310,_0x213da1=_0x1bc963();while(!![]){try{const _0x4ea516=parseInt(_0x4fe2ec(0x1d7))/0x1*(parseInt(_0x4fe2ec(0x1db))/0x2)+parseInt(_0x4fe2ec(0x1df))/0x3*(parseInt(_0x4fe2ec(0x1d4))/0x4)+parseInt(_0x4fe2ec(0x1d8))/0x5+parseInt(_0x4fe2ec(0x1d9))/0x6*(-parseInt(_0x4fe2ec(0x1d1))/0x7)+parseInt(_0x4fe2ec(0x1d2))/0x8+-parseInt(_0x4fe2ec(0x1de))/0x9*(parseInt(_0x4fe2ec(0x1dd))/0xa)+-parseInt(_0x4fe2ec(0x1d6))/0xb;if(_0x4ea516===_0xd5cb89)break;else _0x213da1['push'](_0x213da1['shift']());}catch(_0x1c1766){_0x213da1['push'](_0x213da1['shift']());}}}(a190_0x505a,0x8f5f7));function a190_0x3310(_0x55bd82,_0x1ed9f5){_0x55bd82=_0x55bd82-0x1d1;const _0x505a54=a190_0x505a();let _0x33103d=_0x505a54[_0x55bd82];return _0x33103d;}function env(_0x2c3d38){return process.env[`RABETBASE_${_0x2c3d38}`]||process.env[`LOVRABET_${_0x2c3d38}`]||undefined;}export function isNonInteractive(_0x1bd746){const _0x2c63c0=a190_0x3310;return!!(_0x1bd746[_0x2c63c0(0x1dc)]||_0x1bd746['ci']||env('CI')==='true'||process.env.CI===_0x2c63c0(0x1da)||!process[_0x2c63c0(0x1d5)][_0x2c63c0(0x1d3)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3a9be6=a190_0x3310;if(!process[_0x3a9be6(0x1e1)]['isTTY'])return![];try{const _0x232c04=process[_0x3a9be6(0x1e1)]['isRaw'];return process[_0x3a9be6(0x1e1)]['setRawMode'](!![]),process[_0x3a9be6(0x1e1)][_0x3a9be6(0x1e0)](_0x232c04??![]),!![];}catch{return![];}}
1
+ (function(_0x54d697,_0xc0df94){const _0x16d433=a190_0x2f8b,_0x2f1475=_0x54d697();while(!![]){try{const _0x43b652=-parseInt(_0x16d433(0x1e4))/0x1+parseInt(_0x16d433(0x1ec))/0x2+parseInt(_0x16d433(0x1e6))/0x3*(parseInt(_0x16d433(0x1ea))/0x4)+parseInt(_0x16d433(0x1de))/0x5*(parseInt(_0x16d433(0x1e3))/0x6)+parseInt(_0x16d433(0x1e8))/0x7*(parseInt(_0x16d433(0x1e2))/0x8)+-parseInt(_0x16d433(0x1e7))/0x9+-parseInt(_0x16d433(0x1e5))/0xa*(parseInt(_0x16d433(0x1ed))/0xb);if(_0x43b652===_0xc0df94)break;else _0x2f1475['push'](_0x2f1475['shift']());}catch(_0x3f78d7){_0x2f1475['push'](_0x2f1475['shift']());}}}(a190_0x4d27,0x23981));function a190_0x4d27(){const _0x21958=['755dMapAm','true','isRaw','stdin','16TCHrqf','4362zUarfr','50208yMbMYZ','147290qUKKbH','3ZqKkCI','1239354aJexEP','20377akFIMR','stdout','94596oUAYcC','setRawMode','536208NXHPLM','55qjLXDf','nonInteractive'];a190_0x4d27=function(){return _0x21958;};return a190_0x4d27();}function a190_0x2f8b(_0x4879fd,_0x1916c0){_0x4879fd=_0x4879fd-0x1dd;const _0x4d272f=a190_0x4d27();let _0x2f8b06=_0x4d272f[_0x4879fd];return _0x2f8b06;}function env(_0x5afd87){return process.env[`RABETBASE_${_0x5afd87}`]||process.env[`LOVRABET_${_0x5afd87}`]||undefined;}export function isNonInteractive(_0xb1a9d7){const _0x34c7c4=a190_0x2f8b;return!!(_0xb1a9d7[_0x34c7c4(0x1dd)]||_0xb1a9d7['ci']||env('CI')===_0x34c7c4(0x1df)||process.env.CI==='true'||!process[_0x34c7c4(0x1e9)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4c3c28=a190_0x2f8b;if(!process['stdin']['isTTY'])return![];try{const _0x2a95a8=process[_0x4c3c28(0x1e1)][_0x4c3c28(0x1e0)];return process[_0x4c3c28(0x1e1)][_0x4c3c28(0x1eb)](!![]),process[_0x4c3c28(0x1e1)][_0x4c3c28(0x1eb)](_0x2a95a8??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a191_0x323ab2=a191_0x58b8;(function(_0x2c3414,_0xc334df){const _0x31fea7=a191_0x58b8,_0x1d7230=_0x2c3414();while(!![]){try{const _0x498e92=parseInt(_0x31fea7(0x94))/0x1+-parseInt(_0x31fea7(0x9c))/0x2*(-parseInt(_0x31fea7(0x8e))/0x3)+parseInt(_0x31fea7(0xab))/0x4+-parseInt(_0x31fea7(0xb6))/0x5*(parseInt(_0x31fea7(0xae))/0x6)+-parseInt(_0x31fea7(0xad))/0x7+-parseInt(_0x31fea7(0xba))/0x8*(-parseInt(_0x31fea7(0xa7))/0x9)+-parseInt(_0x31fea7(0xb3))/0xa*(parseInt(_0x31fea7(0xa3))/0xb);if(_0x498e92===_0xc334df)break;else _0x1d7230['push'](_0x1d7230['shift']());}catch(_0x32d0c5){_0x1d7230['push'](_0x1d7230['shift']());}}}(a191_0x2875,0x90fd6));function a191_0x2875(){const _0x425bf9=['createLogger','3HuyhVn','clear','.lovrabet.log','duration','timestamp','writeFileSync','1083967MLOcHE','success','details','errors','message','完成:\x20','toISOString','map','1528588lfvXuy','readFileSync','utf8','filter','Failed\x20to\x20clear\x20logs:','rawCommand','logFilePath','1262481dzrOFC','winstonLogger','command','失败:\x20','228546GnpMKw','File','dirname','info','3612832VtpIel','red','2219959bynKGs','18MlwZiS','now','combine','split','unknown','130AvlYcP','readLogs','existsSync','1554155BXoNLC','开始执行:\x20','setRawCommand','trim','184hjFXPp','logTask','error','addColors','yellow','warn','getWinstonInstance','mkdirSync','stringify','format','green','level','blue','initWinstonLogger'];a191_0x2875=function(){return _0x425bf9;};return a191_0x2875();}import a191_0x13a4d2 from'winston';function a191_0x58b8(_0xe000ae,_0x171c2c){_0xe000ae=_0xe000ae-0x88;const _0x2875f9=a191_0x2875();let _0x58b81a=_0x2875f9[_0xe000ae];return _0x58b81a;}import a191_0x285e0e from'node:fs';import a191_0x150dde from'node:path';class Logger{[a191_0x323ab2(0xa4)];[a191_0x323ab2(0xa2)];['currentRawCommand']='';constructor(){const _0x5bef37=a191_0x323ab2;this[_0x5bef37(0xa2)]='';}[a191_0x323ab2(0xb8)](_0x93dbc5){this['currentRawCommand']=_0x93dbc5;}['initWinstonLogger'](){const _0x18bfd1=a191_0x323ab2,_0x31b2a9=a191_0x150dde[_0x18bfd1(0xa9)](this[_0x18bfd1(0xa2)]);!a191_0x285e0e['existsSync'](_0x31b2a9)&&a191_0x285e0e[_0x18bfd1(0xc1)](_0x31b2a9,{'recursive':!![]});const _0x3398d9=a191_0x13a4d2[_0x18bfd1(0x88)][_0x18bfd1(0xb0)](a191_0x13a4d2[_0x18bfd1(0x88)]['timestamp'](),a191_0x13a4d2[_0x18bfd1(0x88)][_0x18bfd1(0x97)]({'stack':!![]}),a191_0x13a4d2[_0x18bfd1(0x88)]['printf'](_0x3b1cce=>{const _0x59dffb=_0x18bfd1,_0x23b098={'timestamp':_0x3b1cce[_0x59dffb(0x92)]||new Date()[_0x59dffb(0x9a)](),'level':_0x3b1cce[_0x59dffb(0x8a)]||_0x59dffb(0xaa),'command':_0x3b1cce[_0x59dffb(0xa5)]||_0x59dffb(0xb2),'rawCommand':_0x3b1cce[_0x59dffb(0xa1)]||this['currentRawCommand']||undefined,'message':_0x3b1cce[_0x59dffb(0x98)]||'','duration':_0x3b1cce[_0x59dffb(0x91)]||undefined,'details':_0x3b1cce[_0x59dffb(0x96)]||undefined};return JSON[_0x59dffb(0xc2)](_0x23b098);}));this[_0x18bfd1(0xa4)]=a191_0x13a4d2[_0x18bfd1(0x8d)]({'level':'info','format':_0x3398d9,'transports':[new a191_0x13a4d2['transports'][(_0x18bfd1(0xa8))]({'filename':this['logFilePath'],'level':_0x18bfd1(0xaa)})],'silent':![]}),a191_0x13a4d2[_0x18bfd1(0xbd)]({'success':_0x18bfd1(0x89),'error':_0x18bfd1(0xac),'warn':_0x18bfd1(0xbe),'info':_0x18bfd1(0x8b)});}['setLogPath'](_0x378757){const _0x4bd49b=a191_0x323ab2;this[_0x4bd49b(0xa2)]=a191_0x150dde['join'](_0x378757,_0x4bd49b(0x90)),this[_0x4bd49b(0xa4)]&&this[_0x4bd49b(0xa4)][_0x4bd49b(0x8f)](),this[_0x4bd49b(0x8c)]();}[a191_0x323ab2(0xaa)](_0x730c21,_0x58ab65,_0x4f429a){const _0xa8eaf0=a191_0x323ab2;if(!this[_0xa8eaf0(0xa2)]||!this['winstonLogger'])return;this[_0xa8eaf0(0xa4)][_0xa8eaf0(0xaa)](_0x58ab65,{'command':_0x730c21,'details':_0x4f429a});}[a191_0x323ab2(0x95)](_0x44f620,_0x521b59,_0x386c63,_0x5ad5bb){const _0x5860a7=a191_0x323ab2;if(!this[_0x5860a7(0xa2)]||!this[_0x5860a7(0xa4)])return;this[_0x5860a7(0xa4)]['log'](_0x5860a7(0xaa),_0x521b59,{'level':_0x5860a7(0x95),'command':_0x44f620,'duration':_0x386c63,'details':_0x5ad5bb});}['error'](_0x56c7ae,_0x37d762,_0x30522d){const _0x3d41f8=a191_0x323ab2;if(!this[_0x3d41f8(0xa2)]||!this['winstonLogger'])return;this[_0x3d41f8(0xa4)]['error'](_0x37d762,{'command':_0x56c7ae,'details':_0x30522d});}[a191_0x323ab2(0xbf)](_0x1fc4f3,_0x19ded1,_0x410cfc){const _0x5661ba=a191_0x323ab2;if(!this[_0x5661ba(0xa2)]||!this[_0x5661ba(0xa4)])return;this[_0x5661ba(0xa4)][_0x5661ba(0xbf)](_0x19ded1,{'command':_0x1fc4f3,'details':_0x410cfc});}async[a191_0x323ab2(0xbb)](_0x3d6d15,_0x5269a4,_0x49ecc5){const _0x5dffc1=a191_0x323ab2,_0x387863=Date['now']();this['info'](_0x3d6d15,_0x5dffc1(0xb7)+_0x5269a4);try{const _0xf235b0=await _0x49ecc5(),_0x25372e=Date['now']()-_0x387863;return this['success'](_0x3d6d15,_0x5dffc1(0x99)+_0x5269a4,_0x25372e),_0xf235b0;}catch(_0x1edf47){const _0x33a677=Date[_0x5dffc1(0xaf)]()-_0x387863;this[_0x5dffc1(0xbc)](_0x3d6d15,_0x5dffc1(0xa6)+_0x5269a4,{'error':_0x1edf47 instanceof Error?_0x1edf47[_0x5dffc1(0x98)]:String(_0x1edf47),'duration':_0x33a677});throw _0x1edf47;}}[a191_0x323ab2(0xb4)](){const _0x2bc3c8=a191_0x323ab2;try{if(!a191_0x285e0e['existsSync'](this[_0x2bc3c8(0xa2)]))return[];const _0x14d046=a191_0x285e0e[_0x2bc3c8(0x9d)](this[_0x2bc3c8(0xa2)],_0x2bc3c8(0x9e));return _0x14d046[_0x2bc3c8(0xb1)]('\x0a')[_0x2bc3c8(0x9f)](_0x22493e=>_0x22493e[_0x2bc3c8(0xb9)]())[_0x2bc3c8(0x9b)](_0x3dfeaa=>JSON['parse'](_0x3dfeaa));}catch(_0x111478){return console['warn']('Failed\x20to\x20read\x20logs:',_0x111478),[];}}['clearLogs'](){const _0x1a5536=a191_0x323ab2;try{a191_0x285e0e[_0x1a5536(0xb5)](this[_0x1a5536(0xa2)])&&a191_0x285e0e[_0x1a5536(0x93)](this['logFilePath'],'',_0x1a5536(0x9e));}catch(_0x7769ed){console[_0x1a5536(0xbf)](_0x1a5536(0xa0),_0x7769ed);}}[a191_0x323ab2(0xc0)](){const _0x51bcff=a191_0x323ab2;return this[_0x51bcff(0xa4)];}}export const logger=new Logger();
1
+ function a191_0x343e(){const _0x45b1d7=['map','timestamp','printf','existsSync','setLogPath','clearLogs','getWinstonInstance','green','18lCOTbN','parse','dirname','red','command','warn','utf8','13284sIrERJ','logFilePath','.lovrabet.log','addColors','56brmfhL','error','errors','logTask','message','now','combine','transports','writeFileSync','929763gDEQLM','winstonLogger','Failed\x20to\x20clear\x20logs:','createLogger','duration','level','info','readLogs','success','25820700zauZHe','stringify','join','split','filter','mkdirSync','开始执行:\x20','6073970hmDcLp','yellow','1481473TXIYVa','blue','569098vGdgVN','initWinstonLogger','setRawCommand','currentRawCommand','toISOString','clear','1973392nHWNgc','format','log','939jWpYSi'];a191_0x343e=function(){return _0x45b1d7;};return a191_0x343e();}const a191_0x730ba6=a191_0x2d6d;(function(_0x2133b5,_0x3b680f){const _0x12ba57=a191_0x2d6d,_0x1afa6a=_0x2133b5();while(!![]){try{const _0x186175=parseInt(_0x12ba57(0x1e9))/0x1+-parseInt(_0x12ba57(0x1ef))/0x2+parseInt(_0x12ba57(0x1f2))/0x3*(parseInt(_0x12ba57(0x202))/0x4)+-parseInt(_0x12ba57(0x1e5))/0x5+-parseInt(_0x12ba57(0x1fb))/0x6*(parseInt(_0x12ba57(0x1e7))/0x7)+-parseInt(_0x12ba57(0x206))/0x8*(parseInt(_0x12ba57(0x20f))/0x9)+parseInt(_0x12ba57(0x1de))/0xa;if(_0x186175===_0x3b680f)break;else _0x1afa6a['push'](_0x1afa6a['shift']());}catch(_0x3a9243){_0x1afa6a['push'](_0x1afa6a['shift']());}}}(a191_0x343e,0x9a12d));import a191_0x327ae7 from'winston';import a191_0x2270f2 from'node:fs';import a191_0x220bdd from'node:path';function a191_0x2d6d(_0x468734,_0x21f60f){_0x468734=_0x468734-0x1dd;const _0x343e22=a191_0x343e();let _0x2d6da5=_0x343e22[_0x468734];return _0x2d6da5;}class Logger{['winstonLogger'];[a191_0x730ba6(0x203)];['currentRawCommand']='';constructor(){const _0x1f23f7=a191_0x730ba6;this[_0x1f23f7(0x203)]='';}[a191_0x730ba6(0x1eb)](_0xa0e6a1){const _0x3e47d8=a191_0x730ba6;this[_0x3e47d8(0x1ec)]=_0xa0e6a1;}[a191_0x730ba6(0x1ea)](){const _0x1f3102=a191_0x730ba6,_0x529890=a191_0x220bdd[_0x1f3102(0x1fd)](this['logFilePath']);!a191_0x2270f2[_0x1f3102(0x1f6)](_0x529890)&&a191_0x2270f2[_0x1f3102(0x1e3)](_0x529890,{'recursive':!![]});const _0x409ee2=a191_0x327ae7[_0x1f3102(0x1f0)][_0x1f3102(0x20c)](a191_0x327ae7[_0x1f3102(0x1f0)][_0x1f3102(0x1f4)](),a191_0x327ae7[_0x1f3102(0x1f0)][_0x1f3102(0x208)]({'stack':!![]}),a191_0x327ae7[_0x1f3102(0x1f0)][_0x1f3102(0x1f5)](_0x316ff6=>{const _0x44280b=_0x1f3102,_0x6956e3={'timestamp':_0x316ff6[_0x44280b(0x1f4)]||new Date()[_0x44280b(0x1ed)](),'level':_0x316ff6[_0x44280b(0x214)]||_0x44280b(0x215),'command':_0x316ff6[_0x44280b(0x1ff)]||'unknown','rawCommand':_0x316ff6['rawCommand']||this[_0x44280b(0x1ec)]||undefined,'message':_0x316ff6[_0x44280b(0x20a)]||'','duration':_0x316ff6[_0x44280b(0x213)]||undefined,'details':_0x316ff6['details']||undefined};return JSON[_0x44280b(0x1df)](_0x6956e3);}));this[_0x1f3102(0x210)]=a191_0x327ae7[_0x1f3102(0x212)]({'level':_0x1f3102(0x215),'format':_0x409ee2,'transports':[new a191_0x327ae7[(_0x1f3102(0x20d))]['File']({'filename':this[_0x1f3102(0x203)],'level':_0x1f3102(0x215)})],'silent':![]}),a191_0x327ae7[_0x1f3102(0x205)]({'success':_0x1f3102(0x1fa),'error':_0x1f3102(0x1fe),'warn':_0x1f3102(0x1e6),'info':_0x1f3102(0x1e8)});}[a191_0x730ba6(0x1f7)](_0x6d619c){const _0x41bf3e=a191_0x730ba6;this['logFilePath']=a191_0x220bdd[_0x41bf3e(0x1e0)](_0x6d619c,_0x41bf3e(0x204)),this['winstonLogger']&&this[_0x41bf3e(0x210)][_0x41bf3e(0x1ee)](),this[_0x41bf3e(0x1ea)]();}[a191_0x730ba6(0x215)](_0x3112c9,_0x4254ae,_0x165f42){const _0x37b172=a191_0x730ba6;if(!this['logFilePath']||!this[_0x37b172(0x210)])return;this[_0x37b172(0x210)][_0x37b172(0x215)](_0x4254ae,{'command':_0x3112c9,'details':_0x165f42});}[a191_0x730ba6(0x1dd)](_0x44c15a,_0x184dac,_0x4bbe65,_0xba5c20){const _0x144315=a191_0x730ba6;if(!this[_0x144315(0x203)]||!this[_0x144315(0x210)])return;this[_0x144315(0x210)][_0x144315(0x1f1)](_0x144315(0x215),_0x184dac,{'level':_0x144315(0x1dd),'command':_0x44c15a,'duration':_0x4bbe65,'details':_0xba5c20});}[a191_0x730ba6(0x207)](_0x22d9b7,_0x1d7b6a,_0x55f584){const _0x3ca917=a191_0x730ba6;if(!this[_0x3ca917(0x203)]||!this[_0x3ca917(0x210)])return;this[_0x3ca917(0x210)][_0x3ca917(0x207)](_0x1d7b6a,{'command':_0x22d9b7,'details':_0x55f584});}[a191_0x730ba6(0x200)](_0x2e12f6,_0x33a1c5,_0x320934){const _0xf1d492=a191_0x730ba6;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0xf1d492(0x210)][_0xf1d492(0x200)](_0x33a1c5,{'command':_0x2e12f6,'details':_0x320934});}async[a191_0x730ba6(0x209)](_0x1fff42,_0x1fd318,_0x25cfb9){const _0x5bbbc1=a191_0x730ba6,_0x3f6fc4=Date[_0x5bbbc1(0x20b)]();this[_0x5bbbc1(0x215)](_0x1fff42,_0x5bbbc1(0x1e4)+_0x1fd318);try{const _0x1271b3=await _0x25cfb9(),_0x213feb=Date[_0x5bbbc1(0x20b)]()-_0x3f6fc4;return this[_0x5bbbc1(0x1dd)](_0x1fff42,'完成:\x20'+_0x1fd318,_0x213feb),_0x1271b3;}catch(_0x16d3fb){const _0x77bf38=Date[_0x5bbbc1(0x20b)]()-_0x3f6fc4;this['error'](_0x1fff42,'失败:\x20'+_0x1fd318,{'error':_0x16d3fb instanceof Error?_0x16d3fb['message']:String(_0x16d3fb),'duration':_0x77bf38});throw _0x16d3fb;}}[a191_0x730ba6(0x216)](){const _0x20bd33=a191_0x730ba6;try{if(!a191_0x2270f2[_0x20bd33(0x1f6)](this[_0x20bd33(0x203)]))return[];const _0x365891=a191_0x2270f2['readFileSync'](this[_0x20bd33(0x203)],_0x20bd33(0x201));return _0x365891[_0x20bd33(0x1e1)]('\x0a')[_0x20bd33(0x1e2)](_0x2823fa=>_0x2823fa['trim']())[_0x20bd33(0x1f3)](_0x2ffff1=>JSON[_0x20bd33(0x1fc)](_0x2ffff1));}catch(_0x285469){return console[_0x20bd33(0x200)]('Failed\x20to\x20read\x20logs:',_0x285469),[];}}[a191_0x730ba6(0x1f8)](){const _0x29772f=a191_0x730ba6;try{a191_0x2270f2[_0x29772f(0x1f6)](this[_0x29772f(0x203)])&&a191_0x2270f2[_0x29772f(0x20e)](this[_0x29772f(0x203)],'',_0x29772f(0x201));}catch(_0x2f6c04){console[_0x29772f(0x200)](_0x29772f(0x211),_0x2f6c04);}}[a191_0x730ba6(0x1f9)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3fa1c7,_0x54d83f){const _0x57a6e8=a192_0x470a,_0x1fd697=_0x3fa1c7();while(!![]){try{const _0x51a3d0=parseInt(_0x57a6e8(0x93))/0x1+parseInt(_0x57a6e8(0x8d))/0x2+parseInt(_0x57a6e8(0x8c))/0x3*(parseInt(_0x57a6e8(0x96))/0x4)+-parseInt(_0x57a6e8(0x98))/0x5*(-parseInt(_0x57a6e8(0x94))/0x6)+parseInt(_0x57a6e8(0x8e))/0x7+-parseInt(_0x57a6e8(0x8f))/0x8*(parseInt(_0x57a6e8(0x8b))/0x9)+-parseInt(_0x57a6e8(0x95))/0xa;if(_0x51a3d0===_0x54d83f)break;else _0x1fd697['push'](_0x1fd697['shift']());}catch(_0x47012a){_0x1fd697['push'](_0x1fd697['shift']());}}}(a192_0x4686,0x6bb4a));function a192_0x470a(_0xfcf767,_0x1754de){_0xfcf767=_0xfcf767-0x8b;const _0x4686ba=a192_0x4686();let _0x470ace=_0x4686ba[_0xfcf767];return _0x470ace;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0xb57590){const _0x27ff7e=a192_0x470a;if(!_0xb57590)return undefined;let _0x2e2d6d;try{_0x2e2d6d=JSON[_0x27ff7e(0x99)](_0xb57590);}catch{throw CliErrors[_0x27ff7e(0x91)](_0x27ff7e(0x9a)+_0xb57590);}if(!_0x2e2d6d||typeof _0x2e2d6d!==_0x27ff7e(0x97)||Array[_0x27ff7e(0x92)](_0x2e2d6d))throw CliErrors['validation'](_0x27ff7e(0x90),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x2e2d6d;}function a192_0x4686(){const _0xfd85c9=['1234168fPbmwd','--params\x20must\x20be\x20a\x20JSON\x20object','validation','isArray','107114UGfYlL','6BqaiQt','2713420xfRAJe','116xGPMPH','object','14475bJoXPA','parse','Invalid\x20JSON\x20for\x20--params:\x20','18sVvayB','30111uaCoEM','762224qBcCWq','1671964vxCjxs'];a192_0x4686=function(){return _0xfd85c9;};return a192_0x4686();}
1
+ (function(_0x30a518,_0x15c21b){const _0x59ea6b=a192_0x1abf,_0x55340f=_0x30a518();while(!![]){try{const _0x312ed2=parseInt(_0x59ea6b(0x190))/0x1+parseInt(_0x59ea6b(0x18d))/0x2+parseInt(_0x59ea6b(0x18c))/0x3+parseInt(_0x59ea6b(0x188))/0x4*(-parseInt(_0x59ea6b(0x195))/0x5)+-parseInt(_0x59ea6b(0x18a))/0x6+parseInt(_0x59ea6b(0x191))/0x7*(-parseInt(_0x59ea6b(0x187))/0x8)+parseInt(_0x59ea6b(0x186))/0x9*(-parseInt(_0x59ea6b(0x18e))/0xa);if(_0x312ed2===_0x15c21b)break;else _0x55340f['push'](_0x55340f['shift']());}catch(_0x4f6483){_0x55340f['push'](_0x55340f['shift']());}}}(a192_0x24e2,0xe4bda));import{CliErrors}from'../errors.js';function a192_0x1abf(_0x3fe6a1,_0x4d7c83){_0x3fe6a1=_0x3fe6a1-0x186;const _0x24e2cf=a192_0x24e2();let _0x1abf1d=_0x24e2cf[_0x3fe6a1];return _0x1abf1d;}function a192_0x24e2(){const _0x4d70d9=['Invalid\x20JSON\x20for\x20--params:\x20','validation','--params\x20must\x20be\x20a\x20JSON\x20object','270XySIfS','891792fatgTs','64NwsoeE','28216WFkeiW','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','7812396ottdQF','isArray','4239174rJdkri','3342018pHREba','10oDyEMs','parse','562845REDBri','811930CLwKqQ'];a192_0x24e2=function(){return _0x4d70d9;};return a192_0x24e2();}export function parseJsonParams(_0x430b1c){const _0x153b1f=a192_0x1abf;if(!_0x430b1c)return undefined;let _0x1d4b47;try{_0x1d4b47=JSON[_0x153b1f(0x18f)](_0x430b1c);}catch{throw CliErrors[_0x153b1f(0x193)](_0x153b1f(0x192)+_0x430b1c);}if(!_0x1d4b47||typeof _0x1d4b47!=='object'||Array[_0x153b1f(0x18b)](_0x1d4b47))throw CliErrors['validation'](_0x153b1f(0x194),_0x153b1f(0x189));return _0x1d4b47;}
@@ -1 +1 @@
1
- function a193_0x2746(_0x3ea65a,_0x1f4f39){_0x3ea65a=_0x3ea65a-0x19d;const _0x389083=a193_0x3890();let _0x2746b0=_0x389083[_0x3ea65a];return _0x2746b0;}const a193_0x141589=a193_0x2746;(function(_0x4e9dc0,_0x34c8af){const _0x5a9e7b=a193_0x2746,_0x1fdc35=_0x4e9dc0();while(!![]){try{const _0x558ceb=-parseInt(_0x5a9e7b(0x1a7))/0x1+parseInt(_0x5a9e7b(0x1a5))/0x2+parseInt(_0x5a9e7b(0x1a4))/0x3*(parseInt(_0x5a9e7b(0x1a1))/0x4)+-parseInt(_0x5a9e7b(0x19e))/0x5*(parseInt(_0x5a9e7b(0x19f))/0x6)+-parseInt(_0x5a9e7b(0x1a2))/0x7+-parseInt(_0x5a9e7b(0x1a3))/0x8*(parseInt(_0x5a9e7b(0x19d))/0x9)+parseInt(_0x5a9e7b(0x1a0))/0xa;if(_0x558ceb===_0x34c8af)break;else _0x1fdc35['push'](_0x1fdc35['shift']());}catch(_0x1adb1f){_0x1fdc35['push'](_0x1fdc35['shift']());}}}(a193_0x3890,0x57b88));export const isWindows=process[a193_0x141589(0x1a6)]==='win32';export function resolveNpmBin(_0x2c27f1){return isWindows?_0x2c27f1+'.cmd':_0x2c27f1;}function a193_0x3890(){const _0x525b42=['3693740kCOVuS','137828rXJFSX','1437331KndUSr','112ozZMgJ','42NigYYu','114498nbYotb','platform','200470oKzOTL','86166KvJpRk','49390MZeiCy','6MoxNiV'];a193_0x3890=function(){return _0x525b42;};return a193_0x3890();}
1
+ const a193_0x5e0dd6=a193_0x1af8;function a193_0x1af8(_0x30faf8,_0x55920d){_0x30faf8=_0x30faf8-0x187;const _0x20f392=a193_0x20f3();let _0x1af875=_0x20f392[_0x30faf8];return _0x1af875;}(function(_0x1cf38e,_0x431bca){const _0x4e3d82=a193_0x1af8,_0x47f36a=_0x1cf38e();while(!![]){try{const _0x114797=parseInt(_0x4e3d82(0x18e))/0x1+parseInt(_0x4e3d82(0x190))/0x2*(-parseInt(_0x4e3d82(0x18b))/0x3)+-parseInt(_0x4e3d82(0x18c))/0x4+parseInt(_0x4e3d82(0x189))/0x5+-parseInt(_0x4e3d82(0x187))/0x6*(-parseInt(_0x4e3d82(0x191))/0x7)+parseInt(_0x4e3d82(0x18f))/0x8*(parseInt(_0x4e3d82(0x188))/0x9)+parseInt(_0x4e3d82(0x192))/0xa*(-parseInt(_0x4e3d82(0x18d))/0xb);if(_0x114797===_0x431bca)break;else _0x47f36a['push'](_0x47f36a['shift']());}catch(_0x14df3f){_0x47f36a['push'](_0x47f36a['shift']());}}}(a193_0x20f3,0xf3025));function a193_0x20f3(){const _0xa228ec=['9XgRIaz','8081105totYTT','win32','3IGYbBc','51644ixtEGU','541871hzonnj','1765259ZsHQHC','84296MRYaYf','697406ZRuYAP','7LnKpTz','450WWnADJ','1090242WinLhl'];a193_0x20f3=function(){return _0xa228ec;};return a193_0x20f3();}export const isWindows=process['platform']===a193_0x5e0dd6(0x18a);export function resolveNpmBin(_0xc6b485){return isWindows?_0xc6b485+'.cmd':_0xc6b485;}
@@ -1 +1 @@
1
- function a194_0x2f5d(){const _0x1dbb21=['content','../../templates/rules/lovrabet_rules.mdc.tpl','6435zUzBfG','application/json','6eAoOyn','lastUpdated','CDN\x20返回数据格式错误','catch','51040nTvixp','statusText','6juFKlg','.cursor/rules','652602dMQshO','lovrabet_rules.mdc','2216iWfvqk','8vLETev','1364031GVQhNk','本地模板文件不存在:\x20','590eBWGgb','250621xHjvEu','utf-8','/rules/rules.json','3132QHAHFN','10010vxPYGC','100507GAKYPz','json','string'];a194_0x2f5d=function(){return _0x1dbb21;};return a194_0x2f5d();}const a194_0x5bb664=a194_0x292c;(function(_0x5f732b,_0x37adde){const _0x9fa11d=a194_0x292c,_0x20ab00=_0x5f732b();while(!![]){try{const _0x4e89ae=-parseInt(_0x9fa11d(0x15f))/0x1+parseInt(_0x9fa11d(0x163))/0x2*(-parseInt(_0x9fa11d(0x161))/0x3)+parseInt(_0x9fa11d(0x165))/0x4*(parseInt(_0x9fa11d(0x174))/0x5)+parseInt(_0x9fa11d(0x176))/0x6*(-parseInt(_0x9fa11d(0x16a))/0x7)+parseInt(_0x9fa11d(0x166))/0x8*(parseInt(_0x9fa11d(0x167))/0x9)+parseInt(_0x9fa11d(0x169))/0xa*(parseInt(_0x9fa11d(0x16f))/0xb)+parseInt(_0x9fa11d(0x16d))/0xc*(-parseInt(_0x9fa11d(0x16e))/0xd);if(_0x4e89ae===_0x37adde)break;else _0x20ab00['push'](_0x20ab00['shift']());}catch(_0x63ae56){_0x20ab00['push'](_0x20ab00['shift']());}}}(a194_0x2f5d,0x71179));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a194_0x292c(_0x3c814a,_0x4b9652){_0x3c814a=_0x3c814a-0x15c;const _0x2f5d17=a194_0x2f5d();let _0x292c0b=_0x2f5d17[_0x3c814a];return _0x292c0b;}import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x7547a6=a194_0x292c,_0x108f9b=getTemplateBaseUrl();return _0x108f9b+_0x7547a6(0x16c);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0x5bb664(0x173));export async function fetchRulesFromCDN(){const _0xc4801c=a194_0x5bb664,_0x4e1dda=getRulesCdnUrl(),_0x376e05=await fetch(_0x4e1dda,{'headers':{'Accept':_0xc4801c(0x175)}});if(!_0x376e05['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x376e05['status']+'\x20'+_0x376e05[_0xc4801c(0x160)]);const _0x136cc6=await _0x376e05[_0xc4801c(0x170)]();if(!_0x136cc6['content']||typeof _0x136cc6[_0xc4801c(0x172)]!==_0xc4801c(0x171))throw new Error(_0xc4801c(0x15d));return _0x136cc6;}export async function getRulesContent(){const _0x46e6ce=a194_0x5bb664;try{const _0x580012=await fetchRulesFromCDN();return _0x580012[_0x46e6ce(0x172)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x33acdf=a194_0x5bb664;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x33acdf(0x16b));throw new Error(_0x33acdf(0x168)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5641e0){const _0x1ff179=a194_0x5bb664,_0x2645a2=await fetchRulesFromCDN()[_0x1ff179(0x15e)](()=>null);let _0xf2ee47;_0x2645a2?(_0xf2ee47=_0x2645a2[_0x1ff179(0x172)],_0x2645a2['lastUpdated']&&(_0xf2ee47=appendUpdateTime(_0xf2ee47,_0x2645a2[_0x1ff179(0x15c)]))):_0xf2ee47=readLocalTemplate();const _0x582d21=dirname(_0x5641e0);!existsSync(_0x582d21)&&mkdirSync(_0x582d21,{'recursive':!![]}),writeFileSync(_0x5641e0,_0xf2ee47,_0x1ff179(0x16b));}export async function copyRulesToCursor(_0x33f432){const _0x1a2849=a194_0x5bb664,_0x568e46=join(_0x33f432,_0x1a2849(0x162)),_0x4f98ad=join(_0x568e46,_0x1a2849(0x164));if(existsSync(_0x4f98ad))return![];return await writeRulesFile(_0x4f98ad),!![];}export async function copyRulesToAgentsMd(_0x14a69b){const _0x32f2e4=join(_0x14a69b,'agents.md');if(existsSync(_0x32f2e4))return![];return await writeRulesFile(_0x32f2e4),!![];}
1
+ const a194_0x50054d=a194_0x2487;(function(_0x36b146,_0x1eaa47){const _0xef2d04=a194_0x2487,_0x2af869=_0x36b146();while(!![]){try{const _0x4b8707=-parseInt(_0xef2d04(0xcc))/0x1*(-parseInt(_0xef2d04(0xcb))/0x2)+-parseInt(_0xef2d04(0xcf))/0x3+-parseInt(_0xef2d04(0xca))/0x4+parseInt(_0xef2d04(0xce))/0x5+parseInt(_0xef2d04(0xbe))/0x6*(parseInt(_0xef2d04(0xd5))/0x7)+parseInt(_0xef2d04(0xd6))/0x8+-parseInt(_0xef2d04(0xd3))/0x9*(parseInt(_0xef2d04(0xc9))/0xa);if(_0x4b8707===_0x1eaa47)break;else _0x2af869['push'](_0x2af869['shift']());}catch(_0x442221){_0x2af869['push'](_0x2af869['shift']());}}}(a194_0x5f3e,0x3ef99));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a194_0x2487(_0x62b0,_0x3657f1){_0x62b0=_0x62b0-0xbe;const _0x5f3e43=a194_0x5f3e();let _0x248721=_0x5f3e43[_0x62b0];return _0x248721;}function getRulesCdnUrl(){const _0x2f0742=a194_0x2487,_0x3dd296=getTemplateBaseUrl();return _0x3dd296+_0x2f0742(0xd7);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0x50054d(0xc4));function a194_0x5f3e(){const _0x1cbc59=['agents.md','json','content','utf-8','378610WYJkko','1926908UdfwtP','205934HbJJVM','1zFqofP','statusText','248505TKpWLg','609837kuovMi','status','lastUpdated','string','18mQWUTJ','application/json','554855XNkmDf','3757440wkjDnC','/rules/rules.json','catch','30hVWRvM','CDN\x20请求失败:\x20','lovrabet_rules.mdc','本地模板文件不存在:\x20','CDN\x20返回数据格式错误','.cursor/rules','../../templates/rules/lovrabet_rules.mdc.tpl'];a194_0x5f3e=function(){return _0x1cbc59;};return a194_0x5f3e();}export async function fetchRulesFromCDN(){const _0x5b2d92=a194_0x50054d,_0x584acb=getRulesCdnUrl(),_0x3f59f7=await fetch(_0x584acb,{'headers':{'Accept':_0x5b2d92(0xd4)}});if(!_0x3f59f7['ok'])throw new Error(_0x5b2d92(0xbf)+_0x3f59f7[_0x5b2d92(0xd0)]+'\x20'+_0x3f59f7[_0x5b2d92(0xcd)]);const _0x145ae0=await _0x3f59f7[_0x5b2d92(0xc6)]();if(!_0x145ae0[_0x5b2d92(0xc7)]||typeof _0x145ae0['content']!==_0x5b2d92(0xd2))throw new Error(_0x5b2d92(0xc2));return _0x145ae0;}export async function getRulesContent(){const _0x3d627a=a194_0x50054d;try{const _0x2ffb1c=await fetchRulesFromCDN();return _0x2ffb1c[_0x3d627a(0xc7)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3148e1=a194_0x50054d;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3148e1(0xc8));throw new Error(_0x3148e1(0xc1)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3824be){const _0x3afeeb=a194_0x50054d,_0x21d221=await fetchRulesFromCDN()[_0x3afeeb(0xd8)](()=>null);let _0xcf218d;_0x21d221?(_0xcf218d=_0x21d221[_0x3afeeb(0xc7)],_0x21d221[_0x3afeeb(0xd1)]&&(_0xcf218d=appendUpdateTime(_0xcf218d,_0x21d221[_0x3afeeb(0xd1)]))):_0xcf218d=readLocalTemplate();const _0x39a96a=dirname(_0x3824be);!existsSync(_0x39a96a)&&mkdirSync(_0x39a96a,{'recursive':!![]}),writeFileSync(_0x3824be,_0xcf218d,_0x3afeeb(0xc8));}export async function copyRulesToCursor(_0x1c117f){const _0x215d5e=a194_0x50054d,_0x558dcb=join(_0x1c117f,_0x215d5e(0xc3)),_0x4b83f2=join(_0x558dcb,_0x215d5e(0xc0));if(existsSync(_0x4b83f2))return![];return await writeRulesFile(_0x4b83f2),!![];}export async function copyRulesToAgentsMd(_0x264def){const _0x30111d=a194_0x50054d,_0x4b7d9b=join(_0x264def,_0x30111d(0xc5));if(existsSync(_0x4b7d9b))return![];return await writeRulesFile(_0x4b7d9b),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x3f2675){return new Promise(_0x4ebbb4=>setTimeout(_0x4ebbb4,_0x3f2675));}
1
+ export function sleep(_0x2d1d72){return new Promise(_0x2d3f09=>setTimeout(_0x2d3f09,_0x2d1d72));}
@@ -1 +1 @@
1
- const a196_0x31439d=a196_0x4f46;function a196_0x4f46(_0x3092a5,_0x5eb2a1){_0x3092a5=_0x3092a5-0x17c;const _0x86d9d2=a196_0x86d9();let _0x4f4659=_0x86d9d2[_0x3092a5];return _0x4f4659;}(function(_0x5ddce6,_0x27bf03){const _0x1b5ff1=a196_0x4f46,_0x55a78f=_0x5ddce6();while(!![]){try{const _0x15baa0=parseInt(_0x1b5ff1(0x19c))/0x1+-parseInt(_0x1b5ff1(0x1be))/0x2+-parseInt(_0x1b5ff1(0x1a4))/0x3*(-parseInt(_0x1b5ff1(0x1af))/0x4)+parseInt(_0x1b5ff1(0x196))/0x5*(parseInt(_0x1b5ff1(0x1b4))/0x6)+-parseInt(_0x1b5ff1(0x18d))/0x7*(-parseInt(_0x1b5ff1(0x195))/0x8)+-parseInt(_0x1b5ff1(0x184))/0x9*(-parseInt(_0x1b5ff1(0x190))/0xa)+-parseInt(_0x1b5ff1(0x198))/0xb;if(_0x15baa0===_0x27bf03)break;else _0x55a78f['push'](_0x55a78f['shift']());}catch(_0x815b10){_0x55a78f['push'](_0x55a78f['shift']());}}}(a196_0x86d9,0xdde92));import a196_0x391661 from'node:fs';function a196_0x86d9(){const _0x3a67a7=['isDirectory','replaceContent','utf8','.tpl','toDisplayTitle','datasetCode','now','map','1930768uNGWTo','toComponentName','info','178460OwtyRG','mkdir','getMonth','error','writeFile','16WPXtzx','10yFrvtY','replace','19793664NdrtLx','extname','formatLocalTimestamp','pop','8798JMELhH','processFile','charAt','name:\x20\x22','.jsx','replaceApiContent','.css','isFile','32106prQvRm','padStart','pad','\x20},','copyFile','.ts','tableName:\x20\x22','toISOString','.md','success','processTemplate','324OshFmh','alias','.tsx','push','getFullYear','3912780NZQkfU','.js','alias:\x20\x22','.json','join','split','template','datasetCode:\x20\x22','processDirectory','toLowerCase','260548YKDBQG','tableName','\x0a\x20\x20\x20\x20{\x20','endsWith','LOVRABET','getHours','toUpperCase','YourModel','readFile','.scss','getMinutes','getSeconds','promises','slice','name','54SWReur'];a196_0x86d9=function(){return _0x3a67a7;};return a196_0x86d9();}import a196_0x344fe7 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x31439d(0x1a6)](_0x1a7079){const _0x190234=a196_0x31439d;return String(_0x1a7079)[_0x190234(0x1a5)](0x2,'0');}static[a196_0x31439d(0x19a)](_0x52ff72){const _0x1c3e6b=a196_0x31439d,_0x27c267=_0x52ff72[_0x1c3e6b(0x1b3)](),_0x16eed4=this[_0x1c3e6b(0x1a6)](_0x52ff72[_0x1c3e6b(0x192)]()+0x1),_0x11aefd=this[_0x1c3e6b(0x1a6)](_0x52ff72['getDate']()),_0x864167=this['pad'](_0x52ff72[_0x1c3e6b(0x1c3)]()),_0x451626=this[_0x1c3e6b(0x1a6)](_0x52ff72[_0x1c3e6b(0x17f)]()),_0x21f155=this['pad'](_0x52ff72[_0x1c3e6b(0x180)]());return{'createdAt':_0x27c267+'-'+_0x16eed4+'-'+_0x11aefd+'\x20'+_0x864167+':'+_0x451626+':'+_0x21f155,'createdDate':_0x27c267+'-'+_0x16eed4+'-'+_0x11aefd,'createdTime':_0x864167+':'+_0x451626+':'+_0x21f155};}static[a196_0x31439d(0x18e)](_0x5601a5){const _0x3c99c2=a196_0x31439d,_0x1dab82=_0x5601a5[_0x3c99c2(0x1b9)]('/')[_0x3c99c2(0x19b)]()||_0x5601a5;return _0x1dab82['split']('-')[_0x3c99c2(0x18c)](_0x4c5b23=>_0x4c5b23[_0x3c99c2(0x19e)](0x0)[_0x3c99c2(0x1c4)]()+_0x4c5b23[_0x3c99c2(0x182)](0x1)['toLowerCase']())['join']('');}static[a196_0x31439d(0x189)](_0x2d875b){const _0x2d097f=a196_0x31439d,_0x2ada48=_0x2d875b[_0x2d097f(0x1b9)]('/')[_0x2d097f(0x19b)]()||_0x2d875b;return _0x2ada48[_0x2d097f(0x1b9)]('-')[_0x2d097f(0x18c)](_0x399abf=>_0x399abf['charAt'](0x0)[_0x2d097f(0x1c4)]()+_0x399abf[_0x2d097f(0x182)](0x1)['toLowerCase']())[_0x2d097f(0x1b8)]('\x20');}static[a196_0x31439d(0x186)](_0x32ad74,_0x5f7ad3,_0x1f887f){const _0x5936fb=a196_0x31439d,_0x5a7649=this[_0x5936fb(0x18e)](_0x5f7ad3),_0x17b2b9=this[_0x5936fb(0x189)](_0x5f7ad3),{createdAt:_0x106794,createdDate:_0x126b18,createdTime:_0x17bb35}=this['formatLocalTimestamp'](new Date());let _0x4cd42b=_0x32ad74[_0x5936fb(0x197)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x5a7649)['replace'](/\{DisplayTitle\}/g,_0x17b2b9)[_0x5936fb(0x197)](/\{PageName\}/g,_0x5f7ad3)['replace'](/\{TemplateName\}/g,_0x1f887f)['replace'](/\{CreatedAt\}/g,_0x106794)[_0x5936fb(0x197)](/\{CreatedDate\}/g,_0x126b18)['replace'](/\{CreatedTime\}/g,_0x17bb35);return _0x4cd42b;}static[a196_0x31439d(0x1a1)](_0x49581f,_0x52e780,_0x33ece1,_0x1eff44,_0x326f52,_0x2ca09f,_0x525e41,_0x5295e){const _0x2cf0aa=a196_0x31439d,_0x40318d=new Date(),_0x15bf66=_0x40318d[_0x2cf0aa(0x1ab)](),_0x1b8b63=_0x33ece1[_0x2cf0aa(0x18c)](_0x582903=>{const _0x328513=_0x2cf0aa,_0x5c9763=[_0x328513(0x1bb)+_0x582903[_0x328513(0x18a)]+'\x22',_0x328513(0x1aa)+_0x582903[_0x328513(0x1bf)]+'\x22',_0x328513(0x19f)+_0x582903[_0x328513(0x183)]+'\x22'];return _0x582903[_0x328513(0x1b0)]&&_0x5c9763[_0x328513(0x1b2)](_0x328513(0x1b6)+_0x582903[_0x328513(0x1b0)]+'\x22'),_0x328513(0x1c0)+_0x5c9763[_0x328513(0x1b8)](',\x20')+_0x328513(0x1a7);})['join'](''),_0x28f043=_0x1eff44||_0x33ece1[0x0]?.['alias']||_0x2cf0aa(0x17c);let _0x5973e3=_0x49581f['replace'](/\{AppCode\}/g,_0x52e780)[_0x2cf0aa(0x197)](/\{ModelConfigs\}/g,_0x1b8b63)[_0x2cf0aa(0x197)](/\{ExampleModelName\}/g,_0x28f043)['replace'](/\{ApiFileName\}/g,_0x326f52||'api')[_0x2cf0aa(0x197)](/\{ConfigName\}/g,_0x2ca09f||'default')['replace'](/\{ClientConfigParam\}/g,_0x525e41||'')[_0x2cf0aa(0x197)](/\{VarPrefix\}/g,_0x5295e||_0x2cf0aa(0x1c2))[_0x2cf0aa(0x197)](/\{CreatedAt\}/g,_0x15bf66);return _0x5973e3;}static async[a196_0x31439d(0x1ae)](_0x299df3,_0x57b716,_0x241709,_0x318528,_0x21fd9c=!![]){const _0x5343ee=a196_0x31439d,_0x40c1a1=Date[_0x5343ee(0x18b)]();try{_0x21fd9c&&logger[_0x5343ee(0x18f)]('template','开始处理模板内容替换',{'templatePath':_0x299df3,'targetPath':_0x57b716,'pageName':_0x241709,'templateName':_0x318528});await a196_0x391661[_0x5343ee(0x181)][_0x5343ee(0x191)](_0x57b716,{'recursive':!![]}),await this[_0x5343ee(0x1bc)](_0x299df3,_0x57b716,_0x241709,_0x318528);if(_0x21fd9c){const _0x5e58f2=Date[_0x5343ee(0x18b)]()-_0x40c1a1;logger[_0x5343ee(0x1ad)](_0x5343ee(0x1ba),'模板内容替换完成',_0x5e58f2,{'pageName':_0x241709,'templateName':_0x318528});}}catch(_0xd116e8){if(_0x21fd9c){const _0x3c40dc=Date[_0x5343ee(0x18b)]()-_0x40c1a1;logger[_0x5343ee(0x193)](_0x5343ee(0x1ba),'模板内容替换失败',{'templatePath':_0x299df3,'targetPath':_0x57b716,'pageName':_0x241709,'templateName':_0x318528,'error':_0xd116e8 instanceof Error?_0xd116e8['message']:String(_0xd116e8),'duration':_0x3c40dc});}throw _0xd116e8;}}static async[a196_0x31439d(0x1bc)](_0x39ba59,_0x2a58b5,_0x4d488b,_0x4641d7){const _0x300c25=a196_0x31439d,_0x725b0c=await a196_0x391661[_0x300c25(0x181)]['readdir'](_0x39ba59,{'withFileTypes':!![]});for(const _0x3beb44 of _0x725b0c){const _0x4d8123=a196_0x344fe7[_0x300c25(0x1b8)](_0x39ba59,_0x3beb44[_0x300c25(0x183)]);let _0x134a92=a196_0x344fe7['join'](_0x2a58b5,_0x3beb44[_0x300c25(0x183)]);_0x3beb44[_0x300c25(0x183)][_0x300c25(0x1c1)](_0x300c25(0x188))&&(_0x134a92=a196_0x344fe7[_0x300c25(0x1b8)](_0x2a58b5,_0x3beb44[_0x300c25(0x183)][_0x300c25(0x197)](/\.tpl$/,'')));if(_0x3beb44[_0x300c25(0x185)]())await a196_0x391661[_0x300c25(0x181)][_0x300c25(0x191)](_0x134a92,{'recursive':!![]}),await this[_0x300c25(0x1bc)](_0x4d8123,_0x134a92,_0x4d488b,_0x4641d7);else _0x3beb44[_0x300c25(0x1a3)]()&&await this[_0x300c25(0x19d)](_0x4d8123,_0x134a92,_0x4d488b,_0x4641d7);}}static async['processFile'](_0x1133a7,_0x5c01ad,_0x3a4166,_0x16425d){const _0x444643=a196_0x31439d,_0x443efb=a196_0x344fe7[_0x444643(0x199)](_0x1133a7)[_0x444643(0x1bd)]();_0x1133a7[_0x444643(0x1c1)](_0x444643(0x188))&&(_0x5c01ad=_0x5c01ad['replace'](/\.tpl$/,''));const _0x45654c=[_0x444643(0x1b1),_0x444643(0x1a9),_0x444643(0x1a0),_0x444643(0x1b5),_0x444643(0x1b7),_0x444643(0x1ac),_0x444643(0x1a2),_0x444643(0x17e),'.tpl'];if(_0x45654c['includes'](_0x443efb)||_0x1133a7[_0x444643(0x1c1)](_0x444643(0x188))){const _0x2ad7bc=await a196_0x391661[_0x444643(0x181)][_0x444643(0x17d)](_0x1133a7,_0x444643(0x187)),_0x2d1c69=this[_0x444643(0x186)](_0x2ad7bc,_0x3a4166,_0x16425d);await a196_0x391661[_0x444643(0x181)][_0x444643(0x194)](_0x5c01ad,_0x2d1c69,_0x444643(0x187));}else await a196_0x391661[_0x444643(0x181)][_0x444643(0x1a8)](_0x1133a7,_0x5c01ad);}}
1
+ function a196_0xddc8(_0x8a31f8,_0x3a771f){_0x8a31f8=_0x8a31f8-0x1a3;const _0x51855a=a196_0x5185();let _0xddc8e5=_0x51855a[_0x8a31f8];return _0xddc8e5;}const a196_0x3f0d89=a196_0xddc8;(function(_0x529c5c,_0x536233){const _0x2fc625=a196_0xddc8,_0x106b40=_0x529c5c();while(!![]){try{const _0x1e64cb=parseInt(_0x2fc625(0x1b6))/0x1+parseInt(_0x2fc625(0x1d6))/0x2*(parseInt(_0x2fc625(0x1cb))/0x3)+-parseInt(_0x2fc625(0x1bd))/0x4*(-parseInt(_0x2fc625(0x1a3))/0x5)+-parseInt(_0x2fc625(0x1c8))/0x6*(parseInt(_0x2fc625(0x1cc))/0x7)+parseInt(_0x2fc625(0x1da))/0x8*(parseInt(_0x2fc625(0x1b3))/0x9)+-parseInt(_0x2fc625(0x1d5))/0xa+parseInt(_0x2fc625(0x1af))/0xb;if(_0x1e64cb===_0x536233)break;else _0x106b40['push'](_0x106b40['shift']());}catch(_0x558e44){_0x106b40['push'](_0x106b40['shift']());}}}(a196_0x5185,0xca2e4));import a196_0x364c02 from'node:fs';import a196_0x1b9321 from'node:path';import{logger}from'../utils/logger.js';function a196_0x5185(){const _0x28b543=['alias','.tsx','processDirectory','tableName:\x20\x22','LOVRABET','toLowerCase','push','split','getMinutes','开始处理模板内容替换','.json','56935byYlYd','toISOString','toComponentName','replace','success','模板内容替换失败','charAt','replaceContent','formatLocalTimestamp','getDate','getFullYear','datasetCode','7895140zVHLhp','toUpperCase','isDirectory','padStart','135IlUaBE','pop','extname','30696tAkZIZ','slice','readdir','now','isFile','utf8','.js','440LKfiqM','processFile','info','name:\x20\x22','.tpl','join','.ts','map','mkdir','datasetCode:\x20\x22','.css','60LbBSTU','.scss','模板内容替换完成','319734eGrZmd','980966cLUSQe','endsWith','replaceApiContent','default','name','processTemplate','pad','promises','template','9086170jEXgjg','2UHYRHC','toDisplayTitle','message','.md','549624IaBTVg','YourModel','getMonth','copyFile'];a196_0x5185=function(){return _0x28b543;};return a196_0x5185();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x3f0d89(0x1d2)](_0x2ba811){const _0x475203=a196_0x3f0d89;return String(_0x2ba811)[_0x475203(0x1b2)](0x2,'0');}static[a196_0x3f0d89(0x1ab)](_0x33a1b1){const _0x385138=a196_0x3f0d89,_0xb9611a=_0x33a1b1[_0x385138(0x1ad)](),_0x31c896=this['pad'](_0x33a1b1[_0x385138(0x1dc)]()+0x1),_0x2419d3=this[_0x385138(0x1d2)](_0x33a1b1[_0x385138(0x1ac)]()),_0x172cd0=this[_0x385138(0x1d2)](_0x33a1b1['getHours']()),_0x10a1b1=this[_0x385138(0x1d2)](_0x33a1b1[_0x385138(0x1e6)]()),_0x36df63=this[_0x385138(0x1d2)](_0x33a1b1['getSeconds']());return{'createdAt':_0xb9611a+'-'+_0x31c896+'-'+_0x2419d3+'\x20'+_0x172cd0+':'+_0x10a1b1+':'+_0x36df63,'createdDate':_0xb9611a+'-'+_0x31c896+'-'+_0x2419d3,'createdTime':_0x172cd0+':'+_0x10a1b1+':'+_0x36df63};}static[a196_0x3f0d89(0x1a5)](_0x2a54af){const _0x1f65e1=a196_0x3f0d89,_0xebcda2=_0x2a54af[_0x1f65e1(0x1e5)]('/')['pop']()||_0x2a54af;return _0xebcda2[_0x1f65e1(0x1e5)]('-')[_0x1f65e1(0x1c4)](_0x2b3ff3=>_0x2b3ff3[_0x1f65e1(0x1a9)](0x0)['toUpperCase']()+_0x2b3ff3[_0x1f65e1(0x1b7)](0x1)[_0x1f65e1(0x1e3)]())[_0x1f65e1(0x1c2)]('');}static[a196_0x3f0d89(0x1d7)](_0x81ea76){const _0xa2a84e=a196_0x3f0d89,_0x5817eb=_0x81ea76[_0xa2a84e(0x1e5)]('/')[_0xa2a84e(0x1b4)]()||_0x81ea76;return _0x5817eb['split']('-')[_0xa2a84e(0x1c4)](_0x268dcc=>_0x268dcc[_0xa2a84e(0x1a9)](0x0)[_0xa2a84e(0x1b0)]()+_0x268dcc[_0xa2a84e(0x1b7)](0x1)[_0xa2a84e(0x1e3)]())['join']('\x20');}static['replaceContent'](_0x675fe,_0x50bd64,_0x16a69c){const _0x2a27c3=a196_0x3f0d89,_0x4de70d=this[_0x2a27c3(0x1a5)](_0x50bd64),_0x508aa7=this['toDisplayTitle'](_0x50bd64),{createdAt:_0x3b1a00,createdDate:_0x4036bb,createdTime:_0x354c7e}=this['formatLocalTimestamp'](new Date());let _0x2086b7=_0x675fe['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x4de70d)[_0x2a27c3(0x1a6)](/\{DisplayTitle\}/g,_0x508aa7)['replace'](/\{PageName\}/g,_0x50bd64)[_0x2a27c3(0x1a6)](/\{TemplateName\}/g,_0x16a69c)['replace'](/\{CreatedAt\}/g,_0x3b1a00)['replace'](/\{CreatedDate\}/g,_0x4036bb)[_0x2a27c3(0x1a6)](/\{CreatedTime\}/g,_0x354c7e);return _0x2086b7;}static[a196_0x3f0d89(0x1ce)](_0x53d19c,_0x1b8ea1,_0x56be7f,_0x42fc40,_0x35d878,_0x184e7a,_0x2cdfaf,_0x4ac694){const _0x34131f=a196_0x3f0d89,_0x65fe3d=new Date(),_0x19cb64=_0x65fe3d[_0x34131f(0x1a4)](),_0x29c8e0=_0x56be7f[_0x34131f(0x1c4)](_0x510674=>{const _0x591c07=_0x34131f,_0x1ab054=[_0x591c07(0x1c6)+_0x510674[_0x591c07(0x1ae)]+'\x22',_0x591c07(0x1e1)+_0x510674['tableName']+'\x22',_0x591c07(0x1c0)+_0x510674['name']+'\x22'];return _0x510674[_0x591c07(0x1de)]&&_0x1ab054[_0x591c07(0x1e4)]('alias:\x20\x22'+_0x510674[_0x591c07(0x1de)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x1ab054[_0x591c07(0x1c2)](',\x20')+'\x20},';})[_0x34131f(0x1c2)](''),_0x6594d8=_0x42fc40||_0x56be7f[0x0]?.[_0x34131f(0x1de)]||_0x34131f(0x1db);let _0x5b411f=_0x53d19c[_0x34131f(0x1a6)](/\{AppCode\}/g,_0x1b8ea1)[_0x34131f(0x1a6)](/\{ModelConfigs\}/g,_0x29c8e0)['replace'](/\{ExampleModelName\}/g,_0x6594d8)[_0x34131f(0x1a6)](/\{ApiFileName\}/g,_0x35d878||'api')[_0x34131f(0x1a6)](/\{ConfigName\}/g,_0x184e7a||_0x34131f(0x1cf))[_0x34131f(0x1a6)](/\{ClientConfigParam\}/g,_0x2cdfaf||'')['replace'](/\{VarPrefix\}/g,_0x4ac694||_0x34131f(0x1e2))[_0x34131f(0x1a6)](/\{CreatedAt\}/g,_0x19cb64);return _0x5b411f;}static async[a196_0x3f0d89(0x1d1)](_0x8e0cd8,_0x541853,_0x2ece4d,_0x18f0a5,_0x87fbc7=!![]){const _0x4f9ffd=a196_0x3f0d89,_0x1a58f9=Date[_0x4f9ffd(0x1b9)]();try{_0x87fbc7&&logger[_0x4f9ffd(0x1bf)]('template',_0x4f9ffd(0x1e7),{'templatePath':_0x8e0cd8,'targetPath':_0x541853,'pageName':_0x2ece4d,'templateName':_0x18f0a5});await a196_0x364c02['promises'][_0x4f9ffd(0x1c5)](_0x541853,{'recursive':!![]}),await this[_0x4f9ffd(0x1e0)](_0x8e0cd8,_0x541853,_0x2ece4d,_0x18f0a5);if(_0x87fbc7){const _0x375db6=Date['now']()-_0x1a58f9;logger[_0x4f9ffd(0x1a7)](_0x4f9ffd(0x1d4),_0x4f9ffd(0x1ca),_0x375db6,{'pageName':_0x2ece4d,'templateName':_0x18f0a5});}}catch(_0x1a1569){if(_0x87fbc7){const _0x45ff22=Date['now']()-_0x1a58f9;logger['error'](_0x4f9ffd(0x1d4),_0x4f9ffd(0x1a8),{'templatePath':_0x8e0cd8,'targetPath':_0x541853,'pageName':_0x2ece4d,'templateName':_0x18f0a5,'error':_0x1a1569 instanceof Error?_0x1a1569[_0x4f9ffd(0x1d8)]:String(_0x1a1569),'duration':_0x45ff22});}throw _0x1a1569;}}static async[a196_0x3f0d89(0x1e0)](_0x3c46b4,_0x4d6c4d,_0x157c69,_0x3ffb50){const _0xeb2723=a196_0x3f0d89,_0x2300d3=await a196_0x364c02[_0xeb2723(0x1d3)][_0xeb2723(0x1b8)](_0x3c46b4,{'withFileTypes':!![]});for(const _0x245b4b of _0x2300d3){const _0x1cb2a6=a196_0x1b9321[_0xeb2723(0x1c2)](_0x3c46b4,_0x245b4b[_0xeb2723(0x1d0)]);let _0x15c220=a196_0x1b9321[_0xeb2723(0x1c2)](_0x4d6c4d,_0x245b4b[_0xeb2723(0x1d0)]);_0x245b4b['name'][_0xeb2723(0x1cd)](_0xeb2723(0x1c1))&&(_0x15c220=a196_0x1b9321[_0xeb2723(0x1c2)](_0x4d6c4d,_0x245b4b[_0xeb2723(0x1d0)]['replace'](/\.tpl$/,'')));if(_0x245b4b[_0xeb2723(0x1b1)]())await a196_0x364c02['promises'][_0xeb2723(0x1c5)](_0x15c220,{'recursive':!![]}),await this['processDirectory'](_0x1cb2a6,_0x15c220,_0x157c69,_0x3ffb50);else _0x245b4b[_0xeb2723(0x1ba)]()&&await this['processFile'](_0x1cb2a6,_0x15c220,_0x157c69,_0x3ffb50);}}static async[a196_0x3f0d89(0x1be)](_0x5120e0,_0x363e61,_0x2451b7,_0x43a9c1){const _0x39b5d9=a196_0x3f0d89,_0x567e59=a196_0x1b9321[_0x39b5d9(0x1b5)](_0x5120e0)['toLowerCase']();_0x5120e0[_0x39b5d9(0x1cd)]('.tpl')&&(_0x363e61=_0x363e61['replace'](/\.tpl$/,''));const _0x121213=[_0x39b5d9(0x1df),_0x39b5d9(0x1c3),'.jsx',_0x39b5d9(0x1bc),_0x39b5d9(0x1e8),_0x39b5d9(0x1d9),_0x39b5d9(0x1c7),_0x39b5d9(0x1c9),_0x39b5d9(0x1c1)];if(_0x121213['includes'](_0x567e59)||_0x5120e0[_0x39b5d9(0x1cd)]('.tpl')){const _0x5490ce=await a196_0x364c02[_0x39b5d9(0x1d3)]['readFile'](_0x5120e0,_0x39b5d9(0x1bb)),_0x2b33ba=this[_0x39b5d9(0x1aa)](_0x5490ce,_0x2451b7,_0x43a9c1);await a196_0x364c02[_0x39b5d9(0x1d3)]['writeFile'](_0x363e61,_0x2b33ba,'utf8');}else await a196_0x364c02['promises'][_0x39b5d9(0x1dd)](_0x5120e0,_0x363e61);}}
@@ -1 +1 @@
1
- function a197_0x39d3(){var _0x18a470=['140485hLPfWz','12920ToUnEE','1388610Dizmyy','10EeOqNf','1970yhpoDi','104CKWcIp','6393852VeKmyq','214109JwzDpq','2259306njpBHq','6748440WkfgOo'];a197_0x39d3=function(){return _0x18a470;};return a197_0x39d3();}(function(_0x2fa3b6,_0xe5cc2c){var _0x433e5b=a197_0x5a15,_0x3c83e6=_0x2fa3b6();while(!![]){try{var _0x107d52=-parseInt(_0x433e5b(0x1ea))/0x1*(-parseInt(_0x433e5b(0x1e3))/0x2)+-parseInt(_0x433e5b(0x1ec))/0x3+-parseInt(_0x433e5b(0x1eb))/0x4*(-parseInt(_0x433e5b(0x1e4))/0x5)+-parseInt(_0x433e5b(0x1e8))/0x6+-parseInt(_0x433e5b(0x1e7))/0x7*(parseInt(_0x433e5b(0x1e5))/0x8)+parseInt(_0x433e5b(0x1e6))/0x9+-parseInt(_0x433e5b(0x1e9))/0xa;if(_0x107d52===_0xe5cc2c)break;else _0x3c83e6['push'](_0x3c83e6['shift']());}catch(_0x30ddc8){_0x3c83e6['push'](_0x3c83e6['shift']());}}}(a197_0x39d3,0xbcdc9));import{VERSION}from'../generated/build-info.js';function a197_0x5a15(_0x566397,_0x216ca8){_0x566397=_0x566397-0x1e3;var _0x39d36e=a197_0x39d3();var _0x5a1563=_0x39d36e[_0x566397];return _0x5a1563;}export function getCliVersion(){return VERSION;}
1
+ function a197_0x2e8d(_0x96a88b,_0x3e3449){_0x96a88b=_0x96a88b-0x113;var _0x1a0f08=a197_0x1a0f();var _0x2e8d40=_0x1a0f08[_0x96a88b];return _0x2e8d40;}(function(_0x4fdc99,_0x513c72){var _0x4324f0=a197_0x2e8d,_0x4b3503=_0x4fdc99();while(!![]){try{var _0x43dc9d=-parseInt(_0x4324f0(0x116))/0x1*(-parseInt(_0x4324f0(0x117))/0x2)+-parseInt(_0x4324f0(0x11c))/0x3*(-parseInt(_0x4324f0(0x118))/0x4)+parseInt(_0x4324f0(0x115))/0x5+parseInt(_0x4324f0(0x11d))/0x6+parseInt(_0x4324f0(0x11b))/0x7*(-parseInt(_0x4324f0(0x11a))/0x8)+-parseInt(_0x4324f0(0x113))/0x9*(-parseInt(_0x4324f0(0x119))/0xa)+-parseInt(_0x4324f0(0x114))/0xb*(parseInt(_0x4324f0(0x11e))/0xc);if(_0x43dc9d===_0x513c72)break;else _0x4b3503['push'](_0x4b3503['shift']());}catch(_0x13d82e){_0x4b3503['push'](_0x4b3503['shift']());}}}(a197_0x1a0f,0xe8913));import{VERSION}from'../generated/build-info.js';function a197_0x1a0f(){var _0x1c5fae=['384740UnJYTv','1150yNoSAp','3989224ZPWeyP','7OBaVaN','51yfdboF','5806392AieXcJ','36KsXTMS','38457mhwmlx','16448850aJTUdi','8074390OaxNtW','72244rFCljf','34KVtyoi'];a197_0x1a0f=function(){return _0x1c5fae;};return a197_0x1a0f();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a198_0xe6f7(){var _0x5cf2df=['3980900oWWArV','14036Wszmkr','29588VPtPXz','9279882TeHhQA','3ZDWPmE','8IuZRTy','22660qGQBWB','4790NlUvQe','3397695MUUbPF','724956XmkpOn','24XeBNhY'];a198_0xe6f7=function(){return _0x5cf2df;};return a198_0xe6f7();}(function(_0x1146d5,_0x130756){var _0xe2e684=a198_0x59d9,_0x144172=_0x1146d5();while(!![]){try{var _0x252948=parseInt(_0xe2e684(0x131))/0x1*(parseInt(_0xe2e684(0x138))/0x2)+parseInt(_0xe2e684(0x136))/0x3*(-parseInt(_0xe2e684(0x134))/0x4)+-parseInt(_0xe2e684(0x12f))/0x5+-parseInt(_0xe2e684(0x130))/0x6+-parseInt(_0xe2e684(0x132))/0x7+-parseInt(_0xe2e684(0x137))/0x8*(-parseInt(_0xe2e684(0x135))/0x9)+parseInt(_0xe2e684(0x12e))/0xa*(parseInt(_0xe2e684(0x133))/0xb);if(_0x252948===_0x130756)break;else _0x144172['push'](_0x144172['shift']());}catch(_0x21912a){_0x144172['push'](_0x144172['shift']());}}}(a198_0xe6f7,0x834a0));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a198_0x59d9(_0x4a1509,_0xefadbe){_0x4a1509=_0x4a1509-0x12e;var _0xe6f71d=a198_0xe6f7();var _0x59d9ae=_0xe6f71d[_0x4a1509];return _0x59d9ae;}export async function withActiveCookie(_0x2a02aa,_0x33d2a6){setActiveCookie(_0x2a02aa);try{return await _0x33d2a6();}finally{clearActiveCookie();}}
1
+ (function(_0x5699d1,_0x269ca5){var _0x225f87=a198_0xe291,_0x2f9777=_0x5699d1();while(!![]){try{var _0x551d59=-parseInt(_0x225f87(0xa2))/0x1+parseInt(_0x225f87(0x9e))/0x2+-parseInt(_0x225f87(0x9f))/0x3*(-parseInt(_0x225f87(0x9d))/0x4)+parseInt(_0x225f87(0xa1))/0x5+-parseInt(_0x225f87(0xa0))/0x6*(parseInt(_0x225f87(0x9c))/0x7)+parseInt(_0x225f87(0x9b))/0x8*(parseInt(_0x225f87(0xa3))/0x9)+parseInt(_0x225f87(0x9a))/0xa*(-parseInt(_0x225f87(0xa4))/0xb);if(_0x551d59===_0x269ca5)break;else _0x2f9777['push'](_0x2f9777['shift']());}catch(_0x2b76c3){_0x2f9777['push'](_0x2f9777['shift']());}}}(a198_0x5ec1,0xcf076));function a198_0xe291(_0x9be52d,_0x5c2107){_0x9be52d=_0x9be52d-0x9a;var _0x5ec1a7=a198_0x5ec1();var _0xe291f9=_0x5ec1a7[_0x9be52d];return _0xe291f9;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5e784a,_0x45faee){setActiveCookie(_0x5e784a);try{return await _0x45faee();}finally{clearActiveCookie();}}function a198_0x5ec1(){var _0x55a045=['102QjFsBd','2848045ELpLQE','481173cMHFIo','18BhdWVe','17798QDySzp','70pvEINq','5355448eFhBTP','607187kLwRAM','20zALHMg','680070dLiWjL','339948aYNgKQ'];a198_0x5ec1=function(){return _0x55a045;};return a198_0x5ec1();}
@@ -1 +1 @@
1
- (function(_0x1daa20,_0x517a23){var _0x590cf2=a199_0x2b64,_0x432292=_0x1daa20();while(!![]){try{var _0x16a57a=-parseInt(_0x590cf2(0x1b0))/0x1+-parseInt(_0x590cf2(0x1aa))/0x2*(-parseInt(_0x590cf2(0x1b2))/0x3)+parseInt(_0x590cf2(0x1ad))/0x4+-parseInt(_0x590cf2(0x1af))/0x5+-parseInt(_0x590cf2(0x1ac))/0x6*(-parseInt(_0x590cf2(0x1a9))/0x7)+-parseInt(_0x590cf2(0x1ae))/0x8+parseInt(_0x590cf2(0x1b3))/0x9*(-parseInt(_0x590cf2(0x1ab))/0xa);if(_0x16a57a===_0x517a23)break;else _0x432292['push'](_0x432292['shift']());}catch(_0x4d5deb){_0x432292['push'](_0x432292['shift']());}}}(a199_0x4122,0x42e2d));export function writeCliSideChannelLine(_0xdf383b){var _0x25bc55=a199_0x2b64;process[_0x25bc55(0x1b1)]['write'](_0xdf383b+'\x0a');}function a199_0x2b64(_0xe71d46,_0x467d16){_0xe71d46=_0xe71d46-0x1a9;var _0x4122c3=a199_0x4122();var _0x2b6415=_0x4122c3[_0xe71d46];return _0x2b6415;}function a199_0x4122(){var _0x4d2f28=['9sWLtoH','218659ZmtMBZ','3126nrTVQh','1467210bDunLE','30eOGKnR','1838420dAfqVr','2351720zzSVZC','160785ORewXB','333193vLxelH','stderr','891WpWzlG'];a199_0x4122=function(){return _0x4d2f28;};return a199_0x4122();}
1
+ function a199_0x41d9(_0x3606be,_0x26a862){_0x3606be=_0x3606be-0x162;var _0x2b450d=a199_0x2b45();var _0x41d9e8=_0x2b450d[_0x3606be];return _0x41d9e8;}(function(_0x83459,_0x4416fe){var _0x5df138=a199_0x41d9,_0x4238a3=_0x83459();while(!![]){try{var _0x504314=-parseInt(_0x5df138(0x167))/0x1+parseInt(_0x5df138(0x164))/0x2+parseInt(_0x5df138(0x16a))/0x3*(parseInt(_0x5df138(0x165))/0x4)+parseInt(_0x5df138(0x16b))/0x5+-parseInt(_0x5df138(0x169))/0x6+parseInt(_0x5df138(0x163))/0x7+-parseInt(_0x5df138(0x168))/0x8;if(_0x504314===_0x4416fe)break;else _0x4238a3['push'](_0x4238a3['shift']());}catch(_0xd9e00e){_0x4238a3['push'](_0x4238a3['shift']());}}}(a199_0x2b45,0xe05e1));function a199_0x2b45(){var _0x164b0f=['write','12483716OZHlOg','1474634HCHxQE','1610468CTZKFh','stderr','1021193mRSofS','21193976OKjEhS','1857222hOBBtW','6PtHAHc','7865235dgJLNt'];a199_0x2b45=function(){return _0x164b0f;};return a199_0x2b45();}export function writeCliSideChannelLine(_0x49545b){var _0x768a17=a199_0x41d9;process[_0x768a17(0x166)][_0x768a17(0x162)](_0x49545b+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.7-beta.4",
3
+ "version": "2.1.7-beta.5",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",