@lovrabet/rabetbase-cli 2.3.4-beta.3 → 2.3.4-beta.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 (240) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -0
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -0
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -0
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -0
  120. package/lib/commands/permit/page-get.js +1 -0
  121. package/lib/commands/permit/page-set.js +1 -0
  122. package/lib/commands/permit/role-apis-set.js +1 -0
  123. package/lib/commands/permit/role-menus-set.js +1 -0
  124. package/lib/commands/permit/role-menus.js +1 -0
  125. package/lib/commands/permit/shared.js +1 -0
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -0
  139. package/lib/commands/role/delete.js +1 -0
  140. package/lib/commands/role/detail.js +1 -0
  141. package/lib/commands/role/index.js +1 -0
  142. package/lib/commands/role/list.js +1 -0
  143. package/lib/commands/role/shared.js +1 -0
  144. package/lib/commands/role/update.js +1 -0
  145. package/lib/commands/role/user-add.js +1 -0
  146. package/lib/commands/role/user-remove.js +1 -0
  147. package/lib/commands/role/user-resolve.js +1 -0
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -0
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -0
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +2 -2
  240. package/lib/commands/app/discover.js +0 -1
@@ -1 +1 @@
1
- function a202_0x2494(_0x5d82ef,_0x53f970){_0x5d82ef=_0x5d82ef-0x17e;const _0x44f6be=a202_0x44f6();let _0x24941a=_0x44f6be[_0x5d82ef];return _0x24941a;}const a202_0x349fd4=a202_0x2494;(function(_0x53face,_0x28b16b){const _0x3c44e6=a202_0x2494,_0x4bd6fb=_0x53face();while(!![]){try{const _0x2fe279=parseInt(_0x3c44e6(0x17e))/0x1*(parseInt(_0x3c44e6(0x194))/0x2)+-parseInt(_0x3c44e6(0x189))/0x3*(-parseInt(_0x3c44e6(0x182))/0x4)+parseInt(_0x3c44e6(0x192))/0x5+-parseInt(_0x3c44e6(0x18c))/0x6*(parseInt(_0x3c44e6(0x18e))/0x7)+parseInt(_0x3c44e6(0x196))/0x8*(-parseInt(_0x3c44e6(0x19a))/0x9)+parseInt(_0x3c44e6(0x183))/0xa+-parseInt(_0x3c44e6(0x1a0))/0xb*(parseInt(_0x3c44e6(0x188))/0xc);if(_0x2fe279===_0x28b16b)break;else _0x4bd6fb['push'](_0x4bd6fb['shift']());}catch(_0x4873ee){_0x4bd6fb['push'](_0x4bd6fb['shift']());}}}(a202_0x44f6,0xa7737));import a202_0x5f1b97 from'node:fs';import a202_0x5535c3 from'node:path';import a202_0x219a00 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a202_0x349fd4(0x199);function a202_0x44f6(){const _0x421ca9=['package.json','devDependencies','↪\x20SDK\x20update\x20available','minVersion','99lpoUiM','test','utf-8','node_modules','some','1czhPAF','packageName','coerce','all','244vLRMNh','5031630XbiUZV','log','stableVersion','npm\x20install\x20','@lovrabet/sdk','913092jfhjmS','20814vppGHh','\x20\x20\x20Upgrade\x20command:\x20','node','12qUdyGq','parse','3137428grQmmp','existsSync','dependencies','utf8','4491940gGxZNV','\x1b[0m','1254466qmapIL','join','4608LMmoLf','version','readFileSync','1.2.0','2889sHUIrU','\x1b[33m'];a202_0x44f6=function(){return _0x421ca9;};return a202_0x44f6();}function isNonNumericVersion(_0x23cd10){const _0x55006d=a202_0x349fd4,_0x8137af=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x8137af[_0x55006d(0x1a4)](_0x28f685=>_0x28f685[_0x55006d(0x1a1)](_0x23cd10));}function getInstalledVersion(_0x2f7b8e,_0x13bad6){const _0x2b4050=a202_0x349fd4;try{const _0x126b9d=a202_0x5535c3['join'](_0x2f7b8e,_0x2b4050(0x1a3),_0x13bad6,'package.json');if(a202_0x5f1b97['existsSync'](_0x126b9d)){const _0x41f119=JSON[_0x2b4050(0x18d)](a202_0x5f1b97[_0x2b4050(0x198)](_0x126b9d,_0x2b4050(0x1a2)));return _0x41f119[_0x2b4050(0x197)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3be1af=a202_0x349fd4;try{const _0x321552=await getCdnConfig();return _0x321552?.['sdk']?.[_0x3be1af(0x18b)]?.[_0x3be1af(0x185)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4695c8=a202_0x349fd4;try{const _0x2c7ef4=await getCdnConfig();return _0x2c7ef4?.['sdk']?.[_0x4695c8(0x18b)]?.[_0x4695c8(0x17f)]||_0x4695c8(0x187);}catch{return _0x4695c8(0x187);}}export async function checkSdkVersion(_0x3c71c4){const _0x34da01=a202_0x349fd4,_0x136f3d=a202_0x5535c3[_0x34da01(0x195)](_0x3c71c4,_0x34da01(0x19c)),[_0x5e1952,_0x49cf16]=await Promise[_0x34da01(0x181)]([getSdkStableVersion(),getSdkPackageName()]),_0x36129d=_0x5e1952||FALLBACK_MIN_SDK_VERSION;if(!a202_0x5f1b97[_0x34da01(0x18f)](_0x136f3d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};try{const _0x3e9e75=JSON[_0x34da01(0x18d)](a202_0x5f1b97['readFileSync'](_0x136f3d,_0x34da01(0x191))),_0x383dcd=_0x3e9e75[_0x34da01(0x190)]||{},_0x3a0333=_0x3e9e75[_0x34da01(0x19d)]||{},_0x39ac33=_0x383dcd[_0x49cf16]||_0x3a0333[_0x49cf16];if(!_0x39ac33)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};let _0x45be7f=getInstalledVersion(_0x3c71c4,_0x49cf16);!_0x45be7f&&(_0x45be7f=_0x39ac33);if(isNonNumericVersion(_0x39ac33))return{'installed':!![],'version':_0x45be7f,'needsUpgrade':![],'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};const _0x207540=a202_0x219a00['coerce'](_0x45be7f),_0x3dd343=a202_0x219a00[_0x34da01(0x180)](_0x36129d),_0x3fc3a7=_0x207540&&_0x3dd343?a202_0x219a00['lt'](_0x207540,_0x3dd343):![];return{'installed':!![],'version':_0x45be7f,'needsUpgrade':_0x3fc3a7,'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};}}export function checkSdkVersionSync(_0x483cc2){const _0x273de4=a202_0x349fd4,_0x5c3728=a202_0x5535c3[_0x273de4(0x195)](_0x483cc2,_0x273de4(0x19c)),_0x4f8d1e='@lovrabet/sdk';if(!a202_0x5f1b97[_0x273de4(0x18f)](_0x5c3728))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};try{const _0x242a4e=JSON[_0x273de4(0x18d)](a202_0x5f1b97[_0x273de4(0x198)](_0x5c3728,_0x273de4(0x191))),_0x5120dc=_0x242a4e[_0x273de4(0x190)]||{},_0x4e2751=_0x242a4e[_0x273de4(0x19d)]||{},_0x3b4550=_0x5120dc[_0x4f8d1e]||_0x4e2751[_0x4f8d1e];if(!_0x3b4550)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};let _0x4682ae=getInstalledVersion(_0x483cc2,_0x4f8d1e);!_0x4682ae&&(_0x4682ae=_0x3b4550);if(isNonNumericVersion(_0x3b4550))return{'installed':!![],'version':_0x4682ae,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};const _0x570a20=a202_0x219a00['coerce'](_0x4682ae),_0x2e63b6=_0x570a20?a202_0x219a00['lt'](_0x570a20,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4682ae,'needsUpgrade':_0x2e63b6,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3e2416){const _0x5ac2cb=a202_0x349fd4;if(!_0x3e2416['needsUpgrade'])return;const _0xb0f5e4=_0x5ac2cb(0x19b),_0x2dce8d=_0x5ac2cb(0x193),_0x406f04='\x1b[1m',_0xc281ef=_0x3e2416['packageName']||'@lovrabet/sdk',_0x9b8f8f=_0x3e2416['stableVersion']||_0x3e2416[_0x5ac2cb(0x19f)],_0x5d2412=_0x5ac2cb(0x186)+_0xc281ef+'@'+(_0x9b8f8f||'latest');console['log'](),console[_0x5ac2cb(0x184)](''+_0xb0f5e4+_0x406f04+_0x5ac2cb(0x19e)+_0x2dce8d),console[_0x5ac2cb(0x184)](_0xb0f5e4+'\x20\x20\x20Current\x20version:\x20'+_0xc281ef+'@'+_0x3e2416['version']+_0x2dce8d),console['log'](_0xb0f5e4+'\x20\x20\x20Stable\x20version:\x20'+_0x9b8f8f+_0x2dce8d),console[_0x5ac2cb(0x184)](_0xb0f5e4+_0x5ac2cb(0x18a)+_0x5d2412+_0x2dce8d),console[_0x5ac2cb(0x184)]();}
1
+ function a223_0x1bfa(_0x134dce,_0x226452){_0x134dce=_0x134dce-0x1d6;const _0x729d52=a223_0x729d();let _0x1bfaa9=_0x729d52[_0x134dce];return _0x1bfaa9;}const a223_0xe09bfd=a223_0x1bfa;(function(_0x127c2f,_0x3ec12a){const _0x24955a=a223_0x1bfa,_0x2c92f2=_0x127c2f();while(!![]){try{const _0x12e681=-parseInt(_0x24955a(0x1f7))/0x1+parseInt(_0x24955a(0x1dd))/0x2+-parseInt(_0x24955a(0x1e1))/0x3+-parseInt(_0x24955a(0x1f6))/0x4+parseInt(_0x24955a(0x1fc))/0x5+parseInt(_0x24955a(0x1df))/0x6*(parseInt(_0x24955a(0x1f9))/0x7)+-parseInt(_0x24955a(0x1e5))/0x8*(-parseInt(_0x24955a(0x1fa))/0x9);if(_0x12e681===_0x3ec12a)break;else _0x2c92f2['push'](_0x2c92f2['shift']());}catch(_0x46a1eb){_0x2c92f2['push'](_0x2c92f2['shift']());}}}(a223_0x729d,0x3984b));import a223_0x46c92e from'node:fs';import a223_0x278bac from'node:path';import a223_0x25795a from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a223_0xe09bfd(0x1e9);function isNonNumericVersion(_0x25a72d){const _0x44c7ed=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x44c7ed['some'](_0x251300=>_0x251300['test'](_0x25a72d));}function getInstalledVersion(_0x3b70f3,_0x270eb6){const _0x247cde=a223_0xe09bfd;try{const _0x59b0e5=a223_0x278bac[_0x247cde(0x1e8)](_0x3b70f3,_0x247cde(0x1e6),_0x270eb6,_0x247cde(0x1fb));if(a223_0x46c92e[_0x247cde(0x1f2)](_0x59b0e5)){const _0x5e473b=JSON[_0x247cde(0x1ed)](a223_0x46c92e[_0x247cde(0x1dc)](_0x59b0e5,'utf-8'));return _0x5e473b[_0x247cde(0x1f5)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x2bcea4=a223_0xe09bfd;try{const _0x20754c=await getCdnConfig();return _0x20754c?.[_0x2bcea4(0x1ea)]?.[_0x2bcea4(0x1e4)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x116a50=a223_0xe09bfd;try{const _0x12d50f=await getCdnConfig();return _0x12d50f?.[_0x116a50(0x1ea)]?.[_0x116a50(0x1e4)]?.['packageName']||_0x116a50(0x1d8);}catch{return _0x116a50(0x1d8);}}export async function checkSdkVersion(_0x34b858){const _0x2e2045=a223_0xe09bfd,_0x49c3d3=a223_0x278bac[_0x2e2045(0x1e8)](_0x34b858,'package.json'),[_0x23582d,_0x4cddd7]=await Promise[_0x2e2045(0x1e2)]([getSdkStableVersion(),getSdkPackageName()]),_0x3cbc52=_0x23582d||FALLBACK_MIN_SDK_VERSION;if(!a223_0x46c92e[_0x2e2045(0x1f2)](_0x49c3d3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};try{const _0x53b565=JSON[_0x2e2045(0x1ed)](a223_0x46c92e['readFileSync'](_0x49c3d3,_0x2e2045(0x1d9))),_0x49fb4b=_0x53b565[_0x2e2045(0x1da)]||{},_0x1f0345=_0x53b565[_0x2e2045(0x1f8)]||{},_0x6e1f3f=_0x49fb4b[_0x4cddd7]||_0x1f0345[_0x4cddd7];if(!_0x6e1f3f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};let _0x555417=getInstalledVersion(_0x34b858,_0x4cddd7);!_0x555417&&(_0x555417=_0x6e1f3f);if(isNonNumericVersion(_0x6e1f3f))return{'installed':!![],'version':_0x555417,'needsUpgrade':![],'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};const _0x4632fe=a223_0x25795a[_0x2e2045(0x1f3)](_0x555417),_0x2a9be4=a223_0x25795a['coerce'](_0x3cbc52),_0x3e9079=_0x4632fe&&_0x2a9be4?a223_0x25795a['lt'](_0x4632fe,_0x2a9be4):![];return{'installed':!![],'version':_0x555417,'needsUpgrade':_0x3e9079,'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};}}function a223_0x729d(){const _0x104203=['npm\x20install\x20','log','@lovrabet/sdk','utf8','dependencies','stableVersion','readFileSync','416018WSDIEq','latest','28866dETHls','\x20\x20\x20Stable\x20version:\x20','1364757stqGPk','all','needsUpgrade','node','1306808KwUWeF','node_modules','\x1b[33m','join','1.2.0','sdk','↪\x20SDK\x20update\x20available','packageName','parse','\x1b[0m','\x20\x20\x20Current\x20version:\x20','minVersion','\x1b[1m','existsSync','coerce','\x20\x20\x20Upgrade\x20command:\x20','version','1519812iHlGCA','435324jXCZmp','devDependencies','35WzYbjj','63NHGwGn','package.json','651350zepVGY'];a223_0x729d=function(){return _0x104203;};return a223_0x729d();}export function checkSdkVersionSync(_0x3167ce){const _0x2be076=a223_0xe09bfd,_0x246229=a223_0x278bac[_0x2be076(0x1e8)](_0x3167ce,_0x2be076(0x1fb)),_0x10e1b0=_0x2be076(0x1d8);if(!a223_0x46c92e[_0x2be076(0x1f2)](_0x246229))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};try{const _0x51ff06=JSON[_0x2be076(0x1ed)](a223_0x46c92e[_0x2be076(0x1dc)](_0x246229,_0x2be076(0x1d9))),_0xbc839c=_0x51ff06[_0x2be076(0x1da)]||{},_0x24f659=_0x51ff06[_0x2be076(0x1f8)]||{},_0x451f27=_0xbc839c[_0x10e1b0]||_0x24f659[_0x10e1b0];if(!_0x451f27)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};let _0x47c170=getInstalledVersion(_0x3167ce,_0x10e1b0);!_0x47c170&&(_0x47c170=_0x451f27);if(isNonNumericVersion(_0x451f27))return{'installed':!![],'version':_0x47c170,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};const _0xf7ed16=a223_0x25795a[_0x2be076(0x1f3)](_0x47c170),_0x47b5f8=_0xf7ed16?a223_0x25795a['lt'](_0xf7ed16,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x47c170,'needsUpgrade':_0x47b5f8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x67c012){const _0x1d93ba=a223_0xe09bfd;if(!_0x67c012[_0x1d93ba(0x1e3)])return;const _0x14339e=_0x1d93ba(0x1e7),_0x27b494=_0x1d93ba(0x1ee),_0x20555a=_0x1d93ba(0x1f1),_0x588ddf=_0x67c012[_0x1d93ba(0x1ec)]||_0x1d93ba(0x1d8),_0x37eb14=_0x67c012[_0x1d93ba(0x1db)]||_0x67c012[_0x1d93ba(0x1f0)],_0x30664c=_0x1d93ba(0x1d6)+_0x588ddf+'@'+(_0x37eb14||_0x1d93ba(0x1de));console[_0x1d93ba(0x1d7)](),console[_0x1d93ba(0x1d7)](''+_0x14339e+_0x20555a+_0x1d93ba(0x1eb)+_0x27b494),console[_0x1d93ba(0x1d7)](_0x14339e+_0x1d93ba(0x1ef)+_0x588ddf+'@'+_0x67c012[_0x1d93ba(0x1f5)]+_0x27b494),console[_0x1d93ba(0x1d7)](_0x14339e+_0x1d93ba(0x1e0)+_0x37eb14+_0x27b494),console[_0x1d93ba(0x1d7)](_0x14339e+_0x1d93ba(0x1f4)+_0x30664c+_0x27b494),console[_0x1d93ba(0x1d7)]();}
@@ -1 +1 @@
1
- (function(_0x3730a8,_0x2c8529){const _0x30682e=a203_0xe24c,_0x88b228=_0x3730a8();while(!![]){try{const _0x4a12d0=-parseInt(_0x30682e(0x1f3))/0x1+parseInt(_0x30682e(0x1d7))/0x2*(parseInt(_0x30682e(0x1d3))/0x3)+parseInt(_0x30682e(0x1ef))/0x4+parseInt(_0x30682e(0x1f6))/0x5*(parseInt(_0x30682e(0x1dd))/0x6)+parseInt(_0x30682e(0x1d4))/0x7*(-parseInt(_0x30682e(0x1de))/0x8)+parseInt(_0x30682e(0x1ee))/0x9*(-parseInt(_0x30682e(0x1f4))/0xa)+-parseInt(_0x30682e(0x1e0))/0xb*(-parseInt(_0x30682e(0x1d8))/0xc);if(_0x4a12d0===_0x2c8529)break;else _0x88b228['push'](_0x88b228['shift']());}catch(_0x17fc36){_0x88b228['push'](_0x88b228['shift']());}}}(a203_0x25bd,0x37ee9));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a203_0x597b82 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(_0x3a7e9d){const _0x1c0d81=a203_0xe24c,_0x3575db=_0x3a7e9d['stableVersion']||_0x1c0d81(0x1e8);return _0x1c0d81(0x1e3)+NPM_PACKAGE_NAME+'@'+_0x3575db;}function getCurrentCliVersion(){const _0x93169c=a203_0xe24c;try{const _0xc2bddb=fileURLToPath(import.meta.url),_0x4bc43d=resolve(dirname(_0xc2bddb),'../..'),_0x58aa61=resolve(_0x4bc43d,_0x93169c(0x1f7)),_0x3b44d7=JSON[_0x93169c(0x1d9)](readFileSync(_0x58aa61,_0x93169c(0x1ec)));return _0x3b44d7[_0x93169c(0x1db)]||_0x93169c(0x1e1);}catch{return _0x93169c(0x1e1);}}function a203_0x25bd(){const _0x278d17=['402535SBSDrT','package.json','needsUpgrade','belowMinimum','coerce','Minimum\x20supported:\x20','\x20\x20\x20','88398RQOVNa','1176RwpzNT','Upgrade\x20command:\x20','\x20\x20\x20Upgrade\x20command:\x20','30IMXbDr','428820fphLXq','parse','Current\x20version:\x20','version','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','6noKzzu','6968slCQYF','\x1b[1m','77rQwFnx','1.0.0','stableVersion','npm\x20install\x20-g\x20','\x1b[33m','minimumVersion','\x20\x20\x20Recommended\x20stable:\x20','upgradeMessage','latest','minimumVersionMessage','log','currentVersion','utf-8','\x1b[31m','584037pwPffC','428448bNNISY','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[0m','\x20\x20\x20Current\x20CLI\x20version:\x20','374543OMXLrE','20CxTHuH','↪\x20New\x20version\x20available'];a203_0x25bd=function(){return _0x278d17;};return a203_0x25bd();}export async function checkCliVersion(){const _0xc80d75=a203_0xe24c,_0x1e6bc4=getCurrentCliVersion(),_0x5a6cb5=await getCliVersionPolicy(),_0x340b0d=_0x5a6cb5?.[_0xc80d75(0x1e2)]||null,_0x953a6e=_0x5a6cb5?.[_0xc80d75(0x1e5)]||null;let _0x589973=![],_0x5ad3d9=![];const _0x412fa6=a203_0x597b82[_0xc80d75(0x1fa)](_0x1e6bc4);if(_0x412fa6&&_0x340b0d)try{const _0x4eda26=a203_0x597b82[_0xc80d75(0x1fa)](_0x340b0d);if(_0x4eda26)_0x589973=a203_0x597b82['lt'](_0x412fa6,_0x4eda26);}catch{}if(_0x412fa6&&_0x953a6e)try{const _0x5ea1d9=a203_0x597b82[_0xc80d75(0x1fa)](_0x953a6e);if(_0x5ea1d9)_0x5ad3d9=a203_0x597b82['lt'](_0x412fa6,_0x5ea1d9);}catch{}return _0x5ad3d9&&(_0x589973=!![]),{'currentVersion':_0x1e6bc4,'stableVersion':_0x340b0d,'minimumVersion':_0x953a6e,'needsUpgrade':_0x589973,'belowMinimum':_0x5ad3d9,'isPreRelease':![],'upgradeMessage':_0x5a6cb5?.['upgradeMessage'],'minimumVersionMessage':_0x5a6cb5?.[_0xc80d75(0x1e9)]};}export function printCliUpgradeWarning(_0x95c680){const _0x520d9b=a203_0xe24c;if(!_0x95c680[_0x520d9b(0x1f8)]&&!_0x95c680[_0x520d9b(0x1f9)])return;const _0x1e9168=_0x520d9b(0x1ed),_0x412b02=_0x520d9b(0x1e4),_0x56aaf7=_0x520d9b(0x1f1),_0xc75fa=_0x520d9b(0x1df),_0x35f73d=getCliUpgradeCommand(_0x95c680);console[_0x520d9b(0x1ea)](),_0x95c680[_0x520d9b(0x1f9)]?(console[_0x520d9b(0x1ea)](''+_0x1e9168+_0xc75fa+_0x520d9b(0x1f0)+_0x56aaf7),console[_0x520d9b(0x1ea)](_0x1e9168+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x95c680[_0x520d9b(0x1eb)]+_0x56aaf7),_0x95c680[_0x520d9b(0x1e5)]&&console['log'](_0x1e9168+'\x20\x20\x20Minimum\x20supported:\x20'+_0x95c680[_0x520d9b(0x1e5)]+_0x56aaf7),_0x95c680[_0x520d9b(0x1e2)]&&_0x95c680[_0x520d9b(0x1e2)]!==_0x95c680[_0x520d9b(0x1e5)]&&console[_0x520d9b(0x1ea)](_0x1e9168+_0x520d9b(0x1e6)+_0x95c680[_0x520d9b(0x1e2)]+_0x56aaf7),_0x95c680[_0x520d9b(0x1e9)]&&console[_0x520d9b(0x1ea)](_0x1e9168+_0x520d9b(0x1fc)+_0x95c680[_0x520d9b(0x1e9)]+_0x56aaf7),console['log'](_0x1e9168+_0x520d9b(0x1d6)+_0x35f73d+_0x56aaf7)):(console[_0x520d9b(0x1ea)](''+_0x412b02+_0xc75fa+_0x520d9b(0x1f5)+_0x56aaf7),console[_0x520d9b(0x1ea)](_0x412b02+_0x520d9b(0x1f2)+_0x95c680[_0x520d9b(0x1eb)]+_0x56aaf7),console[_0x520d9b(0x1ea)](_0x412b02+'\x20\x20\x20Stable\x20version:\x20'+_0x95c680['stableVersion']+_0x56aaf7),_0x95c680['upgradeMessage']&&console[_0x520d9b(0x1ea)](_0x412b02+_0x520d9b(0x1fc)+_0x95c680[_0x520d9b(0x1e7)]+_0x56aaf7),console[_0x520d9b(0x1ea)](_0x412b02+_0x520d9b(0x1d6)+_0x35f73d+_0x56aaf7)),console[_0x520d9b(0x1ea)]();}function a203_0xe24c(_0x4dc582,_0xab257b){_0x4dc582=_0x4dc582-0x1d3;const _0x25bdf7=a203_0x25bd();let _0xe24c9c=_0x25bdf7[_0x4dc582];return _0xe24c9c;}export function assertCliVersionSupported(_0x3bf82c){const _0x37ecd9=a203_0xe24c;if(!_0x3bf82c[_0x37ecd9(0x1f9)])return;const _0x235a20=[_0x3bf82c[_0x37ecd9(0x1e9)],_0x37ecd9(0x1da)+_0x3bf82c[_0x37ecd9(0x1eb)],_0x3bf82c[_0x37ecd9(0x1e5)]?_0x37ecd9(0x1fb)+_0x3bf82c[_0x37ecd9(0x1e5)]:null,_0x37ecd9(0x1d5)+getCliUpgradeCommand(_0x3bf82c)]['filter'](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x37ecd9(0x1dc),_0x235a20);}
1
+ (function(_0x36eeee,_0x408b7c){const _0x3a503f=a224_0x5326,_0x52e35c=_0x36eeee();while(!![]){try{const _0xe06041=parseInt(_0x3a503f(0x1eb))/0x1+-parseInt(_0x3a503f(0x1dd))/0x2*(-parseInt(_0x3a503f(0x1d5))/0x3)+parseInt(_0x3a503f(0x1e8))/0x4*(-parseInt(_0x3a503f(0x1fd))/0x5)+-parseInt(_0x3a503f(0x1e0))/0x6*(parseInt(_0x3a503f(0x1e3))/0x7)+parseInt(_0x3a503f(0x1f1))/0x8*(-parseInt(_0x3a503f(0x1e2))/0x9)+parseInt(_0x3a503f(0x1e6))/0xa+parseInt(_0x3a503f(0x1fb))/0xb;if(_0xe06041===_0x408b7c)break;else _0x52e35c['push'](_0x52e35c['shift']());}catch(_0x26094b){_0x52e35c['push'](_0x52e35c['shift']());}}}(a224_0x196a,0xd74c7));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a224_0x196a(){const _0x17e6f8=['\x1b[0m','coerce','latest','27094067jRygZh','join','5zMfSDt','package.json','currentVersion','30XVQyOT','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','validation','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Upgrade\x20command:\x20','minimumVersion','Minimum\x20supported:\x20','44744NMMQQs','↪\x20Critical\x20CLI\x20upgrade\x20required','↪\x20New\x20version\x20available','7967142adluvJ','belowMinimum','45HBPrSL','7IYVRZX','log','\x20\x20\x20Minimum\x20supported:\x20','7853060tFHdda','\x20\x20\x20Recommended\x20stable:\x20','3714268lIthyw','\x1b[33m','npm\x20install\x20-g\x20','1074504EhAxqy','parse','1.0.0','\x20\x20\x20Current\x20CLI\x20version:\x20','upgradeMessage','\x1b[31m','2253344JNcqcf','needsUpgrade','filter','utf-8','minimumVersionMessage','version','Current\x20version:\x20'];a224_0x196a=function(){return _0x17e6f8;};return a224_0x196a();}import a224_0x3d27ad from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a224_0x5326(_0x4e7f54,_0x6a2c00){_0x4e7f54=_0x4e7f54-0x1d3;const _0x196a97=a224_0x196a();let _0x5326f4=_0x196a97[_0x4e7f54];return _0x5326f4;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x170327){const _0x5cf164=a224_0x5326,_0x38850f=_0x170327[_0x5cf164(0x1d6)]||_0x5cf164(0x1fa);return _0x5cf164(0x1ea)+NPM_PACKAGE_NAME+'@'+_0x38850f;}function getCurrentCliVersion(){const _0x3c91d1=a224_0x5326;try{const _0x41f46f=fileURLToPath(import.meta.url),_0xc592ff=resolve(dirname(_0x41f46f),'../..'),_0x398d6f=resolve(_0xc592ff,_0x3c91d1(0x1d3)),_0x8f0b84=JSON[_0x3c91d1(0x1ec)](readFileSync(_0x398d6f,_0x3c91d1(0x1f4)));return _0x8f0b84[_0x3c91d1(0x1f6)]||_0x3c91d1(0x1ed);}catch{return _0x3c91d1(0x1ed);}}export async function checkCliVersion(){const _0x3822ce=a224_0x5326,_0x15545c=getCurrentCliVersion(),_0x440307=await getCliVersionPolicy(),_0x1b6949=_0x440307?.[_0x3822ce(0x1d6)]||null,_0x4198df=_0x440307?.[_0x3822ce(0x1db)]||null;let _0x56e0ba=![],_0x44841c=![];const _0x48e2e7=a224_0x3d27ad[_0x3822ce(0x1f9)](_0x15545c);if(_0x48e2e7&&_0x1b6949)try{const _0x20f0a9=a224_0x3d27ad['coerce'](_0x1b6949);if(_0x20f0a9)_0x56e0ba=a224_0x3d27ad['lt'](_0x48e2e7,_0x20f0a9);}catch{}if(_0x48e2e7&&_0x4198df)try{const _0x1ea432=a224_0x3d27ad['coerce'](_0x4198df);if(_0x1ea432)_0x44841c=a224_0x3d27ad['lt'](_0x48e2e7,_0x1ea432);}catch{}return _0x44841c&&(_0x56e0ba=!![]),{'currentVersion':_0x15545c,'stableVersion':_0x1b6949,'minimumVersion':_0x4198df,'needsUpgrade':_0x56e0ba,'belowMinimum':_0x44841c,'isPreRelease':![],'upgradeMessage':_0x440307?.[_0x3822ce(0x1ef)],'minimumVersionMessage':_0x440307?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x456197){const _0x4e23e0=a224_0x5326;if(!_0x456197[_0x4e23e0(0x1f2)]&&!_0x456197[_0x4e23e0(0x1e1)])return;const _0x5c8dcd=_0x4e23e0(0x1f0),_0x560e39=_0x4e23e0(0x1e9),_0x4f1fdd=_0x4e23e0(0x1f8),_0x1d9eab='\x1b[1m',_0xc7f7bb=getCliUpgradeCommand(_0x456197);console[_0x4e23e0(0x1e4)](),_0x456197[_0x4e23e0(0x1e1)]?(console[_0x4e23e0(0x1e4)](''+_0x5c8dcd+_0x1d9eab+_0x4e23e0(0x1de)+_0x4f1fdd),console[_0x4e23e0(0x1e4)](_0x5c8dcd+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x456197[_0x4e23e0(0x1d4)]+_0x4f1fdd),_0x456197[_0x4e23e0(0x1db)]&&console[_0x4e23e0(0x1e4)](_0x5c8dcd+_0x4e23e0(0x1e5)+_0x456197[_0x4e23e0(0x1db)]+_0x4f1fdd),_0x456197[_0x4e23e0(0x1d6)]&&_0x456197[_0x4e23e0(0x1d6)]!==_0x456197[_0x4e23e0(0x1db)]&&console[_0x4e23e0(0x1e4)](_0x5c8dcd+_0x4e23e0(0x1e7)+_0x456197[_0x4e23e0(0x1d6)]+_0x4f1fdd),_0x456197[_0x4e23e0(0x1f5)]&&console['log'](_0x5c8dcd+'\x20\x20\x20'+_0x456197[_0x4e23e0(0x1f5)]+_0x4f1fdd),console[_0x4e23e0(0x1e4)](_0x5c8dcd+_0x4e23e0(0x1d7)+_0xc7f7bb+_0x4f1fdd)):(console[_0x4e23e0(0x1e4)](''+_0x560e39+_0x1d9eab+_0x4e23e0(0x1df)+_0x4f1fdd),console[_0x4e23e0(0x1e4)](_0x560e39+_0x4e23e0(0x1ee)+_0x456197['currentVersion']+_0x4f1fdd),console[_0x4e23e0(0x1e4)](_0x560e39+'\x20\x20\x20Stable\x20version:\x20'+_0x456197[_0x4e23e0(0x1d6)]+_0x4f1fdd),_0x456197[_0x4e23e0(0x1ef)]&&console['log'](_0x560e39+'\x20\x20\x20'+_0x456197[_0x4e23e0(0x1ef)]+_0x4f1fdd),console['log'](_0x560e39+'\x20\x20\x20Upgrade\x20command:\x20'+_0xc7f7bb+_0x4f1fdd)),console[_0x4e23e0(0x1e4)]();}export function assertCliVersionSupported(_0x1f7056){const _0x35c09c=a224_0x5326;if(!_0x1f7056[_0x35c09c(0x1e1)])return;const _0x487383=[_0x1f7056[_0x35c09c(0x1f5)],_0x35c09c(0x1f7)+_0x1f7056[_0x35c09c(0x1d4)],_0x1f7056['minimumVersion']?_0x35c09c(0x1dc)+_0x1f7056['minimumVersion']:null,_0x35c09c(0x1da)+getCliUpgradeCommand(_0x1f7056)][_0x35c09c(0x1f3)](Boolean)[_0x35c09c(0x1fc)]('\x0a');throw CliErrors[_0x35c09c(0x1d8)](_0x35c09c(0x1d9),_0x487383);}
@@ -1 +1 @@
1
- (function(_0x1556a4,_0x598142){const _0x2ebd71=a204_0x42fd,_0x4a9b64=_0x1556a4();while(!![]){try{const _0x46c8d0=parseInt(_0x2ebd71(0x11b))/0x1*(parseInt(_0x2ebd71(0x11f))/0x2)+parseInt(_0x2ebd71(0x115))/0x3+parseInt(_0x2ebd71(0x111))/0x4+-parseInt(_0x2ebd71(0x120))/0x5+-parseInt(_0x2ebd71(0x121))/0x6+parseInt(_0x2ebd71(0x119))/0x7+parseInt(_0x2ebd71(0x11a))/0x8;if(_0x46c8d0===_0x598142)break;else _0x4a9b64['push'](_0x4a9b64['shift']());}catch(_0x4b0de7){_0x4a9b64['push'](_0x4a9b64['shift']());}}}(a204_0x5ad0,0x6ec09));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(_0x876c08){const _0x51d722=a204_0x42fd;return typeof _0x876c08===_0x51d722(0x116)&&_0x876c08['trim']()['length']>0x0?_0x876c08[_0x51d722(0x112)]():null;}function normalizeCliVersionPolicy(_0x3d4ad4){const _0x425e37=a204_0x42fd;if(!_0x3d4ad4||typeof _0x3d4ad4!==_0x425e37(0x117))return null;const _0x412027=_0x3d4ad4,_0x2b4323=_0x412027['cli']&&typeof _0x412027['cli']==='object'?_0x412027['cli']:_0x412027,_0x1a9285=pickString(_0x2b4323[_0x425e37(0x11c)])||pickString(_0x2b4323[_0x425e37(0x113)])||pickString(_0x2b4323['recommendedVersion']),_0x53818e=pickString(_0x2b4323[_0x425e37(0x124)])||pickString(_0x2b4323[_0x425e37(0x123)]);if(!_0x1a9285&&!_0x53818e)return null;return{'stableVersion':_0x1a9285,'minimumVersion':_0x53818e,'upgradeMessage':pickString(_0x2b4323['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x2b4323['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x5b7827=a204_0x42fd,_0x21011c=new AbortController(),_0x52004d=setTimeout(()=>_0x21011c[_0x5b7827(0x11d)](),FETCH_TIMEOUT_MS);try{const _0x178c94=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5b7827(0x118)},'signal':_0x21011c[_0x5b7827(0x11e)]});if(!_0x178c94['ok'])return null;const _0x50db86=await _0x178c94[_0x5b7827(0x114)]();return normalizeCliVersionPolicy(_0x50db86);}catch{return null;}finally{clearTimeout(_0x52004d);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a204_0x5ad0(){const _0x3edba7=['minVersion','minimumVersion','2794720XBDuqX','trim','latestVersion','json','505836LHflOS','string','object','application/json','264663CjoxbQ','417472GPORqH','4021qMZcco','stableVersion','abort','signal','172EhKHwk','536060nPxUMw','4453428mHcsXc','now'];a204_0x5ad0=function(){return _0x3edba7;};return a204_0x5ad0();}export async function getCliVersionPolicy(){const _0x6ff2f=a204_0x42fd,_0x103432=Date[_0x6ff2f(0x122)]();if(hasCachedPolicy){const _0x2ad396=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x103432-cacheTime<_0x2ad396)return cachedPolicy;}const _0x4e5354=await fetchCliVersionPolicy();return cachedPolicy=_0x4e5354,cacheTime=_0x103432,hasCachedPolicy=!![],_0x4e5354;}function a204_0x42fd(_0x4d0653,_0x36e3f7){_0x4d0653=_0x4d0653-0x111;const _0x5ad05f=a204_0x5ad0();let _0x42fda4=_0x5ad05f[_0x4d0653];return _0x42fda4;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x2294a2,_0x21e634){const _0x49dc30=a225_0x5938,_0x23b628=_0x2294a2();while(!![]){try{const _0x235cea=-parseInt(_0x49dc30(0x122))/0x1+parseInt(_0x49dc30(0x11b))/0x2+parseInt(_0x49dc30(0x111))/0x3+parseInt(_0x49dc30(0x11f))/0x4+-parseInt(_0x49dc30(0x113))/0x5+parseInt(_0x49dc30(0x120))/0x6+parseInt(_0x49dc30(0x11e))/0x7*(-parseInt(_0x49dc30(0x11d))/0x8);if(_0x235cea===_0x21e634)break;else _0x23b628['push'](_0x23b628['shift']());}catch(_0x2c2ac9){_0x23b628['push'](_0x23b628['shift']());}}}(a225_0x85a2,0xabcf3));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a225_0x85a2(){const _0x530f24=['signal','trim','1464610GatFTb','application/json','29816WaFcfx','4333XiBYJK','3174116hXJiAg','6413400RrAbjv','latestVersion','154919LXmadw','recommendedVersion','minVersion','json','3300984rEXqMy','string','2646995OEveim','length','cli','minimumVersionMessage','minimumVersion','upgradeMessage'];a225_0x85a2=function(){return _0x530f24;};return a225_0x85a2();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x249050){const _0x8f430d=a225_0x5938;return typeof _0x249050===_0x8f430d(0x112)&&_0x249050[_0x8f430d(0x11a)]()[_0x8f430d(0x114)]>0x0?_0x249050['trim']():null;}function normalizeCliVersionPolicy(_0x287c2a){const _0xaa81c6=a225_0x5938;if(!_0x287c2a||typeof _0x287c2a!=='object')return null;const _0x520612=_0x287c2a,_0x5a953a=_0x520612[_0xaa81c6(0x115)]&&typeof _0x520612[_0xaa81c6(0x115)]==='object'?_0x520612['cli']:_0x520612,_0x2249be=pickString(_0x5a953a['stableVersion'])||pickString(_0x5a953a[_0xaa81c6(0x121)])||pickString(_0x5a953a[_0xaa81c6(0x10e)]),_0x41aca8=pickString(_0x5a953a[_0xaa81c6(0x117)])||pickString(_0x5a953a[_0xaa81c6(0x10f)]);if(!_0x2249be&&!_0x41aca8)return null;return{'stableVersion':_0x2249be,'minimumVersion':_0x41aca8,'upgradeMessage':pickString(_0x5a953a[_0xaa81c6(0x118)])||undefined,'minimumVersionMessage':pickString(_0x5a953a[_0xaa81c6(0x116)])||undefined};}export async function fetchCliVersionPolicy(){const _0x19e45e=a225_0x5938,_0x499e68=new AbortController(),_0x384c69=setTimeout(()=>_0x499e68['abort'](),FETCH_TIMEOUT_MS);try{const _0x3f9562=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x19e45e(0x11c)},'signal':_0x499e68[_0x19e45e(0x119)]});if(!_0x3f9562['ok'])return null;const _0xee0c7f=await _0x3f9562[_0x19e45e(0x110)]();return normalizeCliVersionPolicy(_0xee0c7f);}catch{return null;}finally{clearTimeout(_0x384c69);}}function a225_0x5938(_0x2cc5bc,_0x4092f7){_0x2cc5bc=_0x2cc5bc-0x10e;const _0x85a2fe=a225_0x85a2();let _0x5938fe=_0x85a2fe[_0x2cc5bc];return _0x5938fe;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3047ca=Date['now']();if(hasCachedPolicy){const _0x1dcae9=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3047ca-cacheTime<_0x1dcae9)return cachedPolicy;}const _0x1c758a=await fetchCliVersionPolicy();return cachedPolicy=_0x1c758a,cacheTime=_0x3047ca,hasCachedPolicy=!![],_0x1c758a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a205_0x2ea0cb=a205_0x3b53;(function(_0x4568c2,_0x2bd946){const _0xf7816a=a205_0x3b53,_0x3c8286=_0x4568c2();while(!![]){try{const _0x5c1b41=parseInt(_0xf7816a(0xe0))/0x1+parseInt(_0xf7816a(0xd7))/0x2+-parseInt(_0xf7816a(0xdd))/0x3*(parseInt(_0xf7816a(0xdb))/0x4)+-parseInt(_0xf7816a(0xde))/0x5+parseInt(_0xf7816a(0xe2))/0x6*(parseInt(_0xf7816a(0xda))/0x7)+-parseInt(_0xf7816a(0xdf))/0x8+parseInt(_0xf7816a(0xd8))/0x9*(-parseInt(_0xf7816a(0xd9))/0xa);if(_0x5c1b41===_0x2bd946)break;else _0x3c8286['push'](_0x3c8286['shift']());}catch(_0x47d053){_0x3c8286['push'](_0x3c8286['shift']());}}}(a205_0xb419,0xe755c));import{initEnv}from'../constant/env.js';function a205_0x3b53(_0x399875,_0x1eeb91){_0x399875=_0x399875-0xd7;const _0xb4191a=a205_0xb419();let _0x3b53e0=_0xb4191a[_0x399875];return _0x3b53e0;}import{readRawConfig,getConfigAppCode as a205_0x335df9,getMultiAppConfigs as a205_0x434414,getTemplateBaseUrl as a205_0x1f8524}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a205_0xb419(){const _0x40e45a=['string','2111838TsYOOs','1414620xQyMZE','3386512wfYXZF','880467JydBqu','env','31686XSxMCb','project','2767318EUTuWO','2655QOUtGu','39970oavvXr','1687EnakSe','4gQhCaf'];a205_0xb419=function(){return _0x40e45a;};return a205_0xb419();}export function readConfig(_0x3a1622){const _0x343b06=a205_0x3b53,_0x57c14c=readRawConfig(_0x3a1622);return _0x57c14c['env']&&typeof _0x57c14c[_0x343b06(0xe1)]===_0x343b06(0xdc)&&initEnv(_0x57c14c['env']),_0x57c14c;}export function getConfigAppCode(){return a205_0x335df9();}export function getMultiAppConfigs(_0x4e7b75=a205_0x2ea0cb(0xe3)){return a205_0x434414(_0x4e7b75);}export function getTemplateBaseUrl(){return a205_0x1f8524();}
1
+ function a226_0x32fe(_0x265f9b,_0x55af29){_0x265f9b=_0x265f9b-0x19a;const _0x158e40=a226_0x158e();let _0x32fea4=_0x158e40[_0x265f9b];return _0x32fea4;}(function(_0x30efa3,_0x1d670c){const _0x24278e=a226_0x32fe,_0x2c89ac=_0x30efa3();while(!![]){try{const _0x48348f=-parseInt(_0x24278e(0x1a5))/0x1*(parseInt(_0x24278e(0x1a3))/0x2)+-parseInt(_0x24278e(0x19f))/0x3*(parseInt(_0x24278e(0x1a6))/0x4)+parseInt(_0x24278e(0x1a1))/0x5+parseInt(_0x24278e(0x19c))/0x6*(-parseInt(_0x24278e(0x1a4))/0x7)+parseInt(_0x24278e(0x19b))/0x8*(-parseInt(_0x24278e(0x19d))/0x9)+-parseInt(_0x24278e(0x19a))/0xa*(-parseInt(_0x24278e(0x19e))/0xb)+parseInt(_0x24278e(0x1a0))/0xc;if(_0x48348f===_0x1d670c)break;else _0x2c89ac['push'](_0x2c89ac['shift']());}catch(_0x1b5195){_0x2c89ac['push'](_0x2c89ac['shift']());}}}(a226_0x158e,0x8b7e3));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a226_0x431b64,getMultiAppConfigs as a226_0x44adb6,getTemplateBaseUrl as a226_0x608b29}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x339e13){const _0x4dc109=a226_0x32fe,_0xe19092=readRawConfig(_0x339e13);return _0xe19092[_0x4dc109(0x1a2)]&&typeof _0xe19092[_0x4dc109(0x1a2)]==='string'&&initEnv(_0xe19092['env']),_0xe19092;}export function getConfigAppCode(){return a226_0x431b64();}function a226_0x158e(){const _0x4ca994=['211183okagRl','93967WHCOfk','156RwIrGB','7776190EFkfNK','156376gGEgwC','138VGUKXl','9pgRWYa','11qTGUQq','31548GPIgqO','5932752TRQfze','3993870INBhkh','env','8FFbMYl'];a226_0x158e=function(){return _0x4ca994;};return a226_0x158e();}export function getMultiAppConfigs(_0x551a76='project'){return a226_0x44adb6(_0x551a76);}export function getTemplateBaseUrl(){return a226_0x608b29();}
@@ -1 +1 @@
1
- (function(_0x8b3b78,_0x2ec090){const _0x527d64=a206_0x5410,_0x384f32=_0x8b3b78();while(!![]){try{const _0x380db3=-parseInt(_0x527d64(0x1c4))/0x1+-parseInt(_0x527d64(0x1c7))/0x2*(-parseInt(_0x527d64(0x1cd))/0x3)+parseInt(_0x527d64(0x1c5))/0x4*(parseInt(_0x527d64(0x1c9))/0x5)+parseInt(_0x527d64(0x1c0))/0x6+-parseInt(_0x527d64(0x1c8))/0x7+parseInt(_0x527d64(0x1cc))/0x8+parseInt(_0x527d64(0x1c2))/0x9;if(_0x380db3===_0x2ec090)break;else _0x384f32['push'](_0x384f32['shift']());}catch(_0x12ccd8){_0x384f32['push'](_0x384f32['shift']());}}}(a206_0x45bf,0x6618a));import a206_0x377762 from'node:path';function a206_0x5410(_0x2ad263,_0x4b8db6){_0x2ad263=_0x2ad263-0x1c0;const _0x45bfcb=a206_0x45bf();let _0x541014=_0x45bfcb[_0x2ad263];return _0x541014;}function a206_0x45bf(){const _0xda8635=['error','698668IgHclS','509708ZqKrNR','join','652148DBAePV','5293442QurpQz','10ijJjnv','copyFileSync','复制目录时出错:','1770776OGiakJ','6OCpJPp','readdirSync','isDirectory','3043428PYmmai','name','2137257uEiZSd'];a206_0x45bf=function(){return _0xda8635;};return a206_0x45bf();}import a206_0x3f1e75 from'node:fs';export async function copyDirectory(_0x27475b,_0x26c63b){const _0x397a8b=a206_0x5410;try{const _0x17418f=a206_0x3f1e75[_0x397a8b(0x1ce)](_0x27475b,{'withFileTypes':!![]});a206_0x3f1e75['mkdirSync'](_0x26c63b,{'recursive':!![]});for(const _0x3279cb of _0x17418f){const _0x44aadf=a206_0x377762[_0x397a8b(0x1c6)](_0x27475b,_0x3279cb['name']),_0x4b71d0=a206_0x377762[_0x397a8b(0x1c6)](_0x26c63b,_0x3279cb[_0x397a8b(0x1c1)]);_0x3279cb[_0x397a8b(0x1cf)]()?await copyDirectory(_0x44aadf,_0x4b71d0):a206_0x3f1e75[_0x397a8b(0x1ca)](_0x44aadf,_0x4b71d0);}}catch(_0x2b7e7f){console[_0x397a8b(0x1c3)](_0x397a8b(0x1cb),_0x2b7e7f);}}
1
+ (function(_0x455120,_0x2966ba){const _0x8b9d1b=a227_0x87d0,_0x1762cf=_0x455120();while(!![]){try{const _0x2fbd56=parseInt(_0x8b9d1b(0xb4))/0x1+-parseInt(_0x8b9d1b(0xbd))/0x2+parseInt(_0x8b9d1b(0xbe))/0x3*(-parseInt(_0x8b9d1b(0xaf))/0x4)+parseInt(_0x8b9d1b(0xb2))/0x5*(-parseInt(_0x8b9d1b(0xb3))/0x6)+parseInt(_0x8b9d1b(0xbc))/0x7*(parseInt(_0x8b9d1b(0xbb))/0x8)+-parseInt(_0x8b9d1b(0xb0))/0x9*(parseInt(_0x8b9d1b(0xb8))/0xa)+parseInt(_0x8b9d1b(0xb1))/0xb;if(_0x2fbd56===_0x2966ba)break;else _0x1762cf['push'](_0x1762cf['shift']());}catch(_0x169a7d){_0x1762cf['push'](_0x1762cf['shift']());}}}(a227_0x28b2,0xb8332));import a227_0x31e937 from'node:path';function a227_0x28b2(){const _0x39f2cf=['4451499NMpztW','20474190aAsXRO','6149905ITRNbM','6TvDcHf','805334gFJLUC','join','readdirSync','isDirectory','10ABnNcs','error','name','25416xCijdw','1708mXfHLq','399740iiSlHB','6aMDTIU','mkdirSync','复制目录时出错:','1525736zVEzMa'];a227_0x28b2=function(){return _0x39f2cf;};return a227_0x28b2();}function a227_0x87d0(_0xb686d6,_0xa3ed45){_0xb686d6=_0xb686d6-0xaf;const _0x28b2a4=a227_0x28b2();let _0x87d078=_0x28b2a4[_0xb686d6];return _0x87d078;}import a227_0x40cd36 from'node:fs';export async function copyDirectory(_0x4bde27,_0x5cf322){const _0x2e722f=a227_0x87d0;try{const _0x381de3=a227_0x40cd36[_0x2e722f(0xb6)](_0x4bde27,{'withFileTypes':!![]});a227_0x40cd36[_0x2e722f(0xbf)](_0x5cf322,{'recursive':!![]});for(const _0x46750e of _0x381de3){const _0x2126d7=a227_0x31e937[_0x2e722f(0xb5)](_0x4bde27,_0x46750e[_0x2e722f(0xba)]),_0xe21dfb=a227_0x31e937[_0x2e722f(0xb5)](_0x5cf322,_0x46750e['name']);_0x46750e[_0x2e722f(0xb7)]()?await copyDirectory(_0x2126d7,_0xe21dfb):a227_0x40cd36['copyFileSync'](_0x2126d7,_0xe21dfb);}}catch(_0x1f0aef){console[_0x2e722f(0xb9)](_0x2e722f(0xc0),_0x1f0aef);}}
@@ -1 +1 @@
1
- (function(_0x1a63da,_0x8881dc){const _0xd386e1=a207_0x18e3,_0x25236c=_0x1a63da();while(!![]){try{const _0xfaf438=parseInt(_0xd386e1(0x121))/0x1+-parseInt(_0xd386e1(0x11c))/0x2*(parseInt(_0xd386e1(0x11e))/0x3)+parseInt(_0xd386e1(0x11f))/0x4+parseInt(_0xd386e1(0x118))/0x5*(-parseInt(_0xd386e1(0x120))/0x6)+-parseInt(_0xd386e1(0x119))/0x7*(parseInt(_0xd386e1(0x124))/0x8)+parseInt(_0xd386e1(0x117))/0x9+parseInt(_0xd386e1(0x11a))/0xa*(parseInt(_0xd386e1(0x116))/0xb);if(_0xfaf438===_0x8881dc)break;else _0x25236c['push'](_0x25236c['shift']());}catch(_0xbbcb7a){_0x25236c['push'](_0x25236c['shift']());}}}(a207_0x2f25,0x53825));function a207_0x2f25(){const _0x2940f7=['number','1496007obyCQq','2450848hTKuYE','129534HFgEjx','246579HFCGxA','trim','string','10312QtxzIs','256333tpwvzw','2158317AMVoFq','110WAiwSP','469drsovA','130GXZmTa','isFinite','2gEHXAT'];a207_0x2f25=function(){return _0x2940f7;};return a207_0x2f25();}function toFiniteNumber(_0x3395b3){const _0x47938b=a207_0x18e3;if(typeof _0x3395b3===_0x47938b(0x11d)&&Number[_0x47938b(0x11b)](_0x3395b3))return _0x3395b3;if(typeof _0x3395b3===_0x47938b(0x123)){const _0x12598c=_0x3395b3[_0x47938b(0x122)]();if(!_0x12598c)return undefined;const _0x102aca=Number(_0x12598c);if(Number[_0x47938b(0x11b)](_0x102aca))return _0x102aca;}return undefined;}function a207_0x18e3(_0x1e56cb,_0x5f14e2){_0x1e56cb=_0x1e56cb-0x116;const _0x2f2534=a207_0x2f25();let _0x18e374=_0x2f2534[_0x1e56cb];return _0x18e374;}export function normalizeEntityWithIdResponse(_0x26d637){const _0x4e40ce=toFiniteNumber(_0x26d637);if(_0x4e40ce!==undefined)return{'id':_0x4e40ce,'entity':{'id':_0x4e40ce}};if(!_0x26d637||typeof _0x26d637!=='object')return{'id':undefined,'entity':{}};const _0x22a355={..._0x26d637},_0x13bef5=toFiniteNumber(_0x22a355['id']);return _0x13bef5!==undefined&&(_0x22a355['id']=_0x13bef5),{'id':_0x13bef5,'entity':_0x22a355};}
1
+ function a228_0x2544(){const _0x355d0f=['2042817LUrjWm','145115YrbQQb','isFinite','trim','2734227GRYXJT','8mLSoOl','5080929qpmlkH','2lkqaix','222HRfabF','3850444dQMLFr','24386580GttZKa','1365015fkQLxY','object'];a228_0x2544=function(){return _0x355d0f;};return a228_0x2544();}(function(_0x431ed7,_0xad19cb){const _0x5b0f91=a228_0x2fb2,_0x48d433=_0x431ed7();while(!![]){try{const _0x1611a7=-parseInt(_0x5b0f91(0x1ad))/0x1+-parseInt(_0x5b0f91(0x1a9))/0x2*(parseInt(_0x5b0f91(0x1af))/0x3)+parseInt(_0x5b0f91(0x1ab))/0x4+parseInt(_0x5b0f91(0x1b0))/0x5*(-parseInt(_0x5b0f91(0x1aa))/0x6)+parseInt(_0x5b0f91(0x1a8))/0x7+parseInt(_0x5b0f91(0x1b4))/0x8*(-parseInt(_0x5b0f91(0x1b3))/0x9)+parseInt(_0x5b0f91(0x1ac))/0xa;if(_0x1611a7===_0xad19cb)break;else _0x48d433['push'](_0x48d433['shift']());}catch(_0x467222){_0x48d433['push'](_0x48d433['shift']());}}}(a228_0x2544,0xabc14));function toFiniteNumber(_0x4b87f2){const _0x378f6f=a228_0x2fb2;if(typeof _0x4b87f2==='number'&&Number[_0x378f6f(0x1b1)](_0x4b87f2))return _0x4b87f2;if(typeof _0x4b87f2==='string'){const _0x3ea839=_0x4b87f2[_0x378f6f(0x1b2)]();if(!_0x3ea839)return undefined;const _0x3c4a01=Number(_0x3ea839);if(Number['isFinite'](_0x3c4a01))return _0x3c4a01;}return undefined;}function a228_0x2fb2(_0x5c1b7b,_0x152f19){_0x5c1b7b=_0x5c1b7b-0x1a8;const _0x25449f=a228_0x2544();let _0x2fb20e=_0x25449f[_0x5c1b7b];return _0x2fb20e;}export function normalizeEntityWithIdResponse(_0x3a5116){const _0x254ff1=a228_0x2fb2,_0x45847f=toFiniteNumber(_0x3a5116);if(_0x45847f!==undefined)return{'id':_0x45847f,'entity':{'id':_0x45847f}};if(!_0x3a5116||typeof _0x3a5116!==_0x254ff1(0x1ae))return{'id':undefined,'entity':{}};const _0x500fd9={..._0x3a5116},_0x5ec273=toFiniteNumber(_0x500fd9['id']);return _0x5ec273!==undefined&&(_0x500fd9['id']=_0x5ec273),{'id':_0x5ec273,'entity':_0x500fd9};}
@@ -1 +1 @@
1
- (function(_0x585826,_0x4b9d82){const _0x2ae489=a208_0x2f1c,_0x18c32e=_0x585826();while(!![]){try{const _0x21661a=parseInt(_0x2ae489(0x19c))/0x1*(parseInt(_0x2ae489(0x1a0))/0x2)+parseInt(_0x2ae489(0x1a2))/0x3+-parseInt(_0x2ae489(0x19e))/0x4*(parseInt(_0x2ae489(0x19d))/0x5)+-parseInt(_0x2ae489(0x199))/0x6+-parseInt(_0x2ae489(0x19b))/0x7+parseInt(_0x2ae489(0x1a1))/0x8+parseInt(_0x2ae489(0x19a))/0x9;if(_0x21661a===_0x4b9d82)break;else _0x18c32e['push'](_0x18c32e['shift']());}catch(_0x504d4d){_0x18c32e['push'](_0x18c32e['shift']());}}}(a208_0x3309,0xda44a));function a208_0x2f1c(_0x32e505,_0x49211e){_0x32e505=_0x32e505-0x199;const _0x33098b=a208_0x3309();let _0x2f1c68=_0x33098b[_0x32e505];return _0x2f1c68;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a208_0x3309(){const _0x343f99=['6757068YvNhvD','16336620GhjtIc','9612169SxsCzu','1023559MYPjds','235qQdjzw','80764SZfVyN','isDirectory','2IBxLRf','11561160vgsIMQ','175392ZsiJXb'];a208_0x3309=function(){return _0x343f99;};return a208_0x3309();}import{join}from'node:path';export async function copyDir(_0x455427,_0x1994e0){const _0xd9616e=a208_0x2f1c,_0xaaf804=statSync(_0x455427);if(_0xaaf804[_0xd9616e(0x19f)]()){!existsSync(_0x1994e0)&&mkdirSync(_0x1994e0,{'recursive':!![]});const _0x56382f=readdirSync(_0x455427);for(const _0x3900f8 of _0x56382f){await copyDir(join(_0x455427,_0x3900f8),join(_0x1994e0,_0x3900f8));}}else copyFileSync(_0x455427,_0x1994e0);}export function ensureDir(_0x48a365){!existsSync(_0x48a365)&&mkdirSync(_0x48a365,{'recursive':!![]});}export function pathExists(_0x766b10){return existsSync(_0x766b10);}
1
+ function a229_0x1e50(_0x3fe6c1,_0x3926f0){_0x3fe6c1=_0x3fe6c1-0xdb;const _0x3cf9fb=a229_0x3cf9();let _0x1e5086=_0x3cf9fb[_0x3fe6c1];return _0x1e5086;}(function(_0x722a74,_0x1a90ae){const _0x36eca9=a229_0x1e50,_0x34251d=_0x722a74();while(!![]){try{const _0x234a6e=-parseInt(_0x36eca9(0xdc))/0x1+-parseInt(_0x36eca9(0xdf))/0x2*(parseInt(_0x36eca9(0xde))/0x3)+parseInt(_0x36eca9(0xe2))/0x4+parseInt(_0x36eca9(0xe4))/0x5*(parseInt(_0x36eca9(0xdd))/0x6)+-parseInt(_0x36eca9(0xe0))/0x7*(-parseInt(_0x36eca9(0xe5))/0x8)+parseInt(_0x36eca9(0xe3))/0x9+-parseInt(_0x36eca9(0xdb))/0xa;if(_0x234a6e===_0x1a90ae)break;else _0x34251d['push'](_0x34251d['shift']());}catch(_0x3d7f8a){_0x34251d['push'](_0x34251d['shift']());}}}(a229_0x3cf9,0x57012));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a229_0x3cf9(){const _0x56f723=['74094nhsCFl','14760yZgpwX','9HHZPIM','15634Eegqqx','1617189xQnDXD','isDirectory','2727332aWCmfW','697338xBHezF','1435DjyeKt','16HeEDkJ','14734740ODwcFl'];a229_0x3cf9=function(){return _0x56f723;};return a229_0x3cf9();}export async function copyDir(_0x4db263,_0x354569){const _0xe1e39e=a229_0x1e50,_0x3be7ae=statSync(_0x4db263);if(_0x3be7ae[_0xe1e39e(0xe1)]()){!existsSync(_0x354569)&&mkdirSync(_0x354569,{'recursive':!![]});const _0x1b08e2=readdirSync(_0x4db263);for(const _0x49ac97 of _0x1b08e2){await copyDir(join(_0x4db263,_0x49ac97),join(_0x354569,_0x49ac97));}}else copyFileSync(_0x4db263,_0x354569);}export function ensureDir(_0x2a968c){!existsSync(_0x2a968c)&&mkdirSync(_0x2a968c,{'recursive':!![]});}export function pathExists(_0x85d3c2){return existsSync(_0x85d3c2);}
@@ -1 +1 @@
1
- const a209_0x2449bc=a209_0x33a1;(function(_0x332c5f,_0x4bfc11){const _0x22028a=a209_0x33a1,_0x4a6934=_0x332c5f();while(!![]){try{const _0x5dd6b0=-parseInt(_0x22028a(0xef))/0x1+-parseInt(_0x22028a(0xf1))/0x2+parseInt(_0x22028a(0xe2))/0x3*(-parseInt(_0x22028a(0xe5))/0x4)+parseInt(_0x22028a(0xeb))/0x5+-parseInt(_0x22028a(0xf5))/0x6+-parseInt(_0x22028a(0xf8))/0x7*(parseInt(_0x22028a(0x101))/0x8)+-parseInt(_0x22028a(0xdf))/0x9*(-parseInt(_0x22028a(0xfc))/0xa);if(_0x5dd6b0===_0x4bfc11)break;else _0x4a6934['push'](_0x4a6934['shift']());}catch(_0x120d77){_0x4a6934['push'](_0x4a6934['shift']());}}}(a209_0x3267,0x1b302));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 _0x37fd26=getTemplateBaseUrl();return _0x37fd26+'/skills/guides.json';}function a209_0x3267(){const _0x5e0b3=['join','utf-8','statusText','284855WeLwGv','.lovrabet/skill/guides','title','application/json','121664yxLtcA','.md','360750aISKUb','length','push','.lovrabet','471900yJnDVS','map','lastUpdated','7KufERZ','skillTemplate','replace','status','570OmXFQC','CDN\x20请求失败:\x20','cache','guides','extendContent','590680tNGsNg','97731FsJTNq','keys','\x0a\x0a>更新时间:','543RgFpkf','object','json','2432LPoasH','entries','content'];a209_0x3267=function(){return _0x5e0b3;};return a209_0x3267();}const CACHE_DIR=join(homedir(),a209_0x2449bc(0xf4),a209_0x2449bc(0xfe));export async function fetchGuidesFromCDN(){const _0x318da4=a209_0x2449bc,_0x2c39a8=getGuidesCdnUrl(),_0x254a3c=await fetch(_0x2c39a8,{'headers':{'Accept':_0x318da4(0xee)}});if(!_0x254a3c['ok'])throw new Error(_0x318da4(0xfd)+_0x254a3c[_0x318da4(0xfb)]+'\x20'+_0x254a3c[_0x318da4(0xea)]);const _0x1ffae1=await _0x254a3c[_0x318da4(0xe4)]();if(!_0x1ffae1[_0x318da4(0xff)]||typeof _0x1ffae1[_0x318da4(0xff)]!==_0x318da4(0xe3))throw new Error('CDN\x20返回数据格式错误');return _0x1ffae1;}function a209_0x33a1(_0x14bd5e,_0x3530ff){_0x14bd5e=_0x14bd5e-0xdf;const _0x3267eb=a209_0x3267();let _0x33a12d=_0x3267eb[_0x14bd5e];return _0x33a12d;}export function writeGuidesToProject(_0x4a1552,_0x2daf51,_0x269a85=a209_0x2449bc(0xec),_0x39133a){const _0x12f818=a209_0x2449bc,_0x40324f=join(_0x2daf51,_0x269a85);mkdirSync(_0x40324f,{'recursive':!![]});for(const [_0x49136d,_0x278ab2]of Object['entries'](_0x4a1552['guides'])){let _0x1647a0=_0x278ab2['content'];_0x278ab2[_0x12f818(0xf7)]&&(_0x1647a0=appendUpdateTime(_0x1647a0,_0x278ab2['lastUpdated'])),writeFileSync(join(_0x40324f,_0x49136d+_0x12f818(0xf0)),_0x1647a0,_0x12f818(0xe9));}}export function appendUpdateTime(_0x519328,_0x1e8944){const _0x392ba3=a209_0x2449bc;return _0x519328=_0x519328[_0x392ba3(0xfa)](/\n*>更新时间:.*$/m,''),_0x519328['trimEnd']()+(_0x392ba3(0xe1)+_0x1e8944);}export function getSkillTemplate(_0x13bbcd){const _0x171ce7=a209_0x2449bc;return _0x13bbcd[_0x171ce7(0xf9)]?.[_0x171ce7(0xe7)]||'';}export function appendExtendContents(_0xba9a50,_0x536f61,_0x3aeb49){const _0x339ea6=a209_0x2449bc,_0x34e98e=[];for(const [,_0x3124f4]of Object[_0x339ea6(0xe6)](_0x536f61[_0x339ea6(0xff)])){_0x3124f4[_0x339ea6(0x100)]&&_0x34e98e[_0x339ea6(0xf3)](_0x3124f4[_0x339ea6(0x100)]['trimEnd']());}if(_0x34e98e[_0x339ea6(0xf2)]===0x0)return _0xba9a50;return _0xba9a50['trimEnd']()+'\x0a\x0a'+_0x34e98e[_0x339ea6(0xe8)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x37c8de,_0x49ebce,_0x1a1970){const _0xc7bd9b=a209_0x2449bc,_0x405dcb=getSkillTemplate(_0x37c8de);if(!_0x405dcb)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x2a99b1=dirname(_0x49ebce);mkdirSync(_0x2a99b1,{'recursive':!![]});let _0x1eb16a=_0x405dcb[_0xc7bd9b(0xfa)](/\{\{IDE_NAME\}\}/g,_0x1a1970);_0x1eb16a=appendExtendContents(_0x1eb16a,_0x37c8de),_0x37c8de[_0xc7bd9b(0xf9)][_0xc7bd9b(0xf7)]&&(_0x1eb16a=appendUpdateTime(_0x1eb16a,_0x37c8de[_0xc7bd9b(0xf9)][_0xc7bd9b(0xf7)])),writeFileSync(_0x49ebce,_0x1eb16a,_0xc7bd9b(0xe9));}export async function installGuides(_0x33ddf9){const _0x1ee4ce=a209_0x2449bc,_0x40ad5e=await fetchGuidesFromCDN();return writeGuidesToProject(_0x40ad5e,_0x33ddf9),Object[_0x1ee4ce(0xe0)](_0x40ad5e[_0x1ee4ce(0xff)])[_0x1ee4ce(0xf2)];}export function getGuidesSummary(_0x57bf20){const _0x32669b=a209_0x2449bc;return Object[_0x32669b(0xe6)](_0x57bf20['guides'])[_0x32669b(0xf6)](([_0x4dd4fd,_0xc1779a])=>({'key':_0x4dd4fd,'title':_0xc1779a[_0x32669b(0xed)],'path':_0xc1779a['path']}));}
1
+ const a230_0x4497e8=a230_0xb52c;(function(_0x303b20,_0x3ac6fa){const _0x33a8c6=a230_0xb52c,_0x59cc5e=_0x303b20();while(!![]){try{const _0x2704cf=parseInt(_0x33a8c6(0xb4))/0x1*(parseInt(_0x33a8c6(0xa5))/0x2)+-parseInt(_0x33a8c6(0x99))/0x3*(-parseInt(_0x33a8c6(0x9e))/0x4)+-parseInt(_0x33a8c6(0x9a))/0x5*(-parseInt(_0x33a8c6(0xb7))/0x6)+parseInt(_0x33a8c6(0xa7))/0x7+parseInt(_0x33a8c6(0x96))/0x8*(parseInt(_0x33a8c6(0xa2))/0x9)+parseInt(_0x33a8c6(0x9f))/0xa*(-parseInt(_0x33a8c6(0x9c))/0xb)+-parseInt(_0x33a8c6(0xb3))/0xc;if(_0x2704cf===_0x3ac6fa)break;else _0x59cc5e['push'](_0x59cc5e['shift']());}catch(_0x52c28d){_0x59cc5e['push'](_0x59cc5e['shift']());}}}(a230_0x262b,0x54bca));function a230_0xb52c(_0x5a82e6,_0x79cb90){_0x5a82e6=_0x5a82e6-0x95;const _0x262b71=a230_0x262b();let _0xb52c7a=_0x262b71[_0x5a82e6];return _0xb52c7a;}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 _0x2a3a63=a230_0xb52c,_0x1622aa=getTemplateBaseUrl();return _0x1622aa+_0x2a3a63(0xb1);}const CACHE_DIR=join(homedir(),a230_0x4497e8(0xa8),a230_0x4497e8(0xae));export async function fetchGuidesFromCDN(){const _0x3160d5=a230_0x4497e8,_0x125ea3=getGuidesCdnUrl(),_0x203537=await fetch(_0x125ea3,{'headers':{'Accept':_0x3160d5(0xb6)}});if(!_0x203537['ok'])throw new Error(_0x3160d5(0x97)+_0x203537['status']+'\x20'+_0x203537[_0x3160d5(0x9b)]);const _0x598ab0=await _0x203537[_0x3160d5(0x95)]();if(!_0x598ab0[_0x3160d5(0xa6)]||typeof _0x598ab0[_0x3160d5(0xa6)]!==_0x3160d5(0xad))throw new Error(_0x3160d5(0xab));return _0x598ab0;}function a230_0x262b(){const _0x21f281=['2362494OpCIsi','json','311776CIyBbb','CDN\x20请求失败:\x20','\x0a\x0a>更新时间:','219vPalVk','5NLyrRb','statusText','167849cZHBmh','skillTemplate','8788cJHlrN','70cJNHHS','extendContent','trimEnd','63BkzEjh','lastUpdated','entries','7024YcvDWE','guides','2806748ctJYwj','.lovrabet','keys','utf-8','CDN\x20返回数据格式错误','length','object','cache','push','.md','/skills/guides.json','map','15525348WbCiDT','148kZLvWJ','content','application/json'];a230_0x262b=function(){return _0x21f281;};return a230_0x262b();}export function writeGuidesToProject(_0xdef647,_0x168923,_0x35cf84='.lovrabet/skill/guides',_0x3f1793){const _0x3bf1ab=a230_0x4497e8,_0x580750=join(_0x168923,_0x35cf84);mkdirSync(_0x580750,{'recursive':!![]});for(const [_0x140000,_0x1f17a1]of Object[_0x3bf1ab(0xa4)](_0xdef647[_0x3bf1ab(0xa6)])){let _0x2be549=_0x1f17a1[_0x3bf1ab(0xb5)];_0x1f17a1[_0x3bf1ab(0xa3)]&&(_0x2be549=appendUpdateTime(_0x2be549,_0x1f17a1[_0x3bf1ab(0xa3)])),writeFileSync(join(_0x580750,_0x140000+_0x3bf1ab(0xb0)),_0x2be549,_0x3bf1ab(0xaa));}}export function appendUpdateTime(_0xe62d39,_0x6680be){const _0xc43f41=a230_0x4497e8;return _0xe62d39=_0xe62d39['replace'](/\n*>更新时间:.*$/m,''),_0xe62d39['trimEnd']()+(_0xc43f41(0x98)+_0x6680be);}export function getSkillTemplate(_0x579042){const _0x3723de=a230_0x4497e8;return _0x579042[_0x3723de(0x9d)]?.[_0x3723de(0xb5)]||'';}export function appendExtendContents(_0x53e0e1,_0x24687b,_0x490381){const _0x545f70=a230_0x4497e8,_0x3687bc=[];for(const [,_0x4dee28]of Object[_0x545f70(0xa4)](_0x24687b['guides'])){_0x4dee28[_0x545f70(0xa0)]&&_0x3687bc[_0x545f70(0xaf)](_0x4dee28['extendContent'][_0x545f70(0xa1)]());}if(_0x3687bc[_0x545f70(0xac)]===0x0)return _0x53e0e1;return _0x53e0e1[_0x545f70(0xa1)]()+'\x0a\x0a'+_0x3687bc['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x273fb6,_0x290cb2,_0x28f83c){const _0x5998ea=a230_0x4497e8,_0x463663=getSkillTemplate(_0x273fb6);if(!_0x463663)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x598f2a=dirname(_0x290cb2);mkdirSync(_0x598f2a,{'recursive':!![]});let _0x131e8f=_0x463663['replace'](/\{\{IDE_NAME\}\}/g,_0x28f83c);_0x131e8f=appendExtendContents(_0x131e8f,_0x273fb6),_0x273fb6[_0x5998ea(0x9d)][_0x5998ea(0xa3)]&&(_0x131e8f=appendUpdateTime(_0x131e8f,_0x273fb6[_0x5998ea(0x9d)][_0x5998ea(0xa3)])),writeFileSync(_0x290cb2,_0x131e8f,_0x5998ea(0xaa));}export async function installGuides(_0x1703a8){const _0x261ee0=a230_0x4497e8,_0x178d15=await fetchGuidesFromCDN();return writeGuidesToProject(_0x178d15,_0x1703a8),Object[_0x261ee0(0xa9)](_0x178d15[_0x261ee0(0xa6)])[_0x261ee0(0xac)];}export function getGuidesSummary(_0x56b037){const _0x39c856=a230_0x4497e8;return Object['entries'](_0x56b037[_0x39c856(0xa6)])[_0x39c856(0xb2)](([_0x388cae,_0x2ee1dc])=>({'key':_0x388cae,'title':_0x2ee1dc['title'],'path':_0x2ee1dc['path']}));}
@@ -1 +1 @@
1
- function a210_0x2c54(){const _0xeb8081=['560375eDnYnO','content-type','ECONNRESET','fetch','1933776fUjQlz','1989JhdzCP','status','url','*\x20请求失败,','includes','\x20次重试...','TypeError','statusText','53052wzXCms','get','1545078XMHEPM','58965XdKoWv','name','abort','Request\x20failed','json','111ZVbNau','5174981nwSKEL','application/json','AbortError','message','42twzXtY','88210dNdvZo','ENOTFOUND','text','log'];a210_0x2c54=function(){return _0xeb8081;};return a210_0x2c54();}(function(_0x174eec,_0x516d6c){const _0xde55b1=a210_0x56a9,_0x498365=_0x174eec();while(!![]){try{const _0x30fd74=parseInt(_0xde55b1(0x77))/0x1+parseInt(_0xde55b1(0x95))/0x2+parseInt(_0xde55b1(0x7c))/0x3*(-parseInt(_0xde55b1(0x93))/0x4)+-parseInt(_0xde55b1(0x86))/0x5*(parseInt(_0xde55b1(0x81))/0x6)+-parseInt(_0xde55b1(0x7d))/0x7+-parseInt(_0xde55b1(0x8a))/0x8+-parseInt(_0xde55b1(0x8b))/0x9*(-parseInt(_0xde55b1(0x82))/0xa);if(_0x30fd74===_0x516d6c)break;else _0x498365['push'](_0x498365['shift']());}catch(_0x422cd5){_0x498365['push'](_0x498365['shift']());}}}(a210_0x2c54,0x8018c));function a210_0x56a9(_0x24c206,_0x1069bf){_0x24c206=_0x24c206-0x77;const _0x2c54d5=a210_0x2c54();let _0x56a92e=_0x2c54d5[_0x24c206];return _0x56a92e;}export async function httpRequest(_0x399479,_0x391b2f={}){const _0x276284=a210_0x56a9,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x391b2f;let _0x18ad9e=null;for(let _0x27d9eb=0x0;_0x27d9eb<=retries;_0x27d9eb++){try{const _0x42d879=new AbortController(),_0x368a7d=setTimeout(()=>_0x42d879[_0x276284(0x79)](),timeout),_0x2217e4=await fetch(_0x399479,{'headers':headers,'signal':_0x42d879['signal']});clearTimeout(_0x368a7d);let _0x427c7b;const _0x55c64f=_0x2217e4['headers'][_0x276284(0x94)](_0x276284(0x87));return _0x55c64f?.[_0x276284(0x8f)](_0x276284(0x7e))?_0x427c7b=await _0x2217e4[_0x276284(0x7b)]():_0x427c7b=await _0x2217e4['text'](),{'ok':_0x2217e4['ok'],'status':_0x2217e4[_0x276284(0x8c)],'statusText':_0x2217e4[_0x276284(0x92)],'data':_0x427c7b,'headers':_0x2217e4['headers'],'url':_0x2217e4[_0x276284(0x8d)],'text':()=>_0x2217e4[_0x276284(0x84)]()};}catch(_0x10d6b1){_0x18ad9e=_0x10d6b1 instanceof Error?_0x10d6b1:new Error(String(_0x10d6b1));if(_0x27d9eb===retries)break;if(shouldRetry(_0x10d6b1)){console[_0x276284(0x85)](_0x276284(0x8e)+retryDelay+'ms\x20后进行第\x20'+(_0x27d9eb+0x1)+_0x276284(0x90)),await sleep(retryDelay);continue;}else break;}}throw _0x18ad9e||new Error(_0x276284(0x7a));}function shouldRetry(_0x346f08){const _0x4e040b=a210_0x56a9;if(_0x346f08 instanceof Error){if(_0x346f08[_0x4e040b(0x78)]===_0x4e040b(0x7f))return![];if(_0x346f08[_0x4e040b(0x78)]===_0x4e040b(0x91)&&_0x346f08[_0x4e040b(0x80)][_0x4e040b(0x8f)](_0x4e040b(0x89)))return!![];if(_0x346f08[_0x4e040b(0x80)][_0x4e040b(0x8f)](_0x4e040b(0x88)))return!![];if(_0x346f08[_0x4e040b(0x80)][_0x4e040b(0x8f)](_0x4e040b(0x83)))return![];}return![];}function sleep(_0x171fff){return new Promise(_0x2e9445=>setTimeout(_0x2e9445,_0x171fff));}export function validateUrl(_0x3e1ab0){try{return new URL(_0x3e1ab0),!![];}catch{return![];}}
1
+ (function(_0x383b39,_0x58a020){const _0x2889aa=a231_0x4833,_0x4aa443=_0x383b39();while(!![]){try{const _0x543668=parseInt(_0x2889aa(0xe7))/0x1*(-parseInt(_0x2889aa(0xe9))/0x2)+-parseInt(_0x2889aa(0xfe))/0x3+-parseInt(_0x2889aa(0xe5))/0x4+-parseInt(_0x2889aa(0xf8))/0x5+-parseInt(_0x2889aa(0xf4))/0x6+parseInt(_0x2889aa(0xff))/0x7*(parseInt(_0x2889aa(0xf0))/0x8)+parseInt(_0x2889aa(0xe6))/0x9;if(_0x543668===_0x58a020)break;else _0x4aa443['push'](_0x4aa443['shift']());}catch(_0x332278){_0x4aa443['push'](_0x4aa443['shift']());}}}(a231_0x1594,0xceb60));export async function httpRequest(_0x177dfa,_0x320be4={}){const _0x34654d=a231_0x4833,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x320be4;let _0x3ebff7=null;for(let _0x510cde=0x0;_0x510cde<=retries;_0x510cde++){try{const _0x470c72=new AbortController(),_0x2d2462=setTimeout(()=>_0x470c72[_0x34654d(0x101)](),timeout),_0x2411d4=await fetch(_0x177dfa,{'headers':headers,'signal':_0x470c72[_0x34654d(0xf3)]});clearTimeout(_0x2d2462);let _0x399248;const _0xf8ed40=_0x2411d4['headers']['get'](_0x34654d(0xfb));return _0xf8ed40?.[_0x34654d(0xf1)](_0x34654d(0xf7))?_0x399248=await _0x2411d4[_0x34654d(0xfa)]():_0x399248=await _0x2411d4[_0x34654d(0xf6)](),{'ok':_0x2411d4['ok'],'status':_0x2411d4[_0x34654d(0xf9)],'statusText':_0x2411d4[_0x34654d(0x100)],'data':_0x399248,'headers':_0x2411d4[_0x34654d(0xee)],'url':_0x2411d4[_0x34654d(0xef)],'text':()=>_0x2411d4[_0x34654d(0xf6)]()};}catch(_0x4a9e4f){_0x3ebff7=_0x4a9e4f instanceof Error?_0x4a9e4f:new Error(String(_0x4a9e4f));if(_0x510cde===retries)break;if(shouldRetry(_0x4a9e4f)){console[_0x34654d(0xf5)](_0x34654d(0xed)+retryDelay+_0x34654d(0xea)+(_0x510cde+0x1)+_0x34654d(0xfc)),await sleep(retryDelay);continue;}else break;}}throw _0x3ebff7||new Error(_0x34654d(0xfd));}function shouldRetry(_0x30903d){const _0x5a1c53=a231_0x4833;if(_0x30903d instanceof Error){if(_0x30903d['name']===_0x5a1c53(0xf2))return![];if(_0x30903d['name']===_0x5a1c53(0xec)&&_0x30903d[_0x5a1c53(0xeb)][_0x5a1c53(0xf1)](_0x5a1c53(0xe8)))return!![];if(_0x30903d[_0x5a1c53(0xeb)][_0x5a1c53(0xf1)]('ECONNRESET'))return!![];if(_0x30903d[_0x5a1c53(0xeb)]['includes']('ENOTFOUND'))return![];}return![];}function a231_0x1594(){const _0xe16efc=['5566876QkkGxG','34298082LXwIZb','1CVhFtr','fetch','591374kOoDid','ms\x20后进行第\x20','message','TypeError','*\x20请求失败,','headers','url','313160eSkJmX','includes','AbortError','signal','799590uwpMxU','log','text','application/json','272490dQRcTm','status','json','content-type','\x20次重试...','Request\x20failed','3619428jkYDTw','21sEwfIy','statusText','abort'];a231_0x1594=function(){return _0xe16efc;};return a231_0x1594();}function a231_0x4833(_0x3db9e7,_0x4b417e){_0x3db9e7=_0x3db9e7-0xe5;const _0x1594ff=a231_0x1594();let _0x4833ad=_0x1594ff[_0x3db9e7];return _0x4833ad;}function sleep(_0x5c2769){return new Promise(_0x61101e=>setTimeout(_0x61101e,_0x5c2769));}export function validateUrl(_0x2327a7){try{return new URL(_0x2327a7),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a211_0x1058(_0x4fc7ab,_0x1f7aa1){_0x4fc7ab=_0x4fc7ab-0x96;const _0x630f66=a211_0x630f();let _0x1058c9=_0x630f66[_0x4fc7ab];return _0x1058c9;}(function(_0x43cadc,_0x4a084b){const _0x1a1efc=a211_0x1058,_0x486707=_0x43cadc();while(!![]){try{const _0x2b11bf=parseInt(_0x1a1efc(0x96))/0x1*(-parseInt(_0x1a1efc(0x9b))/0x2)+-parseInt(_0x1a1efc(0x97))/0x3+-parseInt(_0x1a1efc(0x9c))/0x4+-parseInt(_0x1a1efc(0xa3))/0x5+-parseInt(_0x1a1efc(0x9a))/0x6+parseInt(_0x1a1efc(0xa2))/0x7+parseInt(_0x1a1efc(0xa1))/0x8*(parseInt(_0x1a1efc(0x9d))/0x9);if(_0x2b11bf===_0x4a084b)break;else _0x486707['push'](_0x486707['shift']());}catch(_0x2d2ddd){_0x486707['push'](_0x486707['shift']());}}}(a211_0x630f,0xa3472));function env(_0x165854){return process.env[`RABETBASE_${_0x165854}`]||process.env[`LOVRABET_${_0x165854}`]||undefined;}export function isNonInteractive(_0x39868f){const _0x27a343=a211_0x1058;return!!(_0x39868f['nonInteractive']||_0x39868f['ci']||env('CI')===_0x27a343(0xa4)||process.env.CI===_0x27a343(0xa4)||!process[_0x27a343(0xa0)][_0x27a343(0x9f)]||!isStdinRawModeSupported());}function a211_0x630f(){const _0x33f999=['3307192vvhqBG','5752430bPLrzG','true','3MzeRhb','837753okVFmp','isRaw','stdin','483810hqSVBg','464458VNUlvJ','1784448vZQDHb','143271WXaaAl','setRawMode','isTTY','stdout','1432TnWOXk'];a211_0x630f=function(){return _0x33f999;};return a211_0x630f();}function isStdinRawModeSupported(){const _0x38b678=a211_0x1058;if(!process[_0x38b678(0x99)][_0x38b678(0x9f)])return![];try{const _0x1cb4e4=process[_0x38b678(0x99)][_0x38b678(0x98)];return process[_0x38b678(0x99)][_0x38b678(0x9e)](!![]),process[_0x38b678(0x99)]['setRawMode'](_0x1cb4e4??![]),!![];}catch{return![];}}
1
+ function a232_0x3cbb(_0x2756d2,_0x2154cf){_0x2756d2=_0x2756d2-0xc9;const _0x4b36ba=a232_0x4b36();let _0x3cbb62=_0x4b36ba[_0x2756d2];return _0x3cbb62;}(function(_0x102f4b,_0x16428e){const _0x2b1992=a232_0x3cbb,_0x5e8299=_0x102f4b();while(!![]){try{const _0x1a8dcb=-parseInt(_0x2b1992(0xcf))/0x1*(parseInt(_0x2b1992(0xd0))/0x2)+parseInt(_0x2b1992(0xd3))/0x3*(-parseInt(_0x2b1992(0xcb))/0x4)+-parseInt(_0x2b1992(0xd7))/0x5+-parseInt(_0x2b1992(0xd1))/0x6*(-parseInt(_0x2b1992(0xd2))/0x7)+-parseInt(_0x2b1992(0xd5))/0x8+parseInt(_0x2b1992(0xce))/0x9*(parseInt(_0x2b1992(0xcd))/0xa)+-parseInt(_0x2b1992(0xc9))/0xb*(parseInt(_0x2b1992(0xca))/0xc);if(_0x1a8dcb===_0x16428e)break;else _0x5e8299['push'](_0x5e8299['shift']());}catch(_0x35895c){_0x5e8299['push'](_0x5e8299['shift']());}}}(a232_0x4b36,0xb087e));function env(_0x23e487){return process.env[`RABETBASE_${_0x23e487}`]||process.env[`LOVRABET_${_0x23e487}`]||undefined;}export function isNonInteractive(_0x4d3cb6){const _0x26bf3c=a232_0x3cbb;return!!(_0x4d3cb6['nonInteractive']||_0x4d3cb6['ci']||env('CI')===_0x26bf3c(0xd6)||process.env.CI===_0x26bf3c(0xd6)||!process[_0x26bf3c(0xd9)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x59e4d7=a232_0x3cbb;if(!process[_0x59e4d7(0xd8)]['isTTY'])return![];try{const _0x47d547=process[_0x59e4d7(0xd8)][_0x59e4d7(0xcc)];return process['stdin'][_0x59e4d7(0xd4)](!![]),process['stdin'][_0x59e4d7(0xd4)](_0x47d547??![]),!![];}catch{return![];}}function a232_0x4b36(){const _0x23e1a2=['2122365AxovKc','stdin','stdout','1507MAGfYu','20748UOWrog','128888VftmUU','isRaw','40hTNLvl','2587770EjXHAl','2QLBNDf','933848mPHoJr','8475426qDQcbv','7DpuRrP','3fuXkTr','setRawMode','1697640AetlvA','true'];a232_0x4b36=function(){return _0x23e1a2;};return a232_0x4b36();}
@@ -1 +1 @@
1
- const a212_0x2238b0=a212_0x5c26;(function(_0xf914c6,_0x55a160){const _0x3b2c06=a212_0x5c26,_0x311b69=_0xf914c6();while(!![]){try{const _0x298f17=parseInt(_0x3b2c06(0x182))/0x1*(parseInt(_0x3b2c06(0x180))/0x2)+parseInt(_0x3b2c06(0x150))/0x3*(parseInt(_0x3b2c06(0x14f))/0x4)+-parseInt(_0x3b2c06(0x188))/0x5+-parseInt(_0x3b2c06(0x158))/0x6*(parseInt(_0x3b2c06(0x171))/0x7)+-parseInt(_0x3b2c06(0x178))/0x8+parseInt(_0x3b2c06(0x172))/0x9*(parseInt(_0x3b2c06(0x153))/0xa)+parseInt(_0x3b2c06(0x154))/0xb*(parseInt(_0x3b2c06(0x15c))/0xc);if(_0x298f17===_0x55a160)break;else _0x311b69['push'](_0x311b69['shift']());}catch(_0x3ea4c1){_0x311b69['push'](_0x311b69['shift']());}}}(a212_0x1c3e,0xdd3d7));import a212_0x305756 from'winston';import a212_0x52e6d8 from'node:fs';import a212_0x247ab3 from'node:path';class Logger{[a212_0x2238b0(0x159)];[a212_0x2238b0(0x15b)];[a212_0x2238b0(0x161)]='';constructor(){const _0x2c0887=a212_0x2238b0;this[_0x2c0887(0x15b)]='';}[a212_0x2238b0(0x16f)](_0x46ee57){const _0x26d114=a212_0x2238b0;this[_0x26d114(0x161)]=_0x46ee57;}['initWinstonLogger'](){const _0x548956=a212_0x2238b0,_0x125062=a212_0x247ab3[_0x548956(0x186)](this[_0x548956(0x15b)]);!a212_0x52e6d8[_0x548956(0x16d)](_0x125062)&&a212_0x52e6d8['mkdirSync'](_0x125062,{'recursive':!![]});const _0x18ec69=a212_0x305756['format'][_0x548956(0x16b)](a212_0x305756['format'][_0x548956(0x169)](),a212_0x305756[_0x548956(0x185)][_0x548956(0x17e)]({'stack':!![]}),a212_0x305756['format'][_0x548956(0x17a)](_0x573467=>{const _0x1715bb=_0x548956,_0x7045be={'timestamp':_0x573467[_0x1715bb(0x169)]||new Date()['toISOString'](),'level':_0x573467[_0x1715bb(0x16a)]||_0x1715bb(0x166),'command':_0x573467['command']||_0x1715bb(0x15a),'rawCommand':_0x573467['rawCommand']||this[_0x1715bb(0x161)]||undefined,'message':_0x573467[_0x1715bb(0x175)]||'','duration':_0x573467[_0x1715bb(0x15f)]||undefined,'details':_0x573467['details']||undefined};return JSON[_0x1715bb(0x15d)](_0x7045be);}));this[_0x548956(0x159)]=a212_0x305756['createLogger']({'level':_0x548956(0x166),'format':_0x18ec69,'transports':[new a212_0x305756['transports']['File']({'filename':this[_0x548956(0x15b)],'level':'info'})],'silent':![]}),a212_0x305756[_0x548956(0x165)]({'success':_0x548956(0x187),'error':_0x548956(0x17c),'warn':_0x548956(0x160),'info':_0x548956(0x177)});}[a212_0x2238b0(0x17d)](_0xf4cd86){const _0x277656=a212_0x2238b0;this['logFilePath']=a212_0x247ab3[_0x277656(0x17b)](_0xf4cd86,_0x277656(0x179)),this[_0x277656(0x159)]&&this[_0x277656(0x159)][_0x277656(0x184)](),this[_0x277656(0x176)]();}[a212_0x2238b0(0x166)](_0x2afab8,_0x4505ee,_0x15ba9e){const _0x59dd4e=a212_0x2238b0;if(!this[_0x59dd4e(0x15b)]||!this[_0x59dd4e(0x159)])return;this['winstonLogger']['info'](_0x4505ee,{'command':_0x2afab8,'details':_0x15ba9e});}[a212_0x2238b0(0x157)](_0x3c5a48,_0x1a539e,_0x337fe1,_0x48dd1a){const _0x28b8aa=a212_0x2238b0;if(!this['logFilePath']||!this[_0x28b8aa(0x159)])return;this[_0x28b8aa(0x159)][_0x28b8aa(0x173)](_0x28b8aa(0x166),_0x1a539e,{'level':_0x28b8aa(0x157),'command':_0x3c5a48,'duration':_0x337fe1,'details':_0x48dd1a});}[a212_0x2238b0(0x170)](_0x54ad84,_0x4305b7,_0x539a7e){const _0x865920=a212_0x2238b0;if(!this[_0x865920(0x15b)]||!this[_0x865920(0x159)])return;this[_0x865920(0x159)][_0x865920(0x170)](_0x4305b7,{'command':_0x54ad84,'details':_0x539a7e});}[a212_0x2238b0(0x183)](_0x6f04b2,_0x496390,_0x20ef52){const _0x422cec=a212_0x2238b0;if(!this[_0x422cec(0x15b)]||!this['winstonLogger'])return;this[_0x422cec(0x159)][_0x422cec(0x183)](_0x496390,{'command':_0x6f04b2,'details':_0x20ef52});}async[a212_0x2238b0(0x14e)](_0x193b3e,_0x486a09,_0x38cbd7){const _0x3c6b3b=a212_0x2238b0,_0x358def=Date['now']();this[_0x3c6b3b(0x166)](_0x193b3e,_0x3c6b3b(0x151)+_0x486a09);try{const _0x227350=await _0x38cbd7(),_0xf5476b=Date['now']()-_0x358def;return this['success'](_0x193b3e,_0x3c6b3b(0x162)+_0x486a09,_0xf5476b),_0x227350;}catch(_0x31c462){const _0x5e9e52=Date[_0x3c6b3b(0x17f)]()-_0x358def;this[_0x3c6b3b(0x170)](_0x193b3e,_0x3c6b3b(0x181)+_0x486a09,{'error':_0x31c462 instanceof Error?_0x31c462['message']:String(_0x31c462),'duration':_0x5e9e52});throw _0x31c462;}}[a212_0x2238b0(0x163)](){const _0x4c6a31=a212_0x2238b0;try{if(!a212_0x52e6d8[_0x4c6a31(0x16d)](this['logFilePath']))return[];const _0x5a1f2f=a212_0x52e6d8['readFileSync'](this['logFilePath'],'utf8');return _0x5a1f2f[_0x4c6a31(0x168)]('\x0a')[_0x4c6a31(0x164)](_0x42da6a=>_0x42da6a[_0x4c6a31(0x174)]())[_0x4c6a31(0x155)](_0x27a0ea=>JSON[_0x4c6a31(0x156)](_0x27a0ea));}catch(_0x531e51){return console['warn']('Failed\x20to\x20read\x20logs:',_0x531e51),[];}}[a212_0x2238b0(0x16e)](){const _0x481e09=a212_0x2238b0;try{a212_0x52e6d8[_0x481e09(0x16d)](this['logFilePath'])&&a212_0x52e6d8[_0x481e09(0x16c)](this['logFilePath'],'',_0x481e09(0x15e));}catch(_0x227a83){console[_0x481e09(0x183)](_0x481e09(0x152),_0x227a83);}}[a212_0x2238b0(0x167)](){const _0x21a08f=a212_0x2238b0;return this[_0x21a08f(0x159)];}}export const logger=new Logger();function a212_0x5c26(_0x3a7999,_0xea4c95){_0x3a7999=_0x3a7999-0x14e;const _0x1c3e62=a212_0x1c3e();let _0x5c2681=_0x1c3e62[_0x3a7999];return _0x5c2681;}function a212_0x1c3e(){const _0x27826c=['clearLogs','setRawCommand','error','594034bViaBu','45VLuZST','log','trim','message','initWinstonLogger','blue','4155984OReQnF','.lovrabet.log','printf','join','red','setLogPath','errors','now','474HgxZFW','失败:\x20','881GxzDGF','warn','clear','format','dirname','green','7182955nHkwxK','logTask','172iCxKTv','37635EnSqjx','开始执行:\x20','Failed\x20to\x20clear\x20logs:','1201430LNynBL','4645135BjkTLb','map','parse','success','102UCGDJf','winstonLogger','unknown','logFilePath','84YmsuDu','stringify','utf8','duration','yellow','currentRawCommand','完成:\x20','readLogs','filter','addColors','info','getWinstonInstance','split','timestamp','level','combine','writeFileSync','existsSync'];a212_0x1c3e=function(){return _0x27826c;};return a212_0x1c3e();}
1
+ const a233_0x181e0a=a233_0x510d;function a233_0x510d(_0x319e6,_0x1ba411){_0x319e6=_0x319e6-0x144;const _0x4b255b=a233_0x4b25();let _0x510da2=_0x4b255b[_0x319e6];return _0x510da2;}(function(_0x5152eb,_0x4e3d83){const _0x4e7c0e=a233_0x510d,_0x1bc4d9=_0x5152eb();while(!![]){try{const _0x34d54a=parseInt(_0x4e7c0e(0x174))/0x1+parseInt(_0x4e7c0e(0x146))/0x2+parseInt(_0x4e7c0e(0x15b))/0x3+-parseInt(_0x4e7c0e(0x161))/0x4+parseInt(_0x4e7c0e(0x168))/0x5+-parseInt(_0x4e7c0e(0x173))/0x6*(-parseInt(_0x4e7c0e(0x15a))/0x7)+-parseInt(_0x4e7c0e(0x15c))/0x8;if(_0x34d54a===_0x4e3d83)break;else _0x1bc4d9['push'](_0x1bc4d9['shift']());}catch(_0x34a782){_0x1bc4d9['push'](_0x1bc4d9['shift']());}}}(a233_0x4b25,0xe86f5));import a233_0x103902 from'winston';import a233_0x9fb554 from'node:fs';import a233_0x49a3d3 from'node:path';class Logger{[a233_0x181e0a(0x16f)];[a233_0x181e0a(0x149)];[a233_0x181e0a(0x169)]='';constructor(){this['logFilePath']='';}[a233_0x181e0a(0x15d)](_0x1bbbb5){this['currentRawCommand']=_0x1bbbb5;}[a233_0x181e0a(0x16a)](){const _0x4b7987=a233_0x181e0a,_0x5b7e39=a233_0x49a3d3['dirname'](this[_0x4b7987(0x149)]);!a233_0x9fb554[_0x4b7987(0x16b)](_0x5b7e39)&&a233_0x9fb554['mkdirSync'](_0x5b7e39,{'recursive':!![]});const _0x21cf55=a233_0x103902[_0x4b7987(0x165)][_0x4b7987(0x145)](a233_0x103902[_0x4b7987(0x165)][_0x4b7987(0x156)](),a233_0x103902['format']['errors']({'stack':!![]}),a233_0x103902[_0x4b7987(0x165)][_0x4b7987(0x147)](_0x397594=>{const _0xbc0702=_0x4b7987,_0x4b2092={'timestamp':_0x397594[_0xbc0702(0x156)]||new Date()[_0xbc0702(0x150)](),'level':_0x397594[_0xbc0702(0x172)]||'info','command':_0x397594[_0xbc0702(0x148)]||_0xbc0702(0x163),'rawCommand':_0x397594[_0xbc0702(0x162)]||this[_0xbc0702(0x169)]||undefined,'message':_0x397594[_0xbc0702(0x14c)]||'','duration':_0x397594['duration']||undefined,'details':_0x397594[_0xbc0702(0x159)]||undefined};return JSON[_0xbc0702(0x152)](_0x4b2092);}));this[_0x4b7987(0x16f)]=a233_0x103902[_0x4b7987(0x16e)]({'level':'info','format':_0x21cf55,'transports':[new a233_0x103902[(_0x4b7987(0x14b))][(_0x4b7987(0x170))]({'filename':this[_0x4b7987(0x149)],'level':_0x4b7987(0x155)})],'silent':![]}),a233_0x103902['addColors']({'success':_0x4b7987(0x160),'error':'red','warn':_0x4b7987(0x15f),'info':'blue'});}[a233_0x181e0a(0x14e)](_0x2c92e8){const _0x420daa=a233_0x181e0a;this[_0x420daa(0x149)]=a233_0x49a3d3[_0x420daa(0x15e)](_0x2c92e8,_0x420daa(0x153)),this['winstonLogger']&&this[_0x420daa(0x16f)][_0x420daa(0x14d)](),this[_0x420daa(0x16a)]();}[a233_0x181e0a(0x155)](_0x5970f1,_0x39d99c,_0x4d292e){const _0x518f00=a233_0x181e0a;if(!this['logFilePath']||!this[_0x518f00(0x16f)])return;this['winstonLogger']['info'](_0x39d99c,{'command':_0x5970f1,'details':_0x4d292e});}[a233_0x181e0a(0x144)](_0xa4a2ac,_0x404c4e,_0x39f607,_0x1cbc48){const _0x190618=a233_0x181e0a;if(!this['logFilePath']||!this[_0x190618(0x16f)])return;this[_0x190618(0x16f)]['log'](_0x190618(0x155),_0x404c4e,{'level':'success','command':_0xa4a2ac,'duration':_0x39f607,'details':_0x1cbc48});}[a233_0x181e0a(0x14a)](_0x15e022,_0x1dc178,_0x5361a7){const _0x34a63f=a233_0x181e0a;if(!this[_0x34a63f(0x149)]||!this[_0x34a63f(0x16f)])return;this[_0x34a63f(0x16f)][_0x34a63f(0x14a)](_0x1dc178,{'command':_0x15e022,'details':_0x5361a7});}['warn'](_0x446493,_0x41512c,_0x23cf3e){const _0x2defaa=a233_0x181e0a;if(!this['logFilePath']||!this[_0x2defaa(0x16f)])return;this[_0x2defaa(0x16f)][_0x2defaa(0x164)](_0x41512c,{'command':_0x446493,'details':_0x23cf3e});}async['logTask'](_0x5f3aad,_0x217dcf,_0x28635b){const _0x37b00a=a233_0x181e0a,_0x12c4d8=Date[_0x37b00a(0x14f)]();this[_0x37b00a(0x155)](_0x5f3aad,_0x37b00a(0x167)+_0x217dcf);try{const _0x2cf627=await _0x28635b(),_0x453b0b=Date['now']()-_0x12c4d8;return this[_0x37b00a(0x144)](_0x5f3aad,_0x37b00a(0x154)+_0x217dcf,_0x453b0b),_0x2cf627;}catch(_0xc287a0){const _0x468c5d=Date[_0x37b00a(0x14f)]()-_0x12c4d8;this[_0x37b00a(0x14a)](_0x5f3aad,'失败:\x20'+_0x217dcf,{'error':_0xc287a0 instanceof Error?_0xc287a0[_0x37b00a(0x14c)]:String(_0xc287a0),'duration':_0x468c5d});throw _0xc287a0;}}[a233_0x181e0a(0x175)](){const _0x450982=a233_0x181e0a;try{if(!a233_0x9fb554[_0x450982(0x16b)](this[_0x450982(0x149)]))return[];const _0x577fe6=a233_0x9fb554['readFileSync'](this['logFilePath'],_0x450982(0x16d));return _0x577fe6[_0x450982(0x166)]('\x0a')[_0x450982(0x151)](_0x2d70c5=>_0x2d70c5[_0x450982(0x16c)]())[_0x450982(0x158)](_0x4845=>JSON['parse'](_0x4845));}catch(_0x2e2094){return console[_0x450982(0x164)](_0x450982(0x171),_0x2e2094),[];}}['clearLogs'](){const _0xa1cdf3=a233_0x181e0a;try{a233_0x9fb554[_0xa1cdf3(0x16b)](this[_0xa1cdf3(0x149)])&&a233_0x9fb554['writeFileSync'](this[_0xa1cdf3(0x149)],'','utf8');}catch(_0x4f56d0){console['warn']('Failed\x20to\x20clear\x20logs:',_0x4f56d0);}}[a233_0x181e0a(0x157)](){const _0x57e3ec=a233_0x181e0a;return this[_0x57e3ec(0x16f)];}}export const logger=new Logger();function a233_0x4b25(){const _0x3dad77=['now','toISOString','filter','stringify','.lovrabet.log','完成:\x20','info','timestamp','getWinstonInstance','map','details','1309OKOyyk','3575436raPWbV','12332528JSGPUf','setRawCommand','join','yellow','green','5762388UxVPez','rawCommand','unknown','warn','format','split','开始执行:\x20','3741330oAeqhs','currentRawCommand','initWinstonLogger','existsSync','trim','utf8','createLogger','winstonLogger','File','Failed\x20to\x20read\x20logs:','level','10722XDCoSz','1208175hMADoA','readLogs','success','combine','903588FpnXHJ','printf','command','logFilePath','error','transports','message','clear','setLogPath'];a233_0x4b25=function(){return _0x3dad77;};return a233_0x4b25();}
@@ -1 +1 @@
1
- function a213_0x2bf2(_0x380d3e,_0x1c21b9){_0x380d3e=_0x380d3e-0xd9;const _0x56a04f=a213_0x56a0();let _0x2bf2d8=_0x56a04f[_0x380d3e];return _0x2bf2d8;}function a213_0x56a0(){const _0x4fc761=['1858136TqVRGK','9750670MFDDgU','object','2757978rlWEOK','6CgIXLQ','isArray','6253177HKbUmM','4hnOIdg','410705DAoQWs','1019730tnbnov','validation','--params\x20must\x20be\x20a\x20JSON\x20object','1910885IIDMGv','parse','9wYELOc'];a213_0x56a0=function(){return _0x4fc761;};return a213_0x56a0();}(function(_0x19c25c,_0x413ff8){const _0x2d05fd=a213_0x2bf2,_0x3c547b=_0x19c25c();while(!![]){try{const _0x34615d=-parseInt(_0x2d05fd(0xdc))/0x1+parseInt(_0x2d05fd(0xe6))/0x2+-parseInt(_0x2d05fd(0xdd))/0x3+-parseInt(_0x2d05fd(0xdb))/0x4*(-parseInt(_0x2d05fd(0xe0))/0x5)+-parseInt(_0x2d05fd(0xe7))/0x6*(-parseInt(_0x2d05fd(0xda))/0x7)+-parseInt(_0x2d05fd(0xe3))/0x8*(parseInt(_0x2d05fd(0xe2))/0x9)+-parseInt(_0x2d05fd(0xe4))/0xa;if(_0x34615d===_0x413ff8)break;else _0x3c547b['push'](_0x3c547b['shift']());}catch(_0x3b8622){_0x3c547b['push'](_0x3c547b['shift']());}}}(a213_0x56a0,0xaa0d0));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3b5fa7){const _0x368652=a213_0x2bf2;if(!_0x3b5fa7)return undefined;let _0x596e04;try{_0x596e04=JSON[_0x368652(0xe1)](_0x3b5fa7);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3b5fa7);}if(!_0x596e04||typeof _0x596e04!==_0x368652(0xe5)||Array[_0x368652(0xd9)](_0x596e04))throw CliErrors[_0x368652(0xde)](_0x368652(0xdf),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x596e04;}
1
+ function a234_0x9e7c(_0xe27fd9,_0x610b6e){_0xe27fd9=_0xe27fd9-0x134;const _0x5c5bf9=a234_0x5c5b();let _0x9e7c43=_0x5c5bf9[_0xe27fd9];return _0x9e7c43;}(function(_0x2f1fc5,_0x61596){const _0x2f3f83=a234_0x9e7c,_0x32fb14=_0x2f1fc5();while(!![]){try{const _0x12e98d=-parseInt(_0x2f3f83(0x13a))/0x1*(parseInt(_0x2f3f83(0x13f))/0x2)+-parseInt(_0x2f3f83(0x13c))/0x3*(parseInt(_0x2f3f83(0x135))/0x4)+parseInt(_0x2f3f83(0x140))/0x5*(-parseInt(_0x2f3f83(0x139))/0x6)+-parseInt(_0x2f3f83(0x142))/0x7+parseInt(_0x2f3f83(0x13d))/0x8*(parseInt(_0x2f3f83(0x143))/0x9)+-parseInt(_0x2f3f83(0x13e))/0xa+parseInt(_0x2f3f83(0x137))/0xb;if(_0x12e98d===_0x61596)break;else _0x32fb14['push'](_0x32fb14['shift']());}catch(_0xc964f6){_0x32fb14['push'](_0x32fb14['shift']());}}}(a234_0x5c5b,0xdeeca));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x29e6e6){const _0x415405=a234_0x9e7c;if(!_0x29e6e6)return undefined;let _0x5313cd;try{_0x5313cd=JSON[_0x415405(0x141)](_0x29e6e6);}catch{throw CliErrors[_0x415405(0x136)](_0x415405(0x134)+_0x29e6e6);}if(!_0x5313cd||typeof _0x5313cd!==_0x415405(0x138)||Array['isArray'](_0x5313cd))throw CliErrors[_0x415405(0x136)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x415405(0x13b));return _0x5313cd;}function a234_0x5c5b(){const _0x2f28df=['10gRJqvl','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','3nEeVju','178976OMGUkX','3390960ICbEdx','169578AZDsvZ','2774220WnKpra','parse','2958466GERsLx','423nviDQm','Invalid\x20JSON\x20for\x20--params:\x20','3075268XEQFYk','validation','30743889CTOyoX','object','6pwaVXM'];a234_0x5c5b=function(){return _0x2f28df;};return a234_0x5c5b();}
@@ -1 +1 @@
1
- const a214_0x40f94d=a214_0x301c;(function(_0x92aaa1,_0x2cdf10){const _0x1053e6=a214_0x301c,_0x2933d3=_0x92aaa1();while(!![]){try{const _0xd2a74a=parseInt(_0x1053e6(0x1aa))/0x1+parseInt(_0x1053e6(0x1b2))/0x2*(parseInt(_0x1053e6(0x1ad))/0x3)+-parseInt(_0x1053e6(0x1a8))/0x4*(parseInt(_0x1053e6(0x1b0))/0x5)+-parseInt(_0x1053e6(0x1a7))/0x6+parseInt(_0x1053e6(0x1a6))/0x7+-parseInt(_0x1053e6(0x1ae))/0x8+-parseInt(_0x1053e6(0x1b1))/0x9*(-parseInt(_0x1053e6(0x1af))/0xa);if(_0xd2a74a===_0x2cdf10)break;else _0x2933d3['push'](_0x2933d3['shift']());}catch(_0x3521e2){_0x2933d3['push'](_0x2933d3['shift']());}}}(a214_0x4bc9,0x239ba));function a214_0x301c(_0x585d3c,_0x7a3b79){_0x585d3c=_0x585d3c-0x1a6;const _0x4bc9dc=a214_0x4bc9();let _0x301c7d=_0x4bc9dc[_0x585d3c];return _0x301c7d;}function a214_0x4bc9(){const _0xfdeb26=['1041040BnzzkN','25340UUFbLb','273450PVVPNQ','1071GpgYLf','25716ZHIZFQ','1088626uYcXXC','883116ZcduBq','12WGWwzZ','.cmd','65882cpSuqF','win32','platform','15hWWwyT'];a214_0x4bc9=function(){return _0xfdeb26;};return a214_0x4bc9();}export const isWindows=process[a214_0x40f94d(0x1ac)]===a214_0x40f94d(0x1ab);export function resolveNpmBin(_0x5ef46a){const _0x540c7e=a214_0x40f94d;return isWindows?_0x5ef46a+_0x540c7e(0x1a9):_0x5ef46a;}
1
+ function a235_0xaa09(_0x293805,_0x1b615c){_0x293805=_0x293805-0x65;const _0x5a749a=a235_0x5a74();let _0xaa09c1=_0x5a749a[_0x293805];return _0xaa09c1;}const a235_0x39d86d=a235_0xaa09;(function(_0x2903b6,_0x492e37){const _0x4cfc30=a235_0xaa09,_0x173ba2=_0x2903b6();while(!![]){try{const _0x42c000=-parseInt(_0x4cfc30(0x67))/0x1*(parseInt(_0x4cfc30(0x6b))/0x2)+-parseInt(_0x4cfc30(0x6a))/0x3+parseInt(_0x4cfc30(0x66))/0x4*(-parseInt(_0x4cfc30(0x65))/0x5)+-parseInt(_0x4cfc30(0x6f))/0x6+parseInt(_0x4cfc30(0x68))/0x7+parseInt(_0x4cfc30(0x69))/0x8+parseInt(_0x4cfc30(0x6d))/0x9;if(_0x42c000===_0x492e37)break;else _0x173ba2['push'](_0x173ba2['shift']());}catch(_0xdb8191){_0x173ba2['push'](_0x173ba2['shift']());}}}(a235_0x5a74,0x8559d));export const isWindows=process[a235_0x39d86d(0x6e)]===a235_0x39d86d(0x6c);export function resolveNpmBin(_0x109920){const _0x9609df=a235_0x39d86d;return isWindows?_0x109920+_0x9609df(0x70):_0x109920;}function a235_0x5a74(){const _0x216ee5=['89pboKwm','2395218fWwXsn','8676112eyqMya','1290468SOdOHi','13388uRUukD','win32','10142937OkYtTe','platform','512958BIZvLR','.cmd','4480305IgiTAH','4GNmXoo'];a235_0x5a74=function(){return _0x216ee5;};return a235_0x5a74();}
@@ -1 +1 @@
1
- function a215_0x517a(){const _0x33c397=['2587755LMPLtV','/rules/rules.json','809181UUTxot','11654592zDEsgs','9onoGwy','CDN\x20返回数据格式错误','lovrabet_rules.mdc','json','本地模板文件不存在:\x20','835160pQEVqg','5383524YVQuiy','18lNtaUD','lastUpdated','utf-8','content','13094256JWBhlc','string','statusText','catch','3RLyziP','application/json','../../templates/rules/lovrabet_rules.mdc.tpl','1294822GFBqXM'];a215_0x517a=function(){return _0x33c397;};return a215_0x517a();}const a215_0x4a27a4=a215_0x48bd;(function(_0x1acbde,_0x400781){const _0x4537d2=a215_0x48bd,_0x420bf9=_0x1acbde();while(!![]){try{const _0x747385=-parseInt(_0x4537d2(0x1e3))/0x1+parseInt(_0x4537d2(0x1e0))/0x2*(-parseInt(_0x4537d2(0x1dd))/0x3)+parseInt(_0x4537d2(0x1eb))/0x4+-parseInt(_0x4537d2(0x1e1))/0x5*(-parseInt(_0x4537d2(0x1ec))/0x6)+-parseInt(_0x4537d2(0x1d9))/0x7+parseInt(_0x4537d2(0x1e4))/0x8+parseInt(_0x4537d2(0x1e5))/0x9*(-parseInt(_0x4537d2(0x1ea))/0xa);if(_0x747385===_0x400781)break;else _0x420bf9['push'](_0x420bf9['shift']());}catch(_0x3a7098){_0x420bf9['push'](_0x420bf9['shift']());}}}(a215_0x517a,0xe6a02));function a215_0x48bd(_0x198e60,_0x2016f4){_0x198e60=_0x198e60-0x1d7;const _0x517a67=a215_0x517a();let _0x48bdab=_0x517a67[_0x198e60];return _0x48bdab;}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 _0x2e3e7b=a215_0x48bd,_0x30d7c7=getTemplateBaseUrl();return _0x30d7c7+_0x2e3e7b(0x1e2);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a215_0x4a27a4(0x1df));export async function fetchRulesFromCDN(){const _0x29941e=a215_0x4a27a4,_0x5f202e=getRulesCdnUrl(),_0x3557b3=await fetch(_0x5f202e,{'headers':{'Accept':_0x29941e(0x1de)}});if(!_0x3557b3['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x3557b3['status']+'\x20'+_0x3557b3[_0x29941e(0x1db)]);const _0x421cc5=await _0x3557b3[_0x29941e(0x1e8)]();if(!_0x421cc5[_0x29941e(0x1d8)]||typeof _0x421cc5[_0x29941e(0x1d8)]!==_0x29941e(0x1da))throw new Error(_0x29941e(0x1e6));return _0x421cc5;}export async function getRulesContent(){try{const _0x40ec6b=await fetchRulesFromCDN();return _0x40ec6b['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x13d22f=a215_0x4a27a4;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x13d22f(0x1d7));throw new Error(_0x13d22f(0x1e9)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1696e6){const _0x487482=a215_0x4a27a4,_0x5ae68e=await fetchRulesFromCDN()[_0x487482(0x1dc)](()=>null);let _0x223ee9;_0x5ae68e?(_0x223ee9=_0x5ae68e['content'],_0x5ae68e[_0x487482(0x1ed)]&&(_0x223ee9=appendUpdateTime(_0x223ee9,_0x5ae68e[_0x487482(0x1ed)]))):_0x223ee9=readLocalTemplate();const _0x28f979=dirname(_0x1696e6);!existsSync(_0x28f979)&&mkdirSync(_0x28f979,{'recursive':!![]}),writeFileSync(_0x1696e6,_0x223ee9,_0x487482(0x1d7));}export async function copyRulesToCursor(_0x12acdb){const _0xf0f6ba=a215_0x4a27a4,_0x5b0574=join(_0x12acdb,'.cursor/rules'),_0x266e34=join(_0x5b0574,_0xf0f6ba(0x1e7));if(existsSync(_0x266e34))return![];return await writeRulesFile(_0x266e34),!![];}export async function copyRulesToAgentsMd(_0x41165f){const _0x581eef=join(_0x41165f,'agents.md');if(existsSync(_0x581eef))return![];return await writeRulesFile(_0x581eef),!![];}
1
+ function a236_0x5b36(){const _0x597c7d=['3094242zLLJvp','application/json','string','lovrabet_rules.mdc','本地模板文件不存在:\x20','utf-8','2828ZYfNKK','../../templates/rules/lovrabet_rules.mdc.tpl','21679317KTGpUe','.cursor/rules','content','750557yEiEfL','agents.md','5lPEXna','statusText','json','31664BdDKnX','1408392eSNQhT','6558426jSilXP','status','572769NApFNS'];a236_0x5b36=function(){return _0x597c7d;};return a236_0x5b36();}const a236_0x310081=a236_0x3828;(function(_0x348d17,_0x2ec87d){const _0xf374da=a236_0x3828,_0x1b3f09=_0x348d17();while(!![]){try{const _0x5c2232=parseInt(_0xf374da(0x109))/0x1+parseInt(_0xf374da(0x113))/0x2+parseInt(_0xf374da(0x112))/0x3+parseInt(_0xf374da(0x10f))/0x4+parseInt(_0xf374da(0x10b))/0x5*(-parseInt(_0xf374da(0x110))/0x6)+-parseInt(_0xf374da(0x119))/0x7*(-parseInt(_0xf374da(0x10e))/0x8)+-parseInt(_0xf374da(0x106))/0x9;if(_0x5c2232===_0x2ec87d)break;else _0x1b3f09['push'](_0x1b3f09['shift']());}catch(_0x1b9b0d){_0x1b3f09['push'](_0x1b3f09['shift']());}}}(a236_0x5b36,0xe4f77));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 _0x108a26=getTemplateBaseUrl();return _0x108a26+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a236_0x310081(0x11a));export async function fetchRulesFromCDN(){const _0x11fdd6=a236_0x310081,_0x2ee3d5=getRulesCdnUrl(),_0x5b3a8c=await fetch(_0x2ee3d5,{'headers':{'Accept':_0x11fdd6(0x114)}});if(!_0x5b3a8c['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x5b3a8c[_0x11fdd6(0x111)]+'\x20'+_0x5b3a8c[_0x11fdd6(0x10c)]);const _0x246e3b=await _0x5b3a8c[_0x11fdd6(0x10d)]();if(!_0x246e3b[_0x11fdd6(0x108)]||typeof _0x246e3b[_0x11fdd6(0x108)]!==_0x11fdd6(0x115))throw new Error('CDN\x20返回数据格式错误');return _0x246e3b;}export async function getRulesContent(){const _0x3a6162=a236_0x310081;try{const _0x4b26f5=await fetchRulesFromCDN();return _0x4b26f5[_0x3a6162(0x108)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x278fb1=a236_0x310081;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x278fb1(0x117)+LOCAL_TEMPLATE_PATH);}function a236_0x3828(_0x4f049a,_0x40bdaf){_0x4f049a=_0x4f049a-0x106;const _0x5b368c=a236_0x5b36();let _0x38288e=_0x5b368c[_0x4f049a];return _0x38288e;}export async function writeRulesFile(_0x151796){const _0x79082a=a236_0x310081,_0x4312e8=await fetchRulesFromCDN()['catch'](()=>null);let _0x1daa06;_0x4312e8?(_0x1daa06=_0x4312e8[_0x79082a(0x108)],_0x4312e8['lastUpdated']&&(_0x1daa06=appendUpdateTime(_0x1daa06,_0x4312e8['lastUpdated']))):_0x1daa06=readLocalTemplate();const _0x5c8986=dirname(_0x151796);!existsSync(_0x5c8986)&&mkdirSync(_0x5c8986,{'recursive':!![]}),writeFileSync(_0x151796,_0x1daa06,_0x79082a(0x118));}export async function copyRulesToCursor(_0x35be29){const _0x637a2d=a236_0x310081,_0x64698b=join(_0x35be29,_0x637a2d(0x107)),_0x351d6a=join(_0x64698b,_0x637a2d(0x116));if(existsSync(_0x351d6a))return![];return await writeRulesFile(_0x351d6a),!![];}export async function copyRulesToAgentsMd(_0x36bf37){const _0x2d23f1=a236_0x310081,_0x4ba3dd=join(_0x36bf37,_0x2d23f1(0x10a));if(existsSync(_0x4ba3dd))return![];return await writeRulesFile(_0x4ba3dd),!![];}
@@ -1 +1 @@
1
- export function sleep(_0xadbc24){return new Promise(_0x21ba2e=>setTimeout(_0x21ba2e,_0xadbc24));}
1
+ export function sleep(_0xd98191){return new Promise(_0x12cb29=>setTimeout(_0x12cb29,_0xd98191));}
@@ -1 +1 @@
1
- const a217_0x4d058a=a217_0x45b0;function a217_0x45b0(_0x3d20aa,_0x2d9465){_0x3d20aa=_0x3d20aa-0x194;const _0x1c7cb5=a217_0x1c7c();let _0x45b085=_0x1c7cb5[_0x3d20aa];return _0x45b085;}function a217_0x1c7c(){const _0x3a7466=['getFullYear','4798pbiVgb','12518387cHBmDj','name','alias:\x20\x22','.tpl','.md','toLowerCase','mkdir','now','datasetCode:\x20\x22','processDirectory','7846760PoqpGs','toISOString','LOVRABET','模板内容替换完成','default','join','13136760EHUgKy','toDisplayTitle','alias','name:\x20\x22','writeFile','message','info','readdir','getDate','tableName:\x20\x22','padStart','split','replaceContent','readFile','processTemplate','379fezCNF','charAt','push','32wZcZco','tableName','map','.json','.css','toComponentName','YourModel','pad','template','531756PNCbXv','169107xgYdrU','formatLocalTimestamp','6laQfiU','error','\x0a\x20\x20\x20\x20{\x20','5062796zYokuA','success','.js','replace','isDirectory','toUpperCase','extname','pop','endsWith','isFile','copyFile','promises','includes','processFile','.tsx','utf8','slice'];a217_0x1c7c=function(){return _0x3a7466;};return a217_0x1c7c();}(function(_0x30c67c,_0x59b0eb){const _0x19dc32=a217_0x45b0,_0xeef20d=_0x30c67c();while(!![]){try{const _0x31ce6b=parseInt(_0x19dc32(0x1b9))/0x1*(parseInt(_0x19dc32(0x199))/0x2)+parseInt(_0x19dc32(0x1c6))/0x3+parseInt(_0x19dc32(0x1cb))/0x4+parseInt(_0x19dc32(0x1a4))/0x5+parseInt(_0x19dc32(0x1c8))/0x6*(-parseInt(_0x19dc32(0x19a))/0x7)+parseInt(_0x19dc32(0x1bc))/0x8*(parseInt(_0x19dc32(0x1c5))/0x9)+-parseInt(_0x19dc32(0x1aa))/0xa;if(_0x31ce6b===_0x59b0eb)break;else _0xeef20d['push'](_0xeef20d['shift']());}catch(_0x268054){_0xeef20d['push'](_0xeef20d['shift']());}}}(a217_0x1c7c,0xe4430));import a217_0x223ab8 from'node:fs';import a217_0xdf02b1 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a217_0x4d058a(0x1c3)](_0x40f488){const _0x4dfc89=a217_0x4d058a;return String(_0x40f488)[_0x4dfc89(0x1b4)](0x2,'0');}static[a217_0x4d058a(0x1c7)](_0x35e8ed){const _0x38279f=a217_0x4d058a,_0x353eac=_0x35e8ed[_0x38279f(0x198)](),_0x1fc0c2=this[_0x38279f(0x1c3)](_0x35e8ed['getMonth']()+0x1),_0x79bb2c=this[_0x38279f(0x1c3)](_0x35e8ed[_0x38279f(0x1b2)]()),_0x577df9=this[_0x38279f(0x1c3)](_0x35e8ed['getHours']()),_0x4d76f4=this[_0x38279f(0x1c3)](_0x35e8ed['getMinutes']()),_0x2eb084=this[_0x38279f(0x1c3)](_0x35e8ed['getSeconds']());return{'createdAt':_0x353eac+'-'+_0x1fc0c2+'-'+_0x79bb2c+'\x20'+_0x577df9+':'+_0x4d76f4+':'+_0x2eb084,'createdDate':_0x353eac+'-'+_0x1fc0c2+'-'+_0x79bb2c,'createdTime':_0x577df9+':'+_0x4d76f4+':'+_0x2eb084};}static[a217_0x4d058a(0x1c1)](_0x231d9d){const _0x574fad=a217_0x4d058a,_0x5bba91=_0x231d9d['split']('/')[_0x574fad(0x1d2)]()||_0x231d9d;return _0x5bba91[_0x574fad(0x1b5)]('-')[_0x574fad(0x1be)](_0x46455e=>_0x46455e['charAt'](0x0)[_0x574fad(0x1d0)]()+_0x46455e[_0x574fad(0x197)](0x1)[_0x574fad(0x19f)]())[_0x574fad(0x1a9)]('');}static[a217_0x4d058a(0x1ab)](_0x261424){const _0x30a773=a217_0x4d058a,_0x35d643=_0x261424['split']('/')['pop']()||_0x261424;return _0x35d643['split']('-')[_0x30a773(0x1be)](_0x2f5cd3=>_0x2f5cd3[_0x30a773(0x1ba)](0x0)['toUpperCase']()+_0x2f5cd3['slice'](0x1)['toLowerCase']())[_0x30a773(0x1a9)]('\x20');}static[a217_0x4d058a(0x1b6)](_0x7129aa,_0x93f414,_0x587ec4){const _0x2f4667=a217_0x4d058a,_0x266137=this['toComponentName'](_0x93f414),_0x4a9804=this[_0x2f4667(0x1ab)](_0x93f414),{createdAt:_0x3cb5e9,createdDate:_0x408b82,createdTime:_0x2c12d3}=this['formatLocalTimestamp'](new Date());let _0x28023e=_0x7129aa['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x266137)['replace'](/\{DisplayTitle\}/g,_0x4a9804)[_0x2f4667(0x1ce)](/\{PageName\}/g,_0x93f414)['replace'](/\{TemplateName\}/g,_0x587ec4)[_0x2f4667(0x1ce)](/\{CreatedAt\}/g,_0x3cb5e9)['replace'](/\{CreatedDate\}/g,_0x408b82)['replace'](/\{CreatedTime\}/g,_0x2c12d3);return _0x28023e;}static['replaceApiContent'](_0x365827,_0x507154,_0x357c9c,_0x49bc9c,_0x2488f1,_0x2dbaf0,_0x955346,_0x22734e){const _0x19b3b4=a217_0x4d058a,_0x79cbd9=new Date(),_0x4cbeef=_0x79cbd9[_0x19b3b4(0x1a5)](),_0x5763a7=_0x357c9c[_0x19b3b4(0x1be)](_0xecd3c1=>{const _0x441577=_0x19b3b4,_0x391009=[_0x441577(0x1a2)+_0xecd3c1['datasetCode']+'\x22',_0x441577(0x1b3)+_0xecd3c1[_0x441577(0x1bd)]+'\x22',_0x441577(0x1ad)+_0xecd3c1[_0x441577(0x19b)]+'\x22'];return _0xecd3c1['alias']&&_0x391009[_0x441577(0x1bb)](_0x441577(0x19c)+_0xecd3c1['alias']+'\x22'),_0x441577(0x1ca)+_0x391009['join'](',\x20')+'\x20},';})[_0x19b3b4(0x1a9)](''),_0x4afbe9=_0x49bc9c||_0x357c9c[0x0]?.[_0x19b3b4(0x1ac)]||_0x19b3b4(0x1c2);let _0x249e3b=_0x365827['replace'](/\{AppCode\}/g,_0x507154)['replace'](/\{ModelConfigs\}/g,_0x5763a7)[_0x19b3b4(0x1ce)](/\{ExampleModelName\}/g,_0x4afbe9)['replace'](/\{ApiFileName\}/g,_0x2488f1||'api')[_0x19b3b4(0x1ce)](/\{ConfigName\}/g,_0x2dbaf0||_0x19b3b4(0x1a8))[_0x19b3b4(0x1ce)](/\{ClientConfigParam\}/g,_0x955346||'')['replace'](/\{VarPrefix\}/g,_0x22734e||_0x19b3b4(0x1a6))[_0x19b3b4(0x1ce)](/\{CreatedAt\}/g,_0x4cbeef);return _0x249e3b;}static async[a217_0x4d058a(0x1b8)](_0x3ef596,_0x27d459,_0x1e8c96,_0x1786f5,_0x29293c=!![]){const _0x58e22a=a217_0x4d058a,_0x1ae69e=Date[_0x58e22a(0x1a1)]();try{_0x29293c&&logger[_0x58e22a(0x1b0)](_0x58e22a(0x1c4),'开始处理模板内容替换',{'templatePath':_0x3ef596,'targetPath':_0x27d459,'pageName':_0x1e8c96,'templateName':_0x1786f5});await a217_0x223ab8['promises'][_0x58e22a(0x1a0)](_0x27d459,{'recursive':!![]}),await this[_0x58e22a(0x1a3)](_0x3ef596,_0x27d459,_0x1e8c96,_0x1786f5);if(_0x29293c){const _0x162fe4=Date['now']()-_0x1ae69e;logger[_0x58e22a(0x1cc)](_0x58e22a(0x1c4),_0x58e22a(0x1a7),_0x162fe4,{'pageName':_0x1e8c96,'templateName':_0x1786f5});}}catch(_0x1fc3d5){if(_0x29293c){const _0x5ac427=Date['now']()-_0x1ae69e;logger[_0x58e22a(0x1c9)](_0x58e22a(0x1c4),'模板内容替换失败',{'templatePath':_0x3ef596,'targetPath':_0x27d459,'pageName':_0x1e8c96,'templateName':_0x1786f5,'error':_0x1fc3d5 instanceof Error?_0x1fc3d5[_0x58e22a(0x1af)]:String(_0x1fc3d5),'duration':_0x5ac427});}throw _0x1fc3d5;}}static async[a217_0x4d058a(0x1a3)](_0x2f638a,_0x5c91a9,_0x341cc1,_0x2e743f){const _0x4cb9c4=a217_0x4d058a,_0x426c59=await a217_0x223ab8['promises'][_0x4cb9c4(0x1b1)](_0x2f638a,{'withFileTypes':!![]});for(const _0x4d1923 of _0x426c59){const _0x5b1c5d=a217_0xdf02b1['join'](_0x2f638a,_0x4d1923[_0x4cb9c4(0x19b)]);let _0x8dc404=a217_0xdf02b1[_0x4cb9c4(0x1a9)](_0x5c91a9,_0x4d1923[_0x4cb9c4(0x19b)]);_0x4d1923[_0x4cb9c4(0x19b)][_0x4cb9c4(0x1d3)](_0x4cb9c4(0x19d))&&(_0x8dc404=a217_0xdf02b1[_0x4cb9c4(0x1a9)](_0x5c91a9,_0x4d1923['name'][_0x4cb9c4(0x1ce)](/\.tpl$/,'')));if(_0x4d1923[_0x4cb9c4(0x1cf)]())await a217_0x223ab8['promises']['mkdir'](_0x8dc404,{'recursive':!![]}),await this[_0x4cb9c4(0x1a3)](_0x5b1c5d,_0x8dc404,_0x341cc1,_0x2e743f);else _0x4d1923[_0x4cb9c4(0x1d4)]()&&await this[_0x4cb9c4(0x194)](_0x5b1c5d,_0x8dc404,_0x341cc1,_0x2e743f);}}static async[a217_0x4d058a(0x194)](_0x513388,_0x582aca,_0x194eb1,_0x932a02){const _0x467b53=a217_0x4d058a,_0x3acb8c=a217_0xdf02b1[_0x467b53(0x1d1)](_0x513388)['toLowerCase']();_0x513388[_0x467b53(0x1d3)](_0x467b53(0x19d))&&(_0x582aca=_0x582aca[_0x467b53(0x1ce)](/\.tpl$/,''));const _0x522b8d=[_0x467b53(0x195),'.ts','.jsx',_0x467b53(0x1cd),_0x467b53(0x1bf),_0x467b53(0x19e),_0x467b53(0x1c0),'.scss',_0x467b53(0x19d)];if(_0x522b8d[_0x467b53(0x1d7)](_0x3acb8c)||_0x513388['endsWith']('.tpl')){const _0x166541=await a217_0x223ab8[_0x467b53(0x1d6)][_0x467b53(0x1b7)](_0x513388,_0x467b53(0x196)),_0x4e5d1e=this[_0x467b53(0x1b6)](_0x166541,_0x194eb1,_0x932a02);await a217_0x223ab8[_0x467b53(0x1d6)][_0x467b53(0x1ae)](_0x582aca,_0x4e5d1e,_0x467b53(0x196));}else await a217_0x223ab8['promises'][_0x467b53(0x1d5)](_0x513388,_0x582aca);}}
1
+ const a238_0x41187f=a238_0x26a0;function a238_0x4f20(){const _0x266514=['template','default','success','模板内容替换失败','getMonth','pad','.jsx','replaceApiContent','promises','join','42QpupZF','processTemplate','.js','info','datasetCode:\x20\x22','slice','now','alias','.css','.ts','\x20},','\x0a\x20\x20\x20\x20{\x20','toLowerCase','getFullYear','utf8','replaceContent','name','processDirectory','774hgcVUZ','4dPjFyI','name:\x20\x22','datasetCode','toComponentName','32610aFgmmh','endsWith','charAt','readdir','alias:\x20\x22','.tpl','mkdir','toUpperCase','.md','382314FlIqJB','formatLocalTimestamp','getHours','push','toDisplayTitle','tableName','split','模板内容替换完成','extname','error','2568840hlpNpu','writeFile','688945PFccoM','processFile','message','toISOString','63951aeFfxK','.json','.tsx','map','getDate','tableName:\x20\x22','pop','10493736wUmhXF','LOVRABET','replace','isFile','12FePpih','4931NhSbGV'];a238_0x4f20=function(){return _0x266514;};return a238_0x4f20();}(function(_0x3357dd,_0x362f42){const _0xa10402=a238_0x26a0,_0x3b41fd=_0x3357dd();while(!![]){try{const _0x2d6155=-parseInt(_0xa10402(0x108))/0x1+parseInt(_0xa10402(0x107))/0x2*(-parseInt(_0xa10402(0x143))/0x3)+-parseInt(_0xa10402(0x126))/0x4*(parseInt(_0xa10402(0x13f))/0x5)+parseInt(_0xa10402(0x133))/0x6*(-parseInt(_0xa10402(0x113))/0x7)+-parseInt(_0xa10402(0x13d))/0x8+-parseInt(_0xa10402(0x125))/0x9*(-parseInt(_0xa10402(0x12a))/0xa)+parseInt(_0xa10402(0x14a))/0xb;if(_0x2d6155===_0x362f42)break;else _0x3b41fd['push'](_0x3b41fd['shift']());}catch(_0x1235fb){_0x3b41fd['push'](_0x3b41fd['shift']());}}}(a238_0x4f20,0x3f91d));import a238_0x34807b from'node:fs';import a238_0x2e6a20 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a238_0x26a0(_0x2f6b96,_0x176981){_0x2f6b96=_0x2f6b96-0x104;const _0x4f20b4=a238_0x4f20();let _0x26a05b=_0x4f20b4[_0x2f6b96];return _0x26a05b;}export class TemplateReplacer{static['pad'](_0x47ac34){return String(_0x47ac34)['padStart'](0x2,'0');}static[a238_0x41187f(0x134)](_0xfee484){const _0x5f31ca=a238_0x41187f,_0x3dd006=_0xfee484[_0x5f31ca(0x120)](),_0x93c2db=this[_0x5f31ca(0x10e)](_0xfee484[_0x5f31ca(0x10d)]()+0x1),_0x13c859=this[_0x5f31ca(0x10e)](_0xfee484[_0x5f31ca(0x147)]()),_0x99d689=this[_0x5f31ca(0x10e)](_0xfee484[_0x5f31ca(0x135)]()),_0x2a1c6b=this[_0x5f31ca(0x10e)](_0xfee484['getMinutes']()),_0x24d0b6=this[_0x5f31ca(0x10e)](_0xfee484['getSeconds']());return{'createdAt':_0x3dd006+'-'+_0x93c2db+'-'+_0x13c859+'\x20'+_0x99d689+':'+_0x2a1c6b+':'+_0x24d0b6,'createdDate':_0x3dd006+'-'+_0x93c2db+'-'+_0x13c859,'createdTime':_0x99d689+':'+_0x2a1c6b+':'+_0x24d0b6};}static[a238_0x41187f(0x129)](_0xf678a9){const _0x44f46d=a238_0x41187f,_0x2de5ac=_0xf678a9[_0x44f46d(0x139)]('/')[_0x44f46d(0x149)]()||_0xf678a9;return _0x2de5ac[_0x44f46d(0x139)]('-')[_0x44f46d(0x146)](_0x588776=>_0x588776[_0x44f46d(0x12c)](0x0)['toUpperCase']()+_0x588776[_0x44f46d(0x118)](0x1)[_0x44f46d(0x11f)]())[_0x44f46d(0x112)]('');}static[a238_0x41187f(0x137)](_0x41e8fe){const _0x2d916e=a238_0x41187f,_0xc7ae20=_0x41e8fe['split']('/')['pop']()||_0x41e8fe;return _0xc7ae20[_0x2d916e(0x139)]('-')[_0x2d916e(0x146)](_0x320ada=>_0x320ada[_0x2d916e(0x12c)](0x0)[_0x2d916e(0x131)]()+_0x320ada[_0x2d916e(0x118)](0x1)['toLowerCase']())[_0x2d916e(0x112)]('\x20');}static['replaceContent'](_0x4808ed,_0x1f7cf6,_0x21b8cd){const _0x3a05c8=a238_0x41187f,_0x2cb975=this['toComponentName'](_0x1f7cf6),_0x409b8d=this[_0x3a05c8(0x137)](_0x1f7cf6),{createdAt:_0x23df0e,createdDate:_0x451fad,createdTime:_0x1f076b}=this[_0x3a05c8(0x134)](new Date());let _0x382bce=_0x4808ed[_0x3a05c8(0x105)](/\{CliVersion\}/g,CLI_VERSION)[_0x3a05c8(0x105)](/\{ComponentName\}/g,_0x2cb975)[_0x3a05c8(0x105)](/\{DisplayTitle\}/g,_0x409b8d)[_0x3a05c8(0x105)](/\{PageName\}/g,_0x1f7cf6)['replace'](/\{TemplateName\}/g,_0x21b8cd)['replace'](/\{CreatedAt\}/g,_0x23df0e)[_0x3a05c8(0x105)](/\{CreatedDate\}/g,_0x451fad)['replace'](/\{CreatedTime\}/g,_0x1f076b);return _0x382bce;}static[a238_0x41187f(0x110)](_0x571e93,_0x22afa6,_0x24d981,_0x32d5ef,_0x8bb2d,_0xe5164,_0x189a9f,_0x423aa7){const _0x55a075=a238_0x41187f,_0x59c54a=new Date(),_0x5c2333=_0x59c54a[_0x55a075(0x142)](),_0x2b1da0=_0x24d981[_0x55a075(0x146)](_0x1daa11=>{const _0x5cb66a=_0x55a075,_0x8de434=[_0x5cb66a(0x117)+_0x1daa11[_0x5cb66a(0x128)]+'\x22',_0x5cb66a(0x148)+_0x1daa11[_0x5cb66a(0x138)]+'\x22',_0x5cb66a(0x127)+_0x1daa11[_0x5cb66a(0x123)]+'\x22'];return _0x1daa11[_0x5cb66a(0x11a)]&&_0x8de434[_0x5cb66a(0x136)](_0x5cb66a(0x12e)+_0x1daa11[_0x5cb66a(0x11a)]+'\x22'),_0x5cb66a(0x11e)+_0x8de434[_0x5cb66a(0x112)](',\x20')+_0x5cb66a(0x11d);})[_0x55a075(0x112)](''),_0x5d9d3e=_0x32d5ef||_0x24d981[0x0]?.[_0x55a075(0x11a)]||'YourModel';let _0x40ee77=_0x571e93[_0x55a075(0x105)](/\{AppCode\}/g,_0x22afa6)[_0x55a075(0x105)](/\{ModelConfigs\}/g,_0x2b1da0)[_0x55a075(0x105)](/\{ExampleModelName\}/g,_0x5d9d3e)[_0x55a075(0x105)](/\{ApiFileName\}/g,_0x8bb2d||'api')[_0x55a075(0x105)](/\{ConfigName\}/g,_0xe5164||_0x55a075(0x10a))['replace'](/\{ClientConfigParam\}/g,_0x189a9f||'')[_0x55a075(0x105)](/\{VarPrefix\}/g,_0x423aa7||_0x55a075(0x104))[_0x55a075(0x105)](/\{CreatedAt\}/g,_0x5c2333);return _0x40ee77;}static async[a238_0x41187f(0x114)](_0x5ca174,_0x3d1554,_0x38c27c,_0xcbcd05,_0x1ba5fb=!![]){const _0x55d54c=a238_0x41187f,_0x48884a=Date[_0x55d54c(0x119)]();try{_0x1ba5fb&&logger[_0x55d54c(0x116)](_0x55d54c(0x109),'开始处理模板内容替换',{'templatePath':_0x5ca174,'targetPath':_0x3d1554,'pageName':_0x38c27c,'templateName':_0xcbcd05});await a238_0x34807b['promises'][_0x55d54c(0x130)](_0x3d1554,{'recursive':!![]}),await this['processDirectory'](_0x5ca174,_0x3d1554,_0x38c27c,_0xcbcd05);if(_0x1ba5fb){const _0x1e1227=Date[_0x55d54c(0x119)]()-_0x48884a;logger[_0x55d54c(0x10b)](_0x55d54c(0x109),_0x55d54c(0x13a),_0x1e1227,{'pageName':_0x38c27c,'templateName':_0xcbcd05});}}catch(_0x2c5eb6){if(_0x1ba5fb){const _0x27e238=Date['now']()-_0x48884a;logger[_0x55d54c(0x13c)](_0x55d54c(0x109),_0x55d54c(0x10c),{'templatePath':_0x5ca174,'targetPath':_0x3d1554,'pageName':_0x38c27c,'templateName':_0xcbcd05,'error':_0x2c5eb6 instanceof Error?_0x2c5eb6[_0x55d54c(0x141)]:String(_0x2c5eb6),'duration':_0x27e238});}throw _0x2c5eb6;}}static async[a238_0x41187f(0x124)](_0x46956a,_0x15adcd,_0x1ea6ed,_0x39bfc7){const _0x43b7c7=a238_0x41187f,_0x59e832=await a238_0x34807b[_0x43b7c7(0x111)][_0x43b7c7(0x12d)](_0x46956a,{'withFileTypes':!![]});for(const _0x11cc0a of _0x59e832){const _0x415f9b=a238_0x2e6a20[_0x43b7c7(0x112)](_0x46956a,_0x11cc0a[_0x43b7c7(0x123)]);let _0x180253=a238_0x2e6a20[_0x43b7c7(0x112)](_0x15adcd,_0x11cc0a[_0x43b7c7(0x123)]);_0x11cc0a['name'][_0x43b7c7(0x12b)](_0x43b7c7(0x12f))&&(_0x180253=a238_0x2e6a20[_0x43b7c7(0x112)](_0x15adcd,_0x11cc0a['name']['replace'](/\.tpl$/,'')));if(_0x11cc0a['isDirectory']())await a238_0x34807b['promises'][_0x43b7c7(0x130)](_0x180253,{'recursive':!![]}),await this[_0x43b7c7(0x124)](_0x415f9b,_0x180253,_0x1ea6ed,_0x39bfc7);else _0x11cc0a[_0x43b7c7(0x106)]()&&await this[_0x43b7c7(0x140)](_0x415f9b,_0x180253,_0x1ea6ed,_0x39bfc7);}}static async['processFile'](_0x3a5c0f,_0x5e6285,_0x1e581f,_0x10df72){const _0x3433c9=a238_0x41187f,_0x497861=a238_0x2e6a20[_0x3433c9(0x13b)](_0x3a5c0f)[_0x3433c9(0x11f)]();_0x3a5c0f[_0x3433c9(0x12b)](_0x3433c9(0x12f))&&(_0x5e6285=_0x5e6285['replace'](/\.tpl$/,''));const _0xcb051e=[_0x3433c9(0x145),_0x3433c9(0x11c),_0x3433c9(0x10f),_0x3433c9(0x115),_0x3433c9(0x144),_0x3433c9(0x132),_0x3433c9(0x11b),'.scss',_0x3433c9(0x12f)];if(_0xcb051e['includes'](_0x497861)||_0x3a5c0f['endsWith'](_0x3433c9(0x12f))){const _0x2e655e=await a238_0x34807b['promises']['readFile'](_0x3a5c0f,'utf8'),_0x64a655=this[_0x3433c9(0x122)](_0x2e655e,_0x1e581f,_0x10df72);await a238_0x34807b[_0x3433c9(0x111)][_0x3433c9(0x13e)](_0x5e6285,_0x64a655,_0x3433c9(0x121));}else await a238_0x34807b[_0x3433c9(0x111)]['copyFile'](_0x3a5c0f,_0x5e6285);}}
@@ -1 +1 @@
1
- (function(_0x415c64,_0x3cdd79){const _0x1f0397=a218_0x2577,_0x3a635e=_0x415c64();while(!![]){try{const _0x82cf4e=parseInt(_0x1f0397(0x174))/0x1*(-parseInt(_0x1f0397(0x17e))/0x2)+parseInt(_0x1f0397(0x171))/0x3+parseInt(_0x1f0397(0x16a))/0x4*(-parseInt(_0x1f0397(0x16d))/0x5)+-parseInt(_0x1f0397(0x177))/0x6*(-parseInt(_0x1f0397(0x16b))/0x7)+parseInt(_0x1f0397(0x172))/0x8+parseInt(_0x1f0397(0x186))/0x9*(parseInt(_0x1f0397(0x189))/0xa)+-parseInt(_0x1f0397(0x17c))/0xb*(parseInt(_0x1f0397(0x180))/0xc);if(_0x82cf4e===_0x3cdd79)break;else _0x3a635e['push'](_0x3a635e['shift']());}catch(_0x5d7a45){_0x3a635e['push'](_0x3a635e['shift']());}}}(a218_0x44a4,0x4ffdf));function a218_0x2577(_0x5cd961,_0x51c035){_0x5cd961=_0x5cd961-0x169;const _0x44a4aa=a218_0x44a4();let _0x257703=_0x44a4aa[_0x5cd961];return _0x257703;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a218_0x378afa 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 a218_0x44a4(){const _0xcd007e=['486DTMSTe','now','.cache','68230KYRrNa','stableVersion','8yDbBBU','35LfCWpV','valid','165075sQRPuM','gte','\x20available,\x20current\x20','latest','1947495aVHlAS','1093128wWvYkz','/v/','37pIOfFa','utf8','update-check.json','194946wdJOmF','stringify','https://www.npmjs.com/package/','checkedAt','number','2445388bPgkSg','\x20update','25860YcrsOR','rabetbase-cli','24CuULyU','object','lastNotifiedAt','trim','parse','lastNotifiedVersion'];a218_0x44a4=function(){return _0xcd007e;};return a218_0x44a4();}function isUpdateNoticeDisabled(){const _0x4f0e3c=a218_0x2577,_0x215961=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x4f0e3c(0x183)]()['toLowerCase']();return _0x215961==='1'||_0x215961==='true'||_0x215961==='yes';}function cacheRoot(){const _0x412af5=a218_0x2577;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x412af5(0x188));}export function getUpdateNoticeCachePath(){const _0x31b583=a218_0x2577;return join(cacheRoot(),_0x31b583(0x17f),_0x31b583(0x176));}async function readUpdateNoticeCache(){const _0x2e8dbd=a218_0x2577;try{const _0x3a5476=await readFile(getUpdateNoticeCachePath(),_0x2e8dbd(0x175)),_0x21f294=JSON[_0x2e8dbd(0x184)](_0x3a5476);if(!_0x21f294||typeof _0x21f294!==_0x2e8dbd(0x181))return{};return _0x21f294;}catch{return{};}}async function writeUpdateNoticeCache(_0x20b5b8){const _0x4ce5f8=a218_0x2577;try{const _0x420160=getUpdateNoticeCachePath();await mkdir(dirname(_0x420160),{'recursive':!![]}),await writeFile(_0x420160,JSON[_0x4ce5f8(0x178)](_0x20b5b8,null,0x2)+'\x0a',_0x4ce5f8(0x175));}catch{}}function isFreshCheck(_0x3aca4e,_0x53f71c){const _0x286e1f=a218_0x2577;return typeof _0x3aca4e[_0x286e1f(0x17a)]===_0x286e1f(0x17b)&&_0x53f71c-_0x3aca4e[_0x286e1f(0x17a)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x269201,_0x5562b5,_0xec1fdd){const _0x49f1f3=a218_0x2577;return _0x269201[_0x49f1f3(0x185)]===_0x5562b5&&typeof _0x269201['lastNotifiedAt']==='number'&&_0xec1fdd-_0x269201[_0x49f1f3(0x182)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x431104){const _0x16de55=a218_0x2577;return _0x16de55(0x179)+NPM_PACKAGE_NAME+_0x16de55(0x173)+_0x431104;}export async function resolveLatestUpdateNotice(){const _0x54e4cc=a218_0x2577;if(isUpdateNoticeDisabled())return null;try{const _0x4543f2=Date[_0x54e4cc(0x187)](),_0x17db3a=getCliVersion(),_0x5ba155=await readUpdateNoticeCache();let _0x314f48=isFreshCheck(_0x5ba155,_0x4543f2)?_0x5ba155[_0x54e4cc(0x170)]?.[_0x54e4cc(0x183)]():undefined;if(!_0x314f48&&!isFreshCheck(_0x5ba155,_0x4543f2)){const _0x2dbae2=await getCliVersionPolicy();_0x314f48=_0x2dbae2?.[_0x54e4cc(0x169)]?.[_0x54e4cc(0x183)]()||undefined,await writeUpdateNoticeCache({..._0x5ba155,'checkedAt':_0x4543f2,'latest':_0x314f48,'failed':!_0x314f48});}if(!_0x314f48||!a218_0x378afa['valid'](_0x17db3a)||!a218_0x378afa[_0x54e4cc(0x16c)](_0x314f48))return null;if(a218_0x378afa[_0x54e4cc(0x16e)](_0x17db3a,_0x314f48))return null;if(isRecentlyNotified(_0x5ba155,_0x314f48,_0x4543f2))return null;const _0xbaf3fd=CLI_BIN_NAME+_0x54e4cc(0x17d);return await writeUpdateNoticeCache({..._0x5ba155,'checkedAt':isFreshCheck(_0x5ba155,_0x4543f2)?_0x5ba155[_0x54e4cc(0x17a)]:_0x4543f2,'latest':_0x314f48,'failed':![],'lastNotifiedVersion':_0x314f48,'lastNotifiedAt':_0x4543f2}),{'command':_0xbaf3fd,'current':_0x17db3a,'latest':_0x314f48,'url':buildNpmVersionUrl(_0x314f48),'message':CLI_BIN_NAME+'\x20'+_0x314f48+_0x54e4cc(0x16f)+_0x17db3a+',\x20run:\x20'+_0xbaf3fd};}catch{return null;}}
1
+ (function(_0x3017cc,_0x409942){const _0x204223=a239_0x52fd,_0x39e283=_0x3017cc();while(!![]){try{const _0x312ad7=parseInt(_0x204223(0x193))/0x1*(parseInt(_0x204223(0x188))/0x2)+parseInt(_0x204223(0x18c))/0x3+-parseInt(_0x204223(0x19f))/0x4*(-parseInt(_0x204223(0x197))/0x5)+-parseInt(_0x204223(0x18f))/0x6+parseInt(_0x204223(0x18e))/0x7*(-parseInt(_0x204223(0x185))/0x8)+-parseInt(_0x204223(0x19a))/0x9+-parseInt(_0x204223(0x18b))/0xa*(parseInt(_0x204223(0x196))/0xb);if(_0x312ad7===_0x409942)break;else _0x39e283['push'](_0x39e283['shift']());}catch(_0x42030d){_0x39e283['push'](_0x39e283['shift']());}}}(a239_0x39c8,0x764dd));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a239_0x3a3469 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 _0x1b1a3d=a239_0x52fd,_0x3b72bd=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x1b1a3d(0x195)]()[_0x1b1a3d(0x198)]();return _0x3b72bd==='1'||_0x3b72bd===_0x1b1a3d(0x18a)||_0x3b72bd===_0x1b1a3d(0x1a5);}function cacheRoot(){const _0xb8ebee=a239_0x52fd;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xb8ebee(0x19c));}export function getUpdateNoticeCachePath(){const _0x43c540=a239_0x52fd;return join(cacheRoot(),_0x43c540(0x19d),_0x43c540(0x186));}async function readUpdateNoticeCache(){const _0x170068=a239_0x52fd;try{const _0x5e535d=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x245132=JSON[_0x170068(0x1a2)](_0x5e535d);if(!_0x245132||typeof _0x245132!==_0x170068(0x19b))return{};return _0x245132;}catch{return{};}}async function writeUpdateNoticeCache(_0x48c733){const _0x5db824=a239_0x52fd;try{const _0x5a1b4c=getUpdateNoticeCachePath();await mkdir(dirname(_0x5a1b4c),{'recursive':!![]}),await writeFile(_0x5a1b4c,JSON['stringify'](_0x48c733,null,0x2)+'\x0a',_0x5db824(0x1a3));}catch{}}function a239_0x39c8(){const _0x34330a=['255dAaeav','toLowerCase','valid','390177ItmWuD','object','.cache','rabetbase-cli','stableVersion','15020rECzFe','gte','checkedAt','parse','utf8','\x20update','yes','\x20available,\x20current\x20','85856EIIVzu','update-check.json','lastNotifiedAt','936kKQMen','https://www.npmjs.com/package/','true','40BwVDTL','1627698mwGbfR',',\x20run:\x20','287dnamJA','2578158znaFEk','now','number','/v/','1801smHDDV','lastNotifiedVersion','trim','493097NbdpDS'];a239_0x39c8=function(){return _0x34330a;};return a239_0x39c8();}function isFreshCheck(_0x2faad2,_0x85872b){const _0x624ffb=a239_0x52fd;return typeof _0x2faad2[_0x624ffb(0x1a1)]===_0x624ffb(0x191)&&_0x85872b-_0x2faad2[_0x624ffb(0x1a1)]<UPDATE_CHECK_TTL_MS;}function a239_0x52fd(_0x3dbe94,_0x15a40a){_0x3dbe94=_0x3dbe94-0x185;const _0x39c891=a239_0x39c8();let _0x52fd70=_0x39c891[_0x3dbe94];return _0x52fd70;}function isRecentlyNotified(_0x1a8f86,_0x32291b,_0x43126c){const _0x55055b=a239_0x52fd;return _0x1a8f86[_0x55055b(0x194)]===_0x32291b&&typeof _0x1a8f86[_0x55055b(0x187)]===_0x55055b(0x191)&&_0x43126c-_0x1a8f86[_0x55055b(0x187)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x31903d){const _0xc99a=a239_0x52fd;return _0xc99a(0x189)+NPM_PACKAGE_NAME+_0xc99a(0x192)+_0x31903d;}export async function resolveLatestUpdateNotice(){const _0xdab9ce=a239_0x52fd;if(isUpdateNoticeDisabled())return null;try{const _0x5cc337=Date[_0xdab9ce(0x190)](),_0x56a1eb=getCliVersion(),_0xc97e43=await readUpdateNoticeCache();let _0xd73b78=isFreshCheck(_0xc97e43,_0x5cc337)?_0xc97e43['latest']?.[_0xdab9ce(0x195)]():undefined;if(!_0xd73b78&&!isFreshCheck(_0xc97e43,_0x5cc337)){const _0x5c590d=await getCliVersionPolicy();_0xd73b78=_0x5c590d?.[_0xdab9ce(0x19e)]?.[_0xdab9ce(0x195)]()||undefined,await writeUpdateNoticeCache({..._0xc97e43,'checkedAt':_0x5cc337,'latest':_0xd73b78,'failed':!_0xd73b78});}if(!_0xd73b78||!a239_0x3a3469[_0xdab9ce(0x199)](_0x56a1eb)||!a239_0x3a3469[_0xdab9ce(0x199)](_0xd73b78))return null;if(a239_0x3a3469[_0xdab9ce(0x1a0)](_0x56a1eb,_0xd73b78))return null;if(isRecentlyNotified(_0xc97e43,_0xd73b78,_0x5cc337))return null;const _0x48c8ed=CLI_BIN_NAME+_0xdab9ce(0x1a4);return await writeUpdateNoticeCache({..._0xc97e43,'checkedAt':isFreshCheck(_0xc97e43,_0x5cc337)?_0xc97e43[_0xdab9ce(0x1a1)]:_0x5cc337,'latest':_0xd73b78,'failed':![],'lastNotifiedVersion':_0xd73b78,'lastNotifiedAt':_0x5cc337}),{'command':_0x48c8ed,'current':_0x56a1eb,'latest':_0xd73b78,'url':buildNpmVersionUrl(_0xd73b78),'message':CLI_BIN_NAME+'\x20'+_0xd73b78+_0xdab9ce(0x1a6)+_0x56a1eb+_0xdab9ce(0x18d)+_0x48c8ed};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x5c4ccf,_0xa3fa76){var _0x30da0b=a219_0x53a8,_0x2447c1=_0x5c4ccf();while(!![]){try{var _0x998536=parseInt(_0x30da0b(0x117))/0x1+parseInt(_0x30da0b(0x118))/0x2*(-parseInt(_0x30da0b(0x11e))/0x3)+parseInt(_0x30da0b(0x120))/0x4*(parseInt(_0x30da0b(0x119))/0x5)+parseInt(_0x30da0b(0x116))/0x6*(-parseInt(_0x30da0b(0x11b))/0x7)+parseInt(_0x30da0b(0x11c))/0x8+-parseInt(_0x30da0b(0x11f))/0x9+parseInt(_0x30da0b(0x11d))/0xa*(parseInt(_0x30da0b(0x11a))/0xb);if(_0x998536===_0xa3fa76)break;else _0x2447c1['push'](_0x2447c1['shift']());}catch(_0x4b3123){_0x2447c1['push'](_0x2447c1['shift']());}}}(a219_0x30f5,0xe15b4));function a219_0x53a8(_0x57ef48,_0x30fe9c){_0x57ef48=_0x57ef48-0x116;var _0x30f526=a219_0x30f5();var _0x53a896=_0x30f526[_0x57ef48];return _0x53a896;}import{VERSION}from'../generated/build-info.js';function a219_0x30f5(){var _0x5e342f=['111SuyxVM','6818238NenDkx','55336FGVNLm','2581704EltQMG','1162322BqOPwh','6584ZmbAkK','75aCGTFQ','3982GzypGV','7yHxRNJ','3587264hgvAvT','11450kbhqCz'];a219_0x30f5=function(){return _0x5e342f;};return a219_0x30f5();}export function getCliVersion(){return VERSION;}
1
+ (function(_0x49889a,_0x5ee2fa){var _0x4dcc50=a240_0x294b,_0x1d6214=_0x49889a();while(!![]){try{var _0x589b31=parseInt(_0x4dcc50(0x1c7))/0x1*(parseInt(_0x4dcc50(0x1c4))/0x2)+parseInt(_0x4dcc50(0x1c3))/0x3*(-parseInt(_0x4dcc50(0x1cd))/0x4)+parseInt(_0x4dcc50(0x1c9))/0x5*(parseInt(_0x4dcc50(0x1c8))/0x6)+-parseInt(_0x4dcc50(0x1c5))/0x7+parseInt(_0x4dcc50(0x1c6))/0x8*(parseInt(_0x4dcc50(0x1cc))/0x9)+parseInt(_0x4dcc50(0x1c2))/0xa*(-parseInt(_0x4dcc50(0x1ca))/0xb)+-parseInt(_0x4dcc50(0x1cb))/0xc;if(_0x589b31===_0x5ee2fa)break;else _0x1d6214['push'](_0x1d6214['shift']());}catch(_0x2d254b){_0x1d6214['push'](_0x1d6214['shift']());}}}(a240_0x17f8,0x5f6d6));import{VERSION}from'../generated/build-info.js';function a240_0x17f8(){var _0x5d081a=['150741qNvSZe','16bpVLQG','321160tEBypf','61323tHptPR','2IVyXwf','4488253MnBRDK','56xBZsql','726889oomIeC','30qlWwJb','659105xZaNxL','66zUlufa','2360736KOSlUN'];a240_0x17f8=function(){return _0x5d081a;};return a240_0x17f8();}function a240_0x294b(_0x1503ec,_0x4268ae){_0x1503ec=_0x1503ec-0x1c2;var _0x17f8b3=a240_0x17f8();var _0x294bd3=_0x17f8b3[_0x1503ec];return _0x294bd3;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a220_0xb3c5(){var _0x2a205e=['3723475TKShev','2903616rBIOGn','225212DoHYMd','30kMzywL','4VoBXxY','1018056zUsoFr','1086518RbUxqf','175703TyEBdm','8UIdxZM','5RjIKEU','2317818YMECAx'];a220_0xb3c5=function(){return _0x2a205e;};return a220_0xb3c5();}(function(_0x504226,_0x300eaa){var _0x1942fc=a220_0x2026,_0x20827d=_0x504226();while(!![]){try{var _0x262593=parseInt(_0x1942fc(0x10d))/0x1+parseInt(_0x1942fc(0x106))/0x2+-parseInt(_0x1942fc(0x105))/0x3*(parseInt(_0x1942fc(0x104))/0x4)+-parseInt(_0x1942fc(0x109))/0x5*(parseInt(_0x1942fc(0x10a))/0x6)+-parseInt(_0x1942fc(0x10b))/0x7*(-parseInt(_0x1942fc(0x108))/0x8)+-parseInt(_0x1942fc(0x10c))/0x9+parseInt(_0x1942fc(0x103))/0xa*(parseInt(_0x1942fc(0x107))/0xb);if(_0x262593===_0x300eaa)break;else _0x20827d['push'](_0x20827d['shift']());}catch(_0x1e03d9){_0x20827d['push'](_0x20827d['shift']());}}}(a220_0xb3c5,0x49404));function a220_0x2026(_0x14d75b,_0x3fbff5){_0x14d75b=_0x14d75b-0x103;var _0xb3c561=a220_0xb3c5();var _0x2026ad=_0xb3c561[_0x14d75b];return _0x2026ad;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5e6069,_0x3b98ab){setActiveCookie(_0x5e6069);try{return await _0x3b98ab();}finally{clearActiveCookie();}}
1
+ function a241_0x438f(_0x2d8c54,_0x5602d8){_0x2d8c54=_0x2d8c54-0x10e;var _0x11f291=a241_0x11f2();var _0x438fa6=_0x11f291[_0x2d8c54];return _0x438fa6;}function a241_0x11f2(){var _0x4e445c=['178353vQFIqy','80yQWrfz','627273bbemQu','72kSkfJB','330434tsNKXp','11903199eluGTn','154884XDCwJP','4tduFwX','12dYEFFy','201069gYcToY','596380DpkWAZ'];a241_0x11f2=function(){return _0x4e445c;};return a241_0x11f2();}(function(_0x53115d,_0x2dc6a4){var _0x1243a5=a241_0x438f,_0x3d8a2c=_0x53115d();while(!![]){try{var _0x5c44ef=parseInt(_0x1243a5(0x117))/0x1+parseInt(_0x1243a5(0x10e))/0x2+parseInt(_0x1243a5(0x115))/0x3*(parseInt(_0x1243a5(0x10f))/0x4)+-parseInt(_0x1243a5(0x112))/0x5*(-parseInt(_0x1243a5(0x110))/0x6)+-parseInt(_0x1243a5(0x113))/0x7*(-parseInt(_0x1243a5(0x116))/0x8)+-parseInt(_0x1243a5(0x111))/0x9*(-parseInt(_0x1243a5(0x114))/0xa)+-parseInt(_0x1243a5(0x118))/0xb;if(_0x5c44ef===_0x2dc6a4)break;else _0x3d8a2c['push'](_0x3d8a2c['shift']());}catch(_0x5637d1){_0x3d8a2c['push'](_0x3d8a2c['shift']());}}}(a241_0x11f2,0x2c4c9));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3a65f2,_0x3d8b83){setActiveCookie(_0x3a65f2);try{return await _0x3d8b83();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x32f9b9,_0x42a17b){var _0x3140db=a221_0x3544,_0x59c0d4=_0x32f9b9();while(!![]){try{var _0x2c9f60=parseInt(_0x3140db(0x14d))/0x1*(-parseInt(_0x3140db(0x14c))/0x2)+-parseInt(_0x3140db(0x145))/0x3+-parseInt(_0x3140db(0x14f))/0x4+parseInt(_0x3140db(0x14a))/0x5+parseInt(_0x3140db(0x146))/0x6*(parseInt(_0x3140db(0x14b))/0x7)+parseInt(_0x3140db(0x14e))/0x8*(parseInt(_0x3140db(0x144))/0x9)+-parseInt(_0x3140db(0x143))/0xa*(-parseInt(_0x3140db(0x149))/0xb);if(_0x2c9f60===_0x42a17b)break;else _0x59c0d4['push'](_0x59c0d4['shift']());}catch(_0x51b683){_0x59c0d4['push'](_0x59c0d4['shift']());}}}(a221_0x52ed,0x50967));function a221_0x3544(_0x2346ea,_0x342895){_0x2346ea=_0x2346ea-0x143;var _0x52ed7c=a221_0x52ed();var _0x3544c6=_0x52ed7c[_0x2346ea];return _0x3544c6;}function a221_0x52ed(){var _0x33a40e=['3143XlAtbp','846834hhhMxX','1nXXVEk','179472UzinPu','2406256bRHyPF','40fRzZtj','261JkwBWv','1060881UHGijL','8358UhZvYe','stderr','write','898557xEGGpb','529520tnTqES'];a221_0x52ed=function(){return _0x33a40e;};return a221_0x52ed();}export function writeCliSideChannelLine(_0x2f9a30){var _0x4601e0=a221_0x3544;process[_0x4601e0(0x147)][_0x4601e0(0x148)](_0x2f9a30+'\x0a');}
1
+ function a242_0x464c(_0x2822e2,_0x24e410){_0x2822e2=_0x2822e2-0xf7;var _0x5e7942=a242_0x5e79();var _0x464c86=_0x5e7942[_0x2822e2];return _0x464c86;}function a242_0x5e79(){var _0x3bbbe1=['524WGhkiK','1355XaFvIc','1JmzHyp','433539LsacDH','2274nAzpXH','write','3018baTRVU','2452760zhHqvH','161304QHeibZ','48EMSavI','32972XoCOCG','1551942ZZdbKz'];a242_0x5e79=function(){return _0x3bbbe1;};return a242_0x5e79();}(function(_0x2d148e,_0x282c1c){var _0x502b41=a242_0x464c,_0x223327=_0x2d148e();while(!![]){try{var _0x79d1ea=parseInt(_0x502b41(0x101))/0x1*(-parseInt(_0x502b41(0xfd))/0x2)+parseInt(_0x502b41(0xf9))/0x3*(-parseInt(_0x502b41(0xff))/0x4)+parseInt(_0x502b41(0x100))/0x5*(parseInt(_0x502b41(0xf7))/0x6)+parseInt(_0x502b41(0xfe))/0x7+parseInt(_0x502b41(0xfc))/0x8*(-parseInt(_0x502b41(0x102))/0x9)+parseInt(_0x502b41(0xfa))/0xa+parseInt(_0x502b41(0xfb))/0xb;if(_0x79d1ea===_0x282c1c)break;else _0x223327['push'](_0x223327['shift']());}catch(_0x376d3c){_0x223327['push'](_0x223327['shift']());}}}(a242_0x5e79,0x23e71));export function writeCliSideChannelLine(_0x71ad65){var _0x50ce04=a242_0x464c;process['stderr'][_0x50ce04(0xf8)](_0x71ad65+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.4-beta.3",
3
+ "version": "2.3.4-beta.4",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -47,7 +47,7 @@
47
47
  "test:ui": "vitest --ui",
48
48
  "test:watch": "vitest --watch",
49
49
  "test:unit": "vitest run test/unit",
50
- "test:app": "vitest run test/unit/commands/app-shared.test.ts test/unit/commands/app-add.test.ts test/unit/commands/app-remove.test.ts test/unit/commands/app-list.test.ts test/unit/commands/app-discover.test.ts",
50
+ "test:app": "vitest run test/unit/commands/app-shared.test.ts test/unit/commands/app-add.test.ts test/unit/commands/app-remove.test.ts test/unit/commands/app-list.test.ts test/unit/commands/workspace.test.ts test/unit/commands/app-workspace-migration.test.ts",
51
51
  "test:integration": "vitest run test/integration",
52
52
  "test:e2e": "vitest run test/e2e",
53
53
  "test:e2e:daily": "RABETBASE_E2E_DAILY=1 vitest run test/e2e/daily-app-smoke.test.ts",