@lovrabet/rabetbase-cli 2.3.13 → 2.3.14-beta.1

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 (263) 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 -1
  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 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/asset-update.js +1 -1
  103. package/lib/commands/menu/delete.js +1 -1
  104. package/lib/commands/menu/external-link-create.js +1 -1
  105. package/lib/commands/menu/external-link-update.js +1 -1
  106. package/lib/commands/menu/group-create.js +1 -1
  107. package/lib/commands/menu/group-update.js +1 -1
  108. package/lib/commands/menu/index.js +1 -1
  109. package/lib/commands/menu/list.js +1 -1
  110. package/lib/commands/menu/move.js +1 -1
  111. package/lib/commands/menu/regroup-start.js +1 -1
  112. package/lib/commands/menu/shared/compare-table.js +1 -1
  113. package/lib/commands/menu/shared/delete-plan.js +1 -1
  114. package/lib/commands/menu/shared/facts.js +1 -1
  115. package/lib/commands/menu/shared/index.js +1 -1
  116. package/lib/commands/menu/shared/inquirer.js +1 -1
  117. package/lib/commands/menu/shared/local-pages.js +1 -1
  118. package/lib/commands/menu/shared/logic.js +1 -1
  119. package/lib/commands/menu/shared/mutations.js +1 -1
  120. package/lib/commands/menu/shared/service.js +1 -1
  121. package/lib/commands/menu/shared/sync-core.js +1 -1
  122. package/lib/commands/menu/shared/update-core.js +1 -1
  123. package/lib/commands/menu/shared/valid-url.js +1 -1
  124. package/lib/commands/menu/sync.js +1 -1
  125. package/lib/commands/notification/config-list.js +1 -1
  126. package/lib/commands/notification/index.js +1 -1
  127. package/lib/commands/ocr/index.js +1 -0
  128. package/lib/commands/page/generate-start.js +1 -1
  129. package/lib/commands/page/generate-status.js +1 -1
  130. package/lib/commands/page/index.js +1 -1
  131. package/lib/commands/page/pull.js +1 -1
  132. package/lib/commands/page/push.js +1 -1
  133. package/lib/commands/page/relation-audit.js +1 -1
  134. package/lib/commands/page/restore.js +1 -0
  135. package/lib/commands/page/shared.js +1 -1
  136. package/lib/commands/page/standard-page-status.js +1 -1
  137. package/lib/commands/page/sync.js +1 -1
  138. package/lib/commands/permit/index.js +1 -1
  139. package/lib/commands/permit/page-get.js +1 -1
  140. package/lib/commands/permit/page-set.js +1 -1
  141. package/lib/commands/permit/role-apis-set.js +1 -1
  142. package/lib/commands/permit/role-menus-set.js +1 -1
  143. package/lib/commands/permit/role-menus.js +1 -1
  144. package/lib/commands/permit/shared.js +1 -1
  145. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  146. package/lib/commands/project/create/format-elapsed.js +1 -1
  147. package/lib/commands/project/create/main.js +1 -1
  148. package/lib/commands/project/create/non-interactive.js +1 -1
  149. package/lib/commands/project/create/project-template-path.js +1 -1
  150. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  151. package/lib/commands/project/create/use-format-code.js +1 -1
  152. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  153. package/lib/commands/project/index.js +1 -1
  154. package/lib/commands/project/init.js +1 -1
  155. package/lib/commands/project/upgrade.js +1 -1
  156. package/lib/commands/registry.js +1 -1
  157. package/lib/commands/role/create.js +1 -1
  158. package/lib/commands/role/delete.js +1 -1
  159. package/lib/commands/role/detail.js +1 -1
  160. package/lib/commands/role/index.js +1 -1
  161. package/lib/commands/role/list.js +1 -1
  162. package/lib/commands/role/shared.js +1 -1
  163. package/lib/commands/role/update.js +1 -1
  164. package/lib/commands/role/user-add.js +1 -1
  165. package/lib/commands/role/user-remove.js +1 -1
  166. package/lib/commands/role/user-resolve.js +1 -1
  167. package/lib/commands/run/index.js +1 -1
  168. package/lib/commands/schema.js +1 -1
  169. package/lib/commands/sql/create.js +1 -1
  170. package/lib/commands/sql/delete.js +1 -1
  171. package/lib/commands/sql/detail.js +1 -1
  172. package/lib/commands/sql/exec.js +1 -1
  173. package/lib/commands/sql/index.js +1 -1
  174. package/lib/commands/sql/list.js +1 -1
  175. package/lib/commands/sql/pull.js +1 -1
  176. package/lib/commands/sql/push.js +1 -1
  177. package/lib/commands/sql/save.js +1 -1
  178. package/lib/commands/sql/shared.js +1 -1
  179. package/lib/commands/sql/status.js +1 -1
  180. package/lib/commands/sql/validate.js +1 -1
  181. package/lib/commands/task/index.js +1 -1
  182. package/lib/commands/task/status.js +1 -1
  183. package/lib/commands/workspace/add.js +1 -1
  184. package/lib/commands/workspace/index.js +1 -1
  185. package/lib/commands/workspace/remove.js +1 -1
  186. package/lib/config/schema.js +1 -1
  187. package/lib/constant/cdn.js +1 -1
  188. package/lib/constant/cli.js +1 -1
  189. package/lib/constant/defaults.js +1 -1
  190. package/lib/constant/domain.js +1 -1
  191. package/lib/constant/env.js +1 -1
  192. package/lib/constant/output.js +1 -1
  193. package/lib/constant/paths.js +1 -1
  194. package/lib/constant/risk.js +1 -1
  195. package/lib/context/app-resolver.js +1 -1
  196. package/lib/context/auth-resolver.js +1 -1
  197. package/lib/context/config-loader.js +1 -1
  198. package/lib/context.js +1 -1
  199. package/lib/core/alias-resolver.js +1 -1
  200. package/lib/core/api-client.js +1 -1
  201. package/lib/core/bff/config.js +1 -1
  202. package/lib/core/bff/file-system.js +1 -1
  203. package/lib/core/bff/hash.js +1 -1
  204. package/lib/core/bff/lock.js +1 -1
  205. package/lib/core/bff/utils.js +1 -1
  206. package/lib/core/db-resolver.js +1 -1
  207. package/lib/core/page/file-system.js +1 -1
  208. package/lib/core/page/hash.js +1 -1
  209. package/lib/core/page/lock.js +1 -1
  210. package/lib/core/sql-index-auditor.js +1 -1
  211. package/lib/core/sql-sync/config.js +1 -1
  212. package/lib/core/sql-sync/file-system.js +1 -1
  213. package/lib/core/sql-sync/hash.js +1 -1
  214. package/lib/core/sql-sync/lock.js +1 -1
  215. package/lib/core/sql-sync/utils.js +1 -1
  216. package/lib/core/sql-validator.js +1 -1
  217. package/lib/errors.js +1 -1
  218. package/lib/framework/build-all-flags.js +1 -1
  219. package/lib/framework/error-output.js +1 -1
  220. package/lib/framework/explicit-yes.js +1 -1
  221. package/lib/framework/flags.js +1 -1
  222. package/lib/framework/help.js +1 -1
  223. package/lib/framework/index.js +1 -1
  224. package/lib/framework/output.js +1 -1
  225. package/lib/framework/response.js +1 -1
  226. package/lib/framework/runner-alias.js +1 -1
  227. package/lib/framework/runner.js +1 -1
  228. package/lib/framework/schema-export.js +1 -1
  229. package/lib/framework/types.js +1 -1
  230. package/lib/generated/build-info.js +1 -1
  231. package/lib/help.js +1 -1
  232. package/lib/skills/main.js +1 -1
  233. package/lib/skills/npx-skills-add.js +1 -1
  234. package/lib/telemetry/cli-command-trace.js +1 -1
  235. package/lib/telemetry/cli-help-trace.js +1 -1
  236. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  237. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  238. package/lib/telemetry/send-cli-trace-log.js +1 -1
  239. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  240. package/lib/utils/ai_config.js +1 -1
  241. package/lib/utils/apply-jq-filter.js +1 -1
  242. package/lib/utils/cdn-config.js +1 -1
  243. package/lib/utils/check-sdk-version.js +1 -1
  244. package/lib/utils/cli-version-check.js +1 -1
  245. package/lib/utils/cli-version-policy.js +1 -1
  246. package/lib/utils/config.js +1 -1
  247. package/lib/utils/copy-directory.js +1 -1
  248. package/lib/utils/entity-with-id.js +1 -1
  249. package/lib/utils/file-utils.js +1 -1
  250. package/lib/utils/guides-cdn.js +1 -1
  251. package/lib/utils/http-client.js +1 -1
  252. package/lib/utils/is-non-interactive.js +1 -1
  253. package/lib/utils/logger.js +1 -1
  254. package/lib/utils/params.js +1 -1
  255. package/lib/utils/platform.js +1 -1
  256. package/lib/utils/rules-cdn.js +1 -1
  257. package/lib/utils/sleep.js +1 -1
  258. package/lib/utils/template-replacer.js +1 -1
  259. package/lib/utils/update-notice.js +1 -1
  260. package/lib/utils/version.js +1 -1
  261. package/lib/utils/with-active-cookie.js +1 -1
  262. package/lib/utils/write-cli-side-channel.js +1 -1
  263. package/package.json +1 -1
