@lovrabet/rabetbase-cli 2.4.1 → 2.4.3-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 (293) 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/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/react/create.js +1 -1
  141. package/lib/commands/page/react/detail.js +1 -1
  142. package/lib/commands/page/react/list.js +1 -1
  143. package/lib/commands/page/react/publish.js +1 -1
  144. package/lib/commands/page/react/shared.js +1 -1
  145. package/lib/commands/page/react/syntax.js +1 -1
  146. package/lib/commands/page/react/template.js +1 -1
  147. package/lib/commands/page/react/update.js +1 -1
  148. package/lib/commands/page/relation-audit.js +1 -1
  149. package/lib/commands/page/restore.js +1 -1
  150. package/lib/commands/page/shared.js +1 -1
  151. package/lib/commands/page/standard-page-status.js +1 -1
  152. package/lib/commands/page/sync.js +1 -1
  153. package/lib/commands/permit/index.js +1 -1
  154. package/lib/commands/permit/page-get.js +1 -1
  155. package/lib/commands/permit/page-set.js +1 -1
  156. package/lib/commands/permit/role-apis-set.js +1 -1
  157. package/lib/commands/permit/role-menus-set.js +1 -1
  158. package/lib/commands/permit/role-menus.js +1 -1
  159. package/lib/commands/permit/shared.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/non-interactive.js +1 -1
  164. package/lib/commands/project/create/project-template-path.js +1 -1
  165. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  166. package/lib/commands/project/create/use-format-code.js +1 -1
  167. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  168. package/lib/commands/project/index.js +1 -1
  169. package/lib/commands/project/upgrade.js +1 -1
  170. package/lib/commands/registry.js +1 -1
  171. package/lib/commands/role/create.js +1 -1
  172. package/lib/commands/role/delete.js +1 -1
  173. package/lib/commands/role/detail.js +1 -1
  174. package/lib/commands/role/index.js +1 -1
  175. package/lib/commands/role/list.js +1 -1
  176. package/lib/commands/role/shared.js +1 -1
  177. package/lib/commands/role/update.js +1 -1
  178. package/lib/commands/role/user-add.js +1 -1
  179. package/lib/commands/role/user-remove.js +1 -1
  180. package/lib/commands/role/user-resolve.js +1 -1
  181. package/lib/commands/run/index.js +1 -1
  182. package/lib/commands/schema.js +1 -1
  183. package/lib/commands/sql/create.js +1 -1
  184. package/lib/commands/sql/delete.js +1 -1
  185. package/lib/commands/sql/detail.js +1 -1
  186. package/lib/commands/sql/exec.js +1 -1
  187. package/lib/commands/sql/index.js +1 -1
  188. package/lib/commands/sql/list.js +1 -1
  189. package/lib/commands/sql/pull.js +1 -1
  190. package/lib/commands/sql/push.js +1 -1
  191. package/lib/commands/sql/shared.js +1 -1
  192. package/lib/commands/sql/status.js +1 -1
  193. package/lib/commands/sql/validate.js +1 -1
  194. package/lib/commands/task/index.js +1 -1
  195. package/lib/commands/task/status.js +1 -1
  196. package/lib/commands/tenant/index.js +1 -1
  197. package/lib/commands/tenant/members-list.js +1 -1
  198. package/lib/commands/tenant/shared.js +1 -1
  199. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  200. package/lib/commands/user-account/index.js +1 -1
  201. package/lib/commands/workspace/add.js +1 -1
  202. package/lib/commands/workspace/index.js +1 -1
  203. package/lib/commands/workspace/remove.js +1 -1
  204. package/lib/config/schema.js +1 -1
  205. package/lib/constant/cdn.js +1 -1
  206. package/lib/constant/cli.js +1 -1
  207. package/lib/constant/defaults.js +1 -1
  208. package/lib/constant/domain.js +1 -1
  209. package/lib/constant/env.js +1 -1
  210. package/lib/constant/output.js +1 -1
  211. package/lib/constant/paths.js +1 -1
  212. package/lib/constant/risk.js +1 -1
  213. package/lib/context/app-resolver.js +1 -1
  214. package/lib/context/auth-resolver.js +1 -1
  215. package/lib/context/config-loader.js +1 -1
  216. package/lib/context.js +1 -1
  217. package/lib/core/alias-resolver.js +1 -1
  218. package/lib/core/api-client.js +1 -1
  219. package/lib/core/bff/config.js +1 -1
  220. package/lib/core/bff/file-system.js +1 -1
  221. package/lib/core/bff/hash.js +1 -1
  222. package/lib/core/bff/lock.js +1 -1
  223. package/lib/core/bff/utils.js +1 -1
  224. package/lib/core/db-resolver.js +1 -1
  225. package/lib/core/page/file-system.js +1 -1
  226. package/lib/core/page/hash.js +1 -1
  227. package/lib/core/page/lock.js +1 -1
  228. package/lib/core/sql-index-auditor.js +1 -1
  229. package/lib/core/sql-sync/config.js +1 -1
  230. package/lib/core/sql-sync/file-system.js +1 -1
  231. package/lib/core/sql-sync/hash.js +1 -1
  232. package/lib/core/sql-sync/lock.js +1 -1
  233. package/lib/core/sql-sync/utils.js +1 -1
  234. package/lib/core/sql-validator.js +1 -1
  235. package/lib/errors.js +1 -1
  236. package/lib/framework/build-all-flags.js +1 -1
  237. package/lib/framework/error-output.js +1 -1
  238. package/lib/framework/explicit-yes.js +1 -1
  239. package/lib/framework/flags.js +1 -1
  240. package/lib/framework/help.js +1 -1
  241. package/lib/framework/index.js +1 -1
  242. package/lib/framework/output.js +1 -1
  243. package/lib/framework/response.js +1 -1
  244. package/lib/framework/runner-alias.js +1 -1
  245. package/lib/framework/runner.js +1 -1
  246. package/lib/framework/schema-export.js +1 -1
  247. package/lib/framework/types.js +1 -1
  248. package/lib/generated/build-info.d.ts +4 -4
  249. package/lib/generated/build-info.js +1 -1
  250. package/lib/help.js +1 -1
  251. package/lib/postinstall.js +1 -1
  252. package/lib/runtime/confirmation.js +1 -1
  253. package/lib/runtime/event.js +1 -1
  254. package/lib/runtime/index.js +1 -1
  255. package/lib/runtime/queue.js +1 -1
  256. package/lib/runtime/resolve.js +1 -1
  257. package/lib/skills/builtin-skill.js +1 -1
  258. package/lib/skills/main.js +1 -1
  259. package/lib/skills/npx-skills-add.js +1 -1
  260. package/lib/skills/skill-presence.js +1 -1
  261. package/lib/telemetry/cli-command-trace.js +1 -1
  262. package/lib/telemetry/cli-help-trace.js +1 -1
  263. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  264. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  265. package/lib/telemetry/send-cli-trace-log.js +1 -1
  266. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  267. package/lib/utils/ai_config.js +1 -1
  268. package/lib/utils/apply-jq-filter.js +1 -1
  269. package/lib/utils/cdn-config.js +1 -1
  270. package/lib/utils/check-sdk-version.js +1 -1
  271. package/lib/utils/cli-version-check.js +1 -1
  272. package/lib/utils/cli-version-policy.js +1 -1
  273. package/lib/utils/config.js +1 -1
  274. package/lib/utils/copy-directory.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +8 -4
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
  293. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x4fa06e,_0x33e2a4){const _0x530f77=a273_0x2d1d,_0x9568fc=_0x4fa06e();while(!![]){try{const _0x50c635=-parseInt(_0x530f77(0xd1))/0x1*(-parseInt(_0x530f77(0xc9))/0x2)+parseInt(_0x530f77(0xcf))/0x3+-parseInt(_0x530f77(0xda))/0x4*(-parseInt(_0x530f77(0xd8))/0x5)+parseInt(_0x530f77(0xd9))/0x6*(parseInt(_0x530f77(0xcd))/0x7)+-parseInt(_0x530f77(0xca))/0x8*(parseInt(_0x530f77(0xd2))/0x9)+-parseInt(_0x530f77(0xce))/0xa+-parseInt(_0x530f77(0xd0))/0xb*(parseInt(_0x530f77(0xd3))/0xc);if(_0x50c635===_0x33e2a4)break;else _0x9568fc['push'](_0x9568fc['shift']());}catch(_0x500511){_0x9568fc['push'](_0x9568fc['shift']());}}}(a273_0x1b68,0x4e14e));import{getTemplateBaseUrl}from'../utils/config.js';function a273_0x1b68(){const _0x2e14cb=['application/json','now','2978493zymoFn','1069740KhkkhL','389187mCIjUg','11gRsdEM','584946xAMDUs','4623921SKSjFe','7869684oQmWxa','stableVersion','/config/index.json','json','node','760330KntjWq','6yBbHVp','12KRvHlJ','2jmntRE','8VRCUIF'];a273_0x1b68=function(){return _0x2e14cb;};return a273_0x1b68();}export async function fetchCdnConfig(){const _0x552731=a273_0x2d1d,_0x43b1d3=getTemplateBaseUrl(),_0x1a0107=[_0x43b1d3+'/config.json',_0x43b1d3+_0x552731(0xd5)];for(const _0x3016d3 of _0x1a0107){try{const _0x412a0f=await fetch(_0x3016d3,{'headers':{'Accept':_0x552731(0xcb)}});if(!_0x412a0f['ok'])continue;const _0x39d84e=await _0x412a0f[_0x552731(0xd6)]();if(!_0x39d84e['cli']?.['stableVersion']||!_0x39d84e['sdk']?.[_0x552731(0xd7)]?.[_0x552731(0xd4)])continue;return _0x39d84e;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x36242b=a273_0x2d1d,_0x210e12=Date[_0x36242b(0xcc)]();if(hasCachedConfig){const _0xe33486=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x210e12-cacheTime<_0xe33486)return cachedConfig;}const _0x16d257=await fetchCdnConfig();return cachedConfig=_0x16d257,cacheTime=_0x210e12,hasCachedConfig=!![],_0x16d257;}function a273_0x2d1d(_0x638ecd,_0x63d87d){_0x638ecd=_0x638ecd-0xc9;const _0x1b6848=a273_0x1b68();let _0x2d1df1=_0x1b6848[_0x638ecd];return _0x2d1df1;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a273_0xa2cc(_0x594323,_0x120bdc){_0x594323=_0x594323-0x73;const _0x2d1c12=a273_0x2d1c();let _0xa2cc10=_0x2d1c12[_0x594323];return _0xa2cc10;}(function(_0x19b541,_0x2e551e){const _0x1a71fe=a273_0xa2cc,_0x132958=_0x19b541();while(!![]){try{const _0x4e5e83=-parseInt(_0x1a71fe(0x80))/0x1*(parseInt(_0x1a71fe(0x73))/0x2)+-parseInt(_0x1a71fe(0x85))/0x3+-parseInt(_0x1a71fe(0x82))/0x4+parseInt(_0x1a71fe(0x7c))/0x5*(-parseInt(_0x1a71fe(0x7b))/0x6)+-parseInt(_0x1a71fe(0x7a))/0x7*(-parseInt(_0x1a71fe(0x79))/0x8)+-parseInt(_0x1a71fe(0x75))/0x9*(-parseInt(_0x1a71fe(0x81))/0xa)+parseInt(_0x1a71fe(0x77))/0xb*(parseInt(_0x1a71fe(0x83))/0xc);if(_0x4e5e83===_0x2e551e)break;else _0x132958['push'](_0x132958['shift']());}catch(_0x433110){_0x132958['push'](_0x132958['shift']());}}}(a273_0x2d1c,0xaf99d));import{getTemplateBaseUrl}from'../utils/config.js';function a273_0x2d1c(){const _0x5ba5ca=['node','32Ydixrc','985957jRGkJY','6vxyenh','6559185lxQTDb','/config.json','/config/index.json','cli','1dRPGBR','50hHLpxW','2368828tplXkg','54660iksaib','stableVersion','278613qVWiEH','553246XhPZzh','json','1060515UptHAg','sdk','4444aMEbkX'];a273_0x2d1c=function(){return _0x5ba5ca;};return a273_0x2d1c();}export async function fetchCdnConfig(){const _0x1307e0=a273_0xa2cc,_0x298b47=getTemplateBaseUrl(),_0x5c6065=[_0x298b47+_0x1307e0(0x7d),_0x298b47+_0x1307e0(0x7e)];for(const _0x4394ab of _0x5c6065){try{const _0x27e519=await fetch(_0x4394ab,{'headers':{'Accept':'application/json'}});if(!_0x27e519['ok'])continue;const _0x556437=await _0x27e519[_0x1307e0(0x74)]();if(!_0x556437[_0x1307e0(0x7f)]?.[_0x1307e0(0x84)]||!_0x556437[_0x1307e0(0x76)]?.[_0x1307e0(0x78)]?.[_0x1307e0(0x84)])continue;return _0x556437;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x31cb97=Date['now']();if(hasCachedConfig){const _0x1e1935=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x31cb97-cacheTime<_0x1e1935)return cachedConfig;}const _0x39da75=await fetchCdnConfig();return cachedConfig=_0x39da75,cacheTime=_0x31cb97,hasCachedConfig=!![],_0x39da75;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x2deb4f,_0x3135ef){const _0x41dcea=a274_0x586d,_0x4f62dc=_0x2deb4f();while(!![]){try{const _0x2e3561=parseInt(_0x41dcea(0x14f))/0x1+-parseInt(_0x41dcea(0x15f))/0x2+parseInt(_0x41dcea(0x14d))/0x3*(-parseInt(_0x41dcea(0x157))/0x4)+-parseInt(_0x41dcea(0x166))/0x5*(-parseInt(_0x41dcea(0x15b))/0x6)+parseInt(_0x41dcea(0x15d))/0x7+parseInt(_0x41dcea(0x16e))/0x8+parseInt(_0x41dcea(0x15e))/0x9*(-parseInt(_0x41dcea(0x158))/0xa);if(_0x2e3561===_0x3135ef)break;else _0x4f62dc['push'](_0x4f62dc['shift']());}catch(_0x3c9fe7){_0x4f62dc['push'](_0x4f62dc['shift']());}}}(a274_0x78e2,0x915d4));function a274_0x586d(_0x12b76f,_0x33a6a7){_0x12b76f=_0x12b76f-0x14c;const _0x78e2bf=a274_0x78e2();let _0x586d13=_0x78e2bf[_0x12b76f];return _0x586d13;}import a274_0x18a259 from'node:fs';function a274_0x78e2(){const _0x580e51=['utf-8','parse','1449384ftcyUS','join','package.json','readFileSync','some','1202043RUUKxf','packageName','193144QzaDqa','\x20\x20\x20Stable\x20version:\x20','devDependencies','@lovrabet/sdk','dependencies','\x20\x20\x20Current\x20version:\x20','node_modules','version','4hmgowm','3090910ssttha','\x1b[1m','stableVersion','62316bbmnUr','log','3617005LiIhUs','9yPfmgS','293384cawsZU','coerce','existsSync','↪\x20SDK\x20update\x20available','\x1b[0m','\x20\x20\x20Upgrade\x20command:\x20','node','270mdjaot','utf8','minVersion','needsUpgrade','sdk','latest'];a274_0x78e2=function(){return _0x580e51;};return a274_0x78e2();}import a274_0x29008a from'node:path';import a274_0x141db9 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x4cdfef){const _0x1a46f5=a274_0x586d,_0x76ca3c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x76ca3c[_0x1a46f5(0x14c)](_0x4edad2=>_0x4edad2['test'](_0x4cdfef));}function getInstalledVersion(_0x41cc0a,_0x4e5497){const _0x4c79f5=a274_0x586d;try{const _0x342a77=a274_0x29008a[_0x4c79f5(0x16f)](_0x41cc0a,_0x4c79f5(0x155),_0x4e5497,_0x4c79f5(0x170));if(a274_0x18a259[_0x4c79f5(0x161)](_0x342a77)){const _0x57b348=JSON[_0x4c79f5(0x16d)](a274_0x18a259['readFileSync'](_0x342a77,_0x4c79f5(0x16c)));return _0x57b348[_0x4c79f5(0x156)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x191463=a274_0x586d;try{const _0xaf113=await getCdnConfig();return _0xaf113?.[_0x191463(0x16a)]?.[_0x191463(0x165)]?.[_0x191463(0x15a)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x209509=a274_0x586d;try{const _0x4065ae=await getCdnConfig();return _0x4065ae?.[_0x209509(0x16a)]?.[_0x209509(0x165)]?.[_0x209509(0x14e)]||_0x209509(0x152);}catch{return _0x209509(0x152);}}export async function checkSdkVersion(_0x1dfceb){const _0x4f2946=a274_0x586d,_0x54b030=a274_0x29008a[_0x4f2946(0x16f)](_0x1dfceb,'package.json'),[_0x241edf,_0x36d1e5]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x1c9951=_0x241edf||FALLBACK_MIN_SDK_VERSION;if(!a274_0x18a259['existsSync'](_0x54b030))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};try{const _0x442998=JSON[_0x4f2946(0x16d)](a274_0x18a259[_0x4f2946(0x171)](_0x54b030,_0x4f2946(0x167))),_0x5a3524=_0x442998['dependencies']||{},_0x1258c1=_0x442998[_0x4f2946(0x151)]||{},_0x59ff55=_0x5a3524[_0x36d1e5]||_0x1258c1[_0x36d1e5];if(!_0x59ff55)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};let _0x107654=getInstalledVersion(_0x1dfceb,_0x36d1e5);!_0x107654&&(_0x107654=_0x59ff55);if(isNonNumericVersion(_0x59ff55))return{'installed':!![],'version':_0x107654,'needsUpgrade':![],'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};const _0x5c80af=a274_0x141db9[_0x4f2946(0x160)](_0x107654),_0x356bac=a274_0x141db9[_0x4f2946(0x160)](_0x1c9951),_0x36189e=_0x5c80af&&_0x356bac?a274_0x141db9['lt'](_0x5c80af,_0x356bac):![];return{'installed':!![],'version':_0x107654,'needsUpgrade':_0x36189e,'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};}}export function checkSdkVersionSync(_0x13f37d){const _0x2d2248=a274_0x586d,_0xa6ce8a=a274_0x29008a[_0x2d2248(0x16f)](_0x13f37d,_0x2d2248(0x170)),_0x2a19ea=_0x2d2248(0x152);if(!a274_0x18a259[_0x2d2248(0x161)](_0xa6ce8a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};try{const _0x5a8045=JSON[_0x2d2248(0x16d)](a274_0x18a259[_0x2d2248(0x171)](_0xa6ce8a,_0x2d2248(0x167))),_0x5850a2=_0x5a8045[_0x2d2248(0x153)]||{},_0x3af155=_0x5a8045[_0x2d2248(0x151)]||{},_0x38b478=_0x5850a2[_0x2a19ea]||_0x3af155[_0x2a19ea];if(!_0x38b478)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};let _0x21e231=getInstalledVersion(_0x13f37d,_0x2a19ea);!_0x21e231&&(_0x21e231=_0x38b478);if(isNonNumericVersion(_0x38b478))return{'installed':!![],'version':_0x21e231,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};const _0x4717c2=a274_0x141db9['coerce'](_0x21e231),_0x22917f=_0x4717c2?a274_0x141db9['lt'](_0x4717c2,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x21e231,'needsUpgrade':_0x22917f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x529e46){const _0x2767e7=a274_0x586d;if(!_0x529e46[_0x2767e7(0x169)])return;const _0x2d60db='\x1b[33m',_0x55ee4d=_0x2767e7(0x163),_0x2d710d=_0x2767e7(0x159),_0x6bd2e1=_0x529e46[_0x2767e7(0x14e)]||_0x2767e7(0x152),_0x43f710=_0x529e46[_0x2767e7(0x15a)]||_0x529e46[_0x2767e7(0x168)],_0x3f18ac='npm\x20install\x20'+_0x6bd2e1+'@'+(_0x43f710||_0x2767e7(0x16b));console[_0x2767e7(0x15c)](),console[_0x2767e7(0x15c)](''+_0x2d60db+_0x2d710d+_0x2767e7(0x162)+_0x55ee4d),console[_0x2767e7(0x15c)](_0x2d60db+_0x2767e7(0x154)+_0x6bd2e1+'@'+_0x529e46['version']+_0x55ee4d),console[_0x2767e7(0x15c)](_0x2d60db+_0x2767e7(0x150)+_0x43f710+_0x55ee4d),console[_0x2767e7(0x15c)](_0x2d60db+_0x2767e7(0x164)+_0x3f18ac+_0x55ee4d),console[_0x2767e7(0x15c)]();}
1
+ const a274_0x143628=a274_0x5d95;(function(_0x5e7207,_0x4611c5){const _0xe105fd=a274_0x5d95,_0x43a775=_0x5e7207();while(!![]){try{const _0x3f2ef6=-parseInt(_0xe105fd(0x1b7))/0x1+parseInt(_0xe105fd(0x1b8))/0x2*(-parseInt(_0xe105fd(0x1b1))/0x3)+parseInt(_0xe105fd(0x1b3))/0x4+parseInt(_0xe105fd(0x1b0))/0x5+parseInt(_0xe105fd(0x1c2))/0x6+parseInt(_0xe105fd(0x1c4))/0x7*(-parseInt(_0xe105fd(0x1c1))/0x8)+-parseInt(_0xe105fd(0x1a9))/0x9*(-parseInt(_0xe105fd(0x1c9))/0xa);if(_0x3f2ef6===_0x4611c5)break;else _0x43a775['push'](_0x43a775['shift']());}catch(_0x3b0c8e){_0x43a775['push'](_0x43a775['shift']());}}}(a274_0x4969,0x1ea87));function a274_0x5d95(_0x3eb971,_0x5a0e87){_0x3eb971=_0x3eb971-0x1a4;const _0x4969cd=a274_0x4969();let _0x5d9552=_0x4969cd[_0x3eb971];return _0x5d9552;}import a274_0x36f290 from'node:fs';import a274_0x4bcf87 from'node:path';import a274_0x474b10 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a274_0x143628(0x1c7);function a274_0x4969(){const _0x898e40=['readFileSync','↪\x20SDK\x20update\x20available','test','131275yUZFHz','16622WpKEsD','@lovrabet/sdk','log','\x20\x20\x20Upgrade\x20command:\x20','package.json','needsUpgrade','some','\x1b[0m','packageName','2992mfYOyi','808476vYpJwQ','minVersion','3619mOqqvd','utf8','existsSync','1.2.0','coerce','2870pCPDkO','\x1b[33m','parse','sdk','dependencies','node_modules','1161vutwGl','node','devDependencies','\x1b[1m','all','stableVersion','join','389790LhhlJT','15BnxybI','\x20\x20\x20Current\x20version:\x20','968144TBBwca'];a274_0x4969=function(){return _0x898e40;};return a274_0x4969();}function isNonNumericVersion(_0x538ee8){const _0x4071f6=a274_0x143628,_0x1ad534=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1ad534[_0x4071f6(0x1be)](_0x3f1542=>_0x3f1542[_0x4071f6(0x1b6)](_0x538ee8));}function getInstalledVersion(_0x3226bb,_0x561122){const _0x5340ec=a274_0x143628;try{const _0xe17efc=a274_0x4bcf87[_0x5340ec(0x1af)](_0x3226bb,_0x5340ec(0x1a8),_0x561122,_0x5340ec(0x1bc));if(a274_0x36f290['existsSync'](_0xe17efc)){const _0xa18fab=JSON[_0x5340ec(0x1a5)](a274_0x36f290[_0x5340ec(0x1b4)](_0xe17efc,'utf-8'));return _0xa18fab['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4de7cf=a274_0x143628;try{const _0x2bd474=await getCdnConfig();return _0x2bd474?.[_0x4de7cf(0x1a6)]?.['node']?.[_0x4de7cf(0x1ae)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5564d0=a274_0x143628;try{const _0x534b9a=await getCdnConfig();return _0x534b9a?.['sdk']?.[_0x5564d0(0x1aa)]?.['packageName']||_0x5564d0(0x1b9);}catch{return _0x5564d0(0x1b9);}}export async function checkSdkVersion(_0x9a2fb4){const _0x3ed9ab=a274_0x143628,_0x62db5a=a274_0x4bcf87[_0x3ed9ab(0x1af)](_0x9a2fb4,'package.json'),[_0x41585f,_0x13c223]=await Promise[_0x3ed9ab(0x1ad)]([getSdkStableVersion(),getSdkPackageName()]),_0x69bd89=_0x41585f||FALLBACK_MIN_SDK_VERSION;if(!a274_0x36f290['existsSync'](_0x62db5a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};try{const _0x24da37=JSON[_0x3ed9ab(0x1a5)](a274_0x36f290[_0x3ed9ab(0x1b4)](_0x62db5a,_0x3ed9ab(0x1c5))),_0x4a0b1e=_0x24da37[_0x3ed9ab(0x1a7)]||{},_0x170ce4=_0x24da37[_0x3ed9ab(0x1ab)]||{},_0x5bd102=_0x4a0b1e[_0x13c223]||_0x170ce4[_0x13c223];if(!_0x5bd102)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};let _0x38803d=getInstalledVersion(_0x9a2fb4,_0x13c223);!_0x38803d&&(_0x38803d=_0x5bd102);if(isNonNumericVersion(_0x5bd102))return{'installed':!![],'version':_0x38803d,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};const _0x1454f9=a274_0x474b10[_0x3ed9ab(0x1c8)](_0x38803d),_0x150446=a274_0x474b10[_0x3ed9ab(0x1c8)](_0x69bd89),_0x2a4660=_0x1454f9&&_0x150446?a274_0x474b10['lt'](_0x1454f9,_0x150446):![];return{'installed':!![],'version':_0x38803d,'needsUpgrade':_0x2a4660,'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};}}export function checkSdkVersionSync(_0x37ed65){const _0x14e896=a274_0x143628,_0x7a30be=a274_0x4bcf87[_0x14e896(0x1af)](_0x37ed65,_0x14e896(0x1bc)),_0x2c5e78='@lovrabet/sdk';if(!a274_0x36f290[_0x14e896(0x1c6)](_0x7a30be))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};try{const _0x81bbc9=JSON[_0x14e896(0x1a5)](a274_0x36f290[_0x14e896(0x1b4)](_0x7a30be,_0x14e896(0x1c5))),_0x3b9ea0=_0x81bbc9[_0x14e896(0x1a7)]||{},_0x2e5230=_0x81bbc9[_0x14e896(0x1ab)]||{},_0x56d668=_0x3b9ea0[_0x2c5e78]||_0x2e5230[_0x2c5e78];if(!_0x56d668)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};let _0x13e05c=getInstalledVersion(_0x37ed65,_0x2c5e78);!_0x13e05c&&(_0x13e05c=_0x56d668);if(isNonNumericVersion(_0x56d668))return{'installed':!![],'version':_0x13e05c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};const _0x470be3=a274_0x474b10[_0x14e896(0x1c8)](_0x13e05c),_0x28b236=_0x470be3?a274_0x474b10['lt'](_0x470be3,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x13e05c,'needsUpgrade':_0x28b236,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x56a14c){const _0x13d617=a274_0x143628;if(!_0x56a14c[_0x13d617(0x1bd)])return;const _0x3b7e29=_0x13d617(0x1a4),_0x44bac9=_0x13d617(0x1bf),_0x34ad0b=_0x13d617(0x1ac),_0x64d246=_0x56a14c[_0x13d617(0x1c0)]||_0x13d617(0x1b9),_0x3e566b=_0x56a14c[_0x13d617(0x1ae)]||_0x56a14c[_0x13d617(0x1c3)],_0x39152e='npm\x20install\x20'+_0x64d246+'@'+(_0x3e566b||'latest');console[_0x13d617(0x1ba)](),console[_0x13d617(0x1ba)](''+_0x3b7e29+_0x34ad0b+_0x13d617(0x1b5)+_0x44bac9),console[_0x13d617(0x1ba)](_0x3b7e29+_0x13d617(0x1b2)+_0x64d246+'@'+_0x56a14c['version']+_0x44bac9),console['log'](_0x3b7e29+'\x20\x20\x20Stable\x20version:\x20'+_0x3e566b+_0x44bac9),console[_0x13d617(0x1ba)](_0x3b7e29+_0x13d617(0x1bb)+_0x39152e+_0x44bac9),console[_0x13d617(0x1ba)]();}
@@ -1 +1 @@
1
- (function(_0x26a236,_0x56d1a9){const _0x14636e=a275_0x179c,_0x4733cf=_0x26a236();while(!![]){try{const _0x1a88b6=parseInt(_0x14636e(0x1be))/0x1*(-parseInt(_0x14636e(0x1af))/0x2)+parseInt(_0x14636e(0x1c0))/0x3*(parseInt(_0x14636e(0x1c3))/0x4)+-parseInt(_0x14636e(0x1bd))/0x5*(parseInt(_0x14636e(0x1b5))/0x6)+-parseInt(_0x14636e(0x1a8))/0x7+parseInt(_0x14636e(0x1c1))/0x8*(parseInt(_0x14636e(0x1ad))/0x9)+-parseInt(_0x14636e(0x1b0))/0xa+parseInt(_0x14636e(0x1cc))/0xb;if(_0x1a88b6===_0x56d1a9)break;else _0x4733cf['push'](_0x4733cf['shift']());}catch(_0x2c5bee){_0x4733cf['push'](_0x4733cf['shift']());}}}(a275_0x47d8,0x80495));function a275_0x47d8(){const _0x1124ca=['parse','4JZIGCl','\x20\x20\x20Upgrade\x20command:\x20','needsUpgrade','↪\x20New\x20version\x20available','validation','\x20\x20\x20Current\x20CLI\x20version:\x20','upgradeMessage','../..','\x1b[0m','25312705RLxVwE','utf-8','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','stableVersion','Minimum\x20supported:\x20','1.0.0','package.json','535108nLkmPO','\x1b[1m','version','log','\x20\x20\x20Stable\x20version:\x20','479943uHyKCC','\x1b[31m','1574TLcuKs','8829040vbUEUy','minimumVersion','\x1b[33m','minimumVersionMessage','Upgrade\x20command:\x20','294GsDBJt','belowMinimum','join','npm\x20install\x20-g\x20','coerce','latest','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Recommended\x20stable:\x20','96445wGXAbu','1291ASgUBf','\x20\x20\x20','2954553AULTqW','24acKOlh'];a275_0x47d8=function(){return _0x1124ca;};return a275_0x47d8();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a275_0x18cc96 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(_0x52c532){const _0x2fe8fb=a275_0x179c,_0x577a1c=_0x52c532[_0x2fe8fb(0x1a4)]||_0x2fe8fb(0x1ba);return _0x2fe8fb(0x1b8)+NPM_PACKAGE_NAME+'@'+_0x577a1c;}function getCurrentCliVersion(){const _0x24524b=a275_0x179c;try{const _0x37fa31=fileURLToPath(import.meta.url),_0x514158=resolve(dirname(_0x37fa31),_0x24524b(0x1ca)),_0x363c9a=resolve(_0x514158,_0x24524b(0x1a7)),_0x34bd22=JSON[_0x24524b(0x1c2)](readFileSync(_0x363c9a,_0x24524b(0x1cd)));return _0x34bd22[_0x24524b(0x1aa)]||_0x24524b(0x1a6);}catch{return'1.0.0';}}function a275_0x179c(_0x164105,_0x3e95b8){_0x164105=_0x164105-0x1a4;const _0x47d87c=a275_0x47d8();let _0x179cf6=_0x47d87c[_0x164105];return _0x179cf6;}export async function checkCliVersion(){const _0x49ae50=a275_0x179c,_0x5111bb=getCurrentCliVersion(),_0x22ee65=await getCliVersionPolicy(),_0x154f60=_0x22ee65?.[_0x49ae50(0x1a4)]||null,_0x373e03=_0x22ee65?.[_0x49ae50(0x1b1)]||null;let _0x5bedda=![],_0x5e55b6=![];const _0x4b5eca=a275_0x18cc96[_0x49ae50(0x1b9)](_0x5111bb);if(_0x4b5eca&&_0x154f60)try{const _0x28bbe9=a275_0x18cc96[_0x49ae50(0x1b9)](_0x154f60);if(_0x28bbe9)_0x5bedda=a275_0x18cc96['lt'](_0x4b5eca,_0x28bbe9);}catch{}if(_0x4b5eca&&_0x373e03)try{const _0x300a08=a275_0x18cc96[_0x49ae50(0x1b9)](_0x373e03);if(_0x300a08)_0x5e55b6=a275_0x18cc96['lt'](_0x4b5eca,_0x300a08);}catch{}return _0x5e55b6&&(_0x5bedda=!![]),{'currentVersion':_0x5111bb,'stableVersion':_0x154f60,'minimumVersion':_0x373e03,'needsUpgrade':_0x5bedda,'belowMinimum':_0x5e55b6,'isPreRelease':![],'upgradeMessage':_0x22ee65?.[_0x49ae50(0x1c9)],'minimumVersionMessage':_0x22ee65?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x25174c){const _0x588dc9=a275_0x179c;if(!_0x25174c[_0x588dc9(0x1c5)]&&!_0x25174c[_0x588dc9(0x1b6)])return;const _0x217d73=_0x588dc9(0x1ae),_0x15896a=_0x588dc9(0x1b2),_0x518d9a=_0x588dc9(0x1cb),_0x2cb75d=_0x588dc9(0x1a9),_0x196e6c=getCliUpgradeCommand(_0x25174c);console[_0x588dc9(0x1ab)](),_0x25174c[_0x588dc9(0x1b6)]?(console[_0x588dc9(0x1ab)](''+_0x217d73+_0x2cb75d+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x518d9a),console[_0x588dc9(0x1ab)](_0x217d73+_0x588dc9(0x1c8)+_0x25174c['currentVersion']+_0x518d9a),_0x25174c[_0x588dc9(0x1b1)]&&console[_0x588dc9(0x1ab)](_0x217d73+_0x588dc9(0x1bb)+_0x25174c[_0x588dc9(0x1b1)]+_0x518d9a),_0x25174c[_0x588dc9(0x1a4)]&&_0x25174c[_0x588dc9(0x1a4)]!==_0x25174c[_0x588dc9(0x1b1)]&&console[_0x588dc9(0x1ab)](_0x217d73+_0x588dc9(0x1bc)+_0x25174c[_0x588dc9(0x1a4)]+_0x518d9a),_0x25174c[_0x588dc9(0x1b3)]&&console[_0x588dc9(0x1ab)](_0x217d73+'\x20\x20\x20'+_0x25174c[_0x588dc9(0x1b3)]+_0x518d9a),console[_0x588dc9(0x1ab)](_0x217d73+_0x588dc9(0x1c4)+_0x196e6c+_0x518d9a)):(console[_0x588dc9(0x1ab)](''+_0x15896a+_0x2cb75d+_0x588dc9(0x1c6)+_0x518d9a),console['log'](_0x15896a+_0x588dc9(0x1c8)+_0x25174c['currentVersion']+_0x518d9a),console[_0x588dc9(0x1ab)](_0x15896a+_0x588dc9(0x1ac)+_0x25174c[_0x588dc9(0x1a4)]+_0x518d9a),_0x25174c['upgradeMessage']&&console[_0x588dc9(0x1ab)](_0x15896a+_0x588dc9(0x1bf)+_0x25174c['upgradeMessage']+_0x518d9a),console[_0x588dc9(0x1ab)](_0x15896a+_0x588dc9(0x1c4)+_0x196e6c+_0x518d9a)),console['log']();}export function assertCliVersionSupported(_0x29b1ed){const _0x45b8fa=a275_0x179c;if(!_0x29b1ed['belowMinimum'])return;const _0x2bedd4=[_0x29b1ed[_0x45b8fa(0x1b3)],'Current\x20version:\x20'+_0x29b1ed['currentVersion'],_0x29b1ed[_0x45b8fa(0x1b1)]?_0x45b8fa(0x1a5)+_0x29b1ed[_0x45b8fa(0x1b1)]:null,_0x45b8fa(0x1b4)+getCliUpgradeCommand(_0x29b1ed)]['filter'](Boolean)[_0x45b8fa(0x1b7)]('\x0a');throw CliErrors[_0x45b8fa(0x1c7)](_0x45b8fa(0x1ce),_0x2bedd4);}
1
+ (function(_0x316339,_0x4b21e7){const _0x1f090c=a275_0x17c8,_0x311012=_0x316339();while(!![]){try{const _0x3ab734=parseInt(_0x1f090c(0x10b))/0x1+parseInt(_0x1f090c(0xff))/0x2+parseInt(_0x1f090c(0xfa))/0x3+parseInt(_0x1f090c(0xfe))/0x4+parseInt(_0x1f090c(0x10f))/0x5+parseInt(_0x1f090c(0x102))/0x6*(parseInt(_0x1f090c(0xf2))/0x7)+-parseInt(_0x1f090c(0x112))/0x8;if(_0x3ab734===_0x4b21e7)break;else _0x311012['push'](_0x311012['shift']());}catch(_0x2bd274){_0x311012['push'](_0x311012['shift']());}}}(a275_0x442f,0xe9242));import{readFileSync}from'node:fs';function a275_0x17c8(_0x4e3719,_0x371990){_0x4e3719=_0x4e3719-0xf0;const _0x442f41=a275_0x442f();let _0x17c8a7=_0x442f41[_0x4e3719];return _0x17c8a7;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a275_0x442f(){const _0xf0212a=['3456412IDaVek','1734830leofLy','\x20\x20\x20Current\x20CLI\x20version:\x20','minimumVersionMessage','96ymSoXY','belowMinimum','\x20\x20\x20Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[1m','\x20\x20\x20Recommended\x20stable:\x20','minimumVersion','currentVersion','package.json','1021586FzXIuD','../..','\x1b[0m','parse','6055875LXQGOA','log','1.0.0','47175560lCGIBg','\x20\x20\x20','↪\x20New\x20version\x20available','join','485618rFCIPS','utf-8','filter','npm\x20install\x20-g\x20','Upgrade\x20command:\x20','stableVersion','version','coerce','5332884OIyDWF','upgradeMessage','\x1b[33m','\x1b[31m'];a275_0x442f=function(){return _0xf0212a;};return a275_0x442f();}import a275_0x511ab9 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(_0x2d3204){const _0x320ac9=a275_0x17c8,_0x309309=_0x2d3204['stableVersion']||'latest';return _0x320ac9(0xf5)+NPM_PACKAGE_NAME+'@'+_0x309309;}function getCurrentCliVersion(){const _0x1a822e=a275_0x17c8;try{const _0x444b67=fileURLToPath(import.meta.url),_0x2419bb=resolve(dirname(_0x444b67),_0x1a822e(0x10c)),_0x2fe306=resolve(_0x2419bb,_0x1a822e(0x10a)),_0x3d5809=JSON[_0x1a822e(0x10e)](readFileSync(_0x2fe306,_0x1a822e(0xf3)));return _0x3d5809[_0x1a822e(0xf8)]||'1.0.0';}catch{return _0x1a822e(0x111);}}export async function checkCliVersion(){const _0x3b8d26=a275_0x17c8,_0x12f705=getCurrentCliVersion(),_0x7c764d=await getCliVersionPolicy(),_0x1e002f=_0x7c764d?.[_0x3b8d26(0xf7)]||null,_0x140bd6=_0x7c764d?.[_0x3b8d26(0x108)]||null;let _0x5c5604=![],_0x1e815f=![];const _0x559c7e=a275_0x511ab9[_0x3b8d26(0xf9)](_0x12f705);if(_0x559c7e&&_0x1e002f)try{const _0x4ae5ea=a275_0x511ab9['coerce'](_0x1e002f);if(_0x4ae5ea)_0x5c5604=a275_0x511ab9['lt'](_0x559c7e,_0x4ae5ea);}catch{}if(_0x559c7e&&_0x140bd6)try{const _0x841a0e=a275_0x511ab9[_0x3b8d26(0xf9)](_0x140bd6);if(_0x841a0e)_0x1e815f=a275_0x511ab9['lt'](_0x559c7e,_0x841a0e);}catch{}return _0x1e815f&&(_0x5c5604=!![]),{'currentVersion':_0x12f705,'stableVersion':_0x1e002f,'minimumVersion':_0x140bd6,'needsUpgrade':_0x5c5604,'belowMinimum':_0x1e815f,'isPreRelease':![],'upgradeMessage':_0x7c764d?.[_0x3b8d26(0xfb)],'minimumVersionMessage':_0x7c764d?.[_0x3b8d26(0x101)]};}export function printCliUpgradeWarning(_0x220ba1){const _0x2e7767=a275_0x17c8;if(!_0x220ba1['needsUpgrade']&&!_0x220ba1[_0x2e7767(0x103)])return;const _0x2db2c8=_0x2e7767(0xfd),_0x19afeb=_0x2e7767(0xfc),_0x2cca68=_0x2e7767(0x10d),_0xf9d4b2=_0x2e7767(0x106),_0x190ff7=getCliUpgradeCommand(_0x220ba1);console[_0x2e7767(0x110)](),_0x220ba1[_0x2e7767(0x103)]?(console[_0x2e7767(0x110)](''+_0x2db2c8+_0xf9d4b2+_0x2e7767(0x105)+_0x2cca68),console['log'](_0x2db2c8+_0x2e7767(0x100)+_0x220ba1[_0x2e7767(0x109)]+_0x2cca68),_0x220ba1[_0x2e7767(0x108)]&&console[_0x2e7767(0x110)](_0x2db2c8+'\x20\x20\x20Minimum\x20supported:\x20'+_0x220ba1['minimumVersion']+_0x2cca68),_0x220ba1[_0x2e7767(0xf7)]&&_0x220ba1['stableVersion']!==_0x220ba1[_0x2e7767(0x108)]&&console['log'](_0x2db2c8+_0x2e7767(0x107)+_0x220ba1[_0x2e7767(0xf7)]+_0x2cca68),_0x220ba1['minimumVersionMessage']&&console[_0x2e7767(0x110)](_0x2db2c8+_0x2e7767(0x113)+_0x220ba1[_0x2e7767(0x101)]+_0x2cca68),console[_0x2e7767(0x110)](_0x2db2c8+'\x20\x20\x20Upgrade\x20command:\x20'+_0x190ff7+_0x2cca68)):(console[_0x2e7767(0x110)](''+_0x19afeb+_0xf9d4b2+_0x2e7767(0xf0)+_0x2cca68),console[_0x2e7767(0x110)](_0x19afeb+_0x2e7767(0x100)+_0x220ba1['currentVersion']+_0x2cca68),console[_0x2e7767(0x110)](_0x19afeb+'\x20\x20\x20Stable\x20version:\x20'+_0x220ba1['stableVersion']+_0x2cca68),_0x220ba1[_0x2e7767(0xfb)]&&console[_0x2e7767(0x110)](_0x19afeb+_0x2e7767(0x113)+_0x220ba1[_0x2e7767(0xfb)]+_0x2cca68),console[_0x2e7767(0x110)](_0x19afeb+_0x2e7767(0x104)+_0x190ff7+_0x2cca68)),console[_0x2e7767(0x110)]();}export function assertCliVersionSupported(_0x3fb755){const _0x2d0218=a275_0x17c8;if(!_0x3fb755[_0x2d0218(0x103)])return;const _0x516e0c=[_0x3fb755[_0x2d0218(0x101)],'Current\x20version:\x20'+_0x3fb755[_0x2d0218(0x109)],_0x3fb755[_0x2d0218(0x108)]?'Minimum\x20supported:\x20'+_0x3fb755['minimumVersion']:null,_0x2d0218(0xf6)+getCliUpgradeCommand(_0x3fb755)][_0x2d0218(0xf4)](Boolean)[_0x2d0218(0xf1)]('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x516e0c);}
@@ -1 +1 @@
1
- (function(_0x37b1f9,_0x3e89fc){const _0x3810c3=a276_0x1c0b,_0x3b017b=_0x37b1f9();while(!![]){try{const _0x5ca040=parseInt(_0x3810c3(0x181))/0x1+parseInt(_0x3810c3(0x191))/0x2+-parseInt(_0x3810c3(0x187))/0x3*(-parseInt(_0x3810c3(0x189))/0x4)+parseInt(_0x3810c3(0x182))/0x5+parseInt(_0x3810c3(0x17e))/0x6*(parseInt(_0x3810c3(0x18b))/0x7)+parseInt(_0x3810c3(0x186))/0x8+-parseInt(_0x3810c3(0x185))/0x9;if(_0x5ca040===_0x3e89fc)break;else _0x3b017b['push'](_0x3b017b['shift']());}catch(_0x148775){_0x3b017b['push'](_0x3b017b['shift']());}}}(a276_0x3082,0x60ac9));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a276_0x3082(){const _0x5a7f56=['cli','application/json','latestVersion','18askSuP','abort','minimumVersion','427204VMErQG','1964500BOYBYA','trim','now','13667499AsxFRp','2335808hJmvhV','1695723unAmqt','minimumVersionMessage','4ONxYNZ','length','462987yDWWmq','string','stableVersion','object','signal','minVersion','77688gldSnC'];a276_0x3082=function(){return _0x5a7f56;};return a276_0x3082();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x44a66a){const _0x2b6397=a276_0x1c0b;return typeof _0x44a66a===_0x2b6397(0x18c)&&_0x44a66a['trim']()[_0x2b6397(0x18a)]>0x0?_0x44a66a[_0x2b6397(0x183)]():null;}function normalizeCliVersionPolicy(_0x514b04){const _0x29a1b0=a276_0x1c0b;if(!_0x514b04||typeof _0x514b04!=='object')return null;const _0x134222=_0x514b04,_0x2d4962=_0x134222[_0x29a1b0(0x192)]&&typeof _0x134222[_0x29a1b0(0x192)]===_0x29a1b0(0x18e)?_0x134222['cli']:_0x134222,_0xec6bda=pickString(_0x2d4962[_0x29a1b0(0x18d)])||pickString(_0x2d4962[_0x29a1b0(0x194)])||pickString(_0x2d4962['recommendedVersion']),_0x6a2b1b=pickString(_0x2d4962[_0x29a1b0(0x180)])||pickString(_0x2d4962[_0x29a1b0(0x190)]);if(!_0xec6bda&&!_0x6a2b1b)return null;return{'stableVersion':_0xec6bda,'minimumVersion':_0x6a2b1b,'upgradeMessage':pickString(_0x2d4962['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x2d4962[_0x29a1b0(0x188)])||undefined};}export async function fetchCliVersionPolicy(){const _0x1b5523=a276_0x1c0b,_0x243240=new AbortController(),_0x45c7d9=setTimeout(()=>_0x243240[_0x1b5523(0x17f)](),FETCH_TIMEOUT_MS);try{const _0x1475ab=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1b5523(0x193)},'signal':_0x243240[_0x1b5523(0x18f)]});if(!_0x1475ab['ok'])return null;const _0x477b25=await _0x1475ab['json']();return normalizeCliVersionPolicy(_0x477b25);}catch{return null;}finally{clearTimeout(_0x45c7d9);}}function a276_0x1c0b(_0x564f0b,_0x4dde99){_0x564f0b=_0x564f0b-0x17e;const _0x3082e5=a276_0x3082();let _0x1c0bfc=_0x3082e5[_0x564f0b];return _0x1c0bfc;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x31df51=a276_0x1c0b,_0x3cb1d8=Date[_0x31df51(0x184)]();if(hasCachedPolicy){const _0x1a9059=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3cb1d8-cacheTime<_0x1a9059)return cachedPolicy;}const _0x81e7ec=await fetchCliVersionPolicy();return cachedPolicy=_0x81e7ec,cacheTime=_0x3cb1d8,hasCachedPolicy=!![],_0x81e7ec;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x3ed886,_0xc61ff3){const _0x2d623b=a276_0x3ce3,_0x54268b=_0x3ed886();while(!![]){try{const _0x3c8f39=parseInt(_0x2d623b(0x19e))/0x1+parseInt(_0x2d623b(0x1a9))/0x2+-parseInt(_0x2d623b(0x1a7))/0x3+-parseInt(_0x2d623b(0x1af))/0x4+parseInt(_0x2d623b(0x1ae))/0x5*(parseInt(_0x2d623b(0x1a8))/0x6)+-parseInt(_0x2d623b(0x1a0))/0x7+-parseInt(_0x2d623b(0x19f))/0x8;if(_0x3c8f39===_0xc61ff3)break;else _0x54268b['push'](_0x54268b['shift']());}catch(_0x2e0551){_0x54268b['push'](_0x54268b['shift']());}}}(a276_0x298e,0x3e57f));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(_0x36802e){const _0x442f52=a276_0x3ce3;return typeof _0x36802e===_0x442f52(0x1b2)&&_0x36802e[_0x442f52(0x1a5)]()['length']>0x0?_0x36802e[_0x442f52(0x1a5)]():null;}function a276_0x298e(){const _0x2c68d5=['53445JukwLa','923652yGzPQT','659472PKufXZ','minVersion','object','signal','application/json','10xBBPcF','459288YLlDKD','minimumVersion','upgradeMessage','string','stableVersion','243053orMBlC','3502600wnOTiI','383964KwhzNl','cli','recommendedVersion','abort','now','trim','latestVersion'];a276_0x298e=function(){return _0x2c68d5;};return a276_0x298e();}function normalizeCliVersionPolicy(_0x34e8c1){const _0x199080=a276_0x3ce3;if(!_0x34e8c1||typeof _0x34e8c1!==_0x199080(0x1ab))return null;const _0x556c85=_0x34e8c1,_0x926af0=_0x556c85['cli']&&typeof _0x556c85[_0x199080(0x1a1)]===_0x199080(0x1ab)?_0x556c85['cli']:_0x556c85,_0x8d6fa4=pickString(_0x926af0[_0x199080(0x1b3)])||pickString(_0x926af0[_0x199080(0x1a6)])||pickString(_0x926af0[_0x199080(0x1a2)]),_0x424407=pickString(_0x926af0[_0x199080(0x1b0)])||pickString(_0x926af0[_0x199080(0x1aa)]);if(!_0x8d6fa4&&!_0x424407)return null;return{'stableVersion':_0x8d6fa4,'minimumVersion':_0x424407,'upgradeMessage':pickString(_0x926af0[_0x199080(0x1b1)])||undefined,'minimumVersionMessage':pickString(_0x926af0['minimumVersionMessage'])||undefined};}function a276_0x3ce3(_0x24bc72,_0x4cb0c8){_0x24bc72=_0x24bc72-0x19e;const _0x298efe=a276_0x298e();let _0x3ce352=_0x298efe[_0x24bc72];return _0x3ce352;}export async function fetchCliVersionPolicy(){const _0x248724=a276_0x3ce3,_0x3f7fc4=new AbortController(),_0x10bfc3=setTimeout(()=>_0x3f7fc4[_0x248724(0x1a3)](),FETCH_TIMEOUT_MS);try{const _0x2bb2e1=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x248724(0x1ad)},'signal':_0x3f7fc4[_0x248724(0x1ac)]});if(!_0x2bb2e1['ok'])return null;const _0x4d6f2b=await _0x2bb2e1['json']();return normalizeCliVersionPolicy(_0x4d6f2b);}catch{return null;}finally{clearTimeout(_0x10bfc3);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x196c6b=a276_0x3ce3,_0x86f2db=Date[_0x196c6b(0x1a4)]();if(hasCachedPolicy){const _0x8340f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x86f2db-cacheTime<_0x8340f)return cachedPolicy;}const _0x217778=await fetchCliVersionPolicy();return cachedPolicy=_0x217778,cacheTime=_0x86f2db,hasCachedPolicy=!![],_0x217778;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- (function(_0x11ef80,_0x5217f0){const _0x41336c=a277_0x2e17,_0x3a6ac6=_0x11ef80();while(!![]){try{const _0x5584e5=parseInt(_0x41336c(0x1f0))/0x1*(parseInt(_0x41336c(0x1ee))/0x2)+parseInt(_0x41336c(0x1f7))/0x3+-parseInt(_0x41336c(0x1f2))/0x4*(-parseInt(_0x41336c(0x1ef))/0x5)+parseInt(_0x41336c(0x1f6))/0x6+-parseInt(_0x41336c(0x1f5))/0x7*(-parseInt(_0x41336c(0x1f1))/0x8)+parseInt(_0x41336c(0x1f4))/0x9+parseInt(_0x41336c(0x1ed))/0xa*(-parseInt(_0x41336c(0x1f3))/0xb);if(_0x5584e5===_0x5217f0)break;else _0x3a6ac6['push'](_0x3a6ac6['shift']());}catch(_0x41ef81){_0x3a6ac6['push'](_0x3a6ac6['shift']());}}}(a277_0x5982,0x78f6f));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a277_0x1c16d1,getMultiAppConfigs as a277_0x512f10,getTemplateBaseUrl as a277_0x5028ad}from'../context.js';function a277_0x5982(){const _0x2a664d=['33MzJgJV','189171ymLiyk','6298607QcGejU','3419784xaxHUJ','899736ShKsNj','env','8082220zENYCx','658390KwpOWv','45nTUknl','2PjmOZI','8UdzrNk','209356VPsBEr'];a277_0x5982=function(){return _0x2a664d;};return a277_0x5982();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a277_0x2e17(_0x171557,_0x3cf6ba){_0x171557=_0x171557-0x1ec;const _0x59826c=a277_0x5982();let _0x2e1746=_0x59826c[_0x171557];return _0x2e1746;}export function readConfig(_0x42b61b){const _0x22b791=a277_0x2e17,_0x38bde6=readRawConfig(_0x42b61b);return _0x38bde6[_0x22b791(0x1ec)]&&typeof _0x38bde6[_0x22b791(0x1ec)]==='string'&&initEnv(_0x38bde6[_0x22b791(0x1ec)]),_0x38bde6;}export function getConfigAppCode(){return a277_0x1c16d1();}export function getMultiAppConfigs(_0x303a20='project'){return a277_0x512f10(_0x303a20);}export function getTemplateBaseUrl(){return a277_0x5028ad();}
1
+ function a277_0x55e1(_0x43747e,_0x1aba23){_0x43747e=_0x43747e-0x14c;const _0x14a44d=a277_0x14a4();let _0x55e171=_0x14a44d[_0x43747e];return _0x55e171;}const a277_0x1725c7=a277_0x55e1;(function(_0x2092ee,_0x2652cb){const _0x3ff6b4=a277_0x55e1,_0x526c55=_0x2092ee();while(!![]){try{const _0x4f9cc7=parseInt(_0x3ff6b4(0x14f))/0x1+-parseInt(_0x3ff6b4(0x158))/0x2+parseInt(_0x3ff6b4(0x152))/0x3*(parseInt(_0x3ff6b4(0x154))/0x4)+parseInt(_0x3ff6b4(0x14e))/0x5*(parseInt(_0x3ff6b4(0x155))/0x6)+parseInt(_0x3ff6b4(0x159))/0x7*(-parseInt(_0x3ff6b4(0x14d))/0x8)+parseInt(_0x3ff6b4(0x157))/0x9+-parseInt(_0x3ff6b4(0x156))/0xa*(parseInt(_0x3ff6b4(0x153))/0xb);if(_0x4f9cc7===_0x2652cb)break;else _0x526c55['push'](_0x526c55['shift']());}catch(_0x44cbcc){_0x526c55['push'](_0x526c55['shift']());}}}(a277_0x14a4,0x35e7c));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a277_0x53b359,getMultiAppConfigs as a277_0x3338dd,getTemplateBaseUrl as a277_0x166e6a}from'../context.js';function a277_0x14a4(){const _0x521c87=['3lEyxzh','293689DTWLdj','175964onksxR','258702WftDFB','20KsHtEj','784845RamVmX','414072JiTwdF','1635578YkyemA','env','8xeHcjL','35HbqifE','281869iUqDyV','string','project'];a277_0x14a4=function(){return _0x521c87;};return a277_0x14a4();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x59291e){const _0x222a8e=a277_0x55e1,_0x25d8bb=readRawConfig(_0x59291e);return _0x25d8bb['env']&&typeof _0x25d8bb['env']===_0x222a8e(0x150)&&initEnv(_0x25d8bb[_0x222a8e(0x14c)]),_0x25d8bb;}export function getConfigAppCode(){return a277_0x53b359();}export function getMultiAppConfigs(_0x517923=a277_0x1725c7(0x151)){return a277_0x3338dd(_0x517923);}export function getTemplateBaseUrl(){return a277_0x166e6a();}
@@ -1 +1 @@
1
- function a278_0x1a13(_0x3227a1,_0x5543d7){_0x3227a1=_0x3227a1-0x1d4;const _0x26a7c0=a278_0x26a7();let _0x1a133c=_0x26a7c0[_0x3227a1];return _0x1a133c;}function a278_0x26a7(){const _0x4ed93b=['2779jzLPhc','11tmhQcO','2388952wmlxrl','mkdirSync','15800rLdCgG','7545564bGowgK','error','name','1676WiAsMg','31565740vEQTvg','readdirSync','18FzOxlV','copyFileSync','1544550fvqdte','1887vLvfkq','isDirectory','803225jKICaT','join'];a278_0x26a7=function(){return _0x4ed93b;};return a278_0x26a7();}(function(_0xe5d4c2,_0x59d9ba){const _0x446687=a278_0x1a13,_0xe0f07=_0xe5d4c2();while(!![]){try{const _0x165c29=-parseInt(_0x446687(0x1d4))/0x1+-parseInt(_0x446687(0x1d8))/0x2+parseInt(_0x446687(0x1e4))/0x3*(parseInt(_0x446687(0x1de))/0x4)+-parseInt(_0x446687(0x1e3))/0x5*(-parseInt(_0x446687(0x1e1))/0x6)+-parseInt(_0x446687(0x1d6))/0x7*(parseInt(_0x446687(0x1da))/0x8)+-parseInt(_0x446687(0x1db))/0x9+-parseInt(_0x446687(0x1df))/0xa*(-parseInt(_0x446687(0x1d7))/0xb);if(_0x165c29===_0x59d9ba)break;else _0xe0f07['push'](_0xe0f07['shift']());}catch(_0x51cec2){_0xe0f07['push'](_0xe0f07['shift']());}}}(a278_0x26a7,0xb169b));import a278_0x759e4a from'node:path';import a278_0x24a797 from'node:fs';export async function copyDirectory(_0xcdff99,_0x3245b0){const _0x38a10f=a278_0x1a13;try{const _0x1028ed=a278_0x24a797[_0x38a10f(0x1e0)](_0xcdff99,{'withFileTypes':!![]});a278_0x24a797[_0x38a10f(0x1d9)](_0x3245b0,{'recursive':!![]});for(const _0x139200 of _0x1028ed){const _0x3470c1=a278_0x759e4a['join'](_0xcdff99,_0x139200[_0x38a10f(0x1dd)]),_0x1624a9=a278_0x759e4a[_0x38a10f(0x1d5)](_0x3245b0,_0x139200[_0x38a10f(0x1dd)]);_0x139200[_0x38a10f(0x1e5)]()?await copyDirectory(_0x3470c1,_0x1624a9):a278_0x24a797[_0x38a10f(0x1e2)](_0x3470c1,_0x1624a9);}}catch(_0x329737){console[_0x38a10f(0x1dc)]('复制目录时出错:',_0x329737);}}
1
+ (function(_0x522e80,_0x5e4e24){const _0x47ba8a=a278_0x1d19,_0x4d60d4=_0x522e80();while(!![]){try{const _0x4c3f42=parseInt(_0x47ba8a(0x121))/0x1+parseInt(_0x47ba8a(0x11b))/0x2+parseInt(_0x47ba8a(0x127))/0x3*(parseInt(_0x47ba8a(0x126))/0x4)+-parseInt(_0x47ba8a(0x11c))/0x5*(parseInt(_0x47ba8a(0x11e))/0x6)+parseInt(_0x47ba8a(0x120))/0x7+parseInt(_0x47ba8a(0x12c))/0x8*(-parseInt(_0x47ba8a(0x122))/0x9)+-parseInt(_0x47ba8a(0x11d))/0xa*(parseInt(_0x47ba8a(0x12b))/0xb);if(_0x4c3f42===_0x5e4e24)break;else _0x4d60d4['push'](_0x4d60d4['shift']());}catch(_0x20c10d){_0x4d60d4['push'](_0x4d60d4['shift']());}}}(a278_0x401a,0xa6f48));function a278_0x1d19(_0x37547b,_0x18fd68){_0x37547b=_0x37547b-0x11a;const _0x401a06=a278_0x401a();let _0x1d1985=_0x401a06[_0x37547b];return _0x1d1985;}function a278_0x401a(){const _0x2def31=['12vvPUpT','readdirSync','3838968zuLEuc','255166oRrANd','9NUrpjF','error','isDirectory','join','4XeCsWk','2228034xPnPtH','复制目录时出错:','copyFileSync','mkdirSync','12837ETRlGU','4689208dDTzVZ','name','821070uxZMbL','1051820tsUzgT','2280vAOpEf'];a278_0x401a=function(){return _0x2def31;};return a278_0x401a();}import a278_0x19f5e2 from'node:path';import a278_0x3d7510 from'node:fs';export async function copyDirectory(_0x1666e3,_0xdbd30a){const _0x53585f=a278_0x1d19;try{const _0x3629c3=a278_0x3d7510[_0x53585f(0x11f)](_0x1666e3,{'withFileTypes':!![]});a278_0x3d7510[_0x53585f(0x12a)](_0xdbd30a,{'recursive':!![]});for(const _0x16d038 of _0x3629c3){const _0x2f1c43=a278_0x19f5e2[_0x53585f(0x125)](_0x1666e3,_0x16d038['name']),_0x4069d0=a278_0x19f5e2[_0x53585f(0x125)](_0xdbd30a,_0x16d038[_0x53585f(0x11a)]);_0x16d038[_0x53585f(0x124)]()?await copyDirectory(_0x2f1c43,_0x4069d0):a278_0x3d7510[_0x53585f(0x129)](_0x2f1c43,_0x4069d0);}}catch(_0x6e55e){console[_0x53585f(0x123)](_0x53585f(0x128),_0x6e55e);}}
@@ -1 +1 @@
1
- (function(_0x3ddfce,_0x33b663){const _0x468a8e=a279_0x5608,_0x4b1590=_0x3ddfce();while(!![]){try{const _0x5df9ec=-parseInt(_0x468a8e(0x102))/0x1+parseInt(_0x468a8e(0x106))/0x2+-parseInt(_0x468a8e(0x10b))/0x3*(-parseInt(_0x468a8e(0x109))/0x4)+-parseInt(_0x468a8e(0x107))/0x5*(-parseInt(_0x468a8e(0x105))/0x6)+parseInt(_0x468a8e(0x108))/0x7*(-parseInt(_0x468a8e(0x101))/0x8)+-parseInt(_0x468a8e(0x103))/0x9*(parseInt(_0x468a8e(0x10e))/0xa)+parseInt(_0x468a8e(0x104))/0xb;if(_0x5df9ec===_0x33b663)break;else _0x4b1590['push'](_0x4b1590['shift']());}catch(_0x3860c3){_0x4b1590['push'](_0x4b1590['shift']());}}}(a279_0x11e4,0xcd771));function toFiniteNumber(_0x2c17e3){const _0x3e345a=a279_0x5608;if(typeof _0x2c17e3===_0x3e345a(0x10d)&&Number[_0x3e345a(0x10c)](_0x2c17e3))return _0x2c17e3;if(typeof _0x2c17e3==='string'){const _0x5caf88=_0x2c17e3[_0x3e345a(0x10a)]();if(!_0x5caf88)return undefined;const _0xbfdf27=Number(_0x5caf88);if(Number['isFinite'](_0xbfdf27))return _0xbfdf27;}return undefined;}function a279_0x5608(_0x13f55e,_0x369cc5){_0x13f55e=_0x13f55e-0x101;const _0x11e4da=a279_0x11e4();let _0x560848=_0x11e4da[_0x13f55e];return _0x560848;}export function normalizeEntityWithIdResponse(_0x57aebd){const _0x587e69=toFiniteNumber(_0x57aebd);if(_0x587e69!==undefined)return{'id':_0x587e69,'entity':{'id':_0x587e69}};if(!_0x57aebd||typeof _0x57aebd!=='object')return{'id':undefined,'entity':{}};const _0x3e2080={..._0x57aebd},_0x6c8250=toFiniteNumber(_0x3e2080['id']);return _0x6c8250!==undefined&&(_0x3e2080['id']=_0x6c8250),{'id':_0x6c8250,'entity':_0x3e2080};}function a279_0x11e4(){const _0x407e76=['152rKzdmZ','1324039massGN','9xxCPiv','16756377NNUUaQ','30KKshkP','2462196NhCGQX','9335CVQsDx','334516DiXKXt','10284VmZqRc','trim','771qdwNIE','isFinite','number','3508910ZkFbZR'];a279_0x11e4=function(){return _0x407e76;};return a279_0x11e4();}
1
+ (function(_0x1702ac,_0x335a21){const _0x484c12=a279_0x4f91,_0x15d900=_0x1702ac();while(!![]){try{const _0x582677=parseInt(_0x484c12(0x140))/0x1*(-parseInt(_0x484c12(0x13d))/0x2)+-parseInt(_0x484c12(0x13f))/0x3*(parseInt(_0x484c12(0x13b))/0x4)+-parseInt(_0x484c12(0x138))/0x5+parseInt(_0x484c12(0x141))/0x6+parseInt(_0x484c12(0x13c))/0x7+parseInt(_0x484c12(0x135))/0x8*(parseInt(_0x484c12(0x134))/0x9)+parseInt(_0x484c12(0x13e))/0xa*(parseInt(_0x484c12(0x142))/0xb);if(_0x582677===_0x335a21)break;else _0x15d900['push'](_0x15d900['shift']());}catch(_0x50dca6){_0x15d900['push'](_0x15d900['shift']());}}}(a279_0xe53b,0xac097));function toFiniteNumber(_0x3c7d7a){const _0x42100c=a279_0x4f91;if(typeof _0x3c7d7a===_0x42100c(0x139)&&Number['isFinite'](_0x3c7d7a))return _0x3c7d7a;if(typeof _0x3c7d7a===_0x42100c(0x13a)){const _0x9c89fb=_0x3c7d7a[_0x42100c(0x136)]();if(!_0x9c89fb)return undefined;const _0x5c3fbb=Number(_0x9c89fb);if(Number['isFinite'](_0x5c3fbb))return _0x5c3fbb;}return undefined;}function a279_0x4f91(_0x4f9e3d,_0x2c8cdb){_0x4f9e3d=_0x4f9e3d-0x134;const _0xe53b1e=a279_0xe53b();let _0x4f9176=_0xe53b1e[_0x4f9e3d];return _0x4f9176;}function a279_0xe53b(){const _0x294a50=['4869366kCzhwa','93269gsIify','91359TqHgXK','440DITjZQ','trim','object','49320obRbjx','number','string','85584dZtLrv','3794553zFSLNt','210xRRvHu','830coquMk','165tSNcdl','6899RqQHxx'];a279_0xe53b=function(){return _0x294a50;};return a279_0xe53b();}export function normalizeEntityWithIdResponse(_0x553b23){const _0x2b654f=a279_0x4f91,_0x5a0d72=toFiniteNumber(_0x553b23);if(_0x5a0d72!==undefined)return{'id':_0x5a0d72,'entity':{'id':_0x5a0d72}};if(!_0x553b23||typeof _0x553b23!==_0x2b654f(0x137))return{'id':undefined,'entity':{}};const _0x145ef7={..._0x553b23},_0x3db4ee=toFiniteNumber(_0x145ef7['id']);return _0x3db4ee!==undefined&&(_0x145ef7['id']=_0x3db4ee),{'id':_0x3db4ee,'entity':_0x145ef7};}
@@ -1 +1 @@
1
- (function(_0x98308e,_0x281b80){const _0x527fe6=a280_0xc831,_0x1ca993=_0x98308e();while(!![]){try{const _0x322b26=-parseInt(_0x527fe6(0x72))/0x1+parseInt(_0x527fe6(0x70))/0x2+-parseInt(_0x527fe6(0x6f))/0x3+-parseInt(_0x527fe6(0x71))/0x4+-parseInt(_0x527fe6(0x73))/0x5*(-parseInt(_0x527fe6(0x6b))/0x6)+parseInt(_0x527fe6(0x6e))/0x7+parseInt(_0x527fe6(0x6d))/0x8;if(_0x322b26===_0x281b80)break;else _0x1ca993['push'](_0x1ca993['shift']());}catch(_0x1b8476){_0x1ca993['push'](_0x1ca993['shift']());}}}(a280_0x3545,0x8cd52));function a280_0x3545(){const _0x92dcb0=['952300YjLkOf','569940AEXPQw','25ZhsjJB','444372umqJFy','isDirectory','7583088pHiWAT','224539lhMLPJ','334902udJEkz','292452KlEoip'];a280_0x3545=function(){return _0x92dcb0;};return a280_0x3545();}function a280_0xc831(_0x3c00cc,_0x5e474c){_0x3c00cc=_0x3c00cc-0x6b;const _0x354575=a280_0x3545();let _0xc8319a=_0x354575[_0x3c00cc];return _0xc8319a;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4da26f,_0x5a9efb){const _0x79c01e=a280_0xc831,_0x572917=statSync(_0x4da26f);if(_0x572917[_0x79c01e(0x6c)]()){!existsSync(_0x5a9efb)&&mkdirSync(_0x5a9efb,{'recursive':!![]});const _0x33b1e4=readdirSync(_0x4da26f);for(const _0x1dad9c of _0x33b1e4){await copyDir(join(_0x4da26f,_0x1dad9c),join(_0x5a9efb,_0x1dad9c));}}else copyFileSync(_0x4da26f,_0x5a9efb);}export function ensureDir(_0x53e470){!existsSync(_0x53e470)&&mkdirSync(_0x53e470,{'recursive':!![]});}export function pathExists(_0x4953f9){return existsSync(_0x4953f9);}
1
+ (function(_0x36cc30,_0xc44747){const _0x51bc51=a280_0xe284,_0xb9ed05=_0x36cc30();while(!![]){try{const _0x5f41bb=parseInt(_0x51bc51(0xfd))/0x1*(parseInt(_0x51bc51(0x104))/0x2)+parseInt(_0x51bc51(0x101))/0x3*(parseInt(_0x51bc51(0x100))/0x4)+parseInt(_0x51bc51(0x107))/0x5+-parseInt(_0x51bc51(0x108))/0x6+parseInt(_0x51bc51(0xff))/0x7+parseInt(_0x51bc51(0xfe))/0x8*(parseInt(_0x51bc51(0x103))/0x9)+parseInt(_0x51bc51(0x105))/0xa*(-parseInt(_0x51bc51(0x102))/0xb);if(_0x5f41bb===_0xc44747)break;else _0xb9ed05['push'](_0xb9ed05['shift']());}catch(_0x2d91e6){_0xb9ed05['push'](_0xb9ed05['shift']());}}}(a280_0x370f,0xd7364));function a280_0xe284(_0x2aebdb,_0x55e400){_0x2aebdb=_0x2aebdb-0xfd;const _0x370f43=a280_0x370f();let _0xe284ed=_0x370f43[_0x2aebdb];return _0xe284ed;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x20b6c8,_0x171415){const _0x3ed299=a280_0xe284,_0x3d7d6d=statSync(_0x20b6c8);if(_0x3d7d6d[_0x3ed299(0x106)]()){!existsSync(_0x171415)&&mkdirSync(_0x171415,{'recursive':!![]});const _0x401c96=readdirSync(_0x20b6c8);for(const _0xa672e7 of _0x401c96){await copyDir(join(_0x20b6c8,_0xa672e7),join(_0x171415,_0xa672e7));}}else copyFileSync(_0x20b6c8,_0x171415);}export function ensureDir(_0x934d30){!existsSync(_0x934d30)&&mkdirSync(_0x934d30,{'recursive':!![]});}function a280_0x370f(){const _0x339b9b=['51626gFKfUB','20408VJMiKk','26124uJQAhi','4dFsvlx','368961BffxII','6337496vgwGAy','5823NCwpHI','36KlLCIl','40iArXPq','isDirectory','7638390sKJhvl','6288660ZorNhY'];a280_0x370f=function(){return _0x339b9b;};return a280_0x370f();}export function pathExists(_0x1fe5e9){return existsSync(_0x1fe5e9);}
@@ -1 +1 @@
1
- const a281_0x3aa3f8=a281_0x1cbf;(function(_0x2db1d6,_0x54311e){const _0x4ad283=a281_0x1cbf,_0x2f5cd2=_0x2db1d6();while(!![]){try{const _0x208c5b=parseInt(_0x4ad283(0x133))/0x1+parseInt(_0x4ad283(0x11e))/0x2*(parseInt(_0x4ad283(0x119))/0x3)+-parseInt(_0x4ad283(0x11c))/0x4+-parseInt(_0x4ad283(0x12c))/0x5+parseInt(_0x4ad283(0x130))/0x6*(-parseInt(_0x4ad283(0x11d))/0x7)+parseInt(_0x4ad283(0x13b))/0x8*(-parseInt(_0x4ad283(0x127))/0x9)+parseInt(_0x4ad283(0x126))/0xa*(parseInt(_0x4ad283(0x125))/0xb);if(_0x208c5b===_0x54311e)break;else _0x2f5cd2['push'](_0x2f5cd2['shift']());}catch(_0x1ec3f5){_0x2f5cd2['push'](_0x2f5cd2['shift']());}}}(a281_0x43bb,0x9d69a));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a281_0x43bb(){const _0x245a97=['guides','.lovrabet/skill/guides','605816XmYBGW','cache','1455SRYjEF','status','length','4979324aeuMkM','571627GVyOfs','316GhwMOV','keys','trimEnd','replace','join','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','3601334obhCoi','40EIqvev','9QJLAtC','object','statusText','extendContent','entries','912995RoQAVq','content','utf-8','.md','36UYzqaa','lastUpdated','push','1251679aylFbh','skillTemplate','CDN\x20数据中缺少\x20skillTemplate','map','/skills/guides.json','.lovrabet'];a281_0x43bb=function(){return _0x245a97;};return a281_0x43bb();}function a281_0x1cbf(_0x2f8388,_0x464511){_0x2f8388=_0x2f8388-0x119;const _0x43bbec=a281_0x43bb();let _0x1cbf59=_0x43bbec[_0x2f8388];return _0x1cbf59;}function getGuidesCdnUrl(){const _0xfddbe2=a281_0x1cbf,_0x3c1062=getTemplateBaseUrl();return _0x3c1062+_0xfddbe2(0x137);}const CACHE_DIR=join(homedir(),a281_0x3aa3f8(0x138),a281_0x3aa3f8(0x13c));export async function fetchGuidesFromCDN(){const _0x18c226=a281_0x3aa3f8,_0x1861a2=getGuidesCdnUrl(),_0x103610=await fetch(_0x1861a2,{'headers':{'Accept':'application/json'}});if(!_0x103610['ok'])throw new Error(_0x18c226(0x124)+_0x103610[_0x18c226(0x11a)]+'\x20'+_0x103610[_0x18c226(0x129)]);const _0x1236e1=await _0x103610['json']();if(!_0x1236e1[_0x18c226(0x139)]||typeof _0x1236e1[_0x18c226(0x139)]!==_0x18c226(0x128))throw new Error(_0x18c226(0x123));return _0x1236e1;}export function writeGuidesToProject(_0xb16d86,_0x1f8f72,_0x1568f6=a281_0x3aa3f8(0x13a),_0x1362a1){const _0x22deb4=a281_0x3aa3f8,_0x1f0b4c=join(_0x1f8f72,_0x1568f6);mkdirSync(_0x1f0b4c,{'recursive':!![]});for(const [_0x5e5025,_0x426087]of Object[_0x22deb4(0x12b)](_0xb16d86['guides'])){let _0x488083=_0x426087[_0x22deb4(0x12d)];_0x426087['lastUpdated']&&(_0x488083=appendUpdateTime(_0x488083,_0x426087[_0x22deb4(0x131)])),writeFileSync(join(_0x1f0b4c,_0x5e5025+_0x22deb4(0x12f)),_0x488083,'utf-8');}}export function appendUpdateTime(_0x18e9d9,_0x1fb873){const _0x12addb=a281_0x3aa3f8;return _0x18e9d9=_0x18e9d9[_0x12addb(0x121)](/\n*>更新时间:.*$/m,''),_0x18e9d9[_0x12addb(0x120)]()+('\x0a\x0a>更新时间:'+_0x1fb873);}export function getSkillTemplate(_0x4f0693){const _0x2ae8e4=a281_0x3aa3f8;return _0x4f0693[_0x2ae8e4(0x134)]?.[_0x2ae8e4(0x12d)]||'';}export function appendExtendContents(_0x3ae1b6,_0x2a5c6d,_0x5469a9){const _0x460b3d=a281_0x3aa3f8,_0x2600d9=[];for(const [,_0x1a07ee]of Object[_0x460b3d(0x12b)](_0x2a5c6d[_0x460b3d(0x139)])){_0x1a07ee[_0x460b3d(0x12a)]&&_0x2600d9[_0x460b3d(0x132)](_0x1a07ee[_0x460b3d(0x12a)][_0x460b3d(0x120)]());}if(_0x2600d9['length']===0x0)return _0x3ae1b6;return _0x3ae1b6[_0x460b3d(0x120)]()+'\x0a\x0a'+_0x2600d9[_0x460b3d(0x122)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x329776,_0x2424c5,_0xe833d3){const _0x412c81=a281_0x3aa3f8,_0x15be80=getSkillTemplate(_0x329776);if(!_0x15be80)throw new Error(_0x412c81(0x135));const _0x532213=dirname(_0x2424c5);mkdirSync(_0x532213,{'recursive':!![]});let _0xb02a67=_0x15be80['replace'](/\{\{IDE_NAME\}\}/g,_0xe833d3);_0xb02a67=appendExtendContents(_0xb02a67,_0x329776),_0x329776[_0x412c81(0x134)][_0x412c81(0x131)]&&(_0xb02a67=appendUpdateTime(_0xb02a67,_0x329776[_0x412c81(0x134)]['lastUpdated'])),writeFileSync(_0x2424c5,_0xb02a67,_0x412c81(0x12e));}export async function installGuides(_0x435c2d){const _0x479727=a281_0x3aa3f8,_0x22a6e5=await fetchGuidesFromCDN();return writeGuidesToProject(_0x22a6e5,_0x435c2d),Object[_0x479727(0x11f)](_0x22a6e5['guides'])[_0x479727(0x11b)];}export function getGuidesSummary(_0x5016c3){const _0xa4fee4=a281_0x3aa3f8;return Object[_0xa4fee4(0x12b)](_0x5016c3[_0xa4fee4(0x139)])[_0xa4fee4(0x136)](([_0x277c4b,_0x1356d7])=>({'key':_0x277c4b,'title':_0x1356d7['title'],'path':_0x1356d7['path']}));}
1
+ const a281_0x4375d0=a281_0x50e0;function a281_0x50e0(_0x29ed0e,_0x26f2d7){_0x29ed0e=_0x29ed0e-0x87;const _0x3b3319=a281_0x3b33();let _0x50e0e8=_0x3b3319[_0x29ed0e];return _0x50e0e8;}(function(_0xd6b46f,_0x5b9ce9){const _0x3f25ad=a281_0x50e0,_0x2f24cb=_0xd6b46f();while(!![]){try{const _0x58b4a2=parseInt(_0x3f25ad(0x90))/0x1+parseInt(_0x3f25ad(0x89))/0x2*(parseInt(_0x3f25ad(0x91))/0x3)+-parseInt(_0x3f25ad(0x87))/0x4*(parseInt(_0x3f25ad(0x92))/0x5)+parseInt(_0x3f25ad(0xa3))/0x6+parseInt(_0x3f25ad(0x94))/0x7+-parseInt(_0x3f25ad(0x8d))/0x8*(parseInt(_0x3f25ad(0xa0))/0x9)+parseInt(_0x3f25ad(0xa1))/0xa*(-parseInt(_0x3f25ad(0x95))/0xb);if(_0x58b4a2===_0x5b9ce9)break;else _0x2f24cb['push'](_0x2f24cb['shift']());}catch(_0x3debba){_0x2f24cb['push'](_0x2f24cb['shift']());}}}(a281_0x3b33,0x93ea7));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 _0x149493=a281_0x50e0,_0x37105c=getTemplateBaseUrl();return _0x37105c+_0x149493(0x8a);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x4321f4=a281_0x50e0,_0x304694=getGuidesCdnUrl(),_0x232a48=await fetch(_0x304694,{'headers':{'Accept':_0x4321f4(0x9e)}});if(!_0x232a48['ok'])throw new Error(_0x4321f4(0xa7)+_0x232a48[_0x4321f4(0xab)]+'\x20'+_0x232a48[_0x4321f4(0x97)]);const _0x26da97=await _0x232a48[_0x4321f4(0x8e)]();if(!_0x26da97['guides']||typeof _0x26da97[_0x4321f4(0x98)]!==_0x4321f4(0xa9))throw new Error(_0x4321f4(0x9d));return _0x26da97;}export function writeGuidesToProject(_0x3ea8fc,_0xfdb685,_0xb5bd6a=a281_0x4375d0(0xa5),_0x22756a){const _0x5d542c=a281_0x4375d0,_0x2486cf=join(_0xfdb685,_0xb5bd6a);mkdirSync(_0x2486cf,{'recursive':!![]});for(const [_0x393cf8,_0x5db2ea]of Object[_0x5d542c(0xa2)](_0x3ea8fc[_0x5d542c(0x98)])){let _0x5d8523=_0x5db2ea[_0x5d542c(0x9f)];_0x5db2ea['lastUpdated']&&(_0x5d8523=appendUpdateTime(_0x5d8523,_0x5db2ea[_0x5d542c(0x99)])),writeFileSync(join(_0x2486cf,_0x393cf8+_0x5d542c(0xa4)),_0x5d8523,_0x5d542c(0x9c));}}export function appendUpdateTime(_0x3c5b31,_0x2f1b8d){const _0x135ddd=a281_0x4375d0;return _0x3c5b31=_0x3c5b31[_0x135ddd(0x9a)](/\n*>更新时间:.*$/m,''),_0x3c5b31[_0x135ddd(0x8c)]()+(_0x135ddd(0x9b)+_0x2f1b8d);}export function getSkillTemplate(_0x3e0e14){const _0x93a536=a281_0x4375d0;return _0x3e0e14[_0x93a536(0xaa)]?.[_0x93a536(0x9f)]||'';}export function appendExtendContents(_0x2b18bb,_0x2b662f,_0x273007){const _0x5b531d=a281_0x4375d0,_0x1eef07=[];for(const [,_0x3365e1]of Object['entries'](_0x2b662f[_0x5b531d(0x98)])){_0x3365e1[_0x5b531d(0x96)]&&_0x1eef07[_0x5b531d(0xa8)](_0x3365e1[_0x5b531d(0x96)][_0x5b531d(0x8c)]());}if(_0x1eef07[_0x5b531d(0x93)]===0x0)return _0x2b18bb;return _0x2b18bb[_0x5b531d(0x8c)]()+'\x0a\x0a'+_0x1eef07[_0x5b531d(0x8f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2f1b10,_0x251981,_0x3d92ea){const _0x3d89a6=a281_0x4375d0,_0x2c9fa2=getSkillTemplate(_0x2f1b10);if(!_0x2c9fa2)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x5412f0=dirname(_0x251981);mkdirSync(_0x5412f0,{'recursive':!![]});let _0x3234c8=_0x2c9fa2['replace'](/\{\{IDE_NAME\}\}/g,_0x3d92ea);_0x3234c8=appendExtendContents(_0x3234c8,_0x2f1b10),_0x2f1b10[_0x3d89a6(0xaa)][_0x3d89a6(0x99)]&&(_0x3234c8=appendUpdateTime(_0x3234c8,_0x2f1b10[_0x3d89a6(0xaa)]['lastUpdated'])),writeFileSync(_0x251981,_0x3234c8,'utf-8');}function a281_0x3b33(){const _0x36ebc8=['lastUpdated','replace','\x0a\x0a>更新时间:','utf-8','CDN\x20返回数据格式错误','application/json','content','9902664nGdWJt','250SSZCbT','entries','6336720KYkdQR','.md','.lovrabet/skill/guides','title','CDN\x20请求失败:\x20','push','object','skillTemplate','status','858504PSFUiG','path','4WdOjqo','/skills/guides.json','map','trimEnd','8sTqByd','json','join','1196468iAYbhW','1305663lkiHRz','5vZKlKM','length','465710vfAMZq','558261GdNgyV','extendContent','statusText','guides'];a281_0x3b33=function(){return _0x36ebc8;};return a281_0x3b33();}export async function installGuides(_0x127732){const _0x18a857=a281_0x4375d0,_0x2b308d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2b308d,_0x127732),Object['keys'](_0x2b308d[_0x18a857(0x98)])[_0x18a857(0x93)];}export function getGuidesSummary(_0x49203d){const _0x408420=a281_0x4375d0;return Object[_0x408420(0xa2)](_0x49203d['guides'])[_0x408420(0x8b)](([_0x279e81,_0x382883])=>({'key':_0x279e81,'title':_0x382883[_0x408420(0xa6)],'path':_0x382883[_0x408420(0x88)]}));}
@@ -1 +1 @@
1
- (function(_0x55fc4c,_0x378890){const _0x5a6101=a282_0x2230,_0x39e0f6=_0x55fc4c();while(!![]){try{const _0x40ea3d=parseInt(_0x5a6101(0x9b))/0x1*(-parseInt(_0x5a6101(0x91))/0x2)+-parseInt(_0x5a6101(0x94))/0x3+parseInt(_0x5a6101(0xa5))/0x4*(parseInt(_0x5a6101(0x8b))/0x5)+-parseInt(_0x5a6101(0x97))/0x6+parseInt(_0x5a6101(0x9a))/0x7+parseInt(_0x5a6101(0xa2))/0x8+parseInt(_0x5a6101(0xa3))/0x9*(parseInt(_0x5a6101(0xa0))/0xa);if(_0x40ea3d===_0x378890)break;else _0x39e0f6['push'](_0x39e0f6['shift']());}catch(_0x7d8356){_0x39e0f6['push'](_0x39e0f6['shift']());}}}(a282_0x333d,0xbec3a));function a282_0x333d(){const _0x1548a4=['15058HGFdfG','AbortError','\x20次重试...','1939008xCWowR','TypeError','abort','5848362zvyUsA','signal','name','10178063FkwmIl','113hVRulA','includes','*\x20请求失败,','status','Request\x20failed','1730ZjeUZM','text','5148960HLFXKK','5274RVigwu','statusText','4PmrLVJ','headers','log','5271015gqwDoR','message','fetch','ms\x20后进行第\x20','ECONNRESET','ENOTFOUND'];a282_0x333d=function(){return _0x1548a4;};return a282_0x333d();}function a282_0x2230(_0x57cbd8,_0x5c35bc){_0x57cbd8=_0x57cbd8-0x89;const _0x333d7d=a282_0x333d();let _0x2230b4=_0x333d7d[_0x57cbd8];return _0x2230b4;}export async function httpRequest(_0x221a7c,_0x2cf375={}){const _0x302440=a282_0x2230,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2cf375;let _0x127004=null;for(let _0xb03302=0x0;_0xb03302<=retries;_0xb03302++){try{const _0x5bc927=new AbortController(),_0x39595e=setTimeout(()=>_0x5bc927[_0x302440(0x96)](),timeout),_0x491daf=await fetch(_0x221a7c,{'headers':headers,'signal':_0x5bc927[_0x302440(0x98)]});clearTimeout(_0x39595e);let _0x3c896f;const _0x55a6d8=_0x491daf[_0x302440(0x89)]['get']('content-type');return _0x55a6d8?.[_0x302440(0x9c)]('application/json')?_0x3c896f=await _0x491daf['json']():_0x3c896f=await _0x491daf['text'](),{'ok':_0x491daf['ok'],'status':_0x491daf[_0x302440(0x9e)],'statusText':_0x491daf[_0x302440(0xa4)],'data':_0x3c896f,'headers':_0x491daf[_0x302440(0x89)],'url':_0x491daf['url'],'text':()=>_0x491daf[_0x302440(0xa1)]()};}catch(_0x53fae8){_0x127004=_0x53fae8 instanceof Error?_0x53fae8:new Error(String(_0x53fae8));if(_0xb03302===retries)break;if(shouldRetry(_0x53fae8)){console[_0x302440(0x8a)](_0x302440(0x9d)+retryDelay+_0x302440(0x8e)+(_0xb03302+0x1)+_0x302440(0x93)),await sleep(retryDelay);continue;}else break;}}throw _0x127004||new Error(_0x302440(0x9f));}function shouldRetry(_0xc0318){const _0x232885=a282_0x2230;if(_0xc0318 instanceof Error){if(_0xc0318['name']===_0x232885(0x92))return![];if(_0xc0318[_0x232885(0x99)]===_0x232885(0x95)&&_0xc0318['message']['includes'](_0x232885(0x8d)))return!![];if(_0xc0318[_0x232885(0x8c)][_0x232885(0x9c)](_0x232885(0x8f)))return!![];if(_0xc0318['message'][_0x232885(0x9c)](_0x232885(0x90)))return![];}return![];}function sleep(_0x19d5fc){return new Promise(_0x4372c6=>setTimeout(_0x4372c6,_0x19d5fc));}export function validateUrl(_0x3c24b1){try{return new URL(_0x3c24b1),!![];}catch{return![];}}
1
+ function a282_0x5aef(_0x4b58aa,_0xb74211){_0x4b58aa=_0x4b58aa-0x8f;const _0x1dfadf=a282_0x1dfa();let _0x5aefc0=_0x1dfadf[_0x4b58aa];return _0x5aefc0;}(function(_0x1de09d,_0x2157da){const _0x482d73=a282_0x5aef,_0x8fce41=_0x1de09d();while(!![]){try{const _0x5dd09e=parseInt(_0x482d73(0x96))/0x1*(parseInt(_0x482d73(0xa9))/0x2)+-parseInt(_0x482d73(0xaa))/0x3*(-parseInt(_0x482d73(0x93))/0x4)+-parseInt(_0x482d73(0xa0))/0x5*(parseInt(_0x482d73(0x9c))/0x6)+parseInt(_0x482d73(0xa5))/0x7*(-parseInt(_0x482d73(0xa8))/0x8)+-parseInt(_0x482d73(0x92))/0x9+parseInt(_0x482d73(0xa2))/0xa+parseInt(_0x482d73(0xa7))/0xb;if(_0x5dd09e===_0x2157da)break;else _0x8fce41['push'](_0x8fce41['shift']());}catch(_0x369fd0){_0x8fce41['push'](_0x8fce41['shift']());}}}(a282_0x1dfa,0x61aa0));function a282_0x1dfa(){const _0x32a9d6=['json','Request\x20failed','AbortError','35sKuVUi','fetch','6053110AcnOTC','headers','message','2443yzOHrO','get','13175426mQxmtP','16208ulSFMW','479808lcJOBV','7422azIVOH','TypeError','includes','ms\x20后进行第\x20','5953869XwHxMD','116VCAnnT','*\x20请求失败,','ECONNRESET','2NDSFrr','content-type','statusText','name','\x20次重试...','text','502272yeqJrP'];a282_0x1dfa=function(){return _0x32a9d6;};return a282_0x1dfa();}export async function httpRequest(_0x215538,_0xf277f5={}){const _0x911a9f=a282_0x5aef,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xf277f5;let _0x400c32=null;for(let _0x4383a6=0x0;_0x4383a6<=retries;_0x4383a6++){try{const _0x30610c=new AbortController(),_0x5d9fac=setTimeout(()=>_0x30610c['abort'](),timeout),_0x3e510a=await fetch(_0x215538,{'headers':headers,'signal':_0x30610c['signal']});clearTimeout(_0x5d9fac);let _0x5492cc;const _0x12e4d1=_0x3e510a[_0x911a9f(0xa3)][_0x911a9f(0xa6)](_0x911a9f(0x97));return _0x12e4d1?.[_0x911a9f(0x90)]('application/json')?_0x5492cc=await _0x3e510a[_0x911a9f(0x9d)]():_0x5492cc=await _0x3e510a['text'](),{'ok':_0x3e510a['ok'],'status':_0x3e510a['status'],'statusText':_0x3e510a[_0x911a9f(0x98)],'data':_0x5492cc,'headers':_0x3e510a[_0x911a9f(0xa3)],'url':_0x3e510a['url'],'text':()=>_0x3e510a[_0x911a9f(0x9b)]()};}catch(_0x409b3c){_0x400c32=_0x409b3c instanceof Error?_0x409b3c:new Error(String(_0x409b3c));if(_0x4383a6===retries)break;if(shouldRetry(_0x409b3c)){console['log'](_0x911a9f(0x94)+retryDelay+_0x911a9f(0x91)+(_0x4383a6+0x1)+_0x911a9f(0x9a)),await sleep(retryDelay);continue;}else break;}}throw _0x400c32||new Error(_0x911a9f(0x9e));}function shouldRetry(_0x540579){const _0x388b84=a282_0x5aef;if(_0x540579 instanceof Error){if(_0x540579['name']===_0x388b84(0x9f))return![];if(_0x540579[_0x388b84(0x99)]===_0x388b84(0x8f)&&_0x540579[_0x388b84(0xa4)][_0x388b84(0x90)](_0x388b84(0xa1)))return!![];if(_0x540579[_0x388b84(0xa4)]['includes'](_0x388b84(0x95)))return!![];if(_0x540579[_0x388b84(0xa4)][_0x388b84(0x90)]('ENOTFOUND'))return![];}return![];}function sleep(_0x1f6772){return new Promise(_0x483c1a=>setTimeout(_0x483c1a,_0x1f6772));}export function validateUrl(_0x59064e){try{return new URL(_0x59064e),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x88c886,_0x5de8cc){const _0x27fdae=a283_0x5f2d,_0x5d7706=_0x88c886();while(!![]){try{const _0x4c80dd=-parseInt(_0x27fdae(0x83))/0x1*(-parseInt(_0x27fdae(0x88))/0x2)+parseInt(_0x27fdae(0x8c))/0x3+parseInt(_0x27fdae(0x89))/0x4+parseInt(_0x27fdae(0x90))/0x5+parseInt(_0x27fdae(0x91))/0x6*(-parseInt(_0x27fdae(0x8f))/0x7)+-parseInt(_0x27fdae(0x8e))/0x8+-parseInt(_0x27fdae(0x8b))/0x9*(parseInt(_0x27fdae(0x8d))/0xa);if(_0x4c80dd===_0x5de8cc)break;else _0x5d7706['push'](_0x5d7706['shift']());}catch(_0x4e9d68){_0x5d7706['push'](_0x5d7706['shift']());}}}(a283_0x2966,0x86a0c));function env(_0x57a99d){return process.env[`RABETBASE_${_0x57a99d}`]||process.env[`LOVRABET_${_0x57a99d}`]||undefined;}function a283_0x5f2d(_0x504108,_0x5ab37a){_0x504108=_0x504108-0x83;const _0x296628=a283_0x2966();let _0x5f2d41=_0x296628[_0x504108];return _0x5f2d41;}function a283_0x2966(){const _0x5ee2d7=['4wgIxGH','true','isRaw','setRawMode','isTTY','405178lHYwyq','3904988qABSnr','stdin','546300ktnbzC','1877889APSCdU','200Pvnfqx','1562392LjyMKG','364861BLdAPr','86380VHWBol','54oexNVI'];a283_0x2966=function(){return _0x5ee2d7;};return a283_0x2966();}export function isNonInteractive(_0x3a80f5){const _0x591a19=a283_0x5f2d;return!!(_0x3a80f5['nonInteractive']||_0x3a80f5['ci']||env('CI')===_0x591a19(0x84)||process.env.CI==='true'||!process['stdout'][_0x591a19(0x87)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3f60d6=a283_0x5f2d;if(!process[_0x3f60d6(0x8a)][_0x3f60d6(0x87)])return![];try{const _0x2fbe14=process[_0x3f60d6(0x8a)][_0x3f60d6(0x85)];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x3f60d6(0x86)](_0x2fbe14??![]),!![];}catch{return![];}}
1
+ function a283_0x105e(){const _0x4e30de=['isRaw','12448227fvvzIv','14643TirBhv','nonInteractive','1276508DpsJWD','3drrKYo','setRawMode','stdin','2zetCfr','stdout','1121001nwcTqf','1130Dfqldm','1760gajwjz','1433448NoNsqT','10734cUrMyL','true','150938vZHgDJ'];a283_0x105e=function(){return _0x4e30de;};return a283_0x105e();}function a283_0xb70b(_0x4ccf78,_0x1f2c20){_0x4ccf78=_0x4ccf78-0xb9;const _0x105e81=a283_0x105e();let _0xb70b1d=_0x105e81[_0x4ccf78];return _0xb70b1d;}(function(_0x2b628b,_0x129edc){const _0x258956=a283_0xb70b,_0xe06aa8=_0x2b628b();while(!![]){try{const _0x531167=-parseInt(_0x258956(0xbf))/0x1*(parseInt(_0x258956(0xc8))/0x2)+parseInt(_0x258956(0xc5))/0x3*(-parseInt(_0x258956(0xc4))/0x4)+parseInt(_0x258956(0xba))/0x5*(-parseInt(_0x258956(0xbd))/0x6)+parseInt(_0x258956(0xb9))/0x7+parseInt(_0x258956(0xbc))/0x8+parseInt(_0x258956(0xc2))/0x9*(-parseInt(_0x258956(0xbb))/0xa)+parseInt(_0x258956(0xc1))/0xb;if(_0x531167===_0x129edc)break;else _0xe06aa8['push'](_0xe06aa8['shift']());}catch(_0x1f2feb){_0xe06aa8['push'](_0xe06aa8['shift']());}}}(a283_0x105e,0x4bbea));function env(_0x5e02c4){return process.env[`RABETBASE_${_0x5e02c4}`]||process.env[`LOVRABET_${_0x5e02c4}`]||undefined;}export function isNonInteractive(_0x1f35ad){const _0x5f0cfe=a283_0xb70b;return!!(_0x1f35ad[_0x5f0cfe(0xc3)]||_0x1f35ad['ci']||env('CI')===_0x5f0cfe(0xbe)||process.env.CI===_0x5f0cfe(0xbe)||!process[_0x5f0cfe(0xc9)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5e9027=a283_0xb70b;if(!process['stdin']['isTTY'])return![];try{const _0x42e224=process['stdin'][_0x5e9027(0xc0)];return process[_0x5e9027(0xc7)]['setRawMode'](!![]),process[_0x5e9027(0xc7)][_0x5e9027(0xc6)](_0x42e224??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a284_0x37d4(){const _0x386ac3=['writeFileSync','combine','message','clear','6546855kgusJZ','green','90568RZyTGv','warn','trim','initWinstonLogger','error','map','1398688fqWPgu','logFilePath','filter','format','mkdirSync','799677FuHCoG','currentRawCommand','setRawCommand','170xGMxzh','1172724Rxpjdh','7200168PJbaJa','Failed\x20to\x20read\x20logs:','printf','unknown','success','yellow','transports','utf8','timestamp','winstonLogger','clearLogs','readFileSync','logTask','147iNmNvl','info','details','readLogs','File','now','dirname','parse','blue','stringify','existsSync','command','createLogger','4BhVJnf','3168411HCBnQN','.lovrabet.log','getWinstonInstance'];a284_0x37d4=function(){return _0x386ac3;};return a284_0x37d4();}const a284_0x4deb51=a284_0x4d7b;function a284_0x4d7b(_0x16adc8,_0x24a249){_0x16adc8=_0x16adc8-0x19d;const _0x37d4d6=a284_0x37d4();let _0x4d7bc0=_0x37d4d6[_0x16adc8];return _0x4d7bc0;}(function(_0xf35f69,_0x130c90){const _0x12b906=a284_0x4d7b,_0x31b161=_0xf35f69();while(!![]){try{const _0x52976f=parseInt(_0x12b906(0x1c5))/0x1+-parseInt(_0x12b906(0x1ce))/0x2+parseInt(_0x12b906(0x1b6))/0x3+parseInt(_0x12b906(0x1b5))/0x4*(parseInt(_0x12b906(0x1bd))/0x5)+-parseInt(_0x12b906(0x1cf))/0x6+parseInt(_0x12b906(0x1a8))/0x7*(parseInt(_0x12b906(0x1bf))/0x8)+parseInt(_0x12b906(0x1ca))/0x9*(-parseInt(_0x12b906(0x1cd))/0xa);if(_0x52976f===_0x130c90)break;else _0x31b161['push'](_0x31b161['shift']());}catch(_0x5d6616){_0x31b161['push'](_0x31b161['shift']());}}}(a284_0x37d4,0xac216));import a284_0x3f063f from'winston';import a284_0x23a9d9 from'node:fs';import a284_0x1d45d8 from'node:path';class Logger{['winstonLogger'];[a284_0x4deb51(0x1c6)];[a284_0x4deb51(0x1cb)]='';constructor(){const _0x568136=a284_0x4deb51;this[_0x568136(0x1c6)]='';}[a284_0x4deb51(0x1cc)](_0x5b77fb){this['currentRawCommand']=_0x5b77fb;}['initWinstonLogger'](){const _0x394998=a284_0x4deb51,_0x376104=a284_0x1d45d8[_0x394998(0x1ae)](this[_0x394998(0x1c6)]);!a284_0x23a9d9['existsSync'](_0x376104)&&a284_0x23a9d9[_0x394998(0x1c9)](_0x376104,{'recursive':!![]});const _0x5b9ee9=a284_0x3f063f[_0x394998(0x1c8)][_0x394998(0x1ba)](a284_0x3f063f['format'][_0x394998(0x1a3)](),a284_0x3f063f[_0x394998(0x1c8)]['errors']({'stack':!![]}),a284_0x3f063f[_0x394998(0x1c8)][_0x394998(0x19d)](_0x9ff257=>{const _0x278c2d=_0x394998,_0x252e62={'timestamp':_0x9ff257[_0x278c2d(0x1a3)]||new Date()['toISOString'](),'level':_0x9ff257['level']||_0x278c2d(0x1a9),'command':_0x9ff257[_0x278c2d(0x1b3)]||_0x278c2d(0x19e),'rawCommand':_0x9ff257['rawCommand']||this[_0x278c2d(0x1cb)]||undefined,'message':_0x9ff257[_0x278c2d(0x1bb)]||'','duration':_0x9ff257['duration']||undefined,'details':_0x9ff257[_0x278c2d(0x1aa)]||undefined};return JSON[_0x278c2d(0x1b1)](_0x252e62);}));this[_0x394998(0x1a4)]=a284_0x3f063f[_0x394998(0x1b4)]({'level':_0x394998(0x1a9),'format':_0x5b9ee9,'transports':[new a284_0x3f063f[(_0x394998(0x1a1))][(_0x394998(0x1ac))]({'filename':this[_0x394998(0x1c6)],'level':'info'})],'silent':![]}),a284_0x3f063f['addColors']({'success':_0x394998(0x1be),'error':'red','warn':_0x394998(0x1a0),'info':_0x394998(0x1b0)});}['setLogPath'](_0x39140b){const _0x5419c3=a284_0x4deb51;this[_0x5419c3(0x1c6)]=a284_0x1d45d8['join'](_0x39140b,_0x5419c3(0x1b7)),this['winstonLogger']&&this[_0x5419c3(0x1a4)][_0x5419c3(0x1bc)](),this[_0x5419c3(0x1c2)]();}[a284_0x4deb51(0x1a9)](_0x574981,_0x3b77b6,_0x129c09){const _0x5e4db5=a284_0x4deb51;if(!this[_0x5e4db5(0x1c6)]||!this[_0x5e4db5(0x1a4)])return;this['winstonLogger']['info'](_0x3b77b6,{'command':_0x574981,'details':_0x129c09});}['success'](_0x210037,_0x4f5286,_0xf19317,_0x46487a){const _0x47c71e=a284_0x4deb51;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x47c71e(0x1a4)]['log'](_0x47c71e(0x1a9),_0x4f5286,{'level':_0x47c71e(0x19f),'command':_0x210037,'duration':_0xf19317,'details':_0x46487a});}[a284_0x4deb51(0x1c3)](_0x35818c,_0x2258ff,_0x4ef18e){const _0x57280c=a284_0x4deb51;if(!this[_0x57280c(0x1c6)]||!this[_0x57280c(0x1a4)])return;this[_0x57280c(0x1a4)][_0x57280c(0x1c3)](_0x2258ff,{'command':_0x35818c,'details':_0x4ef18e});}[a284_0x4deb51(0x1c0)](_0x59ce58,_0x8ad52c,_0x131d81){const _0x4b09d9=a284_0x4deb51;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x4b09d9(0x1a4)][_0x4b09d9(0x1c0)](_0x8ad52c,{'command':_0x59ce58,'details':_0x131d81});}async[a284_0x4deb51(0x1a7)](_0x3c278f,_0x3baeeb,_0x58b841){const _0x5765a9=a284_0x4deb51,_0x237a18=Date[_0x5765a9(0x1ad)]();this[_0x5765a9(0x1a9)](_0x3c278f,'开始执行:\x20'+_0x3baeeb);try{const _0x47d79f=await _0x58b841(),_0x45b834=Date[_0x5765a9(0x1ad)]()-_0x237a18;return this[_0x5765a9(0x19f)](_0x3c278f,'完成:\x20'+_0x3baeeb,_0x45b834),_0x47d79f;}catch(_0x1922fe){const _0x2b9e48=Date[_0x5765a9(0x1ad)]()-_0x237a18;this[_0x5765a9(0x1c3)](_0x3c278f,'失败:\x20'+_0x3baeeb,{'error':_0x1922fe instanceof Error?_0x1922fe[_0x5765a9(0x1bb)]:String(_0x1922fe),'duration':_0x2b9e48});throw _0x1922fe;}}[a284_0x4deb51(0x1ab)](){const _0x2f2f5f=a284_0x4deb51;try{if(!a284_0x23a9d9[_0x2f2f5f(0x1b2)](this[_0x2f2f5f(0x1c6)]))return[];const _0x5c2933=a284_0x23a9d9[_0x2f2f5f(0x1a6)](this[_0x2f2f5f(0x1c6)],_0x2f2f5f(0x1a2));return _0x5c2933['split']('\x0a')[_0x2f2f5f(0x1c7)](_0x2e8eeb=>_0x2e8eeb[_0x2f2f5f(0x1c1)]())[_0x2f2f5f(0x1c4)](_0x43dcbd=>JSON[_0x2f2f5f(0x1af)](_0x43dcbd));}catch(_0x35e204){return console[_0x2f2f5f(0x1c0)](_0x2f2f5f(0x1d0),_0x35e204),[];}}[a284_0x4deb51(0x1a5)](){const _0x416f63=a284_0x4deb51;try{a284_0x23a9d9[_0x416f63(0x1b2)](this[_0x416f63(0x1c6)])&&a284_0x23a9d9[_0x416f63(0x1b9)](this['logFilePath'],'','utf8');}catch(_0x15b2c3){console[_0x416f63(0x1c0)]('Failed\x20to\x20clear\x20logs:',_0x15b2c3);}}[a284_0x4deb51(0x1b8)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a284_0x5b7fd5=a284_0x509b;(function(_0x3cd091,_0x28d65e){const _0x373a4f=a284_0x509b,_0x1248dc=_0x3cd091();while(!![]){try{const _0x371b7a=-parseInt(_0x373a4f(0x1f2))/0x1+parseInt(_0x373a4f(0x1f5))/0x2*(parseInt(_0x373a4f(0x1df))/0x3)+parseInt(_0x373a4f(0x1e2))/0x4+parseInt(_0x373a4f(0x1e3))/0x5+-parseInt(_0x373a4f(0x1f0))/0x6*(-parseInt(_0x373a4f(0x1e9))/0x7)+parseInt(_0x373a4f(0x204))/0x8+parseInt(_0x373a4f(0x1ff))/0x9*(-parseInt(_0x373a4f(0x1de))/0xa);if(_0x371b7a===_0x28d65e)break;else _0x1248dc['push'](_0x1248dc['shift']());}catch(_0x17660e){_0x1248dc['push'](_0x1248dc['shift']());}}}(a284_0x2450,0x73fa1));function a284_0x509b(_0x2e320c,_0x5ac36d){_0x2e320c=_0x2e320c-0x1d2;const _0x24500d=a284_0x2450();let _0x509b0e=_0x24500d[_0x2e320c];return _0x509b0e;}function a284_0x2450(){const _0x4fde94=['log','details','335166IeUPGR','map','928603VslAUX','existsSync','message','1426CLeUzV','createLogger','format','writeFileSync','addColors','command','File','red','warn','success','12356829nalXKs','printf','green','setRawCommand','initWinstonLogger','247504uwWGog','combine','clear','transports','失败:\x20','utf8','rawCommand','filter','toISOString','blue','split','开始执行:\x20','yellow','mkdirSync','parse','getWinstonInstance','unknown','timestamp','currentRawCommand','Failed\x20to\x20clear\x20logs:','.lovrabet.log','logFilePath','10PghDgo','2016GIriFH','logTask','readLogs','3685032UsLumu','3654110xnEvoV','duration','setLogPath','stringify','level','info','77xdogTV','winstonLogger','error','dirname','完成:\x20'];a284_0x2450=function(){return _0x4fde94;};return a284_0x2450();}import a284_0x2d4756 from'winston';import a284_0x1c2404 from'node:fs';import a284_0x4a5ced from'node:path';class Logger{[a284_0x5b7fd5(0x1ea)];[a284_0x5b7fd5(0x1dd)];[a284_0x5b7fd5(0x1da)]='';constructor(){const _0x3da842=a284_0x5b7fd5;this[_0x3da842(0x1dd)]='';}[a284_0x5b7fd5(0x202)](_0x37d65e){const _0x11949a=a284_0x5b7fd5;this[_0x11949a(0x1da)]=_0x37d65e;}['initWinstonLogger'](){const _0x45a67a=a284_0x5b7fd5,_0x179e3f=a284_0x4a5ced[_0x45a67a(0x1ec)](this[_0x45a67a(0x1dd)]);!a284_0x1c2404[_0x45a67a(0x1f3)](_0x179e3f)&&a284_0x1c2404[_0x45a67a(0x1d5)](_0x179e3f,{'recursive':!![]});const _0x49c2f1=a284_0x2d4756[_0x45a67a(0x1f7)][_0x45a67a(0x205)](a284_0x2d4756['format'][_0x45a67a(0x1d9)](),a284_0x2d4756['format']['errors']({'stack':!![]}),a284_0x2d4756[_0x45a67a(0x1f7)][_0x45a67a(0x200)](_0x24fbf8=>{const _0x542de1=_0x45a67a,_0x47ce6c={'timestamp':_0x24fbf8[_0x542de1(0x1d9)]||new Date()[_0x542de1(0x20c)](),'level':_0x24fbf8[_0x542de1(0x1e7)]||_0x542de1(0x1e8),'command':_0x24fbf8[_0x542de1(0x1fa)]||_0x542de1(0x1d8),'rawCommand':_0x24fbf8[_0x542de1(0x20a)]||this[_0x542de1(0x1da)]||undefined,'message':_0x24fbf8['message']||'','duration':_0x24fbf8[_0x542de1(0x1e4)]||undefined,'details':_0x24fbf8[_0x542de1(0x1ef)]||undefined};return JSON[_0x542de1(0x1e6)](_0x47ce6c);}));this[_0x45a67a(0x1ea)]=a284_0x2d4756[_0x45a67a(0x1f6)]({'level':'info','format':_0x49c2f1,'transports':[new a284_0x2d4756[(_0x45a67a(0x207))][(_0x45a67a(0x1fb))]({'filename':this[_0x45a67a(0x1dd)],'level':_0x45a67a(0x1e8)})],'silent':![]}),a284_0x2d4756[_0x45a67a(0x1f9)]({'success':_0x45a67a(0x201),'error':_0x45a67a(0x1fc),'warn':_0x45a67a(0x1d4),'info':_0x45a67a(0x20d)});}[a284_0x5b7fd5(0x1e5)](_0x4ed516){const _0x4c7de1=a284_0x5b7fd5;this[_0x4c7de1(0x1dd)]=a284_0x4a5ced['join'](_0x4ed516,_0x4c7de1(0x1dc)),this[_0x4c7de1(0x1ea)]&&this['winstonLogger'][_0x4c7de1(0x206)](),this[_0x4c7de1(0x203)]();}[a284_0x5b7fd5(0x1e8)](_0x5a243f,_0x2aef7b,_0xc60bb4){const _0x74735c=a284_0x5b7fd5;if(!this[_0x74735c(0x1dd)]||!this[_0x74735c(0x1ea)])return;this[_0x74735c(0x1ea)][_0x74735c(0x1e8)](_0x2aef7b,{'command':_0x5a243f,'details':_0xc60bb4});}[a284_0x5b7fd5(0x1fe)](_0x35fcb7,_0x2c2600,_0x8ae140,_0x29273d){const _0x5d3bca=a284_0x5b7fd5;if(!this[_0x5d3bca(0x1dd)]||!this[_0x5d3bca(0x1ea)])return;this[_0x5d3bca(0x1ea)][_0x5d3bca(0x1ee)](_0x5d3bca(0x1e8),_0x2c2600,{'level':_0x5d3bca(0x1fe),'command':_0x35fcb7,'duration':_0x8ae140,'details':_0x29273d});}[a284_0x5b7fd5(0x1eb)](_0x67ab0c,_0x33259b,_0x30a97e){const _0x12b077=a284_0x5b7fd5;if(!this[_0x12b077(0x1dd)]||!this[_0x12b077(0x1ea)])return;this[_0x12b077(0x1ea)][_0x12b077(0x1eb)](_0x33259b,{'command':_0x67ab0c,'details':_0x30a97e});}['warn'](_0x370de9,_0x489305,_0xb3caa4){const _0x5c0cc5=a284_0x5b7fd5;if(!this[_0x5c0cc5(0x1dd)]||!this[_0x5c0cc5(0x1ea)])return;this[_0x5c0cc5(0x1ea)][_0x5c0cc5(0x1fd)](_0x489305,{'command':_0x370de9,'details':_0xb3caa4});}async[a284_0x5b7fd5(0x1e0)](_0x106a87,_0x21d90f,_0x4579f8){const _0x5d4250=a284_0x5b7fd5,_0x2aeb3f=Date['now']();this[_0x5d4250(0x1e8)](_0x106a87,_0x5d4250(0x1d3)+_0x21d90f);try{const _0x3c3be7=await _0x4579f8(),_0x506d90=Date['now']()-_0x2aeb3f;return this['success'](_0x106a87,_0x5d4250(0x1ed)+_0x21d90f,_0x506d90),_0x3c3be7;}catch(_0x4374c0){const _0x4f52b2=Date['now']()-_0x2aeb3f;this[_0x5d4250(0x1eb)](_0x106a87,_0x5d4250(0x208)+_0x21d90f,{'error':_0x4374c0 instanceof Error?_0x4374c0[_0x5d4250(0x1f4)]:String(_0x4374c0),'duration':_0x4f52b2});throw _0x4374c0;}}[a284_0x5b7fd5(0x1e1)](){const _0x28f6f1=a284_0x5b7fd5;try{if(!a284_0x1c2404['existsSync'](this['logFilePath']))return[];const _0x3408dd=a284_0x1c2404['readFileSync'](this[_0x28f6f1(0x1dd)],_0x28f6f1(0x209));return _0x3408dd[_0x28f6f1(0x1d2)]('\x0a')[_0x28f6f1(0x20b)](_0x14a4db=>_0x14a4db['trim']())[_0x28f6f1(0x1f1)](_0x3fc45d=>JSON[_0x28f6f1(0x1d6)](_0x3fc45d));}catch(_0x1064d1){return console['warn']('Failed\x20to\x20read\x20logs:',_0x1064d1),[];}}['clearLogs'](){const _0x6d1944=a284_0x5b7fd5;try{a284_0x1c2404['existsSync'](this['logFilePath'])&&a284_0x1c2404[_0x6d1944(0x1f8)](this[_0x6d1944(0x1dd)],'',_0x6d1944(0x209));}catch(_0x4aced1){console[_0x6d1944(0x1fd)](_0x6d1944(0x1db),_0x4aced1);}}[a284_0x5b7fd5(0x1d7)](){const _0x2a4854=a284_0x5b7fd5;return this[_0x2a4854(0x1ea)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x52b9f6,_0x32c42c){const _0x1c810f=a285_0x448f,_0x27b4ab=_0x52b9f6();while(!![]){try{const _0x3fcc13=parseInt(_0x1c810f(0x124))/0x1*(-parseInt(_0x1c810f(0x11a))/0x2)+parseInt(_0x1c810f(0x11f))/0x3*(parseInt(_0x1c810f(0x127))/0x4)+parseInt(_0x1c810f(0x11d))/0x5+parseInt(_0x1c810f(0x11e))/0x6+parseInt(_0x1c810f(0x119))/0x7+-parseInt(_0x1c810f(0x123))/0x8+-parseInt(_0x1c810f(0x125))/0x9;if(_0x3fcc13===_0x32c42c)break;else _0x27b4ab['push'](_0x27b4ab['shift']());}catch(_0x2e6e91){_0x27b4ab['push'](_0x27b4ab['shift']());}}}(a285_0x4fff,0x54cfd));function a285_0x4fff(){const _0x15de20=['2349445kuGtmr','1879596BfWSda','114KdpvHZ','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','validation','925384gEfOhw','456172rPPQFy','1472787tQPWvM','Invalid\x20JSON\x20for\x20--params:\x20','29188pJejOD','157052llDRuu','2SVjYBM','parse','isArray'];a285_0x4fff=function(){return _0x15de20;};return a285_0x4fff();}function a285_0x448f(_0x51c9c4,_0x4aa977){_0x51c9c4=_0x51c9c4-0x119;const _0x4fff91=a285_0x4fff();let _0x448f78=_0x4fff91[_0x51c9c4];return _0x448f78;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x5441dc){const _0x4c286b=a285_0x448f;if(!_0x5441dc)return undefined;let _0x343d57;try{_0x343d57=JSON[_0x4c286b(0x11b)](_0x5441dc);}catch{throw CliErrors[_0x4c286b(0x122)](_0x4c286b(0x126)+_0x5441dc);}if(!_0x343d57||typeof _0x343d57!=='object'||Array[_0x4c286b(0x11c)](_0x343d57))throw CliErrors['validation'](_0x4c286b(0x121),_0x4c286b(0x120));return _0x343d57;}
1
+ function a285_0x1b94(_0x212295,_0x64bd70){_0x212295=_0x212295-0x181;const _0x33ca71=a285_0x33ca();let _0x1b9447=_0x33ca71[_0x212295];return _0x1b9447;}(function(_0x25212c,_0x24b0b8){const _0x7d68a6=a285_0x1b94,_0x436d1f=_0x25212c();while(!![]){try{const _0x4094c3=-parseInt(_0x7d68a6(0x188))/0x1*(-parseInt(_0x7d68a6(0x187))/0x2)+parseInt(_0x7d68a6(0x18e))/0x3*(parseInt(_0x7d68a6(0x184))/0x4)+parseInt(_0x7d68a6(0x185))/0x5+parseInt(_0x7d68a6(0x182))/0x6+parseInt(_0x7d68a6(0x181))/0x7+-parseInt(_0x7d68a6(0x18c))/0x8*(parseInt(_0x7d68a6(0x183))/0x9)+-parseInt(_0x7d68a6(0x18a))/0xa;if(_0x4094c3===_0x24b0b8)break;else _0x436d1f['push'](_0x436d1f['shift']());}catch(_0x197c84){_0x436d1f['push'](_0x436d1f['shift']());}}}(a285_0x33ca,0xa50e8));function a285_0x33ca(){const _0x54ebf5=['object','270tGJcPa','8821INPGwG','validation','21073640MdgMpA','Invalid\x20JSON\x20for\x20--params:\x20','8NQzrJR','parse','12GTtfpr','4734268MWvgys','6152190jFNdfm','12144753uVoiEl','108844dTdsEX','5657425waCvtl'];a285_0x33ca=function(){return _0x54ebf5;};return a285_0x33ca();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x35da7b){const _0x3c62f5=a285_0x1b94;if(!_0x35da7b)return undefined;let _0x44c9d4;try{_0x44c9d4=JSON[_0x3c62f5(0x18d)](_0x35da7b);}catch{throw CliErrors[_0x3c62f5(0x189)](_0x3c62f5(0x18b)+_0x35da7b);}if(!_0x44c9d4||typeof _0x44c9d4!==_0x3c62f5(0x186)||Array['isArray'](_0x44c9d4))throw CliErrors[_0x3c62f5(0x189)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x44c9d4;}
@@ -1 +1 @@
1
- const a286_0x5791ab=a286_0x21ba;function a286_0x21ba(_0x33b2da,_0x4e565a){_0x33b2da=_0x33b2da-0x13e;const _0x11163f=a286_0x1116();let _0x21ba15=_0x11163f[_0x33b2da];return _0x21ba15;}(function(_0x9d2d33,_0x463a58){const _0xf543ae=a286_0x21ba,_0x449039=_0x9d2d33();while(!![]){try{const _0x4f6341=parseInt(_0xf543ae(0x13f))/0x1*(-parseInt(_0xf543ae(0x148))/0x2)+-parseInt(_0xf543ae(0x149))/0x3*(-parseInt(_0xf543ae(0x146))/0x4)+-parseInt(_0xf543ae(0x14b))/0x5*(-parseInt(_0xf543ae(0x141))/0x6)+parseInt(_0xf543ae(0x140))/0x7*(parseInt(_0xf543ae(0x145))/0x8)+-parseInt(_0xf543ae(0x14a))/0x9+-parseInt(_0xf543ae(0x147))/0xa*(-parseInt(_0xf543ae(0x142))/0xb)+-parseInt(_0xf543ae(0x13e))/0xc;if(_0x4f6341===_0x463a58)break;else _0x449039['push'](_0x449039['shift']());}catch(_0x4df125){_0x449039['push'](_0x449039['shift']());}}}(a286_0x1116,0x54517));export const isWindows=process[a286_0x5791ab(0x143)]===a286_0x5791ab(0x144);export function resolveNpmBin(_0x18061d){const _0x1faed5=a286_0x5791ab;return isWindows?_0x18061d+_0x1faed5(0x14c):_0x18061d;}function a286_0x1116(){const _0x3dfd6e=['3089460xEhtUj','181pOexBD','1074486sEhqmY','186798awvXwB','57563EMLivm','platform','win32','8lJUyxw','12tvWekK','10Ifxhcp','5042IUqInB','404895tPJxUH','864270nJwvaW','95JFMgME','.cmd'];a286_0x1116=function(){return _0x3dfd6e;};return a286_0x1116();}
1
+ const a286_0x7641d6=a286_0x4ff6;(function(_0x5d8b41,_0x15e429){const _0x4c7ca6=a286_0x4ff6,_0x1ce83d=_0x5d8b41();while(!![]){try{const _0x4872ba=-parseInt(_0x4c7ca6(0xe2))/0x1*(parseInt(_0x4c7ca6(0xec))/0x2)+parseInt(_0x4c7ca6(0xe5))/0x3*(parseInt(_0x4c7ca6(0xe4))/0x4)+-parseInt(_0x4c7ca6(0xea))/0x5*(parseInt(_0x4c7ca6(0xeb))/0x6)+-parseInt(_0x4c7ca6(0xe6))/0x7+-parseInt(_0x4c7ca6(0xe9))/0x8*(parseInt(_0x4c7ca6(0xe7))/0x9)+parseInt(_0x4c7ca6(0xdf))/0xa*(-parseInt(_0x4c7ca6(0xe1))/0xb)+parseInt(_0x4c7ca6(0xe8))/0xc*(parseInt(_0x4c7ca6(0xe3))/0xd);if(_0x4872ba===_0x15e429)break;else _0x1ce83d['push'](_0x1ce83d['shift']());}catch(_0x473d3d){_0x1ce83d['push'](_0x1ce83d['shift']());}}}(a286_0x21c1,0x22ef0));export const isWindows=process[a286_0x7641d6(0xe0)]==='win32';function a286_0x4ff6(_0x5ac766,_0x12e8cf){_0x5ac766=_0x5ac766-0xdf;const _0x21c153=a286_0x21c1();let _0x4ff6c8=_0x21c153[_0x5ac766];return _0x4ff6c8;}export function resolveNpmBin(_0x1e4cb8){return isWindows?_0x1e4cb8+'.cmd':_0x1e4cb8;}function a286_0x21c1(){const _0x40fd7d=['66lsYTTX','459207aphjlh','2135592KPeBHv','24nBkBym','8kHPOuo','3665whFFxx','1314aCYYNd','2CQGNod','10phbjdF','platform','618937IiTeeU','10271rgGSjC','3707392hbgjCW','18668XqwvHu'];a286_0x21c1=function(){return _0x40fd7d;};return a286_0x21c1();}
@@ -1 +1 @@
1
- function a287_0x3e71(){const _0x167714=['CDN\x20请求失败:\x20','597060JaayDr','../../templates/rules/lovrabet_rules.mdc.tpl','content','本地模板文件不存在:\x20','/rules/rules.json','lastUpdated','7CHHScw','5STOeBA','12893780WyqTba','116wFTZhq','lovrabet_rules.mdc','status','.cursor/rules','1151656ZYNYot','json','635442PhCzLf','94305qPlCph','355136GHbQUW','104940uMPTEl','string'];a287_0x3e71=function(){return _0x167714;};return a287_0x3e71();}const a287_0x3bc9f8=a287_0x92b2;(function(_0x4e16af,_0x47e4b0){const _0x2efb16=a287_0x92b2,_0x52a981=_0x4e16af();while(!![]){try{const _0x51cef6=-parseInt(_0x2efb16(0x82))/0x1+parseInt(_0x2efb16(0x81))/0x2+-parseInt(_0x2efb16(0x80))/0x3*(parseInt(_0x2efb16(0x8e))/0x4)+-parseInt(_0x2efb16(0x8c))/0x5*(-parseInt(_0x2efb16(0x7f))/0x6)+parseInt(_0x2efb16(0x8b))/0x7*(-parseInt(_0x2efb16(0x92))/0x8)+parseInt(_0x2efb16(0x85))/0x9+parseInt(_0x2efb16(0x8d))/0xa;if(_0x51cef6===_0x47e4b0)break;else _0x52a981['push'](_0x52a981['shift']());}catch(_0x5464d4){_0x52a981['push'](_0x52a981['shift']());}}}(a287_0x3e71,0x74dd9));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a287_0x92b2(_0x3482a8,_0xa0c3a9){_0x3482a8=_0x3482a8-0x7e;const _0x3e7121=a287_0x3e71();let _0x92b283=_0x3e7121[_0x3482a8];return _0x92b283;}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 _0xbccaee=a287_0x92b2,_0x33504a=getTemplateBaseUrl();return _0x33504a+_0xbccaee(0x89);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a287_0x3bc9f8(0x86));export async function fetchRulesFromCDN(){const _0x5307b7=a287_0x3bc9f8,_0x202325=getRulesCdnUrl(),_0x42b6d9=await fetch(_0x202325,{'headers':{'Accept':'application/json'}});if(!_0x42b6d9['ok'])throw new Error(_0x5307b7(0x84)+_0x42b6d9[_0x5307b7(0x90)]+'\x20'+_0x42b6d9['statusText']);const _0x17b64c=await _0x42b6d9[_0x5307b7(0x7e)]();if(!_0x17b64c[_0x5307b7(0x87)]||typeof _0x17b64c[_0x5307b7(0x87)]!==_0x5307b7(0x83))throw new Error('CDN\x20返回数据格式错误');return _0x17b64c;}export async function getRulesContent(){try{const _0x32e6e9=await fetchRulesFromCDN();return _0x32e6e9['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x108c5b=a287_0x3bc9f8;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x108c5b(0x88)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x46fe85){const _0x326f70=a287_0x3bc9f8,_0x3d7054=await fetchRulesFromCDN()['catch'](()=>null);let _0x2c9527;_0x3d7054?(_0x2c9527=_0x3d7054['content'],_0x3d7054[_0x326f70(0x8a)]&&(_0x2c9527=appendUpdateTime(_0x2c9527,_0x3d7054[_0x326f70(0x8a)]))):_0x2c9527=readLocalTemplate();const _0x382d62=dirname(_0x46fe85);!existsSync(_0x382d62)&&mkdirSync(_0x382d62,{'recursive':!![]}),writeFileSync(_0x46fe85,_0x2c9527,'utf-8');}export async function copyRulesToCursor(_0x4bd83d){const _0x5965b7=a287_0x3bc9f8,_0x1230a4=join(_0x4bd83d,_0x5965b7(0x91)),_0x34ac41=join(_0x1230a4,_0x5965b7(0x8f));if(existsSync(_0x34ac41))return![];return await writeRulesFile(_0x34ac41),!![];}export async function copyRulesToAgentsMd(_0x4e6067){const _0x2571d8=join(_0x4e6067,'agents.md');if(existsSync(_0x2571d8))return![];return await writeRulesFile(_0x2571d8),!![];}
1
+ const a287_0xd8a3e4=a287_0x591a;(function(_0x220538,_0x2edb82){const _0x4d3d2e=a287_0x591a,_0x47982b=_0x220538();while(!![]){try{const _0x5a1116=-parseInt(_0x4d3d2e(0x126))/0x1+-parseInt(_0x4d3d2e(0x118))/0x2*(parseInt(_0x4d3d2e(0x116))/0x3)+parseInt(_0x4d3d2e(0x115))/0x4+-parseInt(_0x4d3d2e(0x121))/0x5*(parseInt(_0x4d3d2e(0x112))/0x6)+parseInt(_0x4d3d2e(0x124))/0x7*(parseInt(_0x4d3d2e(0x11b))/0x8)+parseInt(_0x4d3d2e(0x127))/0x9+parseInt(_0x4d3d2e(0x122))/0xa;if(_0x5a1116===_0x2edb82)break;else _0x47982b['push'](_0x47982b['shift']());}catch(_0x2e5e08){_0x47982b['push'](_0x47982b['shift']());}}}(a287_0x5297,0xcbf3d));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 _0x332262=a287_0x591a,_0x1265c5=getTemplateBaseUrl();return _0x1265c5+_0x332262(0x123);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a287_0xd8a3e4(0x128));export async function fetchRulesFromCDN(){const _0x377a3a=a287_0xd8a3e4,_0x29c648=getRulesCdnUrl(),_0x54aadc=await fetch(_0x29c648,{'headers':{'Accept':_0x377a3a(0x12a)}});if(!_0x54aadc['ok'])throw new Error(_0x377a3a(0x120)+_0x54aadc[_0x377a3a(0x119)]+'\x20'+_0x54aadc['statusText']);const _0x565bf1=await _0x54aadc['json']();if(!_0x565bf1[_0x377a3a(0x113)]||typeof _0x565bf1[_0x377a3a(0x113)]!==_0x377a3a(0x11f))throw new Error(_0x377a3a(0x117));return _0x565bf1;}function a287_0x591a(_0x124e5d,_0x5c1538){_0x124e5d=_0x124e5d-0x112;const _0x529738=a287_0x5297();let _0x591a79=_0x529738[_0x124e5d];return _0x591a79;}export async function getRulesContent(){const _0x4a56f3=a287_0xd8a3e4;try{const _0xfe1af7=await fetchRulesFromCDN();return _0xfe1af7[_0x4a56f3(0x113)];}catch{return readLocalTemplate();}}function a287_0x5297(){const _0xa6e396=['CDN\x20请求失败:\x20','5iqMBxh','25622670nFydIX','/rules/rules.json','94087AojKXm','.cursor/rules','1445377OCKNSJ','5102100UcaKIg','../../templates/rules/lovrabet_rules.mdc.tpl','catch','application/json','6745818oAKUwu','content','本地模板文件不存在:\x20','1512692ujKwst','753RbpPjC','CDN\x20返回数据格式错误','3064cPUuvV','status','utf-8','168vDHKRD','lovrabet_rules.mdc','lastUpdated','agents.md','string'];a287_0x5297=function(){return _0xa6e396;};return a287_0x5297();}export function readLocalTemplate(){const _0x251a82=a287_0xd8a3e4;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x251a82(0x11a));throw new Error(_0x251a82(0x114)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x21dce2){const _0x36cde2=a287_0xd8a3e4,_0x54518f=await fetchRulesFromCDN()[_0x36cde2(0x129)](()=>null);let _0x2a5130;_0x54518f?(_0x2a5130=_0x54518f['content'],_0x54518f['lastUpdated']&&(_0x2a5130=appendUpdateTime(_0x2a5130,_0x54518f[_0x36cde2(0x11d)]))):_0x2a5130=readLocalTemplate();const _0x3f486e=dirname(_0x21dce2);!existsSync(_0x3f486e)&&mkdirSync(_0x3f486e,{'recursive':!![]}),writeFileSync(_0x21dce2,_0x2a5130,_0x36cde2(0x11a));}export async function copyRulesToCursor(_0x4b1a70){const _0x54b90f=a287_0xd8a3e4,_0x4db0f2=join(_0x4b1a70,_0x54b90f(0x125)),_0x585177=join(_0x4db0f2,_0x54b90f(0x11c));if(existsSync(_0x585177))return![];return await writeRulesFile(_0x585177),!![];}export async function copyRulesToAgentsMd(_0x3d9985){const _0x188366=a287_0xd8a3e4,_0x138006=join(_0x3d9985,_0x188366(0x11e));if(existsSync(_0x138006))return![];return await writeRulesFile(_0x138006),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x5d95f7){return new Promise(_0x4720f0=>setTimeout(_0x4720f0,_0x5d95f7));}
1
+ export function sleep(_0xe7ab60){return new Promise(_0x40c9ba=>setTimeout(_0x40c9ba,_0xe7ab60));}
@@ -1 +1 @@
1
- const a289_0x4c656=a289_0x67f2;function a289_0x67f2(_0x2d10e0,_0xb47088){_0x2d10e0=_0x2d10e0-0x115;const _0x34693f=a289_0x3469();let _0x67f220=_0x34693f[_0x2d10e0];return _0x67f220;}(function(_0x348352,_0x28640f){const _0x25209c=a289_0x67f2,_0x2530e7=_0x348352();while(!![]){try{const _0xdd024d=parseInt(_0x25209c(0x125))/0x1*(parseInt(_0x25209c(0x147))/0x2)+-parseInt(_0x25209c(0x138))/0x3+-parseInt(_0x25209c(0x11a))/0x4+-parseInt(_0x25209c(0x159))/0x5+parseInt(_0x25209c(0x139))/0x6*(parseInt(_0x25209c(0x14d))/0x7)+-parseInt(_0x25209c(0x117))/0x8+-parseInt(_0x25209c(0x13c))/0x9*(-parseInt(_0x25209c(0x132))/0xa);if(_0xdd024d===_0x28640f)break;else _0x2530e7['push'](_0x2530e7['shift']());}catch(_0x541ffa){_0x2530e7['push'](_0x2530e7['shift']());}}}(a289_0x3469,0xf1a1b));function a289_0x3469(){const _0x407a81=['6850990bOljTi','mkdir','error','15123168rdkrSl','pad','processFile','2026592RBRXNc','message','alias','tableName:\x20\x22','copyFile','.jsx','name','模板内容替换失败','.tsx','getDate','now','255364UuQNTZ','replace','datasetCode:\x20\x22','toComponentName','toISOString','isFile','getFullYear','pop','default','toUpperCase','\x20},','.tpl','slice','1850JJGesD','alias:\x20\x22','replaceApiContent','formatLocalTimestamp','toDisplayTitle','endsWith','27573lcFJRI','11487738aIHGoy','.ts','模板内容替换完成','113877rlASLj','toLowerCase','getMonth','getSeconds','template','isDirectory','processDirectory','getHours','readdir','开始处理模板内容替换','promises','4TniFHu','map','success','.scss','readFile','name:\x20\x22','7WxrKUB','datasetCode','join','charAt','.css','utf8','.js','includes','YourModel','LOVRABET','split','padStart'];a289_0x3469=function(){return _0x407a81;};return a289_0x3469();}import a289_0x413aaf from'node:fs';import a289_0x2341dc from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a289_0x4c656(0x118)](_0x504096){const _0x3ea52f=a289_0x4c656;return String(_0x504096)[_0x3ea52f(0x158)](0x2,'0');}static['formatLocalTimestamp'](_0x31b1d8){const _0x15ad84=a289_0x4c656,_0x1aecda=_0x31b1d8[_0x15ad84(0x12b)](),_0x37afa3=this[_0x15ad84(0x118)](_0x31b1d8[_0x15ad84(0x13e)]()+0x1),_0x813314=this[_0x15ad84(0x118)](_0x31b1d8[_0x15ad84(0x123)]()),_0x442c47=this[_0x15ad84(0x118)](_0x31b1d8[_0x15ad84(0x143)]()),_0x31624f=this[_0x15ad84(0x118)](_0x31b1d8['getMinutes']()),_0x4c56c3=this[_0x15ad84(0x118)](_0x31b1d8[_0x15ad84(0x13f)]());return{'createdAt':_0x1aecda+'-'+_0x37afa3+'-'+_0x813314+'\x20'+_0x442c47+':'+_0x31624f+':'+_0x4c56c3,'createdDate':_0x1aecda+'-'+_0x37afa3+'-'+_0x813314,'createdTime':_0x442c47+':'+_0x31624f+':'+_0x4c56c3};}static[a289_0x4c656(0x128)](_0x29f7ac){const _0x122cb2=a289_0x4c656,_0x562c84=_0x29f7ac[_0x122cb2(0x157)]('/')['pop']()||_0x29f7ac;return _0x562c84['split']('-')[_0x122cb2(0x148)](_0x4a69df=>_0x4a69df[_0x122cb2(0x150)](0x0)['toUpperCase']()+_0x4a69df[_0x122cb2(0x131)](0x1)['toLowerCase']())[_0x122cb2(0x14f)]('');}static[a289_0x4c656(0x136)](_0x1815fd){const _0x374aa0=a289_0x4c656,_0x47cf2b=_0x1815fd[_0x374aa0(0x157)]('/')[_0x374aa0(0x12c)]()||_0x1815fd;return _0x47cf2b[_0x374aa0(0x157)]('-')[_0x374aa0(0x148)](_0x75a082=>_0x75a082['charAt'](0x0)[_0x374aa0(0x12e)]()+_0x75a082[_0x374aa0(0x131)](0x1)[_0x374aa0(0x13d)]())[_0x374aa0(0x14f)]('\x20');}static['replaceContent'](_0x12c10c,_0x6e375f,_0x210845){const _0x26c512=a289_0x4c656,_0x2825ca=this['toComponentName'](_0x6e375f),_0x2667ea=this['toDisplayTitle'](_0x6e375f),{createdAt:_0x59c67d,createdDate:_0x1e7a24,createdTime:_0x24c2de}=this[_0x26c512(0x135)](new Date());let _0x259664=_0x12c10c[_0x26c512(0x126)](/\{CliVersion\}/g,CLI_VERSION)[_0x26c512(0x126)](/\{ComponentName\}/g,_0x2825ca)[_0x26c512(0x126)](/\{DisplayTitle\}/g,_0x2667ea)[_0x26c512(0x126)](/\{PageName\}/g,_0x6e375f)[_0x26c512(0x126)](/\{TemplateName\}/g,_0x210845)[_0x26c512(0x126)](/\{CreatedAt\}/g,_0x59c67d)[_0x26c512(0x126)](/\{CreatedDate\}/g,_0x1e7a24)['replace'](/\{CreatedTime\}/g,_0x24c2de);return _0x259664;}static[a289_0x4c656(0x134)](_0x250b71,_0x5cc4eb,_0x468e22,_0x8450ed,_0x4d2585,_0x3da56d,_0x389f51,_0x56c819){const _0x44d2d0=a289_0x4c656,_0x2fc081=new Date(),_0x2ca2f7=_0x2fc081[_0x44d2d0(0x129)](),_0x354a00=_0x468e22[_0x44d2d0(0x148)](_0x4baadd=>{const _0x37e83b=_0x44d2d0,_0x1a65ef=[_0x37e83b(0x127)+_0x4baadd[_0x37e83b(0x14e)]+'\x22',_0x37e83b(0x11d)+_0x4baadd['tableName']+'\x22',_0x37e83b(0x14c)+_0x4baadd[_0x37e83b(0x120)]+'\x22'];return _0x4baadd[_0x37e83b(0x11c)]&&_0x1a65ef['push'](_0x37e83b(0x133)+_0x4baadd[_0x37e83b(0x11c)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x1a65ef['join'](',\x20')+_0x37e83b(0x12f);})[_0x44d2d0(0x14f)](''),_0x444c07=_0x8450ed||_0x468e22[0x0]?.[_0x44d2d0(0x11c)]||_0x44d2d0(0x155);let _0x3e9269=_0x250b71['replace'](/\{AppCode\}/g,_0x5cc4eb)['replace'](/\{ModelConfigs\}/g,_0x354a00)['replace'](/\{ExampleModelName\}/g,_0x444c07)[_0x44d2d0(0x126)](/\{ApiFileName\}/g,_0x4d2585||'api')['replace'](/\{ConfigName\}/g,_0x3da56d||_0x44d2d0(0x12d))['replace'](/\{ClientConfigParam\}/g,_0x389f51||'')['replace'](/\{VarPrefix\}/g,_0x56c819||_0x44d2d0(0x156))[_0x44d2d0(0x126)](/\{CreatedAt\}/g,_0x2ca2f7);return _0x3e9269;}static async['processTemplate'](_0x3b025c,_0x5ef435,_0x4671be,_0xbb5e2a,_0x4a3b16=!![]){const _0x4fbc33=a289_0x4c656,_0x4bfb28=Date[_0x4fbc33(0x124)]();try{_0x4a3b16&&logger['info'](_0x4fbc33(0x140),_0x4fbc33(0x145),{'templatePath':_0x3b025c,'targetPath':_0x5ef435,'pageName':_0x4671be,'templateName':_0xbb5e2a});await a289_0x413aaf[_0x4fbc33(0x146)][_0x4fbc33(0x115)](_0x5ef435,{'recursive':!![]}),await this[_0x4fbc33(0x142)](_0x3b025c,_0x5ef435,_0x4671be,_0xbb5e2a);if(_0x4a3b16){const _0x5a4e0c=Date['now']()-_0x4bfb28;logger[_0x4fbc33(0x149)](_0x4fbc33(0x140),_0x4fbc33(0x13b),_0x5a4e0c,{'pageName':_0x4671be,'templateName':_0xbb5e2a});}}catch(_0x56666b){if(_0x4a3b16){const _0x3e9e52=Date[_0x4fbc33(0x124)]()-_0x4bfb28;logger[_0x4fbc33(0x116)]('template',_0x4fbc33(0x121),{'templatePath':_0x3b025c,'targetPath':_0x5ef435,'pageName':_0x4671be,'templateName':_0xbb5e2a,'error':_0x56666b instanceof Error?_0x56666b[_0x4fbc33(0x11b)]:String(_0x56666b),'duration':_0x3e9e52});}throw _0x56666b;}}static async[a289_0x4c656(0x142)](_0x22ecd6,_0x1e4265,_0x59a9c9,_0xa94c7d){const _0x30ffef=a289_0x4c656,_0x4d81f5=await a289_0x413aaf[_0x30ffef(0x146)][_0x30ffef(0x144)](_0x22ecd6,{'withFileTypes':!![]});for(const _0x5f5bda of _0x4d81f5){const _0x13b55c=a289_0x2341dc[_0x30ffef(0x14f)](_0x22ecd6,_0x5f5bda['name']);let _0x47b3e3=a289_0x2341dc[_0x30ffef(0x14f)](_0x1e4265,_0x5f5bda['name']);_0x5f5bda[_0x30ffef(0x120)][_0x30ffef(0x137)](_0x30ffef(0x130))&&(_0x47b3e3=a289_0x2341dc[_0x30ffef(0x14f)](_0x1e4265,_0x5f5bda[_0x30ffef(0x120)][_0x30ffef(0x126)](/\.tpl$/,'')));if(_0x5f5bda[_0x30ffef(0x141)]())await a289_0x413aaf[_0x30ffef(0x146)][_0x30ffef(0x115)](_0x47b3e3,{'recursive':!![]}),await this[_0x30ffef(0x142)](_0x13b55c,_0x47b3e3,_0x59a9c9,_0xa94c7d);else _0x5f5bda[_0x30ffef(0x12a)]()&&await this[_0x30ffef(0x119)](_0x13b55c,_0x47b3e3,_0x59a9c9,_0xa94c7d);}}static async[a289_0x4c656(0x119)](_0xced2b8,_0x173cf4,_0x288bf3,_0x467788){const _0x199b21=a289_0x4c656,_0x3aa990=a289_0x2341dc['extname'](_0xced2b8)[_0x199b21(0x13d)]();_0xced2b8[_0x199b21(0x137)](_0x199b21(0x130))&&(_0x173cf4=_0x173cf4[_0x199b21(0x126)](/\.tpl$/,''));const _0x1e72a2=[_0x199b21(0x122),_0x199b21(0x13a),_0x199b21(0x11f),_0x199b21(0x153),'.json','.md',_0x199b21(0x151),_0x199b21(0x14a),_0x199b21(0x130)];if(_0x1e72a2[_0x199b21(0x154)](_0x3aa990)||_0xced2b8[_0x199b21(0x137)](_0x199b21(0x130))){const _0x39f2bc=await a289_0x413aaf[_0x199b21(0x146)][_0x199b21(0x14b)](_0xced2b8,_0x199b21(0x152)),_0x4d6244=this['replaceContent'](_0x39f2bc,_0x288bf3,_0x467788);await a289_0x413aaf[_0x199b21(0x146)]['writeFile'](_0x173cf4,_0x4d6244,_0x199b21(0x152));}else await a289_0x413aaf[_0x199b21(0x146)][_0x199b21(0x11e)](_0xced2b8,_0x173cf4);}}
1
+ const a289_0x50b144=a289_0x49c6;(function(_0x35f82b,_0x5c466f){const _0x584d26=a289_0x49c6,_0x1c3e66=_0x35f82b();while(!![]){try{const _0x2446e6=-parseInt(_0x584d26(0x14e))/0x1+parseInt(_0x584d26(0x157))/0x2+-parseInt(_0x584d26(0x155))/0x3*(parseInt(_0x584d26(0x14f))/0x4)+parseInt(_0x584d26(0x14a))/0x5+parseInt(_0x584d26(0x178))/0x6*(-parseInt(_0x584d26(0x145))/0x7)+parseInt(_0x584d26(0x144))/0x8+-parseInt(_0x584d26(0x171))/0x9*(-parseInt(_0x584d26(0x16b))/0xa);if(_0x2446e6===_0x5c466f)break;else _0x1c3e66['push'](_0x1c3e66['shift']());}catch(_0x2ec370){_0x1c3e66['push'](_0x1c3e66['shift']());}}}(a289_0x4384,0x7074e));import a289_0x639c0b from'node:fs';import a289_0x268e29 from'node:path';function a289_0x49c6(_0x2a7add,_0x114c9a){_0x2a7add=_0x2a7add-0x13d;const _0x438401=a289_0x4384();let _0x49c636=_0x438401[_0x2a7add];return _0x49c636;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x5d9142){const _0x2babcf=a289_0x49c6;return String(_0x5d9142)[_0x2babcf(0x174)](0x2,'0');}static[a289_0x50b144(0x172)](_0x6974b2){const _0x44f1c6=a289_0x50b144,_0x1c2197=_0x6974b2[_0x44f1c6(0x143)](),_0x436549=this[_0x44f1c6(0x17d)](_0x6974b2[_0x44f1c6(0x149)]()+0x1),_0x4a49d1=this[_0x44f1c6(0x17d)](_0x6974b2[_0x44f1c6(0x16d)]()),_0xbecdad=this[_0x44f1c6(0x17d)](_0x6974b2['getHours']()),_0x47de73=this['pad'](_0x6974b2[_0x44f1c6(0x151)]()),_0x4b81b0=this[_0x44f1c6(0x17d)](_0x6974b2['getSeconds']());return{'createdAt':_0x1c2197+'-'+_0x436549+'-'+_0x4a49d1+'\x20'+_0xbecdad+':'+_0x47de73+':'+_0x4b81b0,'createdDate':_0x1c2197+'-'+_0x436549+'-'+_0x4a49d1,'createdTime':_0xbecdad+':'+_0x47de73+':'+_0x4b81b0};}static[a289_0x50b144(0x160)](_0x523534){const _0xe45648=a289_0x50b144,_0x309d32=_0x523534['split']('/')[_0xe45648(0x159)]()||_0x523534;return _0x309d32[_0xe45648(0x165)]('-')[_0xe45648(0x141)](_0x45597e=>_0x45597e[_0xe45648(0x16a)](0x0)[_0xe45648(0x17b)]()+_0x45597e[_0xe45648(0x15b)](0x1)[_0xe45648(0x175)]())[_0xe45648(0x169)]('');}static[a289_0x50b144(0x176)](_0xa8035f){const _0x485e49=a289_0x50b144,_0x49f4ff=_0xa8035f[_0x485e49(0x165)]('/')[_0x485e49(0x159)]()||_0xa8035f;return _0x49f4ff[_0x485e49(0x165)]('-')['map'](_0x21cfb0=>_0x21cfb0[_0x485e49(0x16a)](0x0)[_0x485e49(0x17b)]()+_0x21cfb0[_0x485e49(0x15b)](0x1)['toLowerCase']())[_0x485e49(0x169)]('\x20');}static[a289_0x50b144(0x182)](_0xedaf81,_0x4cc150,_0x56115d){const _0x3a7673=a289_0x50b144,_0x379ecb=this[_0x3a7673(0x160)](_0x4cc150),_0x34a68e=this[_0x3a7673(0x176)](_0x4cc150),{createdAt:_0x49f719,createdDate:_0x210c2b,createdTime:_0x1789e1}=this[_0x3a7673(0x172)](new Date());let _0x1180f0=_0xedaf81[_0x3a7673(0x140)](/\{CliVersion\}/g,CLI_VERSION)[_0x3a7673(0x140)](/\{ComponentName\}/g,_0x379ecb)[_0x3a7673(0x140)](/\{DisplayTitle\}/g,_0x34a68e)[_0x3a7673(0x140)](/\{PageName\}/g,_0x4cc150)[_0x3a7673(0x140)](/\{TemplateName\}/g,_0x56115d)[_0x3a7673(0x140)](/\{CreatedAt\}/g,_0x49f719)[_0x3a7673(0x140)](/\{CreatedDate\}/g,_0x210c2b)[_0x3a7673(0x140)](/\{CreatedTime\}/g,_0x1789e1);return _0x1180f0;}static['replaceApiContent'](_0x23a784,_0x516ca6,_0x135944,_0xbdcf0a,_0x131ac9,_0x590434,_0x194656,_0x4db443){const _0x11a016=a289_0x50b144,_0x172910=new Date(),_0x4b938e=_0x172910[_0x11a016(0x154)](),_0x33c558=_0x135944['map'](_0x129d85=>{const _0x4e8e2e=_0x11a016,_0x3232cc=[_0x4e8e2e(0x173)+_0x129d85[_0x4e8e2e(0x147)]+'\x22',_0x4e8e2e(0x15f)+_0x129d85[_0x4e8e2e(0x16e)]+'\x22',_0x4e8e2e(0x187)+_0x129d85[_0x4e8e2e(0x142)]+'\x22'];return _0x129d85[_0x4e8e2e(0x150)]&&_0x3232cc[_0x4e8e2e(0x153)](_0x4e8e2e(0x13e)+_0x129d85[_0x4e8e2e(0x150)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x3232cc[_0x4e8e2e(0x169)](',\x20')+_0x4e8e2e(0x180);})[_0x11a016(0x169)](''),_0x23590b=_0xbdcf0a||_0x135944[0x0]?.[_0x11a016(0x150)]||_0x11a016(0x148);let _0x5f2d94=_0x23a784[_0x11a016(0x140)](/\{AppCode\}/g,_0x516ca6)['replace'](/\{ModelConfigs\}/g,_0x33c558)[_0x11a016(0x140)](/\{ExampleModelName\}/g,_0x23590b)[_0x11a016(0x140)](/\{ApiFileName\}/g,_0x131ac9||_0x11a016(0x168))[_0x11a016(0x140)](/\{ConfigName\}/g,_0x590434||_0x11a016(0x184))[_0x11a016(0x140)](/\{ClientConfigParam\}/g,_0x194656||'')['replace'](/\{VarPrefix\}/g,_0x4db443||_0x11a016(0x15d))[_0x11a016(0x140)](/\{CreatedAt\}/g,_0x4b938e);return _0x5f2d94;}static async[a289_0x50b144(0x163)](_0x2c9b0b,_0x400ff9,_0x10184d,_0x318137,_0x25c2f1=!![]){const _0x5a07fc=a289_0x50b144,_0x29b52e=Date[_0x5a07fc(0x156)]();try{_0x25c2f1&&logger['info']('template',_0x5a07fc(0x162),{'templatePath':_0x2c9b0b,'targetPath':_0x400ff9,'pageName':_0x10184d,'templateName':_0x318137});await a289_0x639c0b[_0x5a07fc(0x17a)][_0x5a07fc(0x15c)](_0x400ff9,{'recursive':!![]}),await this[_0x5a07fc(0x14d)](_0x2c9b0b,_0x400ff9,_0x10184d,_0x318137);if(_0x25c2f1){const _0x241011=Date[_0x5a07fc(0x156)]()-_0x29b52e;logger[_0x5a07fc(0x152)]('template',_0x5a07fc(0x16f),_0x241011,{'pageName':_0x10184d,'templateName':_0x318137});}}catch(_0x404e4d){if(_0x25c2f1){const _0x49c060=Date[_0x5a07fc(0x156)]()-_0x29b52e;logger[_0x5a07fc(0x17c)](_0x5a07fc(0x16c),_0x5a07fc(0x167),{'templatePath':_0x2c9b0b,'targetPath':_0x400ff9,'pageName':_0x10184d,'templateName':_0x318137,'error':_0x404e4d instanceof Error?_0x404e4d[_0x5a07fc(0x158)]:String(_0x404e4d),'duration':_0x49c060});}throw _0x404e4d;}}static async[a289_0x50b144(0x14d)](_0x54dd22,_0x5e6cbe,_0x27ecab,_0x5b54d5){const _0x1b6121=a289_0x50b144,_0x3aa847=await a289_0x639c0b[_0x1b6121(0x17a)][_0x1b6121(0x13d)](_0x54dd22,{'withFileTypes':!![]});for(const _0x305c1e of _0x3aa847){const _0x297ce6=a289_0x268e29[_0x1b6121(0x169)](_0x54dd22,_0x305c1e[_0x1b6121(0x142)]);let _0x31d4ce=a289_0x268e29[_0x1b6121(0x169)](_0x5e6cbe,_0x305c1e[_0x1b6121(0x142)]);_0x305c1e[_0x1b6121(0x142)][_0x1b6121(0x14b)](_0x1b6121(0x161))&&(_0x31d4ce=a289_0x268e29[_0x1b6121(0x169)](_0x5e6cbe,_0x305c1e['name']['replace'](/\.tpl$/,'')));if(_0x305c1e[_0x1b6121(0x164)]())await a289_0x639c0b[_0x1b6121(0x17a)][_0x1b6121(0x15c)](_0x31d4ce,{'recursive':!![]}),await this[_0x1b6121(0x14d)](_0x297ce6,_0x31d4ce,_0x27ecab,_0x5b54d5);else _0x305c1e[_0x1b6121(0x14c)]()&&await this[_0x1b6121(0x17f)](_0x297ce6,_0x31d4ce,_0x27ecab,_0x5b54d5);}}static async['processFile'](_0x3452d1,_0x520186,_0x540f88,_0xc64ac1){const _0x2a251e=a289_0x50b144,_0x5594e9=a289_0x268e29[_0x2a251e(0x166)](_0x3452d1)[_0x2a251e(0x175)]();_0x3452d1[_0x2a251e(0x14b)]('.tpl')&&(_0x520186=_0x520186[_0x2a251e(0x140)](/\.tpl$/,''));const _0x2dc889=[_0x2a251e(0x170),_0x2a251e(0x13f),_0x2a251e(0x181),_0x2a251e(0x186),_0x2a251e(0x17e),_0x2a251e(0x185),_0x2a251e(0x15a),'.scss','.tpl'];if(_0x2dc889[_0x2a251e(0x177)](_0x5594e9)||_0x3452d1['endsWith'](_0x2a251e(0x161))){const _0x440c16=await a289_0x639c0b[_0x2a251e(0x17a)][_0x2a251e(0x183)](_0x3452d1,_0x2a251e(0x179)),_0xb2519d=this[_0x2a251e(0x182)](_0x440c16,_0x540f88,_0xc64ac1);await a289_0x639c0b[_0x2a251e(0x17a)][_0x2a251e(0x146)](_0x520186,_0xb2519d,_0x2a251e(0x179));}else await a289_0x639c0b['promises'][_0x2a251e(0x15e)](_0x3452d1,_0x520186);}}function a289_0x4384(){const _0x104669=['slice','mkdir','LOVRABET','copyFile','tableName:\x20\x22','toComponentName','.tpl','开始处理模板内容替换','processTemplate','isDirectory','split','extname','模板内容替换失败','api','join','charAt','100EnSCUF','template','getDate','tableName','模板内容替换完成','.tsx','103347YDaTxD','formatLocalTimestamp','datasetCode:\x20\x22','padStart','toLowerCase','toDisplayTitle','includes','6CXHpav','utf8','promises','toUpperCase','error','pad','.json','processFile','\x20},','.jsx','replaceContent','readFile','default','.md','.js','name:\x20\x22','readdir','alias:\x20\x22','.ts','replace','map','name','getFullYear','7127688qrQPOQ','3775177PrfXqT','writeFile','datasetCode','YourModel','getMonth','4471025hbMQkr','endsWith','isFile','processDirectory','387952ZWDXfG','184zwAvAN','alias','getMinutes','success','push','toISOString','49206xebTZi','now','484762MtZSbY','message','pop','.css'];a289_0x4384=function(){return _0x104669;};return a289_0x4384();}
@@ -1 +1 @@
1
- (function(_0x5a309d,_0x575e98){const _0x43bdf1=a290_0x73f7,_0x2ef44d=_0x5a309d();while(!![]){try{const _0x1ecde9=-parseInt(_0x43bdf1(0x166))/0x1*(parseInt(_0x43bdf1(0x176))/0x2)+-parseInt(_0x43bdf1(0x15c))/0x3+-parseInt(_0x43bdf1(0x165))/0x4*(-parseInt(_0x43bdf1(0x177))/0x5)+-parseInt(_0x43bdf1(0x178))/0x6*(parseInt(_0x43bdf1(0x162))/0x7)+parseInt(_0x43bdf1(0x164))/0x8*(parseInt(_0x43bdf1(0x17b))/0x9)+-parseInt(_0x43bdf1(0x16c))/0xa*(parseInt(_0x43bdf1(0x15e))/0xb)+parseInt(_0x43bdf1(0x15f))/0xc;if(_0x1ecde9===_0x575e98)break;else _0x2ef44d['push'](_0x2ef44d['shift']());}catch(_0x4cc0ec){_0x2ef44d['push'](_0x2ef44d['shift']());}}}(a290_0x3e4e,0x8ea01));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0x257341 from'semver';function a290_0x73f7(_0x533972,_0x5250f2){_0x533972=_0x533972-0x15b;const _0x3e4ef6=a290_0x3e4e();let _0x73f7=_0x3e4ef6[_0x533972];return _0x73f7;}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 _0x2b7290=a290_0x73f7,_0x415b97=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2b7290(0x16e)]()[_0x2b7290(0x167)]();return _0x415b97==='1'||_0x415b97===_0x2b7290(0x17a)||_0x415b97===_0x2b7290(0x169);}function a290_0x3e4e(){const _0x18277e=['object','valid','rabetbase-cli','2wKMgSI','15VLcOmJ','6467802AtQEdu','/v/','true','9uvhDTh','utf8','3166959bfUcLM',',\x20run:\x20','10392382dAfdEC','35510568gYkhXC','number','lastNotifiedAt','7yOUBij','lastNotifiedVersion','5208552EbDBLo','1141612bbxgWM','803917rPoTCS','toLowerCase','.cache','yes','checkedAt','parse','10RIUPfN','https://www.npmjs.com/package/','trim','now','\x20available,\x20current\x20','\x20update','gte'];a290_0x3e4e=function(){return _0x18277e;};return a290_0x3e4e();}function cacheRoot(){const _0x46961c=a290_0x73f7;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x46961c(0x168));}export function getUpdateNoticeCachePath(){const _0x1e0c43=a290_0x73f7;return join(cacheRoot(),_0x1e0c43(0x175),'update-check.json');}async function readUpdateNoticeCache(){const _0x5a0135=a290_0x73f7;try{const _0x2f7761=await readFile(getUpdateNoticeCachePath(),_0x5a0135(0x15b)),_0x408b43=JSON[_0x5a0135(0x16b)](_0x2f7761);if(!_0x408b43||typeof _0x408b43!==_0x5a0135(0x173))return{};return _0x408b43;}catch{return{};}}async function writeUpdateNoticeCache(_0x5be913){try{const _0x48b5d2=getUpdateNoticeCachePath();await mkdir(dirname(_0x48b5d2),{'recursive':!![]}),await writeFile(_0x48b5d2,JSON['stringify'](_0x5be913,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x585909,_0x3ec960){const _0x129408=a290_0x73f7;return typeof _0x585909['checkedAt']===_0x129408(0x160)&&_0x3ec960-_0x585909[_0x129408(0x16a)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x80e91,_0x7d5c5a,_0x46a34f){const _0x1ae8d0=a290_0x73f7;return _0x80e91[_0x1ae8d0(0x163)]===_0x7d5c5a&&typeof _0x80e91[_0x1ae8d0(0x161)]==='number'&&_0x46a34f-_0x80e91[_0x1ae8d0(0x161)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5252cd){const _0x132d1a=a290_0x73f7;return _0x132d1a(0x16d)+NPM_PACKAGE_NAME+_0x132d1a(0x179)+_0x5252cd;}export async function resolveLatestUpdateNotice(){const _0x127f23=a290_0x73f7;if(isUpdateNoticeDisabled())return null;try{const _0x527a3d=Date[_0x127f23(0x16f)](),_0x199c30=getCliVersion(),_0x3a1de7=await readUpdateNoticeCache();let _0x2c6ede=isFreshCheck(_0x3a1de7,_0x527a3d)?_0x3a1de7['latest']?.['trim']():undefined;if(!_0x2c6ede&&!isFreshCheck(_0x3a1de7,_0x527a3d)){const _0x352465=await getCliVersionPolicy();_0x2c6ede=_0x352465?.['stableVersion']?.[_0x127f23(0x16e)]()||undefined,await writeUpdateNoticeCache({..._0x3a1de7,'checkedAt':_0x527a3d,'latest':_0x2c6ede,'failed':!_0x2c6ede});}if(!_0x2c6ede||!a290_0x257341[_0x127f23(0x174)](_0x199c30)||!a290_0x257341[_0x127f23(0x174)](_0x2c6ede))return null;if(a290_0x257341[_0x127f23(0x172)](_0x199c30,_0x2c6ede))return null;if(isRecentlyNotified(_0x3a1de7,_0x2c6ede,_0x527a3d))return null;const _0x5abcf3=CLI_BIN_NAME+_0x127f23(0x171);return await writeUpdateNoticeCache({..._0x3a1de7,'checkedAt':isFreshCheck(_0x3a1de7,_0x527a3d)?_0x3a1de7[_0x127f23(0x16a)]:_0x527a3d,'latest':_0x2c6ede,'failed':![],'lastNotifiedVersion':_0x2c6ede,'lastNotifiedAt':_0x527a3d}),{'command':_0x5abcf3,'current':_0x199c30,'latest':_0x2c6ede,'url':buildNpmVersionUrl(_0x2c6ede),'message':CLI_BIN_NAME+'\x20'+_0x2c6ede+_0x127f23(0x170)+_0x199c30+_0x127f23(0x15d)+_0x5abcf3};}catch{return null;}}
1
+ (function(_0x551255,_0x2cda35){const _0x1606b1=a290_0x5ae8,_0x29763b=_0x551255();while(!![]){try{const _0x403ecc=parseInt(_0x1606b1(0x1e1))/0x1+parseInt(_0x1606b1(0x1ed))/0x2*(parseInt(_0x1606b1(0x1f1))/0x3)+-parseInt(_0x1606b1(0x1ff))/0x4*(parseInt(_0x1606b1(0x1f4))/0x5)+-parseInt(_0x1606b1(0x1e5))/0x6*(parseInt(_0x1606b1(0x1f9))/0x7)+parseInt(_0x1606b1(0x1e8))/0x8+-parseInt(_0x1606b1(0x1fe))/0x9*(parseInt(_0x1606b1(0x1ee))/0xa)+parseInt(_0x1606b1(0x1ea))/0xb*(-parseInt(_0x1606b1(0x1f3))/0xc);if(_0x403ecc===_0x2cda35)break;else _0x29763b['push'](_0x29763b['shift']());}catch(_0x2d4ac4){_0x29763b['push'](_0x29763b['shift']());}}}(a290_0x430b,0xda77b));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0xe0a8f7 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a290_0x5ae8(_0x3d9346,_0x216b77){_0x3d9346=_0x3d9346-0x1e1;const _0x430b6d=a290_0x430b();let _0x5ae80a=_0x430b6d[_0x3d9346];return _0x5ae80a;}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 _0x2d3bd5=a290_0x5ae8,_0x78af90=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2d3bd5(0x1e2)]()[_0x2d3bd5(0x1e7)]();return _0x78af90==='1'||_0x78af90===_0x2d3bd5(0x1fa)||_0x78af90==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x196698=a290_0x5ae8;return join(cacheRoot(),'rabetbase-cli',_0x196698(0x1ef));}async function readUpdateNoticeCache(){const _0x30ac58=a290_0x5ae8;try{const _0x440c31=await readFile(getUpdateNoticeCachePath(),_0x30ac58(0x1f8)),_0x3b3724=JSON[_0x30ac58(0x1f7)](_0x440c31);if(!_0x3b3724||typeof _0x3b3724!==_0x30ac58(0x1f6))return{};return _0x3b3724;}catch{return{};}}async function writeUpdateNoticeCache(_0x4c4ec2){const _0x949969=a290_0x5ae8;try{const _0x54f7cc=getUpdateNoticeCachePath();await mkdir(dirname(_0x54f7cc),{'recursive':!![]}),await writeFile(_0x54f7cc,JSON[_0x949969(0x1f0)](_0x4c4ec2,null,0x2)+'\x0a',_0x949969(0x1f8));}catch{}}function isFreshCheck(_0x5d4129,_0x58e9ef){const _0x21fda7=a290_0x5ae8;return typeof _0x5d4129[_0x21fda7(0x1e3)]===_0x21fda7(0x1e4)&&_0x58e9ef-_0x5d4129[_0x21fda7(0x1e3)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x575533,_0x38c297,_0x576ea9){const _0x441b10=a290_0x5ae8;return _0x575533[_0x441b10(0x1ec)]===_0x38c297&&typeof _0x575533[_0x441b10(0x1fb)]===_0x441b10(0x1e4)&&_0x576ea9-_0x575533['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}function a290_0x430b(){const _0x455083=['20dWfCBk','update-check.json','stringify','81yuRFsL','now','12jDufdc','5AeyDDy','valid','object','parse','utf8','21413ftVvlj','true','lastNotifiedAt','/v/','gte','1699119GkfmIE','2217912SAbcvz','1587765RQwaDG','trim','checkedAt','number','1002LTAgXm','https://www.npmjs.com/package/','toLowerCase','4747240elHzmF','\x20available,\x20current\x20','5612563PeaWmW','latest','lastNotifiedVersion','49394oUWjql'];a290_0x430b=function(){return _0x455083;};return a290_0x430b();}export function buildNpmVersionUrl(_0x37214f){const _0xe9e866=a290_0x5ae8;return _0xe9e866(0x1e6)+NPM_PACKAGE_NAME+_0xe9e866(0x1fc)+_0x37214f;}export async function resolveLatestUpdateNotice(){const _0x526839=a290_0x5ae8;if(isUpdateNoticeDisabled())return null;try{const _0x5bf71e=Date[_0x526839(0x1f2)](),_0x20779e=getCliVersion(),_0x1cf5ce=await readUpdateNoticeCache();let _0x58be61=isFreshCheck(_0x1cf5ce,_0x5bf71e)?_0x1cf5ce[_0x526839(0x1eb)]?.[_0x526839(0x1e2)]():undefined;if(!_0x58be61&&!isFreshCheck(_0x1cf5ce,_0x5bf71e)){const _0x2da698=await getCliVersionPolicy();_0x58be61=_0x2da698?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x1cf5ce,'checkedAt':_0x5bf71e,'latest':_0x58be61,'failed':!_0x58be61});}if(!_0x58be61||!a290_0xe0a8f7[_0x526839(0x1f5)](_0x20779e)||!a290_0xe0a8f7[_0x526839(0x1f5)](_0x58be61))return null;if(a290_0xe0a8f7[_0x526839(0x1fd)](_0x20779e,_0x58be61))return null;if(isRecentlyNotified(_0x1cf5ce,_0x58be61,_0x5bf71e))return null;const _0x18ce06=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1cf5ce,'checkedAt':isFreshCheck(_0x1cf5ce,_0x5bf71e)?_0x1cf5ce['checkedAt']:_0x5bf71e,'latest':_0x58be61,'failed':![],'lastNotifiedVersion':_0x58be61,'lastNotifiedAt':_0x5bf71e}),{'command':_0x18ce06,'current':_0x20779e,'latest':_0x58be61,'url':buildNpmVersionUrl(_0x58be61),'message':CLI_BIN_NAME+'\x20'+_0x58be61+_0x526839(0x1e9)+_0x20779e+',\x20run:\x20'+_0x18ce06};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0xdd1277,_0x3c1ce7){var _0x357625=a291_0x49ec,_0x5c47b9=_0xdd1277();while(!![]){try{var _0x12ae4b=-parseInt(_0x357625(0x1c0))/0x1*(-parseInt(_0x357625(0x1bc))/0x2)+-parseInt(_0x357625(0x1b9))/0x3*(-parseInt(_0x357625(0x1bd))/0x4)+parseInt(_0x357625(0x1bb))/0x5+parseInt(_0x357625(0x1b6))/0x6+-parseInt(_0x357625(0x1ba))/0x7*(-parseInt(_0x357625(0x1b7))/0x8)+parseInt(_0x357625(0x1b5))/0x9*(-parseInt(_0x357625(0x1bf))/0xa)+-parseInt(_0x357625(0x1be))/0xb*(parseInt(_0x357625(0x1b8))/0xc);if(_0x12ae4b===_0x3c1ce7)break;else _0x5c47b9['push'](_0x5c47b9['shift']());}catch(_0x2fc75f){_0x5c47b9['push'](_0x5c47b9['shift']());}}}(a291_0x19e7,0x648f9));function a291_0x49ec(_0x2bfb02,_0xc35690){_0x2bfb02=_0x2bfb02-0x1b5;var _0x19e760=a291_0x19e7();var _0x49ecdc=_0x19e760[_0x2bfb02];return _0x49ecdc;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a291_0x19e7(){var _0x3cdea3=['2999304ecQGfL','3PBAuGM','539JQwOGo','3686775yTSDDi','318748DMoubX','1408724QZFFPY','88FLxOyj','20YZRpzE','1jtLGfs','102429qsBUkm','2732412CXpDSa','75832gYFpHr'];a291_0x19e7=function(){return _0x3cdea3;};return a291_0x19e7();}
1
+ (function(_0x1426ff,_0x59062f){var _0x3e8920=a291_0x1cce,_0x2db155=_0x1426ff();while(!![]){try{var _0x52ee11=parseInt(_0x3e8920(0x1b8))/0x1*(-parseInt(_0x3e8920(0x1ba))/0x2)+-parseInt(_0x3e8920(0x1bc))/0x3+parseInt(_0x3e8920(0x1b7))/0x4+parseInt(_0x3e8920(0x1b4))/0x5+-parseInt(_0x3e8920(0x1b6))/0x6*(-parseInt(_0x3e8920(0x1b5))/0x7)+parseInt(_0x3e8920(0x1b9))/0x8+parseInt(_0x3e8920(0x1bd))/0x9*(-parseInt(_0x3e8920(0x1bb))/0xa);if(_0x52ee11===_0x59062f)break;else _0x2db155['push'](_0x2db155['shift']());}catch(_0x3e01fc){_0x2db155['push'](_0x2db155['shift']());}}}(a291_0x5d07,0x393a7));function a291_0x1cce(_0x1cbb5e,_0x4803e6){_0x1cbb5e=_0x1cbb5e-0x1b4;var _0x5d0791=a291_0x5d07();var _0x1cce23=_0x5d0791[_0x1cbb5e];return _0x1cce23;}import{VERSION}from'../generated/build-info.js';function a291_0x5d07(){var _0xfa1e7e=['7bNLgBP','2261226LSuAcP','1298040JrAxJI','15425CueNjg','1027456LIGBXS','10YXOSWD','7699650EjPLBh','596646twLoPB','9MnvWRI','2252830syCvQI'];a291_0x5d07=function(){return _0xfa1e7e;};return a291_0x5d07();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x54eb22,_0x32be2b){var _0x432b49=a292_0xe69b,_0x5707b1=_0x54eb22();while(!![]){try{var _0x284614=-parseInt(_0x432b49(0x144))/0x1+-parseInt(_0x432b49(0x143))/0x2*(parseInt(_0x432b49(0x146))/0x3)+-parseInt(_0x432b49(0x141))/0x4+-parseInt(_0x432b49(0x145))/0x5+parseInt(_0x432b49(0x13e))/0x6+-parseInt(_0x432b49(0x140))/0x7*(parseInt(_0x432b49(0x147))/0x8)+-parseInt(_0x432b49(0x142))/0x9*(-parseInt(_0x432b49(0x13f))/0xa);if(_0x284614===_0x32be2b)break;else _0x5707b1['push'](_0x5707b1['shift']());}catch(_0x5492af){_0x5707b1['push'](_0x5707b1['shift']());}}}(a292_0xbb08,0xc2809));function a292_0xbb08(){var _0x2bde10=['2pgFUsq','381190dXsBpG','7204980UzdbMB','1202037ONXVZx','8ZbsKDh','9111288dQUWbM','396860Uqnyzm','419699BDGzfQ','105940MERmBG','360UjvfPL'];a292_0xbb08=function(){return _0x2bde10;};return a292_0xbb08();}function a292_0xe69b(_0x26c255,_0x40e025){_0x26c255=_0x26c255-0x13e;var _0xbb08e9=a292_0xbb08();var _0xe69bb1=_0xbb08e9[_0x26c255];return _0xe69bb1;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x444e34,_0x4bfa64){setActiveCookie(_0x444e34);try{return await _0x4bfa64();}finally{clearActiveCookie();}}
1
+ (function(_0x104a87,_0x5a944f){var _0x420f4e=a292_0x5a8e,_0x1fcf75=_0x104a87();while(!![]){try{var _0x4b22b=-parseInt(_0x420f4e(0x1f4))/0x1*(parseInt(_0x420f4e(0x1f1))/0x2)+parseInt(_0x420f4e(0x1f6))/0x3+-parseInt(_0x420f4e(0x1f3))/0x4+parseInt(_0x420f4e(0x1f0))/0x5+-parseInt(_0x420f4e(0x1f8))/0x6*(parseInt(_0x420f4e(0x1f2))/0x7)+parseInt(_0x420f4e(0x1f5))/0x8+parseInt(_0x420f4e(0x1f7))/0x9;if(_0x4b22b===_0x5a944f)break;else _0x1fcf75['push'](_0x1fcf75['shift']());}catch(_0x1e8afa){_0x1fcf75['push'](_0x1fcf75['shift']());}}}(a292_0x2802,0xcbae5));function a292_0x2802(){var _0x2232d0=['6rrbGLK','1024965NmOqDj','5542eZUmrk','1886738skuSBU','1578592ZgcrnG','121BeMZYk','6066816MxCbca','145485mRyipF','7397190IrrZjY'];a292_0x2802=function(){return _0x2232d0;};return a292_0x2802();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a292_0x5a8e(_0x2158a8,_0x3c76c8){_0x2158a8=_0x2158a8-0x1f0;var _0x2802a1=a292_0x2802();var _0x5a8e04=_0x2802a1[_0x2158a8];return _0x5a8e04;}export async function withActiveCookie(_0x41c4c0,_0x253e4f){setActiveCookie(_0x41c4c0);try{return await _0x253e4f();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a293_0x2181(_0xe283e2,_0x386e12){_0xe283e2=_0xe283e2-0x1cd;var _0x179a44=a293_0x179a();var _0x218144=_0x179a44[_0xe283e2];return _0x218144;}function a293_0x179a(){var _0x5f33f9=['152027UPWtQp','2ALnHWf','write','5635449almJFX','3906ddbBqw','stderr','3539870nolXlw','932224AwxcgY','1090716CXWGAU','8504WuBcri','2629818YkTRHR'];a293_0x179a=function(){return _0x5f33f9;};return a293_0x179a();}(function(_0x57b94b,_0x2ef693){var _0x9a2462=a293_0x2181,_0x4670ed=_0x57b94b();while(!![]){try{var _0x3a10f6=parseInt(_0x9a2462(0x1d5))/0x1*(parseInt(_0x9a2462(0x1d6))/0x2)+parseInt(_0x9a2462(0x1d2))/0x3+-parseInt(_0x9a2462(0x1d1))/0x4+-parseInt(_0x9a2462(0x1d0))/0x5+-parseInt(_0x9a2462(0x1d4))/0x6+parseInt(_0x9a2462(0x1ce))/0x7*(parseInt(_0x9a2462(0x1d3))/0x8)+parseInt(_0x9a2462(0x1cd))/0x9;if(_0x3a10f6===_0x2ef693)break;else _0x4670ed['push'](_0x4670ed['shift']());}catch(_0x583b8d){_0x4670ed['push'](_0x4670ed['shift']());}}}(a293_0x179a,0x56cfd));export function writeCliSideChannelLine(_0x4e4db7){var _0x44cc0b=a293_0x2181;process[_0x44cc0b(0x1cf)][_0x44cc0b(0x1d7)](_0x4e4db7+'\x0a');}
1
+ function a293_0xb835(){var _0x597725=['25115470nqXDHh','8jCLNrA','12824991WfZiaZ','2344410pchYmN','7204KlEFyW','stderr','1649095jOgbEi','296802kwFpjd','8BcEROx','write','146icpKwa','1644185tmioUQ'];a293_0xb835=function(){return _0x597725;};return a293_0xb835();}(function(_0x2bf4c7,_0xe9322c){var _0x25584d=a293_0x2c0f,_0x52199c=_0x2bf4c7();while(!![]){try{var _0x167674=-parseInt(_0x25584d(0x8c))/0x1*(-parseInt(_0x25584d(0x86))/0x2)+parseInt(_0x25584d(0x83))/0x3+-parseInt(_0x25584d(0x89))/0x4*(-parseInt(_0x25584d(0x87))/0x5)+parseInt(_0x25584d(0x8b))/0x6+-parseInt(_0x25584d(0x82))/0x7*(-parseInt(_0x25584d(0x84))/0x8)+parseInt(_0x25584d(0x8a))/0x9+-parseInt(_0x25584d(0x88))/0xa;if(_0x167674===_0xe9322c)break;else _0x52199c['push'](_0x52199c['shift']());}catch(_0xc79976){_0x52199c['push'](_0x52199c['shift']());}}}(a293_0xb835,0xc8c00));function a293_0x2c0f(_0x24093e,_0x20b9c9){_0x24093e=_0x24093e-0x82;var _0xb8355e=a293_0xb835();var _0x2c0fad=_0xb8355e[_0x24093e];return _0x2c0fad;}export function writeCliSideChannelLine(_0x242d1c){var _0x20d5da=a293_0x2c0f;process[_0x20d5da(0x8d)][_0x20d5da(0x85)](_0x242d1c+'\x0a');}