@lovrabet/rabetbase-cli 2.2.4-beta.5 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/commands/workspace/index.js +1 -0
  135. package/lib/config/schema.js +1 -1
  136. package/lib/constant/cdn.js +1 -1
  137. package/lib/constant/cli.js +1 -1
  138. package/lib/constant/defaults.js +1 -1
  139. package/lib/constant/domain.js +1 -1
  140. package/lib/constant/env.js +1 -1
  141. package/lib/constant/output.js +1 -1
  142. package/lib/constant/paths.js +1 -1
  143. package/lib/constant/risk.js +1 -1
  144. package/lib/context/app-resolver.js +1 -1
  145. package/lib/context/auth-resolver.js +1 -1
  146. package/lib/context/config-loader.js +1 -1
  147. package/lib/context.js +1 -1
  148. package/lib/core/alias-resolver.js +1 -1
  149. package/lib/core/api-client.js +1 -1
  150. package/lib/core/bff/config.js +1 -1
  151. package/lib/core/bff/file-system.js +1 -1
  152. package/lib/core/bff/hash.js +1 -1
  153. package/lib/core/bff/lock.js +1 -1
  154. package/lib/core/bff/utils.js +1 -1
  155. package/lib/core/db-resolver.js +1 -1
  156. package/lib/core/page/file-system.js +1 -1
  157. package/lib/core/page/hash.js +1 -1
  158. package/lib/core/page/lock.js +1 -1
  159. package/lib/core/sql-sync/config.js +1 -1
  160. package/lib/core/sql-sync/file-system.js +1 -1
  161. package/lib/core/sql-sync/hash.js +1 -1
  162. package/lib/core/sql-sync/lock.js +1 -1
  163. package/lib/core/sql-sync/utils.js +1 -1
  164. package/lib/core/sql-validator.js +1 -1
  165. package/lib/errors.js +1 -1
  166. package/lib/framework/build-all-flags.js +1 -1
  167. package/lib/framework/flags.js +1 -1
  168. package/lib/framework/help.js +1 -1
  169. package/lib/framework/index.js +1 -1
  170. package/lib/framework/output.js +1 -1
  171. package/lib/framework/response.js +1 -1
  172. package/lib/framework/runner-alias.js +1 -1
  173. package/lib/framework/runner.js +1 -1
  174. package/lib/framework/schema-export.js +1 -1
  175. package/lib/framework/types.js +1 -1
  176. package/lib/generated/build-info.js +1 -1
  177. package/lib/help.js +1 -1
  178. package/lib/skills/main.js +1 -1
  179. package/lib/skills/npx-skills-add.js +1 -1
  180. package/lib/telemetry/cli-command-trace.js +1 -1
  181. package/lib/telemetry/cli-help-trace.js +1 -1
  182. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  183. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  184. package/lib/telemetry/send-cli-trace-log.js +1 -1
  185. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  186. package/lib/utils/ai_config.js +1 -1
  187. package/lib/utils/apply-jq-filter.js +1 -1
  188. package/lib/utils/cdn-config.js +1 -1
  189. package/lib/utils/check-sdk-version.js +1 -1
  190. package/lib/utils/cli-version-check.js +1 -1
  191. package/lib/utils/cli-version-policy.js +1 -1
  192. package/lib/utils/config.js +1 -1
  193. package/lib/utils/copy-directory.js +1 -1
  194. package/lib/utils/entity-with-id.js +1 -1
  195. package/lib/utils/file-utils.js +1 -1
  196. package/lib/utils/guides-cdn.js +1 -1
  197. package/lib/utils/http-client.js +1 -1
  198. package/lib/utils/is-non-interactive.js +1 -1
  199. package/lib/utils/logger.js +1 -1
  200. package/lib/utils/params.js +1 -1
  201. package/lib/utils/platform.js +1 -1
  202. package/lib/utils/rules-cdn.js +1 -1
  203. package/lib/utils/sleep.js +1 -1
  204. package/lib/utils/template-replacer.js +1 -1
  205. package/lib/utils/update-notice.js +1 -1
  206. package/lib/utils/version.js +1 -1
  207. package/lib/utils/with-active-cookie.js +1 -1
  208. package/lib/utils/write-cli-side-channel.js +1 -1
  209. package/package.json +1 -1