@@ -1 +1 @@
1
- const a245_0x1938b5=a245_0x5e58;function a245_0x5e58(_0x1772f6,_0x477b4d){_0x1772f6=_0x1772f6-0x155;const _0x491c0e=a245_0x491c();let _0x5e58ca=_0x491c0e[_0x1772f6];return _0x5e58ca;}(function(_0x4f3185,_0x179d1c){const _0x1579c7=a245_0x5e58,_0x3ecf8c=_0x4f3185();while(!![]){try{const _0x1488f4=parseInt(_0x1579c7(0x16e))/0x1*(parseInt(_0x1579c7(0x171))/0x2)+parseInt(_0x1579c7(0x170))/0x3*(parseInt(_0x1579c7(0x158))/0x4)+-parseInt(_0x1579c7(0x179))/0x5+parseInt(_0x1579c7(0x173))/0x6*(parseInt(_0x1579c7(0x176))/0x7)+parseInt(_0x1579c7(0x177))/0x8+-parseInt(_0x1579c7(0x15c))/0x9+parseInt(_0x1579c7(0x15d))/0xa*(-parseInt(_0x1579c7(0x15f))/0xb);if(_0x1488f4===_0x179d1c)break;else _0x3ecf8c['push'](_0x3ecf8c['shift']());}catch(_0x5138aa){_0x3ecf8c['push'](_0x3ecf8c['shift']());}}}(a245_0x491c,0x62379));import a245_0x6147bc from'node:fs';import a245_0x200208 from'node:path';import a245_0x529e1f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a245_0x1938b5(0x172);function isNonNumericVersion(_0x3f7c7a){const _0x7bb9c1=a245_0x1938b5,_0x240a0e=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x240a0e['some'](_0x2acd78=>_0x2acd78[_0x7bb9c1(0x16f)](_0x3f7c7a));}function getInstalledVersion(_0x20d65e,_0x8d648){const _0x2dc25b=a245_0x1938b5;try{const _0x4025bf=a245_0x200208[_0x2dc25b(0x159)](_0x20d65e,_0x2dc25b(0x164),_0x8d648,_0x2dc25b(0x16c));if(a245_0x6147bc[_0x2dc25b(0x166)](_0x4025bf)){const _0x15c29a=JSON[_0x2dc25b(0x155)](a245_0x6147bc[_0x2dc25b(0x15b)](_0x4025bf,_0x2dc25b(0x156)));return _0x15c29a[_0x2dc25b(0x165)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5c8775=a245_0x1938b5;try{const _0x33514c=await getCdnConfig();return _0x33514c?.[_0x5c8775(0x167)]?.['node']?.[_0x5c8775(0x161)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x12d7f7=a245_0x1938b5;try{const _0x1bb0eb=await getCdnConfig();return _0x1bb0eb?.[_0x12d7f7(0x167)]?.[_0x12d7f7(0x16d)]?.[_0x12d7f7(0x16a)]||'@lovrabet/sdk';}catch{return _0x12d7f7(0x162);}}export async function checkSdkVersion(_0x2219bb){const _0x5f1741=a245_0x1938b5,_0x112c0d=a245_0x200208[_0x5f1741(0x159)](_0x2219bb,_0x5f1741(0x16c)),[_0x4f5ef7,_0x1f0b9c]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x4054f0=_0x4f5ef7||FALLBACK_MIN_SDK_VERSION;if(!a245_0x6147bc['existsSync'](_0x112c0d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4054f0,'packageName':_0x1f0b9c,'stableVersion':_0x4f5ef7};try{const _0x4f8d7a=JSON['parse'](a245_0x6147bc[_0x5f1741(0x15b)](_0x112c0d,_0x5f1741(0x160))),_0x552ce9=_0x4f8d7a[_0x5f1741(0x174)]||{},_0x6676f5=_0x4f8d7a[_0x5f1741(0x15a)]||{},_0x46bf9d=_0x552ce9[_0x1f0b9c]||_0x6676f5[_0x1f0b9c];if(!_0x46bf9d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4054f0,'packageName':_0x1f0b9c,'stableVersion':_0x4f5ef7};let _0x125b17=getInstalledVersion(_0x2219bb,_0x1f0b9c);!_0x125b17&&(_0x125b17=_0x46bf9d);if(isNonNumericVersion(_0x46bf9d))return{'installed':!![],'version':_0x125b17,'needsUpgrade':![],'minVersion':_0x4054f0,'packageName':_0x1f0b9c,'stableVersion':_0x4f5ef7};const _0x2a6597=a245_0x529e1f[_0x5f1741(0x163)](_0x125b17),_0x31f2f2=a245_0x529e1f[_0x5f1741(0x163)](_0x4054f0),_0x1eba06=_0x2a6597&&_0x31f2f2?a245_0x529e1f['lt'](_0x2a6597,_0x31f2f2):![];return{'installed':!![],'version':_0x125b17,'needsUpgrade':_0x1eba06,'minVersion':_0x4054f0,'packageName':_0x1f0b9c,'stableVersion':_0x4f5ef7};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4054f0,'packageName':_0x1f0b9c,'stableVersion':_0x4f5ef7};}}export function checkSdkVersionSync(_0x2fd8d9){const _0xedf5b3=a245_0x1938b5,_0x3e5661=a245_0x200208[_0xedf5b3(0x159)](_0x2fd8d9,'package.json'),_0x5a862c='@lovrabet/sdk';if(!a245_0x6147bc[_0xedf5b3(0x166)](_0x3e5661))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5a862c,'stableVersion':null};try{const _0x52c37b=JSON[_0xedf5b3(0x155)](a245_0x6147bc[_0xedf5b3(0x15b)](_0x3e5661,_0xedf5b3(0x160))),_0x166dbe=_0x52c37b['dependencies']||{},_0x2d1fb3=_0x52c37b[_0xedf5b3(0x15a)]||{},_0xf4f811=_0x166dbe[_0x5a862c]||_0x2d1fb3[_0x5a862c];if(!_0xf4f811)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5a862c,'stableVersion':null};let _0x3e44ed=getInstalledVersion(_0x2fd8d9,_0x5a862c);!_0x3e44ed&&(_0x3e44ed=_0xf4f811);if(isNonNumericVersion(_0xf4f811))return{'installed':!![],'version':_0x3e44ed,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5a862c,'stableVersion':null};const _0x36a619=a245_0x529e1f[_0xedf5b3(0x163)](_0x3e44ed),_0x6d2b3=_0x36a619?a245_0x529e1f['lt'](_0x36a619,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3e44ed,'needsUpgrade':_0x6d2b3,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5a862c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5a862c,'stableVersion':null};}}function a245_0x491c(){const _0xa13085=['needsUpgrade','package.json','node','3527gihhqC','test','727977jZKoCi','312yJdyLa','1.2.0','564hCofIm','dependencies','npm\x20install\x20','56077LvnjET','6168400IuYkkw','\x20\x20\x20Current\x20version:\x20','555085xDowlL','log','parse','utf-8','\x1b[0m','4yEWurw','join','devDependencies','readFileSync','2423205WzCSCx','10hjQWzr','\x20\x20\x20Stable\x20version:\x20','16878356WqlSrP','utf8','stableVersion','@lovrabet/sdk','coerce','node_modules','version','existsSync','sdk','\x20\x20\x20Upgrade\x20command:\x20','\x1b[1m','packageName'];a245_0x491c=function(){return _0xa13085;};return a245_0x491c();}export function printSdkUpgradeWarning(_0x2be327){const _0x5b402e=a245_0x1938b5;if(!_0x2be327[_0x5b402e(0x16b)])return;const _0x4fe321='\x1b[33m',_0x4fa427=_0x5b402e(0x157),_0x4f0d9b=_0x5b402e(0x169),_0x146f58=_0x2be327[_0x5b402e(0x16a)]||_0x5b402e(0x162),_0x2ffba6=_0x2be327['stableVersion']||_0x2be327['minVersion'],_0x2ce557=_0x5b402e(0x175)+_0x146f58+'@'+(_0x2ffba6||'latest');console[_0x5b402e(0x17a)](),console[_0x5b402e(0x17a)](''+_0x4fe321+_0x4f0d9b+'↪\x20SDK\x20update\x20available'+_0x4fa427),console[_0x5b402e(0x17a)](_0x4fe321+_0x5b402e(0x178)+_0x146f58+'@'+_0x2be327[_0x5b402e(0x165)]+_0x4fa427),console['log'](_0x4fe321+_0x5b402e(0x15e)+_0x2ffba6+_0x4fa427),console[_0x5b402e(0x17a)](_0x4fe321+_0x5b402e(0x168)+_0x2ce557+_0x4fa427),console[_0x5b402e(0x17a)]();}
1
+ const a247_0x1181ea=a247_0x1a63;(function(_0x11d482,_0x3ce717){const _0x52344a=a247_0x1a63,_0x3238e1=_0x11d482();while(!![]){try{const _0x3bd16a=parseInt(_0x52344a(0x9b))/0x1*(parseInt(_0x52344a(0xa7))/0x2)+-parseInt(_0x52344a(0xb6))/0x3*(-parseInt(_0x52344a(0x93))/0x4)+parseInt(_0x52344a(0xb4))/0x5*(-parseInt(_0x52344a(0x92))/0x6)+parseInt(_0x52344a(0x9d))/0x7*(parseInt(_0x52344a(0x8f))/0x8)+parseInt(_0x52344a(0xb2))/0x9+-parseInt(_0x52344a(0x91))/0xa*(-parseInt(_0x52344a(0x98))/0xb)+parseInt(_0x52344a(0x97))/0xc*(-parseInt(_0x52344a(0x9a))/0xd);if(_0x3bd16a===_0x3ce717)break;else _0x3238e1['push'](_0x3238e1['shift']());}catch(_0x431958){_0x3238e1['push'](_0x3238e1['shift']());}}}(a247_0x471b,0xe62c7));import a247_0x3a8637 from'node:fs';import a247_0x1618e8 from'node:path';function a247_0x1a63(_0x3a4bcf,_0x4bac67){_0x3a4bcf=_0x3a4bcf-0x8f;const _0x471be7=a247_0x471b();let _0x1a63c5=_0x471be7[_0x3a4bcf];return _0x1a63c5;}function a247_0x471b(){const _0x5e87f7=['\x1b[1m','31424XDxTfW','\x1b[0m','node_modules','existsSync','coerce','@lovrabet/sdk','needsUpgrade','some','latest','packageName','package.json','2811456ceHyyG','log','6585985VCbwLN','parse','681EkDniM','8CHIxYa','join','79630zlDnbF','6wQGdGt','31412xoNUTp','stableVersion','minVersion','readFileSync','121320azzfNV','1309jsdWVe','1.2.0','1963RvBqLW','5MLPXin','sdk','4657982NNAPHJ','\x20\x20\x20Current\x20version:\x20','dependencies','utf-8','devDependencies','version','↪\x20SDK\x20update\x20available','node','utf8'];a247_0x471b=function(){return _0x5e87f7;};return a247_0x471b();}import a247_0x393d33 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a247_0x1181ea(0x99);function isNonNumericVersion(_0x52df52){const _0x291185=a247_0x1181ea,_0x57a847=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x57a847[_0x291185(0xae)](_0x424697=>_0x424697['test'](_0x52df52));}function getInstalledVersion(_0x440163,_0x4c0324){const _0xba7fd5=a247_0x1181ea;try{const _0x3c612b=a247_0x1618e8['join'](_0x440163,_0xba7fd5(0xa9),_0x4c0324,_0xba7fd5(0xb1));if(a247_0x3a8637[_0xba7fd5(0xaa)](_0x3c612b)){const _0x3f2076=JSON[_0xba7fd5(0xb5)](a247_0x3a8637['readFileSync'](_0x3c612b,_0xba7fd5(0xa0)));return _0x3f2076[_0xba7fd5(0xa2)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x57c9e1=a247_0x1181ea;try{const _0x29e2d5=await getCdnConfig();return _0x29e2d5?.[_0x57c9e1(0x9c)]?.[_0x57c9e1(0xa4)]?.[_0x57c9e1(0x94)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2e8832=a247_0x1181ea;try{const _0x499699=await getCdnConfig();return _0x499699?.[_0x2e8832(0x9c)]?.[_0x2e8832(0xa4)]?.[_0x2e8832(0xb0)]||_0x2e8832(0xac);}catch{return _0x2e8832(0xac);}}export async function checkSdkVersion(_0x48274f){const _0x59bb2d=a247_0x1181ea,_0x199cd4=a247_0x1618e8[_0x59bb2d(0x90)](_0x48274f,_0x59bb2d(0xb1)),[_0x9319ca,_0x53b599]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x31f8f3=_0x9319ca||FALLBACK_MIN_SDK_VERSION;if(!a247_0x3a8637[_0x59bb2d(0xaa)](_0x199cd4))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x31f8f3,'packageName':_0x53b599,'stableVersion':_0x9319ca};try{const _0x1a2634=JSON[_0x59bb2d(0xb5)](a247_0x3a8637[_0x59bb2d(0x96)](_0x199cd4,_0x59bb2d(0xa5))),_0x488e8b=_0x1a2634[_0x59bb2d(0x9f)]||{},_0x7b2271=_0x1a2634[_0x59bb2d(0xa1)]||{},_0x24548b=_0x488e8b[_0x53b599]||_0x7b2271[_0x53b599];if(!_0x24548b)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x31f8f3,'packageName':_0x53b599,'stableVersion':_0x9319ca};let _0x37c0f9=getInstalledVersion(_0x48274f,_0x53b599);!_0x37c0f9&&(_0x37c0f9=_0x24548b);if(isNonNumericVersion(_0x24548b))return{'installed':!![],'version':_0x37c0f9,'needsUpgrade':![],'minVersion':_0x31f8f3,'packageName':_0x53b599,'stableVersion':_0x9319ca};const _0x27a0eb=a247_0x393d33[_0x59bb2d(0xab)](_0x37c0f9),_0x37bbb3=a247_0x393d33[_0x59bb2d(0xab)](_0x31f8f3),_0x3b952b=_0x27a0eb&&_0x37bbb3?a247_0x393d33['lt'](_0x27a0eb,_0x37bbb3):![];return{'installed':!![],'version':_0x37c0f9,'needsUpgrade':_0x3b952b,'minVersion':_0x31f8f3,'packageName':_0x53b599,'stableVersion':_0x9319ca};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x31f8f3,'packageName':_0x53b599,'stableVersion':_0x9319ca};}}export function checkSdkVersionSync(_0x23793b){const _0x36897d=a247_0x1181ea,_0x562577=a247_0x1618e8[_0x36897d(0x90)](_0x23793b,'package.json'),_0xd70764=_0x36897d(0xac);if(!a247_0x3a8637[_0x36897d(0xaa)](_0x562577))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd70764,'stableVersion':null};try{const _0xda6d11=JSON[_0x36897d(0xb5)](a247_0x3a8637[_0x36897d(0x96)](_0x562577,'utf8')),_0x2a7e56=_0xda6d11[_0x36897d(0x9f)]||{},_0xbec4fa=_0xda6d11['devDependencies']||{},_0x1fab36=_0x2a7e56[_0xd70764]||_0xbec4fa[_0xd70764];if(!_0x1fab36)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd70764,'stableVersion':null};let _0x42b873=getInstalledVersion(_0x23793b,_0xd70764);!_0x42b873&&(_0x42b873=_0x1fab36);if(isNonNumericVersion(_0x1fab36))return{'installed':!![],'version':_0x42b873,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd70764,'stableVersion':null};const _0x5b519c=a247_0x393d33['coerce'](_0x42b873),_0x281af4=_0x5b519c?a247_0x393d33['lt'](_0x5b519c,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x42b873,'needsUpgrade':_0x281af4,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd70764,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd70764,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x19470d){const _0x563a21=a247_0x1181ea;if(!_0x19470d[_0x563a21(0xad)])return;const _0x3bf86b='\x1b[33m',_0x57a4ca=_0x563a21(0xa8),_0x1574ed=_0x563a21(0xa6),_0x56b05b=_0x19470d[_0x563a21(0xb0)]||_0x563a21(0xac),_0x14fc92=_0x19470d[_0x563a21(0x94)]||_0x19470d[_0x563a21(0x95)],_0x56548e='npm\x20install\x20'+_0x56b05b+'@'+(_0x14fc92||_0x563a21(0xaf));console[_0x563a21(0xb3)](),console[_0x563a21(0xb3)](''+_0x3bf86b+_0x1574ed+_0x563a21(0xa3)+_0x57a4ca),console['log'](_0x3bf86b+_0x563a21(0x9e)+_0x56b05b+'@'+_0x19470d['version']+_0x57a4ca),console[_0x563a21(0xb3)](_0x3bf86b+'\x20\x20\x20Stable\x20version:\x20'+_0x14fc92+_0x57a4ca),console['log'](_0x3bf86b+'\x20\x20\x20Upgrade\x20command:\x20'+_0x56548e+_0x57a4ca),console['log']();}
@@ -1 +1 @@
1
- function a246_0x3c4c(){const _0x530dec=['npm\x20install\x20-g\x20','stableVersion','14gTIKGN','minimumVersionMessage','log','\x20\x20\x20Stable\x20version:\x20','5638152bkRRBh','318205AfkTlg','validation','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','belowMinimum','minimumVersion','\x20\x20\x20Upgrade\x20command:\x20','upgradeMessage','465033zFWdTM','Current\x20version:\x20','\x20\x20\x20Minimum\x20supported:\x20','filter','36UjDCKj','Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','parse','14913369BaKvrn','979365zlsOMh','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','↪\x20New\x20version\x20available','Minimum\x20supported:\x20','version','\x1b[33m','currentVersion','1.0.0','1068064IgvbYK','coerce','886338WbzmYf','\x1b[1m','package.json'];a246_0x3c4c=function(){return _0x530dec;};return a246_0x3c4c();}(function(_0x55e1a5,_0x143499){const _0x21c04d=a246_0x3d40,_0x2d2b6b=_0x55e1a5();while(!![]){try{const _0xb54dcc=parseInt(_0x21c04d(0xf1))/0x1+parseInt(_0x21c04d(0x104))/0x2+parseInt(_0x21c04d(0xfa))/0x3+-parseInt(_0x21c04d(0xf5))/0x4*(-parseInt(_0x21c04d(0x10e))/0x5)+parseInt(_0x21c04d(0x10d))/0x6+-parseInt(_0x21c04d(0x109))/0x7*(parseInt(_0x21c04d(0x102))/0x8)+-parseInt(_0x21c04d(0xf9))/0x9;if(_0xb54dcc===_0x143499)break;else _0x2d2b6b['push'](_0x2d2b6b['shift']());}catch(_0x3cdf84){_0x2d2b6b['push'](_0x2d2b6b['shift']());}}}(a246_0x3c4c,0xc8f15));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a246_0x4266ca 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(_0x5ef7dd){const _0x26b650=a246_0x3d40,_0x5b3f6b=_0x5ef7dd[_0x26b650(0x108)]||_0x26b650(0x110);return _0x26b650(0x107)+NPM_PACKAGE_NAME+'@'+_0x5b3f6b;}function getCurrentCliVersion(){const _0x42ec1a=a246_0x3d40;try{const _0x336498=fileURLToPath(import.meta.url),_0x297e00=resolve(dirname(_0x336498),'../..'),_0x59bf84=resolve(_0x297e00,_0x42ec1a(0x106)),_0x3a6812=JSON[_0x42ec1a(0xf8)](readFileSync(_0x59bf84,'utf-8'));return _0x3a6812[_0x42ec1a(0xfe)]||_0x42ec1a(0x101);}catch{return _0x42ec1a(0x101);}}export async function checkCliVersion(){const _0x3d5702=a246_0x3d40,_0xcaef58=getCurrentCliVersion(),_0x1a60ed=await getCliVersionPolicy(),_0x5ab120=_0x1a60ed?.['stableVersion']||null,_0x2c0d7e=_0x1a60ed?.[_0x3d5702(0xee)]||null;let _0xeab1e8=![],_0x245511=![];const _0x5d8653=a246_0x4266ca[_0x3d5702(0x103)](_0xcaef58);if(_0x5d8653&&_0x5ab120)try{const _0x48ad4c=a246_0x4266ca['coerce'](_0x5ab120);if(_0x48ad4c)_0xeab1e8=a246_0x4266ca['lt'](_0x5d8653,_0x48ad4c);}catch{}if(_0x5d8653&&_0x2c0d7e)try{const _0x1f153b=a246_0x4266ca[_0x3d5702(0x103)](_0x2c0d7e);if(_0x1f153b)_0x245511=a246_0x4266ca['lt'](_0x5d8653,_0x1f153b);}catch{}return _0x245511&&(_0xeab1e8=!![]),{'currentVersion':_0xcaef58,'stableVersion':_0x5ab120,'minimumVersion':_0x2c0d7e,'needsUpgrade':_0xeab1e8,'belowMinimum':_0x245511,'isPreRelease':![],'upgradeMessage':_0x1a60ed?.['upgradeMessage'],'minimumVersionMessage':_0x1a60ed?.[_0x3d5702(0x10a)]};}function a246_0x3d40(_0x3b4be5,_0x17cfd3){_0x3b4be5=_0x3b4be5-0xee;const _0x3c4c8d=a246_0x3c4c();let _0x3d40f1=_0x3c4c8d[_0x3b4be5];return _0x3d40f1;}export function printCliUpgradeWarning(_0x2bebba){const _0x3f123c=a246_0x3d40;if(!_0x2bebba['needsUpgrade']&&!_0x2bebba['belowMinimum'])return;const _0x3484ad='\x1b[31m',_0x3793e8=_0x3f123c(0xff),_0x28000e='\x1b[0m',_0x5e61da=_0x3f123c(0x105),_0x147c39=getCliUpgradeCommand(_0x2bebba);console[_0x3f123c(0x10b)](),_0x2bebba[_0x3f123c(0x113)]?(console['log'](''+_0x3484ad+_0x5e61da+_0x3f123c(0xf7)+_0x28000e),console[_0x3f123c(0x10b)](_0x3484ad+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2bebba[_0x3f123c(0x100)]+_0x28000e),_0x2bebba[_0x3f123c(0xee)]&&console['log'](_0x3484ad+_0x3f123c(0xf3)+_0x2bebba[_0x3f123c(0xee)]+_0x28000e),_0x2bebba[_0x3f123c(0x108)]&&_0x2bebba[_0x3f123c(0x108)]!==_0x2bebba[_0x3f123c(0xee)]&&console['log'](_0x3484ad+_0x3f123c(0x112)+_0x2bebba['stableVersion']+_0x28000e),_0x2bebba[_0x3f123c(0x10a)]&&console[_0x3f123c(0x10b)](_0x3484ad+'\x20\x20\x20'+_0x2bebba['minimumVersionMessage']+_0x28000e),console['log'](_0x3484ad+'\x20\x20\x20Upgrade\x20command:\x20'+_0x147c39+_0x28000e)):(console['log'](''+_0x3793e8+_0x5e61da+_0x3f123c(0xfc)+_0x28000e),console[_0x3f123c(0x10b)](_0x3793e8+_0x3f123c(0x111)+_0x2bebba[_0x3f123c(0x100)]+_0x28000e),console[_0x3f123c(0x10b)](_0x3793e8+_0x3f123c(0x10c)+_0x2bebba[_0x3f123c(0x108)]+_0x28000e),_0x2bebba['upgradeMessage']&&console[_0x3f123c(0x10b)](_0x3793e8+'\x20\x20\x20'+_0x2bebba[_0x3f123c(0xf0)]+_0x28000e),console[_0x3f123c(0x10b)](_0x3793e8+_0x3f123c(0xef)+_0x147c39+_0x28000e)),console[_0x3f123c(0x10b)]();}export function assertCliVersionSupported(_0x21cefe){const _0x4dfc12=a246_0x3d40;if(!_0x21cefe[_0x4dfc12(0x113)])return;const _0x3c9057=[_0x21cefe[_0x4dfc12(0x10a)],_0x4dfc12(0xf2)+_0x21cefe[_0x4dfc12(0x100)],_0x21cefe[_0x4dfc12(0xee)]?_0x4dfc12(0xfd)+_0x21cefe[_0x4dfc12(0xee)]:null,_0x4dfc12(0xf6)+getCliUpgradeCommand(_0x21cefe)][_0x4dfc12(0xf4)](Boolean)['join']('\x0a');throw CliErrors[_0x4dfc12(0x10f)](_0x4dfc12(0xfb),_0x3c9057);}
1
+ (function(_0x3a7ddd,_0x161e3a){const _0x129ecb=a248_0x4609,_0x4efd62=_0x3a7ddd();while(!![]){try{const _0x1ea696=parseInt(_0x129ecb(0x1bd))/0x1*(-parseInt(_0x129ecb(0x1c8))/0x2)+-parseInt(_0x129ecb(0x1d4))/0x3+-parseInt(_0x129ecb(0x1bb))/0x4+-parseInt(_0x129ecb(0x1ca))/0x5+-parseInt(_0x129ecb(0x1d6))/0x6*(-parseInt(_0x129ecb(0x1c1))/0x7)+parseInt(_0x129ecb(0x1ce))/0x8+parseInt(_0x129ecb(0x1d0))/0x9;if(_0x1ea696===_0x161e3a)break;else _0x4efd62['push'](_0x4efd62['shift']());}catch(_0x747820){_0x4efd62['push'](_0x4efd62['shift']());}}}(a248_0x1ee9,0x256d3));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a248_0x1ee9(){const _0xff752e=['currentVersion','package.json','495220FbzaxN','\x20\x20\x20Stable\x20version:\x20','8EMaymJ','\x20\x20\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','Upgrade\x20command:\x20','56Efttwa','validation','\x20\x20\x20Recommended\x20stable:\x20','needsUpgrade','log','\x1b[0m','\x1b[1m','46754Cvrlnc','utf-8','9100fgYiEN','minimumVersionMessage','upgradeMessage','1.0.0','1776360zFbrVh','minimumVersion','206406dgoySv','latest','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','92733vwJotG','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','188904waHBpU','../..','stableVersion','npm\x20install\x20-g\x20','\x1b[31m','version','belowMinimum','filter','join','parse','\x20\x20\x20Upgrade\x20command:\x20'];a248_0x1ee9=function(){return _0xff752e;};return a248_0x1ee9();}import a248_0x2c4166 from'semver';function a248_0x4609(_0x4bd8ec,_0x40b9bf){_0x4bd8ec=_0x4bd8ec-0x1af;const _0x1ee969=a248_0x1ee9();let _0x4609c7=_0x1ee969[_0x4bd8ec];return _0x4609c7;}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2892ad){const _0x2eb5c2=a248_0x4609,_0x394aa7=_0x2892ad[_0x2eb5c2(0x1b0)]||_0x2eb5c2(0x1d1);return _0x2eb5c2(0x1b1)+NPM_PACKAGE_NAME+'@'+_0x394aa7;}function getCurrentCliVersion(){const _0x45d2ca=a248_0x4609;try{const _0x2ea283=fileURLToPath(import.meta.url),_0x4bc436=resolve(dirname(_0x2ea283),_0x45d2ca(0x1af)),_0x376c1c=resolve(_0x4bc436,_0x45d2ca(0x1ba)),_0x4cf343=JSON[_0x45d2ca(0x1b7)](readFileSync(_0x376c1c,_0x45d2ca(0x1c9)));return _0x4cf343[_0x45d2ca(0x1b3)]||_0x45d2ca(0x1cd);}catch{return _0x45d2ca(0x1cd);}}export async function checkCliVersion(){const _0x24679e=a248_0x4609,_0x4649d2=getCurrentCliVersion(),_0x4dd673=await getCliVersionPolicy(),_0x4bdd76=_0x4dd673?.[_0x24679e(0x1b0)]||null,_0x44d85d=_0x4dd673?.[_0x24679e(0x1cf)]||null;let _0xabcd0c=![],_0x1b9315=![];const _0xf43a8a=a248_0x2c4166['coerce'](_0x4649d2);if(_0xf43a8a&&_0x4bdd76)try{const _0x2d149a=a248_0x2c4166['coerce'](_0x4bdd76);if(_0x2d149a)_0xabcd0c=a248_0x2c4166['lt'](_0xf43a8a,_0x2d149a);}catch{}if(_0xf43a8a&&_0x44d85d)try{const _0x1cd1fb=a248_0x2c4166['coerce'](_0x44d85d);if(_0x1cd1fb)_0x1b9315=a248_0x2c4166['lt'](_0xf43a8a,_0x1cd1fb);}catch{}return _0x1b9315&&(_0xabcd0c=!![]),{'currentVersion':_0x4649d2,'stableVersion':_0x4bdd76,'minimumVersion':_0x44d85d,'needsUpgrade':_0xabcd0c,'belowMinimum':_0x1b9315,'isPreRelease':![],'upgradeMessage':_0x4dd673?.['upgradeMessage'],'minimumVersionMessage':_0x4dd673?.[_0x24679e(0x1cb)]};}export function printCliUpgradeWarning(_0x2c5df3){const _0xf4e203=a248_0x4609;if(!_0x2c5df3[_0xf4e203(0x1c4)]&&!_0x2c5df3[_0xf4e203(0x1b4)])return;const _0x90160f=_0xf4e203(0x1b2),_0x315c70=_0xf4e203(0x1d3),_0x122d97=_0xf4e203(0x1c6),_0x56f491=_0xf4e203(0x1c7),_0x1d407b=getCliUpgradeCommand(_0x2c5df3);console[_0xf4e203(0x1c5)](),_0x2c5df3[_0xf4e203(0x1b4)]?(console[_0xf4e203(0x1c5)](''+_0x90160f+_0x56f491+_0xf4e203(0x1d2)+_0x122d97),console[_0xf4e203(0x1c5)](_0x90160f+_0xf4e203(0x1bf)+_0x2c5df3[_0xf4e203(0x1b9)]+_0x122d97),_0x2c5df3[_0xf4e203(0x1cf)]&&console[_0xf4e203(0x1c5)](_0x90160f+'\x20\x20\x20Minimum\x20supported:\x20'+_0x2c5df3[_0xf4e203(0x1cf)]+_0x122d97),_0x2c5df3[_0xf4e203(0x1b0)]&&_0x2c5df3[_0xf4e203(0x1b0)]!==_0x2c5df3[_0xf4e203(0x1cf)]&&console['log'](_0x90160f+_0xf4e203(0x1c3)+_0x2c5df3[_0xf4e203(0x1b0)]+_0x122d97),_0x2c5df3[_0xf4e203(0x1cb)]&&console['log'](_0x90160f+_0xf4e203(0x1be)+_0x2c5df3[_0xf4e203(0x1cb)]+_0x122d97),console[_0xf4e203(0x1c5)](_0x90160f+_0xf4e203(0x1b8)+_0x1d407b+_0x122d97)):(console['log'](''+_0x315c70+_0x56f491+'↪\x20New\x20version\x20available'+_0x122d97),console[_0xf4e203(0x1c5)](_0x315c70+_0xf4e203(0x1bf)+_0x2c5df3[_0xf4e203(0x1b9)]+_0x122d97),console['log'](_0x315c70+_0xf4e203(0x1bc)+_0x2c5df3['stableVersion']+_0x122d97),_0x2c5df3[_0xf4e203(0x1cc)]&&console[_0xf4e203(0x1c5)](_0x315c70+'\x20\x20\x20'+_0x2c5df3[_0xf4e203(0x1cc)]+_0x122d97),console[_0xf4e203(0x1c5)](_0x315c70+_0xf4e203(0x1b8)+_0x1d407b+_0x122d97)),console[_0xf4e203(0x1c5)]();}export function assertCliVersionSupported(_0x50ef26){const _0x22efe5=a248_0x4609;if(!_0x50ef26['belowMinimum'])return;const _0x19af0f=[_0x50ef26[_0x22efe5(0x1cb)],'Current\x20version:\x20'+_0x50ef26['currentVersion'],_0x50ef26[_0x22efe5(0x1cf)]?'Minimum\x20supported:\x20'+_0x50ef26['minimumVersion']:null,_0x22efe5(0x1c0)+getCliUpgradeCommand(_0x50ef26)][_0x22efe5(0x1b5)](Boolean)[_0x22efe5(0x1b6)]('\x0a');throw CliErrors[_0x22efe5(0x1c2)](_0x22efe5(0x1d5),_0x19af0f);}
@@ -1 +1 @@
1
- (function(_0x3be7d4,_0x5ab5ac){const _0x8443e5=a247_0x1c87,_0x5b0cac=_0x3be7d4();while(!![]){try{const _0x2acd7b=parseInt(_0x8443e5(0xf5))/0x1+-parseInt(_0x8443e5(0x102))/0x2*(parseInt(_0x8443e5(0x108))/0x3)+parseInt(_0x8443e5(0xf6))/0x4+-parseInt(_0x8443e5(0x106))/0x5+parseInt(_0x8443e5(0xfe))/0x6+-parseInt(_0x8443e5(0xfa))/0x7*(parseInt(_0x8443e5(0xf4))/0x8)+parseInt(_0x8443e5(0xf7))/0x9;if(_0x2acd7b===_0x5ab5ac)break;else _0x5b0cac['push'](_0x5b0cac['shift']());}catch(_0x4a6adc){_0x5b0cac['push'](_0x5b0cac['shift']());}}}(a247_0x4c1f,0x64fec));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(_0x29f876){const _0xff486a=a247_0x1c87;return typeof _0x29f876==='string'&&_0x29f876[_0xff486a(0x100)]()[_0xff486a(0x104)]>0x0?_0x29f876['trim']():null;}function normalizeCliVersionPolicy(_0x37eca1){const _0x38b989=a247_0x1c87;if(!_0x37eca1||typeof _0x37eca1!==_0x38b989(0xfc))return null;const _0x497b9f=_0x37eca1,_0x1c4c90=_0x497b9f[_0x38b989(0x103)]&&typeof _0x497b9f[_0x38b989(0x103)]===_0x38b989(0xfc)?_0x497b9f[_0x38b989(0x103)]:_0x497b9f,_0x4249b2=pickString(_0x1c4c90[_0x38b989(0xff)])||pickString(_0x1c4c90[_0x38b989(0x107)])||pickString(_0x1c4c90[_0x38b989(0x105)]),_0x16c88c=pickString(_0x1c4c90['minimumVersion'])||pickString(_0x1c4c90[_0x38b989(0xf8)]);if(!_0x4249b2&&!_0x16c88c)return null;return{'stableVersion':_0x4249b2,'minimumVersion':_0x16c88c,'upgradeMessage':pickString(_0x1c4c90[_0x38b989(0x101)])||undefined,'minimumVersionMessage':pickString(_0x1c4c90[_0x38b989(0xfd)])||undefined};}export async function fetchCliVersionPolicy(){const _0x478353=a247_0x1c87,_0x19d47a=new AbortController(),_0x25f0af=setTimeout(()=>_0x19d47a['abort'](),FETCH_TIMEOUT_MS);try{const _0x148aaf=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x19d47a[_0x478353(0xf3)]});if(!_0x148aaf['ok'])return null;const _0x42eab9=await _0x148aaf[_0x478353(0xf9)]();return normalizeCliVersionPolicy(_0x42eab9);}catch{return null;}finally{clearTimeout(_0x25f0af);}}function a247_0x1c87(_0x7400c5,_0x41325b){_0x7400c5=_0x7400c5-0xf3;const _0x4c1f5a=a247_0x4c1f();let _0x1c87da=_0x4c1f5a[_0x7400c5];return _0x1c87da;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3d8a5b=a247_0x1c87,_0x93241=Date[_0x3d8a5b(0xfb)]();if(hasCachedPolicy){const _0x39fab5=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x93241-cacheTime<_0x39fab5)return cachedPolicy;}const _0x20d328=await fetchCliVersionPolicy();return cachedPolicy=_0x20d328,cacheTime=_0x93241,hasCachedPolicy=!![],_0x20d328;}function a247_0x4c1f(){const _0x209e68=['stableVersion','trim','upgradeMessage','174586RufqpA','cli','length','recommendedVersion','3681445EgTVoy','latestVersion','6efyEHd','signal','12360ZPTkxX','440148ZqnPFC','140056uuMYBO','8936847DCsdgP','minVersion','json','2177LVlpAy','now','object','minimumVersionMessage','2021406zxhdjd'];a247_0x4c1f=function(){return _0x209e68;};return a247_0x4c1f();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x42254c,_0x43e6a2){const _0xe05598=a249_0x5c89,_0x4b037f=_0x42254c();while(!![]){try{const _0x2e0a61=-parseInt(_0xe05598(0x1a8))/0x1*(parseInt(_0xe05598(0x1a6))/0x2)+parseInt(_0xe05598(0x1a4))/0x3*(parseInt(_0xe05598(0x1a3))/0x4)+-parseInt(_0xe05598(0x1b5))/0x5+parseInt(_0xe05598(0x1a9))/0x6*(parseInt(_0xe05598(0x1ab))/0x7)+parseInt(_0xe05598(0x1b8))/0x8*(-parseInt(_0xe05598(0x1ae))/0x9)+parseInt(_0xe05598(0x1a5))/0xa*(-parseInt(_0xe05598(0x1ba))/0xb)+parseInt(_0xe05598(0x1ac))/0xc;if(_0x2e0a61===_0x43e6a2)break;else _0x4b037f['push'](_0x4b037f['shift']());}catch(_0x162dc3){_0x4b037f['push'](_0x4b037f['shift']());}}}(a249_0x30ab,0xc6336));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 a249_0x30ab(){const _0x2247e5=['trim','latestVersion','minimumVersion','string','4938060ZUNxqi','stableVersion','now','8KRXkjz','minVersion','539869ZyVpVQ','24244qzKzRu','180qoDBLD','20AhILdY','40658aCHqVl','upgradeMessage','19TcIkBD','138caFzXe','cli','331723CtCybb','23442804SGPtCC','object','10109907HloWPT','application/json','abort'];a249_0x30ab=function(){return _0x2247e5;};return a249_0x30ab();}function pickString(_0x84c1e4){const _0x5e488f=a249_0x5c89;return typeof _0x84c1e4===_0x5e488f(0x1b4)&&_0x84c1e4[_0x5e488f(0x1b1)]()['length']>0x0?_0x84c1e4[_0x5e488f(0x1b1)]():null;}function a249_0x5c89(_0x1683ca,_0x3c6142){_0x1683ca=_0x1683ca-0x1a3;const _0x30abdf=a249_0x30ab();let _0x5c8959=_0x30abdf[_0x1683ca];return _0x5c8959;}function normalizeCliVersionPolicy(_0x49f351){const _0x3f5f48=a249_0x5c89;if(!_0x49f351||typeof _0x49f351!==_0x3f5f48(0x1ad))return null;const _0x5dac8a=_0x49f351,_0x33fd10=_0x5dac8a[_0x3f5f48(0x1aa)]&&typeof _0x5dac8a[_0x3f5f48(0x1aa)]==='object'?_0x5dac8a[_0x3f5f48(0x1aa)]:_0x5dac8a,_0x36d3bd=pickString(_0x33fd10[_0x3f5f48(0x1b6)])||pickString(_0x33fd10[_0x3f5f48(0x1b2)])||pickString(_0x33fd10['recommendedVersion']),_0x50b66c=pickString(_0x33fd10[_0x3f5f48(0x1b3)])||pickString(_0x33fd10[_0x3f5f48(0x1b9)]);if(!_0x36d3bd&&!_0x50b66c)return null;return{'stableVersion':_0x36d3bd,'minimumVersion':_0x50b66c,'upgradeMessage':pickString(_0x33fd10[_0x3f5f48(0x1a7)])||undefined,'minimumVersionMessage':pickString(_0x33fd10['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x199942=a249_0x5c89,_0x196c45=new AbortController(),_0x5a14ec=setTimeout(()=>_0x196c45[_0x199942(0x1b0)](),FETCH_TIMEOUT_MS);try{const _0x1b5f56=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x199942(0x1af)},'signal':_0x196c45['signal']});if(!_0x1b5f56['ok'])return null;const _0x33ef2f=await _0x1b5f56['json']();return normalizeCliVersionPolicy(_0x33ef2f);}catch{return null;}finally{clearTimeout(_0x5a14ec);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x1edbe8=a249_0x5c89,_0x143ad8=Date[_0x1edbe8(0x1b7)]();if(hasCachedPolicy){const _0x4440d2=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x143ad8-cacheTime<_0x4440d2)return cachedPolicy;}const _0x24e62=await fetchCliVersionPolicy();return cachedPolicy=_0x24e62,cacheTime=_0x143ad8,hasCachedPolicy=!![],_0x24e62;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a248_0x29c363=a248_0x4e33;(function(_0x517c82,_0x3ad6f8){const _0x30f11b=a248_0x4e33,_0x11cbb8=_0x517c82();while(!![]){try{const _0x3ac9a3=-parseInt(_0x30f11b(0xe5))/0x1*(parseInt(_0x30f11b(0xe9))/0x2)+parseInt(_0x30f11b(0xe4))/0x3+-parseInt(_0x30f11b(0xe7))/0x4+parseInt(_0x30f11b(0xe3))/0x5+-parseInt(_0x30f11b(0xea))/0x6*(parseInt(_0x30f11b(0xe2))/0x7)+parseInt(_0x30f11b(0xe6))/0x8*(parseInt(_0x30f11b(0xe1))/0x9)+parseInt(_0x30f11b(0xec))/0xa;if(_0x3ac9a3===_0x3ad6f8)break;else _0x11cbb8['push'](_0x11cbb8['shift']());}catch(_0x278680){_0x11cbb8['push'](_0x11cbb8['shift']());}}}(a248_0x599c,0x1ecc4));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a248_0x15a7c7,getMultiAppConfigs as a248_0x2de129,getTemplateBaseUrl as a248_0x3e4b14}from'../context.js';function a248_0x599c(){const _0x58ae5f=['247928rVjGmm','484908CrSbQO','env','2eakDxK','30GDFNHT','project','2191080tAjztt','18PQrXvs','128065PUloWE','208335tHhuAh','359211ByjrHi','103644cRNuND'];a248_0x599c=function(){return _0x58ae5f;};return a248_0x599c();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a248_0x4e33(_0x57b9e0,_0x2a25c7){_0x57b9e0=_0x57b9e0-0xe1;const _0x599c8f=a248_0x599c();let _0x4e336f=_0x599c8f[_0x57b9e0];return _0x4e336f;}export function readConfig(_0x10f583){const _0x34cfbd=a248_0x4e33,_0x13af5b=readRawConfig(_0x10f583);return _0x13af5b[_0x34cfbd(0xe8)]&&typeof _0x13af5b[_0x34cfbd(0xe8)]==='string'&&initEnv(_0x13af5b[_0x34cfbd(0xe8)]),_0x13af5b;}export function getConfigAppCode(){return a248_0x15a7c7();}export function getMultiAppConfigs(_0x580044=a248_0x29c363(0xeb)){return a248_0x2de129(_0x580044);}export function getTemplateBaseUrl(){return a248_0x3e4b14();}
1
+ (function(_0x409564,_0x19ed38){const _0x4807d6=a250_0x571e,_0x2d3d0e=_0x409564();while(!![]){try{const _0x1f097e=parseInt(_0x4807d6(0xd6))/0x1*(-parseInt(_0x4807d6(0xda))/0x2)+-parseInt(_0x4807d6(0xd1))/0x3*(-parseInt(_0x4807d6(0xd8))/0x4)+-parseInt(_0x4807d6(0xd2))/0x5+parseInt(_0x4807d6(0xd3))/0x6+-parseInt(_0x4807d6(0xd7))/0x7+parseInt(_0x4807d6(0xdb))/0x8+-parseInt(_0x4807d6(0xd5))/0x9*(-parseInt(_0x4807d6(0xdc))/0xa);if(_0x1f097e===_0x19ed38)break;else _0x2d3d0e['push'](_0x2d3d0e['shift']());}catch(_0xb74c7a){_0x2d3d0e['push'](_0x2d3d0e['shift']());}}}(a250_0x5b28,0xd4bfb));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a250_0x50a16d,getMultiAppConfigs as a250_0x1d63b0,getTemplateBaseUrl as a250_0x48ce49}from'../context.js';function a250_0x571e(_0x30a536,_0x2cd447){_0x30a536=_0x30a536-0xd1;const _0x5b288e=a250_0x5b28();let _0x571ed5=_0x5b288e[_0x30a536];return _0x571ed5;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x3089e6){const _0x45efad=a250_0x571e,_0x581399=readRawConfig(_0x3089e6);return _0x581399['env']&&typeof _0x581399[_0x45efad(0xd4)]===_0x45efad(0xd9)&&initEnv(_0x581399[_0x45efad(0xd4)]),_0x581399;}export function getConfigAppCode(){return a250_0x50a16d();}function a250_0x5b28(){const _0x3272ab=['string','2606EXlQKe','8591112vekAFu','70ZWRgVW','1742511YOuFIa','8422430QxbTkc','3253518aXixMY','env','2439729TeQHAZ','1319xilWDd','6871606rpTFgC','12eCwUpf'];a250_0x5b28=function(){return _0x3272ab;};return a250_0x5b28();}export function getMultiAppConfigs(_0x53ff88='project'){return a250_0x1d63b0(_0x53ff88);}export function getTemplateBaseUrl(){return a250_0x48ce49();}
@@ -1 +1 @@
1
- function a249_0x4894(_0x3578a2,_0x59cc7a){_0x3578a2=_0x3578a2-0x1c7;const _0x28c1ea=a249_0x28c1();let _0x489489=_0x28c1ea[_0x3578a2];return _0x489489;}(function(_0x149b3a,_0x229f9f){const _0x14a0e0=a249_0x4894,_0x10bc2e=_0x149b3a();while(!![]){try{const _0x39596a=-parseInt(_0x14a0e0(0x1c9))/0x1*(-parseInt(_0x14a0e0(0x1d0))/0x2)+parseInt(_0x14a0e0(0x1cb))/0x3+-parseInt(_0x14a0e0(0x1cc))/0x4*(-parseInt(_0x14a0e0(0x1ce))/0x5)+parseInt(_0x14a0e0(0x1c8))/0x6+parseInt(_0x14a0e0(0x1c7))/0x7+-parseInt(_0x14a0e0(0x1d4))/0x8+parseInt(_0x14a0e0(0x1d5))/0x9*(-parseInt(_0x14a0e0(0x1d2))/0xa);if(_0x39596a===_0x229f9f)break;else _0x10bc2e['push'](_0x10bc2e['shift']());}catch(_0x3db065){_0x10bc2e['push'](_0x10bc2e['shift']());}}}(a249_0x28c1,0x29487));function a249_0x28c1(){const _0x3fc246=['1643663FeEWFn','1810044SpIBTG','6723FTjAmZ','error','40893jXfwez','21596GrgLOs','mkdirSync','245ZXNuKx','readdirSync','62vJoBQv','join','407020qlBtbW','isDirectory','2598856KxIcct','117greDfF'];a249_0x28c1=function(){return _0x3fc246;};return a249_0x28c1();}import a249_0x4f7943 from'node:path';import a249_0x572c2e from'node:fs';export async function copyDirectory(_0x5e0bfd,_0x51317f){const _0x3657a1=a249_0x4894;try{const _0x5a634c=a249_0x572c2e[_0x3657a1(0x1cf)](_0x5e0bfd,{'withFileTypes':!![]});a249_0x572c2e[_0x3657a1(0x1cd)](_0x51317f,{'recursive':!![]});for(const _0x130819 of _0x5a634c){const _0x1e5ee1=a249_0x4f7943[_0x3657a1(0x1d1)](_0x5e0bfd,_0x130819['name']),_0x5a1d70=a249_0x4f7943[_0x3657a1(0x1d1)](_0x51317f,_0x130819['name']);_0x130819[_0x3657a1(0x1d3)]()?await copyDirectory(_0x1e5ee1,_0x5a1d70):a249_0x572c2e['copyFileSync'](_0x1e5ee1,_0x5a1d70);}}catch(_0x31d0a5){console[_0x3657a1(0x1ca)]('复制目录时出错:',_0x31d0a5);}}
1
+ (function(_0x6e484,_0x54c61c){const _0x14a553=a251_0x17c9,_0x371a61=_0x6e484();while(!![]){try{const _0x53caff=parseInt(_0x14a553(0x1b7))/0x1+parseInt(_0x14a553(0x1b8))/0x2+parseInt(_0x14a553(0x1bb))/0x3+-parseInt(_0x14a553(0x1bc))/0x4+parseInt(_0x14a553(0x1ba))/0x5+parseInt(_0x14a553(0x1b1))/0x6*(-parseInt(_0x14a553(0x1b2))/0x7)+-parseInt(_0x14a553(0x1b4))/0x8;if(_0x53caff===_0x54c61c)break;else _0x371a61['push'](_0x371a61['shift']());}catch(_0x2b86a6){_0x371a61['push'](_0x371a61['shift']());}}}(a251_0x13ae,0xe3055));function a251_0x17c9(_0x3a0470,_0x59cf62){_0x3a0470=_0x3a0470-0x1b1;const _0x13ae9f=a251_0x13ae();let _0x17c905=_0x13ae9f[_0x3a0470];return _0x17c905;}import a251_0x5682c8 from'node:path';import a251_0x47b5a3 from'node:fs';function a251_0x13ae(){const _0x277356=['copyFileSync','10652472XlcSTJ','复制目录时出错:','name','1677182QvcDLB','3139478QoZmew','join','757430cwRpHR','913764Rbyhqc','101408dgjDxI','18qFXswM','3304483AxWCHr'];a251_0x13ae=function(){return _0x277356;};return a251_0x13ae();}export async function copyDirectory(_0x46b3bc,_0x594b45){const _0x421753=a251_0x17c9;try{const _0x287c4c=a251_0x47b5a3['readdirSync'](_0x46b3bc,{'withFileTypes':!![]});a251_0x47b5a3['mkdirSync'](_0x594b45,{'recursive':!![]});for(const _0x486e80 of _0x287c4c){const _0x58b80a=a251_0x5682c8[_0x421753(0x1b9)](_0x46b3bc,_0x486e80[_0x421753(0x1b6)]),_0x38837a=a251_0x5682c8[_0x421753(0x1b9)](_0x594b45,_0x486e80[_0x421753(0x1b6)]);_0x486e80['isDirectory']()?await copyDirectory(_0x58b80a,_0x38837a):a251_0x47b5a3[_0x421753(0x1b3)](_0x58b80a,_0x38837a);}}catch(_0x2003e5){console['error'](_0x421753(0x1b5),_0x2003e5);}}
@@ -1 +1 @@
1
- function a250_0x4ab5(_0x3f5049,_0x49282e){_0x3f5049=_0x3f5049-0xbc;const _0x16f825=a250_0x16f8();let _0x4ab5af=_0x16f825[_0x3f5049];return _0x4ab5af;}function a250_0x16f8(){const _0x31e556=['trim','213014WVtotp','number','12szfvWC','isFinite','6296526uwOkTu','276069zVsgXQ','object','427002yjQwdK','2817432bDgSsM','28fGstpZ','166735VrLBzG','48318VATwla'];a250_0x16f8=function(){return _0x31e556;};return a250_0x16f8();}(function(_0x207d0e,_0x4346f7){const _0x574746=a250_0x4ab5,_0x2bfac0=_0x207d0e();while(!![]){try{const _0x4da3b0=-parseInt(_0x574746(0xc8))/0x1+parseInt(_0x574746(0xbd))/0x2+parseInt(_0x574746(0xc2))/0x3+parseInt(_0x574746(0xbf))/0x4*(parseInt(_0x574746(0xc7))/0x5)+-parseInt(_0x574746(0xc4))/0x6*(-parseInt(_0x574746(0xc6))/0x7)+parseInt(_0x574746(0xc5))/0x8+-parseInt(_0x574746(0xc1))/0x9;if(_0x4da3b0===_0x4346f7)break;else _0x2bfac0['push'](_0x2bfac0['shift']());}catch(_0x572797){_0x2bfac0['push'](_0x2bfac0['shift']());}}}(a250_0x16f8,0x2dc5e));function toFiniteNumber(_0x23f478){const _0x145047=a250_0x4ab5;if(typeof _0x23f478===_0x145047(0xbe)&&Number[_0x145047(0xc0)](_0x23f478))return _0x23f478;if(typeof _0x23f478==='string'){const _0x57f526=_0x23f478[_0x145047(0xbc)]();if(!_0x57f526)return undefined;const _0x4eec16=Number(_0x57f526);if(Number[_0x145047(0xc0)](_0x4eec16))return _0x4eec16;}return undefined;}export function normalizeEntityWithIdResponse(_0x663a05){const _0x18fee6=a250_0x4ab5,_0x30d69d=toFiniteNumber(_0x663a05);if(_0x30d69d!==undefined)return{'id':_0x30d69d,'entity':{'id':_0x30d69d}};if(!_0x663a05||typeof _0x663a05!==_0x18fee6(0xc3))return{'id':undefined,'entity':{}};const _0x471a3b={..._0x663a05},_0x2220d1=toFiniteNumber(_0x471a3b['id']);return _0x2220d1!==undefined&&(_0x471a3b['id']=_0x2220d1),{'id':_0x2220d1,'entity':_0x471a3b};}
1
+ (function(_0x29d8ff,_0x34782a){const _0x2bbdd6=a252_0xdba3,_0x4be591=_0x29d8ff();while(!![]){try{const _0x31066c=-parseInt(_0x2bbdd6(0x141))/0x1*(-parseInt(_0x2bbdd6(0x13b))/0x2)+-parseInt(_0x2bbdd6(0x13c))/0x3+parseInt(_0x2bbdd6(0x148))/0x4*(-parseInt(_0x2bbdd6(0x146))/0x5)+parseInt(_0x2bbdd6(0x13f))/0x6+parseInt(_0x2bbdd6(0x143))/0x7+parseInt(_0x2bbdd6(0x13e))/0x8*(-parseInt(_0x2bbdd6(0x13d))/0x9)+-parseInt(_0x2bbdd6(0x140))/0xa*(-parseInt(_0x2bbdd6(0x144))/0xb);if(_0x31066c===_0x34782a)break;else _0x4be591['push'](_0x4be591['shift']());}catch(_0x5f3821){_0x4be591['push'](_0x4be591['shift']());}}}(a252_0x3c9f,0xeeda6));function a252_0x3c9f(){const _0x349822=['4onVqjw','34478WExDWl','4037412hELmgd','54giZfNA','1498064qMQDTr','3630822kgqTHf','50DhxQcS','37XuCXzf','isFinite','1571899qVgrMh','4514609IscoKE','object','359690kKImQU','trim'];a252_0x3c9f=function(){return _0x349822;};return a252_0x3c9f();}function toFiniteNumber(_0x570f9f){const _0xad2d6a=a252_0xdba3;if(typeof _0x570f9f==='number'&&Number['isFinite'](_0x570f9f))return _0x570f9f;if(typeof _0x570f9f==='string'){const _0x1bc302=_0x570f9f[_0xad2d6a(0x147)]();if(!_0x1bc302)return undefined;const _0x4c23e8=Number(_0x1bc302);if(Number[_0xad2d6a(0x142)](_0x4c23e8))return _0x4c23e8;}return undefined;}function a252_0xdba3(_0x5a93ed,_0x363132){_0x5a93ed=_0x5a93ed-0x13b;const _0x3c9f2b=a252_0x3c9f();let _0xdba388=_0x3c9f2b[_0x5a93ed];return _0xdba388;}export function normalizeEntityWithIdResponse(_0x3692e2){const _0x17c567=a252_0xdba3,_0x2aac70=toFiniteNumber(_0x3692e2);if(_0x2aac70!==undefined)return{'id':_0x2aac70,'entity':{'id':_0x2aac70}};if(!_0x3692e2||typeof _0x3692e2!==_0x17c567(0x145))return{'id':undefined,'entity':{}};const _0x27650b={..._0x3692e2},_0x3521d5=toFiniteNumber(_0x27650b['id']);return _0x3521d5!==undefined&&(_0x27650b['id']=_0x3521d5),{'id':_0x3521d5,'entity':_0x27650b};}
@@ -1 +1 @@
1
- (function(_0x3070ff,_0x128534){const _0x2dba9c=a251_0x2278,_0xd7042d=_0x3070ff();while(!![]){try{const _0x2ddd8a=parseInt(_0x2dba9c(0x13d))/0x1+parseInt(_0x2dba9c(0x13f))/0x2*(-parseInt(_0x2dba9c(0x141))/0x3)+-parseInt(_0x2dba9c(0x140))/0x4+parseInt(_0x2dba9c(0x143))/0x5+parseInt(_0x2dba9c(0x13e))/0x6+-parseInt(_0x2dba9c(0x13c))/0x7+-parseInt(_0x2dba9c(0x13b))/0x8*(-parseInt(_0x2dba9c(0x142))/0x9);if(_0x2ddd8a===_0x128534)break;else _0xd7042d['push'](_0xd7042d['shift']());}catch(_0x528a70){_0xd7042d['push'](_0xd7042d['shift']());}}}(a251_0x180c,0x4f90c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a251_0x2278(_0x51a383,_0xc2440d){_0x51a383=_0x51a383-0x13b;const _0x180cf2=a251_0x180c();let _0x227843=_0x180cf2[_0x51a383];return _0x227843;}export async function copyDir(_0x1e1fc1,_0x3d8296){const _0x556903=statSync(_0x1e1fc1);if(_0x556903['isDirectory']()){!existsSync(_0x3d8296)&&mkdirSync(_0x3d8296,{'recursive':!![]});const _0x7c087d=readdirSync(_0x1e1fc1);for(const _0x3b46d9 of _0x7c087d){await copyDir(join(_0x1e1fc1,_0x3b46d9),join(_0x3d8296,_0x3b46d9));}}else copyFileSync(_0x1e1fc1,_0x3d8296);}function a251_0x180c(){const _0x1c1f4f=['1244296rlEbQe','998620OjinJA','3cxDjYY','990IoKngE','2006120OHVPil','54728OoEnNS','3822028WMxOVd','163410kHqcDC','2559378qXMmMy'];a251_0x180c=function(){return _0x1c1f4f;};return a251_0x180c();}export function ensureDir(_0x5f578d){!existsSync(_0x5f578d)&&mkdirSync(_0x5f578d,{'recursive':!![]});}export function pathExists(_0x3d7b78){return existsSync(_0x3d7b78);}
1
+ (function(_0x47ebe6,_0x5d40ab){const _0x1e342e=a253_0xc923,_0x4e27ab=_0x47ebe6();while(!![]){try{const _0x255430=parseInt(_0x1e342e(0x84))/0x1*(-parseInt(_0x1e342e(0x8c))/0x2)+-parseInt(_0x1e342e(0x87))/0x3+parseInt(_0x1e342e(0x88))/0x4+-parseInt(_0x1e342e(0x86))/0x5*(-parseInt(_0x1e342e(0x85))/0x6)+parseInt(_0x1e342e(0x8b))/0x7+-parseInt(_0x1e342e(0x8a))/0x8+parseInt(_0x1e342e(0x89))/0x9;if(_0x255430===_0x5d40ab)break;else _0x4e27ab['push'](_0x4e27ab['shift']());}catch(_0x671e7d){_0x4e27ab['push'](_0x4e27ab['shift']());}}}(a253_0x3502,0xd13dc));function a253_0xc923(_0x4f588,_0x142130){_0x4f588=_0x4f588-0x84;const _0x35024f=a253_0x3502();let _0xc92303=_0x35024f[_0x4f588];return _0xc92303;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a253_0x3502(){const _0x111d90=['430890QPJQeM','115kBzetz','4765821XKJudT','2970872sYlRSR','8473689aMEkbF','11485904SicGZw','7365701HUSXOL','506830BQAhDM','2mJuZYE'];a253_0x3502=function(){return _0x111d90;};return a253_0x3502();}export async function copyDir(_0x198e04,_0x3dab41){const _0x2a7b9e=statSync(_0x198e04);if(_0x2a7b9e['isDirectory']()){!existsSync(_0x3dab41)&&mkdirSync(_0x3dab41,{'recursive':!![]});const _0x28210c=readdirSync(_0x198e04);for(const _0x7dedfc of _0x28210c){await copyDir(join(_0x198e04,_0x7dedfc),join(_0x3dab41,_0x7dedfc));}}else copyFileSync(_0x198e04,_0x3dab41);}export function ensureDir(_0x54bb7b){!existsSync(_0x54bb7b)&&mkdirSync(_0x54bb7b,{'recursive':!![]});}export function pathExists(_0x52f5b5){return existsSync(_0x52f5b5);}
@@ -1 +1 @@
1
- const a252_0xa19320=a252_0x1bb9;(function(_0x224979,_0x2216ec){const _0x1fc32e=a252_0x1bb9,_0x4650e8=_0x224979();while(!![]){try{const _0x1ea7ea=parseInt(_0x1fc32e(0x188))/0x1*(-parseInt(_0x1fc32e(0x199))/0x2)+-parseInt(_0x1fc32e(0x190))/0x3*(parseInt(_0x1fc32e(0x17f))/0x4)+parseInt(_0x1fc32e(0x17e))/0x5*(-parseInt(_0x1fc32e(0x191))/0x6)+-parseInt(_0x1fc32e(0x18c))/0x7+parseInt(_0x1fc32e(0x197))/0x8+-parseInt(_0x1fc32e(0x198))/0x9+parseInt(_0x1fc32e(0x19b))/0xa;if(_0x1ea7ea===_0x2216ec)break;else _0x4650e8['push'](_0x4650e8['shift']());}catch(_0x2b5acc){_0x4650e8['push'](_0x4650e8['shift']());}}}(a252_0x3024,0xe71c1));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 _0x23df12=getTemplateBaseUrl();return _0x23df12+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a252_0xa19320(0x180),a252_0xa19320(0x18e));export async function fetchGuidesFromCDN(){const _0x58c1e1=a252_0xa19320,_0x2bb11b=getGuidesCdnUrl(),_0x2ee709=await fetch(_0x2bb11b,{'headers':{'Accept':_0x58c1e1(0x19e)}});if(!_0x2ee709['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2ee709['status']+'\x20'+_0x2ee709[_0x58c1e1(0x193)]);const _0x28a115=await _0x2ee709[_0x58c1e1(0x181)]();if(!_0x28a115[_0x58c1e1(0x18d)]||typeof _0x28a115[_0x58c1e1(0x18d)]!==_0x58c1e1(0x196))throw new Error('CDN\x20返回数据格式错误');return _0x28a115;}function a252_0x3024(){const _0x2992a0=['lastUpdated','skillTemplate','keys','push','path','1lkICTH','replace','\x0a\x0a>更新时间:','extendContent','10919328fXIMFg','guides','cache','map','6IDAXiZ','1989366gVFLgs','join','statusText','CDN\x20数据中缺少\x20skillTemplate','utf-8','object','883160otcRnf','2821032QEisUc','1695608atbknS','.lovrabet/skill/guides','55940540GhTOAw','title','entries','application/json','content','trimEnd','10JuzrSu','2747092NahnKq','.lovrabet','json','length'];a252_0x3024=function(){return _0x2992a0;};return a252_0x3024();}export function writeGuidesToProject(_0x5bcd68,_0x34bf01,_0x181afa=a252_0xa19320(0x19a),_0x55f476){const _0x670d83=a252_0xa19320,_0x55295a=join(_0x34bf01,_0x181afa);mkdirSync(_0x55295a,{'recursive':!![]});for(const [_0x5a581b,_0x1b6ef3]of Object[_0x670d83(0x19d)](_0x5bcd68['guides'])){let _0x228167=_0x1b6ef3['content'];_0x1b6ef3[_0x670d83(0x183)]&&(_0x228167=appendUpdateTime(_0x228167,_0x1b6ef3[_0x670d83(0x183)])),writeFileSync(join(_0x55295a,_0x5a581b+'.md'),_0x228167,_0x670d83(0x195));}}export function appendUpdateTime(_0x4516d8,_0x111461){const _0x379845=a252_0xa19320;return _0x4516d8=_0x4516d8[_0x379845(0x189)](/\n*>更新时间:.*$/m,''),_0x4516d8['trimEnd']()+(_0x379845(0x18a)+_0x111461);}export function getSkillTemplate(_0x3b62d2){const _0x5c46fd=a252_0xa19320;return _0x3b62d2['skillTemplate']?.[_0x5c46fd(0x17c)]||'';}export function appendExtendContents(_0x594e9e,_0xe1bf86,_0x537eba){const _0x3f3c75=a252_0xa19320,_0x185540=[];for(const [,_0x39e94d]of Object[_0x3f3c75(0x19d)](_0xe1bf86['guides'])){_0x39e94d['extendContent']&&_0x185540[_0x3f3c75(0x186)](_0x39e94d[_0x3f3c75(0x18b)][_0x3f3c75(0x17d)]());}if(_0x185540[_0x3f3c75(0x182)]===0x0)return _0x594e9e;return _0x594e9e[_0x3f3c75(0x17d)]()+'\x0a\x0a'+_0x185540[_0x3f3c75(0x192)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x22ca5f,_0x3b2012,_0x102b81){const _0x5e3033=a252_0xa19320,_0x149f8b=getSkillTemplate(_0x22ca5f);if(!_0x149f8b)throw new Error(_0x5e3033(0x194));const _0x59afac=dirname(_0x3b2012);mkdirSync(_0x59afac,{'recursive':!![]});let _0x4f41e6=_0x149f8b[_0x5e3033(0x189)](/\{\{IDE_NAME\}\}/g,_0x102b81);_0x4f41e6=appendExtendContents(_0x4f41e6,_0x22ca5f),_0x22ca5f[_0x5e3033(0x184)]['lastUpdated']&&(_0x4f41e6=appendUpdateTime(_0x4f41e6,_0x22ca5f[_0x5e3033(0x184)][_0x5e3033(0x183)])),writeFileSync(_0x3b2012,_0x4f41e6,'utf-8');}export async function installGuides(_0x4397d2){const _0x593691=a252_0xa19320,_0x2cd0f2=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2cd0f2,_0x4397d2),Object[_0x593691(0x185)](_0x2cd0f2['guides'])[_0x593691(0x182)];}function a252_0x1bb9(_0x286cc2,_0x43662d){_0x286cc2=_0x286cc2-0x17c;const _0x302432=a252_0x3024();let _0x1bb9dc=_0x302432[_0x286cc2];return _0x1bb9dc;}export function getGuidesSummary(_0x480a2c){const _0x40e3be=a252_0xa19320;return Object[_0x40e3be(0x19d)](_0x480a2c['guides'])[_0x40e3be(0x18f)](([_0x4eaeef,_0x547280])=>({'key':_0x4eaeef,'title':_0x547280[_0x40e3be(0x19c)],'path':_0x547280[_0x40e3be(0x187)]}));}
1
+ const a254_0xe4e90a=a254_0x2da7;(function(_0x4cf228,_0x55e719){const _0x5c32af=a254_0x2da7,_0x17e629=_0x4cf228();while(!![]){try{const _0x458396=-parseInt(_0x5c32af(0x1bf))/0x1+parseInt(_0x5c32af(0x1be))/0x2+-parseInt(_0x5c32af(0x1c0))/0x3+parseInt(_0x5c32af(0x1c2))/0x4+parseInt(_0x5c32af(0x1cb))/0x5*(-parseInt(_0x5c32af(0x1cd))/0x6)+parseInt(_0x5c32af(0x1b1))/0x7*(parseInt(_0x5c32af(0x1c8))/0x8)+parseInt(_0x5c32af(0x1b6))/0x9*(parseInt(_0x5c32af(0x1b3))/0xa);if(_0x458396===_0x55e719)break;else _0x17e629['push'](_0x17e629['shift']());}catch(_0x187815){_0x17e629['push'](_0x17e629['shift']());}}}(a254_0x2510,0x8f19c));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 _0x31859a=a254_0x2da7,_0x2b0184=getTemplateBaseUrl();return _0x2b0184+_0x31859a(0x1b4);}const CACHE_DIR=join(homedir(),a254_0xe4e90a(0x1c4),a254_0xe4e90a(0x1af));export async function fetchGuidesFromCDN(){const _0x4b525a=a254_0xe4e90a,_0x293673=getGuidesCdnUrl(),_0x2281ca=await fetch(_0x293673,{'headers':{'Accept':'application/json'}});if(!_0x2281ca['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2281ca[_0x4b525a(0x1aa)]+'\x20'+_0x2281ca[_0x4b525a(0x1bc)]);const _0x567a8f=await _0x2281ca[_0x4b525a(0x1bd)]();if(!_0x567a8f['guides']||typeof _0x567a8f[_0x4b525a(0x1b0)]!==_0x4b525a(0x1ac))throw new Error(_0x4b525a(0x1b8));return _0x567a8f;}export function writeGuidesToProject(_0x409173,_0x72697a,_0x101a9c=a254_0xe4e90a(0x1ad),_0x5b44d1){const _0x496d3a=a254_0xe4e90a,_0x59518f=join(_0x72697a,_0x101a9c);mkdirSync(_0x59518f,{'recursive':!![]});for(const [_0x3a2cf6,_0x557556]of Object[_0x496d3a(0x1cc)](_0x409173[_0x496d3a(0x1b0)])){let _0x34a080=_0x557556[_0x496d3a(0x1ab)];_0x557556['lastUpdated']&&(_0x34a080=appendUpdateTime(_0x34a080,_0x557556['lastUpdated'])),writeFileSync(join(_0x59518f,_0x3a2cf6+_0x496d3a(0x1ca)),_0x34a080,'utf-8');}}export function appendUpdateTime(_0x274496,_0x47302e){const _0x244068=a254_0xe4e90a;return _0x274496=_0x274496[_0x244068(0x1a9)](/\n*>更新时间:.*$/m,''),_0x274496[_0x244068(0x1b5)]()+(_0x244068(0x1c1)+_0x47302e);}export function getSkillTemplate(_0x10fec8){const _0x4acff9=a254_0xe4e90a;return _0x10fec8['skillTemplate']?.[_0x4acff9(0x1ab)]||'';}function a254_0x2da7(_0x120c4d,_0x2ee383){_0x120c4d=_0x120c4d-0x1a9;const _0x2510dc=a254_0x2510();let _0x2da7ea=_0x2510dc[_0x120c4d];return _0x2da7ea;}export function appendExtendContents(_0x31f2f2,_0xf0fc88,_0x5ce5b4){const _0x356c43=a254_0xe4e90a,_0x48ff26=[];for(const [,_0x3f40f1]of Object[_0x356c43(0x1cc)](_0xf0fc88[_0x356c43(0x1b0)])){_0x3f40f1[_0x356c43(0x1c9)]&&_0x48ff26[_0x356c43(0x1c6)](_0x3f40f1[_0x356c43(0x1c9)]['trimEnd']());}if(_0x48ff26['length']===0x0)return _0x31f2f2;return _0x31f2f2[_0x356c43(0x1b5)]()+'\x0a\x0a'+_0x48ff26[_0x356c43(0x1ba)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xb63224,_0x52d2f7,_0x19bd16){const _0x4a837c=a254_0xe4e90a,_0x19b82f=getSkillTemplate(_0xb63224);if(!_0x19b82f)throw new Error(_0x4a837c(0x1ae));const _0x3fd569=dirname(_0x52d2f7);mkdirSync(_0x3fd569,{'recursive':!![]});let _0x269074=_0x19b82f['replace'](/\{\{IDE_NAME\}\}/g,_0x19bd16);_0x269074=appendExtendContents(_0x269074,_0xb63224),_0xb63224['skillTemplate']['lastUpdated']&&(_0x269074=appendUpdateTime(_0x269074,_0xb63224[_0x4a837c(0x1c3)][_0x4a837c(0x1b2)])),writeFileSync(_0x52d2f7,_0x269074,_0x4a837c(0x1b9));}export async function installGuides(_0x4764f8){const _0x4a2ddf=a254_0xe4e90a,_0x280c1a=await fetchGuidesFromCDN();return writeGuidesToProject(_0x280c1a,_0x4764f8),Object[_0x4a2ddf(0x1bb)](_0x280c1a[_0x4a2ddf(0x1b0)])[_0x4a2ddf(0x1c5)];}export function getGuidesSummary(_0x3b7ea4){const _0x57f363=a254_0xe4e90a;return Object['entries'](_0x3b7ea4[_0x57f363(0x1b0)])['map'](([_0x2d5952,_0x486bd9])=>({'key':_0x2d5952,'title':_0x486bd9[_0x57f363(0x1c7)],'path':_0x486bd9[_0x57f363(0x1b7)]}));}function a254_0x2510(){const _0x5b89b4=['220518DbOnUs','2241903SoFqOB','\x0a\x0a>更新时间:','47812uuVotT','skillTemplate','.lovrabet','length','push','title','440YpepIG','extendContent','.md','15xBTKoR','entries','2946PNLFwy','replace','status','content','object','.lovrabet/skill/guides','CDN\x20数据中缺少\x20skillTemplate','cache','guides','38157XXksVS','lastUpdated','108470GPjZfy','/skills/guides.json','trimEnd','495pFayuA','path','CDN\x20返回数据格式错误','utf-8','join','keys','statusText','json','1294178HNqang'];a254_0x2510=function(){return _0x5b89b4;};return a254_0x2510();}
@@ -1 +1 @@
1
- function a253_0x3557(_0x3e98e9,_0xeff4e4){_0x3e98e9=_0x3e98e9-0xda;const _0x3c1127=a253_0x3c11();let _0x3557a9=_0x3c1127[_0x3e98e9];return _0x3557a9;}(function(_0x46580a,_0x2cbd15){const _0x1fc823=a253_0x3557,_0x5767b2=_0x46580a();while(!![]){try{const _0x3f9759=parseInt(_0x1fc823(0xf5))/0x1*(-parseInt(_0x1fc823(0xed))/0x2)+parseInt(_0x1fc823(0xec))/0x3+parseInt(_0x1fc823(0xe2))/0x4+parseInt(_0x1fc823(0xf0))/0x5*(parseInt(_0x1fc823(0xf1))/0x6)+-parseInt(_0x1fc823(0xe7))/0x7+-parseInt(_0x1fc823(0xf4))/0x8*(parseInt(_0x1fc823(0xde))/0x9)+parseInt(_0x1fc823(0xdc))/0xa;if(_0x3f9759===_0x2cbd15)break;else _0x5767b2['push'](_0x5767b2['shift']());}catch(_0x1423a7){_0x5767b2['push'](_0x5767b2['shift']());}}}(a253_0x3c11,0xc70a5));export async function httpRequest(_0xa351a8,_0x1882ed={}){const _0x5b666a=a253_0x3557,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1882ed;let _0x22b010=null;for(let _0x297c82=0x0;_0x297c82<=retries;_0x297c82++){try{const _0x28cc28=new AbortController(),_0x1a1f84=setTimeout(()=>_0x28cc28[_0x5b666a(0xe4)](),timeout),_0x25d687=await fetch(_0xa351a8,{'headers':headers,'signal':_0x28cc28[_0x5b666a(0xf2)]});clearTimeout(_0x1a1f84);let _0x192614;const _0x4d7ebb=_0x25d687[_0x5b666a(0xe9)]['get'](_0x5b666a(0xf9));return _0x4d7ebb?.[_0x5b666a(0xf8)](_0x5b666a(0xda))?_0x192614=await _0x25d687[_0x5b666a(0xef)]():_0x192614=await _0x25d687[_0x5b666a(0xdf)](),{'ok':_0x25d687['ok'],'status':_0x25d687[_0x5b666a(0xe8)],'statusText':_0x25d687[_0x5b666a(0xe0)],'data':_0x192614,'headers':_0x25d687[_0x5b666a(0xe9)],'url':_0x25d687[_0x5b666a(0xf3)],'text':()=>_0x25d687[_0x5b666a(0xdf)]()};}catch(_0x2fb98f){_0x22b010=_0x2fb98f instanceof Error?_0x2fb98f:new Error(String(_0x2fb98f));if(_0x297c82===retries)break;if(shouldRetry(_0x2fb98f)){console[_0x5b666a(0xee)](_0x5b666a(0xe6)+retryDelay+_0x5b666a(0xf6)+(_0x297c82+0x1)+_0x5b666a(0xdd)),await sleep(retryDelay);continue;}else break;}}throw _0x22b010||new Error(_0x5b666a(0xea));}function shouldRetry(_0x3903ed){const _0x3e9cc5=a253_0x3557;if(_0x3903ed instanceof Error){if(_0x3903ed[_0x3e9cc5(0xe3)]===_0x3e9cc5(0xe1))return![];if(_0x3903ed[_0x3e9cc5(0xe3)]===_0x3e9cc5(0xdb)&&_0x3903ed[_0x3e9cc5(0xeb)]['includes'](_0x3e9cc5(0xe5)))return!![];if(_0x3903ed[_0x3e9cc5(0xeb)]['includes'](_0x3e9cc5(0xfa)))return!![];if(_0x3903ed[_0x3e9cc5(0xeb)][_0x3e9cc5(0xf8)](_0x3e9cc5(0xf7)))return![];}return![];}function sleep(_0x5db9dc){return new Promise(_0x3a1a4c=>setTimeout(_0x3a1a4c,_0x5db9dc));}export function validateUrl(_0xd7f169){try{return new URL(_0xd7f169),!![];}catch{return![];}}function a253_0x3c11(){const _0x588ba6=['1952802eeEqXU','2330MZpxZp','log','json','20aAcTpk','1133988bIfHGa','signal','url','115088NOwCgW','1006HAysAI','ms\x20后进行第\x20','ENOTFOUND','includes','content-type','ECONNRESET','application/json','TypeError','8635510DkKPcb','\x20次重试...','63xIGyaV','text','statusText','AbortError','2017776UzmMIp','name','abort','fetch','*\x20请求失败,','4808720AcQLkS','status','headers','Request\x20failed','message'];a253_0x3c11=function(){return _0x588ba6;};return a253_0x3c11();}
1
+ (function(_0x277b19,_0x56a0f5){const _0x20a6ce=a255_0x48d1,_0x245105=_0x277b19();while(!![]){try{const _0x4e3a17=parseInt(_0x20a6ce(0x94))/0x1*(-parseInt(_0x20a6ce(0x86))/0x2)+-parseInt(_0x20a6ce(0x95))/0x3+parseInt(_0x20a6ce(0x84))/0x4+-parseInt(_0x20a6ce(0x8c))/0x5+parseInt(_0x20a6ce(0x8b))/0x6*(-parseInt(_0x20a6ce(0x90))/0x7)+parseInt(_0x20a6ce(0x9b))/0x8*(-parseInt(_0x20a6ce(0x9d))/0x9)+parseInt(_0x20a6ce(0x87))/0xa;if(_0x4e3a17===_0x56a0f5)break;else _0x245105['push'](_0x245105['shift']());}catch(_0x4717c8){_0x245105['push'](_0x245105['shift']());}}}(a255_0x37b0,0xa03ef));export async function httpRequest(_0x44a4df,_0x2dd103={}){const _0x335b2e=a255_0x48d1,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2dd103;let _0x299174=null;for(let _0x2c2b6c=0x0;_0x2c2b6c<=retries;_0x2c2b6c++){try{const _0x34f2e0=new AbortController(),_0x756207=setTimeout(()=>_0x34f2e0['abort'](),timeout),_0x284d80=await fetch(_0x44a4df,{'headers':headers,'signal':_0x34f2e0[_0x335b2e(0x85)]});clearTimeout(_0x756207);let _0x4fb1df;const _0x194eb9=_0x284d80['headers'][_0x335b2e(0x9e)]('content-type');return _0x194eb9?.[_0x335b2e(0x89)](_0x335b2e(0x8e))?_0x4fb1df=await _0x284d80['json']():_0x4fb1df=await _0x284d80[_0x335b2e(0x96)](),{'ok':_0x284d80['ok'],'status':_0x284d80[_0x335b2e(0x93)],'statusText':_0x284d80['statusText'],'data':_0x4fb1df,'headers':_0x284d80[_0x335b2e(0x8d)],'url':_0x284d80[_0x335b2e(0x97)],'text':()=>_0x284d80['text']()};}catch(_0x47130e){_0x299174=_0x47130e instanceof Error?_0x47130e:new Error(String(_0x47130e));if(_0x2c2b6c===retries)break;if(shouldRetry(_0x47130e)){console[_0x335b2e(0x99)](_0x335b2e(0x82)+retryDelay+_0x335b2e(0x9a)+(_0x2c2b6c+0x1)+_0x335b2e(0x8a)),await sleep(retryDelay);continue;}else break;}}throw _0x299174||new Error(_0x335b2e(0x9c));}function shouldRetry(_0x1db522){const _0x2a5d88=a255_0x48d1;if(_0x1db522 instanceof Error){if(_0x1db522['name']===_0x2a5d88(0x91))return![];if(_0x1db522[_0x2a5d88(0x83)]===_0x2a5d88(0x88)&&_0x1db522[_0x2a5d88(0x92)][_0x2a5d88(0x89)]('fetch'))return!![];if(_0x1db522[_0x2a5d88(0x92)][_0x2a5d88(0x89)](_0x2a5d88(0x98)))return!![];if(_0x1db522[_0x2a5d88(0x92)][_0x2a5d88(0x89)](_0x2a5d88(0x8f)))return![];}return![];}function sleep(_0x2e93eb){return new Promise(_0x48779b=>setTimeout(_0x48779b,_0x2e93eb));}function a255_0x48d1(_0x98ef,_0x503164){_0x98ef=_0x98ef-0x82;const _0x37b0e9=a255_0x37b0();let _0x48d1f0=_0x37b0e9[_0x98ef];return _0x48d1f0;}export function validateUrl(_0x19af56){try{return new URL(_0x19af56),!![];}catch{return![];}}function a255_0x37b0(){const _0x31bedc=['1382067OgfKRa','text','url','ECONNRESET','log','ms\x20后进行第\x20','8bYFmCb','Request\x20failed','6508503wqPCvw','get','*\x20请求失败,','name','2919644NuEDGJ','signal','2rkxUYh','32523190jSmGsS','TypeError','includes','\x20次重试...','740034SpDCzl','6445385vpuUcC','headers','application/json','ENOTFOUND','21JqcgqD','AbortError','message','status','482913icwMZa'];a255_0x37b0=function(){return _0x31bedc;};return a255_0x37b0();}
@@ -1 +1 @@
1
- (function(_0xd1ca4d,_0x134c19){const _0x58465e=a254_0x3ceb,_0x5c73af=_0xd1ca4d();while(!![]){try{const _0x345bf9=parseInt(_0x58465e(0xf0))/0x1*(-parseInt(_0x58465e(0xfe))/0x2)+parseInt(_0x58465e(0xff))/0x3*(-parseInt(_0x58465e(0xee))/0x4)+parseInt(_0x58465e(0xed))/0x5*(-parseInt(_0x58465e(0xec))/0x6)+parseInt(_0x58465e(0xef))/0x7+parseInt(_0x58465e(0xf3))/0x8*(parseInt(_0x58465e(0xfa))/0x9)+parseInt(_0x58465e(0xf7))/0xa*(parseInt(_0x58465e(0xf4))/0xb)+-parseInt(_0x58465e(0xf5))/0xc*(-parseInt(_0x58465e(0xfb))/0xd);if(_0x345bf9===_0x134c19)break;else _0x5c73af['push'](_0x5c73af['shift']());}catch(_0x3a023f){_0x5c73af['push'](_0x5c73af['shift']());}}}(a254_0x1284,0x6fbe5));function env(_0x3d75cb){return process.env[`RABETBASE_${_0x3d75cb}`]||process.env[`LOVRABET_${_0x3d75cb}`]||undefined;}export function isNonInteractive(_0x3b86e0){const _0x4f5093=a254_0x3ceb;return!!(_0x3b86e0[_0x4f5093(0xfd)]||_0x3b86e0['ci']||env('CI')===_0x4f5093(0xf6)||process.env.CI===_0x4f5093(0xf6)||!process[_0x4f5093(0xf1)][_0x4f5093(0xf9)]||!isStdinRawModeSupported());}function a254_0x3ceb(_0x5af9b9,_0x3e2c5f){_0x5af9b9=_0x5af9b9-0xec;const _0x1284ee=a254_0x1284();let _0x3cebaf=_0x1284ee[_0x5af9b9];return _0x3cebaf;}function isStdinRawModeSupported(){const _0x47b67f=a254_0x3ceb;if(!process[_0x47b67f(0xf2)][_0x47b67f(0xf9)])return![];try{const _0x305188=process[_0x47b67f(0xf2)][_0x47b67f(0xfc)];return process[_0x47b67f(0xf2)][_0x47b67f(0xf8)](!![]),process[_0x47b67f(0xf2)][_0x47b67f(0xf8)](_0x305188??![]),!![];}catch{return![];}}function a254_0x1284(){const _0x1ecb2c=['6974328FfyUdj','true','130fzmWQS','setRawMode','isTTY','9MaJisQ','13JhnMzh','isRaw','nonInteractive','48946fsQydR','2180163StHZZQ','672EuVXLF','32590NCuXjA','4SiwsLI','4106851iluwFK','2dWxBfx','stdout','stdin','554744EGFqGN','614438nALfzu'];a254_0x1284=function(){return _0x1ecb2c;};return a254_0x1284();}
1
+ (function(_0x31a7f7,_0xb1a5ec){const _0x5d72e7=a256_0x56f2,_0x4cee43=_0x31a7f7();while(!![]){try{const _0x33da10=parseInt(_0x5d72e7(0x8b))/0x1*(-parseInt(_0x5d72e7(0x90))/0x2)+-parseInt(_0x5d72e7(0x94))/0x3+-parseInt(_0x5d72e7(0x92))/0x4+-parseInt(_0x5d72e7(0x87))/0x5+parseInt(_0x5d72e7(0x84))/0x6*(parseInt(_0x5d72e7(0x8a))/0x7)+parseInt(_0x5d72e7(0x8e))/0x8+parseInt(_0x5d72e7(0x86))/0x9*(parseInt(_0x5d72e7(0x91))/0xa);if(_0x33da10===_0xb1a5ec)break;else _0x4cee43['push'](_0x4cee43['shift']());}catch(_0x1c9a26){_0x4cee43['push'](_0x4cee43['shift']());}}}(a256_0x4b67,0xddfc7));function env(_0x46b923){return process.env[`RABETBASE_${_0x46b923}`]||process.env[`LOVRABET_${_0x46b923}`]||undefined;}export function isNonInteractive(_0xe73a30){const _0x39ea62=a256_0x56f2;return!!(_0xe73a30[_0x39ea62(0x8f)]||_0xe73a30['ci']||env('CI')===_0x39ea62(0x93)||process.env.CI===_0x39ea62(0x93)||!process[_0x39ea62(0x89)][_0x39ea62(0x8d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1870d4=a256_0x56f2;if(!process[_0x1870d4(0x8c)][_0x1870d4(0x8d)])return![];try{const _0x3fa95d=process[_0x1870d4(0x8c)][_0x1870d4(0x88)];return process[_0x1870d4(0x8c)][_0x1870d4(0x85)](!![]),process['stdin'][_0x1870d4(0x85)](_0x3fa95d??![]),!![];}catch{return![];}}function a256_0x56f2(_0x4f4836,_0x449626){_0x4f4836=_0x4f4836-0x84;const _0x4b67f1=a256_0x4b67();let _0x56f209=_0x4b67f1[_0x4f4836];return _0x56f209;}function a256_0x4b67(){const _0x5abe47=['130hybRLP','stdin','isTTY','12415952qWfnUg','nonInteractive','23140wtHdCl','2796350uAQKUm','5230148jnnTRF','true','900651gEkcOd','6hWIYce','setRawMode','90tGISno','4872900rarUgJ','isRaw','stdout','4531415dwkOVM'];a256_0x4b67=function(){return _0x5abe47;};return a256_0x4b67();}
@@ -1 +1 @@
1
- const a255_0x156a7c=a255_0x5a6e;(function(_0x247ac1,_0x290b7b){const _0x2c78d9=a255_0x5a6e,_0x3ab575=_0x247ac1();while(!![]){try{const _0x44ff07=parseInt(_0x2c78d9(0x1fa))/0x1+-parseInt(_0x2c78d9(0x207))/0x2*(-parseInt(_0x2c78d9(0x1ea))/0x3)+parseInt(_0x2c78d9(0x20d))/0x4+parseInt(_0x2c78d9(0x20f))/0x5*(-parseInt(_0x2c78d9(0x201))/0x6)+parseInt(_0x2c78d9(0x219))/0x7+parseInt(_0x2c78d9(0x213))/0x8*(parseInt(_0x2c78d9(0x208))/0x9)+parseInt(_0x2c78d9(0x20e))/0xa;if(_0x44ff07===_0x290b7b)break;else _0x3ab575['push'](_0x3ab575['shift']());}catch(_0x51632c){_0x3ab575['push'](_0x3ab575['shift']());}}}(a255_0x5dd2,0xdc869));import a255_0x467ca6 from'winston';function a255_0x5a6e(_0x228e8c,_0x3e23b8){_0x228e8c=_0x228e8c-0x1e4;const _0x5dd252=a255_0x5dd2();let _0x5a6e39=_0x5dd252[_0x228e8c];return _0x5a6e39;}import a255_0x14a9d6 from'node:fs';import a255_0x5a162d from'node:path';class Logger{[a255_0x156a7c(0x1e8)];[a255_0x156a7c(0x1f6)];[a255_0x156a7c(0x1f0)]='';constructor(){const _0x13389b=a255_0x156a7c;this[_0x13389b(0x1f6)]='';}['setRawCommand'](_0x7320b0){const _0x4b7284=a255_0x156a7c;this[_0x4b7284(0x1f0)]=_0x7320b0;}[a255_0x156a7c(0x1fd)](){const _0x44964e=a255_0x156a7c,_0x22659a=a255_0x5a162d[_0x44964e(0x1ed)](this[_0x44964e(0x1f6)]);!a255_0x14a9d6[_0x44964e(0x1fc)](_0x22659a)&&a255_0x14a9d6[_0x44964e(0x216)](_0x22659a,{'recursive':!![]});const _0x3e4c3c=a255_0x467ca6[_0x44964e(0x1e7)][_0x44964e(0x210)](a255_0x467ca6[_0x44964e(0x1e7)][_0x44964e(0x1fe)](),a255_0x467ca6['format'][_0x44964e(0x1e6)]({'stack':!![]}),a255_0x467ca6['format'][_0x44964e(0x1ee)](_0x30a865=>{const _0xd386de=_0x44964e,_0xe2b832={'timestamp':_0x30a865[_0xd386de(0x1fe)]||new Date()['toISOString'](),'level':_0x30a865[_0xd386de(0x1f2)]||'info','command':_0x30a865[_0xd386de(0x1e4)]||_0xd386de(0x20b),'rawCommand':_0x30a865[_0xd386de(0x20a)]||this[_0xd386de(0x1f0)]||undefined,'message':_0x30a865[_0xd386de(0x1f1)]||'','duration':_0x30a865[_0xd386de(0x1e9)]||undefined,'details':_0x30a865['details']||undefined};return JSON[_0xd386de(0x1f4)](_0xe2b832);}));this[_0x44964e(0x1e8)]=a255_0x467ca6[_0x44964e(0x200)]({'level':_0x44964e(0x1ff),'format':_0x3e4c3c,'transports':[new a255_0x467ca6[(_0x44964e(0x1fb))][(_0x44964e(0x204))]({'filename':this[_0x44964e(0x1f6)],'level':_0x44964e(0x1ff)})],'silent':![]}),a255_0x467ca6[_0x44964e(0x211)]({'success':_0x44964e(0x21a),'error':'red','warn':'yellow','info':'blue'});}['setLogPath'](_0x19dba3){const _0x477bda=a255_0x156a7c;this[_0x477bda(0x1f6)]=a255_0x5a162d['join'](_0x19dba3,'.lovrabet.log'),this[_0x477bda(0x1e8)]&&this[_0x477bda(0x1e8)][_0x477bda(0x20c)](),this['initWinstonLogger']();}['info'](_0x1c7a0f,_0x526fe0,_0x3ad5b1){const _0x3a7051=a255_0x156a7c;if(!this[_0x3a7051(0x1f6)]||!this[_0x3a7051(0x1e8)])return;this['winstonLogger'][_0x3a7051(0x1ff)](_0x526fe0,{'command':_0x1c7a0f,'details':_0x3ad5b1});}[a255_0x156a7c(0x217)](_0xa2d733,_0x465c46,_0x28797c,_0x5cc8de){const _0x44047f=a255_0x156a7c;if(!this[_0x44047f(0x1f6)]||!this['winstonLogger'])return;this[_0x44047f(0x1e8)][_0x44047f(0x1eb)](_0x44047f(0x1ff),_0x465c46,{'level':'success','command':_0xa2d733,'duration':_0x28797c,'details':_0x5cc8de});}[a255_0x156a7c(0x1e5)](_0x4cf393,_0x34ac15,_0x497840){const _0xf5cbb=a255_0x156a7c;if(!this['logFilePath']||!this[_0xf5cbb(0x1e8)])return;this[_0xf5cbb(0x1e8)][_0xf5cbb(0x1e5)](_0x34ac15,{'command':_0x4cf393,'details':_0x497840});}[a255_0x156a7c(0x1ec)](_0x4eeca1,_0x564812,_0x132fa4){const _0xa725=a255_0x156a7c;if(!this['logFilePath']||!this[_0xa725(0x1e8)])return;this[_0xa725(0x1e8)][_0xa725(0x1ec)](_0x564812,{'command':_0x4eeca1,'details':_0x132fa4});}async['logTask'](_0x34af39,_0x441cbc,_0x9544e){const _0x230b0a=a255_0x156a7c,_0x2358e5=Date['now']();this['info'](_0x34af39,_0x230b0a(0x1f3)+_0x441cbc);try{const _0x501cea=await _0x9544e(),_0x31a6ad=Date['now']()-_0x2358e5;return this[_0x230b0a(0x217)](_0x34af39,_0x230b0a(0x1f8)+_0x441cbc,_0x31a6ad),_0x501cea;}catch(_0x381eec){const _0x1be0c3=Date[_0x230b0a(0x218)]()-_0x2358e5;this[_0x230b0a(0x1e5)](_0x34af39,_0x230b0a(0x205)+_0x441cbc,{'error':_0x381eec instanceof Error?_0x381eec[_0x230b0a(0x1f1)]:String(_0x381eec),'duration':_0x1be0c3});throw _0x381eec;}}[a255_0x156a7c(0x1f5)](){const _0x513646=a255_0x156a7c;try{if(!a255_0x14a9d6[_0x513646(0x1fc)](this[_0x513646(0x1f6)]))return[];const _0x24519f=a255_0x14a9d6['readFileSync'](this[_0x513646(0x1f6)],_0x513646(0x202));return _0x24519f[_0x513646(0x215)]('\x0a')['filter'](_0x820ee2=>_0x820ee2[_0x513646(0x203)]())[_0x513646(0x1ef)](_0x37c399=>JSON[_0x513646(0x1f7)](_0x37c399));}catch(_0x5debef){return console[_0x513646(0x1ec)](_0x513646(0x206),_0x5debef),[];}}[a255_0x156a7c(0x214)](){const _0xfece24=a255_0x156a7c;try{a255_0x14a9d6[_0xfece24(0x1fc)](this[_0xfece24(0x1f6)])&&a255_0x14a9d6[_0xfece24(0x209)](this[_0xfece24(0x1f6)],'',_0xfece24(0x202));}catch(_0x24f3af){console[_0xfece24(0x1ec)](_0xfece24(0x212),_0x24f3af);}}[a255_0x156a7c(0x1f9)](){const _0x3b5157=a255_0x156a7c;return this[_0x3b5157(0x1e8)];}}function a255_0x5dd2(){const _0x3ae0b6=['format','winstonLogger','duration','18QRStaR','log','warn','dirname','printf','map','currentRawCommand','message','level','开始执行:\x20','stringify','readLogs','logFilePath','parse','完成:\x20','getWinstonInstance','66093XJHjsQ','transports','existsSync','initWinstonLogger','timestamp','info','createLogger','60csgGZb','utf8','trim','File','失败:\x20','Failed\x20to\x20read\x20logs:','110916IjyhVg','54657etExYh','writeFileSync','rawCommand','unknown','clear','686472lbwtxt','3964080KCJKpr','736955fqcHIw','combine','addColors','Failed\x20to\x20clear\x20logs:','200dGqtKn','clearLogs','split','mkdirSync','success','now','8809437cIfebm','green','command','error','errors'];a255_0x5dd2=function(){return _0x3ae0b6;};return a255_0x5dd2();}export const logger=new Logger();
1
+ const a257_0x173336=a257_0x4cbb;(function(_0x356172,_0x612b0f){const _0x50cb8d=a257_0x4cbb,_0x12470f=_0x356172();while(!![]){try{const _0x380c2b=-parseInt(_0x50cb8d(0x94))/0x1*(-parseInt(_0x50cb8d(0x85))/0x2)+-parseInt(_0x50cb8d(0x6a))/0x3*(parseInt(_0x50cb8d(0x6b))/0x4)+parseInt(_0x50cb8d(0x8f))/0x5+-parseInt(_0x50cb8d(0x84))/0x6+parseInt(_0x50cb8d(0x92))/0x7+parseInt(_0x50cb8d(0x87))/0x8*(parseInt(_0x50cb8d(0x6e))/0x9)+-parseInt(_0x50cb8d(0x80))/0xa;if(_0x380c2b===_0x612b0f)break;else _0x12470f['push'](_0x12470f['shift']());}catch(_0x215d26){_0x12470f['push'](_0x12470f['shift']());}}}(a257_0x150f,0x462e1));import a257_0x43b66a from'winston';function a257_0x4cbb(_0x21598c,_0x4a471c){_0x21598c=_0x21598c-0x66;const _0x150fe2=a257_0x150f();let _0x4cbbbc=_0x150fe2[_0x21598c];return _0x4cbbbc;}import a257_0x25854d from'node:fs';import a257_0x49ef16 from'node:path';class Logger{[a257_0x173336(0x8a)];[a257_0x173336(0x8b)];[a257_0x173336(0x78)]='';constructor(){const _0xc420c4=a257_0x173336;this[_0xc420c4(0x8b)]='';}[a257_0x173336(0x83)](_0x56b1cb){const _0x3a080f=a257_0x173336;this[_0x3a080f(0x78)]=_0x56b1cb;}[a257_0x173336(0x8c)](){const _0x3e6ab0=a257_0x173336,_0x55c01=a257_0x49ef16['dirname'](this[_0x3e6ab0(0x8b)]);!a257_0x25854d['existsSync'](_0x55c01)&&a257_0x25854d['mkdirSync'](_0x55c01,{'recursive':!![]});const _0x3030cb=a257_0x43b66a[_0x3e6ab0(0x76)][_0x3e6ab0(0x6f)](a257_0x43b66a[_0x3e6ab0(0x76)]['timestamp'](),a257_0x43b66a[_0x3e6ab0(0x76)]['errors']({'stack':!![]}),a257_0x43b66a[_0x3e6ab0(0x76)][_0x3e6ab0(0x69)](_0x21eaff=>{const _0x4b261b=_0x3e6ab0,_0x593b65={'timestamp':_0x21eaff[_0x4b261b(0x93)]||new Date()[_0x4b261b(0x91)](),'level':_0x21eaff['level']||_0x4b261b(0x71),'command':_0x21eaff[_0x4b261b(0x70)]||_0x4b261b(0x6d),'rawCommand':_0x21eaff[_0x4b261b(0x6c)]||this[_0x4b261b(0x78)]||undefined,'message':_0x21eaff['message']||'','duration':_0x21eaff[_0x4b261b(0x96)]||undefined,'details':_0x21eaff['details']||undefined};return JSON[_0x4b261b(0x68)](_0x593b65);}));this[_0x3e6ab0(0x8a)]=a257_0x43b66a['createLogger']({'level':_0x3e6ab0(0x71),'format':_0x3030cb,'transports':[new a257_0x43b66a[(_0x3e6ab0(0x90))]['File']({'filename':this['logFilePath'],'level':'info'})],'silent':![]}),a257_0x43b66a[_0x3e6ab0(0x79)]({'success':_0x3e6ab0(0x75),'error':_0x3e6ab0(0x7d),'warn':_0x3e6ab0(0x66),'info':_0x3e6ab0(0x88)});}[a257_0x173336(0x72)](_0x1d09eb){const _0x2e8a6b=a257_0x173336;this[_0x2e8a6b(0x8b)]=a257_0x49ef16['join'](_0x1d09eb,_0x2e8a6b(0x73)),this[_0x2e8a6b(0x8a)]&&this[_0x2e8a6b(0x8a)]['clear'](),this['initWinstonLogger']();}[a257_0x173336(0x71)](_0x3d9d9c,_0x40f13c,_0x3a0f0b){const _0x4478fb=a257_0x173336;if(!this[_0x4478fb(0x8b)]||!this[_0x4478fb(0x8a)])return;this['winstonLogger']['info'](_0x40f13c,{'command':_0x3d9d9c,'details':_0x3a0f0b});}[a257_0x173336(0x89)](_0x1b7251,_0x101046,_0x52ac51,_0x32f2ef){const _0x462374=a257_0x173336;if(!this[_0x462374(0x8b)]||!this[_0x462374(0x8a)])return;this['winstonLogger'][_0x462374(0x77)](_0x462374(0x71),_0x101046,{'level':_0x462374(0x89),'command':_0x1b7251,'duration':_0x52ac51,'details':_0x32f2ef});}[a257_0x173336(0x7e)](_0x20ea5c,_0x535c01,_0x2b1511){const _0x2aab4f=a257_0x173336;if(!this[_0x2aab4f(0x8b)]||!this['winstonLogger'])return;this[_0x2aab4f(0x8a)][_0x2aab4f(0x7e)](_0x535c01,{'command':_0x20ea5c,'details':_0x2b1511});}[a257_0x173336(0x82)](_0x78b5a6,_0x4e42a0,_0x108333){const _0x117d4=a257_0x173336;if(!this[_0x117d4(0x8b)]||!this[_0x117d4(0x8a)])return;this[_0x117d4(0x8a)][_0x117d4(0x82)](_0x4e42a0,{'command':_0x78b5a6,'details':_0x108333});}async[a257_0x173336(0x7c)](_0x473673,_0xcb7485,_0x440470){const _0x5bedda=a257_0x173336,_0x51dc7d=Date[_0x5bedda(0x7a)]();this[_0x5bedda(0x71)](_0x473673,'开始执行:\x20'+_0xcb7485);try{const _0x9f5384=await _0x440470(),_0x14aad6=Date[_0x5bedda(0x7a)]()-_0x51dc7d;return this[_0x5bedda(0x89)](_0x473673,_0x5bedda(0x86)+_0xcb7485,_0x14aad6),_0x9f5384;}catch(_0x552338){const _0x35ddd7=Date[_0x5bedda(0x7a)]()-_0x51dc7d;this[_0x5bedda(0x7e)](_0x473673,'失败:\x20'+_0xcb7485,{'error':_0x552338 instanceof Error?_0x552338['message']:String(_0x552338),'duration':_0x35ddd7});throw _0x552338;}}[a257_0x173336(0x67)](){const _0x478e24=a257_0x173336;try{if(!a257_0x25854d[_0x478e24(0x95)](this[_0x478e24(0x8b)]))return[];const _0x370f0a=a257_0x25854d['readFileSync'](this[_0x478e24(0x8b)],_0x478e24(0x8e));return _0x370f0a['split']('\x0a')[_0x478e24(0x81)](_0x3edb50=>_0x3edb50['trim']())[_0x478e24(0x7b)](_0x57346c=>JSON[_0x478e24(0x74)](_0x57346c));}catch(_0x1f2b88){return console[_0x478e24(0x82)](_0x478e24(0x7f),_0x1f2b88),[];}}[a257_0x173336(0x97)](){const _0x4fcfad=a257_0x173336;try{a257_0x25854d[_0x4fcfad(0x95)](this['logFilePath'])&&a257_0x25854d[_0x4fcfad(0x8d)](this[_0x4fcfad(0x8b)],'','utf8');}catch(_0xc78e64){console[_0x4fcfad(0x82)]('Failed\x20to\x20clear\x20logs:',_0xc78e64);}}['getWinstonInstance'](){return this['winstonLogger'];}}function a257_0x150f(){const _0x50ee02=['setLogPath','.lovrabet.log','parse','green','format','log','currentRawCommand','addColors','now','map','logTask','red','error','Failed\x20to\x20read\x20logs:','3897350rKicWT','filter','warn','setRawCommand','1175256ATsiJu','524368tdVDKm','完成:\x20','488ZWyhqg','blue','success','winstonLogger','logFilePath','initWinstonLogger','writeFileSync','utf8','1220095HHHMDP','transports','toISOString','1499281MOkIFr','timestamp','1fpyZrA','existsSync','duration','clearLogs','yellow','readLogs','stringify','printf','4560OmckKe','1024gBnWkj','rawCommand','unknown','79938lQSInN','combine','command','info'];a257_0x150f=function(){return _0x50ee02;};return a257_0x150f();}export const logger=new Logger();
@@ -1 +1 @@
1
- function a256_0xf702(_0xfb8476,_0x357a50){_0xfb8476=_0xfb8476-0x66;const _0x1aed56=a256_0x1aed();let _0xf702ae=_0x1aed56[_0xfb8476];return _0xf702ae;}(function(_0x464132,_0x12ea09){const _0x3ccc1a=a256_0xf702,_0x183e43=_0x464132();while(!![]){try{const _0x593232=parseInt(_0x3ccc1a(0x75))/0x1*(parseInt(_0x3ccc1a(0x73))/0x2)+parseInt(_0x3ccc1a(0x6b))/0x3+-parseInt(_0x3ccc1a(0x68))/0x4*(parseInt(_0x3ccc1a(0x6d))/0x5)+-parseInt(_0x3ccc1a(0x6f))/0x6*(parseInt(_0x3ccc1a(0x67))/0x7)+-parseInt(_0x3ccc1a(0x72))/0x8+-parseInt(_0x3ccc1a(0x6e))/0x9+parseInt(_0x3ccc1a(0x69))/0xa*(parseInt(_0x3ccc1a(0x70))/0xb);if(_0x593232===_0x12ea09)break;else _0x183e43['push'](_0x183e43['shift']());}catch(_0xd64eda){_0x183e43['push'](_0x183e43['shift']());}}}(a256_0x1aed,0x7364f));function a256_0x1aed(){const _0x28a4eb=['12qTvOVi','6380HcNspx','Invalid\x20JSON\x20for\x20--params:\x20','4893496LnIYrD','394dXZWmL','validation','1237NAVBhX','isArray','parse','object','2565101DfDLMQ','1748aXmDcU','32490IENcvR','--params\x20must\x20be\x20a\x20JSON\x20object','2543181vBPZpt','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','5855nuPtjK','5821929lvEUeN'];a256_0x1aed=function(){return _0x28a4eb;};return a256_0x1aed();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x53a325){const _0x3f24fb=a256_0xf702;if(!_0x53a325)return undefined;let _0x279153;try{_0x279153=JSON[_0x3f24fb(0x77)](_0x53a325);}catch{throw CliErrors[_0x3f24fb(0x74)](_0x3f24fb(0x71)+_0x53a325);}if(!_0x279153||typeof _0x279153!==_0x3f24fb(0x66)||Array[_0x3f24fb(0x76)](_0x279153))throw CliErrors[_0x3f24fb(0x74)](_0x3f24fb(0x6a),_0x3f24fb(0x6c));return _0x279153;}
1
+ (function(_0x13636f,_0x12cb6d){const _0x384b00=a258_0x63a0,_0x51bf26=_0x13636f();while(!![]){try{const _0x57728e=parseInt(_0x384b00(0x161))/0x1+parseInt(_0x384b00(0x163))/0x2+parseInt(_0x384b00(0x166))/0x3*(-parseInt(_0x384b00(0x16d))/0x4)+parseInt(_0x384b00(0x169))/0x5+-parseInt(_0x384b00(0x16a))/0x6*(parseInt(_0x384b00(0x167))/0x7)+-parseInt(_0x384b00(0x165))/0x8+parseInt(_0x384b00(0x16e))/0x9;if(_0x57728e===_0x12cb6d)break;else _0x51bf26['push'](_0x51bf26['shift']());}catch(_0x2281a2){_0x51bf26['push'](_0x51bf26['shift']());}}}(a258_0xe083,0xd5c29));import{CliErrors}from'../errors.js';function a258_0xe083(){const _0x2987ad=['413hLPPxO','--params\x20must\x20be\x20a\x20JSON\x20object','7421040rggeNK','62862yiqotY','Invalid\x20JSON\x20for\x20--params:\x20','parse','389036RWxCFG','9123327qTFcQS','518811BCWjCt','isArray','171528twftHh','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','11314112AtrYYp','6Obxmbh'];a258_0xe083=function(){return _0x2987ad;};return a258_0xe083();}function a258_0x63a0(_0x2c25eb,_0xccf297){_0x2c25eb=_0x2c25eb-0x161;const _0xe083f6=a258_0xe083();let _0x63a042=_0xe083f6[_0x2c25eb];return _0x63a042;}export function parseJsonParams(_0x138d8b){const _0x3ddc59=a258_0x63a0;if(!_0x138d8b)return undefined;let _0x428bed;try{_0x428bed=JSON[_0x3ddc59(0x16c)](_0x138d8b);}catch{throw CliErrors['validation'](_0x3ddc59(0x16b)+_0x138d8b);}if(!_0x428bed||typeof _0x428bed!=='object'||Array[_0x3ddc59(0x162)](_0x428bed))throw CliErrors['validation'](_0x3ddc59(0x168),_0x3ddc59(0x164));return _0x428bed;}
@@ -1 +1 @@
1
- const a257_0x4c9e11=a257_0x54c4;(function(_0x16c13b,_0x44cd4c){const _0x4ddaba=a257_0x54c4,_0x260cf5=_0x16c13b();while(!![]){try{const _0xcac82=-parseInt(_0x4ddaba(0x158))/0x1*(parseInt(_0x4ddaba(0x15d))/0x2)+-parseInt(_0x4ddaba(0x160))/0x3+parseInt(_0x4ddaba(0x15e))/0x4*(-parseInt(_0x4ddaba(0x15f))/0x5)+parseInt(_0x4ddaba(0x155))/0x6*(parseInt(_0x4ddaba(0x161))/0x7)+-parseInt(_0x4ddaba(0x157))/0x8+-parseInt(_0x4ddaba(0x163))/0x9*(-parseInt(_0x4ddaba(0x15a))/0xa)+parseInt(_0x4ddaba(0x159))/0xb*(parseInt(_0x4ddaba(0x15b))/0xc);if(_0xcac82===_0x44cd4c)break;else _0x260cf5['push'](_0x260cf5['shift']());}catch(_0x11418b){_0x260cf5['push'](_0x260cf5['shift']());}}}(a257_0xbe73,0x4fb76));function a257_0x54c4(_0x24514f,_0x378d20){_0x24514f=_0x24514f-0x155;const _0xbe73d9=a257_0xbe73();let _0x54c470=_0xbe73d9[_0x24514f];return _0x54c470;}export const isWindows=process[a257_0x4c9e11(0x156)]===a257_0x4c9e11(0x15c);export function resolveNpmBin(_0xa3f6d0){const _0x1ae5e3=a257_0x4c9e11;return isWindows?_0xa3f6d0+_0x1ae5e3(0x162):_0xa3f6d0;}function a257_0xbe73(){const _0x502a50=['101390ndhbAJ','5626944lZGciJ','win32','2aFwSYh','4nDINaN','2109345xnsqye','441969SUADSg','7qAlRnm','.cmd','558OkDEih','3511302FnWlKv','platform','5145872FoMHCF','143803gLMkmB','11VOCwyB'];a257_0xbe73=function(){return _0x502a50;};return a257_0xbe73();}
1
+ const a259_0x411012=a259_0xb52f;(function(_0x2c0c4d,_0x5a9892){const _0x3890e2=a259_0xb52f,_0x52f3ad=_0x2c0c4d();while(!![]){try{const _0x41355e=parseInt(_0x3890e2(0xde))/0x1*(parseInt(_0x3890e2(0xe1))/0x2)+-parseInt(_0x3890e2(0xe3))/0x3*(parseInt(_0x3890e2(0xdd))/0x4)+-parseInt(_0x3890e2(0xe6))/0x5+parseInt(_0x3890e2(0xe2))/0x6*(parseInt(_0x3890e2(0xdf))/0x7)+parseInt(_0x3890e2(0xdb))/0x8+parseInt(_0x3890e2(0xdc))/0x9*(parseInt(_0x3890e2(0xe4))/0xa)+parseInt(_0x3890e2(0xda))/0xb*(parseInt(_0x3890e2(0xe5))/0xc);if(_0x41355e===_0x5a9892)break;else _0x52f3ad['push'](_0x52f3ad['shift']());}catch(_0x2a1fdf){_0x52f3ad['push'](_0x52f3ad['shift']());}}}(a259_0x30d0,0x6bc4a));function a259_0xb52f(_0x490d5c,_0x139619){_0x490d5c=_0x490d5c-0xd9;const _0x30d045=a259_0x30d0();let _0xb52fca=_0x30d045[_0x490d5c];return _0xb52fca;}export const isWindows=process['platform']===a259_0x411012(0xe0);function a259_0x30d0(){const _0x327273=['2252HxujlC','109ndguLH','126938wmdcfJ','win32','2962NDQPdA','234xSRZpz','3987IriPbD','5970LQrLaq','492eGkBhP','937660XcOdhp','.cmd','33627lwUoff','1360448jDKXkC','3213OHDzzB'];a259_0x30d0=function(){return _0x327273;};return a259_0x30d0();}export function resolveNpmBin(_0x1b04a4){const _0x3e8567=a259_0x411012;return isWindows?_0x1b04a4+_0x3e8567(0xd9):_0x1b04a4;}
@@ -1 +1 @@
1
- const a258_0x51e049=a258_0x513a;(function(_0x57cfd6,_0x4e125f){const _0x41f682=a258_0x513a,_0x12b164=_0x57cfd6();while(!![]){try{const _0x1826ef=-parseInt(_0x41f682(0x14f))/0x1*(-parseInt(_0x41f682(0x157))/0x2)+-parseInt(_0x41f682(0x156))/0x3+parseInt(_0x41f682(0x159))/0x4*(parseInt(_0x41f682(0x158))/0x5)+parseInt(_0x41f682(0x145))/0x6+-parseInt(_0x41f682(0x14e))/0x7*(parseInt(_0x41f682(0x14a))/0x8)+-parseInt(_0x41f682(0x151))/0x9*(-parseInt(_0x41f682(0x154))/0xa)+-parseInt(_0x41f682(0x146))/0xb;if(_0x1826ef===_0x4e125f)break;else _0x12b164['push'](_0x12b164['shift']());}catch(_0x167adc){_0x12b164['push'](_0x12b164['shift']());}}}(a258_0x5f42,0xe18fd));function a258_0x513a(_0x497a07,_0x201b01){_0x497a07=_0x497a07-0x144;const _0x5f428d=a258_0x5f42();let _0x513afc=_0x5f428d[_0x497a07];return _0x513afc;}function a258_0x5f42(){const _0x3978fd=['catch','lastUpdated','CDN\x20请求失败:\x20','2245980WvrBzY','5981767vqvDXC','agents.md','CDN\x20返回数据格式错误','json','18272eORxNl','content','utf-8','application/json','112lQSLie','33rtohox','string','2619tvgyYc','../../templates/rules/lovrabet_rules.mdc.tpl','statusText','17780aRbwjc','本地模板文件不存在:\x20','1649583IbpOSW','32530RjMriV','25eUoueA','500504fGLxDL'];a258_0x5f42=function(){return _0x3978fd;};return a258_0x5f42();}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 _0x23ca7d=getTemplateBaseUrl();return _0x23ca7d+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a258_0x51e049(0x152));export async function fetchRulesFromCDN(){const _0xfeb37b=a258_0x51e049,_0x9c9930=getRulesCdnUrl(),_0x37c346=await fetch(_0x9c9930,{'headers':{'Accept':_0xfeb37b(0x14d)}});if(!_0x37c346['ok'])throw new Error(_0xfeb37b(0x144)+_0x37c346['status']+'\x20'+_0x37c346[_0xfeb37b(0x153)]);const _0x3b0e31=await _0x37c346[_0xfeb37b(0x149)]();if(!_0x3b0e31[_0xfeb37b(0x14b)]||typeof _0x3b0e31[_0xfeb37b(0x14b)]!==_0xfeb37b(0x150))throw new Error(_0xfeb37b(0x148));return _0x3b0e31;}export async function getRulesContent(){const _0x484d05=a258_0x51e049;try{const _0x5d2987=await fetchRulesFromCDN();return _0x5d2987[_0x484d05(0x14b)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x52236f=a258_0x51e049;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x52236f(0x14c));throw new Error(_0x52236f(0x155)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xf3a4c1){const _0x5f52e3=a258_0x51e049,_0x583905=await fetchRulesFromCDN()[_0x5f52e3(0x15a)](()=>null);let _0xcb92ac;_0x583905?(_0xcb92ac=_0x583905[_0x5f52e3(0x14b)],_0x583905['lastUpdated']&&(_0xcb92ac=appendUpdateTime(_0xcb92ac,_0x583905[_0x5f52e3(0x15b)]))):_0xcb92ac=readLocalTemplate();const _0x38ec60=dirname(_0xf3a4c1);!existsSync(_0x38ec60)&&mkdirSync(_0x38ec60,{'recursive':!![]}),writeFileSync(_0xf3a4c1,_0xcb92ac,_0x5f52e3(0x14c));}export async function copyRulesToCursor(_0x187bfe){const _0x29dc9b=join(_0x187bfe,'.cursor/rules'),_0x8b65c1=join(_0x29dc9b,'lovrabet_rules.mdc');if(existsSync(_0x8b65c1))return![];return await writeRulesFile(_0x8b65c1),!![];}export async function copyRulesToAgentsMd(_0x23b74e){const _0x282f69=a258_0x51e049,_0x1157bb=join(_0x23b74e,_0x282f69(0x147));if(existsSync(_0x1157bb))return![];return await writeRulesFile(_0x1157bb),!![];}
1
+ (function(_0x114e9a,_0x65e7fb){const _0x4b91db=a260_0x4c63,_0x235616=_0x114e9a();while(!![]){try{const _0x5810b5=parseInt(_0x4b91db(0xf8))/0x1*(parseInt(_0x4b91db(0x107))/0x2)+parseInt(_0x4b91db(0x104))/0x3*(parseInt(_0x4b91db(0x108))/0x4)+parseInt(_0x4b91db(0xf9))/0x5*(-parseInt(_0x4b91db(0xfc))/0x6)+parseInt(_0x4b91db(0xfe))/0x7*(-parseInt(_0x4b91db(0xfb))/0x8)+-parseInt(_0x4b91db(0xf5))/0x9*(parseInt(_0x4b91db(0xf6))/0xa)+parseInt(_0x4b91db(0x101))/0xb*(-parseInt(_0x4b91db(0xf7))/0xc)+parseInt(_0x4b91db(0xf1))/0xd;if(_0x5810b5===_0x65e7fb)break;else _0x235616['push'](_0x235616['shift']());}catch(_0x2e6c3e){_0x235616['push'](_0x235616['shift']());}}}(a260_0x299d,0xba538));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 _0x19b3bb=a260_0x4c63,_0x314eb0=getTemplateBaseUrl();return _0x314eb0+_0x19b3bb(0x106);}function a260_0x4c63(_0x1074e1,_0x357fcd){_0x1074e1=_0x1074e1-0xf1;const _0x299dc5=a260_0x299d();let _0x4c63cc=_0x299dc5[_0x1074e1];return _0x4c63cc;}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x41a2ed=a260_0x4c63,_0x4933c6=getRulesCdnUrl(),_0x9f4e8=await fetch(_0x4933c6,{'headers':{'Accept':'application/json'}});if(!_0x9f4e8['ok'])throw new Error(_0x41a2ed(0x103)+_0x9f4e8[_0x41a2ed(0xf4)]+'\x20'+_0x9f4e8['statusText']);const _0x3debb9=await _0x9f4e8[_0x41a2ed(0x105)]();if(!_0x3debb9[_0x41a2ed(0xfd)]||typeof _0x3debb9['content']!==_0x41a2ed(0xff))throw new Error(_0x41a2ed(0x100));return _0x3debb9;}export async function getRulesContent(){const _0x3c83ff=a260_0x4c63;try{const _0x13a5da=await fetchRulesFromCDN();return _0x13a5da[_0x3c83ff(0xfd)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x232251=a260_0x4c63;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x232251(0xfa));throw new Error(_0x232251(0x10a)+LOCAL_TEMPLATE_PATH);}function a260_0x299d(){const _0x4fe851=['26692UycCzv','2233424XeKveD','agents.md','本地模板文件不存在:\x20','25586418HMcemU','lastUpdated','lovrabet_rules.mdc','status','384957NMQOki','190TEIioB','48dBhDSD','79dqamWx','5XUDBSe','utf-8','224AYSXvC','5068974bbGCBS','content','203371QJjzSX','string','CDN\x20返回数据格式错误','953381qQOUly','.cursor/rules','CDN\x20请求失败:\x20','3teOjAm','json','/rules/rules.json'];a260_0x299d=function(){return _0x4fe851;};return a260_0x299d();}export async function writeRulesFile(_0x2939a4){const _0xccd8db=a260_0x4c63,_0x2cac19=await fetchRulesFromCDN()['catch'](()=>null);let _0xbd8420;_0x2cac19?(_0xbd8420=_0x2cac19['content'],_0x2cac19[_0xccd8db(0xf2)]&&(_0xbd8420=appendUpdateTime(_0xbd8420,_0x2cac19['lastUpdated']))):_0xbd8420=readLocalTemplate();const _0x3cfbac=dirname(_0x2939a4);!existsSync(_0x3cfbac)&&mkdirSync(_0x3cfbac,{'recursive':!![]}),writeFileSync(_0x2939a4,_0xbd8420,_0xccd8db(0xfa));}export async function copyRulesToCursor(_0x53d634){const _0x19eff3=a260_0x4c63,_0x10ed08=join(_0x53d634,_0x19eff3(0x102)),_0x2323f5=join(_0x10ed08,_0x19eff3(0xf3));if(existsSync(_0x2323f5))return![];return await writeRulesFile(_0x2323f5),!![];}export async function copyRulesToAgentsMd(_0x247825){const _0x32bec7=a260_0x4c63,_0x16017e=join(_0x247825,_0x32bec7(0x109));if(existsSync(_0x16017e))return![];return await writeRulesFile(_0x16017e),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x1db674){return new Promise(_0x4895bc=>setTimeout(_0x4895bc,_0x1db674));}
1
+ export function sleep(_0xa0a584){return new Promise(_0x31ab7e=>setTimeout(_0x31ab7e,_0xa0a584));}
@@ -1 +1 @@
1
- const a260_0x48792f=a260_0x2485;(function(_0x268617,_0x107166){const _0x13c158=a260_0x2485,_0x3828c6=_0x268617();while(!![]){try{const _0x3ac473=parseInt(_0x13c158(0x1d7))/0x1+parseInt(_0x13c158(0x1e6))/0x2*(-parseInt(_0x13c158(0x1fc))/0x3)+parseInt(_0x13c158(0x1db))/0x4+parseInt(_0x13c158(0x1cb))/0x5+-parseInt(_0x13c158(0x1fd))/0x6*(-parseInt(_0x13c158(0x1d3))/0x7)+parseInt(_0x13c158(0x1eb))/0x8*(parseInt(_0x13c158(0x1e3))/0x9)+-parseInt(_0x13c158(0x1ca))/0xa*(parseInt(_0x13c158(0x1e7))/0xb);if(_0x3ac473===_0x107166)break;else _0x3828c6['push'](_0x3828c6['shift']());}catch(_0x34ae5b){_0x3828c6['push'](_0x3828c6['shift']());}}}(a260_0x58fe,0xe08e2));import a260_0x1286c5 from'node:fs';function a260_0x58fe(){const _0x42f410=['tableName:\x20\x22','map','replace','toComponentName','YourModel','info','alias:\x20\x22','name:\x20\x22','datasetCode','.jsx','join','name','isFile','pop','948lGcVLD','5816022MdpikK','promises','copyFile','now','.md','readFile','padStart','error','getDate','模板内容替换失败','.tpl','includes','\x0a\x20\x20\x20\x20{\x20','toISOString','toLowerCase','LOVRABET','getHours','alias','getMonth','processDirectory','template','api','10joGiwk','8234815jNkEQi','slice','getSeconds','extname','tableName','replaceApiContent','datasetCode:\x20\x22','processFile','7zVrfyV','charAt','default','getMinutes','772653TaErqK','.css','pad','writeFile','1493900PzVHUG','.json','.js','split','mkdir','readdir','模板内容替换完成','utf8','25983logDnY','endsWith','.scss','682MIocfy','30433161KuVeAK','formatLocalTimestamp','replaceContent','processTemplate','88fhQZRM','toUpperCase','getFullYear'];a260_0x58fe=function(){return _0x42f410;};return a260_0x58fe();}import a260_0x5ea0e2 from'node:path';import{logger}from'../utils/logger.js';function a260_0x2485(_0x12e751,_0x120fd5){_0x12e751=_0x12e751-0x1ba;const _0x58fe06=a260_0x58fe();let _0x2485b5=_0x58fe06[_0x12e751];return _0x2485b5;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a260_0x48792f(0x1d9)](_0x12f36f){const _0x263775=a260_0x48792f;return String(_0x12f36f)[_0x263775(0x1ba)](0x2,'0');}static['formatLocalTimestamp'](_0x1bae2b){const _0x563c6f=a260_0x48792f,_0x565de2=_0x1bae2b[_0x563c6f(0x1ed)](),_0x2ce5cb=this[_0x563c6f(0x1d9)](_0x1bae2b[_0x563c6f(0x1c6)]()+0x1),_0x123990=this[_0x563c6f(0x1d9)](_0x1bae2b[_0x563c6f(0x1bc)]()),_0x47486d=this[_0x563c6f(0x1d9)](_0x1bae2b[_0x563c6f(0x1c4)]()),_0x47b354=this[_0x563c6f(0x1d9)](_0x1bae2b[_0x563c6f(0x1d6)]()),_0x43c05d=this[_0x563c6f(0x1d9)](_0x1bae2b[_0x563c6f(0x1cd)]());return{'createdAt':_0x565de2+'-'+_0x2ce5cb+'-'+_0x123990+'\x20'+_0x47486d+':'+_0x47b354+':'+_0x43c05d,'createdDate':_0x565de2+'-'+_0x2ce5cb+'-'+_0x123990,'createdTime':_0x47486d+':'+_0x47b354+':'+_0x43c05d};}static[a260_0x48792f(0x1f1)](_0x5a2e2e){const _0x41e575=a260_0x48792f,_0x6bcda1=_0x5a2e2e['split']('/')[_0x41e575(0x1fb)]()||_0x5a2e2e;return _0x6bcda1[_0x41e575(0x1de)]('-')[_0x41e575(0x1ef)](_0x4a5547=>_0x4a5547[_0x41e575(0x1d4)](0x0)[_0x41e575(0x1ec)]()+_0x4a5547[_0x41e575(0x1cc)](0x1)['toLowerCase']())[_0x41e575(0x1f8)]('');}static['toDisplayTitle'](_0x152537){const _0x2b91d1=a260_0x48792f,_0x384a20=_0x152537[_0x2b91d1(0x1de)]('/')['pop']()||_0x152537;return _0x384a20[_0x2b91d1(0x1de)]('-')['map'](_0x409327=>_0x409327[_0x2b91d1(0x1d4)](0x0)[_0x2b91d1(0x1ec)]()+_0x409327[_0x2b91d1(0x1cc)](0x1)[_0x2b91d1(0x1c2)]())[_0x2b91d1(0x1f8)]('\x20');}static[a260_0x48792f(0x1e9)](_0x33320c,_0x54b1cf,_0x3523b1){const _0x1b6d0b=a260_0x48792f,_0x3426b9=this[_0x1b6d0b(0x1f1)](_0x54b1cf),_0x39d708=this['toDisplayTitle'](_0x54b1cf),{createdAt:_0x5498a1,createdDate:_0x3e41ca,createdTime:_0x499297}=this[_0x1b6d0b(0x1e8)](new Date());let _0x227cd8=_0x33320c[_0x1b6d0b(0x1f0)](/\{CliVersion\}/g,CLI_VERSION)[_0x1b6d0b(0x1f0)](/\{ComponentName\}/g,_0x3426b9)[_0x1b6d0b(0x1f0)](/\{DisplayTitle\}/g,_0x39d708)[_0x1b6d0b(0x1f0)](/\{PageName\}/g,_0x54b1cf)['replace'](/\{TemplateName\}/g,_0x3523b1)['replace'](/\{CreatedAt\}/g,_0x5498a1)[_0x1b6d0b(0x1f0)](/\{CreatedDate\}/g,_0x3e41ca)[_0x1b6d0b(0x1f0)](/\{CreatedTime\}/g,_0x499297);return _0x227cd8;}static[a260_0x48792f(0x1d0)](_0x4f58fe,_0xdfded8,_0x3666cf,_0xd1bc63,_0x2061cf,_0x15bc44,_0x266abc,_0x317a72){const _0x59e919=a260_0x48792f,_0x35ccb3=new Date(),_0x5b9ded=_0x35ccb3[_0x59e919(0x1c1)](),_0x519c0f=_0x3666cf[_0x59e919(0x1ef)](_0x55a392=>{const _0x41266f=_0x59e919,_0x3c46fa=[_0x41266f(0x1d1)+_0x55a392[_0x41266f(0x1f6)]+'\x22',_0x41266f(0x1ee)+_0x55a392[_0x41266f(0x1cf)]+'\x22',_0x41266f(0x1f5)+_0x55a392[_0x41266f(0x1f9)]+'\x22'];return _0x55a392['alias']&&_0x3c46fa['push'](_0x41266f(0x1f4)+_0x55a392[_0x41266f(0x1c5)]+'\x22'),_0x41266f(0x1c0)+_0x3c46fa[_0x41266f(0x1f8)](',\x20')+'\x20},';})['join'](''),_0x42a0ac=_0xd1bc63||_0x3666cf[0x0]?.['alias']||_0x59e919(0x1f2);let _0x21605c=_0x4f58fe[_0x59e919(0x1f0)](/\{AppCode\}/g,_0xdfded8)[_0x59e919(0x1f0)](/\{ModelConfigs\}/g,_0x519c0f)[_0x59e919(0x1f0)](/\{ExampleModelName\}/g,_0x42a0ac)[_0x59e919(0x1f0)](/\{ApiFileName\}/g,_0x2061cf||_0x59e919(0x1c9))[_0x59e919(0x1f0)](/\{ConfigName\}/g,_0x15bc44||_0x59e919(0x1d5))['replace'](/\{ClientConfigParam\}/g,_0x266abc||'')[_0x59e919(0x1f0)](/\{VarPrefix\}/g,_0x317a72||_0x59e919(0x1c3))[_0x59e919(0x1f0)](/\{CreatedAt\}/g,_0x5b9ded);return _0x21605c;}static async[a260_0x48792f(0x1ea)](_0x139e84,_0x1c124a,_0x2fbc34,_0x529906,_0x2d89c9=!![]){const _0x1244a0=a260_0x48792f,_0x4afc28=Date[_0x1244a0(0x200)]();try{_0x2d89c9&&logger[_0x1244a0(0x1f3)]('template','开始处理模板内容替换',{'templatePath':_0x139e84,'targetPath':_0x1c124a,'pageName':_0x2fbc34,'templateName':_0x529906});await a260_0x1286c5['promises'][_0x1244a0(0x1df)](_0x1c124a,{'recursive':!![]}),await this['processDirectory'](_0x139e84,_0x1c124a,_0x2fbc34,_0x529906);if(_0x2d89c9){const _0x28027e=Date[_0x1244a0(0x200)]()-_0x4afc28;logger['success'](_0x1244a0(0x1c8),_0x1244a0(0x1e1),_0x28027e,{'pageName':_0x2fbc34,'templateName':_0x529906});}}catch(_0x3ab78c){if(_0x2d89c9){const _0x34a318=Date['now']()-_0x4afc28;logger[_0x1244a0(0x1bb)](_0x1244a0(0x1c8),_0x1244a0(0x1bd),{'templatePath':_0x139e84,'targetPath':_0x1c124a,'pageName':_0x2fbc34,'templateName':_0x529906,'error':_0x3ab78c instanceof Error?_0x3ab78c['message']:String(_0x3ab78c),'duration':_0x34a318});}throw _0x3ab78c;}}static async[a260_0x48792f(0x1c7)](_0x349656,_0x58e637,_0x19d4ea,_0x17dc6c){const _0x389f36=a260_0x48792f,_0x154f20=await a260_0x1286c5[_0x389f36(0x1fe)][_0x389f36(0x1e0)](_0x349656,{'withFileTypes':!![]});for(const _0x45ed2c of _0x154f20){const _0x2c8a7f=a260_0x5ea0e2[_0x389f36(0x1f8)](_0x349656,_0x45ed2c[_0x389f36(0x1f9)]);let _0x5819cc=a260_0x5ea0e2[_0x389f36(0x1f8)](_0x58e637,_0x45ed2c[_0x389f36(0x1f9)]);_0x45ed2c['name']['endsWith'](_0x389f36(0x1be))&&(_0x5819cc=a260_0x5ea0e2['join'](_0x58e637,_0x45ed2c[_0x389f36(0x1f9)][_0x389f36(0x1f0)](/\.tpl$/,'')));if(_0x45ed2c['isDirectory']())await a260_0x1286c5[_0x389f36(0x1fe)][_0x389f36(0x1df)](_0x5819cc,{'recursive':!![]}),await this['processDirectory'](_0x2c8a7f,_0x5819cc,_0x19d4ea,_0x17dc6c);else _0x45ed2c[_0x389f36(0x1fa)]()&&await this[_0x389f36(0x1d2)](_0x2c8a7f,_0x5819cc,_0x19d4ea,_0x17dc6c);}}static async['processFile'](_0x3ec92e,_0x1a7f3f,_0x163c49,_0x367b42){const _0x25f9ba=a260_0x48792f,_0x343f1e=a260_0x5ea0e2[_0x25f9ba(0x1ce)](_0x3ec92e)[_0x25f9ba(0x1c2)]();_0x3ec92e[_0x25f9ba(0x1e4)]('.tpl')&&(_0x1a7f3f=_0x1a7f3f[_0x25f9ba(0x1f0)](/\.tpl$/,''));const _0x2392dd=['.tsx','.ts',_0x25f9ba(0x1f7),_0x25f9ba(0x1dd),_0x25f9ba(0x1dc),_0x25f9ba(0x201),_0x25f9ba(0x1d8),_0x25f9ba(0x1e5),_0x25f9ba(0x1be)];if(_0x2392dd[_0x25f9ba(0x1bf)](_0x343f1e)||_0x3ec92e[_0x25f9ba(0x1e4)](_0x25f9ba(0x1be))){const _0x3aa9e2=await a260_0x1286c5[_0x25f9ba(0x1fe)][_0x25f9ba(0x202)](_0x3ec92e,_0x25f9ba(0x1e2)),_0x26fddb=this[_0x25f9ba(0x1e9)](_0x3aa9e2,_0x163c49,_0x367b42);await a260_0x1286c5['promises'][_0x25f9ba(0x1da)](_0x1a7f3f,_0x26fddb,_0x25f9ba(0x1e2));}else await a260_0x1286c5[_0x25f9ba(0x1fe)][_0x25f9ba(0x1ff)](_0x3ec92e,_0x1a7f3f);}}
1
+ const a262_0x4044b5=a262_0x10c6;(function(_0x34432e,_0x349178){const _0x30dbf1=a262_0x10c6,_0x346fcb=_0x34432e();while(!![]){try{const _0x23d934=-parseInt(_0x30dbf1(0x18f))/0x1+parseInt(_0x30dbf1(0x167))/0x2+parseInt(_0x30dbf1(0x175))/0x3+parseInt(_0x30dbf1(0x16d))/0x4*(-parseInt(_0x30dbf1(0x180))/0x5)+parseInt(_0x30dbf1(0x173))/0x6+parseInt(_0x30dbf1(0x1a4))/0x7+-parseInt(_0x30dbf1(0x164))/0x8*(parseInt(_0x30dbf1(0x189))/0x9);if(_0x23d934===_0x349178)break;else _0x346fcb['push'](_0x346fcb['shift']());}catch(_0x5ef3e9){_0x346fcb['push'](_0x346fcb['shift']());}}}(a262_0x2454,0x5b5f8));import a262_0x3e97d5 from'node:fs';import a262_0x167c1b from'node:path';function a262_0x2454(){const _0x5c6ff1=['开始处理模板内容替换','alias','join','extname','toLowerCase','replace','1017779bFuXWn','utf8','tableName','datasetCode','51424mfNBCG','promises','writeFile','98124yybFZL','processFile','tableName:\x20\x22','mkdir','message','name','8WNKqnZ','模板内容替换完成','error','endsWith','map','padStart','3239622Gyrmmw','info','1655220CARegH','processDirectory','toComponentName','datasetCode:\x20\x22','getSeconds','.tsx','formatLocalTimestamp','.css','.md','copyFile','isDirectory','460800fwmcJf','toISOString','.json','now','readFile','.js','.tpl','.ts','getMonth','513prpbrL','getMinutes','pad','模板内容替换失败','getDate','slice','361156rWSRqc','pop','.scss','includes','readdir','split','charAt','template','\x20},','alias:\x20\x22','YourModel','toDisplayTitle','\x0a\x20\x20\x20\x20{\x20','api','toUpperCase'];a262_0x2454=function(){return _0x5c6ff1;};return a262_0x2454();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a262_0x10c6(_0x1359cb,_0x419242){_0x1359cb=_0x1359cb-0x164;const _0x2454e2=a262_0x2454();let _0x10c628=_0x2454e2[_0x1359cb];return _0x10c628;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a262_0x4044b5(0x18b)](_0x2c9cdc){const _0x22586f=a262_0x4044b5;return String(_0x2c9cdc)[_0x22586f(0x172)](0x2,'0');}static['formatLocalTimestamp'](_0x31b52e){const _0x33b279=a262_0x4044b5,_0x538ab7=_0x31b52e['getFullYear'](),_0x57fa92=this[_0x33b279(0x18b)](_0x31b52e[_0x33b279(0x188)]()+0x1),_0x35a7f1=this[_0x33b279(0x18b)](_0x31b52e[_0x33b279(0x18d)]()),_0x14cf44=this[_0x33b279(0x18b)](_0x31b52e['getHours']()),_0x4af2e9=this['pad'](_0x31b52e[_0x33b279(0x18a)]()),_0x9ee419=this['pad'](_0x31b52e[_0x33b279(0x179)]());return{'createdAt':_0x538ab7+'-'+_0x57fa92+'-'+_0x35a7f1+'\x20'+_0x14cf44+':'+_0x4af2e9+':'+_0x9ee419,'createdDate':_0x538ab7+'-'+_0x57fa92+'-'+_0x35a7f1,'createdTime':_0x14cf44+':'+_0x4af2e9+':'+_0x9ee419};}static[a262_0x4044b5(0x177)](_0x16c719){const _0x43501b=a262_0x4044b5,_0x1ca78b=_0x16c719['split']('/')[_0x43501b(0x190)]()||_0x16c719;return _0x1ca78b[_0x43501b(0x194)]('-')[_0x43501b(0x171)](_0x5c34e7=>_0x5c34e7[_0x43501b(0x195)](0x0)[_0x43501b(0x19d)]()+_0x5c34e7[_0x43501b(0x18e)](0x1)[_0x43501b(0x1a2)]())[_0x43501b(0x1a0)]('');}static['toDisplayTitle'](_0x21fb39){const _0x409b77=a262_0x4044b5,_0x522235=_0x21fb39['split']('/')['pop']()||_0x21fb39;return _0x522235[_0x409b77(0x194)]('-')[_0x409b77(0x171)](_0x1db52c=>_0x1db52c[_0x409b77(0x195)](0x0)[_0x409b77(0x19d)]()+_0x1db52c[_0x409b77(0x18e)](0x1)['toLowerCase']())[_0x409b77(0x1a0)]('\x20');}static['replaceContent'](_0x3d189b,_0x70be01,_0xc4f168){const _0xc5dc61=a262_0x4044b5,_0x5cbd84=this['toComponentName'](_0x70be01),_0x4f4742=this[_0xc5dc61(0x19a)](_0x70be01),{createdAt:_0x51e55e,createdDate:_0x3dd6a3,createdTime:_0x3971f8}=this[_0xc5dc61(0x17b)](new Date());let _0x12e510=_0x3d189b['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0xc5dc61(0x1a3)](/\{ComponentName\}/g,_0x5cbd84)[_0xc5dc61(0x1a3)](/\{DisplayTitle\}/g,_0x4f4742)['replace'](/\{PageName\}/g,_0x70be01)[_0xc5dc61(0x1a3)](/\{TemplateName\}/g,_0xc4f168)[_0xc5dc61(0x1a3)](/\{CreatedAt\}/g,_0x51e55e)[_0xc5dc61(0x1a3)](/\{CreatedDate\}/g,_0x3dd6a3)[_0xc5dc61(0x1a3)](/\{CreatedTime\}/g,_0x3971f8);return _0x12e510;}static['replaceApiContent'](_0x443b83,_0xe328d7,_0x37cb3f,_0xf068e7,_0x5b4ecf,_0x4f3ea2,_0x61ad6c,_0x2ba9dd){const _0x45629c=a262_0x4044b5,_0x58121d=new Date(),_0x5d1690=_0x58121d[_0x45629c(0x181)](),_0x23e8c8=_0x37cb3f['map'](_0x4800dd=>{const _0x12acd1=_0x45629c,_0x192d1e=[_0x12acd1(0x178)+_0x4800dd[_0x12acd1(0x1a7)]+'\x22',_0x12acd1(0x169)+_0x4800dd[_0x12acd1(0x1a6)]+'\x22','name:\x20\x22'+_0x4800dd[_0x12acd1(0x16c)]+'\x22'];return _0x4800dd[_0x12acd1(0x19f)]&&_0x192d1e['push'](_0x12acd1(0x198)+_0x4800dd[_0x12acd1(0x19f)]+'\x22'),_0x12acd1(0x19b)+_0x192d1e[_0x12acd1(0x1a0)](',\x20')+_0x12acd1(0x197);})['join'](''),_0x3ddf13=_0xf068e7||_0x37cb3f[0x0]?.[_0x45629c(0x19f)]||_0x45629c(0x199);let _0x15128e=_0x443b83[_0x45629c(0x1a3)](/\{AppCode\}/g,_0xe328d7)[_0x45629c(0x1a3)](/\{ModelConfigs\}/g,_0x23e8c8)[_0x45629c(0x1a3)](/\{ExampleModelName\}/g,_0x3ddf13)['replace'](/\{ApiFileName\}/g,_0x5b4ecf||_0x45629c(0x19c))[_0x45629c(0x1a3)](/\{ConfigName\}/g,_0x4f3ea2||'default')[_0x45629c(0x1a3)](/\{ClientConfigParam\}/g,_0x61ad6c||'')['replace'](/\{VarPrefix\}/g,_0x2ba9dd||'LOVRABET')[_0x45629c(0x1a3)](/\{CreatedAt\}/g,_0x5d1690);return _0x15128e;}static async['processTemplate'](_0xb70fe1,_0x5e361d,_0x34977e,_0x3275e3,_0xb412c5=!![]){const _0x572c53=a262_0x4044b5,_0x56e699=Date[_0x572c53(0x183)]();try{_0xb412c5&&logger[_0x572c53(0x174)]('template',_0x572c53(0x19e),{'templatePath':_0xb70fe1,'targetPath':_0x5e361d,'pageName':_0x34977e,'templateName':_0x3275e3});await a262_0x3e97d5['promises'][_0x572c53(0x16a)](_0x5e361d,{'recursive':!![]}),await this[_0x572c53(0x176)](_0xb70fe1,_0x5e361d,_0x34977e,_0x3275e3);if(_0xb412c5){const _0x54617a=Date[_0x572c53(0x183)]()-_0x56e699;logger['success'](_0x572c53(0x196),_0x572c53(0x16e),_0x54617a,{'pageName':_0x34977e,'templateName':_0x3275e3});}}catch(_0x5c4769){if(_0xb412c5){const _0x57da50=Date[_0x572c53(0x183)]()-_0x56e699;logger[_0x572c53(0x16f)]('template',_0x572c53(0x18c),{'templatePath':_0xb70fe1,'targetPath':_0x5e361d,'pageName':_0x34977e,'templateName':_0x3275e3,'error':_0x5c4769 instanceof Error?_0x5c4769[_0x572c53(0x16b)]:String(_0x5c4769),'duration':_0x57da50});}throw _0x5c4769;}}static async['processDirectory'](_0x2e9e66,_0x50f821,_0x2924f8,_0x129426){const _0x6c1ed0=a262_0x4044b5,_0x180d78=await a262_0x3e97d5[_0x6c1ed0(0x165)][_0x6c1ed0(0x193)](_0x2e9e66,{'withFileTypes':!![]});for(const _0x1ba657 of _0x180d78){const _0x44ba5c=a262_0x167c1b[_0x6c1ed0(0x1a0)](_0x2e9e66,_0x1ba657['name']);let _0x2fefe2=a262_0x167c1b[_0x6c1ed0(0x1a0)](_0x50f821,_0x1ba657[_0x6c1ed0(0x16c)]);_0x1ba657[_0x6c1ed0(0x16c)][_0x6c1ed0(0x170)](_0x6c1ed0(0x186))&&(_0x2fefe2=a262_0x167c1b[_0x6c1ed0(0x1a0)](_0x50f821,_0x1ba657[_0x6c1ed0(0x16c)]['replace'](/\.tpl$/,'')));if(_0x1ba657[_0x6c1ed0(0x17f)]())await a262_0x3e97d5[_0x6c1ed0(0x165)]['mkdir'](_0x2fefe2,{'recursive':!![]}),await this['processDirectory'](_0x44ba5c,_0x2fefe2,_0x2924f8,_0x129426);else _0x1ba657['isFile']()&&await this[_0x6c1ed0(0x168)](_0x44ba5c,_0x2fefe2,_0x2924f8,_0x129426);}}static async[a262_0x4044b5(0x168)](_0x207136,_0x353a36,_0x33a7eb,_0x248e20){const _0x3927d3=a262_0x4044b5,_0x4f9237=a262_0x167c1b[_0x3927d3(0x1a1)](_0x207136)[_0x3927d3(0x1a2)]();_0x207136[_0x3927d3(0x170)]('.tpl')&&(_0x353a36=_0x353a36[_0x3927d3(0x1a3)](/\.tpl$/,''));const _0x492fbb=[_0x3927d3(0x17a),_0x3927d3(0x187),'.jsx',_0x3927d3(0x185),_0x3927d3(0x182),_0x3927d3(0x17d),_0x3927d3(0x17c),_0x3927d3(0x191),_0x3927d3(0x186)];if(_0x492fbb[_0x3927d3(0x192)](_0x4f9237)||_0x207136[_0x3927d3(0x170)](_0x3927d3(0x186))){const _0x532c57=await a262_0x3e97d5[_0x3927d3(0x165)][_0x3927d3(0x184)](_0x207136,_0x3927d3(0x1a5)),_0x1fe3b8=this['replaceContent'](_0x532c57,_0x33a7eb,_0x248e20);await a262_0x3e97d5[_0x3927d3(0x165)][_0x3927d3(0x166)](_0x353a36,_0x1fe3b8,'utf8');}else await a262_0x3e97d5[_0x3927d3(0x165)][_0x3927d3(0x17e)](_0x207136,_0x353a36);}}
@@ -1 +1 @@
1
- (function(_0x2d8400,_0x3f1089){const _0x303be7=a261_0x5528,_0x48881d=_0x2d8400();while(!![]){try{const _0x257a7d=-parseInt(_0x303be7(0x1d5))/0x1+parseInt(_0x303be7(0x1d8))/0x2*(parseInt(_0x303be7(0x1d0))/0x3)+parseInt(_0x303be7(0x1d9))/0x4+-parseInt(_0x303be7(0x1d1))/0x5*(parseInt(_0x303be7(0x1cf))/0x6)+parseInt(_0x303be7(0x1dd))/0x7+parseInt(_0x303be7(0x1d2))/0x8+-parseInt(_0x303be7(0x1cc))/0x9*(parseInt(_0x303be7(0x1e0))/0xa);if(_0x257a7d===_0x3f1089)break;else _0x48881d['push'](_0x48881d['shift']());}catch(_0x144d6c){_0x48881d['push'](_0x48881d['shift']());}}}(a261_0x56a6,0xe93bd));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a261_0x44cc5e from'semver';function a261_0x5528(_0x5e5c19,_0x15522e){_0x5e5c19=_0x5e5c19-0x1cc;const _0x56a6f0=a261_0x56a6();let _0x552883=_0x56a6f0[_0x5e5c19];return _0x552883;}import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a261_0x56a6(){const _0x23dacb=['5368184kjNYBq','stableVersion','rabetbase-cli','valid','1881124ENIQSj','lastNotifiedVersion',',\x20run:\x20','20xVbXKm','now','parse','lastNotifiedAt','update-check.json','https://www.npmjs.com/package/','checkedAt','object','number','utf8','746469twMRgP','latest','trim','2092566VKzBlL','37632wYRIIQ','20SoZmqq','5124408pPqZth','.cache','toLowerCase','1428518XElflc','/v/','true','270RNkqWA'];a261_0x56a6=function(){return _0x23dacb;};return a261_0x56a6();}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 _0x31e929=a261_0x5528,_0x533132=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x31e929(0x1ce)]()[_0x31e929(0x1d4)]();return _0x533132==='1'||_0x533132===_0x31e929(0x1d7)||_0x533132==='yes';}function cacheRoot(){const _0x28a93d=a261_0x5528;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x28a93d(0x1d3));}export function getUpdateNoticeCachePath(){const _0x228068=a261_0x5528;return join(cacheRoot(),_0x228068(0x1db),_0x228068(0x1e4));}async function readUpdateNoticeCache(){const _0x4465eb=a261_0x5528;try{const _0x26630d=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x218913=JSON[_0x4465eb(0x1e2)](_0x26630d);if(!_0x218913||typeof _0x218913!==_0x4465eb(0x1e7))return{};return _0x218913;}catch{return{};}}async function writeUpdateNoticeCache(_0x59542e){const _0x51af84=a261_0x5528;try{const _0x115fa1=getUpdateNoticeCachePath();await mkdir(dirname(_0x115fa1),{'recursive':!![]}),await writeFile(_0x115fa1,JSON['stringify'](_0x59542e,null,0x2)+'\x0a',_0x51af84(0x1e9));}catch{}}function isFreshCheck(_0x4abce6,_0x150b1b){const _0x777013=a261_0x5528;return typeof _0x4abce6[_0x777013(0x1e6)]===_0x777013(0x1e8)&&_0x150b1b-_0x4abce6['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x99bb2f,_0x4ac6cb,_0x25d855){const _0x5911f0=a261_0x5528;return _0x99bb2f[_0x5911f0(0x1de)]===_0x4ac6cb&&typeof _0x99bb2f[_0x5911f0(0x1e3)]===_0x5911f0(0x1e8)&&_0x25d855-_0x99bb2f[_0x5911f0(0x1e3)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x17ba71){const _0x295933=a261_0x5528;return _0x295933(0x1e5)+NPM_PACKAGE_NAME+_0x295933(0x1d6)+_0x17ba71;}export async function resolveLatestUpdateNotice(){const _0x2fd566=a261_0x5528;if(isUpdateNoticeDisabled())return null;try{const _0x26785a=Date[_0x2fd566(0x1e1)](),_0x3064f3=getCliVersion(),_0x5d69fb=await readUpdateNoticeCache();let _0x171ecb=isFreshCheck(_0x5d69fb,_0x26785a)?_0x5d69fb[_0x2fd566(0x1cd)]?.[_0x2fd566(0x1ce)]():undefined;if(!_0x171ecb&&!isFreshCheck(_0x5d69fb,_0x26785a)){const _0x368960=await getCliVersionPolicy();_0x171ecb=_0x368960?.[_0x2fd566(0x1da)]?.[_0x2fd566(0x1ce)]()||undefined,await writeUpdateNoticeCache({..._0x5d69fb,'checkedAt':_0x26785a,'latest':_0x171ecb,'failed':!_0x171ecb});}if(!_0x171ecb||!a261_0x44cc5e[_0x2fd566(0x1dc)](_0x3064f3)||!a261_0x44cc5e['valid'](_0x171ecb))return null;if(a261_0x44cc5e['gte'](_0x3064f3,_0x171ecb))return null;if(isRecentlyNotified(_0x5d69fb,_0x171ecb,_0x26785a))return null;const _0x3416f9=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x5d69fb,'checkedAt':isFreshCheck(_0x5d69fb,_0x26785a)?_0x5d69fb['checkedAt']:_0x26785a,'latest':_0x171ecb,'failed':![],'lastNotifiedVersion':_0x171ecb,'lastNotifiedAt':_0x26785a}),{'command':_0x3416f9,'current':_0x3064f3,'latest':_0x171ecb,'url':buildNpmVersionUrl(_0x171ecb),'message':CLI_BIN_NAME+'\x20'+_0x171ecb+'\x20available,\x20current\x20'+_0x3064f3+_0x2fd566(0x1df)+_0x3416f9};}catch{return null;}}
1
+ function a263_0x20e3(){const _0x4824b5=['checkedAt','3206151OhnbkZ','rabetbase-cli','\x20update','958664WCigBd',',\x20run:\x20','3947886HHmgdM','stableVersion','/v/','20564316ubceUP','5710655mdtsBG','stringify','lastNotifiedAt','now','latest','4gtcZar','2716482KnDKYj','\x20available,\x20current\x20','.cache','yes','parse','gte','trim','https://www.npmjs.com/package/','lastNotifiedVersion','toLowerCase','valid','number','10046267JBfaNu','1GxhKHz','true'];a263_0x20e3=function(){return _0x4824b5;};return a263_0x20e3();}(function(_0x21f8b3,_0x1449a3){const _0x55005d=a263_0x206f,_0x713a84=_0x21f8b3();while(!![]){try{const _0x42c155=parseInt(_0x55005d(0x1bb))/0x1*(parseInt(_0x55005d(0x1cd))/0x2)+-parseInt(_0x55005d(0x1be))/0x3+-parseInt(_0x55005d(0x1cc))/0x4*(parseInt(_0x55005d(0x1c7))/0x5)+parseInt(_0x55005d(0x1c3))/0x6+-parseInt(_0x55005d(0x1ba))/0x7+parseInt(_0x55005d(0x1c1))/0x8+parseInt(_0x55005d(0x1c6))/0x9;if(_0x42c155===_0x1449a3)break;else _0x713a84['push'](_0x713a84['shift']());}catch(_0x1bf867){_0x713a84['push'](_0x713a84['shift']());}}}(a263_0x20e3,0xbd326));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a263_0x45315b 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 _0x5eca5a=a263_0x206f,_0x5dc472=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x5eca5a(0x1d3)]()[_0x5eca5a(0x1b7)]();return _0x5dc472==='1'||_0x5dc472===_0x5eca5a(0x1bc)||_0x5dc472===_0x5eca5a(0x1d0);}function cacheRoot(){const _0x3b675e=a263_0x206f;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3b675e(0x1cf));}export function getUpdateNoticeCachePath(){const _0x218e23=a263_0x206f;return join(cacheRoot(),_0x218e23(0x1bf),'update-check.json');}async function readUpdateNoticeCache(){const _0x2ff139=a263_0x206f;try{const _0x343b46=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x3f8978=JSON[_0x2ff139(0x1d1)](_0x343b46);if(!_0x3f8978||typeof _0x3f8978!=='object')return{};return _0x3f8978;}catch{return{};}}function a263_0x206f(_0x371070,_0x1513b3){_0x371070=_0x371070-0x1b5;const _0x20e392=a263_0x20e3();let _0x206f50=_0x20e392[_0x371070];return _0x206f50;}async function writeUpdateNoticeCache(_0x1ba465){const _0xf14542=a263_0x206f;try{const _0x37601f=getUpdateNoticeCachePath();await mkdir(dirname(_0x37601f),{'recursive':!![]}),await writeFile(_0x37601f,JSON[_0xf14542(0x1c8)](_0x1ba465,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x4a8dc8,_0x4f20d4){const _0x3cd55a=a263_0x206f;return typeof _0x4a8dc8[_0x3cd55a(0x1bd)]===_0x3cd55a(0x1b9)&&_0x4f20d4-_0x4a8dc8[_0x3cd55a(0x1bd)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x33e08c,_0xe44af4,_0x4e2d27){const _0x1559ec=a263_0x206f;return _0x33e08c[_0x1559ec(0x1b6)]===_0xe44af4&&typeof _0x33e08c['lastNotifiedAt']==='number'&&_0x4e2d27-_0x33e08c[_0x1559ec(0x1c9)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x965a63){const _0x130135=a263_0x206f;return _0x130135(0x1b5)+NPM_PACKAGE_NAME+_0x130135(0x1c5)+_0x965a63;}export async function resolveLatestUpdateNotice(){const _0x5a16a4=a263_0x206f;if(isUpdateNoticeDisabled())return null;try{const _0x4fad09=Date[_0x5a16a4(0x1ca)](),_0xb485c7=getCliVersion(),_0x499ae9=await readUpdateNoticeCache();let _0x17155c=isFreshCheck(_0x499ae9,_0x4fad09)?_0x499ae9[_0x5a16a4(0x1cb)]?.[_0x5a16a4(0x1d3)]():undefined;if(!_0x17155c&&!isFreshCheck(_0x499ae9,_0x4fad09)){const _0x1e7558=await getCliVersionPolicy();_0x17155c=_0x1e7558?.[_0x5a16a4(0x1c4)]?.[_0x5a16a4(0x1d3)]()||undefined,await writeUpdateNoticeCache({..._0x499ae9,'checkedAt':_0x4fad09,'latest':_0x17155c,'failed':!_0x17155c});}if(!_0x17155c||!a263_0x45315b[_0x5a16a4(0x1b8)](_0xb485c7)||!a263_0x45315b['valid'](_0x17155c))return null;if(a263_0x45315b[_0x5a16a4(0x1d2)](_0xb485c7,_0x17155c))return null;if(isRecentlyNotified(_0x499ae9,_0x17155c,_0x4fad09))return null;const _0x3524d8=CLI_BIN_NAME+_0x5a16a4(0x1c0);return await writeUpdateNoticeCache({..._0x499ae9,'checkedAt':isFreshCheck(_0x499ae9,_0x4fad09)?_0x499ae9[_0x5a16a4(0x1bd)]:_0x4fad09,'latest':_0x17155c,'failed':![],'lastNotifiedVersion':_0x17155c,'lastNotifiedAt':_0x4fad09}),{'command':_0x3524d8,'current':_0xb485c7,'latest':_0x17155c,'url':buildNpmVersionUrl(_0x17155c),'message':CLI_BIN_NAME+'\x20'+_0x17155c+_0x5a16a4(0x1ce)+_0xb485c7+_0x5a16a4(0x1c2)+_0x3524d8};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x32e992,_0x2a1163){var _0x1682f2=a262_0x1343,_0x31fcd1=_0x32e992();while(!![]){try{var _0x13d143=-parseInt(_0x1682f2(0x79))/0x1*(parseInt(_0x1682f2(0x7a))/0x2)+parseInt(_0x1682f2(0x75))/0x3+-parseInt(_0x1682f2(0x7c))/0x4*(parseInt(_0x1682f2(0x76))/0x5)+parseInt(_0x1682f2(0x73))/0x6*(-parseInt(_0x1682f2(0x74))/0x7)+parseInt(_0x1682f2(0x7b))/0x8+parseInt(_0x1682f2(0x71))/0x9*(parseInt(_0x1682f2(0x78))/0xa)+-parseInt(_0x1682f2(0x77))/0xb*(parseInt(_0x1682f2(0x72))/0xc);if(_0x13d143===_0x2a1163)break;else _0x31fcd1['push'](_0x31fcd1['shift']());}catch(_0x52978a){_0x31fcd1['push'](_0x31fcd1['shift']());}}}(a262_0x32dc,0x7831a));function a262_0x32dc(){var _0x48d89d=['2924424RRAVFG','8MKVSTw','850131zXnZlo','33972YgdPHI','15978vmEKGQ','77OHqyTj','562551fdveSw','1054640IjyKSA','1001mqTenu','70rwwYEj','67gBzogO','394PoGudQ'];a262_0x32dc=function(){return _0x48d89d;};return a262_0x32dc();}function a262_0x1343(_0xd85870,_0x4c4b8d){_0xd85870=_0xd85870-0x71;var _0x32dcc9=a262_0x32dc();var _0x1343e7=_0x32dcc9[_0xd85870];return _0x1343e7;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a264_0x2076(){var _0x28aa13=['6100284RYNGWN','10QWdUvu','11007608epsuyQ','7tNkiRc','1514eeAeIe','1358907uLSghj','8029575IbavGO','932TPHMtl','376140oFbAIB','4umbZcK','9796094XSgKFL'];a264_0x2076=function(){return _0x28aa13;};return a264_0x2076();}(function(_0x3936c2,_0xefe78c){var _0x639540=a264_0x1db7,_0x10e9a8=_0x3936c2();while(!![]){try{var _0x9502ba=-parseInt(_0x639540(0x130))/0x1*(-parseInt(_0x639540(0x138))/0x2)+-parseInt(_0x639540(0x139))/0x3+-parseInt(_0x639540(0x132))/0x4*(-parseInt(_0x639540(0x131))/0x5)+-parseInt(_0x639540(0x134))/0x6*(parseInt(_0x639540(0x137))/0x7)+parseInt(_0x639540(0x136))/0x8+parseInt(_0x639540(0x13a))/0x9+-parseInt(_0x639540(0x135))/0xa*(parseInt(_0x639540(0x133))/0xb);if(_0x9502ba===_0xefe78c)break;else _0x10e9a8['push'](_0x10e9a8['shift']());}catch(_0x446839){_0x10e9a8['push'](_0x10e9a8['shift']());}}}(a264_0x2076,0xa8201));import{VERSION}from'../generated/build-info.js';function a264_0x1db7(_0x2ec09c,_0x4f8512){_0x2ec09c=_0x2ec09c-0x130;var _0x20766f=a264_0x2076();var _0x1db774=_0x20766f[_0x2ec09c];return _0x1db774;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x4597c1,_0x377d6a){var _0x10f511=a263_0x22e6,_0x38ed51=_0x4597c1();while(!![]){try{var _0x412272=-parseInt(_0x10f511(0x181))/0x1+parseInt(_0x10f511(0x17b))/0x2*(-parseInt(_0x10f511(0x178))/0x3)+-parseInt(_0x10f511(0x17c))/0x4*(parseInt(_0x10f511(0x180))/0x5)+-parseInt(_0x10f511(0x17e))/0x6*(parseInt(_0x10f511(0x17f))/0x7)+parseInt(_0x10f511(0x17d))/0x8*(-parseInt(_0x10f511(0x179))/0x9)+parseInt(_0x10f511(0x182))/0xa*(-parseInt(_0x10f511(0x183))/0xb)+parseInt(_0x10f511(0x17a))/0xc;if(_0x412272===_0x377d6a)break;else _0x38ed51['push'](_0x38ed51['shift']());}catch(_0x5aa6e3){_0x38ed51['push'](_0x38ed51['shift']());}}}(a263_0x12b5,0xcb7d1));function a263_0x22e6(_0x43648f,_0x4a1c5e){_0x43648f=_0x43648f-0x178;var _0x12b521=a263_0x12b5();var _0x22e69e=_0x12b521[_0x43648f];return _0x22e69e;}function a263_0x12b5(){var _0x38d7e7=['242349ZqTPQT','98170oRggRI','1232DmgYNS','12009fJDvsa','21672dznVML','69401784ZsXVew','808GQULEK','83056MGctmT','608xGVHlS','19692eRJCdv','2926yDsbvu','105ToFZxf'];a263_0x12b5=function(){return _0x38d7e7;};return a263_0x12b5();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5002ed,_0x2201bc){setActiveCookie(_0x5002ed);try{return await _0x2201bc();}finally{clearActiveCookie();}}
1
+ (function(_0x25dfb7,_0x2054c2){var _0x383445=a265_0x2c0f,_0x3b8496=_0x25dfb7();while(!![]){try{var _0x4d9679=parseInt(_0x383445(0xb9))/0x1*(parseInt(_0x383445(0xbc))/0x2)+parseInt(_0x383445(0xbb))/0x3+parseInt(_0x383445(0xbd))/0x4+-parseInt(_0x383445(0xbf))/0x5*(-parseInt(_0x383445(0xc2))/0x6)+parseInt(_0x383445(0xc1))/0x7+-parseInt(_0x383445(0xba))/0x8+parseInt(_0x383445(0xc0))/0x9*(-parseInt(_0x383445(0xbe))/0xa);if(_0x4d9679===_0x2054c2)break;else _0x3b8496['push'](_0x3b8496['shift']());}catch(_0x565193){_0x3b8496['push'](_0x3b8496['shift']());}}}(a265_0x5a14,0xe66ec));function a265_0x2c0f(_0x57f7a2,_0x2b76d7){_0x57f7a2=_0x57f7a2-0xb9;var _0x5a14b4=a265_0x5a14();var _0x2c0fc3=_0x5a14b4[_0x57f7a2];return _0x2c0fc3;}function a265_0x5a14(){var _0xb835a0=['791890kvlNYe','90FcLSIk','7382263GVZnCX','6cGIbKw','1623773FupBUH','3847272bXNPuR','420726yFnjaD','2AXNaKE','4742156CQtAPR','2737780POTgAe'];a265_0x5a14=function(){return _0xb835a0;};return a265_0x5a14();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3ec8fc,_0x245a7e){setActiveCookie(_0x3ec8fc);try{return await _0x245a7e();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x2c5509,_0x1688f9){var _0x396b01=a264_0x2f29,_0x5edd98=_0x2c5509();while(!![]){try{var _0x2b7130=-parseInt(_0x396b01(0x11c))/0x1*(-parseInt(_0x396b01(0x11f))/0x2)+-parseInt(_0x396b01(0x11b))/0x3*(-parseInt(_0x396b01(0x122))/0x4)+parseInt(_0x396b01(0x123))/0x5+-parseInt(_0x396b01(0x121))/0x6+parseInt(_0x396b01(0x11a))/0x7*(parseInt(_0x396b01(0x11d))/0x8)+-parseInt(_0x396b01(0x120))/0x9+-parseInt(_0x396b01(0x11e))/0xa;if(_0x2b7130===_0x1688f9)break;else _0x5edd98['push'](_0x5edd98['shift']());}catch(_0x5d07a0){_0x5edd98['push'](_0x5edd98['shift']());}}}(a264_0x3cbb,0x77e7b));export function writeCliSideChannelLine(_0xb02ce5){process['stderr']['write'](_0xb02ce5+'\x0a');}function a264_0x2f29(_0x4d8e92,_0x13cf09){_0x4d8e92=_0x4d8e92-0x11a;var _0x3cbb3a=a264_0x3cbb();var _0x2f29eb=_0x3cbb3a[_0x4d8e92];return _0x2f29eb;}function a264_0x3cbb(){var _0x23da3c=['301BnFLkX','3qqCnph','79nEQCYs','87736EeanFh','275140uAAtwq','5618RCalHh','5327199jjelGm','5203308WqjdfE','3637016UyZigX','1875140FHbXLX'];a264_0x3cbb=function(){return _0x23da3c;};return a264_0x3cbb();}
1
+ function a266_0x55b1(){var _0x35f885=['470674BDGhUd','7191765zBREiL','stderr','1641192cGdzUa','136JHnTae','2481710PfxquH','41555AmtiFn','write','21444INVwnS','246LPMkAX','347860rHxegp','10DWxJSY'];a266_0x55b1=function(){return _0x35f885;};return a266_0x55b1();}function a266_0x388e(_0x22c23c,_0x1b9c0b){_0x22c23c=_0x22c23c-0x1cb;var _0x55b1d3=a266_0x55b1();var _0x388e1d=_0x55b1d3[_0x22c23c];return _0x388e1d;}(function(_0x2c135b,_0xdcbf57){var _0x254c1f=a266_0x388e,_0x11eba8=_0x2c135b();while(!![]){try{var _0x2557c1=parseInt(_0x254c1f(0x1ce))/0x1+-parseInt(_0x254c1f(0x1d0))/0x2+-parseInt(_0x254c1f(0x1cc))/0x3*(parseInt(_0x254c1f(0x1d4))/0x4)+-parseInt(_0x254c1f(0x1d6))/0x5*(parseInt(_0x254c1f(0x1cd))/0x6)+-parseInt(_0x254c1f(0x1d5))/0x7+parseInt(_0x254c1f(0x1d3))/0x8+parseInt(_0x254c1f(0x1d1))/0x9*(parseInt(_0x254c1f(0x1cf))/0xa);if(_0x2557c1===_0xdcbf57)break;else _0x11eba8['push'](_0x11eba8['shift']());}catch(_0x24905d){_0x11eba8['push'](_0x11eba8['shift']());}}}(a266_0x55b1,0x2b90c));export function writeCliSideChannelLine(_0xeda5f4){var _0x340956=a266_0x388e;process[_0x340956(0x1d2)][_0x340956(0x1cb)](_0xeda5f4+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.13",
3
+ "version": "2.3.14-beta.1",
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": [