@@ -1 +1 @@
1
- const a192_0xd79c3e=a192_0x1e2b;(function(_0x124b18,_0x1f22da){const _0x2cc183=a192_0x1e2b,_0x365eb5=_0x124b18();while(!![]){try{const _0x4cdfdc=parseInt(_0x2cc183(0x107))/0x1+-parseInt(_0x2cc183(0x10c))/0x2+-parseInt(_0x2cc183(0x116))/0x3*(-parseInt(_0x2cc183(0x122))/0x4)+-parseInt(_0x2cc183(0x109))/0x5*(-parseInt(_0x2cc183(0x110))/0x6)+parseInt(_0x2cc183(0x11e))/0x7+parseInt(_0x2cc183(0x123))/0x8*(-parseInt(_0x2cc183(0x11c))/0x9)+parseInt(_0x2cc183(0x11d))/0xa*(-parseInt(_0x2cc183(0x119))/0xb);if(_0x4cdfdc===_0x1f22da)break;else _0x365eb5['push'](_0x365eb5['shift']());}catch(_0x28770c){_0x365eb5['push'](_0x365eb5['shift']());}}}(a192_0x4b84,0x59d4c));import a192_0x573786 from'node:fs';import a192_0x4168c0 from'node:path';import a192_0x242391 from'semver';function a192_0x1e2b(_0x53fce6,_0x47ab24){_0x53fce6=_0x53fce6-0x100;const _0x4b8402=a192_0x4b84();let _0x1e2b01=_0x4b8402[_0x53fce6];return _0x1e2b01;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a192_0xd79c3e(0x104);function isNonNumericVersion(_0x2c7a1){const _0x399f4d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x399f4d['some'](_0x3e568a=>_0x3e568a['test'](_0x2c7a1));}function getInstalledVersion(_0x282706,_0x42fee6){const _0x587549=a192_0xd79c3e;try{const _0x523aa8=a192_0x4168c0[_0x587549(0x102)](_0x282706,_0x587549(0x108),_0x42fee6,'package.json');if(a192_0x573786[_0x587549(0x10a)](_0x523aa8)){const _0x130401=JSON[_0x587549(0x10b)](a192_0x573786[_0x587549(0x10d)](_0x523aa8,'utf-8'));return _0x130401[_0x587549(0x114)]||null;}}catch{}return null;}function a192_0x4b84(){const _0x5da265=['coerce','version','all','1079826OxgDFS','utf8','\x20\x20\x20Current\x20version:\x20','1938112wLPTFF','sdk','@lovrabet/sdk','27uKeiJA','30yPCuDn','2590322HToECc','devDependencies','packageName','dependencies','8YFjQLk','691816diCNrA','needsUpgrade','package.json','join','log','1.2.0','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','302746OCupei','node_modules','635330yTAkzj','existsSync','parse','981706kCuxkD','readFileSync','minVersion','\x1b[33m','12KgHmHD','stableVersion','node'];a192_0x4b84=function(){return _0x5da265;};return a192_0x4b84();}async function getSdkStableVersion(){const _0x5434e3=a192_0xd79c3e;try{const _0x40f4ae=await getCdnConfig();return _0x40f4ae?.[_0x5434e3(0x11a)]?.['node']?.[_0x5434e3(0x111)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x383e12=a192_0xd79c3e;try{const _0x383290=await getCdnConfig();return _0x383290?.[_0x383e12(0x11a)]?.[_0x383e12(0x112)]?.[_0x383e12(0x120)]||_0x383e12(0x11b);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x518f61){const _0x5924e3=a192_0xd79c3e,_0x24dc15=a192_0x4168c0['join'](_0x518f61,'package.json'),[_0x1f4682,_0x1ec89f]=await Promise[_0x5924e3(0x115)]([getSdkStableVersion(),getSdkPackageName()]),_0x441cf7=_0x1f4682||FALLBACK_MIN_SDK_VERSION;if(!a192_0x573786[_0x5924e3(0x10a)](_0x24dc15))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x441cf7,'packageName':_0x1ec89f,'stableVersion':_0x1f4682};try{const _0x5e4699=JSON['parse'](a192_0x573786[_0x5924e3(0x10d)](_0x24dc15,_0x5924e3(0x117))),_0x453351=_0x5e4699['dependencies']||{},_0x12075c=_0x5e4699[_0x5924e3(0x11f)]||{},_0x7e262e=_0x453351[_0x1ec89f]||_0x12075c[_0x1ec89f];if(!_0x7e262e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x441cf7,'packageName':_0x1ec89f,'stableVersion':_0x1f4682};let _0x49ab1e=getInstalledVersion(_0x518f61,_0x1ec89f);!_0x49ab1e&&(_0x49ab1e=_0x7e262e);if(isNonNumericVersion(_0x7e262e))return{'installed':!![],'version':_0x49ab1e,'needsUpgrade':![],'minVersion':_0x441cf7,'packageName':_0x1ec89f,'stableVersion':_0x1f4682};const _0x4eff3e=a192_0x242391[_0x5924e3(0x113)](_0x49ab1e),_0x4c70ec=a192_0x242391[_0x5924e3(0x113)](_0x441cf7),_0x4b3863=_0x4eff3e&&_0x4c70ec?a192_0x242391['lt'](_0x4eff3e,_0x4c70ec):![];return{'installed':!![],'version':_0x49ab1e,'needsUpgrade':_0x4b3863,'minVersion':_0x441cf7,'packageName':_0x1ec89f,'stableVersion':_0x1f4682};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x441cf7,'packageName':_0x1ec89f,'stableVersion':_0x1f4682};}}export function checkSdkVersionSync(_0x112bea){const _0x271fb2=a192_0xd79c3e,_0x4c0a0c=a192_0x4168c0[_0x271fb2(0x102)](_0x112bea,_0x271fb2(0x101)),_0x284a55=_0x271fb2(0x11b);if(!a192_0x573786[_0x271fb2(0x10a)](_0x4c0a0c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x284a55,'stableVersion':null};try{const _0x369976=JSON[_0x271fb2(0x10b)](a192_0x573786[_0x271fb2(0x10d)](_0x4c0a0c,_0x271fb2(0x117))),_0x2006f4=_0x369976[_0x271fb2(0x121)]||{},_0x3f1b25=_0x369976[_0x271fb2(0x11f)]||{},_0x58630d=_0x2006f4[_0x284a55]||_0x3f1b25[_0x284a55];if(!_0x58630d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x284a55,'stableVersion':null};let _0x1622d9=getInstalledVersion(_0x112bea,_0x284a55);!_0x1622d9&&(_0x1622d9=_0x58630d);if(isNonNumericVersion(_0x58630d))return{'installed':!![],'version':_0x1622d9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x284a55,'stableVersion':null};const _0x57afab=a192_0x242391[_0x271fb2(0x113)](_0x1622d9),_0x272854=_0x57afab?a192_0x242391['lt'](_0x57afab,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1622d9,'needsUpgrade':_0x272854,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x284a55,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x284a55,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x237934){const _0x3e7a12=a192_0xd79c3e;if(!_0x237934[_0x3e7a12(0x100)])return;const _0x52b3f1=_0x3e7a12(0x10f),_0x226a8b='\x1b[0m',_0x3190ac='\x1b[1m',_0x323a72=_0x237934[_0x3e7a12(0x120)]||_0x3e7a12(0x11b),_0x5a34d2=_0x237934[_0x3e7a12(0x111)]||_0x237934[_0x3e7a12(0x10e)],_0x5daa36='npm\x20install\x20'+_0x323a72+'@'+(_0x5a34d2||'latest');console[_0x3e7a12(0x103)](),console[_0x3e7a12(0x103)](''+_0x52b3f1+_0x3190ac+'↪\x20SDK\x20update\x20available'+_0x226a8b),console[_0x3e7a12(0x103)](_0x52b3f1+_0x3e7a12(0x118)+_0x323a72+'@'+_0x237934[_0x3e7a12(0x114)]+_0x226a8b),console['log'](_0x52b3f1+_0x3e7a12(0x105)+_0x5a34d2+_0x226a8b),console[_0x3e7a12(0x103)](_0x52b3f1+_0x3e7a12(0x106)+_0x5daa36+_0x226a8b),console['log']();}
1
+ (function(_0x3d73d9,_0x545db7){const _0xa6eb0f=a193_0x41ba,_0x234a13=_0x3d73d9();while(!![]){try{const _0x55a445=parseInt(_0xa6eb0f(0x10a))/0x1*(parseInt(_0xa6eb0f(0x109))/0x2)+-parseInt(_0xa6eb0f(0x105))/0x3*(-parseInt(_0xa6eb0f(0xf9))/0x4)+parseInt(_0xa6eb0f(0xfa))/0x5+parseInt(_0xa6eb0f(0xf3))/0x6*(parseInt(_0xa6eb0f(0x106))/0x7)+parseInt(_0xa6eb0f(0xfc))/0x8+parseInt(_0xa6eb0f(0x10b))/0x9+-parseInt(_0xa6eb0f(0x103))/0xa;if(_0x55a445===_0x545db7)break;else _0x234a13['push'](_0x234a13['shift']());}catch(_0x432458){_0x234a13['push'](_0x234a13['shift']());}}}(a193_0x1ed0,0x57871));import a193_0x3dda27 from'node:fs';function a193_0x41ba(_0x5e163e,_0x1afb07){_0x5e163e=_0x5e163e-0xe9;const _0x1ed0d0=a193_0x1ed0();let _0x41ba38=_0x1ed0d0[_0x5e163e];return _0x41ba38;}import a193_0x4fec8b from'node:path';import a193_0x10a160 from'semver';function a193_0x1ed0(){const _0x56003e=['13801590VVwWbZ','join','785181qAXOnM','4926901dtuTqx','\x1b[1m','\x20\x20\x20Stable\x20version:\x20','2vbgHNl','27736EBXgtc','1540521mHpIXe','dependencies','version','utf8','log','node','stableVersion','needsUpgrade','readFileSync','latest','@lovrabet/sdk','packageName','6PRYTnd','coerce','\x20\x20\x20Current\x20version:\x20','package.json','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20','4AnZjmi','1470130GCldNP','devDependencies','2241368RjUBBZ','node_modules','parse','↪\x20SDK\x20update\x20available','existsSync','sdk','some'];a193_0x1ed0=function(){return _0x56003e;};return a193_0x1ed0();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x571dfd){const _0x3f3ad5=a193_0x41ba,_0x2e2276=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2e2276[_0x3f3ad5(0x102)](_0x340caa=>_0x340caa['test'](_0x571dfd));}function getInstalledVersion(_0x3188b1,_0x399389){const _0x479921=a193_0x41ba;try{const _0x51e37c=a193_0x4fec8b[_0x479921(0x104)](_0x3188b1,_0x479921(0xfd),_0x399389,_0x479921(0xf6));if(a193_0x3dda27['existsSync'](_0x51e37c)){const _0x4a9daa=JSON['parse'](a193_0x3dda27[_0x479921(0xef)](_0x51e37c,'utf-8'));return _0x4a9daa[_0x479921(0xe9)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4a2705=a193_0x41ba;try{const _0x5e17c2=await getCdnConfig();return _0x5e17c2?.[_0x4a2705(0x101)]?.[_0x4a2705(0xec)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x4141be=a193_0x41ba;try{const _0xec4aec=await getCdnConfig();return _0xec4aec?.[_0x4141be(0x101)]?.[_0x4141be(0xec)]?.[_0x4141be(0xf2)]||_0x4141be(0xf1);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x3ba860){const _0x27b6b6=a193_0x41ba,_0x1119eb=a193_0x4fec8b[_0x27b6b6(0x104)](_0x3ba860,_0x27b6b6(0xf6)),[_0x4adfeb,_0x309755]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x2eacfc=_0x4adfeb||FALLBACK_MIN_SDK_VERSION;if(!a193_0x3dda27[_0x27b6b6(0x100)](_0x1119eb))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2eacfc,'packageName':_0x309755,'stableVersion':_0x4adfeb};try{const _0x3e5916=JSON[_0x27b6b6(0xfe)](a193_0x3dda27[_0x27b6b6(0xef)](_0x1119eb,_0x27b6b6(0xea))),_0x51891f=_0x3e5916[_0x27b6b6(0x10c)]||{},_0x4c4acf=_0x3e5916['devDependencies']||{},_0xaeb33c=_0x51891f[_0x309755]||_0x4c4acf[_0x309755];if(!_0xaeb33c)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2eacfc,'packageName':_0x309755,'stableVersion':_0x4adfeb};let _0x104e2e=getInstalledVersion(_0x3ba860,_0x309755);!_0x104e2e&&(_0x104e2e=_0xaeb33c);if(isNonNumericVersion(_0xaeb33c))return{'installed':!![],'version':_0x104e2e,'needsUpgrade':![],'minVersion':_0x2eacfc,'packageName':_0x309755,'stableVersion':_0x4adfeb};const _0x2b90f5=a193_0x10a160[_0x27b6b6(0xf4)](_0x104e2e),_0x5ea65f=a193_0x10a160[_0x27b6b6(0xf4)](_0x2eacfc),_0x431826=_0x2b90f5&&_0x5ea65f?a193_0x10a160['lt'](_0x2b90f5,_0x5ea65f):![];return{'installed':!![],'version':_0x104e2e,'needsUpgrade':_0x431826,'minVersion':_0x2eacfc,'packageName':_0x309755,'stableVersion':_0x4adfeb};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2eacfc,'packageName':_0x309755,'stableVersion':_0x4adfeb};}}export function checkSdkVersionSync(_0x238ab1){const _0x1c876a=a193_0x41ba,_0x355d46=a193_0x4fec8b[_0x1c876a(0x104)](_0x238ab1,_0x1c876a(0xf6)),_0x37b9b8=_0x1c876a(0xf1);if(!a193_0x3dda27[_0x1c876a(0x100)](_0x355d46))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37b9b8,'stableVersion':null};try{const _0x357f20=JSON[_0x1c876a(0xfe)](a193_0x3dda27[_0x1c876a(0xef)](_0x355d46,_0x1c876a(0xea))),_0x42ef70=_0x357f20[_0x1c876a(0x10c)]||{},_0x57943f=_0x357f20[_0x1c876a(0xfb)]||{},_0x2e25b4=_0x42ef70[_0x37b9b8]||_0x57943f[_0x37b9b8];if(!_0x2e25b4)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37b9b8,'stableVersion':null};let _0x2f57b0=getInstalledVersion(_0x238ab1,_0x37b9b8);!_0x2f57b0&&(_0x2f57b0=_0x2e25b4);if(isNonNumericVersion(_0x2e25b4))return{'installed':!![],'version':_0x2f57b0,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37b9b8,'stableVersion':null};const _0x1bacb7=a193_0x10a160[_0x1c876a(0xf4)](_0x2f57b0),_0xf06781=_0x1bacb7?a193_0x10a160['lt'](_0x1bacb7,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2f57b0,'needsUpgrade':_0xf06781,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37b9b8,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37b9b8,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2136a7){const _0x2051f4=a193_0x41ba;if(!_0x2136a7[_0x2051f4(0xee)])return;const _0x49c794='\x1b[33m',_0x3eec40='\x1b[0m',_0x61a281=_0x2051f4(0x107),_0x429070=_0x2136a7[_0x2051f4(0xf2)]||_0x2051f4(0xf1),_0x335147=_0x2136a7[_0x2051f4(0xed)]||_0x2136a7['minVersion'],_0x254f1d=_0x2051f4(0xf8)+_0x429070+'@'+(_0x335147||_0x2051f4(0xf0));console['log'](),console[_0x2051f4(0xeb)](''+_0x49c794+_0x61a281+_0x2051f4(0xff)+_0x3eec40),console['log'](_0x49c794+_0x2051f4(0xf5)+_0x429070+'@'+_0x2136a7[_0x2051f4(0xe9)]+_0x3eec40),console[_0x2051f4(0xeb)](_0x49c794+_0x2051f4(0x108)+_0x335147+_0x3eec40),console[_0x2051f4(0xeb)](_0x49c794+_0x2051f4(0xf7)+_0x254f1d+_0x3eec40),console[_0x2051f4(0xeb)]();}
@@ -1 +1 @@
1
- (function(_0x127ed9,_0x140643){const _0x2e5a3f=a193_0x1d26,_0x26d00d=_0x127ed9();while(!![]){try{const _0x910e7c=parseInt(_0x2e5a3f(0x130))/0x1*(-parseInt(_0x2e5a3f(0x12f))/0x2)+parseInt(_0x2e5a3f(0x13b))/0x3*(-parseInt(_0x2e5a3f(0x125))/0x4)+-parseInt(_0x2e5a3f(0x136))/0x5*(parseInt(_0x2e5a3f(0x12b))/0x6)+-parseInt(_0x2e5a3f(0x148))/0x7+parseInt(_0x2e5a3f(0x142))/0x8+-parseInt(_0x2e5a3f(0x138))/0x9*(-parseInt(_0x2e5a3f(0x147))/0xa)+parseInt(_0x2e5a3f(0x128))/0xb;if(_0x910e7c===_0x140643)break;else _0x26d00d['push'](_0x26d00d['shift']());}catch(_0x4051ca){_0x26d00d['push'](_0x26d00d['shift']());}}}(a193_0x3a2c,0x8482c));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a193_0x1d26(_0x2430d2,_0x18759b){_0x2430d2=_0x2430d2-0x125;const _0x3a2c6d=a193_0x3a2c();let _0x1d26ab=_0x3a2c6d[_0x2430d2];return _0x1d26ab;}import{fileURLToPath}from'node:url';import a193_0x5b9efe from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a193_0x3a2c(){const _0x3cedc1=['15104793ZsMxeY','\x1b[31m','\x20\x20\x20','6iEpuOz','Current\x20version:\x20','npm\x20install\x20-g\x20','join','368gkTnsb','5819LlxpPV','latest','stableVersion','utf-8','\x20\x20\x20Upgrade\x20command:\x20','minimumVersionMessage','1378175YUONBD','package.json','45PDcvOc','belowMinimum','minimumVersion','3GjIfLo','\x20\x20\x20Minimum\x20supported:\x20','Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[0m','currentVersion','needsUpgrade','1766848XYlhQY','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','upgradeMessage','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','2115350iQlMdM','5068532wUWOyF','1.0.0','154092dOSlGE','log','\x20\x20\x20Stable\x20version:\x20'];a193_0x3a2c=function(){return _0x3cedc1;};return a193_0x3a2c();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x53bbc3){const _0x2685cb=a193_0x1d26,_0x89b1a5=_0x53bbc3['stableVersion']||_0x2685cb(0x131);return _0x2685cb(0x12d)+NPM_PACKAGE_NAME+'@'+_0x89b1a5;}function getCurrentCliVersion(){const _0x11d40e=a193_0x1d26;try{const _0xf62cb4=fileURLToPath(import.meta.url),_0x24abd2=resolve(dirname(_0xf62cb4),'../..'),_0x425c10=resolve(_0x24abd2,_0x11d40e(0x137)),_0x406f1a=JSON['parse'](readFileSync(_0x425c10,_0x11d40e(0x133)));return _0x406f1a['version']||_0x11d40e(0x149);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0xe8963f=a193_0x1d26,_0x3c1bbd=getCurrentCliVersion(),_0x1a2391=await getCliVersionPolicy(),_0x5cc180=_0x1a2391?.['stableVersion']||null,_0x359e91=_0x1a2391?.[_0xe8963f(0x13a)]||null;let _0x3b2e2e=![],_0x487718=![];const _0x3673e2=a193_0x5b9efe['coerce'](_0x3c1bbd);if(_0x3673e2&&_0x5cc180)try{const _0x51af5d=a193_0x5b9efe[_0xe8963f(0x144)](_0x5cc180);if(_0x51af5d)_0x3b2e2e=a193_0x5b9efe['lt'](_0x3673e2,_0x51af5d);}catch{}if(_0x3673e2&&_0x359e91)try{const _0x451cdc=a193_0x5b9efe[_0xe8963f(0x144)](_0x359e91);if(_0x451cdc)_0x487718=a193_0x5b9efe['lt'](_0x3673e2,_0x451cdc);}catch{}return _0x487718&&(_0x3b2e2e=!![]),{'currentVersion':_0x3c1bbd,'stableVersion':_0x5cc180,'minimumVersion':_0x359e91,'needsUpgrade':_0x3b2e2e,'belowMinimum':_0x487718,'isPreRelease':![],'upgradeMessage':_0x1a2391?.[_0xe8963f(0x145)],'minimumVersionMessage':_0x1a2391?.[_0xe8963f(0x135)]};}export function printCliUpgradeWarning(_0x388c1c){const _0xc9af5e=a193_0x1d26;if(!_0x388c1c[_0xc9af5e(0x141)]&&!_0x388c1c['belowMinimum'])return;const _0x5841d0=_0xc9af5e(0x129),_0x21ebe5='\x1b[33m',_0x1f2abe=_0xc9af5e(0x13f),_0x33a436='\x1b[1m',_0x10540e=getCliUpgradeCommand(_0x388c1c);console[_0xc9af5e(0x126)](),_0x388c1c[_0xc9af5e(0x139)]?(console[_0xc9af5e(0x126)](''+_0x5841d0+_0x33a436+_0xc9af5e(0x13e)+_0x1f2abe),console[_0xc9af5e(0x126)](_0x5841d0+_0xc9af5e(0x143)+_0x388c1c[_0xc9af5e(0x140)]+_0x1f2abe),_0x388c1c[_0xc9af5e(0x13a)]&&console[_0xc9af5e(0x126)](_0x5841d0+_0xc9af5e(0x13c)+_0x388c1c['minimumVersion']+_0x1f2abe),_0x388c1c[_0xc9af5e(0x132)]&&_0x388c1c[_0xc9af5e(0x132)]!==_0x388c1c[_0xc9af5e(0x13a)]&&console[_0xc9af5e(0x126)](_0x5841d0+'\x20\x20\x20Recommended\x20stable:\x20'+_0x388c1c[_0xc9af5e(0x132)]+_0x1f2abe),_0x388c1c['minimumVersionMessage']&&console[_0xc9af5e(0x126)](_0x5841d0+_0xc9af5e(0x12a)+_0x388c1c['minimumVersionMessage']+_0x1f2abe),console[_0xc9af5e(0x126)](_0x5841d0+_0xc9af5e(0x134)+_0x10540e+_0x1f2abe)):(console[_0xc9af5e(0x126)](''+_0x21ebe5+_0x33a436+'↪\x20New\x20version\x20available'+_0x1f2abe),console[_0xc9af5e(0x126)](_0x21ebe5+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x388c1c[_0xc9af5e(0x140)]+_0x1f2abe),console[_0xc9af5e(0x126)](_0x21ebe5+_0xc9af5e(0x127)+_0x388c1c['stableVersion']+_0x1f2abe),_0x388c1c[_0xc9af5e(0x145)]&&console[_0xc9af5e(0x126)](_0x21ebe5+_0xc9af5e(0x12a)+_0x388c1c[_0xc9af5e(0x145)]+_0x1f2abe),console[_0xc9af5e(0x126)](_0x21ebe5+_0xc9af5e(0x134)+_0x10540e+_0x1f2abe)),console[_0xc9af5e(0x126)]();}export function assertCliVersionSupported(_0x1f0139){const _0x50bea5=a193_0x1d26;if(!_0x1f0139[_0x50bea5(0x139)])return;const _0x2dac0b=[_0x1f0139[_0x50bea5(0x135)],_0x50bea5(0x12c)+_0x1f0139['currentVersion'],_0x1f0139[_0x50bea5(0x13a)]?'Minimum\x20supported:\x20'+_0x1f0139['minimumVersion']:null,_0x50bea5(0x13d)+getCliUpgradeCommand(_0x1f0139)]['filter'](Boolean)[_0x50bea5(0x12e)]('\x0a');throw CliErrors['validation'](_0x50bea5(0x146),_0x2dac0b);}
1
+ (function(_0x4e4368,_0xb3b08d){const _0x3c62cc=a194_0x5b4b,_0x25b31e=_0x4e4368();while(!![]){try{const _0x5853a0=-parseInt(_0x3c62cc(0x1c3))/0x1+parseInt(_0x3c62cc(0x1d0))/0x2+parseInt(_0x3c62cc(0x1d3))/0x3+-parseInt(_0x3c62cc(0x1be))/0x4+parseInt(_0x3c62cc(0x1c1))/0x5*(-parseInt(_0x3c62cc(0x1cd))/0x6)+parseInt(_0x3c62cc(0x1d4))/0x7+-parseInt(_0x3c62cc(0x1dd))/0x8*(parseInt(_0x3c62cc(0x1c9))/0x9);if(_0x5853a0===_0xb3b08d)break;else _0x25b31e['push'](_0x25b31e['shift']());}catch(_0x1f5f55){_0x25b31e['push'](_0x25b31e['shift']());}}}(a194_0x4c52,0x97428));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a194_0x82bfe4 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(_0x275610){const _0x28b26c=a194_0x5b4b,_0x5e158e=_0x275610[_0x28b26c(0x1d1)]||_0x28b26c(0x1df);return _0x28b26c(0x1d5)+NPM_PACKAGE_NAME+'@'+_0x5e158e;}function getCurrentCliVersion(){const _0x3d24ec=a194_0x5b4b;try{const _0x1a8afe=fileURLToPath(import.meta.url),_0x354d56=resolve(dirname(_0x1a8afe),'../..'),_0x3f5a0d=resolve(_0x354d56,'package.json'),_0x286198=JSON[_0x3d24ec(0x1c6)](readFileSync(_0x3f5a0d,_0x3d24ec(0x1e1)));return _0x286198[_0x3d24ec(0x1db)]||'1.0.0';}catch{return _0x3d24ec(0x1c0);}}export async function checkCliVersion(){const _0x4e52d3=a194_0x5b4b,_0x2c3466=getCurrentCliVersion(),_0x300c75=await getCliVersionPolicy(),_0x5d57b9=_0x300c75?.[_0x4e52d3(0x1d1)]||null,_0x1f63d9=_0x300c75?.[_0x4e52d3(0x1e2)]||null;let _0x29dd55=![],_0x507edf=![];const _0x49529b=a194_0x82bfe4['coerce'](_0x2c3466);if(_0x49529b&&_0x5d57b9)try{const _0x5301e9=a194_0x82bfe4['coerce'](_0x5d57b9);if(_0x5301e9)_0x29dd55=a194_0x82bfe4['lt'](_0x49529b,_0x5301e9);}catch{}if(_0x49529b&&_0x1f63d9)try{const _0x557005=a194_0x82bfe4['coerce'](_0x1f63d9);if(_0x557005)_0x507edf=a194_0x82bfe4['lt'](_0x49529b,_0x557005);}catch{}return _0x507edf&&(_0x29dd55=!![]),{'currentVersion':_0x2c3466,'stableVersion':_0x5d57b9,'minimumVersion':_0x1f63d9,'needsUpgrade':_0x29dd55,'belowMinimum':_0x507edf,'isPreRelease':![],'upgradeMessage':_0x300c75?.[_0x4e52d3(0x1cb)],'minimumVersionMessage':_0x300c75?.[_0x4e52d3(0x1c7)]};}export function printCliUpgradeWarning(_0x196f9a){const _0x3809eb=a194_0x5b4b;if(!_0x196f9a[_0x3809eb(0x1e0)]&&!_0x196f9a[_0x3809eb(0x1c4)])return;const _0x6b3337='\x1b[31m',_0x502e04=_0x3809eb(0x1d9),_0x33cff5=_0x3809eb(0x1d7),_0xbfb0ad=_0x3809eb(0x1bc),_0x577c33=getCliUpgradeCommand(_0x196f9a);console[_0x3809eb(0x1bf)](),_0x196f9a['belowMinimum']?(console['log'](''+_0x6b3337+_0xbfb0ad+_0x3809eb(0x1ce)+_0x33cff5),console[_0x3809eb(0x1bf)](_0x6b3337+_0x3809eb(0x1d2)+_0x196f9a[_0x3809eb(0x1ca)]+_0x33cff5),_0x196f9a[_0x3809eb(0x1e2)]&&console[_0x3809eb(0x1bf)](_0x6b3337+'\x20\x20\x20Minimum\x20supported:\x20'+_0x196f9a['minimumVersion']+_0x33cff5),_0x196f9a[_0x3809eb(0x1d1)]&&_0x196f9a['stableVersion']!==_0x196f9a[_0x3809eb(0x1e2)]&&console['log'](_0x6b3337+_0x3809eb(0x1da)+_0x196f9a[_0x3809eb(0x1d1)]+_0x33cff5),_0x196f9a[_0x3809eb(0x1c7)]&&console[_0x3809eb(0x1bf)](_0x6b3337+_0x3809eb(0x1c8)+_0x196f9a['minimumVersionMessage']+_0x33cff5),console[_0x3809eb(0x1bf)](_0x6b3337+_0x3809eb(0x1dc)+_0x577c33+_0x33cff5)):(console[_0x3809eb(0x1bf)](''+_0x502e04+_0xbfb0ad+'↪\x20New\x20version\x20available'+_0x33cff5),console[_0x3809eb(0x1bf)](_0x502e04+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x196f9a['currentVersion']+_0x33cff5),console[_0x3809eb(0x1bf)](_0x502e04+_0x3809eb(0x1bd)+_0x196f9a[_0x3809eb(0x1d1)]+_0x33cff5),_0x196f9a[_0x3809eb(0x1cb)]&&console['log'](_0x502e04+_0x3809eb(0x1c8)+_0x196f9a[_0x3809eb(0x1cb)]+_0x33cff5),console[_0x3809eb(0x1bf)](_0x502e04+'\x20\x20\x20Upgrade\x20command:\x20'+_0x577c33+_0x33cff5)),console[_0x3809eb(0x1bf)]();}function a194_0x4c52(){const _0x77f29f=['join','latest','needsUpgrade','utf-8','minimumVersion','\x1b[1m','\x20\x20\x20Stable\x20version:\x20','1401732kxKJIu','log','1.0.0','320YKCkfe','Minimum\x20supported:\x20','141548wZKCgz','belowMinimum','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','parse','minimumVersionMessage','\x20\x20\x20','1732356AafnqX','currentVersion','upgradeMessage','Upgrade\x20command:\x20','2598IQiLEp','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20version:\x20','274236YYyhYm','stableVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','2255190sxKmXJ','8489775VeMiRi','npm\x20install\x20-g\x20','validation','\x1b[0m','filter','\x1b[33m','\x20\x20\x20Recommended\x20stable:\x20','version','\x20\x20\x20Upgrade\x20command:\x20','40hYujZz'];a194_0x4c52=function(){return _0x77f29f;};return a194_0x4c52();}function a194_0x5b4b(_0x2fb93d,_0x43992d){_0x2fb93d=_0x2fb93d-0x1bc;const _0x4c5252=a194_0x4c52();let _0x5b4b04=_0x4c5252[_0x2fb93d];return _0x5b4b04;}export function assertCliVersionSupported(_0x382135){const _0xaea117=a194_0x5b4b;if(!_0x382135[_0xaea117(0x1c4)])return;const _0x45cd57=[_0x382135['minimumVersionMessage'],_0xaea117(0x1cf)+_0x382135[_0xaea117(0x1ca)],_0x382135[_0xaea117(0x1e2)]?_0xaea117(0x1c2)+_0x382135[_0xaea117(0x1e2)]:null,_0xaea117(0x1cc)+getCliUpgradeCommand(_0x382135)][_0xaea117(0x1d8)](Boolean)[_0xaea117(0x1de)]('\x0a');throw CliErrors[_0xaea117(0x1d6)](_0xaea117(0x1c5),_0x45cd57);}
@@ -1 +1 @@
1
- (function(_0x28e802,_0xec01b5){const _0x13a5e3=a194_0xe71c,_0xaf19c5=_0x28e802();while(!![]){try{const _0xcc8f79=-parseInt(_0x13a5e3(0xec))/0x1+parseInt(_0x13a5e3(0xfb))/0x2+-parseInt(_0x13a5e3(0xf7))/0x3*(parseInt(_0x13a5e3(0xf2))/0x4)+parseInt(_0x13a5e3(0xf6))/0x5*(parseInt(_0x13a5e3(0xfd))/0x6)+-parseInt(_0x13a5e3(0xf4))/0x7*(parseInt(_0x13a5e3(0xe9))/0x8)+-parseInt(_0x13a5e3(0xe8))/0x9*(-parseInt(_0x13a5e3(0xee))/0xa)+-parseInt(_0x13a5e3(0xe6))/0xb*(-parseInt(_0x13a5e3(0xed))/0xc);if(_0xcc8f79===_0xec01b5)break;else _0xaf19c5['push'](_0xaf19c5['shift']());}catch(_0x1ad22e){_0xaf19c5['push'](_0xaf19c5['shift']());}}}(a194_0x15fc,0x58e31));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x77029f){const _0x26f24a=a194_0xe71c;return typeof _0x77029f===_0x26f24a(0xe7)&&_0x77029f[_0x26f24a(0xfc)]()[_0x26f24a(0xea)]>0x0?_0x77029f[_0x26f24a(0xfc)]():null;}function normalizeCliVersionPolicy(_0x2bebb8){const _0x1b3748=a194_0xe71c;if(!_0x2bebb8||typeof _0x2bebb8!==_0x1b3748(0xf3))return null;const _0x11cc6d=_0x2bebb8,_0x891262=_0x11cc6d[_0x1b3748(0xf1)]&&typeof _0x11cc6d[_0x1b3748(0xf1)]===_0x1b3748(0xf3)?_0x11cc6d[_0x1b3748(0xf1)]:_0x11cc6d,_0x2b06e6=pickString(_0x891262['stableVersion'])||pickString(_0x891262[_0x1b3748(0xf5)])||pickString(_0x891262['recommendedVersion']),_0x44b561=pickString(_0x891262[_0x1b3748(0xf0)])||pickString(_0x891262[_0x1b3748(0xf9)]);if(!_0x2b06e6&&!_0x44b561)return null;return{'stableVersion':_0x2b06e6,'minimumVersion':_0x44b561,'upgradeMessage':pickString(_0x891262['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x891262[_0x1b3748(0xf8)])||undefined};}export async function fetchCliVersionPolicy(){const _0x4b4d61=a194_0xe71c,_0x3c4cbd=new AbortController(),_0x41fc7=setTimeout(()=>_0x3c4cbd['abort'](),FETCH_TIMEOUT_MS);try{const _0x5f1e33=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4b4d61(0xfa)},'signal':_0x3c4cbd[_0x4b4d61(0xef)]});if(!_0x5f1e33['ok'])return null;const _0x50e6a2=await _0x5f1e33[_0x4b4d61(0xeb)]();return normalizeCliVersionPolicy(_0x50e6a2);}catch{return null;}finally{clearTimeout(_0x41fc7);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x159e27=Date['now']();if(hasCachedPolicy){const _0x1e362c=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x159e27-cacheTime<_0x1e362c)return cachedPolicy;}const _0x5b00c9=await fetchCliVersionPolicy();return cachedPolicy=_0x5b00c9,cacheTime=_0x159e27,hasCachedPolicy=!![],_0x5b00c9;}function a194_0x15fc(){const _0x3f41f6=['1838228xUsDJE','object','445375tMNLlv','latestVersion','20lfyceL','3jbfhMP','minimumVersionMessage','minVersion','application/json','1314398yBhHpK','trim','75108dZaRoZ','940511RkMuOV','string','849249SrvLgq','48yrTotG','length','json','203611haroQj','72pqCWxO','20XDnCON','signal','minimumVersion','cli'];a194_0x15fc=function(){return _0x3f41f6;};return a194_0x15fc();}function a194_0xe71c(_0x18feba,_0x497628){_0x18feba=_0x18feba-0xe6;const _0x15fc05=a194_0x15fc();let _0xe71c1b=_0x15fc05[_0x18feba];return _0xe71c1b;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x15c979,_0x5f0e03){const _0x564112=a195_0x1129,_0x3f919e=_0x15c979();while(!![]){try{const _0x1de059=parseInt(_0x564112(0x13e))/0x1*(-parseInt(_0x564112(0x132))/0x2)+-parseInt(_0x564112(0x133))/0x3+-parseInt(_0x564112(0x13a))/0x4+parseInt(_0x564112(0x12c))/0x5+parseInt(_0x564112(0x129))/0x6+parseInt(_0x564112(0x141))/0x7+parseInt(_0x564112(0x12a))/0x8*(parseInt(_0x564112(0x13d))/0x9);if(_0x1de059===_0x5f0e03)break;else _0x3f919e['push'](_0x3f919e['shift']());}catch(_0x552a57){_0x3f919e['push'](_0x3f919e['shift']());}}}(a195_0x24cc,0x3ed77));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 a195_0x1129(_0x436048,_0x874da3){_0x436048=_0x436048-0x129;const _0x24ccf9=a195_0x24cc();let _0x112924=_0x24ccf9[_0x436048];return _0x112924;}function pickString(_0x3dfaf9){const _0x1d53a7=a195_0x1129;return typeof _0x3dfaf9===_0x1d53a7(0x13c)&&_0x3dfaf9['trim']()[_0x1d53a7(0x130)]>0x0?_0x3dfaf9[_0x1d53a7(0x12f)]():null;}function normalizeCliVersionPolicy(_0x3c63fd){const _0x962305=a195_0x1129;if(!_0x3c63fd||typeof _0x3c63fd!=='object')return null;const _0x15eed1=_0x3c63fd,_0xc07b95=_0x15eed1[_0x962305(0x13b)]&&typeof _0x15eed1[_0x962305(0x13b)]===_0x962305(0x138)?_0x15eed1[_0x962305(0x13b)]:_0x15eed1,_0x2f431b=pickString(_0xc07b95[_0x962305(0x139)])||pickString(_0xc07b95[_0x962305(0x13f)])||pickString(_0xc07b95[_0x962305(0x135)]),_0x342c6a=pickString(_0xc07b95[_0x962305(0x134)])||pickString(_0xc07b95[_0x962305(0x137)]);if(!_0x2f431b&&!_0x342c6a)return null;return{'stableVersion':_0x2f431b,'minimumVersion':_0x342c6a,'upgradeMessage':pickString(_0xc07b95[_0x962305(0x142)])||undefined,'minimumVersionMessage':pickString(_0xc07b95[_0x962305(0x12e)])||undefined};}export async function fetchCliVersionPolicy(){const _0xc274b4=a195_0x1129,_0x2225ee=new AbortController(),_0x5a7330=setTimeout(()=>_0x2225ee[_0xc274b4(0x12d)](),FETCH_TIMEOUT_MS);try{const _0x48561f=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xc274b4(0x140)},'signal':_0x2225ee[_0xc274b4(0x12b)]});if(!_0x48561f['ok'])return null;const _0x34b999=await _0x48561f[_0xc274b4(0x131)]();return normalizeCliVersionPolicy(_0x34b999);}catch{return null;}finally{clearTimeout(_0x5a7330);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x49df46=a195_0x1129,_0xdfb073=Date[_0x49df46(0x136)]();if(hasCachedPolicy){const _0x779025=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xdfb073-cacheTime<_0x779025)return cachedPolicy;}const _0x16a41e=await fetchCliVersionPolicy();return cachedPolicy=_0x16a41e,cacheTime=_0xdfb073,hasCachedPolicy=!![],_0x16a41e;}function a195_0x24cc(){const _0x3c5c6d=['minVersion','object','stableVersion','1102336ZfNRHo','cli','string','421281dXdzTk','1jABTcS','latestVersion','application/json','3150189MREXxb','upgradeMessage','1440834DXizjW','24GJeiKc','signal','1660045UWpJwE','abort','minimumVersionMessage','trim','length','json','593764UbtTNX','998211evsiEk','minimumVersion','recommendedVersion','now'];a195_0x24cc=function(){return _0x3c5c6d;};return a195_0x24cc();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a195_0x2fb78c=a195_0x3f97;(function(_0x539199,_0x208d28){const _0x20203d=a195_0x3f97,_0x18e9d7=_0x539199();while(!![]){try{const _0xab7290=-parseInt(_0x20203d(0x1c6))/0x1*(-parseInt(_0x20203d(0x1bf))/0x2)+-parseInt(_0x20203d(0x1c7))/0x3+parseInt(_0x20203d(0x1c8))/0x4*(-parseInt(_0x20203d(0x1c1))/0x5)+parseInt(_0x20203d(0x1cb))/0x6*(-parseInt(_0x20203d(0x1c4))/0x7)+parseInt(_0x20203d(0x1c9))/0x8+-parseInt(_0x20203d(0x1c5))/0x9+parseInt(_0x20203d(0x1c3))/0xa;if(_0xab7290===_0x208d28)break;else _0x18e9d7['push'](_0x18e9d7['shift']());}catch(_0x44266a){_0x18e9d7['push'](_0x18e9d7['shift']());}}}(a195_0x1a86,0x72f91));function a195_0x3f97(_0x1d164a,_0x2ab7f3){_0x1d164a=_0x1d164a-0x1bf;const _0x1a86ec=a195_0x1a86();let _0x3f97e9=_0x1a86ec[_0x1d164a];return _0x3f97e9;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a195_0x152afc,getMultiAppConfigs as a195_0x52e9bd,getTemplateBaseUrl as a195_0x309104}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a195_0x1a86(){const _0x4a3336=['7NeewcQ','4871313euiUAB','911526AmyVhL','1898550jnXJDt','1004588PEwbux','1966064ldyqSN','project','4243716opLmSI','2CPOHNN','string','15nELgbW','env','19484790HOZJfL'];a195_0x1a86=function(){return _0x4a3336;};return a195_0x1a86();}export{isInProject}from'../context.js';export function readConfig(_0x4c6c5d){const _0x2a146d=a195_0x3f97,_0x13c821=readRawConfig(_0x4c6c5d);return _0x13c821[_0x2a146d(0x1c2)]&&typeof _0x13c821[_0x2a146d(0x1c2)]===_0x2a146d(0x1c0)&&initEnv(_0x13c821[_0x2a146d(0x1c2)]),_0x13c821;}export function getConfigAppCode(){return a195_0x152afc();}export function getMultiAppConfigs(_0x3a5223=a195_0x2fb78c(0x1ca)){return a195_0x52e9bd(_0x3a5223);}export function getTemplateBaseUrl(){return a195_0x309104();}
1
+ const a196_0x3c8bda=a196_0x2377;function a196_0x3de5(){const _0x5551d0=['1026420YjSovF','project','12ImAmTm','7ELOtNi','1952130mioknO','3742vIylvr','env','2343655niiEgB','121JZFsjk','3382542boiSij','9620446rUHbAQ','1766032yVIBfn','63bIsoSS'];a196_0x3de5=function(){return _0x5551d0;};return a196_0x3de5();}(function(_0x3e4e7d,_0x3dc8db){const _0x17ea9f=a196_0x2377,_0x119525=_0x3e4e7d();while(!![]){try{const _0x3e1126=-parseInt(_0x17ea9f(0x17e))/0x1*(-parseInt(_0x17ea9f(0x17b))/0x2)+-parseInt(_0x17ea9f(0x17f))/0x3+-parseInt(_0x17ea9f(0x178))/0x4*(-parseInt(_0x17ea9f(0x17d))/0x5)+parseInt(_0x17ea9f(0x17a))/0x6+-parseInt(_0x17ea9f(0x179))/0x7*(-parseInt(_0x17ea9f(0x174))/0x8)+parseInt(_0x17ea9f(0x175))/0x9*(parseInt(_0x17ea9f(0x176))/0xa)+-parseInt(_0x17ea9f(0x173))/0xb;if(_0x3e1126===_0x3dc8db)break;else _0x119525['push'](_0x119525['shift']());}catch(_0x213da6){_0x119525['push'](_0x119525['shift']());}}}(a196_0x3de5,0xda86f));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a196_0x46d985,getMultiAppConfigs as a196_0x17afe6,getTemplateBaseUrl as a196_0x19e051}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x5569bd){const _0x34a63d=a196_0x2377,_0x4a1429=readRawConfig(_0x5569bd);return _0x4a1429[_0x34a63d(0x17c)]&&typeof _0x4a1429[_0x34a63d(0x17c)]==='string'&&initEnv(_0x4a1429[_0x34a63d(0x17c)]),_0x4a1429;}export function getConfigAppCode(){return a196_0x46d985();}function a196_0x2377(_0x556ed4,_0x399d5c){_0x556ed4=_0x556ed4-0x173;const _0x3de5e8=a196_0x3de5();let _0x23770e=_0x3de5e8[_0x556ed4];return _0x23770e;}export function getMultiAppConfigs(_0x2e7006=a196_0x3c8bda(0x177)){return a196_0x17afe6(_0x2e7006);}export function getTemplateBaseUrl(){return a196_0x19e051();}
@@ -1 +1 @@
1
- (function(_0xfdb873,_0x4de437){const _0x3d3184=a196_0x3699,_0x47f077=_0xfdb873();while(!![]){try{const _0xb45cb0=-parseInt(_0x3d3184(0x1f5))/0x1*(-parseInt(_0x3d3184(0x1f0))/0x2)+-parseInt(_0x3d3184(0x1ec))/0x3*(-parseInt(_0x3d3184(0x1f4))/0x4)+-parseInt(_0x3d3184(0x1e5))/0x5+-parseInt(_0x3d3184(0x1e4))/0x6*(-parseInt(_0x3d3184(0x1e7))/0x7)+parseInt(_0x3d3184(0x1f2))/0x8*(parseInt(_0x3d3184(0x1f6))/0x9)+parseInt(_0x3d3184(0x1ee))/0xa*(-parseInt(_0x3d3184(0x1ea))/0xb)+parseInt(_0x3d3184(0x1e6))/0xc;if(_0xb45cb0===_0x4de437)break;else _0x47f077['push'](_0x47f077['shift']());}catch(_0x42f0eb){_0x47f077['push'](_0x47f077['shift']());}}}(a196_0x3c9a,0xc48d6));import a196_0x280287 from'node:path';function a196_0x3c9a(){const _0x16b7dc=['3675XMZoqd','mkdirSync','复制目录时出错:','253TfCzYG','readdirSync','41199RUllyP','name','460820BMdxcf','error','6sjrMwC','copyFileSync','5947976BCiPks','join','40WLGhyO','403626SlnVIB','9oYqJze','13638mAKhXl','7841205qZzRlS','1778100xZxjKY'];a196_0x3c9a=function(){return _0x16b7dc;};return a196_0x3c9a();}function a196_0x3699(_0x2337c2,_0x17b2e2){_0x2337c2=_0x2337c2-0x1e4;const _0x3c9ab8=a196_0x3c9a();let _0x3699fc=_0x3c9ab8[_0x2337c2];return _0x3699fc;}import a196_0x4b2613 from'node:fs';export async function copyDirectory(_0x4cd469,_0x1468d1){const _0x79cc91=a196_0x3699;try{const _0x29d4a6=a196_0x4b2613[_0x79cc91(0x1eb)](_0x4cd469,{'withFileTypes':!![]});a196_0x4b2613[_0x79cc91(0x1e8)](_0x1468d1,{'recursive':!![]});for(const _0x22ffd7 of _0x29d4a6){const _0x344a46=a196_0x280287[_0x79cc91(0x1f3)](_0x4cd469,_0x22ffd7[_0x79cc91(0x1ed)]),_0x347cb7=a196_0x280287[_0x79cc91(0x1f3)](_0x1468d1,_0x22ffd7[_0x79cc91(0x1ed)]);_0x22ffd7['isDirectory']()?await copyDirectory(_0x344a46,_0x347cb7):a196_0x4b2613[_0x79cc91(0x1f1)](_0x344a46,_0x347cb7);}}catch(_0x580a8b){console[_0x79cc91(0x1ef)](_0x79cc91(0x1e9),_0x580a8b);}}
1
+ (function(_0x2037fa,_0x4f9a52){const _0x384005=a197_0x469a,_0x14e90f=_0x2037fa();while(!![]){try{const _0x15dbca=parseInt(_0x384005(0xb3))/0x1*(parseInt(_0x384005(0xb4))/0x2)+-parseInt(_0x384005(0xab))/0x3+-parseInt(_0x384005(0xad))/0x4*(parseInt(_0x384005(0xb2))/0x5)+-parseInt(_0x384005(0xb1))/0x6*(parseInt(_0x384005(0xb6))/0x7)+-parseInt(_0x384005(0xb5))/0x8*(parseInt(_0x384005(0xaa))/0x9)+parseInt(_0x384005(0xa9))/0xa*(-parseInt(_0x384005(0xa6))/0xb)+parseInt(_0x384005(0xa5))/0xc;if(_0x15dbca===_0x4f9a52)break;else _0x14e90f['push'](_0x14e90f['shift']());}catch(_0x503c42){_0x14e90f['push'](_0x14e90f['shift']());}}}(a197_0x4599,0x9d425));function a197_0x4599(){const _0x694f0c=['3hSSDtu','66354MjFwFQ','14440yqDvlf','8141RJagwf','54959964BQnJuI','407ICArwh','readdirSync','复制目录时出错:','76630WpHNCh','4014wInSHX','3396231BEgYWg','name','4jjveFs','join','mkdirSync','copyFileSync','5316IxFJDI','3921695zQQuoA'];a197_0x4599=function(){return _0x694f0c;};return a197_0x4599();}import a197_0x27fc93 from'node:path';function a197_0x469a(_0x3d54c5,_0x4c671a){_0x3d54c5=_0x3d54c5-0xa5;const _0x4599c1=a197_0x4599();let _0x469ab0=_0x4599c1[_0x3d54c5];return _0x469ab0;}import a197_0x2fc130 from'node:fs';export async function copyDirectory(_0x43022f,_0x1ab70c){const _0x33b6a2=a197_0x469a;try{const _0x535228=a197_0x2fc130[_0x33b6a2(0xa7)](_0x43022f,{'withFileTypes':!![]});a197_0x2fc130[_0x33b6a2(0xaf)](_0x1ab70c,{'recursive':!![]});for(const _0x4497bd of _0x535228){const _0x559f85=a197_0x27fc93[_0x33b6a2(0xae)](_0x43022f,_0x4497bd[_0x33b6a2(0xac)]),_0x36e875=a197_0x27fc93[_0x33b6a2(0xae)](_0x1ab70c,_0x4497bd['name']);_0x4497bd['isDirectory']()?await copyDirectory(_0x559f85,_0x36e875):a197_0x2fc130[_0x33b6a2(0xb0)](_0x559f85,_0x36e875);}}catch(_0x333b2b){console['error'](_0x33b6a2(0xa8),_0x333b2b);}}
@@ -1 +1 @@
1
- (function(_0x516101,_0x356ec8){const _0x26af9d=a197_0x39ca,_0x5389c2=_0x516101();while(!![]){try{const _0x47cd2a=parseInt(_0x26af9d(0xbb))/0x1*(-parseInt(_0x26af9d(0xba))/0x2)+-parseInt(_0x26af9d(0xbd))/0x3*(parseInt(_0x26af9d(0xb8))/0x4)+parseInt(_0x26af9d(0xc1))/0x5*(parseInt(_0x26af9d(0xbf))/0x6)+parseInt(_0x26af9d(0xc0))/0x7*(parseInt(_0x26af9d(0xb2))/0x8)+parseInt(_0x26af9d(0xb1))/0x9*(parseInt(_0x26af9d(0xb0))/0xa)+-parseInt(_0x26af9d(0xb6))/0xb+-parseInt(_0x26af9d(0xbe))/0xc*(-parseInt(_0x26af9d(0xb3))/0xd);if(_0x47cd2a===_0x356ec8)break;else _0x5389c2['push'](_0x5389c2['shift']());}catch(_0xf4cc7e){_0x5389c2['push'](_0x5389c2['shift']());}}}(a197_0x3ab1,0x93821));function toFiniteNumber(_0xf693e8){const _0x240573=a197_0x39ca;if(typeof _0xf693e8===_0x240573(0xb9)&&Number[_0x240573(0xb4)](_0xf693e8))return _0xf693e8;if(typeof _0xf693e8===_0x240573(0xb7)){const _0x5179de=_0xf693e8[_0x240573(0xb5)]();if(!_0x5179de)return undefined;const _0x5dbaec=Number(_0x5179de);if(Number['isFinite'](_0x5dbaec))return _0x5dbaec;}return undefined;}export function normalizeEntityWithIdResponse(_0x34ed9f){const _0x3b0ad3=a197_0x39ca,_0x2ee517=toFiniteNumber(_0x34ed9f);if(_0x2ee517!==undefined)return{'id':_0x2ee517,'entity':{'id':_0x2ee517}};if(!_0x34ed9f||typeof _0x34ed9f!==_0x3b0ad3(0xbc))return{'id':undefined,'entity':{}};const _0x318639={..._0x34ed9f},_0x477099=toFiniteNumber(_0x318639['id']);return _0x477099!==undefined&&(_0x318639['id']=_0x477099),{'id':_0x477099,'entity':_0x318639};}function a197_0x39ca(_0x1bccb9,_0x506a8d){_0x1bccb9=_0x1bccb9-0xb0;const _0x3ab1df=a197_0x3ab1();let _0x39ca12=_0x3ab1df[_0x1bccb9];return _0x39ca12;}function a197_0x3ab1(){const _0x48cdb8=['10LdsipY','74079jrCKoG','2431784MUZxEU','2353GRQHCI','isFinite','trim','102454LjUeRu','string','5996JaaRfJ','number','28RfKWLT','73484stASYK','object','789Bcdvlr','73572uSYNXg','737526SQzlcN','7CEooEO','25QUUaCw'];a197_0x3ab1=function(){return _0x48cdb8;};return a197_0x3ab1();}
1
+ (function(_0x22a56f,_0x29e3d4){const _0xf45c0b=a198_0x2736,_0x4bb93b=_0x22a56f();while(!![]){try{const _0x1d8d5a=parseInt(_0xf45c0b(0x193))/0x1+parseInt(_0xf45c0b(0x18f))/0x2+-parseInt(_0xf45c0b(0x195))/0x3*(-parseInt(_0xf45c0b(0x194))/0x4)+-parseInt(_0xf45c0b(0x18a))/0x5+-parseInt(_0xf45c0b(0x18e))/0x6+-parseInt(_0xf45c0b(0x192))/0x7+-parseInt(_0xf45c0b(0x18d))/0x8;if(_0x1d8d5a===_0x29e3d4)break;else _0x4bb93b['push'](_0x4bb93b['shift']());}catch(_0x5888dd){_0x4bb93b['push'](_0x4bb93b['shift']());}}}(a198_0x2973,0x21aad));function a198_0x2736(_0x2cc13d,_0x4badc8){_0x2cc13d=_0x2cc13d-0x18a;const _0x2973db=a198_0x2973();let _0x2736de=_0x2973db[_0x2cc13d];return _0x2736de;}function toFiniteNumber(_0x10eb54){const _0x3df053=a198_0x2736;if(typeof _0x10eb54===_0x3df053(0x18c)&&Number[_0x3df053(0x18b)](_0x10eb54))return _0x10eb54;if(typeof _0x10eb54===_0x3df053(0x191)){const _0x9a751=_0x10eb54[_0x3df053(0x190)]();if(!_0x9a751)return undefined;const _0x37f7b0=Number(_0x9a751);if(Number['isFinite'](_0x37f7b0))return _0x37f7b0;}return undefined;}function a198_0x2973(){const _0x5cf228=['210198BAmuaa','object','1033255iyENZd','isFinite','number','589688IavXsT','799194qSUDUE','527258txDafV','trim','string','577038RqeeuQ','230135GwQstM','8kaCjGi'];a198_0x2973=function(){return _0x5cf228;};return a198_0x2973();}export function normalizeEntityWithIdResponse(_0x3a322f){const _0x350ad8=a198_0x2736,_0x232bd2=toFiniteNumber(_0x3a322f);if(_0x232bd2!==undefined)return{'id':_0x232bd2,'entity':{'id':_0x232bd2}};if(!_0x3a322f||typeof _0x3a322f!==_0x350ad8(0x196))return{'id':undefined,'entity':{}};const _0x447b3a={..._0x3a322f},_0x1fd941=toFiniteNumber(_0x447b3a['id']);return _0x1fd941!==undefined&&(_0x447b3a['id']=_0x1fd941),{'id':_0x1fd941,'entity':_0x447b3a};}
@@ -1 +1 @@
1
- (function(_0x44aab9,_0x21ff7c){const _0x518ac4=a198_0x1df3,_0x5dda47=_0x44aab9();while(!![]){try{const _0x9ee71d=-parseInt(_0x518ac4(0x1c3))/0x1+-parseInt(_0x518ac4(0x1c2))/0x2*(-parseInt(_0x518ac4(0x1c5))/0x3)+-parseInt(_0x518ac4(0x1bf))/0x4*(parseInt(_0x518ac4(0x1c4))/0x5)+-parseInt(_0x518ac4(0x1c9))/0x6+-parseInt(_0x518ac4(0x1c1))/0x7*(parseInt(_0x518ac4(0x1c8))/0x8)+-parseInt(_0x518ac4(0x1c7))/0x9+parseInt(_0x518ac4(0x1c6))/0xa;if(_0x9ee71d===_0x21ff7c)break;else _0x5dda47['push'](_0x5dda47['shift']());}catch(_0x5c7e04){_0x5dda47['push'](_0x5dda47['shift']());}}}(a198_0x36fd,0x19ab3));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a198_0x1df3(_0x29b357,_0x3d7467){_0x29b357=_0x29b357-0x1bf;const _0x36fd8d=a198_0x36fd();let _0x1df369=_0x36fd8d[_0x29b357];return _0x1df369;}function a198_0x36fd(){const _0x17f6e9=['80cGNQDE','isDirectory','329PjIPAh','6346YeYPiq','37268UBBrmt','23390MScagh','6mUohRo','4265510IeZaWd','9279Jlvfpl','9104VaPmTX','854478wTLWaf'];a198_0x36fd=function(){return _0x17f6e9;};return a198_0x36fd();}export async function copyDir(_0x53870b,_0x2c23d2){const _0x3dff6b=a198_0x1df3,_0x11528f=statSync(_0x53870b);if(_0x11528f[_0x3dff6b(0x1c0)]()){!existsSync(_0x2c23d2)&&mkdirSync(_0x2c23d2,{'recursive':!![]});const _0x937a65=readdirSync(_0x53870b);for(const _0x1a6343 of _0x937a65){await copyDir(join(_0x53870b,_0x1a6343),join(_0x2c23d2,_0x1a6343));}}else copyFileSync(_0x53870b,_0x2c23d2);}export function ensureDir(_0x50f76a){!existsSync(_0x50f76a)&&mkdirSync(_0x50f76a,{'recursive':!![]});}export function pathExists(_0x516541){return existsSync(_0x516541);}
1
+ (function(_0x186427,_0x143dcb){const _0x235a63=a199_0x428c,_0x1bf0ed=_0x186427();while(!![]){try{const _0x346cc0=parseInt(_0x235a63(0x1b0))/0x1*(-parseInt(_0x235a63(0x1ac))/0x2)+parseInt(_0x235a63(0x1a6))/0x3*(-parseInt(_0x235a63(0x1a9))/0x4)+-parseInt(_0x235a63(0x1b1))/0x5+parseInt(_0x235a63(0x1a8))/0x6*(parseInt(_0x235a63(0x1ab))/0x7)+parseInt(_0x235a63(0x1af))/0x8+-parseInt(_0x235a63(0x1ad))/0x9+-parseInt(_0x235a63(0x1a7))/0xa*(-parseInt(_0x235a63(0x1aa))/0xb);if(_0x346cc0===_0x143dcb)break;else _0x1bf0ed['push'](_0x1bf0ed['shift']());}catch(_0x78c53a){_0x1bf0ed['push'](_0x1bf0ed['shift']());}}}(a199_0x5333,0xbf7e7));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a199_0x5333(){const _0x4265f1=['3UGhZLu','7521530MSpHdp','8103QQmcFc','10dbkYWU','426ZzyeFI','516bWHcCK','26661569ZihXNa','14329ifsynf','42836LLfHpJ','7336323dYnFdQ','isDirectory','7579032wWCASz'];a199_0x5333=function(){return _0x4265f1;};return a199_0x5333();}function a199_0x428c(_0x3f82cb,_0x26080b){_0x3f82cb=_0x3f82cb-0x1a6;const _0x53334c=a199_0x5333();let _0x428c79=_0x53334c[_0x3f82cb];return _0x428c79;}import{join}from'node:path';export async function copyDir(_0x20f99e,_0x5ee49c){const _0xb87ff7=a199_0x428c,_0x31d3cf=statSync(_0x20f99e);if(_0x31d3cf[_0xb87ff7(0x1ae)]()){!existsSync(_0x5ee49c)&&mkdirSync(_0x5ee49c,{'recursive':!![]});const _0x4a0978=readdirSync(_0x20f99e);for(const _0x4da9c2 of _0x4a0978){await copyDir(join(_0x20f99e,_0x4da9c2),join(_0x5ee49c,_0x4da9c2));}}else copyFileSync(_0x20f99e,_0x5ee49c);}export function ensureDir(_0x26923c){!existsSync(_0x26923c)&&mkdirSync(_0x26923c,{'recursive':!![]});}export function pathExists(_0x58d535){return existsSync(_0x58d535);}
@@ -1 +1 @@
1
- const a199_0x31ea89=a199_0x176b;(function(_0x374c93,_0x2bcc94){const _0x26e24e=a199_0x176b,_0x3628a5=_0x374c93();while(!![]){try{const _0x30c107=-parseInt(_0x26e24e(0x1cf))/0x1+parseInt(_0x26e24e(0x1cd))/0x2*(parseInt(_0x26e24e(0x1e3))/0x3)+-parseInt(_0x26e24e(0x1d1))/0x4*(-parseInt(_0x26e24e(0x1db))/0x5)+-parseInt(_0x26e24e(0x1dc))/0x6+parseInt(_0x26e24e(0x1c8))/0x7*(parseInt(_0x26e24e(0x1c9))/0x8)+-parseInt(_0x26e24e(0x1dd))/0x9*(parseInt(_0x26e24e(0x1de))/0xa)+-parseInt(_0x26e24e(0x1e7))/0xb*(parseInt(_0x26e24e(0x1c7))/0xc);if(_0x30c107===_0x2bcc94)break;else _0x3628a5['push'](_0x3628a5['shift']());}catch(_0x1ee901){_0x3628a5['push'](_0x3628a5['shift']());}}}(a199_0x3a80,0x3e7da));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 _0x3b083b=a199_0x176b,_0x5bdeb4=getTemplateBaseUrl();return _0x5bdeb4+_0x3b083b(0x1c6);}function a199_0x3a80(){const _0x4b9958=['11UYNOVK','lastUpdated','.md','statusText','skillTemplate','guides','/skills/guides.json','126804ERCMyj','273dKyEzb','12928xWYZKE','path','join','entries','770122docitw','length','31636jzBhYp','CDN\x20请求失败:\x20','67324KqjVje','title','json','object','content','extendContent','\x0a\x0a>更新时间:','CDN\x20返回数据格式错误','replace','push','145KTsbss','1503822UVhujJ','18IhnmxD','1936910bINcNL','application/json','trimEnd','cache','.lovrabet','3Xunwhg','.lovrabet/skill/guides','CDN\x20数据中缺少\x20skillTemplate','map'];a199_0x3a80=function(){return _0x4b9958;};return a199_0x3a80();}const CACHE_DIR=join(homedir(),a199_0x31ea89(0x1e2),a199_0x31ea89(0x1e1));export async function fetchGuidesFromCDN(){const _0xc4df63=a199_0x31ea89,_0x15610d=getGuidesCdnUrl(),_0x45c469=await fetch(_0x15610d,{'headers':{'Accept':_0xc4df63(0x1df)}});if(!_0x45c469['ok'])throw new Error(_0xc4df63(0x1d0)+_0x45c469['status']+'\x20'+_0x45c469[_0xc4df63(0x1ea)]);const _0xe1253=await _0x45c469[_0xc4df63(0x1d3)]();if(!_0xe1253[_0xc4df63(0x1ec)]||typeof _0xe1253[_0xc4df63(0x1ec)]!==_0xc4df63(0x1d4))throw new Error(_0xc4df63(0x1d8));return _0xe1253;}export function writeGuidesToProject(_0x51079d,_0x571351,_0x465a93=a199_0x31ea89(0x1e4),_0x24b1eb){const _0x557b08=a199_0x31ea89,_0x50af02=join(_0x571351,_0x465a93);mkdirSync(_0x50af02,{'recursive':!![]});for(const [_0x31f68f,_0x48347d]of Object[_0x557b08(0x1cc)](_0x51079d[_0x557b08(0x1ec)])){let _0x51e601=_0x48347d[_0x557b08(0x1d5)];_0x48347d[_0x557b08(0x1e8)]&&(_0x51e601=appendUpdateTime(_0x51e601,_0x48347d[_0x557b08(0x1e8)])),writeFileSync(join(_0x50af02,_0x31f68f+_0x557b08(0x1e9)),_0x51e601,'utf-8');}}export function appendUpdateTime(_0x2f88f2,_0x2bff31){const _0xe108c1=a199_0x31ea89;return _0x2f88f2=_0x2f88f2[_0xe108c1(0x1d9)](/\n*>更新时间:.*$/m,''),_0x2f88f2[_0xe108c1(0x1e0)]()+(_0xe108c1(0x1d7)+_0x2bff31);}export function getSkillTemplate(_0x1d5e9c){const _0x40d946=a199_0x31ea89;return _0x1d5e9c['skillTemplate']?.[_0x40d946(0x1d5)]||'';}export function appendExtendContents(_0x5cefa5,_0x1afabb,_0x31e4c1){const _0xf03533=a199_0x31ea89,_0x79fa4b=[];for(const [,_0x46335f]of Object[_0xf03533(0x1cc)](_0x1afabb[_0xf03533(0x1ec)])){_0x46335f[_0xf03533(0x1d6)]&&_0x79fa4b[_0xf03533(0x1da)](_0x46335f[_0xf03533(0x1d6)]['trimEnd']());}if(_0x79fa4b[_0xf03533(0x1ce)]===0x0)return _0x5cefa5;return _0x5cefa5[_0xf03533(0x1e0)]()+'\x0a\x0a'+_0x79fa4b[_0xf03533(0x1cb)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x15091c,_0x193dcb,_0x4c0e76){const _0x193814=a199_0x31ea89,_0x4320b2=getSkillTemplate(_0x15091c);if(!_0x4320b2)throw new Error(_0x193814(0x1e5));const _0x2ea0ed=dirname(_0x193dcb);mkdirSync(_0x2ea0ed,{'recursive':!![]});let _0x458a29=_0x4320b2[_0x193814(0x1d9)](/\{\{IDE_NAME\}\}/g,_0x4c0e76);_0x458a29=appendExtendContents(_0x458a29,_0x15091c),_0x15091c['skillTemplate']['lastUpdated']&&(_0x458a29=appendUpdateTime(_0x458a29,_0x15091c[_0x193814(0x1eb)][_0x193814(0x1e8)])),writeFileSync(_0x193dcb,_0x458a29,'utf-8');}export async function installGuides(_0x27bf3a){const _0x911b87=a199_0x31ea89,_0x1d9e6e=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1d9e6e,_0x27bf3a),Object['keys'](_0x1d9e6e[_0x911b87(0x1ec)])[_0x911b87(0x1ce)];}function a199_0x176b(_0xbb4c69,_0x3c8521){_0xbb4c69=_0xbb4c69-0x1c6;const _0x3a808d=a199_0x3a80();let _0x176b30=_0x3a808d[_0xbb4c69];return _0x176b30;}export function getGuidesSummary(_0x28a5ad){const _0x3aa430=a199_0x31ea89;return Object['entries'](_0x28a5ad[_0x3aa430(0x1ec)])[_0x3aa430(0x1e6)](([_0x3e410f,_0x21d826])=>({'key':_0x3e410f,'title':_0x21d826[_0x3aa430(0x1d2)],'path':_0x21d826[_0x3aa430(0x1ca)]}));}
1
+ function a200_0x23d3(){const _0x58a1ab=['1262vDiGDv','lastUpdated','\x0a\x0a>更新时间:','6DVGhNr','entries','8xgytjF','946RuKrJq','241ZrUYRV','guides','.md','object','map','statusText','content','4593762DHNooc','trimEnd','title','path','23448UtClxH','CDN\x20数据中缺少\x20skillTemplate','skillTemplate','length','5252380KRcBbF','567381nyxpBi','utf-8','8lSWEjq','CDN\x20返回数据格式错误','replace','json','keys','/skills/guides.json','cache','CDN\x20请求失败:\x20','extendContent','419125XvUciF','1712640WilcBM','status'];a200_0x23d3=function(){return _0x58a1ab;};return a200_0x23d3();}const a200_0x46d715=a200_0x2675;(function(_0x17b3d8,_0x156349){const _0x32b592=a200_0x2675,_0x2e250c=_0x17b3d8();while(!![]){try{const _0x20175a=parseInt(_0x32b592(0x10a))/0x1*(parseInt(_0x32b592(0x103))/0x2)+-parseInt(_0x32b592(0xf5))/0x3*(parseInt(_0x32b592(0xf7))/0x4)+-parseInt(_0x32b592(0x101))/0x5+-parseInt(_0x32b592(0x106))/0x6*(-parseInt(_0x32b592(0x100))/0x7)+parseInt(_0x32b592(0x108))/0x8*(parseInt(_0x32b592(0xec))/0x9)+parseInt(_0x32b592(0xf4))/0xa+-parseInt(_0x32b592(0x109))/0xb*(parseInt(_0x32b592(0xf0))/0xc);if(_0x20175a===_0x156349)break;else _0x2e250c['push'](_0x2e250c['shift']());}catch(_0x10cd16){_0x2e250c['push'](_0x2e250c['shift']());}}}(a200_0x23d3,0x57978));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a200_0x2675(_0x1a65a0,_0x1810b0){_0x1a65a0=_0x1a65a0-0xe6;const _0x23d372=a200_0x23d3();let _0x2675b7=_0x23d372[_0x1a65a0];return _0x2675b7;}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x53709a=a200_0x2675,_0x5cdc90=getTemplateBaseUrl();return _0x5cdc90+_0x53709a(0xfc);}const CACHE_DIR=join(homedir(),'.lovrabet',a200_0x46d715(0xfd));export async function fetchGuidesFromCDN(){const _0x5091c1=a200_0x46d715,_0x3970d5=getGuidesCdnUrl(),_0x413bfd=await fetch(_0x3970d5,{'headers':{'Accept':'application/json'}});if(!_0x413bfd['ok'])throw new Error(_0x5091c1(0xfe)+_0x413bfd[_0x5091c1(0x102)]+'\x20'+_0x413bfd[_0x5091c1(0xea)]);const _0x39e25f=await _0x413bfd[_0x5091c1(0xfa)]();if(!_0x39e25f[_0x5091c1(0xe6)]||typeof _0x39e25f[_0x5091c1(0xe6)]!==_0x5091c1(0xe8))throw new Error(_0x5091c1(0xf8));return _0x39e25f;}export function writeGuidesToProject(_0x3f81aa,_0x3f82cf,_0x4fa207='.lovrabet/skill/guides',_0x50dd69){const _0x1369c8=a200_0x46d715,_0x307d06=join(_0x3f82cf,_0x4fa207);mkdirSync(_0x307d06,{'recursive':!![]});for(const [_0xc9dcc8,_0x43b42f]of Object[_0x1369c8(0x107)](_0x3f81aa[_0x1369c8(0xe6)])){let _0x48898e=_0x43b42f['content'];_0x43b42f[_0x1369c8(0x104)]&&(_0x48898e=appendUpdateTime(_0x48898e,_0x43b42f['lastUpdated'])),writeFileSync(join(_0x307d06,_0xc9dcc8+_0x1369c8(0xe7)),_0x48898e,_0x1369c8(0xf6));}}export function appendUpdateTime(_0x5abd8f,_0x4f3243){const _0x129c78=a200_0x46d715;return _0x5abd8f=_0x5abd8f[_0x129c78(0xf9)](/\n*>更新时间:.*$/m,''),_0x5abd8f[_0x129c78(0xed)]()+(_0x129c78(0x105)+_0x4f3243);}export function getSkillTemplate(_0x24c3e1){const _0x35d155=a200_0x46d715;return _0x24c3e1[_0x35d155(0xf2)]?.[_0x35d155(0xeb)]||'';}export function appendExtendContents(_0x286e37,_0xade52e,_0x3ceba0){const _0x202d5a=a200_0x46d715,_0x126ceb=[];for(const [,_0x260912]of Object[_0x202d5a(0x107)](_0xade52e[_0x202d5a(0xe6)])){_0x260912[_0x202d5a(0xff)]&&_0x126ceb['push'](_0x260912[_0x202d5a(0xff)][_0x202d5a(0xed)]());}if(_0x126ceb[_0x202d5a(0xf3)]===0x0)return _0x286e37;return _0x286e37[_0x202d5a(0xed)]()+'\x0a\x0a'+_0x126ceb['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4f1306,_0x595d3b,_0xf89b81){const _0x2a0501=a200_0x46d715,_0x2460b6=getSkillTemplate(_0x4f1306);if(!_0x2460b6)throw new Error(_0x2a0501(0xf1));const _0x3c3fa2=dirname(_0x595d3b);mkdirSync(_0x3c3fa2,{'recursive':!![]});let _0x4933a4=_0x2460b6[_0x2a0501(0xf9)](/\{\{IDE_NAME\}\}/g,_0xf89b81);_0x4933a4=appendExtendContents(_0x4933a4,_0x4f1306),_0x4f1306['skillTemplate'][_0x2a0501(0x104)]&&(_0x4933a4=appendUpdateTime(_0x4933a4,_0x4f1306['skillTemplate'][_0x2a0501(0x104)])),writeFileSync(_0x595d3b,_0x4933a4,_0x2a0501(0xf6));}export async function installGuides(_0x2661e8){const _0xd2004d=a200_0x46d715,_0x4f3b4f=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4f3b4f,_0x2661e8),Object[_0xd2004d(0xfb)](_0x4f3b4f['guides'])[_0xd2004d(0xf3)];}export function getGuidesSummary(_0x4b69a9){const _0x1f49bc=a200_0x46d715;return Object[_0x1f49bc(0x107)](_0x4b69a9[_0x1f49bc(0xe6)])[_0x1f49bc(0xe9)](([_0x41250f,_0x1eab5e])=>({'key':_0x41250f,'title':_0x1eab5e[_0x1f49bc(0xee)],'path':_0x1eab5e[_0x1f49bc(0xef)]}));}
@@ -1 +1 @@
1
- function a200_0x4e04(_0x2e3248,_0x3c3bb7){_0x2e3248=_0x2e3248-0x77;const _0x3fc4f7=a200_0x3fc4();let _0x4e04cb=_0x3fc4f7[_0x2e3248];return _0x4e04cb;}(function(_0x19309b,_0x4d84ea){const _0xcb94fb=a200_0x4e04,_0x44cf25=_0x19309b();while(!![]){try{const _0x53319a=parseInt(_0xcb94fb(0x89))/0x1+parseInt(_0xcb94fb(0x82))/0x2*(parseInt(_0xcb94fb(0x84))/0x3)+parseInt(_0xcb94fb(0x8d))/0x4*(parseInt(_0xcb94fb(0x78))/0x5)+-parseInt(_0xcb94fb(0x7d))/0x6+parseInt(_0xcb94fb(0x7a))/0x7+parseInt(_0xcb94fb(0x7f))/0x8+-parseInt(_0xcb94fb(0x8c))/0x9*(parseInt(_0xcb94fb(0x80))/0xa);if(_0x53319a===_0x4d84ea)break;else _0x44cf25['push'](_0x44cf25['shift']());}catch(_0x2f0ad5){_0x44cf25['push'](_0x44cf25['shift']());}}}(a200_0x3fc4,0xa3d63));export async function httpRequest(_0x169265,_0x380150={}){const _0xc67e3d=a200_0x4e04,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x380150;let _0x362499=null;for(let _0x32c935=0x0;_0x32c935<=retries;_0x32c935++){try{const _0x2ed7d6=new AbortController(),_0x449c31=setTimeout(()=>_0x2ed7d6['abort'](),timeout),_0x2f91fb=await fetch(_0x169265,{'headers':headers,'signal':_0x2ed7d6[_0xc67e3d(0x7c)]});clearTimeout(_0x449c31);let _0x136ffa;const _0xb9086d=_0x2f91fb[_0xc67e3d(0x87)]['get'](_0xc67e3d(0x79));return _0xb9086d?.[_0xc67e3d(0x90)]('application/json')?_0x136ffa=await _0x2f91fb['json']():_0x136ffa=await _0x2f91fb[_0xc67e3d(0x85)](),{'ok':_0x2f91fb['ok'],'status':_0x2f91fb['status'],'statusText':_0x2f91fb[_0xc67e3d(0x8a)],'data':_0x136ffa,'headers':_0x2f91fb[_0xc67e3d(0x87)],'url':_0x2f91fb['url'],'text':()=>_0x2f91fb[_0xc67e3d(0x85)]()};}catch(_0x483695){_0x362499=_0x483695 instanceof Error?_0x483695:new Error(String(_0x483695));if(_0x32c935===retries)break;if(shouldRetry(_0x483695)){console[_0xc67e3d(0x81)](_0xc67e3d(0x8f)+retryDelay+_0xc67e3d(0x7e)+(_0x32c935+0x1)+_0xc67e3d(0x8e)),await sleep(retryDelay);continue;}else break;}}throw _0x362499||new Error(_0xc67e3d(0x77));}function shouldRetry(_0xac6a08){const _0x30b8b2=a200_0x4e04;if(_0xac6a08 instanceof Error){if(_0xac6a08[_0x30b8b2(0x91)]===_0x30b8b2(0x86))return![];if(_0xac6a08[_0x30b8b2(0x91)]==='TypeError'&&_0xac6a08[_0x30b8b2(0x88)][_0x30b8b2(0x90)](_0x30b8b2(0x83)))return!![];if(_0xac6a08['message']['includes'](_0x30b8b2(0x8b)))return!![];if(_0xac6a08['message'][_0x30b8b2(0x90)](_0x30b8b2(0x7b)))return![];}return![];}function sleep(_0xb4f617){return new Promise(_0x1e802f=>setTimeout(_0x1e802f,_0xb4f617));}function a200_0x3fc4(){const _0xac620=['*\x20请求失败,','includes','name','Request\x20failed','1567615DOppdi','content-type','2001349OAHwns','ENOTFOUND','signal','6438954hmCkce','ms\x20后进行第\x20','9777976qkVxaZ','29190GGNMQU','log','745334qwrxwF','fetch','3oASKBQ','text','AbortError','headers','message','391101TjJTUK','statusText','ECONNRESET','4527exuoaR','12ppzmgj','\x20次重试...'];a200_0x3fc4=function(){return _0xac620;};return a200_0x3fc4();}export function validateUrl(_0x14d95){try{return new URL(_0x14d95),!![];}catch{return![];}}
1
+ (function(_0x505397,_0x25d26b){const _0x125170=a201_0x8d3d,_0x33a747=_0x505397();while(!![]){try{const _0x11ae6b=parseInt(_0x125170(0x151))/0x1*(-parseInt(_0x125170(0x14c))/0x2)+parseInt(_0x125170(0x150))/0x3+-parseInt(_0x125170(0x144))/0x4+-parseInt(_0x125170(0x142))/0x5*(parseInt(_0x125170(0x149))/0x6)+parseInt(_0x125170(0x14e))/0x7*(parseInt(_0x125170(0x14b))/0x8)+parseInt(_0x125170(0x13d))/0x9*(-parseInt(_0x125170(0x146))/0xa)+parseInt(_0x125170(0x13e))/0xb;if(_0x11ae6b===_0x25d26b)break;else _0x33a747['push'](_0x33a747['shift']());}catch(_0x5cc6e7){_0x33a747['push'](_0x33a747['shift']());}}}(a201_0x2980,0x72632));function a201_0x2980(){const _0x4bce08=['headers','1922958GushJV','21egAxsU','text','ECONNRESET','*\x20请求失败,','fetch','\x20次重试...','ENOTFOUND','get','signal','ms\x20后进行第\x20','230499qovjkm','10488940OWqznn','url','name','json','15nETrMY','content-type','751004ITnTXR','includes','170ueknWd','log','message','1283172dlwKpV','Request\x20failed','72656fbBNiB','55984HIqelb','TypeError','560KSdTJC'];a201_0x2980=function(){return _0x4bce08;};return a201_0x2980();}function a201_0x8d3d(_0x4c7180,_0x268f0a){_0x4c7180=_0x4c7180-0x136;const _0x29800d=a201_0x2980();let _0x8d3d98=_0x29800d[_0x4c7180];return _0x8d3d98;}export async function httpRequest(_0x50f507,_0x3385d1={}){const _0x5bbdc6=a201_0x8d3d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3385d1;let _0x57bec4=null;for(let _0x5a9653=0x0;_0x5a9653<=retries;_0x5a9653++){try{const _0x2b2aed=new AbortController(),_0x318746=setTimeout(()=>_0x2b2aed['abort'](),timeout),_0x24b912=await fetch(_0x50f507,{'headers':headers,'signal':_0x2b2aed[_0x5bbdc6(0x13b)]});clearTimeout(_0x318746);let _0x4d0ba7;const _0x2f40ba=_0x24b912['headers'][_0x5bbdc6(0x13a)](_0x5bbdc6(0x143));return _0x2f40ba?.[_0x5bbdc6(0x145)]('application/json')?_0x4d0ba7=await _0x24b912[_0x5bbdc6(0x141)]():_0x4d0ba7=await _0x24b912[_0x5bbdc6(0x152)](),{'ok':_0x24b912['ok'],'status':_0x24b912['status'],'statusText':_0x24b912['statusText'],'data':_0x4d0ba7,'headers':_0x24b912[_0x5bbdc6(0x14f)],'url':_0x24b912[_0x5bbdc6(0x13f)],'text':()=>_0x24b912[_0x5bbdc6(0x152)]()};}catch(_0x3569f9){_0x57bec4=_0x3569f9 instanceof Error?_0x3569f9:new Error(String(_0x3569f9));if(_0x5a9653===retries)break;if(shouldRetry(_0x3569f9)){console[_0x5bbdc6(0x147)](_0x5bbdc6(0x136)+retryDelay+_0x5bbdc6(0x13c)+(_0x5a9653+0x1)+_0x5bbdc6(0x138)),await sleep(retryDelay);continue;}else break;}}throw _0x57bec4||new Error(_0x5bbdc6(0x14a));}function shouldRetry(_0x1b1a86){const _0xa27ee5=a201_0x8d3d;if(_0x1b1a86 instanceof Error){if(_0x1b1a86[_0xa27ee5(0x140)]==='AbortError')return![];if(_0x1b1a86[_0xa27ee5(0x140)]===_0xa27ee5(0x14d)&&_0x1b1a86[_0xa27ee5(0x148)][_0xa27ee5(0x145)](_0xa27ee5(0x137)))return!![];if(_0x1b1a86[_0xa27ee5(0x148)][_0xa27ee5(0x145)](_0xa27ee5(0x153)))return!![];if(_0x1b1a86[_0xa27ee5(0x148)][_0xa27ee5(0x145)](_0xa27ee5(0x139)))return![];}return![];}function sleep(_0x64d25d){return new Promise(_0x3db003=>setTimeout(_0x3db003,_0x64d25d));}export function validateUrl(_0x3c9f39){try{return new URL(_0x3c9f39),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a201_0x134e(){const _0x6136d5=['1888851YklnYH','stdout','20820195TyeDjb','true','setRawMode','12kQsPea','isTTY','4DOFFyr','54712XZOcoY','14945292nizvup','nonInteractive','isRaw','stdin','794692KInKFR','2LiUrlG','11407480RVOung','4162915bDYoNn','1582bGtNcE'];a201_0x134e=function(){return _0x6136d5;};return a201_0x134e();}(function(_0x55b8bc,_0x1f9b4c){const _0x2451d7=a201_0x3642,_0x325465=_0x55b8bc();while(!![]){try{const _0x372501=parseInt(_0x2451d7(0x19d))/0x1*(parseInt(_0x2451d7(0x19c))/0x2)+-parseInt(_0x2451d7(0x1a1))/0x3*(parseInt(_0x2451d7(0x1a8))/0x4)+-parseInt(_0x2451d7(0x19f))/0x5*(-parseInt(_0x2451d7(0x1a6))/0x6)+parseInt(_0x2451d7(0x1a0))/0x7*(parseInt(_0x2451d7(0x1a9))/0x8)+-parseInt(_0x2451d7(0x1aa))/0x9+parseInt(_0x2451d7(0x19e))/0xa+-parseInt(_0x2451d7(0x1a3))/0xb;if(_0x372501===_0x1f9b4c)break;else _0x325465['push'](_0x325465['shift']());}catch(_0x4c2bb3){_0x325465['push'](_0x325465['shift']());}}}(a201_0x134e,0xeb2c6));function a201_0x3642(_0x256db2,_0x285cf9){_0x256db2=_0x256db2-0x19a;const _0x134ee9=a201_0x134e();let _0x364223=_0x134ee9[_0x256db2];return _0x364223;}function env(_0x478f05){return process.env[`RABETBASE_${_0x478f05}`]||process.env[`LOVRABET_${_0x478f05}`]||undefined;}export function isNonInteractive(_0x19def7){const _0x8f51aa=a201_0x3642;return!!(_0x19def7[_0x8f51aa(0x1ab)]||_0x19def7['ci']||env('CI')===_0x8f51aa(0x1a4)||process.env.CI===_0x8f51aa(0x1a4)||!process[_0x8f51aa(0x1a2)][_0x8f51aa(0x1a7)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2013b6=a201_0x3642;if(!process['stdin'][_0x2013b6(0x1a7)])return![];try{const _0x36f027=process[_0x2013b6(0x19b)][_0x2013b6(0x19a)];return process[_0x2013b6(0x19b)]['setRawMode'](!![]),process[_0x2013b6(0x19b)][_0x2013b6(0x1a5)](_0x36f027??![]),!![];}catch{return![];}}
1
+ function a202_0x5005(){const _0x1a14c6=['stdout','1034148CONNbQ','2yQmBOz','true','9153546SjWtVB','1034487RpzLJh','8193192WlubPv','setRawMode','376Xbdaoo','15453140UvfOba','172fuksTK','61835CQATaW','nonInteractive','stdin','294453yfFfoI','isTTY'];a202_0x5005=function(){return _0x1a14c6;};return a202_0x5005();}function a202_0x5e83(_0x1dd342,_0x27ef68){_0x1dd342=_0x1dd342-0x1d3;const _0x5005fd=a202_0x5005();let _0x5e838d=_0x5005fd[_0x1dd342];return _0x5e838d;}(function(_0x16ed68,_0x31849d){const _0x22bb1d=a202_0x5e83,_0x4c76dd=_0x16ed68();while(!![]){try{const _0x3b417b=parseInt(_0x22bb1d(0x1df))/0x1+parseInt(_0x22bb1d(0x1dc))/0x2*(-parseInt(_0x22bb1d(0x1db))/0x3)+-parseInt(_0x22bb1d(0x1d4))/0x4*(-parseInt(_0x22bb1d(0x1d5))/0x5)+parseInt(_0x22bb1d(0x1de))/0x6+parseInt(_0x22bb1d(0x1e0))/0x7+-parseInt(_0x22bb1d(0x1e2))/0x8*(parseInt(_0x22bb1d(0x1d8))/0x9)+-parseInt(_0x22bb1d(0x1d3))/0xa;if(_0x3b417b===_0x31849d)break;else _0x4c76dd['push'](_0x4c76dd['shift']());}catch(_0x1f7f4a){_0x4c76dd['push'](_0x4c76dd['shift']());}}}(a202_0x5005,0xcbc1a));function env(_0x46fe35){return process.env[`RABETBASE_${_0x46fe35}`]||process.env[`LOVRABET_${_0x46fe35}`]||undefined;}export function isNonInteractive(_0x55321b){const _0x3b3c56=a202_0x5e83;return!!(_0x55321b[_0x3b3c56(0x1d6)]||_0x55321b['ci']||env('CI')==='true'||process.env.CI===_0x3b3c56(0x1dd)||!process[_0x3b3c56(0x1da)][_0x3b3c56(0x1d9)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xe50359=a202_0x5e83;if(!process[_0xe50359(0x1d7)][_0xe50359(0x1d9)])return![];try{const _0x2d9659=process['stdin']['isRaw'];return process[_0xe50359(0x1d7)][_0xe50359(0x1e1)](!![]),process[_0xe50359(0x1d7)][_0xe50359(0x1e1)](_0x2d9659??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a202_0x1cc858=a202_0x326c;function a202_0x438f(){const _0x17f408=['logFilePath','失败:\x20','now','combine','printf','createLogger','red','readLogs','parse','timestamp','36iWStGU','Failed\x20to\x20clear\x20logs:','开始执行:\x20','writeFileSync','error','clear','13026hWalcP','597834whxMrA','File','map','stringify','8668bEWrCM','command','2140448iiWbyC','success','2nlROuY','format','1325745zZJiDi','errors','split','info','setRawCommand','871451GJXioA','Failed\x20to\x20read\x20logs:','existsSync','mkdirSync','utf8','readFileSync','dirname','yellow','message','toISOString','level','details','setLogPath','1022yQBlCH','getWinstonInstance','trim','winstonLogger','3212772xaMybS','.lovrabet.log','warn','transports','duration','addColors','logTask','currentRawCommand','unknown','initWinstonLogger','11450kqTNbF'];a202_0x438f=function(){return _0x17f408;};return a202_0x438f();}(function(_0x8dc24d,_0x3d2143){const _0x4a8d9e=a202_0x326c,_0x28e568=_0x8dc24d();while(!![]){try{const _0x25a2a1=-parseInt(_0x4a8d9e(0x7c))/0x1*(parseInt(_0x4a8d9e(0x75))/0x2)+parseInt(_0x4a8d9e(0x6d))/0x3+-parseInt(_0x4a8d9e(0x8d))/0x4+-parseInt(_0x4a8d9e(0x77))/0x5+parseInt(_0x4a8d9e(0x6c))/0x6*(parseInt(_0x4a8d9e(0x89))/0x7)+parseInt(_0x4a8d9e(0x73))/0x8*(parseInt(_0x4a8d9e(0x66))/0x9)+parseInt(_0x4a8d9e(0x97))/0xa*(parseInt(_0x4a8d9e(0x71))/0xb);if(_0x25a2a1===_0x3d2143)break;else _0x28e568['push'](_0x28e568['shift']());}catch(_0x2ad4d4){_0x28e568['push'](_0x28e568['shift']());}}}(a202_0x438f,0x86047));import a202_0x57a2e6 from'winston';import a202_0x4c3937 from'node:fs';import a202_0x1f1594 from'node:path';class Logger{[a202_0x1cc858(0x8c)];[a202_0x1cc858(0x98)];[a202_0x1cc858(0x94)]='';constructor(){const _0x520979=a202_0x1cc858;this[_0x520979(0x98)]='';}[a202_0x1cc858(0x7b)](_0x25cfaa){const _0x2c5f16=a202_0x1cc858;this[_0x2c5f16(0x94)]=_0x25cfaa;}[a202_0x1cc858(0x96)](){const _0x8f71ab=a202_0x1cc858,_0x114e11=a202_0x1f1594[_0x8f71ab(0x82)](this[_0x8f71ab(0x98)]);!a202_0x4c3937['existsSync'](_0x114e11)&&a202_0x4c3937[_0x8f71ab(0x7f)](_0x114e11,{'recursive':!![]});const _0x28ed32=a202_0x57a2e6[_0x8f71ab(0x76)][_0x8f71ab(0x9b)](a202_0x57a2e6[_0x8f71ab(0x76)][_0x8f71ab(0x65)](),a202_0x57a2e6[_0x8f71ab(0x76)][_0x8f71ab(0x78)]({'stack':!![]}),a202_0x57a2e6[_0x8f71ab(0x76)][_0x8f71ab(0x9c)](_0xb28cb7=>{const _0x23dcf4=_0x8f71ab,_0x149d2e={'timestamp':_0xb28cb7['timestamp']||new Date()[_0x23dcf4(0x85)](),'level':_0xb28cb7[_0x23dcf4(0x86)]||_0x23dcf4(0x7a),'command':_0xb28cb7[_0x23dcf4(0x72)]||_0x23dcf4(0x95),'rawCommand':_0xb28cb7['rawCommand']||this['currentRawCommand']||undefined,'message':_0xb28cb7[_0x23dcf4(0x84)]||'','duration':_0xb28cb7[_0x23dcf4(0x91)]||undefined,'details':_0xb28cb7[_0x23dcf4(0x87)]||undefined};return JSON[_0x23dcf4(0x70)](_0x149d2e);}));this[_0x8f71ab(0x8c)]=a202_0x57a2e6[_0x8f71ab(0x9d)]({'level':_0x8f71ab(0x7a),'format':_0x28ed32,'transports':[new a202_0x57a2e6[(_0x8f71ab(0x90))][(_0x8f71ab(0x6e))]({'filename':this['logFilePath'],'level':_0x8f71ab(0x7a)})],'silent':![]}),a202_0x57a2e6[_0x8f71ab(0x92)]({'success':'green','error':_0x8f71ab(0x9e),'warn':_0x8f71ab(0x83),'info':'blue'});}[a202_0x1cc858(0x88)](_0x14db81){const _0x59fc0c=a202_0x1cc858;this[_0x59fc0c(0x98)]=a202_0x1f1594['join'](_0x14db81,_0x59fc0c(0x8e)),this['winstonLogger']&&this['winstonLogger'][_0x59fc0c(0x6b)](),this[_0x59fc0c(0x96)]();}['info'](_0x4a30b6,_0xe14e7c,_0x1ec665){const _0x2a5d5=a202_0x1cc858;if(!this[_0x2a5d5(0x98)]||!this[_0x2a5d5(0x8c)])return;this[_0x2a5d5(0x8c)][_0x2a5d5(0x7a)](_0xe14e7c,{'command':_0x4a30b6,'details':_0x1ec665});}[a202_0x1cc858(0x74)](_0x3db9bc,_0x579fcf,_0x23e3e4,_0x310f33){const _0x45c201=a202_0x1cc858;if(!this[_0x45c201(0x98)]||!this[_0x45c201(0x8c)])return;this[_0x45c201(0x8c)]['log'](_0x45c201(0x7a),_0x579fcf,{'level':_0x45c201(0x74),'command':_0x3db9bc,'duration':_0x23e3e4,'details':_0x310f33});}[a202_0x1cc858(0x6a)](_0x21e855,_0x4bd0df,_0x43fcb2){const _0x25f988=a202_0x1cc858;if(!this[_0x25f988(0x98)]||!this[_0x25f988(0x8c)])return;this['winstonLogger'][_0x25f988(0x6a)](_0x4bd0df,{'command':_0x21e855,'details':_0x43fcb2});}['warn'](_0x1839a5,_0x4151dd,_0x265074){const _0x16ca2c=a202_0x1cc858;if(!this[_0x16ca2c(0x98)]||!this[_0x16ca2c(0x8c)])return;this[_0x16ca2c(0x8c)][_0x16ca2c(0x8f)](_0x4151dd,{'command':_0x1839a5,'details':_0x265074});}async[a202_0x1cc858(0x93)](_0x364497,_0x35d0f4,_0x43305c){const _0x3e44a6=a202_0x1cc858,_0x455fc9=Date[_0x3e44a6(0x9a)]();this[_0x3e44a6(0x7a)](_0x364497,_0x3e44a6(0x68)+_0x35d0f4);try{const _0x440c17=await _0x43305c(),_0x3c0142=Date[_0x3e44a6(0x9a)]()-_0x455fc9;return this[_0x3e44a6(0x74)](_0x364497,'完成:\x20'+_0x35d0f4,_0x3c0142),_0x440c17;}catch(_0x24c45e){const _0x1847ca=Date['now']()-_0x455fc9;this[_0x3e44a6(0x6a)](_0x364497,_0x3e44a6(0x99)+_0x35d0f4,{'error':_0x24c45e instanceof Error?_0x24c45e['message']:String(_0x24c45e),'duration':_0x1847ca});throw _0x24c45e;}}[a202_0x1cc858(0x9f)](){const _0x48b710=a202_0x1cc858;try{if(!a202_0x4c3937['existsSync'](this['logFilePath']))return[];const _0x23d913=a202_0x4c3937[_0x48b710(0x81)](this['logFilePath'],_0x48b710(0x80));return _0x23d913[_0x48b710(0x79)]('\x0a')['filter'](_0x557856=>_0x557856[_0x48b710(0x8b)]())[_0x48b710(0x6f)](_0x4f7309=>JSON[_0x48b710(0x64)](_0x4f7309));}catch(_0x6ff7ef){return console['warn'](_0x48b710(0x7d),_0x6ff7ef),[];}}['clearLogs'](){const _0x14e7a6=a202_0x1cc858;try{a202_0x4c3937[_0x14e7a6(0x7e)](this[_0x14e7a6(0x98)])&&a202_0x4c3937[_0x14e7a6(0x69)](this['logFilePath'],'',_0x14e7a6(0x80));}catch(_0x38009a){console['warn'](_0x14e7a6(0x67),_0x38009a);}}[a202_0x1cc858(0x8a)](){return this['winstonLogger'];}}function a202_0x326c(_0x59db15,_0x394c7d){_0x59db15=_0x59db15-0x64;const _0x438fd8=a202_0x438f();let _0x326c78=_0x438fd8[_0x59db15];return _0x326c78;}export const logger=new Logger();
1
+ const a203_0x1a8827=a203_0x2b50;(function(_0x53422c,_0x93a5bd){const _0x4d8158=a203_0x2b50,_0x5a7964=_0x53422c();while(!![]){try{const _0x290eea=parseInt(_0x4d8158(0x193))/0x1+-parseInt(_0x4d8158(0x17e))/0x2*(parseInt(_0x4d8158(0x160))/0x3)+parseInt(_0x4d8158(0x168))/0x4*(parseInt(_0x4d8158(0x198))/0x5)+-parseInt(_0x4d8158(0x161))/0x6+-parseInt(_0x4d8158(0x177))/0x7*(-parseInt(_0x4d8158(0x173))/0x8)+parseInt(_0x4d8158(0x162))/0x9*(-parseInt(_0x4d8158(0x16c))/0xa)+parseInt(_0x4d8158(0x189))/0xb*(parseInt(_0x4d8158(0x17d))/0xc);if(_0x290eea===_0x93a5bd)break;else _0x5a7964['push'](_0x5a7964['shift']());}catch(_0x4f7a73){_0x5a7964['push'](_0x5a7964['shift']());}}}(a203_0x5303,0x84948));function a203_0x2b50(_0x1f6e62,_0x1ac868){_0x1f6e62=_0x1f6e62-0x160;const _0x530384=a203_0x5303();let _0x2b50f3=_0x530384[_0x1f6e62];return _0x2b50f3;}function a203_0x5303(){const _0x130fa0=['success','now','details','currentRawCommand','duration','251712SnrwDt','失败:\x20','addColors','toISOString','20tZFyUY','rawCommand','unknown','Failed\x20to\x20read\x20logs:','command','完成:\x20','logFilePath','9328DXSoYW','map','errors','filter','2737WKigud','readFileSync','timestamp','writeFileSync','setRawCommand','clearLogs','24NBkrhG','3478dOFBzz','existsSync','logTask','parse','dirname','transports','red','mkdirSync','.lovrabet.log','warn','message','7334404TBZgac','trim','info','printf','utf8','setLogPath','stringify','split','level','winstonLogger','31421nTocGI','error','log','join','createLogger','20iWQTyh','yellow','format','开始执行:\x20','1059sXGRZM','301356YbNOgV','3894417TKxygT'];a203_0x5303=function(){return _0x130fa0;};return a203_0x5303();}import a203_0x1c3e6c from'winston';import a203_0x51bc03 from'node:fs';import a203_0x198630 from'node:path';class Logger{[a203_0x1a8827(0x192)];[a203_0x1a8827(0x172)];['currentRawCommand']='';constructor(){const _0xe575c8=a203_0x1a8827;this[_0xe575c8(0x172)]='';}[a203_0x1a8827(0x17b)](_0x1cdde5){const _0x3c34db=a203_0x1a8827;this[_0x3c34db(0x166)]=_0x1cdde5;}['initWinstonLogger'](){const _0xcf8c2b=a203_0x1a8827,_0x35a2c0=a203_0x198630[_0xcf8c2b(0x182)](this[_0xcf8c2b(0x172)]);!a203_0x51bc03[_0xcf8c2b(0x17f)](_0x35a2c0)&&a203_0x51bc03[_0xcf8c2b(0x185)](_0x35a2c0,{'recursive':!![]});const _0x18b085=a203_0x1c3e6c[_0xcf8c2b(0x19a)]['combine'](a203_0x1c3e6c['format'][_0xcf8c2b(0x179)](),a203_0x1c3e6c['format'][_0xcf8c2b(0x175)]({'stack':!![]}),a203_0x1c3e6c[_0xcf8c2b(0x19a)][_0xcf8c2b(0x18c)](_0x32f330=>{const _0x156e86=_0xcf8c2b,_0x5a8609={'timestamp':_0x32f330['timestamp']||new Date()[_0x156e86(0x16b)](),'level':_0x32f330[_0x156e86(0x191)]||_0x156e86(0x18b),'command':_0x32f330[_0x156e86(0x170)]||_0x156e86(0x16e),'rawCommand':_0x32f330[_0x156e86(0x16d)]||this[_0x156e86(0x166)]||undefined,'message':_0x32f330[_0x156e86(0x188)]||'','duration':_0x32f330[_0x156e86(0x167)]||undefined,'details':_0x32f330[_0x156e86(0x165)]||undefined};return JSON[_0x156e86(0x18f)](_0x5a8609);}));this['winstonLogger']=a203_0x1c3e6c[_0xcf8c2b(0x197)]({'level':'info','format':_0x18b085,'transports':[new a203_0x1c3e6c[(_0xcf8c2b(0x183))]['File']({'filename':this[_0xcf8c2b(0x172)],'level':_0xcf8c2b(0x18b)})],'silent':![]}),a203_0x1c3e6c[_0xcf8c2b(0x16a)]({'success':'green','error':_0xcf8c2b(0x184),'warn':_0xcf8c2b(0x199),'info':'blue'});}[a203_0x1a8827(0x18e)](_0x414463){const _0x3f6738=a203_0x1a8827;this[_0x3f6738(0x172)]=a203_0x198630[_0x3f6738(0x196)](_0x414463,_0x3f6738(0x186)),this[_0x3f6738(0x192)]&&this['winstonLogger']['clear'](),this['initWinstonLogger']();}['info'](_0x32cab8,_0x58b5f8,_0x3bcf39){const _0x58b2be=a203_0x1a8827;if(!this[_0x58b2be(0x172)]||!this[_0x58b2be(0x192)])return;this['winstonLogger'][_0x58b2be(0x18b)](_0x58b5f8,{'command':_0x32cab8,'details':_0x3bcf39});}[a203_0x1a8827(0x163)](_0x105145,_0x4bf2d5,_0x1a527d,_0x162dbf){const _0x597a2a=a203_0x1a8827;if(!this[_0x597a2a(0x172)]||!this['winstonLogger'])return;this['winstonLogger'][_0x597a2a(0x195)](_0x597a2a(0x18b),_0x4bf2d5,{'level':_0x597a2a(0x163),'command':_0x105145,'duration':_0x1a527d,'details':_0x162dbf});}[a203_0x1a8827(0x194)](_0x34f821,_0x2ba7a9,_0x3e69f6){const _0x11ba60=a203_0x1a8827;if(!this[_0x11ba60(0x172)]||!this['winstonLogger'])return;this[_0x11ba60(0x192)][_0x11ba60(0x194)](_0x2ba7a9,{'command':_0x34f821,'details':_0x3e69f6});}['warn'](_0x26b4d2,_0x467ceb,_0x4e8d3f){const _0x4b62d8=a203_0x1a8827;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x4b62d8(0x192)][_0x4b62d8(0x187)](_0x467ceb,{'command':_0x26b4d2,'details':_0x4e8d3f});}async[a203_0x1a8827(0x180)](_0x62d4a7,_0x4bcbd9,_0x528983){const _0x578de9=a203_0x1a8827,_0x536bab=Date[_0x578de9(0x164)]();this[_0x578de9(0x18b)](_0x62d4a7,_0x578de9(0x19b)+_0x4bcbd9);try{const _0x2a9719=await _0x528983(),_0x4ef69d=Date[_0x578de9(0x164)]()-_0x536bab;return this[_0x578de9(0x163)](_0x62d4a7,_0x578de9(0x171)+_0x4bcbd9,_0x4ef69d),_0x2a9719;}catch(_0x567ef2){const _0x18d7ae=Date[_0x578de9(0x164)]()-_0x536bab;this[_0x578de9(0x194)](_0x62d4a7,_0x578de9(0x169)+_0x4bcbd9,{'error':_0x567ef2 instanceof Error?_0x567ef2['message']:String(_0x567ef2),'duration':_0x18d7ae});throw _0x567ef2;}}['readLogs'](){const _0x2200e5=a203_0x1a8827;try{if(!a203_0x51bc03[_0x2200e5(0x17f)](this['logFilePath']))return[];const _0xb9330a=a203_0x51bc03[_0x2200e5(0x178)](this[_0x2200e5(0x172)],_0x2200e5(0x18d));return _0xb9330a[_0x2200e5(0x190)]('\x0a')[_0x2200e5(0x176)](_0x420d69=>_0x420d69[_0x2200e5(0x18a)]())[_0x2200e5(0x174)](_0x2dea00=>JSON[_0x2200e5(0x181)](_0x2dea00));}catch(_0x76e8ee){return console[_0x2200e5(0x187)](_0x2200e5(0x16f),_0x76e8ee),[];}}[a203_0x1a8827(0x17c)](){const _0x111128=a203_0x1a8827;try{a203_0x51bc03['existsSync'](this[_0x111128(0x172)])&&a203_0x51bc03[_0x111128(0x17a)](this[_0x111128(0x172)],'',_0x111128(0x18d));}catch(_0x35c62b){console[_0x111128(0x187)]('Failed\x20to\x20clear\x20logs:',_0x35c62b);}}['getWinstonInstance'](){const _0x2cd008=a203_0x1a8827;return this[_0x2cd008(0x192)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x270428,_0x3ab155){const _0x126f9c=a203_0x3955,_0x41abe8=_0x270428();while(!![]){try{const _0x589588=parseInt(_0x126f9c(0x16d))/0x1+parseInt(_0x126f9c(0x165))/0x2+-parseInt(_0x126f9c(0x167))/0x3+parseInt(_0x126f9c(0x166))/0x4+parseInt(_0x126f9c(0x172))/0x5+parseInt(_0x126f9c(0x16c))/0x6*(parseInt(_0x126f9c(0x16f))/0x7)+-parseInt(_0x126f9c(0x16e))/0x8;if(_0x589588===_0x3ab155)break;else _0x41abe8['push'](_0x41abe8['shift']());}catch(_0x449b3b){_0x41abe8['push'](_0x41abe8['shift']());}}}(a203_0x48a0,0xa3107));import{CliErrors}from'../errors.js';function a203_0x3955(_0x54e436,_0x1d0982){_0x54e436=_0x54e436-0x164;const _0x48a053=a203_0x48a0();let _0x395542=_0x48a053[_0x54e436];return _0x395542;}function a203_0x48a0(){const _0xc37640=['20623848whFHip','28ldAEfB','parse','--params\x20must\x20be\x20a\x20JSON\x20object','5072925JXSdAL','object','265274ZaoMZZ','4049988bfOzGo','136440sIJSXq','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','isArray','validation','Invalid\x20JSON\x20for\x20--params:\x20','883134WETGVX','542897FaogxE'];a203_0x48a0=function(){return _0xc37640;};return a203_0x48a0();}export function parseJsonParams(_0x4a3a46){const _0x3e7710=a203_0x3955;if(!_0x4a3a46)return undefined;let _0x4cdd31;try{_0x4cdd31=JSON[_0x3e7710(0x170)](_0x4a3a46);}catch{throw CliErrors[_0x3e7710(0x16a)](_0x3e7710(0x16b)+_0x4a3a46);}if(!_0x4cdd31||typeof _0x4cdd31!==_0x3e7710(0x164)||Array[_0x3e7710(0x169)](_0x4cdd31))throw CliErrors[_0x3e7710(0x16a)](_0x3e7710(0x171),_0x3e7710(0x168));return _0x4cdd31;}
1
+ function a204_0x5c1f(){const _0x534889=['1785083bHSfCK','--params\x20must\x20be\x20a\x20JSON\x20object','2272dkkMCF','744068IDqMcA','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Invalid\x20JSON\x20for\x20--params:\x20','440855eVOsrh','10UzykOd','14035816kWndIR','18qGjHoT','14591547RwJUqd','3229331OlvaCM','parse','object','isArray','9681InQxLr'];a204_0x5c1f=function(){return _0x534889;};return a204_0x5c1f();}(function(_0x442e1a,_0x1ad202){const _0x2414aa=a204_0x2386,_0x34517f=_0x442e1a();while(!![]){try{const _0x481eda=parseInt(_0x2414aa(0x13e))/0x1+parseInt(_0x2414aa(0x141))/0x2+parseInt(_0x2414aa(0x13d))/0x3*(-parseInt(_0x2414aa(0x140))/0x4)+parseInt(_0x2414aa(0x144))/0x5*(parseInt(_0x2414aa(0x147))/0x6)+parseInt(_0x2414aa(0x149))/0x7+-parseInt(_0x2414aa(0x146))/0x8+-parseInt(_0x2414aa(0x148))/0x9*(-parseInt(_0x2414aa(0x145))/0xa);if(_0x481eda===_0x1ad202)break;else _0x34517f['push'](_0x34517f['shift']());}catch(_0x2d7448){_0x34517f['push'](_0x34517f['shift']());}}}(a204_0x5c1f,0xdfd61));function a204_0x2386(_0x538395,_0x3030c4){_0x538395=_0x538395-0x13c;const _0x5c1f62=a204_0x5c1f();let _0x238620=_0x5c1f62[_0x538395];return _0x238620;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2f04dc){const _0x27ce02=a204_0x2386;if(!_0x2f04dc)return undefined;let _0x2c721e;try{_0x2c721e=JSON[_0x27ce02(0x14a)](_0x2f04dc);}catch{throw CliErrors['validation'](_0x27ce02(0x143)+_0x2f04dc);}if(!_0x2c721e||typeof _0x2c721e!==_0x27ce02(0x14b)||Array[_0x27ce02(0x13c)](_0x2c721e))throw CliErrors['validation'](_0x27ce02(0x13f),_0x27ce02(0x142));return _0x2c721e;}
@@ -1 +1 @@
1
- const a204_0x6081fb=a204_0x3f21;(function(_0x9aafd5,_0x10ca51){const _0x5f5079=a204_0x3f21,_0xf11666=_0x9aafd5();while(!![]){try{const _0x348d45=-parseInt(_0x5f5079(0x116))/0x1+-parseInt(_0x5f5079(0x110))/0x2+-parseInt(_0x5f5079(0x114))/0x3+parseInt(_0x5f5079(0x113))/0x4+parseInt(_0x5f5079(0x10e))/0x5+-parseInt(_0x5f5079(0x112))/0x6+parseInt(_0x5f5079(0x10f))/0x7;if(_0x348d45===_0x10ca51)break;else _0xf11666['push'](_0xf11666['shift']());}catch(_0x339ff6){_0xf11666['push'](_0xf11666['shift']());}}}(a204_0x2898,0x8b3ca));function a204_0x3f21(_0x51a839,_0x2c2bcd){_0x51a839=_0x51a839-0x10e;const _0x28987a=a204_0x2898();let _0x3f2150=_0x28987a[_0x51a839];return _0x3f2150;}function a204_0x2898(){const _0x515051=['win32','702871jCzmWH','2874980nsYsWe','7637952agacIn','1823260FNzdvN','.cmd','1814106qrvwIB','3710344JBhxmN','319656lDuMUo'];a204_0x2898=function(){return _0x515051;};return a204_0x2898();}export const isWindows=process['platform']===a204_0x6081fb(0x115);export function resolveNpmBin(_0x31e5c4){const _0x514070=a204_0x6081fb;return isWindows?_0x31e5c4+_0x514070(0x111):_0x31e5c4;}
1
+ function a205_0x2297(){const _0x571663=['9RZhFtT','2260804HICKkK','1086112odpluz','platform','win32','.cmd','118vXAvkq','1217Hsmiir','194964UvosZz','5SdEUsa','213534NKOxES','2471744VWmlvl','2672650HPGagZ'];a205_0x2297=function(){return _0x571663;};return a205_0x2297();}const a205_0x34797c=a205_0x3c37;(function(_0x3c090e,_0x493513){const _0x537fd7=a205_0x3c37,_0x2d6ff8=_0x3c090e();while(!![]){try{const _0x12493a=parseInt(_0x537fd7(0x74))/0x1*(parseInt(_0x537fd7(0x73))/0x2)+parseInt(_0x537fd7(0x75))/0x3+parseInt(_0x537fd7(0x6f))/0x4+-parseInt(_0x537fd7(0x69))/0x5*(-parseInt(_0x537fd7(0x6a))/0x6)+parseInt(_0x537fd7(0x6e))/0x7+-parseInt(_0x537fd7(0x6b))/0x8+parseInt(_0x537fd7(0x6d))/0x9*(-parseInt(_0x537fd7(0x6c))/0xa);if(_0x12493a===_0x493513)break;else _0x2d6ff8['push'](_0x2d6ff8['shift']());}catch(_0x2a6cf5){_0x2d6ff8['push'](_0x2d6ff8['shift']());}}}(a205_0x2297,0x2e8b7));function a205_0x3c37(_0x55cb5b,_0x31702b){_0x55cb5b=_0x55cb5b-0x69;const _0x22979f=a205_0x2297();let _0x3c3765=_0x22979f[_0x55cb5b];return _0x3c3765;}export const isWindows=process[a205_0x34797c(0x70)]===a205_0x34797c(0x71);export function resolveNpmBin(_0x405109){const _0x327444=a205_0x34797c;return isWindows?_0x405109+_0x327444(0x72):_0x405109;}
@@ -1 +1 @@
1
- const a205_0x17a2a6=a205_0x4777;(function(_0x415d12,_0x5ba985){const _0x106ed4=a205_0x4777,_0x443ecf=_0x415d12();while(!![]){try{const _0x4184b7=-parseInt(_0x106ed4(0x10b))/0x1*(parseInt(_0x106ed4(0x10c))/0x2)+parseInt(_0x106ed4(0x101))/0x3*(-parseInt(_0x106ed4(0x107))/0x4)+-parseInt(_0x106ed4(0x113))/0x5*(-parseInt(_0x106ed4(0x106))/0x6)+-parseInt(_0x106ed4(0x114))/0x7+-parseInt(_0x106ed4(0x109))/0x8*(parseInt(_0x106ed4(0x100))/0x9)+-parseInt(_0x106ed4(0x10d))/0xa+-parseInt(_0x106ed4(0x102))/0xb*(-parseInt(_0x106ed4(0x10a))/0xc);if(_0x4184b7===_0x5ba985)break;else _0x443ecf['push'](_0x443ecf['shift']());}catch(_0x1400a3){_0x443ecf['push'](_0x443ecf['shift']());}}}(a205_0x4b00,0x8638b));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 getRulesCdnUrl(){const _0x1d4f83=a205_0x4777,_0x42e031=getTemplateBaseUrl();return _0x42e031+_0x1d4f83(0x10f);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a205_0x17a2a6(0x103));export async function fetchRulesFromCDN(){const _0x171729=a205_0x17a2a6,_0x26dc68=getRulesCdnUrl(),_0x2b8b7d=await fetch(_0x26dc68,{'headers':{'Accept':'application/json'}});if(!_0x2b8b7d['ok'])throw new Error(_0x171729(0xfd)+_0x2b8b7d[_0x171729(0x10e)]+'\x20'+_0x2b8b7d[_0x171729(0xff)]);const _0x43378f=await _0x2b8b7d['json']();if(!_0x43378f[_0x171729(0x115)]||typeof _0x43378f[_0x171729(0x115)]!==_0x171729(0x108))throw new Error('CDN\x20返回数据格式错误');return _0x43378f;}export async function getRulesContent(){const _0x3f3a66=a205_0x17a2a6;try{const _0x487412=await fetchRulesFromCDN();return _0x487412[_0x3f3a66(0x115)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x574f31=a205_0x17a2a6;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x574f31(0xfe));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x143797){const _0x192878=a205_0x17a2a6,_0x538d5d=await fetchRulesFromCDN()[_0x192878(0x105)](()=>null);let _0x33e19d;_0x538d5d?(_0x33e19d=_0x538d5d[_0x192878(0x115)],_0x538d5d[_0x192878(0x110)]&&(_0x33e19d=appendUpdateTime(_0x33e19d,_0x538d5d[_0x192878(0x110)]))):_0x33e19d=readLocalTemplate();const _0x606c9d=dirname(_0x143797);!existsSync(_0x606c9d)&&mkdirSync(_0x606c9d,{'recursive':!![]}),writeFileSync(_0x143797,_0x33e19d,_0x192878(0xfe));}export async function copyRulesToCursor(_0x4255f9){const _0x50427a=a205_0x17a2a6,_0x552072=join(_0x4255f9,_0x50427a(0x104)),_0x11a6ea=join(_0x552072,_0x50427a(0x111));if(existsSync(_0x11a6ea))return![];return await writeRulesFile(_0x11a6ea),!![];}function a205_0x4b00(){const _0x311a78=['agents.md','5jxxdRR','2583427QkZURP','content','CDN\x20请求失败:\x20','utf-8','statusText','21591IMdNlc','62217HNmZRf','1804FydjrG','../../templates/rules/lovrabet_rules.mdc.tpl','.cursor/rules','catch','4324566CnGTVi','100PHWZFI','string','3160hfCOSm','175932oLdrxz','586stzrWp','2334JsHOOB','563910NETWwu','status','/rules/rules.json','lastUpdated','lovrabet_rules.mdc'];a205_0x4b00=function(){return _0x311a78;};return a205_0x4b00();}function a205_0x4777(_0x5cbc30,_0x54c76e){_0x5cbc30=_0x5cbc30-0xfd;const _0x4b00bf=a205_0x4b00();let _0x47777e=_0x4b00bf[_0x5cbc30];return _0x47777e;}export async function copyRulesToAgentsMd(_0x456b4b){const _0x200dd0=a205_0x17a2a6,_0x294ad8=join(_0x456b4b,_0x200dd0(0x112));if(existsSync(_0x294ad8))return![];return await writeRulesFile(_0x294ad8),!![];}
1
+ const a206_0x2f60f0=a206_0x3c77;(function(_0x221bfb,_0x5673d2){const _0x10f637=a206_0x3c77,_0x437b0c=_0x221bfb();while(!![]){try{const _0x3998c4=-parseInt(_0x10f637(0x108))/0x1+-parseInt(_0x10f637(0x10b))/0x2*(-parseInt(_0x10f637(0xfc))/0x3)+-parseInt(_0x10f637(0x107))/0x4*(parseInt(_0x10f637(0xef))/0x5)+-parseInt(_0x10f637(0xff))/0x6*(parseInt(_0x10f637(0xf6))/0x7)+parseInt(_0x10f637(0xf2))/0x8*(-parseInt(_0x10f637(0x106))/0x9)+-parseInt(_0x10f637(0x101))/0xa*(parseInt(_0x10f637(0xf9))/0xb)+-parseInt(_0x10f637(0xf4))/0xc*(-parseInt(_0x10f637(0x104))/0xd);if(_0x3998c4===_0x5673d2)break;else _0x437b0c['push'](_0x437b0c['shift']());}catch(_0x35952a){_0x437b0c['push'](_0x437b0c['shift']());}}}(a206_0x4157,0xe665c));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 a206_0x3c77(_0xf29e85,_0x3dd61a){_0xf29e85=_0xf29e85-0xef;const _0x41578f=a206_0x4157();let _0x3c7793=_0x41578f[_0xf29e85];return _0x3c7793;}function getRulesCdnUrl(){const _0x426f77=a206_0x3c77,_0x212e00=getTemplateBaseUrl();return _0x212e00+_0x426f77(0xf1);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a206_0x2f60f0(0x103));export async function fetchRulesFromCDN(){const _0x779674=a206_0x2f60f0,_0x3b6d86=getRulesCdnUrl(),_0x65e989=await fetch(_0x3b6d86,{'headers':{'Accept':_0x779674(0xfa)}});if(!_0x65e989['ok'])throw new Error(_0x779674(0x109)+_0x65e989[_0x779674(0x102)]+'\x20'+_0x65e989[_0x779674(0xf5)]);const _0x109cbc=await _0x65e989[_0x779674(0xfd)]();if(!_0x109cbc[_0x779674(0xf0)]||typeof _0x109cbc[_0x779674(0xf0)]!=='string')throw new Error(_0x779674(0xf7));return _0x109cbc;}export async function getRulesContent(){const _0xb1dc0e=a206_0x2f60f0;try{const _0x1033ad=await fetchRulesFromCDN();return _0x1033ad[_0xb1dc0e(0xf0)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x47b606=a206_0x2f60f0;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x47b606(0xfe));throw new Error(_0x47b606(0x100)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xa138f6){const _0x1c6b9a=a206_0x2f60f0,_0xbefd1=await fetchRulesFromCDN()[_0x1c6b9a(0xf3)](()=>null);let _0x4b125b;_0xbefd1?(_0x4b125b=_0xbefd1[_0x1c6b9a(0xf0)],_0xbefd1[_0x1c6b9a(0x105)]&&(_0x4b125b=appendUpdateTime(_0x4b125b,_0xbefd1[_0x1c6b9a(0x105)]))):_0x4b125b=readLocalTemplate();const _0x515606=dirname(_0xa138f6);!existsSync(_0x515606)&&mkdirSync(_0x515606,{'recursive':!![]}),writeFileSync(_0xa138f6,_0x4b125b,_0x1c6b9a(0xfe));}function a206_0x4157(){const _0x2482ac=['3dzqnRp','json','utf-8','2238Yyivfc','本地模板文件不存在:\x20','4987250TbOxbE','status','../../templates/rules/lovrabet_rules.mdc.tpl','32947603wYNXoQ','lastUpdated','12972699ZEeIZM','57668CJZHRT','578916uNTDAF','CDN\x20请求失败:\x20','lovrabet_rules.mdc','615738ZTjrqo','255keciiO','content','/rules/rules.json','8LgFWJZ','catch','24EpSnOU','statusText','12761CFHAxj','CDN\x20返回数据格式错误','.cursor/rules','22uMAIzU','application/json','agents.md'];a206_0x4157=function(){return _0x2482ac;};return a206_0x4157();}export async function copyRulesToCursor(_0x47494c){const _0x4b7833=a206_0x2f60f0,_0xc8ff7b=join(_0x47494c,_0x4b7833(0xf8)),_0x596090=join(_0xc8ff7b,_0x4b7833(0x10a));if(existsSync(_0x596090))return![];return await writeRulesFile(_0x596090),!![];}export async function copyRulesToAgentsMd(_0x28350a){const _0x3d84eb=a206_0x2f60f0,_0x5886f0=join(_0x28350a,_0x3d84eb(0xfb));if(existsSync(_0x5886f0))return![];return await writeRulesFile(_0x5886f0),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x9ebd1e){return new Promise(_0x12c608=>setTimeout(_0x12c608,_0x9ebd1e));}
1
+ export function sleep(_0x5eab4b){return new Promise(_0x4d9816=>setTimeout(_0x4d9816,_0x5eab4b));}
@@ -1 +1 @@
1
- const a207_0x51c731=a207_0x5336;(function(_0x1b2407,_0x21daec){const _0x4597c6=a207_0x5336,_0x306410=_0x1b2407();while(!![]){try{const _0x3ee5cb=parseInt(_0x4597c6(0xae))/0x1+parseInt(_0x4597c6(0xa6))/0x2+parseInt(_0x4597c6(0x8d))/0x3+-parseInt(_0x4597c6(0x9c))/0x4*(-parseInt(_0x4597c6(0x8a))/0x5)+parseInt(_0x4597c6(0xa9))/0x6+-parseInt(_0x4597c6(0x8c))/0x7*(-parseInt(_0x4597c6(0x99))/0x8)+-parseInt(_0x4597c6(0x9f))/0x9*(parseInt(_0x4597c6(0x9e))/0xa);if(_0x3ee5cb===_0x21daec)break;else _0x306410['push'](_0x306410['shift']());}catch(_0x398ec2){_0x306410['push'](_0x306410['shift']());}}}(a207_0x48d0,0x9df6d));import a207_0x5c41d2 from'node:fs';import a207_0x4ff2bd from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a207_0x51c731(0x87)](_0x84041e){return String(_0x84041e)['padStart'](0x2,'0');}static[a207_0x51c731(0x75)](_0x3d3380){const _0x24d189=a207_0x51c731,_0x95646e=_0x3d3380['getFullYear'](),_0x589e41=this['pad'](_0x3d3380['getMonth']()+0x1),_0x274cc6=this[_0x24d189(0x87)](_0x3d3380[_0x24d189(0x9a)]()),_0x548691=this[_0x24d189(0x87)](_0x3d3380[_0x24d189(0x76)]()),_0x335130=this[_0x24d189(0x87)](_0x3d3380[_0x24d189(0xb1)]()),_0x110dc5=this[_0x24d189(0x87)](_0x3d3380[_0x24d189(0xa4)]());return{'createdAt':_0x95646e+'-'+_0x589e41+'-'+_0x274cc6+'\x20'+_0x548691+':'+_0x335130+':'+_0x110dc5,'createdDate':_0x95646e+'-'+_0x589e41+'-'+_0x274cc6,'createdTime':_0x548691+':'+_0x335130+':'+_0x110dc5};}static[a207_0x51c731(0x88)](_0x1dff5c){const _0x267aa6=a207_0x51c731,_0x48a198=_0x1dff5c['split']('/')[_0x267aa6(0x94)]()||_0x1dff5c;return _0x48a198[_0x267aa6(0x82)]('-')[_0x267aa6(0x7c)](_0x14e3d2=>_0x14e3d2[_0x267aa6(0x74)](0x0)[_0x267aa6(0xa0)]()+_0x14e3d2[_0x267aa6(0x6e)](0x1)[_0x267aa6(0x96)]())[_0x267aa6(0x97)]('');}static[a207_0x51c731(0xb2)](_0xac24f6){const _0x436e00=a207_0x51c731,_0x4787a9=_0xac24f6[_0x436e00(0x82)]('/')[_0x436e00(0x94)]()||_0xac24f6;return _0x4787a9[_0x436e00(0x82)]('-')[_0x436e00(0x7c)](_0xddd12e=>_0xddd12e[_0x436e00(0x74)](0x0)['toUpperCase']()+_0xddd12e[_0x436e00(0x6e)](0x1)[_0x436e00(0x96)]())['join']('\x20');}static['replaceContent'](_0x20fb43,_0x1c0ee2,_0x304ae2){const _0x2e035a=a207_0x51c731,_0x1448b3=this['toComponentName'](_0x1c0ee2),_0xd9d24a=this['toDisplayTitle'](_0x1c0ee2),{createdAt:_0x11084c,createdDate:_0x268992,createdTime:_0x3dcc9a}=this[_0x2e035a(0x75)](new Date());let _0x216403=_0x20fb43[_0x2e035a(0x93)](/\{CliVersion\}/g,CLI_VERSION)[_0x2e035a(0x93)](/\{ComponentName\}/g,_0x1448b3)['replace'](/\{DisplayTitle\}/g,_0xd9d24a)[_0x2e035a(0x93)](/\{PageName\}/g,_0x1c0ee2)[_0x2e035a(0x93)](/\{TemplateName\}/g,_0x304ae2)['replace'](/\{CreatedAt\}/g,_0x11084c)[_0x2e035a(0x93)](/\{CreatedDate\}/g,_0x268992)['replace'](/\{CreatedTime\}/g,_0x3dcc9a);return _0x216403;}static['replaceApiContent'](_0x81230e,_0xa88515,_0x50992a,_0x542468,_0x54df23,_0x5cdc75,_0x5389f6,_0x3fe525){const _0x26227c=a207_0x51c731,_0x37c43d=new Date(),_0x286a14=_0x37c43d[_0x26227c(0x8f)](),_0x2a6c2b=_0x50992a[_0x26227c(0x7c)](_0x45411e=>{const _0x5d8865=_0x26227c,_0xb380f9=[_0x5d8865(0xa2)+_0x45411e[_0x5d8865(0x77)]+'\x22',_0x5d8865(0x90)+_0x45411e[_0x5d8865(0x91)]+'\x22',_0x5d8865(0x98)+_0x45411e[_0x5d8865(0x79)]+'\x22'];return _0x45411e[_0x5d8865(0x86)]&&_0xb380f9[_0x5d8865(0x85)](_0x5d8865(0x80)+_0x45411e['alias']+'\x22'),_0x5d8865(0x7a)+_0xb380f9[_0x5d8865(0x97)](',\x20')+_0x5d8865(0x6d);})['join'](''),_0x4f44f9=_0x542468||_0x50992a[0x0]?.[_0x26227c(0x86)]||_0x26227c(0x71);let _0x2695bb=_0x81230e[_0x26227c(0x93)](/\{AppCode\}/g,_0xa88515)[_0x26227c(0x93)](/\{ModelConfigs\}/g,_0x2a6c2b)['replace'](/\{ExampleModelName\}/g,_0x4f44f9)[_0x26227c(0x93)](/\{ApiFileName\}/g,_0x54df23||_0x26227c(0x6f))[_0x26227c(0x93)](/\{ConfigName\}/g,_0x5cdc75||'default')['replace'](/\{ClientConfigParam\}/g,_0x5389f6||'')[_0x26227c(0x93)](/\{VarPrefix\}/g,_0x3fe525||'LOVRABET')[_0x26227c(0x93)](/\{CreatedAt\}/g,_0x286a14);return _0x2695bb;}static async[a207_0x51c731(0x7d)](_0x29e6ad,_0xfa1c78,_0x4b67be,_0x1dfca0,_0x22fdb6=!![]){const _0x295d83=a207_0x51c731,_0x47a32a=Date[_0x295d83(0xaa)]();try{_0x22fdb6&&logger[_0x295d83(0xa5)](_0x295d83(0x9d),_0x295d83(0xaf),{'templatePath':_0x29e6ad,'targetPath':_0xfa1c78,'pageName':_0x4b67be,'templateName':_0x1dfca0});await a207_0x5c41d2[_0x295d83(0xab)][_0x295d83(0x70)](_0xfa1c78,{'recursive':!![]}),await this[_0x295d83(0x7f)](_0x29e6ad,_0xfa1c78,_0x4b67be,_0x1dfca0);if(_0x22fdb6){const _0x1d1549=Date['now']()-_0x47a32a;logger[_0x295d83(0xad)](_0x295d83(0x9d),_0x295d83(0x9b),_0x1d1549,{'pageName':_0x4b67be,'templateName':_0x1dfca0});}}catch(_0x844522){if(_0x22fdb6){const _0x1e531b=Date[_0x295d83(0xaa)]()-_0x47a32a;logger['error'](_0x295d83(0x9d),_0x295d83(0xb0),{'templatePath':_0x29e6ad,'targetPath':_0xfa1c78,'pageName':_0x4b67be,'templateName':_0x1dfca0,'error':_0x844522 instanceof Error?_0x844522[_0x295d83(0x84)]:String(_0x844522),'duration':_0x1e531b});}throw _0x844522;}}static async[a207_0x51c731(0x7f)](_0x5a6f15,_0x24d56c,_0x25bed2,_0x1de041){const _0xb8f810=a207_0x51c731,_0x42cae5=await a207_0x5c41d2['promises'][_0xb8f810(0xa8)](_0x5a6f15,{'withFileTypes':!![]});for(const _0x2a4743 of _0x42cae5){const _0x3967ad=a207_0x4ff2bd[_0xb8f810(0x97)](_0x5a6f15,_0x2a4743[_0xb8f810(0x79)]);let _0x525f77=a207_0x4ff2bd['join'](_0x24d56c,_0x2a4743['name']);_0x2a4743[_0xb8f810(0x79)][_0xb8f810(0xa7)](_0xb8f810(0x95))&&(_0x525f77=a207_0x4ff2bd['join'](_0x24d56c,_0x2a4743[_0xb8f810(0x79)]['replace'](/\.tpl$/,'')));if(_0x2a4743[_0xb8f810(0x8e)]())await a207_0x5c41d2[_0xb8f810(0xab)]['mkdir'](_0x525f77,{'recursive':!![]}),await this[_0xb8f810(0x7f)](_0x3967ad,_0x525f77,_0x25bed2,_0x1de041);else _0x2a4743['isFile']()&&await this['processFile'](_0x3967ad,_0x525f77,_0x25bed2,_0x1de041);}}static async[a207_0x51c731(0x78)](_0x39de19,_0x377895,_0x2b7f19,_0x407b7e){const _0x47139b=a207_0x51c731,_0xe01b69=a207_0x4ff2bd[_0x47139b(0x7e)](_0x39de19)[_0x47139b(0x96)]();_0x39de19[_0x47139b(0xa7)]('.tpl')&&(_0x377895=_0x377895['replace'](/\.tpl$/,''));const _0x22ad61=[_0x47139b(0x83),'.ts',_0x47139b(0x73),_0x47139b(0xac),_0x47139b(0x81),_0x47139b(0xa3),'.css',_0x47139b(0x7b),_0x47139b(0x95)];if(_0x22ad61[_0x47139b(0x72)](_0xe01b69)||_0x39de19[_0x47139b(0xa7)](_0x47139b(0x95))){const _0x9de180=await a207_0x5c41d2[_0x47139b(0xab)][_0x47139b(0x92)](_0x39de19,_0x47139b(0xa1)),_0x13f1df=this['replaceContent'](_0x9de180,_0x2b7f19,_0x407b7e);await a207_0x5c41d2[_0x47139b(0xab)][_0x47139b(0x89)](_0x377895,_0x13f1df,'utf8');}else await a207_0x5c41d2[_0x47139b(0xab)][_0x47139b(0x8b)](_0x39de19,_0x377895);}}function a207_0x5336(_0x27a683,_0x5cf567){_0x27a683=_0x27a683-0x6d;const _0x48d097=a207_0x48d0();let _0x533685=_0x48d097[_0x27a683];return _0x533685;}function a207_0x48d0(){const _0xb0b485=['模板内容替换完成','4167900PTjUby','template','30vqFyeK','12548043KpyHkj','toUpperCase','utf8','datasetCode:\x20\x22','.md','getSeconds','info','2282492COMfKW','endsWith','readdir','4196742uYiApk','now','promises','.js','success','1259941TbkoxE','开始处理模板内容替换','模板内容替换失败','getMinutes','toDisplayTitle','\x20},','slice','api','mkdir','YourModel','includes','.jsx','charAt','formatLocalTimestamp','getHours','datasetCode','processFile','name','\x0a\x20\x20\x20\x20{\x20','.scss','map','processTemplate','extname','processDirectory','alias:\x20\x22','.json','split','.tsx','message','push','alias','pad','toComponentName','writeFile','5ZeoGrV','copyFile','119XiPnjZ','529056wgXEys','isDirectory','toISOString','tableName:\x20\x22','tableName','readFile','replace','pop','.tpl','toLowerCase','join','name:\x20\x22','240344GfNKzs','getDate'];a207_0x48d0=function(){return _0xb0b485;};return a207_0x48d0();}
1
+ const a208_0x502423=a208_0x138a;(function(_0x1c5590,_0x305f7e){const _0x4f6d6a=a208_0x138a,_0x12d2bd=_0x1c5590();while(!![]){try{const _0x4099b6=parseInt(_0x4f6d6a(0xb8))/0x1*(-parseInt(_0x4f6d6a(0xb5))/0x2)+parseInt(_0x4f6d6a(0xc3))/0x3+-parseInt(_0x4f6d6a(0xc5))/0x4+parseInt(_0x4f6d6a(0x8a))/0x5+-parseInt(_0x4f6d6a(0x9e))/0x6*(parseInt(_0x4f6d6a(0xa4))/0x7)+-parseInt(_0x4f6d6a(0xaa))/0x8*(-parseInt(_0x4f6d6a(0xb4))/0x9)+parseInt(_0x4f6d6a(0xa0))/0xa*(parseInt(_0x4f6d6a(0xaf))/0xb);if(_0x4099b6===_0x305f7e)break;else _0x12d2bd['push'](_0x12d2bd['shift']());}catch(_0x4cf450){_0x12d2bd['push'](_0x12d2bd['shift']());}}}(a208_0xb469,0xae843));function a208_0x138a(_0x594e38,_0x548896){_0x594e38=_0x594e38-0x86;const _0xb46927=a208_0xb469();let _0x138a03=_0xb46927[_0x594e38];return _0x138a03;}import a208_0xcb71c8 from'node:fs';import a208_0xea0bbc from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a208_0xb469(){const _0x1f17db=['message','map','tableName','toComponentName','split','.md','slice','.js','padStart','isFile','replace','join','endsWith','.scss','getHours','copyFile','219534CaJEvB','template','12450NgVZHA','includes','success','processDirectory','21Usxagk','getMinutes','isDirectory','processTemplate','pop','api','184NtxVmJ','info','formatLocalTimestamp','toLowerCase','readFile','7634OKxIEH','toISOString','charAt','pad','YourModel','250794hqKKPl','2hDtvou','replaceContent','模板内容替换失败','1187677Slzslc','mkdir','now','datasetCode:\x20\x22','.tpl','.css','模板内容替换完成','开始处理模板内容替换','name','processFile','toDisplayTitle','3992823sMnFyi','name:\x20\x22','5197232KflhTB','getDate','utf8','alias','push','2378410jMLmGS','getMonth','promises','toUpperCase'];a208_0xb469=function(){return _0x1f17db;};return a208_0xb469();}export class TemplateReplacer{static[a208_0x502423(0xb2)](_0x42230f){const _0x5086de=a208_0x502423;return String(_0x42230f)[_0x5086de(0x96)](0x2,'0');}static[a208_0x502423(0xac)](_0x33d508){const _0x39c5d1=a208_0x502423,_0x5f36c2=_0x33d508['getFullYear'](),_0x55d667=this[_0x39c5d1(0xb2)](_0x33d508[_0x39c5d1(0x8b)]()+0x1),_0x3f7f82=this[_0x39c5d1(0xb2)](_0x33d508[_0x39c5d1(0x86)]()),_0x48f841=this[_0x39c5d1(0xb2)](_0x33d508[_0x39c5d1(0x9c)]()),_0x170eff=this['pad'](_0x33d508[_0x39c5d1(0xa5)]()),_0x2160fc=this[_0x39c5d1(0xb2)](_0x33d508['getSeconds']());return{'createdAt':_0x5f36c2+'-'+_0x55d667+'-'+_0x3f7f82+'\x20'+_0x48f841+':'+_0x170eff+':'+_0x2160fc,'createdDate':_0x5f36c2+'-'+_0x55d667+'-'+_0x3f7f82,'createdTime':_0x48f841+':'+_0x170eff+':'+_0x2160fc};}static[a208_0x502423(0x91)](_0x4bb8b6){const _0x59a71b=a208_0x502423,_0x34652e=_0x4bb8b6[_0x59a71b(0x92)]('/')[_0x59a71b(0xa8)]()||_0x4bb8b6;return _0x34652e[_0x59a71b(0x92)]('-')[_0x59a71b(0x8f)](_0x3f3e30=>_0x3f3e30[_0x59a71b(0xb1)](0x0)['toUpperCase']()+_0x3f3e30[_0x59a71b(0x94)](0x1)['toLowerCase']())[_0x59a71b(0x99)]('');}static[a208_0x502423(0xc2)](_0x2adca6){const _0x2087bf=a208_0x502423,_0x53daa7=_0x2adca6['split']('/')[_0x2087bf(0xa8)]()||_0x2adca6;return _0x53daa7[_0x2087bf(0x92)]('-')[_0x2087bf(0x8f)](_0x129b78=>_0x129b78['charAt'](0x0)[_0x2087bf(0x8d)]()+_0x129b78['slice'](0x1)[_0x2087bf(0xad)]())[_0x2087bf(0x99)]('\x20');}static[a208_0x502423(0xb6)](_0x5d2dd8,_0x20c57b,_0x44c90f){const _0x43fd29=a208_0x502423,_0x167521=this[_0x43fd29(0x91)](_0x20c57b),_0x188ade=this[_0x43fd29(0xc2)](_0x20c57b),{createdAt:_0xe02473,createdDate:_0x2009b1,createdTime:_0x262c3a}=this[_0x43fd29(0xac)](new Date());let _0x569141=_0x5d2dd8['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x43fd29(0x98)](/\{ComponentName\}/g,_0x167521)[_0x43fd29(0x98)](/\{DisplayTitle\}/g,_0x188ade)[_0x43fd29(0x98)](/\{PageName\}/g,_0x20c57b)[_0x43fd29(0x98)](/\{TemplateName\}/g,_0x44c90f)[_0x43fd29(0x98)](/\{CreatedAt\}/g,_0xe02473)[_0x43fd29(0x98)](/\{CreatedDate\}/g,_0x2009b1)['replace'](/\{CreatedTime\}/g,_0x262c3a);return _0x569141;}static['replaceApiContent'](_0x29943e,_0x19ac36,_0x3c3cfd,_0x275ced,_0x27b2bb,_0x3b0005,_0x40daf7,_0x2dadb0){const _0x38bb4c=a208_0x502423,_0x1a45a8=new Date(),_0x54bcc3=_0x1a45a8[_0x38bb4c(0xb0)](),_0x45f4d4=_0x3c3cfd[_0x38bb4c(0x8f)](_0xd31d3a=>{const _0x1a98e6=_0x38bb4c,_0x7ddd2f=[_0x1a98e6(0xbb)+_0xd31d3a['datasetCode']+'\x22','tableName:\x20\x22'+_0xd31d3a[_0x1a98e6(0x90)]+'\x22',_0x1a98e6(0xc4)+_0xd31d3a[_0x1a98e6(0xc0)]+'\x22'];return _0xd31d3a[_0x1a98e6(0x88)]&&_0x7ddd2f[_0x1a98e6(0x89)]('alias:\x20\x22'+_0xd31d3a[_0x1a98e6(0x88)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x7ddd2f['join'](',\x20')+'\x20},';})[_0x38bb4c(0x99)](''),_0x194216=_0x275ced||_0x3c3cfd[0x0]?.[_0x38bb4c(0x88)]||_0x38bb4c(0xb3);let _0x346938=_0x29943e['replace'](/\{AppCode\}/g,_0x19ac36)[_0x38bb4c(0x98)](/\{ModelConfigs\}/g,_0x45f4d4)[_0x38bb4c(0x98)](/\{ExampleModelName\}/g,_0x194216)[_0x38bb4c(0x98)](/\{ApiFileName\}/g,_0x27b2bb||_0x38bb4c(0xa9))[_0x38bb4c(0x98)](/\{ConfigName\}/g,_0x3b0005||'default')[_0x38bb4c(0x98)](/\{ClientConfigParam\}/g,_0x40daf7||'')['replace'](/\{VarPrefix\}/g,_0x2dadb0||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x54bcc3);return _0x346938;}static async[a208_0x502423(0xa7)](_0x5242ff,_0x2f9b31,_0x3e0132,_0x2058b7,_0x5d7099=!![]){const _0x4c5601=a208_0x502423,_0x463f17=Date['now']();try{_0x5d7099&&logger[_0x4c5601(0xab)](_0x4c5601(0x9f),_0x4c5601(0xbf),{'templatePath':_0x5242ff,'targetPath':_0x2f9b31,'pageName':_0x3e0132,'templateName':_0x2058b7});await a208_0xcb71c8['promises'][_0x4c5601(0xb9)](_0x2f9b31,{'recursive':!![]}),await this[_0x4c5601(0xa3)](_0x5242ff,_0x2f9b31,_0x3e0132,_0x2058b7);if(_0x5d7099){const _0x5983ef=Date[_0x4c5601(0xba)]()-_0x463f17;logger[_0x4c5601(0xa2)]('template',_0x4c5601(0xbe),_0x5983ef,{'pageName':_0x3e0132,'templateName':_0x2058b7});}}catch(_0x1fe211){if(_0x5d7099){const _0x14b58c=Date['now']()-_0x463f17;logger['error'](_0x4c5601(0x9f),_0x4c5601(0xb7),{'templatePath':_0x5242ff,'targetPath':_0x2f9b31,'pageName':_0x3e0132,'templateName':_0x2058b7,'error':_0x1fe211 instanceof Error?_0x1fe211[_0x4c5601(0x8e)]:String(_0x1fe211),'duration':_0x14b58c});}throw _0x1fe211;}}static async[a208_0x502423(0xa3)](_0x2cb42b,_0x24de58,_0x5bf6dd,_0x10a5b1){const _0x41f67d=a208_0x502423,_0x49e199=await a208_0xcb71c8[_0x41f67d(0x8c)]['readdir'](_0x2cb42b,{'withFileTypes':!![]});for(const _0x4a858a of _0x49e199){const _0x409c7e=a208_0xea0bbc[_0x41f67d(0x99)](_0x2cb42b,_0x4a858a[_0x41f67d(0xc0)]);let _0x3f4baf=a208_0xea0bbc[_0x41f67d(0x99)](_0x24de58,_0x4a858a[_0x41f67d(0xc0)]);_0x4a858a[_0x41f67d(0xc0)]['endsWith'](_0x41f67d(0xbc))&&(_0x3f4baf=a208_0xea0bbc[_0x41f67d(0x99)](_0x24de58,_0x4a858a[_0x41f67d(0xc0)][_0x41f67d(0x98)](/\.tpl$/,'')));if(_0x4a858a[_0x41f67d(0xa6)]())await a208_0xcb71c8['promises'][_0x41f67d(0xb9)](_0x3f4baf,{'recursive':!![]}),await this[_0x41f67d(0xa3)](_0x409c7e,_0x3f4baf,_0x5bf6dd,_0x10a5b1);else _0x4a858a[_0x41f67d(0x97)]()&&await this[_0x41f67d(0xc1)](_0x409c7e,_0x3f4baf,_0x5bf6dd,_0x10a5b1);}}static async['processFile'](_0x251a31,_0x49ebfa,_0x5b64ac,_0x364775){const _0x1aee1e=a208_0x502423,_0x287739=a208_0xea0bbc['extname'](_0x251a31)[_0x1aee1e(0xad)]();_0x251a31[_0x1aee1e(0x9a)]('.tpl')&&(_0x49ebfa=_0x49ebfa[_0x1aee1e(0x98)](/\.tpl$/,''));const _0x470f70=['.tsx','.ts','.jsx',_0x1aee1e(0x95),'.json',_0x1aee1e(0x93),_0x1aee1e(0xbd),_0x1aee1e(0x9b),'.tpl'];if(_0x470f70[_0x1aee1e(0xa1)](_0x287739)||_0x251a31['endsWith'](_0x1aee1e(0xbc))){const _0x31fc65=await a208_0xcb71c8['promises'][_0x1aee1e(0xae)](_0x251a31,_0x1aee1e(0x87)),_0x3459dd=this[_0x1aee1e(0xb6)](_0x31fc65,_0x5b64ac,_0x364775);await a208_0xcb71c8[_0x1aee1e(0x8c)]['writeFile'](_0x49ebfa,_0x3459dd,_0x1aee1e(0x87));}else await a208_0xcb71c8['promises'][_0x1aee1e(0x9d)](_0x251a31,_0x49ebfa);}}
@@ -1 +1 @@
1
- (function(_0x2a9737,_0x4bc69d){const _0x5720a0=a208_0x53c8,_0x111778=_0x2a9737();while(!![]){try{const _0x23a802=parseInt(_0x5720a0(0x161))/0x1*(parseInt(_0x5720a0(0x170))/0x2)+-parseInt(_0x5720a0(0x177))/0x3+parseInt(_0x5720a0(0x163))/0x4*(-parseInt(_0x5720a0(0x17a))/0x5)+-parseInt(_0x5720a0(0x171))/0x6*(parseInt(_0x5720a0(0x166))/0x7)+parseInt(_0x5720a0(0x17b))/0x8+-parseInt(_0x5720a0(0x167))/0x9*(parseInt(_0x5720a0(0x16c))/0xa)+-parseInt(_0x5720a0(0x175))/0xb*(-parseInt(_0x5720a0(0x169))/0xc);if(_0x23a802===_0x4bc69d)break;else _0x111778['push'](_0x111778['shift']());}catch(_0x1e78c5){_0x111778['push'](_0x111778['shift']());}}}(a208_0x360a,0x51117));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a208_0x532cc7 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x50c6eb=a208_0x53c8,_0x1c5f93=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x50c6eb(0x162)]()[_0x50c6eb(0x174)]();return _0x1c5f93==='1'||_0x1c5f93===_0x50c6eb(0x16d)||_0x1c5f93===_0x50c6eb(0x17d);}function cacheRoot(){const _0x38ae33=a208_0x53c8;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x38ae33(0x16b));}function a208_0x360a(){const _0xc5eb76=['2211610XuqbjE','1500208YhJwMX','\x20update','yes','lastNotifiedAt','now','\x20available,\x20current\x20','21bXTykJ','trim','4JhtCqs','stringify','rabetbase-cli','2009KdxtMY','45NfmcFk','latest','228EccAcm','https://www.npmjs.com/package/','.cache','1209920lwxlIw','true','gte','object','57044EwhFrA','10866swtYFM','valid','checkedAt','toLowerCase','675675rFuXEC','number','163407TLjGJr','parse','lastNotifiedVersion'];a208_0x360a=function(){return _0xc5eb76;};return a208_0x360a();}export function getUpdateNoticeCachePath(){const _0x2d4434=a208_0x53c8;return join(cacheRoot(),_0x2d4434(0x165),'update-check.json');}async function readUpdateNoticeCache(){const _0x564f6f=a208_0x53c8;try{const _0x365428=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x2d62fe=JSON[_0x564f6f(0x178)](_0x365428);if(!_0x2d62fe||typeof _0x2d62fe!==_0x564f6f(0x16f))return{};return _0x2d62fe;}catch{return{};}}function a208_0x53c8(_0xc4ebfc,_0x1991dd){_0xc4ebfc=_0xc4ebfc-0x15e;const _0x360a3e=a208_0x360a();let _0x53c839=_0x360a3e[_0xc4ebfc];return _0x53c839;}async function writeUpdateNoticeCache(_0xa79751){const _0x308e32=a208_0x53c8;try{const _0x5e1dba=getUpdateNoticeCachePath();await mkdir(dirname(_0x5e1dba),{'recursive':!![]}),await writeFile(_0x5e1dba,JSON[_0x308e32(0x164)](_0xa79751,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x50a70e,_0x27355b){const _0x4f8deb=a208_0x53c8;return typeof _0x50a70e[_0x4f8deb(0x173)]===_0x4f8deb(0x176)&&_0x27355b-_0x50a70e[_0x4f8deb(0x173)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x43e128,_0x3787cc,_0x4ecba5){const _0x37e1e8=a208_0x53c8;return _0x43e128[_0x37e1e8(0x179)]===_0x3787cc&&typeof _0x43e128[_0x37e1e8(0x15e)]===_0x37e1e8(0x176)&&_0x4ecba5-_0x43e128[_0x37e1e8(0x15e)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x13765e){const _0x1f3e6d=a208_0x53c8;return _0x1f3e6d(0x16a)+NPM_PACKAGE_NAME+'/v/'+_0x13765e;}export async function resolveLatestUpdateNotice(){const _0x210312=a208_0x53c8;if(isUpdateNoticeDisabled())return null;try{const _0x182b7b=Date[_0x210312(0x15f)](),_0x2fb0fb=getCliVersion(),_0xabb5c2=await readUpdateNoticeCache();let _0x1fb38e=isFreshCheck(_0xabb5c2,_0x182b7b)?_0xabb5c2[_0x210312(0x168)]?.[_0x210312(0x162)]():undefined;if(!_0x1fb38e&&!isFreshCheck(_0xabb5c2,_0x182b7b)){const _0x510cb3=await getCliVersionPolicy();_0x1fb38e=_0x510cb3?.['stableVersion']?.[_0x210312(0x162)]()||undefined,await writeUpdateNoticeCache({..._0xabb5c2,'checkedAt':_0x182b7b,'latest':_0x1fb38e,'failed':!_0x1fb38e});}if(!_0x1fb38e||!a208_0x532cc7[_0x210312(0x172)](_0x2fb0fb)||!a208_0x532cc7[_0x210312(0x172)](_0x1fb38e))return null;if(a208_0x532cc7[_0x210312(0x16e)](_0x2fb0fb,_0x1fb38e))return null;if(isRecentlyNotified(_0xabb5c2,_0x1fb38e,_0x182b7b))return null;const _0x3ce2f2=CLI_BIN_NAME+_0x210312(0x17c);return await writeUpdateNoticeCache({..._0xabb5c2,'checkedAt':isFreshCheck(_0xabb5c2,_0x182b7b)?_0xabb5c2['checkedAt']:_0x182b7b,'latest':_0x1fb38e,'failed':![],'lastNotifiedVersion':_0x1fb38e,'lastNotifiedAt':_0x182b7b}),{'command':_0x3ce2f2,'current':_0x2fb0fb,'latest':_0x1fb38e,'url':buildNpmVersionUrl(_0x1fb38e),'message':CLI_BIN_NAME+'\x20'+_0x1fb38e+_0x210312(0x160)+_0x2fb0fb+',\x20run:\x20'+_0x3ce2f2};}catch{return null;}}
1
+ (function(_0x1a33d5,_0x1c8cbb){const _0x599fed=a209_0x3073,_0x182d1b=_0x1a33d5();while(!![]){try{const _0x593ad4=parseInt(_0x599fed(0x168))/0x1+-parseInt(_0x599fed(0x15b))/0x2+parseInt(_0x599fed(0x177))/0x3*(parseInt(_0x599fed(0x15c))/0x4)+parseInt(_0x599fed(0x174))/0x5+parseInt(_0x599fed(0x15e))/0x6+-parseInt(_0x599fed(0x164))/0x7*(-parseInt(_0x599fed(0x15d))/0x8)+-parseInt(_0x599fed(0x161))/0x9;if(_0x593ad4===_0x1c8cbb)break;else _0x182d1b['push'](_0x182d1b['shift']());}catch(_0xa5432b){_0x182d1b['push'](_0x182d1b['shift']());}}}(a209_0x2c75,0xd28e5));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a209_0x289e76 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';function a209_0x3073(_0x92eb47,_0x554c80){_0x92eb47=_0x92eb47-0x15b;const _0x2c7542=a209_0x2c75();let _0x307391=_0x2c7542[_0x92eb47];return _0x307391;}const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x2c9940=a209_0x3073,_0x51631c=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x51631c==='1'||_0x51631c===_0x2c9940(0x176)||_0x51631c===_0x2c9940(0x172);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x2735e4=a209_0x3073;return join(cacheRoot(),_0x2735e4(0x16d),_0x2735e4(0x16e));}async function readUpdateNoticeCache(){const _0x39c704=a209_0x3073;try{const _0x536e6c=await readFile(getUpdateNoticeCachePath(),_0x39c704(0x175)),_0x380daa=JSON[_0x39c704(0x165)](_0x536e6c);if(!_0x380daa||typeof _0x380daa!==_0x39c704(0x173))return{};return _0x380daa;}catch{return{};}}function a209_0x2c75(){const _0x367e2b=['1651596nawnpo','50120MKiDOK','3741882iGytCj',',\x20run:\x20','trim','26728668dzLkUW','lastNotifiedAt','now','1715HHSEdk','parse','\x20available,\x20current\x20','stableVersion','268447ZIfwqt','gte','lastNotifiedVersion','checkedAt','latest','rabetbase-cli','update-check.json','\x20update','https://www.npmjs.com/package/','valid','yes','object','6197115JaFtjc','utf8','true','3hIwniB','494104upyWMA'];a209_0x2c75=function(){return _0x367e2b;};return a209_0x2c75();}async function writeUpdateNoticeCache(_0xdb6e13){try{const _0x5d87f1=getUpdateNoticeCachePath();await mkdir(dirname(_0x5d87f1),{'recursive':!![]}),await writeFile(_0x5d87f1,JSON['stringify'](_0xdb6e13,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x524731,_0x3fc03e){const _0x7990c4=a209_0x3073;return typeof _0x524731['checkedAt']==='number'&&_0x3fc03e-_0x524731[_0x7990c4(0x16b)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x43e282,_0x5384ae,_0x52984d){const _0x2ffabb=a209_0x3073;return _0x43e282[_0x2ffabb(0x16a)]===_0x5384ae&&typeof _0x43e282[_0x2ffabb(0x162)]==='number'&&_0x52984d-_0x43e282['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4507c4){const _0x56e415=a209_0x3073;return _0x56e415(0x170)+NPM_PACKAGE_NAME+'/v/'+_0x4507c4;}export async function resolveLatestUpdateNotice(){const _0x9c02f9=a209_0x3073;if(isUpdateNoticeDisabled())return null;try{const _0x1013d8=Date[_0x9c02f9(0x163)](),_0x5adede=getCliVersion(),_0x44fa9d=await readUpdateNoticeCache();let _0x558ed9=isFreshCheck(_0x44fa9d,_0x1013d8)?_0x44fa9d[_0x9c02f9(0x16c)]?.[_0x9c02f9(0x160)]():undefined;if(!_0x558ed9&&!isFreshCheck(_0x44fa9d,_0x1013d8)){const _0x32afa0=await getCliVersionPolicy();_0x558ed9=_0x32afa0?.[_0x9c02f9(0x167)]?.[_0x9c02f9(0x160)]()||undefined,await writeUpdateNoticeCache({..._0x44fa9d,'checkedAt':_0x1013d8,'latest':_0x558ed9,'failed':!_0x558ed9});}if(!_0x558ed9||!a209_0x289e76[_0x9c02f9(0x171)](_0x5adede)||!a209_0x289e76[_0x9c02f9(0x171)](_0x558ed9))return null;if(a209_0x289e76[_0x9c02f9(0x169)](_0x5adede,_0x558ed9))return null;if(isRecentlyNotified(_0x44fa9d,_0x558ed9,_0x1013d8))return null;const _0x14017b=CLI_BIN_NAME+_0x9c02f9(0x16f);return await writeUpdateNoticeCache({..._0x44fa9d,'checkedAt':isFreshCheck(_0x44fa9d,_0x1013d8)?_0x44fa9d[_0x9c02f9(0x16b)]:_0x1013d8,'latest':_0x558ed9,'failed':![],'lastNotifiedVersion':_0x558ed9,'lastNotifiedAt':_0x1013d8}),{'command':_0x14017b,'current':_0x5adede,'latest':_0x558ed9,'url':buildNpmVersionUrl(_0x558ed9),'message':CLI_BIN_NAME+'\x20'+_0x558ed9+_0x9c02f9(0x166)+_0x5adede+_0x9c02f9(0x15f)+_0x14017b};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x2028e8,_0x5b8d4a){var _0x516548=a209_0x330f,_0x32bf35=_0x2028e8();while(!![]){try{var _0x92c6ac=-parseInt(_0x516548(0x14f))/0x1*(-parseInt(_0x516548(0x14c))/0x2)+-parseInt(_0x516548(0x14e))/0x3+parseInt(_0x516548(0x14d))/0x4*(-parseInt(_0x516548(0x14a))/0x5)+-parseInt(_0x516548(0x151))/0x6+parseInt(_0x516548(0x152))/0x7*(parseInt(_0x516548(0x149))/0x8)+parseInt(_0x516548(0x153))/0x9+-parseInt(_0x516548(0x14b))/0xa*(-parseInt(_0x516548(0x150))/0xb);if(_0x92c6ac===_0x5b8d4a)break;else _0x32bf35['push'](_0x32bf35['shift']());}catch(_0x7f596d){_0x32bf35['push'](_0x32bf35['shift']());}}}(a209_0x2bd2,0x4f2bb));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a209_0x330f(_0x422455,_0x5ce020){_0x422455=_0x422455-0x149;var _0x2bd224=a209_0x2bd2();var _0x330f91=_0x2bd224[_0x422455];return _0x330f91;}function a209_0x2bd2(){var _0x4d473d=['10japBtq','9518590lJGgCB','6184nCHjqy','440556ADhZtu','479502eFERFb','61LNBHze','11CZZeFZ','3567426bKERBI','35DUCscl','540225RZtvxe','157552ZPzofw'];a209_0x2bd2=function(){return _0x4d473d;};return a209_0x2bd2();}
1
+ (function(_0x3dd769,_0x3527fa){var _0x19367e=a210_0x2656,_0x142a2b=_0x3dd769();while(!![]){try{var _0x168d3c=parseInt(_0x19367e(0xc7))/0x1+-parseInt(_0x19367e(0xcc))/0x2*(-parseInt(_0x19367e(0xce))/0x3)+-parseInt(_0x19367e(0xc3))/0x4*(-parseInt(_0x19367e(0xca))/0x5)+parseInt(_0x19367e(0xcb))/0x6*(-parseInt(_0x19367e(0xcd))/0x7)+parseInt(_0x19367e(0xc2))/0x8*(-parseInt(_0x19367e(0xc6))/0x9)+-parseInt(_0x19367e(0xc8))/0xa*(parseInt(_0x19367e(0xc5))/0xb)+-parseInt(_0x19367e(0xc4))/0xc*(-parseInt(_0x19367e(0xc9))/0xd);if(_0x168d3c===_0x3527fa)break;else _0x142a2b['push'](_0x142a2b['shift']());}catch(_0x5d2471){_0x142a2b['push'](_0x142a2b['shift']());}}}(a210_0x117e,0x8c0cd));import{VERSION}from'../generated/build-info.js';function a210_0x2656(_0xf13f5e,_0x380c57){_0xf13f5e=_0xf13f5e-0xc2;var _0x117e8a=a210_0x117e();var _0x2656df=_0x117e8a[_0xf13f5e];return _0x2656df;}export function getCliVersion(){return VERSION;}function a210_0x117e(){var _0x20637b=['1188jKSArB','34173DtvxMI','393919awxMGD','77020wJBmfW','5245669iBSeZp','97355iLYOxT','78bANfkd','51194Gntgaz','486647KLtlFh','111wkfvVv','2416BifHcL','20wVyife','60dxffov'];a210_0x117e=function(){return _0x20637b;};return a210_0x117e();}
@@ -1 +1 @@
1
- function a210_0x2a77(){var _0x2b056f=['64JJmWBA','1831670ExwnYF','7674275sEQOVL','2333634jAgERg','30252608iJOaHb','159909IiTnjZ','2873860wKpGtU','1123688fVfzae'];a210_0x2a77=function(){return _0x2b056f;};return a210_0x2a77();}(function(_0x10ce7d,_0x33c563){var _0x10ce9e=a210_0x52a8,_0x507742=_0x10ce7d();while(!![]){try{var _0x15c06e=-parseInt(_0x10ce9e(0x187))/0x1+parseInt(_0x10ce9e(0x189))/0x2+parseInt(_0x10ce9e(0x185))/0x3*(-parseInt(_0x10ce9e(0x188))/0x4)+-parseInt(_0x10ce9e(0x186))/0x5+-parseInt(_0x10ce9e(0x183))/0x6+-parseInt(_0x10ce9e(0x18a))/0x7+parseInt(_0x10ce9e(0x184))/0x8;if(_0x15c06e===_0x33c563)break;else _0x507742['push'](_0x507742['shift']());}catch(_0x39a9cb){_0x507742['push'](_0x507742['shift']());}}}(a210_0x2a77,0xa1567));function a210_0x52a8(_0x1a4b91,_0x5ca16e){_0x1a4b91=_0x1a4b91-0x183;var _0x2a7755=a210_0x2a77();var _0x52a8e8=_0x2a7755[_0x1a4b91];return _0x52a8e8;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3e8b51,_0xb5ccfa){setActiveCookie(_0x3e8b51);try{return await _0xb5ccfa();}finally{clearActiveCookie();}}
1
+ function a211_0x1896(_0x59b255,_0x209bb9){_0x59b255=_0x59b255-0xd1;var _0x495521=a211_0x4955();var _0x189665=_0x495521[_0x59b255];return _0x189665;}(function(_0x5bb078,_0x2fcb7e){var _0x317229=a211_0x1896,_0x4adc47=_0x5bb078();while(!![]){try{var _0x4fd74c=-parseInt(_0x317229(0xd2))/0x1*(-parseInt(_0x317229(0xd8))/0x2)+-parseInt(_0x317229(0xd6))/0x3*(-parseInt(_0x317229(0xd3))/0x4)+parseInt(_0x317229(0xd1))/0x5+parseInt(_0x317229(0xd9))/0x6+parseInt(_0x317229(0xd4))/0x7+-parseInt(_0x317229(0xd7))/0x8+-parseInt(_0x317229(0xda))/0x9*(parseInt(_0x317229(0xd5))/0xa);if(_0x4fd74c===_0x2fcb7e)break;else _0x4adc47['push'](_0x4adc47['shift']());}catch(_0x3284ba){_0x4adc47['push'](_0x4adc47['shift']());}}}(a211_0x4955,0x36368));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a211_0x4955(){var _0x5e37dd=['1785882ZTGYni','878170ffyreE','6fIpolc','988008vfyoGh','2InJeYa','554094WdWxZr','81FdmGbO','1714320QGdmwS','386101iuqWIF','118940xyoVwG'];a211_0x4955=function(){return _0x5e37dd;};return a211_0x4955();}export async function withActiveCookie(_0x34a858,_0x516164){setActiveCookie(_0x34a858);try{return await _0x516164();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a211_0x458f(_0x592e2e,_0x399247){_0x592e2e=_0x592e2e-0xc1;var _0x3c1b1a=a211_0x3c1b();var _0x458fbf=_0x3c1b1a[_0x592e2e];return _0x458fbf;}(function(_0x243d7d,_0x4a00be){var _0x1e6c3c=a211_0x458f,_0x15402c=_0x243d7d();while(!![]){try{var _0x16f702=-parseInt(_0x1e6c3c(0xc1))/0x1+parseInt(_0x1e6c3c(0xc7))/0x2+parseInt(_0x1e6c3c(0xc9))/0x3*(-parseInt(_0x1e6c3c(0xc2))/0x4)+parseInt(_0x1e6c3c(0xc6))/0x5*(parseInt(_0x1e6c3c(0xc5))/0x6)+parseInt(_0x1e6c3c(0xca))/0x7*(-parseInt(_0x1e6c3c(0xc8))/0x8)+parseInt(_0x1e6c3c(0xc4))/0x9+parseInt(_0x1e6c3c(0xc3))/0xa;if(_0x16f702===_0x4a00be)break;else _0x15402c['push'](_0x15402c['shift']());}catch(_0x2b8bfd){_0x15402c['push'](_0x15402c['shift']());}}}(a211_0x3c1b,0xa3e64));export function writeCliSideChannelLine(_0x3157d5){process['stderr']['write'](_0x3157d5+'\x0a');}function a211_0x3c1b(){var _0x4b4876=['10XMBntu','707052kbkLlQ','2826216LfXJgt','99LbxcyP','7JIPUFF','769611seowHk','60404ZgEwMC','8382640qaCPjJ','3865545Cojbun','2013774ygESwS'];a211_0x3c1b=function(){return _0x4b4876;};return a211_0x3c1b();}
1
+ function a212_0x4995(_0x3e3cc2,_0x586779){_0x3e3cc2=_0x3e3cc2-0x18b;var _0x2ec536=a212_0x2ec5();var _0x4995b9=_0x2ec536[_0x3e3cc2];return _0x4995b9;}(function(_0x44bd4c,_0x1c602f){var _0xd341dd=a212_0x4995,_0x556ea5=_0x44bd4c();while(!![]){try{var _0x49950b=-parseInt(_0xd341dd(0x18b))/0x1*(parseInt(_0xd341dd(0x190))/0x2)+-parseInt(_0xd341dd(0x192))/0x3*(parseInt(_0xd341dd(0x18c))/0x4)+-parseInt(_0xd341dd(0x193))/0x5+parseInt(_0xd341dd(0x18e))/0x6*(parseInt(_0xd341dd(0x18f))/0x7)+parseInt(_0xd341dd(0x18d))/0x8+-parseInt(_0xd341dd(0x194))/0x9*(-parseInt(_0xd341dd(0x195))/0xa)+parseInt(_0xd341dd(0x196))/0xb;if(_0x49950b===_0x1c602f)break;else _0x556ea5['push'](_0x556ea5['shift']());}catch(_0x474ecd){_0x556ea5['push'](_0x556ea5['shift']());}}}(a212_0x2ec5,0xebbfa));export function writeCliSideChannelLine(_0x43e81c){var _0x5cd90e=a212_0x4995;process['stderr'][_0x5cd90e(0x191)](_0x43e81c+'\x0a');}function a212_0x2ec5(){var _0x3d2fad=['8494842FJhKZc','7fVGtIv','4882LroIdD','write','9CfAvLz','612555UbFABx','22995NhXtSP','990EkGuLP','14410539ozlWvf','755LCuuAX','1768004sMpYhA','10226352XLOJBb'];a212_0x2ec5=function(){return _0x3d2fad;};return a212_0x2ec5();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.2.4-beta.5",
3
+ "version": "2.2.4",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",